|
|
!(function(){var lu=Math.pow;var Vu=(xn,Zt,ve)=>new Promise((Ue,ot)=>{var x=ne=>{try{pe(ve.next(ne))}catch(z){ot(z)}},ke=ne=>{try{pe(ve.throw(ne))}catch(z){ot(z)}},pe=ne=>ne.done?Ue(ne.value):Promise.resolve(ne.value).then(x,ke);pe((ve=ve.apply(xn,Zt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[86913],{33463:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},28575:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},18299:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},97309:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},ke=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},84249:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},81893:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},42922:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},90674:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ke=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},25877:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},63237:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},99569:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},73148:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},56747:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},50881:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},22751:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},34182:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},38308:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ke=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},74664:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},32693:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},ke=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},17663:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},91034:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},72395:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},53978:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return z}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(re,se){return ot.createElement(pe.Z,(0,Ue.Z)({},re,{ref:se,icon:ke}))},z=ot.forwardRef(ne)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(xn,Zt){"use strict";Zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},12867:function(){"use strict"},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var xn={},Zt="5.0",ve={},Ue=null,ot=!1,x=!1,ke=null,pe=!1,ne=null,z=null,ae=0;ae<arguments.length;ae++){var re=arguments[ae];if(re!==null)switch(typeof re){case"number":Zt=re.toFixed(1);break;case"string":re.match(new RegExp("^[0-9]\\.[0-9]+$"))?Zt=re:ke=re;break;case"object":typeof re.is3D!="undefined"?Ue=re:ve=re;break;case"boolean":ot=re,x=!0;break}}Ue===null&&(Ue={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ve.material_id!==void 0&&!x&&(ot=!0)),ke!==null&&ve.id===void 0&&(ve.id=ke);var se="",me="",ie=!1,le=null,ue=null,fe=null,he=!1,oe=null,Se=null,Ce=null,ye=null,_e=null;ve.height!==void 0&&(ve.height=Math.round(ve.height)),ve.width!==void 0&&(ve.width=Math.round(ve.width));var Me=function(nt){return parseFloat(nt)>4?parseFloat(nt):5};xn.setHTML5Codebase=function(nt,tt){z=nt,pt(nt,tt)},xn.setJavaCodebase=xn.setJavaCodebaseVersion=xn.isCompiledInstalled=xn.setPreCompiledScriptPath=xn.setPreCompiledResourcePath=function(){},xn.setHTML5CodebaseVersion=function(nt,tt){var rt=parseFloat(nt);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}ne=nt,Qe(nt,tt)},xn.getHTML5CodebaseVersion=function(){return ue},xn.getParameters=function(){return ve},xn.setFontsCSSURL=function(nt){ye=nt},xn.setGiacJSURL=function(nt){},xn.setJNLPFile=function(nt){se=nt},xn.setJNLPBaseDir=function(nt){},xn.inject=function(){function nt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var tt="auto",rt=ve.id,Et,bt=!1,Pt=0;Pt<arguments.length;Pt++){var Lt=arguments[Pt];typeof Lt=="string"?(Lt=Lt.toLowerCase(),Lt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?tt=Lt:rt=arguments[Pt]):typeof Lt=="boolean"?bt=Lt:Lt instanceof HTMLElement&&(Et=Lt)}dt();function dt(){if(!pe){setTimeout(dt,200);return}tt=yt(tt);var Ze=Et||document.getElementById(rt);if(!Ze){console.log("possibly bug on ajax loading? ");return}if(xn.removeExistingApplet(Ze,!1),ve.width===void 0&&Ze.clientWidth&&(ve.width=Ze.clientWidth),ve.height===void 0&&Ze.clientHeight&&(ve.height=Ze.clientHeight),!(ve.width&&ve.height)&&tt==="html5"&&(delete ve.width,delete ve.height),le=tt,tt==="screenshot")Be(Ze,ve);else{var Ke=!1;ve.hasOwnProperty("playButton")&&ve.playButton||ve.hasOwnProperty("clickToLoad")&&ve.clickToLoad?Ke=!0:ve.hasOwnProperty("playButtonAutoDecide")&&ve.playButtonAutoDecide&&(Ke=(!we()||nt())&&Ne()),Ke?(le="screenshot",Ye(Ze,ve,bt,tt)):We(Ze,ve,bt)}}};function we(){try{return window.self!==window.top}catch(nt){return!0}}function Ne(){return ve.hasOwnProperty("screenshotGenerator")&&ve.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}xn.getViews=function(){return Ue},xn.isJavaInstalled=function(){return!1};var Ae=function(nt){var tt=function(Pt){var Lt=JSON.parse(Pt),dt=function(de){return de.type=="G"||de.type=="E"},Ze=Lt.elements?Lt.elements.filter(dt)[0]:Lt;if(!Ze||!Ze.url){rt();return}ve.fileName=Ze.url,De(Ze.settings||{}),Ue.is3D=!0;var Ke="https://www.geogebra.org/images/";xn.setPreviewImage(oe||Ze.previewUrl,Ke+"GeoGebra_loading.png",Ke+"applet_play.png"),nt()},rt=function(){ve.onError&&ve.onError(),mt("Error: Fetching material (id "+ve.material_id+") failed.",ve)},Et=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",bt="/materials/"+ve.material_id+"?scope=basic";Ie("https://"+Et+"/api/proxy.php?path="+encodeURIComponent(bt),tt,rt)};function De(nt){var tt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rt){nt[rt]=!!nt[rt]}),tt.forEach(function(rt){ve[rt]===void 0&&nt[rt]!==void 0&&(ve[rt]=nt[rt])}),ve.showToolBarHelp===void 0&&(ve.showToolBarHelp=ve.showToolBar)}function Ie(nt,tt,rt){var Et=new XMLHttpRequest;Et.open("GET",nt),Et.onload=function(){tt(Et.responseText)},Et.onerror=rt,Et.send()}xn.isHTML5Installed=function(){return!0},xn.getLoadedAppletType=function(){return le},xn.setPreviewImage=function(nt,tt,rt){oe=nt,Se=tt,Ce=rt},xn.removeExistingApplet=function(nt,tt){var rt;typeof nt=="string"&&(nt=document.getElementById(nt)),le=null;var Et=null;for(rt=0;rt<nt.childNodes.length;rt++){var bt=nt.childNodes[rt],Pt=bt.className;Pt==="applet_screenshot"?tt?(bt.style.display="block",le="screenshot"):bt.style.display="none":Pt!=="applet_scaler prerender"&&(nt.removeChild(bt),Et=Pt&&Pt.indexOf("appletParameters")!=-1?bt.id:null,rt--)}var Lt=ve.id!==void 0?ve.id:Et,dt=window[Lt];dt&&typeof dt.getBase64=="function"&&(dt.remove(),window[Lt]=null)},xn.refreshHitPoints=function(){if(Me(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var nt=xn.getAppletObject();return nt&&typeof nt.recalculateEnvironments=="function"?(nt.recalculateEnvironments(),!0):!1},xn.startAnimation=function(){var nt=xn.getAppletObject();return nt&&typeof nt.startAnimation=="function"?(nt.startAnimation(),!0):!1},xn.stopAnimation=function(){var nt=xn.getAppletObject();return nt&&typeof nt.stopAnimation=="function"?(nt.stopAnimation(),!0):!1},xn.getAppletObject=function(){var nt=ve.id!==void 0?ve.id:"ggbApplet";return window[nt]},xn.resize=function(){};var Pe=function(nt,tt,rt){var Et=document.createElement("param");Et.setAttribute("name",tt),Et.setAttribute("value",rt),nt.appendChild(Et)},Le=function(nt){return nt&&nt!=="false"},We=function(nt,tt,rt){Me(ue)<=4.2&&(rt=!0);var Et=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ue||ggbHTML5LoadedCodebaseIsWebSimple&&!he)&&(Et=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var bt=document.createElement("div");bt.classList.add("appletParameters","notranslate");var Pt=tt.width,Lt=tt.height;if(tt.disableAutoScale=tt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():tt.disableAutoScale,tt.width!==void 0)if(Me(ue)<=4.4)Le(tt.showToolBar)&&(tt.height-=7),Le(tt.showAlgebraInput)&&(tt.height-=37),tt.width<605&&Le(tt.showToolBar)&&(tt.width=605,Pt=605);else{var dt=100;(Le(tt.showToolBar)||Le(tt.showMenuBar))&&(tt.hasOwnProperty("customToolBar")&&(tt.customToolbar=tt.customToolBar),dt=Le(tt.showMenuBar)?245:155),Pt<dt&&(tt.width=dt,Pt=dt)}bt.style.border="none",bt.style.display="inline-block";for(var Ze in tt)tt.hasOwnProperty(Ze)&&Ze!=="appletOnLoad"&&bt.setAttribute("data-param-"+Ze,tt[Ze]);ye&&bt.setAttribute("data-param-fontscssurl",ye),xn.resize=function(){GGBAppletUtils.responsiveResize(nt,tt)},window.addEventListener("resize",function(kt){xn.resize()});var Ke=typeof tt.appletOnLoad=="function"?tt.appletOnLoad:function(){};if(!rt&&tt.width!==void 0){tt.hasOwnProperty("showSplash")||bt.setAttribute("data-param-showSplash","false");var de=nt.querySelector(".applet_scaler.prerender"),xe=de!==null;if(xe)var ze=de.querySelector(".ggb_preview");else{var ze=st(Pt,Lt,tt.borderColor,!1);de=document.createElement("div"),de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.style.width=Pt+"px",de.style.height=Lt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(de,"66%"),Me(ue)>=5?(tt.appletOnLoad=function(kt){var St=nt.querySelector(".ggb_preview");St&&St.parentNode.removeChild(St),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(de),window.GGBT_wsf_view&&$(window).trigger("resize"),Ke(kt)},xe||de.appendChild(ze)):bt.appendChild(ze),de.appendChild(bt),xe||nt.appendChild(de),setTimeout(function(){xn.resize()},1)}else{var $e=document.createElement("div");$e.className="applet_scaler",$e.style.position="relative",$e.style.display="block",$e.appendChild(bt),nt.appendChild($e),tt.appletOnLoad=function(kt){xn.resize(),Ke(kt)}}function Ee(kt,St){St&&typeof St.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(kt,St.appletOnLoad):renderGGBElement(kt),mt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",St)}function Re(kt,St){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:kt,params:St}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Wt){Ee(Wt.article,Wt.params)}),html5AppletsToProcess=null)},Me(ue)<5&&(kt.className+=" geogebraweb")):Ee(kt,St)}if(Et){scriptLoadStarted=!0;for(var Fe=0;Fe<bt.childNodes.length;Fe++){var Ge=bt.childNodes[Fe].tagName;Ge==="TABLE"&&(bt.removeChild(bt.childNodes[Fe]),Fe--)}if(ggbHTML5LoadedScript!==null){var it=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');it!=null&&it.parentNode.removeChild(it)}var gt=document.createElement("script"),Kt=function(){Re(bt,tt)};gt.src=me+fe,ggbHTML5LoadedCodebaseIsWebSimple=he,ggbHTML5LoadedCodebaseVersion=ue,ggbHTML5LoadedScript=gt.src,mt("GeoGebra HTML5 codebase loaded: '"+me+"'.",tt),!z&&(!ne||ne=="5.0")?(he?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Kt()):me.requirejs?__webpack_require__.e(12).then(function(){var kt=[__webpack_require__(12)];Kt.apply(null,kt)}.bind(this)).catch(__webpack_require__.oe):(gt.onload=Kt,nt.appendChild(gt))}else Re(bt,tt);tt.height=Lt,tt.width=Pt},Be=function(nt,tt,rt){var Et=st(tt.width,tt.height,tt.borderColor,rt),bt=document.createElement("div");bt.style.position="relative",bt.style.display="block",bt.style.width=tt.width+"px",bt.style.height=tt.height+"px",bt.className="applet_screenshot applet_scaler"+(rt?" applet_screenshot_play":""),bt.appendChild(Et);var Pt=GGBAppletUtils.getScale(tt,nt,rt);rt?(nt.appendChild(et()),window.GGBT_wsf_view||(nt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bt,"66%"),nt.appendChild(bt),Pt!==1&&!isNaN(Pt)&&(GGBAppletUtils.scaleElement(bt,Pt),bt.style.width=tt.width+"px",bt.style.height=tt.height+"px",bt.parentNode.style.width=tt.width*Pt+"px",bt.parentNode.style.height=tt.height*Pt+"px"),xn.resize=function(){He(nt,Et,bt,rt)},window.addEventListener("resize",function(Lt){xn.resize()}),xn.resize()};function He(nt,tt,rt,Et){if(nt.contains(tt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(nt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(nt)}var bt=GGBAppletUtils.getScale(ve,nt,Et);rt.parentNode!==null&&(!isNaN(bt)&&bt!==1?(GGBAppletUtils.scaleElement(rt,bt),rt.parentNode.style.width=ve.width*bt+"px",rt.parentNode.style.height=ve.height*bt+"px"):(GGBAppletUtils.scaleElement(rt,1),rt.parentNode.style.width=ve.width+"px",rt.parentNode.style.height=ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(nt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}xn.onExitFullscreen=function(nt,tt){tt.appendChild(nt)};var Ye=function(nt,tt,rt,Et){Be(nt,tt,!0);for(var bt=function(){var dt=[];for(Lt=0;Lt<nt.childNodes.length;Lt++)dt.push(nt.childNodes[Lt]);if(window.GGBT_wsf_view){var Ze=window.GGBT_wsf_view.renderFullScreen(nt,tt.id),Ke=document.getElementById("fullscreencontainer"),de=jQuery(nt).find(".fullscreencontent");de.length>0?(Ze.remove(),de.attr("id","fullscreencontent").show(),jQuery(Ke).append(de),window.dispatchEvent(new Event("resize"))):We(Ze,tt,!1),window.GGBT_wsf_view.launchFullScreen(Ke)}else le=Et,We(nt,tt,!1);if(!window.GGBT_wsf_view)for(Lt=0;Lt<dt.length;Lt++)nt.removeChild(dt[Lt])},Pt=nt.getElementsByClassName("ggb_preview_play"),Lt=0;Lt<Pt.length;Lt++)Pt[Lt].addEventListener("click",bt,!1),Pt[Lt].addEventListener("ontouchstart",bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(nt),Ne()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},et=function(){var nt=document.createElement("div");if(nt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var tt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',rt=document.createElement("style");rt.styleSheet?rt.styleSheet.cssText=tt:rt.appendChild(document.createTextNode(tt)),document.getElementsByTagName("head")[0].appendChild(rt)}return nt},st=function(nt,tt,rt,Et){var bt=document.createElement("div");bt.className="ggb_preview",bt.style.position="absolute",bt.style.zIndex="90",bt.style.width=nt-2+"px",bt.style.height=tt-2+"px",bt.style.top="0px",bt.style.left="0px",bt.style.overflow="hidden",bt.style.backgroundColor="white";var Pt="lightgrey";rt!==void 0&&(rt==="none"?Pt="transparent":Pt=rt),bt.style.border="1px solid "+Pt;var Lt=document.createElement("img");if(Lt.style.position="relative",Lt.style.zIndex="1000",Lt.style.top="-1px",Lt.style.left="-1px",oe!==null&&Lt.setAttribute("src",oe),Lt.style.opacity=.7,Se!==null){var dt,Ze,Ke;if(!Et){dt=document.createElement("img"),dt.style.position="absolute",dt.style.zIndex="1001",dt.style.opacity=1,Lt.style.opacity=.3,Ze=360,Ze>nt/4*3&&(Ze=nt/4*3),Ke=Ze/5.8,dt.setAttribute("src",Se),dt.setAttribute("width",Ze),dt.setAttribute("height",Ke);var de=(nt-Ze)/2,xe=(tt-Ke)/2;dt.style.left=de+"px",dt.style.top=xe+"px",bt.appendChild(dt)}}return bt.appendChild(Lt),bt},yt=function(nt){return nt=nt.toLowerCase(),nt==="html5"||nt==="screenshot"?nt:"html5"},Ve=["web","webSimple","web3d","tablet","tablet3d","phone"],Qe=function(nt,tt){if(ue=nt,tt){pt(ue,!0);return}var rt=!ot;if(rt){var Et=Me(ue);!isNaN(Et)&&Et<4.4&&(rt=!1)}var bt,Pt;window.location.protocol.substr(0,4)==="http"?bt=window.location.protocol:bt="http:";var Lt=ue.indexOf("//");Lt>0?Pt=ue:Lt===0?Pt=bt+ue:Pt="https://www.geogebra.org/apps/5.2.814.0/";for(var dt in Ve)if(ue.slice(Ve[dt].length*-1)===Ve[dt]||ue.slice((Ve[dt].length+1)*-1)===Ve[dt]+"/"){pt(Pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rt&&!Ue.is3D&&!Ue.AV&&!Ue.SV&&!Ue.CV&&!Ue.EV2&&!Ue.CP&&!Ue.PC&&!Ue.DA&&!Ue.FI&&!Ue.PV&&!Le(ve.showToolBar)&&!Le(ve.showMenuBar)&&!Le(ve.showAlgebraInput)&&!Le(ve.enableRightClick)&&(!ve.appName||ve.appName=="classic")?Pt+="webSimple/":Pt+="web3d/",pt(Pt,!1)},pt=function(nt,tt){if(nt.requirejs){me=nt;return}nt.slice(-1)!=="/"&&(nt+="/"),me=nt,tt===null&&(tt=nt.indexOf("http")===-1),ie=tt,fe="web.nocache.js",he=!1;var rt=me.split("/");rt.length>1&&(!tt&&rt[rt.length-2]==="webSimple"?(fe="webSimple.nocache.js",he=!0):Ve.indexOf(rt[rt.length-2])>=0&&(fe=rt[rt.length-2]+".nocache.js")),rt=nt.split("/"),ue=rt[rt.length-3],ue.substr(0,4)==="test"?ue=ue.substr(4,1)+"."+ue.substr(5,1):(ue.substr(0,3)==="war"||ue.substr(0,4)==="beta")&&(ue="5.0");var Et=parseFloat(ue);Et!==NaN&&Et<5&&nt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Et+" is deprecated. Using version latest instead."),Qe("5.0",tt))},mt=function(nt,tt){window.console&&window.console.log&&(!tt||typeof tt.showLogging=="undefined"||tt.showLogging&&tt.showLogging!=="false")&&console.log(nt)};ve.material_id!==void 0?Ae(ft):ft();function ft(){var nt=Zt;ne!==null?nt=ne:parseFloat(nt)<5&&(nt="5.0"),Qe(nt,!1),z!==null&&pt(z,ie),pe=!0}return xn},GGBAppletUtils=function(){"use strict";function xn(){return window.GGBT_wsf_edit!==void 0}function Zt(pe,ne){ne!=1?(pe.style.transformOrigin="0% 0% 0px",pe.style.webkitTransformOrigin="0% 0% 0px",pe.style.transform="scale("+ne+","+ne+")",pe.style.webkitTransform="scale("+ne+","+ne+")",pe.style.maxWidth="initial",pe.querySelector(".ggb_preview")!==null&&(pe.querySelector(".ggb_preview").style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(pe.style.transform="none",pe.style.webkitTransform="none")}function ve(pe,ne,z,ae,re,se){var me=null;if(se!=null&&se!="")for(var ie=pe.parentNode;ie!=null;)if((" "+ie.className+" ").indexOf(" "+se+" ")>-1){me=ie;break}else ie=ie.parentNode;var le=0,ue=0,fe=0,he=0,oe=0,Se=0,Ce=0;if(me)le=me.offsetWidth,ue=Math.max(ae?me.offsetWidth:0,me.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(le=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),fe=le):(le=window.innerWidth,ue=window.innerHeight,fe=window.innerWidth),pe){var ye=pe.getBoundingClientRect();ye.left>0&&ye.left<=le&&(re===void 0||!re)&&(document.dir==="rtl"?(oe=le-ye.width-ye.left,Se=fe<=480?10:30):(Se=ye.left,oe=fe<=480?10:30),he=Se+oe)}if(pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var _e=pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(he=40,Ce=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he=0,Ce=40)}}return pe&&((z===void 0||!z)&&ne>0&&ne+he<le?le=ne:le-=he,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z===void 0||!z)&&(ue-=Ce)),{width:le,height:ue}}function Ue(pe,ne,z,ae,re){if(pe.isScreenshoGenerator)return 1;var se=ae!==void 0&&ae,me=pe.noScaleMargin!=null&&pe.noScaleMargin,ie=function(_e){return _e&&_e!=="false"},le=ie(pe.autoHeight),ue=ve(ne,pe.width,z,le,se&&window.GGBT_wsf_view||me,re),fe=parseInt(ue.width),he=pe.width,oe=pe.height;if(he===void 0){var Se=ne.querySelector(".appletParameters");Se&&(he=Se.offsetWidth,oe=Se.offsetHeight)}var Ce=fe/he,ye=se?1:ue.height/oe;return z!==void 0&&!z&&(Ce=Math.min(1,Ce),ye=Math.min(1,ye)),Math.min(Ce,ye)}function ot(pe,ne,z){var ae=1,re,se=!1;if(pe.hasOwnProperty("allowUpscale")&&(se=pe.allowUpscale),pe.hasOwnProperty("scale")&&(ae=parseFloat(pe.scale),(isNaN(ae)||ae===null||ae===0)&&(ae=1),ae>1&&(se=!0)),ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se=!0),!(pe.hasOwnProperty("disableAutoScale")&&pe.disableAutoScale))re=Ue(pe,ne,se,z,pe.scaleContainerClass);else return ae;return se&&(!pe.hasOwnProperty("scale")||ae===1)?re:Math.min(ae,re)}function x(pe){var ne=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),ae=pe.getBoundingClientRect(),re=(ne-ae.width)/2,se=(z-ae.height)/2;se<0&&(se=0),pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(re<40?pe.style.left="40px":pe.style.left=re+"px",pe.style.top=se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(se<40?pe.style.top="40px":pe.style.top=se+"px",pe.style.left=re+"px")}function ke(pe,ne){var z=pe.querySelector(".appletParameters");if(z){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ne.id!==z.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}if(z.parentElement&&/fullscreen/.test(z.parentElement.className))return;var ae=ot(ne,pe);xn()&&z.setAttribute("data-param-scale",ae);for(var re=null,se=0;se<pe.childNodes.length;se++)if(pe.childNodes[se].className!==void 0&&pe.childNodes[se].className.match(/^applet_scaler/)){re=pe.childNodes[se];break}if(re!==null&&re.querySelector(".noscale")!==null)return;var me=ne.id!==void 0?ne.id:"ggbApplet",ie=window[me];(ie==null||!ie.recalculateEnvironments)&&re!==null&&!re.className.match(/fullscreen/)&&(re.parentNode.style.transform="",!isNaN(ae)&&ae!==1?(re.parentNode.style.width=ne.width*ae+"px",re.parentNode.style.height=ne.height*ae+"px",Zt(re,ae)):(Zt(re,1),re.parentNode.style.width=ne.width+"px",re.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&x(pe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(z).parents(".content-added-content"))}}return{responsiveResize:ke,isFlexibleWorksheetEditor:xn,positionCenter:x,getScale:ot,scaleElement:Zt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var xn=n.location.search;return xn.indexOf(J)!=-1||xn.indexOf(K)!=-1}function q(xn,Zt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(xn){var Zt=s[L].bindings;s[L].bindings=function(){for(var ve=Zt?Zt():{},Ue=xn[webModule.__softPermutationId],ot=O;ot<Ue.length;ot++){var x=Ue[ot];ve[x[O]]=x[P]}return ve}};var t;function u(){return v(),t}function v(){if(!t){var xn=o.createElement(Q);if(xn.id=L,xn.style.cssText=R+S,xn.tabIndex=-1,o.body.appendChild(xn),t=xn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Zt=document.compatMode==U?V:W;t.write(Zt+X),t.close()}}}function w(xn){function Zt(Ue){function ot(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var x=ot();if(x){Ue();return}function ke(){if(!x){if(!ot())return;x=!0,Ue(),o.removeEventListener&&o.removeEventListener(Z,ke,!1),pe&&clearInterval(pe)}}o.addEventListener&&o.addEventListener(Z,ke,!1);var pe=setInterval(function(){ke()},$)}function ve(Ue){var ot=u(),x=ot.body,ke=ot.createElement(_);ke.language=ab,ke.crossOrigin=W,ke.src=Ue,webModule.__errFn&&(ke.onerror=function(){webModule.__errFn(L,new Error(bb+Ue))}),x.appendChild(ke)}Zt(function(){ve(xn)})}webModule.__startLoadingFragment=function(xn){return C(xn)},webModule.__installRunAsyncCode=function(xn){var Zt=u(),ve=Zt.body,Ue=Zt.createElement(_);Ue.language=ab,Ue.text=xn,ve.appendChild(Ue),ve.removeChild(Ue)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(xn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(xn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(xn){var Zt=c[xn];return Zt==null?null:Zt},r=d,webModule.__errFn=e}function B(){function xn(pe){var ne=pe.lastIndexOf(rb);ne==-1&&(ne=pe.length);var z=pe.indexOf(sb);z==-1&&(z=pe.length);var ae=pe.lastIndexOf(tb,Math.min(z,ne));return ae>=O?pe.substring(O,ae+P):W}function Zt(pe){if(!pe.match(/^\w+:\/\//)){var ne=o.createElement(ub);ne.src=pe+vb,pe=xn(ne.src)}return pe}function ve(){var pe=__gwt_getMetaProperty(wb);return pe!=null?pe:W}function Ue(){for(var pe=o.getElementsByTagName(_),ne=O;ne<pe.length;++ne)if(pe[ne].src.indexOf(xb)!=-1)return xn(pe[ne].src);return W}function ot(){var pe=o.getElementsByTagName(yb);return pe.length>O?pe[pe.length-P].href:W}function x(){var pe=o.location;return pe.href==pe.protocol+zb+pe.host+pe.pathname+pe.search+pe.hash}var ke=ve();return ke==W&&(ke=Ue()),ke==W&&(ke=ot()),ke==W&&x()&&(ke=xn(o.location.href)),ke=Zt(ke),ke}function C(xn){return xn.match(/^\//)||xn.match(/^[a-zA-Z]+:\/\//)?xn:webModule.__moduleBase+xn}function D(){var xn=[],Zt=O,ve=[],Ue=[];function ot(pe){var ne=Ue[pe](),z=ve[pe];if(ne in z)return ne;var ae=[];for(var re in z)ae[z[re]]=re;throw r&&r(pe,ae,ne),null}if(__gwt_isKnownPropertyValue=function(pe,ne){return ne in ve[pe]},webModule.__getPropMap=function(){var pe={};for(var ne in ve)ve.hasOwnProperty(ne)&&(pe[ne]=ot(ne));return pe},webModule.__computePropValue=ot,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var x;try{x=Cb;var ke=x.indexOf(Db);ke!=-1&&(Zt=parseInt(x.substring(ke+P),$),x=x.substring(O,ke))}catch(pe){}return webModule.__softPermutationId=Zt,C(x+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(xn,Zt,ve){"use strict";ve.d(Zt,{Ax:function(){return ke},Ds:function(){return pe},KI:function(){return z},SI:function(){return x},f1:function(){return ot}});var Ue=ve(11320);function ot(ae){let re=!0;if(ae.length>0){for(let se=0;se<ae.length;se++)if(ae[se].compile_success==0||!ae[se].compile_success){re=!1;break}}else re=!1;return re}function x(ae,re=""){let se=[];for(let me=0;me<ae.length;me++){let ie=ae[me],le=re?`${re}/${ie.name}`:`${ie.name}`;se.push({title:ie.name,type:ie.type,isLeaf:ie.type!=="tree",key:le})}return se}function ke(ae,re,se){for(let me=0;me<ae.length;me++){let ie=ae[me];if(ie.key===re){ie.children=se;break}ie.children&&ke(ie.children,re,se)}return ae}function pe(ae,re,se){let me;return function(){let ie=this,le=arguments,ue=function(){me=null,se||ae.apply(ie,le)},fe=se&&!me;clearTimeout(me),me=setTimeout(ue,re),fe&&ae.apply(ie,le)}}const ne=!0,z=Ue.Z.API_SERVER},63205:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return me}});var Ue=ve(67294),ot={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},x=ve(94184),ke=ve.n(x),pe=ve(57953),ne=ve(15979),z=ve(33170),ae=ve(28706),re=(ie,le,ue)=>new Promise((fe,he)=>{var oe=ye=>{try{Ce(ue.next(ye))}catch(_e){he(_e)}},Se=ye=>{try{Ce(ue.throw(ye))}catch(_e){he(_e)}},Ce=ye=>ye.done?fe(ye.value):Promise.resolve(ye.value).then(oe,Se);Ce((ue=ue.apply(ie,le)).next())}),me=({data:ie,className:le,fullWidth:ue,style:fe={},onClose:he,onOk:oe,showFullTools:Se,noAssociationId:Ce})=>{const ye=(0,Ue.useRef)(null),_e=(0,Ue.useRef)(null),Me=(0,Ue.useRef)(null),we=(0,Ue.useRef)(null),[Ne,Ae]=(0,Ue.useState)(!1),[De,Ie]=(0,Ue.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ue.useEffect)(()=>{Me.current||(Me.current=document.createElement("style"),document.head.appendChild(Me.current)),ie!=null&&ie.visible?(document.body.setAttribute("data-custom","y-hidden"),Me.current.innerHTML=" html { overflow-y: hidden; }",ie!=null&&ie.src&&Pe()):(document.body.removeAttribute("data-custom"),Me.current&&(document.head.removeChild(Me.current),Me.current=null))},[ie==null?void 0:ie.visible]);const Pe=()=>re(void 0,null,function*(){Ae(!0),Ie("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ye=yield(0,ae.ZJ)(ie==null?void 0:ie.src);ye.current.src="",ye.current.src=Ye,ye.current.onload=function(){He()},Ae(!1),Ie("")}),Le=()=>{document.body.removeAttribute("data-custom"),Me.current.innerHTML=" ",he()},We=Ye=>re(void 0,null,function*(){Ae(!0),Ie("\u6B63\u5728\u4FDD\u5B58\u4E2D");const et=yield(0,z.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ie.title,file:Ye.dataUrl}});et!=null&&et.id&&!Ce?(yield(0,z.ZP)(`/api/attachments/${ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:et==null?void 0:et.id,settings:JSON.stringify(Ye.state)}})).status===0&&oe():et!=null&&et.id&&oe(et),document.body.removeAttribute("data-custom"),Me.current.innerHTML=" ",Ae(!1),Ie("")}),Be=()=>{const Ye=document.querySelector('a[href="https://markerjs.com/"]');Ye&&Ye.parentNode&&(Ye.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(st=>{const yt=document.querySelector(st.name);yt&&yt.setAttribute("title",st.title)})},He=()=>{_e.current=new ne.hP(ye.current),_e.current.targetRoot=we.current,_e.current.addEventListener("render",We),_e.current.addEventListener("beforeclose",Le),Se&&(_e.current.availableMarkerTypes=_e.current.ALL_MARKER_TYPES,_e.current.uiStyleSettings.redoButtonVisible=!0,_e.current.uiStyleSettings.notesButtonVisible=!0,_e.current.uiStyleSettings.zoomButtonVisible=!0,_e.current.uiStyleSettings.zoomOutButtonVisible=!0,_e.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=_e.current.uiStyleSettings,_e.current.show(),ie!=null&&ie.snapshotData&&_e.current.restoreState(ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Be()},300)};return Ue.createElement(Ue.Fragment,null,(ie==null?void 0:ie.visible)&&Ue.createElement(pe.Z,{spinning:Ne,tip:De,style:{position:"absolute"}},Ue.createElement("div",{ref:we,className:ke()(ot.imageDimensions,le,ue?ot.fullWidth:""),style:fe},Ue.createElement("img",{className:ot.img,ref:ye}))))}},36527:function(xn,Zt,ve){"use strict";var Ue=ve(67294),ot=ve(71230),x=ve(15746),ke=ve(66368),pe=ve(71577),ne=ve(35598),z=ve(71736),ae=ve(84279),re=ve(67294);const se=(0,Ue.forwardRef)(({callback:me,showSaveButton:ie,value:le=""},ue)=>{const fe=(0,Ue.useRef)(),he=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],oe=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],Se=_e=>{fe.current.setValue(fe.current.getValue()+" "+_e.value+" ")},Ce=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:re.createElement(ot.Z,{className:z.Z.lists,gutter:[10,10]},he.map((_e,Me)=>re.createElement(x.Z,{flex:"110px",className:z.Z.item},re.createElement("div",null,re.createElement(ne.Z,{value:`$$${_e.value}$$`}),_e.name),re.createElement("div",{className:z.Z.children},_e.children.map((we,Ne)=>re.createElement("div",{key:Ne},re.createElement("h1",null,we.name),re.createElement(ot.Z,{gutter:[10,10]},we.data.map((Ae,De)=>re.createElement(x.Z,{key:De,onClick:()=>Se(Ae),className:z.Z.diamond},re.createElement(ne.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:re.createElement(ot.Z,{className:z.Z.lists,gutter:[10,10]},oe.map((_e,Me)=>re.createElement(x.Z,{flex:"110px",className:z.Z.item},re.createElement("div",null,re.createElement(ne.Z,{value:"`$$"+_e.value+"$$`"}),_e.name),re.createElement("div",{className:z.Z.children},_e.children.map((we,Ne)=>re.createElement("div",{key:Ne},we.name&&re.createElement("h1",null,we.name),re.createElement(ot.Z,{gutter:[10,10]},we.data.map((Ae,De)=>re.createElement(x.Z,{key:De,onClick:()=>Se(Ae),className:z.Z.diamond},re.createElement(ne.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],ye=()=>{var _e=document.createElement("div");_e.innerHTML=fe.current.getValue();var Me=_e.innerText;return me&&me(Me),Me};return(0,Ue.useImperativeHandle)(ue,()=>({getData:ye})),re.createElement("div",{className:z.Z.mathWrap},re.createElement(ke.default,{defaultActiveKey:"1",items:Ce}),re.createElement("math-field",{locale:"zh_cn",className:z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:fe,style:{width:800,marginTop:30,fontSize:18}},le||""),ie&&re.createElement("div",{className:z.Z.button},re.createElement(pe.ZP,{size:"large",onClick:ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Zt.Z=se},60076:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ke}});var Ue=ve(67294),ot=ve(33054),x=ve(67294),ke=({defaultX:pe="40%",leftChild:ne,rightChild:z,className:ae,hideResize:re=!1})=>{const[se,me]=(0,Ue.useState)(pe),ie=(0,Ue.useRef)();function le(){ie.current=!0}(0,Ue.useEffect)(()=>{function he(Se){ie.current&&(ot.Z.publish("resize-move-bar",Se),me(Se.pageX))}function oe(){ie.current=!1}return window.addEventListener("mousemove",he),window.addEventListener("mouseup",oe),()=>{window.removeEventListener("mousemove",he),window.removeEventListener("mouseup",oe)}},[]);const ue=typeof se=="number"&&se!==.01?`${se}px`:pe,fe=`calc(100% - ${re?"0px":"4px"} - ${ue})`;return x.createElement("div",{className:`split-panel-container ${ae}`},x.createElement("section",{style:{width:ue,display:se===.01?"none":""}},ne),x.createElement("section",{className:"resize-x-bar",onMouseDown:le},x.createElement("a",{className:"btn-resize"},x.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},x.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),x.createElement("section",{style:{width:fe}},z))}},57444:function(xn,Zt,ve){"use strict";ve.d(Zt,{h:function(){return _e}});var Ue=ve(67294),ot=ve(11713),x=ve(22150),ke=ve(71577),pe=ve(4631),ne=ve.n(pe),z=ve(71749),ae=ve(30483),re=Object.defineProperty,se=Object.defineProperties,me=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(Me,we,Ne)=>we in Me?re(Me,we,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Me[we]=Ne,he=(Me,we)=>{for(var Ne in we||(we={}))le.call(we,Ne)&&fe(Me,Ne,we[Ne]);if(ie)for(var Ne of ie(we))ue.call(we,Ne)&&fe(Me,Ne,we[Ne]);return Me},oe=(Me,we)=>se(Me,me(we));const Se=ot.default.Option,Ce={labelCol:{span:4},wrapperCol:{span:20}},ye={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Zt.Z=({callback:Me,onCancel:we})=>{const[Ne,Ae]=(0,Ue.useState)("python");function De(Pe){Ae(ye[Pe][1])}function Ie(Pe){Me(Pe)}return Ue.createElement(x.default,oe(he({},Ce),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ie,style:{width:500}}),Ue.createElement(x.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ue.createElement(ot.default,{getPopupContainer:Pe=>Pe.parentNode,onChange:De},Object.keys(ye).map(Pe=>Ue.createElement(Se,{key:Pe,value:Pe},ye[Pe][0])))),Ue.createElement(x.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ue.createElement(_e,{mode:Ne})),Ue.createElement("div",{className:"flex-container flex-end"},Ue.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(ke.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))};function _e({value:Me,onChange:we,mode:Ne,options:Ae={}}){const De=(0,Ue.useRef)(),[Ie,Pe]=(0,Ue.useState)();return(0,Ue.useEffect)(()=>{if(Ie){let Le=function(We){const Be=We.getValue();we&&we(Be)};return Ie.on("change",Le),()=>{Ie.off("change",Le)}}},[Ie,we]),(0,Ue.useEffect)(()=>{Ie&&Ie.setOption("mode",Ne)},[Ie,Ne]),(0,Ue.useEffect)(()=>{Ie&&(Me!==Ie.getValue()||Me==="")&&setTimeout(()=>{Ie.setValue(Me||"")},300)},[Ie,Me]),(0,Ue.useEffect)(()=>{if(De.current&&!Ie){const Le=ne().fromTextArea(De.current,he({mode:Ne,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Pe(Le)}},[De.current,Ie]),Ue.createElement("div",{className:"my-codemirror-container"},Ue.createElement("textarea",{ref:De}))}},91304:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Hn}});var Ue=ve(67294),ot=ve(4631),x=ve.n(ot),ke=ve(91033),pe=ve(71749),ne=ve(57341),z=ve(82801),ae=ve(88386),re=ve(49047),se=ve(80785),me=ve(35598),ie=({value:jn="",className:Gt,showTextOnly:Xt,showLines:rn,style:An={}})=>{const zt=(0,Ue.useMemo)(()=>"",[jn]);return Ue.createElement(Ue.Fragment,null,Ue.createElement("div",{dangerouslySetInnerHTML:{__html:zt}}))},le=ve(67294),ue=Object.defineProperty,fe=Object.defineProperties,he=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ye=(jn,Gt,Xt)=>Gt in jn?ue(jn,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):jn[Gt]=Xt,_e=(jn,Gt)=>{for(var Xt in Gt||(Gt={}))Se.call(Gt,Xt)&&ye(jn,Xt,Gt[Xt]);if(oe)for(var Xt of oe(Gt))Ce.call(Gt,Xt)&&ye(jn,Xt,Gt[Xt]);return jn},Me=(jn,Gt)=>fe(jn,he(Gt));let we=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ne({onActionCallback:jn,title:Gt,icon:Xt,actionName:rn,className:An="",children:zt}){function tn(){jn(rn)}return le.createElement("a",{title:Gt,className:An,onClick:tn},le.createElement("i",{className:`${Xt}`}),zt)}var Ae=({watch:jn,showNullButton:Gt,showNullProgramButton:Xt,onActionCallback:rn,fullScreen:An,insertTemp:zt,hidetoolBar:tn,extraUse:bn})=>{const wn=[...we,{title:`${jn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${jn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return le.createElement("ul",{className:"markdown-toolbar-container"},!tn&&wn.map((zn,Un)=>le.createElement("li",{key:Un},zn.actionName?le.createElement(Ne,Me(_e({},zn),{onActionCallback:rn})):le.createElement("span",{className:"v-line"}))),Gt?le.createElement("li",null,le.createElement(Ne,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rn},le.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Xt?le.createElement(le.Fragment,null,le.createElement("li",null,le.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rn},le.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),le.createElement("li",null,le.createElement(Ne,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rn},le.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,zt&&le.createElement("li",null,le.createElement(Ne,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${zt}`,onActionCallback:rn},le.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),bn&&le.createElement("li",null,bn),le.createElement("li",{className:"btn-full-screen"},le.createElement(Ne,{icon:`${An?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:An?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rn})))},De=ve(76621),Ie=ve(22150),Pe=ve(69677),Le=ve(71577),We=Object.defineProperty,Be=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,yt=(jn,Gt,Xt)=>Gt in jn?We(jn,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):jn[Gt]=Xt,Ve=(jn,Gt)=>{for(var Xt in Gt||(Gt={}))et.call(Gt,Xt)&&yt(jn,Xt,Gt[Xt]);if(Ye)for(var Xt of Ye(Gt))st.call(Gt,Xt)&&yt(jn,Xt,Gt[Xt]);return jn},Qe=(jn,Gt)=>Be(jn,He(Gt));const pt={labelCol:{span:4},wrapperCol:{span:20}};var mt=({callback:jn,onCancel:Gt})=>{function Xt(rn){jn(rn)}return Ue.createElement(Ie.default,Qe(Ve({},pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Xt,style:{width:500}}),Ue.createElement(Ie.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ue.createElement(Pe.default,null)),Ue.createElement(Ie.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ue.createElement(Pe.default,null)),Ue.createElement("div",{className:"flex-container flex-end"},Ue.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(Le.ZP,{type:"ghost",onClick:Gt},"\u53D6\u6D88")))},ft=ve(57444),nt=ve(70859),tt=ve(14446),rt=ve(71230),Et=ve(63205),bt=ve(67294),Pt=({callback:jn,onCancel:Gt})=>{const Xt=document.createElement("canvas"),rn=Xt.getContext("2d");Xt.width=1e3,Xt.height=800,rn.fillStyle="#ffffff",rn.fillRect(0,0,Xt.width,Xt.height);const An=Xt.toDataURL("image/png");return bt.createElement(tt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},bt.createElement(rt.Z,{style:{height:"100vh"}},bt.createElement(Et.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:An,visible:!0,title:String(Date.now())},onOk:zt=>{jn({src:zt.url})},onClose:Gt})))},Lt=ve(72565),dt=ve(15746),Ze=ve(2453),Ke={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},de=ve(67294),ze=(0,Ue.forwardRef)(({onCancel:jn,editImgId:Gt,callback:Xt},rn)=>{let An=(0,Ue.useRef)(),zt=(0,Ue.useRef)(),tn=(0,Ue.useRef)(),bn=(0,Ue.useRef)(!1);const wn=(0,Ue.useRef)(!1);console.log("ref:",rn);const[zn,Un]=(0,Ue.useState)(0),[kr,Zr]=(0,Ue.useState)("100vh");return(0,Ue.useEffect)(()=>{Un(1);try{indexedDB.databases().then(Ir=>{Ir.forEach(Er=>indexedDB.deleteDatabase(Er.name))})}catch(Ir){}},[]),(0,Ue.useImperativeHandle)(rn,()=>({setHeight:Zr})),de.createElement("div",{ref:wn,className:"body-overflow-initial"},de.createElement(Lt.Z,{width:"100vw",height:kr,footer:null,closable:!0,placement:"bottom",open:!!zn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ke.drawerWrap}`,onClose:()=>{window.saveDrawData(Ir=>{Xt({src:`/api/attachments/${Ir}`,id:Ir})})},title:de.createElement(rt.Z,{align:"middle"},de.createElement(dt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),de.createElement(dt.Z,{onClick:()=>{Zr(kr==="60px"?"100vh":"60px")}},de.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),de.createElement(dt.Z,{onClick:()=>{window.saveDrawData(Ir=>{if(Ir===null){Ze.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Ze.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Xt({src:`/api/attachments/${Ir}`,id:Ir,disabledClose:!0})})}},de.createElement(Le.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},de.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Gt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:zt})))}),$e=ve(11320),Ee=ve(78045),Re=ve(31795);const Fe=Ee.ZP.Group,Ge={margin:"0 8px"};var it=({callback:jn,onCancel:Gt})=>{function Xt(rn){jn(rn)}return Ue.createElement(Ie.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Xt},Ue.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ue.createElement("span",{style:Ge},"\u5355\u5143\u683C\u6570\uFF1A"),Ue.createElement("span",{style:Ge},"\u884C\u6570"),Ue.createElement(Ie.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ue.createElement(Re.Z,null)),Ue.createElement("span",{style:Ge},"\u5217\u6570"),Ue.createElement(Ie.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ue.createElement(Re.Z,null))),Ue.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ue.createElement("span",{style:Ge},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ue.createElement(Ie.default.Item,{name:"align"},Ue.createElement(Fe,null,Ue.createElement(Ee.ZP,{value:"default"},Ue.createElement("i",{className:"fa fa-align-justify"})),Ue.createElement(Ee.ZP,{value:"left"},Ue.createElement("i",{className:"fa fa-align-left"})),Ue.createElement(Ee.ZP,{value:"center"},Ue.createElement("i",{className:"fa fa-align-center"})),Ue.createElement(Ee.ZP,{value:"right"},Ue.createElement("i",{className:"fa fa-align-right"}))))),Ue.createElement("div",{className:"flex-container flex-end"},Ue.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(Le.ZP,{type:"ghost",onClick:Gt},"\u53D6\u6D88")))},gt=ve(47897),Kt=ve(61016),kt=ve.n(Kt),Wt=(0,Ue.forwardRef)(({use3d:jn,width:Gt,height:Xt,callback:rn,showSaveButton:An},zt)=>{const tn=(0,Ue.useRef)(),bn=(0,Ue.useRef)(),[wn,zn]=(0,Ue.useState)(!1),Un=(0,Ue.useRef)({id:tn,appName:"graphing",width:Gt||1e3,height:Xt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ue.useEffect)(()=>{bn.current=new(kt())(Un.current,!0),window.onload=function(){bn.current.inject("applet_container")}},[]);const kr=()=>{var Zr=window.ggbApplet.getPNGBase64(1,!0,72);return rn&&rn(Zr),Zr};return(0,Ue.useEffect)(()=>{Un.current.appName=wn?"3D":"graphing",bn.current.inject("applet_container")},[wn]),(0,Ue.useEffect)(()=>{zn(jn)},[jn]),(0,Ue.useImperativeHandle)(zt,()=>({getImgData:kr})),Ue.createElement(Ue.Fragment,null,Ue.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:tn}),Ue.createElement(rt.Z,{align:"middle"},Ue.createElement(dt.Z,{flex:1},Ue.createElement(gt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:wn,onChange:Zr=>zn(Zr)})),Ue.createElement(dt.Z,null,Ue.createElement(Le.ZP,{size:"large",onClick:kr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),jt=ve(36527),Vt=ve(25934);const _t="link",sn="upload-image",Dt="add-flowchart",xt="draw-image",en="add-flowchart",an="code-block",fn="add-table",Tn="------------",ar={default:Tn,left:`:${Tn}`,center:`:${Tn}:`,right:`${Tn}:`};var pr=ve(99914),Ar=(jn,Gt,Xt)=>new Promise((rn,An)=>{var zt=wn=>{try{bn(Xt.next(wn))}catch(zn){An(zn)}},tn=wn=>{try{bn(Xt.throw(wn))}catch(zn){An(zn)}},bn=wn=>wn.done?rn(wn.value):Promise.resolve(wn.value).then(zt,tn);bn((Xt=Xt.apply(jn,Gt)).next())});function Dr(){}let dr=0;const zr=1e4,ai="\u2581",ki="@\u2581\u2581@",Ni="@\u2581@",xi=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,cn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ir(jn){return/^\d+$/.test(jn)?`${jn}px`:jn}const Yn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Rr={[Yn+"-B"]:"bold",[Yn+"-I"]:"italic"},Nn={[_t]:"\u6DFB\u52A0\u94FE\u63A5",[an]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[sn]:"\u6DFB\u52A0\u56FE\u7247",[xt]:"\u6DFB\u52A0\u753B\u56FE",[Dt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[fn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Hn=({defaultValue:jn="",onChange:Gt,width:Xt="100%",height:rn=400,miniToolbar:An=!1,isFocus:zt=!1,watch:tn,insertTemp:bn,mode:wn="markdown",id:zn="markdown-editor-id",showResizeBar:Un=!1,noStorage:kr=!1,showNullButton:Zr=!1,showNullProgramButton:Ir=!1,hidetoolBar:Er=!1,fullScreen:Br=!1,onBlur:Pr,onCMBeforeChange:nn,onFullScreen:Jt,className:pn="",disablePaste:Qn=!1,disabled:hr=!1,disabledFill:Fn=!1,placeholder:Vn="",values:er="",extraUse:Sr,onAddBlank:Nr})=>{const[In,Gr]=(0,Ue.useState)(null),[ei,aa]=(0,Ue.useState)(jn),[ca,qi]=(0,Ue.useState)(tn),[Oi,oa]=(0,Ue.useState)(Br),[Bi,Di]=(0,Ue.useState)(""),[_a,_i]=(0,Ue.useState)(0),[ta,Ea]=(0,Ue.useState)(rn),[Va,Na]=(0,Ue.useState)(!1),Pi=(0,Ue.useRef)((0,Vt.Z)()),yn=(0,Ue.useRef)(!1),dn=(0,Ue.useRef)(),[Kn,or]=(0,Ue.useState)(0),[xr,Wr]=(0,Ue.useState)(0),oi=(0,Ue.useRef)(),pi=(0,Ue.useRef)(),Ei=(0,Ue.useRef)(),mi=(0,Ue.useRef)(),Li=(0,Ue.useRef)(),ea=(0,Ue.useRef)(),ni=()=>Ar(void 0,null,function*(){var Pn;const Bn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Pi.current}});(Pn=Bn==null?void 0:Bn.attachments)!=null&&Pn.length&&(console.log("cm:",In,oi),Bn.attachments.map(Sn=>{Sn.content_type.indexOf("image")>-1?In.replaceSelection(``):Sn.content_type.indexOf("video")>-1?In.replaceSelection(`<video width="100%" controls src="${$e.Z.API_SERVER}/api/attachments/${data.id}"></video>`):Sn.content_type.indexOf("pdf")>-1?In.replaceSelection(`<a href="${$e.Z.API_SERVER}/api/attachments/${Sn.id}?type=${Sn.content_type}&disposition=inline" target="_blank">${Sn.name}</a>`):In.replaceSelection(`[${Sn.name}](${$e.Z.API_SERVER}/api/attachments/${Sn.id}?type=${Sn.content_type})`)}))});(0,Ue.useEffect)(()=>{const Pn=window.scrollY||window.pageYOffset;aa(er),In==null||In.setValue(er),window.scrollTo(0,Pn)},[er]),(0,Ue.useEffect)(()=>{Jt==null||Jt(Oi)},[Oi]),(0,Ue.useEffect)(()=>{if(oi.current){let Pn=function(Sn,Xn){var vr;if(Qn){Xn.preventDefault();return}const rr=Xn.clipboardData;if(rr){const lr=rr.types.toString(),fr=rr.items;if(lr==="Files"||rr.types.indexOf("Files")>-1){if(Xn.preventDefault(),wn=="stex")return;try{let yr=fr[1];((vr=fr[0])==null?void 0:vr.kind)==="file"&&(yr=fr[0]);const Mr=yr.getAsFile(),Ot=Mr.name.split(".").pop();(0,nt.I)(Mr,Rt=>{var un,Qt,_n;Rt.id?((un=Mr==null?void 0:Mr.type)==null?void 0:un.indexOf("image"))>-1?Bn.replaceSelection(`<img width="100%" src="/api/attachments/${Rt.id}?type=${Rt.content_type})" alt="" />`):((Qt=Mr==null?void 0:Mr.type)==null?void 0:Qt.indexOf("video"))>-1?Bn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Rt.id}"></video>`):((_n=Mr==null?void 0:Mr.type)==null?void 0:_n.indexOf("pdf"))>-1?Bn.replaceSelection(`<a href="/api/attachments/${Rt.id}?type=${Mr.type}&disposition=inline" target="_blank">${Mr.name}</a>`):cn.includes(Ot)?Bn.replaceSelection(`<a href="/api/attachments/${Rt.id}?type=office&disposition=inline" target="_blank">${Mr.name}</a>`):Bn.replaceSelection(`[${Mr.name}](/api/attachments/${Rt.id}?type=${Rt.content_type})`):(Rt==null?void 0:Rt.status)===401&&(Ze.ZP.warning((Rt==null?void 0:Rt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(yr){Ze.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Bn=x().fromTextArea(oi.current,{mode:wn,lineNumbers:!An,lineWrapping:!0,value:jn,autoCloseTags:!Ir,autoCloseBrackets:!0});return Bn.on("keyup",function(Sn,Xn){Xn.keyCode===8&&(Sn.getValue()==""?Bn.setOption("placeholder",Vn):Bn.setOption("placeholder",null))}),Bn.on("keydown",function(Sn,Xn){if(Xn.keyCode===8){var vr=hn(Sn);vr&&Xn.preventDefault()}}),zt&&Bn.focus(),Bn.on("paste",Pn),Bn.on("dragleave",function(Sn,Xn){pi.current.classList.remove("mouse-hover-md")}),hr&&Bn.on("beforeChange",function(Sn,Xn){(Xn.origin==="paste"||Xn.origin==="+input")&&Xn.cancel()}),Gr(Bn),()=>{Bn.off("paste",Pn)}}},[]);const Mn=(0,Ue.useCallback)(()=>{if(pi.current)try{}catch(Pn){console.log(Pn,"---- to set md editor body height")}},[ta,pi,Oi]);(0,Ue.useEffect)(()=>{function Pn(){let Bn=new ke.Z(Sn=>{for(let Xn of Sn)(Xn.target.offsetHeight>0||Xn.target.offsetWidth>0)&&(Mn(),In.setSize("100%","100%"),In.refresh())});return Bn.observe(oi.current.parentElement),Bn}if(In){const Bn=Pn();return()=>{var Sn,Xn;(Sn=oi.current)!=null&&Sn.parentElement&&Bn.unobserve((Xn=oi.current)==null?void 0:Xn.parentElement)}}},[In,Mn]),(0,Ue.useEffect)(()=>{if(In){let Pn=[];for(const[Bn,Sn]of Object.entries(Rr)){let Xn={[Bn]:()=>{On(Sn)}};Pn.push(Xn),In.addKeyMap(Xn)}return dn.current=setInterval(()=>{yn.current&&ni()},4e3),()=>{clearInterval(dn.current);for(let Bn of Pn)In.removeKeyMap(Bn)}}},[In]),(0,Ue.useEffect)(()=>{Br!==Oi&&oa(Br)},[Br]),(0,pr.Z)(()=>{if(!kr&&_a>0){let Pn=new Date().getTime(),Bn=window.sessionStorage.getItem(zn);Pn>=_a+zr&&(!Bn||Bn!==ei)&&(window.sessionStorage.setItem(zn,ei),Na(!0))}},zr),(0,Ue.useEffect)(()=>{qi(tn)},[In,tn]),(0,Ue.useEffect)(()=>{In&&zt&&In.focus()},[In,zt]),(0,Ue.useEffect)(()=>{if(ca&&In){let Pn=function(Sn){let Xn=Sn.target;if(mi.current){let vr=Xn.scrollTop/Xn.scrollHeight;mi.current.scrollTop=mi.current.scrollHeight*vr}};const Bn=In.getScrollerElement();return Bn.addEventListener("scroll",Pn),()=>{Bn.removeEventListener("scroll",Pn)}}},[In,ca]),(0,Ue.useEffect)(()=>{if(In&&nn){let Pn=function(Bn,Sn){nn(Bn,Sn)};return In.on("beforeChange",Pn),()=>{In.off("beforeChange",Pn)}}},[In,nn]),(0,Ue.useEffect)(()=>{if(In&&Pr){let Pn=function(){Pr(In.getValue())};return In.on("blur",Pn),()=>{In.off("blur",Pn)}}},[In,Pr]);function hn(Pn,Bn){var Sn=Pn.getDoc(),Xn=Sn.getCursor(),vr=Sn.getLine(Xn.line),rr=vr.charAt(Xn.ch-1),lr=vr.lastIndexOf("@\u2581@",Xn.ch),fr=vr.lastIndexOf("@\u2581\u2581@",Xn.ch),yr=lr>fr?lr:fr,Mr=lr>fr?3:4;if(ki.indexOf(rr)===-1)return null;if(console.log("change1:",Bn,Pn,vr,Xn,yr,lr,fr,rr),yr>=0&&Xn.ch-yr<5){var Ot=yr+Mr;return Sn.replaceRange("",{line:Xn.line,ch:yr},{line:Xn.line,ch:Ot}),{line:Xn.line,ch:Ot}}return null}(0,Ue.useEffect)(()=>{if(In){let Pn=function(Bn,Sn){const Xn=Bn.getValue();aa(Xn),_i(new Date().getTime()),Bn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Gt&&(Ir?Gt(Xn,on(Xn)):Gt(Xn))};return In.on("change",Pn),()=>{In.off("change",Pn)}}},[In,Gt]),(0,Ue.useEffect)(()=>{if(In)if(jn==null)In.setValue(""),aa("");else{const Pn=window.scrollY||window.pageYOffset;jn!==In.getValue()&&(In.setValue(jn),aa(jn),In.setCursor(hr?1:In.lineCount(),0),window.scrollTo(0,Pn))}},[In,jn]);const On=(0,Ue.useCallback)(Pn=>{const Bn=In.getCursor(),Sn=In.getSelection();let Xn=Sn.split(`
|
|
|
`);switch(Pn){case"bold":return In.replaceSelection("**"+Sn+"**"),Sn===""&&In.setCursor(Bn.line,Bn.ch+2),In.focus();case"italic":return In.replaceSelection("*"+Sn+"*"),Sn===""&&In.setCursor(Bn.line,Bn.ch+1),In.focus();case"code":return In.replaceSelection("`"+Sn+"`"),Sn===""&&In.setCursor(Bn.line,Bn.ch+1),In.focus();case"inline-latex":return Di("inline-latex"),In.focus();case"latex":return In.replaceSelection("```latex\n"+Sn+"\n```"),In.setCursor(Bn.line+1,Sn.length+1),In.focus();case"line-break":return In.replaceSelection(`<br/>
|
|
|
`),In.focus();case"list-ul":return Sn===""?In.replaceSelection("- "+Sn):In.replaceSelection(Xn.map(vr=>vr===""?"":`- ${vr}`).join(`
|
|
|
`)),In.focus();case"list-ol":return Sn===""?In.replaceSelection("1. "+Sn):In.replaceSelection(Xn.map((vr,rr)=>vr===""?"":`${rr+1}. ${vr}`).join(`
|
|
|
`)),In.focus();case"add-null-ch":Nr==null||Nr();return;case"add-signal":return Sn===""&&In.setCursor(Bn.line,Bn.ch),In.replaceSelection(Ni),In.focus();case"add-multiple":return Sn===""&&In.setCursor(Bn.line,Bn.ch),In.replaceSelection(ki),In.focus();case"inster-template-1":return Sn===""&&In.setCursor(Bn.line,Bn.ch),In.replaceSelection(xi),In.focus();case"eraser":return In.setValue(""),In.focus();case"trigger-watch":return qi(!ca),In.focus();case"trigger-full-screen":return oa(!Oi),In.focus();case _t:Di(_t);return;case an:Di(an);return;case sn:Di(sn);return;case xt:Di(xt);return;case"maths-latex":Di("maths-latex");return;case Dt:Li.current="",sessionStorage.removeItem("file_id"),Di(Dt);return;case fn:Di(fn);return;default:throw new Error}},[In,ca,Oi]),Je=(0,Ue.useCallback)((Pn,Bn)=>{var Sn,Xn,vr,rr,lr,fr;Di("");const{src:yr,alt:Mr,id:Ot}=Pn||{};switch(Bi){case _t:const{title:Wn,link:Gn}=Pn;return In.replaceSelection(`[${Wn}](${Gn})`),In.focus();case an:const{language:gr,content:cr}=Pn;return In.replaceSelection(["```"+gr,cr,"```"].join(`
|
|
|
`)),In.focus();case"maths-latex":for(var Rt=atob(Pn),un=new Uint8Array(Rt.length),Qt=0;Qt<Rt.length;Qt++)un[Qt]=Rt.charCodeAt(Qt);var _n=new Blob([un],{type:"image/png"});(0,nt.I)(_n,vi=>{vi.id?In.replaceSelection(``):(vi==null?void 0:vi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":In.replaceSelection("`$$"+Pn+"$$`");break;case en:if(!Ot)return;In.focus(),In.getValue().indexOf(yr)===-1?In.replaceSelection(`<center><img id="${Ot}" width="80%" src="${yr}" class="draw-flowchart" alt="${Mr||""}" /></center>`):document.getElementById(Ot).src=$e.Z.API_SERVER+yr+"?t="+Date.now();try{setTimeout(()=>{Pr(In.getValue())},100)}catch(vi){}break;case sn:case xt:const Jn=Bn,wr=(vr=(Xn=(Sn=Jn==null?void 0:Jn.name)==null?void 0:Sn.split("."))==null?void 0:Xn.pop)==null?void 0:vr.call(Xn);return((rr=Jn==null?void 0:Jn.type)==null?void 0:rr.indexOf("image"))>-1||!(Jn!=null&&Jn.type)?Jn!=null&&Jn.align||Jn!=null&&Jn.width?In.replaceSelection(`<p style="text-align:${Jn.align||"initial"}"><img width="${Jn.width?Jn.width+"%":"initial"}" src="${yr}" alt="${Mr||""}" /></p>`):In.replaceSelection(`<img width="100%" src="${yr}" alt="${Mr||""}" />`):((lr=Jn==null?void 0:Jn.type)==null?void 0:lr.indexOf("video"))>-1?In.replaceSelection(`<video width="100%" controls src="${yr}"></video>`):((fr=Jn==null?void 0:Jn.type)==null?void 0:fr.indexOf("pdf"))>-1?In.replaceSelection(`<a href="${yr}?type=${Jn.type}&disposition=inline" target="_blank">${Jn.name}</a>`):cn.includes(wr)?In.replaceSelection(`<a href="${yr}?type=office&disposition=inline" target="_blank">${Jn.name}</a>`):In.replaceSelection(`[${Jn.name}](${yr})`),In.focus();case fn:const{row:_r,col:Vr,align:Tr}=Pn;let qr=`
|
|
|
`;for(let vi=0;vi<_r;vi++){let si=[],gi=[];for(let Qr=0;Qr<Vr;Qr++)vi===1&&gi.push(ar[Tr]),si.push(" ");vi===1&&(qr+=`| ${gi.join(" | ")} |
|
|
|
`),qr+=`| ${si.join(Vr===1?"":" | ")} |
|
|
|
`}return In.replaceSelection(qr+`
|
|
|
`),In.focus();default:throw new Error}},[In,Bi]),vt=(0,Ue.useMemo)(()=>{switch(Bi){case _t:return Ue.createElement(mt,{callback:Je,onCancel:Ct});case an:return Ue.createElement(ft.Z,{callback:Je,onCancel:Ct});case sn:return Ue.createElement(nt.Z,{callback:Je,onCancel:Ct});case Dt:return Ue.createElement(ze,{editImgId:Li.current,callback:Je,onCancel:Ct});case fn:return Ue.createElement(it,{callback:Je,onCancel:Ct});case"maths-latex":return Ue.createElement(Wt,{showSaveButton:!0,callback:Je});case"inline-latex":return Ue.createElement(jt.Z,{showSaveButton:!0,callback:Je});default:return null}},[Bi]);function Ct(){Di("")}(0,Ue.useEffect)(()=>{if(Ei.current){let Pn=function(lr){vr=!0,rr=lr.pageY},Bn=function(){vr=!1},Sn=function(lr){if(vr){let fr=lr.pageY-rr;fr<0&&(fr=0),fr>300&&(fr=300);let yr=rn+fr+"px";Ea(yr)}},Xn=Ei.current,vr=!1,rr=0;return Xn.addEventListener("mousedown",Pn),document.addEventListener("mousemove",Sn),document.addEventListener("mouseup",Bn),()=>{Xn.removeEventListener("mousedown",Pn),document.removeEventListener("mousemove",Sn),document.removeEventListener("mouseup",Bn)}}},[In,Ei]),(0,Ue.useEffect)(()=>{Ea(rn)},[rn]);const It=ir(Xt),At=ir(ta),Bt={width:It,height:At},Ft=(0,Ue.useMemo)(()=>{if(_a){let Pn=new Date(_a),Bn=Pn.getHours(),Sn=Pn.getMinutes(),Xn=Pn.getSeconds();return Bn=Bn<10?"0"+Bn:Bn,Sn=Sn<10?"0"+Sn:Sn,Xn=Xn<10?"0"+Xn:Xn,`${Bn}:${Sn}:${Xn}`}return 0},[_a]),on=Pn=>{const Bn=[];if(Ir){let Sn=-1;Pn=Pn.replace(/(@▁▁@|@▁@)/g,function(Xn,vr,rr){Bn.push({multiLine:Xn!==Ni})})}return Bn};function gn(){window.sessionStorage.removeItem(zn),Na(!1),_i(0)}function Ln(){Na(!1),_i(0),In.setValue(window.sessionStorage.getItem(zn))}(0,Ue.useEffect)(()=>{Nn[Bi]&&Bi!==xt&&Bi!==Dt&&setTimeout(()=>{const Pn=document.getElementsByClassName("markdown-popup-form")[0],Bn=window.innerWidth/2-Pn.offsetWidth/2,Sn=window.innerHeight/2-Pn.offsetHeight/2;or(Bn),Wr(Sn)},0)},[Bi]);const qn=Pn=>{Pn.preventDefault();const Bn=Pn.clientX-Kn,Sn=Pn.clientY-xr;document.body.onmousemove=Xn=>{let vr=Xn.clientX-Bn,rr=Xn.clientY-Sn;const lr=document.getElementsByClassName("markdown-popup-form")[0],fr=window.innerWidth-lr.offsetWidth,yr=window.innerHeight-lr.offsetHeight;vr=Math.max(0,Math.min(vr,fr)),rr=Math.max(0,Math.min(rr,yr)),Zn(Xn.clientX,Xn.clientY,Bn,Sn)&&(or(vr),Wr(rr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Zn=(Pn,Bn,Sn,Xn)=>{const vr=document.body.clientHeight,rr=document.body.clientWidth;return Pn<20&&Sn>Pn||Pn>rr-20&&Sn<Pn||Bn<20&&Xn>Bn||Bn>vr-20&&Xn<Bn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ue.createElement(Ue.Fragment,null,Ue.createElement("div",{className:"markdown-editor-wrapper",ref:pi},Ue.createElement("div",{className:`markdown-editor-container ${pn} ${ca?"on-preview":""} ${An?"mini":""} ${Oi?"full-screen":""}`,style:Bt},Ue.createElement(Ae,{insertTemp:bn,watch:ca,fullScreen:Oi,showNullButton:Zr,showNullProgramButton:Ir,onActionCallback:On,hidetoolBar:Er,extraUse:Sr}),Ue.createElement("div",{className:"markdown-editor-body"},Ue.createElement("div",{className:"codemirror-container"},Ue.createElement("textarea",{ref:oi,placeholder:Vn})),ca?Ue.createElement("div",{ref:mi,className:"preview-container"},wn==="stex"&&Ue.createElement(ie,{value:ei}),wn!=="stex"&&Ue.createElement(me.Z,{edit:!0,disabledFill:Fn,showProgramFill:Ir,value:ei,openEditor:Pn=>{var Bn;Li.current=Pn,(Bn=ea.current)==null||Bn.setHeight("100vh"),setTimeout(()=>{Di("add-flowchart")},150)}})):null))),Un?Ue.createElement("a",{ref:Ei,className:"editor-resize"}):null,Bi===xt&&Ue.createElement(Pt,{callback:Je,onCancel:Ct}),Bi===Dt&&Ue.createElement(ze,{ref:ea,editImgId:Li.current,callback:Je,onCancel:Ct}),Ue.createElement(De.Z,null,Nn[Bi]&&Bi!==xt&&Bi!==Dt?Ue.createElement(tt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Kn,top:xr},title:Ue.createElement("div",{style:{cursor:"move"},onMouseDown:qn},Nn[Bi]),open:!0,onCancel:Ct,footer:null,destroyOnClose:!0,width:Bi===Dt?"1200px":null,height:Bi===Dt?"80vh":null,className:"markdown-popup-form"},vt):null))}},70859:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Ne},I:function(){return De}});var Ue=ve(22150),ot=ve(2453),x=ve(69677),ke=ve(93421),pe=ve(31795),ne=ve(78045),z=ve(71577),ae=ve(15476),re=ve(67294),se=ve(52262),me=ve(67294),ie=Object.defineProperty,le=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,Se=(Ie,Pe,Le)=>Pe in Ie?ie(Ie,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ie[Pe]=Le,Ce=(Ie,Pe)=>{for(var Le in Pe||(Pe={}))he.call(Pe,Le)&&Se(Ie,Le,Pe[Le]);if(fe)for(var Le of fe(Pe))oe.call(Pe,Le)&&Se(Ie,Le,Pe[Le]);return Ie},ye=(Ie,Pe)=>le(Ie,ue(Pe));const{useForm:_e}=Ue.default,Me={width:280,marginRight:10},we={labelCol:{span:5},wrapperCol:{span:19}};var Ne=({callback:Ie,onCancel:Pe})=>{const[Le]=_e();let We=(0,re.useRef)();function Be(et){We.current.width=Le.getFieldValue("width"),We.current.align=Le.getFieldValue("align"),Ie(et,We.current)}function He(et,st){if(et.status===-1){ot.ZP.error(et.message);return}Le.setFieldsValue({src:`/api/attachments/${et.id}`,type:st.type})}function Ye(et){let st=et.target.files[0];We.current=st,De(st,He)}return me.createElement(Ue.default,ye(Ce({form:Le},we),{className:"upload-image-panel",onFinish:Be,style:{width:470,overflow:"hidden"}}),me.createElement(Ue.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},me.createElement("div",{className:"flex-container"},me.createElement(Ue.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},me.createElement(x.default,{style:Me})),me.createElement(Ae,{onFileChange:Ye}))),me.createElement(Ue.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},me.createElement(x.default,{style:{width:264}})),me.createElement(Ue.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},me.createElement(ke.Z,null,me.createElement(Ue.default.Item,{name:"width",style:{margin:0}},me.createElement(pe.Z,{style:{width:264}})),me.createElement("span",{className:"ml8"},"%"))),me.createElement(Ue.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},me.createElement(ne.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),me.createElement("aside",null,me.createElement(Ue.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},me.createElement(z.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(z.ZP,{type:"default",onClick:Pe},"\u53D6\u6D88"))))};function Ae({onFileChange:Ie}){return me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",me.createElement("input",{type:"file",onChange:Ie}))}function De(Ie,Pe){if(!Ie)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,se.bg)())throw ot.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",Ie),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var We=new window.XMLHttpRequest;We.withCredentials=!0,We.addEventListener("load",function(Be){Pe(JSON.parse(Be.target.responseText),Ie)},!1),We.addEventListener("error",function(Be){console.error(Be)},!1),We.open("POST",`${ae.KI}/api/attachments.json`),We.send(Le)}},76621:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return x}});var Ue=ve(67294),ot=ve(73935);class x extends Ue.Component{constructor(pe){super(pe);const ne=window.document;this.node=ne.createElement("div"),ne.body.appendChild(this.node)}render(){const{children:pe}=this.props;return(0,ot.createPortal)(pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},19522:function(xn,Zt,ve){"use strict";var Ue=ve(12867),ot=ve(11713),x=ve(47897),ke=ve(67294);const pe=ot.default.Option;Zt.Z=({isTheoretical:ne,onFontSizeChange:z,cmFontSize:ae,cmCodeMode:re,autoFormat:se,onCodeModeChange:me,onTabToSpace:ie,onAutoFormat:le,formatDocument:ue,className:fe="",tabToSpace:he,children:oe,code_editor:Se,challenge:Ce,shixun_environment_id:ye,shixun_environments:_e})=>{var Me;const we={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Ne=(Me=_e==null?void 0:_e.find(Ae=>Ae.shixun_environment_id===ye))==null?void 0:Me.program_language;return ke.createElement("div",{className:`tpi-code-setting ${fe}`},ke.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),ke.createElement("section",null,ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),ke.createElement(ot.default,{bordered:!1,size:"small",value:re,onChange:me},ke.createElement(pe,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ke.createElement(pe,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ne&&ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),ke.createElement(ot.default,{bordered:!1,size:"small",value:ae,onChange:z},ke.createElement(pe,{value:12},"12px"),ke.createElement(pe,{value:14},"14px"),ke.createElement(pe,{value:16},"16px"),ke.createElement(pe,{value:18},"18px"),ke.createElement(pe,{value:20},"20px"),ke.createElement(pe,{value:22},"22px"))),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"Tab\u8F6C\u6362"),ke.createElement(x.Z,{checked:he,onChange:ie})),ke.createElement("div",{className:"file-item",onClick:ue},ke.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ne&&ke.createElement(ke.Fragment,null,ke.createElement("h3",null,"\u5FEB\u6377\u952E"),ke.createElement("section",null,ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),ke.createElement("span",null,"Ctrl + S")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),ke.createElement("span",null,"F1 / Alt + F1")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),ke.createElement("span",null,"Ctrl + ]/[")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),ke.createElement("span",null,"Ctrl + Shift + \\")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),ke.createElement("span",null,"Home")),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),ke.createElement("span",null,"End"))),oe),!ne&&ke.createElement(ke.Fragment,null,ke.createElement("h3",null,"\u5FEB\u6377\u952E"),ke.createElement("section",null,Ne&&ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),ke.createElement("span",null,Ne)),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),ke.createElement("span",null,we[Ce==null?void 0:Ce.difficulty])),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),ke.createElement("span",null,Se==null?void 0:Se.name)),ke.createElement("div",{className:"file-item"},ke.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),ke.createElement("span",null,Se!=null&&Se.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},99914:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ot}});var Ue=ve(67294);function ot(x,ke){const pe=(0,Ue.useRef)();(0,Ue.useEffect)(()=>{pe.current=x}),(0,Ue.useEffect)(()=>{function ne(){pe.current()}if(ke!==null){let z=setInterval(ne,ke);return()=>clearInterval(z)}},[ke])}},7644:function(xn,Zt,ve){"use strict";ve.r(Zt),ve.d(Zt,{Types:function(){return cn},default:function(){return Yn}});var Ue=ve(67294),ot={header:"header___N_IdR",field:"field___XG_dh","oj-form-container":"oj-form-container___syYzK","oj-left-panel":"oj-left-panel___L082x","oj-form-info":"oj-form-info___q0IU5",footer:"footer___pGCM2",result:"result___LM9Ms",passText:"passText___nUoL4",noPassText:"noPassText___ECHHG",pass:"pass___tDubp",noPass:"noPass___ilYvg","test-case-name":"test-case-name___MI_KD","btn-remove-case":"btn-remove-case___OiaTQ","icon-tag":"icon-tag___D86WO",btn_back:"btn_back___FyaSY",testJi:"testJi___NDviK",upBtn:"upBtn___FiZX4","oj-problems":"oj-problems___xb70g",row:"row___v036E",a:"a___yRaYH",b:"b___gWQyu",inputTwo:"inputTwo___IZ9og",inputOne:"inputOne____NmcT",cusModal:"cusModal___fJ5gm","oj-custom-large-spin":"oj-custom-large-spin___Aar0g",MdEditor:"MdEditor___hgoes"},x=ve(69677),ke=ve(14446),pe=ve(47221),ne=ve(22150),z=ve(2453),ae=ve(71230),re=ve(15746),se=ve(57953),me=ve(71577),ie=ve(9430),le=ve(11713),ue=ve(31795),fe=ve(78045),he=ve(84567),oe=ve(93421),Se=ve(86738),Ce=ve(67294);const{Option:ye}=le.default;var _e=(Nn=>(Nn[Nn.language=0]="language",Nn[Nn.difficulty=1]="difficulty",Nn[Nn.category=2]="category",Nn[Nn.openOrNot=3]="openOrNot",Nn))(_e||{});const Me={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u9002\u4E2D",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function we(Nn){return Me[Nn].map(Hn=>Ce.createElement(ye,{key:Hn.title,value:Hn.key}," ",Hn.title," "))}function Ne(Nn,Hn){Nn.map(jn=>{const{id:Gt,name:Xt,sub_disciplines:rn}=jn;let An={value:Gt,label:Xt};Hn.push(An),rn&&rn.length>0&&(An.children=[],Ne(rn,An.children))})}function Ae(Nn,Hn){var jn;let Gt=[];for(let Xt=0;Xt<Nn.length;Xt++){const rn=Nn[Xt];if(((jn=rn.sub_disciplines)==null?void 0:jn.length)>0){Gt[0]=rn.id;for(let An=0;An<rn.sub_disciplines.length;An++){const zt=rn.sub_disciplines[An];if(zt.id===Hn)return Gt[1]=zt.id,[Gt,zt.tag_disciplines||zt.sub_disciplines||[]]}}}return[Gt,[]]}var De=ve(35973),Ie=ve(19575),Pe=ve(32693),Le=ve(97309),We=ve(91304),Be=ve(33170);function He(Nn){return(0,Be.v_)("practices.json",Nn)}function Ye(){return(0,Be.U2)("problems/new.json")}function et(Nn){return(0,Be.U2)(`practices/${Nn}/edit.json`)}function st(Nn,Hn){return(0,Be.gz)(`practices/${Nn}`,Hn)}function yt(Nn,Hn){return post(`exercises/${Nn}/exercise_questions.json`,Hn)}function Ve(Nn,Hn){return put(`exercise_questions/${Nn}.json`,Hn)}var Qe=ve(60076),pt=ve(72565),mt=ve(36295),ft=ve(19522),nt=ve(76621),tt=ve(40471),rt={"code-panel-container":"code-panel-container___BZjjl","action-oj-bar":"action-oj-bar___xbXpK",active:"active___EMVKI"},Et=Object.defineProperty,bt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ke=(Nn,Hn,jn)=>Hn in Nn?Et(Nn,Hn,{enumerable:!0,configurable:!0,writable:!0,value:jn}):Nn[Hn]=jn,de=(Nn,Hn)=>{for(var jn in Hn||(Hn={}))dt.call(Hn,jn)&&Ke(Nn,jn,Hn[jn]);if(Lt)for(var jn of Lt(Hn))Ze.call(Hn,jn)&&Ke(Nn,jn,Hn[jn]);return Nn},xe=(Nn,Hn)=>bt(Nn,Pt(Hn));const ze={theme:(0,tt.G)("cmCodeMode","vs-dark"),fontSize:(0,tt.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,tt.G)("cmTabToSpace",!0)};var $e=(Nn=>(Nn[Nn.set_font_size=0]="set_font_size",Nn[Nn.set_theme=1]="set_theme",Nn[Nn.on_tab_to_space=2]="on_tab_to_space",Nn[Nn.set_show_editor_setting=3]="set_show_editor_setting",Nn))($e||{});function Ee(Nn,Hn){switch(Hn.type){case 3:return xe(de({},Nn),{showEditorSetting:Hn.payload});case 1:return xe(de({},Nn),{theme:Hn.payload});case 0:return xe(de({},Nn),{fontSize:Hn.payload});case 2:return xe(de({},Nn),{tabToSpace:Hn.payload});default:throw new Error}}var Re=({value:Nn,onChange:Hn,language:jn,onLanguage:Gt,languageItems:Xt,ActionBarRender:rn=An=>Ue.createElement(Fe,{languageItems:Xt,onLanguage:Gt,language:jn,onShowCodeSetting:An})})=>{const[An,zt]=(0,Ue.useReducer)(Ee,ze),{theme:tn,fontSize:bn,showEditorSetting:wn,tabToSpace:zn}=An;console.log(Nn,jn,"value");const Un={onFontSizeChange:Er=>{zt({type:0,payload:Er}),(0,tt.t)("cmFontSize",Er)},tabToSpace:zn,cmFontSize:bn,className:"oj",cmCodeMode:tn,onTabToSpace:Er=>{zt({type:2,payload:Er}),(0,tt.t)("cmTabToSpace",Er)},onCodeModeChange:Er=>{zt({type:1,payload:Er}),(0,tt.t)("cmCodeMode",Er)}};function kr(){zt({type:3,payload:!1})}function Zr(){zt({type:3,payload:!0})}const Ir={value:Nn,language:jn,onChange:Hn,theme:tn,height:"calc(100% - 56px)",options:{fontSize:bn,insertSpaces:zn}};return Ue.createElement(Ue.Fragment,null,Ue.createElement("div",{className:rt["code-panel-container"]},rn(Zr),Ue.createElement(mt.ZP,de({key:jn},Ir))),Ue.createElement(nt.Z,null,Ue.createElement(pt.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:wn,onClose:kr},Ue.createElement(ft.Z,de({},Un)))))};function Fe({languageItems:Nn,language:Hn,onShowCodeSetting:jn,onLanguage:Gt}){return Ue.createElement("div",{className:rt["action-oj-bar"]},Nn==null?void 0:Nn.map(Xt=>Ue.createElement("div",{className:Hn===(Xt==null?void 0:Xt.language)?rt.active:"",onClick:()=>Gt(Xt==null?void 0:Xt.language),key:Xt==null?void 0:Xt.language},Xt==null?void 0:Xt.language)),Ue.createElement("a",{onClick:jn},Ue.createElement("i",{className:"iconfont icon-shezhi"})))}var Ge=ve(66368),it={flex_box_center:"flex_box_center___4yAaY",flex_space_between:"flex_space_between___YaUgM",flex_box_vertical_center:"flex_box_vertical_center___zR3dp",flex_box_center_end:"flex_box_center_end___rwgS5",flex_box_column:"flex_box_column___LhFeP",wrap:"wrap___xTL91",in:"in___eSY86",btns:"btns___UdEGI",customModal:"customModal___CL0OL"},gt=(Nn,Hn,jn)=>new Promise((Gt,Xt)=>{var rn=tn=>{try{zt(jn.next(tn))}catch(bn){Xt(bn)}},An=tn=>{try{zt(jn.throw(tn))}catch(bn){Xt(bn)}},zt=tn=>tn.done?Gt(tn.value):Promise.resolve(tn.value).then(rn,An);zt((jn=jn.apply(Nn,Hn)).next())}),kt=({visible:Nn,onOK:Hn,onCancel:jn})=>{const[Gt,Xt]=(0,Ue.useState)(!1),[rn,An]=(0,Ue.useState)(!1),[zt,tn]=(0,Ue.useState)("1"),[bn,wn]=(0,Ue.useState)(""),[zn,Un]=(0,Ue.useState)([]),kr=()=>gt(void 0,null,function*(){if(!bn){z.ZP.warning(`\u9898\u76EE${Pr}\u4E0D\u80FD\u4E3A\u7A7A`);return}An(!0);const nn=yield(0,Be.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:Nn,name:bn}});if((nn==null?void 0:nn.status)===0){Hn();return}An(!1)}),Zr=(nn="")=>gt(void 0,null,function*(){Xt(!0);let Jt=yield(0,Be.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:Nn,search:nn}});Un(Jt.tag_disciplines||[]),Xt(!1)}),Ir=nn=>{let Jt=nn.name;ke.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u91CD\u547D\u540D",content:Ue.createElement("div",null,Ue.createElement(x.default,{defaultValue:Jt,placeholder:`\u8BF7\u8F93\u5165${Pr}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20,onChange:pn=>{Jt=pn.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>gt(void 0,null,function*(){if(!Jt)return z.ZP.warning(`\u9898\u76EE${Pr}\u4E0D\u80FD\u4E3A\u7A7A`),Promise.reject();const pn=yield(0,Be.ZP)(`/api/tag_disciplines/${nn.id}/rename.json`,{method:"post",body:{id:nn.id,name:Jt}});(pn==null?void 0:pn.status)===0&&Zr()})})},Er=nn=>{ke.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:570,title:"\u5220\u9664",content:Nn==="practice"?Ue.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u6765\u6E90\u201C",Ue.createElement("span",{className:"c-light-primary"},nn.name),"\u201D\u5220\u9664\u5417\uFF1F",Ue.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u6765\u6E90\u8FDB\u884C\u6E05\u9664\u3002"):Ue.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u77E5\u8BC6\u70B9\u201C",Ue.createElement("span",{className:"c-light-primary"},nn.name),"\u201D\u5220\u9664\u5417\uFF1F",Ue.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u77E5\u8BC6\u70B9\u8FDB\u884C\u6E05\u9664\u3002"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>gt(void 0,null,function*(){const Jt=yield(0,Be.ZP)(`/api/tag_disciplines/${nn.id}.json`,{method:"delete",body:{id:nn.id}});(Jt==null?void 0:Jt.status)===0&&Zr()})})},Br=nn=>{Zr(nn)},Pr=Nn==="practice"?"\u77E5\u8BC6\u70B9":"\u6765\u6E90";return Ue.createElement(ke.default,{afterClose:()=>{An(!1),Xt(!1),wn(""),tn("1"),Un([])},centered:!0,keyboard:!1,width:600,title:`${Pr}\u7BA1\u7406`,open:!!Nn,className:it.customModal,footer:null,onCancel:jn},Ue.createElement("section",{className:it.wrap},Ue.createElement(Ge.default,{activeKey:zt,onChange:nn=>{wn(""),tn(nn),Zr()}},Ue.createElement(Ge.default.TabPane,{tab:`\u65B0\u589E${Pr}`,key:"1"},Ue.createElement(x.default,{value:bn,onChange:nn=>wn(nn.target.value),className:it.in,placeholder:`\u8F93\u5165${Pr}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20}),Ue.createElement("div",{className:it.btns},Ue.createElement(me.ZP,{onClick:jn,className:"mr20"},"\u53D6\u6D88 "),Ue.createElement(me.ZP,{loading:rn,onClick:kr,type:"primary"},"\u786E\u8BA4\u65B0\u5EFA"))),Ue.createElement(Ge.default.TabPane,{tab:`\u5DF2\u6709${Pr}`,key:"2"},Ue.createElement(x.default.Search,{allowClear:!0,onSearch:Br,value:bn,onChange:nn=>wn(nn.target.value),className:it.in,placeholder:`\u8F93\u5165${Pr}\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2`}),Ue.createElement(ie.default,{dataSource:zn,bordered:!1,loading:Gt,scroll:zn.length>7?{y:300}:{},style:{padding:"0 0px 20px 0px"},columns:[{title:`${Pr}\u540D\u79F0`,dataIndex:"name",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"action",width:120,render:(nn,Jt)=>Ue.createElement("span",null,Ue.createElement("span",{onClick:()=>Ir(Jt),className:"current mr10 c-light-primary"},"\u91CD\u547D\u540D"),Ue.createElement("span",{onClick:()=>Er(Jt),className:"current c-grey-666"},"\u5220\u9664"))}],pagination:!1})))))},St=ve(11320),Wt=ve(32259),jt=ve(27484),Vt=ve.n(jt),_t=ve(28706),sn=ve(35598),Dt=ve(52262),xt=ve(67294),en=Object.defineProperty,an=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,Ar=(Nn,Hn,jn)=>Hn in Nn?en(Nn,Hn,{enumerable:!0,configurable:!0,writable:!0,value:jn}):Nn[Hn]=jn,Dr=(Nn,Hn)=>{for(var jn in Hn||(Hn={}))ar.call(Hn,jn)&&Ar(Nn,jn,Hn[jn]);if(Tn)for(var jn of Tn(Hn))pr.call(Hn,jn)&&Ar(Nn,jn,Hn[jn]);return Nn},dr=(Nn,Hn)=>an(Nn,fn(Hn)),zr=(Nn,Hn,jn)=>new Promise((Gt,Xt)=>{var rn=tn=>{try{zt(jn.next(tn))}catch(bn){Xt(bn)}},An=tn=>{try{zt(jn.throw(tn))}catch(bn){Xt(bn)}},zt=tn=>tn.done?Gt(tn.value):Promise.resolve(tn.value).then(rn,An);zt((jn=jn.apply(Nn,Hn)).next())});const{TextArea:ai}=x.default,{confirm:ki}=ke.default,{Panel:Ni}=pe.default,xi={loading:!0,user:null,status:0,data:void 0,lastedUpdateTime:0};var cn=(Nn=>(Nn[Nn.SET_INITAL_DATA=0]="SET_INITAL_DATA",Nn[Nn.SET_LOADING=1]="SET_LOADING",Nn[Nn.SET_STATUS=2]="SET_STATUS",Nn))(cn||{});const ir="#### \u9898\u76EE\u63CF\u8FF0\n\u73B0\u6709\u4E00\u4E2A\u6574\u578B\u6570\u7EC4 `nums`\uFF0C\u8BF7\u7F16\u5199\u7A0B\u5E8F\u5C06\u6570\u7EC4 `nums` \u4E2D\u7684\u6240\u6709 `$$0$$` \u79FB\u52A8\u5230\u6570\u7EC4\u7684\u672B\u5C3E\uFF0C\u4F46\u4E0D\u6539\u53D8\u975E\u96F6\u5143\u7D20\u5728\u6570\u7EC4\u4E2D\u7684\u76F8\u5BF9\u4F4D\u7F6E\u3002\u8BF7\u5728\u539F\u6570\u7EC4 `nums` \u4E0A\u8FDB\u884C\u64CD\u4F5C\u3002\n#### \u8F93\u5165\u8F93\u51FA\u683C\u5F0F\n**\u8F93\u5165\u683C\u5F0F**\n\u7B2C\u4E00\u884C\u6709\u4E00\u4E2A\u6574\u6570 `numsSize`\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u5927\u5C0F\uFF1B\n\u7B2C\u4E8C\u884C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n**\u8F93\u51FA\u683C\u5F0F**\n\u4E00\u884C\u8F93\u51FA\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B1\n**\u8F93\u5165**\n`4`\n`0 1 2 3`\n**\u8F93\u51FA**\n`1 2 3 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B2\n**\u8F93\u5165**\n`5`\n`1 1 0 1 0`\n**\u8F93\u51FA**\n`1 1 1 0 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8BF4\u660E\u63D0\u793A\n-`1\u2264n\u2264100`";function sr(Nn,Hn){switch(Hn.type){case 0:return Dr(Dr({},Nn),Hn.payload);case 1:return dr(Dr({},Nn),{loading:Hn.payload});case 2:return dr(Dr({},Nn),{status:Hn.payload});default:throw new Error}}var Yn=()=>{var Nn,Hn,jn;const Gt=(0,De.useLocation)(),{id:Xt}=(0,De.useParams)(),[rn]=ne.default.useForm(),[An,zt]=(0,Ue.useState)(),[tn,bn]=(0,Ue.useState)(!1),[wn,zn]=(0,Ue.useState)([]),[Un,kr]=(0,Ue.useState)([]),[Zr,Ir]=(0,Ue.useState)([]),[Er,Br]=(0,Ue.useState)([]),[Pr,nn]=(0,Ue.useState)([]),[Jt,pn]=(0,Ue.useState)("C"),[Qn,hr]=(0,Ue.useReducer)(sr,xi),{loading:Fn,data:Vn,user:er,status:Sr}=Qn,Nr=Vn==null?void 0:Vn.hack_sets,In=(Nn=Vn==null?void 0:Vn.hack)==null?void 0:Nn.test_set_average,[Gr,ei]=(0,Ue.useState)(!1),aa=(0,Ue.useRef)([]),[ca,qi]=(0,Ue.useState)(!1),[Oi,oa]=(0,Ue.useState)(!1),Bi=(0,Ue.useRef)(!0),[Di,_a]=(0,Ue.useState)({});(0,Ue.useEffect)(()=>((0,De.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,De.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,De.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,De.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,Ue.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)});const _i=()=>zr(void 0,null,function*(){const hn=yield(0,Be.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice"}}),On=yield(0,Be.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source"}});kr(hn.tag_disciplines||[]),Ir(On.tag_disciplines||[])});var ta=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}];const Ea=(0,Ue.useCallback)(()=>zr(void 0,null,function*(){if(hr({type:1,payload:!0}),Xt){const hn=yield et(Xt),{user:On,language:Je,practice_sets:vt,practice_codes:Ct,description:It,difficulty:At,name:Bt,open_or_not:Ft,time_limit:on,test_set_average:gn,test_set_score:Ln,status:qn,tag_discipline_ids:Zn,source_discipline_ids:Pn,item_banks_group_id:Bn,is_file:Sn=!1,hide_actual_output:Xn,review_privilege:vr,review_description:rr,submit_rule:lr}=hn;_a({review_privilege:vr,status:qn,review_description:rr,name:Bt}),ei(Xn);const yr=Sn?[{input:"",output:"",score:100,position:1}]:vt;Sn?(zn(vt),rn.setFieldsValue({hack_sets:yr})):zn([]),hr({type:0,payload:{loading:!0,user:On,status:qn,data:{hack:{difficulty:At,name:Bt,description:It,open_or_not:Ft,time_limit:on,test_set_average:gn,test_set_score:Ln,tag_discipline_ids:Zn,source_discipline_ids:Pn,is_file:Sn,submit_rule:lr},hack_sets:yr}}}),zt({hack:{difficulty:At,name:Bt,description:It,open_or_not:Ft,time_limit:on,test_set_average:gn,test_set_score:Ln,tag_discipline_ids:Zn,source_discipline_ids:Pn,is_file:Sn}});const Ot=Ct==null?void 0:Ct.map(Rt=>dr(Dr({},Rt),{code:Ie.Base64.decode(Rt==null?void 0:Rt.code)}));nn(Ot),aa.current=Ot}else{const{user:hn}=yield Ye();hr({type:0,payload:{loading:!0,status:0,user:hn,data:{hack:{difficulty:"",time_limit:3,description:ir,test_set_score:!0,test_set_average:!0,open_or_not:!0,name:"",is_file:!1,submit_rule:1},hack_sets:[{input:"",output:"",score:100,position:1}]}}}),zt({hack:{difficulty:"",time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",is_file:!1}}),nn(ta),aa.current=ta}hr({type:1,payload:!1})}),[Xt]);(0,Ue.useEffect)(()=>{try{Ea(),_i()}catch(hn){console.log(hn,"----")}},[]);function Va(hn,On){return zr(this,null,function*(){var Je;const{hack_sets:vt,hack:Ct}=Dr({},hn);Ct.hide_actual_output=Gr;let It=[],At=[],Bt=0;const Ft=Ct!=null&&Ct.is_file?wn.map((Ln,qn)=>dr(Dr({},Ln),{position:qn+1})):vt.map(Ln=>dr(Dr({},Ln),{is_file:!1}));for(let Ln of Ft)Bt+=Ln.score,Ln.id&&Ln.id>=0?It.push(Ln):At.push(Ln);if(!(Ft!=null&&Ft.length)){z.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(Bt!==100&&!Ct.test_set_score){z.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(Ft!=null&&Ft.some(Ln=>!Ln.output)){z.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}Bi.current?qi(!0):oa(!0);let on;const gn=Pr==null?void 0:Pr.map(Ln=>dr(Dr({},Ln),{code:Ie.Base64.encode(Ln==null?void 0:Ln.code)}));if(Xt?on=yield st(Xt,{practice:Ct,practice_codes:gn,practice_sets:At,update_practice_sets:It}):on=yield He({practice:Ct,practice_codes:gn,practice_sets:Ft,publish:!Bi.current}),qi(!1),oa(!1),(on==null?void 0:on.status)===0){if((Je=on==null?void 0:on.similar_practice)!=null&&Je.length){bn(!0),Br(on==null?void 0:on.similar_practice);return}if(Xt){if(z.ZP.success("\u4FDD\u5B58\u6210\u529F"),!Bi.current){const Ln=yield(0,Be.ZP)(`/api/practices/${Xt}/start`,{method:"get"});(Ln==null?void 0:Ln.status)===0&&De.history.push(`/problems/${Ln==null?void 0:Ln.identifier}/oj/${Xt}`)}}else z.ZP.success("\u65B0\u5EFA\u6210\u529F"),De.history.replace(`/problems/${on==null?void 0:on.identifier}/ojedit`)}})}function Na(){De.history.replace("/problems")}const Pi=hn=>{const On=Math.floor(100/hn.length),Je=On+100%hn.length;hn=hn.map((vt,Ct)=>Ct===hn.length-1?dr(Dr({},vt),{score:Je}):dr(Dr({},vt),{score:On})),zn(hn)};function yn(hn){hn.target.value||Pi(wn),hr({type:0,payload:{data:dr(Dr({},Vn),{hack:dr(Dr({},Vn.hack),{test_set_score:hn.target.value})})}})}function dn(hn){hr({type:0,payload:{data:dr(Dr({},Vn),{hack:dr(Dr({},Vn.hack),{is_file:hn.target.value})})}})}function Kn(hn){ei(hn.target.checked)}function or(hn){const On=hn.target.value;On&&Pi(wn),hr({type:0,payload:{data:dr(Dr({},Vn),{hack:dr(Dr({},Vn.hack),{test_set_average:On})})}})}function xr(){let hn=rn.getFieldValue("hack_sets");const On=hn.length+1,Je=Math.floor(100/On),vt=100%On;hn.map((Ct,It)=>(In&&(Ct.score=Je),Ct.position=It+1,Ct)),hn.push({input:"",output:"",position:On,score:In?Je+vt:0}),rn.setFieldsValue({hack_sets:hn}),hr({type:0,payload:{data:dr(Dr({},Vn),{hack_sets:hn})}})}(0,Ue.useEffect)(()=>{if(In){const hn=Nr==null?void 0:Nr.length,On=Math.floor(100/hn),Je=100%hn;Nr==null||Nr.map((vt,Ct)=>(vt.score=On,vt.position=Ct+1,Ct===hn-1&&(vt.score=On+Je),vt)),hr({type:0,payload:{data:dr(Dr({},Vn),{hack_sets:Nr})}}),rn.setFieldsValue({hack_sets:Nr})}},[In]);function Wr(hn){let On=rn.getFieldValue("hack_sets");const Je=(On==null?void 0:On.length)-1,vt=Math.ceil(100/Je),Ct=100%Je;On.splice(hn,1),On==null||On.map((It,At)=>(In&&(It.score=vt,At===Je-1&&(It.score=vt+Ct)),It.position=At+1,It)),hr({type:0,payload:{data:dr(Dr({},Vn),{hack_sets:On})}}),rn.setFieldsValue({hack_sets:On})}function oi(hn){pn(hn)}const pi=hn=>{var On;const Je=(On=aa.current)==null?void 0:On.findIndex(vt=>vt.language===Jt);aa.current[Je].code=hn,nn(aa.current)},Ei=hn=>{zt(Dr({},rn.getFieldsValue()))},mi=hn=>zr(void 0,null,function*(){const On=yield(0,Be.ZP)(`/api/practices/${hn}/start`,{method:"get"});(On==null?void 0:On.status)===0&&(0,_t.xg)(`/problems/${On==null?void 0:On.identifier}/oj/${hn}`)}),Li=()=>zr(void 0,null,function*(){const hn=yield et(Xt),{name:On,status:Je,review_privilege:vt,review_description:Ct}=hn;_a({review_privilege:vt,status:Je,review_description:Ct,name:On})}),ea=()=>{let hn="";ke.default.confirm({icon:null,width:700,className:"custom-modal-divider",centered:!0,title:"\u4E0D\u901A\u8FC7\u539F\u56E0",content:xt.createElement("div",{className:"mt20"},xt.createElement(We.Z,{className:ot.MdEditor,defaultValue:hn,onChange:On=>{hn=On}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>zr(void 0,null,function*(){if(!hn)return z.ZP.warning("\u4E0D\u901A\u8FC7\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const On=yield(0,Be.ZP)(`/api/practices/${Xt}/review.json`,{method:"post",body:{op:"fail",description:hn}});(On==null?void 0:On.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),Li())})})},ni=()=>zr(void 0,null,function*(){ke.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u63D0\u793A",content:`\u786E\u8BA4\u5C06\u9898\u76EE\u300A${Di==null?void 0:Di.name}\u300B\u7684\u5BA1\u6838\u901A\u8FC7\u5417\uFF1F`,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>zr(void 0,null,function*(){const hn=yield(0,Be.ZP)(`/api/practices/${Xt}/review.json`,{method:"post",body:{op:"pass"}});(hn==null?void 0:hn.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),Li())})})}),Mn=()=>{const hn=ke.default.confirm({icon:null,width:700,className:`${ot.cusModal} custom-modal-divider`,centered:!0,title:xt.createElement(ae.Z,null,xt.createElement(re.Z,{flex:"1"},"\u4E0D\u901A\u8FC7\u539F\u56E0"),xt.createElement(re.Z,null,xt.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>hn.destroy()}))),content:xt.createElement("div",null,xt.createElement(sn.Z,{className:"mt20",value:(Di==null?void 0:Di.review_description)||""}))})};return xt.createElement(se.Z,{spinning:Fn,size:"large",className:ot["oj-custom-large-spin"]},Vn?xt.createElement(Ue.Fragment,null,xt.createElement("header",{className:ot.header},xt.createElement("div",null,xt.createElement("img",{src:`${St.Z.IMG_SERVER}/images/${er==null?void 0:er.image_url}`,alt:"user",width:30}),xt.createElement("span",null,er==null?void 0:er.name)),xt.createElement("h2",null," ",(Hn=Vn==null?void 0:Vn.hack)==null?void 0:Hn.name," "),Xt?xt.createElement("a",{className:ot.btn_back,onClick:Na}," ",xt.createElement(Pe.Z,null),"\u9000\u51FA"):null),xt.createElement(ne.default,{form:rn,initialValues:Vn,layout:"vertical",className:ot["oj-form-container"],onValuesChange:Ei,onFinish:Va},xt.createElement(Qe.Z,{hideResize:!0,className:ot["oj-problems"],leftChild:xt.createElement(Rr,{formValue:An,onRemoveTestCase:Wr,onAddTestCase:xr,hack:Vn.hack,onChangeScore:yn,onChangehide:Kn,onChangeAverage:or,onChangeFile:dn,uploadData:wn,setUploadData:zn,handleUploadRatio:Pi,ischecked:Gr,pointData:Un,sourceData:Zr,getPointData:_i}),rightChild:xt.createElement(Re,{value:(jn=Pr==null?void 0:Pr.find(hn=>hn.language===Jt))==null?void 0:jn.code,onChange:pi,onLanguage:oi,languageItems:Pr,language:Jt})}),xt.createElement("div",{className:ot.footer},!!Xt&&xt.createElement("div",{className:ot.result},xt.createElement("span",null,"\u5BA1\u6838\u7ED3\u679C:"),Di!=null&&Di.review_privilege?xt.createElement(xt.Fragment,null,xt.createElement("div",{onClick:ni,className:ot.pass},"\u901A\u8FC7"),xt.createElement("div",{onClick:ea,className:ot.noPass},"\u4E0D\u901A\u8FC7")):xt.createElement(xt.Fragment,null,(Di==null?void 0:Di.status)===0&&xt.createElement("div",{className:ot.passText},xt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u53D1\u5E03"),(Di==null?void 0:Di.status)===1&&xt.createElement("div",{className:ot.passText},xt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5DF2\u516C\u5F00"),(Di==null?void 0:Di.status)===2&&xt.createElement("div",{className:ot.passText},xt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u5BA1\u6279"),(Di==null?void 0:Di.status)===3&&xt.createElement("div",{className:ot.passText},xt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u4E2D"),(Di==null?void 0:Di.status)===4&&xt.createElement("div",{className:ot.passText},xt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u5B8C\u6210\u5F85\u516C\u5F00"),(Di==null?void 0:Di.status)===5&&xt.createElement("div",{className:ot.noPassText},xt.createElement("i",{className:"iconfont icon-weitongguo1"}),"\u5BA1\u6838\u4E0D\u901A\u8FC7",xt.createElement("span",{onClick:Mn},"\u67E5\u770B\u539F\u56E0")))),xt.createElement(me.ZP,{type:"primary",ghost:!0,onClick:Na},"\u9000\u51FA\u7F16\u8F91"),xt.createElement(me.ZP,{disabled:Oi,loading:ca,type:"primary",onClick:()=>{Bi.current=!0,rn.submit()}},"\u4FDD\u5B58 "),Xt?xt.createElement(me.ZP,{disabled:ca,loading:Oi,style:{background:"#2FC25B",border:0},type:"primary",onClick:()=>{Bi.current=!1,rn.submit()}},"\u7ACB\u5373\u4F53\u9A8C"):xt.createElement(me.ZP,{disabled:ca,loading:Oi,type:"primary",onClick:()=>{Bi.current=!1,rn.submit()}},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u5BA1\u6838")))):null,xt.createElement(ke.default,{centered:!0,destroyOnClose:!0,footer:null,open:tn,onCancel:()=>bn(!1),title:"\u76F8\u4F3C\u6027\u68C0\u6D4B",width:"600px"},xt.createElement("div",null,xt.createElement("p",{className:"font14"},"\u7ECF\u7CFB\u7EDF\u68C0\u6D4B\u53D1\u73B0\uFF0C\u672C\u9898\u76EE\u4E0E\u7CFB\u7EDF\u4E2D\u5DF2\u521B\u5EFA\u7684\u9898\u76EE\u9AD8\u5EA6\u96F7\u540C\uFF0C\u8BF7\u8C03\u6574\u9898\u76EE\u540E\u518D\u8FDB\u884C\u4FDD\u5B58"),xt.createElement(ie.default,{dataSource:Er,bordered:!1,scroll:Er.length>7?{y:300}:{},columns:[{title:"\u76F8\u4F3C\u9898\u9898\u76EE",dataIndex:"name",ellipsis:!0,render:(hn,On)=>xt.createElement("span",{onClick:()=>mi(On==null?void 0:On.identifier),style:{textDecorationLine:"underline"},className:"current c-light-primary"},hn)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"create_time",width:170,render:hn=>{var On;return(On=Vt()(hn))==null?void 0:On.format("YYYY-MM-DD HH:mm")}}],pagination:!1}))))};function Rr({ischecked:Nn,formValue:Hn,hack:jn,onChangeAverage:Gt,onChangeScore:Xt,onChangehide:rn,onChangeFile:An,onAddTestCase:zt,onRemoveTestCase:tn,uploadData:bn,setUploadData:wn,handleUploadRatio:zn,pointData:Un,sourceData:kr,getPointData:Zr}){var Ir,Er;const{test_set_average:Br,test_set_score:Pr}=jn,[nn,Jt]=(0,Ue.useState)(!1),[pn,Qn]=(0,Ue.useState)(!1),hr=(In,Gr)=>{const ei=[...bn];ei.splice(Gr,1),Br?zn(ei):wn(ei)},Fn=(In,Gr)=>{console.log(In,Gr);const ei=bn.map((aa,ca)=>ca===Gr?dr(Dr({},aa),{score:In.target.value?Number(In.target.value):0}):aa);wn(ei)},Vn=In=>{const Gr=bn.concat(In);jn.test_set_average?zn(Gr):wn(Gr)};function er(In){In.stopPropagation()}function Sr(){if((0,Dt.Ny)()){Qn("practice");return}let In="";ke.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",content:xt.createElement("div",null,xt.createElement(x.default,{placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:Gr=>{In=Gr.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>zr(this,null,function*(){const Gr=yield(0,Be.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice",name:In}});(Gr==null?void 0:Gr.status)===0&&Zr()})})}function Nr(){if((0,Dt.Ny)()){Qn("practice_source");return}let In="";ke.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u6765\u6E90",content:xt.createElement("div",null,xt.createElement(x.default,{placeholder:"\u8BF7\u8F93\u5165\u6765\u6E90\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:Gr=>{In=Gr.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>zr(this,null,function*(){const Gr=yield(0,Be.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice_source",name:In}});(Gr==null?void 0:Gr.status)===0&&Zr()})})}return xt.createElement("div",{className:ot["oj-left-panel"]},xt.createElement("div",{className:ot["oj-form-info"]},xt.createElement(ne.default.Item,{label:"\u9898\u76EE\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0"}],className:ot.inputOne},xt.createElement(x.default,{bordered:!1,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0",suffix:xt.createElement("span",null,((Er=(Ir=Hn==null?void 0:Hn.hack)==null?void 0:Ir.name)==null?void 0:Er.length)||0,"/",xt.createElement("span",{className:"c-grey-999"},"60"))})),xt.createElement(ne.default.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},xt.createElement(We.Z,{placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u63CF\u8FF0\u2026",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),xt.createElement("div",{className:ot.row},xt.createElement("div",{className:ot.a},xt.createElement(ne.default.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficulty"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},xt.createElement(le.default,null,we(_e.difficulty)))),xt.createElement("div",{className:ot.b},xt.createElement(ne.default.Item,{label:"\u9898\u76EE\u6765\u6E90",name:["hack","source_discipline_ids"]},xt.createElement(le.default,{placeholder:"\u9009\u62E9\u9898\u76EE\u6765\u6E90",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:In=>In.parentNode},kr.map(In=>xt.createElement(le.default.Option,{key:In.id,value:In.id},In.name)))),xt.createElement(me.ZP,{style:{padding:"0 18px"},type:"primary",ghost:!0,onClick:()=>Nr()},(0,Dt.Ny)()?"\u6765\u6E90\u7BA1\u7406":"\u65B0\u5EFA\u6765\u6E90"))),xt.createElement("div",{className:ot.row},xt.createElement("div",{className:ot.b,style:{width:"100%",marginLeft:0}},xt.createElement(ne.default.Item,{label:"\u77E5\u8BC6\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"}],name:["hack","tag_discipline_ids"]},xt.createElement(le.default,{placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:In=>In.parentNode},Un.map(In=>xt.createElement(le.default.Option,{key:In.id,value:In.id},In.name)))),xt.createElement(me.ZP,{type:"primary",ghost:!0,onClick:()=>Sr()},(0,Dt.Ny)()?"\u77E5\u8BC6\u70B9\u7BA1\u7406":"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))),xt.createElement("div",{className:ot.field},xt.createElement(ne.default.Item,{label:"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236",name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:1,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F1\u79D2"}],className:ot.inputTwo,extra:xt.createElement("span",{style:{position:"absolute",left:200,top:11,color:"#333"}},"\u79D2",xt.createElement("span",{className:"ml5 c-grey-999"},"(\u4EE3\u7801\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F)"))},xt.createElement(ue.Z,{style:{width:185},min:1}))),xt.createElement("div",{className:"tst-case-info"},xt.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," ","\u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!jn.is_file&&xt.createElement(me.ZP,{style:{height:40},type:"primary",ghost:!0,onClick:zt},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),xt.createElement(ne.default.Item,{name:["hack","test_set_score"]},xt.createElement(fe.ZP.Group,{onChange:Xt},xt.createElement(fe.ZP,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",xt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),xt.createElement(fe.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",xt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),xt.createElement(he.default,{style:{marginBottom:"5px"},checked:Nn,onChange:rn},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA \uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u5B66\u751F\u505A\u9898\u8FC7\u7A0B\u4E2D\u65E0\u6CD5\u770B\u5230\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u662F\u5426\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7\uFF09"),xt.createElement(ne.default.Item,{className:ot.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},xt.createElement(fe.ZP.Group,{onChange:An},xt.createElement(oe.Z,{direction:"horizontal"},xt.createElement(fe.ZP,{value:!1},"\u6587\u672C"),xt.createElement(fe.ZP,{value:!0},"\u6587\u4EF6")))),xt.createElement(ne.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},xt.createElement(fe.ZP.Group,null,xt.createElement(fe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),xt.createElement(fe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),xt.createElement(fe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"),xt.createElement(fe.ZP,{value:3},"\u5FFD\u7565\u6BCF\u884C\u9996\u5C3E\u7A7A\u683C"))),!jn.test_set_score&&xt.createElement(ne.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},xt.createElement(fe.ZP.Group,{onChange:Gt},xt.createElement(fe.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),xt.createElement(fe.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),jn.is_file&&xt.createElement("div",{className:ot.upBtn},xt.createElement(me.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:()=>Jt(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),xt.createElement(Wt.Y2,{disabled:jn==null?void 0:jn.test_set_average,inputChange:Fn,showScore:!jn.test_set_score,data:bn,onRemove:hr})),!jn.is_file&&xt.createElement(ne.default.List,{name:"hack_sets"},(In,{})=>xt.createElement(pe.default,{accordion:!0},In.map((Gr,ei)=>xt.createElement(Ni,{key:`${Gr.key}--${ei}`,header:xt.createElement("a",{className:ot["test-case-name"]},xt.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",ei+1),Pr?null:xt.createElement(xt.Fragment,null,xt.createElement(ne.default.Item,{name:[Gr.name,"score"],fieldKey:[Gr.fieldKey,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${ei+1}\u8BC4\u5206`}]},xt.createElement(ue.Z,{onClick:er,min:0,max:100,disabled:Br})),xt.createElement("span",null,"%"))),extra:ei>0?xt.createElement("div",{onClick:er},xt.createElement(Se.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6\b"+(ei+1),onConfirm:()=>{tn(ei)}},xt.createElement(Le.Z,{className:ot["btn-remove-case"]}))):null},xt.createElement(ne.default.Item,{label:"\u8F93\u5165",name:[Gr.name,"input"],fieldKey:[Gr.fieldKey,"input"]},xt.createElement(ai,null)),xt.createElement(ne.default.Item,{label:"\u8F93\u51FA",name:[Gr.name,"output"],fieldKey:[Gr.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},xt.createElement(ai,null)))))))),xt.createElement(Wt.ZP,{rootIdentifier:null,visible:nn,onClose:()=>Jt(!1),onOK:Vn}),xt.createElement(kt,{visible:pn,onCancel:()=>{Qn(!1),Zr()},onOK:()=>{Qn(!1),Zr()}}))}},32259:function(xn,Zt,ve){"use strict";ve.d(Zt,{Y2:function(){return Ye},ZP:function(){return et}});var Ue=ve(67294),ot=ve(59810),x=ve(2453),ke=ve(14446),pe=ve(71230),ne=ve(78045),z=ve(71577),ae=ve(84567),re=ve(83062),se=ve(69677),me={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",le=ve(56448),ue=ve.n(le),fe=ve(33170),he=ve(25934),oe=ve(28706),Se=ve(91613),Ce=ve(67294),ye=Object.defineProperty,_e=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,De=(st,yt,Ve)=>yt in st?ye(st,yt,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):st[yt]=Ve,Ie=(st,yt)=>{for(var Ve in yt||(yt={}))Ne.call(yt,Ve)&&De(st,Ve,yt[Ve]);if(we)for(var Ve of we(yt))Ae.call(yt,Ve)&&De(st,Ve,yt[Ve]);return st},Pe=(st,yt)=>_e(st,Me(yt)),Le=(st,yt,Ve)=>new Promise((Qe,pt)=>{var mt=tt=>{try{nt(Ve.next(tt))}catch(rt){pt(rt)}},ft=tt=>{try{nt(Ve.throw(tt))}catch(rt){pt(rt)}},nt=tt=>tt.done?Qe(tt.value):Promise.resolve(tt.value).then(mt,ft);nt((Ve=Ve.apply(st,yt)).next())});const{Dragger:We}=ot.default,Be=st=>{const yt=rt=>rt&&rt.substring(0,rt.lastIndexOf("."));for(var Ve=[...st],Qe=0,pt=[],mt=0;mt<Ve.length;mt++){for(var ft="",nt=0;nt<pt.length;nt++)if(yt(pt[nt][0].name)==yt(Ve[mt].name)){Qe=1,ft=nt;break}if(Qe==1)pt[ft].push(Ve[mt]),Qe=0;else if(Qe==0){let rt=new Array;rt.push(Ve[mt]),pt.push(rt)}}return pt.map(rt=>{if(rt.forEach(Et=>{let bt=Et.name.split(/\.(?=[^\.]+$)/);Et.name=`${bt[0]}.${bt[1].toLowerCase()}`}),rt[0].name.includes(".in"))return rt.length===2?rt:[rt[0],{}];if(rt[0].name.includes(".out"))return rt.length===2?rt.reverse():[{},rt[0]]})},He=({onClose:st,onOK:yt,visible:Ve,wrapClassName:Qe,rootIdentifier:pt,multiple:mt=!1,defaultMultipleValue:ft=!0})=>{const[nt,tt]=(0,Ue.useState)([]),[rt,Et]=(0,Ue.useState)({}),[bt,Pt]=(0,Ue.useState)(!1),[Lt,dt]=(0,Ue.useState)(!0),[Ze,Ke]=(0,Ue.useState)(null),de=(0,Ue.useRef)([]),xe=(0,Ue.useRef)(0),ze=()=>{st()};(0,Ue.useEffect)(()=>{$e()},[]),(0,Ue.useEffect)(()=>{Ve&&(de.current=[],xe.current=0,tt([]),dt(ft))},[Ve]);const $e=()=>Le(void 0,null,function*(){try{Ke(!0)}catch(kt){}}),Ee=kt=>kt&&kt.substring(0,kt.lastIndexOf(".")),Re=kt=>{var St,Wt;const jt=Ee((St=kt[0])==null?void 0:St.name)||Ee((Wt=kt[1])==null?void 0:Wt.name),Vt=nt.filter(_t=>Ee(_t.name)!==jt);de.current=[...Vt],tt([...Vt])},Fe=kt=>{if(!Lt){const sn=new FormData;sn.append("file",kt.file),(0,fe.ZP)("/api/attachments/get_file_content.json",{method:"post",body:sn},!0).then(xt=>{if(xt.status===0){xe.current=xe.current+1;const en=de.current.map(an=>{var fn;if(an.name===kt.name){const Tn=Ie({},an);return(fn=kt==null?void 0:kt.name)!=null&&fn.includes(".in")?Tn.input=xt==null?void 0:xt.content:Tn.output=xt==null?void 0:xt.content,Tn}return an});if(de.current=[...en],tt([...en]),xe.current>0&&xe.current===nt.length){Pt(!1);let an=Be(en);an=an.filter(fn=>{var Tn,ar;return!!((Tn=fn[0])!=null&&Tn.name&&((ar=fn[1])!=null&&ar.name))}),an=an.map(fn=>Pe(Ie(Ie({},fn[0]),fn[1]),{is_file:!1})),yt(an),st()}}else Pt(!1),st()});return}if(Ze){const sn=new FormData;sn.append("file",kt.file),pt===null?sn.append("identifier","testsets"):sn.append("identifier",pt),(0,fe.ZP)("/api/attachments.json",{method:"post",body:sn},!0).then(xt=>{if(xt.filename){xe.current=xe.current+1;const en=de.current.map(an=>{var fn;if(an.name===(xt==null?void 0:xt.filename)){const Tn=Pe(Ie({},an),{is_oss:!Ze});return(fn=xt==null?void 0:xt.filename)!=null&&fn.includes(".in")?(Tn.in_object_key=xt==null?void 0:xt.object,Tn.in_object_size=xt==null?void 0:xt.size,Tn.input=xt==null?void 0:xt.filename,Tn.in_file=kt):(Tn.out_object_key=xt==null?void 0:xt.object,Tn.out_object_size=xt==null?void 0:xt.size,Tn.output=xt==null?void 0:xt.filename,Tn.out_file=kt),Tn}return an});if(de.current=[...en],tt([...en]),xe.current>0&&xe.current===nt.length){Pt(!1);let an=Be(en);an=an.filter(fn=>{var Tn,ar;return!!((Tn=fn[0])!=null&&Tn.name&&((ar=fn[1])!=null&&ar.name))}),an=an.map(fn=>Pe(Ie(Ie({},fn[0]),fn[1]),{is_file:!0})),yt(an),st()}}else Pt(!1),st()});return}const St=new(ue())({endpoint:rt.end_point,region:rt.region,accessKeyId:rt.access_key_id,accessKeySecret:rt.access_key_secret,bucket:rt.bucket,stsToken:rt.security_token}),Wt=kt.name,jt={container_type:"TestSet",file_name:Wt},Vt=(0,he.Z)();let _t=`testsets/${pt}/${Vt}${Wt.indexOf(".")>-1?"."+Wt.split(".").pop():""}`;pt===null&&(_t=`testsets/${Vt}${Wt.indexOf(".")>-1?"."+Wt.split(".").pop():""}`),St.multipartUpload(_t,new Blob([kt.file],{type:kt.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Wt+""},url:rt==null?void 0:rt.callback_url,host:rt==null?void 0:rt.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,fe.rz)(jt)}}).then(function(sn){if(sn.data.status===0){xe.current=xe.current+1;const Dt=de.current.map(xt=>{var en,an,fn,Tn,ar,pr,Ar,Dr,dr,zr,ai,ki,Ni,xi,cn,ir,sr;if(xt.name===((an=(en=sn.data)==null?void 0:en.data)==null?void 0:an.file_name)){const Yn=Pe(Ie({},xt),{is_oss:!Ze});return(ar=(Tn=(fn=sn.data)==null?void 0:fn.data)==null?void 0:Tn.file_name)!=null&&ar.includes(".in")?(Yn.in_object_key=(Ar=(pr=sn.data)==null?void 0:pr.data)==null?void 0:Ar.object,Yn.in_object_size=(dr=(Dr=sn.data)==null?void 0:Dr.data)==null?void 0:dr.size,Yn.input=(ai=(zr=sn.data)==null?void 0:zr.data)==null?void 0:ai.file_name,Yn.in_file=kt):(Yn.out_object_key=(Ni=(ki=sn.data)==null?void 0:ki.data)==null?void 0:Ni.object,Yn.out_object_size=(cn=(xi=sn.data)==null?void 0:xi.data)==null?void 0:cn.size,Yn.output=(sr=(ir=sn.data)==null?void 0:ir.data)==null?void 0:sr.file_name,Yn.out_file=kt),Yn}return xt});if(de.current=[...Dt],tt([...Dt]),xe.current>0&&xe.current===nt.length){Pt(!1);let xt=Be(Dt);xt=xt.filter(en=>{var an,fn;return!!((an=en[0])!=null&&an.name&&((fn=en[1])!=null&&fn.name))}),xt=xt.map(en=>Pe(Ie(Ie({},en[0]),en[1]),{is_file:!0})),yt(xt),st()}}})},Ge=kt=>new Promise((St,Wt)=>{let jt=0,Vt=[];for(let _t=0;_t<kt.length;_t++)kt[_t].file.slice(0,1).arrayBuffer().then(()=>{jt++,jt===kt.length&&(Vt.length?(x.ZP.warning(`${Vt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Wt()):St(kt))}).catch(sn=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",sn),jt++,Vt.push(kt[_t].name),jt===kt.length&&(Vt.length?(x.ZP.warning(`${Vt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Wt()):St(kt))})}),it=()=>Le(void 0,null,function*(){if(nt.length===0){x.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Ge(nt),Pt(!0),Be(nt).some(St=>{var Wt,jt;return!((Wt=St[0])!=null&&Wt.name&&((jt=St[1])!=null&&jt.name))})){ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Le(void 0,null,function*(){nt.map(St=>Le(void 0,null,function*(){Fe(St)}))}),onCancel:()=>{Pt(!1)}});return}nt.map(St=>Le(void 0,null,function*(){Fe(St)}))}),gt={name:"file",fileList:nt,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:kt=>{if(nt!=null&&nt.some(Wt=>Wt.name===kt.name))return x.ZP.info(`${kt.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(kt.size/1024/1024>100)return x.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(kt.name))return x.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const St={name:kt.name,uid:kt.uid,file:kt,percent:0};return nt.push(St),de.current=[...nt],tt([...nt]),!1}},Kt=Be(nt);return console.log(nt,Kt,"fileList"),Ce.createElement(ke.default,{open:Ve,wrapClassName:Qe,onOk:it,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:bt},onCancel:ze,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},Ce.createElement("div",{className:me.wrap},nt.length?Ce.createElement("div",null,Ce.createElement(pe.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},Ce.createElement("div",{style:{visibility:mt?"visible":"hidden"}},Ce.createElement("span",{className:me.greyText},"\u7528\u4F8B\u7C7B\u578B"),Ce.createElement(ne.ZP.Group,{className:`ml20 ${me.testCaseRadio}`,optionType:"button",value:Lt,onChange:kt=>dt(kt.target.value)},Ce.createElement(ne.ZP,{value:!1},"\u6587\u672C"),Ce.createElement(ne.ZP,{value:!0},"\u6587\u4EF6"))),Ce.createElement(ot.default,Ie({},gt),Ce.createElement(z.ZP,{type:"primary",className:me.btnS},Ce.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),Ce.createElement(Ye,{data:Kt,onRemove:Re})):Ce.createElement("div",{className:`${me.noData} mb30`},Ce.createElement(ot.default.Dragger,Pe(Ie({},gt),{className:me.dragger}),Ce.createElement("img",{src:ie,alt:"",className:"mb20"}),Ce.createElement("div",null,Ce.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),Ce.createElement("span",{className:me.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),Ce.createElement("div",{className:me.text},Ce.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),Ce.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",Ce.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",Ce.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",Ce.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",Ce.createElement("br",null))))},Ye=({data:st=[],onRemove:yt,width:Ve="auto",showScore:Qe=!1,disabled:pt=!1,inputChange:mt,onEvaluatingChange:ft,onSelectAll:nt,checkAll1:tt,checkAll2:rt,checkAll3:Et,checkAll4:bt,checkAll5:Pt,showEvaluatingSetting:Lt=!1,className:dt="",isProgramHomework:Ze=!1})=>{const Ke={value:"",filename:"",dataUrl:""},[de,xe]=(0,Ue.useState)(Ie({},Ke)),ze=Re=>{let Fe=document.createElement("a");document.body.appendChild(Fe);let Ge=URL.createObjectURL(Re.file);Fe.href=Ge,Fe.download=Re.name,Fe.click(),URL.revokeObjectURL(Ge),document.body.removeChild(Fe)},$e=(Re,Fe)=>{(0,oe.LR)(Re,Fe)},Ee=(Re,Fe)=>{ke.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ce.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{yt(Re,Fe)},onCancel:()=>{}})};return st.length?Ce.createElement("div",{className:dt,style:{width:Ve}},Ce.createElement("div",{className:`${Ze?me.headProgram:me.head}`},Lt&&Ce.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},Ce.createElement(ae.default,{checked:tt,onChange:Re=>{nt(Re.target.checked,"hidden")}}),Ce.createElement(re.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},Ce.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),Ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ce.createElement("div",{style:{width:Ze?"25%":"15%"}},"\u7528\u4F8B"),Ce.createElement("div",{style:{width:Qe?Ze?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),Ce.createElement("div",{style:{width:Qe?Ze?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),Qe&&Ce.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),Lt&&Ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},Ce.createElement(ae.default,{checked:bt,onChange:Re=>{nt(Re.target.checked,"input_visible")}}),Ce.createElement(re.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},Ce.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),Ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Lt&&Ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},Ce.createElement(ae.default,{checked:rt,onChange:Re=>{nt(Re.target.checked,"is_invisible")}}),Ce.createElement(re.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},Ce.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),Ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Lt&&Ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},Ce.createElement(ae.default,{checked:Pt,onChange:Re=>{nt(Re.target.checked,"actual_output_visible")}}),Ce.createElement(re.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},Ce.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),Ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Lt&&Ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},Ce.createElement(ae.default,{checked:Et,onChange:Re=>{nt(Re.target.checked,"last_match_rule")}}),Ce.createElement(re.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},Ce.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),Ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ce.createElement("div",{className:me.operation,style:Ze?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),Ce.createElement("div",{className:me.listWrapper,style:{boxShadow:Ze?"0px 2px 4px 0px #EAEEF4":"unset"}},st.map((Re,Fe)=>{var Ge,it,gt,Kt;return Ce.createElement("div",{key:Fe,className:me.list,style:Ze?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},Lt&&Ce.createElement("div",{style:{width:"15%"}},Ce.createElement(ae.default,{checked:!!Re.hidden,onChange:kt=>{ft(kt.target.checked,Fe,"hidden")}})),Ce.createElement("div",{style:{width:Ze?"25%":"15%",paddingLeft:Ze?"5px":"0px",paddingRight:Ze?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",Fe+1),Ce.createElement("div",{className:me.info,style:{width:Qe?Ze?"20%":"15%":"25%"}},Ce.createElement("span",{title:Re.input||((Ge=Re[0])==null?void 0:Ge.name),onClick:()=>Le(void 0,null,function*(){let kt;Re.input?Re.input_file_url?kt=Re.input_file_url:kt=Re.in_file:kt=Re[0];let St;typeof kt=="string"?(St=yield fetch(kt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),xe({value:yield St.text(),filename:"",dataUrl:kt})):(St=yield(0,oe.db)(kt.file),xe({value:St.text,filename:kt.name,dataUrl:St.link}))})},Re.input||((it=Re[0])==null?void 0:it.name))),Ce.createElement("div",{className:me.info,style:{width:Qe?Ze?"20%":"15%":"25%"}},Ce.createElement("span",{title:Re.output||((gt=Re[1])==null?void 0:gt.name),onClick:()=>Le(void 0,null,function*(){let kt;Re.input?Re.output_file_url?kt=Re.output_file_url:kt=Re.out_file:kt=Re[1];let St;typeof kt=="string"?(St=yield fetch(kt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),xe({value:yield St.text(),filename:"",dataUrl:kt})):(St=yield(0,oe.db)(kt.file),xe({value:St.text,filename:kt.name,dataUrl:St.link}))})},Re.output||((Kt=Re[1])==null?void 0:Kt.name))),Qe&&Ce.createElement("div",{style:{width:"20%"}},Ce.createElement(se.default,{size:"large",addonAfter:Ze?"%":null,disabled:pt,style:{width:"80%"},onChange:kt=>mt(kt,Fe),value:Re.score}),!Ze&&Ce.createElement("span",null,"\xA0%")),Lt&&Ce.createElement("div",{style:{width:"20%"}},Ce.createElement(ae.default,{checked:Re.input_visible||!1,onChange:kt=>{ft(kt.target.checked,Fe,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Lt&&Ce.createElement("div",{style:{width:"20%"}},Ce.createElement(ae.default,{checked:Re.is_invisible||!1,onChange:kt=>{ft(kt.target.checked,Fe,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Lt&&Ce.createElement("div",{style:{width:"20%"}},Ce.createElement(ae.default,{checked:Re.actual_output_visible||!1,onChange:kt=>{ft(kt.target.checked,Fe,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Lt&&Ce.createElement("div",{style:{width:"20%"}},Ce.createElement(ae.default,{checked:Re.last_match_rule||!1,onChange:kt=>{ft(kt.target.checked,Fe,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),Ce.createElement("div",{onClick:()=>Ee(Re,Fe),style:Ze?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},Ce.createElement("span",{className:me.del},"\u5220\u9664")))})),Ce.createElement(Se.Z,{close:!0,data:de.dataUrl,filename:de.filename,type:de.dataUrl.length?"txt":"",onClose:()=>xe(Ie({},Ke)),monacoEditor:{value:de.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):Ce.createElement(Ce.Fragment,null)};var et=He},40471:function(xn,Zt,ve){"use strict";ve.d(Zt,{G:function(){return pe},t:function(){return ke}});var Ue=ve(58971),ot=ve.n(Ue);const x=null;function ke(ne,z){let ae=ot().get("__ec");ae||(ae={}),ae[ne]=z,ot().set("__ec",ae)}function pe(ne,z){let ae=ot().get("__ec");return ae?ae[ne]===void 0?z:ae[ne]:z}},56448:function(xn){(function(Zt){(function(ve){if(1)xn.exports=ve();else var Ue})(function(){var ve,Ue,ot;return function(){function x(ke,pe,ne){function z(se,me){if(!pe[se]){if(!ke[se]){var ie=void 0;if(!me&&ie)return require(se,!0);if(ae)return ae(se,!0);var le=new Error("Cannot find module '"+se+"'");throw le.code="MODULE_NOT_FOUND",le}var ue=pe[se]={exports:{}};ke[se][0].call(ue.exports,function(fe){var he=ke[se][1][fe];return z(he||fe)},ue,ue.exports,x,ke,pe,ne)}return pe[se].exports}for(var ae=void 0,re=0;re<ne.length;re++)z(ne[re]);return z}return x}()({1:[function(x,ke,pe){"use strict";var ne=x("./browser/client");ne.Buffer=x("buffer").Buffer,ne.urllib=x("../shims/xhr"),ne.version=x("./browser/version").version,ke.exports=ne},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.slice.js");var re=x("assert"),se=x("../common/utils/checkBucketName"),me=se.checkBucketName,ie=pe;function le(fe){return Array.isArray?Array.isArray(fe):Object.prototype.toString.call(fe)==="[object Array]"}function ue(fe){return fe?le(fe)?fe:[fe]:[]}ie.useBucket=function(he){return me(he),this.options.bucket=he,this},ie.setBucket=function(he){return me(he),this.options.bucket=he,this},ie.getBucket=function(){return this.options.bucket},ie.deleteBucket=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce){var ye,_e;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ye=this._bucketRequestParams("DELETE",Se,"",Ce),we.next=3,this.request(ye);case 3:if(_e=we.sent,!(_e.status===200||_e.status===204)){we.next=6;break}return we.abrupt("return",{res:_e.res});case 6:return we.next=8,this.requestError(_e);case 8:throw we.sent;case 9:case"end":return we.stop()}},oe,this)}));function he(oe,Se){return fe.apply(this,arguments)}return he}(),ie.putBucketACL=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce,ye){var _e,Me;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return _e=this._bucketRequestParams("PUT",Se,"acl",ye),_e.headers={"x-oss-acl":Ce},_e.successStatuses=[200],Ne.next=5,this.request(_e);case 5:return Me=Ne.sent,Ne.abrupt("return",{bucket:Me.headers.location&&Me.headers.location.substring(1)||null,res:Me.res});case 7:case"end":return Ne.stop()}},oe,this)}));function he(oe,Se,Ce){return fe.apply(this,arguments)}return he}(),ie.getBucketACL=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce){var ye,_e;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ye=this._bucketRequestParams("GET",Se,"acl",Ce),ye.successStatuses=[200],ye.xmlResponse=!0,we.next=5,this.request(ye);case 5:return _e=we.sent,we.abrupt("return",{acl:_e.data.AccessControlList.Grant,owner:{id:_e.data.Owner.ID,displayName:_e.data.Owner.DisplayName},res:_e.res});case 7:case"end":return we.stop()}},oe,this)}));function he(oe,Se){return fe.apply(this,arguments)}return he}(),ie.putBucketLogging=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce,ye){var _e,Me,we;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return _e=this._bucketRequestParams("PUT",Se,"logging",ye),Me=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(Se,`</TargetBucket>
|
|
|
`),Ce&&(Me+="<TargetPrefix>".concat(Ce,`</TargetPrefix>
|
|
|
`)),Me+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,_e.content=Me,_e.mime="xml",_e.successStatuses=[200],Ae.next=9,this.request(_e);case 9:return we=Ae.sent,Ae.abrupt("return",{res:we.res});case 11:case"end":return Ae.stop()}},oe,this)}));function he(oe,Se,Ce){return fe.apply(this,arguments)}return he}(),ie.getBucketLogging=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce){var ye,_e,Me;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ye=this._bucketRequestParams("GET",Se,"logging",Ce),ye.successStatuses=[200],ye.xmlResponse=!0,Ne.next=5,this.request(ye);case 5:return _e=Ne.sent,Me=_e.data.LoggingEnabled,Ne.abrupt("return",{enable:!!Me,prefix:Me&&Me.TargetPrefix||null,res:_e.res});case 8:case"end":return Ne.stop()}},oe,this)}));function he(oe,Se){return fe.apply(this,arguments)}return he}(),ie.deleteBucketLogging=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce){var ye,_e;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ye=this._bucketRequestParams("DELETE",Se,"logging",Ce),ye.successStatuses=[204,200],we.next=4,this.request(ye);case 4:return _e=we.sent,we.abrupt("return",{res:_e.res});case 6:case"end":return we.stop()}},oe,this)}));function he(oe,Se){return fe.apply(this,arguments)}return he}(),ie.putBucketCORS=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce,ye){var _e,Me,we,Ne,Ae,De,Ie,Pe,Le,We;return z.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:for(Ce=Ce||[],re(Ce.length,"rules is required"),Ce.forEach(function(Ye){re(Ye.allowedOrigin,"allowedOrigin is required"),re(Ye.allowedMethod,"allowedMethod is required")}),_e=this._bucketRequestParams("PUT",Se,"cors",ye),Me=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,we=function(et){Me+="<AllowedOrigin>".concat(et,"</AllowedOrigin>")},Ne=function(et){Me+="<AllowedMethod>".concat(et,"</AllowedMethod>")},Ae=function(et){Me+="<AllowedHeader>".concat(et,"</AllowedHeader>")},De=function(et){Me+="<ExposeHeader>".concat(et,"</ExposeHeader>")},Ie=0,Pe=Ce.length;Ie<Pe;Ie++)Le=Ce[Ie],Me+="<CORSRule>",ue(Le.allowedOrigin).forEach(we),ue(Le.allowedMethod).forEach(Ne),ue(Le.allowedHeader).forEach(Ae),ue(Le.exposeHeader).forEach(De),Le.maxAgeSeconds&&(Me+="<MaxAgeSeconds>".concat(Le.maxAgeSeconds,"</MaxAgeSeconds>")),Me+="</CORSRule>";return Me+="</CORSConfiguration>",_e.content=Me,_e.mime="xml",_e.successStatuses=[200],He.next=16,this.request(_e);case 16:return We=He.sent,He.abrupt("return",{res:We.res});case 18:case"end":return He.stop()}},oe,this)}));function he(oe,Se,Ce){return fe.apply(this,arguments)}return he}(),ie.getBucketCORS=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce){var ye,_e,Me,we;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ye=this._bucketRequestParams("GET",Se,"cors",Ce),ye.successStatuses=[200],ye.xmlResponse=!0,Ae.next=5,this.request(ye);case 5:return _e=Ae.sent,Me=[],_e.data&&_e.data.CORSRule&&(we=_e.data.CORSRule,le(we)||(we=[we]),we.forEach(function(De){var Ie={};Object.keys(De).forEach(function(Pe){Ie[Pe.slice(0,1).toLowerCase()+Pe.slice(1,Pe.length)]=De[Pe]}),Me.push(Ie)})),Ae.abrupt("return",{rules:Me,res:_e.res});case 9:case"end":return Ae.stop()}},oe,this)}));function he(oe,Se){return fe.apply(this,arguments)}return he}(),ie.deleteBucketCORS=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce){var ye,_e;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ye=this._bucketRequestParams("DELETE",Se,"cors",Ce),ye.successStatuses=[204],we.next=4,this.request(ye);case 4:return _e=we.sent,we.abrupt("return",{res:_e.res});case 6:case"end":return we.stop()}},oe,this)}));function he(oe,Se){return fe.apply(this,arguments)}return he}(),ie.putBucketReferer=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce,ye,_e){var Me,we,Ne,Ae;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(Me=this._bucketRequestParams("PUT",Se,"referer",_e),we=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,we+=" <AllowEmptyReferer>".concat(Ce?"true":"false",`</AllowEmptyReferer>
|
|
|
`),ye&&ye.length>0){for(we+=` <RefererList>
|
|
|
`,Ne=0;Ne<ye.length;Ne++)we+=" <Referer>".concat(ye[Ne],`</Referer>
|
|
|
`);we+=` </RefererList>
|
|
|
`}else we+=` <RefererList />
|
|
|
`;return we+="</RefererConfiguration>",Me.content=we,Me.mime="xml",Me.successStatuses=[200],Ie.next=10,this.request(Me);case 10:return Ae=Ie.sent,Ie.abrupt("return",{res:Ae.res});case 12:case"end":return Ie.stop()}},oe,this)}));function he(oe,Se,Ce,ye){return fe.apply(this,arguments)}return he}(),ie.getBucketReferer=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce){var ye,_e,Me;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ye=this._bucketRequestParams("GET",Se,"referer",Ce),ye.successStatuses=[200],ye.xmlResponse=!0,Ne.next=5,this.request(ye);case 5:return _e=Ne.sent,Me=_e.data.RefererList.Referer||null,Me&&(le(Me)||(Me=[Me])),Ne.abrupt("return",{allowEmpty:_e.data.AllowEmptyReferer==="true",referers:Me,res:_e.res});case 9:case"end":return Ne.stop()}},oe,this)}));function he(oe,Se){return fe.apply(this,arguments)}return he}(),ie.deleteBucketReferer=function(){var fe=(0,ae.default)(z.default.mark(function oe(Se,Ce){return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return _e.next=2,this.putBucketReferer(Se,!0,null,Ce);case 2:return _e.abrupt("return",_e.sent);case 3:case"end":return _e.stop()}},oe,this)}));function he(oe,Se){return fe.apply(this,arguments)}return he}(),ie._bucketRequestParams=function(he,oe,Se,Ce){return{method:he,bucket:oe,subres:Se,timeout:Ce&&Ce.timeout,ctx:Ce&&Ce.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(x,ke,pe){(function(ne,z){(function(){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),re=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator"));x("core-js/modules/es.function.name.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.symbol.js"),x("core-js/modules/es.symbol.description.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.to-string.js");var me=x("debug")("ali-oss"),ie=x("xml2js"),le=x("agentkeepalive"),ue=x("merge-descriptors"),fe=x("platform"),he=x("utility"),oe=x("urllib"),Se=x("./version"),Ce=x("bowser"),ye=x("../common/signUtils"),_e=x("../common/client/initOptions"),Me=x("../common/utils/createRequest"),we=Me.createRequest,Ne=x("../common/utils/encoder"),Ae=Ne.encoder,De=x("../common/client/getReqUrl"),Ie=De.getReqUrl,Pe=x("../common/utils/setSTSToken"),Le=Pe.setSTSToken,We=x("../common/utils/retry"),Be=We.retry,He=x("../common/utils/isFunction"),Ye=He.isFunction,et=new le;function st(){var ft=fe.name,nt=fe.version;ft&&ft.toLowerCase&&ft.toLowerCase()==="ie"&&nt.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function yt(){return location&&location.protocol==="https:"}function Ve(ft,nt){if(st(),!(this instanceof Ve))return new Ve(ft,nt);ft&&ft.inited?this.options=ft:this.options=Ve.initOptions(ft),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=oe,this.agent=this.options.agent||et),this.ctx=nt,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}ke.exports=Ve,Ve.initOptions=function(nt){nt.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var tt=Object.assign({secure:yt(),useFetch:!1},nt);return _e(tt)};var Qe=Ve.prototype;Qe.debug=me,ue(Qe,x("./object")),ue(Qe,x("./bucket")),ue(Qe,x("../common/bucket/getBucketWebsite")),ue(Qe,x("../common/bucket/putBucketWebsite")),ue(Qe,x("../common/bucket/deleteBucketWebsite")),ue(Qe,x("../common/bucket/getBucketLifecycle")),ue(Qe,x("../common/bucket/putBucketLifecycle")),ue(Qe,x("../common/bucket/deleteBucketLifecycle")),ue(Qe,x("../common/bucket/putBucketVersioning")),ue(Qe,x("../common/bucket/getBucketVersioning")),ue(Qe,x("../common/bucket/getBucketInventory")),ue(Qe,x("../common/bucket/deleteBucketInventory")),ue(Qe,x("../common/bucket/listBucketInventory")),ue(Qe,x("../common/bucket/putBucketInventory")),ue(Qe,x("../common/bucket/abortBucketWorm")),ue(Qe,x("../common/bucket/completeBucketWorm")),ue(Qe,x("../common/bucket/extendBucketWorm")),ue(Qe,x("../common/bucket/getBucketWorm")),ue(Qe,x("../common/bucket/initiateBucketWorm")),ue(Qe,x("./managed-upload")),ue(Qe,x("../common/multipart-copy")),ue(Qe,x("../common/multipart")),ue(Qe,x("../common/parallel")),Qe.signature=function(nt){return this.debug("authorization stringToSign: %s",nt,"info"),ye.computeSignature(this.options.accessKeySecret,nt,this.options.headerEncoding)},Qe._getReqUrl=Ie,Qe.authorization=function(nt,tt,rt,Et){var bt=ye.buildCanonicalString(nt.toUpperCase(),tt,{headers:Et,parameters:rt});return ye.authorization(this.options.accessKeyId,this.options.accessKeySecret,bt,this.options.headerEncoding)},Qe.request=function(){var ft=(0,se.default)(re.default.mark(function nt(tt){var rt=this;return re.default.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(!this.options.retryMax){bt.next=6;break}return bt.next=3,Be(pt.bind(this),this.options.retryMax,{errorHandler:function(Lt){var dt=function(Ke){if(tt.stream)return!1;var de=[-1,-2].includes(Ke.status),xe=rt.options.requestErrorRetryHandle||function(){return!0};return de&&xe(Ke)};return!!dt(Lt)}})(tt);case 3:return bt.abrupt("return",bt.sent);case 6:return bt.abrupt("return",pt.call(this,tt));case 7:case"end":return bt.stop()}},nt,this)}));return function(nt){return ft.apply(this,arguments)}}();function pt(ft){return mt.apply(this,arguments)}function mt(){return mt=(0,se.default)(re.default.mark(function ft(nt){var tt,rt,Et,bt,Pt,Lt;return re.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(!(this.options.stsToken&&Ye(this.options.refreshSTSToken))){Ze.next=3;break}return Ze.next=3,Le.call(this);case 3:return tt=we.call(this,nt),this.options.useFetch||(tt.params.mode="disable-fetch"),bt=!!nt.stream,Ze.prev=6,Ze.next=9,this.urllib.request(tt.url,tt.params);case 9:rt=Ze.sent,this.debug("response %s %s, got %s, headers: %j",nt.method,tt.url,rt.status,rt.headers,"info"),Ze.next=16;break;case 13:Ze.prev=13,Ze.t0=Ze.catch(6),Et=Ze.t0;case 16:if(!(rt&&nt.successStatuses&&nt.successStatuses.indexOf(rt.status)===-1)){Ze.next=28;break}return Ze.next=19,this.requestError(rt);case 19:if(Pt=Ze.sent,!(Pt.code==="RequestTimeTooSkewed"&&!bt)){Ze.next=25;break}return this.options.amendTimeSkewed=+new Date(Pt.serverTime)-new Date,Ze.next=24,this.request(nt);case 24:return Ze.abrupt("return",Ze.sent);case 25:Pt.params=nt,Ze.next=32;break;case 28:if(!Et){Ze.next=32;break}return Ze.next=31,this.requestError(Et);case 31:Pt=Ze.sent;case 32:if(!Pt){Ze.next=34;break}throw Pt;case 34:if(!nt.xmlResponse){Ze.next=39;break}return Ze.next=37,this.parseXML(rt.data);case 37:Lt=Ze.sent,rt.data=Lt;case 39:return Ze.abrupt("return",rt);case 40:case"end":return Ze.stop()}},ft,this,[[6,13]])})),mt.apply(this,arguments)}Qe._getResource=function(nt){var tt="/";return nt.bucket&&(tt+="".concat(nt.bucket,"/")),nt.object&&(tt+=Ae(nt.object,this.options.headerEncoding)),tt},Qe._escape=function(nt){return he.encodeURIComponent(nt).replace(/%2F/g,"/")},Qe._getUserAgent=function(){var nt=z&&z.browser?"js":"nodejs",tt="aliyun-sdk-".concat(nt,"/").concat(Se.version),rt=fe.description;return!rt&&z&&(rt="Node.js ".concat(z.version.slice(1)," on ").concat(z.platform," ").concat(z.arch)),this._checkUserAgent("".concat(tt," ").concat(rt))},Qe._checkUserAgent=function(nt){var tt=nt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return tt},Qe.checkBrowserAndVersion=function(nt,tt){return Ce.name===nt&&Ce.version.split(".")[0]===tt},Qe.parseXML=function(nt){return new Promise(function(tt,rt){ne.isBuffer(nt)&&(nt=nt.toString()),ie.parseString(nt,{explicitRoot:!1,explicitArray:!1},function(Et,bt){Et?rt(Et):tt(bt)})})},Qe.requestError=function(){var ft=(0,se.default)(re.default.mark(function tt(rt){var Et,bt,Pt,Lt;return re.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(Et=null,!(!rt.data||!rt.data.length)){Ze.next=5;break}rt.status===-1||rt.status===-2?(Et=new Error(rt.message),Et.name=rt.name,Et.status=rt.status,Et.code=rt.name):(rt.status===404?(Et=new Error("Object not exists"),Et.name="NoSuchKeyError",Et.status=404,Et.code="NoSuchKey"):rt.status===412?(Et=new Error("Pre condition failed"),Et.name="PreconditionFailedError",Et.status=412,Et.code="PreconditionFailed"):(Et=new Error("Unknow error, status: ".concat(rt.status)),Et.name="UnknownError",Et.status=rt.status),Et.requestId=rt.headers["x-oss-request-id"],Et.host=""),Ze.next=32;break;case 5:return bt=String(rt.data),this.debug("request response error data: %s",bt,"error"),Ze.prev=7,Ze.next=10,this.parseXML(bt);case 10:if(Ze.t0=Ze.sent,Ze.t0){Ze.next=13;break}Ze.t0={};case 13:Pt=Ze.t0,Ze.next=23;break;case 16:return Ze.prev=16,Ze.t1=Ze.catch(7),this.debug(bt,"error"),Ze.t1.message+=`
|
|
|
raw xml: `.concat(bt),Ze.t1.status=rt.status,Ze.t1.requestId=rt.headers["x-oss-request-id"],Ze.abrupt("return",Ze.t1);case 23:Lt=Pt.Message||"unknow request error, status: ".concat(rt.status),Pt.Condition&&(Lt+=" (condition: ".concat(Pt.Condition,")")),Et=new Error(Lt),Et.name=Pt.Code?"".concat(Pt.Code,"Error"):"UnknownError",Et.status=rt.status,Et.code=Pt.Code,Et.requestId=Pt.RequestId,Et.hostId=Pt.HostId,Et.serverTime=Pt.ServerTime;case 32:return this.debug("generate error %j",Et,"error"),Ze.abrupt("return",Et);case 34:case"end":return Ze.stop()}},tt,this,[[7,16]])}));function nt(tt){return ft.apply(this,arguments)}return nt}()}).call(this)}).call(this,{isBuffer:x("../../node_modules/is-buffer/index.js")},x("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=x("@babel/runtime/helpers/interopRequireDefault"),ae=z(x("@babel/runtime/regenerator"));x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.typed-array.uint8-array.js"),x("core-js/modules/es.typed-array.copy-within.js"),x("core-js/modules/es.typed-array.every.js"),x("core-js/modules/es.typed-array.fill.js"),x("core-js/modules/es.typed-array.filter.js"),x("core-js/modules/es.typed-array.find.js"),x("core-js/modules/es.typed-array.find-index.js"),x("core-js/modules/es.typed-array.for-each.js"),x("core-js/modules/es.typed-array.includes.js"),x("core-js/modules/es.typed-array.index-of.js"),x("core-js/modules/es.typed-array.iterator.js"),x("core-js/modules/es.typed-array.join.js"),x("core-js/modules/es.typed-array.last-index-of.js"),x("core-js/modules/es.typed-array.map.js"),x("core-js/modules/es.typed-array.reduce.js"),x("core-js/modules/es.typed-array.reduce-right.js"),x("core-js/modules/es.typed-array.reverse.js"),x("core-js/modules/es.typed-array.set.js"),x("core-js/modules/es.typed-array.slice.js"),x("core-js/modules/es.typed-array.some.js"),x("core-js/modules/es.typed-array.sort.js"),x("core-js/modules/es.typed-array.subarray.js"),x("core-js/modules/es.typed-array.to-locale-string.js"),x("core-js/modules/es.typed-array.to-string.js");var re=z(x("@babel/runtime/helpers/asyncToGenerator")),se=x("util"),me=x("path"),ie=x("mime"),le=x("copy-to"),ue=x("../common/utils/isBlob"),fe=ue.isBlob,he=x("../common/utils/isFile"),oe=he.isFile,Se=x("../common/utils/isBuffer"),Ce=Se.isBuffer,ye=pe;ye.multipartUpload=function(){var Ae=(0,re.default)(ae.default.mark(function Ie(Pe,Le){var We,Be,He,Ye,et,st,yt,Ve,Qe,pt=arguments;return ae.default.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(We=pt.length>2&&pt[2]!==void 0?pt[2]:{},this.resetCancelFlag(),We.disabledMD5=We.disabledMD5===void 0?!0:!!We.disabledMD5,!(We.checkpoint&&We.checkpoint.uploadId)){ft.next=8;break}return Le&&oe(Le)&&(We.checkpoint.file=Le),ft.next=7,this._resumeMultipart(We.checkpoint,We);case 7:return ft.abrupt("return",ft.sent);case 8:return Be=102400,We.mime||(oe(Le)?We.mime=ie.getType(me.extname(Le.name)):fe(Le)?We.mime=Le.type:Ce(Le)?We.mime="":We.mime=ie.getType(me.extname(Le))),We.headers=We.headers||{},this._convertMetaToHeaders(We.meta,We.headers),ft.next=14,this._getFileSize(Le);case 14:if(He=ft.sent,!(He<Be)){ft.next=26;break}return We.contentLength=He,ft.next=19,this.put(Pe,Le,We);case 19:if(Ye=ft.sent,!(We&&We.progress)){ft.next=23;break}return ft.next=23,We.progress(1);case 23:return et={res:Ye.res,bucket:this.options.bucket,name:Pe,etag:Ye.res.headers.etag},(We.headers&&We.headers["x-oss-callback"]||We.callback)&&(et.data=Ye.data),ft.abrupt("return",et);case 26:if(!(We.partSize&&parseInt(We.partSize,10)!==We.partSize)){ft.next=28;break}throw new Error("partSize must be int number");case 28:if(!(We.partSize&&We.partSize<Be)){ft.next=30;break}throw new Error("partSize must not be smaller than ".concat(Be));case 30:return ft.next=32,this.initMultipartUpload(Pe,We);case 32:if(st=ft.sent,yt=st.uploadId,Ve=this._getPartSize(He,We.partSize),Qe={file:Le,name:Pe,fileSize:He,partSize:Ve,uploadId:yt,doneParts:[]},!(We&&We.progress)){ft.next=39;break}return ft.next=39,We.progress(0,Qe,st.res);case 39:return ft.next=41,this._resumeMultipart(Qe,We);case 41:return ft.abrupt("return",ft.sent);case 42:case"end":return ft.stop()}},Ie,this)}));function De(Ie,Pe){return Ae.apply(this,arguments)}return De}(),ye._resumeMultipart=function(){var Ae=(0,re.default)(ae.default.mark(function Ie(Pe,Le){var We,Be,He,Ye,et,st,yt,Ve,Qe,pt,mt,ft,nt,tt,rt,Et,bt,Pt,Lt;return ae.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(We=this,!this.isCancel()){Ze.next=3;break}throw this._makeCancelEvent();case 3:return Be=Pe.file,He=Pe.fileSize,Ye=Pe.partSize,et=Pe.uploadId,st=Pe.doneParts,yt=Pe.name,Ve=[],st.length>0&&le(st).to(Ve),Qe=this._divideParts(He,Ye),pt=Qe.length,mt=!1,ft=function(de,xe){return new Promise(function(){var ze=(0,re.default)(ae.default.mark(function $e(Ee,Re){var Fe,Ge,it,gt,Kt;return ae.default.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(St.prev=0,de.isCancel()){St.next=29;break}return Fe=Qe[xe-1],St.next=5,de._createBuffer(Be,Fe.start,Fe.end);case 5:return Ge=St.sent,it={content:Ge,size:Fe.end-Fe.start},St.prev=7,St.next=10,de._uploadPart(yt,et,xe,it,Le);case 10:gt=St.sent,St.next=18;break;case 13:if(St.prev=13,St.t0=St.catch(7),St.t0.status!==404){St.next=17;break}throw de._makeAbortEvent();case 17:throw St.t0;case 18:if(!(!de.isCancel()&&!mt)){St.next=26;break}if(Pe.doneParts.push({number:xe,etag:gt.res.headers.etag}),!Le.progress){St.next=23;break}return St.next=23,Le.progress(st.length/(pt+1),Pe,gt.res);case 23:Ee({number:xe,etag:gt.res.headers.etag}),St.next=27;break;case 26:Ee();case 27:St.next=30;break;case 29:Ee();case 30:St.next=41;break;case 32:St.prev=32,St.t1=St.catch(0),Kt=new Error,Kt.name=St.t1.name,Kt.message=St.t1.message,Kt.stack=St.t1.stack,Kt.partNum=xe,le(St.t1).to(Kt),Re(Kt);case 41:case"end":return St.stop()}},$e,null,[[0,32],[7,13]])}));return function($e,Ee){return ze.apply(this,arguments)}}())},nt=Array.from(new Array(pt),function(Ke,de){return de+1}),tt=Ve.map(function(Ke){return Ke.number}),rt=nt.filter(function(Ke){return tt.indexOf(Ke)<0}),Et=5,bt=Le.parallel||Et,Ze.next=17,this._parallel(rt,bt,function(Ke){return new Promise(function(de,xe){ft(We,Ke).then(function(ze){ze&&Ve.push(ze),de()}).catch(function(ze){xe(ze)})})});case 17:if(Pt=Ze.sent,mt=!0,Lt=Pt.find(function(Ke){return Ke.name==="abort"}),!Lt){Ze.next=22;break}throw Lt;case 22:if(!this.isCancel()){Ze.next=25;break}throw ft=null,this._makeCancelEvent();case 25:if(!(Pt&&Pt.length>0)){Ze.next=28;break}throw Pt[0].message="Failed to upload some parts with error: ".concat(Pt[0].toString()," part_num: ").concat(Pt[0].partNum),Pt[0];case 28:return Ze.next=30,this.completeMultipartUpload(yt,et,Ve,Le);case 30:return Ze.abrupt("return",Ze.sent);case 31:case"end":return Ze.stop()}},Ie,this)}));function De(Ie,Pe){return Ae.apply(this,arguments)}return De}(),ye._getFileSize=function(){var Ae=(0,re.default)(ae.default.mark(function Ie(Pe){return ae.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:if(!Ce(Pe)){We.next=4;break}return We.abrupt("return",Pe.length);case 4:if(!(fe(Pe)||oe(Pe))){We.next=6;break}return We.abrupt("return",Pe.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return We.stop()}},Ie)}));function De(Ie){return Ae.apply(this,arguments)}return De}();var _e=x("stream"),Me=_e.Readable;function we(Ae,De){if(!(this instanceof we))return new we(Ae,De);Me.call(this,De),this.file=Ae,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}se.inherits(we,Me),we.prototype.readFileAndPush=function(De){if(this.fileBuffer)for(var Ie=!0;Ie&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Pe=this.start,Le=Pe+De;Le=Le>this.fileBuffer.length?this.fileBuffer.length:Le,this.start=Le,Ie=this.push(this.fileBuffer.slice(Pe,Le))}},we.prototype._read=function(De){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Ie=16*1024;De=De||Ie;var Pe=this;this.reader.onload=function(We){Pe.fileBuffer=ne.from(new Uint8Array(We.target.result)),Pe.file=null,Pe.readFileAndPush(De)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(De)};function Ne(Ae){return Ae.arrayBuffer?Ae.arrayBuffer():new Promise(function(De,Ie){var Pe=new FileReader;Pe.onload=function(Le){De(Le.target.result)},Pe.onerror=function(Le){Ie(Le)},Pe.readAsArrayBuffer(Ae)})}ye._createBuffer=function(){var Ae=(0,re.default)(ae.default.mark(function Ie(Pe,Le,We){var Be,He;return ae.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(!(fe(Pe)||oe(Pe))){et.next=8;break}return Be=Pe.slice(Le,We),et.next=4,Ne(Be);case 4:return He=et.sent,et.abrupt("return",ne.from(He));case 8:if(!Ce(Pe)){et.next=12;break}return et.abrupt("return",Pe.subarray(Le,We));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return et.stop()}},Ie)}));function De(Ie,Pe,Le){return Ae.apply(this,arguments)}return De}(),ye._getPartSize=function(De,Ie){var Pe=1e4,Le=1*1024*1024;Ie||(Ie=Le);var We=Math.ceil(De/Pe);return Ie<We&&(Ie=We,console.warn("partSize has been set to ".concat(Ie,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ie},ye._divideParts=function(De,Ie){for(var Pe=Math.ceil(De/Ie),Le=[],We=0;We<Pe;We++){var Be=Ie*We,He=Math.min(Be+Ie,De);Le.push({start:Be,end:He})}return Le}}).call(this)}).call(this,x("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.number.constructor.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.promise.js");var z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("fs"),se=x("copy-to"),me=x("path"),ie=x("mime"),le=x("../common/callback"),ue=x("merge-descriptors"),fe=x("../common/utils/isBlob"),he=fe.isBlob,oe=x("../common/utils/isFile"),Se=oe.isFile,Ce=x("../common/utils/isBuffer"),ye=Ce.isBuffer,_e=x("../common/utils/obj2xml"),Me=_e.obj2xml,we=pe;we.append=function(){var Ne=(0,ae.default)(z.default.mark(function De(Ie,Pe,Le){var We;return z.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return Le=Le||{},Le.position===void 0&&(Le.position="0"),Le.subres={append:"",position:Le.position},Le.method="POST",He.next=6,this.put(Ie,Pe,Le);case 6:return We=He.sent,We.nextAppendPosition=We.res.headers["x-oss-next-append-position"],He.abrupt("return",We);case 9:case"end":return He.stop()}},De,this)}));function Ae(De,Ie,Pe){return Ne.apply(this,arguments)}return Ae}(),we.put=function(){var Ne=(0,ae.default)(z.default.mark(function De(Ie,Pe,Le){var We,Be,He,Ye,et;return z.default.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(Le=Le||{},Le.disabledMD5=Le.disabledMD5===void 0?!0:!!Le.disabledMD5,Le.headers=Le.headers||{},Ie=this._objectName(Ie),!ye(Pe)){yt.next=8;break}We=Pe,yt.next=19;break;case 8:if(!(he(Pe)||Se(Pe))){yt.next=18;break}return Le.mime||(Se(Pe)?Le.mime=ie.getType(me.extname(Pe.name)):Le.mime=Pe.type),yt.next=12,this._createBuffer(Pe,0,Pe.size);case 12:return We=yt.sent,yt.next=15,this._getFileSize(Pe);case 15:Le.contentLength=yt.sent,yt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Le.meta,Le.headers),Be=Le.method||"PUT",He=this._objectRequestParams(Be,Ie,Le),le.encodeCallback(He,Le),He.mime=Le.mime,He.disabledMD5=Le.disabledMD5,He.content=We,He.successStatuses=[200],yt.next=29,this.request(He);case 29:return Ye=yt.sent,et={name:Ie,url:this._objectUrl(Ie),res:Ye.res},He.headers&&He.headers["x-oss-callback"]&&(et.data=JSON.parse(Ye.data.toString())),yt.abrupt("return",et);case 33:case"end":return yt.stop()}},De,this)}));function Ae(De,Ie,Pe){return Ne.apply(this,arguments)}return Ae}(),we.putStream=function(){var Ne=(0,ae.default)(z.default.mark(function De(Ie,Pe,Le){var We,Be,He,Ye;return z.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return Le=Le||{},Le.headers=Le.headers||{},Ie=this._objectName(Ie),Le.contentLength?Le.headers["Content-Length"]=Le.contentLength:Le.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Le.meta,Le.headers),We=Le.method||"PUT",Be=this._objectRequestParams(We,Ie,Le),le.encodeCallback(Be,Le),Be.mime=Le.mime,Be.stream=Pe,Be.successStatuses=[200],st.next=13,this.request(Be);case 13:return He=st.sent,Ye={name:Ie,url:this._objectUrl(Ie),res:He.res},Be.headers&&Be.headers["x-oss-callback"]&&(Ye.data=JSON.parse(He.data.toString())),st.abrupt("return",Ye);case 17:case"end":return st.stop()}},De,this)}));function Ae(De,Ie,Pe){return Ne.apply(this,arguments)}return Ae}(),ue(we,x("../common/object/copyObject")),ue(we,x("../common/object/getObjectTagging")),ue(we,x("../common/object/putObjectTagging")),ue(we,x("../common/object/deleteObjectTagging")),ue(we,x("../common/image")),ue(we,x("../common/object/getBucketVersions")),ue(we,x("../common/object/getACL")),ue(we,x("../common/object/putACL")),ue(we,x("../common/object/head")),ue(we,x("../common/object/delete")),ue(we,x("../common/object/get")),ue(we,x("../common/object/putSymlink")),ue(we,x("../common/object/getSymlink")),ue(we,x("../common/object/deleteMulti")),ue(we,x("../common/object/getObjectMeta")),ue(we,x("../common/object/getObjectUrl")),ue(we,x("../common/object/generateObjectUrl")),ue(we,x("../common/object/signatureUrl")),ue(we,x("../common/object/asyncSignatureUrl")),we.putMeta=function(){var Ne=(0,ae.default)(z.default.mark(function De(Ie,Pe,Le){var We;return z.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return He.next=2,this.copy(Ie,Ie,{meta:Pe||{},timeout:Le&&Le.timeout,ctx:Le&&Le.ctx});case 2:return We=He.sent,He.abrupt("return",We);case 4:case"end":return He.stop()}},De,this)}));function Ae(De,Ie,Pe){return Ne.apply(this,arguments)}return Ae}(),we.list=function(){var Ne=(0,ae.default)(z.default.mark(function De(Ie,Pe){var Le,We,Be,He,Ye;return z.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return Le=this._objectRequestParams("GET","",Pe),Le.query=Ie,Le.xmlResponse=!0,Le.successStatuses=[200],st.next=6,this.request(Le);case 6:return We=st.sent,Be=We.data.Contents||[],He=this,Be&&(Array.isArray(Be)||(Be=[Be]),Be=Be.map(function(yt){return{name:yt.Key,url:He._objectUrl(yt.Key),lastModified:yt.LastModified,etag:yt.ETag,type:yt.Type,size:Number(yt.Size),storageClass:yt.StorageClass,owner:{id:yt.Owner.ID,displayName:yt.Owner.DisplayName}}})),Ye=We.data.CommonPrefixes||null,Ye&&(Array.isArray(Ye)||(Ye=[Ye]),Ye=Ye.map(function(yt){return yt.Prefix})),st.abrupt("return",{res:We.res,objects:Be,prefixes:Ye,nextMarker:We.data.NextMarker||null,isTruncated:We.data.IsTruncated==="true"});case 13:case"end":return st.stop()}},De,this)}));function Ae(De,Ie){return Ne.apply(this,arguments)}return Ae}(),we.listV2=function(){var Ne=(0,ae.default)(z.default.mark(function De(Ie){var Pe,Le,We,Be,He,Ye,et,st=arguments;return z.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return Pe=st.length>1&&st[1]!==void 0?st[1]:{},Le=Ie["continuation-token"]||Ie.continuationToken,Le&&(Pe.subres=Object.assign({"continuation-token":Le},Pe.subres)),We=this._objectRequestParams("GET","",Pe),We.query=Object.assign({"list-type":2},Ie),delete We.query["continuation-token"],delete We.query.continuationToken,We.xmlResponse=!0,We.successStatuses=[200],Ve.next=11,this.request(We);case 11:return Be=Ve.sent,He=Be.data.Contents||[],Ye=this,He&&(Array.isArray(He)||(He=[He]),He=He.map(function(Qe){var pt=null;return Qe.Owner&&(pt={id:Qe.Owner.ID,displayName:Qe.Owner.DisplayName}),{name:Qe.Key,url:Ye._objectUrl(Qe.Key),lastModified:Qe.LastModified,etag:Qe.ETag,type:Qe.Type,size:Number(Qe.Size),storageClass:Qe.StorageClass,owner:pt}})),et=Be.data.CommonPrefixes||null,et&&(Array.isArray(et)||(et=[et]),et=et.map(function(Qe){return Qe.Prefix})),Ve.abrupt("return",{res:Be.res,objects:He,prefixes:et,isTruncated:Be.data.IsTruncated==="true",keyCount:+Be.data.KeyCount,continuationToken:Be.data.ContinuationToken||null,nextContinuationToken:Be.data.NextContinuationToken||null});case 18:case"end":return Ve.stop()}},De,this)}));function Ae(De){return Ne.apply(this,arguments)}return Ae}(),we.restore=function(){var Ne=(0,ae.default)(z.default.mark(function De(Ie){var Pe,Le,We,Be,He=arguments;return z.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return Pe=He.length>1&&He[1]!==void 0?He[1]:{type:"Archive"},Pe=Pe||{},Pe.subres=Object.assign({restore:""},Pe.subres),Pe.versionId&&(Pe.subres.versionId=Pe.versionId),Le=this._objectRequestParams("POST",Ie,Pe),Pe.type==="ColdArchive"&&(We={RestoreRequest:{Days:Pe.Days?Pe.Days:2,JobParameters:{Tier:Pe.JobParameters?Pe.JobParameters:"Standard"}}},Le.content=Me(We,{headers:!0}),Le.mime="xml"),Le.successStatuses=[202],et.next=9,this.request(Le);case 9:return Be=et.sent,et.abrupt("return",{res:Be.res});case 11:case"end":return et.stop()}},De,this)}));function Ae(De){return Ne.apply(this,arguments)}return Ae}(),we._objectUrl=function(Ae){return this._getReqUrl({bucket:this.options.bucket,object:Ae})},we._objectRequestParams=function(Ae,De,Ie){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ie=Ie||{},De=this._objectName(De);var Pe={object:De,bucket:this.options.bucket,method:Ae,subres:Ie&&Ie.subres,timeout:Ie&&Ie.timeout,ctx:Ie&&Ie.ctx};return Ie.headers&&(Pe.headers={},se(Ie.headers).to(Pe.headers)),Pe},we._objectName=function(Ae){return Ae.replace(/^\/+/,"")},we._convertMetaToHeaders=function(Ae,De){Ae&&Object.keys(Ae).forEach(function(Ie){De["x-oss-meta-".concat(Ie)]=Ae[Ie]})},we._deleteFileSafe=function(Ae){var De=this;return new Promise(function(Ie){re.exists(Ae,function(Pe){Pe?re.unlink(Ae,function(Le){Le&&De.debug("unlink %j error: %s",Ae,Le,"error"),Ie()}):Ie()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(x,ke,pe){"use strict";pe.version="6.18.1"},{}],7:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.abortBucketWorm=void 0;var re=x("../utils/checkBucketName");function se(ie,le){return me.apply(this,arguments)}function me(){return me=(0,ae.default)(z.default.mark(function ie(le,ue){var fe,he;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return re.checkBucketName(le),fe=this._bucketRequestParams("DELETE",le,"worm",ue),Se.next=4,this.request(fe);case 4:return he=Se.sent,Se.abrupt("return",{res:he.res,status:he.status});case 6:case"end":return Se.stop()}},ie,this)})),me.apply(this,arguments)}pe.abortBucketWorm=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.completeBucketWorm=void 0;var re=x("../utils/checkBucketName");function se(ie,le,ue){return me.apply(this,arguments)}function me(){return me=(0,ae.default)(z.default.mark(function ie(le,ue,fe){var he,oe;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return re.checkBucketName(le),he=this._bucketRequestParams("POST",le,{wormId:ue},fe),Ce.next=4,this.request(he);case 4:return oe=Ce.sent,Ce.abrupt("return",{res:oe.res,status:oe.status});case 6:case"end":return Ce.stop()}},ie,this)})),me.apply(this,arguments)}pe.completeBucketWorm=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.deleteBucketInventory=void 0;var re=x("../utils/checkBucketName");function se(ie,le){return me.apply(this,arguments)}function me(){return me=(0,ae.default)(z.default.mark(function ie(le,ue){var fe,he,oe,Se,Ce=arguments;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return fe=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},he=Object.assign({inventory:"",inventoryId:ue},fe.subres),re.checkBucketName(le),oe=this._bucketRequestParams("DELETE",le,he,fe),oe.successStatuses=[204],_e.next=7,this.request(oe);case 7:return Se=_e.sent,_e.abrupt("return",{status:Se.status,res:Se.res});case 9:case"end":return _e.stop()}},ie,this)})),me.apply(this,arguments)}pe.deleteBucketInventory=se},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkBucketName"),se=re.checkBucketName,me=pe;me.deleteBucketLifecycle=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe,he){var oe,Se;return z.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return se(fe),oe=this._bucketRequestParams("DELETE",fe,"lifecycle",he),oe.successStatuses=[204],ye.next=5,this.request(oe);case 5:return Se=ye.sent,ye.abrupt("return",{res:Se.res});case 7:case"end":return ye.stop()}},ue,this)}));function le(ue,fe){return ie.apply(this,arguments)}return le}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkBucketName"),se=re.checkBucketName,me=pe;me.deleteBucketWebsite=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe,he){var oe,Se;return z.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return se(fe),oe=this._bucketRequestParams("DELETE",fe,"website",he),oe.successStatuses=[204],ye.next=5,this.request(oe);case 5:return Se=ye.sent,ye.abrupt("return",{res:Se.res});case 7:case"end":return ye.stop()}},ue,this)}));function le(ue,fe){return ie.apply(this,arguments)}return le}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.extendBucketWorm=void 0;var re=x("../utils/checkBucketName"),se=x("../utils/obj2xml");function me(le,ue,fe,he){return ie.apply(this,arguments)}function ie(){return ie=(0,ae.default)(z.default.mark(function le(ue,fe,he,oe){var Se,Ce,ye;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return re.checkBucketName(ue),Se=this._bucketRequestParams("POST",ue,{wormExtend:"",wormId:fe},oe),Ce={ExtendWormConfiguration:{RetentionPeriodInDays:he}},Se.mime="xml",Se.content=se.obj2xml(Ce,{headers:!0}),Se.successStatuses=[200],Me.next=8,this.request(Se);case 8:return ye=Me.sent,Me.abrupt("return",{res:ye.res,status:ye.status});case 10:case"end":return Me.stop()}},le,this)})),ie.apply(this,arguments)}pe.extendBucketWorm=me},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.getBucketInventory=void 0;var re=x("../utils/checkBucketName"),se=x("../utils/formatInventoryConfig");function me(le,ue){return ie.apply(this,arguments)}function ie(){return ie=(0,ae.default)(z.default.mark(function le(ue,fe){var he,oe,Se,Ce,ye=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=ye.length>2&&ye[2]!==void 0?ye[2]:{},oe=Object.assign({inventory:"",inventoryId:fe},he.subres),re.checkBucketName(ue),Se=this._bucketRequestParams("GET",ue,oe,he),Se.successStatuses=[200],Se.xmlResponse=!0,Me.next=8,this.request(Se);case 8:return Ce=Me.sent,Me.abrupt("return",{status:Ce.status,res:Ce.res,inventory:se.formatInventoryConfig(Ce.data)});case 10:case"end":return Me.stop()}},le,this)})),ie.apply(this,arguments)}pe.getBucketInventory=me},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.map.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkBucketName"),se=re.checkBucketName,me=x("../utils/isArray"),ie=me.isArray,le=x("../utils/formatObjKey"),ue=le.formatObjKey,fe=pe;fe.getBucketLifecycle=function(){var he=(0,ae.default)(z.default.mark(function Se(Ce,ye){var _e,Me,we;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return se(Ce),_e=this._bucketRequestParams("GET",Ce,"lifecycle",ye),_e.successStatuses=[200],_e.xmlResponse=!0,Ae.next=6,this.request(_e);case 6:return Me=Ae.sent,we=Me.data.Rule||null,we&&(ie(we)||(we=[we]),we=we.map(function(De){return De.ID&&(De.id=De.ID,delete De.ID),De.Tag&&!ie(De.Tag)&&(De.Tag=[De.Tag]),ue(De,"firstLowerCase")})),Ae.abrupt("return",{rules:we,res:Me.res});case 10:case"end":return Ae.stop()}},Se,this)}));function oe(Se,Ce){return he.apply(this,arguments)}return oe}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkBucketName"),se=re.checkBucketName,me=pe;me.getBucketVersioning=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe,he){var oe,Se,Ce;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return se(fe),oe=this._bucketRequestParams("GET",fe,"versioning",he),oe.xmlResponse=!0,oe.successStatuses=[200],_e.next=6,this.request(oe);case 6:return Se=_e.sent,Ce=Se.data.Status,_e.abrupt("return",{status:Se.status,versionStatus:Ce,res:Se.res});case 9:case"end":return _e.stop()}},ue,this)}));function le(ue,fe){return ie.apply(this,arguments)}return le}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkBucketName"),se=re.checkBucketName,me=x("../utils/isObject"),ie=me.isObject,le=pe;le.getBucketWebsite=function(){var ue=(0,ae.default)(z.default.mark(function he(oe,Se){var Ce,ye,_e;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return se(oe),Ce=this._bucketRequestParams("GET",oe,"website",Se),Ce.successStatuses=[200],Ce.xmlResponse=!0,we.next=6,this.request(Ce);case 6:return ye=we.sent,_e=[],ye.data.RoutingRules&&ye.data.RoutingRules.RoutingRule&&(ie(ye.data.RoutingRules.RoutingRule)?_e=[ye.data.RoutingRules.RoutingRule]:_e=ye.data.RoutingRules.RoutingRule),we.abrupt("return",{index:ye.data.IndexDocument&&ye.data.IndexDocument.Suffix||"",supportSubDir:ye.data.IndexDocument&&ye.data.IndexDocument.SupportSubDir||"false",type:ye.data.IndexDocument&&ye.data.IndexDocument.Type,routingRules:_e,error:ye.data.ErrorDocument&&ye.data.ErrorDocument.Key||null,res:ye.res});case 10:case"end":return we.stop()}},he,this)}));function fe(he,oe){return ue.apply(this,arguments)}return fe}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.getBucketWorm=void 0;var re=x("../utils/checkBucketName"),se=x("../utils/dataFix");function me(le,ue){return ie.apply(this,arguments)}function ie(){return ie=(0,ae.default)(z.default.mark(function le(ue,fe){var he,oe;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return re.checkBucketName(ue),he=this._bucketRequestParams("GET",ue,"worm",fe),he.successStatuses=[200],he.xmlResponse=!0,Ce.next=6,this.request(he);case 6:return oe=Ce.sent,se.dataFix(oe.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),Ce.abrupt("return",Object.assign(Object.assign({},oe.data),{res:oe.res,status:oe.status}));case 9:case"end":return Ce.stop()}},le,this)})),ie.apply(this,arguments)}pe.getBucketWorm=me},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.initiateBucketWorm=void 0;var re=x("../utils/obj2xml"),se=x("../utils/checkBucketName");function me(le,ue,fe){return ie.apply(this,arguments)}function ie(){return ie=(0,ae.default)(z.default.mark(function le(ue,fe,he){var oe,Se,Ce;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return se.checkBucketName(ue),oe=this._bucketRequestParams("POST",ue,"worm",he),Se={InitiateWormConfiguration:{RetentionPeriodInDays:fe}},oe.mime="xml",oe.content=re.obj2xml(Se,{headers:!0}),oe.successStatuses=[200],_e.next=8,this.request(oe);case 8:return Ce=_e.sent,_e.abrupt("return",{res:Ce.res,wormId:Ce.res.headers["x-oss-worm-id"],status:Ce.status});case 10:case"end":return _e.stop()}},le,this)})),ie.apply(this,arguments)}pe.initiateBucketWorm=me},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.listBucketInventory=void 0;var re=x("../utils/checkBucketName"),se=x("../utils/formatInventoryConfig");function me(le){return ie.apply(this,arguments)}function ie(){return ie=(0,ae.default)(z.default.mark(function le(ue){var fe,he,oe,Se,Ce,ye,_e,Me,we=arguments;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return fe=we.length>1&&we[1]!==void 0?we[1]:{},he=fe.continuationToken,oe=Object.assign({inventory:""},he&&{"continuation-token":he},fe.subres),re.checkBucketName(ue),Se=this._bucketRequestParams("GET",ue,oe,fe),Se.successStatuses=[200],Se.xmlResponse=!0,Ae.next=9,this.request(Se);case 9:return Ce=Ae.sent,ye=Ce.data,_e=Ce.res,Me=Ce.status,Ae.abrupt("return",{isTruncated:ye.IsTruncated==="true",nextContinuationToken:ye.NextContinuationToken,inventoryList:se.formatInventoryConfig(ye.InventoryConfiguration,!0),status:Me,res:_e});case 12:case"end":return Ae.stop()}},le,this)})),ie.apply(this,arguments)}pe.listBucketInventory=me},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.concat.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.putBucketInventory=void 0;var re=x("../utils/checkBucketName"),se=x("../utils/obj2xml");function me(le,ue){return ie.apply(this,arguments)}function ie(){return ie=(0,ae.default)(z.default.mark(function le(ue,fe){var he,oe,Se,Ce,ye,_e,Me,we,Ne,Ae,De,Ie=arguments;return z.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return he=Ie.length>2&&Ie[2]!==void 0?Ie[2]:{},oe=Object.assign({inventory:"",inventoryId:fe.id},he.subres),re.checkBucketName(ue),Se=fe.OSSBucketDestination,Ce=fe.optionalFields,ye=fe.includedObjectVersions,_e="acs:oss:::",Me="acs:ram::".concat(Se.accountId,":role/"),we={InventoryConfiguration:{Id:fe.id,IsEnabled:fe.isEnabled,Filter:{Prefix:fe.prefix||""},Destination:{OSSBucketDestination:{Format:Se.format,AccountId:Se.accountId,RoleArn:"".concat(Me).concat(Se.rolename),Bucket:"".concat(_e).concat(Se.bucket),Prefix:Se.prefix||"",Encryption:Se.encryption||""}},Schedule:{Frequency:fe.frequency},IncludedObjectVersions:ye,OptionalFields:{Field:(Ce==null?void 0:Ce.field)||[]}}},Ne=se.obj2xml(we,{headers:!0,firstUpperCase:!0}),Ae=this._bucketRequestParams("PUT",ue,oe,he),Ae.successStatuses=[200],Ae.mime="xml",Ae.content=Ne,Le.next=14,this.request(Ae);case 14:return De=Le.sent,Le.abrupt("return",{status:De.status,res:De.res});case 16:case"end":return Le.stop()}},le,this)})),ie.apply(this,arguments)}pe.putBucketInventory=me},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.array.includes.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkBucketName"),se=re.checkBucketName,me=x("../utils/isArray"),ie=me.isArray,le=x("../utils/deepCopy"),ue=le.deepCopy,fe=x("../utils/isObject"),he=fe.isObject,oe=x("../utils/obj2xml"),Se=oe.obj2xml,Ce=x("../utils/checkObjectTag"),ye=Ce.checkObjectTag,_e=x("../utils/getStrBytesCount"),Me=_e.getStrBytesCount,we=pe;we.putBucketLifecycle=function(){var Pe=(0,ae.default)(z.default.mark(function We(Be,He,Ye){var et,st,yt,Ve,Qe;return z.default.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(se(Be),ie(He)){mt.next=3;break}throw new Error("rules must be Array");case 3:return et=this._bucketRequestParams("PUT",Be,"lifecycle",Ye),st=[],yt={LifecycleConfiguration:{Rule:st}},He.forEach(function(ft){Ne(ft),Ie(ft),ft.id&&(ft.ID=ft.id,delete ft.id),st.push(ft)}),Ve=Se(yt,{headers:!0,firstUpperCase:!0}),et.content=Ve,et.mime="xml",et.successStatuses=[200],mt.next=13,this.request(et);case 13:return Qe=mt.sent,mt.abrupt("return",{res:Qe.res});case 15:case"end":return mt.stop()}},We,this)}));function Le(We,Be,He){return Pe.apply(this,arguments)}return Le}();function Ne(Pe){Pe.days&&(Pe.expiration={days:Pe.days}),Pe.date&&(Pe.expiration={createdBeforeDate:Pe.date})}function Ae(Pe,Le){var We=Pe.days,Be=Pe.createdBeforeDate;if(!We&&!Be)throw new Error("".concat(Le," must includes days or createdBeforeDate"));if(We&&!/^[1-9][0-9]*$/.test(We))throw new Error("days must be a positive integer");if(Be&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Be))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function De(Pe){if(!ie(Pe)&&!he(Pe))throw new Error("tag must be Object or Array");Pe=he(Pe)?[Pe]:Pe;var Le={},We=ue(Pe);We.forEach(function(Be){Le[Be.key]=Be.value}),ye(Le)}function Ie(Pe){if(Pe.id&&Me(Pe.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Pe.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Pe.status))throw new Error("Status must be Enabled or Disabled");if(Pe.transition){if(!["IA","Archive"].includes(Pe.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Ae(Pe.transition,"Transition")}if(Pe.expiration){if(!Pe.expiration.expiredObjectDeleteMarker)Ae(Pe.expiration,"Expiration");else if(Pe.expiration.days||Pe.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Pe.abortMultipartUpload&&Ae(Pe.abortMultipartUpload,"AbortMultipartUpload"),!Pe.expiration&&!Pe.abortMultipartUpload&&!Pe.transition&&!Pe.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Pe.tag){if(Pe.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");De(Pe.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.includes.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkBucketName"),se=re.checkBucketName,me=x("../utils/obj2xml"),ie=me.obj2xml,le=pe;le.putBucketVersioning=function(){var ue=(0,ae.default)(z.default.mark(function he(oe,Se){var Ce,ye,_e,Me,we=arguments;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(Ce=we.length>2&&we[2]!==void 0?we[2]:{},se(oe),["Enabled","Suspended"].includes(Se)){Ae.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ye=this._bucketRequestParams("PUT",oe,"versioning",Ce),_e={VersioningConfiguration:{Status:Se}},ye.mime="xml",ye.content=ie(_e,{headers:!0}),Ae.next=10,this.request(ye);case 10:return Me=Ae.sent,Ae.abrupt("return",{res:Me.res,status:Me.status});case 12:case"end":return Ae.stop()}},he,this)}));function fe(he,oe){return ue.apply(this,arguments)}return fe}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkBucketName"),se=re.checkBucketName,me=x("../utils/obj2xml"),ie=me.obj2xml,le=x("../utils/isArray"),ue=le.isArray,fe=pe;fe.putBucketWebsite=function(){var he=(0,ae.default)(z.default.mark(function Se(Ce){var ye,_e,Me,we,Ne,Ae,De,Ie=arguments;return z.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(ye=Ie.length>1&&Ie[1]!==void 0?Ie[1]:{},_e=Ie.length>2?Ie[2]:void 0,se(Ce),Me=this._bucketRequestParams("PUT",Ce,"website",_e),we={Suffix:ye.index||"index.html"},Ne={IndexDocument:we},Ae={WebsiteConfiguration:Ne},ye.supportSubDir&&(we.SupportSubDir=ye.supportSubDir),ye.type&&(we.Type=ye.type),ye.error&&(Ne.ErrorDocument={Key:ye.error}),ye.routingRules===void 0){Le.next=14;break}if(ue(ye.routingRules)){Le.next=13;break}throw new Error("RoutingRules must be Array");case 13:Ne.RoutingRules={RoutingRule:ye.routingRules};case 14:return Ae=ie(Ae),Me.content=Ae,Me.mime="xml",Me.successStatuses=[200],Le.next=20,this.request(Me);case 20:return De=Le.sent,Le.abrupt("return",{res:De.res});case 22:case"end":return Le.stop()}},Se,this)}));function oe(Se){return he.apply(this,arguments)}return oe}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(x,ke,pe){(function(ne){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),pe.encodeCallback=function(ae,re){if(ae.headers=ae.headers||{},!Object.prototype.hasOwnProperty.call(ae.headers,"x-oss-callback")&&re.callback){var se={callbackUrl:encodeURI(re.callback.url),callbackBody:re.callback.body};re.callback.host&&(se.callbackHost=re.callback.host),re.callback.contentType&&(se.callbackBodyType=re.callback.contentType);var me=ne.from(JSON.stringify(se)).toString("base64");if(ae.headers["x-oss-callback"]=me,re.callback.customValue){var ie={};Object.keys(re.callback.customValue).forEach(function(le){ie["x:".concat(le)]=re.callback.customValue[le].toString()}),ae.headers["x-oss-callback-var"]=ne.from(JSON.stringify(ie)).toString("base64")}}}}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(x,ke,pe){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js");var ne=function(ue){return ue&&ue.__esModule?ue:{default:ue}};Object.defineProperty(pe,"__esModule",{value:!0}),pe.getReqUrl=void 0;var z=ne(x("copy-to")),ae=ne(x("url")),re=ne(x("merge-descriptors")),se=ne(x("is-type-of")),me=x("../utils/isIP"),ie=x("../utils/checkConfigValid");function le(ue){var fe={},he=this.options.cname;ie.checkConfigValid(this.options.endpoint,"endpoint"),z.default(this.options.endpoint,!1).to(fe),ue.bucket&&!he&&!me.isIP(fe.hostname)&&!this.options.sldEnable&&(fe.host="".concat(ue.bucket,".").concat(fe.host));var oe="/";ue.bucket&&this.options.sldEnable&&(oe+="".concat(ue.bucket,"/")),ue.object&&(oe+=this._escape(ue.object).replace(/\+/g,"%2B")),fe.pathname=oe;var Se={};if(ue.query&&re.default(Se,ue.query),ue.subres){var Ce={};se.default.string(ue.subres)?Ce[ue.subres]="":se.default.array(ue.subres)?ue.subres.forEach(function(ye){Ce[ye]=""}):Ce=ue.subres,re.default(Se,Ce)}return fe.query=Se,ae.default.format(fe)}pe.getReqUrl=le},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(x,ke,pe){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.string.trim.js");var ne=x("humanize-ms"),z=x("url"),ae=x("../utils/checkBucketName"),re=ae.checkBucketName,se=x("../utils/setRegion"),me=se.setRegion,ie=x("../utils/checkConfigValid"),le=ie.checkConfigValid;function ue(fe,he){le(fe,"endpoint");var oe=z.parse(fe);if(oe.protocol||(oe=z.parse("http".concat(he?"s":"","://").concat(fe))),oe.protocol!=="http:"&&oe.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return oe}ke.exports=function(fe){if(!fe||!fe.accessKeyId||!fe.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");fe.stsToken&&!fe.refreshSTSToken&&!fe.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),fe.bucket&&re(fe.bucket);var he=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},fe);if(he.accessKeyId=he.accessKeyId.trim(),he.accessKeySecret=he.accessKeySecret.trim(),he.timeout&&(he.timeout=ne(he.timeout)),he.endpoint)he.endpoint=ue(he.endpoint,he.secure);else if(he.region)he.endpoint=me(he.region,he.internal,he.secure);else throw new Error("require options.endpoint or options.region");return he.inited=!0,he}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(x,ke,pe){"use strict";var ne=x("merge-descriptors"),z=pe;ne(z,x("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.concat.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkBucketName"),se=re.checkBucketName,me=x("querystring"),ie=x("js-base64"),le=ie.Base64.encode,ue=pe;ue.processObjectSave=function(){var he=(0,ae.default)(z.default.mark(function Se(Ce,ye,_e,Me){var we,Ne,Ae,De;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return fe(Ce,"sourceObject"),fe(ye,"targetObject"),fe(_e,"process"),ye=this._objectName(ye),Me&&se(Me),we=this._objectRequestParams("POST",Ce,{subres:"x-oss-process"}),Ne=Me?",b_".concat(le(Me)):"",ye=le(ye),Ae={"x-oss-process":"".concat(_e,"|sys/saveas,o_").concat(ye).concat(Ne)},we.content=me.stringify(Ae),Pe.next=12,this.request(we);case 12:return De=Pe.sent,Pe.abrupt("return",{res:De.res,status:De.res.status});case 14:case"end":return Pe.stop()}},Se,this)}));function oe(Se,Ce,ye,_e){return he.apply(this,arguments)}return oe}();function fe(he,oe){if(!he)throw new Error("".concat(oe," is required"));if(typeof he!="string")throw new Error("".concat(oe," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.regexp.to-string.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("debug")("ali-oss:multipart-copy"),se=x("copy-to"),me=pe;me.uploadPartCopy=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe,he,oe,Se,Ce){var ye,_e,Me,we,Ne,Ae=arguments;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ye=Ae.length>5&&Ae[5]!==void 0?Ae[5]:{},ye.headers=ye.headers||{},_e=ye.versionId||ye.subres&&ye.subres.versionId||null,_e?Me="/".concat(Ce.sourceBucketName,"/").concat(encodeURIComponent(Ce.sourceKey),"?versionId=").concat(_e):Me="/".concat(Ce.sourceBucketName,"/").concat(encodeURIComponent(Ce.sourceKey)),ye.headers["x-oss-copy-source"]=Me,Se&&(ye.headers["x-oss-copy-source-range"]="bytes=".concat(Se)),ye.subres={partNumber:oe,uploadId:he},we=this._objectRequestParams("PUT",fe,ye),we.mime=ye.mime,we.successStatuses=[200],Ie.next=12,this.request(we);case 12:return Ne=Ie.sent,Ie.abrupt("return",{name:fe,etag:Ne.res.headers.etag,res:Ne.res});case 14:case"end":return Ie.stop()}},ue,this)}));function le(ue,fe,he,oe,Se){return ie.apply(this,arguments)}return le}(),me.multipartUploadCopy=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe,he){var oe,Se,Ce,ye,_e,Me,we,Ne,Ae,De,Ie,Pe,Le=arguments;return z.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return oe=Le.length>2&&Le[2]!==void 0?Le[2]:{},this.resetCancelFlag(),Se=oe.versionId,Ce=Se===void 0?null:Se,ye={versionId:Ce},Be.next=6,this._getObjectMeta(he.sourceBucketName,he.sourceKey,ye);case 6:if(_e=Be.sent,Me=_e.res.headers["content-length"],he.startOffset=he.startOffset||0,he.endOffset=he.endOffset||Me,!(oe.checkpoint&&oe.checkpoint.uploadId)){Be.next=14;break}return Be.next=13,this._resumeMultipartCopy(oe.checkpoint,he,oe);case 13:return Be.abrupt("return",Be.sent);case 14:if(we=102400,Ne=he.endOffset-he.startOffset,!(Ne<we)){Be.next=18;break}throw new Error("copySize must not be smaller than ".concat(we));case 18:if(!(oe.partSize&&oe.partSize<we)){Be.next=20;break}throw new Error("partSize must not be smaller than ".concat(we));case 20:return Be.next=22,this.initMultipartUpload(fe,oe);case 22:if(Ae=Be.sent,De=Ae.uploadId,Ie=this._getPartSize(Ne,oe.partSize),Pe={name:fe,copySize:Ne,partSize:Ie,uploadId:De,doneParts:[]},!(oe&&oe.progress)){Be.next=29;break}return Be.next=29,oe.progress(0,Pe,Ae.res);case 29:return Be.next=31,this._resumeMultipartCopy(Pe,he,oe);case 31:return Be.abrupt("return",Be.sent);case 32:case"end":return Be.stop()}},ue,this)}));function le(ue,fe){return ie.apply(this,arguments)}return le}(),me._resumeMultipartCopy=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe,he,oe){var Se,Ce,ye,_e,Me,we,Ne,Ae,De,Ie,Pe,Le,We,Be,He,Ye,et,st,yt,Ve,Qe;return z.default.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(!this.isCancel()){mt.next=2;break}throw this._makeCancelEvent();case 2:if(Se=oe.versionId,Ce=Se===void 0?null:Se,ye={versionId:Ce},_e=fe.copySize,Me=fe.partSize,we=fe.uploadId,Ne=fe.doneParts,Ae=fe.name,De=this._divideMultipartCopyParts(_e,Me,he.startOffset),Ie=De.length,Pe={headers:{}},oe.copyheaders&&se(oe.copyheaders).to(Pe.headers),Ce&&se(ye).to(Pe),Le=function(nt,tt,rt){return new Promise(function(){var Et=(0,ae.default)(z.default.mark(function bt(Pt,Lt){var dt,Ze,Ke;return z.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(xe.prev=0,nt.isCancel()){xe.next=22;break}return dt=De[tt-1],Ze="".concat(dt.start,"-").concat(dt.end-1),xe.prev=4,xe.next=7,nt.uploadPartCopy(Ae,we,tt,Ze,rt,Pe);case 7:Ke=xe.sent,xe.next=15;break;case 10:if(xe.prev=10,xe.t0=xe.catch(4),xe.t0.status!==404){xe.next=14;break}throw nt._makeAbortEvent();case 14:throw xe.t0;case 15:if(nt.isCancel()){xe.next=22;break}if(re("content-range ".concat(Ke.res.headers["content-range"])),Ne.push({number:tt,etag:Ke.res.headers.etag}),fe.doneParts=Ne,!(oe&&oe.progress)){xe.next=22;break}return xe.next=22,oe.progress(Ne.length/Ie,fe,Ke.res);case 22:Pt(),xe.next=29;break;case 25:xe.prev=25,xe.t1=xe.catch(0),xe.t1.partNum=tt,Lt(xe.t1);case 29:case"end":return xe.stop()}},bt,null,[[0,25],[4,10]])}));return function(bt,Pt){return Et.apply(this,arguments)}}())},We=Array.from(new Array(Ie),function(ft,nt){return nt+1}),Be=Ne.map(function(ft){return ft.number}),He=We.filter(function(ft){return Be.indexOf(ft)<0}),Ye=5,et=oe.parallel||Ye,!(this.checkBrowserAndVersion("Internet Explorer","10")||et===1)){mt.next=28;break}st=0;case 18:if(!(st<He.length)){mt.next=26;break}if(!this.isCancel()){mt.next=21;break}throw this._makeCancelEvent();case 21:return mt.next=23,Le(this,He[st],he);case 23:st++,mt.next=18;break;case 26:mt.next=40;break;case 28:return mt.next=30,this._parallelNode(He,et,Le,he);case 30:if(yt=mt.sent,Ve=yt.find(function(ft){return ft.name==="abort"}),!Ve){mt.next=34;break}throw Ve;case 34:if(!this.isCancel()){mt.next=36;break}throw this._makeCancelEvent();case 36:if(!(yt&&yt.length>0)){mt.next=40;break}throw Qe=yt[0],Qe.message="Failed to copy some parts with error: ".concat(Qe.toString()," part_num: ").concat(Qe.partNum),Qe;case 40:return mt.next=42,this.completeMultipartUpload(Ae,we,Ne,oe);case 42:return mt.abrupt("return",mt.sent);case 43:case"end":return mt.stop()}},ue,this)}));function le(ue,fe,he){return ie.apply(this,arguments)}return le}(),me._divideMultipartCopyParts=function(le,ue,fe){for(var he=Math.ceil(le/ue),oe=[],Se=0;Se<he;Se++){var Ce=ue*Se+fe,ye=Math.min(Ce+ue,le+fe);oe.push({start:Ce,end:ye})}return oe},me._getObjectMeta=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe,he,oe){var Se,Ce;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Se=this.getBucket(),this.setBucket(fe),_e.next=4,this.head(he,oe);case 4:return Ce=_e.sent,this.setBucket(Se),_e.abrupt("return",Ce);case 7:case"end":return _e.stop()}},ue,this)}));function le(ue,fe,he){return ie.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=x("@babel/runtime/helpers/interopRequireDefault"),ae=z(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.array.sort.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js");var re=z(x("@babel/runtime/helpers/asyncToGenerator")),se=x("copy-to"),me=x("./callback"),ie=x("./utils/deepCopy"),le=ie.deepCopyWith,ue=x("./utils/isBuffer"),fe=ue.isBuffer,he=x("./utils/omit"),oe=he.omit,Se=pe;Se.listUploads=function(){var Ce=(0,re.default)(ae.default.mark(function _e(Me,we){var Ne,Ae,De,Ie;return ae.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return we=we||{},Ne={},se(we).to(Ne),Ne.subres="uploads",Ae=this._objectRequestParams("GET","",Ne),Ae.query=Me,Ae.xmlResponse=!0,Ae.successStatuses=[200],Le.next=10,this.request(Ae);case 10:return De=Le.sent,Ie=De.data.Upload||[],Array.isArray(Ie)||(Ie=[Ie]),Ie=Ie.map(function(We){return{name:We.Key,uploadId:We.UploadId,initiated:We.Initiated}}),Le.abrupt("return",{res:De.res,uploads:Ie,bucket:De.data.Bucket,nextKeyMarker:De.data.NextKeyMarker,nextUploadIdMarker:De.data.NextUploadIdMarker,isTruncated:De.data.IsTruncated==="true"});case 15:case"end":return Le.stop()}},_e,this)}));function ye(_e,Me){return Ce.apply(this,arguments)}return ye}(),Se.listParts=function(){var Ce=(0,re.default)(ae.default.mark(function _e(Me,we,Ne,Ae){var De,Ie,Pe;return ae.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return Ae=Ae||{},De={},se(Ae).to(De),De.subres={uploadId:we},Ie=this._objectRequestParams("GET",Me,De),Ie.query=Ne,Ie.xmlResponse=!0,Ie.successStatuses=[200],We.next=10,this.request(Ie);case 10:return Pe=We.sent,We.abrupt("return",{res:Pe.res,uploadId:Pe.data.UploadId,bucket:Pe.data.Bucket,name:Pe.data.Key,partNumberMarker:Pe.data.PartNumberMarker,nextPartNumberMarker:Pe.data.NextPartNumberMarker,maxParts:Pe.data.MaxParts,isTruncated:Pe.data.IsTruncated,parts:Pe.data.Part||[]});case 12:case"end":return We.stop()}},_e,this)}));function ye(_e,Me,we,Ne){return Ce.apply(this,arguments)}return ye}(),Se.abortMultipartUpload=function(){var Ce=(0,re.default)(ae.default.mark(function _e(Me,we,Ne){var Ae,De,Ie;return ae.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return this._stop(),Ne=Ne||{},Ae={},se(Ne).to(Ae),Ae.subres={uploadId:we},De=this._objectRequestParams("DELETE",Me,Ae),De.successStatuses=[204],Le.next=9,this.request(De);case 9:return Ie=Le.sent,Le.abrupt("return",{res:Ie.res});case 11:case"end":return Le.stop()}},_e,this)}));function ye(_e,Me,we){return Ce.apply(this,arguments)}return ye}(),Se.initMultipartUpload=function(){var Ce=(0,re.default)(ae.default.mark(function _e(Me,we){var Ne,Ae,De;return ae.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return we=we||{},Ne={},se(we).to(Ne),Ne.headers=Ne.headers||{},this._convertMetaToHeaders(we.meta,Ne.headers),Ne.subres="uploads",Ae=this._objectRequestParams("POST",Me,Ne),Ae.mime=we.mime,Ae.xmlResponse=!0,Ae.successStatuses=[200],Pe.next=12,this.request(Ae);case 12:return De=Pe.sent,Pe.abrupt("return",{res:De.res,bucket:De.data.Bucket,name:De.data.Key,uploadId:De.data.UploadId});case 14:case"end":return Pe.stop()}},_e,this)}));function ye(_e,Me){return Ce.apply(this,arguments)}return ye}(),Se.uploadPart=function(){var Ce=(0,re.default)(ae.default.mark(function _e(Me,we,Ne,Ae,De,Ie,Pe){var Le,We;return ae.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(Le={size:Ie-De},We=ne&&ne.browser,!We){He.next=8;break}return He.next=5,this._createBuffer(Ae,De,Ie);case 5:Le.content=He.sent,He.next=11;break;case 8:return He.next=10,this._createStream(Ae,De,Ie);case 10:Le.stream=He.sent;case 11:return He.next=13,this._uploadPart(Me,we,Ne,Le,Pe);case 13:return He.abrupt("return",He.sent);case 14:case"end":return He.stop()}},_e,this)}));function ye(_e,Me,we,Ne,Ae,De,Ie){return Ce.apply(this,arguments)}return ye}(),Se.completeMultipartUpload=function(){var Ce=(0,re.default)(ae.default.mark(function _e(Me,we,Ne,Ae){var De,Ie,Pe,Le,We,Be,He,Ye;return ae.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:for(De=Ne.concat().sort(function(yt,Ve){return yt.number-Ve.number}).filter(function(yt,Ve,Qe){return!Ve||yt.number!==Qe[Ve-1].number}),Ie=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,Pe=0;Pe<De.length;Pe++)Le=De[Pe],Ie+=`<Part>
|
|
|
`,Ie+="<PartNumber>".concat(Le.number,`</PartNumber>
|
|
|
`),Ie+="<ETag>".concat(Le.etag,`</ETag>
|
|
|
`),Ie+=`</Part>
|
|
|
`;return Ie+="</CompleteMultipartUpload>",Ae=Ae||{},We={},We=le(Ae,function(yt){if(fe(yt))return null}),We.subres={uploadId:we},We.headers=oe(We.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Be=this._objectRequestParams("POST",Me,We),me.encodeCallback(Be,We),Be.mime="xml",Be.content=Ie,Be.headers&&Be.headers["x-oss-callback"]||(Be.xmlResponse=!0),Be.successStatuses=[200],st.next=17,this.request(Be);case 17:if(He=st.sent,!Ae.progress){st.next=21;break}return st.next=21,Ae.progress(1,null,He.res);case 21:return Ye={res:He.res,bucket:Be.bucket,name:Me,etag:He.res.headers.etag},Be.headers&&Be.headers["x-oss-callback"]&&(Ye.data=JSON.parse(He.data.toString())),st.abrupt("return",Ye);case 24:case"end":return st.stop()}},_e,this)}));function ye(_e,Me,we,Ne){return Ce.apply(this,arguments)}return ye}(),Se._uploadPart=function(){var Ce=(0,re.default)(ae.default.mark(function _e(Me,we,Ne,Ae,De){var Ie,Pe,Le,We;return ae.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return De=De||{},Ie={},se(De).to(Ie),Ie.headers=Ie.headers||{},Ie.headers["Content-Length"]=Ae.size,Ie.headers=oe(Ie.headers,["x-oss-server-side-encryption"]),Ie.subres={partNumber:Ne,uploadId:we},Pe=this._objectRequestParams("PUT",Me,Ie),Pe.mime=Ie.mime,Le=ne&&ne.browser,Le?Pe.content=Ae.content:Pe.stream=Ae.stream,Pe.successStatuses=[200],Pe.disabledMD5=De.disabledMD5,He.next=15,this.request(Pe);case 15:if(We=He.sent,We.res.headers.etag){He.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 18:return Ae.stream&&(Ae.stream=null,Pe.stream=null),He.abrupt("return",{name:Me,etag:We.res.headers.etag,res:We.res});case 20:case"end":return He.stop()}},_e,this)}));function ye(_e,Me,we,Ne,Ae){return Ce.apply(this,arguments)}return ye}()}).call(this)}).call(this,x("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator")),ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("url"),se=x("utility"),me=x("copy-to"),ie=x("../../common/signUtils"),le=x("../utils/isIP"),ue=le.isIP,fe=x("../utils/setSTSToken"),he=fe.setSTSToken,oe=x("../utils/isFunction"),Se=oe.isFunction,Ce=pe;Ce.asyncSignatureUrl=function(){var ye=(0,ae.default)(z.default.mark(function Me(we,Ne){var Ae,De,Ie,Pe,Le;return z.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(!ue(this.options.endpoint.hostname)){Be.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Ne=Ne||{},we=this._objectName(we),Ne.method=Ne.method||"GET",Ae=se.timestamp()+(Ne.expires||1800),De={bucket:this.options.bucket,object:we},Ie=this._getResource(De),!(this.options.stsToken&&Se(this.options.refreshSTSToken))){Be.next=11;break}return Be.next=11,he.call(this);case 11:return this.options.stsToken&&(Ne["security-token"]=this.options.stsToken),Pe=ie._signatureForURL(this.options.accessKeySecret,Ne,Ie,Ae),Le=re.parse(this._getReqUrl(De)),Le.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ae,Signature:Pe.Signature},me(Pe.subResource).to(Le.query),Be.abrupt("return",Le.format());case 17:case"end":return Be.stop()}},Me,this)}));function _e(Me,we){return ye.apply(this,arguments)}return _e}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js");var ae=ne(x("@babel/runtime/helpers/typeof")),re=ne(x("@babel/runtime/helpers/asyncToGenerator")),se=x("../utils/checkBucketName"),me=se.checkBucketName,ie=pe,le=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];ie.copy=function(){var ue=(0,re.default)(z.default.mark(function he(oe,Se,Ce,ye){var _e,Me,we;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return(0,ae.default)(Ce)==="object"&&(ye=Ce),ye=ye||{},ye.headers=ye.headers||{},Object.keys(ye.headers).forEach(function(De){ye.headers["x-oss-copy-source-".concat(De.toLowerCase())]=ye.headers[De]}),(ye.meta||Object.keys(ye.headers).find(function(De){return le.includes(De.toLowerCase())}))&&(ye.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ye.meta,ye.headers),Se=this._getSourceName(Se,Ce),ye.versionId&&(Se="".concat(Se,"?versionId=").concat(ye.versionId)),ye.headers["x-oss-copy-source"]=Se,_e=this._objectRequestParams("PUT",oe,ye),_e.xmlResponse=!0,_e.successStatuses=[200,304],Ae.next=14,this.request(_e);case 14:return Me=Ae.sent,we=Me.data,we&&(we={etag:we.ETag,lastModified:we.LastModified}),Ae.abrupt("return",{data:we,res:Me.res});case 18:case"end":return Ae.stop()}},he,this)}));function fe(he,oe,Se,Ce){return ue.apply(this,arguments)}return fe}(),ie._getSourceName=function(fe,he){return typeof he=="string"?fe=this._objectName(fe):fe[0]!=="/"?he=this.options.bucket:(he=fe.replace(/\/(.+?)(\/.*)/,"$1"),fe=fe.replace(/(\/.+?\/)(.*)/,"$2")),me(he),fe=encodeURIComponent(fe),fe="/".concat(he,"/").concat(fe),fe}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=pe;re.delete=function(){var se=(0,ae.default)(z.default.mark(function ie(le){var ue,fe,he,oe=arguments;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=oe.length>1&&oe[1]!==void 0?oe[1]:{},ue.subres=Object.assign({},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),fe=this._objectRequestParams("DELETE",le,ue),fe.successStatuses=[204],Ce.next=7,this.request(fe);case 7:return he=Ce.sent,Ce.abrupt("return",{res:he.res});case 9:case"end":return Ce.stop()}},ie,this)}));function me(ie){return se.apply(this,arguments)}return me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("utility"),se=x("../utils/obj2xml"),me=se.obj2xml,ie=pe;ie.deleteMulti=function(){var le=(0,ae.default)(z.default.mark(function fe(he){var oe,Se,Ce,ye,_e,Me,we,Ne,Ae,De,Ie,Pe,Le,We=arguments;return z.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(oe=We.length>1&&We[1]!==void 0?We[1]:{},Se=[],!(!he||!he.length)){He.next=4;break}throw new Error("names is required");case 4:for(Ce=0;Ce<he.length;Ce++)ye={},typeof he[Ce]=="string"?ye.Key=re.escape(this._objectName(he[Ce])):(_e=he[Ce],Me=_e.key,we=_e.versionId,ye.Key=re.escape(this._objectName(Me)),ye.VersionId=we),Se.push(ye);return Ne={Delete:{Quiet:!!oe.quiet,Object:Se}},Ae=me(Ne,{headers:!0}),oe.subres=Object.assign({delete:""},oe.subres),oe.versionId&&(oe.subres.versionId=oe.versionId),De=this._objectRequestParams("POST","",oe),De.mime="xml",De.content=Ae,De.xmlResponse=!0,De.successStatuses=[200],He.next=16,this.request(De);case 16:return Ie=He.sent,Pe=Ie.data,Le=Pe&&Pe.Deleted||null,Le&&(Array.isArray(Le)||(Le=[Le])),He.abrupt("return",{res:Ie.res,deleted:Le||[]});case 21:case"end":return He.stop()}},fe,this)}));function ue(fe){return le.apply(this,arguments)}return ue}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=pe;re.deleteObjectTagging=function(){var se=(0,ae.default)(z.default.mark(function ie(le){var ue,fe,he,oe=arguments;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=oe.length>1&&oe[1]!==void 0?oe[1]:{},ue.subres=Object.assign({tagging:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),le=this._objectName(le),fe=this._objectRequestParams("DELETE",le,ue),fe.successStatuses=[204],Ce.next=8,this.request(fe);case 8:return he=Ce.sent,Ce.abrupt("return",{status:he.status,res:he.res});case 10:case"end":return Ce.stop()}},ie,this)}));function me(ie){return se.apply(this,arguments)}return me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(x,ke,pe){"use strict";x("core-js/modules/es.array.concat.js");var ne=x("url"),z=x("../utils/isIP"),ae=z.isIP,re=pe;re.generateObjectUrl=function(me,ie){if(ae(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(ie)ie[ie.length-1]!=="/"&&(ie+="/");else{ie=this.options.endpoint.format();var le=ne.parse(ie),ue=this.options.bucket;le.hostname="".concat(ue,".").concat(le.hostname),le.host="".concat(ue,".").concat(le.host),ie=le.format()}return ie+this._escape(this._objectName(me))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=x("@babel/runtime/helpers/interopRequireDefault"),ae=z(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var re=z(x("@babel/runtime/helpers/asyncToGenerator")),se=x("fs"),me=x("is-type-of"),ie=pe;ie.get=function(){var le=(0,re.default)(ae.default.mark(function fe(he,oe){var Se,Ce,ye,_e,Me,we,Ne,Ae,De=arguments;return ae.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Se=De.length>2&&De[2]!==void 0?De[2]:{},Ce=null,ye=!1,me.writableStream(oe)?Ce=oe:me.string(oe)?(Ce=se.createWriteStream(oe),ye=!0):Se=oe,Se=Se||{},_e=ne&&ne.browser,Me=Se.responseCacheControl===null?"":"no-cache",we=_e&&Me?{"response-cache-control":Me}:{},Se.subres=Object.assign(we,Se.subres),Se.versionId&&(Se.subres.versionId=Se.versionId),Se.process&&(Se.subres["x-oss-process"]=Se.process),Pe.prev=11,Ae=this._objectRequestParams("GET",he,Se),Ae.writeStream=Ce,Ae.successStatuses=[200,206,304],Pe.next=17,this.request(Ae);case 17:Ne=Pe.sent,ye&&Ce.destroy(),Pe.next=28;break;case 21:if(Pe.prev=21,Pe.t0=Pe.catch(11),!ye){Pe.next=27;break}return Ce.destroy(),Pe.next=27,this._deleteFileSafe(oe);case 27:throw Pe.t0;case 28:return Pe.abrupt("return",{res:Ne.res,content:Ne.data});case 29:case"end":return Pe.stop()}},fe,this,[[11,21]])}));function ue(fe,he){return le.apply(this,arguments)}return ue}()}).call(this)}).call(this,x("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=pe;re.getACL=function(){var se=(0,ae.default)(z.default.mark(function ie(le){var ue,fe,he,oe=arguments;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=oe.length>1&&oe[1]!==void 0?oe[1]:{},ue.subres=Object.assign({acl:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),le=this._objectName(le),fe=this._objectRequestParams("GET",le,ue),fe.successStatuses=[200],fe.xmlResponse=!0,Ce.next=9,this.request(fe);case 9:return he=Ce.sent,Ce.abrupt("return",{acl:he.data.AccessControlList.Grant,owner:{id:he.data.Owner.ID,displayName:he.data.Owner.DisplayName},res:he.res});case 11:case"end":return Ce.stop()}},ie,this)}));function me(ie){return se.apply(this,arguments)}return me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.number.constructor.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=pe,se=x("../utils/isObject"),me=se.isObject,ie=x("../utils/isArray"),le=ie.isArray;re.getBucketVersions=ue,re.listObjectVersions=ue;function ue(){return fe.apply(this,arguments)}function fe(){return fe=(0,ae.default)(z.default.mark(function Se(){var Ce,ye,_e,Me,we,Ne,Ae,De,Ie=arguments;return z.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(Ce=Ie.length>0&&Ie[0]!==void 0?Ie[0]:{},ye=Ie.length>1&&Ie[1]!==void 0?Ie[1]:{},!(Ce.versionIdMarker&&Ce.keyMarker===void 0)){Le.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ye.subres=Object.assign({versions:""},ye.subres),ye.versionId&&(ye.subres.versionId=ye.versionId),_e=this._objectRequestParams("GET","",ye),_e.xmlResponse=!0,_e.successStatuses=[200],_e.query=oe(Ce),Le.next=12,this.request(_e);case 12:return Me=Le.sent,we=Me.data.Version||[],Ne=Me.data.DeleteMarker||[],Ae=this,we&&(Array.isArray(we)||(we=[we]),we=we.map(function(We){return{name:We.Key,url:Ae._objectUrl(We.Key),lastModified:We.LastModified,isLatest:We.IsLatest==="true",versionId:We.VersionId,etag:We.ETag,type:We.Type,size:Number(We.Size),storageClass:We.StorageClass,owner:{id:We.Owner.ID,displayName:We.Owner.DisplayName}}})),Ne&&(le(Ne)||(Ne=[Ne]),Ne=Ne.map(function(We){return{name:We.Key,lastModified:We.LastModified,versionId:We.VersionId,owner:{id:We.Owner.ID,displayName:We.Owner.DisplayName}}})),De=Me.data.CommonPrefixes||null,De&&(le(De)||(De=[De]),De=De.map(function(We){return We.Prefix})),Le.abrupt("return",{res:Me.res,objects:we,deleteMarker:Ne,prefixes:De,nextMarker:Me.data.NextKeyMarker||null,NextVersionIdMarker:Me.data.NextVersionIdMarker||null,nextKeyMarker:Me.data.NextKeyMarker||null,nextVersionIdMarker:Me.data.NextVersionIdMarker||null,isTruncated:Me.data.IsTruncated==="true"});case 21:case"end":return Le.stop()}},Se,this)})),fe.apply(this,arguments)}function he(Se){return Se.replace(/([A-Z])/g,"-$1").toLowerCase()}function oe(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ce={};return me(Se)&&Object.keys(Se).forEach(function(ye){Ce[he(ye)]=Se[ye]}),Ce}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=pe;re.getObjectMeta=function(){var se=(0,ae.default)(z.default.mark(function ie(le,ue){var fe,he;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ue=ue||{},le=this._objectName(le),ue.subres=Object.assign({objectMeta:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),fe=this._objectRequestParams("HEAD",le,ue),fe.successStatuses=[200],Se.next=8,this.request(fe);case 8:return he=Se.sent,Se.abrupt("return",{status:he.status,res:he.res});case 10:case"end":return Se.stop()}},ie,this)}));function me(ie,le){return se.apply(this,arguments)}return me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=pe,se=x("../utils/isObject"),me=se.isObject;re.getObjectTagging=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe){var he,oe,Se,Ce,ye,_e,Me=arguments;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return he=Me.length>1&&Me[1]!==void 0?Me[1]:{},he.subres=Object.assign({tagging:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),fe=this._objectName(fe),oe=this._objectRequestParams("GET",fe,he),oe.successStatuses=[200],Ne.next=8,this.request(oe);case 8:return Se=Ne.sent,Ne.next=11,this.parseXML(Se.data);case 11:return Ce=Ne.sent,ye=Ce.TagSet.Tag,ye=ye&&me(ye)?[ye]:ye||[],_e={},ye.forEach(function(Ae){_e[Ae.Key]=Ae.Value}),Ne.abrupt("return",{status:Se.status,res:Se.res,tag:_e});case 17:case"end":return Ne.stop()}},ue,this)}));function le(ue){return ie.apply(this,arguments)}return le}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(x,ke,pe){"use strict";var ne=x("../utils/isIP"),z=ne.isIP,ae=pe;ae.getObjectUrl=function(se,me){if(z(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return me?me[me.length-1]!=="/"&&(me+="/"):me=this.options.endpoint.format(),me+this._escape(this._objectName(se))}},{"../utils/isIP":69}],43:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=pe;re.getSymlink=function(){var se=(0,ae.default)(z.default.mark(function ie(le){var ue,fe,he,oe,Se=arguments;return z.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ue=Se.length>1&&Se[1]!==void 0?Se[1]:{},ue.subres=Object.assign({symlink:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),le=this._objectName(le),fe=this._objectRequestParams("GET",le,ue),fe.successStatuses=[200],ye.next=8,this.request(fe);case 8:return he=ye.sent,oe=he.res.headers["x-oss-symlink-target"],ye.abrupt("return",{targetName:decodeURIComponent(oe),res:he.res});case 11:case"end":return ye.stop()}},ie,this)}));function me(ie){return se.apply(this,arguments)}return me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/checkEnv"),se=re.checkEnv,me=pe;me.head=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe){var he,oe,Se,Ce,ye=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=ye.length>1&&ye[1]!==void 0?ye[1]:{},se("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),he.subres=Object.assign({},he.subres),he.versionId&&(he.subres.versionId=he.versionId),oe=this._objectRequestParams("HEAD",fe,he),oe.successStatuses=[200,304],Me.next=8,this.request(oe);case 8:return Se=Me.sent,Ce={meta:null,res:Se.res,status:Se.status},Se.status===200&&Object.keys(Se.headers).forEach(function(we){we.indexOf("x-oss-meta-")===0&&(Ce.meta||(Ce.meta={}),Ce.meta[we.substring(11)]=Se.headers[we])}),Me.abrupt("return",Ce);case 12:case"end":return Me.stop()}},ue,this)}));function le(ue){return ie.apply(this,arguments)}return le}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=pe;re.putACL=function(){var se=(0,ae.default)(z.default.mark(function ie(le,ue,fe){var he,oe;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return fe=fe||{},fe.subres=Object.assign({acl:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),fe.headers=fe.headers||{},fe.headers["x-oss-object-acl"]=ue,le=this._objectName(le),he=this._objectRequestParams("PUT",le,fe),he.successStatuses=[200],Ce.next=10,this.request(he);case 10:return oe=Ce.sent,Ce.abrupt("return",{res:oe.res});case 12:case"end":return Ce.stop()}},ie,this)}));function me(ie,le,ue){return se.apply(this,arguments)}return me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.object.keys.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("../utils/obj2xml"),se=re.obj2xml,me=x("../utils/checkObjectTag"),ie=me.checkObjectTag,le=pe;le.putObjectTagging=function(){var ue=(0,ae.default)(z.default.mark(function he(oe,Se){var Ce,ye,_e,Me,we=arguments;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ce=we.length>2&&we[2]!==void 0?we[2]:{},ie(Se),Ce.subres=Object.assign({tagging:""},Ce.subres),Ce.versionId&&(Ce.subres.versionId=Ce.versionId),oe=this._objectName(oe),ye=this._objectRequestParams("PUT",oe,Ce),ye.successStatuses=[200],Se=Object.keys(Se).map(function(De){return{Key:De,Value:Se[De]}}),_e={Tagging:{TagSet:{Tag:Se}}},ye.mime="xml",ye.content=se(_e),Ae.next=13,this.request(ye);case 13:return Me=Ae.sent,Ae.abrupt("return",{res:Me.res,status:Me.status});case 15:case"end":return Ae.stop()}},he,this)}));function fe(he,oe){return ue.apply(this,arguments)}return fe}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=pe;re.putSymlink=function(){var se=(0,ae.default)(z.default.mark(function ie(le,ue,fe){var he,oe;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return fe=fe||{},fe.headers=fe.headers||{},ue=this._escape(this._objectName(ue)),this._convertMetaToHeaders(fe.meta,fe.headers),fe.headers["x-oss-symlink-target"]=ue,fe.subres=Object.assign({symlink:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),fe.storageClass&&(fe.headers["x-oss-storage-class"]=fe.storageClass),le=this._objectName(le),he=this._objectRequestParams("PUT",le,fe),he.successStatuses=[200],Ce.next=13,this.request(he);case 13:return oe=Ce.sent,Ce.abrupt("return",{res:oe.res});case 15:case"end":return Ce.stop()}},ie,this)}));function me(ie,le,ue){return se.apply(this,arguments)}return me}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(x,ke,pe){"use strict";var ne=x("url"),z=x("utility"),ae=x("copy-to"),re=x("../../common/signUtils"),se=x("../utils/isIP"),me=se.isIP,ie=pe;ie.signatureUrl=function(ue,fe){if(me(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");fe=fe||{},ue=this._objectName(ue),fe.method=fe.method||"GET";var he=z.timestamp()+(fe.expires||1800),oe={bucket:this.options.bucket,object:ue},Se=this._getResource(oe);this.options.stsToken&&(fe["security-token"]=this.options.stsToken);var Ce=re._signatureForURL(this.options.accessKeySecret,fe,Se,he),ye=ne.parse(this._getReqUrl(oe));return ye.query={OSSAccessKeyId:this.options.accessKeyId,Expires:he,Signature:Ce.Signature},ae(Ce.subResource).to(ye.query),ye.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/web.dom-collections.iterator.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.function.name.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator")),re=x("./utils/isArray"),se=re.isArray,me=pe;me._parallelNode=function(){var ie=(0,ae.default)(z.default.mark(function ue(fe,he,oe,Se){var Ce,ye,_e,Me,we,Ne,Ae,De;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:Ce=this,ye=[],_e=[],Me=fe.length/he,we=fe.length%he,Ne=we===0?Me:(fe.length-we)/he+1,Ae=1,De=0;case 8:if(!(De<fe.length)){Pe.next=26;break}if(!Ce.isCancel()){Pe.next=11;break}return Pe.abrupt("break",26);case 11:if(Se?_e.push(oe(Ce,fe[De],Se)):_e.push(oe(Ce,fe[De])),!(_e.length===he||Ae===Ne&&De===fe.length-1)){Pe.next=23;break}return Pe.prev=13,Ae+=1,Pe.next=17,Promise.all(_e);case 17:Pe.next=22;break;case 19:Pe.prev=19,Pe.t0=Pe.catch(13),ye.push(Pe.t0);case 22:_e=[];case 23:De++,Pe.next=8;break;case 26:return Pe.abrupt("return",ye);case 27:case"end":return Pe.stop()}},ue,this,[[13,19]])}));function le(ue,fe,he,oe){return ie.apply(this,arguments)}return le}(),me._parallel=function(le,ue,fe){var he=this;return new Promise(function(oe){var Se=[];if(ue<=0||!le){oe(Se);return}function Ce(Pe){return function(){if(Pe===null)throw new Error("Callback was already called.");var Le=Pe;Pe=null;for(var We=arguments.length,Be=new Array(We),He=0;He<We;He++)Be[He]=arguments[He];Le.apply(this,Be)}}function ye(Pe){var Le=-1,We=Pe.length;return function(){return++Le<We&&!he.isCancel()?{value:Pe[Le],key:Le}:null}}var _e=ye(le),Me=!1,we=0,Ne=!1;function Ae(Pe){we-=1,Pe?(Me=!0,Se.push(Pe),oe(Se)):Me&&we<=0?(Me=!0,oe(Se)):Ne||(he.isCancel()?oe(Se):Ie())}function De(Pe,Le){fe(Pe).then(function(We){Le(null,We)}).catch(function(We){Le(We)})}function Ie(){for(Ne=!0;we<ue&&!Me&&!he.isCancel();){var Pe=_e();if(Pe===null||Se.length>0){Me=!0,we<=0&&oe(Se);return}we+=1,De(Pe.value,Ce(Ae))}Ne=!1}Ie()})},me.cancel=function(le){this.options.cancelFlag=!0,se(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(ue){if(ue.destroyed===!1){var fe={name:"cancel",message:"cancel"};ue.destroy(fe)}}),this.multipartUploadStreams=[],le&&this.abortMultipartUpload(le.name,le.uploadId,le.options)},me.isCancel=function(){return this.options.cancelFlag},me.resetCancelFlag=function(){this.options.cancelFlag=!1},me._stop=function(){this.options.cancelFlag=!0},me._makeCancelEvent=function(){var le={status:0,name:"cancel"};return le},me._makeAbortEvent=function(){var le={status:0,name:"abort",message:"upload task has been abort"};return le}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(x,ke,pe){(function(ne){(function(){"use strict";x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.array.sort.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js");var z=x("./../../shims/crypto/crypto.js"),ae=x("is-type-of"),re=x("./utils/lowercaseKeyHeader"),se=re.lowercaseKeyHeader;pe.buildCanonicalizedResource=function(ie,le){var ue="".concat(ie),fe="?";if(ae.string(le)&&le.trim()!=="")ue+=fe+le;else if(ae.array(le))le.sort(),ue+=fe+le.join("&");else if(le){var he=function(Ce,ye){return Ce[0]>ye[0]?1:Ce[0]<ye[0]?-1:0},oe=function(Ce){ue+=fe+Ce,(le[Ce]||le[Ce]===0)&&(ue+="=".concat(le[Ce])),fe="&"};Object.keys(le).sort(he).forEach(oe)}return ue},pe.buildCanonicalString=function(ie,le,ue,fe){ue=ue||{};var he=se(ue.headers),oe="x-oss-",Se=[],Ce={},ye=[ie.toUpperCase(),he["content-md5"]||"",he["content-type"],fe||he["x-oss-date"]];return Object.keys(he).forEach(function(_e){var Me=_e.toLowerCase();Me.indexOf(oe)===0&&(Ce[Me]=String(he[_e]).trim())}),Object.keys(Ce).sort().forEach(function(_e){Se.push("".concat(_e,":").concat(Ce[_e]))}),ye=ye.concat(Se),ye.push(this.buildCanonicalizedResource(le,ue.parameters)),ye.join(`
|
|
|
`)},pe.computeSignature=function(ie,le){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",fe=z.createHmac("sha1",ie);return fe.update(ne.from(le,ue)).digest("base64")},pe.authorization=function(ie,le,ue,fe){return"OSS ".concat(ie,":").concat(this.computeSignature(le,ue,fe))},pe._signatureForURL=function(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=arguments.length>2?arguments[2]:void 0,fe=arguments.length>3?arguments[3]:void 0,he=arguments.length>4?arguments[4]:void 0,oe={},Se=le.subResource,Ce=Se===void 0?{}:Se;if(le.process){var ye="x-oss-process";Ce[ye]=le.process}if(le.trafficLimit){var _e="x-oss-traffic-limit";Ce[_e]=le.trafficLimit}if(le.response&&Object.keys(le.response).forEach(function(Ae){var De="response-".concat(Ae.toLowerCase());Ce[De]=le.response[Ae]}),Object.keys(le).forEach(function(Ae){var De=Ae.toLowerCase(),Ie=le[Ae];De.indexOf("x-oss-")===0?oe[De]=Ie:(De.indexOf("content-md5")===0||De.indexOf("content-type")===0)&&(oe[Ae]=Ie)}),Object.prototype.hasOwnProperty.call(le,"security-token")&&(Ce["security-token"]=le["security-token"]),Object.prototype.hasOwnProperty.call(le,"callback")){var Me={callbackUrl:encodeURI(le.callback.url),callbackBody:le.callback.body};if(le.callback.host&&(Me.callbackHost=le.callback.host),le.callback.contentType&&(Me.callbackBodyType=le.callback.contentType),Ce.callback=ne.from(JSON.stringify(Me)).toString("base64"),le.callback.customValue){var we={};Object.keys(le.callback.customValue).forEach(function(Ae){we["x:".concat(Ae)]=le.callback.customValue[Ae]}),Ce["callback-var"]=ne.from(JSON.stringify(we)).toString("base64")}}var Ne=this.buildCanonicalString(le.method,ue,{headers:oe,parameters:Ce},fe.toString());return{Signature:this.computeSignature(ie,Ne,he),subResource:Ce}}}).call(this)}).call(this,x("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(x,ke,pe){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.checkBucketName=void 0,pe.checkBucketName=function(ne){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae=z?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ae.test(ne))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(x,ke,pe){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.checkConfigValid=void 0;var ne={endpoint:z,region:/^[a-zA-Z0-9\-_]+$/};function z(ae){return typeof ae=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ae):ae.host?/^[a-zA-Z0-9._:/-]+$/.test(ae.host):!1}pe.checkConfigValid=function(ae,re){if(ne[re]){var se=!0;if(ne[re]instanceof Function?se=ne[re](ae):se=ne[re].test(ae),!se)throw new Error("The ".concat(re," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(x,ke,pe){(function(ne){(function(){"use strict";Object.defineProperty(pe,"__esModule",{value:!0}),pe.checkEnv=void 0;function z(ae){ne.browser&&console.warn(ae)}pe.checkEnv=z}).call(this)}).call(this,x("_process"))},{_process:467}],54:[function(x,ke,pe){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.entries.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.checkObjectTag=void 0;var ne=x("./checkValid"),z=ne.checkValid,ae=x("./isObject"),re=ae.isObject,se=[{validator:function(ue){if(typeof ue!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],me={key:[].concat(se,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(se,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function ie(le){if(!re(le))throw new Error("tag must be Object");var ue=Object.entries(le);if(ue.length>10)throw new Error("maximum of 10 tags for a object");var fe=["key","value"];ue.forEach(function(he){he.forEach(function(oe,Se){z(oe,me[fe[Se]])})})}pe.checkObjectTag=ie},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(x,ke,pe){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.checkValid=void 0;function ne(z,ae){ae.forEach(function(re){if(re.validator)re.validator(z);else if(re.pattern&&!re.pattern.test(z))throw new Error(re.msg)})}pe.checkValid=ne},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(x,ke,pe){(function(ne){(function(){"use strict";x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.concat.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.createRequest=void 0;var z=x("./../../../shims/crypto/crypto.js"),ae=x("debug")("ali-oss"),re=x("mime"),se=x("dateformat"),me=x("copy-to"),ie=x("path"),le=x("./encoder"),ue=le.encoder,fe=x("./isIP"),he=fe.isIP,oe=x("./setRegion"),Se=oe.setRegion,Ce=x("../client/getReqUrl"),ye=Ce.getReqUrl,_e=x("./isDingTalk"),Me=_e.isDingTalk;function we(De,Ie){return De[Ie]||De[Ie.toLowerCase()]}function Ne(De,Ie){delete De[Ie],delete De[Ie.toLowerCase()]}function Ae(De){var Ie=new Date;this.options.amendTimeSkewed&&(Ie=+new Date+this.options.amendTimeSkewed);var Pe={"x-oss-date":se(Ie,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Pe["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Pe["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Pe,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Pe["x-oss-security-token"]=this.options.stsToken),me(De.headers).to(Pe),we(Pe,"Content-Type")||(De.mime&&De.mime.indexOf("/")>0?Pe["Content-Type"]=De.mime:Me()?Pe["Content-Type"]="application/octet-stream":Pe["Content-Type"]=re.getType(De.mime||ie.extname(De.object||""))),we(Pe,"Content-Type")||Ne(Pe,"Content-Type"),De.content&&(De.disabledMD5||(!De.headers||!De.headers["Content-MD5"]?Pe["Content-MD5"]=z.createHash("md5").update(ne.from(De.content,"utf8")).digest("base64"):Pe["Content-MD5"]=De.headers["Content-MD5"]),Pe["Content-Length"]||(Pe["Content-Length"]=De.content.length));var Le=Object.prototype.hasOwnProperty;for(var We in Pe)Pe[We]&&Le.call(Pe,We)&&(Pe[We]=ue(String(Pe[We]),this.options.headerEncoding));var Be=this._getResource(De);if(Pe.authorization=this.authorization(De.method,Be,De.subres,Pe,this.options.headerEncoding),he(this.options.endpoint.hostname)){var He=this.options,Ye=He.region,et=He.internal,st=He.secure,yt=Se(Ye,et,st);Pe.host="".concat(De.bucket,".").concat(yt.host)}var Ve=ye.bind(this)(De);ae("request %s %s, with headers %j, !!stream: %s",De.method,Ve,Pe,!!De.stream);var Qe=De.timeout||this.options.timeout,pt={method:De.method,content:De.content,stream:De.stream,headers:Pe,timeout:Qe,writeStream:De.writeStream,customResponse:De.customResponse,ctx:De.ctx||this.ctx};return this.agent&&(pt.agent=this.agent),this.httpsAgent&&(pt.httpsAgent=this.httpsAgent),pt.enableProxy=!!this.options.enableProxy,pt.proxy=this.options.proxy?this.options.proxy:null,{url:Ve,params:pt}}pe.createRequest=Ae}).call(this)}).call(this,x("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(x,ke,pe){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.entries.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.object.keys.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.dataFix=void 0;var ne=x("./isObject"),z=["true","TRUE","1",1],ae=["false","FALSE","0",0];function re(ie,le,ue){if(ne.isObject(ie)){var fe=le.remove,he=fe===void 0?[]:fe,oe=le.rename,Se=oe===void 0?{}:oe,Ce=le.camel,ye=Ce===void 0?[]:Ce,_e=le.bool,Me=_e===void 0?[]:_e,we=le.lowerFirst,Ne=we===void 0?!1:we;return he.forEach(function(Ae){return delete ie[Ae]}),Object.entries(Se).forEach(function(Ae){ie[Ae[0]]&&(ie[Ae[1]]||(ie[Ae[1]]=ie[Ae[0]],delete ie[Ae[0]]))}),ye.forEach(function(Ae){if(ie[Ae]){var De=Ae.replace(/^(.)/,function(Ie){return Ie.toLowerCase()}).replace(/-(\w)/g,function(Ie,Pe){return Pe.toUpperCase()});ie[De]||(ie[De]=ie[Ae])}}),Me.forEach(function(Ae){ie[Ae]=se(ie[Ae])}),typeof ue=="function"&&ue(ie),me(ie,Ne),re}}pe.dataFix=re;function se(ie){return ie?z.includes(ie)?!0:ae.includes(ie)?!1:ie:!1}function me(ie,le){le&&Object.keys(ie).forEach(function(ue){var fe=ue.replace(/^\w/,function(he){return he.toLowerCase()});typeof ie[fe]=="undefined"&&(ie[fe]=ie[ue],delete ie[ue])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js");var z=ne(x("@babel/runtime/helpers/typeof"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.deepCopyWith=pe.deepCopy=void 0;var ae=x("./isBuffer");pe.deepCopy=function(re){if(re===null||(0,z.default)(re)!=="object")return re;if(ae.isBuffer(re))return re.slice();var se=Array.isArray(re)?[]:{};return Object.keys(re).forEach(function(me){se[me]=pe.deepCopy(re[me])}),se},pe.deepCopyWith=function(re,se){function me(ie,le,ue){var fe=se(ie,le,ue);if(fe!==void 0)return fe;if(ie===null||(0,z.default)(ie)!=="object")return ie;if(ae.isBuffer(ie))return ie.slice();var he=Array.isArray(ie)?[]:{};return Object.keys(ie).forEach(function(oe){he[oe]=me(ie[oe],oe,ie)}),he}return se?me(re,"",null):pe.deepCopy(re)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(x,ke,pe){(function(ne){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.encoder=void 0;function z(ae){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return re==="utf-8"?ae:ne.from(ae).toString("latin1")}pe.encoder=z}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(x,ke,pe){"use strict";x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.formatInventoryConfig=void 0;var ne=x("../utils/dataFix"),z=x("../utils/isObject"),ae=x("../utils/isArray"),re=x("../utils/formatObjKey");function se(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return le&&z.isObject(ie)&&(ie=[ie]),ae.isArray(ie)?ie=ie.map(me):ie=me(ie),ie}pe.formatInventoryConfig=se;function me(ie){return ne.dataFix(ie,{bool:["IsEnabled"]},function(le){var ue,fe;le.prefix=le.Filter.Prefix,delete le.Filter,le.OSSBucketDestination=le.Destination.OSSBucketDestination,le.OSSBucketDestination.rolename=le.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete le.OSSBucketDestination.RoleArn,le.OSSBucketDestination.bucket=le.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete le.OSSBucketDestination.Bucket,delete le.Destination,le.frequency=le.Schedule.Frequency,delete le.Schedule.Frequency,!((ue=le==null?void 0:le.OptionalFields)===null||ue===void 0)&&ue.Field&&!ae.isArray((fe=le.OptionalFields)===null||fe===void 0?void 0:fe.Field)&&(le.OptionalFields.Field=[le.OptionalFields.Field])}),ie=re.formatObjKey(ie,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),ie}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js");var z=ne(x("@babel/runtime/helpers/typeof"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.formatObjKey=void 0;function ae(se,me,ie){if(se===null||(0,z.default)(se)!=="object")return se;var le;if(Array.isArray(se)){le=[];for(var ue=0;ue<se.length;ue++)le.push(ae(se[ue],me,ie))}else le={},Object.keys(se).forEach(function(fe){le[re(fe,me,ie)]=ae(se[fe],me,ie)});return le}pe.formatObjKey=ae;function re(se,me,ie){return ie&&ie.exclude&&ie.exclude.includes(se)||(me==="firstUpperCase"?se=se.replace(/^./,function(le){return le.toUpperCase()}):me==="firstLowerCase"&&(se=se.replace(/^./,function(le){return le.toLowerCase()}))),se}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(x,ke,pe){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.getStrBytesCount=void 0;function ne(z){for(var ae=0,re=0;re<z.length;re++){var se=z.charAt(re);/^[\u00-\uff]$/.test(se)?ae+=1:ae+=2}return ae}pe.getStrBytesCount=ne},{"core-js/modules/es.regexp.exec.js":300}],63:[function(x,ke,pe){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.isArray=void 0,pe.isArray=function(ne){return Object.prototype.toString.call(ne)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(x,ke,pe){"use strict";Object.defineProperty(pe,"__esModule",{value:!0}),pe.isBlob=void 0;function ne(z){return typeof Blob!="undefined"&&z instanceof Blob}pe.isBlob=ne},{}],65:[function(x,ke,pe){(function(ne){(function(){"use strict";Object.defineProperty(pe,"__esModule",{value:!0}),pe.isBuffer=void 0;function z(ae){return ne.isBuffer(ae)}pe.isBuffer=z}).call(this)}).call(this,{isBuffer:x("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(x,ke,pe){(function(ne){(function(){"use strict";x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.isDingTalk=void 0;function z(){return!!(ne.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}pe.isDingTalk=z}).call(this)}).call(this,x("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(x,ke,pe){"use strict";Object.defineProperty(pe,"__esModule",{value:!0}),pe.isFile=void 0,pe.isFile=function(ne){return typeof File!="undefined"&&ne instanceof File}},{}],68:[function(x,ke,pe){"use strict";Object.defineProperty(pe,"__esModule",{value:!0}),pe.isFunction=void 0,pe.isFunction=function(ne){return typeof ne=="function"}},{}],69:[function(x,ke,pe){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.isIP=void 0,pe.isIP=function(ne){var z=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,ae=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return z.test(ne)||ae.test(ne)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(x,ke,pe){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.isObject=void 0,pe.isObject=function(ne){return Object.prototype.toString.call(ne)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(x,ke,pe){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.lowercaseKeyHeader=void 0;var ne=x("./isObject");function z(ae){var re={};return ne.isObject(ae)&&Object.keys(ae).forEach(function(se){re[se.toLowerCase()]=ae[se]}),re}pe.lowercaseKeyHeader=z},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(x,ke,pe){"use strict";x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.obj2xml=void 0;var ne=x("./formatObjKey");function z(re){return Object.prototype.toString.call(re).replace(/(.*? |])/g,"").toLowerCase()}function ae(re,se){var me="";return se&&se.headers&&(me=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),se&&se.firstUpperCase&&(re=ne.formatObjKey(re,"firstUpperCase")),z(re)==="object"?Object.keys(re).forEach(function(ie){z(re[ie])!=="undefined"&&z(re[ie])!=="null"&&(z(re[ie])==="string"||z(re[ie])==="number"?me+="<".concat(ie,">").concat(re[ie],"</").concat(ie,">"):z(re[ie])==="object"?me+="<".concat(ie,">").concat(ae(re[ie]),"</").concat(ie,">"):z(re[ie])==="array"?me+=re[ie].map(function(le){return"<".concat(ie,">").concat(ae(le),"</").concat(ie,">")}).join(""):me+="<".concat(ie,">").concat(re[ie].toString(),"</").concat(ie,">"))}):me+=re.toString(),me}pe.obj2xml=ae},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(x,ke,pe){"use strict";x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.symbol.js"),x("core-js/modules/es.symbol.description.js"),x("core-js/modules/es.symbol.iterator.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/web.dom-collections.iterator.js"),x("core-js/modules/es.object.assign.js");function ne(se,me){var ie=typeof Symbol!="undefined"&&se[Symbol.iterator]||se["@@iterator"];if(!ie){if(Array.isArray(se)||(ie=z(se))||me&&se&&typeof se.length=="number"){ie&&(se=ie);var le=0,ue=function(){};return{s:ue,n:function(){return le>=se.length?{done:!0}:{done:!1,value:se[le++]}},e:function(Ce){throw Ce},f:ue}}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 fe=!0,he=!1,oe;return{s:function(){ie=ie.call(se)},n:function(){var Ce=ie.next();return fe=Ce.done,Ce},e:function(Ce){he=!0,oe=Ce},f:function(){try{!fe&&ie.return!=null&&ie.return()}finally{if(he)throw oe}}}}function z(se,me){if(se){if(typeof se=="string")return ae(se,me);var ie=Object.prototype.toString.call(se).slice(8,-1);if(ie==="Object"&&se.constructor&&(ie=se.constructor.name),ie==="Map"||ie==="Set")return Array.from(se);if(ie==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ie))return ae(se,me)}}function ae(se,me){(me==null||me>se.length)&&(me=se.length);for(var ie=0,le=new Array(me);ie<me;ie++)le[ie]=se[ie];return le}Object.defineProperty(pe,"__esModule",{value:!0}),pe.omit=void 0;function re(se,me){var ie=Object.assign({},se),le=ne(me),ue;try{for(le.s();!(ue=le.n()).done;){var fe=ue.value;delete ie[fe]}}catch(he){le.e(he)}finally{le.f()}return ie}pe.omit=re},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(x,ke,pe){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),Object.defineProperty(pe,"__esModule",{value:!0}),pe.retry=void 0;function ne(z,ae){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},se=0,me=re.retryDelay,ie=me===void 0?500:me,le=re.errorHandler,ue=le===void 0?function(){return!0}:le,fe=function he(){for(var oe=arguments.length,Se=new Array(oe),Ce=0;Ce<oe;Ce++)Se[Ce]=arguments[Ce];return new Promise(function(ye,_e){z.apply(void 0,Se).then(function(Me){se=0,ye(Me)}).catch(function(Me){se<ae&&ue(Me)?(se++,setTimeout(function(){ye(he.apply(void 0,Se))},ie)):(se=0,_e(Me))})})};return fe}pe.retry=ne},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(x,ke,pe){"use strict";var ne=function(se){return se&&se.__esModule?se:{default:se}};Object.defineProperty(pe,"__esModule",{value:!0}),pe.setRegion=void 0;var z=ne(x("url")),ae=x("./checkConfigValid");function re(se){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ae.checkConfigValid(se,"region");var le=ie?"https://":"http://",ue=me?"-internal.aliyuncs.com":".aliyuncs.com",fe="vpc100-oss-cn-";return se.substr(0,fe.length)===fe&&(ue=".aliyuncs.com"),z.default.parse(le+se+ue)}pe.setRegion=re},{"./checkConfigValid":52,url:472}],76:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.object.assign.js");var ae=ne(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(pe,"__esModule",{value:!0}),pe.checkCredentials=pe.setSTSToken=void 0;var re=x("./formatObjKey");function se(){return me.apply(this,arguments)}function me(){return me=(0,ae.default)(z.default.mark(function le(){var ue,fe;return z.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(this.options||(this.options={}),ue=new Date,!this.stsTokenFreshTime){oe.next=14;break}if(!(+ue-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){oe.next=12;break}return this.stsTokenFreshTime=ue,oe.next=7,this.options.refreshSTSToken();case 7:fe=oe.sent,fe=re.formatObjKey(fe,"firstLowerCase"),fe.securityToken&&(fe.stsToken=fe.securityToken),ie(fe),Object.assign(this.options,fe);case 12:oe.next=15;break;case 14:this.stsTokenFreshTime=ue;case 15:return oe.abrupt("return",null);case 16:case"end":return oe.stop()}},le,this)})),me.apply(this,arguments)}pe.setSTSToken=se;function ie(le){var ue=["accessKeySecret","accessKeyId","stsToken"],fe=Object.keys(le);ue.forEach(function(he){if(!fe.find(function(oe){return oe===he}))throw Error("refreshSTSToken must return contains ".concat(he))})}pe.checkCredentials=ie},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(x,ke,pe){function ne(ae,re,se,me,ie,le,ue){try{var fe=ae[le](ue),he=fe.value}catch(oe){se(oe);return}fe.done?re(he):Promise.resolve(he).then(me,ie)}function z(ae){return function(){var re=this,se=arguments;return new Promise(function(me,ie){var le=ae.apply(re,se);function ue(he){ne(le,me,ie,ue,fe,"next",he)}function fe(he){ne(le,me,ie,ue,fe,"throw",he)}ue(void 0)})}}ke.exports=z,ke.exports.__esModule=!0,ke.exports.default=ke.exports},{}],78:[function(x,ke,pe){function ne(z){return z&&z.__esModule?z:{default:z}}ke.exports=ne,ke.exports.__esModule=!0,ke.exports.default=ke.exports},{}],79:[function(x,ke,pe){function ne(z){"@babel/helpers - typeof";return ke.exports=ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ae){return typeof ae}:function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},ke.exports.__esModule=!0,ke.exports.default=ke.exports,ne(z)}ke.exports=ne,ke.exports.__esModule=!0,ke.exports.default=ke.exports},{}],80:[function(x,ke,pe){ke.exports=x("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(x,ke,pe){ke.exports=ne,ke.exports.HttpsAgent=ne;function ne(){}},{}],82:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=x("object-assign");function ae(Ye,et){if(Ye===et)return 0;for(var st=Ye.length,yt=et.length,Ve=0,Qe=Math.min(st,yt);Ve<Qe;++Ve)if(Ye[Ve]!==et[Ve]){st=Ye[Ve],yt=et[Ve];break}return st<yt?-1:yt<st?1:0}function re(Ye){return ne.Buffer&&typeof ne.Buffer.isBuffer=="function"?ne.Buffer.isBuffer(Ye):!!(Ye!=null&&Ye._isBuffer)}var se=x("util/"),me=Object.prototype.hasOwnProperty,ie=Array.prototype.slice,le=function(){return function(){}.name==="foo"}();function ue(Ye){return Object.prototype.toString.call(Ye)}function fe(Ye){return re(Ye)||typeof ne.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ye):Ye?!!(Ye instanceof DataView||Ye.buffer&&Ye.buffer instanceof ArrayBuffer):!1}var he=ke.exports=we,oe=/\s*function\s+([^\(\s]*)\s*/;function Se(Ye){if(se.isFunction(Ye)){if(le)return Ye.name;var et=Ye.toString(),st=et.match(oe);return st&&st[1]}}he.AssertionError=function(et){this.name="AssertionError",this.actual=et.actual,this.expected=et.expected,this.operator=et.operator,et.message?(this.message=et.message,this.generatedMessage=!1):(this.message=_e(this),this.generatedMessage=!0);var st=et.stackStartFunction||Me;if(Error.captureStackTrace)Error.captureStackTrace(this,st);else{var yt=new Error;if(yt.stack){var Ve=yt.stack,Qe=Se(st),pt=Ve.indexOf(`
|
|
|
`+Qe);if(pt>=0){var mt=Ve.indexOf(`
|
|
|
`,pt+1);Ve=Ve.substring(mt+1)}this.stack=Ve}}},se.inherits(he.AssertionError,Error);function Ce(Ye,et){return typeof Ye=="string"?Ye.length<et?Ye:Ye.slice(0,et):Ye}function ye(Ye){if(le||!se.isFunction(Ye))return se.inspect(Ye);var et=Se(Ye),st=et?": "+et:"";return"[Function"+st+"]"}function _e(Ye){return Ce(ye(Ye.actual),128)+" "+Ye.operator+" "+Ce(ye(Ye.expected),128)}function Me(Ye,et,st,yt,Ve){throw new he.AssertionError({message:st,actual:Ye,expected:et,operator:yt,stackStartFunction:Ve})}he.fail=Me;function we(Ye,et){Ye||Me(Ye,!0,et,"==",he.ok)}he.ok=we,he.equal=function(et,st,yt){et!=st&&Me(et,st,yt,"==",he.equal)},he.notEqual=function(et,st,yt){et==st&&Me(et,st,yt,"!=",he.notEqual)},he.deepEqual=function(et,st,yt){Ne(et,st,!1)||Me(et,st,yt,"deepEqual",he.deepEqual)},he.deepStrictEqual=function(et,st,yt){Ne(et,st,!0)||Me(et,st,yt,"deepStrictEqual",he.deepStrictEqual)};function Ne(Ye,et,st,yt){if(Ye===et)return!0;if(re(Ye)&&re(et))return ae(Ye,et)===0;if(se.isDate(Ye)&&se.isDate(et))return Ye.getTime()===et.getTime();if(se.isRegExp(Ye)&&se.isRegExp(et))return Ye.source===et.source&&Ye.global===et.global&&Ye.multiline===et.multiline&&Ye.lastIndex===et.lastIndex&&Ye.ignoreCase===et.ignoreCase;if((Ye===null||typeof Ye!="object")&&(et===null||typeof et!="object"))return st?Ye===et:Ye==et;if(fe(Ye)&&fe(et)&&ue(Ye)===ue(et)&&!(Ye instanceof Float32Array||Ye instanceof Float64Array))return ae(new Uint8Array(Ye.buffer),new Uint8Array(et.buffer))===0;if(re(Ye)!==re(et))return!1;yt=yt||{actual:[],expected:[]};var Ve=yt.actual.indexOf(Ye);return Ve!==-1&&Ve===yt.expected.indexOf(et)?!0:(yt.actual.push(Ye),yt.expected.push(et),De(Ye,et,st,yt))}function Ae(Ye){return Object.prototype.toString.call(Ye)=="[object Arguments]"}function De(Ye,et,st,yt){if(Ye==null||et===null||et===void 0)return!1;if(se.isPrimitive(Ye)||se.isPrimitive(et))return Ye===et;if(st&&Object.getPrototypeOf(Ye)!==Object.getPrototypeOf(et))return!1;var Ve=Ae(Ye),Qe=Ae(et);if(Ve&&!Qe||!Ve&&Qe)return!1;if(Ve)return Ye=ie.call(Ye),et=ie.call(et),Ne(Ye,et,st);var pt=He(Ye),mt=He(et),ft,nt;if(pt.length!==mt.length)return!1;for(pt.sort(),mt.sort(),nt=pt.length-1;nt>=0;nt--)if(pt[nt]!==mt[nt])return!1;for(nt=pt.length-1;nt>=0;nt--)if(ft=pt[nt],!Ne(Ye[ft],et[ft],st,yt))return!1;return!0}he.notDeepEqual=function(et,st,yt){Ne(et,st,!1)&&Me(et,st,yt,"notDeepEqual",he.notDeepEqual)},he.notDeepStrictEqual=Ie;function Ie(Ye,et,st){Ne(Ye,et,!0)&&Me(Ye,et,st,"notDeepStrictEqual",Ie)}he.strictEqual=function(et,st,yt){et!==st&&Me(et,st,yt,"===",he.strictEqual)},he.notStrictEqual=function(et,st,yt){et===st&&Me(et,st,yt,"!==",he.notStrictEqual)};function Pe(Ye,et){if(!Ye||!et)return!1;if(Object.prototype.toString.call(et)=="[object RegExp]")return et.test(Ye);try{if(Ye instanceof et)return!0}catch(st){}return Error.isPrototypeOf(et)?!1:et.call({},Ye)===!0}function Le(Ye){var et;try{Ye()}catch(st){et=st}return et}function We(Ye,et,st,yt){var Ve;if(typeof et!="function")throw new TypeError('"block" argument must be a function');typeof st=="string"&&(yt=st,st=null),Ve=Le(et),yt=(st&&st.name?" ("+st.name+").":".")+(yt?" "+yt:"."),Ye&&!Ve&&Me(Ve,st,"Missing expected exception"+yt);var Qe=typeof yt=="string",pt=!Ye&&se.isError(Ve),mt=!Ye&&Ve&&!st;if((pt&&Qe&&Pe(Ve,st)||mt)&&Me(Ve,st,"Got unwanted exception"+yt),Ye&&Ve&&st&&!Pe(Ve,st)||!Ye&&Ve)throw Ve}he.throws=function(Ye,et,st){We(!0,Ye,et,st)},he.doesNotThrow=function(Ye,et,st){We(!1,Ye,et,st)},he.ifError=function(Ye){if(Ye)throw Ye};function Be(Ye,et){Ye||Me(Ye,!0,et,"==",Be)}he.strict=z(Be,he,{equal:he.strictEqual,deepEqual:he.deepStrictEqual,notEqual:he.notStrictEqual,notDeepEqual:he.notDeepStrictEqual}),he.strict.strict=he.strict;var He=Object.keys||function(Ye){var et=[];for(var st in Ye)me.call(Ye,st)&&et.push(st);return et}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(x,ke,pe){typeof Object.create=="function"?ke.exports=function(z,ae){z.super_=ae,z.prototype=Object.create(ae.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}})}:ke.exports=function(z,ae){z.super_=ae;var re=function(){};re.prototype=ae.prototype,z.prototype=new re,z.prototype.constructor=z}},{}],84:[function(x,ke,pe){ke.exports=function(z){return z&&typeof z=="object"&&typeof z.copy=="function"&&typeof z.fill=="function"&&typeof z.readUInt8=="function"}},{}],85:[function(x,ke,pe){(function(ne,z){(function(){var ae=/%[sdj%]/g;pe.format=function(mt){if(!De(mt)){for(var ft=[],nt=0;nt<arguments.length;nt++)ft.push(me(arguments[nt]));return ft.join(" ")}for(var nt=1,tt=arguments,rt=tt.length,Et=String(mt).replace(ae,function(Pt){if(Pt==="%%")return"%";if(nt>=rt)return Pt;switch(Pt){case"%s":return String(tt[nt++]);case"%d":return Number(tt[nt++]);case"%j":try{return JSON.stringify(tt[nt++])}catch(Lt){return"[Circular]"}default:return Pt}}),bt=tt[nt];nt<rt;bt=tt[++nt])we(bt)||!We(bt)?Et+=" "+bt:Et+=" "+me(bt);return Et},pe.deprecate=function(mt,ft){if(Pe(z.process))return function(){return pe.deprecate(mt,ft).apply(this,arguments)};if(ne.noDeprecation===!0)return mt;var nt=!1;function tt(){if(!nt){if(ne.throwDeprecation)throw new Error(ft);ne.traceDeprecation?console.trace(ft):console.error(ft),nt=!0}return mt.apply(this,arguments)}return tt};var re={},se;pe.debuglog=function(mt){if(Pe(se)&&(se=ne.env.NODE_DEBUG||""),mt=mt.toUpperCase(),!re[mt])if(new RegExp("\\b"+mt+"\\b","i").test(se)){var ft=ne.pid;re[mt]=function(){var nt=pe.format.apply(pe,arguments);console.error("%s %d: %s",mt,ft,nt)}}else re[mt]=function(){};return re[mt]};function me(mt,ft){var nt={seen:[],stylize:le};return arguments.length>=3&&(nt.depth=arguments[2]),arguments.length>=4&&(nt.colors=arguments[3]),Me(ft)?nt.showHidden=ft:ft&&pe._extend(nt,ft),Pe(nt.showHidden)&&(nt.showHidden=!1),Pe(nt.depth)&&(nt.depth=2),Pe(nt.colors)&&(nt.colors=!1),Pe(nt.customInspect)&&(nt.customInspect=!0),nt.colors&&(nt.stylize=ie),fe(nt,mt,nt.depth)}pe.inspect=me,me.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},me.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ie(mt,ft){var nt=me.styles[ft];return nt?"\x1B["+me.colors[nt][0]+"m"+mt+"\x1B["+me.colors[nt][1]+"m":mt}function le(mt,ft){return mt}function ue(mt){var ft={};return mt.forEach(function(nt,tt){ft[nt]=!0}),ft}function fe(mt,ft,nt){if(mt.customInspect&&ft&&Ye(ft.inspect)&&ft.inspect!==pe.inspect&&!(ft.constructor&&ft.constructor.prototype===ft)){var tt=ft.inspect(nt,mt);return De(tt)||(tt=fe(mt,tt,nt)),tt}var rt=he(mt,ft);if(rt)return rt;var Et=Object.keys(ft),bt=ue(Et);if(mt.showHidden&&(Et=Object.getOwnPropertyNames(ft)),He(ft)&&(Et.indexOf("message")>=0||Et.indexOf("description")>=0))return oe(ft);if(Et.length===0){if(Ye(ft)){var Pt=ft.name?": "+ft.name:"";return mt.stylize("[Function"+Pt+"]","special")}if(Le(ft))return mt.stylize(RegExp.prototype.toString.call(ft),"regexp");if(Be(ft))return mt.stylize(Date.prototype.toString.call(ft),"date");if(He(ft))return oe(ft)}var Lt="",dt=!1,Ze=["{","}"];if(_e(ft)&&(dt=!0,Ze=["[","]"]),Ye(ft)){var Ke=ft.name?": "+ft.name:"";Lt=" [Function"+Ke+"]"}if(Le(ft)&&(Lt=" "+RegExp.prototype.toString.call(ft)),Be(ft)&&(Lt=" "+Date.prototype.toUTCString.call(ft)),He(ft)&&(Lt=" "+oe(ft)),Et.length===0&&(!dt||ft.length==0))return Ze[0]+Lt+Ze[1];if(nt<0)return Le(ft)?mt.stylize(RegExp.prototype.toString.call(ft),"regexp"):mt.stylize("[Object]","special");mt.seen.push(ft);var de;return dt?de=Se(mt,ft,nt,bt,Et):de=Et.map(function(xe){return Ce(mt,ft,nt,bt,xe,dt)}),mt.seen.pop(),ye(de,Lt,Ze)}function he(mt,ft){if(Pe(ft))return mt.stylize("undefined","undefined");if(De(ft)){var nt="'"+JSON.stringify(ft).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return mt.stylize(nt,"string")}if(Ae(ft))return mt.stylize(""+ft,"number");if(Me(ft))return mt.stylize(""+ft,"boolean");if(we(ft))return mt.stylize("null","null")}function oe(mt){return"["+Error.prototype.toString.call(mt)+"]"}function Se(mt,ft,nt,tt,rt){for(var Et=[],bt=0,Pt=ft.length;bt<Pt;++bt)pt(ft,String(bt))?Et.push(Ce(mt,ft,nt,tt,String(bt),!0)):Et.push("");return rt.forEach(function(Lt){Lt.match(/^\d+$/)||Et.push(Ce(mt,ft,nt,tt,Lt,!0))}),Et}function Ce(mt,ft,nt,tt,rt,Et){var bt,Pt,Lt;if(Lt=Object.getOwnPropertyDescriptor(ft,rt)||{value:ft[rt]},Lt.get?Lt.set?Pt=mt.stylize("[Getter/Setter]","special"):Pt=mt.stylize("[Getter]","special"):Lt.set&&(Pt=mt.stylize("[Setter]","special")),pt(tt,rt)||(bt="["+rt+"]"),Pt||(mt.seen.indexOf(Lt.value)<0?(we(nt)?Pt=fe(mt,Lt.value,null):Pt=fe(mt,Lt.value,nt-1),Pt.indexOf(`
|
|
|
`)>-1&&(Et?Pt=Pt.split(`
|
|
|
`).map(function(dt){return" "+dt}).join(`
|
|
|
`).substr(2):Pt=`
|
|
|
`+Pt.split(`
|
|
|
`).map(function(dt){return" "+dt}).join(`
|
|
|
`))):Pt=mt.stylize("[Circular]","special")),Pe(bt)){if(Et&&rt.match(/^\d+$/))return Pt;bt=JSON.stringify(""+rt),bt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(bt=bt.substr(1,bt.length-2),bt=mt.stylize(bt,"name")):(bt=bt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),bt=mt.stylize(bt,"string"))}return bt+": "+Pt}function ye(mt,ft,nt){var tt=0,rt=mt.reduce(function(Et,bt){return tt++,bt.indexOf(`
|
|
|
`)>=0&&tt++,Et+bt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return rt>60?nt[0]+(ft===""?"":ft+`
|
|
|
`)+" "+mt.join(`,
|
|
|
`)+" "+nt[1]:nt[0]+ft+" "+mt.join(", ")+" "+nt[1]}function _e(mt){return Array.isArray(mt)}pe.isArray=_e;function Me(mt){return typeof mt=="boolean"}pe.isBoolean=Me;function we(mt){return mt===null}pe.isNull=we;function Ne(mt){return mt==null}pe.isNullOrUndefined=Ne;function Ae(mt){return typeof mt=="number"}pe.isNumber=Ae;function De(mt){return typeof mt=="string"}pe.isString=De;function Ie(mt){return typeof mt=="symbol"}pe.isSymbol=Ie;function Pe(mt){return mt===void 0}pe.isUndefined=Pe;function Le(mt){return We(mt)&&st(mt)==="[object RegExp]"}pe.isRegExp=Le;function We(mt){return typeof mt=="object"&&mt!==null}pe.isObject=We;function Be(mt){return We(mt)&&st(mt)==="[object Date]"}pe.isDate=Be;function He(mt){return We(mt)&&(st(mt)==="[object Error]"||mt instanceof Error)}pe.isError=He;function Ye(mt){return typeof mt=="function"}pe.isFunction=Ye;function et(mt){return mt===null||typeof mt=="boolean"||typeof mt=="number"||typeof mt=="string"||typeof mt=="symbol"||typeof mt=="undefined"}pe.isPrimitive=et,pe.isBuffer=x("./support/isBuffer");function st(mt){return Object.prototype.toString.call(mt)}function yt(mt){return mt<10?"0"+mt.toString(10):mt.toString(10)}var Ve=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Qe(){var mt=new Date,ft=[yt(mt.getHours()),yt(mt.getMinutes()),yt(mt.getSeconds())].join(":");return[mt.getDate(),Ve[mt.getMonth()],ft].join(" ")}pe.log=function(){console.log("%s - %s",Qe(),pe.format.apply(pe,arguments))},pe.inherits=x("inherits"),pe._extend=function(mt,ft){if(!ft||!We(ft))return mt;for(var nt=Object.keys(ft),tt=nt.length;tt--;)mt[nt[tt]]=ft[nt[tt]];return mt};function pt(mt,ft){return Object.prototype.hasOwnProperty.call(mt,ft)}}).call(this)}).call(this,x("_process"),typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ae=typeof globalThis=="undefined"?ne:globalThis;ke.exports=function(){for(var se=[],me=0;me<z.length;me++)typeof ae[z[me]]=="function"&&(se[se.length]=z[me]);return se}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(x,ke,pe){"use strict";pe.byteLength=le,pe.toByteArray=fe,pe.fromByteArray=Se;for(var ne=[],z=[],ae=typeof Uint8Array!="undefined"?Uint8Array:Array,re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=0,me=re.length;se<me;++se)ne[se]=re[se],z[re.charCodeAt(se)]=se;z[45]=62,z[95]=63;function ie(Ce){var ye=Ce.length;if(ye%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _e=Ce.indexOf("=");_e===-1&&(_e=ye);var Me=_e===ye?0:4-_e%4;return[_e,Me]}function le(Ce){var ye=ie(Ce),_e=ye[0],Me=ye[1];return(_e+Me)*3/4-Me}function ue(Ce,ye,_e){return(ye+_e)*3/4-_e}function fe(Ce){var ye,_e=ie(Ce),Me=_e[0],we=_e[1],Ne=new ae(ue(Ce,Me,we)),Ae=0,De=we>0?Me-4:Me,Ie;for(Ie=0;Ie<De;Ie+=4)ye=z[Ce.charCodeAt(Ie)]<<18|z[Ce.charCodeAt(Ie+1)]<<12|z[Ce.charCodeAt(Ie+2)]<<6|z[Ce.charCodeAt(Ie+3)],Ne[Ae++]=ye>>16&255,Ne[Ae++]=ye>>8&255,Ne[Ae++]=ye&255;return we===2&&(ye=z[Ce.charCodeAt(Ie)]<<2|z[Ce.charCodeAt(Ie+1)]>>4,Ne[Ae++]=ye&255),we===1&&(ye=z[Ce.charCodeAt(Ie)]<<10|z[Ce.charCodeAt(Ie+1)]<<4|z[Ce.charCodeAt(Ie+2)]>>2,Ne[Ae++]=ye>>8&255,Ne[Ae++]=ye&255),Ne}function he(Ce){return ne[Ce>>18&63]+ne[Ce>>12&63]+ne[Ce>>6&63]+ne[Ce&63]}function oe(Ce,ye,_e){for(var Me,we=[],Ne=ye;Ne<_e;Ne+=3)Me=(Ce[Ne]<<16&16711680)+(Ce[Ne+1]<<8&65280)+(Ce[Ne+2]&255),we.push(he(Me));return we.join("")}function Se(Ce){for(var ye,_e=Ce.length,Me=_e%3,we=[],Ne=16383,Ae=0,De=_e-Me;Ae<De;Ae+=Ne)we.push(oe(Ce,Ae,Ae+Ne>De?De:Ae+Ne));return Me===1?(ye=Ce[_e-1],we.push(ne[ye>>2]+ne[ye<<4&63]+"==")):Me===2&&(ye=(Ce[_e-2]<<8)+Ce[_e-1],we.push(ne[ye>>10]+ne[ye>>4&63]+ne[ye<<2&63]+"=")),we.join("")}},{}],88:[function(x,ke,pe){(function(ne,z,ae){typeof ke!="undefined"&&ke.exports?ke.exports=ae():typeof ve=="function"&&ve.amd?ve(z,ae):ne[z]=ae()})(this,"bowser",function(){var ne=!0;function z(ue){function fe(ft){var nt=ue.match(ft);return nt&&nt.length>1&&nt[1]||""}function he(ft){var nt=ue.match(ft);return nt&&nt.length>1&&nt[2]||""}var oe=fe(/(ipod|iphone|ipad)/i).toLowerCase(),Se=/like android/i.test(ue),Ce=!Se&&/android/i.test(ue),ye=/nexus\s*[0-6]\s*/i.test(ue),_e=!ye&&/nexus\s*[0-9]+/i.test(ue),Me=/CrOS/.test(ue),we=/silk/i.test(ue),Ne=/sailfish/i.test(ue),Ae=/tizen/i.test(ue),De=/(web|hpw)(o|0)s/i.test(ue),Ie=/windows phone/i.test(ue),Pe=/SamsungBrowser/i.test(ue),Le=!Ie&&/windows/i.test(ue),We=!oe&&!we&&/macintosh/i.test(ue),Be=!Ce&&!Ne&&!Ae&&!De&&/linux/i.test(ue),He=he(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ye=fe(/version\/(\d+(\.\d+)?)/i),et=/tablet/i.test(ue)&&!/tablet pc/i.test(ue),st=!et&&/[^-]mobi/i.test(ue),yt=/xbox/i.test(ue),Ve;/opera/i.test(ue)?Ve={name:"Opera",opera:ne,version:Ye||fe(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(ue)?Ve={name:"Opera",opera:ne,version:fe(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ye}:/SamsungBrowser/i.test(ue)?Ve={name:"Samsung Internet for Android",samsungBrowser:ne,version:Ye||fe(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(ue)?Ve={name:"NAVER Whale browser",whale:ne,version:fe(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(ue)?Ve={name:"MZ Browser",mzbrowser:ne,version:fe(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(ue)?Ve={name:"Opera Coast",coast:ne,version:Ye||fe(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(ue)?Ve={name:"Focus",focus:ne,version:fe(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(ue)?Ve={name:"Yandex Browser",yandexbrowser:ne,version:Ye||fe(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(ue)?Ve={name:"UC Browser",ucbrowser:ne,version:fe(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(ue)?Ve={name:"Maxthon",maxthon:ne,version:fe(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(ue)?Ve={name:"Epiphany",epiphany:ne,version:fe(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(ue)?Ve={name:"Puffin",puffin:ne,version:fe(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(ue)?Ve={name:"Sleipnir",sleipnir:ne,version:fe(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(ue)?Ve={name:"K-Meleon",kMeleon:ne,version:fe(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ie?(Ve={name:"Windows Phone",osname:"Windows Phone",windowsphone:ne},He?(Ve.msedge=ne,Ve.version=He):(Ve.msie=ne,Ve.version=fe(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(ue)?Ve={name:"Internet Explorer",msie:ne,version:fe(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Me?Ve={name:"Chrome",osname:"Chrome OS",chromeos:ne,chromeBook:ne,chrome:ne,version:fe(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(ue)?Ve={name:"Microsoft Edge",msedge:ne,version:He}:/vivaldi/i.test(ue)?Ve={name:"Vivaldi",vivaldi:ne,version:fe(/vivaldi\/(\d+(\.\d+)?)/i)||Ye}:Ne?Ve={name:"Sailfish",osname:"Sailfish OS",sailfish:ne,version:fe(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(ue)?Ve={name:"SeaMonkey",seamonkey:ne,version:fe(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(ue)?(Ve={name:"Firefox",firefox:ne,version:fe(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ue)&&(Ve.firefoxos=ne,Ve.osname="Firefox OS")):we?Ve={name:"Amazon Silk",silk:ne,version:fe(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(ue)?Ve={name:"PhantomJS",phantom:ne,version:fe(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(ue)?Ve={name:"SlimerJS",slimer:ne,version:fe(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(ue)||/rim\stablet/i.test(ue)?Ve={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ne,version:Ye||fe(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:De?(Ve={name:"WebOS",osname:"WebOS",webos:ne,version:Ye||fe(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(ue)&&(Ve.touchpad=ne)):/bada/i.test(ue)?Ve={name:"Bada",osname:"Bada",bada:ne,version:fe(/dolfin\/(\d+(\.\d+)?)/i)}:Ae?Ve={name:"Tizen",osname:"Tizen",tizen:ne,version:fe(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ye}:/qupzilla/i.test(ue)?Ve={name:"QupZilla",qupzilla:ne,version:fe(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ye}:/chromium/i.test(ue)?Ve={name:"Chromium",chromium:ne,version:fe(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ye}:/chrome|crios|crmo/i.test(ue)?Ve={name:"Chrome",chrome:ne,version:fe(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:Ce?Ve={name:"Android",version:Ye}:/safari|applewebkit/i.test(ue)?(Ve={name:"Safari",safari:ne},Ye&&(Ve.version=Ye)):oe?(Ve={name:oe=="iphone"?"iPhone":oe=="ipad"?"iPad":"iPod"},Ye&&(Ve.version=Ye)):/googlebot/i.test(ue)?Ve={name:"Googlebot",googlebot:ne,version:fe(/googlebot\/(\d+(\.\d+))/i)||Ye}:Ve={name:fe(/^(.*)\/(.*) /),version:he(/^(.*)\/(.*) /)},!Ve.msedge&&/(apple)?webkit/i.test(ue)?(/(apple)?webkit\/537\.36/i.test(ue)?(Ve.name=Ve.name||"Blink",Ve.blink=ne):(Ve.name=Ve.name||"Webkit",Ve.webkit=ne),!Ve.version&&Ye&&(Ve.version=Ye)):!Ve.opera&&/gecko\//i.test(ue)&&(Ve.name=Ve.name||"Gecko",Ve.gecko=ne,Ve.version=Ve.version||fe(/gecko\/(\d+(\.\d+)?)/i)),!Ve.windowsphone&&(Ce||Ve.silk)?(Ve.android=ne,Ve.osname="Android"):!Ve.windowsphone&&oe?(Ve[oe]=ne,Ve.ios=ne,Ve.osname="iOS"):We?(Ve.mac=ne,Ve.osname="macOS"):yt?(Ve.xbox=ne,Ve.osname="Xbox"):Le?(Ve.windows=ne,Ve.osname="Windows"):Be&&(Ve.linux=ne,Ve.osname="Linux");function Qe(ft){switch(ft){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var pt="";Ve.windows?pt=Qe(fe(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Ve.windowsphone?pt=fe(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Ve.mac?(pt=fe(/Mac OS X (\d+([_\.\s]\d+)*)/i),pt=pt.replace(/[_\s]/g,".")):oe?(pt=fe(/os (\d+([_\s]\d+)*) like mac os x/i),pt=pt.replace(/[_\s]/g,".")):Ce?pt=fe(/android[ \/-](\d+(\.\d+)*)/i):Ve.webos?pt=fe(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Ve.blackberry?pt=fe(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Ve.bada?pt=fe(/bada\/(\d+(\.\d+)*)/i):Ve.tizen&&(pt=fe(/tizen[\/\s](\d+(\.\d+)*)/i)),pt&&(Ve.osversion=pt);var mt=!Ve.windows&&pt.split(".")[0];return et||_e||oe=="ipad"||Ce&&(mt==3||mt>=4&&!st)||Ve.silk?Ve.tablet=ne:(st||oe=="iphone"||oe=="ipod"||Ce||ye||Ve.blackberry||Ve.webos||Ve.bada)&&(Ve.mobile=ne),Ve.msedge||Ve.msie&&Ve.version>=10||Ve.yandexbrowser&&Ve.version>=15||Ve.vivaldi&&Ve.version>=1||Ve.chrome&&Ve.version>=20||Ve.samsungBrowser&&Ve.version>=4||Ve.whale&&me([Ve.version,"1.0"])===1||Ve.mzbrowser&&me([Ve.version,"6.0"])===1||Ve.focus&&me([Ve.version,"1.0"])===1||Ve.firefox&&Ve.version>=20||Ve.safari&&Ve.version>=6||Ve.opera&&Ve.version>=10||Ve.ios&&Ve.osversion&&Ve.osversion.split(".")[0]>=6||Ve.blackberry&&Ve.version>=10.1||Ve.chromium&&Ve.version>=20?Ve.a=ne:Ve.msie&&Ve.version<10||Ve.chrome&&Ve.version<20||Ve.firefox&&Ve.version<20||Ve.safari&&Ve.version<6||Ve.opera&&Ve.version<10||Ve.ios&&Ve.osversion&&Ve.osversion.split(".")[0]<6||Ve.chromium&&Ve.version<20?Ve.c=ne:Ve.x=ne,Ve}var ae=z(typeof navigator!="undefined"&&navigator.userAgent||"");ae.test=function(ue){for(var fe=0;fe<ue.length;++fe){var he=ue[fe];if(typeof he=="string"&&he in ae)return!0}return!1};function re(ue){return ue.split(".").length}function se(ue,fe){var he=[],oe;if(Array.prototype.map)return Array.prototype.map.call(ue,fe);for(oe=0;oe<ue.length;oe++)he.push(fe(ue[oe]));return he}function me(ue){for(var fe=Math.max(re(ue[0]),re(ue[1])),he=se(ue,function(oe){var Se=fe-re(oe);return oe=oe+new Array(Se+1).join(".0"),se(oe.split("."),function(Ce){return new Array(20-Ce.length).join("0")+Ce}).reverse()});--fe>=0;){if(he[0][fe]>he[1][fe])return 1;if(he[0][fe]===he[1][fe]){if(fe===0)return 0}else return-1}}function ie(ue,fe,he){var oe=ae;typeof fe=="string"&&(he=fe,fe=void 0),fe===void 0&&(fe=!1),he&&(oe=z(he));var Se=""+oe.version;for(var Ce in ue)if(ue.hasOwnProperty(Ce)&&oe[Ce]){if(typeof ue[Ce]!="string")throw new Error("Browser version in the minVersion map should be a string: "+Ce+": "+String(ue));return me([Se,ue[Ce]])<0}return fe}function le(ue,fe,he){return!ie(ue,fe,he)}return ae.isUnsupportedBrowser=ie,ae.compareVersions=me,ae.check=le,ae._detect=z,ae.detect=z,ae})},{}],89:[function(x,ke,pe){},{}],90:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=x("base64-js"),ae=x("ieee754");pe.Buffer=ie,pe.SlowBuffer=Me,pe.INSPECT_MAX_BYTES=50;var re=2147483647;pe.kMaxLength=re,ie.TYPED_ARRAY_SUPPORT=se(),!ie.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 se(){try{var Re=new Uint8Array(1);return Re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Re.foo()===42}catch(Fe){return!1}}Object.defineProperty(ie.prototype,"parent",{enumerable:!0,get:function(){if(ie.isBuffer(this))return this.buffer}}),Object.defineProperty(ie.prototype,"offset",{enumerable:!0,get:function(){if(ie.isBuffer(this))return this.byteOffset}});function me(Re){if(Re>re)throw new RangeError('The value "'+Re+'" is invalid for option "size"');var Fe=new Uint8Array(Re);return Fe.__proto__=ie.prototype,Fe}function ie(Re,Fe,Ge){if(typeof Re=="number"){if(typeof Fe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return he(Re)}return le(Re,Fe,Ge)}typeof Symbol!="undefined"&&Symbol.species!=null&&ie[Symbol.species]===ie&&Object.defineProperty(ie,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),ie.poolSize=8192;function le(Re,Fe,Ge){if(typeof Re=="string")return oe(Re,Fe);if(ArrayBuffer.isView(Re))return Se(Re);if(Re==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Re);if($e(Re,ArrayBuffer)||Re&&$e(Re.buffer,ArrayBuffer))return Ce(Re,Fe,Ge);if(typeof Re=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var it=Re.valueOf&&Re.valueOf();if(it!=null&&it!==Re)return ie.from(it,Fe,Ge);var gt=ye(Re);if(gt)return gt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Re[Symbol.toPrimitive]=="function")return ie.from(Re[Symbol.toPrimitive]("string"),Fe,Ge);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Re)}ie.from=function(Re,Fe,Ge){return le(Re,Fe,Ge)},ie.prototype.__proto__=Uint8Array.prototype,ie.__proto__=Uint8Array;function ue(Re){if(typeof Re!="number")throw new TypeError('"size" argument must be of type number');if(Re<0)throw new RangeError('The value "'+Re+'" is invalid for option "size"')}function fe(Re,Fe,Ge){return ue(Re),Re<=0?me(Re):Fe!==void 0?typeof Ge=="string"?me(Re).fill(Fe,Ge):me(Re).fill(Fe):me(Re)}ie.alloc=function(Re,Fe,Ge){return fe(Re,Fe,Ge)};function he(Re){return ue(Re),me(Re<0?0:_e(Re)|0)}ie.allocUnsafe=function(Re){return he(Re)},ie.allocUnsafeSlow=function(Re){return he(Re)};function oe(Re,Fe){if((typeof Fe!="string"||Fe==="")&&(Fe="utf8"),!ie.isEncoding(Fe))throw new TypeError("Unknown encoding: "+Fe);var Ge=we(Re,Fe)|0,it=me(Ge),gt=it.write(Re,Fe);return gt!==Ge&&(it=it.slice(0,gt)),it}function Se(Re){for(var Fe=Re.length<0?0:_e(Re.length)|0,Ge=me(Fe),it=0;it<Fe;it+=1)Ge[it]=Re[it]&255;return Ge}function Ce(Re,Fe,Ge){if(Fe<0||Re.byteLength<Fe)throw new RangeError('"offset" is outside of buffer bounds');if(Re.byteLength<Fe+(Ge||0))throw new RangeError('"length" is outside of buffer bounds');var it;return Fe===void 0&&Ge===void 0?it=new Uint8Array(Re):Ge===void 0?it=new Uint8Array(Re,Fe):it=new Uint8Array(Re,Fe,Ge),it.__proto__=ie.prototype,it}function ye(Re){if(ie.isBuffer(Re)){var Fe=_e(Re.length)|0,Ge=me(Fe);return Ge.length===0||Re.copy(Ge,0,0,Fe),Ge}if(Re.length!==void 0)return typeof Re.length!="number"||Ee(Re.length)?me(0):Se(Re);if(Re.type==="Buffer"&&Array.isArray(Re.data))return Se(Re.data)}function _e(Re){if(Re>=re)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+re.toString(16)+" bytes");return Re|0}function Me(Re){return+Re!=Re&&(Re=0),ie.alloc(+Re)}ie.isBuffer=function(Fe){return Fe!=null&&Fe._isBuffer===!0&&Fe!==ie.prototype},ie.compare=function(Fe,Ge){if($e(Fe,Uint8Array)&&(Fe=ie.from(Fe,Fe.offset,Fe.byteLength)),$e(Ge,Uint8Array)&&(Ge=ie.from(Ge,Ge.offset,Ge.byteLength)),!ie.isBuffer(Fe)||!ie.isBuffer(Ge))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Fe===Ge)return 0;for(var it=Fe.length,gt=Ge.length,Kt=0,kt=Math.min(it,gt);Kt<kt;++Kt)if(Fe[Kt]!==Ge[Kt]){it=Fe[Kt],gt=Ge[Kt];break}return it<gt?-1:gt<it?1:0},ie.isEncoding=function(Fe){switch(String(Fe).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}},ie.concat=function(Fe,Ge){if(!Array.isArray(Fe))throw new TypeError('"list" argument must be an Array of Buffers');if(Fe.length===0)return ie.alloc(0);var it;if(Ge===void 0)for(Ge=0,it=0;it<Fe.length;++it)Ge+=Fe[it].length;var gt=ie.allocUnsafe(Ge),Kt=0;for(it=0;it<Fe.length;++it){var kt=Fe[it];if($e(kt,Uint8Array)&&(kt=ie.from(kt)),!ie.isBuffer(kt))throw new TypeError('"list" argument must be an Array of Buffers');kt.copy(gt,Kt),Kt+=kt.length}return gt};function we(Re,Fe){if(ie.isBuffer(Re))return Re.length;if(ArrayBuffer.isView(Re)||$e(Re,ArrayBuffer))return Re.byteLength;if(typeof Re!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Re);var Ge=Re.length,it=arguments.length>2&&arguments[2]===!0;if(!it&&Ge===0)return 0;for(var gt=!1;;)switch(Fe){case"ascii":case"latin1":case"binary":return Ge;case"utf8":case"utf-8":return Ze(Re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge*2;case"hex":return Ge>>>1;case"base64":return xe(Re).length;default:if(gt)return it?-1:Ze(Re).length;Fe=(""+Fe).toLowerCase(),gt=!0}}ie.byteLength=we;function Ne(Re,Fe,Ge){var it=!1;if((Fe===void 0||Fe<0)&&(Fe=0),Fe>this.length||((Ge===void 0||Ge>this.length)&&(Ge=this.length),Ge<=0)||(Ge>>>=0,Fe>>>=0,Ge<=Fe))return"";for(Re||(Re="utf8");;)switch(Re){case"hex":return mt(this,Fe,Ge);case"utf8":case"utf-8":return st(this,Fe,Ge);case"ascii":return Qe(this,Fe,Ge);case"latin1":case"binary":return pt(this,Fe,Ge);case"base64":return et(this,Fe,Ge);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,Fe,Ge);default:if(it)throw new TypeError("Unknown encoding: "+Re);Re=(Re+"").toLowerCase(),it=!0}}ie.prototype._isBuffer=!0;function Ae(Re,Fe,Ge){var it=Re[Fe];Re[Fe]=Re[Ge],Re[Ge]=it}ie.prototype.swap16=function(){var Fe=this.length;if(Fe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ge=0;Ge<Fe;Ge+=2)Ae(this,Ge,Ge+1);return this},ie.prototype.swap32=function(){var Fe=this.length;if(Fe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ge=0;Ge<Fe;Ge+=4)Ae(this,Ge,Ge+3),Ae(this,Ge+1,Ge+2);return this},ie.prototype.swap64=function(){var Fe=this.length;if(Fe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ge=0;Ge<Fe;Ge+=8)Ae(this,Ge,Ge+7),Ae(this,Ge+1,Ge+6),Ae(this,Ge+2,Ge+5),Ae(this,Ge+3,Ge+4);return this},ie.prototype.toString=function(){var Fe=this.length;return Fe===0?"":arguments.length===0?st(this,0,Fe):Ne.apply(this,arguments)},ie.prototype.toLocaleString=ie.prototype.toString,ie.prototype.equals=function(Fe){if(!ie.isBuffer(Fe))throw new TypeError("Argument must be a Buffer");return this===Fe?!0:ie.compare(this,Fe)===0},ie.prototype.inspect=function(){var Fe="",Ge=pe.INSPECT_MAX_BYTES;return Fe=this.toString("hex",0,Ge).replace(/(.{2})/g,"$1 ").trim(),this.length>Ge&&(Fe+=" ... "),"<Buffer "+Fe+">"},ie.prototype.compare=function(Fe,Ge,it,gt,Kt){if($e(Fe,Uint8Array)&&(Fe=ie.from(Fe,Fe.offset,Fe.byteLength)),!ie.isBuffer(Fe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Fe);if(Ge===void 0&&(Ge=0),it===void 0&&(it=Fe?Fe.length:0),gt===void 0&&(gt=0),Kt===void 0&&(Kt=this.length),Ge<0||it>Fe.length||gt<0||Kt>this.length)throw new RangeError("out of range index");if(gt>=Kt&&Ge>=it)return 0;if(gt>=Kt)return-1;if(Ge>=it)return 1;if(Ge>>>=0,it>>>=0,gt>>>=0,Kt>>>=0,this===Fe)return 0;for(var kt=Kt-gt,St=it-Ge,Wt=Math.min(kt,St),jt=this.slice(gt,Kt),Vt=Fe.slice(Ge,it),_t=0;_t<Wt;++_t)if(jt[_t]!==Vt[_t]){kt=jt[_t],St=Vt[_t];break}return kt<St?-1:St<kt?1:0};function De(Re,Fe,Ge,it,gt){if(Re.length===0)return-1;if(typeof Ge=="string"?(it=Ge,Ge=0):Ge>2147483647?Ge=2147483647:Ge<-2147483648&&(Ge=-2147483648),Ge=+Ge,Ee(Ge)&&(Ge=gt?0:Re.length-1),Ge<0&&(Ge=Re.length+Ge),Ge>=Re.length){if(gt)return-1;Ge=Re.length-1}else if(Ge<0)if(gt)Ge=0;else return-1;if(typeof Fe=="string"&&(Fe=ie.from(Fe,it)),ie.isBuffer(Fe))return Fe.length===0?-1:Ie(Re,Fe,Ge,it,gt);if(typeof Fe=="number")return Fe=Fe&255,typeof Uint8Array.prototype.indexOf=="function"?gt?Uint8Array.prototype.indexOf.call(Re,Fe,Ge):Uint8Array.prototype.lastIndexOf.call(Re,Fe,Ge):Ie(Re,[Fe],Ge,it,gt);throw new TypeError("val must be string, number or Buffer")}function Ie(Re,Fe,Ge,it,gt){var Kt=1,kt=Re.length,St=Fe.length;if(it!==void 0&&(it=String(it).toLowerCase(),it==="ucs2"||it==="ucs-2"||it==="utf16le"||it==="utf-16le")){if(Re.length<2||Fe.length<2)return-1;Kt=2,kt/=2,St/=2,Ge/=2}function Wt(Dt,xt){return Kt===1?Dt[xt]:Dt.readUInt16BE(xt*Kt)}var jt;if(gt){var Vt=-1;for(jt=Ge;jt<kt;jt++)if(Wt(Re,jt)===Wt(Fe,Vt===-1?0:jt-Vt)){if(Vt===-1&&(Vt=jt),jt-Vt+1===St)return Vt*Kt}else Vt!==-1&&(jt-=jt-Vt),Vt=-1}else for(Ge+St>kt&&(Ge=kt-St),jt=Ge;jt>=0;jt--){for(var _t=!0,sn=0;sn<St;sn++)if(Wt(Re,jt+sn)!==Wt(Fe,sn)){_t=!1;break}if(_t)return jt}return-1}ie.prototype.includes=function(Fe,Ge,it){return this.indexOf(Fe,Ge,it)!==-1},ie.prototype.indexOf=function(Fe,Ge,it){return De(this,Fe,Ge,it,!0)},ie.prototype.lastIndexOf=function(Fe,Ge,it){return De(this,Fe,Ge,it,!1)};function Pe(Re,Fe,Ge,it){Ge=Number(Ge)||0;var gt=Re.length-Ge;it?(it=Number(it),it>gt&&(it=gt)):it=gt;var Kt=Fe.length;it>Kt/2&&(it=Kt/2);for(var kt=0;kt<it;++kt){var St=parseInt(Fe.substr(kt*2,2),16);if(Ee(St))return kt;Re[Ge+kt]=St}return kt}function Le(Re,Fe,Ge,it){return ze(Ze(Fe,Re.length-Ge),Re,Ge,it)}function We(Re,Fe,Ge,it){return ze(Ke(Fe),Re,Ge,it)}function Be(Re,Fe,Ge,it){return We(Re,Fe,Ge,it)}function He(Re,Fe,Ge,it){return ze(xe(Fe),Re,Ge,it)}function Ye(Re,Fe,Ge,it){return ze(de(Fe,Re.length-Ge),Re,Ge,it)}ie.prototype.write=function(Fe,Ge,it,gt){if(Ge===void 0)gt="utf8",it=this.length,Ge=0;else if(it===void 0&&typeof Ge=="string")gt=Ge,it=this.length,Ge=0;else if(isFinite(Ge))Ge=Ge>>>0,isFinite(it)?(it=it>>>0,gt===void 0&&(gt="utf8")):(gt=it,it=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Kt=this.length-Ge;if((it===void 0||it>Kt)&&(it=Kt),Fe.length>0&&(it<0||Ge<0)||Ge>this.length)throw new RangeError("Attempt to write outside buffer bounds");gt||(gt="utf8");for(var kt=!1;;)switch(gt){case"hex":return Pe(this,Fe,Ge,it);case"utf8":case"utf-8":return Le(this,Fe,Ge,it);case"ascii":return We(this,Fe,Ge,it);case"latin1":case"binary":return Be(this,Fe,Ge,it);case"base64":return He(this,Fe,Ge,it);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,Fe,Ge,it);default:if(kt)throw new TypeError("Unknown encoding: "+gt);gt=(""+gt).toLowerCase(),kt=!0}},ie.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function et(Re,Fe,Ge){return Fe===0&&Ge===Re.length?z.fromByteArray(Re):z.fromByteArray(Re.slice(Fe,Ge))}function st(Re,Fe,Ge){Ge=Math.min(Re.length,Ge);for(var it=[],gt=Fe;gt<Ge;){var Kt=Re[gt],kt=null,St=Kt>239?4:Kt>223?3:Kt>191?2:1;if(gt+St<=Ge){var Wt,jt,Vt,_t;switch(St){case 1:Kt<128&&(kt=Kt);break;case 2:Wt=Re[gt+1],(Wt&192)===128&&(_t=(Kt&31)<<6|Wt&63,_t>127&&(kt=_t));break;case 3:Wt=Re[gt+1],jt=Re[gt+2],(Wt&192)===128&&(jt&192)===128&&(_t=(Kt&15)<<12|(Wt&63)<<6|jt&63,_t>2047&&(_t<55296||_t>57343)&&(kt=_t));break;case 4:Wt=Re[gt+1],jt=Re[gt+2],Vt=Re[gt+3],(Wt&192)===128&&(jt&192)===128&&(Vt&192)===128&&(_t=(Kt&15)<<18|(Wt&63)<<12|(jt&63)<<6|Vt&63,_t>65535&&_t<1114112&&(kt=_t))}}kt===null?(kt=65533,St=1):kt>65535&&(kt-=65536,it.push(kt>>>10&1023|55296),kt=56320|kt&1023),it.push(kt),gt+=St}return Ve(it)}var yt=4096;function Ve(Re){var Fe=Re.length;if(Fe<=yt)return String.fromCharCode.apply(String,Re);for(var Ge="",it=0;it<Fe;)Ge+=String.fromCharCode.apply(String,Re.slice(it,it+=yt));return Ge}function Qe(Re,Fe,Ge){var it="";Ge=Math.min(Re.length,Ge);for(var gt=Fe;gt<Ge;++gt)it+=String.fromCharCode(Re[gt]&127);return it}function pt(Re,Fe,Ge){var it="";Ge=Math.min(Re.length,Ge);for(var gt=Fe;gt<Ge;++gt)it+=String.fromCharCode(Re[gt]);return it}function mt(Re,Fe,Ge){var it=Re.length;(!Fe||Fe<0)&&(Fe=0),(!Ge||Ge<0||Ge>it)&&(Ge=it);for(var gt="",Kt=Fe;Kt<Ge;++Kt)gt+=dt(Re[Kt]);return gt}function ft(Re,Fe,Ge){for(var it=Re.slice(Fe,Ge),gt="",Kt=0;Kt<it.length;Kt+=2)gt+=String.fromCharCode(it[Kt]+it[Kt+1]*256);return gt}ie.prototype.slice=function(Fe,Ge){var it=this.length;Fe=~~Fe,Ge=Ge===void 0?it:~~Ge,Fe<0?(Fe+=it,Fe<0&&(Fe=0)):Fe>it&&(Fe=it),Ge<0?(Ge+=it,Ge<0&&(Ge=0)):Ge>it&&(Ge=it),Ge<Fe&&(Ge=Fe);var gt=this.subarray(Fe,Ge);return gt.__proto__=ie.prototype,gt};function nt(Re,Fe,Ge){if(Re%1!==0||Re<0)throw new RangeError("offset is not uint");if(Re+Fe>Ge)throw new RangeError("Trying to access beyond buffer length")}ie.prototype.readUIntLE=function(Fe,Ge,it){Fe=Fe>>>0,Ge=Ge>>>0,it||nt(Fe,Ge,this.length);for(var gt=this[Fe],Kt=1,kt=0;++kt<Ge&&(Kt*=256);)gt+=this[Fe+kt]*Kt;return gt},ie.prototype.readUIntBE=function(Fe,Ge,it){Fe=Fe>>>0,Ge=Ge>>>0,it||nt(Fe,Ge,this.length);for(var gt=this[Fe+--Ge],Kt=1;Ge>0&&(Kt*=256);)gt+=this[Fe+--Ge]*Kt;return gt},ie.prototype.readUInt8=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,1,this.length),this[Fe]},ie.prototype.readUInt16LE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,2,this.length),this[Fe]|this[Fe+1]<<8},ie.prototype.readUInt16BE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,2,this.length),this[Fe]<<8|this[Fe+1]},ie.prototype.readUInt32LE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,4,this.length),(this[Fe]|this[Fe+1]<<8|this[Fe+2]<<16)+this[Fe+3]*16777216},ie.prototype.readUInt32BE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,4,this.length),this[Fe]*16777216+(this[Fe+1]<<16|this[Fe+2]<<8|this[Fe+3])},ie.prototype.readIntLE=function(Fe,Ge,it){Fe=Fe>>>0,Ge=Ge>>>0,it||nt(Fe,Ge,this.length);for(var gt=this[Fe],Kt=1,kt=0;++kt<Ge&&(Kt*=256);)gt+=this[Fe+kt]*Kt;return Kt*=128,gt>=Kt&&(gt-=Math.pow(2,8*Ge)),gt},ie.prototype.readIntBE=function(Fe,Ge,it){Fe=Fe>>>0,Ge=Ge>>>0,it||nt(Fe,Ge,this.length);for(var gt=Ge,Kt=1,kt=this[Fe+--gt];gt>0&&(Kt*=256);)kt+=this[Fe+--gt]*Kt;return Kt*=128,kt>=Kt&&(kt-=Math.pow(2,8*Ge)),kt},ie.prototype.readInt8=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,1,this.length),this[Fe]&128?(255-this[Fe]+1)*-1:this[Fe]},ie.prototype.readInt16LE=function(Fe,Ge){Fe=Fe>>>0,Ge||nt(Fe,2,this.length);var it=this[Fe]|this[Fe+1]<<8;return it&32768?it|4294901760:it},ie.prototype.readInt16BE=function(Fe,Ge){Fe=Fe>>>0,Ge||nt(Fe,2,this.length);var it=this[Fe+1]|this[Fe]<<8;return it&32768?it|4294901760:it},ie.prototype.readInt32LE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,4,this.length),this[Fe]|this[Fe+1]<<8|this[Fe+2]<<16|this[Fe+3]<<24},ie.prototype.readInt32BE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,4,this.length),this[Fe]<<24|this[Fe+1]<<16|this[Fe+2]<<8|this[Fe+3]},ie.prototype.readFloatLE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,4,this.length),ae.read(this,Fe,!0,23,4)},ie.prototype.readFloatBE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,4,this.length),ae.read(this,Fe,!1,23,4)},ie.prototype.readDoubleLE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,8,this.length),ae.read(this,Fe,!0,52,8)},ie.prototype.readDoubleBE=function(Fe,Ge){return Fe=Fe>>>0,Ge||nt(Fe,8,this.length),ae.read(this,Fe,!1,52,8)};function tt(Re,Fe,Ge,it,gt,Kt){if(!ie.isBuffer(Re))throw new TypeError('"buffer" argument must be a Buffer instance');if(Fe>gt||Fe<Kt)throw new RangeError('"value" argument is out of bounds');if(Ge+it>Re.length)throw new RangeError("Index out of range")}ie.prototype.writeUIntLE=function(Fe,Ge,it,gt){if(Fe=+Fe,Ge=Ge>>>0,it=it>>>0,!gt){var Kt=Math.pow(2,8*it)-1;tt(this,Fe,Ge,it,Kt,0)}var kt=1,St=0;for(this[Ge]=Fe&255;++St<it&&(kt*=256);)this[Ge+St]=Fe/kt&255;return Ge+it},ie.prototype.writeUIntBE=function(Fe,Ge,it,gt){if(Fe=+Fe,Ge=Ge>>>0,it=it>>>0,!gt){var Kt=Math.pow(2,8*it)-1;tt(this,Fe,Ge,it,Kt,0)}var kt=it-1,St=1;for(this[Ge+kt]=Fe&255;--kt>=0&&(St*=256);)this[Ge+kt]=Fe/St&255;return Ge+it},ie.prototype.writeUInt8=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,1,255,0),this[Ge]=Fe&255,Ge+1},ie.prototype.writeUInt16LE=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,2,65535,0),this[Ge]=Fe&255,this[Ge+1]=Fe>>>8,Ge+2},ie.prototype.writeUInt16BE=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,2,65535,0),this[Ge]=Fe>>>8,this[Ge+1]=Fe&255,Ge+2},ie.prototype.writeUInt32LE=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,4,4294967295,0),this[Ge+3]=Fe>>>24,this[Ge+2]=Fe>>>16,this[Ge+1]=Fe>>>8,this[Ge]=Fe&255,Ge+4},ie.prototype.writeUInt32BE=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,4,4294967295,0),this[Ge]=Fe>>>24,this[Ge+1]=Fe>>>16,this[Ge+2]=Fe>>>8,this[Ge+3]=Fe&255,Ge+4},ie.prototype.writeIntLE=function(Fe,Ge,it,gt){if(Fe=+Fe,Ge=Ge>>>0,!gt){var Kt=Math.pow(2,8*it-1);tt(this,Fe,Ge,it,Kt-1,-Kt)}var kt=0,St=1,Wt=0;for(this[Ge]=Fe&255;++kt<it&&(St*=256);)Fe<0&&Wt===0&&this[Ge+kt-1]!==0&&(Wt=1),this[Ge+kt]=(Fe/St>>0)-Wt&255;return Ge+it},ie.prototype.writeIntBE=function(Fe,Ge,it,gt){if(Fe=+Fe,Ge=Ge>>>0,!gt){var Kt=Math.pow(2,8*it-1);tt(this,Fe,Ge,it,Kt-1,-Kt)}var kt=it-1,St=1,Wt=0;for(this[Ge+kt]=Fe&255;--kt>=0&&(St*=256);)Fe<0&&Wt===0&&this[Ge+kt+1]!==0&&(Wt=1),this[Ge+kt]=(Fe/St>>0)-Wt&255;return Ge+it},ie.prototype.writeInt8=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,1,127,-128),Fe<0&&(Fe=255+Fe+1),this[Ge]=Fe&255,Ge+1},ie.prototype.writeInt16LE=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,2,32767,-32768),this[Ge]=Fe&255,this[Ge+1]=Fe>>>8,Ge+2},ie.prototype.writeInt16BE=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,2,32767,-32768),this[Ge]=Fe>>>8,this[Ge+1]=Fe&255,Ge+2},ie.prototype.writeInt32LE=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,4,2147483647,-2147483648),this[Ge]=Fe&255,this[Ge+1]=Fe>>>8,this[Ge+2]=Fe>>>16,this[Ge+3]=Fe>>>24,Ge+4},ie.prototype.writeInt32BE=function(Fe,Ge,it){return Fe=+Fe,Ge=Ge>>>0,it||tt(this,Fe,Ge,4,2147483647,-2147483648),Fe<0&&(Fe=4294967295+Fe+1),this[Ge]=Fe>>>24,this[Ge+1]=Fe>>>16,this[Ge+2]=Fe>>>8,this[Ge+3]=Fe&255,Ge+4};function rt(Re,Fe,Ge,it,gt,Kt){if(Ge+it>Re.length)throw new RangeError("Index out of range");if(Ge<0)throw new RangeError("Index out of range")}function Et(Re,Fe,Ge,it,gt){return Fe=+Fe,Ge=Ge>>>0,gt||rt(Re,Fe,Ge,4,34028234663852886e22,-34028234663852886e22),ae.write(Re,Fe,Ge,it,23,4),Ge+4}ie.prototype.writeFloatLE=function(Fe,Ge,it){return Et(this,Fe,Ge,!0,it)},ie.prototype.writeFloatBE=function(Fe,Ge,it){return Et(this,Fe,Ge,!1,it)};function bt(Re,Fe,Ge,it,gt){return Fe=+Fe,Ge=Ge>>>0,gt||rt(Re,Fe,Ge,8,17976931348623157e292,-17976931348623157e292),ae.write(Re,Fe,Ge,it,52,8),Ge+8}ie.prototype.writeDoubleLE=function(Fe,Ge,it){return bt(this,Fe,Ge,!0,it)},ie.prototype.writeDoubleBE=function(Fe,Ge,it){return bt(this,Fe,Ge,!1,it)},ie.prototype.copy=function(Fe,Ge,it,gt){if(!ie.isBuffer(Fe))throw new TypeError("argument should be a Buffer");if(it||(it=0),!gt&>!==0&&(gt=this.length),Ge>=Fe.length&&(Ge=Fe.length),Ge||(Ge=0),gt>0&><it&&(gt=it),gt===it||Fe.length===0||this.length===0)return 0;if(Ge<0)throw new RangeError("targetStart out of bounds");if(it<0||it>=this.length)throw new RangeError("Index out of range");if(gt<0)throw new RangeError("sourceEnd out of bounds");gt>this.length&&(gt=this.length),Fe.length-Ge<gt-it&&(gt=Fe.length-Ge+it);var Kt=gt-it;if(this===Fe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ge,it,gt);else if(this===Fe&&it<Ge&&Ge<gt)for(var kt=Kt-1;kt>=0;--kt)Fe[kt+Ge]=this[kt+it];else Uint8Array.prototype.set.call(Fe,this.subarray(it,gt),Ge);return Kt},ie.prototype.fill=function(Fe,Ge,it,gt){if(typeof Fe=="string"){if(typeof Ge=="string"?(gt=Ge,Ge=0,it=this.length):typeof it=="string"&&(gt=it,it=this.length),gt!==void 0&&typeof gt!="string")throw new TypeError("encoding must be a string");if(typeof gt=="string"&&!ie.isEncoding(gt))throw new TypeError("Unknown encoding: "+gt);if(Fe.length===1){var Kt=Fe.charCodeAt(0);(gt==="utf8"&&Kt<128||gt==="latin1")&&(Fe=Kt)}}else typeof Fe=="number"&&(Fe=Fe&255);if(Ge<0||this.length<Ge||this.length<it)throw new RangeError("Out of range index");if(it<=Ge)return this;Ge=Ge>>>0,it=it===void 0?this.length:it>>>0,Fe||(Fe=0);var kt;if(typeof Fe=="number")for(kt=Ge;kt<it;++kt)this[kt]=Fe;else{var St=ie.isBuffer(Fe)?Fe:ie.from(Fe,gt),Wt=St.length;if(Wt===0)throw new TypeError('The value "'+Fe+'" is invalid for argument "value"');for(kt=0;kt<it-Ge;++kt)this[kt+Ge]=St[kt%Wt]}return this};var Pt=/[^+/0-9A-Za-z-_]/g;function Lt(Re){if(Re=Re.split("=")[0],Re=Re.trim().replace(Pt,""),Re.length<2)return"";for(;Re.length%4!==0;)Re=Re+"=";return Re}function dt(Re){return Re<16?"0"+Re.toString(16):Re.toString(16)}function Ze(Re,Fe){Fe=Fe||1/0;for(var Ge,it=Re.length,gt=null,Kt=[],kt=0;kt<it;++kt){if(Ge=Re.charCodeAt(kt),Ge>55295&&Ge<57344){if(!gt){if(Ge>56319){(Fe-=3)>-1&&Kt.push(239,191,189);continue}else if(kt+1===it){(Fe-=3)>-1&&Kt.push(239,191,189);continue}gt=Ge;continue}if(Ge<56320){(Fe-=3)>-1&&Kt.push(239,191,189),gt=Ge;continue}Ge=(gt-55296<<10|Ge-56320)+65536}else gt&&(Fe-=3)>-1&&Kt.push(239,191,189);if(gt=null,Ge<128){if((Fe-=1)<0)break;Kt.push(Ge)}else if(Ge<2048){if((Fe-=2)<0)break;Kt.push(Ge>>6|192,Ge&63|128)}else if(Ge<65536){if((Fe-=3)<0)break;Kt.push(Ge>>12|224,Ge>>6&63|128,Ge&63|128)}else if(Ge<1114112){if((Fe-=4)<0)break;Kt.push(Ge>>18|240,Ge>>12&63|128,Ge>>6&63|128,Ge&63|128)}else throw new Error("Invalid code point")}return Kt}function Ke(Re){for(var Fe=[],Ge=0;Ge<Re.length;++Ge)Fe.push(Re.charCodeAt(Ge)&255);return Fe}function de(Re,Fe){for(var Ge,it,gt,Kt=[],kt=0;kt<Re.length&&!((Fe-=2)<0);++kt)Ge=Re.charCodeAt(kt),it=Ge>>8,gt=Ge%256,Kt.push(gt),Kt.push(it);return Kt}function xe(Re){return z.toByteArray(Lt(Re))}function ze(Re,Fe,Ge,it){for(var gt=0;gt<it&&!(gt+Ge>=Fe.length||gt>=Re.length);++gt)Fe[gt+Ge]=Re[gt];return gt}function $e(Re,Fe){return Re instanceof Fe||Re!=null&&Re.constructor!=null&&Re.constructor.name!=null&&Re.constructor.name===Fe.name}function Ee(Re){return Re!==Re}}).call(this)}).call(this,x("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(x,ke,pe){ke.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(x,ke,pe){"use strict";var ne=x("get-intrinsic"),z=x("./"),ae=z(ne("String.prototype.indexOf"));ke.exports=function(se,me){var ie=ne(se,!!me);return typeof ie=="function"&&ae(se,".prototype.")>-1?z(ie):ie}},{"./":93,"get-intrinsic":348}],93:[function(x,ke,pe){"use strict";var ne=x("function-bind"),z=x("get-intrinsic"),ae=z("%Function.prototype.apply%"),re=z("%Function.prototype.call%"),se=z("%Reflect.apply%",!0)||ne.call(re,ae),me=z("%Object.getOwnPropertyDescriptor%",!0),ie=z("%Object.defineProperty%",!0),le=z("%Math.max%");if(ie)try{ie({},"a",{value:1})}catch(fe){ie=null}ke.exports=function(he){var oe=se(ne,re,arguments);if(me&&ie){var Se=me(oe,"length");Se.configurable&&ie(oe,"length",{value:1+le(0,he.length-(arguments.length-1))})}return oe};var ue=function(){return se(ne,ae,arguments)};ie?ie(ke.exports,"apply",{value:ue}):ke.exports.apply=ue},{"function-bind":347,"get-intrinsic":348}],94:[function(x,ke,pe){"use strict";var ne=Array.prototype.slice;ke.exports=z;function z(re,se){if(!(this instanceof z))return new z(re,se);this.src=re,this._withAccess=se}z.prototype.withAccess=function(re){return this._withAccess=re!==!1,this},z.prototype.pick=function(re){return Array.isArray(re)||(re=ne.call(arguments)),re.length&&(this.keys=re),this},z.prototype.to=function(re){if(re=re||{},!this.src)return re;var se=this.keys||Object.keys(this.src);if(!this._withAccess){for(var me=0;me<se.length;me++)ie=se[me],re[ie]===void 0&&(re[ie]=this.src[ie]);return re}for(var me=0;me<se.length;me++){var ie=se[me];if(ae(re,ie)){var le=this.src.__lookupGetter__(ie),ue=this.src.__lookupSetter__(ie);le&&re.__defineGetter__(ie,le),ue&&re.__defineSetter__(ie,ue),!le&&!ue&&(re[ie]=this.src[ie])}}return re},z.prototype.toCover=function(re){for(var se=this.keys||Object.keys(this.src),me=0;me<se.length;me++){var ie=se[me];delete re[ie];var le=this.src.__lookupGetter__(ie),ue=this.src.__lookupSetter__(ie);le&&re.__defineGetter__(ie,le),ue&&re.__defineSetter__(ie,ue),!le&&!ue&&(re[ie]=this.src[ie])}},z.prototype.override=z.prototype.toCover,z.prototype.and=function(re){var se={};return this.to(se),this.src=re,this.to(se),this.src=se,this};function ae(re,se){return re[se]===void 0&&re.__lookupGetter__(se)===void 0&&re.__lookupSetter__(se)===void 0}},{}],95:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-callable"),ae=x("../internals/try-to-string"),re=ne.TypeError;ke.exports=function(se){if(z(se))return se;throw re(ae(se)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-constructor"),ae=x("../internals/try-to-string"),re=ne.TypeError;ke.exports=function(se){if(z(se))return se;throw re(ae(se)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-callable"),ae=ne.String,re=ne.TypeError;ke.exports=function(se){if(typeof se=="object"||z(se))return se;throw re("Can't set "+ae(se)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(x,ke,pe){var ne=x("../internals/well-known-symbol"),z=x("../internals/object-create"),ae=x("../internals/object-define-property"),re=ne("unscopables"),se=Array.prototype;se[re]==null&&ae.f(se,re,{configurable:!0,value:z(null)}),ke.exports=function(me){se[re][me]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(x,ke,pe){"use strict";var ne=x("../internals/string-multibyte").charAt;ke.exports=function(z,ae,re){return ae+(re?ne(z,ae).length:1)}},{"../internals/string-multibyte":239}],100:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/object-is-prototype-of"),ae=ne.TypeError;ke.exports=function(re,se){if(z(se,re))return re;throw ae("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-object"),ae=ne.String,re=ne.TypeError;ke.exports=function(se){if(z(se))return se;throw re(ae(se)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(x,ke,pe){ke.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-native"),z=x("../internals/descriptors"),ae=x("../internals/global"),re=x("../internals/is-callable"),se=x("../internals/is-object"),me=x("../internals/has-own-property"),ie=x("../internals/classof"),le=x("../internals/try-to-string"),ue=x("../internals/create-non-enumerable-property"),fe=x("../internals/redefine"),he=x("../internals/object-define-property").f,oe=x("../internals/object-is-prototype-of"),Se=x("../internals/object-get-prototype-of"),Ce=x("../internals/object-set-prototype-of"),ye=x("../internals/well-known-symbol"),_e=x("../internals/uid"),Me=ae.Int8Array,we=Me&&Me.prototype,Ne=ae.Uint8ClampedArray,Ae=Ne&&Ne.prototype,De=Me&&Se(Me),Ie=we&&Se(we),Pe=Object.prototype,Le=ae.TypeError,We=ye("toStringTag"),Be=_e("TYPED_ARRAY_TAG"),He=_e("TYPED_ARRAY_CONSTRUCTOR"),Ye=ne&&!!Ce&&ie(ae.opera)!=="Opera",et=!1,st,yt,Ve,Qe={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pt={BigInt64Array:8,BigUint64Array:8},mt=function(Pt){if(!se(Pt))return!1;var Lt=ie(Pt);return Lt==="DataView"||me(Qe,Lt)||me(pt,Lt)},ft=function(bt){if(!se(bt))return!1;var Pt=ie(bt);return me(Qe,Pt)||me(pt,Pt)},nt=function(bt){if(ft(bt))return bt;throw Le("Target is not a typed array")},tt=function(bt){if(re(bt)&&(!Ce||oe(De,bt)))return bt;throw Le(le(bt)+" is not a typed array constructor")},rt=function(bt,Pt,Lt,dt){if(z){if(Lt)for(var Ze in Qe){var Ke=ae[Ze];if(Ke&&me(Ke.prototype,bt))try{delete Ke.prototype[bt]}catch(de){try{Ke.prototype[bt]=Pt}catch(xe){}}}(!Ie[bt]||Lt)&&fe(Ie,bt,Lt?Pt:Ye&&we[bt]||Pt,dt)}},Et=function(bt,Pt,Lt){var dt,Ze;if(z){if(Ce){if(Lt){for(dt in Qe)if(Ze=ae[dt],Ze&&me(Ze,bt))try{delete Ze[bt]}catch(Ke){}}if(!De[bt]||Lt)try{return fe(De,bt,Lt?Pt:Ye&&De[bt]||Pt)}catch(Ke){}else return}for(dt in Qe)Ze=ae[dt],Ze&&(!Ze[bt]||Lt)&&fe(Ze,bt,Pt)}};for(st in Qe)yt=ae[st],Ve=yt&&yt.prototype,Ve?ue(Ve,He,yt):Ye=!1;for(st in pt)yt=ae[st],Ve=yt&&yt.prototype,Ve&&ue(Ve,He,yt);if((!Ye||!re(De)||De===Function.prototype)&&(De=function(){throw Le("Incorrect invocation")},Ye))for(st in Qe)ae[st]&&Ce(ae[st],De);if((!Ye||!Ie||Ie===Pe)&&(Ie=De.prototype,Ye))for(st in Qe)ae[st]&&Ce(ae[st].prototype,Ie);if(Ye&&Se(Ae)!==Ie&&Ce(Ae,Ie),z&&!me(Ie,We)){et=!0,he(Ie,We,{get:function(){return se(this)?this[Be]:void 0}});for(st in Qe)ae[st]&&ue(ae[st],Be,st)}ke.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ye,TYPED_ARRAY_CONSTRUCTOR:He,TYPED_ARRAY_TAG:et&&Be,aTypedArray:nt,aTypedArrayConstructor:tt,exportTypedArrayMethod:rt,exportTypedArrayStaticMethod:Et,isView:mt,isTypedArray:ft,TypedArray:De,TypedArrayPrototype:Ie}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(x,ke,pe){"use strict";var ne=x("../internals/global"),z=x("../internals/function-uncurry-this"),ae=x("../internals/descriptors"),re=x("../internals/array-buffer-native"),se=x("../internals/function-name"),me=x("../internals/create-non-enumerable-property"),ie=x("../internals/redefine-all"),le=x("../internals/fails"),ue=x("../internals/an-instance"),fe=x("../internals/to-integer-or-infinity"),he=x("../internals/to-length"),oe=x("../internals/to-index"),Se=x("../internals/ieee754"),Ce=x("../internals/object-get-prototype-of"),ye=x("../internals/object-set-prototype-of"),_e=x("../internals/object-get-own-property-names").f,Me=x("../internals/object-define-property").f,we=x("../internals/array-fill"),Ne=x("../internals/array-slice-simple"),Ae=x("../internals/set-to-string-tag"),De=x("../internals/internal-state"),Ie=se.PROPER,Pe=se.CONFIGURABLE,Le=De.get,We=De.set,Be="ArrayBuffer",He="DataView",Ye="prototype",et="Wrong length",st="Wrong index",yt=ne[Be],Ve=yt,Qe=Ve&&Ve[Ye],pt=ne[He],mt=pt&&pt[Ye],ft=Object.prototype,nt=ne.Array,tt=ne.RangeError,rt=z(we),Et=z([].reverse),bt=Se.pack,Pt=Se.unpack,Lt=function(kt){return[kt&255]},dt=function(kt){return[kt&255,kt>>8&255]},Ze=function(kt){return[kt&255,kt>>8&255,kt>>16&255,kt>>24&255]},Ke=function(kt){return kt[3]<<24|kt[2]<<16|kt[1]<<8|kt[0]},de=function(kt){return bt(kt,23,4)},xe=function(kt){return bt(kt,52,8)},ze=function(kt,St){Me(kt[Ye],St,{get:function(){return Le(this)[St]}})},$e=function(kt,St,Wt,jt){var Vt=oe(Wt),_t=Le(kt);if(Vt+St>_t.byteLength)throw tt(st);var sn=Le(_t.buffer).bytes,Dt=Vt+_t.byteOffset,xt=Ne(sn,Dt,Dt+St);return jt?xt:Et(xt)},Ee=function(kt,St,Wt,jt,Vt,_t){var sn=oe(Wt),Dt=Le(kt);if(sn+St>Dt.byteLength)throw tt(st);for(var xt=Le(Dt.buffer).bytes,en=sn+Dt.byteOffset,an=jt(+Vt),fn=0;fn<St;fn++)xt[en+fn]=an[_t?fn:St-fn-1]};if(!re)Ve=function(St){ue(this,Qe);var Wt=oe(St);We(this,{bytes:rt(nt(Wt),0),byteLength:Wt}),ae||(this.byteLength=Wt)},Qe=Ve[Ye],pt=function(St,Wt,jt){ue(this,mt),ue(St,Qe);var Vt=Le(St).byteLength,_t=fe(Wt);if(_t<0||_t>Vt)throw tt("Wrong offset");if(jt=jt===void 0?Vt-_t:he(jt),_t+jt>Vt)throw tt(et);We(this,{buffer:St,byteLength:jt,byteOffset:_t}),ae||(this.buffer=St,this.byteLength=jt,this.byteOffset=_t)},mt=pt[Ye],ae&&(ze(Ve,"byteLength"),ze(pt,"buffer"),ze(pt,"byteLength"),ze(pt,"byteOffset")),ie(mt,{getInt8:function(St){return $e(this,1,St)[0]<<24>>24},getUint8:function(St){return $e(this,1,St)[0]},getInt16:function(St){var Wt=$e(this,2,St,arguments.length>1?arguments[1]:void 0);return(Wt[1]<<8|Wt[0])<<16>>16},getUint16:function(St){var Wt=$e(this,2,St,arguments.length>1?arguments[1]:void 0);return Wt[1]<<8|Wt[0]},getInt32:function(St){return Ke($e(this,4,St,arguments.length>1?arguments[1]:void 0))},getUint32:function(St){return Ke($e(this,4,St,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(St){return Pt($e(this,4,St,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(St){return Pt($e(this,8,St,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(St,Wt){Ee(this,1,St,Lt,Wt)},setUint8:function(St,Wt){Ee(this,1,St,Lt,Wt)},setInt16:function(St,Wt){Ee(this,2,St,dt,Wt,arguments.length>2?arguments[2]:void 0)},setUint16:function(St,Wt){Ee(this,2,St,dt,Wt,arguments.length>2?arguments[2]:void 0)},setInt32:function(St,Wt){Ee(this,4,St,Ze,Wt,arguments.length>2?arguments[2]:void 0)},setUint32:function(St,Wt){Ee(this,4,St,Ze,Wt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(St,Wt){Ee(this,4,St,de,Wt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(St,Wt){Ee(this,8,St,xe,Wt,arguments.length>2?arguments[2]:void 0)}});else{var Re=Ie&&yt.name!==Be;if(!le(function(){yt(1)})||!le(function(){new yt(-1)})||le(function(){return new yt,new yt(1.5),new yt(NaN),Re&&!Pe})){Ve=function(St){return ue(this,Qe),new yt(oe(St))},Ve[Ye]=Qe;for(var Fe=_e(yt),Ge=0,it;Fe.length>Ge;)(it=Fe[Ge++])in Ve||me(Ve,it,yt[it]);Qe.constructor=Ve}else Re&&Pe&&me(yt,"name",Be);ye&&Ce(mt)!==ft&&ye(mt,ft);var gt=new pt(new Ve(2)),Kt=z(mt.setInt8);gt.setInt8(0,2147483648),gt.setInt8(1,2147483649),(gt.getInt8(0)||!gt.getInt8(1))&&ie(mt,{setInt8:function(St,Wt){Kt(this,St,Wt<<24>>24)},setUint8:function(St,Wt){Kt(this,St,Wt<<24>>24)}},{unsafe:!0})}Ae(Ve,Be),Ae(pt,He),ke.exports={ArrayBuffer:Ve,DataView:pt}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(x,ke,pe){"use strict";var ne=x("../internals/to-object"),z=x("../internals/to-absolute-index"),ae=x("../internals/length-of-array-like"),re=Math.min;ke.exports=[].copyWithin||function(me,ie){var le=ne(this),ue=ae(le),fe=z(me,ue),he=z(ie,ue),oe=arguments.length>2?arguments[2]:void 0,Se=re((oe===void 0?ue:z(oe,ue))-he,ue-fe),Ce=1;for(he<fe&&fe<he+Se&&(Ce=-1,he+=Se-1,fe+=Se-1);Se-- >0;)he in le?le[fe]=le[he]:delete le[fe],fe+=Ce,he+=Ce;return le}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(x,ke,pe){"use strict";var ne=x("../internals/to-object"),z=x("../internals/to-absolute-index"),ae=x("../internals/length-of-array-like");ke.exports=function(se){for(var me=ne(this),ie=ae(me),le=arguments.length,ue=z(le>1?arguments[1]:void 0,ie),fe=le>2?arguments[2]:void 0,he=fe===void 0?ie:z(fe,ie);he>ue;)me[ue++]=se;return me}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(x,ke,pe){"use strict";var ne=x("../internals/array-iteration").forEach,z=x("../internals/array-method-is-strict"),ae=z("forEach");ke.exports=ae?[].forEach:function(se){return ne(this,se,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(x,ke,pe){var ne=x("../internals/length-of-array-like");ke.exports=function(z,ae){for(var re=0,se=ne(ae),me=new z(se);se>re;)me[re]=ae[re++];return me}},{"../internals/length-of-array-like":188}],109:[function(x,ke,pe){"use strict";var ne=x("../internals/global"),z=x("../internals/function-bind-context"),ae=x("../internals/function-call"),re=x("../internals/to-object"),se=x("../internals/call-with-safe-iteration-closing"),me=x("../internals/is-array-iterator-method"),ie=x("../internals/is-constructor"),le=x("../internals/length-of-array-like"),ue=x("../internals/create-property"),fe=x("../internals/get-iterator"),he=x("../internals/get-iterator-method"),oe=ne.Array;ke.exports=function(Ce){var ye=re(Ce),_e=ie(this),Me=arguments.length,we=Me>1?arguments[1]:void 0,Ne=we!==void 0;Ne&&(we=z(we,Me>2?arguments[2]:void 0));var Ae=he(ye),De=0,Ie,Pe,Le,We,Be,He;if(Ae&&!(this==oe&&me(Ae)))for(We=fe(ye,Ae),Be=We.next,Pe=_e?new this:[];!(Le=ae(Be,We)).done;De++)He=Ne?se(We,we,[Le.value,De],!0):Le.value,ue(Pe,De,He);else for(Ie=le(ye),Pe=_e?new this(Ie):oe(Ie);Ie>De;De++)He=Ne?we(ye[De],De):ye[De],ue(Pe,De,He);return Pe.length=De,Pe}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(x,ke,pe){var ne=x("../internals/to-indexed-object"),z=x("../internals/to-absolute-index"),ae=x("../internals/length-of-array-like"),re=function(se){return function(me,ie,le){var ue=ne(me),fe=ae(ue),he=z(le,fe),oe;if(se&&ie!=ie){for(;fe>he;)if(oe=ue[he++],oe!=oe)return!0}else for(;fe>he;he++)if((se||he in ue)&&ue[he]===ie)return se||he||0;return!se&&-1}};ke.exports={includes:re(!0),indexOf:re(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(x,ke,pe){var ne=x("../internals/function-bind-context"),z=x("../internals/function-uncurry-this"),ae=x("../internals/indexed-object"),re=x("../internals/to-object"),se=x("../internals/length-of-array-like"),me=x("../internals/array-species-create"),ie=z([].push),le=function(ue){var fe=ue==1,he=ue==2,oe=ue==3,Se=ue==4,Ce=ue==6,ye=ue==7,_e=ue==5||Ce;return function(Me,we,Ne,Ae){for(var De=re(Me),Ie=ae(De),Pe=ne(we,Ne),Le=se(Ie),We=0,Be=Ae||me,He=fe?Be(Me,Le):he||ye?Be(Me,0):void 0,Ye,et;Le>We;We++)if((_e||We in Ie)&&(Ye=Ie[We],et=Pe(Ye,We,De),ue))if(fe)He[We]=et;else if(et)switch(ue){case 3:return!0;case 5:return Ye;case 6:return We;case 2:ie(He,Ye)}else switch(ue){case 4:return!1;case 7:ie(He,Ye)}return Ce?-1:oe||Se?Se:He}};ke.exports={forEach:le(0),map:le(1),filter:le(2),some:le(3),every:le(4),find:le(5),findIndex:le(6),filterReject:le(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(x,ke,pe){"use strict";var ne=x("../internals/function-apply"),z=x("../internals/to-indexed-object"),ae=x("../internals/to-integer-or-infinity"),re=x("../internals/length-of-array-like"),se=x("../internals/array-method-is-strict"),me=Math.min,ie=[].lastIndexOf,le=!!ie&&1/[1].lastIndexOf(1,-0)<0,ue=se("lastIndexOf"),fe=le||!ue;ke.exports=fe?function(oe){if(le)return ne(ie,this,arguments)||0;var Se=z(this),Ce=re(Se),ye=Ce-1;for(arguments.length>1&&(ye=me(ye,ae(arguments[1]))),ye<0&&(ye=Ce+ye);ye>=0;ye--)if(ye in Se&&Se[ye]===oe)return ye||0;return-1}:ie},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(x,ke,pe){var ne=x("../internals/fails"),z=x("../internals/well-known-symbol"),ae=x("../internals/engine-v8-version"),re=z("species");ke.exports=function(se){return ae>=51||!ne(function(){var me=[],ie=me.constructor={};return ie[re]=function(){return{foo:1}},me[se](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(x,ke,pe){"use strict";var ne=x("../internals/fails");ke.exports=function(z,ae){var re=[][z];return!!re&&ne(function(){re.call(null,ae||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/a-callable"),ae=x("../internals/to-object"),re=x("../internals/indexed-object"),se=x("../internals/length-of-array-like"),me=ne.TypeError,ie=function(le){return function(ue,fe,he,oe){z(fe);var Se=ae(ue),Ce=re(Se),ye=se(Se),_e=le?ye-1:0,Me=le?-1:1;if(he<2)for(;;){if(_e in Ce){oe=Ce[_e],_e+=Me;break}if(_e+=Me,le?_e<0:ye<=_e)throw me("Reduce of empty array with no initial value")}for(;le?_e>=0:ye>_e;_e+=Me)_e in Ce&&(oe=fe(oe,Ce[_e],_e,Se));return oe}};ke.exports={left:ie(!1),right:ie(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/to-absolute-index"),ae=x("../internals/length-of-array-like"),re=x("../internals/create-property"),se=ne.Array,me=Math.max;ke.exports=function(ie,le,ue){for(var fe=ae(ie),he=z(le,fe),oe=z(ue===void 0?fe:ue,fe),Se=se(me(oe-he,0)),Ce=0;he<oe;he++,Ce++)re(Se,Ce,ie[he]);return Se.length=Ce,Se}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this");ke.exports=ne([].slice)},{"../internals/function-uncurry-this":157}],118:[function(x,ke,pe){var ne=x("../internals/array-slice-simple"),z=Math.floor,ae=function(me,ie){var le=me.length,ue=z(le/2);return le<8?re(me,ie):se(me,ae(ne(me,0,ue),ie),ae(ne(me,ue),ie),ie)},re=function(me,ie){for(var le=me.length,ue=1,fe,he;ue<le;){for(he=ue,fe=me[ue];he&&ie(me[he-1],fe)>0;)me[he]=me[--he];he!==ue++&&(me[he]=fe)}return me},se=function(me,ie,le,ue){for(var fe=ie.length,he=le.length,oe=0,Se=0;oe<fe||Se<he;)me[oe+Se]=oe<fe&&Se<he?ue(ie[oe],le[Se])<=0?ie[oe++]:le[Se++]:oe<fe?ie[oe++]:le[Se++];return me};ke.exports=ae},{"../internals/array-slice-simple":116}],119:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-array"),ae=x("../internals/is-constructor"),re=x("../internals/is-object"),se=x("../internals/well-known-symbol"),me=se("species"),ie=ne.Array;ke.exports=function(le){var ue;return z(le)&&(ue=le.constructor,ae(ue)&&(ue===ie||z(ue.prototype))?ue=void 0:re(ue)&&(ue=ue[me],ue===null&&(ue=void 0))),ue===void 0?ie:ue}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(x,ke,pe){var ne=x("../internals/array-species-constructor");ke.exports=function(z,ae){return new(ne(z))(ae===0?0:ae)}},{"../internals/array-species-constructor":119}],121:[function(x,ke,pe){var ne=x("../internals/an-object"),z=x("../internals/iterator-close");ke.exports=function(ae,re,se,me){try{return me?re(ne(se)[0],se[1]):re(se)}catch(ie){z(ae,"throw",ie)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(x,ke,pe){var ne=x("../internals/well-known-symbol"),z=ne("iterator"),ae=!1;try{var re=0,se={next:function(){return{done:!!re++}},return:function(){ae=!0}};se[z]=function(){return this},Array.from(se,function(){throw 2})}catch(me){}ke.exports=function(me,ie){if(!ie&&!ae)return!1;var le=!1;try{var ue={};ue[z]=function(){return{next:function(){return{done:le=!0}}}},me(ue)}catch(fe){}return le}},{"../internals/well-known-symbol":268}],123:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=ne({}.toString),ae=ne("".slice);ke.exports=function(re){return ae(z(re),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/to-string-tag-support"),ae=x("../internals/is-callable"),re=x("../internals/classof-raw"),se=x("../internals/well-known-symbol"),me=se("toStringTag"),ie=ne.Object,le=re(function(){return arguments}())=="Arguments",ue=function(fe,he){try{return fe[he]}catch(oe){}};ke.exports=z?re:function(fe){var he,oe,Se;return fe===void 0?"Undefined":fe===null?"Null":typeof(oe=ue(he=ie(fe),me))=="string"?oe:le?re(he):(Se=re(he))=="Object"&&ae(he.callee)?"Arguments":Se}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(x,ke,pe){var ne=x("../internals/has-own-property"),z=x("../internals/own-keys"),ae=x("../internals/object-get-own-property-descriptor"),re=x("../internals/object-define-property");ke.exports=function(se,me,ie){for(var le=z(me),ue=re.f,fe=ae.f,he=0;he<le.length;he++){var oe=le[he];!ne(se,oe)&&!(ie&&ne(ie,oe))&&ue(se,oe,fe(me,oe))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(x,ke,pe){var ne=x("../internals/well-known-symbol"),z=ne("match");ke.exports=function(ae){var re=/./;try{"/./"[ae](re)}catch(se){try{return re[z]=!1,"/./"[ae](re)}catch(me){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(x,ke,pe){var ne=x("../internals/fails");ke.exports=!ne(function(){function z(){}return z.prototype.constructor=null,Object.getPrototypeOf(new z)!==z.prototype})},{"../internals/fails":150}],128:[function(x,ke,pe){"use strict";var ne=x("../internals/iterators-core").IteratorPrototype,z=x("../internals/object-create"),ae=x("../internals/create-property-descriptor"),re=x("../internals/set-to-string-tag"),se=x("../internals/iterators"),me=function(){return this};ke.exports=function(ie,le,ue,fe){var he=le+" Iterator";return ie.prototype=z(ne,{next:ae(+!fe,ue)}),re(ie,he,!1,!0),se[he]=me,ie}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(x,ke,pe){var ne=x("../internals/descriptors"),z=x("../internals/object-define-property"),ae=x("../internals/create-property-descriptor");ke.exports=ne?function(re,se,me){return z.f(re,se,ae(1,me))}:function(re,se,me){return re[se]=me,re}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(x,ke,pe){ke.exports=function(ne,z){return{enumerable:!(ne&1),configurable:!(ne&2),writable:!(ne&4),value:z}}},{}],131:[function(x,ke,pe){"use strict";var ne=x("../internals/to-property-key"),z=x("../internals/object-define-property"),ae=x("../internals/create-property-descriptor");ke.exports=function(re,se,me){var ie=ne(se);ie in re?z.f(re,ie,ae(0,me)):re[ie]=me}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/function-call"),ae=x("../internals/is-pure"),re=x("../internals/function-name"),se=x("../internals/is-callable"),me=x("../internals/create-iterator-constructor"),ie=x("../internals/object-get-prototype-of"),le=x("../internals/object-set-prototype-of"),ue=x("../internals/set-to-string-tag"),fe=x("../internals/create-non-enumerable-property"),he=x("../internals/redefine"),oe=x("../internals/well-known-symbol"),Se=x("../internals/iterators"),Ce=x("../internals/iterators-core"),ye=re.PROPER,_e=re.CONFIGURABLE,Me=Ce.IteratorPrototype,we=Ce.BUGGY_SAFARI_ITERATORS,Ne=oe("iterator"),Ae="keys",De="values",Ie="entries",Pe=function(){return this};ke.exports=function(Le,We,Be,He,Ye,et,st){me(Be,We,He);var yt=function(bt){if(bt===Ye&&ft)return ft;if(!we&&bt in pt)return pt[bt];switch(bt){case Ae:return function(){return new Be(this,bt)};case De:return function(){return new Be(this,bt)};case Ie:return function(){return new Be(this,bt)}}return function(){return new Be(this)}},Ve=We+" Iterator",Qe=!1,pt=Le.prototype,mt=pt[Ne]||pt["@@iterator"]||Ye&&pt[Ye],ft=!we&&mt||yt(Ye),nt=We=="Array"&&pt.entries||mt,tt,rt,Et;if(nt&&(tt=ie(nt.call(new Le)),tt!==Object.prototype&&tt.next&&(!ae&&ie(tt)!==Me&&(le?le(tt,Me):se(tt[Ne])||he(tt,Ne,Pe)),ue(tt,Ve,!0,!0),ae&&(Se[Ve]=Pe))),ye&&Ye==De&&mt&&mt.name!==De&&(!ae&&_e?fe(pt,"name",De):(Qe=!0,ft=function(){return z(mt,this)})),Ye)if(rt={values:yt(De),keys:et?ft:yt(Ae),entries:yt(Ie)},st)for(Et in rt)(we||Qe||!(Et in pt))&&he(pt,Et,rt[Et]);else ne({target:We,proto:!0,forced:we||Qe},rt);return(!ae||st)&&pt[Ne]!==ft&&he(pt,Ne,ft,{name:Ye}),Se[We]=ft,rt}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(x,ke,pe){var ne=x("../internals/path"),z=x("../internals/has-own-property"),ae=x("../internals/well-known-symbol-wrapped"),re=x("../internals/object-define-property").f;ke.exports=function(se){var me=ne.Symbol||(ne.Symbol={});z(me,se)||re(me,se,{value:ae.f(se)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(x,ke,pe){var ne=x("../internals/fails");ke.exports=!ne(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-object"),ae=ne.document,re=z(ae)&&z(ae.createElement);ke.exports=function(se){return re?ae.createElement(se):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(x,ke,pe){ke.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}},{}],137:[function(x,ke,pe){var ne=x("../internals/document-create-element"),z=ne("span").classList,ae=z&&z.constructor&&z.constructor.prototype;ke.exports=ae===Object.prototype?void 0:ae},{"../internals/document-create-element":135}],138:[function(x,ke,pe){var ne=x("../internals/engine-user-agent"),z=ne.match(/firefox\/(\d+)/i);ke.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],139:[function(x,ke,pe){ke.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(x,ke,pe){var ne=x("../internals/engine-user-agent");ke.exports=/MSIE|Trident/.test(ne)},{"../internals/engine-user-agent":145}],141:[function(x,ke,pe){var ne=x("../internals/engine-user-agent"),z=x("../internals/global");ke.exports=/ipad|iphone|ipod/i.test(ne)&&z.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(x,ke,pe){var ne=x("../internals/engine-user-agent");ke.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ne)},{"../internals/engine-user-agent":145}],143:[function(x,ke,pe){var ne=x("../internals/classof-raw"),z=x("../internals/global");ke.exports=ne(z.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(x,ke,pe){var ne=x("../internals/engine-user-agent");ke.exports=/web0s(?!.*chrome)/i.test(ne)},{"../internals/engine-user-agent":145}],145:[function(x,ke,pe){var ne=x("../internals/get-built-in");ke.exports=ne("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/engine-user-agent"),ae=ne.process,re=ne.Deno,se=ae&&ae.versions||re&&re.version,me=se&&se.v8,ie,le;me&&(ie=me.split("."),le=ie[0]>0&&ie[0]<4?1:+(ie[0]+ie[1])),!le&&z&&(ie=z.match(/Edge\/(\d+)/),(!ie||ie[1]>=74)&&(ie=z.match(/Chrome\/(\d+)/),ie&&(le=+ie[1]))),ke.exports=le},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(x,ke,pe){var ne=x("../internals/engine-user-agent"),z=ne.match(/AppleWebKit\/(\d+)\./);ke.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],148:[function(x,ke,pe){ke.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/object-get-own-property-descriptor").f,ae=x("../internals/create-non-enumerable-property"),re=x("../internals/redefine"),se=x("../internals/set-global"),me=x("../internals/copy-constructor-properties"),ie=x("../internals/is-forced");ke.exports=function(le,ue){var fe=le.target,he=le.global,oe=le.stat,Se,Ce,ye,_e,Me,we;if(he?Ce=ne:oe?Ce=ne[fe]||se(fe,{}):Ce=(ne[fe]||{}).prototype,Ce)for(ye in ue){if(Me=ue[ye],le.noTargetGet?(we=z(Ce,ye),_e=we&&we.value):_e=Ce[ye],Se=ie(he?ye:fe+(oe?".":"#")+ye,le.forced),!Se&&_e!==void 0){if(typeof Me==typeof _e)continue;me(Me,_e)}(le.sham||_e&&_e.sham)&&ae(Me,"sham",!0),re(Ce,ye,Me,le)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(x,ke,pe){ke.exports=function(ne){try{return!!ne()}catch(z){return!0}}},{}],151:[function(x,ke,pe){"use strict";x("../modules/es.regexp.exec");var ne=x("../internals/function-uncurry-this"),z=x("../internals/redefine"),ae=x("../internals/regexp-exec"),re=x("../internals/fails"),se=x("../internals/well-known-symbol"),me=x("../internals/create-non-enumerable-property"),ie=se("species"),le=RegExp.prototype;ke.exports=function(ue,fe,he,oe){var Se=se(ue),Ce=!re(function(){var we={};return we[Se]=function(){return 7},""[ue](we)!=7}),ye=Ce&&!re(function(){var we=!1,Ne=/a/;return ue==="split"&&(Ne={},Ne.constructor={},Ne.constructor[ie]=function(){return Ne},Ne.flags="",Ne[Se]=/./[Se]),Ne.exec=function(){return we=!0,null},Ne[Se](""),!we});if(!Ce||!ye||he){var _e=ne(/./[Se]),Me=fe(Se,""[ue],function(we,Ne,Ae,De,Ie){var Pe=ne(we),Le=Ne.exec;return Le===ae||Le===le.exec?Ce&&!Ie?{done:!0,value:_e(Ne,Ae,De)}:{done:!0,value:Pe(Ae,Ne,De)}:{done:!1}});z(String.prototype,ue,Me[0]),z(le,Se,Me[1])}oe&&me(le[Se],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(x,ke,pe){var ne=x("../internals/function-bind-native"),z=Function.prototype,ae=z.apply,re=z.call;ke.exports=typeof Reflect=="object"&&Reflect.apply||(ne?re.bind(ae):function(){return re.apply(ae,arguments)})},{"../internals/function-bind-native":154}],153:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=x("../internals/a-callable"),ae=x("../internals/function-bind-native"),re=ne(ne.bind);ke.exports=function(se,me){return z(se),me===void 0?se:ae?re(se,me):function(){return se.apply(me,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(x,ke,pe){var ne=x("../internals/fails");ke.exports=!ne(function(){var z=function(){}.bind();return typeof z!="function"||z.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(x,ke,pe){var ne=x("../internals/function-bind-native"),z=Function.prototype.call;ke.exports=ne?z.bind(z):function(){return z.apply(z,arguments)}},{"../internals/function-bind-native":154}],156:[function(x,ke,pe){var ne=x("../internals/descriptors"),z=x("../internals/has-own-property"),ae=Function.prototype,re=ne&&Object.getOwnPropertyDescriptor,se=z(ae,"name"),me=se&&function(){}.name==="something",ie=se&&(!ne||ne&&re(ae,"name").configurable);ke.exports={EXISTS:se,PROPER:me,CONFIGURABLE:ie}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(x,ke,pe){var ne=x("../internals/function-bind-native"),z=Function.prototype,ae=z.bind,re=z.call,se=ne&&ae.bind(re,re);ke.exports=ne?function(me){return me&&se(me)}:function(me){return me&&function(){return re.apply(me,arguments)}}},{"../internals/function-bind-native":154}],158:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-callable"),ae=function(re){return z(re)?re:void 0};ke.exports=function(re,se){return arguments.length<2?ae(ne[re]):ne[re]&&ne[re][se]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(x,ke,pe){var ne=x("../internals/classof"),z=x("../internals/get-method"),ae=x("../internals/iterators"),re=x("../internals/well-known-symbol"),se=re("iterator");ke.exports=function(me){if(me!=null)return z(me,se)||z(me,"@@iterator")||ae[ne(me)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/function-call"),ae=x("../internals/a-callable"),re=x("../internals/an-object"),se=x("../internals/try-to-string"),me=x("../internals/get-iterator-method"),ie=ne.TypeError;ke.exports=function(le,ue){var fe=arguments.length<2?me(le):ue;if(ae(fe))return re(z(fe,le));throw ie(se(le)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(x,ke,pe){var ne=x("../internals/a-callable");ke.exports=function(z,ae){var re=z[ae];return re==null?void 0:ne(re)}},{"../internals/a-callable":95}],162:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=x("../internals/to-object"),ae=Math.floor,re=ne("".charAt),se=ne("".replace),me=ne("".slice),ie=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,le=/\$([$&'`]|\d{1,2})/g;ke.exports=function(ue,fe,he,oe,Se,Ce){var ye=he+ue.length,_e=oe.length,Me=le;return Se!==void 0&&(Se=z(Se),Me=ie),se(Ce,Me,function(we,Ne){var Ae;switch(re(Ne,0)){case"$":return"$";case"&":return ue;case"`":return me(fe,0,he);case"'":return me(fe,ye);case"<":Ae=Se[me(Ne,1,-1)];break;default:var De=+Ne;if(De===0)return we;if(De>_e){var Ie=ae(De/10);return Ie===0?we:Ie<=_e?oe[Ie-1]===void 0?re(Ne,1):oe[Ie-1]+re(Ne,1):we}Ae=oe[De-1]}return Ae===void 0?"":Ae})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(x,ke,pe){(function(ne){(function(){var z=function(ae){return ae&&ae.Math==Math&&ae};ke.exports=z(typeof globalThis=="object"&&globalThis)||z(typeof window=="object"&&window)||z(typeof self=="object"&&self)||z(typeof ne=="object"&&ne)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=x("../internals/to-object"),ae=ne({}.hasOwnProperty);ke.exports=Object.hasOwn||function(se,me){return ae(z(se),me)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(x,ke,pe){ke.exports={}},{}],166:[function(x,ke,pe){var ne=x("../internals/global");ke.exports=function(z,ae){var re=ne.console;re&&re.error&&(arguments.length==1?re.error(z):re.error(z,ae))}},{"../internals/global":163}],167:[function(x,ke,pe){var ne=x("../internals/get-built-in");ke.exports=ne("document","documentElement")},{"../internals/get-built-in":158}],168:[function(x,ke,pe){var ne=x("../internals/descriptors"),z=x("../internals/fails"),ae=x("../internals/document-create-element");ke.exports=!ne&&!z(function(){return Object.defineProperty(ae("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(x,ke,pe){var ne=x("../internals/global"),z=ne.Array,ae=Math.abs,re=Math.pow,se=Math.floor,me=Math.log,ie=Math.LN2,le=function(fe,he,oe){var Se=z(oe),Ce=oe*8-he-1,ye=(1<<Ce)-1,_e=ye>>1,Me=he===23?re(2,-24)-re(2,-77):0,we=fe<0||fe===0&&1/fe<0?1:0,Ne=0,Ae,De,Ie;for(fe=ae(fe),fe!=fe||fe===1/0?(De=fe!=fe?1:0,Ae=ye):(Ae=se(me(fe)/ie),Ie=re(2,-Ae),fe*Ie<1&&(Ae--,Ie*=2),Ae+_e>=1?fe+=Me/Ie:fe+=Me*re(2,1-_e),fe*Ie>=2&&(Ae++,Ie/=2),Ae+_e>=ye?(De=0,Ae=ye):Ae+_e>=1?(De=(fe*Ie-1)*re(2,he),Ae=Ae+_e):(De=fe*re(2,_e-1)*re(2,he),Ae=0));he>=8;)Se[Ne++]=De&255,De/=256,he-=8;for(Ae=Ae<<he|De,Ce+=he;Ce>0;)Se[Ne++]=Ae&255,Ae/=256,Ce-=8;return Se[--Ne]|=we*128,Se},ue=function(fe,he){var oe=fe.length,Se=oe*8-he-1,Ce=(1<<Se)-1,ye=Ce>>1,_e=Se-7,Me=oe-1,we=fe[Me--],Ne=we&127,Ae;for(we>>=7;_e>0;)Ne=Ne*256+fe[Me--],_e-=8;for(Ae=Ne&(1<<-_e)-1,Ne>>=-_e,_e+=he;_e>0;)Ae=Ae*256+fe[Me--],_e-=8;if(Ne===0)Ne=1-ye;else{if(Ne===Ce)return Ae?NaN:we?-1/0:1/0;Ae=Ae+re(2,he),Ne=Ne-ye}return(we?-1:1)*Ae*re(2,Ne-he)};ke.exports={pack:le,unpack:ue}},{"../internals/global":163}],170:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/function-uncurry-this"),ae=x("../internals/fails"),re=x("../internals/classof-raw"),se=ne.Object,me=z("".split);ke.exports=ae(function(){return!se("z").propertyIsEnumerable(0)})?function(ie){return re(ie)=="String"?me(ie,""):se(ie)}:se},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(x,ke,pe){var ne=x("../internals/is-callable"),z=x("../internals/is-object"),ae=x("../internals/object-set-prototype-of");ke.exports=function(re,se,me){var ie,le;return ae&&ne(ie=se.constructor)&&ie!==me&&z(le=ie.prototype)&&le!==me.prototype&&ae(re,le),re}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=x("../internals/is-callable"),ae=x("../internals/shared-store"),re=ne(Function.toString);z(ae.inspectSource)||(ae.inspectSource=function(se){return re(se)}),ke.exports=ae.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(x,ke,pe){var ne=x("../internals/native-weak-map"),z=x("../internals/global"),ae=x("../internals/function-uncurry-this"),re=x("../internals/is-object"),se=x("../internals/create-non-enumerable-property"),me=x("../internals/has-own-property"),ie=x("../internals/shared-store"),le=x("../internals/shared-key"),ue=x("../internals/hidden-keys"),fe="Object already initialized",he=z.TypeError,oe=z.WeakMap,Se,Ce,ye,_e=function(Pe){return ye(Pe)?Ce(Pe):Se(Pe,{})},Me=function(Pe){return function(Le){var We;if(!re(Le)||(We=Ce(Le)).type!==Pe)throw he("Incompatible receiver, "+Pe+" required");return We}};if(ne||ie.state){var we=ie.state||(ie.state=new oe),Ne=ae(we.get),Ae=ae(we.has),De=ae(we.set);Se=function(Pe,Le){if(Ae(we,Pe))throw new he(fe);return Le.facade=Pe,De(we,Pe,Le),Le},Ce=function(Pe){return Ne(we,Pe)||{}},ye=function(Pe){return Ae(we,Pe)}}else{var Ie=le("state");ue[Ie]=!0,Se=function(Pe,Le){if(me(Pe,Ie))throw new he(fe);return Le.facade=Pe,se(Pe,Ie,Le),Le},Ce=function(Pe){return me(Pe,Ie)?Pe[Ie]:{}},ye=function(Pe){return me(Pe,Ie)}}ke.exports={set:Se,get:Ce,has:ye,enforce:_e,getterFor:Me}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(x,ke,pe){var ne=x("../internals/well-known-symbol"),z=x("../internals/iterators"),ae=ne("iterator"),re=Array.prototype;ke.exports=function(se){return se!==void 0&&(z.Array===se||re[ae]===se)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(x,ke,pe){var ne=x("../internals/classof-raw");ke.exports=Array.isArray||function(ae){return ne(ae)=="Array"}},{"../internals/classof-raw":123}],176:[function(x,ke,pe){ke.exports=function(ne){return typeof ne=="function"}},{}],177:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=x("../internals/fails"),ae=x("../internals/is-callable"),re=x("../internals/classof"),se=x("../internals/get-built-in"),me=x("../internals/inspect-source"),ie=function(){},le=[],ue=se("Reflect","construct"),fe=/^\s*(?:class|function)\b/,he=ne(fe.exec),oe=!fe.exec(ie),Se=function(_e){if(!ae(_e))return!1;try{return ue(ie,le,_e),!0}catch(Me){return!1}},Ce=function(_e){if(!ae(_e))return!1;switch(re(_e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oe||!!he(fe,me(_e))}catch(Me){return!0}};Ce.sham=!0,ke.exports=!ue||z(function(){var ye;return Se(Se.call)||!Se(Object)||!Se(function(){ye=!0})||ye})?Ce:Se},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(x,ke,pe){var ne=x("../internals/fails"),z=x("../internals/is-callable"),ae=/#|\.prototype\./,re=function(ue,fe){var he=me[se(ue)];return he==le?!0:he==ie?!1:z(fe)?ne(fe):!!fe},se=re.normalize=function(ue){return String(ue).replace(ae,".").toLowerCase()},me=re.data={},ie=re.NATIVE="N",le=re.POLYFILL="P";ke.exports=re},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(x,ke,pe){var ne=x("../internals/is-object"),z=Math.floor;ke.exports=Number.isInteger||function(re){return!ne(re)&&isFinite(re)&&z(re)===re}},{"../internals/is-object":180}],180:[function(x,ke,pe){var ne=x("../internals/is-callable");ke.exports=function(z){return typeof z=="object"?z!==null:ne(z)}},{"../internals/is-callable":176}],181:[function(x,ke,pe){ke.exports=!1},{}],182:[function(x,ke,pe){var ne=x("../internals/is-object"),z=x("../internals/classof-raw"),ae=x("../internals/well-known-symbol"),re=ae("match");ke.exports=function(se){var me;return ne(se)&&((me=se[re])!==void 0?!!me:z(se)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/get-built-in"),ae=x("../internals/is-callable"),re=x("../internals/object-is-prototype-of"),se=x("../internals/use-symbol-as-uid"),me=ne.Object;ke.exports=se?function(ie){return typeof ie=="symbol"}:function(ie){var le=z("Symbol");return ae(le)&&re(le.prototype,me(ie))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/function-bind-context"),ae=x("../internals/function-call"),re=x("../internals/an-object"),se=x("../internals/try-to-string"),me=x("../internals/is-array-iterator-method"),ie=x("../internals/length-of-array-like"),le=x("../internals/object-is-prototype-of"),ue=x("../internals/get-iterator"),fe=x("../internals/get-iterator-method"),he=x("../internals/iterator-close"),oe=ne.TypeError,Se=function(ye,_e){this.stopped=ye,this.result=_e},Ce=Se.prototype;ke.exports=function(ye,_e,Me){var we=Me&&Me.that,Ne=!!(Me&&Me.AS_ENTRIES),Ae=!!(Me&&Me.IS_ITERATOR),De=!!(Me&&Me.INTERRUPTED),Ie=z(_e,we),Pe,Le,We,Be,He,Ye,et,st=function(Ve){return Pe&&he(Pe,"normal",Ve),new Se(!0,Ve)},yt=function(Ve){return Ne?(re(Ve),De?Ie(Ve[0],Ve[1],st):Ie(Ve[0],Ve[1])):De?Ie(Ve,st):Ie(Ve)};if(Ae)Pe=ye;else{if(Le=fe(ye),!Le)throw oe(se(ye)+" is not iterable");if(me(Le)){for(We=0,Be=ie(ye);Be>We;We++)if(He=yt(ye[We]),He&&le(Ce,He))return He;return new Se(!1)}Pe=ue(ye,Le)}for(Ye=Pe.next;!(et=ae(Ye,Pe)).done;){try{He=yt(et.value)}catch(Ve){he(Pe,"throw",Ve)}if(typeof He=="object"&&He&&le(Ce,He))return He}return new Se(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(x,ke,pe){var ne=x("../internals/function-call"),z=x("../internals/an-object"),ae=x("../internals/get-method");ke.exports=function(re,se,me){var ie,le;z(re);try{if(ie=ae(re,"return"),!ie){if(se==="throw")throw me;return me}ie=ne(ie,re)}catch(ue){le=!0,ie=ue}if(se==="throw")throw me;if(le)throw ie;return z(ie),me}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(x,ke,pe){"use strict";var ne=x("../internals/fails"),z=x("../internals/is-callable"),ae=x("../internals/object-create"),re=x("../internals/object-get-prototype-of"),se=x("../internals/redefine"),me=x("../internals/well-known-symbol"),ie=x("../internals/is-pure"),le=me("iterator"),ue=!1,fe,he,oe;[].keys&&(oe=[].keys(),"next"in oe?(he=re(re(oe)),he!==Object.prototype&&(fe=he)):ue=!0);var Se=fe==null||ne(function(){var Ce={};return fe[le].call(Ce)!==Ce});Se?fe={}:ie&&(fe=ae(fe)),z(fe[le])||se(fe,le,function(){return this}),ke.exports={IteratorPrototype:fe,BUGGY_SAFARI_ITERATORS:ue}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(x,ke,pe){arguments[4][165][0].apply(pe,arguments)},{dup:165}],188:[function(x,ke,pe){var ne=x("../internals/to-length");ke.exports=function(z){return ne(z.length)}},{"../internals/to-length":249}],189:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/function-bind-context"),ae=x("../internals/object-get-own-property-descriptor").f,re=x("../internals/task").set,se=x("../internals/engine-is-ios"),me=x("../internals/engine-is-ios-pebble"),ie=x("../internals/engine-is-webos-webkit"),le=x("../internals/engine-is-node"),ue=ne.MutationObserver||ne.WebKitMutationObserver,fe=ne.document,he=ne.process,oe=ne.Promise,Se=ae(ne,"queueMicrotask"),Ce=Se&&Se.value,ye,_e,Me,we,Ne,Ae,De,Ie;Ce||(ye=function(){var Pe,Le;for(le&&(Pe=he.domain)&&Pe.exit();_e;){Le=_e.fn,_e=_e.next;try{Le()}catch(We){throw _e?we():Me=void 0,We}}Me=void 0,Pe&&Pe.enter()},!se&&!le&&!ie&&ue&&fe?(Ne=!0,Ae=fe.createTextNode(""),new ue(ye).observe(Ae,{characterData:!0}),we=function(){Ae.data=Ne=!Ne}):!me&&oe&&oe.resolve?(De=oe.resolve(void 0),De.constructor=oe,Ie=z(De.then,De),we=function(){Ie(ye)}):le?we=function(){he.nextTick(ye)}:(re=z(re,ne),we=function(){re(ye)})),ke.exports=Ce||function(Pe){var Le={fn:Pe,next:void 0};Me&&(Me.next=Le),_e||(_e=Le,we()),Me=Le}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(x,ke,pe){var ne=x("../internals/native-symbol");ke.exports=ne&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(x,ke,pe){var ne=x("../internals/engine-v8-version"),z=x("../internals/fails");ke.exports=!!Object.getOwnPropertySymbols&&!z(function(){var ae=Symbol();return!String(ae)||!(Object(ae)instanceof Symbol)||!Symbol.sham&&ne&&ne<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-callable"),ae=x("../internals/inspect-source"),re=ne.WeakMap;ke.exports=z(re)&&/native code/.test(ae(re))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(x,ke,pe){"use strict";var ne=x("../internals/a-callable"),z=function(ae){var re,se;this.promise=new ae(function(me,ie){if(re!==void 0||se!==void 0)throw TypeError("Bad Promise constructor");re=me,se=ie}),this.resolve=ne(re),this.reject=ne(se)};ke.exports.f=function(ae){return new z(ae)}},{"../internals/a-callable":95}],194:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-regexp"),ae=ne.TypeError;ke.exports=function(re){if(z(re))throw ae("The method doesn't accept regular expressions");return re}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(x,ke,pe){"use strict";var ne=x("../internals/descriptors"),z=x("../internals/function-uncurry-this"),ae=x("../internals/function-call"),re=x("../internals/fails"),se=x("../internals/object-keys"),me=x("../internals/object-get-own-property-symbols"),ie=x("../internals/object-property-is-enumerable"),le=x("../internals/to-object"),ue=x("../internals/indexed-object"),fe=Object.assign,he=Object.defineProperty,oe=z([].concat);ke.exports=!fe||re(function(){if(ne&&fe({b:1},fe(he({},"a",{enumerable:!0,get:function(){he(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Se={},Ce={},ye=Symbol(),_e="abcdefghijklmnopqrst";return Se[ye]=7,_e.split("").forEach(function(Me){Ce[Me]=Me}),fe({},Se)[ye]!=7||se(fe({},Ce)).join("")!=_e})?function(Ce,ye){for(var _e=le(Ce),Me=arguments.length,we=1,Ne=me.f,Ae=ie.f;Me>we;)for(var De=ue(arguments[we++]),Ie=Ne?oe(se(De),Ne(De)):se(De),Pe=Ie.length,Le=0,We;Pe>Le;)We=Ie[Le++],(!ne||ae(Ae,De,We))&&(_e[We]=De[We]);return _e}:fe},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(x,ke,pe){var ne=x("../internals/an-object"),z=x("../internals/object-define-properties"),ae=x("../internals/enum-bug-keys"),re=x("../internals/hidden-keys"),se=x("../internals/html"),me=x("../internals/document-create-element"),ie=x("../internals/shared-key"),le=">",ue="<",fe="prototype",he="script",oe=ie("IE_PROTO"),Se=function(){},Ce=function(Ne){return ue+he+le+Ne+ue+"/"+he+le},ye=function(Ne){Ne.write(Ce("")),Ne.close();var Ae=Ne.parentWindow.Object;return Ne=null,Ae},_e=function(){var Ne=me("iframe"),Ae="java"+he+":",De;return Ne.style.display="none",se.appendChild(Ne),Ne.src=String(Ae),De=Ne.contentWindow.document,De.open(),De.write(Ce("document.F=Object")),De.close(),De.F},Me,we=function(){try{Me=new ActiveXObject("htmlfile")}catch(Ae){}we=typeof document!="undefined"?document.domain&&Me?ye(Me):_e():ye(Me);for(var Ne=ae.length;Ne--;)delete we[fe][ae[Ne]];return we()};re[oe]=!0,ke.exports=Object.create||function(Ae,De){var Ie;return Ae!==null?(Se[fe]=ne(Ae),Ie=new Se,Se[fe]=null,Ie[oe]=Ae):Ie=we(),De===void 0?Ie:z.f(Ie,De)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(x,ke,pe){var ne=x("../internals/descriptors"),z=x("../internals/v8-prototype-define-bug"),ae=x("../internals/object-define-property"),re=x("../internals/an-object"),se=x("../internals/to-indexed-object"),me=x("../internals/object-keys");pe.f=ne&&!z?Object.defineProperties:function(le,ue){re(le);for(var fe=se(ue),he=me(ue),oe=he.length,Se=0,Ce;oe>Se;)ae.f(le,Ce=he[Se++],fe[Ce]);return le}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/descriptors"),ae=x("../internals/ie8-dom-define"),re=x("../internals/v8-prototype-define-bug"),se=x("../internals/an-object"),me=x("../internals/to-property-key"),ie=ne.TypeError,le=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,fe="enumerable",he="configurable",oe="writable";pe.f=z?re?function(Ce,ye,_e){if(se(Ce),ye=me(ye),se(_e),typeof Ce=="function"&&ye==="prototype"&&"value"in _e&&oe in _e&&!_e[oe]){var Me=ue(Ce,ye);Me&&Me[oe]&&(Ce[ye]=_e.value,_e={configurable:he in _e?_e[he]:Me[he],enumerable:fe in _e?_e[fe]:Me[fe],writable:!1})}return le(Ce,ye,_e)}:le:function(Ce,ye,_e){if(se(Ce),ye=me(ye),se(_e),ae)try{return le(Ce,ye,_e)}catch(Me){}if("get"in _e||"set"in _e)throw ie("Accessors not supported");return"value"in _e&&(Ce[ye]=_e.value),Ce}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(x,ke,pe){var ne=x("../internals/descriptors"),z=x("../internals/function-call"),ae=x("../internals/object-property-is-enumerable"),re=x("../internals/create-property-descriptor"),se=x("../internals/to-indexed-object"),me=x("../internals/to-property-key"),ie=x("../internals/has-own-property"),le=x("../internals/ie8-dom-define"),ue=Object.getOwnPropertyDescriptor;pe.f=ne?ue:function(he,oe){if(he=se(he),oe=me(oe),le)try{return ue(he,oe)}catch(Se){}if(ie(he,oe))return re(!z(ae.f,he,oe),he[oe])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(x,ke,pe){var ne=x("../internals/classof-raw"),z=x("../internals/to-indexed-object"),ae=x("../internals/object-get-own-property-names").f,re=x("../internals/array-slice-simple"),se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],me=function(ie){try{return ae(ie)}catch(le){return re(se)}};ke.exports.f=function(le){return se&&ne(le)=="Window"?me(le):ae(z(le))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(x,ke,pe){var ne=x("../internals/object-keys-internal"),z=x("../internals/enum-bug-keys"),ae=z.concat("length","prototype");pe.f=Object.getOwnPropertyNames||function(se){return ne(se,ae)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(x,ke,pe){pe.f=Object.getOwnPropertySymbols},{}],203:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/has-own-property"),ae=x("../internals/is-callable"),re=x("../internals/to-object"),se=x("../internals/shared-key"),me=x("../internals/correct-prototype-getter"),ie=se("IE_PROTO"),le=ne.Object,ue=le.prototype;ke.exports=me?le.getPrototypeOf:function(fe){var he=re(fe);if(z(he,ie))return he[ie];var oe=he.constructor;return ae(oe)&&he instanceof oe?oe.prototype:he instanceof le?ue:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this");ke.exports=ne({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=x("../internals/has-own-property"),ae=x("../internals/to-indexed-object"),re=x("../internals/array-includes").indexOf,se=x("../internals/hidden-keys"),me=ne([].push);ke.exports=function(ie,le){var ue=ae(ie),fe=0,he=[],oe;for(oe in ue)!z(se,oe)&&z(ue,oe)&&me(he,oe);for(;le.length>fe;)z(ue,oe=le[fe++])&&(~re(he,oe)||me(he,oe));return he}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(x,ke,pe){var ne=x("../internals/object-keys-internal"),z=x("../internals/enum-bug-keys");ke.exports=Object.keys||function(re){return ne(re,z)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(x,ke,pe){"use strict";var ne={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,ae=z&&!ne.call({1:2},1);pe.f=ae?function(se){var me=z(this,se);return!!me&&me.enumerable}:ne},{}],208:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=x("../internals/an-object"),ae=x("../internals/a-possible-prototype");ke.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var re=!1,se={},me;try{me=ne(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),me(se,[]),re=se instanceof Array}catch(ie){}return function(le,ue){return z(le),ae(ue),re?me(le,ue):le.__proto__=ue,le}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(x,ke,pe){var ne=x("../internals/descriptors"),z=x("../internals/function-uncurry-this"),ae=x("../internals/object-keys"),re=x("../internals/to-indexed-object"),se=x("../internals/object-property-is-enumerable").f,me=z(se),ie=z([].push),le=function(ue){return function(fe){for(var he=re(fe),oe=ae(he),Se=oe.length,Ce=0,ye=[],_e;Se>Ce;)_e=oe[Ce++],(!ne||me(he,_e))&&ie(ye,ue?[_e,he[_e]]:he[_e]);return ye}};ke.exports={entries:le(!0),values:le(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(x,ke,pe){"use strict";var ne=x("../internals/to-string-tag-support"),z=x("../internals/classof");ke.exports=ne?{}.toString:function(){return"[object "+z(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/function-call"),ae=x("../internals/is-callable"),re=x("../internals/is-object"),se=ne.TypeError;ke.exports=function(me,ie){var le,ue;if(ie==="string"&&ae(le=me.toString)&&!re(ue=z(le,me))||ae(le=me.valueOf)&&!re(ue=z(le,me))||ie!=="string"&&ae(le=me.toString)&&!re(ue=z(le,me)))return ue;throw se("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(x,ke,pe){var ne=x("../internals/get-built-in"),z=x("../internals/function-uncurry-this"),ae=x("../internals/object-get-own-property-names"),re=x("../internals/object-get-own-property-symbols"),se=x("../internals/an-object"),me=z([].concat);ke.exports=ne("Reflect","ownKeys")||function(le){var ue=ae.f(se(le)),fe=re.f;return fe?me(ue,fe(le)):ue}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(x,ke,pe){var ne=x("../internals/global");ke.exports=ne},{"../internals/global":163}],214:[function(x,ke,pe){ke.exports=function(ne){try{return{error:!1,value:ne()}}catch(z){return{error:!0,value:z}}}},{}],215:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/promise-native-constructor"),ae=x("../internals/is-callable"),re=x("../internals/is-forced"),se=x("../internals/inspect-source"),me=x("../internals/well-known-symbol"),ie=x("../internals/engine-is-browser"),le=x("../internals/is-pure"),ue=x("../internals/engine-v8-version"),fe=z&&z.prototype,he=me("species"),oe=!1,Se=ae(ne.PromiseRejectionEvent),Ce=re("Promise",function(){var ye=se(z),_e=ye!==String(z);if(!_e&&ue===66||le&&!(fe.catch&&fe.finally))return!0;if(ue>=51&&/native code/.test(ye))return!1;var Me=new z(function(Ae){Ae(1)}),we=function(Ae){Ae(function(){},function(){})},Ne=Me.constructor={};return Ne[he]=we,oe=Me.then(function(){})instanceof we,oe?!_e&&ie&&!Se:!0});ke.exports={CONSTRUCTOR:Ce,REJECTION_EVENT:Se,SUBCLASSING:oe}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(x,ke,pe){var ne=x("../internals/global");ke.exports=ne.Promise},{"../internals/global":163}],217:[function(x,ke,pe){var ne=x("../internals/an-object"),z=x("../internals/is-object"),ae=x("../internals/new-promise-capability");ke.exports=function(re,se){if(ne(re),z(se)&&se.constructor===re)return se;var me=ae.f(re),ie=me.resolve;return ie(se),me.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(x,ke,pe){var ne=x("../internals/promise-native-constructor"),z=x("../internals/check-correctness-of-iteration"),ae=x("../internals/promise-constructor-detection").CONSTRUCTOR;ke.exports=ae||!z(function(re){ne.all(re).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(x,ke,pe){var ne=x("../internals/object-define-property").f;ke.exports=function(z,ae,re){re in z||ne(z,re,{configurable:!0,get:function(){return ae[re]},set:function(se){ae[re]=se}})}},{"../internals/object-define-property":198}],220:[function(x,ke,pe){var ne=function(){this.head=null,this.tail=null};ne.prototype={add:function(z){var ae={item:z,next:null};this.head?this.tail.next=ae:this.head=ae,this.tail=ae},get:function(){var z=this.head;if(z)return this.head=z.next,this.tail===z&&(this.tail=null),z.item}},ke.exports=ne},{}],221:[function(x,ke,pe){var ne=x("../internals/redefine");ke.exports=function(z,ae,re){for(var se in ae)ne(z,se,ae[se],re);return z}},{"../internals/redefine":222}],222:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/is-callable"),ae=x("../internals/has-own-property"),re=x("../internals/create-non-enumerable-property"),se=x("../internals/set-global"),me=x("../internals/inspect-source"),ie=x("../internals/internal-state"),le=x("../internals/function-name").CONFIGURABLE,ue=ie.get,fe=ie.enforce,he=String(String).split("String");(ke.exports=function(oe,Se,Ce,ye){var _e=ye?!!ye.unsafe:!1,Me=ye?!!ye.enumerable:!1,we=ye?!!ye.noTargetGet:!1,Ne=ye&&ye.name!==void 0?ye.name:Se,Ae;if(z(Ce)&&(String(Ne).slice(0,7)==="Symbol("&&(Ne="["+String(Ne).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ae(Ce,"name")||le&&Ce.name!==Ne)&&re(Ce,"name",Ne),Ae=fe(Ce),Ae.source||(Ae.source=he.join(typeof Ne=="string"?Ne:""))),oe===ne){Me?oe[Se]=Ce:se(Se,Ce);return}else _e?!we&&oe[Se]&&(Me=!0):delete oe[Se];Me?oe[Se]=Ce:re(oe,Se,Ce)})(Function.prototype,"toString",function(){return z(this)&&ue(this).source||me(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/function-call"),ae=x("../internals/an-object"),re=x("../internals/is-callable"),se=x("../internals/classof-raw"),me=x("../internals/regexp-exec"),ie=ne.TypeError;ke.exports=function(le,ue){var fe=le.exec;if(re(fe)){var he=z(fe,le,ue);return he!==null&&ae(he),he}if(se(le)==="RegExp")return z(me,le,ue);throw ie("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(x,ke,pe){"use strict";var ne=x("../internals/function-call"),z=x("../internals/function-uncurry-this"),ae=x("../internals/to-string"),re=x("../internals/regexp-flags"),se=x("../internals/regexp-sticky-helpers"),me=x("../internals/shared"),ie=x("../internals/object-create"),le=x("../internals/internal-state").get,ue=x("../internals/regexp-unsupported-dot-all"),fe=x("../internals/regexp-unsupported-ncg"),he=me("native-string-replace",String.prototype.replace),oe=RegExp.prototype.exec,Se=oe,Ce=z("".charAt),ye=z("".indexOf),_e=z("".replace),Me=z("".slice),we=function(){var Ie=/a/,Pe=/b*/g;return ne(oe,Ie,"a"),ne(oe,Pe,"a"),Ie.lastIndex!==0||Pe.lastIndex!==0}(),Ne=se.BROKEN_CARET,Ae=/()??/.exec("")[1]!==void 0,De=we||Ae||Ne||ue||fe;De&&(Se=function(Pe){var Le=this,We=le(Le),Be=ae(Pe),He=We.raw,Ye,et,st,yt,Ve,Qe,pt;if(He)return He.lastIndex=Le.lastIndex,Ye=ne(Se,He,Be),Le.lastIndex=He.lastIndex,Ye;var mt=We.groups,ft=Ne&&Le.sticky,nt=ne(re,Le),tt=Le.source,rt=0,Et=Be;if(ft&&(nt=_e(nt,"y",""),ye(nt,"g")===-1&&(nt+="g"),Et=Me(Be,Le.lastIndex),Le.lastIndex>0&&(!Le.multiline||Le.multiline&&Ce(Be,Le.lastIndex-1)!==`
|
|
|
`)&&(tt="(?: "+tt+")",Et=" "+Et,rt++),et=new RegExp("^(?:"+tt+")",nt)),Ae&&(et=new RegExp("^"+tt+"$(?!\\s)",nt)),we&&(st=Le.lastIndex),yt=ne(oe,ft?et:Le,Et),ft?yt?(yt.input=Me(yt.input,rt),yt[0]=Me(yt[0],rt),yt.index=Le.lastIndex,Le.lastIndex+=yt[0].length):Le.lastIndex=0:we&&yt&&(Le.lastIndex=Le.global?yt.index+yt[0].length:st),Ae&&yt&&yt.length>1&&ne(he,yt[0],et,function(){for(Ve=1;Ve<arguments.length-2;Ve++)arguments[Ve]===void 0&&(yt[Ve]=void 0)}),yt&&mt)for(yt.groups=Qe=ie(null),Ve=0;Ve<mt.length;Ve++)pt=mt[Ve],Qe[pt[0]]=yt[pt[1]];return yt}),ke.exports=Se},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(x,ke,pe){"use strict";var ne=x("../internals/an-object");ke.exports=function(){var z=ne(this),ae="";return z.hasIndices&&(ae+="d"),z.global&&(ae+="g"),z.ignoreCase&&(ae+="i"),z.multiline&&(ae+="m"),z.dotAll&&(ae+="s"),z.unicode&&(ae+="u"),z.sticky&&(ae+="y"),ae}},{"../internals/an-object":101}],226:[function(x,ke,pe){var ne=x("../internals/function-call"),z=x("../internals/has-own-property"),ae=x("../internals/object-is-prototype-of"),re=x("../internals/regexp-flags"),se=RegExp.prototype;ke.exports=function(me){var ie=me.flags;return ie===void 0&&!("flags"in se)&&!z(me,"flags")&&ae(se,me)?ne(re,me):ie}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(x,ke,pe){var ne=x("../internals/fails"),z=x("../internals/global"),ae=z.RegExp,re=ne(function(){var ie=ae("a","y");return ie.lastIndex=2,ie.exec("abcd")!=null}),se=re||ne(function(){return!ae("a","y").sticky}),me=re||ne(function(){var ie=ae("^r","gy");return ie.lastIndex=2,ie.exec("str")!=null});ke.exports={BROKEN_CARET:me,MISSED_STICKY:se,UNSUPPORTED_Y:re}},{"../internals/fails":150,"../internals/global":163}],228:[function(x,ke,pe){var ne=x("../internals/fails"),z=x("../internals/global"),ae=z.RegExp;ke.exports=ne(function(){var re=ae(".","s");return!(re.dotAll&&re.exec(`
|
|
|
`)&&re.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(x,ke,pe){var ne=x("../internals/fails"),z=x("../internals/global"),ae=z.RegExp;ke.exports=ne(function(){var re=ae("(?<a>b)","g");return re.exec("b").groups.a!=="b"||"b".replace(re,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(x,ke,pe){var ne=x("../internals/global"),z=ne.TypeError;ke.exports=function(ae){if(ae==null)throw z("Can't call method on "+ae);return ae}},{"../internals/global":163}],231:[function(x,ke,pe){ke.exports=Object.is||function(z,ae){return z===ae?z!==0||1/z===1/ae:z!=z&&ae!=ae}},{}],232:[function(x,ke,pe){var ne=x("../internals/global"),z=Object.defineProperty;ke.exports=function(ae,re){try{z(ne,ae,{value:re,configurable:!0,writable:!0})}catch(se){ne[ae]=re}return re}},{"../internals/global":163}],233:[function(x,ke,pe){"use strict";var ne=x("../internals/get-built-in"),z=x("../internals/object-define-property"),ae=x("../internals/well-known-symbol"),re=x("../internals/descriptors"),se=ae("species");ke.exports=function(me){var ie=ne(me),le=z.f;re&&ie&&!ie[se]&&le(ie,se,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(x,ke,pe){var ne=x("../internals/object-define-property").f,z=x("../internals/has-own-property"),ae=x("../internals/well-known-symbol"),re=ae("toStringTag");ke.exports=function(se,me,ie){se&&!ie&&(se=se.prototype),se&&!z(se,re)&&ne(se,re,{configurable:!0,value:me})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(x,ke,pe){var ne=x("../internals/shared"),z=x("../internals/uid"),ae=ne("keys");ke.exports=function(re){return ae[re]||(ae[re]=z(re))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/set-global"),ae="__core-js_shared__",re=ne[ae]||z(ae,{});ke.exports=re},{"../internals/global":163,"../internals/set-global":232}],237:[function(x,ke,pe){var ne=x("../internals/is-pure"),z=x("../internals/shared-store");(ke.exports=function(ae,re){return z[ae]||(z[ae]=re!==void 0?re:{})})("versions",[]).push({version:"3.22.1",mode:ne?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(x,ke,pe){var ne=x("../internals/an-object"),z=x("../internals/a-constructor"),ae=x("../internals/well-known-symbol"),re=ae("species");ke.exports=function(se,me){var ie=ne(se).constructor,le;return ie===void 0||(le=ne(ie)[re])==null?me:z(le)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=x("../internals/to-integer-or-infinity"),ae=x("../internals/to-string"),re=x("../internals/require-object-coercible"),se=ne("".charAt),me=ne("".charCodeAt),ie=ne("".slice),le=function(ue){return function(fe,he){var oe=ae(re(fe)),Se=z(he),Ce=oe.length,ye,_e;return Se<0||Se>=Ce?ue?"":void 0:(ye=me(oe,Se),ye<55296||ye>56319||Se+1===Ce||(_e=me(oe,Se+1))<56320||_e>57343?ue?se(oe,Se):ye:ue?ie(oe,Se,Se+2):(ye-55296<<10)+(_e-56320)+65536)}};ke.exports={codeAt:le(!1),charAt:le(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(x,ke,pe){var ne=x("../internals/function-name").PROPER,z=x("../internals/fails"),ae=x("../internals/whitespaces"),re="\u200B\x85\u180E";ke.exports=function(se){return z(function(){return!!ae[se]()||re[se]()!==re||ne&&ae[se].name!==se})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=x("../internals/require-object-coercible"),ae=x("../internals/to-string"),re=x("../internals/whitespaces"),se=ne("".replace),me="["+re+"]",ie=RegExp("^"+me+me+"*"),le=RegExp(me+me+"*$"),ue=function(fe){return function(he){var oe=ae(z(he));return fe&1&&(oe=se(oe,ie,"")),fe&2&&(oe=se(oe,le,"")),oe}};ke.exports={start:ue(1),end:ue(2),trim:ue(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(x,ke,pe){var ne=x("../internals/function-call"),z=x("../internals/get-built-in"),ae=x("../internals/well-known-symbol"),re=x("../internals/redefine");ke.exports=function(){var se=z("Symbol"),me=se&&se.prototype,ie=me&&me.valueOf,le=ae("toPrimitive");me&&!me[le]&&re(me,le,function(ue){return ne(ie,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/function-apply"),ae=x("../internals/function-bind-context"),re=x("../internals/is-callable"),se=x("../internals/has-own-property"),me=x("../internals/fails"),ie=x("../internals/html"),le=x("../internals/array-slice"),ue=x("../internals/document-create-element"),fe=x("../internals/validate-arguments-length"),he=x("../internals/engine-is-ios"),oe=x("../internals/engine-is-node"),Se=ne.setImmediate,Ce=ne.clearImmediate,ye=ne.process,_e=ne.Dispatch,Me=ne.Function,we=ne.MessageChannel,Ne=ne.String,Ae=0,De={},Ie="onreadystatechange",Pe,Le,We,Be;try{Pe=ne.location}catch(yt){}var He=function(yt){if(se(De,yt)){var Ve=De[yt];delete De[yt],Ve()}},Ye=function(yt){return function(){He(yt)}},et=function(yt){He(yt.data)},st=function(yt){ne.postMessage(Ne(yt),Pe.protocol+"//"+Pe.host)};(!Se||!Ce)&&(Se=function(Ve){fe(arguments.length,1);var Qe=re(Ve)?Ve:Me(Ve),pt=le(arguments,1);return De[++Ae]=function(){z(Qe,void 0,pt)},Le(Ae),Ae},Ce=function(Ve){delete De[Ve]},oe?Le=function(yt){ye.nextTick(Ye(yt))}:_e&&_e.now?Le=function(yt){_e.now(Ye(yt))}:we&&!he?(We=new we,Be=We.port2,We.port1.onmessage=et,Le=ae(Be.postMessage,Be)):ne.addEventListener&&re(ne.postMessage)&&!ne.importScripts&&Pe&&Pe.protocol!=="file:"&&!me(st)?(Le=st,ne.addEventListener("message",et,!1)):Ie in ue("script")?Le=function(yt){ie.appendChild(ue("script"))[Ie]=function(){ie.removeChild(this),He(yt)}}:Le=function(yt){setTimeout(Ye(yt),0)}),ke.exports={set:Se,clear:Ce}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this");ke.exports=ne(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(x,ke,pe){var ne=x("../internals/to-integer-or-infinity"),z=Math.max,ae=Math.min;ke.exports=function(re,se){var me=ne(re);return me<0?z(me+se,0):ae(me,se)}},{"../internals/to-integer-or-infinity":248}],246:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/to-integer-or-infinity"),ae=x("../internals/to-length"),re=ne.RangeError;ke.exports=function(se){if(se===void 0)return 0;var me=z(se),ie=ae(me);if(me!==ie)throw re("Wrong length or index");return ie}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(x,ke,pe){var ne=x("../internals/indexed-object"),z=x("../internals/require-object-coercible");ke.exports=function(ae){return ne(z(ae))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(x,ke,pe){var ne=Math.ceil,z=Math.floor;ke.exports=function(ae){var re=+ae;return re!==re||re===0?0:(re>0?z:ne)(re)}},{}],249:[function(x,ke,pe){var ne=x("../internals/to-integer-or-infinity"),z=Math.min;ke.exports=function(ae){return ae>0?z(ne(ae),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/require-object-coercible"),ae=ne.Object;ke.exports=function(re){return ae(z(re))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/to-positive-integer"),ae=ne.RangeError;ke.exports=function(re,se){var me=z(re);if(me%se)throw ae("Wrong offset");return me}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/to-integer-or-infinity"),ae=ne.RangeError;ke.exports=function(re){var se=z(re);if(se<0)throw ae("The argument can't be less than 0");return se}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/function-call"),ae=x("../internals/is-object"),re=x("../internals/is-symbol"),se=x("../internals/get-method"),me=x("../internals/ordinary-to-primitive"),ie=x("../internals/well-known-symbol"),le=ne.TypeError,ue=ie("toPrimitive");ke.exports=function(fe,he){if(!ae(fe)||re(fe))return fe;var oe=se(fe,ue),Se;if(oe){if(he===void 0&&(he="default"),Se=z(oe,fe,he),!ae(Se)||re(Se))return Se;throw le("Can't convert object to primitive value")}return he===void 0&&(he="number"),me(fe,he)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(x,ke,pe){var ne=x("../internals/to-primitive"),z=x("../internals/is-symbol");ke.exports=function(ae){var re=ne(ae,"string");return z(re)?re:re+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(x,ke,pe){var ne=x("../internals/well-known-symbol"),z=ne("toStringTag"),ae={};ae[z]="z",ke.exports=String(ae)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/classof"),ae=ne.String;ke.exports=function(re){if(z(re)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ae(re)}},{"../internals/classof":124,"../internals/global":163}],257:[function(x,ke,pe){var ne=x("../internals/global"),z=ne.String;ke.exports=function(ae){try{return z(ae)}catch(re){return"Object"}}},{"../internals/global":163}],258:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/global"),ae=x("../internals/function-call"),re=x("../internals/descriptors"),se=x("../internals/typed-array-constructors-require-wrappers"),me=x("../internals/array-buffer-view-core"),ie=x("../internals/array-buffer"),le=x("../internals/an-instance"),ue=x("../internals/create-property-descriptor"),fe=x("../internals/create-non-enumerable-property"),he=x("../internals/is-integral-number"),oe=x("../internals/to-length"),Se=x("../internals/to-index"),Ce=x("../internals/to-offset"),ye=x("../internals/to-property-key"),_e=x("../internals/has-own-property"),Me=x("../internals/classof"),we=x("../internals/is-object"),Ne=x("../internals/is-symbol"),Ae=x("../internals/object-create"),De=x("../internals/object-is-prototype-of"),Ie=x("../internals/object-set-prototype-of"),Pe=x("../internals/object-get-own-property-names").f,Le=x("../internals/typed-array-from"),We=x("../internals/array-iteration").forEach,Be=x("../internals/set-species"),He=x("../internals/object-define-property"),Ye=x("../internals/object-get-own-property-descriptor"),et=x("../internals/internal-state"),st=x("../internals/inherit-if-required"),yt=et.get,Ve=et.set,Qe=He.f,pt=Ye.f,mt=Math.round,ft=z.RangeError,nt=ie.ArrayBuffer,tt=nt.prototype,rt=ie.DataView,Et=me.NATIVE_ARRAY_BUFFER_VIEWS,bt=me.TYPED_ARRAY_CONSTRUCTOR,Pt=me.TYPED_ARRAY_TAG,Lt=me.TypedArray,dt=me.TypedArrayPrototype,Ze=me.aTypedArrayConstructor,Ke=me.isTypedArray,de="BYTES_PER_ELEMENT",xe="Wrong length",ze=function(it,gt){Ze(it);for(var Kt=0,kt=gt.length,St=new it(kt);kt>Kt;)St[Kt]=gt[Kt++];return St},$e=function(it,gt){Qe(it,gt,{get:function(){return yt(this)[gt]}})},Ee=function(it){var gt;return De(tt,it)||(gt=Me(it))=="ArrayBuffer"||gt=="SharedArrayBuffer"},Re=function(it,gt){return Ke(it)&&!Ne(gt)&> in it&&he(+gt)&>>=0},Fe=function(gt,Kt){return Kt=ye(Kt),Re(gt,Kt)?ue(2,gt[Kt]):pt(gt,Kt)},Ge=function(gt,Kt,kt){return Kt=ye(Kt),Re(gt,Kt)&&we(kt)&&_e(kt,"value")&&!_e(kt,"get")&&!_e(kt,"set")&&!kt.configurable&&(!_e(kt,"writable")||kt.writable)&&(!_e(kt,"enumerable")||kt.enumerable)?(gt[Kt]=kt.value,gt):Qe(gt,Kt,kt)};re?(Et||(Ye.f=Fe,He.f=Ge,$e(dt,"buffer"),$e(dt,"byteOffset"),$e(dt,"byteLength"),$e(dt,"length")),ne({target:"Object",stat:!0,forced:!Et},{getOwnPropertyDescriptor:Fe,defineProperty:Ge}),ke.exports=function(it,gt,Kt){var kt=it.match(/\d+$/)[0]/8,St=it+(Kt?"Clamped":"")+"Array",Wt="get"+it,jt="set"+it,Vt=z[St],_t=Vt,sn=_t&&_t.prototype,Dt={},xt=function(fn,Tn){var ar=yt(fn);return ar.view[Wt](Tn*kt+ar.byteOffset,!0)},en=function(fn,Tn,ar){var pr=yt(fn);Kt&&(ar=(ar=mt(ar))<0?0:ar>255?255:ar&255),pr.view[jt](Tn*kt+pr.byteOffset,ar,!0)},an=function(fn,Tn){Qe(fn,Tn,{get:function(){return xt(this,Tn)},set:function(ar){return en(this,Tn,ar)},enumerable:!0})};Et?se&&(_t=gt(function(fn,Tn,ar,pr){return le(fn,sn),st(function(){return we(Tn)?Ee(Tn)?pr!==void 0?new Vt(Tn,Ce(ar,kt),pr):ar!==void 0?new Vt(Tn,Ce(ar,kt)):new Vt(Tn):Ke(Tn)?ze(_t,Tn):ae(Le,_t,Tn):new Vt(Se(Tn))}(),fn,_t)}),Ie&&Ie(_t,Lt),We(Pe(Vt),function(fn){fn in _t||fe(_t,fn,Vt[fn])}),_t.prototype=sn):(_t=gt(function(fn,Tn,ar,pr){le(fn,sn);var Ar=0,Dr=0,dr,zr,ai;if(!we(Tn))ai=Se(Tn),zr=ai*kt,dr=new nt(zr);else if(Ee(Tn)){dr=Tn,Dr=Ce(ar,kt);var ki=Tn.byteLength;if(pr===void 0){if(ki%kt||(zr=ki-Dr,zr<0))throw ft(xe)}else if(zr=oe(pr)*kt,zr+Dr>ki)throw ft(xe);ai=zr/kt}else return Ke(Tn)?ze(_t,Tn):ae(Le,_t,Tn);for(Ve(fn,{buffer:dr,byteOffset:Dr,byteLength:zr,length:ai,view:new rt(dr)});Ar<ai;)an(fn,Ar++)}),Ie&&Ie(_t,Lt),sn=_t.prototype=Ae(dt)),sn.constructor!==_t&&fe(sn,"constructor",_t),fe(sn,bt,_t),Pt&&fe(sn,Pt,St),Dt[St]=_t,ne({global:!0,forced:_t!=Vt,sham:!Et},Dt),de in _t||fe(_t,de,kt),de in sn||fe(sn,de,kt),Be(St)}):ke.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/fails"),ae=x("../internals/check-correctness-of-iteration"),re=x("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,se=ne.ArrayBuffer,me=ne.Int8Array;ke.exports=!re||!z(function(){me(1)})||!z(function(){new me(-1)})||!ae(function(ie){new me,new me(null),new me(1.5),new me(ie)},!0)||z(function(){return new me(new se(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(x,ke,pe){var ne=x("../internals/array-from-constructor-and-list"),z=x("../internals/typed-array-species-constructor");ke.exports=function(ae,re){return ne(z(ae),re)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(x,ke,pe){var ne=x("../internals/function-bind-context"),z=x("../internals/function-call"),ae=x("../internals/a-constructor"),re=x("../internals/to-object"),se=x("../internals/length-of-array-like"),me=x("../internals/get-iterator"),ie=x("../internals/get-iterator-method"),le=x("../internals/is-array-iterator-method"),ue=x("../internals/array-buffer-view-core").aTypedArrayConstructor;ke.exports=function(he){var oe=ae(this),Se=re(he),Ce=arguments.length,ye=Ce>1?arguments[1]:void 0,_e=ye!==void 0,Me=ie(Se),we,Ne,Ae,De,Ie,Pe;if(Me&&!le(Me))for(Ie=me(Se,Me),Pe=Ie.next,Se=[];!(De=z(Pe,Ie)).done;)Se.push(De.value);for(_e&&Ce>2&&(ye=ne(ye,arguments[2])),Ne=se(Se),Ae=new(ue(oe))(Ne),we=0;Ne>we;we++)Ae[we]=_e?ye(Se[we],we):Se[we];return Ae}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(x,ke,pe){var ne=x("../internals/array-buffer-view-core"),z=x("../internals/species-constructor"),ae=ne.TYPED_ARRAY_CONSTRUCTOR,re=ne.aTypedArrayConstructor;ke.exports=function(se){return re(z(se,se[ae]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(x,ke,pe){var ne=x("../internals/function-uncurry-this"),z=0,ae=Math.random(),re=ne(1 .toString);ke.exports=function(se){return"Symbol("+(se===void 0?"":se)+")_"+re(++z+ae,36)}},{"../internals/function-uncurry-this":157}],264:[function(x,ke,pe){var ne=x("../internals/native-symbol");ke.exports=ne&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(x,ke,pe){var ne=x("../internals/descriptors"),z=x("../internals/fails");ke.exports=ne&&z(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(x,ke,pe){var ne=x("../internals/global"),z=ne.TypeError;ke.exports=function(ae,re){if(ae<re)throw z("Not enough arguments");return ae}},{"../internals/global":163}],267:[function(x,ke,pe){var ne=x("../internals/well-known-symbol");pe.f=ne},{"../internals/well-known-symbol":268}],268:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/shared"),ae=x("../internals/has-own-property"),re=x("../internals/uid"),se=x("../internals/native-symbol"),me=x("../internals/use-symbol-as-uid"),ie=z("wks"),le=ne.Symbol,ue=le&&le.for,fe=me?le:le&&le.withoutSetter||re;ke.exports=function(he){if(!ae(ie,he)||!(se||typeof ie[he]=="string")){var oe="Symbol."+he;se&&ae(le,he)?ie[he]=le[he]:me&&ue?ie[he]=ue(oe):ie[he]=fe(oe)}return ie[he]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(x,ke,pe){ke.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/global"),ae=x("../internals/array-buffer"),re=x("../internals/set-species"),se="ArrayBuffer",me=ae[se],ie=z[se];ne({global:!0,forced:ie!==me},{ArrayBuffer:me}),re(se)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/function-uncurry-this"),ae=x("../internals/fails"),re=x("../internals/array-buffer"),se=x("../internals/an-object"),me=x("../internals/to-absolute-index"),ie=x("../internals/to-length"),le=x("../internals/species-constructor"),ue=re.ArrayBuffer,fe=re.DataView,he=fe.prototype,oe=z(ue.prototype.slice),Se=z(he.getUint8),Ce=z(he.setUint8),ye=ae(function(){return!new ue(2).slice(1,void 0).byteLength});ne({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ye},{slice:function(Me,we){if(oe&&we===void 0)return oe(se(this),Me);for(var Ne=se(this).byteLength,Ae=me(Me,Ne),De=me(we===void 0?Ne:we,Ne),Ie=new(le(this,ue))(ie(De-Ae)),Pe=new fe(this),Le=new fe(Ie),We=0;Ae<De;)Ce(Le,We++,Se(Pe,Ae++));return Ie}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/global"),ae=x("../internals/fails"),re=x("../internals/is-array"),se=x("../internals/is-object"),me=x("../internals/to-object"),ie=x("../internals/length-of-array-like"),le=x("../internals/create-property"),ue=x("../internals/array-species-create"),fe=x("../internals/array-method-has-species-support"),he=x("../internals/well-known-symbol"),oe=x("../internals/engine-v8-version"),Se=he("isConcatSpreadable"),Ce=9007199254740991,ye="Maximum allowed index exceeded",_e=z.TypeError,Me=oe>=51||!ae(function(){var De=[];return De[Se]=!1,De.concat()[0]!==De}),we=fe("concat"),Ne=function(De){if(!se(De))return!1;var Ie=De[Se];return Ie!==void 0?!!Ie:re(De)},Ae=!Me||!we;ne({target:"Array",proto:!0,forced:Ae},{concat:function(Ie){var Pe=me(this),Le=ue(Pe,0),We=0,Be,He,Ye,et,st;for(Be=-1,Ye=arguments.length;Be<Ye;Be++)if(st=Be===-1?Pe:arguments[Be],Ne(st)){if(et=ie(st),We+et>Ce)throw _e(ye);for(He=0;He<et;He++,We++)He in st&&le(Le,We,st[He])}else{if(We>=Ce)throw _e(ye);le(Le,We++,st)}return Le.length=We,Le}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(x,ke,pe){var ne=x("../internals/export"),z=x("../internals/array-fill"),ae=x("../internals/add-to-unscopables");ne({target:"Array",proto:!0},{fill:z}),ae("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/array-iteration").filter,ae=x("../internals/array-method-has-species-support"),re=ae("filter");ne({target:"Array",proto:!0,forced:!re},{filter:function(me){return z(this,me,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/array-iteration").find,ae=x("../internals/add-to-unscopables"),re="find",se=!0;re in[]&&Array(1)[re](function(){se=!1}),ne({target:"Array",proto:!0,forced:se},{find:function(ie){return z(this,ie,arguments.length>1?arguments[1]:void 0)}}),ae(re)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(x,ke,pe){var ne=x("../internals/export"),z=x("../internals/array-from"),ae=x("../internals/check-correctness-of-iteration"),re=!ae(function(se){Array.from(se)});ne({target:"Array",stat:!0,forced:re},{from:z})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/array-includes").includes,ae=x("../internals/add-to-unscopables");ne({target:"Array",proto:!0},{includes:function(se){return z(this,se,arguments.length>1?arguments[1]:void 0)}}),ae("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(x,ke,pe){"use strict";var ne=x("../internals/to-indexed-object"),z=x("../internals/add-to-unscopables"),ae=x("../internals/iterators"),re=x("../internals/internal-state"),se=x("../internals/object-define-property").f,me=x("../internals/define-iterator"),ie=x("../internals/is-pure"),le=x("../internals/descriptors"),ue="Array Iterator",fe=re.set,he=re.getterFor(ue);ke.exports=me(Array,"Array",function(Se,Ce){fe(this,{type:ue,target:ne(Se),index:0,kind:Ce})},function(){var Se=he(this),Ce=Se.target,ye=Se.kind,_e=Se.index++;return!Ce||_e>=Ce.length?(Se.target=void 0,{value:void 0,done:!0}):ye=="keys"?{value:_e,done:!1}:ye=="values"?{value:Ce[_e],done:!1}:{value:[_e,Ce[_e]],done:!1}},"values");var oe=ae.Arguments=ae.Array;if(z("keys"),z("values"),z("entries"),!ie&&le&&oe.name!=="values")try{se(oe,"name",{value:"values"})}catch(Se){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/function-uncurry-this"),ae=x("../internals/indexed-object"),re=x("../internals/to-indexed-object"),se=x("../internals/array-method-is-strict"),me=z([].join),ie=ae!=Object,le=se("join",",");ne({target:"Array",proto:!0,forced:ie||!le},{join:function(fe){return me(re(this),fe===void 0?",":fe)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/array-iteration").map,ae=x("../internals/array-method-has-species-support"),re=ae("map");ne({target:"Array",proto:!0,forced:!re},{map:function(me){return z(this,me,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/global"),ae=x("../internals/is-array"),re=x("../internals/is-constructor"),se=x("../internals/is-object"),me=x("../internals/to-absolute-index"),ie=x("../internals/length-of-array-like"),le=x("../internals/to-indexed-object"),ue=x("../internals/create-property"),fe=x("../internals/well-known-symbol"),he=x("../internals/array-method-has-species-support"),oe=x("../internals/array-slice"),Se=he("slice"),Ce=fe("species"),ye=z.Array,_e=Math.max;ne({target:"Array",proto:!0,forced:!Se},{slice:function(we,Ne){var Ae=le(this),De=ie(Ae),Ie=me(we,De),Pe=me(Ne===void 0?De:Ne,De),Le,We,Be;if(ae(Ae)&&(Le=Ae.constructor,re(Le)&&(Le===ye||ae(Le.prototype))?Le=void 0:se(Le)&&(Le=Le[Ce],Le===null&&(Le=void 0)),Le===ye||Le===void 0))return oe(Ae,Ie,Pe);for(We=new(Le===void 0?ye:Le)(_e(Pe-Ie,0)),Be=0;Ie<Pe;Ie++,Be++)Ie in Ae&&ue(We,Be,Ae[Ie]);return We.length=Be,We}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/function-uncurry-this"),ae=x("../internals/a-callable"),re=x("../internals/to-object"),se=x("../internals/length-of-array-like"),me=x("../internals/to-string"),ie=x("../internals/fails"),le=x("../internals/array-sort"),ue=x("../internals/array-method-is-strict"),fe=x("../internals/engine-ff-version"),he=x("../internals/engine-is-ie-or-edge"),oe=x("../internals/engine-v8-version"),Se=x("../internals/engine-webkit-version"),Ce=[],ye=z(Ce.sort),_e=z(Ce.push),Me=ie(function(){Ce.sort(void 0)}),we=ie(function(){Ce.sort(null)}),Ne=ue("sort"),Ae=!ie(function(){if(oe)return oe<70;if(!(fe&&fe>3)){if(he)return!0;if(Se)return Se<603;var Pe="",Le,We,Be,He;for(Le=65;Le<76;Le++){switch(We=String.fromCharCode(Le),Le){case 66:case 69:case 70:case 72:Be=3;break;case 68:case 71:Be=4;break;default:Be=2}for(He=0;He<47;He++)Ce.push({k:We+He,v:Be})}for(Ce.sort(function(Ye,et){return et.v-Ye.v}),He=0;He<Ce.length;He++)We=Ce[He].k.charAt(0),Pe.charAt(Pe.length-1)!==We&&(Pe+=We);return Pe!=="DGBEFHACIJK"}}),De=Me||!we||!Ne||!Ae,Ie=function(Pe){return function(Le,We){return We===void 0?-1:Le===void 0?1:Pe!==void 0?+Pe(Le,We)||0:me(Le)>me(We)?1:-1}};ne({target:"Array",proto:!0,forced:De},{sort:function(Le){Le!==void 0&&ae(Le);var We=re(this);if(Ae)return Le===void 0?ye(We):ye(We,Le);var Be=[],He=se(We),Ye,et;for(et=0;et<He;et++)et in We&&_e(Be,We[et]);for(le(Be,Ie(Le)),Ye=Be.length,et=0;et<Ye;)We[et]=Be[et++];for(;et<He;)delete We[et++];return We}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/global"),ae=x("../internals/to-absolute-index"),re=x("../internals/to-integer-or-infinity"),se=x("../internals/length-of-array-like"),me=x("../internals/to-object"),ie=x("../internals/array-species-create"),le=x("../internals/create-property"),ue=x("../internals/array-method-has-species-support"),fe=ue("splice"),he=z.TypeError,oe=Math.max,Se=Math.min,Ce=9007199254740991,ye="Maximum allowed length exceeded";ne({target:"Array",proto:!0,forced:!fe},{splice:function(Me,we){var Ne=me(this),Ae=se(Ne),De=ae(Me,Ae),Ie=arguments.length,Pe,Le,We,Be,He,Ye;if(Ie===0?Pe=Le=0:Ie===1?(Pe=0,Le=Ae-De):(Pe=Ie-2,Le=Se(oe(re(we),0),Ae-De)),Ae+Pe-Le>Ce)throw he(ye);for(We=ie(Ne,Le),Be=0;Be<Le;Be++)He=De+Be,He in Ne&&le(We,Be,Ne[He]);if(We.length=Le,Pe<Le){for(Be=De;Be<Ae-Le;Be++)He=Be+Le,Ye=Be+Pe,He in Ne?Ne[Ye]=Ne[He]:delete Ne[Ye];for(Be=Ae;Be>Ae-Le+Pe;Be--)delete Ne[Be-1]}else if(Pe>Le)for(Be=Ae-Le;Be>De;Be--)He=Be+Le-1,Ye=Be+Pe-1,He in Ne?Ne[Ye]=Ne[He]:delete Ne[Ye];for(Be=0;Be<Pe;Be++)Ne[Be+De]=arguments[Be+2];return Ne.length=Ae-Le+Pe,We}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(x,ke,pe){var ne=x("../internals/descriptors"),z=x("../internals/function-name").EXISTS,ae=x("../internals/function-uncurry-this"),re=x("../internals/object-define-property").f,se=Function.prototype,me=ae(se.toString),ie=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,le=ae(ie.exec),ue="name";ne&&!z&&re(se,ue,{configurable:!0,get:function(){try{return le(ie,me(this))[1]}catch(fe){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(x,ke,pe){var ne=x("../internals/export"),z=x("../internals/get-built-in"),ae=x("../internals/function-apply"),re=x("../internals/function-call"),se=x("../internals/function-uncurry-this"),me=x("../internals/fails"),ie=x("../internals/is-array"),le=x("../internals/is-callable"),ue=x("../internals/is-object"),fe=x("../internals/is-symbol"),he=x("../internals/array-slice"),oe=x("../internals/native-symbol"),Se=z("JSON","stringify"),Ce=se(/./.exec),ye=se("".charAt),_e=se("".charCodeAt),Me=se("".replace),we=se(1 .toString),Ne=/[\uD800-\uDFFF]/g,Ae=/^[\uD800-\uDBFF]$/,De=/^[\uDC00-\uDFFF]$/,Ie=!oe||me(function(){var Be=z("Symbol")();return Se([Be])!="[null]"||Se({a:Be})!="{}"||Se(Object(Be))!="{}"}),Pe=me(function(){return Se("\uDF06\uD834")!=='"\\udf06\\ud834"'||Se("\uDEAD")!=='"\\udead"'}),Le=function(Be,He){var Ye=he(arguments),et=He;if(!(!ue(He)&&Be===void 0||fe(Be)))return ie(He)||(He=function(st,yt){if(le(et)&&(yt=re(et,this,st,yt)),!fe(yt))return yt}),Ye[1]=He,ae(Se,null,Ye)},We=function(Be,He,Ye){var et=ye(Ye,He-1),st=ye(Ye,He+1);return Ce(Ae,Be)&&!Ce(De,st)||Ce(De,Be)&&!Ce(Ae,et)?"\\u"+we(_e(Be,0),16):Be};Se&&ne({target:"JSON",stat:!0,forced:Ie||Pe},{stringify:function(He,Ye,et){var st=he(arguments),yt=ae(Ie?Le:Se,null,st);return Pe&&typeof yt=="string"?Me(yt,Ne,We):yt}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(x,ke,pe){"use strict";var ne=x("../internals/descriptors"),z=x("../internals/global"),ae=x("../internals/function-uncurry-this"),re=x("../internals/is-forced"),se=x("../internals/redefine"),me=x("../internals/has-own-property"),ie=x("../internals/inherit-if-required"),le=x("../internals/object-is-prototype-of"),ue=x("../internals/is-symbol"),fe=x("../internals/to-primitive"),he=x("../internals/fails"),oe=x("../internals/object-get-own-property-names").f,Se=x("../internals/object-get-own-property-descriptor").f,Ce=x("../internals/object-define-property").f,ye=x("../internals/this-number-value"),_e=x("../internals/string-trim").trim,Me="Number",we=z[Me],Ne=we.prototype,Ae=z.TypeError,De=ae("".slice),Ie=ae("".charCodeAt),Pe=function(et){var st=fe(et,"number");return typeof st=="bigint"?st:Le(st)},Le=function(et){var st=fe(et,"number"),yt,Ve,Qe,pt,mt,ft,nt,tt;if(ue(st))throw Ae("Cannot convert a Symbol value to a number");if(typeof st=="string"&&st.length>2){if(st=_e(st),yt=Ie(st,0),yt===43||yt===45){if(Ve=Ie(st,2),Ve===88||Ve===120)return NaN}else if(yt===48){switch(Ie(st,1)){case 66:case 98:Qe=2,pt=49;break;case 79:case 111:Qe=8,pt=55;break;default:return+st}for(mt=De(st,2),ft=mt.length,nt=0;nt<ft;nt++)if(tt=Ie(mt,nt),tt<48||tt>pt)return NaN;return parseInt(mt,Qe)}}return+st};if(re(Me,!we(" 0o1")||!we("0b1")||we("+0x1"))){for(var We=function(st){var yt=arguments.length<1?0:we(Pe(st)),Ve=this;return le(Ne,Ve)&&he(function(){ye(Ve)})?ie(Object(yt),Ve,We):yt},Be=ne?oe(we):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),He=0,Ye;Be.length>He;He++)me(we,Ye=Be[He])&&!me(We,Ye)&&Ce(We,Ye,Se(we,Ye));We.prototype=Ne,Ne.constructor=We,se(z,Me,We)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(x,ke,pe){var ne=x("../internals/export"),z=x("../internals/object-assign");ne({target:"Object",stat:!0,forced:Object.assign!==z},{assign:z})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(x,ke,pe){var ne=x("../internals/export"),z=x("../internals/object-to-array").entries;ne({target:"Object",stat:!0},{entries:function(re){return z(re)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(x,ke,pe){var ne=x("../internals/export"),z=x("../internals/native-symbol"),ae=x("../internals/fails"),re=x("../internals/object-get-own-property-symbols"),se=x("../internals/to-object"),me=!z||ae(function(){re.f(1)});ne({target:"Object",stat:!0,forced:me},{getOwnPropertySymbols:function(le){var ue=re.f;return ue?ue(se(le)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(x,ke,pe){var ne=x("../internals/export"),z=x("../internals/to-object"),ae=x("../internals/object-keys"),re=x("../internals/fails"),se=re(function(){ae(1)});ne({target:"Object",stat:!0,forced:se},{keys:function(ie){return ae(z(ie))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(x,ke,pe){var ne=x("../internals/to-string-tag-support"),z=x("../internals/redefine"),ae=x("../internals/object-to-string");ne||z(Object.prototype,"toString",ae,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/function-call"),ae=x("../internals/a-callable"),re=x("../internals/new-promise-capability"),se=x("../internals/perform"),me=x("../internals/iterate"),ie=x("../internals/promise-statics-incorrect-iteration");ne({target:"Promise",stat:!0,forced:ie},{all:function(ue){var fe=this,he=re.f(fe),oe=he.resolve,Se=he.reject,Ce=se(function(){var ye=ae(fe.resolve),_e=[],Me=0,we=1;me(ue,function(Ne){var Ae=Me++,De=!1;we++,z(ye,fe,Ne).then(function(Ie){De||(De=!0,_e[Ae]=Ie,--we||oe(_e))},Se)}),--we||oe(_e)});return Ce.error&&Se(Ce.value),he.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/is-pure"),ae=x("../internals/promise-constructor-detection").CONSTRUCTOR,re=x("../internals/promise-native-constructor"),se=x("../internals/get-built-in"),me=x("../internals/is-callable"),ie=x("../internals/redefine"),le=re&&re.prototype;if(ne({target:"Promise",proto:!0,forced:ae,real:!0},{catch:function(fe){return this.then(void 0,fe)}}),!z&&me(re)){var ue=se("Promise").prototype.catch;le.catch!==ue&&ie(le,"catch",ue,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/is-pure"),ae=x("../internals/engine-is-node"),re=x("../internals/global"),se=x("../internals/function-call"),me=x("../internals/redefine"),ie=x("../internals/redefine-all"),le=x("../internals/object-set-prototype-of"),ue=x("../internals/set-to-string-tag"),fe=x("../internals/set-species"),he=x("../internals/a-callable"),oe=x("../internals/is-callable"),Se=x("../internals/is-object"),Ce=x("../internals/an-instance"),ye=x("../internals/species-constructor"),_e=x("../internals/task").set,Me=x("../internals/microtask"),we=x("../internals/host-report-errors"),Ne=x("../internals/perform"),Ae=x("../internals/queue"),De=x("../internals/internal-state"),Ie=x("../internals/promise-native-constructor"),Pe=x("../internals/promise-constructor-detection"),Le=x("../internals/new-promise-capability"),We="Promise",Be=Pe.CONSTRUCTOR,He=Pe.REJECTION_EVENT,Ye=Pe.SUBCLASSING,et=De.getterFor(We),st=De.set,yt=Ie&&Ie.prototype,Ve=Ie,Qe=yt,pt=re.TypeError,mt=re.document,ft=re.process,nt=Le.f,tt=nt,rt=!!(mt&&mt.createEvent&&re.dispatchEvent),Et="unhandledrejection",bt="rejectionhandled",Pt=0,Lt=1,dt=2,Ze=1,Ke=2,de,xe,ze,$e,Ee=function(jt){var Vt;return Se(jt)&&oe(Vt=jt.then)?Vt:!1},Re=function(jt,Vt){var _t=Vt.value,sn=Vt.state==Lt,Dt=sn?jt.ok:jt.fail,xt=jt.resolve,en=jt.reject,an=jt.domain,fn,Tn,ar;try{Dt?(sn||(Vt.rejection===Ke&&Kt(Vt),Vt.rejection=Ze),Dt===!0?fn=_t:(an&&an.enter(),fn=Dt(_t),an&&(an.exit(),ar=!0)),fn===jt.promise?en(pt("Promise-chain cycle")):(Tn=Ee(fn))?se(Tn,fn,xt,en):xt(fn)):en(_t)}catch(pr){an&&!ar&&an.exit(),en(pr)}},Fe=function(jt,Vt){jt.notified||(jt.notified=!0,Me(function(){for(var _t=jt.reactions,sn;sn=_t.get();)Re(sn,jt);jt.notified=!1,Vt&&!jt.rejection&&it(jt)}))},Ge=function(jt,Vt,_t){var sn,Dt;rt?(sn=mt.createEvent("Event"),sn.promise=Vt,sn.reason=_t,sn.initEvent(jt,!1,!0),re.dispatchEvent(sn)):sn={promise:Vt,reason:_t},!He&&(Dt=re["on"+jt])?Dt(sn):jt===Et&&we("Unhandled promise rejection",_t)},it=function(jt){se(_e,re,function(){var Vt=jt.facade,_t=jt.value,sn=gt(jt),Dt;if(sn&&(Dt=Ne(function(){ae?ft.emit("unhandledRejection",_t,Vt):Ge(Et,Vt,_t)}),jt.rejection=ae||gt(jt)?Ke:Ze,Dt.error))throw Dt.value})},gt=function(jt){return jt.rejection!==Ze&&!jt.parent},Kt=function(jt){se(_e,re,function(){var Vt=jt.facade;ae?ft.emit("rejectionHandled",Vt):Ge(bt,Vt,jt.value)})},kt=function(jt,Vt,_t){return function(sn){jt(Vt,sn,_t)}},St=function(jt,Vt,_t){jt.done||(jt.done=!0,_t&&(jt=_t),jt.value=Vt,jt.state=dt,Fe(jt,!0))},Wt=function(jt,Vt,_t){if(!jt.done){jt.done=!0,_t&&(jt=_t);try{if(jt.facade===Vt)throw pt("Promise can't be resolved itself");var sn=Ee(Vt);sn?Me(function(){var Dt={done:!1};try{se(sn,Vt,kt(Wt,Dt,jt),kt(St,Dt,jt))}catch(xt){St(Dt,xt,jt)}}):(jt.value=Vt,jt.state=Lt,Fe(jt,!1))}catch(Dt){St({done:!1},Dt,jt)}}};if(Be&&(Ve=function(Vt){Ce(this,Qe),he(Vt),se(de,this);var _t=et(this);try{Vt(kt(Wt,_t),kt(St,_t))}catch(sn){St(_t,sn)}},Qe=Ve.prototype,de=function(Vt){st(this,{type:We,done:!1,notified:!1,parent:!1,reactions:new Ae,rejection:!1,state:Pt,value:void 0})},de.prototype=ie(Qe,{then:function(Vt,_t){var sn=et(this),Dt=nt(ye(this,Ve));return sn.parent=!0,Dt.ok=oe(Vt)?Vt:!0,Dt.fail=oe(_t)&&_t,Dt.domain=ae?ft.domain:void 0,sn.state==Pt?sn.reactions.add(Dt):Me(function(){Re(Dt,sn)}),Dt.promise}}),xe=function(){var jt=new de,Vt=et(jt);this.promise=jt,this.resolve=kt(Wt,Vt),this.reject=kt(St,Vt)},Le.f=nt=function(jt){return jt===Ve||jt===ze?new xe(jt):tt(jt)},!z&&oe(Ie)&&yt!==Object.prototype)){$e=yt.then,Ye||me(yt,"then",function(Vt,_t){var sn=this;return new Ve(function(Dt,xt){se($e,sn,Dt,xt)}).then(Vt,_t)},{unsafe:!0});try{delete yt.constructor}catch(jt){}le&&le(yt,Qe)}ne({global:!0,wrap:!0,forced:Be},{Promise:Ve}),ue(Ve,We,!1,!0),fe(We)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(x,ke,pe){x("../modules/es.promise.constructor"),x("../modules/es.promise.all"),x("../modules/es.promise.catch"),x("../modules/es.promise.race"),x("../modules/es.promise.reject"),x("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/function-call"),ae=x("../internals/a-callable"),re=x("../internals/new-promise-capability"),se=x("../internals/perform"),me=x("../internals/iterate"),ie=x("../internals/promise-statics-incorrect-iteration");ne({target:"Promise",stat:!0,forced:ie},{race:function(ue){var fe=this,he=re.f(fe),oe=he.reject,Se=se(function(){var Ce=ae(fe.resolve);me(ue,function(ye){z(Ce,fe,ye).then(he.resolve,oe)})});return Se.error&&oe(Se.value),he.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/function-call"),ae=x("../internals/new-promise-capability"),re=x("../internals/promise-constructor-detection").CONSTRUCTOR;ne({target:"Promise",stat:!0,forced:re},{reject:function(me){var ie=ae.f(this);return z(ie.reject,void 0,me),ie.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/get-built-in"),ae=x("../internals/is-pure"),re=x("../internals/promise-native-constructor"),se=x("../internals/promise-constructor-detection").CONSTRUCTOR,me=x("../internals/promise-resolve"),ie=z("Promise"),le=ae&&!se;ne({target:"Promise",stat:!0,forced:ae||se},{resolve:function(fe){return me(le&&this===ie?re:this,fe)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(x,ke,pe){var ne=x("../internals/descriptors"),z=x("../internals/global"),ae=x("../internals/function-uncurry-this"),re=x("../internals/is-forced"),se=x("../internals/inherit-if-required"),me=x("../internals/create-non-enumerable-property"),ie=x("../internals/object-get-own-property-names").f,le=x("../internals/object-is-prototype-of"),ue=x("../internals/is-regexp"),fe=x("../internals/to-string"),he=x("../internals/regexp-get-flags"),oe=x("../internals/regexp-sticky-helpers"),Se=x("../internals/proxy-accessor"),Ce=x("../internals/redefine"),ye=x("../internals/fails"),_e=x("../internals/has-own-property"),Me=x("../internals/internal-state").enforce,we=x("../internals/set-species"),Ne=x("../internals/well-known-symbol"),Ae=x("../internals/regexp-unsupported-dot-all"),De=x("../internals/regexp-unsupported-ncg"),Ie=Ne("match"),Pe=z.RegExp,Le=Pe.prototype,We=z.SyntaxError,Be=ae(Le.exec),He=ae("".charAt),Ye=ae("".replace),et=ae("".indexOf),st=ae("".slice),yt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ve=/a/g,Qe=/a/g,pt=new Pe(Ve)!==Ve,mt=oe.MISSED_STICKY,ft=oe.UNSUPPORTED_Y,nt=ne&&(!pt||mt||Ae||De||ye(function(){return Qe[Ie]=!1,Pe(Ve)!=Ve||Pe(Qe)==Qe||Pe(Ve,"i")!="/a/i"})),tt=function(Lt){for(var dt=Lt.length,Ze=0,Ke="",de=!1,xe;Ze<=dt;Ze++){if(xe=He(Lt,Ze),xe==="\\"){Ke+=xe+He(Lt,++Ze);continue}!de&&xe==="."?Ke+="[\\s\\S]":(xe==="["?de=!0:xe==="]"&&(de=!1),Ke+=xe)}return Ke},rt=function(Lt){for(var dt=Lt.length,Ze=0,Ke="",de=[],xe={},ze=!1,$e=!1,Ee=0,Re="",Fe;Ze<=dt;Ze++){if(Fe=He(Lt,Ze),Fe==="\\")Fe=Fe+He(Lt,++Ze);else if(Fe==="]")ze=!1;else if(!ze)switch(!0){case Fe==="[":ze=!0;break;case Fe==="(":Be(yt,st(Lt,Ze+1))&&(Ze+=2,$e=!0),Ke+=Fe,Ee++;continue;case(Fe===">"&&$e):if(Re===""||_e(xe,Re))throw new We("Invalid capture group name");xe[Re]=!0,de[de.length]=[Re,Ee],$e=!1,Re="";continue}$e?Re+=Fe:Ke+=Fe}return[Ke,de]};if(re("RegExp",nt)){for(var Et=function(dt,Ze){var Ke=le(Le,this),de=ue(dt),xe=Ze===void 0,ze=[],$e=dt,Ee,Re,Fe,Ge,it,gt;if(!Ke&&de&&xe&&dt.constructor===Et)return dt;if((de||le(Le,dt))&&(dt=dt.source,xe&&(Ze=he($e))),dt=dt===void 0?"":fe(dt),Ze=Ze===void 0?"":fe(Ze),$e=dt,Ae&&"dotAll"in Ve&&(Re=!!Ze&&et(Ze,"s")>-1,Re&&(Ze=Ye(Ze,/s/g,""))),Ee=Ze,mt&&"sticky"in Ve&&(Fe=!!Ze&&et(Ze,"y")>-1,Fe&&ft&&(Ze=Ye(Ze,/y/g,""))),De&&(Ge=rt(dt),dt=Ge[0],ze=Ge[1]),it=se(Pe(dt,Ze),Ke?this:Le,Et),(Re||Fe||ze.length)&&(gt=Me(it),Re&&(gt.dotAll=!0,gt.raw=Et(tt(dt),Ee)),Fe&&(gt.sticky=!0),ze.length&&(gt.groups=ze)),dt!==$e)try{me(it,"source",$e===""?"(?:)":$e)}catch(Kt){}return it},bt=ie(Pe),Pt=0;bt.length>Pt;)Se(Et,Pe,bt[Pt++]);Le.constructor=Et,Et.prototype=Le,Ce(z,"RegExp",Et)}we("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/regexp-exec");ne({target:"RegExp",proto:!0,forced:/./.exec!==z},{exec:z})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(x,ke,pe){"use strict";var ne=x("../internals/function-name").PROPER,z=x("../internals/redefine"),ae=x("../internals/an-object"),re=x("../internals/to-string"),se=x("../internals/fails"),me=x("../internals/regexp-get-flags"),ie="toString",le=RegExp.prototype,ue=le[ie],fe=se(function(){return ue.call({source:"a",flags:"b"})!="/a/b"}),he=ne&&ue.name!=ie;(fe||he)&&z(RegExp.prototype,ie,function(){var Se=ae(this),Ce=re(Se.source),ye=re(me(Se));return"/"+Ce+"/"+ye},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/function-uncurry-this"),ae=x("../internals/not-a-regexp"),re=x("../internals/require-object-coercible"),se=x("../internals/to-string"),me=x("../internals/correct-is-regexp-logic"),ie=z("".indexOf);ne({target:"String",proto:!0,forced:!me("includes")},{includes:function(ue){return!!~ie(se(re(this)),se(ae(ue)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(x,ke,pe){"use strict";var ne=x("../internals/string-multibyte").charAt,z=x("../internals/to-string"),ae=x("../internals/internal-state"),re=x("../internals/define-iterator"),se="String Iterator",me=ae.set,ie=ae.getterFor(se);re(String,"String",function(le){me(this,{type:se,string:z(le),index:0})},function(){var ue=ie(this),fe=ue.string,he=ue.index,oe;return he>=fe.length?{value:void 0,done:!0}:(oe=ne(fe,he),ue.index+=oe.length,{value:oe,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(x,ke,pe){"use strict";var ne=x("../internals/function-call"),z=x("../internals/fix-regexp-well-known-symbol-logic"),ae=x("../internals/an-object"),re=x("../internals/to-length"),se=x("../internals/to-string"),me=x("../internals/require-object-coercible"),ie=x("../internals/get-method"),le=x("../internals/advance-string-index"),ue=x("../internals/regexp-exec-abstract");z("match",function(fe,he,oe){return[function(Ce){var ye=me(this),_e=Ce==null?void 0:ie(Ce,fe);return _e?ne(_e,Ce,ye):new RegExp(Ce)[fe](se(ye))},function(Se){var Ce=ae(this),ye=se(Se),_e=oe(he,Ce,ye);if(_e.done)return _e.value;if(!Ce.global)return ue(Ce,ye);var Me=Ce.unicode;Ce.lastIndex=0;for(var we=[],Ne=0,Ae;(Ae=ue(Ce,ye))!==null;){var De=se(Ae[0]);we[Ne]=De,De===""&&(Ce.lastIndex=le(ye,re(Ce.lastIndex),Me)),Ne++}return Ne===0?null:we}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(x,ke,pe){"use strict";var ne=x("../internals/function-apply"),z=x("../internals/function-call"),ae=x("../internals/function-uncurry-this"),re=x("../internals/fix-regexp-well-known-symbol-logic"),se=x("../internals/fails"),me=x("../internals/an-object"),ie=x("../internals/is-callable"),le=x("../internals/to-integer-or-infinity"),ue=x("../internals/to-length"),fe=x("../internals/to-string"),he=x("../internals/require-object-coercible"),oe=x("../internals/advance-string-index"),Se=x("../internals/get-method"),Ce=x("../internals/get-substitution"),ye=x("../internals/regexp-exec-abstract"),_e=x("../internals/well-known-symbol"),Me=_e("replace"),we=Math.max,Ne=Math.min,Ae=ae([].concat),De=ae([].push),Ie=ae("".indexOf),Pe=ae("".slice),Le=function(Ye){return Ye===void 0?Ye:String(Ye)},We=function(){return"a".replace(/./,"$0")==="$0"}(),Be=function(){return/./[Me]?/./[Me]("a","$0")==="":!1}(),He=!se(function(){var Ye=/./;return Ye.exec=function(){var et=[];return et.groups={a:"7"},et},"".replace(Ye,"$<a>")!=="7"});re("replace",function(Ye,et,st){var yt=Be?"$":"$0";return[function(Qe,pt){var mt=he(this),ft=Qe==null?void 0:Se(Qe,Me);return ft?z(ft,Qe,mt,pt):z(et,fe(mt),Qe,pt)},function(Ve,Qe){var pt=me(this),mt=fe(Ve);if(typeof Qe=="string"&&Ie(Qe,yt)===-1&&Ie(Qe,"$<")===-1){var ft=st(et,pt,mt,Qe);if(ft.done)return ft.value}var nt=ie(Qe);nt||(Qe=fe(Qe));var tt=pt.global;if(tt){var rt=pt.unicode;pt.lastIndex=0}for(var Et=[];;){var bt=ye(pt,mt);if(bt===null||(De(Et,bt),!tt))break;var Pt=fe(bt[0]);Pt===""&&(pt.lastIndex=oe(mt,ue(pt.lastIndex),rt))}for(var Lt="",dt=0,Ze=0;Ze<Et.length;Ze++){bt=Et[Ze];for(var Ke=fe(bt[0]),de=we(Ne(le(bt.index),mt.length),0),xe=[],ze=1;ze<bt.length;ze++)De(xe,Le(bt[ze]));var $e=bt.groups;if(nt){var Ee=Ae([Ke],xe,de,mt);$e!==void 0&&De(Ee,$e);var Re=fe(ne(Qe,void 0,Ee))}else Re=Ce(Ke,mt,de,xe,$e,Qe);de>=dt&&(Lt+=Pe(mt,dt,de)+Re,dt=de+Ke.length)}return Lt+Pe(mt,dt)}]},!He||!We||Be)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(x,ke,pe){"use strict";var ne=x("../internals/function-call"),z=x("../internals/fix-regexp-well-known-symbol-logic"),ae=x("../internals/an-object"),re=x("../internals/require-object-coercible"),se=x("../internals/same-value"),me=x("../internals/to-string"),ie=x("../internals/get-method"),le=x("../internals/regexp-exec-abstract");z("search",function(ue,fe,he){return[function(Se){var Ce=re(this),ye=Se==null?void 0:ie(Se,ue);return ye?ne(ye,Se,Ce):new RegExp(Se)[ue](me(Ce))},function(oe){var Se=ae(this),Ce=me(oe),ye=he(fe,Se,Ce);if(ye.done)return ye.value;var _e=Se.lastIndex;se(_e,0)||(Se.lastIndex=0);var Me=le(Se,Ce);return se(Se.lastIndex,_e)||(Se.lastIndex=_e),Me===null?-1:Me.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(x,ke,pe){"use strict";var ne=x("../internals/function-apply"),z=x("../internals/function-call"),ae=x("../internals/function-uncurry-this"),re=x("../internals/fix-regexp-well-known-symbol-logic"),se=x("../internals/is-regexp"),me=x("../internals/an-object"),ie=x("../internals/require-object-coercible"),le=x("../internals/species-constructor"),ue=x("../internals/advance-string-index"),fe=x("../internals/to-length"),he=x("../internals/to-string"),oe=x("../internals/get-method"),Se=x("../internals/array-slice-simple"),Ce=x("../internals/regexp-exec-abstract"),ye=x("../internals/regexp-exec"),_e=x("../internals/regexp-sticky-helpers"),Me=x("../internals/fails"),we=_e.UNSUPPORTED_Y,Ne=4294967295,Ae=Math.min,De=[].push,Ie=ae(/./.exec),Pe=ae(De),Le=ae("".slice),We=!Me(function(){var Be=/(?:)/,He=Be.exec;Be.exec=function(){return He.apply(this,arguments)};var Ye="ab".split(Be);return Ye.length!==2||Ye[0]!=="a"||Ye[1]!=="b"});re("split",function(Be,He,Ye){var et;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?et=function(st,yt){var Ve=he(ie(this)),Qe=yt===void 0?Ne:yt>>>0;if(Qe===0)return[];if(st===void 0)return[Ve];if(!se(st))return z(He,Ve,st,Qe);for(var pt=[],mt=(st.ignoreCase?"i":"")+(st.multiline?"m":"")+(st.unicode?"u":"")+(st.sticky?"y":""),ft=0,nt=new RegExp(st.source,mt+"g"),tt,rt,Et;(tt=z(ye,nt,Ve))&&(rt=nt.lastIndex,!(rt>ft&&(Pe(pt,Le(Ve,ft,tt.index)),tt.length>1&&tt.index<Ve.length&&ne(De,pt,Se(tt,1)),Et=tt[0].length,ft=rt,pt.length>=Qe)));)nt.lastIndex===tt.index&&nt.lastIndex++;return ft===Ve.length?(Et||!Ie(nt,""))&&Pe(pt,""):Pe(pt,Le(Ve,ft)),pt.length>Qe?Se(pt,0,Qe):pt}:"0".split(void 0,0).length?et=function(st,yt){return st===void 0&&yt===0?[]:z(He,this,st,yt)}:et=He,[function(yt,Ve){var Qe=ie(this),pt=yt==null?void 0:oe(yt,Be);return pt?z(pt,yt,Qe,Ve):z(et,he(Qe),yt,Ve)},function(st,yt){var Ve=me(this),Qe=he(st),pt=Ye(et,Ve,Qe,yt,et!==He);if(pt.done)return pt.value;var mt=le(Ve,RegExp),ft=Ve.unicode,nt=(Ve.ignoreCase?"i":"")+(Ve.multiline?"m":"")+(Ve.unicode?"u":"")+(we?"g":"y"),tt=new mt(we?"^(?:"+Ve.source+")":Ve,nt),rt=yt===void 0?Ne:yt>>>0;if(rt===0)return[];if(Qe.length===0)return Ce(tt,Qe)===null?[Qe]:[];for(var Et=0,bt=0,Pt=[];bt<Qe.length;){tt.lastIndex=we?0:bt;var Lt=Ce(tt,we?Le(Qe,bt):Qe),dt;if(Lt===null||(dt=Ae(fe(tt.lastIndex+(we?bt:0)),Qe.length))===Et)bt=ue(Qe,bt,ft);else{if(Pe(Pt,Le(Qe,Et,bt)),Pt.length===rt)return Pt;for(var Ze=1;Ze<=Lt.length-1;Ze++)if(Pe(Pt,Lt[Ze]),Pt.length===rt)return Pt;bt=Et=dt}}return Pe(Pt,Le(Qe,Et)),Pt}]},!We,we)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/string-trim").trim,ae=x("../internals/string-trim-forced");ne({target:"String",proto:!0,forced:ae("trim")},{trim:function(){return z(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/global"),ae=x("../internals/function-call"),re=x("../internals/function-uncurry-this"),se=x("../internals/is-pure"),me=x("../internals/descriptors"),ie=x("../internals/native-symbol"),le=x("../internals/fails"),ue=x("../internals/has-own-property"),fe=x("../internals/object-is-prototype-of"),he=x("../internals/an-object"),oe=x("../internals/to-indexed-object"),Se=x("../internals/to-property-key"),Ce=x("../internals/to-string"),ye=x("../internals/create-property-descriptor"),_e=x("../internals/object-create"),Me=x("../internals/object-keys"),we=x("../internals/object-get-own-property-names"),Ne=x("../internals/object-get-own-property-names-external"),Ae=x("../internals/object-get-own-property-symbols"),De=x("../internals/object-get-own-property-descriptor"),Ie=x("../internals/object-define-property"),Pe=x("../internals/object-define-properties"),Le=x("../internals/object-property-is-enumerable"),We=x("../internals/redefine"),Be=x("../internals/shared"),He=x("../internals/shared-key"),Ye=x("../internals/hidden-keys"),et=x("../internals/uid"),st=x("../internals/well-known-symbol"),yt=x("../internals/well-known-symbol-wrapped"),Ve=x("../internals/define-well-known-symbol"),Qe=x("../internals/symbol-define-to-primitive"),pt=x("../internals/set-to-string-tag"),mt=x("../internals/internal-state"),ft=x("../internals/array-iteration").forEach,nt=He("hidden"),tt="Symbol",rt="prototype",Et=mt.set,bt=mt.getterFor(tt),Pt=Object[rt],Lt=z.Symbol,dt=Lt&&Lt[rt],Ze=z.TypeError,Ke=z.QObject,de=De.f,xe=Ie.f,ze=Ne.f,$e=Le.f,Ee=re([].push),Re=Be("symbols"),Fe=Be("op-symbols"),Ge=Be("wks"),it=!Ke||!Ke[rt]||!Ke[rt].findChild,gt=me&&le(function(){return _e(xe({},"a",{get:function(){return xe(this,"a",{value:7}).a}})).a!=7})?function(Dt,xt,en){var an=de(Pt,xt);an&&delete Pt[xt],xe(Dt,xt,en),an&&Dt!==Pt&&xe(Pt,xt,an)}:xe,Kt=function(Dt,xt){var en=Re[Dt]=_e(dt);return Et(en,{type:tt,tag:Dt,description:xt}),me||(en.description=xt),en},kt=function(xt,en,an){xt===Pt&&kt(Fe,en,an),he(xt);var fn=Se(en);return he(an),ue(Re,fn)?(an.enumerable?(ue(xt,nt)&&xt[nt][fn]&&(xt[nt][fn]=!1),an=_e(an,{enumerable:ye(0,!1)})):(ue(xt,nt)||xe(xt,nt,ye(1,{})),xt[nt][fn]=!0),gt(xt,fn,an)):xe(xt,fn,an)},St=function(xt,en){he(xt);var an=oe(en),fn=Me(an).concat(sn(an));return ft(fn,function(Tn){(!me||ae(jt,an,Tn))&&kt(xt,Tn,an[Tn])}),xt},Wt=function(xt,en){return en===void 0?_e(xt):St(_e(xt),en)},jt=function(xt){var en=Se(xt),an=ae($e,this,en);return this===Pt&&ue(Re,en)&&!ue(Fe,en)?!1:an||!ue(this,en)||!ue(Re,en)||ue(this,nt)&&this[nt][en]?an:!0},Vt=function(xt,en){var an=oe(xt),fn=Se(en);if(!(an===Pt&&ue(Re,fn)&&!ue(Fe,fn))){var Tn=de(an,fn);return Tn&&ue(Re,fn)&&!(ue(an,nt)&&an[nt][fn])&&(Tn.enumerable=!0),Tn}},_t=function(xt){var en=ze(oe(xt)),an=[];return ft(en,function(fn){!ue(Re,fn)&&!ue(Ye,fn)&&Ee(an,fn)}),an},sn=function(Dt){var xt=Dt===Pt,en=ze(xt?Fe:oe(Dt)),an=[];return ft(en,function(fn){ue(Re,fn)&&(!xt||ue(Pt,fn))&&Ee(an,Re[fn])}),an};ie||(Lt=function(){if(fe(dt,this))throw Ze("Symbol is not a constructor");var xt=!arguments.length||arguments[0]===void 0?void 0:Ce(arguments[0]),en=et(xt),an=function(fn){this===Pt&&ae(an,Fe,fn),ue(this,nt)&&ue(this[nt],en)&&(this[nt][en]=!1),gt(this,en,ye(1,fn))};return me&&it&>(Pt,en,{configurable:!0,set:an}),Kt(en,xt)},dt=Lt[rt],We(dt,"toString",function(){return bt(this).tag}),We(Lt,"withoutSetter",function(Dt){return Kt(et(Dt),Dt)}),Le.f=jt,Ie.f=kt,Pe.f=St,De.f=Vt,we.f=Ne.f=_t,Ae.f=sn,yt.f=function(Dt){return Kt(st(Dt),Dt)},me&&(xe(dt,"description",{configurable:!0,get:function(){return bt(this).description}}),se||We(Pt,"propertyIsEnumerable",jt,{unsafe:!0}))),ne({global:!0,wrap:!0,forced:!ie,sham:!ie},{Symbol:Lt}),ft(Me(Ge),function(Dt){Ve(Dt)}),ne({target:tt,stat:!0,forced:!ie},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),ne({target:"Object",stat:!0,forced:!ie,sham:!me},{create:Wt,defineProperty:kt,defineProperties:St,getOwnPropertyDescriptor:Vt}),ne({target:"Object",stat:!0,forced:!ie},{getOwnPropertyNames:_t}),Qe(),pt(Lt,tt),Ye[nt]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(x,ke,pe){"use strict";var ne=x("../internals/export"),z=x("../internals/descriptors"),ae=x("../internals/global"),re=x("../internals/function-uncurry-this"),se=x("../internals/has-own-property"),me=x("../internals/is-callable"),ie=x("../internals/object-is-prototype-of"),le=x("../internals/to-string"),ue=x("../internals/object-define-property").f,fe=x("../internals/copy-constructor-properties"),he=ae.Symbol,oe=he&&he.prototype;if(z&&me(he)&&(!("description"in oe)||he().description!==void 0)){var Se={},Ce=function(){var Ie=arguments.length<1||arguments[0]===void 0?void 0:le(arguments[0]),Pe=ie(oe,this)?new he(Ie):Ie===void 0?he():he(Ie);return Ie===""&&(Se[Pe]=!0),Pe};fe(Ce,he),Ce.prototype=oe,oe.constructor=Ce;var ye=String(he("test"))=="Symbol(test)",_e=re(oe.toString),Me=re(oe.valueOf),we=/^Symbol\((.*)\)[^)]+$/,Ne=re("".replace),Ae=re("".slice);ue(oe,"description",{configurable:!0,get:function(){var Ie=Me(this),Pe=_e(Ie);if(se(Se,Ie))return"";var Le=ye?Ae(Pe,7,-1):Ne(Pe,we,"$1");return Le===""?void 0:Le}}),ne({global:!0,forced:!0},{Symbol:Ce})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(x,ke,pe){var ne=x("../internals/export"),z=x("../internals/get-built-in"),ae=x("../internals/has-own-property"),re=x("../internals/to-string"),se=x("../internals/shared"),me=x("../internals/native-symbol-registry"),ie=se("string-to-symbol-registry"),le=se("symbol-to-string-registry");ne({target:"Symbol",stat:!0,forced:!me},{for:function(ue){var fe=re(ue);if(ae(ie,fe))return ie[fe];var he=z("Symbol")(fe);return ie[fe]=he,le[he]=fe,he}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(x,ke,pe){var ne=x("../internals/define-well-known-symbol");ne("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(x,ke,pe){x("../modules/es.symbol.constructor"),x("../modules/es.symbol.for"),x("../modules/es.symbol.key-for"),x("../modules/es.json.stringify"),x("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(x,ke,pe){var ne=x("../internals/export"),z=x("../internals/has-own-property"),ae=x("../internals/is-symbol"),re=x("../internals/try-to-string"),se=x("../internals/shared"),me=x("../internals/native-symbol-registry"),ie=se("symbol-to-string-registry");ne({target:"Symbol",stat:!0,forced:!me},{keyFor:function(ue){if(!ae(ue))throw TypeError(re(ue)+" is not a symbol");if(z(ie,ue))return ie[ue]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(x,ke,pe){"use strict";var ne=x("../internals/function-uncurry-this"),z=x("../internals/array-buffer-view-core"),ae=x("../internals/array-copy-within"),re=ne(ae),se=z.aTypedArray,me=z.exportTypedArrayMethod;me("copyWithin",function(le,ue){return re(se(this),le,ue,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").every,ae=ne.aTypedArray,re=ne.exportTypedArrayMethod;re("every",function(me){return z(ae(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/function-call"),ae=x("../internals/array-fill"),re=ne.aTypedArray,se=ne.exportTypedArrayMethod;se("fill",function(ie){var le=arguments.length;return z(ae,re(this),ie,le>1?arguments[1]:void 0,le>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").filter,ae=x("../internals/typed-array-from-species-and-list"),re=ne.aTypedArray,se=ne.exportTypedArrayMethod;se("filter",function(ie){var le=z(re(this),ie,arguments.length>1?arguments[1]:void 0);return ae(this,le)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").findIndex,ae=ne.aTypedArray,re=ne.exportTypedArrayMethod;re("findIndex",function(me){return z(ae(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").find,ae=ne.aTypedArray,re=ne.exportTypedArrayMethod;re("find",function(me){return z(ae(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").forEach,ae=ne.aTypedArray,re=ne.exportTypedArrayMethod;re("forEach",function(me){z(ae(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-includes").includes,ae=ne.aTypedArray,re=ne.exportTypedArrayMethod;re("includes",function(me){return z(ae(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-includes").indexOf,ae=ne.aTypedArray,re=ne.exportTypedArrayMethod;re("indexOf",function(me){return z(ae(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(x,ke,pe){"use strict";var ne=x("../internals/global"),z=x("../internals/fails"),ae=x("../internals/function-uncurry-this"),re=x("../internals/array-buffer-view-core"),se=x("../modules/es.array.iterator"),me=x("../internals/well-known-symbol"),ie=me("iterator"),le=ne.Uint8Array,ue=ae(se.values),fe=ae(se.keys),he=ae(se.entries),oe=re.aTypedArray,Se=re.exportTypedArrayMethod,Ce=le&&le.prototype,ye=!z(function(){Ce[ie].call([1])}),_e=!!Ce&&Ce.values&&Ce[ie]===Ce.values&&Ce.values.name==="values",Me=function(){return ue(oe(this))};Se("entries",function(){return he(oe(this))},ye),Se("keys",function(){return fe(oe(this))},ye),Se("values",Me,ye||!_e,{name:"values"}),Se(ie,Me,ye||!_e,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/function-uncurry-this"),ae=ne.aTypedArray,re=ne.exportTypedArrayMethod,se=z([].join);re("join",function(ie){return se(ae(this),ie)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/function-apply"),ae=x("../internals/array-last-index-of"),re=ne.aTypedArray,se=ne.exportTypedArrayMethod;se("lastIndexOf",function(ie){var le=arguments.length;return z(ae,re(this),le>1?[ie,arguments[1]]:[ie])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").map,ae=x("../internals/typed-array-species-constructor"),re=ne.aTypedArray,se=ne.exportTypedArrayMethod;se("map",function(ie){return z(re(this),ie,arguments.length>1?arguments[1]:void 0,function(le,ue){return new(ae(le))(ue)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-reduce").right,ae=ne.aTypedArray,re=ne.exportTypedArrayMethod;re("reduceRight",function(me){var ie=arguments.length;return z(ae(this),me,ie,ie>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-reduce").left,ae=ne.aTypedArray,re=ne.exportTypedArrayMethod;re("reduce",function(me){var ie=arguments.length;return z(ae(this),me,ie,ie>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=ne.aTypedArray,ae=ne.exportTypedArrayMethod,re=Math.floor;ae("reverse",function(){for(var me=this,ie=z(me).length,le=re(ie/2),ue=0,fe;ue<le;)fe=me[ue],me[ue++]=me[--ie],me[ie]=fe;return me})},{"../internals/array-buffer-view-core":103}],331:[function(x,ke,pe){"use strict";var ne=x("../internals/global"),z=x("../internals/function-call"),ae=x("../internals/array-buffer-view-core"),re=x("../internals/length-of-array-like"),se=x("../internals/to-offset"),me=x("../internals/to-object"),ie=x("../internals/fails"),le=ne.RangeError,ue=ne.Int8Array,fe=ue&&ue.prototype,he=fe&&fe.set,oe=ae.aTypedArray,Se=ae.exportTypedArrayMethod,Ce=!ie(function(){var _e=new Uint8ClampedArray(2);return z(he,_e,{length:1,0:3},1),_e[1]!==3}),ye=Ce&&ae.NATIVE_ARRAY_BUFFER_VIEWS&&ie(function(){var _e=new ue(2);return _e.set(1),_e.set("2",1),_e[0]!==0||_e[1]!==2});Se("set",function(Me){oe(this);var we=se(arguments.length>1?arguments[1]:void 0,1),Ne=me(Me);if(Ce)return z(he,this,Ne,we);var Ae=this.length,De=re(Ne),Ie=0;if(De+we>Ae)throw le("Wrong length");for(;Ie<De;)this[we+Ie]=Ne[Ie++]},!Ce||ye)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/typed-array-species-constructor"),ae=x("../internals/fails"),re=x("../internals/array-slice"),se=ne.aTypedArray,me=ne.exportTypedArrayMethod,ie=ae(function(){new Int8Array(1).slice()});me("slice",function(ue,fe){for(var he=re(se(this),ue,fe),oe=z(this),Se=0,Ce=he.length,ye=new oe(Ce);Ce>Se;)ye[Se]=he[Se++];return ye},ie)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/array-iteration").some,ae=ne.aTypedArray,re=ne.exportTypedArrayMethod;re("some",function(me){return z(ae(this),me,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(x,ke,pe){"use strict";var ne=x("../internals/global"),z=x("../internals/function-uncurry-this"),ae=x("../internals/fails"),re=x("../internals/a-callable"),se=x("../internals/array-sort"),me=x("../internals/array-buffer-view-core"),ie=x("../internals/engine-ff-version"),le=x("../internals/engine-is-ie-or-edge"),ue=x("../internals/engine-v8-version"),fe=x("../internals/engine-webkit-version"),he=me.aTypedArray,oe=me.exportTypedArrayMethod,Se=ne.Uint16Array,Ce=Se&&z(Se.prototype.sort),ye=!!Ce&&!(ae(function(){Ce(new Se(2),null)})&&ae(function(){Ce(new Se(2),{})})),_e=!!Ce&&!ae(function(){if(ue)return ue<74;if(ie)return ie<67;if(le)return!0;if(fe)return fe<602;var we=new Se(516),Ne=Array(516),Ae,De;for(Ae=0;Ae<516;Ae++)De=Ae%4,we[Ae]=515-Ae,Ne[Ae]=Ae-2*De+3;for(Ce(we,function(Ie,Pe){return(Ie/4|0)-(Pe/4|0)}),Ae=0;Ae<516;Ae++)if(we[Ae]!==Ne[Ae])return!0}),Me=function(we){return function(Ne,Ae){return we!==void 0?+we(Ne,Ae)||0:Ae!==Ae?-1:Ne!==Ne?1:Ne===0&&Ae===0?1/Ne>0&&1/Ae<0?1:-1:Ne>Ae}};oe("sort",function(Ne){return Ne!==void 0&&re(Ne),_e?Ce(this,Ne):se(he(this),Me(Ne))},!_e||ye)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core"),z=x("../internals/to-length"),ae=x("../internals/to-absolute-index"),re=x("../internals/typed-array-species-constructor"),se=ne.aTypedArray,me=ne.exportTypedArrayMethod;me("subarray",function(le,ue){var fe=se(this),he=fe.length,oe=ae(le,he),Se=re(fe);return new Se(fe.buffer,fe.byteOffset+oe*fe.BYTES_PER_ELEMENT,z((ue===void 0?he:ae(ue,he))-oe))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(x,ke,pe){"use strict";var ne=x("../internals/global"),z=x("../internals/function-apply"),ae=x("../internals/array-buffer-view-core"),re=x("../internals/fails"),se=x("../internals/array-slice"),me=ne.Int8Array,ie=ae.aTypedArray,le=ae.exportTypedArrayMethod,ue=[].toLocaleString,fe=!!me&&re(function(){ue.call(new me(1))}),he=re(function(){return[1,2].toLocaleString()!=new me([1,2]).toLocaleString()})||!re(function(){me.prototype.toLocaleString.call([1,2])});le("toLocaleString",function(){return z(ue,fe?se(ie(this)):ie(this),se(arguments))},he)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(x,ke,pe){"use strict";var ne=x("../internals/array-buffer-view-core").exportTypedArrayMethod,z=x("../internals/fails"),ae=x("../internals/global"),re=x("../internals/function-uncurry-this"),se=ae.Uint8Array,me=se&&se.prototype||{},ie=[].toString,le=re([].join);z(function(){ie.call({})})&&(ie=function(){return le(this)});var ue=me.toString!=ie;ne("toString",ie,ue)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(x,ke,pe){var ne=x("../internals/typed-array-constructor");ne("Uint8",function(z){return function(re,se,me){return z(this,re,se,me)}})},{"../internals/typed-array-constructor":258}],339:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/dom-iterables"),ae=x("../internals/dom-token-list-prototype"),re=x("../internals/array-for-each"),se=x("../internals/create-non-enumerable-property"),me=function(le){if(le&&le.forEach!==re)try{se(le,"forEach",re)}catch(ue){le.forEach=re}};for(var ie in z)z[ie]&&me(ne[ie]&&ne[ie].prototype);me(ae)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(x,ke,pe){var ne=x("../internals/global"),z=x("../internals/dom-iterables"),ae=x("../internals/dom-token-list-prototype"),re=x("../modules/es.array.iterator"),se=x("../internals/create-non-enumerable-property"),me=x("../internals/well-known-symbol"),ie=me("iterator"),le=me("toStringTag"),ue=re.values,fe=function(oe,Se){if(oe){if(oe[ie]!==ue)try{se(oe,ie,ue)}catch(ye){oe[ie]=ue}if(oe[le]||se(oe,le,Se),z[Se]){for(var Ce in re)if(oe[Ce]!==re[Ce])try{se(oe,Ce,re[Ce])}catch(ye){oe[Ce]=re[Ce]}}}};for(var he in z)fe(ne[he]&&ne[he].prototype,he);fe(ae,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(x,ke,pe){function ne(_e){return Array.isArray?Array.isArray(_e):ye(_e)==="[object Array]"}pe.isArray=ne;function z(_e){return typeof _e=="boolean"}pe.isBoolean=z;function ae(_e){return _e===null}pe.isNull=ae;function re(_e){return _e==null}pe.isNullOrUndefined=re;function se(_e){return typeof _e=="number"}pe.isNumber=se;function me(_e){return typeof _e=="string"}pe.isString=me;function ie(_e){return typeof _e=="symbol"}pe.isSymbol=ie;function le(_e){return _e===void 0}pe.isUndefined=le;function ue(_e){return ye(_e)==="[object RegExp]"}pe.isRegExp=ue;function fe(_e){return typeof _e=="object"&&_e!==null}pe.isObject=fe;function he(_e){return ye(_e)==="[object Date]"}pe.isDate=he;function oe(_e){return ye(_e)==="[object Error]"||_e instanceof Error}pe.isError=oe;function Se(_e){return typeof _e=="function"}pe.isFunction=Se;function Ce(_e){return _e===null||typeof _e=="boolean"||typeof _e=="number"||typeof _e=="string"||typeof _e=="symbol"||typeof _e=="undefined"}pe.isPrimitive=Ce,pe.isBuffer=x("buffer").Buffer.isBuffer;function ye(_e){return Object.prototype.toString.call(_e)}},{buffer:90}],342:[function(x,ke,pe){(function(ne){"use strict";var z=function(){var ie=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,le=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ue=/[^-+\dA-Z]/g;return function(fe,he,oe,Se){if(arguments.length===1&&me(fe)==="string"&&!/\d/.test(fe)&&(he=fe,fe=void 0),fe=fe||new Date,fe instanceof Date||(fe=new Date(fe)),isNaN(fe))throw TypeError("Invalid date");he=String(z.masks[he]||he||z.masks.default);var Ce=he.slice(0,4);(Ce==="UTC:"||Ce==="GMT:")&&(he=he.slice(4),oe=!0,Ce==="GMT:"&&(Se=!0));var ye=oe?"getUTC":"get",_e=fe[ye+"Date"](),Me=fe[ye+"Day"](),we=fe[ye+"Month"](),Ne=fe[ye+"FullYear"](),Ae=fe[ye+"Hours"](),De=fe[ye+"Minutes"](),Ie=fe[ye+"Seconds"](),Pe=fe[ye+"Milliseconds"](),Le=oe?0:fe.getTimezoneOffset(),We=re(fe),Be=se(fe),He={d:_e,dd:ae(_e),ddd:z.i18n.dayNames[Me],dddd:z.i18n.dayNames[Me+7],m:we+1,mm:ae(we+1),mmm:z.i18n.monthNames[we],mmmm:z.i18n.monthNames[we+12],yy:String(Ne).slice(2),yyyy:Ne,h:Ae%12||12,hh:ae(Ae%12||12),H:Ae,HH:ae(Ae),M:De,MM:ae(De),s:Ie,ss:ae(Ie),l:ae(Pe,3),L:ae(Math.round(Pe/10)),t:Ae<12?"a":"p",tt:Ae<12?"am":"pm",T:Ae<12?"A":"P",TT:Ae<12?"AM":"PM",Z:Se?"GMT":oe?"UTC":(String(fe).match(le)||[""]).pop().replace(ue,""),o:(Le>0?"-":"+")+ae(Math.floor(Math.abs(Le)/60)*100+Math.abs(Le)%60,4),S:["th","st","nd","rd"][_e%10>3?0:(_e%100-_e%10!=10)*_e%10],W:We,N:Be};return he.replace(ie,function(Ye){return Ye in He?He[Ye]:Ye.slice(1,Ye.length-1)})}}();z.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},z.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function ae(ie,le){for(ie=String(ie),le=le||2;ie.length<le;)ie="0"+ie;return ie}function re(ie){var le=new Date(ie.getFullYear(),ie.getMonth(),ie.getDate());le.setDate(le.getDate()-(le.getDay()+6)%7+3);var ue=new Date(le.getFullYear(),0,4);ue.setDate(ue.getDate()-(ue.getDay()+6)%7+3);var fe=le.getTimezoneOffset()-ue.getTimezoneOffset();le.setHours(le.getHours()-fe);var he=(le-ue)/(864e5*7);return 1+Math.floor(he)}function se(ie){var le=ie.getDay();return le===0&&(le=7),le}function me(ie){return ie===null?"null":ie===void 0?"undefined":typeof ie!="object"?typeof ie:Array.isArray(ie)?"array":{}.toString.call(ie).slice(8,-1).toLowerCase()}typeof ve=="function"&&ve.amd?ve(function(){return z}):typeof pe=="object"?ke.exports=z:ne.dateFormat=z})(this)},{}],343:[function(x,ke,pe){"use strict";var ne=/["'&<>]/;ke.exports=z;function z(ae){var re=""+ae,se=ne.exec(re);if(!se)return re;var me,ie="",le=0,ue=0;for(le=se.index;le<re.length;le++){switch(re.charCodeAt(le)){case 34:me=""";break;case 38:me="&";break;case 39:me="'";break;case 60:me="<";break;case 62:me=">";break;default:continue}ue!==le&&(ie+=re.substring(ue,le)),ue=le+1,ie+=me}return ue!==le?ie+re.substring(ue,le):ie}},{}],344:[function(x,ke,pe){"use strict";var ne=typeof Reflect=="object"?Reflect:null,z=ne&&typeof ne.apply=="function"?ne.apply:function(Ie,Pe,Le){return Function.prototype.apply.call(Ie,Pe,Le)},ae;ne&&typeof ne.ownKeys=="function"?ae=ne.ownKeys:Object.getOwnPropertySymbols?ae=function(Ie){return Object.getOwnPropertyNames(Ie).concat(Object.getOwnPropertySymbols(Ie))}:ae=function(Ie){return Object.getOwnPropertyNames(Ie)};function re(De){console&&console.warn&&console.warn(De)}var se=Number.isNaN||function(Ie){return Ie!==Ie};function me(){me.init.call(this)}ke.exports=me,ke.exports.once=we,me.EventEmitter=me,me.prototype._events=void 0,me.prototype._eventsCount=0,me.prototype._maxListeners=void 0;var ie=10;function le(De){if(typeof De!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof De)}Object.defineProperty(me,"defaultMaxListeners",{enumerable:!0,get:function(){return ie},set:function(De){if(typeof De!="number"||De<0||se(De))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+De+".");ie=De}}),me.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},me.prototype.setMaxListeners=function(Ie){if(typeof Ie!="number"||Ie<0||se(Ie))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ie+".");return this._maxListeners=Ie,this};function ue(De){return De._maxListeners===void 0?me.defaultMaxListeners:De._maxListeners}me.prototype.getMaxListeners=function(){return ue(this)},me.prototype.emit=function(Ie){for(var Pe=[],Le=1;Le<arguments.length;Le++)Pe.push(arguments[Le]);var We=Ie==="error",Be=this._events;if(Be!==void 0)We=We&&Be.error===void 0;else if(!We)return!1;if(We){var He;if(Pe.length>0&&(He=Pe[0]),He instanceof Error)throw He;var Ye=new Error("Unhandled error."+(He?" ("+He.message+")":""));throw Ye.context=He,Ye}var et=Be[Ie];if(et===void 0)return!1;if(typeof et=="function")z(et,this,Pe);else for(var st=et.length,yt=ye(et,st),Le=0;Le<st;++Le)z(yt[Le],this,Pe);return!0};function fe(De,Ie,Pe,Le){var We,Be,He;if(le(Pe),Be=De._events,Be===void 0?(Be=De._events=Object.create(null),De._eventsCount=0):(Be.newListener!==void 0&&(De.emit("newListener",Ie,Pe.listener?Pe.listener:Pe),Be=De._events),He=Be[Ie]),He===void 0)He=Be[Ie]=Pe,++De._eventsCount;else if(typeof He=="function"?He=Be[Ie]=Le?[Pe,He]:[He,Pe]:Le?He.unshift(Pe):He.push(Pe),We=ue(De),We>0&&He.length>We&&!He.warned){He.warned=!0;var Ye=new Error("Possible EventEmitter memory leak detected. "+He.length+" "+String(Ie)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ye.name="MaxListenersExceededWarning",Ye.emitter=De,Ye.type=Ie,Ye.count=He.length,re(Ye)}return De}me.prototype.addListener=function(Ie,Pe){return fe(this,Ie,Pe,!1)},me.prototype.on=me.prototype.addListener,me.prototype.prependListener=function(Ie,Pe){return fe(this,Ie,Pe,!0)};function he(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function oe(De,Ie,Pe){var Le={fired:!1,wrapFn:void 0,target:De,type:Ie,listener:Pe},We=he.bind(Le);return We.listener=Pe,Le.wrapFn=We,We}me.prototype.once=function(Ie,Pe){return le(Pe),this.on(Ie,oe(this,Ie,Pe)),this},me.prototype.prependOnceListener=function(Ie,Pe){return le(Pe),this.prependListener(Ie,oe(this,Ie,Pe)),this},me.prototype.removeListener=function(Ie,Pe){var Le,We,Be,He,Ye;if(le(Pe),We=this._events,We===void 0)return this;if(Le=We[Ie],Le===void 0)return this;if(Le===Pe||Le.listener===Pe)--this._eventsCount===0?this._events=Object.create(null):(delete We[Ie],We.removeListener&&this.emit("removeListener",Ie,Le.listener||Pe));else if(typeof Le!="function"){for(Be=-1,He=Le.length-1;He>=0;He--)if(Le[He]===Pe||Le[He].listener===Pe){Ye=Le[He].listener,Be=He;break}if(Be<0)return this;Be===0?Le.shift():_e(Le,Be),Le.length===1&&(We[Ie]=Le[0]),We.removeListener!==void 0&&this.emit("removeListener",Ie,Ye||Pe)}return this},me.prototype.off=me.prototype.removeListener,me.prototype.removeAllListeners=function(Ie){var Pe,Le,We;if(Le=this._events,Le===void 0)return this;if(Le.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Le[Ie]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Le[Ie]),this;if(arguments.length===0){var Be=Object.keys(Le),He;for(We=0;We<Be.length;++We)He=Be[We],He!=="removeListener"&&this.removeAllListeners(He);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Pe=Le[Ie],typeof Pe=="function")this.removeListener(Ie,Pe);else if(Pe!==void 0)for(We=Pe.length-1;We>=0;We--)this.removeListener(Ie,Pe[We]);return this};function Se(De,Ie,Pe){var Le=De._events;if(Le===void 0)return[];var We=Le[Ie];return We===void 0?[]:typeof We=="function"?Pe?[We.listener||We]:[We]:Pe?Me(We):ye(We,We.length)}me.prototype.listeners=function(Ie){return Se(this,Ie,!0)},me.prototype.rawListeners=function(Ie){return Se(this,Ie,!1)},me.listenerCount=function(De,Ie){return typeof De.listenerCount=="function"?De.listenerCount(Ie):Ce.call(De,Ie)},me.prototype.listenerCount=Ce;function Ce(De){var Ie=this._events;if(Ie!==void 0){var Pe=Ie[De];if(typeof Pe=="function")return 1;if(Pe!==void 0)return Pe.length}return 0}me.prototype.eventNames=function(){return this._eventsCount>0?ae(this._events):[]};function ye(De,Ie){for(var Pe=new Array(Ie),Le=0;Le<Ie;++Le)Pe[Le]=De[Le];return Pe}function _e(De,Ie){for(;Ie+1<De.length;Ie++)De[Ie]=De[Ie+1];De.pop()}function Me(De){for(var Ie=new Array(De.length),Pe=0;Pe<Ie.length;++Pe)Ie[Pe]=De[Pe].listener||De[Pe];return Ie}function we(De,Ie){return new Promise(function(Pe,Le){function We(He){De.removeListener(Ie,Be),Le(He)}function Be(){typeof De.removeListener=="function"&&De.removeListener("error",We),Pe([].slice.call(arguments))}Ae(De,Ie,Be,{once:!0}),Ie!=="error"&&Ne(De,We,{once:!0})})}function Ne(De,Ie,Pe){typeof De.on=="function"&&Ae(De,"error",Ie,Pe)}function Ae(De,Ie,Pe,Le){if(typeof De.on=="function")Le.once?De.once(Ie,Pe):De.on(Ie,Pe);else if(typeof De.addEventListener=="function")De.addEventListener(Ie,function We(Be){Le.once&&De.removeEventListener(Ie,We),Pe(Be)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof De)}},{}],345:[function(x,ke,pe){"use strict";var ne=x("is-callable"),z=Object.prototype.toString,ae=Object.prototype.hasOwnProperty,re=function(ue,fe,he){for(var oe=0,Se=ue.length;oe<Se;oe++)ae.call(ue,oe)&&(he==null?fe(ue[oe],oe,ue):fe.call(he,ue[oe],oe,ue))},se=function(ue,fe,he){for(var oe=0,Se=ue.length;oe<Se;oe++)he==null?fe(ue.charAt(oe),oe,ue):fe.call(he,ue.charAt(oe),oe,ue)},me=function(ue,fe,he){for(var oe in ue)ae.call(ue,oe)&&(he==null?fe(ue[oe],oe,ue):fe.call(he,ue[oe],oe,ue))},ie=function(ue,fe,he){if(!ne(fe))throw new TypeError("iterator must be a function");var oe;arguments.length>=3&&(oe=he),z.call(ue)==="[object Array]"?re(ue,fe,oe):typeof ue=="string"?se(ue,fe,oe):me(ue,fe,oe)};ke.exports=ie},{"is-callable":367}],346:[function(x,ke,pe){"use strict";var ne="Function.prototype.bind called on incompatible ",z=Array.prototype.slice,ae=Object.prototype.toString,re="[object Function]";ke.exports=function(me){var ie=this;if(typeof ie!="function"||ae.call(ie)!==re)throw new TypeError(ne+ie);for(var le=z.call(arguments,1),ue,fe=function(){if(this instanceof ue){var ye=ie.apply(this,le.concat(z.call(arguments)));return Object(ye)===ye?ye:this}else return ie.apply(me,le.concat(z.call(arguments)))},he=Math.max(0,ie.length-le.length),oe=[],Se=0;Se<he;Se++)oe.push("$"+Se);if(ue=Function("binder","return function ("+oe.join(",")+"){ return binder.apply(this,arguments); }")(fe),ie.prototype){var Ce=function(){};Ce.prototype=ie.prototype,ue.prototype=new Ce,Ce.prototype=null}return ue}},{}],347:[function(x,ke,pe){"use strict";var ne=x("./implementation");ke.exports=Function.prototype.bind||ne},{"./implementation":346}],348:[function(x,ke,pe){"use strict";var ne,z=SyntaxError,ae=Function,re=TypeError,se=function(et){try{return ae('"use strict"; return ('+et+").constructor;")()}catch(st){}},me=Object.getOwnPropertyDescriptor;if(me)try{me({},"")}catch(et){me=null}var ie=function(){throw new re},le=me?function(){try{return arguments.callee,ie}catch(et){try{return me(arguments,"callee").get}catch(st){return ie}}}():ie,ue=x("has-symbols")(),fe=x("has-proto")(),he=Object.getPrototypeOf||(fe?function(et){return et.__proto__}:null),oe={},Se=typeof Uint8Array=="undefined"||!he?ne:he(Uint8Array),Ce={"%AggregateError%":typeof AggregateError=="undefined"?ne:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ne:ArrayBuffer,"%ArrayIteratorPrototype%":ue&&he?he([][Symbol.iterator]()):ne,"%AsyncFromSyncIteratorPrototype%":ne,"%AsyncFunction%":oe,"%AsyncGenerator%":oe,"%AsyncGeneratorFunction%":oe,"%AsyncIteratorPrototype%":oe,"%Atomics%":typeof Atomics=="undefined"?ne:Atomics,"%BigInt%":typeof BigInt=="undefined"?ne:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ne:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ne:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ne:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ne:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ne:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ne:FinalizationRegistry,"%Function%":ae,"%GeneratorFunction%":oe,"%Int8Array%":typeof Int8Array=="undefined"?ne:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ne:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ne:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ue&&he?he(he([][Symbol.iterator]())):ne,"%JSON%":typeof JSON=="object"?JSON:ne,"%Map%":typeof Map=="undefined"?ne:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ue||!he?ne:he(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ne:Promise,"%Proxy%":typeof Proxy=="undefined"?ne:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ne:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ne:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ue||!he?ne:he(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ne:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ue&&he?he(""[Symbol.iterator]()):ne,"%Symbol%":ue?Symbol:ne,"%SyntaxError%":z,"%ThrowTypeError%":le,"%TypedArray%":Se,"%TypeError%":re,"%Uint8Array%":typeof Uint8Array=="undefined"?ne:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ne:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ne:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ne:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ne:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ne:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ne:WeakSet};if(he)try{null.error}catch(et){var ye=he(he(et));Ce["%Error.prototype%"]=ye}var _e=function et(st){var yt;if(st==="%AsyncFunction%")yt=se("async function () {}");else if(st==="%GeneratorFunction%")yt=se("function* () {}");else if(st==="%AsyncGeneratorFunction%")yt=se("async function* () {}");else if(st==="%AsyncGenerator%"){var Ve=et("%AsyncGeneratorFunction%");Ve&&(yt=Ve.prototype)}else if(st==="%AsyncIteratorPrototype%"){var Qe=et("%AsyncGenerator%");Qe&&he&&(yt=he(Qe.prototype))}return Ce[st]=yt,yt},Me={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},we=x("function-bind"),Ne=x("has"),Ae=we.call(Function.call,Array.prototype.concat),De=we.call(Function.apply,Array.prototype.splice),Ie=we.call(Function.call,String.prototype.replace),Pe=we.call(Function.call,String.prototype.slice),Le=we.call(Function.call,RegExp.prototype.exec),We=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Be=/\\(\\)?/g,He=function(st){var yt=Pe(st,0,1),Ve=Pe(st,-1);if(yt==="%"&&Ve!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(Ve==="%"&&yt!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var Qe=[];return Ie(st,We,function(pt,mt,ft,nt){Qe[Qe.length]=ft?Ie(nt,Be,"$1"):mt||pt}),Qe},Ye=function(st,yt){var Ve=st,Qe;if(Ne(Me,Ve)&&(Qe=Me[Ve],Ve="%"+Qe[0]+"%"),Ne(Ce,Ve)){var pt=Ce[Ve];if(pt===oe&&(pt=_e(Ve)),typeof pt=="undefined"&&!yt)throw new re("intrinsic "+st+" exists, but is not available. Please file an issue!");return{alias:Qe,name:Ve,value:pt}}throw new z("intrinsic "+st+" does not exist!")};ke.exports=function(st,yt){if(typeof st!="string"||st.length===0)throw new re("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof yt!="boolean")throw new re('"allowMissing" argument must be a boolean');if(Le(/^%?[^%]*%?$/,st)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ve=He(st),Qe=Ve.length>0?Ve[0]:"",pt=Ye("%"+Qe+"%",yt),mt=pt.name,ft=pt.value,nt=!1,tt=pt.alias;tt&&(Qe=tt[0],De(Ve,Ae([0,1],tt)));for(var rt=1,Et=!0;rt<Ve.length;rt+=1){var bt=Ve[rt],Pt=Pe(bt,0,1),Lt=Pe(bt,-1);if((Pt==='"'||Pt==="'"||Pt==="`"||Lt==='"'||Lt==="'"||Lt==="`")&&Pt!==Lt)throw new z("property names with quotes must have matching quotes");if((bt==="constructor"||!Et)&&(nt=!0),Qe+="."+bt,mt="%"+Qe+"%",Ne(Ce,mt))ft=Ce[mt];else if(ft!=null){if(!(bt in ft)){if(!yt)throw new re("base intrinsic for "+st+" exists, but the property is not available.");return}if(me&&rt+1>=Ve.length){var dt=me(ft,bt);Et=!!dt,Et&&"get"in dt&&!("originalValue"in dt.get)?ft=dt.get:ft=ft[bt]}else Et=Ne(ft,bt),ft=ft[bt];Et&&!nt&&(Ce[mt]=ft)}}return ft}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(x,ke,pe){"use strict";var ne=x("get-intrinsic"),z=ne("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(ae){z=null}ke.exports=z},{"get-intrinsic":348}],350:[function(x,ke,pe){"use strict";var ne={foo:{}},z=Object;ke.exports=function(){return{__proto__:ne}.foo===ne.foo&&!({__proto__:null}instanceof z)}},{}],351:[function(x,ke,pe){"use strict";var ne=typeof Symbol!="undefined"&&Symbol,z=x("./shams");ke.exports=function(){return typeof ne!="function"||typeof Symbol!="function"||typeof ne("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:z()}},{"./shams":352}],352:[function(x,ke,pe){"use strict";ke.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},ae=Symbol("test"),re=Object(ae);if(typeof ae=="string"||Object.prototype.toString.call(ae)!=="[object Symbol]"||Object.prototype.toString.call(re)!=="[object Symbol]")return!1;var se=42;z[ae]=se;for(ae in z)return!1;if(typeof Object.keys=="function"&&Object.keys(z).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(z).length!==0)return!1;var me=Object.getOwnPropertySymbols(z);if(me.length!==1||me[0]!==ae||!Object.prototype.propertyIsEnumerable.call(z,ae))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ie=Object.getOwnPropertyDescriptor(z,ae);if(ie.value!==se||ie.enumerable!==!0)return!1}return!0}},{}],353:[function(x,ke,pe){"use strict";var ne=x("has-symbols/shams");ke.exports=function(){return ne()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(x,ke,pe){"use strict";var ne=x("function-bind");ke.exports=ne.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(x,ke,pe){var ne=x("http"),z=x("url"),ae=ke.exports;for(var re in ne)ne.hasOwnProperty(re)&&(ae[re]=ne[re]);ae.request=function(me,ie){return me=se(me),ne.request.call(this,me,ie)},ae.get=function(me,ie){return me=se(me),ne.get.call(this,me,ie)};function se(me){if(typeof me=="string"&&(me=z.parse(me)),me.protocol||(me.protocol="https:"),me.protocol!=="https:")throw new Error('Protocol "'+me.protocol+'" not supported. Expected "https:"');return me}},{http:468,url:472}],356:[function(x,ke,pe){"use strict";var ne=x("util"),z=x("ms");ke.exports=function(ae){if(typeof ae=="number")return ae;var re=z(ae);if(re===void 0){var se=new Error(ne.format("humanize-ms(%j) result undefined",ae));console.warn(se.stack)}return re}},{ms:376,util:419}],357:[function(x,ke,pe){pe.read=function(ne,z,ae,re,se){var me,ie,le=se*8-re-1,ue=(1<<le)-1,fe=ue>>1,he=-7,oe=ae?se-1:0,Se=ae?-1:1,Ce=ne[z+oe];for(oe+=Se,me=Ce&(1<<-he)-1,Ce>>=-he,he+=le;he>0;me=me*256+ne[z+oe],oe+=Se,he-=8);for(ie=me&(1<<-he)-1,me>>=-he,he+=re;he>0;ie=ie*256+ne[z+oe],oe+=Se,he-=8);if(me===0)me=1-fe;else{if(me===ue)return ie?NaN:(Ce?-1:1)*(1/0);ie=ie+Math.pow(2,re),me=me-fe}return(Ce?-1:1)*ie*Math.pow(2,me-re)},pe.write=function(ne,z,ae,re,se,me){var ie,le,ue,fe=me*8-se-1,he=(1<<fe)-1,oe=he>>1,Se=se===23?Math.pow(2,-24)-Math.pow(2,-77):0,Ce=re?0:me-1,ye=re?1:-1,_e=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(le=isNaN(z)?1:0,ie=he):(ie=Math.floor(Math.log(z)/Math.LN2),z*(ue=Math.pow(2,-ie))<1&&(ie--,ue*=2),ie+oe>=1?z+=Se/ue:z+=Se*Math.pow(2,1-oe),z*ue>=2&&(ie++,ue/=2),ie+oe>=he?(le=0,ie=he):ie+oe>=1?(le=(z*ue-1)*Math.pow(2,se),ie=ie+oe):(le=z*Math.pow(2,oe-1)*Math.pow(2,se),ie=0));se>=8;ne[ae+Ce]=le&255,Ce+=ye,le/=256,se-=8);for(ie=ie<<se|le,fe+=se;fe>0;ne[ae+Ce]=ie&255,Ce+=ye,ie/=256,fe-=8);ne[ae+Ce-ye]|=_e*128}},{}],358:[function(x,ke,pe){"use strict";var ne=[x("./nextTick"),x("./queueMicrotask"),x("./mutation.js"),x("./messageChannel"),x("./stateChange"),x("./timeout")],z,ae,re=-1,se=[],me=!1;function ie(){!z||!ae||(z=!1,ae.length?se=ae.concat(se):re=-1,se.length&&le())}function le(){if(!z){me=!1,z=!0;for(var Ce=se.length,ye=setTimeout(ie);Ce;){for(ae=se,se=[];ae&&++re<Ce;)ae[re].run();re=-1,Ce=se.length}ae=null,re=-1,z=!1,clearTimeout(ye)}}for(var ue,fe=-1,he=ne.length;++fe<he;)if(ne[fe]&&ne[fe].test&&ne[fe].test()){ue=ne[fe].install(le);break}function oe(Ce,ye){this.fun=Ce,this.array=ye}oe.prototype.run=function(){var Ce=this.fun,ye=this.array;switch(ye.length){case 0:return Ce();case 1:return Ce(ye[0]);case 2:return Ce(ye[0],ye[1]);case 3:return Ce(ye[0],ye[1],ye[2]);default:return Ce.apply(null,ye)}},ke.exports=Se;function Se(Ce){var ye=new Array(arguments.length-1);if(arguments.length>1)for(var _e=1;_e<arguments.length;_e++)ye[_e-1]=arguments[_e];se.push(new oe(Ce,ye)),!me&&!z&&(me=!0,ue())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(x,ke,pe){(function(ne){(function(){"use strict";pe.test=function(){return ne.setImmediate?!1:typeof ne.MessageChannel!="undefined"},pe.install=function(z){var ae=new ne.MessageChannel;return ae.port1.onmessage=z,function(){ae.port2.postMessage(0)}}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=ne.MutationObserver||ne.WebKitMutationObserver;pe.test=function(){return z},pe.install=function(ae){var re=0,se=new z(ae),me=ne.document.createTextNode("");return se.observe(me,{characterData:!0}),function(){me.data=re=++re%2}}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(x,ke,pe){(function(ne){(function(){"use strict";pe.test=function(){return typeof ne.queueMicrotask=="function"},pe.install=function(z){return function(){ne.queueMicrotask(z)}}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(x,ke,pe){(function(ne){(function(){"use strict";pe.test=function(){return"document"in ne&&"onreadystatechange"in ne.document.createElement("script")},pe.install=function(z){return function(){var ae=ne.document.createElement("script");return ae.onreadystatechange=function(){z(),ae.onreadystatechange=null,ae.parentNode.removeChild(ae),ae=null},ne.document.documentElement.appendChild(ae),z}}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(x,ke,pe){"use strict";pe.test=function(){return!0},pe.install=function(ne){return function(){setTimeout(ne,0)}}},{}],364:[function(x,ke,pe){typeof Object.create=="function"?ke.exports=function(z,ae){ae&&(z.super_=ae,z.prototype=Object.create(ae.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}))}:ke.exports=function(z,ae){if(ae){z.super_=ae;var re=function(){};re.prototype=ae.prototype,z.prototype=new re,z.prototype.constructor=z}}},{}],365:[function(x,ke,pe){"use strict";var ne=x("has-tostringtag/shams")(),z=x("call-bind/callBound"),ae=z("Object.prototype.toString"),re=function(le){return ne&&le&&typeof le=="object"&&Symbol.toStringTag in le?!1:ae(le)==="[object Arguments]"},se=function(le){return re(le)?!0:le!==null&&typeof le=="object"&&typeof le.length=="number"&&le.length>=0&&ae(le)!=="[object Array]"&&ae(le.callee)==="[object Function]"},me=function(){return re(arguments)}();re.isLegacyArguments=se,ke.exports=me?re:se},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(x,ke,pe){ke.exports=function(ae){return ae!=null&&(ne(ae)||z(ae)||!!ae._isBuffer)};function ne(ae){return!!ae.constructor&&typeof ae.constructor.isBuffer=="function"&&ae.constructor.isBuffer(ae)}function z(ae){return typeof ae.readFloatLE=="function"&&typeof ae.slice=="function"&&ne(ae.slice(0,0))}},{}],367:[function(x,ke,pe){"use strict";var ne=Function.prototype.toString,z=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ae,re;if(typeof z=="function"&&typeof Object.defineProperty=="function")try{ae=Object.defineProperty({},"length",{get:function(){throw re}}),re={},z(function(){throw 42},null,ae)}catch(Ne){Ne!==re&&(z=null)}else z=null;var se=/^\s*class\b/,me=function(Ae){try{var De=ne.call(Ae);return se.test(De)}catch(Ie){return!1}},ie=function(Ae){try{return me(Ae)?!1:(ne.call(Ae),!0)}catch(De){return!1}},le=Object.prototype.toString,ue="[object Object]",fe="[object Function]",he="[object GeneratorFunction]",oe="[object HTMLAllCollection]",Se="[object HTML document.all class]",Ce="[object HTMLCollection]",ye=typeof Symbol=="function"&&!!Symbol.toStringTag,_e=!(0 in[,]),Me=function(){return!1};if(typeof document=="object"){var we=document.all;le.call(we)===le.call(document.all)&&(Me=function(Ae){if((_e||!Ae)&&(typeof Ae=="undefined"||typeof Ae=="object"))try{var De=le.call(Ae);return(De===oe||De===Se||De===Ce||De===ue)&&Ae("")==null}catch(Ie){}return!1})}ke.exports=z?function(Ae){if(Me(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;try{z(Ae,null,ae)}catch(De){if(De!==re)return!1}return!me(Ae)&&ie(Ae)}:function(Ae){if(Me(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;if(ye)return ie(Ae);if(me(Ae))return!1;var De=le.call(Ae);return De!==fe&&De!==he&&!/^\[object HTML/.test(De)?!1:ie(Ae)}},{}],368:[function(x,ke,pe){"use strict";var ne=Object.prototype.toString,z=Function.prototype.toString,ae=/^\s*(?:function)?\*/,re=x("has-tostringtag/shams")(),se=Object.getPrototypeOf,me=function(){if(!re)return!1;try{return Function("return function*() {}")()}catch(le){}},ie;ke.exports=function(ue){if(typeof ue!="function")return!1;if(ae.test(z.call(ue)))return!0;if(!re){var fe=ne.call(ue);return fe==="[object GeneratorFunction]"}if(!se)return!1;if(typeof ie=="undefined"){var he=me();ie=he?se(he):!1}return se(ue)===ie}},{"has-tostringtag/shams":353}],369:[function(x,ke,pe){"use strict";var ne=x("which-typed-array");ke.exports=function(ae){return!!ne(ae)}},{"which-typed-array":420}],370:[function(x,ke,pe){var ne={}.toString;ke.exports=Array.isArray||function(z){return ne.call(z)=="[object Array]"}},{}],371:[function(x,ke,pe){(function(ne){(function(){(function(z,ae){typeof pe=="object"&&typeof ke!="undefined"?ke.exports=ae(z):typeof ve=="function"&&ve.amd?ve(ae):ae(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ne!="undefined"?ne:this,function(z){"use strict";z=z||{};var ae=z.Base64,re="2.6.4",se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",me=function(st){for(var yt={},Ve=0,Qe=st.length;Ve<Qe;Ve++)yt[st.charAt(Ve)]=Ve;return yt}(se),ie=String.fromCharCode,le=function(st){if(st.length<2){var yt=st.charCodeAt(0);return yt<128?st:yt<2048?ie(192|yt>>>6)+ie(128|yt&63):ie(224|yt>>>12&15)+ie(128|yt>>>6&63)+ie(128|yt&63)}else{var yt=65536+(st.charCodeAt(0)-55296)*1024+(st.charCodeAt(1)-56320);return ie(240|yt>>>18&7)+ie(128|yt>>>12&63)+ie(128|yt>>>6&63)+ie(128|yt&63)}},ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,fe=function(st){return st.replace(ue,le)},he=function(st){var yt=[0,2,1][st.length%3],Ve=st.charCodeAt(0)<<16|(st.length>1?st.charCodeAt(1):0)<<8|(st.length>2?st.charCodeAt(2):0),Qe=[se.charAt(Ve>>>18),se.charAt(Ve>>>12&63),yt>=2?"=":se.charAt(Ve>>>6&63),yt>=1?"=":se.charAt(Ve&63)];return Qe.join("")},oe=z.btoa&&typeof z.btoa=="function"?function(st){return z.btoa(st)}:function(st){if(st.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return st.replace(/[\s\S]{1,3}/g,he)},Se=function(st){return oe(fe(String(st)))},Ce=function(st){return st.replace(/[+\/]/g,function(yt){return yt=="+"?"-":"_"}).replace(/=/g,"")},ye=function(st,yt){return yt?Ce(Se(st)):Se(st)},_e=function(st){return ye(st,!0)},Me;z.Uint8Array&&(Me=function(st,yt){for(var Ve="",Qe=0,pt=st.length;Qe<pt;Qe+=3){var mt=st[Qe],ft=st[Qe+1],nt=st[Qe+2],tt=mt<<16|ft<<8|nt;Ve+=se.charAt(tt>>>18)+se.charAt(tt>>>12&63)+(typeof ft!="undefined"?se.charAt(tt>>>6&63):"=")+(typeof nt!="undefined"?se.charAt(tt&63):"=")}return yt?Ce(Ve):Ve});var we=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ne=function(st){switch(st.length){case 4:var yt=(7&st.charCodeAt(0))<<18|(63&st.charCodeAt(1))<<12|(63&st.charCodeAt(2))<<6|63&st.charCodeAt(3),Ve=yt-65536;return ie((Ve>>>10)+55296)+ie((Ve&1023)+56320);case 3:return ie((15&st.charCodeAt(0))<<12|(63&st.charCodeAt(1))<<6|63&st.charCodeAt(2));default:return ie((31&st.charCodeAt(0))<<6|63&st.charCodeAt(1))}},Ae=function(st){return st.replace(we,Ne)},De=function(st){var yt=st.length,Ve=yt%4,Qe=(yt>0?me[st.charAt(0)]<<18:0)|(yt>1?me[st.charAt(1)]<<12:0)|(yt>2?me[st.charAt(2)]<<6:0)|(yt>3?me[st.charAt(3)]:0),pt=[ie(Qe>>>16),ie(Qe>>>8&255),ie(Qe&255)];return pt.length-=[0,0,2,1][Ve],pt.join("")},Ie=z.atob&&typeof z.atob=="function"?function(st){return z.atob(st)}:function(st){return st.replace(/\S{1,4}/g,De)},Pe=function(st){return Ie(String(st).replace(/[^A-Za-z0-9\+\/]/g,""))},Le=function(st){return Ae(Ie(st))},We=function(st){return String(st).replace(/[-_]/g,function(yt){return yt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Be=function(st){return Le(We(st))},He;z.Uint8Array&&(He=function(st){return Uint8Array.from(Pe(We(st)),function(yt){return yt.charCodeAt(0)})});var Ye=function(){var st=z.Base64;return z.Base64=ae,st};if(z.Base64={VERSION:re,atob:Pe,btoa:oe,fromBase64:Be,toBase64:ye,utob:fe,encode:ye,encodeURI:_e,btou:Ae,decode:Be,noConflict:Ye,fromUint8Array:Me,toUint8Array:He},typeof Object.defineProperty=="function"){var et=function(st){return{value:st,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",et(function(){return Be(this)})),Object.defineProperty(String.prototype,"toBase64",et(function(st){return ye(this,st)})),Object.defineProperty(String.prototype,"toBase64URI",et(function(){return ye(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),typeof ke!="undefined"&&ke.exports?ke.exports.Base64=z.Base64:typeof ve=="function"&&ve.amd&&ve([],function(){return z.Base64}),{Base64:z.Base64}})}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(x,ke,pe){"use strict";ke.exports=z;var ne=Object.prototype.hasOwnProperty;function z(ae,re,se){if(!ae)throw new TypeError("argument dest is required");if(!re)throw new TypeError("argument src is required");return se===void 0&&(se=!0),Object.getOwnPropertyNames(re).forEach(function(ie){if(!(!se&&ne.call(ae,ie))){var le=Object.getOwnPropertyDescriptor(re,ie);Object.defineProperty(ae,ie,le)}}),ae}},{}],373:[function(x,ke,pe){"use strict";x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.regexp.constructor.js"),x("core-js/modules/es.regexp.to-string.js");function ne(){this._types=Object.create(null),this._extensions=Object.create(null);for(var z=0;z<arguments.length;z++)this.define(arguments[z]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}ne.prototype.define=function(z,ae){for(var re in z){var se=z[re].map(function(ue){return ue.toLowerCase()});re=re.toLowerCase();for(var me=0;me<se.length;me++){var ie=se[me];if(ie[0]!=="*"){if(!ae&&ie in this._types)throw new Error('Attempt to change mapping for "'+ie+'" extension from "'+this._types[ie]+'" to "'+re+'". Pass `force=true` to allow this, otherwise remove "'+ie+'" from the list of extensions for "'+re+'".');this._types[ie]=re}}if(ae||!this._extensions[re]){var le=se[0];this._extensions[re]=le[0]!=="*"?le:le.substr(1)}}},ne.prototype.getType=function(z){z=String(z);var ae=z.replace(/^.*[/\\]/,"").toLowerCase(),re=ae.replace(/^.*\./,"").toLowerCase(),se=ae.length<z.length,me=re.length<ae.length-1;return(me||!se)&&this._types[re]||null},ne.prototype.getExtension=function(z){return z=/^\s*([^;\s]*)/.test(z)&&RegExp.$1,z&&this._extensions[z.toLowerCase()]||null},ke.exports=ne},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(x,ke,pe){"use strict";var ne=x("./Mime");ke.exports=new ne(x("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(x,ke,pe){"use strict";ke.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(x,ke,pe){var ne=1e3,z=ne*60,ae=z*60,re=ae*24,se=re*7,me=re*365.25;ke.exports=function(he,oe){oe=oe||{};var Se=typeof he;if(Se==="string"&&he.length>0)return ie(he);if(Se==="number"&&isFinite(he))return oe.long?ue(he):le(he);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(he))};function ie(he){if(he=String(he),!(he.length>100)){var oe=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(he);if(oe){var Se=parseFloat(oe[1]),Ce=(oe[2]||"ms").toLowerCase();switch(Ce){case"years":case"year":case"yrs":case"yr":case"y":return Se*me;case"weeks":case"week":case"w":return Se*se;case"days":case"day":case"d":return Se*re;case"hours":case"hour":case"hrs":case"hr":case"h":return Se*ae;case"minutes":case"minute":case"mins":case"min":case"m":return Se*z;case"seconds":case"second":case"secs":case"sec":case"s":return Se*ne;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Se;default:return}}}}function le(he){var oe=Math.abs(he);return oe>=re?Math.round(he/re)+"d":oe>=ae?Math.round(he/ae)+"h":oe>=z?Math.round(he/z)+"m":oe>=ne?Math.round(he/ne)+"s":he+"ms"}function ue(he){var oe=Math.abs(he);return oe>=re?fe(he,oe,re,"day"):oe>=ae?fe(he,oe,ae,"hour"):oe>=z?fe(he,oe,z,"minute"):oe>=ne?fe(he,oe,ne,"second"):he+" ms"}function fe(he,oe,Se,Ce){var ye=oe>=Se*1.5;return Math.round(he/Se)+" "+Ce+(ye?"s":"")}},{}],377:[function(x,ke,pe){"use strict";var ne=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;function re(me){if(me==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(me)}function se(){try{if(!Object.assign)return!1;var me=new String("abc");if(me[5]="de",Object.getOwnPropertyNames(me)[0]==="5")return!1;for(var ie={},le=0;le<10;le++)ie["_"+String.fromCharCode(le)]=le;var ue=Object.getOwnPropertyNames(ie).map(function(he){return ie[he]});if(ue.join("")!=="0123456789")return!1;var fe={};return"abcdefghijklmnopqrst".split("").forEach(function(he){fe[he]=he}),Object.keys(Object.assign({},fe)).join("")==="abcdefghijklmnopqrst"}catch(he){return!1}}ke.exports=se()?Object.assign:function(me,ie){for(var le,ue=re(me),fe,he=1;he<arguments.length;he++){le=Object(arguments[he]);for(var oe in le)z.call(le,oe)&&(ue[oe]=le[oe]);if(ne){fe=ne(le);for(var Se=0;Se<fe.length;Se++)ae.call(le,fe[Se])&&(ue[fe[Se]]=le[fe[Se]])}}return ue}},{}],378:[function(x,ke,pe){(function(ne){(function(){"use strict";function z(me){if(typeof me!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(me))}function ae(me,ie){for(var le="",ue=0,fe=-1,he=0,oe,Se=0;Se<=me.length;++Se){if(Se<me.length)oe=me.charCodeAt(Se);else{if(oe===47)break;oe=47}if(oe===47){if(!(fe===Se-1||he===1))if(fe!==Se-1&&he===2){if(le.length<2||ue!==2||le.charCodeAt(le.length-1)!==46||le.charCodeAt(le.length-2)!==46){if(le.length>2){var Ce=le.lastIndexOf("/");if(Ce!==le.length-1){Ce===-1?(le="",ue=0):(le=le.slice(0,Ce),ue=le.length-1-le.lastIndexOf("/")),fe=Se,he=0;continue}}else if(le.length===2||le.length===1){le="",ue=0,fe=Se,he=0;continue}}ie&&(le.length>0?le+="/..":le="..",ue=2)}else le.length>0?le+="/"+me.slice(fe+1,Se):le=me.slice(fe+1,Se),ue=Se-fe-1;fe=Se,he=0}else oe===46&&he!==-1?++he:he=-1}return le}function re(me,ie){var le=ie.dir||ie.root,ue=ie.base||(ie.name||"")+(ie.ext||"");return le?le===ie.root?le+ue:le+me+ue:ue}var se={resolve:function(){for(var ie="",le=!1,ue,fe=arguments.length-1;fe>=-1&&!le;fe--){var he;fe>=0?he=arguments[fe]:(ue===void 0&&(ue=ne.cwd()),he=ue),z(he),he.length!==0&&(ie=he+"/"+ie,le=he.charCodeAt(0)===47)}return ie=ae(ie,!le),le?ie.length>0?"/"+ie:"/":ie.length>0?ie:"."},normalize:function(ie){if(z(ie),ie.length===0)return".";var le=ie.charCodeAt(0)===47,ue=ie.charCodeAt(ie.length-1)===47;return ie=ae(ie,!le),ie.length===0&&!le&&(ie="."),ie.length>0&&ue&&(ie+="/"),le?"/"+ie:ie},isAbsolute:function(ie){return z(ie),ie.length>0&&ie.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ie,le=0;le<arguments.length;++le){var ue=arguments[le];z(ue),ue.length>0&&(ie===void 0?ie=ue:ie+="/"+ue)}return ie===void 0?".":se.normalize(ie)},relative:function(ie,le){if(z(ie),z(le),ie===le||(ie=se.resolve(ie),le=se.resolve(le),ie===le))return"";for(var ue=1;ue<ie.length&&ie.charCodeAt(ue)===47;++ue);for(var fe=ie.length,he=fe-ue,oe=1;oe<le.length&&le.charCodeAt(oe)===47;++oe);for(var Se=le.length,Ce=Se-oe,ye=he<Ce?he:Ce,_e=-1,Me=0;Me<=ye;++Me){if(Me===ye){if(Ce>ye){if(le.charCodeAt(oe+Me)===47)return le.slice(oe+Me+1);if(Me===0)return le.slice(oe+Me)}else he>ye&&(ie.charCodeAt(ue+Me)===47?_e=Me:Me===0&&(_e=0));break}var we=ie.charCodeAt(ue+Me),Ne=le.charCodeAt(oe+Me);if(we!==Ne)break;we===47&&(_e=Me)}var Ae="";for(Me=ue+_e+1;Me<=fe;++Me)(Me===fe||ie.charCodeAt(Me)===47)&&(Ae.length===0?Ae+="..":Ae+="/..");return Ae.length>0?Ae+le.slice(oe+_e):(oe+=_e,le.charCodeAt(oe)===47&&++oe,le.slice(oe))},_makeLong:function(ie){return ie},dirname:function(ie){if(z(ie),ie.length===0)return".";for(var le=ie.charCodeAt(0),ue=le===47,fe=-1,he=!0,oe=ie.length-1;oe>=1;--oe)if(le=ie.charCodeAt(oe),le===47){if(!he){fe=oe;break}}else he=!1;return fe===-1?ue?"/":".":ue&&fe===1?"//":ie.slice(0,fe)},basename:function(ie,le){if(le!==void 0&&typeof le!="string")throw new TypeError('"ext" argument must be a string');z(ie);var ue=0,fe=-1,he=!0,oe;if(le!==void 0&&le.length>0&&le.length<=ie.length){if(le.length===ie.length&&le===ie)return"";var Se=le.length-1,Ce=-1;for(oe=ie.length-1;oe>=0;--oe){var ye=ie.charCodeAt(oe);if(ye===47){if(!he){ue=oe+1;break}}else Ce===-1&&(he=!1,Ce=oe+1),Se>=0&&(ye===le.charCodeAt(Se)?--Se===-1&&(fe=oe):(Se=-1,fe=Ce))}return ue===fe?fe=Ce:fe===-1&&(fe=ie.length),ie.slice(ue,fe)}else{for(oe=ie.length-1;oe>=0;--oe)if(ie.charCodeAt(oe)===47){if(!he){ue=oe+1;break}}else fe===-1&&(he=!1,fe=oe+1);return fe===-1?"":ie.slice(ue,fe)}},extname:function(ie){z(ie);for(var le=-1,ue=0,fe=-1,he=!0,oe=0,Se=ie.length-1;Se>=0;--Se){var Ce=ie.charCodeAt(Se);if(Ce===47){if(!he){ue=Se+1;break}continue}fe===-1&&(he=!1,fe=Se+1),Ce===46?le===-1?le=Se:oe!==1&&(oe=1):le!==-1&&(oe=-1)}return le===-1||fe===-1||oe===0||oe===1&&le===fe-1&&le===ue+1?"":ie.slice(le,fe)},format:function(ie){if(ie===null||typeof ie!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ie);return re("/",ie)},parse:function(ie){z(ie);var le={root:"",dir:"",base:"",ext:"",name:""};if(ie.length===0)return le;var ue=ie.charCodeAt(0),fe=ue===47,he;fe?(le.root="/",he=1):he=0;for(var oe=-1,Se=0,Ce=-1,ye=!0,_e=ie.length-1,Me=0;_e>=he;--_e){if(ue=ie.charCodeAt(_e),ue===47){if(!ye){Se=_e+1;break}continue}Ce===-1&&(ye=!1,Ce=_e+1),ue===46?oe===-1?oe=_e:Me!==1&&(Me=1):oe!==-1&&(Me=-1)}return oe===-1||Ce===-1||Me===0||Me===1&&oe===Ce-1&&oe===Se+1?Ce!==-1&&(Se===0&&fe?le.base=le.name=ie.slice(1,Ce):le.base=le.name=ie.slice(Se,Ce)):(Se===0&&fe?(le.name=ie.slice(1,oe),le.base=ie.slice(1,Ce)):(le.name=ie.slice(Se,oe),le.base=ie.slice(Se,Ce)),le.ext=ie.slice(oe,Ce)),Se>0?le.dir=ie.slice(0,Se-1):fe&&(le.dir="/"),le},sep:"/",delimiter:":",win32:null,posix:null};se.posix=se,ke.exports=se}).call(this)}).call(this,x("_process"))},{_process:467}],379:[function(x,ke,pe){(function(ne){(function(){(function(){"use strict";var z={function:!0,object:!0},ae=z[typeof window]&&window||this,re=ae,se=z[typeof pe]&&pe,me=z[typeof ke]&&ke&&!ke.nodeType&&ke,ie=se&&me&&typeof ne=="object"&≠ie&&(ie.global===ie||ie.window===ie||ie.self===ie)&&(ae=ie);var le=Math.pow(2,53)-1,ue=/\bOpera/,fe=this,he=Object.prototype,oe=he.hasOwnProperty,Se=he.toString;function Ce(Be){return Be=String(Be),Be.charAt(0).toUpperCase()+Be.slice(1)}function ye(Be,He,Ye){var et={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return He&&Ye&&/^Win/i.test(Be)&&!/^Windows Phone /i.test(Be)&&(et=et[/[\d.]+$/.exec(Be)])&&(Be="Windows "+et),Be=String(Be),He&&Ye&&(Be=Be.replace(RegExp(He,"i"),Ye)),Be=Me(Be.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Be}function _e(Be,He){var Ye=-1,et=Be?Be.length:0;if(typeof et=="number"&&et>-1&&et<=le)for(;++Ye<et;)He(Be[Ye],Ye,Be);else we(Be,He)}function Me(Be){return Be=Pe(Be),/^(?:webOS|i(?:OS|P))/.test(Be)?Be:Ce(Be)}function we(Be,He){for(var Ye in Be)oe.call(Be,Ye)&&He(Be[Ye],Ye,Be)}function Ne(Be){return Be==null?Ce(Be):Se.call(Be).slice(8,-1)}function Ae(Be,He){var Ye=Be!=null?typeof Be[He]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ye)&&(Ye=="object"?!!Be[He]:!0)}function De(Be){return String(Be).replace(/([ -])(?!$)/g,"$1?")}function Ie(Be,He){var Ye=null;return _e(Be,function(et,st){Ye=He(Ye,et,st,Be)}),Ye}function Pe(Be){return String(Be).replace(/^ +| +$/g,"")}function Le(Be){var He=ae,Ye=Be&&typeof Be=="object"&&Ne(Be)!="String";Ye&&(He=Be,Be=null);var et=He.navigator||{},st=et.userAgent||"";Be||(Be=st);var yt=Ye||fe==re,Ve=Ye?!!et.likeChrome:/\bChrome\b/.test(Be)&&!/internal|\n/i.test(Se.toString()),Qe="Object",pt=Ye?Qe:"ScriptBridgingProxyObject",mt=Ye?Qe:"Environment",ft=Ye&&He.java?"JavaPackage":Ne(He.java),nt=Ye?Qe:"RuntimeObject",tt=/\bJava/.test(ft)&&He.java,rt=tt&&Ne(He.environment)==mt,Et=tt?"a":"\u03B1",bt=tt?"b":"\u03B2",Pt=He.document||{},Lt=He.operamini||He.opera,dt=ue.test(dt=Ye&&Lt?Lt["[[Class]]"]:Ne(Lt))?dt:Lt=null,Ze,Ke=Be,de=[],xe=null,ze=Be==st,$e=ze&&Lt&&typeof Lt.version=="function"&&Lt.version(),Ee,Re=Kt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Fe=St(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Ge=jt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),it=kt({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),gt=Wt(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Kt(Dt){return Ie(Dt,function(xt,en){return xt||RegExp("\\b"+(en.pattern||De(en))+"\\b","i").exec(Be)&&(en.label||en)})}function kt(Dt){return Ie(Dt,function(xt,en,an){return xt||(en[Ge]||en[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ge)]||RegExp("\\b"+De(an)+"(?:\\b|\\w*\\d)","i").exec(Be))&&an})}function St(Dt){return Ie(Dt,function(xt,en){return xt||RegExp("\\b"+(en.pattern||De(en))+"\\b","i").exec(Be)&&(en.label||en)})}function Wt(Dt){return Ie(Dt,function(xt,en){var an=en.pattern||De(en);return!xt&&(xt=RegExp("\\b"+an+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Be))&&(xt=ye(xt,an,en.label||en)),xt})}function jt(Dt){return Ie(Dt,function(xt,en){var an=en.pattern||De(en);return!xt&&(xt=RegExp("\\b"+an+" *\\d+[.\\w_]*","i").exec(Be)||RegExp("\\b"+an+" *\\w+-[\\w]*","i").exec(Be)||RegExp("\\b"+an+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Be))&&((xt=String(en.label&&!RegExp(an,"i").test(en.label)?en.label:xt).split("/"))[1]&&!/[\d.]+/.test(xt[0])&&(xt[0]+=" "+xt[1]),en=en.label||en,xt=Me(xt[0].replace(RegExp(an,"i"),en).replace(RegExp("; *(?:"+en+"[_-])?","i")," ").replace(RegExp("("+en+")[-_.]?(\\w)","i"),"$1 $2"))),xt})}function Vt(Dt){return Ie(Dt,function(xt,en){return xt||(RegExp(en+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Be)||0)[1]||null})}function _t(){return this.description||""}if(Re&&(Re=[Re]),/\bAndroid\b/.test(gt)&&!Ge&&(Ze=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Be))&&(Ge=Pe(Ze[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),it&&!Ge?Ge=jt([it]):it&&Ge&&(Ge=Ge.replace(RegExp("^("+De(it)+")[-_.\\s]","i"),it+" ").replace(RegExp("^("+De(it)+")[-_.]?(\\w)","i"),it+" $2")),(Ze=/\bGoogle TV\b/.exec(Ge))&&(Ge=Ze[0]),/\bSimulator\b/i.test(Be)&&(Ge=(Ge?Ge+" ":"")+"Simulator"),Fe=="Opera Mini"&&/\bOPiOS\b/.test(Be)&&de.push("running in Turbo/Uncompressed mode"),Fe=="IE"&&/\blike iPhone OS\b/.test(Be)?(Ze=Le(Be.replace(/like iPhone OS/,"")),it=Ze.manufacturer,Ge=Ze.product):/^iP/.test(Ge)?(Fe||(Fe="Safari"),gt="iOS"+((Ze=/ OS ([\d_]+)/i.exec(Be))?" "+Ze[1].replace(/_/g,"."):"")):Fe=="Konqueror"&&/^Linux\b/i.test(gt)?gt="Kubuntu":it&&it!="Google"&&(/Chrome/.test(Fe)&&!/\bMobile Safari\b/i.test(Be)||/\bVita\b/.test(Ge))||/\bAndroid\b/.test(gt)&&/^Chrome/.test(Fe)&&/\bVersion\//i.test(Be)?(Fe="Android Browser",gt=/\bAndroid\b/.test(gt)?gt:"Android"):Fe=="Silk"?(/\bMobi/i.test(Be)||(gt="Android",de.unshift("desktop mode")),/Accelerated *= *true/i.test(Be)&&de.unshift("accelerated")):Fe=="UC Browser"&&/\bUCWEB\b/.test(Be)?de.push("speed mode"):Fe=="PaleMoon"&&(Ze=/\bFirefox\/([\d.]+)\b/.exec(Be))?de.push("identifying as Firefox "+Ze[1]):Fe=="Firefox"&&(Ze=/\b(Mobile|Tablet|TV)\b/i.exec(Be))?(gt||(gt="Firefox OS"),Ge||(Ge=Ze[1])):!Fe||(Ze=!/\bMinefield\b/i.test(Be)&&/\b(?:Firefox|Safari)\b/.exec(Fe))?(Fe&&!Ge&&/[\/,]|^[^(]+?\)/.test(Be.slice(Be.indexOf(Ze+"/")+8))&&(Fe=null),(Ze=Ge||it||gt)&&(Ge||it||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(gt))&&(Fe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(gt)?gt:Ze)+" Browser")):Fe=="Electron"&&(Ze=(/\bChrome\/([\d.]+)\b/.exec(Be)||0)[1])&&de.push("Chromium "+Ze),$e||($e=Vt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",De(Fe),"(?:Firefox|Minefield|NetFront)"])),(Ze=Re=="iCab"&&parseFloat($e)>3&&"WebKit"||/\bOpera\b/.test(Fe)&&(/\bOPR\b/.test(Be)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Be)&&!/^(?:Trident|EdgeHTML)$/.test(Re)&&"WebKit"||!Re&&/\bMSIE\b/i.test(Be)&&(gt=="Mac OS"?"Tasman":"Trident")||Re=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Fe)&&"NetFront")&&(Re=[Ze]),Fe=="IE"&&(Ze=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Be)||0)[1])?(Fe+=" Mobile",gt="Windows Phone "+(/\+$/.test(Ze)?Ze:Ze+".x"),de.unshift("desktop mode")):/\bWPDesktop\b/i.test(Be)?(Fe="IE Mobile",gt="Windows Phone 8.x",de.unshift("desktop mode"),$e||($e=(/\brv:([\d.]+)/.exec(Be)||0)[1])):Fe!="IE"&&Re=="Trident"&&(Ze=/\brv:([\d.]+)/.exec(Be))&&(Fe&&de.push("identifying as "+Fe+($e?" "+$e:"")),Fe="IE",$e=Ze[1]),ze){if(Ae(He,"global"))if(tt&&(Ze=tt.lang.System,Ke=Ze.getProperty("os.arch"),gt=gt||Ze.getProperty("os.name")+" "+Ze.getProperty("os.version")),rt){try{$e=He.require("ringo/engine").version.join("."),Fe="RingoJS"}catch(Dt){(Ze=He.system)&&Ze.global.system==He.system&&(Fe="Narwhal",gt||(gt=Ze[0].os||null))}Fe||(Fe="Rhino")}else typeof He.process=="object"&&!He.process.browser&&(Ze=He.process)&&(typeof Ze.versions=="object"&&(typeof Ze.versions.electron=="string"?(de.push("Node "+Ze.versions.node),Fe="Electron",$e=Ze.versions.electron):typeof Ze.versions.nw=="string"&&(de.push("Chromium "+$e,"Node "+Ze.versions.node),Fe="NW.js",$e=Ze.versions.nw)),Fe||(Fe="Node.js",Ke=Ze.arch,gt=Ze.platform,$e=/[\d.]+/.exec(Ze.version),$e=$e?$e[0]:null));else Ne(Ze=He.runtime)==pt?(Fe="Adobe AIR",gt=Ze.flash.system.Capabilities.os):Ne(Ze=He.phantom)==nt?(Fe="PhantomJS",$e=(Ze=Ze.version||null)&&Ze.major+"."+Ze.minor+"."+Ze.patch):typeof Pt.documentMode=="number"&&(Ze=/\bTrident\/(\d+)/i.exec(Be))?($e=[$e,Pt.documentMode],(Ze=+Ze[1]+4)!=$e[1]&&(de.push("IE "+$e[1]+" mode"),Re&&(Re[1]=""),$e[1]=Ze),$e=Fe=="IE"?String($e[1].toFixed(1)):$e[0]):typeof Pt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Fe)&&(de.push("masking as "+Fe+" "+$e),Fe="IE",$e="11.0",Re=["Trident"],gt="Windows");gt=gt&&Me(gt)}if($e&&(Ze=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($e)||/(?:alpha|beta)(?: ?\d)?/i.exec(Be+";"+(ze&&et.appMinorVersion))||/\bMinefield\b/i.test(Be)&&"a")&&(xe=/b/i.test(Ze)?"beta":"alpha",$e=$e.replace(RegExp(Ze+"\\+?$"),"")+(xe=="beta"?bt:Et)+(/\d+\+?/.exec(Ze)||"")),Fe=="Fennec"||Fe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(gt))Fe="Firefox Mobile";else if(Fe=="Maxthon"&&$e)$e=$e.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ge))Ge=="Xbox 360"&&(gt=null),Ge=="Xbox 360"&&/\bIEMobile\b/.test(Be)&&de.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Fe)||Fe&&!Ge&&!/Browser|Mobi/.test(Fe))&&(gt=="Windows CE"||/Mobi/i.test(Be)))Fe+=" Mobile";else if(Fe=="IE"&&ze)try{He.external===null&&de.unshift("platform preview")}catch(Dt){de.unshift("embedded")}else(/\bBlackBerry\b/.test(Ge)||/\bBB10\b/.test(Be))&&(Ze=(RegExp(Ge.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Be)||0)[1]||$e)?(Ze=[Ze,/BB10/.test(Be)],gt=(Ze[1]?(Ge=null,it="BlackBerry"):"Device Software")+" "+Ze[0],$e=null):this!=we&&Ge!="Wii"&&(ze&&Lt||/Opera/.test(Fe)&&/\b(?:MSIE|Firefox)\b/i.test(Be)||Fe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(gt)||Fe=="IE"&&(gt&&!/^Win/.test(gt)&&$e>5.5||/\bWindows XP\b/.test(gt)&&$e>8||$e==8&&!/\bTrident\b/.test(Be)))&&!ue.test(Ze=Le.call(we,Be.replace(ue,"")+";"))&&Ze.name&&(Ze="ing as "+Ze.name+((Ze=Ze.version)?" "+Ze:""),ue.test(Fe)?(/\bIE\b/.test(Ze)&>=="Mac OS"&&(gt=null),Ze="identify"+Ze):(Ze="mask"+Ze,dt?Fe=Me(dt.replace(/([a-z])([A-Z])/g,"$1 $2")):Fe="Opera",/\bIE\b/.test(Ze)&&(gt=null),ze||($e=null)),Re=["Presto"],de.push(Ze));(Ze=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Be)||0)[1])&&(Ze=[parseFloat(Ze.replace(/\.(\d)$/,".0$1")),Ze],Fe=="Safari"&&Ze[1].slice(-1)=="+"?(Fe="WebKit Nightly",xe="alpha",$e=Ze[1].slice(0,-1)):($e==Ze[1]||$e==(Ze[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Be)||0)[1]))&&($e=null),Ze[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Be)||0)[1],Ze[0]==537.36&&Ze[2]==537.36&&parseFloat(Ze[1])>=28&&Re=="WebKit"&&(Re=["Blink"]),!ze||!Ve&&!Ze[1]?(Re&&(Re[1]="like Safari"),Ze=(Ze=Ze[0],Ze<400?1:Ze<500?2:Ze<526?3:Ze<533?4:Ze<534?"4+":Ze<535?5:Ze<537?6:Ze<538?7:Ze<601?8:Ze<602?9:Ze<604?10:Ze<606?11:Ze<608?12:"12")):(Re&&(Re[1]="like Chrome"),Ze=Ze[1]||(Ze=Ze[0],Ze<530?1:Ze<532?2:Ze<532.05?3:Ze<533?4:Ze<534.03?5:Ze<534.07?6:Ze<534.1?7:Ze<534.13?8:Ze<534.16?9:Ze<534.24?10:Ze<534.3?11:Ze<535.01?12:Ze<535.02?"13+":Ze<535.07?15:Ze<535.11?16:Ze<535.19?17:Ze<536.05?18:Ze<536.1?19:Ze<537.01?20:Ze<537.11?"21+":Ze<537.13?23:Ze<537.18?24:Ze<537.24?25:Ze<537.36?26:Re!="Blink"?"27":"28")),Re&&(Re[1]+=" "+(Ze+=typeof Ze=="number"?".x":/[.+]/.test(Ze)?"":"+")),Fe=="Safari"&&(!$e||parseInt($e)>45)?$e=Ze:Fe=="Chrome"&&/\bHeadlessChrome/i.test(Be)&&de.unshift("headless")),Fe=="Opera"&&(Ze=/\bzbov|zvav$/.exec(gt))?(Fe+=" ",de.unshift("desktop mode"),Ze=="zvav"?(Fe+="Mini",$e=null):Fe+="Mobile",gt=gt.replace(RegExp(" *"+Ze+"$"),"")):Fe=="Safari"&&/\bChrome\b/.exec(Re&&Re[1])?(de.unshift("desktop mode"),Fe="Chrome Mobile",$e=null,/\bOS X\b/.test(gt)?(it="Apple",gt="iOS 4.3+"):gt=null):/\bSRWare Iron\b/.test(Fe)&&!$e&&($e=Vt("Chrome")),$e&&$e.indexOf(Ze=/[\d.]+$/.exec(gt))==0&&Be.indexOf("/"+Ze+"-")>-1&&(gt=Pe(gt.replace(Ze,""))),gt&>.indexOf(Fe)!=-1&&!RegExp(Fe+" OS").test(gt)&&(gt=gt.replace(RegExp(" *"+De(Fe)+" *"),"")),Re&&!/\b(?:Avant|Nook)\b/.test(Fe)&&(/Browser|Lunascape|Maxthon/.test(Fe)||Fe!="Safari"&&/^iOS/.test(gt)&&/\bSafari\b/.test(Re[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Fe)&&Re[1])&&(Ze=Re[Re.length-1])&&de.push(Ze),de.length&&(de=["("+de.join("; ")+")"]),it&&Ge&&Ge.indexOf(it)<0&&de.push("on "+it),Ge&&de.push((/^on /.test(de[de.length-1])?"":"on ")+Ge),gt&&(Ze=/ ([\d.+]+)$/.exec(gt),Ee=Ze&>.charAt(gt.length-Ze[0].length-1)=="/",gt={architecture:32,family:Ze&&!Ee?gt.replace(Ze[0],""):gt,version:Ze?Ze[1]:null,toString:function(){var Dt=this.version;return this.family+(Dt&&!Ee?" "+Dt:"")+(this.architecture==64?" 64-bit":"")}}),(Ze=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ke))&&!/\bi686\b/i.test(Ke)?(gt&&(gt.architecture=64,gt.family=gt.family.replace(RegExp(" *"+Ze),"")),Fe&&(/\bWOW64\b/i.test(Be)||ze&&/\w(?:86|32)$/.test(et.cpuClass||et.platform)&&!/\bWin64; x64\b/i.test(Be))&&de.unshift("32-bit")):gt&&/^OS X/.test(gt.family)&&Fe=="Chrome"&&parseFloat($e)>=39&&(gt.architecture=64),Be||(Be=null);var sn={};return sn.description=Be,sn.layout=Re&&Re[0],sn.manufacturer=it,sn.name=Fe,sn.prerelease=xe,sn.product=Ge,sn.ua=Be,sn.version=Fe&&$e,sn.os=gt||{architecture:null,family:null,version:null,toString:function(){return"null"}},sn.parse=Le,sn.toString=_t,sn.version&&de.unshift($e),sn.name&&de.unshift(Fe),gt&&Fe&&!(gt==String(gt).split(" ")[0]&&(gt==Fe.split(" ")[0]||Ge))&&de.push(Ge?"("+gt+")":"on "+gt),de.length&&(sn.description=de.join(" ")),sn}var We=Le();typeof ve=="function"&&typeof ve.amd=="object"&&ve.amd?(ae.platform=We,ve(function(){return We})):se&&me?we(We,function(Be,He){se[He]=Be}):ae.platform=We}).call(this)}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(x,ke,pe){(function(ne){(function(){"use strict";typeof ne=="undefined"||!ne.version||ne.version.indexOf("v0.")===0||ne.version.indexOf("v1.")===0&&ne.version.indexOf("v1.8.")!==0?ke.exports={nextTick:z}:ke.exports=ne;function z(ae,re,se,me){if(typeof ae!="function")throw new TypeError('"callback" argument must be a function');var ie=arguments.length,le,ue;switch(ie){case 0:case 1:return ne.nextTick(ae);case 2:return ne.nextTick(function(){ae.call(null,re)});case 3:return ne.nextTick(function(){ae.call(null,re,se)});case 4:return ne.nextTick(function(){ae.call(null,re,se,me)});default:for(le=new Array(ie-1),ue=0;ue<le.length;)le[ue++]=arguments[ue];return ne.nextTick(function(){ae.apply(null,le)})}}}).call(this)}).call(this,x("_process"))},{_process:467}],381:[function(x,ke,pe){var ne=ke.exports={},z,ae;function re(){throw new Error("setTimeout has not been defined")}function se(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=re}catch(_e){z=re}try{typeof clearTimeout=="function"?ae=clearTimeout:ae=se}catch(_e){ae=se}})();function me(_e){if(z===setTimeout)return setTimeout(_e,0);if((z===re||!z)&&setTimeout)return z=setTimeout,setTimeout(_e,0);try{return z(_e,0)}catch(Me){try{return z.call(null,_e,0)}catch(we){return z.call(this,_e,0)}}}function ie(_e){if(ae===clearTimeout)return clearTimeout(_e);if((ae===se||!ae)&&clearTimeout)return ae=clearTimeout,clearTimeout(_e);try{return ae(_e)}catch(Me){try{return ae.call(null,_e)}catch(we){return ae.call(this,_e)}}}var le=[],ue=!1,fe,he=-1;function oe(){!ue||!fe||(ue=!1,fe.length?le=fe.concat(le):he=-1,le.length&&Se())}function Se(){if(!ue){var _e=me(oe);ue=!0;for(var Me=le.length;Me;){for(fe=le,le=[];++he<Me;)fe&&fe[he].run();he=-1,Me=le.length}fe=null,ue=!1,ie(_e)}}ne.nextTick=function(_e){var Me=new Array(arguments.length-1);if(arguments.length>1)for(var we=1;we<arguments.length;we++)Me[we-1]=arguments[we];le.push(new Ce(_e,Me)),le.length===1&&!ue&&me(Se)};function Ce(_e,Me){this.fun=_e,this.array=Me}Ce.prototype.run=function(){this.fun.apply(null,this.array)},ne.title="browser",ne.browser=!0,ne.env={},ne.argv=[],ne.version="",ne.versions={};function ye(){}ne.on=ye,ne.addListener=ye,ne.once=ye,ne.off=ye,ne.removeListener=ye,ne.removeAllListeners=ye,ne.emit=ye,ne.prependListener=ye,ne.prependOnceListener=ye,ne.listeners=function(_e){return[]},ne.binding=function(_e){throw new Error("process.binding is not supported")},ne.cwd=function(){return"/"},ne.chdir=function(_e){throw new Error("process.chdir is not supported")},ne.umask=function(){return 0}},{}],382:[function(x,ke,pe){(function(ne){(function(){(function(z){var ae=typeof pe=="object"&&pe&&!pe.nodeType&&pe,re=typeof ke=="object"&&ke&&!ke.nodeType&&ke,se=typeof ne=="object"&≠(se.global===se||se.window===se||se.self===se)&&(z=se);var me,ie=2147483647,le=36,ue=1,fe=26,he=38,oe=700,Se=72,Ce=128,ye="-",_e=/^xn--/,Me=/[^\x20-\x7E]/,we=/[\x2E\u3002\uFF0E\uFF61]/g,Ne={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ae=le-ue,De=Math.floor,Ie=String.fromCharCode,Pe;function Le(ft){throw new RangeError(Ne[ft])}function We(ft,nt){for(var tt=ft.length,rt=[];tt--;)rt[tt]=nt(ft[tt]);return rt}function Be(ft,nt){var tt=ft.split("@"),rt="";tt.length>1&&(rt=tt[0]+"@",ft=tt[1]),ft=ft.replace(we,".");var Et=ft.split("."),bt=We(Et,nt).join(".");return rt+bt}function He(ft){for(var nt=[],tt=0,rt=ft.length,Et,bt;tt<rt;)Et=ft.charCodeAt(tt++),Et>=55296&&Et<=56319&&tt<rt?(bt=ft.charCodeAt(tt++),(bt&64512)==56320?nt.push(((Et&1023)<<10)+(bt&1023)+65536):(nt.push(Et),tt--)):nt.push(Et);return nt}function Ye(ft){return We(ft,function(nt){var tt="";return nt>65535&&(nt-=65536,tt+=Ie(nt>>>10&1023|55296),nt=56320|nt&1023),tt+=Ie(nt),tt}).join("")}function et(ft){return ft-48<10?ft-22:ft-65<26?ft-65:ft-97<26?ft-97:le}function st(ft,nt){return ft+22+75*(ft<26)-((nt!=0)<<5)}function yt(ft,nt,tt){var rt=0;for(ft=tt?De(ft/oe):ft>>1,ft+=De(ft/nt);ft>Ae*fe>>1;rt+=le)ft=De(ft/Ae);return De(rt+(Ae+1)*ft/(ft+he))}function Ve(ft){var nt=[],tt=ft.length,rt,Et=0,bt=Ce,Pt=Se,Lt,dt,Ze,Ke,de,xe,ze,$e,Ee;for(Lt=ft.lastIndexOf(ye),Lt<0&&(Lt=0),dt=0;dt<Lt;++dt)ft.charCodeAt(dt)>=128&&Le("not-basic"),nt.push(ft.charCodeAt(dt));for(Ze=Lt>0?Lt+1:0;Ze<tt;){for(Ke=Et,de=1,xe=le;Ze>=tt&&Le("invalid-input"),ze=et(ft.charCodeAt(Ze++)),(ze>=le||ze>De((ie-Et)/de))&&Le("overflow"),Et+=ze*de,$e=xe<=Pt?ue:xe>=Pt+fe?fe:xe-Pt,!(ze<$e);xe+=le)Ee=le-$e,de>De(ie/Ee)&&Le("overflow"),de*=Ee;rt=nt.length+1,Pt=yt(Et-Ke,rt,Ke==0),De(Et/rt)>ie-bt&&Le("overflow"),bt+=De(Et/rt),Et%=rt,nt.splice(Et++,0,bt)}return Ye(nt)}function Qe(ft){var nt,tt,rt,Et,bt,Pt,Lt,dt,Ze,Ke,de,xe=[],ze,$e,Ee,Re;for(ft=He(ft),ze=ft.length,nt=Ce,tt=0,bt=Se,Pt=0;Pt<ze;++Pt)de=ft[Pt],de<128&&xe.push(Ie(de));for(rt=Et=xe.length,Et&&xe.push(ye);rt<ze;){for(Lt=ie,Pt=0;Pt<ze;++Pt)de=ft[Pt],de>=nt&&de<Lt&&(Lt=de);for($e=rt+1,Lt-nt>De((ie-tt)/$e)&&Le("overflow"),tt+=(Lt-nt)*$e,nt=Lt,Pt=0;Pt<ze;++Pt)if(de=ft[Pt],de<nt&&++tt>ie&&Le("overflow"),de==nt){for(dt=tt,Ze=le;Ke=Ze<=bt?ue:Ze>=bt+fe?fe:Ze-bt,!(dt<Ke);Ze+=le)Re=dt-Ke,Ee=le-Ke,xe.push(Ie(st(Ke+Re%Ee,0))),dt=De(Re/Ee);xe.push(Ie(st(dt,0))),bt=yt(tt,$e,rt==Et),tt=0,++rt}++tt,++nt}return xe.join("")}function pt(ft){return Be(ft,function(nt){return _e.test(nt)?Ve(nt.slice(4).toLowerCase()):nt})}function mt(ft){return Be(ft,function(nt){return Me.test(nt)?"xn--"+Qe(nt):nt})}if(me={version:"1.4.1",ucs2:{decode:He,encode:Ye},decode:Ve,encode:Qe,toASCII:mt,toUnicode:pt},typeof ve=="function"&&typeof ve.amd=="object"&&ve.amd)ve("punycode",function(){return me});else if(ae&&re)if(ke.exports==ae)re.exports=me;else for(Pe in me)me.hasOwnProperty(Pe)&&(ae[Pe]=me[Pe]);else z.punycode=me})(this)}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(x,ke,pe){"use strict";function ne(ae,re){return Object.prototype.hasOwnProperty.call(ae,re)}ke.exports=function(ae,re,se,me){re=re||"&",se=se||"=";var ie={};if(typeof ae!="string"||ae.length===0)return ie;var le=/\+/g;ae=ae.split(re);var ue=1e3;me&&typeof me.maxKeys=="number"&&(ue=me.maxKeys);var fe=ae.length;ue>0&&fe>ue&&(fe=ue);for(var he=0;he<fe;++he){var oe=ae[he].replace(le,"%20"),Se=oe.indexOf(se),Ce,ye,_e,Me;Se>=0?(Ce=oe.substr(0,Se),ye=oe.substr(Se+1)):(Ce=oe,ye=""),_e=decodeURIComponent(Ce),Me=decodeURIComponent(ye),ne(ie,_e)?z(ie[_e])?ie[_e].push(Me):ie[_e]=[ie[_e],Me]:ie[_e]=Me}return ie};var z=Array.isArray||function(ae){return Object.prototype.toString.call(ae)==="[object Array]"}},{}],384:[function(x,ke,pe){"use strict";var ne=function(se){switch(typeof se){case"string":return se;case"boolean":return se?"true":"false";case"number":return isFinite(se)?se:"";default:return""}};ke.exports=function(se,me,ie,le){return me=me||"&",ie=ie||"=",se===null&&(se=void 0),typeof se=="object"?ae(re(se),function(ue){var fe=encodeURIComponent(ne(ue))+ie;return z(se[ue])?ae(se[ue],function(he){return fe+encodeURIComponent(ne(he))}).join(me):fe+encodeURIComponent(ne(se[ue]))}).join(me):le?encodeURIComponent(ne(le))+ie+encodeURIComponent(ne(se)):""};var z=Array.isArray||function(se){return Object.prototype.toString.call(se)==="[object Array]"};function ae(se,me){if(se.map)return se.map(me);for(var ie=[],le=0;le<se.length;le++)ie.push(me(se[le],le));return ie}var re=Object.keys||function(se){var me=[];for(var ie in se)Object.prototype.hasOwnProperty.call(se,ie)&&me.push(ie);return me}},{}],385:[function(x,ke,pe){"use strict";pe.decode=pe.parse=x("./decode"),pe.encode=pe.stringify=x("./encode")},{"./decode":383,"./encode":384}],386:[function(x,ke,pe){"use strict";var ne=x("process-nextick-args"),z=Object.keys||function(oe){var Se=[];for(var Ce in oe)Se.push(Ce);return Se};ke.exports=ue;var ae=Object.create(x("core-util-is"));ae.inherits=x("inherits");var re=x("./_stream_readable"),se=x("./_stream_writable");ae.inherits(ue,re);for(var me=z(se.prototype),ie=0;ie<me.length;ie++){var le=me[ie];ue.prototype[le]||(ue.prototype[le]=se.prototype[le])}function ue(oe){if(!(this instanceof ue))return new ue(oe);re.call(this,oe),se.call(this,oe),oe&&oe.readable===!1&&(this.readable=!1),oe&&oe.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,oe&&oe.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",fe)}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function fe(){this.allowHalfOpen||this._writableState.ended||ne.nextTick(he,this)}function he(oe){oe.end()}Object.defineProperty(ue.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(oe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=oe,this._writableState.destroyed=oe)}}),ue.prototype._destroy=function(oe,Se){this.push(null),this.end(),ne.nextTick(Se,oe)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(x,ke,pe){"use strict";ke.exports=ae;var ne=x("./_stream_transform"),z=Object.create(x("core-util-is"));z.inherits=x("inherits"),z.inherits(ae,ne);function ae(re){if(!(this instanceof ae))return new ae(re);ne.call(this,re)}ae.prototype._transform=function(re,se,me){me(null,re)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(x,ke,pe){(function(ne,z){(function(){"use strict";var ae=x("process-nextick-args");ke.exports=Ie;var re=x("isarray"),se;Ie.ReadableState=De;var me=x("events").EventEmitter,ie=function(de,xe){return de.listeners(xe).length},le=x("./internal/streams/stream"),ue=x("safe-buffer").Buffer,fe=z.Uint8Array||function(){};function he(de){return ue.from(de)}function oe(de){return ue.isBuffer(de)||de instanceof fe}var Se=Object.create(x("core-util-is"));Se.inherits=x("inherits");var Ce=x("util"),ye=void 0;Ce&&Ce.debuglog?ye=Ce.debuglog("stream"):ye=function(){};var _e=x("./internal/streams/BufferList"),Me=x("./internal/streams/destroy"),we;Se.inherits(Ie,le);var Ne=["error","close","destroy","pause","resume"];function Ae(de,xe,ze){if(typeof de.prependListener=="function")return de.prependListener(xe,ze);!de._events||!de._events[xe]?de.on(xe,ze):re(de._events[xe])?de._events[xe].unshift(ze):de._events[xe]=[ze,de._events[xe]]}function De(de,xe){se=se||x("./_stream_duplex"),de=de||{};var ze=xe instanceof se;this.objectMode=!!de.objectMode,ze&&(this.objectMode=this.objectMode||!!de.readableObjectMode);var $e=de.highWaterMark,Ee=de.readableHighWaterMark,Re=this.objectMode?16:16*1024;$e||$e===0?this.highWaterMark=$e:ze&&(Ee||Ee===0)?this.highWaterMark=Ee:this.highWaterMark=Re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _e,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=de.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,de.encoding&&(we||(we=x("string_decoder/").StringDecoder),this.decoder=new we(de.encoding),this.encoding=de.encoding)}function Ie(de){if(se=se||x("./_stream_duplex"),!(this instanceof Ie))return new Ie(de);this._readableState=new De(de,this),this.readable=!0,de&&(typeof de.read=="function"&&(this._read=de.read),typeof de.destroy=="function"&&(this._destroy=de.destroy)),le.call(this)}Object.defineProperty(Ie.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(de){this._readableState&&(this._readableState.destroyed=de)}}),Ie.prototype.destroy=Me.destroy,Ie.prototype._undestroy=Me.undestroy,Ie.prototype._destroy=function(de,xe){this.push(null),xe(de)},Ie.prototype.push=function(de,xe){var ze=this._readableState,$e;return ze.objectMode?$e=!0:typeof de=="string"&&(xe=xe||ze.defaultEncoding,xe!==ze.encoding&&(de=ue.from(de,xe),xe=""),$e=!0),Pe(this,de,xe,!1,$e)},Ie.prototype.unshift=function(de){return Pe(this,de,null,!0,!1)};function Pe(de,xe,ze,$e,Ee){var Re=de._readableState;if(xe===null)Re.reading=!1,st(de,Re);else{var Fe;Ee||(Fe=We(Re,xe)),Fe?de.emit("error",Fe):Re.objectMode||xe&&xe.length>0?(typeof xe!="string"&&!Re.objectMode&&Object.getPrototypeOf(xe)!==ue.prototype&&(xe=he(xe)),$e?Re.endEmitted?de.emit("error",new Error("stream.unshift() after end event")):Le(de,Re,xe,!0):Re.ended?de.emit("error",new Error("stream.push() after EOF")):(Re.reading=!1,Re.decoder&&!ze?(xe=Re.decoder.write(xe),Re.objectMode||xe.length!==0?Le(de,Re,xe,!1):Qe(de,Re)):Le(de,Re,xe,!1))):$e||(Re.reading=!1)}return Be(Re)}function Le(de,xe,ze,$e){xe.flowing&&xe.length===0&&!xe.sync?(de.emit("data",ze),de.read(0)):(xe.length+=xe.objectMode?1:ze.length,$e?xe.buffer.unshift(ze):xe.buffer.push(ze),xe.needReadable&&yt(de)),Qe(de,xe)}function We(de,xe){var ze;return!oe(xe)&&typeof xe!="string"&&xe!==void 0&&!de.objectMode&&(ze=new TypeError("Invalid non-string/buffer chunk")),ze}function Be(de){return!de.ended&&(de.needReadable||de.length<de.highWaterMark||de.length===0)}Ie.prototype.isPaused=function(){return this._readableState.flowing===!1},Ie.prototype.setEncoding=function(de){return we||(we=x("string_decoder/").StringDecoder),this._readableState.decoder=new we(de),this._readableState.encoding=de,this};var He=8388608;function Ye(de){return de>=He?de=He:(de--,de|=de>>>1,de|=de>>>2,de|=de>>>4,de|=de>>>8,de|=de>>>16,de++),de}function et(de,xe){return de<=0||xe.length===0&&xe.ended?0:xe.objectMode?1:de!==de?xe.flowing&&xe.length?xe.buffer.head.data.length:xe.length:(de>xe.highWaterMark&&(xe.highWaterMark=Ye(de)),de<=xe.length?de:xe.ended?xe.length:(xe.needReadable=!0,0))}Ie.prototype.read=function(de){ye("read",de),de=parseInt(de,10);var xe=this._readableState,ze=de;if(de!==0&&(xe.emittedReadable=!1),de===0&&xe.needReadable&&(xe.length>=xe.highWaterMark||xe.ended))return ye("read: emitReadable",xe.length,xe.ended),xe.length===0&&xe.ended?dt(this):yt(this),null;if(de=et(de,xe),de===0&&xe.ended)return xe.length===0&&dt(this),null;var $e=xe.needReadable;ye("need readable",$e),(xe.length===0||xe.length-de<xe.highWaterMark)&&($e=!0,ye("length less than watermark",$e)),xe.ended||xe.reading?($e=!1,ye("reading or ended",$e)):$e&&(ye("do read"),xe.reading=!0,xe.sync=!0,xe.length===0&&(xe.needReadable=!0),this._read(xe.highWaterMark),xe.sync=!1,xe.reading||(de=et(ze,xe)));var Ee;return de>0?Ee=Et(de,xe):Ee=null,Ee===null?(xe.needReadable=!0,de=0):xe.length-=de,xe.length===0&&(xe.ended||(xe.needReadable=!0),ze!==de&&xe.ended&&dt(this)),Ee!==null&&this.emit("data",Ee),Ee};function st(de,xe){if(!xe.ended){if(xe.decoder){var ze=xe.decoder.end();ze&&ze.length&&(xe.buffer.push(ze),xe.length+=xe.objectMode?1:ze.length)}xe.ended=!0,yt(de)}}function yt(de){var xe=de._readableState;xe.needReadable=!1,xe.emittedReadable||(ye("emitReadable",xe.flowing),xe.emittedReadable=!0,xe.sync?ae.nextTick(Ve,de):Ve(de))}function Ve(de){ye("emit readable"),de.emit("readable"),rt(de)}function Qe(de,xe){xe.readingMore||(xe.readingMore=!0,ae.nextTick(pt,de,xe))}function pt(de,xe){for(var ze=xe.length;!xe.reading&&!xe.flowing&&!xe.ended&&xe.length<xe.highWaterMark&&(ye("maybeReadMore read 0"),de.read(0),ze!==xe.length);)ze=xe.length;xe.readingMore=!1}Ie.prototype._read=function(de){this.emit("error",new Error("_read() is not implemented"))},Ie.prototype.pipe=function(de,xe){var ze=this,$e=this._readableState;switch($e.pipesCount){case 0:$e.pipes=de;break;case 1:$e.pipes=[$e.pipes,de];break;default:$e.pipes.push(de);break}$e.pipesCount+=1,ye("pipe count=%d opts=%j",$e.pipesCount,xe);var Ee=(!xe||xe.end!==!1)&&de!==ne.stdout&&de!==ne.stderr,Re=Ee?Ge:_t;$e.endEmitted?ae.nextTick(Re):ze.once("end",Re),de.on("unpipe",Fe);function Fe(sn,Dt){ye("onunpipe"),sn===ze&&Dt&&Dt.hasUnpiped===!1&&(Dt.hasUnpiped=!0,Kt())}function Ge(){ye("onend"),de.end()}var it=mt(ze);de.on("drain",it);var gt=!1;function Kt(){ye("cleanup"),de.removeListener("close",jt),de.removeListener("finish",Vt),de.removeListener("drain",it),de.removeListener("error",Wt),de.removeListener("unpipe",Fe),ze.removeListener("end",Ge),ze.removeListener("end",_t),ze.removeListener("data",St),gt=!0,$e.awaitDrain&&(!de._writableState||de._writableState.needDrain)&&it()}var kt=!1;ze.on("data",St);function St(sn){ye("ondata"),kt=!1;var Dt=de.write(sn);Dt===!1&&!kt&&(($e.pipesCount===1&&$e.pipes===de||$e.pipesCount>1&&Ke($e.pipes,de)!==-1)&&!gt&&(ye("false write response, pause",ze._readableState.awaitDrain),ze._readableState.awaitDrain++,kt=!0),ze.pause())}function Wt(sn){ye("onerror",sn),_t(),de.removeListener("error",Wt),ie(de,"error")===0&&de.emit("error",sn)}Ae(de,"error",Wt);function jt(){de.removeListener("finish",Vt),_t()}de.once("close",jt);function Vt(){ye("onfinish"),de.removeListener("close",jt),_t()}de.once("finish",Vt);function _t(){ye("unpipe"),ze.unpipe(de)}return de.emit("pipe",ze),$e.flowing||(ye("pipe resume"),ze.resume()),de};function mt(de){return function(){var xe=de._readableState;ye("pipeOnDrain",xe.awaitDrain),xe.awaitDrain&&xe.awaitDrain--,xe.awaitDrain===0&&ie(de,"data")&&(xe.flowing=!0,rt(de))}}Ie.prototype.unpipe=function(de){var xe=this._readableState,ze={hasUnpiped:!1};if(xe.pipesCount===0)return this;if(xe.pipesCount===1)return de&&de!==xe.pipes?this:(de||(de=xe.pipes),xe.pipes=null,xe.pipesCount=0,xe.flowing=!1,de&&de.emit("unpipe",this,ze),this);if(!de){var $e=xe.pipes,Ee=xe.pipesCount;xe.pipes=null,xe.pipesCount=0,xe.flowing=!1;for(var Re=0;Re<Ee;Re++)$e[Re].emit("unpipe",this,ze);return this}var Fe=Ke(xe.pipes,de);return Fe===-1?this:(xe.pipes.splice(Fe,1),xe.pipesCount-=1,xe.pipesCount===1&&(xe.pipes=xe.pipes[0]),de.emit("unpipe",this,ze),this)},Ie.prototype.on=function(de,xe){var ze=le.prototype.on.call(this,de,xe);if(de==="data")this._readableState.flowing!==!1&&this.resume();else if(de==="readable"){var $e=this._readableState;!$e.endEmitted&&!$e.readableListening&&($e.readableListening=$e.needReadable=!0,$e.emittedReadable=!1,$e.reading?$e.length&&yt(this):ae.nextTick(ft,this))}return ze},Ie.prototype.addListener=Ie.prototype.on;function ft(de){ye("readable nexttick read 0"),de.read(0)}Ie.prototype.resume=function(){var de=this._readableState;return de.flowing||(ye("resume"),de.flowing=!0,nt(this,de)),this};function nt(de,xe){xe.resumeScheduled||(xe.resumeScheduled=!0,ae.nextTick(tt,de,xe))}function tt(de,xe){xe.reading||(ye("resume read 0"),de.read(0)),xe.resumeScheduled=!1,xe.awaitDrain=0,de.emit("resume"),rt(de),xe.flowing&&!xe.reading&&de.read(0)}Ie.prototype.pause=function(){return ye("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ye("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function rt(de){var xe=de._readableState;for(ye("flow",xe.flowing);xe.flowing&&de.read()!==null;);}Ie.prototype.wrap=function(de){var xe=this,ze=this._readableState,$e=!1;de.on("end",function(){if(ye("wrapped end"),ze.decoder&&!ze.ended){var Fe=ze.decoder.end();Fe&&Fe.length&&xe.push(Fe)}xe.push(null)}),de.on("data",function(Fe){if(ye("wrapped data"),ze.decoder&&(Fe=ze.decoder.write(Fe)),!(ze.objectMode&&Fe==null)&&!(!ze.objectMode&&(!Fe||!Fe.length))){var Ge=xe.push(Fe);Ge||($e=!0,de.pause())}});for(var Ee in de)this[Ee]===void 0&&typeof de[Ee]=="function"&&(this[Ee]=function(Fe){return function(){return de[Fe].apply(de,arguments)}}(Ee));for(var Re=0;Re<Ne.length;Re++)de.on(Ne[Re],this.emit.bind(this,Ne[Re]));return this._read=function(Fe){ye("wrapped _read",Fe),$e&&($e=!1,de.resume())},this},Object.defineProperty(Ie.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ie._fromList=Et;function Et(de,xe){if(xe.length===0)return null;var ze;return xe.objectMode?ze=xe.buffer.shift():!de||de>=xe.length?(xe.decoder?ze=xe.buffer.join(""):xe.buffer.length===1?ze=xe.buffer.head.data:ze=xe.buffer.concat(xe.length),xe.buffer.clear()):ze=bt(de,xe.buffer,xe.decoder),ze}function bt(de,xe,ze){var $e;return de<xe.head.data.length?($e=xe.head.data.slice(0,de),xe.head.data=xe.head.data.slice(de)):de===xe.head.data.length?$e=xe.shift():$e=ze?Pt(de,xe):Lt(de,xe),$e}function Pt(de,xe){var ze=xe.head,$e=1,Ee=ze.data;for(de-=Ee.length;ze=ze.next;){var Re=ze.data,Fe=de>Re.length?Re.length:de;if(Fe===Re.length?Ee+=Re:Ee+=Re.slice(0,de),de-=Fe,de===0){Fe===Re.length?(++$e,ze.next?xe.head=ze.next:xe.head=xe.tail=null):(xe.head=ze,ze.data=Re.slice(Fe));break}++$e}return xe.length-=$e,Ee}function Lt(de,xe){var ze=ue.allocUnsafe(de),$e=xe.head,Ee=1;for($e.data.copy(ze),de-=$e.data.length;$e=$e.next;){var Re=$e.data,Fe=de>Re.length?Re.length:de;if(Re.copy(ze,ze.length-de,0,Fe),de-=Fe,de===0){Fe===Re.length?(++Ee,$e.next?xe.head=$e.next:xe.head=xe.tail=null):(xe.head=$e,$e.data=Re.slice(Fe));break}++Ee}return xe.length-=Ee,ze}function dt(de){var xe=de._readableState;if(xe.length>0)throw new Error('"endReadable()" called on non-empty stream');xe.endEmitted||(xe.ended=!0,ae.nextTick(Ze,xe,de))}function Ze(de,xe){!de.endEmitted&&de.length===0&&(de.endEmitted=!0,xe.readable=!1,xe.emit("end"))}function Ke(de,xe){for(var ze=0,$e=de.length;ze<$e;ze++)if(de[ze]===xe)return ze;return-1}}).call(this)}).call(this,x("_process"),typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(x,ke,pe){"use strict";ke.exports=re;var ne=x("./_stream_duplex"),z=Object.create(x("core-util-is"));z.inherits=x("inherits"),z.inherits(re,ne);function ae(ie,le){var ue=this._transformState;ue.transforming=!1;var fe=ue.writecb;if(!fe)return this.emit("error",new Error("write callback called multiple times"));ue.writechunk=null,ue.writecb=null,le!=null&&this.push(le),fe(ie);var he=this._readableState;he.reading=!1,(he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}function re(ie){if(!(this instanceof re))return new re(ie);ne.call(this,ie),this._transformState={afterTransform:ae.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ie&&(typeof ie.transform=="function"&&(this._transform=ie.transform),typeof ie.flush=="function"&&(this._flush=ie.flush)),this.on("prefinish",se)}function se(){var ie=this;typeof this._flush=="function"?this._flush(function(le,ue){me(ie,le,ue)}):me(this,null,null)}re.prototype.push=function(ie,le){return this._transformState.needTransform=!1,ne.prototype.push.call(this,ie,le)},re.prototype._transform=function(ie,le,ue){throw new Error("_transform() is not implemented")},re.prototype._write=function(ie,le,ue){var fe=this._transformState;if(fe.writecb=ue,fe.writechunk=ie,fe.writeencoding=le,!fe.transforming){var he=this._readableState;(fe.needTransform||he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}},re.prototype._read=function(ie){var le=this._transformState;le.writechunk!==null&&le.writecb&&!le.transforming?(le.transforming=!0,this._transform(le.writechunk,le.writeencoding,le.afterTransform)):le.needTransform=!0},re.prototype._destroy=function(ie,le){var ue=this;ne.prototype._destroy.call(this,ie,function(fe){le(fe),ue.emit("close")})};function me(ie,le,ue){if(le)return ie.emit("error",le);if(ue!=null&&ie.push(ue),ie._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(ie._transformState.transforming)throw new Error("Calling transform done when still transforming");return ie.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(x,ke,pe){(function(ne,z,ae){(function(){"use strict";var re=x("process-nextick-args");ke.exports=Ae;function se(tt,rt,Et){this.chunk=tt,this.encoding=rt,this.callback=Et,this.next=null}function me(tt){var rt=this;this.next=null,this.entry=null,this.finish=function(){nt(rt,tt)}}var ie=!ne.browser&&["v0.10","v0.9."].indexOf(ne.version.slice(0,5))>-1?ae:re.nextTick,le;Ae.WritableState=we;var ue=Object.create(x("core-util-is"));ue.inherits=x("inherits");var fe={deprecate:x("util-deprecate")},he=x("./internal/streams/stream"),oe=x("safe-buffer").Buffer,Se=z.Uint8Array||function(){};function Ce(tt){return oe.from(tt)}function ye(tt){return oe.isBuffer(tt)||tt instanceof Se}var _e=x("./internal/streams/destroy");ue.inherits(Ae,he);function Me(){}function we(tt,rt){le=le||x("./_stream_duplex"),tt=tt||{};var Et=rt instanceof le;this.objectMode=!!tt.objectMode,Et&&(this.objectMode=this.objectMode||!!tt.writableObjectMode);var bt=tt.highWaterMark,Pt=tt.writableHighWaterMark,Lt=this.objectMode?16:16*1024;bt||bt===0?this.highWaterMark=bt:Et&&(Pt||Pt===0)?this.highWaterMark=Pt:this.highWaterMark=Lt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var dt=tt.decodeStrings===!1;this.decodeStrings=!dt,this.defaultEncoding=tt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ze){Ye(rt,Ze)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new me(this)}we.prototype.getBuffer=function(){for(var rt=this.bufferedRequest,Et=[];rt;)Et.push(rt),rt=rt.next;return Et},function(){try{Object.defineProperty(we.prototype,"buffer",{get:fe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(tt){}}();var Ne;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ne=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ae,Symbol.hasInstance,{value:function(tt){return Ne.call(this,tt)?!0:this!==Ae?!1:tt&&tt._writableState instanceof we}})):Ne=function(tt){return tt instanceof this};function Ae(tt){if(le=le||x("./_stream_duplex"),!Ne.call(Ae,this)&&!(this instanceof le))return new Ae(tt);this._writableState=new we(tt,this),this.writable=!0,tt&&(typeof tt.write=="function"&&(this._write=tt.write),typeof tt.writev=="function"&&(this._writev=tt.writev),typeof tt.destroy=="function"&&(this._destroy=tt.destroy),typeof tt.final=="function"&&(this._final=tt.final)),he.call(this)}Ae.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function De(tt,rt){var Et=new Error("write after end");tt.emit("error",Et),re.nextTick(rt,Et)}function Ie(tt,rt,Et,bt){var Pt=!0,Lt=!1;return Et===null?Lt=new TypeError("May not write null values to stream"):typeof Et!="string"&&Et!==void 0&&!rt.objectMode&&(Lt=new TypeError("Invalid non-string/buffer chunk")),Lt&&(tt.emit("error",Lt),re.nextTick(bt,Lt),Pt=!1),Pt}Ae.prototype.write=function(tt,rt,Et){var bt=this._writableState,Pt=!1,Lt=!bt.objectMode&&ye(tt);return Lt&&!oe.isBuffer(tt)&&(tt=Ce(tt)),typeof rt=="function"&&(Et=rt,rt=null),Lt?rt="buffer":rt||(rt=bt.defaultEncoding),typeof Et!="function"&&(Et=Me),bt.ended?De(this,Et):(Lt||Ie(this,bt,tt,Et))&&(bt.pendingcb++,Pt=Le(this,bt,Lt,tt,rt,Et)),Pt},Ae.prototype.cork=function(){var tt=this._writableState;tt.corked++},Ae.prototype.uncork=function(){var tt=this._writableState;tt.corked&&(tt.corked--,!tt.writing&&!tt.corked&&!tt.finished&&!tt.bufferProcessing&&tt.bufferedRequest&&yt(this,tt))},Ae.prototype.setDefaultEncoding=function(rt){if(typeof rt=="string"&&(rt=rt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((rt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+rt);return this._writableState.defaultEncoding=rt,this};function Pe(tt,rt,Et){return!tt.objectMode&&tt.decodeStrings!==!1&&typeof rt=="string"&&(rt=oe.from(rt,Et)),rt}Object.defineProperty(Ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Le(tt,rt,Et,bt,Pt,Lt){if(!Et){var dt=Pe(rt,bt,Pt);bt!==dt&&(Et=!0,Pt="buffer",bt=dt)}var Ze=rt.objectMode?1:bt.length;rt.length+=Ze;var Ke=rt.length<rt.highWaterMark;if(Ke||(rt.needDrain=!0),rt.writing||rt.corked){var de=rt.lastBufferedRequest;rt.lastBufferedRequest={chunk:bt,encoding:Pt,isBuf:Et,callback:Lt,next:null},de?de.next=rt.lastBufferedRequest:rt.bufferedRequest=rt.lastBufferedRequest,rt.bufferedRequestCount+=1}else We(tt,rt,!1,Ze,bt,Pt,Lt);return Ke}function We(tt,rt,Et,bt,Pt,Lt,dt){rt.writelen=bt,rt.writecb=dt,rt.writing=!0,rt.sync=!0,Et?tt._writev(Pt,rt.onwrite):tt._write(Pt,Lt,rt.onwrite),rt.sync=!1}function Be(tt,rt,Et,bt,Pt){--rt.pendingcb,Et?(re.nextTick(Pt,bt),re.nextTick(mt,tt,rt),tt._writableState.errorEmitted=!0,tt.emit("error",bt)):(Pt(bt),tt._writableState.errorEmitted=!0,tt.emit("error",bt),mt(tt,rt))}function He(tt){tt.writing=!1,tt.writecb=null,tt.length-=tt.writelen,tt.writelen=0}function Ye(tt,rt){var Et=tt._writableState,bt=Et.sync,Pt=Et.writecb;if(He(Et),rt)Be(tt,Et,bt,rt,Pt);else{var Lt=Ve(Et);!Lt&&!Et.corked&&!Et.bufferProcessing&&Et.bufferedRequest&&yt(tt,Et),bt?ie(et,tt,Et,Lt,Pt):et(tt,Et,Lt,Pt)}}function et(tt,rt,Et,bt){Et||st(tt,rt),rt.pendingcb--,bt(),mt(tt,rt)}function st(tt,rt){rt.length===0&&rt.needDrain&&(rt.needDrain=!1,tt.emit("drain"))}function yt(tt,rt){rt.bufferProcessing=!0;var Et=rt.bufferedRequest;if(tt._writev&&Et&&Et.next){var bt=rt.bufferedRequestCount,Pt=new Array(bt),Lt=rt.corkedRequestsFree;Lt.entry=Et;for(var dt=0,Ze=!0;Et;)Pt[dt]=Et,Et.isBuf||(Ze=!1),Et=Et.next,dt+=1;Pt.allBuffers=Ze,We(tt,rt,!0,rt.length,Pt,"",Lt.finish),rt.pendingcb++,rt.lastBufferedRequest=null,Lt.next?(rt.corkedRequestsFree=Lt.next,Lt.next=null):rt.corkedRequestsFree=new me(rt),rt.bufferedRequestCount=0}else{for(;Et;){var Ke=Et.chunk,de=Et.encoding,xe=Et.callback,ze=rt.objectMode?1:Ke.length;if(We(tt,rt,!1,ze,Ke,de,xe),Et=Et.next,rt.bufferedRequestCount--,rt.writing)break}Et===null&&(rt.lastBufferedRequest=null)}rt.bufferedRequest=Et,rt.bufferProcessing=!1}Ae.prototype._write=function(tt,rt,Et){Et(new Error("_write() is not implemented"))},Ae.prototype._writev=null,Ae.prototype.end=function(tt,rt,Et){var bt=this._writableState;typeof tt=="function"?(Et=tt,tt=null,rt=null):typeof rt=="function"&&(Et=rt,rt=null),tt!=null&&this.write(tt,rt),bt.corked&&(bt.corked=1,this.uncork()),!bt.ending&&!bt.finished&&ft(this,bt,Et)};function Ve(tt){return tt.ending&&tt.length===0&&tt.bufferedRequest===null&&!tt.finished&&!tt.writing}function Qe(tt,rt){tt._final(function(Et){rt.pendingcb--,Et&&tt.emit("error",Et),rt.prefinished=!0,tt.emit("prefinish"),mt(tt,rt)})}function pt(tt,rt){!rt.prefinished&&!rt.finalCalled&&(typeof tt._final=="function"?(rt.pendingcb++,rt.finalCalled=!0,re.nextTick(Qe,tt,rt)):(rt.prefinished=!0,tt.emit("prefinish")))}function mt(tt,rt){var Et=Ve(rt);return Et&&(pt(tt,rt),rt.pendingcb===0&&(rt.finished=!0,tt.emit("finish"))),Et}function ft(tt,rt,Et){rt.ending=!0,mt(tt,rt),Et&&(rt.finished?re.nextTick(Et):tt.once("finish",Et)),rt.ended=!0,tt.writable=!1}function nt(tt,rt,Et){var bt=tt.entry;for(tt.entry=null;bt;){var Pt=bt.callback;rt.pendingcb--,Pt(Et),bt=bt.next}rt.corkedRequestsFree?rt.corkedRequestsFree.next=tt:rt.corkedRequestsFree=tt}Object.defineProperty(Ae.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(tt){this._writableState&&(this._writableState.destroyed=tt)}}),Ae.prototype.destroy=_e.destroy,Ae.prototype._undestroy=_e.undestroy,Ae.prototype._destroy=function(tt,rt){this.end(),rt(tt)}}).call(this)}).call(this,x("_process"),typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(x,ke,pe){"use strict";function ne(se,me){if(!(se instanceof me))throw new TypeError("Cannot call a class as a function")}var z=x("safe-buffer").Buffer,ae=x("util");function re(se,me,ie){se.copy(me,ie)}ke.exports=function(){function se(){ne(this,se),this.head=null,this.tail=null,this.length=0}return se.prototype.push=function(ie){var le={data:ie,next:null};this.length>0?this.tail.next=le:this.head=le,this.tail=le,++this.length},se.prototype.unshift=function(ie){var le={data:ie,next:this.head};this.length===0&&(this.tail=le),this.head=le,++this.length},se.prototype.shift=function(){if(this.length!==0){var ie=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ie}},se.prototype.clear=function(){this.head=this.tail=null,this.length=0},se.prototype.join=function(ie){if(this.length===0)return"";for(var le=this.head,ue=""+le.data;le=le.next;)ue+=ie+le.data;return ue},se.prototype.concat=function(ie){if(this.length===0)return z.alloc(0);if(this.length===1)return this.head.data;for(var le=z.allocUnsafe(ie>>>0),ue=this.head,fe=0;ue;)re(ue.data,le,fe),fe+=ue.data.length,ue=ue.next;return le},se}(),ae&&ae.inspect&&ae.inspect.custom&&(ke.exports.prototype[ae.inspect.custom]=function(){var se=ae.inspect({length:this.length});return this.constructor.name+" "+se})},{"safe-buffer":396,util:89}],392:[function(x,ke,pe){"use strict";var ne=x("process-nextick-args");function z(se,me){var ie=this,le=this._readableState&&this._readableState.destroyed,ue=this._writableState&&this._writableState.destroyed;return le||ue?(me?me(se):se&&(!this._writableState||!this._writableState.errorEmitted)&&ne.nextTick(re,this,se),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(se||null,function(fe){!me&&fe?(ne.nextTick(re,ie,fe),ie._writableState&&(ie._writableState.errorEmitted=!0)):me&&me(fe)}),this)}function ae(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function re(se,me){se.emit("error",me)}ke.exports={destroy:z,undestroy:ae}},{"process-nextick-args":380}],393:[function(x,ke,pe){ke.exports=x("events").EventEmitter},{events:344}],394:[function(x,ke,pe){pe=ke.exports=x("./lib/_stream_readable.js"),pe.Stream=pe,pe.Readable=pe,pe.Writable=x("./lib/_stream_writable.js"),pe.Duplex=x("./lib/_stream_duplex.js"),pe.Transform=x("./lib/_stream_transform.js"),pe.PassThrough=x("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(x,ke,pe){var ne=function(z){"use strict";var ae=Object.prototype,re=ae.hasOwnProperty,se,me=typeof Symbol=="function"?Symbol:{},ie=me.iterator||"@@iterator",le=me.asyncIterator||"@@asyncIterator",ue=me.toStringTag||"@@toStringTag";function fe(pt,mt,ft){return Object.defineProperty(pt,mt,{value:ft,enumerable:!0,configurable:!0,writable:!0}),pt[mt]}try{fe({},"")}catch(pt){fe=function(mt,ft,nt){return mt[ft]=nt}}function he(pt,mt,ft,nt){var tt=mt&&mt.prototype instanceof we?mt:we,rt=Object.create(tt.prototype),Et=new yt(nt||[]);return rt._invoke=He(pt,ft,Et),rt}z.wrap=he;function oe(pt,mt,ft){try{return{type:"normal",arg:pt.call(mt,ft)}}catch(nt){return{type:"throw",arg:nt}}}var Se="suspendedStart",Ce="suspendedYield",ye="executing",_e="completed",Me={};function we(){}function Ne(){}function Ae(){}var De={};fe(De,ie,function(){return this});var Ie=Object.getPrototypeOf,Pe=Ie&&Ie(Ie(Ve([])));Pe&&Pe!==ae&&re.call(Pe,ie)&&(De=Pe);var Le=Ae.prototype=we.prototype=Object.create(De);Ne.prototype=Ae,fe(Le,"constructor",Ae),fe(Ae,"constructor",Ne),Ne.displayName=fe(Ae,ue,"GeneratorFunction");function We(pt){["next","throw","return"].forEach(function(mt){fe(pt,mt,function(ft){return this._invoke(mt,ft)})})}z.isGeneratorFunction=function(pt){var mt=typeof pt=="function"&&pt.constructor;return mt?mt===Ne||(mt.displayName||mt.name)==="GeneratorFunction":!1},z.mark=function(pt){return Object.setPrototypeOf?Object.setPrototypeOf(pt,Ae):(pt.__proto__=Ae,fe(pt,ue,"GeneratorFunction")),pt.prototype=Object.create(Le),pt},z.awrap=function(pt){return{__await:pt}};function Be(pt,mt){function ft(rt,Et,bt,Pt){var Lt=oe(pt[rt],pt,Et);if(Lt.type==="throw")Pt(Lt.arg);else{var dt=Lt.arg,Ze=dt.value;return Ze&&typeof Ze=="object"&&re.call(Ze,"__await")?mt.resolve(Ze.__await).then(function(Ke){ft("next",Ke,bt,Pt)},function(Ke){ft("throw",Ke,bt,Pt)}):mt.resolve(Ze).then(function(Ke){dt.value=Ke,bt(dt)},function(Ke){return ft("throw",Ke,bt,Pt)})}}var nt;function tt(rt,Et){function bt(){return new mt(function(Pt,Lt){ft(rt,Et,Pt,Lt)})}return nt=nt?nt.then(bt,bt):bt()}this._invoke=tt}We(Be.prototype),fe(Be.prototype,le,function(){return this}),z.AsyncIterator=Be,z.async=function(pt,mt,ft,nt,tt){tt===void 0&&(tt=Promise);var rt=new Be(he(pt,mt,ft,nt),tt);return z.isGeneratorFunction(mt)?rt:rt.next().then(function(Et){return Et.done?Et.value:rt.next()})};function He(pt,mt,ft){var nt=Se;return function(rt,Et){if(nt===ye)throw new Error("Generator is already running");if(nt===_e){if(rt==="throw")throw Et;return Qe()}for(ft.method=rt,ft.arg=Et;;){var bt=ft.delegate;if(bt){var Pt=Ye(bt,ft);if(Pt){if(Pt===Me)continue;return Pt}}if(ft.method==="next")ft.sent=ft._sent=ft.arg;else if(ft.method==="throw"){if(nt===Se)throw nt=_e,ft.arg;ft.dispatchException(ft.arg)}else ft.method==="return"&&ft.abrupt("return",ft.arg);nt=ye;var Lt=oe(pt,mt,ft);if(Lt.type==="normal"){if(nt=ft.done?_e:Ce,Lt.arg===Me)continue;return{value:Lt.arg,done:ft.done}}else Lt.type==="throw"&&(nt=_e,ft.method="throw",ft.arg=Lt.arg)}}}function Ye(pt,mt){var ft=pt.iterator[mt.method];if(ft===se){if(mt.delegate=null,mt.method==="throw"){if(pt.iterator.return&&(mt.method="return",mt.arg=se,Ye(pt,mt),mt.method==="throw"))return Me;mt.method="throw",mt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Me}var nt=oe(ft,pt.iterator,mt.arg);if(nt.type==="throw")return mt.method="throw",mt.arg=nt.arg,mt.delegate=null,Me;var tt=nt.arg;if(!tt)return mt.method="throw",mt.arg=new TypeError("iterator result is not an object"),mt.delegate=null,Me;if(tt.done)mt[pt.resultName]=tt.value,mt.next=pt.nextLoc,mt.method!=="return"&&(mt.method="next",mt.arg=se);else return tt;return mt.delegate=null,Me}We(Le),fe(Le,ue,"Generator"),fe(Le,ie,function(){return this}),fe(Le,"toString",function(){return"[object Generator]"});function et(pt){var mt={tryLoc:pt[0]};1 in pt&&(mt.catchLoc=pt[1]),2 in pt&&(mt.finallyLoc=pt[2],mt.afterLoc=pt[3]),this.tryEntries.push(mt)}function st(pt){var mt=pt.completion||{};mt.type="normal",delete mt.arg,pt.completion=mt}function yt(pt){this.tryEntries=[{tryLoc:"root"}],pt.forEach(et,this),this.reset(!0)}z.keys=function(pt){var mt=[];for(var ft in pt)mt.push(ft);return mt.reverse(),function nt(){for(;mt.length;){var tt=mt.pop();if(tt in pt)return nt.value=tt,nt.done=!1,nt}return nt.done=!0,nt}};function Ve(pt){if(pt){var mt=pt[ie];if(mt)return mt.call(pt);if(typeof pt.next=="function")return pt;if(!isNaN(pt.length)){var ft=-1,nt=function tt(){for(;++ft<pt.length;)if(re.call(pt,ft))return tt.value=pt[ft],tt.done=!1,tt;return tt.value=se,tt.done=!0,tt};return nt.next=nt}}return{next:Qe}}z.values=Ve;function Qe(){return{value:se,done:!0}}return yt.prototype={constructor:yt,reset:function(pt){if(this.prev=0,this.next=0,this.sent=this._sent=se,this.done=!1,this.delegate=null,this.method="next",this.arg=se,this.tryEntries.forEach(st),!pt)for(var mt in this)mt.charAt(0)==="t"&&re.call(this,mt)&&!isNaN(+mt.slice(1))&&(this[mt]=se)},stop:function(){this.done=!0;var pt=this.tryEntries[0],mt=pt.completion;if(mt.type==="throw")throw mt.arg;return this.rval},dispatchException:function(pt){if(this.done)throw pt;var mt=this;function ft(Pt,Lt){return rt.type="throw",rt.arg=pt,mt.next=Pt,Lt&&(mt.method="next",mt.arg=se),!!Lt}for(var nt=this.tryEntries.length-1;nt>=0;--nt){var tt=this.tryEntries[nt],rt=tt.completion;if(tt.tryLoc==="root")return ft("end");if(tt.tryLoc<=this.prev){var Et=re.call(tt,"catchLoc"),bt=re.call(tt,"finallyLoc");if(Et&&bt){if(this.prev<tt.catchLoc)return ft(tt.catchLoc,!0);if(this.prev<tt.finallyLoc)return ft(tt.finallyLoc)}else if(Et){if(this.prev<tt.catchLoc)return ft(tt.catchLoc,!0)}else if(bt){if(this.prev<tt.finallyLoc)return ft(tt.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(pt,mt){for(var ft=this.tryEntries.length-1;ft>=0;--ft){var nt=this.tryEntries[ft];if(nt.tryLoc<=this.prev&&re.call(nt,"finallyLoc")&&this.prev<nt.finallyLoc){var tt=nt;break}}tt&&(pt==="break"||pt==="continue")&&tt.tryLoc<=mt&&mt<=tt.finallyLoc&&(tt=null);var rt=tt?tt.completion:{};return rt.type=pt,rt.arg=mt,tt?(this.method="next",this.next=tt.finallyLoc,Me):this.complete(rt)},complete:function(pt,mt){if(pt.type==="throw")throw pt.arg;return pt.type==="break"||pt.type==="continue"?this.next=pt.arg:pt.type==="return"?(this.rval=this.arg=pt.arg,this.method="return",this.next="end"):pt.type==="normal"&&mt&&(this.next=mt),Me},finish:function(pt){for(var mt=this.tryEntries.length-1;mt>=0;--mt){var ft=this.tryEntries[mt];if(ft.finallyLoc===pt)return this.complete(ft.completion,ft.afterLoc),st(ft),Me}},catch:function(pt){for(var mt=this.tryEntries.length-1;mt>=0;--mt){var ft=this.tryEntries[mt];if(ft.tryLoc===pt){var nt=ft.completion;if(nt.type==="throw"){var tt=nt.arg;st(ft)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(pt,mt,ft){return this.delegate={iterator:Ve(pt),resultName:mt,nextLoc:ft},this.method==="next"&&(this.arg=se),Me}},z}(typeof ke=="object"?ke.exports:{});try{regeneratorRuntime=ne}catch(z){typeof globalThis=="object"?globalThis.regeneratorRuntime=ne:Function("r","regeneratorRuntime = r")(ne)}},{}],396:[function(x,ke,pe){var ne=x("buffer"),z=ne.Buffer;function ae(se,me){for(var ie in se)me[ie]=se[ie]}z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow?ke.exports=ne:(ae(ne,pe),pe.Buffer=re);function re(se,me,ie){return z(se,me,ie)}ae(z,re),re.from=function(se,me,ie){if(typeof se=="number")throw new TypeError("Argument must not be a number");return z(se,me,ie)},re.alloc=function(se,me,ie){if(typeof se!="number")throw new TypeError("Argument must be a number");var le=z(se);return me!==void 0?typeof ie=="string"?le.fill(me,ie):le.fill(me):le.fill(0),le},re.allocUnsafe=function(se){if(typeof se!="number")throw new TypeError("Argument must be a number");return z(se)},re.allocUnsafeSlow=function(se){if(typeof se!="number")throw new TypeError("Argument must be a number");return ne.SlowBuffer(se)}},{buffer:90}],397:[function(x,ke,pe){(function(ne){(function(){(function(z){z.parser=function(dt,Ze){return new re(dt,Ze)},z.SAXParser=re,z.SAXStream=he,z.createStream=fe,z.MAX_BUFFER_LENGTH=64*1024;var ae=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];z.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function re(dt,Ze){if(!(this instanceof re))return new re(dt,Ze);var Ke=this;me(Ke),Ke.q=Ke.c="",Ke.bufferCheckPosition=z.MAX_BUFFER_LENGTH,Ke.opt=Ze||{},Ke.opt.lowercase=Ke.opt.lowercase||Ke.opt.lowercasetags,Ke.looseCase=Ke.opt.lowercase?"toLowerCase":"toUpperCase",Ke.tags=[],Ke.closed=Ke.closedRoot=Ke.sawRoot=!1,Ke.tag=Ke.error=null,Ke.strict=!!dt,Ke.noscript=!!(dt||Ke.opt.noscript),Ke.state=Be.BEGIN,Ke.strictEntities=Ke.opt.strictEntities,Ke.ENTITIES=Ke.strictEntities?Object.create(z.XML_ENTITIES):Object.create(z.ENTITIES),Ke.attribList=[],Ke.opt.xmlns&&(Ke.ns=Object.create(_e)),Ke.trackPosition=Ke.opt.position!==!1,Ke.trackPosition&&(Ke.position=Ke.line=Ke.column=0),Ye(Ke,"onready")}Object.create||(Object.create=function(dt){function Ze(){}Ze.prototype=dt;var Ke=new Ze;return Ke}),Object.keys||(Object.keys=function(dt){var Ze=[];for(var Ke in dt)dt.hasOwnProperty(Ke)&&Ze.push(Ke);return Ze});function se(dt){for(var Ze=Math.max(z.MAX_BUFFER_LENGTH,10),Ke=0,de=0,xe=ae.length;de<xe;de++){var ze=dt[ae[de]].length;if(ze>Ze)switch(ae[de]){case"textNode":st(dt);break;case"cdata":et(dt,"oncdata",dt.cdata),dt.cdata="";break;case"script":et(dt,"onscript",dt.script),dt.script="";break;default:Ve(dt,"Max buffer length exceeded: "+ae[de])}Ke=Math.max(Ke,ze)}var $e=z.MAX_BUFFER_LENGTH-Ke;dt.bufferCheckPosition=$e+dt.position}function me(dt){for(var Ze=0,Ke=ae.length;Ze<Ke;Ze++)dt[ae[Ze]]=""}function ie(dt){st(dt),dt.cdata!==""&&(et(dt,"oncdata",dt.cdata),dt.cdata=""),dt.script!==""&&(et(dt,"onscript",dt.script),dt.script="")}re.prototype={end:function(){Qe(this)},write:Lt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){ie(this)}};var le;try{le=x("stream").Stream}catch(dt){le=function(){}}var ue=z.EVENTS.filter(function(dt){return dt!=="error"&&dt!=="end"});function fe(dt,Ze){return new he(dt,Ze)}function he(dt,Ze){if(!(this instanceof he))return new he(dt,Ze);le.apply(this),this._parser=new re(dt,Ze),this.writable=!0,this.readable=!0;var Ke=this;this._parser.onend=function(){Ke.emit("end")},this._parser.onerror=function(de){Ke.emit("error",de),Ke._parser.error=null},this._decoder=null,ue.forEach(function(de){Object.defineProperty(Ke,"on"+de,{get:function(){return Ke._parser["on"+de]},set:function(xe){if(!xe)return Ke.removeAllListeners(de),Ke._parser["on"+de]=xe,xe;Ke.on(de,xe)},enumerable:!0,configurable:!1})})}he.prototype=Object.create(le.prototype,{constructor:{value:he}}),he.prototype.write=function(dt){if(typeof ne=="function"&&typeof ne.isBuffer=="function"&&ne.isBuffer(dt)){if(!this._decoder){var Ze=x("string_decoder").StringDecoder;this._decoder=new Ze("utf8")}dt=this._decoder.write(dt)}return this._parser.write(dt.toString()),this.emit("data",dt),!0},he.prototype.end=function(dt){return dt&&dt.length&&this.write(dt),this._parser.end(),!0},he.prototype.on=function(dt,Ze){var Ke=this;return!Ke._parser["on"+dt]&&ue.indexOf(dt)!==-1&&(Ke._parser["on"+dt]=function(){var de=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);de.splice(0,0,dt),Ke.emit.apply(Ke,de)}),le.prototype.on.call(Ke,dt,Ze)};var oe="[CDATA[",Se="DOCTYPE",Ce="http://www.w3.org/XML/1998/namespace",ye="http://www.w3.org/2000/xmlns/",_e={xml:Ce,xmlns:ye},Me=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,we=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Ne=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ae=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function De(dt){return dt===" "||dt===`
|
|
|
`||dt==="\r"||dt===" "}function Ie(dt){return dt==='"'||dt==="'"}function Pe(dt){return dt===">"||De(dt)}function Le(dt,Ze){return dt.test(Ze)}function We(dt,Ze){return!Le(dt,Ze)}var Be=0;z.STATE={BEGIN:Be++,BEGIN_WHITESPACE:Be++,TEXT:Be++,TEXT_ENTITY:Be++,OPEN_WAKA:Be++,SGML_DECL:Be++,SGML_DECL_QUOTED:Be++,DOCTYPE:Be++,DOCTYPE_QUOTED:Be++,DOCTYPE_DTD:Be++,DOCTYPE_DTD_QUOTED:Be++,COMMENT_STARTING:Be++,COMMENT:Be++,COMMENT_ENDING:Be++,COMMENT_ENDED:Be++,CDATA:Be++,CDATA_ENDING:Be++,CDATA_ENDING_2:Be++,PROC_INST:Be++,PROC_INST_BODY:Be++,PROC_INST_ENDING:Be++,OPEN_TAG:Be++,OPEN_TAG_SLASH:Be++,ATTRIB:Be++,ATTRIB_NAME:Be++,ATTRIB_NAME_SAW_WHITE:Be++,ATTRIB_VALUE:Be++,ATTRIB_VALUE_QUOTED:Be++,ATTRIB_VALUE_CLOSED:Be++,ATTRIB_VALUE_UNQUOTED:Be++,ATTRIB_VALUE_ENTITY_Q:Be++,ATTRIB_VALUE_ENTITY_U:Be++,CLOSE_TAG:Be++,CLOSE_TAG_SAW_WHITE:Be++,SCRIPT:Be++,SCRIPT_ENDING:Be++},z.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},z.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(z.ENTITIES).forEach(function(dt){var Ze=z.ENTITIES[dt],Ke=typeof Ze=="number"?String.fromCharCode(Ze):Ze;z.ENTITIES[dt]=Ke});for(var He in z.STATE)z.STATE[z.STATE[He]]=He;Be=z.STATE;function Ye(dt,Ze,Ke){dt[Ze]&&dt[Ze](Ke)}function et(dt,Ze,Ke){dt.textNode&&st(dt),Ye(dt,Ze,Ke)}function st(dt){dt.textNode=yt(dt.opt,dt.textNode),dt.textNode&&Ye(dt,"ontext",dt.textNode),dt.textNode=""}function yt(dt,Ze){return dt.trim&&(Ze=Ze.trim()),dt.normalize&&(Ze=Ze.replace(/\s+/g," ")),Ze}function Ve(dt,Ze){return st(dt),dt.trackPosition&&(Ze+=`
|
|
|
Line: `+dt.line+`
|
|
|
Column: `+dt.column+`
|
|
|
Char: `+dt.c),Ze=new Error(Ze),dt.error=Ze,Ye(dt,"onerror",Ze),dt}function Qe(dt){return dt.sawRoot&&!dt.closedRoot&&pt(dt,"Unclosed root tag"),dt.state!==Be.BEGIN&&dt.state!==Be.BEGIN_WHITESPACE&&dt.state!==Be.TEXT&&Ve(dt,"Unexpected end"),st(dt),dt.c="",dt.closed=!0,Ye(dt,"onend"),re.call(dt,dt.strict,dt.opt),dt}function pt(dt,Ze){if(typeof dt!="object"||!(dt instanceof re))throw new Error("bad call to strictFail");dt.strict&&Ve(dt,Ze)}function mt(dt){dt.strict||(dt.tagName=dt.tagName[dt.looseCase]());var Ze=dt.tags[dt.tags.length-1]||dt,Ke=dt.tag={name:dt.tagName,attributes:{}};dt.opt.xmlns&&(Ke.ns=Ze.ns),dt.attribList.length=0,et(dt,"onopentagstart",Ke)}function ft(dt,Ze){var Ke=dt.indexOf(":"),de=Ke<0?["",dt]:dt.split(":"),xe=de[0],ze=de[1];return Ze&&dt==="xmlns"&&(xe="xmlns",ze=""),{prefix:xe,local:ze}}function nt(dt){if(dt.strict||(dt.attribName=dt.attribName[dt.looseCase]()),dt.attribList.indexOf(dt.attribName)!==-1||dt.tag.attributes.hasOwnProperty(dt.attribName)){dt.attribName=dt.attribValue="";return}if(dt.opt.xmlns){var Ze=ft(dt.attribName,!0),Ke=Ze.prefix,de=Ze.local;if(Ke==="xmlns")if(de==="xml"&&dt.attribValue!==Ce)pt(dt,"xml: prefix must be bound to "+Ce+`
|
|
|
Actual: `+dt.attribValue);else if(de==="xmlns"&&dt.attribValue!==ye)pt(dt,"xmlns: prefix must be bound to "+ye+`
|
|
|
Actual: `+dt.attribValue);else{var xe=dt.tag,ze=dt.tags[dt.tags.length-1]||dt;xe.ns===ze.ns&&(xe.ns=Object.create(ze.ns)),xe.ns[de]=dt.attribValue}dt.attribList.push([dt.attribName,dt.attribValue])}else dt.tag.attributes[dt.attribName]=dt.attribValue,et(dt,"onattribute",{name:dt.attribName,value:dt.attribValue});dt.attribName=dt.attribValue=""}function tt(dt,Ze){if(dt.opt.xmlns){var Ke=dt.tag,de=ft(dt.tagName);Ke.prefix=de.prefix,Ke.local=de.local,Ke.uri=Ke.ns[de.prefix]||"",Ke.prefix&&!Ke.uri&&(pt(dt,"Unbound namespace prefix: "+JSON.stringify(dt.tagName)),Ke.uri=de.prefix);var xe=dt.tags[dt.tags.length-1]||dt;Ke.ns&&xe.ns!==Ke.ns&&Object.keys(Ke.ns).forEach(function(St){et(dt,"onopennamespace",{prefix:St,uri:Ke.ns[St]})});for(var ze=0,$e=dt.attribList.length;ze<$e;ze++){var Ee=dt.attribList[ze],Re=Ee[0],Fe=Ee[1],Ge=ft(Re,!0),it=Ge.prefix,gt=Ge.local,Kt=it===""?"":Ke.ns[it]||"",kt={name:Re,value:Fe,prefix:it,local:gt,uri:Kt};it&&it!=="xmlns"&&!Kt&&(pt(dt,"Unbound namespace prefix: "+JSON.stringify(it)),kt.uri=it),dt.tag.attributes[Re]=kt,et(dt,"onattribute",kt)}dt.attribList.length=0}dt.tag.isSelfClosing=!!Ze,dt.sawRoot=!0,dt.tags.push(dt.tag),et(dt,"onopentag",dt.tag),Ze||(!dt.noscript&&dt.tagName.toLowerCase()==="script"?dt.state=Be.SCRIPT:dt.state=Be.TEXT,dt.tag=null,dt.tagName=""),dt.attribName=dt.attribValue="",dt.attribList.length=0}function rt(dt){if(!dt.tagName){pt(dt,"Weird empty close tag."),dt.textNode+="</>",dt.state=Be.TEXT;return}if(dt.script){if(dt.tagName!=="script"){dt.script+="</"+dt.tagName+">",dt.tagName="",dt.state=Be.SCRIPT;return}et(dt,"onscript",dt.script),dt.script=""}var Ze=dt.tags.length,Ke=dt.tagName;dt.strict||(Ke=Ke[dt.looseCase]());for(var de=Ke;Ze--;){var xe=dt.tags[Ze];if(xe.name!==de)pt(dt,"Unexpected close tag");else break}if(Ze<0){pt(dt,"Unmatched closing tag: "+dt.tagName),dt.textNode+="</"+dt.tagName+">",dt.state=Be.TEXT;return}dt.tagName=Ke;for(var ze=dt.tags.length;ze-- >Ze;){var $e=dt.tag=dt.tags.pop();dt.tagName=dt.tag.name,et(dt,"onclosetag",dt.tagName);var Ee={};for(var Re in $e.ns)Ee[Re]=$e.ns[Re];var Fe=dt.tags[dt.tags.length-1]||dt;dt.opt.xmlns&&$e.ns!==Fe.ns&&Object.keys($e.ns).forEach(function(Ge){var it=$e.ns[Ge];et(dt,"onclosenamespace",{prefix:Ge,uri:it})})}Ze===0&&(dt.closedRoot=!0),dt.tagName=dt.attribValue=dt.attribName="",dt.attribList.length=0,dt.state=Be.TEXT}function Et(dt){var Ze=dt.entity,Ke=Ze.toLowerCase(),de,xe="";return dt.ENTITIES[Ze]?dt.ENTITIES[Ze]:dt.ENTITIES[Ke]?dt.ENTITIES[Ke]:(Ze=Ke,Ze.charAt(0)==="#"&&(Ze.charAt(1)==="x"?(Ze=Ze.slice(2),de=parseInt(Ze,16),xe=de.toString(16)):(Ze=Ze.slice(1),de=parseInt(Ze,10),xe=de.toString(10))),Ze=Ze.replace(/^0+/,""),isNaN(de)||xe.toLowerCase()!==Ze?(pt(dt,"Invalid character entity"),"&"+dt.entity+";"):String.fromCodePoint(de))}function bt(dt,Ze){Ze==="<"?(dt.state=Be.OPEN_WAKA,dt.startTagPosition=dt.position):De(Ze)||(pt(dt,"Non-whitespace before first tag."),dt.textNode=Ze,dt.state=Be.TEXT)}function Pt(dt,Ze){var Ke="";return Ze<dt.length&&(Ke=dt.charAt(Ze)),Ke}function Lt(dt){var Ze=this;if(this.error)throw this.error;if(Ze.closed)return Ve(Ze,"Cannot write after close. Assign an onready handler.");if(dt===null)return Qe(Ze);typeof dt=="object"&&(dt=dt.toString());for(var Ke=0,de="";de=Pt(dt,Ke++),Ze.c=de,!!de;)switch(Ze.trackPosition&&(Ze.position++,de===`
|
|
|
`?(Ze.line++,Ze.column=0):Ze.column++),Ze.state){case Be.BEGIN:if(Ze.state=Be.BEGIN_WHITESPACE,de==="\uFEFF")continue;bt(Ze,de);continue;case Be.BEGIN_WHITESPACE:bt(Ze,de);continue;case Be.TEXT:if(Ze.sawRoot&&!Ze.closedRoot){for(var xe=Ke-1;de&&de!=="<"&&de!=="&";)de=Pt(dt,Ke++),de&&Ze.trackPosition&&(Ze.position++,de===`
|
|
|
`?(Ze.line++,Ze.column=0):Ze.column++);Ze.textNode+=dt.substring(xe,Ke-1)}de==="<"&&!(Ze.sawRoot&&Ze.closedRoot&&!Ze.strict)?(Ze.state=Be.OPEN_WAKA,Ze.startTagPosition=Ze.position):(!De(de)&&(!Ze.sawRoot||Ze.closedRoot)&&pt(Ze,"Text data outside of root node."),de==="&"?Ze.state=Be.TEXT_ENTITY:Ze.textNode+=de);continue;case Be.SCRIPT:de==="<"?Ze.state=Be.SCRIPT_ENDING:Ze.script+=de;continue;case Be.SCRIPT_ENDING:de==="/"?Ze.state=Be.CLOSE_TAG:(Ze.script+="<"+de,Ze.state=Be.SCRIPT);continue;case Be.OPEN_WAKA:if(de==="!")Ze.state=Be.SGML_DECL,Ze.sgmlDecl="";else if(!De(de))if(Le(Me,de))Ze.state=Be.OPEN_TAG,Ze.tagName=de;else if(de==="/")Ze.state=Be.CLOSE_TAG,Ze.tagName="";else if(de==="?")Ze.state=Be.PROC_INST,Ze.procInstName=Ze.procInstBody="";else{if(pt(Ze,"Unencoded <"),Ze.startTagPosition+1<Ze.position){var ze=Ze.position-Ze.startTagPosition;de=new Array(ze).join(" ")+de}Ze.textNode+="<"+de,Ze.state=Be.TEXT}continue;case Be.SGML_DECL:(Ze.sgmlDecl+de).toUpperCase()===oe?(et(Ze,"onopencdata"),Ze.state=Be.CDATA,Ze.sgmlDecl="",Ze.cdata=""):Ze.sgmlDecl+de==="--"?(Ze.state=Be.COMMENT,Ze.comment="",Ze.sgmlDecl=""):(Ze.sgmlDecl+de).toUpperCase()===Se?(Ze.state=Be.DOCTYPE,(Ze.doctype||Ze.sawRoot)&&pt(Ze,"Inappropriately located doctype declaration"),Ze.doctype="",Ze.sgmlDecl=""):de===">"?(et(Ze,"onsgmldeclaration",Ze.sgmlDecl),Ze.sgmlDecl="",Ze.state=Be.TEXT):(Ie(de)&&(Ze.state=Be.SGML_DECL_QUOTED),Ze.sgmlDecl+=de);continue;case Be.SGML_DECL_QUOTED:de===Ze.q&&(Ze.state=Be.SGML_DECL,Ze.q=""),Ze.sgmlDecl+=de;continue;case Be.DOCTYPE:de===">"?(Ze.state=Be.TEXT,et(Ze,"ondoctype",Ze.doctype),Ze.doctype=!0):(Ze.doctype+=de,de==="["?Ze.state=Be.DOCTYPE_DTD:Ie(de)&&(Ze.state=Be.DOCTYPE_QUOTED,Ze.q=de));continue;case Be.DOCTYPE_QUOTED:Ze.doctype+=de,de===Ze.q&&(Ze.q="",Ze.state=Be.DOCTYPE);continue;case Be.DOCTYPE_DTD:Ze.doctype+=de,de==="]"?Ze.state=Be.DOCTYPE:Ie(de)&&(Ze.state=Be.DOCTYPE_DTD_QUOTED,Ze.q=de);continue;case Be.DOCTYPE_DTD_QUOTED:Ze.doctype+=de,de===Ze.q&&(Ze.state=Be.DOCTYPE_DTD,Ze.q="");continue;case Be.COMMENT:de==="-"?Ze.state=Be.COMMENT_ENDING:Ze.comment+=de;continue;case Be.COMMENT_ENDING:de==="-"?(Ze.state=Be.COMMENT_ENDED,Ze.comment=yt(Ze.opt,Ze.comment),Ze.comment&&et(Ze,"oncomment",Ze.comment),Ze.comment=""):(Ze.comment+="-"+de,Ze.state=Be.COMMENT);continue;case Be.COMMENT_ENDED:de!==">"?(pt(Ze,"Malformed comment"),Ze.comment+="--"+de,Ze.state=Be.COMMENT):Ze.state=Be.TEXT;continue;case Be.CDATA:de==="]"?Ze.state=Be.CDATA_ENDING:Ze.cdata+=de;continue;case Be.CDATA_ENDING:de==="]"?Ze.state=Be.CDATA_ENDING_2:(Ze.cdata+="]"+de,Ze.state=Be.CDATA);continue;case Be.CDATA_ENDING_2:de===">"?(Ze.cdata&&et(Ze,"oncdata",Ze.cdata),et(Ze,"onclosecdata"),Ze.cdata="",Ze.state=Be.TEXT):de==="]"?Ze.cdata+="]":(Ze.cdata+="]]"+de,Ze.state=Be.CDATA);continue;case Be.PROC_INST:de==="?"?Ze.state=Be.PROC_INST_ENDING:De(de)?Ze.state=Be.PROC_INST_BODY:Ze.procInstName+=de;continue;case Be.PROC_INST_BODY:if(!Ze.procInstBody&&De(de))continue;de==="?"?Ze.state=Be.PROC_INST_ENDING:Ze.procInstBody+=de;continue;case Be.PROC_INST_ENDING:de===">"?(et(Ze,"onprocessinginstruction",{name:Ze.procInstName,body:Ze.procInstBody}),Ze.procInstName=Ze.procInstBody="",Ze.state=Be.TEXT):(Ze.procInstBody+="?"+de,Ze.state=Be.PROC_INST_BODY);continue;case Be.OPEN_TAG:Le(we,de)?Ze.tagName+=de:(mt(Ze),de===">"?tt(Ze):de==="/"?Ze.state=Be.OPEN_TAG_SLASH:(De(de)||pt(Ze,"Invalid character in tag name"),Ze.state=Be.ATTRIB));continue;case Be.OPEN_TAG_SLASH:de===">"?(tt(Ze,!0),rt(Ze)):(pt(Ze,"Forward-slash in opening tag not followed by >"),Ze.state=Be.ATTRIB);continue;case Be.ATTRIB:if(De(de))continue;de===">"?tt(Ze):de==="/"?Ze.state=Be.OPEN_TAG_SLASH:Le(Me,de)?(Ze.attribName=de,Ze.attribValue="",Ze.state=Be.ATTRIB_NAME):pt(Ze,"Invalid attribute name");continue;case Be.ATTRIB_NAME:de==="="?Ze.state=Be.ATTRIB_VALUE:de===">"?(pt(Ze,"Attribute without value"),Ze.attribValue=Ze.attribName,nt(Ze),tt(Ze)):De(de)?Ze.state=Be.ATTRIB_NAME_SAW_WHITE:Le(we,de)?Ze.attribName+=de:pt(Ze,"Invalid attribute name");continue;case Be.ATTRIB_NAME_SAW_WHITE:if(de==="=")Ze.state=Be.ATTRIB_VALUE;else{if(De(de))continue;pt(Ze,"Attribute without value"),Ze.tag.attributes[Ze.attribName]="",Ze.attribValue="",et(Ze,"onattribute",{name:Ze.attribName,value:""}),Ze.attribName="",de===">"?tt(Ze):Le(Me,de)?(Ze.attribName=de,Ze.state=Be.ATTRIB_NAME):(pt(Ze,"Invalid attribute name"),Ze.state=Be.ATTRIB)}continue;case Be.ATTRIB_VALUE:if(De(de))continue;Ie(de)?(Ze.q=de,Ze.state=Be.ATTRIB_VALUE_QUOTED):(pt(Ze,"Unquoted attribute value"),Ze.state=Be.ATTRIB_VALUE_UNQUOTED,Ze.attribValue=de);continue;case Be.ATTRIB_VALUE_QUOTED:if(de!==Ze.q){de==="&"?Ze.state=Be.ATTRIB_VALUE_ENTITY_Q:Ze.attribValue+=de;continue}nt(Ze),Ze.q="",Ze.state=Be.ATTRIB_VALUE_CLOSED;continue;case Be.ATTRIB_VALUE_CLOSED:De(de)?Ze.state=Be.ATTRIB:de===">"?tt(Ze):de==="/"?Ze.state=Be.OPEN_TAG_SLASH:Le(Me,de)?(pt(Ze,"No whitespace between attributes"),Ze.attribName=de,Ze.attribValue="",Ze.state=Be.ATTRIB_NAME):pt(Ze,"Invalid attribute name");continue;case Be.ATTRIB_VALUE_UNQUOTED:if(!Pe(de)){de==="&"?Ze.state=Be.ATTRIB_VALUE_ENTITY_U:Ze.attribValue+=de;continue}nt(Ze),de===">"?tt(Ze):Ze.state=Be.ATTRIB;continue;case Be.CLOSE_TAG:if(Ze.tagName)de===">"?rt(Ze):Le(we,de)?Ze.tagName+=de:Ze.script?(Ze.script+="</"+Ze.tagName,Ze.tagName="",Ze.state=Be.SCRIPT):(De(de)||pt(Ze,"Invalid tagname in closing tag"),Ze.state=Be.CLOSE_TAG_SAW_WHITE);else{if(De(de))continue;We(Me,de)?Ze.script?(Ze.script+="</"+de,Ze.state=Be.SCRIPT):pt(Ze,"Invalid tagname in closing tag."):Ze.tagName=de}continue;case Be.CLOSE_TAG_SAW_WHITE:if(De(de))continue;de===">"?rt(Ze):pt(Ze,"Invalid characters in closing tag");continue;case Be.TEXT_ENTITY:case Be.ATTRIB_VALUE_ENTITY_Q:case Be.ATTRIB_VALUE_ENTITY_U:var $e,Ee;switch(Ze.state){case Be.TEXT_ENTITY:$e=Be.TEXT,Ee="textNode";break;case Be.ATTRIB_VALUE_ENTITY_Q:$e=Be.ATTRIB_VALUE_QUOTED,Ee="attribValue";break;case Be.ATTRIB_VALUE_ENTITY_U:$e=Be.ATTRIB_VALUE_UNQUOTED,Ee="attribValue";break}de===";"?(Ze[Ee]+=Et(Ze),Ze.entity="",Ze.state=$e):Le(Ze.entity.length?Ae:Ne,de)?Ze.entity+=de:(pt(Ze,"Invalid character in entity name"),Ze[Ee]+="&"+Ze.entity+de,Ze.entity="",Ze.state=$e);continue;default:throw new Error(Ze,"Unknown state: "+Ze.state)}return Ze.position>=Ze.bufferCheckPosition&&se(Ze),Ze}String.fromCodePoint||function(){var dt=String.fromCharCode,Ze=Math.floor,Ke=function(){var de=16384,xe=[],ze,$e,Ee=-1,Re=arguments.length;if(!Re)return"";for(var Fe="";++Ee<Re;){var Ge=Number(arguments[Ee]);if(!isFinite(Ge)||Ge<0||Ge>1114111||Ze(Ge)!==Ge)throw RangeError("Invalid code point: "+Ge);Ge<=65535?xe.push(Ge):(Ge-=65536,ze=(Ge>>10)+55296,$e=Ge%1024+56320,xe.push(ze,$e)),(Ee+1===Re||xe.length>de)&&(Fe+=dt.apply(null,xe),xe.length=0)}return Fe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ke,configurable:!0,writable:!0}):String.fromCodePoint=Ke}()})(typeof pe=="undefined"?this.sax={}:pe)}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(x,ke,pe){ke.exports=ae;var ne=x("events").EventEmitter,z=x("inherits");z(ae,ne),ae.Readable=x("readable-stream/lib/_stream_readable.js"),ae.Writable=x("readable-stream/lib/_stream_writable.js"),ae.Duplex=x("readable-stream/lib/_stream_duplex.js"),ae.Transform=x("readable-stream/lib/_stream_transform.js"),ae.PassThrough=x("readable-stream/lib/_stream_passthrough.js"),ae.finished=x("readable-stream/lib/internal/streams/end-of-stream.js"),ae.pipeline=x("readable-stream/lib/internal/streams/pipeline.js"),ae.Stream=ae;function ae(){ne.call(this)}ae.prototype.pipe=function(re,se){var me=this;function ie(Ce){re.writable&&re.write(Ce)===!1&&me.pause&&me.pause()}me.on("data",ie);function le(){me.readable&&me.resume&&me.resume()}re.on("drain",le),!re._isStdio&&(!se||se.end!==!1)&&(me.on("end",fe),me.on("close",he));var ue=!1;function fe(){ue||(ue=!0,re.end())}function he(){ue||(ue=!0,typeof re.destroy=="function"&&re.destroy())}function oe(Ce){if(Se(),ne.listenerCount(this,"error")===0)throw Ce}me.on("error",oe),re.on("error",oe);function Se(){me.removeListener("data",ie),re.removeListener("drain",le),me.removeListener("end",fe),me.removeListener("close",he),me.removeListener("error",oe),re.removeListener("error",oe),me.removeListener("end",Se),me.removeListener("close",Se),re.removeListener("close",Se)}return me.on("end",Se),me.on("close",Se),re.on("close",Se),re.emit("pipe",me),re}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(x,ke,pe){"use strict";function ne(le,ue){le.prototype=Object.create(ue.prototype),le.prototype.constructor=le,le.__proto__=ue}var z={};function ae(le,ue,fe){fe||(fe=Error);function he(Se,Ce,ye){return typeof ue=="string"?ue:ue(Se,Ce,ye)}var oe=function(Se){ne(Ce,Se);function Ce(ye,_e,Me){return Se.call(this,he(ye,_e,Me))||this}return Ce}(fe);oe.prototype.name=fe.name,oe.prototype.code=le,z[le]=oe}function re(le,ue){if(Array.isArray(le)){var fe=le.length;return le=le.map(function(he){return String(he)}),fe>2?"one of ".concat(ue," ").concat(le.slice(0,fe-1).join(", "),", or ")+le[fe-1]:fe===2?"one of ".concat(ue," ").concat(le[0]," or ").concat(le[1]):"of ".concat(ue," ").concat(le[0])}else return"of ".concat(ue," ").concat(String(le))}function se(le,ue,fe){return le.substr(!fe||fe<0?0:+fe,ue.length)===ue}function me(le,ue,fe){return(fe===void 0||fe>le.length)&&(fe=le.length),le.substring(fe-ue.length,fe)===ue}function ie(le,ue,fe){return typeof fe!="number"&&(fe=0),fe+ue.length>le.length?!1:le.indexOf(ue,fe)!==-1}ae("ERR_INVALID_OPT_VALUE",function(le,ue){return'The value "'+ue+'" is invalid for option "'+le+'"'},TypeError),ae("ERR_INVALID_ARG_TYPE",function(le,ue,fe){var he;typeof ue=="string"&&se(ue,"not ")?(he="must not be",ue=ue.replace(/^not /,"")):he="must be";var oe;if(me(le," argument"))oe="The ".concat(le," ").concat(he," ").concat(re(ue,"type"));else{var Se=ie(le,".")?"property":"argument";oe='The "'.concat(le,'" ').concat(Se," ").concat(he," ").concat(re(ue,"type"))}return oe+=". Received type ".concat(typeof fe),oe},TypeError),ae("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ae("ERR_METHOD_NOT_IMPLEMENTED",function(le){return"The "+le+" method is not implemented"}),ae("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ae("ERR_STREAM_DESTROYED",function(le){return"Cannot call "+le+" after a stream was destroyed"}),ae("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ae("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ae("ERR_STREAM_WRITE_AFTER_END","write after end"),ae("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ae("ERR_UNKNOWN_ENCODING",function(le){return"Unknown encoding: "+le},TypeError),ae("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ke.exports.codes=z},{}],400:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=Object.keys||function(he){var oe=[];for(var Se in he)oe.push(Se);return oe};ke.exports=le;var ae=x("./_stream_readable"),re=x("./_stream_writable");x("inherits")(le,ae);for(var se=z(re.prototype),me=0;me<se.length;me++){var ie=se[me];le.prototype[ie]||(le.prototype[ie]=re.prototype[ie])}function le(he){if(!(this instanceof le))return new le(he);ae.call(this,he),re.call(this,he),this.allowHalfOpen=!0,he&&(he.readable===!1&&(this.readable=!1),he.writable===!1&&(this.writable=!1),he.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ue)))}Object.defineProperty(le.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(le.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(le.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ue(){this._writableState.ended||ne.nextTick(fe,this)}function fe(he){he.end()}Object.defineProperty(le.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(oe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=oe,this._writableState.destroyed=oe)}})}).call(this)}).call(this,x("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(x,ke,pe){"use strict";ke.exports=z;var ne=x("./_stream_transform");x("inherits")(z,ne);function z(ae){if(!(this instanceof z))return new z(ae);ne.call(this,ae)}z.prototype._transform=function(ae,re,se){se(null,ae)}},{"./_stream_transform":403,inherits:364}],402:[function(x,ke,pe){(function(ne,z){(function(){"use strict";ke.exports=et;var ae;et.ReadableState=Ye;var re=x("events").EventEmitter,se=function(Re,Fe){return Re.listeners(Fe).length},me=x("./internal/streams/stream"),ie=x("buffer").Buffer,le=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ue(Ee){return ie.from(Ee)}function fe(Ee){return ie.isBuffer(Ee)||Ee instanceof le}var he=x("util"),oe;he&&he.debuglog?oe=he.debuglog("stream"):oe=function(){};var Se=x("./internal/streams/buffer_list"),Ce=x("./internal/streams/destroy"),ye=x("./internal/streams/state"),_e=ye.getHighWaterMark,Me=x("../errors").codes,we=Me.ERR_INVALID_ARG_TYPE,Ne=Me.ERR_STREAM_PUSH_AFTER_EOF,Ae=Me.ERR_METHOD_NOT_IMPLEMENTED,De=Me.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ie,Pe,Le;x("inherits")(et,me);var We=Ce.errorOrDestroy,Be=["error","close","destroy","pause","resume"];function He(Ee,Re,Fe){if(typeof Ee.prependListener=="function")return Ee.prependListener(Re,Fe);!Ee._events||!Ee._events[Re]?Ee.on(Re,Fe):Array.isArray(Ee._events[Re])?Ee._events[Re].unshift(Fe):Ee._events[Re]=[Fe,Ee._events[Re]]}function Ye(Ee,Re,Fe){ae=ae||x("./_stream_duplex"),Ee=Ee||{},typeof Fe!="boolean"&&(Fe=Re instanceof ae),this.objectMode=!!Ee.objectMode,Fe&&(this.objectMode=this.objectMode||!!Ee.readableObjectMode),this.highWaterMark=_e(this,Ee,"readableHighWaterMark",Fe),this.buffer=new Se,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=Ee.emitClose!==!1,this.autoDestroy=!!Ee.autoDestroy,this.destroyed=!1,this.defaultEncoding=Ee.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ee.encoding&&(Ie||(Ie=x("string_decoder/").StringDecoder),this.decoder=new Ie(Ee.encoding),this.encoding=Ee.encoding)}function et(Ee){if(ae=ae||x("./_stream_duplex"),!(this instanceof et))return new et(Ee);var Re=this instanceof ae;this._readableState=new Ye(Ee,this,Re),this.readable=!0,Ee&&(typeof Ee.read=="function"&&(this._read=Ee.read),typeof Ee.destroy=="function"&&(this._destroy=Ee.destroy)),me.call(this)}Object.defineProperty(et.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Re){this._readableState&&(this._readableState.destroyed=Re)}}),et.prototype.destroy=Ce.destroy,et.prototype._undestroy=Ce.undestroy,et.prototype._destroy=function(Ee,Re){Re(Ee)},et.prototype.push=function(Ee,Re){var Fe=this._readableState,Ge;return Fe.objectMode?Ge=!0:typeof Ee=="string"&&(Re=Re||Fe.defaultEncoding,Re!==Fe.encoding&&(Ee=ie.from(Ee,Re),Re=""),Ge=!0),st(this,Ee,Re,!1,Ge)},et.prototype.unshift=function(Ee){return st(this,Ee,null,!0,!1)};function st(Ee,Re,Fe,Ge,it){oe("readableAddChunk",Re);var gt=Ee._readableState;if(Re===null)gt.reading=!1,ft(Ee,gt);else{var Kt;if(it||(Kt=Ve(gt,Re)),Kt)We(Ee,Kt);else if(gt.objectMode||Re&&Re.length>0)if(typeof Re!="string"&&!gt.objectMode&&Object.getPrototypeOf(Re)!==ie.prototype&&(Re=ue(Re)),Ge)gt.endEmitted?We(Ee,new De):yt(Ee,gt,Re,!0);else if(gt.ended)We(Ee,new Ne);else{if(gt.destroyed)return!1;gt.reading=!1,gt.decoder&&!Fe?(Re=gt.decoder.write(Re),gt.objectMode||Re.length!==0?yt(Ee,gt,Re,!1):rt(Ee,gt)):yt(Ee,gt,Re,!1)}else Ge||(gt.reading=!1,rt(Ee,gt))}return!gt.ended&&(gt.length<gt.highWaterMark||gt.length===0)}function yt(Ee,Re,Fe,Ge){Re.flowing&&Re.length===0&&!Re.sync?(Re.awaitDrain=0,Ee.emit("data",Fe)):(Re.length+=Re.objectMode?1:Fe.length,Ge?Re.buffer.unshift(Fe):Re.buffer.push(Fe),Re.needReadable&&nt(Ee)),rt(Ee,Re)}function Ve(Ee,Re){var Fe;return!fe(Re)&&typeof Re!="string"&&Re!==void 0&&!Ee.objectMode&&(Fe=new we("chunk",["string","Buffer","Uint8Array"],Re)),Fe}et.prototype.isPaused=function(){return this._readableState.flowing===!1},et.prototype.setEncoding=function(Ee){Ie||(Ie=x("string_decoder/").StringDecoder);var Re=new Ie(Ee);this._readableState.decoder=Re,this._readableState.encoding=this._readableState.decoder.encoding;for(var Fe=this._readableState.buffer.head,Ge="";Fe!==null;)Ge+=Re.write(Fe.data),Fe=Fe.next;return this._readableState.buffer.clear(),Ge!==""&&this._readableState.buffer.push(Ge),this._readableState.length=Ge.length,this};var Qe=1073741824;function pt(Ee){return Ee>=Qe?Ee=Qe:(Ee--,Ee|=Ee>>>1,Ee|=Ee>>>2,Ee|=Ee>>>4,Ee|=Ee>>>8,Ee|=Ee>>>16,Ee++),Ee}function mt(Ee,Re){return Ee<=0||Re.length===0&&Re.ended?0:Re.objectMode?1:Ee!==Ee?Re.flowing&&Re.length?Re.buffer.head.data.length:Re.length:(Ee>Re.highWaterMark&&(Re.highWaterMark=pt(Ee)),Ee<=Re.length?Ee:Re.ended?Re.length:(Re.needReadable=!0,0))}et.prototype.read=function(Ee){oe("read",Ee),Ee=parseInt(Ee,10);var Re=this._readableState,Fe=Ee;if(Ee!==0&&(Re.emittedReadable=!1),Ee===0&&Re.needReadable&&((Re.highWaterMark!==0?Re.length>=Re.highWaterMark:Re.length>0)||Re.ended))return oe("read: emitReadable",Re.length,Re.ended),Re.length===0&&Re.ended?xe(this):nt(this),null;if(Ee=mt(Ee,Re),Ee===0&&Re.ended)return Re.length===0&&xe(this),null;var Ge=Re.needReadable;oe("need readable",Ge),(Re.length===0||Re.length-Ee<Re.highWaterMark)&&(Ge=!0,oe("length less than watermark",Ge)),Re.ended||Re.reading?(Ge=!1,oe("reading or ended",Ge)):Ge&&(oe("do read"),Re.reading=!0,Re.sync=!0,Re.length===0&&(Re.needReadable=!0),this._read(Re.highWaterMark),Re.sync=!1,Re.reading||(Ee=mt(Fe,Re)));var it;return Ee>0?it=de(Ee,Re):it=null,it===null?(Re.needReadable=Re.length<=Re.highWaterMark,Ee=0):(Re.length-=Ee,Re.awaitDrain=0),Re.length===0&&(Re.ended||(Re.needReadable=!0),Fe!==Ee&&Re.ended&&xe(this)),it!==null&&this.emit("data",it),it};function ft(Ee,Re){if(oe("onEofChunk"),!Re.ended){if(Re.decoder){var Fe=Re.decoder.end();Fe&&Fe.length&&(Re.buffer.push(Fe),Re.length+=Re.objectMode?1:Fe.length)}Re.ended=!0,Re.sync?nt(Ee):(Re.needReadable=!1,Re.emittedReadable||(Re.emittedReadable=!0,tt(Ee)))}}function nt(Ee){var Re=Ee._readableState;oe("emitReadable",Re.needReadable,Re.emittedReadable),Re.needReadable=!1,Re.emittedReadable||(oe("emitReadable",Re.flowing),Re.emittedReadable=!0,ne.nextTick(tt,Ee))}function tt(Ee){var Re=Ee._readableState;oe("emitReadable_",Re.destroyed,Re.length,Re.ended),!Re.destroyed&&(Re.length||Re.ended)&&(Ee.emit("readable"),Re.emittedReadable=!1),Re.needReadable=!Re.flowing&&!Re.ended&&Re.length<=Re.highWaterMark,Ke(Ee)}function rt(Ee,Re){Re.readingMore||(Re.readingMore=!0,ne.nextTick(Et,Ee,Re))}function Et(Ee,Re){for(;!Re.reading&&!Re.ended&&(Re.length<Re.highWaterMark||Re.flowing&&Re.length===0);){var Fe=Re.length;if(oe("maybeReadMore read 0"),Ee.read(0),Fe===Re.length)break}Re.readingMore=!1}et.prototype._read=function(Ee){We(this,new Ae("_read()"))},et.prototype.pipe=function(Ee,Re){var Fe=this,Ge=this._readableState;switch(Ge.pipesCount){case 0:Ge.pipes=Ee;break;case 1:Ge.pipes=[Ge.pipes,Ee];break;default:Ge.pipes.push(Ee);break}Ge.pipesCount+=1,oe("pipe count=%d opts=%j",Ge.pipesCount,Re);var it=(!Re||Re.end!==!1)&&Ee!==ne.stdout&&Ee!==ne.stderr,gt=it?kt:xt;Ge.endEmitted?ne.nextTick(gt):Fe.once("end",gt),Ee.on("unpipe",Kt);function Kt(en,an){oe("onunpipe"),en===Fe&&an&&an.hasUnpiped===!1&&(an.hasUnpiped=!0,jt())}function kt(){oe("onend"),Ee.end()}var St=bt(Fe);Ee.on("drain",St);var Wt=!1;function jt(){oe("cleanup"),Ee.removeListener("close",sn),Ee.removeListener("finish",Dt),Ee.removeListener("drain",St),Ee.removeListener("error",_t),Ee.removeListener("unpipe",Kt),Fe.removeListener("end",kt),Fe.removeListener("end",xt),Fe.removeListener("data",Vt),Wt=!0,Ge.awaitDrain&&(!Ee._writableState||Ee._writableState.needDrain)&&St()}Fe.on("data",Vt);function Vt(en){oe("ondata");var an=Ee.write(en);oe("dest.write",an),an===!1&&((Ge.pipesCount===1&&Ge.pipes===Ee||Ge.pipesCount>1&&$e(Ge.pipes,Ee)!==-1)&&!Wt&&(oe("false write response, pause",Ge.awaitDrain),Ge.awaitDrain++),Fe.pause())}function _t(en){oe("onerror",en),xt(),Ee.removeListener("error",_t),se(Ee,"error")===0&&We(Ee,en)}He(Ee,"error",_t);function sn(){Ee.removeListener("finish",Dt),xt()}Ee.once("close",sn);function Dt(){oe("onfinish"),Ee.removeListener("close",sn),xt()}Ee.once("finish",Dt);function xt(){oe("unpipe"),Fe.unpipe(Ee)}return Ee.emit("pipe",Fe),Ge.flowing||(oe("pipe resume"),Fe.resume()),Ee};function bt(Ee){return function(){var Fe=Ee._readableState;oe("pipeOnDrain",Fe.awaitDrain),Fe.awaitDrain&&Fe.awaitDrain--,Fe.awaitDrain===0&&se(Ee,"data")&&(Fe.flowing=!0,Ke(Ee))}}et.prototype.unpipe=function(Ee){var Re=this._readableState,Fe={hasUnpiped:!1};if(Re.pipesCount===0)return this;if(Re.pipesCount===1)return Ee&&Ee!==Re.pipes?this:(Ee||(Ee=Re.pipes),Re.pipes=null,Re.pipesCount=0,Re.flowing=!1,Ee&&Ee.emit("unpipe",this,Fe),this);if(!Ee){var Ge=Re.pipes,it=Re.pipesCount;Re.pipes=null,Re.pipesCount=0,Re.flowing=!1;for(var gt=0;gt<it;gt++)Ge[gt].emit("unpipe",this,{hasUnpiped:!1});return this}var Kt=$e(Re.pipes,Ee);return Kt===-1?this:(Re.pipes.splice(Kt,1),Re.pipesCount-=1,Re.pipesCount===1&&(Re.pipes=Re.pipes[0]),Ee.emit("unpipe",this,Fe),this)},et.prototype.on=function(Ee,Re){var Fe=me.prototype.on.call(this,Ee,Re),Ge=this._readableState;return Ee==="data"?(Ge.readableListening=this.listenerCount("readable")>0,Ge.flowing!==!1&&this.resume()):Ee==="readable"&&!Ge.endEmitted&&!Ge.readableListening&&(Ge.readableListening=Ge.needReadable=!0,Ge.flowing=!1,Ge.emittedReadable=!1,oe("on readable",Ge.length,Ge.reading),Ge.length?nt(this):Ge.reading||ne.nextTick(Lt,this)),Fe},et.prototype.addListener=et.prototype.on,et.prototype.removeListener=function(Ee,Re){var Fe=me.prototype.removeListener.call(this,Ee,Re);return Ee==="readable"&&ne.nextTick(Pt,this),Fe},et.prototype.removeAllListeners=function(Ee){var Re=me.prototype.removeAllListeners.apply(this,arguments);return(Ee==="readable"||Ee===void 0)&&ne.nextTick(Pt,this),Re};function Pt(Ee){var Re=Ee._readableState;Re.readableListening=Ee.listenerCount("readable")>0,Re.resumeScheduled&&!Re.paused?Re.flowing=!0:Ee.listenerCount("data")>0&&Ee.resume()}function Lt(Ee){oe("readable nexttick read 0"),Ee.read(0)}et.prototype.resume=function(){var Ee=this._readableState;return Ee.flowing||(oe("resume"),Ee.flowing=!Ee.readableListening,dt(this,Ee)),Ee.paused=!1,this};function dt(Ee,Re){Re.resumeScheduled||(Re.resumeScheduled=!0,ne.nextTick(Ze,Ee,Re))}function Ze(Ee,Re){oe("resume",Re.reading),Re.reading||Ee.read(0),Re.resumeScheduled=!1,Ee.emit("resume"),Ke(Ee),Re.flowing&&!Re.reading&&Ee.read(0)}et.prototype.pause=function(){return oe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(oe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ke(Ee){var Re=Ee._readableState;for(oe("flow",Re.flowing);Re.flowing&&Ee.read()!==null;);}et.prototype.wrap=function(Ee){var Re=this,Fe=this._readableState,Ge=!1;Ee.on("end",function(){if(oe("wrapped end"),Fe.decoder&&!Fe.ended){var Kt=Fe.decoder.end();Kt&&Kt.length&&Re.push(Kt)}Re.push(null)}),Ee.on("data",function(Kt){if(oe("wrapped data"),Fe.decoder&&(Kt=Fe.decoder.write(Kt)),!(Fe.objectMode&&Kt==null)&&!(!Fe.objectMode&&(!Kt||!Kt.length))){var kt=Re.push(Kt);kt||(Ge=!0,Ee.pause())}});for(var it in Ee)this[it]===void 0&&typeof Ee[it]=="function"&&(this[it]=function(kt){return function(){return Ee[kt].apply(Ee,arguments)}}(it));for(var gt=0;gt<Be.length;gt++)Ee.on(Be[gt],this.emit.bind(this,Be[gt]));return this._read=function(Kt){oe("wrapped _read",Kt),Ge&&(Ge=!1,Ee.resume())},this},typeof Symbol=="function"&&(et.prototype[Symbol.asyncIterator]=function(){return Pe===void 0&&(Pe=x("./internal/streams/async_iterator")),Pe(this)}),Object.defineProperty(et.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(et.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(et.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Re){this._readableState&&(this._readableState.flowing=Re)}}),et._fromList=de,Object.defineProperty(et.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function de(Ee,Re){if(Re.length===0)return null;var Fe;return Re.objectMode?Fe=Re.buffer.shift():!Ee||Ee>=Re.length?(Re.decoder?Fe=Re.buffer.join(""):Re.buffer.length===1?Fe=Re.buffer.first():Fe=Re.buffer.concat(Re.length),Re.buffer.clear()):Fe=Re.buffer.consume(Ee,Re.decoder),Fe}function xe(Ee){var Re=Ee._readableState;oe("endReadable",Re.endEmitted),Re.endEmitted||(Re.ended=!0,ne.nextTick(ze,Re,Ee))}function ze(Ee,Re){if(oe("endReadableNT",Ee.endEmitted,Ee.length),!Ee.endEmitted&&Ee.length===0&&(Ee.endEmitted=!0,Re.readable=!1,Re.emit("end"),Ee.autoDestroy)){var Fe=Re._writableState;(!Fe||Fe.autoDestroy&&Fe.finished)&&Re.destroy()}}typeof Symbol=="function"&&(et.from=function(Ee,Re){return Le===void 0&&(Le=x("./internal/streams/from")),Le(et,Ee,Re)});function $e(Ee,Re){for(var Fe=0,Ge=Ee.length;Fe<Ge;Fe++)if(Ee[Fe]===Re)return Fe;return-1}}).call(this)}).call(this,x("_process"),typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(x,ke,pe){"use strict";ke.exports=le;var ne=x("../errors").codes,z=ne.ERR_METHOD_NOT_IMPLEMENTED,ae=ne.ERR_MULTIPLE_CALLBACK,re=ne.ERR_TRANSFORM_ALREADY_TRANSFORMING,se=ne.ERR_TRANSFORM_WITH_LENGTH_0,me=x("./_stream_duplex");x("inherits")(le,me);function ie(he,oe){var Se=this._transformState;Se.transforming=!1;var Ce=Se.writecb;if(Ce===null)return this.emit("error",new ae);Se.writechunk=null,Se.writecb=null,oe!=null&&this.push(oe),Ce(he);var ye=this._readableState;ye.reading=!1,(ye.needReadable||ye.length<ye.highWaterMark)&&this._read(ye.highWaterMark)}function le(he){if(!(this instanceof le))return new le(he);me.call(this,he),this._transformState={afterTransform:ie.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,he&&(typeof he.transform=="function"&&(this._transform=he.transform),typeof he.flush=="function"&&(this._flush=he.flush)),this.on("prefinish",ue)}function ue(){var he=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(oe,Se){fe(he,oe,Se)}):fe(this,null,null)}le.prototype.push=function(he,oe){return this._transformState.needTransform=!1,me.prototype.push.call(this,he,oe)},le.prototype._transform=function(he,oe,Se){Se(new z("_transform()"))},le.prototype._write=function(he,oe,Se){var Ce=this._transformState;if(Ce.writecb=Se,Ce.writechunk=he,Ce.writeencoding=oe,!Ce.transforming){var ye=this._readableState;(Ce.needTransform||ye.needReadable||ye.length<ye.highWaterMark)&&this._read(ye.highWaterMark)}},le.prototype._read=function(he){var oe=this._transformState;oe.writechunk!==null&&!oe.transforming?(oe.transforming=!0,this._transform(oe.writechunk,oe.writeencoding,oe.afterTransform)):oe.needTransform=!0},le.prototype._destroy=function(he,oe){me.prototype._destroy.call(this,he,function(Se){oe(Se)})};function fe(he,oe,Se){if(oe)return he.emit("error",oe);if(Se!=null&&he.push(Se),he._writableState.length)throw new se;if(he._transformState.transforming)throw new re;return he.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(x,ke,pe){(function(ne,z){(function(){"use strict";ke.exports=Ye;function ae(Ke,de,xe){this.chunk=Ke,this.encoding=de,this.callback=xe,this.next=null}function re(Ke){var de=this;this.next=null,this.entry=null,this.finish=function(){Ze(de,Ke)}}var se;Ye.WritableState=Be;var me={deprecate:x("util-deprecate")},ie=x("./internal/streams/stream"),le=x("buffer").Buffer,ue=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function fe(Ke){return le.from(Ke)}function he(Ke){return le.isBuffer(Ke)||Ke instanceof ue}var oe=x("./internal/streams/destroy"),Se=x("./internal/streams/state"),Ce=Se.getHighWaterMark,ye=x("../errors").codes,_e=ye.ERR_INVALID_ARG_TYPE,Me=ye.ERR_METHOD_NOT_IMPLEMENTED,we=ye.ERR_MULTIPLE_CALLBACK,Ne=ye.ERR_STREAM_CANNOT_PIPE,Ae=ye.ERR_STREAM_DESTROYED,De=ye.ERR_STREAM_NULL_VALUES,Ie=ye.ERR_STREAM_WRITE_AFTER_END,Pe=ye.ERR_UNKNOWN_ENCODING,Le=oe.errorOrDestroy;x("inherits")(Ye,ie);function We(){}function Be(Ke,de,xe){se=se||x("./_stream_duplex"),Ke=Ke||{},typeof xe!="boolean"&&(xe=de instanceof se),this.objectMode=!!Ke.objectMode,xe&&(this.objectMode=this.objectMode||!!Ke.writableObjectMode),this.highWaterMark=Ce(this,Ke,"writableHighWaterMark",xe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ze=Ke.decodeStrings===!1;this.decodeStrings=!ze,this.defaultEncoding=Ke.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($e){ft(de,$e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ke.emitClose!==!1,this.autoDestroy=!!Ke.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new re(this)}Be.prototype.getBuffer=function(){for(var de=this.bufferedRequest,xe=[];de;)xe.push(de),de=de.next;return xe},function(){try{Object.defineProperty(Be.prototype,"buffer",{get:me.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ke){}}();var He;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(He=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(de){return He.call(this,de)?!0:this!==Ye?!1:de&&de._writableState instanceof Be}})):He=function(de){return de instanceof this};function Ye(Ke){se=se||x("./_stream_duplex");var de=this instanceof se;if(!de&&!He.call(Ye,this))return new Ye(Ke);this._writableState=new Be(Ke,this,de),this.writable=!0,Ke&&(typeof Ke.write=="function"&&(this._write=Ke.write),typeof Ke.writev=="function"&&(this._writev=Ke.writev),typeof Ke.destroy=="function"&&(this._destroy=Ke.destroy),typeof Ke.final=="function"&&(this._final=Ke.final)),ie.call(this)}Ye.prototype.pipe=function(){Le(this,new Ne)};function et(Ke,de){var xe=new Ie;Le(Ke,xe),ne.nextTick(de,xe)}function st(Ke,de,xe,ze){var $e;return xe===null?$e=new De:typeof xe!="string"&&!de.objectMode&&($e=new _e("chunk",["string","Buffer"],xe)),$e?(Le(Ke,$e),ne.nextTick(ze,$e),!1):!0}Ye.prototype.write=function(Ke,de,xe){var ze=this._writableState,$e=!1,Ee=!ze.objectMode&&he(Ke);return Ee&&!le.isBuffer(Ke)&&(Ke=fe(Ke)),typeof de=="function"&&(xe=de,de=null),Ee?de="buffer":de||(de=ze.defaultEncoding),typeof xe!="function"&&(xe=We),ze.ending?et(this,xe):(Ee||st(this,ze,Ke,xe))&&(ze.pendingcb++,$e=Ve(this,ze,Ee,Ke,de,xe)),$e},Ye.prototype.cork=function(){this._writableState.corked++},Ye.prototype.uncork=function(){var Ke=this._writableState;Ke.corked&&(Ke.corked--,!Ke.writing&&!Ke.corked&&!Ke.bufferProcessing&&Ke.bufferedRequest&&rt(this,Ke))},Ye.prototype.setDefaultEncoding=function(de){if(typeof de=="string"&&(de=de.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((de+"").toLowerCase())>-1))throw new Pe(de);return this._writableState.defaultEncoding=de,this},Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function yt(Ke,de,xe){return!Ke.objectMode&&Ke.decodeStrings!==!1&&typeof de=="string"&&(de=le.from(de,xe)),de}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ve(Ke,de,xe,ze,$e,Ee){if(!xe){var Re=yt(de,ze,$e);ze!==Re&&(xe=!0,$e="buffer",ze=Re)}var Fe=de.objectMode?1:ze.length;de.length+=Fe;var Ge=de.length<de.highWaterMark;if(Ge||(de.needDrain=!0),de.writing||de.corked){var it=de.lastBufferedRequest;de.lastBufferedRequest={chunk:ze,encoding:$e,isBuf:xe,callback:Ee,next:null},it?it.next=de.lastBufferedRequest:de.bufferedRequest=de.lastBufferedRequest,de.bufferedRequestCount+=1}else Qe(Ke,de,!1,Fe,ze,$e,Ee);return Ge}function Qe(Ke,de,xe,ze,$e,Ee,Re){de.writelen=ze,de.writecb=Re,de.writing=!0,de.sync=!0,de.destroyed?de.onwrite(new Ae("write")):xe?Ke._writev($e,de.onwrite):Ke._write($e,Ee,de.onwrite),de.sync=!1}function pt(Ke,de,xe,ze,$e){--de.pendingcb,xe?(ne.nextTick($e,ze),ne.nextTick(Lt,Ke,de),Ke._writableState.errorEmitted=!0,Le(Ke,ze)):($e(ze),Ke._writableState.errorEmitted=!0,Le(Ke,ze),Lt(Ke,de))}function mt(Ke){Ke.writing=!1,Ke.writecb=null,Ke.length-=Ke.writelen,Ke.writelen=0}function ft(Ke,de){var xe=Ke._writableState,ze=xe.sync,$e=xe.writecb;if(typeof $e!="function")throw new we;if(mt(xe),de)pt(Ke,xe,ze,de,$e);else{var Ee=Et(xe)||Ke.destroyed;!Ee&&!xe.corked&&!xe.bufferProcessing&&xe.bufferedRequest&&rt(Ke,xe),ze?ne.nextTick(nt,Ke,xe,Ee,$e):nt(Ke,xe,Ee,$e)}}function nt(Ke,de,xe,ze){xe||tt(Ke,de),de.pendingcb--,ze(),Lt(Ke,de)}function tt(Ke,de){de.length===0&&de.needDrain&&(de.needDrain=!1,Ke.emit("drain"))}function rt(Ke,de){de.bufferProcessing=!0;var xe=de.bufferedRequest;if(Ke._writev&&xe&&xe.next){var ze=de.bufferedRequestCount,$e=new Array(ze),Ee=de.corkedRequestsFree;Ee.entry=xe;for(var Re=0,Fe=!0;xe;)$e[Re]=xe,xe.isBuf||(Fe=!1),xe=xe.next,Re+=1;$e.allBuffers=Fe,Qe(Ke,de,!0,de.length,$e,"",Ee.finish),de.pendingcb++,de.lastBufferedRequest=null,Ee.next?(de.corkedRequestsFree=Ee.next,Ee.next=null):de.corkedRequestsFree=new re(de),de.bufferedRequestCount=0}else{for(;xe;){var Ge=xe.chunk,it=xe.encoding,gt=xe.callback,Kt=de.objectMode?1:Ge.length;if(Qe(Ke,de,!1,Kt,Ge,it,gt),xe=xe.next,de.bufferedRequestCount--,de.writing)break}xe===null&&(de.lastBufferedRequest=null)}de.bufferedRequest=xe,de.bufferProcessing=!1}Ye.prototype._write=function(Ke,de,xe){xe(new Me("_write()"))},Ye.prototype._writev=null,Ye.prototype.end=function(Ke,de,xe){var ze=this._writableState;return typeof Ke=="function"?(xe=Ke,Ke=null,de=null):typeof de=="function"&&(xe=de,de=null),Ke!=null&&this.write(Ke,de),ze.corked&&(ze.corked=1,this.uncork()),ze.ending||dt(this,ze,xe),this},Object.defineProperty(Ye.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Et(Ke){return Ke.ending&&Ke.length===0&&Ke.bufferedRequest===null&&!Ke.finished&&!Ke.writing}function bt(Ke,de){Ke._final(function(xe){de.pendingcb--,xe&&Le(Ke,xe),de.prefinished=!0,Ke.emit("prefinish"),Lt(Ke,de)})}function Pt(Ke,de){!de.prefinished&&!de.finalCalled&&(typeof Ke._final=="function"&&!de.destroyed?(de.pendingcb++,de.finalCalled=!0,ne.nextTick(bt,Ke,de)):(de.prefinished=!0,Ke.emit("prefinish")))}function Lt(Ke,de){var xe=Et(de);if(xe&&(Pt(Ke,de),de.pendingcb===0&&(de.finished=!0,Ke.emit("finish"),de.autoDestroy))){var ze=Ke._readableState;(!ze||ze.autoDestroy&&ze.endEmitted)&&Ke.destroy()}return xe}function dt(Ke,de,xe){de.ending=!0,Lt(Ke,de),xe&&(de.finished?ne.nextTick(xe):Ke.once("finish",xe)),de.ended=!0,Ke.writable=!1}function Ze(Ke,de,xe){var ze=Ke.entry;for(Ke.entry=null;ze;){var $e=ze.callback;de.pendingcb--,$e(xe),ze=ze.next}de.corkedRequestsFree.next=Ke}Object.defineProperty(Ye.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(de){this._writableState&&(this._writableState.destroyed=de)}}),Ye.prototype.destroy=oe.destroy,Ye.prototype._undestroy=oe.undestroy,Ye.prototype._destroy=function(Ke,de){de(Ke)}}).call(this)}).call(this,x("_process"),typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(x,ke,pe){(function(ne){(function(){"use strict";var z;function ae(De,Ie,Pe){return Ie=re(Ie),Ie in De?Object.defineProperty(De,Ie,{value:Pe,enumerable:!0,configurable:!0,writable:!0}):De[Ie]=Pe,De}function re(De){var Ie=se(De,"string");return typeof Ie=="symbol"?Ie:String(Ie)}function se(De,Ie){if(typeof De!="object"||De===null)return De;var Pe=De[Symbol.toPrimitive];if(Pe!==void 0){var Le=Pe.call(De,Ie||"default");if(typeof Le!="object")return Le;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ie==="string"?String:Number)(De)}var me=x("./end-of-stream"),ie=Symbol("lastResolve"),le=Symbol("lastReject"),ue=Symbol("error"),fe=Symbol("ended"),he=Symbol("lastPromise"),oe=Symbol("handlePromise"),Se=Symbol("stream");function Ce(De,Ie){return{value:De,done:Ie}}function ye(De){var Ie=De[ie];if(Ie!==null){var Pe=De[Se].read();Pe!==null&&(De[he]=null,De[ie]=null,De[le]=null,Ie(Ce(Pe,!1)))}}function _e(De){ne.nextTick(ye,De)}function Me(De,Ie){return function(Pe,Le){De.then(function(){if(Ie[fe]){Pe(Ce(void 0,!0));return}Ie[oe](Pe,Le)},Le)}}var we=Object.getPrototypeOf(function(){}),Ne=Object.setPrototypeOf((z={get stream(){return this[Se]},next:function(){var Ie=this,Pe=this[ue];if(Pe!==null)return Promise.reject(Pe);if(this[fe])return Promise.resolve(Ce(void 0,!0));if(this[Se].destroyed)return new Promise(function(He,Ye){ne.nextTick(function(){Ie[ue]?Ye(Ie[ue]):He(Ce(void 0,!0))})});var Le=this[he],We;if(Le)We=new Promise(Me(Le,this));else{var Be=this[Se].read();if(Be!==null)return Promise.resolve(Ce(Be,!1));We=new Promise(this[oe])}return this[he]=We,We}},ae(z,Symbol.asyncIterator,function(){return this}),ae(z,"return",function(){var Ie=this;return new Promise(function(Pe,Le){Ie[Se].destroy(null,function(We){if(We){Le(We);return}Pe(Ce(void 0,!0))})})}),z),we),Ae=function(Ie){var Pe,Le=Object.create(Ne,(Pe={},ae(Pe,Se,{value:Ie,writable:!0}),ae(Pe,ie,{value:null,writable:!0}),ae(Pe,le,{value:null,writable:!0}),ae(Pe,ue,{value:null,writable:!0}),ae(Pe,fe,{value:Ie._readableState.endEmitted,writable:!0}),ae(Pe,oe,{value:function(Be,He){var Ye=Le[Se].read();Ye?(Le[he]=null,Le[ie]=null,Le[le]=null,Be(Ce(Ye,!1))):(Le[ie]=Be,Le[le]=He)},writable:!0}),Pe));return Le[he]=null,me(Ie,function(We){if(We&&We.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Be=Le[le];Be!==null&&(Le[he]=null,Le[ie]=null,Le[le]=null,Be(We)),Le[ue]=We;return}var He=Le[ie];He!==null&&(Le[he]=null,Le[ie]=null,Le[le]=null,He(Ce(void 0,!0))),Le[fe]=!0}),Ie.on("readable",_e.bind(null,Le)),Le};ke.exports=Ae}).call(this)}).call(this,x("_process"))},{"./end-of-stream":408,_process:467}],406:[function(x,ke,pe){"use strict";function ne(ye,_e){var Me=Object.keys(ye);if(Object.getOwnPropertySymbols){var we=Object.getOwnPropertySymbols(ye);_e&&(we=we.filter(function(Ne){return Object.getOwnPropertyDescriptor(ye,Ne).enumerable})),Me.push.apply(Me,we)}return Me}function z(ye){for(var _e=1;_e<arguments.length;_e++){var Me=arguments[_e]!=null?arguments[_e]:{};_e%2?ne(Object(Me),!0).forEach(function(we){ae(ye,we,Me[we])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ye,Object.getOwnPropertyDescriptors(Me)):ne(Object(Me)).forEach(function(we){Object.defineProperty(ye,we,Object.getOwnPropertyDescriptor(Me,we))})}return ye}function ae(ye,_e,Me){return _e=ie(_e),_e in ye?Object.defineProperty(ye,_e,{value:Me,enumerable:!0,configurable:!0,writable:!0}):ye[_e]=Me,ye}function re(ye,_e){if(!(ye instanceof _e))throw new TypeError("Cannot call a class as a function")}function se(ye,_e){for(var Me=0;Me<_e.length;Me++){var we=_e[Me];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ye,ie(we.key),we)}}function me(ye,_e,Me){return _e&&se(ye.prototype,_e),Me&&se(ye,Me),Object.defineProperty(ye,"prototype",{writable:!1}),ye}function ie(ye){var _e=le(ye,"string");return typeof _e=="symbol"?_e:String(_e)}function le(ye,_e){if(typeof ye!="object"||ye===null)return ye;var Me=ye[Symbol.toPrimitive];if(Me!==void 0){var we=Me.call(ye,_e||"default");if(typeof we!="object")return we;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(ye)}var ue=x("buffer"),fe=ue.Buffer,he=x("util"),oe=he.inspect,Se=oe&&oe.custom||"inspect";function Ce(ye,_e,Me){fe.prototype.copy.call(ye,_e,Me)}ke.exports=function(){function ye(){re(this,ye),this.head=null,this.tail=null,this.length=0}return me(ye,[{key:"push",value:function(Me){var we={data:Me,next:null};this.length>0?this.tail.next=we:this.head=we,this.tail=we,++this.length}},{key:"unshift",value:function(Me){var we={data:Me,next:this.head};this.length===0&&(this.tail=we),this.head=we,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Me=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Me}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Me){if(this.length===0)return"";for(var we=this.head,Ne=""+we.data;we=we.next;)Ne+=Me+we.data;return Ne}},{key:"concat",value:function(Me){if(this.length===0)return fe.alloc(0);for(var we=fe.allocUnsafe(Me>>>0),Ne=this.head,Ae=0;Ne;)Ce(Ne.data,we,Ae),Ae+=Ne.data.length,Ne=Ne.next;return we}},{key:"consume",value:function(Me,we){var Ne;return Me<this.head.data.length?(Ne=this.head.data.slice(0,Me),this.head.data=this.head.data.slice(Me)):Me===this.head.data.length?Ne=this.shift():Ne=we?this._getString(Me):this._getBuffer(Me),Ne}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Me){var we=this.head,Ne=1,Ae=we.data;for(Me-=Ae.length;we=we.next;){var De=we.data,Ie=Me>De.length?De.length:Me;if(Ie===De.length?Ae+=De:Ae+=De.slice(0,Me),Me-=Ie,Me===0){Ie===De.length?(++Ne,we.next?this.head=we.next:this.head=this.tail=null):(this.head=we,we.data=De.slice(Ie));break}++Ne}return this.length-=Ne,Ae}},{key:"_getBuffer",value:function(Me){var we=fe.allocUnsafe(Me),Ne=this.head,Ae=1;for(Ne.data.copy(we),Me-=Ne.data.length;Ne=Ne.next;){var De=Ne.data,Ie=Me>De.length?De.length:Me;if(De.copy(we,we.length-Me,0,Ie),Me-=Ie,Me===0){Ie===De.length?(++Ae,Ne.next?this.head=Ne.next:this.head=this.tail=null):(this.head=Ne,Ne.data=De.slice(Ie));break}++Ae}return this.length-=Ae,we}},{key:Se,value:function(Me,we){return oe(this,z(z({},we),{},{depth:0,customInspect:!1}))}}]),ye}()},{buffer:90,util:89}],407:[function(x,ke,pe){(function(ne){(function(){"use strict";function z(le,ue){var fe=this,he=this._readableState&&this._readableState.destroyed,oe=this._writableState&&this._writableState.destroyed;return he||oe?(ue?ue(le):le&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ne.nextTick(me,this,le)):ne.nextTick(me,this,le)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(le||null,function(Se){!ue&&Se?fe._writableState?fe._writableState.errorEmitted?ne.nextTick(re,fe):(fe._writableState.errorEmitted=!0,ne.nextTick(ae,fe,Se)):ne.nextTick(ae,fe,Se):ue?(ne.nextTick(re,fe),ue(Se)):ne.nextTick(re,fe)}),this)}function ae(le,ue){me(le,ue),re(le)}function re(le){le._writableState&&!le._writableState.emitClose||le._readableState&&!le._readableState.emitClose||le.emit("close")}function se(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function me(le,ue){le.emit("error",ue)}function ie(le,ue){var fe=le._readableState,he=le._writableState;fe&&fe.autoDestroy||he&&he.autoDestroy?le.destroy(ue):le.emit("error",ue)}ke.exports={destroy:z,undestroy:se,errorOrDestroy:ie}}).call(this)}).call(this,x("_process"))},{_process:467}],408:[function(x,ke,pe){"use strict";var ne=x("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function z(me){var ie=!1;return function(){if(!ie){ie=!0;for(var le=arguments.length,ue=new Array(le),fe=0;fe<le;fe++)ue[fe]=arguments[fe];me.apply(this,ue)}}}function ae(){}function re(me){return me.setHeader&&typeof me.abort=="function"}function se(me,ie,le){if(typeof ie=="function")return se(me,null,ie);ie||(ie={}),le=z(le||ae);var ue=ie.readable||ie.readable!==!1&&me.readable,fe=ie.writable||ie.writable!==!1&&me.writable,he=function(){me.writable||Se()},oe=me._writableState&&me._writableState.finished,Se=function(){fe=!1,oe=!0,ue||le.call(me)},Ce=me._readableState&&me._readableState.endEmitted,ye=function(){ue=!1,Ce=!0,fe||le.call(me)},_e=function(Ae){le.call(me,Ae)},Me=function(){var Ae;if(ue&&!Ce)return(!me._readableState||!me._readableState.ended)&&(Ae=new ne),le.call(me,Ae);if(fe&&!oe)return(!me._writableState||!me._writableState.ended)&&(Ae=new ne),le.call(me,Ae)},we=function(){me.req.on("finish",Se)};return re(me)?(me.on("complete",Se),me.on("abort",Me),me.req?we():me.on("request",we)):fe&&!me._writableState&&(me.on("end",he),me.on("close",he)),me.on("end",ye),me.on("finish",Se),ie.error!==!1&&me.on("error",_e),me.on("close",Me),function(){me.removeListener("complete",Se),me.removeListener("abort",Me),me.removeListener("request",we),me.req&&me.req.removeListener("finish",Se),me.removeListener("end",he),me.removeListener("close",he),me.removeListener("finish",Se),me.removeListener("end",ye),me.removeListener("error",_e),me.removeListener("close",Me)}}ke.exports=se},{"../../../errors":399}],409:[function(x,ke,pe){ke.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(x,ke,pe){"use strict";var ne;function z(Se){var Ce=!1;return function(){Ce||(Ce=!0,Se.apply(void 0,arguments))}}var ae=x("../../../errors").codes,re=ae.ERR_MISSING_ARGS,se=ae.ERR_STREAM_DESTROYED;function me(Se){if(Se)throw Se}function ie(Se){return Se.setHeader&&typeof Se.abort=="function"}function le(Se,Ce,ye,_e){_e=z(_e);var Me=!1;Se.on("close",function(){Me=!0}),ne===void 0&&(ne=x("./end-of-stream")),ne(Se,{readable:Ce,writable:ye},function(Ne){if(Ne)return _e(Ne);Me=!0,_e()});var we=!1;return function(Ne){if(!Me&&!we){if(we=!0,ie(Se))return Se.abort();if(typeof Se.destroy=="function")return Se.destroy();_e(Ne||new se("pipe"))}}}function ue(Se){Se()}function fe(Se,Ce){return Se.pipe(Ce)}function he(Se){return!Se.length||typeof Se[Se.length-1]!="function"?me:Se.pop()}function oe(){for(var Se=arguments.length,Ce=new Array(Se),ye=0;ye<Se;ye++)Ce[ye]=arguments[ye];var _e=he(Ce);if(Array.isArray(Ce[0])&&(Ce=Ce[0]),Ce.length<2)throw new re("streams");var Me,we=Ce.map(function(Ne,Ae){var De=Ae<Ce.length-1,Ie=Ae>0;return le(Ne,De,Ie,function(Pe){Me||(Me=Pe),Pe&&we.forEach(ue),!De&&(we.forEach(ue),_e(Me))})});return Ce.reduce(fe)}ke.exports=oe},{"../../../errors":399,"./end-of-stream":408}],411:[function(x,ke,pe){"use strict";var ne=x("../../../errors").codes.ERR_INVALID_OPT_VALUE;function z(re,se,me){return re.highWaterMark!=null?re.highWaterMark:se?re[me]:null}function ae(re,se,me,ie){var le=z(se,ie,me);if(le!=null){if(!(isFinite(le)&&Math.floor(le)===le)||le<0){var ue=ie?me:"highWaterMark";throw new ne(ue,le)}return Math.floor(le)}return re.objectMode?16:16*1024}ke.exports={getHighWaterMark:ae}},{"../../../errors":399}],412:[function(x,ke,pe){arguments[4][393][0].apply(pe,arguments)},{dup:393,events:344}],413:[function(x,ke,pe){"use strict";var ne=x("safe-buffer").Buffer,z=ne.isEncoding||function(we){switch(we=""+we,we&&we.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ae(we){if(!we)return"utf8";for(var Ne;;)switch(we){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return we;default:if(Ne)return;we=(""+we).toLowerCase(),Ne=!0}}function re(we){var Ne=ae(we);if(typeof Ne!="string"&&(ne.isEncoding===z||!z(we)))throw new Error("Unknown encoding: "+we);return Ne||we}pe.StringDecoder=se;function se(we){this.encoding=re(we);var Ne;switch(this.encoding){case"utf16le":this.text=oe,this.end=Se,Ne=4;break;case"utf8":this.fillLast=ue,Ne=4;break;case"base64":this.text=Ce,this.end=ye,Ne=3;break;default:this.write=_e,this.end=Me;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ne.allocUnsafe(Ne)}se.prototype.write=function(we){if(we.length===0)return"";var Ne,Ae;if(this.lastNeed){if(Ne=this.fillLast(we),Ne===void 0)return"";Ae=this.lastNeed,this.lastNeed=0}else Ae=0;return Ae<we.length?Ne?Ne+this.text(we,Ae):this.text(we,Ae):Ne||""},se.prototype.end=he,se.prototype.text=fe,se.prototype.fillLast=function(we){if(this.lastNeed<=we.length)return we.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);we.copy(this.lastChar,this.lastTotal-this.lastNeed,0,we.length),this.lastNeed-=we.length};function me(we){return we<=127?0:we>>5===6?2:we>>4===14?3:we>>3===30?4:we>>6===2?-1:-2}function ie(we,Ne,Ae){var De=Ne.length-1;if(De<Ae)return 0;var Ie=me(Ne[De]);return Ie>=0?(Ie>0&&(we.lastNeed=Ie-1),Ie):--De<Ae||Ie===-2?0:(Ie=me(Ne[De]),Ie>=0?(Ie>0&&(we.lastNeed=Ie-2),Ie):--De<Ae||Ie===-2?0:(Ie=me(Ne[De]),Ie>=0?(Ie>0&&(Ie===2?Ie=0:we.lastNeed=Ie-3),Ie):0))}function le(we,Ne,Ae){if((Ne[0]&192)!==128)return we.lastNeed=0,"\uFFFD";if(we.lastNeed>1&&Ne.length>1){if((Ne[1]&192)!==128)return we.lastNeed=1,"\uFFFD";if(we.lastNeed>2&&Ne.length>2&&(Ne[2]&192)!==128)return we.lastNeed=2,"\uFFFD"}}function ue(we){var Ne=this.lastTotal-this.lastNeed,Ae=le(this,we,Ne);if(Ae!==void 0)return Ae;if(this.lastNeed<=we.length)return we.copy(this.lastChar,Ne,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);we.copy(this.lastChar,Ne,0,we.length),this.lastNeed-=we.length}function fe(we,Ne){var Ae=ie(this,we,Ne);if(!this.lastNeed)return we.toString("utf8",Ne);this.lastTotal=Ae;var De=we.length-(Ae-this.lastNeed);return we.copy(this.lastChar,0,De),we.toString("utf8",Ne,De)}function he(we){var Ne=we&&we.length?this.write(we):"";return this.lastNeed?Ne+"\uFFFD":Ne}function oe(we,Ne){if((we.length-Ne)%2===0){var Ae=we.toString("utf16le",Ne);if(Ae){var De=Ae.charCodeAt(Ae.length-1);if(De>=55296&&De<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=we[we.length-2],this.lastChar[1]=we[we.length-1],Ae.slice(0,-1)}return Ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=we[we.length-1],we.toString("utf16le",Ne,we.length-1)}function Se(we){var Ne=we&&we.length?this.write(we):"";if(this.lastNeed){var Ae=this.lastTotal-this.lastNeed;return Ne+this.lastChar.toString("utf16le",0,Ae)}return Ne}function Ce(we,Ne){var Ae=(we.length-Ne)%3;return Ae===0?we.toString("base64",Ne):(this.lastNeed=3-Ae,this.lastTotal=3,Ae===1?this.lastChar[0]=we[we.length-1]:(this.lastChar[0]=we[we.length-2],this.lastChar[1]=we[we.length-1]),we.toString("base64",Ne,we.length-Ae))}function ye(we){var Ne=we&&we.length?this.write(we):"";return this.lastNeed?Ne+this.lastChar.toString("base64",0,3-this.lastNeed):Ne}function _e(we){return we.toString(this.encoding)}function Me(we){return we&&we.length?this.write(we):""}},{"safe-buffer":396}],414:[function(x,ke,pe){(function(ne,z){(function(){var ae=x("process/browser.js").nextTick,re=Function.prototype.apply,se=Array.prototype.slice,me={},ie=0;pe.setTimeout=function(){return new le(re.call(setTimeout,window,arguments),clearTimeout)},pe.setInterval=function(){return new le(re.call(setInterval,window,arguments),clearInterval)},pe.clearTimeout=pe.clearInterval=function(ue){ue.close()};function le(ue,fe){this._id=ue,this._clearFn=fe}le.prototype.unref=le.prototype.ref=function(){},le.prototype.close=function(){this._clearFn.call(window,this._id)},pe.enroll=function(ue,fe){clearTimeout(ue._idleTimeoutId),ue._idleTimeout=fe},pe.unenroll=function(ue){clearTimeout(ue._idleTimeoutId),ue._idleTimeout=-1},pe._unrefActive=pe.active=function(ue){clearTimeout(ue._idleTimeoutId);var fe=ue._idleTimeout;fe>=0&&(ue._idleTimeoutId=setTimeout(function(){ue._onTimeout&&ue._onTimeout()},fe))},pe.setImmediate=typeof ne=="function"?ne:function(ue){var fe=ie++,he=arguments.length<2?!1:se.call(arguments,1);return me[fe]=!0,ae(function(){me[fe]&&(he?ue.apply(null,he):ue.call(null),pe.clearImmediate(fe))}),fe},pe.clearImmediate=typeof z=="function"?z:function(ue){delete me[ue]}}).call(this)}).call(this,x("timers").setImmediate,x("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(x,ke,pe){var ne=x("buffer").Buffer;ke.exports=function(z){if(z instanceof Uint8Array){if(z.byteOffset===0&&z.byteLength===z.buffer.byteLength)return z.buffer;if(typeof z.buffer.slice=="function")return z.buffer.slice(z.byteOffset,z.byteOffset+z.byteLength)}if(ne.isBuffer(z)){for(var ae=new Uint8Array(z.length),re=z.length,se=0;se<re;se++)ae[se]=z[se];return ae.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(x,ke,pe){(function(ne){(function(){ke.exports=z;function z(re,se){if(ae("noDeprecation"))return re;var me=!1;function ie(){if(!me){if(ae("throwDeprecation"))throw new Error(se);ae("traceDeprecation")?console.trace(se):console.warn(se),me=!0}return re.apply(this,arguments)}return ie}function ae(re){try{if(!ne.localStorage)return!1}catch(me){return!1}var se=ne.localStorage[re];return se==null?!1:String(se).toLowerCase()==="true"}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(x,ke,pe){arguments[4][84][0].apply(pe,arguments)},{dup:84}],418:[function(x,ke,pe){"use strict";var ne=x("is-arguments"),z=x("is-generator-function"),ae=x("which-typed-array"),re=x("is-typed-array");function se(it){return it.call.bind(it)}var me=typeof BigInt!="undefined",ie=typeof Symbol!="undefined",le=se(Object.prototype.toString),ue=se(Number.prototype.valueOf),fe=se(String.prototype.valueOf),he=se(Boolean.prototype.valueOf);if(me)var oe=se(BigInt.prototype.valueOf);if(ie)var Se=se(Symbol.prototype.valueOf);function Ce(it,gt){if(typeof it!="object")return!1;try{return gt(it),!0}catch(Kt){return!1}}pe.isArgumentsObject=ne,pe.isGeneratorFunction=z,pe.isTypedArray=re;function ye(it){return typeof Promise!="undefined"&&it instanceof Promise||it!==null&&typeof it=="object"&&typeof it.then=="function"&&typeof it.catch=="function"}pe.isPromise=ye;function _e(it){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(it):re(it)||rt(it)}pe.isArrayBufferView=_e;function Me(it){return ae(it)==="Uint8Array"}pe.isUint8Array=Me;function we(it){return ae(it)==="Uint8ClampedArray"}pe.isUint8ClampedArray=we;function Ne(it){return ae(it)==="Uint16Array"}pe.isUint16Array=Ne;function Ae(it){return ae(it)==="Uint32Array"}pe.isUint32Array=Ae;function De(it){return ae(it)==="Int8Array"}pe.isInt8Array=De;function Ie(it){return ae(it)==="Int16Array"}pe.isInt16Array=Ie;function Pe(it){return ae(it)==="Int32Array"}pe.isInt32Array=Pe;function Le(it){return ae(it)==="Float32Array"}pe.isFloat32Array=Le;function We(it){return ae(it)==="Float64Array"}pe.isFloat64Array=We;function Be(it){return ae(it)==="BigInt64Array"}pe.isBigInt64Array=Be;function He(it){return ae(it)==="BigUint64Array"}pe.isBigUint64Array=He;function Ye(it){return le(it)==="[object Map]"}Ye.working=typeof Map!="undefined"&&Ye(new Map);function et(it){return typeof Map=="undefined"?!1:Ye.working?Ye(it):it instanceof Map}pe.isMap=et;function st(it){return le(it)==="[object Set]"}st.working=typeof Set!="undefined"&&st(new Set);function yt(it){return typeof Set=="undefined"?!1:st.working?st(it):it instanceof Set}pe.isSet=yt;function Ve(it){return le(it)==="[object WeakMap]"}Ve.working=typeof WeakMap!="undefined"&&Ve(new WeakMap);function Qe(it){return typeof WeakMap=="undefined"?!1:Ve.working?Ve(it):it instanceof WeakMap}pe.isWeakMap=Qe;function pt(it){return le(it)==="[object WeakSet]"}pt.working=typeof WeakSet!="undefined"&&pt(new WeakSet);function mt(it){return pt(it)}pe.isWeakSet=mt;function ft(it){return le(it)==="[object ArrayBuffer]"}ft.working=typeof ArrayBuffer!="undefined"&&ft(new ArrayBuffer);function nt(it){return typeof ArrayBuffer=="undefined"?!1:ft.working?ft(it):it instanceof ArrayBuffer}pe.isArrayBuffer=nt;function tt(it){return le(it)==="[object DataView]"}tt.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&tt(new DataView(new ArrayBuffer(1),0,1));function rt(it){return typeof DataView=="undefined"?!1:tt.working?tt(it):it instanceof DataView}pe.isDataView=rt;var Et=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function bt(it){return le(it)==="[object SharedArrayBuffer]"}function Pt(it){return typeof Et=="undefined"?!1:(typeof bt.working=="undefined"&&(bt.working=bt(new Et)),bt.working?bt(it):it instanceof Et)}pe.isSharedArrayBuffer=Pt;function Lt(it){return le(it)==="[object AsyncFunction]"}pe.isAsyncFunction=Lt;function dt(it){return le(it)==="[object Map Iterator]"}pe.isMapIterator=dt;function Ze(it){return le(it)==="[object Set Iterator]"}pe.isSetIterator=Ze;function Ke(it){return le(it)==="[object Generator]"}pe.isGeneratorObject=Ke;function de(it){return le(it)==="[object WebAssembly.Module]"}pe.isWebAssemblyCompiledModule=de;function xe(it){return Ce(it,ue)}pe.isNumberObject=xe;function ze(it){return Ce(it,fe)}pe.isStringObject=ze;function $e(it){return Ce(it,he)}pe.isBooleanObject=$e;function Ee(it){return me&&Ce(it,oe)}pe.isBigIntObject=Ee;function Re(it){return ie&&Ce(it,Se)}pe.isSymbolObject=Re;function Fe(it){return xe(it)||ze(it)||$e(it)||Ee(it)||Re(it)}pe.isBoxedPrimitive=Fe;function Ge(it){return typeof Uint8Array!="undefined"&&(nt(it)||Pt(it))}pe.isAnyArrayBuffer=Ge,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(it){Object.defineProperty(pe,it,{enumerable:!1,value:function(){throw new Error(it+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(x,ke,pe){(function(ne){(function(){var z=Object.getOwnPropertyDescriptors||function(Et){for(var bt=Object.keys(Et),Pt={},Lt=0;Lt<bt.length;Lt++)Pt[bt[Lt]]=Object.getOwnPropertyDescriptor(Et,bt[Lt]);return Pt},ae=/%[sdj%]/g;pe.format=function(rt){if(!Ie(rt)){for(var Et=[],bt=0;bt<arguments.length;bt++)Et.push(ie(arguments[bt]));return Et.join(" ")}for(var bt=1,Pt=arguments,Lt=Pt.length,dt=String(rt).replace(ae,function(Ke){if(Ke==="%%")return"%";if(bt>=Lt)return Ke;switch(Ke){case"%s":return String(Pt[bt++]);case"%d":return Number(Pt[bt++]);case"%j":try{return JSON.stringify(Pt[bt++])}catch(de){return"[Circular]"}default:return Ke}}),Ze=Pt[bt];bt<Lt;Ze=Pt[++bt])Ne(Ze)||!Be(Ze)?dt+=" "+Ze:dt+=" "+ie(Ze);return dt},pe.deprecate=function(rt,Et){if(typeof ne!="undefined"&&ne.noDeprecation===!0)return rt;if(typeof ne=="undefined")return function(){return pe.deprecate(rt,Et).apply(this,arguments)};var bt=!1;function Pt(){if(!bt){if(ne.throwDeprecation)throw new Error(Et);ne.traceDeprecation?console.trace(Et):console.error(Et),bt=!0}return rt.apply(this,arguments)}return Pt};var re={},se=/^$/;if(ne.env.NODE_DEBUG){var me=ne.env.NODE_DEBUG;me=me.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),se=new RegExp("^"+me+"$","i")}pe.debuglog=function(rt){if(rt=rt.toUpperCase(),!re[rt])if(se.test(rt)){var Et=ne.pid;re[rt]=function(){var bt=pe.format.apply(pe,arguments);console.error("%s %d: %s",rt,Et,bt)}}else re[rt]=function(){};return re[rt]};function ie(rt,Et){var bt={seen:[],stylize:ue};return arguments.length>=3&&(bt.depth=arguments[2]),arguments.length>=4&&(bt.colors=arguments[3]),we(Et)?bt.showHidden=Et:Et&&pe._extend(bt,Et),Le(bt.showHidden)&&(bt.showHidden=!1),Le(bt.depth)&&(bt.depth=2),Le(bt.colors)&&(bt.colors=!1),Le(bt.customInspect)&&(bt.customInspect=!0),bt.colors&&(bt.stylize=le),he(bt,rt,bt.depth)}pe.inspect=ie,ie.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ie.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function le(rt,Et){var bt=ie.styles[Et];return bt?"\x1B["+ie.colors[bt][0]+"m"+rt+"\x1B["+ie.colors[bt][1]+"m":rt}function ue(rt,Et){return rt}function fe(rt){var Et={};return rt.forEach(function(bt,Pt){Et[bt]=!0}),Et}function he(rt,Et,bt){if(rt.customInspect&&Et&&et(Et.inspect)&&Et.inspect!==pe.inspect&&!(Et.constructor&&Et.constructor.prototype===Et)){var Pt=Et.inspect(bt,rt);return Ie(Pt)||(Pt=he(rt,Pt,bt)),Pt}var Lt=oe(rt,Et);if(Lt)return Lt;var dt=Object.keys(Et),Ze=fe(dt);if(rt.showHidden&&(dt=Object.getOwnPropertyNames(Et)),Ye(Et)&&(dt.indexOf("message")>=0||dt.indexOf("description")>=0))return Se(Et);if(dt.length===0){if(et(Et)){var Ke=Et.name?": "+Et.name:"";return rt.stylize("[Function"+Ke+"]","special")}if(We(Et))return rt.stylize(RegExp.prototype.toString.call(Et),"regexp");if(He(Et))return rt.stylize(Date.prototype.toString.call(Et),"date");if(Ye(Et))return Se(Et)}var de="",xe=!1,ze=["{","}"];if(Me(Et)&&(xe=!0,ze=["[","]"]),et(Et)){var $e=Et.name?": "+Et.name:"";de=" [Function"+$e+"]"}if(We(Et)&&(de=" "+RegExp.prototype.toString.call(Et)),He(Et)&&(de=" "+Date.prototype.toUTCString.call(Et)),Ye(Et)&&(de=" "+Se(Et)),dt.length===0&&(!xe||Et.length==0))return ze[0]+de+ze[1];if(bt<0)return We(Et)?rt.stylize(RegExp.prototype.toString.call(Et),"regexp"):rt.stylize("[Object]","special");rt.seen.push(Et);var Ee;return xe?Ee=Ce(rt,Et,bt,Ze,dt):Ee=dt.map(function(Re){return ye(rt,Et,bt,Ze,Re,xe)}),rt.seen.pop(),_e(Ee,de,ze)}function oe(rt,Et){if(Le(Et))return rt.stylize("undefined","undefined");if(Ie(Et)){var bt="'"+JSON.stringify(Et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return rt.stylize(bt,"string")}if(De(Et))return rt.stylize(""+Et,"number");if(we(Et))return rt.stylize(""+Et,"boolean");if(Ne(Et))return rt.stylize("null","null")}function Se(rt){return"["+Error.prototype.toString.call(rt)+"]"}function Ce(rt,Et,bt,Pt,Lt){for(var dt=[],Ze=0,Ke=Et.length;Ze<Ke;++Ze)mt(Et,String(Ze))?dt.push(ye(rt,Et,bt,Pt,String(Ze),!0)):dt.push("");return Lt.forEach(function(de){de.match(/^\d+$/)||dt.push(ye(rt,Et,bt,Pt,de,!0))}),dt}function ye(rt,Et,bt,Pt,Lt,dt){var Ze,Ke,de;if(de=Object.getOwnPropertyDescriptor(Et,Lt)||{value:Et[Lt]},de.get?de.set?Ke=rt.stylize("[Getter/Setter]","special"):Ke=rt.stylize("[Getter]","special"):de.set&&(Ke=rt.stylize("[Setter]","special")),mt(Pt,Lt)||(Ze="["+Lt+"]"),Ke||(rt.seen.indexOf(de.value)<0?(Ne(bt)?Ke=he(rt,de.value,null):Ke=he(rt,de.value,bt-1),Ke.indexOf(`
|
|
|
`)>-1&&(dt?Ke=Ke.split(`
|
|
|
`).map(function(xe){return" "+xe}).join(`
|
|
|
`).slice(2):Ke=`
|
|
|
`+Ke.split(`
|
|
|
`).map(function(xe){return" "+xe}).join(`
|
|
|
`))):Ke=rt.stylize("[Circular]","special")),Le(Ze)){if(dt&&Lt.match(/^\d+$/))return Ke;Ze=JSON.stringify(""+Lt),Ze.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ze=Ze.slice(1,-1),Ze=rt.stylize(Ze,"name")):(Ze=Ze.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ze=rt.stylize(Ze,"string"))}return Ze+": "+Ke}function _e(rt,Et,bt){var Pt=0,Lt=rt.reduce(function(dt,Ze){return Pt++,Ze.indexOf(`
|
|
|
`)>=0&&Pt++,dt+Ze.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Lt>60?bt[0]+(Et===""?"":Et+`
|
|
|
`)+" "+rt.join(`,
|
|
|
`)+" "+bt[1]:bt[0]+Et+" "+rt.join(", ")+" "+bt[1]}pe.types=x("./support/types");function Me(rt){return Array.isArray(rt)}pe.isArray=Me;function we(rt){return typeof rt=="boolean"}pe.isBoolean=we;function Ne(rt){return rt===null}pe.isNull=Ne;function Ae(rt){return rt==null}pe.isNullOrUndefined=Ae;function De(rt){return typeof rt=="number"}pe.isNumber=De;function Ie(rt){return typeof rt=="string"}pe.isString=Ie;function Pe(rt){return typeof rt=="symbol"}pe.isSymbol=Pe;function Le(rt){return rt===void 0}pe.isUndefined=Le;function We(rt){return Be(rt)&&yt(rt)==="[object RegExp]"}pe.isRegExp=We,pe.types.isRegExp=We;function Be(rt){return typeof rt=="object"&&rt!==null}pe.isObject=Be;function He(rt){return Be(rt)&&yt(rt)==="[object Date]"}pe.isDate=He,pe.types.isDate=He;function Ye(rt){return Be(rt)&&(yt(rt)==="[object Error]"||rt instanceof Error)}pe.isError=Ye,pe.types.isNativeError=Ye;function et(rt){return typeof rt=="function"}pe.isFunction=et;function st(rt){return rt===null||typeof rt=="boolean"||typeof rt=="number"||typeof rt=="string"||typeof rt=="symbol"||typeof rt=="undefined"}pe.isPrimitive=st,pe.isBuffer=x("./support/isBuffer");function yt(rt){return Object.prototype.toString.call(rt)}function Ve(rt){return rt<10?"0"+rt.toString(10):rt.toString(10)}var Qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pt(){var rt=new Date,Et=[Ve(rt.getHours()),Ve(rt.getMinutes()),Ve(rt.getSeconds())].join(":");return[rt.getDate(),Qe[rt.getMonth()],Et].join(" ")}pe.log=function(){console.log("%s - %s",pt(),pe.format.apply(pe,arguments))},pe.inherits=x("inherits"),pe._extend=function(rt,Et){if(!Et||!Be(Et))return rt;for(var bt=Object.keys(Et),Pt=bt.length;Pt--;)rt[bt[Pt]]=Et[bt[Pt]];return rt};function mt(rt,Et){return Object.prototype.hasOwnProperty.call(rt,Et)}var ft=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;pe.promisify=function(Et){if(typeof Et!="function")throw new TypeError('The "original" argument must be of type Function');if(ft&&Et[ft]){var bt=Et[ft];if(typeof bt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(bt,ft,{value:bt,enumerable:!1,writable:!1,configurable:!0}),bt}function bt(){for(var Pt,Lt,dt=new Promise(function(de,xe){Pt=de,Lt=xe}),Ze=[],Ke=0;Ke<arguments.length;Ke++)Ze.push(arguments[Ke]);Ze.push(function(de,xe){de?Lt(de):Pt(xe)});try{Et.apply(this,Ze)}catch(de){Lt(de)}return dt}return Object.setPrototypeOf(bt,Object.getPrototypeOf(Et)),ft&&Object.defineProperty(bt,ft,{value:bt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(bt,z(Et))},pe.promisify.custom=ft;function nt(rt,Et){if(!rt){var bt=new Error("Promise was rejected with a falsy value");bt.reason=rt,rt=bt}return Et(rt)}function tt(rt){if(typeof rt!="function")throw new TypeError('The "original" argument must be of type Function');function Et(){for(var bt=[],Pt=0;Pt<arguments.length;Pt++)bt.push(arguments[Pt]);var Lt=bt.pop();if(typeof Lt!="function")throw new TypeError("The last argument must be of type Function");var dt=this,Ze=function(){return Lt.apply(dt,arguments)};rt.apply(this,bt).then(function(Ke){ne.nextTick(Ze.bind(null,null,Ke))},function(Ke){ne.nextTick(nt.bind(null,Ke,Ze))})}return Object.setPrototypeOf(Et,Object.getPrototypeOf(rt)),Object.defineProperties(Et,z(rt)),Et}pe.callbackify=tt}).call(this)}).call(this,x("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=x("for-each"),ae=x("available-typed-arrays"),re=x("call-bind"),se=x("call-bind/callBound"),me=x("gopd"),ie=se("Object.prototype.toString"),le=x("has-tostringtag/shams")(),ue=typeof globalThis=="undefined"?ne:globalThis,fe=ae(),he=se("String.prototype.slice"),oe=Object.getPrototypeOf,Se=se("Array.prototype.indexOf",!0)||function(we,Ne){for(var Ae=0;Ae<we.length;Ae+=1)if(we[Ae]===Ne)return Ae;return-1},Ce={__proto__:null};le&&me&&oe?z(fe,function(Me){var we=new ue[Me];if(Symbol.toStringTag in we){var Ne=oe(we),Ae=me(Ne,Symbol.toStringTag);if(!Ae){var De=oe(Ne);Ae=me(De,Symbol.toStringTag)}Ce["$"+Me]=re(Ae.get)}}):z(fe,function(Me){var we=new ue[Me];Ce["$"+Me]=re(we.slice)});var ye=function(we){var Ne=!1;return z(Ce,function(Ae,De){if(!Ne)try{"$"+Ae(we)===De&&(Ne=he(De,1))}catch(Ie){}}),Ne},_e=function(we){var Ne=!1;return z(Ce,function(Ae,De){if(!Ne)try{Ae(we),Ne=he(De,1)}catch(Ie){}}),Ne};ke.exports=function(we){if(!we||typeof we!="object")return!1;if(!le){var Ne=he(ie(we),8,-1);return Se(fe,Ne)>-1?Ne:Ne!=="Object"?!1:_e(we)}return me?ye(we):null}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(x,ke,pe){(function(){"use strict";pe.stripBOM=function(ne){return ne[0]==="\uFEFF"?ne.substring(1):ne}}).call(this)},{}],422:[function(x,ke,pe){(function(){"use strict";var ne,z,ae,re,se,me={}.hasOwnProperty;ne=x("xmlbuilder"),z=x("./defaults").defaults,re=function(ie){return typeof ie=="string"&&(ie.indexOf("&")>=0||ie.indexOf(">")>=0||ie.indexOf("<")>=0)},se=function(ie){return"<![CDATA["+ae(ie)+"]]>"},ae=function(ie){return ie.replace("]]>","]]]]><![CDATA[>")},pe.Builder=function(){function ie(le){var ue,fe,he;this.options={},fe=z["0.2"];for(ue in fe)me.call(fe,ue)&&(he=fe[ue],this.options[ue]=he);for(ue in le)me.call(le,ue)&&(he=le[ue],this.options[ue]=he)}return ie.prototype.buildObject=function(le){var ue,fe,he,oe,Se;return ue=this.options.attrkey,fe=this.options.charkey,Object.keys(le).length===1&&this.options.rootName===z["0.2"].rootName?(Se=Object.keys(le)[0],le=le[Se]):Se=this.options.rootName,he=function(Ce){return function(ye,_e){var Me,we,Ne,Ae,De,Ie;if(typeof _e!="object")Ce.options.cdata&&re(_e)?ye.raw(se(_e)):ye.txt(_e);else if(Array.isArray(_e)){for(Ae in _e)if(me.call(_e,Ae)){we=_e[Ae];for(De in we)Ne=we[De],ye=he(ye.ele(De),Ne).up()}}else for(De in _e)if(me.call(_e,De))if(we=_e[De],De===ue){if(typeof we=="object")for(Me in we)Ie=we[Me],ye=ye.att(Me,Ie)}else if(De===fe)Ce.options.cdata&&re(we)?ye=ye.raw(se(we)):ye=ye.txt(we);else if(Array.isArray(we))for(Ae in we)me.call(we,Ae)&&(Ne=we[Ae],typeof Ne=="string"?Ce.options.cdata&&re(Ne)?ye=ye.ele(De).raw(se(Ne)).up():ye=ye.ele(De,Ne).up():ye=he(ye.ele(De),Ne).up());else typeof we=="object"?ye=he(ye.ele(De),we).up():typeof we=="string"&&Ce.options.cdata&&re(we)?ye=ye.ele(De).raw(se(we)).up():(we==null&&(we=""),ye=ye.ele(De,we.toString()).up());return ye}}(this),oe=ne.create(Se,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),he(oe,le).end(this.options.renderOpts)},ie}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(x,ke,pe){(function(){pe.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(x,ke,pe){(function(){"use strict";var ne,z,ae,re,se,me,ie,le,ue,fe=function(Se,Ce){return function(){return Se.apply(Ce,arguments)}},he=function(Se,Ce){for(var ye in Ce)oe.call(Ce,ye)&&(Se[ye]=Ce[ye]);function _e(){this.constructor=Se}return _e.prototype=Ce.prototype,Se.prototype=new _e,Se.__super__=Ce.prototype,Se},oe={}.hasOwnProperty;le=x("sax"),re=x("events"),ne=x("./bom"),ie=x("./processors"),ue=x("timers").setImmediate,z=x("./defaults").defaults,se=function(Se){return typeof Se=="object"&&Se!=null&&Object.keys(Se).length===0},me=function(Se,Ce,ye){var _e,Me,we;for(_e=0,Me=Se.length;_e<Me;_e++)we=Se[_e],Ce=we(Ce,ye);return Ce},ae=function(Se,Ce,ye){var _e;return _e=Object.create(null),_e.value=ye,_e.writable=!0,_e.enumerable=!0,_e.configurable=!0,Object.defineProperty(Se,Ce,_e)},pe.Parser=function(Se){he(Ce,Se);function Ce(ye){this.parseStringPromise=fe(this.parseStringPromise,this),this.parseString=fe(this.parseString,this),this.reset=fe(this.reset,this),this.assignOrPush=fe(this.assignOrPush,this),this.processAsync=fe(this.processAsync,this);var _e,Me,we;if(!(this instanceof pe.Parser))return new pe.Parser(ye);this.options={},Me=z["0.2"];for(_e in Me)oe.call(Me,_e)&&(we=Me[_e],this.options[_e]=we);for(_e in ye)oe.call(ye,_e)&&(we=ye[_e],this.options[_e]=we);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(ie.normalize)),this.reset()}return Ce.prototype.processAsync=function(){var ye,_e;try{return this.remaining.length<=this.options.chunkSize?(ye=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ye),this.saxParser.close()):(ye=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ye),ue(this.processAsync))}catch(Me){if(_e=Me,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(_e)}},Ce.prototype.assignOrPush=function(ye,_e,Me){return _e in ye?(ye[_e]instanceof Array||ae(ye,_e,[ye[_e]]),ye[_e].push(Me)):this.options.explicitArray?ae(ye,_e,[Me]):ae(ye,_e,Me)},Ce.prototype.reset=function(){var ye,_e,Me,we;return this.removeAllListeners(),this.saxParser=le.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Ne){return function(Ae){if(Ne.saxParser.resume(),!Ne.saxParser.errThrown)return Ne.saxParser.errThrown=!0,Ne.emit("error",Ae)}}(this),this.saxParser.onend=function(Ne){return function(){if(!Ne.saxParser.ended)return Ne.saxParser.ended=!0,Ne.emit("end",Ne.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,we=[],ye=this.options.attrkey,_e=this.options.charkey,this.saxParser.onopentag=function(Ne){return function(Ae){var De,Ie,Pe,Le,We;if(Pe={},Pe[_e]="",!Ne.options.ignoreAttrs){We=Ae.attributes;for(De in We)oe.call(We,De)&&(!(ye in Pe)&&!Ne.options.mergeAttrs&&(Pe[ye]={}),Ie=Ne.options.attrValueProcessors?me(Ne.options.attrValueProcessors,Ae.attributes[De],De):Ae.attributes[De],Le=Ne.options.attrNameProcessors?me(Ne.options.attrNameProcessors,De):De,Ne.options.mergeAttrs?Ne.assignOrPush(Pe,Le,Ie):ae(Pe[ye],Le,Ie))}return Pe["#name"]=Ne.options.tagNameProcessors?me(Ne.options.tagNameProcessors,Ae.name):Ae.name,Ne.options.xmlns&&(Pe[Ne.options.xmlnskey]={uri:Ae.uri,local:Ae.local}),we.push(Pe)}}(this),this.saxParser.onclosetag=function(Ne){return function(){var Ae,De,Ie,Pe,Le,We,Be,He,Ye,et;if(We=we.pop(),Le=We["#name"],(!Ne.options.explicitChildren||!Ne.options.preserveChildrenOrder)&&delete We["#name"],We.cdata===!0&&(Ae=We.cdata,delete We.cdata),Ye=we[we.length-1],We[_e].match(/^\s*$/)&&!Ae?(De=We[_e],delete We[_e]):(Ne.options.trim&&(We[_e]=We[_e].trim()),Ne.options.normalize&&(We[_e]=We[_e].replace(/\s{2,}/g," ").trim()),We[_e]=Ne.options.valueProcessors?me(Ne.options.valueProcessors,We[_e],Le):We[_e],Object.keys(We).length===1&&_e in We&&!Ne.EXPLICIT_CHARKEY&&(We=We[_e])),se(We)&&(typeof Ne.options.emptyTag=="function"?We=Ne.options.emptyTag():We=Ne.options.emptyTag!==""?Ne.options.emptyTag:De),Ne.options.validator!=null&&(et="/"+function(){var st,yt,Ve;for(Ve=[],st=0,yt=we.length;st<yt;st++)Pe=we[st],Ve.push(Pe["#name"]);return Ve}().concat(Le).join("/"),function(){var st;try{return We=Ne.options.validator(et,Ye&&Ye[Le],We)}catch(yt){return st=yt,Ne.emit("error",st)}}()),Ne.options.explicitChildren&&!Ne.options.mergeAttrs&&typeof We=="object"){if(!Ne.options.preserveChildrenOrder)Pe={},Ne.options.attrkey in We&&(Pe[Ne.options.attrkey]=We[Ne.options.attrkey],delete We[Ne.options.attrkey]),!Ne.options.charsAsChildren&&Ne.options.charkey in We&&(Pe[Ne.options.charkey]=We[Ne.options.charkey],delete We[Ne.options.charkey]),Object.getOwnPropertyNames(We).length>0&&(Pe[Ne.options.childkey]=We),We=Pe;else if(Ye){Ye[Ne.options.childkey]=Ye[Ne.options.childkey]||[],Be={};for(Ie in We)oe.call(We,Ie)&&ae(Be,Ie,We[Ie]);Ye[Ne.options.childkey].push(Be),delete We["#name"],Object.keys(We).length===1&&_e in We&&!Ne.EXPLICIT_CHARKEY&&(We=We[_e])}}return we.length>0?Ne.assignOrPush(Ye,Le,We):(Ne.options.explicitRoot&&(He=We,We={},ae(We,Le,He)),Ne.resultObject=We,Ne.saxParser.ended=!0,Ne.emit("end",Ne.resultObject))}}(this),Me=function(Ne){return function(Ae){var De,Ie;if(Ie=we[we.length-1],Ie)return Ie[_e]+=Ae,Ne.options.explicitChildren&&Ne.options.preserveChildrenOrder&&Ne.options.charsAsChildren&&(Ne.options.includeWhiteChars||Ae.replace(/\\n/g,"").trim()!=="")&&(Ie[Ne.options.childkey]=Ie[Ne.options.childkey]||[],De={"#name":"__text__"},De[_e]=Ae,Ne.options.normalize&&(De[_e]=De[_e].replace(/\s{2,}/g," ").trim()),Ie[Ne.options.childkey].push(De)),Ie}}(this),this.saxParser.ontext=Me,this.saxParser.oncdata=function(Ne){return function(Ae){var De;if(De=Me(Ae),De)return De.cdata=!0}}(this)},Ce.prototype.parseString=function(ye,_e){var Me;_e!=null&&typeof _e=="function"&&(this.on("end",function(we){return this.reset(),_e(null,we)}),this.on("error",function(we){return this.reset(),_e(we)}));try{return ye=ye.toString(),ye.trim()===""?(this.emit("end",null),!0):(ye=ne.stripBOM(ye),this.options.async?(this.remaining=ye,ue(this.processAsync),this.saxParser):this.saxParser.write(ye).close())}catch(we){if(Me=we,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Me}else return this.emit("error",Me),this.saxParser.errThrown=!0}},Ce.prototype.parseStringPromise=function(ye){return new Promise(function(_e){return function(Me,we){return _e.parseString(ye,function(Ne,Ae){return Ne?we(Ne):Me(Ae)})}}(this))},Ce}(re),pe.parseString=function(Se,Ce,ye){var _e,Me,we;return ye!=null?(typeof ye=="function"&&(_e=ye),typeof Ce=="object"&&(Me=Ce)):(typeof Ce=="function"&&(_e=Ce),Me={}),we=new pe.Parser(Me),we.parseString(Se,_e)},pe.parseStringPromise=function(Se,Ce){var ye,_e;return typeof Ce=="object"&&(ye=Ce),_e=new pe.Parser(ye),_e.parseStringPromise(Se)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(x,ke,pe){(function(){"use strict";var ne;ne=new RegExp(/(?!xmlns)^.*:/),pe.normalize=function(z){return z.toLowerCase()},pe.firstCharLowerCase=function(z){return z.charAt(0).toLowerCase()+z.slice(1)},pe.stripPrefix=function(z){return z.replace(ne,"")},pe.parseNumbers=function(z){return isNaN(z)||(z=z%1===0?parseInt(z,10):parseFloat(z)),z},pe.parseBooleans=function(z){return/^(?:true|false)$/i.test(z)&&(z=z.toLowerCase()==="true"),z}}).call(this)},{}],426:[function(x,ke,pe){(function(){"use strict";var ne,z,ae,re,se=function(ie,le){for(var ue in le)me.call(le,ue)&&(ie[ue]=le[ue]);function fe(){this.constructor=ie}return fe.prototype=le.prototype,ie.prototype=new fe,ie.__super__=le.prototype,ie},me={}.hasOwnProperty;z=x("./defaults"),ne=x("./builder"),ae=x("./parser"),re=x("./processors"),pe.defaults=z.defaults,pe.processors=re,pe.ValidationError=function(ie){se(le,ie);function le(ue){this.message=ue}return le}(Error),pe.Builder=ne.Builder,pe.Parser=ae.Parser,pe.parseString=ae.parseString,pe.parseStringPromise=ae.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(x,ke,pe){(function(){ke.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(x,ke,pe){(function(){ke.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(x,ke,pe){(function(){var ne,z,ae,re,se,me,ie,le=[].slice,ue={}.hasOwnProperty;ne=function(){var fe,he,oe,Se,Ce,ye;if(ye=arguments[0],Ce=2<=arguments.length?le.call(arguments,1):[],se(Object.assign))Object.assign.apply(null,arguments);else for(fe=0,oe=Ce.length;fe<oe;fe++)if(Se=Ce[fe],Se!=null)for(he in Se)ue.call(Se,he)&&(ye[he]=Se[he]);return ye},se=function(fe){return!!fe&&Object.prototype.toString.call(fe)==="[object Function]"},me=function(fe){var he;return!!fe&&((he=typeof fe)=="function"||he==="object")},ae=function(fe){return se(Array.isArray)?Array.isArray(fe):Object.prototype.toString.call(fe)==="[object Array]"},re=function(fe){var he;if(ae(fe))return!fe.length;for(he in fe)if(ue.call(fe,he))return!1;return!0},ie=function(fe){var he,oe;return me(fe)&&(oe=Object.getPrototypeOf(fe))&&(he=oe.constructor)&&typeof he=="function"&&he instanceof he&&Function.prototype.toString.call(he)===Function.prototype.toString.call(Object)},z=function(fe){return se(fe.valueOf)?fe.valueOf():fe},ke.exports.assign=ne,ke.exports.isFunction=se,ke.exports.isObject=me,ke.exports.isArray=ae,ke.exports.isEmpty=re,ke.exports.isPlainObject=ie,ke.exports.getValue=z}).call(this)},{}],430:[function(x,ke,pe){(function(){ke.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(x,ke,pe){(function(){var ne,z,ae;ne=x("./NodeType"),ae=x("./XMLNode"),ke.exports=z=function(){function re(se,me,ie){if(this.parent=se,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),me==null)throw new Error("Missing attribute name. "+this.debugInfo(me));this.name=this.stringify.name(me),this.value=this.stringify.attValue(ie),this.type=ne.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(re.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(re.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(re.prototype,"textContent",{get:function(){return this.value},set:function(se){return this.value=se||""}}),Object.defineProperty(re.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(re.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(re.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(re.prototype,"specified",{get:function(){return!0}}),re.prototype.clone=function(){return Object.create(this)},re.prototype.toString=function(se){return this.options.writer.attribute(this,this.options.writer.filterOptions(se))},re.prototype.debugInfo=function(se){return se=se||this.name,se==null?"parent: <"+this.parent.name+">":"attribute: {"+se+"}, parent: <"+this.parent.name+">"},re.prototype.isEqualNode=function(se){return!(se.namespaceURI!==this.namespaceURI||se.prefix!==this.prefix||se.localName!==this.localName||se.value!==this.value)},re}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(x,ke,pe){(function(){var ne,z,ae,re=function(me,ie){for(var le in ie)se.call(ie,le)&&(me[le]=ie[le]);function ue(){this.constructor=me}return ue.prototype=ie.prototype,me.prototype=new ue,me.__super__=ie.prototype,me},se={}.hasOwnProperty;ne=x("./NodeType"),ae=x("./XMLCharacterData"),ke.exports=z=function(me){re(ie,me);function ie(le,ue){if(ie.__super__.constructor.call(this,le),ue==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ne.CData,this.value=this.stringify.cdata(ue)}return ie.prototype.clone=function(){return Object.create(this)},ie.prototype.toString=function(le){return this.options.writer.cdata(this,this.options.writer.filterOptions(le))},ie}(ae)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(x,ke,pe){(function(){var ne,z,ae=function(se,me){for(var ie in me)re.call(me,ie)&&(se[ie]=me[ie]);function le(){this.constructor=se}return le.prototype=me.prototype,se.prototype=new le,se.__super__=me.prototype,se},re={}.hasOwnProperty;z=x("./XMLNode"),ke.exports=ne=function(se){ae(me,se);function me(ie){me.__super__.constructor.call(this,ie),this.value=""}return Object.defineProperty(me.prototype,"data",{get:function(){return this.value},set:function(ie){return this.value=ie||""}}),Object.defineProperty(me.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(me.prototype,"textContent",{get:function(){return this.value},set:function(ie){return this.value=ie||""}}),me.prototype.clone=function(){return Object.create(this)},me.prototype.substringData=function(ie,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.appendData=function(ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.insertData=function(ie,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.deleteData=function(ie,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.replaceData=function(ie,le,ue){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.isEqualNode=function(ie){return!(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(ie)||ie.data!==this.data)},me}(z)}).call(this)},{"./XMLNode":450}],434:[function(x,ke,pe){(function(){var ne,z,ae,re=function(me,ie){for(var le in ie)se.call(ie,le)&&(me[le]=ie[le]);function ue(){this.constructor=me}return ue.prototype=ie.prototype,me.prototype=new ue,me.__super__=ie.prototype,me},se={}.hasOwnProperty;ne=x("./NodeType"),z=x("./XMLCharacterData"),ke.exports=ae=function(me){re(ie,me);function ie(le,ue){if(ie.__super__.constructor.call(this,le),ue==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ne.Comment,this.value=this.stringify.comment(ue)}return ie.prototype.clone=function(){return Object.create(this)},ie.prototype.toString=function(le){return this.options.writer.comment(this,this.options.writer.filterOptions(le))},ie}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(x,ke,pe){(function(){var ne,z,ae;z=x("./XMLDOMErrorHandler"),ae=x("./XMLDOMStringList"),ke.exports=ne=function(){function re(){var se;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new z,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=se=Object.create(this.defaultParams)}return Object.defineProperty(re.prototype,"parameterNames",{get:function(){return new ae(Object.keys(this.defaultParams))}}),re.prototype.getParameter=function(se){return this.params.hasOwnProperty(se)?this.params[se]:null},re.prototype.canSetParameter=function(se,me){return!0},re.prototype.setParameter=function(se,me){return me!=null?this.params[se]=me:delete this.params[se]},re}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(x,ke,pe){(function(){var ne;ke.exports=ne=function(){function z(){}return z.prototype.handleError=function(ae){throw new Error(ae)},z}()}).call(this)},{}],437:[function(x,ke,pe){(function(){var ne;ke.exports=ne=function(){function z(){}return z.prototype.hasFeature=function(ae,re){return!0},z.prototype.createDocumentType=function(ae,re,se){throw new Error("This DOM method is not implemented.")},z.prototype.createDocument=function(ae,re,se){throw new Error("This DOM method is not implemented.")},z.prototype.createHTMLDocument=function(ae){throw new Error("This DOM method is not implemented.")},z.prototype.getFeature=function(ae,re){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],438:[function(x,ke,pe){(function(){var ne;ke.exports=ne=function(){function z(ae){this.arr=ae||[]}return Object.defineProperty(z.prototype,"length",{get:function(){return this.arr.length}}),z.prototype.item=function(ae){return this.arr[ae]||null},z.prototype.contains=function(ae){return this.arr.indexOf(ae)!==-1},z}()}).call(this)},{}],439:[function(x,ke,pe){(function(){var ne,z,ae,re=function(me,ie){for(var le in ie)se.call(ie,le)&&(me[le]=ie[le]);function ue(){this.constructor=me}return ue.prototype=ie.prototype,me.prototype=new ue,me.__super__=ie.prototype,me},se={}.hasOwnProperty;ae=x("./XMLNode"),ne=x("./NodeType"),ke.exports=z=function(me){re(ie,me);function ie(le,ue,fe,he,oe,Se){if(ie.__super__.constructor.call(this,le),ue==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(fe==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(ue));if(!he)throw new Error("Missing DTD attribute type. "+this.debugInfo(ue));if(!oe)throw new Error("Missing DTD attribute default. "+this.debugInfo(ue));if(oe.indexOf("#")!==0&&(oe="#"+oe),!oe.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(ue));if(Se&&!oe.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(ue));this.elementName=this.stringify.name(ue),this.type=ne.AttributeDeclaration,this.attributeName=this.stringify.name(fe),this.attributeType=this.stringify.dtdAttType(he),Se&&(this.defaultValue=this.stringify.dtdAttDefault(Se)),this.defaultValueType=oe}return ie.prototype.toString=function(le){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(le))},ie}(ae)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(x,ke,pe){(function(){var ne,z,ae,re=function(me,ie){for(var le in ie)se.call(ie,le)&&(me[le]=ie[le]);function ue(){this.constructor=me}return ue.prototype=ie.prototype,me.prototype=new ue,me.__super__=ie.prototype,me},se={}.hasOwnProperty;ae=x("./XMLNode"),ne=x("./NodeType"),ke.exports=z=function(me){re(ie,me);function ie(le,ue,fe){if(ie.__super__.constructor.call(this,le),ue==null)throw new Error("Missing DTD element name. "+this.debugInfo());fe||(fe="(#PCDATA)"),Array.isArray(fe)&&(fe="("+fe.join(",")+")"),this.name=this.stringify.name(ue),this.type=ne.ElementDeclaration,this.value=this.stringify.dtdElementValue(fe)}return ie.prototype.toString=function(le){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(le))},ie}(ae)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(x,ke,pe){(function(){var ne,z,ae,re,se=function(ie,le){for(var ue in le)me.call(le,ue)&&(ie[ue]=le[ue]);function fe(){this.constructor=ie}return fe.prototype=le.prototype,ie.prototype=new fe,ie.__super__=le.prototype,ie},me={}.hasOwnProperty;re=x("./Utility").isObject,ae=x("./XMLNode"),ne=x("./NodeType"),ke.exports=z=function(ie){se(le,ie);function le(ue,fe,he,oe){if(le.__super__.constructor.call(this,ue),he==null)throw new Error("Missing DTD entity name. "+this.debugInfo(he));if(oe==null)throw new Error("Missing DTD entity value. "+this.debugInfo(he));if(this.pe=!!fe,this.name=this.stringify.name(he),this.type=ne.EntityDeclaration,!re(oe))this.value=this.stringify.dtdEntityValue(oe),this.internal=!0;else{if(!oe.pubID&&!oe.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(he));if(oe.pubID&&!oe.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(he));if(this.internal=!1,oe.pubID!=null&&(this.pubID=this.stringify.dtdPubID(oe.pubID)),oe.sysID!=null&&(this.sysID=this.stringify.dtdSysID(oe.sysID)),oe.nData!=null&&(this.nData=this.stringify.dtdNData(oe.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(he))}}return Object.defineProperty(le.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(le.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(le.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(le.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(le.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(le.prototype,"xmlVersion",{get:function(){return null}}),le.prototype.toString=function(ue){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(ue))},le}(ae)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(x,ke,pe){(function(){var ne,z,ae,re=function(me,ie){for(var le in ie)se.call(ie,le)&&(me[le]=ie[le]);function ue(){this.constructor=me}return ue.prototype=ie.prototype,me.prototype=new ue,me.__super__=ie.prototype,me},se={}.hasOwnProperty;ae=x("./XMLNode"),ne=x("./NodeType"),ke.exports=z=function(me){re(ie,me);function ie(le,ue,fe){if(ie.__super__.constructor.call(this,le),ue==null)throw new Error("Missing DTD notation name. "+this.debugInfo(ue));if(!fe.pubID&&!fe.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(ue));this.name=this.stringify.name(ue),this.type=ne.NotationDeclaration,fe.pubID!=null&&(this.pubID=this.stringify.dtdPubID(fe.pubID)),fe.sysID!=null&&(this.sysID=this.stringify.dtdSysID(fe.sysID))}return Object.defineProperty(ie.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ie.prototype,"systemId",{get:function(){return this.sysID}}),ie.prototype.toString=function(le){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(le))},ie}(ae)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(x,ke,pe){(function(){var ne,z,ae,re,se=function(ie,le){for(var ue in le)me.call(le,ue)&&(ie[ue]=le[ue]);function fe(){this.constructor=ie}return fe.prototype=le.prototype,ie.prototype=new fe,ie.__super__=le.prototype,ie},me={}.hasOwnProperty;re=x("./Utility").isObject,ae=x("./XMLNode"),ne=x("./NodeType"),ke.exports=z=function(ie){se(le,ie);function le(ue,fe,he,oe){var Se;le.__super__.constructor.call(this,ue),re(fe)&&(Se=fe,fe=Se.version,he=Se.encoding,oe=Se.standalone),fe||(fe="1.0"),this.type=ne.Declaration,this.version=this.stringify.xmlVersion(fe),he!=null&&(this.encoding=this.stringify.xmlEncoding(he)),oe!=null&&(this.standalone=this.stringify.xmlStandalone(oe))}return le.prototype.toString=function(ue){return this.options.writer.declaration(this,this.options.writer.filterOptions(ue))},le}(ae)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(x,ke,pe){(function(){var ne,z,ae,re,se,me,ie,le,ue,fe=function(oe,Se){for(var Ce in Se)he.call(Se,Ce)&&(oe[Ce]=Se[Ce]);function ye(){this.constructor=oe}return ye.prototype=Se.prototype,oe.prototype=new ye,oe.__super__=Se.prototype,oe},he={}.hasOwnProperty;ue=x("./Utility").isObject,le=x("./XMLNode"),ne=x("./NodeType"),z=x("./XMLDTDAttList"),re=x("./XMLDTDEntity"),ae=x("./XMLDTDElement"),se=x("./XMLDTDNotation"),ie=x("./XMLNamedNodeMap"),ke.exports=me=function(oe){fe(Se,oe);function Se(Ce,ye,_e){var Me,we,Ne,Ae,De,Ie;if(Se.__super__.constructor.call(this,Ce),this.type=ne.DocType,Ce.children){for(Ae=Ce.children,we=0,Ne=Ae.length;we<Ne;we++)if(Me=Ae[we],Me.type===ne.Element){this.name=Me.name;break}}this.documentObject=Ce,ue(ye)&&(De=ye,ye=De.pubID,_e=De.sysID),_e==null&&(Ie=[ye,_e],_e=Ie[0],ye=Ie[1]),ye!=null&&(this.pubID=this.stringify.dtdPubID(ye)),_e!=null&&(this.sysID=this.stringify.dtdSysID(_e))}return Object.defineProperty(Se.prototype,"entities",{get:function(){var Ce,ye,_e,Me,we;for(Me={},we=this.children,ye=0,_e=we.length;ye<_e;ye++)Ce=we[ye],Ce.type===ne.EntityDeclaration&&!Ce.pe&&(Me[Ce.name]=Ce);return new ie(Me)}}),Object.defineProperty(Se.prototype,"notations",{get:function(){var Ce,ye,_e,Me,we;for(Me={},we=this.children,ye=0,_e=we.length;ye<_e;ye++)Ce=we[ye],Ce.type===ne.NotationDeclaration&&(Me[Ce.name]=Ce);return new ie(Me)}}),Object.defineProperty(Se.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(Se.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(Se.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Se.prototype.element=function(Ce,ye){var _e;return _e=new ae(this,Ce,ye),this.children.push(_e),this},Se.prototype.attList=function(Ce,ye,_e,Me,we){var Ne;return Ne=new z(this,Ce,ye,_e,Me,we),this.children.push(Ne),this},Se.prototype.entity=function(Ce,ye){var _e;return _e=new re(this,!1,Ce,ye),this.children.push(_e),this},Se.prototype.pEntity=function(Ce,ye){var _e;return _e=new re(this,!0,Ce,ye),this.children.push(_e),this},Se.prototype.notation=function(Ce,ye){var _e;return _e=new se(this,Ce,ye),this.children.push(_e),this},Se.prototype.toString=function(Ce){return this.options.writer.docType(this,this.options.writer.filterOptions(Ce))},Se.prototype.ele=function(Ce,ye){return this.element(Ce,ye)},Se.prototype.att=function(Ce,ye,_e,Me,we){return this.attList(Ce,ye,_e,Me,we)},Se.prototype.ent=function(Ce,ye){return this.entity(Ce,ye)},Se.prototype.pent=function(Ce,ye){return this.pEntity(Ce,ye)},Se.prototype.not=function(Ce,ye){return this.notation(Ce,ye)},Se.prototype.up=function(){return this.root()||this.documentObject},Se.prototype.isEqualNode=function(Ce){return!(!Se.__super__.isEqualNode.apply(this,arguments).isEqualNode(Ce)||Ce.name!==this.name||Ce.publicId!==this.publicId||Ce.systemId!==this.systemId)},Se}(le)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(x,ke,pe){(function(){var ne,z,ae,re,se,me,ie,le,ue=function(he,oe){for(var Se in oe)fe.call(oe,Se)&&(he[Se]=oe[Se]);function Ce(){this.constructor=he}return Ce.prototype=oe.prototype,he.prototype=new Ce,he.__super__=oe.prototype,he},fe={}.hasOwnProperty;le=x("./Utility").isPlainObject,ae=x("./XMLDOMImplementation"),z=x("./XMLDOMConfiguration"),se=x("./XMLNode"),ne=x("./NodeType"),ie=x("./XMLStringifier"),me=x("./XMLStringWriter"),ke.exports=re=function(he){ue(oe,he);function oe(Se){oe.__super__.constructor.call(this,null),this.name="#document",this.type=ne.Document,this.documentURI=null,this.domConfig=new z,Se||(Se={}),Se.writer||(Se.writer=new me),this.options=Se,this.stringify=new ie(Se)}return Object.defineProperty(oe.prototype,"implementation",{value:new ae}),Object.defineProperty(oe.prototype,"doctype",{get:function(){var Se,Ce,ye,_e;for(_e=this.children,Ce=0,ye=_e.length;Ce<ye;Ce++)if(Se=_e[Ce],Se.type===ne.DocType)return Se;return null}}),Object.defineProperty(oe.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(oe.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(oe.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(oe.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===ne.Declaration?this.children[0].encoding:null}}),Object.defineProperty(oe.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ne.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(oe.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ne.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(oe.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(oe.prototype,"origin",{get:function(){return null}}),Object.defineProperty(oe.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(oe.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(oe.prototype,"contentType",{get:function(){return null}}),oe.prototype.end=function(Se){var Ce;return Ce={},Se?le(Se)&&(Ce=Se,Se=this.options.writer):Se=this.options.writer,Se.document(this,Se.filterOptions(Ce))},oe.prototype.toString=function(Se){return this.options.writer.document(this,this.options.writer.filterOptions(Se))},oe.prototype.createElement=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createTextNode=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createComment=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createCDATASection=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createProcessingInstruction=function(Se,Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createAttribute=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createEntityReference=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.getElementsByTagName=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.importNode=function(Se,Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createElementNS=function(Se,Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createAttributeNS=function(Se,Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.getElementsByTagNameNS=function(Se,Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.getElementById=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.adoptNode=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.renameNode=function(Se,Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.getElementsByClassName=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createEvent=function(Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createNodeIterator=function(Se,Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.createTreeWalker=function(Se,Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(x,ke,pe){(function(){var ne,z,ae,re,se,me,ie,le,ue,fe,he,oe,Se,Ce,ye,_e,Me,we,Ne,Ae,De,Ie,Pe,Le,We={}.hasOwnProperty;Le=x("./Utility"),Ie=Le.isObject,De=Le.isFunction,Pe=Le.isPlainObject,Ae=Le.getValue,ne=x("./NodeType"),oe=x("./XMLDocument"),Ce=x("./XMLElement"),re=x("./XMLCData"),se=x("./XMLComment"),_e=x("./XMLRaw"),Ne=x("./XMLText"),ye=x("./XMLProcessingInstruction"),fe=x("./XMLDeclaration"),he=x("./XMLDocType"),me=x("./XMLDTDAttList"),le=x("./XMLDTDEntity"),ie=x("./XMLDTDElement"),ue=x("./XMLDTDNotation"),ae=x("./XMLAttribute"),we=x("./XMLStringifier"),Me=x("./XMLStringWriter"),z=x("./WriterState"),ke.exports=Se=function(){function Be(He,Ye,et){var st;this.name="?xml",this.type=ne.Document,He||(He={}),st={},He.writer?Pe(He.writer)&&(st=He.writer,He.writer=new Me):He.writer=new Me,this.options=He,this.writer=He.writer,this.writerOptions=this.writer.filterOptions(st),this.stringify=new we(He),this.onDataCallback=Ye||function(){},this.onEndCallback=et||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Be.prototype.createChildNode=function(He){var Ye,et,st,yt,Ve,Qe,pt,mt;switch(He.type){case ne.CData:this.cdata(He.value);break;case ne.Comment:this.comment(He.value);break;case ne.Element:st={},pt=He.attribs;for(et in pt)We.call(pt,et)&&(Ye=pt[et],st[et]=Ye.value);this.node(He.name,st);break;case ne.Dummy:this.dummy();break;case ne.Raw:this.raw(He.value);break;case ne.Text:this.text(He.value);break;case ne.ProcessingInstruction:this.instruction(He.target,He.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+He.constructor.name)}for(mt=He.children,Ve=0,Qe=mt.length;Ve<Qe;Ve++)yt=mt[Ve],this.createChildNode(yt),yt.type===ne.Element&&this.up();return this},Be.prototype.dummy=function(){return this},Be.prototype.node=function(He,Ye,et){var st;if(He==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(He));return this.openCurrent(),He=Ae(He),Ye==null&&(Ye={}),Ye=Ae(Ye),Ie(Ye)||(st=[Ye,et],et=st[0],Ye=st[1]),this.currentNode=new Ce(this,He,Ye),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,et!=null&&this.text(et),this},Be.prototype.element=function(He,Ye,et){var st,yt,Ve,Qe,pt,mt;if(this.currentNode&&this.currentNode.type===ne.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(He)||Ie(He)||De(He))for(Qe=this.options.noValidation,this.options.noValidation=!0,mt=new oe(this.options).element("TEMP_ROOT"),mt.element(He),this.options.noValidation=Qe,pt=mt.children,yt=0,Ve=pt.length;yt<Ve;yt++)st=pt[yt],this.createChildNode(st),st.type===ne.Element&&this.up();else this.node(He,Ye,et);return this},Be.prototype.attribute=function(He,Ye){var et,st;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(He));if(He!=null&&(He=Ae(He)),Ie(He))for(et in He)We.call(He,et)&&(st=He[et],this.attribute(et,st));else De(Ye)&&(Ye=Ye.apply()),this.options.keepNullAttributes&&Ye==null?this.currentNode.attribs[He]=new ae(this,He,""):Ye!=null&&(this.currentNode.attribs[He]=new ae(this,He,Ye));return this},Be.prototype.text=function(He){var Ye;return this.openCurrent(),Ye=new Ne(this,He),this.onData(this.writer.text(Ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.cdata=function(He){var Ye;return this.openCurrent(),Ye=new re(this,He),this.onData(this.writer.cdata(Ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.comment=function(He){var Ye;return this.openCurrent(),Ye=new se(this,He),this.onData(this.writer.comment(Ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.raw=function(He){var Ye;return this.openCurrent(),Ye=new _e(this,He),this.onData(this.writer.raw(Ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.instruction=function(He,Ye){var et,st,yt,Ve,Qe;if(this.openCurrent(),He!=null&&(He=Ae(He)),Ye!=null&&(Ye=Ae(Ye)),Array.isArray(He))for(et=0,Ve=He.length;et<Ve;et++)st=He[et],this.instruction(st);else if(Ie(He))for(st in He)We.call(He,st)&&(yt=He[st],this.instruction(st,yt));else De(Ye)&&(Ye=Ye.apply()),Qe=new ye(this,He,Ye),this.onData(this.writer.processingInstruction(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Be.prototype.declaration=function(He,Ye,et){var st;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return st=new fe(this,He,Ye,et),this.onData(this.writer.declaration(st,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.doctype=function(He,Ye,et){if(this.openCurrent(),He==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new he(this,Ye,et),this.currentNode.rootNodeName=He,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Be.prototype.dtdElement=function(He,Ye){var et;return this.openCurrent(),et=new ie(this,He,Ye),this.onData(this.writer.dtdElement(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.attList=function(He,Ye,et,st,yt){var Ve;return this.openCurrent(),Ve=new me(this,He,Ye,et,st,yt),this.onData(this.writer.dtdAttList(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.entity=function(He,Ye){var et;return this.openCurrent(),et=new le(this,!1,He,Ye),this.onData(this.writer.dtdEntity(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.pEntity=function(He,Ye){var et;return this.openCurrent(),et=new le(this,!0,He,Ye),this.onData(this.writer.dtdEntity(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.notation=function(He,Ye){var et;return this.openCurrent(),et=new ue(this,He,Ye),this.onData(this.writer.dtdNotation(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Be.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Be.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Be.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Be.prototype.openNode=function(He){var Ye,et,st,yt;if(!He.isOpen){if(!this.root&&this.currentLevel===0&&He.type===ne.Element&&(this.root=He),et="",He.type===ne.Element){this.writerOptions.state=z.OpenTag,et=this.writer.indent(He,this.writerOptions,this.currentLevel)+"<"+He.name,yt=He.attribs;for(st in yt)We.call(yt,st)&&(Ye=yt[st],et+=this.writer.attribute(Ye,this.writerOptions,this.currentLevel));et+=(He.children?">":"/>")+this.writer.endline(He,this.writerOptions,this.currentLevel),this.writerOptions.state=z.InsideTag}else this.writerOptions.state=z.OpenTag,et=this.writer.indent(He,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+He.rootNodeName,He.pubID&&He.sysID?et+=' PUBLIC "'+He.pubID+'" "'+He.sysID+'"':He.sysID&&(et+=' SYSTEM "'+He.sysID+'"'),He.children?(et+=" [",this.writerOptions.state=z.InsideTag):(this.writerOptions.state=z.CloseTag,et+=">"),et+=this.writer.endline(He,this.writerOptions,this.currentLevel);return this.onData(et,this.currentLevel),He.isOpen=!0}},Be.prototype.closeNode=function(He){var Ye;if(!He.isClosed)return Ye="",this.writerOptions.state=z.CloseTag,He.type===ne.Element?Ye=this.writer.indent(He,this.writerOptions,this.currentLevel)+"</"+He.name+">"+this.writer.endline(He,this.writerOptions,this.currentLevel):Ye=this.writer.indent(He,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(He,this.writerOptions,this.currentLevel),this.writerOptions.state=z.None,this.onData(Ye,this.currentLevel),He.isClosed=!0},Be.prototype.onData=function(He,Ye){return this.documentStarted=!0,this.onDataCallback(He,Ye+1)},Be.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Be.prototype.debugInfo=function(He){return He==null?"":"node: <"+He+">"},Be.prototype.ele=function(){return this.element.apply(this,arguments)},Be.prototype.nod=function(He,Ye,et){return this.node(He,Ye,et)},Be.prototype.txt=function(He){return this.text(He)},Be.prototype.dat=function(He){return this.cdata(He)},Be.prototype.com=function(He){return this.comment(He)},Be.prototype.ins=function(He,Ye){return this.instruction(He,Ye)},Be.prototype.dec=function(He,Ye,et){return this.declaration(He,Ye,et)},Be.prototype.dtd=function(He,Ye,et){return this.doctype(He,Ye,et)},Be.prototype.e=function(He,Ye,et){return this.element(He,Ye,et)},Be.prototype.n=function(He,Ye,et){return this.node(He,Ye,et)},Be.prototype.t=function(He){return this.text(He)},Be.prototype.d=function(He){return this.cdata(He)},Be.prototype.c=function(He){return this.comment(He)},Be.prototype.r=function(He){return this.raw(He)},Be.prototype.i=function(He,Ye){return this.instruction(He,Ye)},Be.prototype.att=function(){return this.currentNode&&this.currentNode.type===ne.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Be.prototype.a=function(){return this.currentNode&&this.currentNode.type===ne.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Be.prototype.ent=function(He,Ye){return this.entity(He,Ye)},Be.prototype.pent=function(He,Ye){return this.pEntity(He,Ye)},Be.prototype.not=function(He,Ye){return this.notation(He,Ye)},Be}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(x,ke,pe){(function(){var ne,z,ae,re=function(me,ie){for(var le in ie)se.call(ie,le)&&(me[le]=ie[le]);function ue(){this.constructor=me}return ue.prototype=ie.prototype,me.prototype=new ue,me.__super__=ie.prototype,me},se={}.hasOwnProperty;ae=x("./XMLNode"),ne=x("./NodeType"),ke.exports=z=function(me){re(ie,me);function ie(le){ie.__super__.constructor.call(this,le),this.type=ne.Dummy}return ie.prototype.clone=function(){return Object.create(this)},ie.prototype.toString=function(le){return""},ie}(ae)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(x,ke,pe){(function(){var ne,z,ae,re,se,me,ie,le,ue,fe=function(oe,Se){for(var Ce in Se)he.call(Se,Ce)&&(oe[Ce]=Se[Ce]);function ye(){this.constructor=oe}return ye.prototype=Se.prototype,oe.prototype=new ye,oe.__super__=Se.prototype,oe},he={}.hasOwnProperty;ue=x("./Utility"),le=ue.isObject,ie=ue.isFunction,me=ue.getValue,se=x("./XMLNode"),ne=x("./NodeType"),z=x("./XMLAttribute"),re=x("./XMLNamedNodeMap"),ke.exports=ae=function(oe){fe(Se,oe);function Se(Ce,ye,_e){var Me,we,Ne,Ae;if(Se.__super__.constructor.call(this,Ce),ye==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ye),this.type=ne.Element,this.attribs={},this.schemaTypeInfo=null,_e!=null&&this.attribute(_e),Ce.type===ne.Document&&(this.isRoot=!0,this.documentObject=Ce,Ce.rootObject=this,Ce.children)){for(Ae=Ce.children,we=0,Ne=Ae.length;we<Ne;we++)if(Me=Ae[we],Me.type===ne.DocType){Me.name=this.name;break}}}return Object.defineProperty(Se.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(Se.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(Se.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(Se.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(Se.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(Se.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(Se.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(Se.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new re(this.attribs)),this.attributeMap}}),Se.prototype.clone=function(){var Ce,ye,_e,Me;_e=Object.create(this),_e.isRoot&&(_e.documentObject=null),_e.attribs={},Me=this.attribs;for(ye in Me)he.call(Me,ye)&&(Ce=Me[ye],_e.attribs[ye]=Ce.clone());return _e.children=[],this.children.forEach(function(we){var Ne;return Ne=we.clone(),Ne.parent=_e,_e.children.push(Ne)}),_e},Se.prototype.attribute=function(Ce,ye){var _e,Me;if(Ce!=null&&(Ce=me(Ce)),le(Ce))for(_e in Ce)he.call(Ce,_e)&&(Me=Ce[_e],this.attribute(_e,Me));else ie(ye)&&(ye=ye.apply()),this.options.keepNullAttributes&&ye==null?this.attribs[Ce]=new z(this,Ce,""):ye!=null&&(this.attribs[Ce]=new z(this,Ce,ye));return this},Se.prototype.removeAttribute=function(Ce){var ye,_e,Me;if(Ce==null)throw new Error("Missing attribute name. "+this.debugInfo());if(Ce=me(Ce),Array.isArray(Ce))for(_e=0,Me=Ce.length;_e<Me;_e++)ye=Ce[_e],delete this.attribs[ye];else delete this.attribs[Ce];return this},Se.prototype.toString=function(Ce){return this.options.writer.element(this,this.options.writer.filterOptions(Ce))},Se.prototype.att=function(Ce,ye){return this.attribute(Ce,ye)},Se.prototype.a=function(Ce,ye){return this.attribute(Ce,ye)},Se.prototype.getAttribute=function(Ce){return this.attribs.hasOwnProperty(Ce)?this.attribs[Ce].value:null},Se.prototype.setAttribute=function(Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNode=function(Ce){return this.attribs.hasOwnProperty(Ce)?this.attribs[Ce]:null},Se.prototype.setAttributeNode=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeAttributeNode=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagName=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNS=function(Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setAttributeNS=function(Ce,ye,_e){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeAttributeNS=function(Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getAttributeNodeNS=function(Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setAttributeNodeNS=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagNameNS=function(Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.hasAttribute=function(Ce){return this.attribs.hasOwnProperty(Ce)},Se.prototype.hasAttributeNS=function(Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setIdAttribute=function(Ce,ye){return this.attribs.hasOwnProperty(Ce)?this.attribs[Ce].isId:ye},Se.prototype.setIdAttributeNS=function(Ce,ye,_e){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setIdAttributeNode=function(Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagName=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByTagNameNS=function(Ce,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getElementsByClassName=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isEqualNode=function(Ce){var ye,_e,Me;if(!Se.__super__.isEqualNode.apply(this,arguments).isEqualNode(Ce)||Ce.namespaceURI!==this.namespaceURI||Ce.prefix!==this.prefix||Ce.localName!==this.localName||Ce.attribs.length!==this.attribs.length)return!1;for(ye=_e=0,Me=this.attribs.length-1;0<=Me?_e<=Me:_e>=Me;ye=0<=Me?++_e:--_e)if(!this.attribs[ye].isEqualNode(Ce.attribs[ye]))return!1;return!0},Se}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(x,ke,pe){(function(){var ne;ke.exports=ne=function(){function z(ae){this.nodes=ae}return Object.defineProperty(z.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.getNamedItem=function(ae){return this.nodes[ae]},z.prototype.setNamedItem=function(ae){var re;return re=this.nodes[ae.nodeName],this.nodes[ae.nodeName]=ae,re||null},z.prototype.removeNamedItem=function(ae){var re;return re=this.nodes[ae],delete this.nodes[ae],re||null},z.prototype.item=function(ae){return this.nodes[Object.keys(this.nodes)[ae]]||null},z.prototype.getNamedItemNS=function(ae,re){throw new Error("This DOM method is not implemented.")},z.prototype.setNamedItemNS=function(ae){throw new Error("This DOM method is not implemented.")},z.prototype.removeNamedItemNS=function(ae,re){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],450:[function(x,ke,pe){(function(){var ne,z,ae,re,se,me,ie,le,ue,fe,he,oe,Se,Ce,ye,_e,Me,we,Ne,Ae={}.hasOwnProperty;Ne=x("./Utility"),we=Ne.isObject,Me=Ne.isFunction,_e=Ne.isEmpty,ye=Ne.getValue,le=null,ae=null,re=null,se=null,me=null,Se=null,Ce=null,oe=null,ie=null,z=null,he=null,ue=null,ne=null,ke.exports=fe=function(){function De(Ie){this.parent=Ie,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,le||(le=x("./XMLElement"),ae=x("./XMLCData"),re=x("./XMLComment"),se=x("./XMLDeclaration"),me=x("./XMLDocType"),Se=x("./XMLRaw"),Ce=x("./XMLText"),oe=x("./XMLProcessingInstruction"),ie=x("./XMLDummy"),z=x("./NodeType"),he=x("./XMLNodeList"),ue=x("./XMLNamedNodeMap"),ne=x("./DocumentPosition"))}return Object.defineProperty(De.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(De.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(De.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(De.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(De.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new he(this.children)),this.childNodeList}}),Object.defineProperty(De.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(De.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(De.prototype,"previousSibling",{get:function(){var Ie;return Ie=this.parent.children.indexOf(this),this.parent.children[Ie-1]||null}}),Object.defineProperty(De.prototype,"nextSibling",{get:function(){var Ie;return Ie=this.parent.children.indexOf(this),this.parent.children[Ie+1]||null}}),Object.defineProperty(De.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(De.prototype,"textContent",{get:function(){var Ie,Pe,Le,We,Be;if(this.nodeType===z.Element||this.nodeType===z.DocumentFragment){for(Be="",We=this.children,Pe=0,Le=We.length;Pe<Le;Pe++)Ie=We[Pe],Ie.textContent&&(Be+=Ie.textContent);return Be}else return null},set:function(Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),De.prototype.setParent=function(Ie){var Pe,Le,We,Be,He;for(this.parent=Ie,Ie&&(this.options=Ie.options,this.stringify=Ie.stringify),Be=this.children,He=[],Le=0,We=Be.length;Le<We;Le++)Pe=Be[Le],He.push(Pe.setParent(this));return He},De.prototype.element=function(Ie,Pe,Le){var We,Be,He,Ye,et,st,yt,Ve,Qe,pt,mt;if(st=null,Pe===null&&Le==null&&(Qe=[{},null],Pe=Qe[0],Le=Qe[1]),Pe==null&&(Pe={}),Pe=ye(Pe),we(Pe)||(pt=[Pe,Le],Le=pt[0],Pe=pt[1]),Ie!=null&&(Ie=ye(Ie)),Array.isArray(Ie))for(He=0,yt=Ie.length;He<yt;He++)Be=Ie[He],st=this.element(Be);else if(Me(Ie))st=this.element(Ie.apply());else if(we(Ie)){for(et in Ie)if(Ae.call(Ie,et))if(mt=Ie[et],Me(mt)&&(mt=mt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&et.indexOf(this.stringify.convertAttKey)===0)st=this.attribute(et.substr(this.stringify.convertAttKey.length),mt);else if(!this.options.separateArrayItems&&Array.isArray(mt)&&_e(mt))st=this.dummy();else if(we(mt)&&_e(mt))st=this.element(et);else if(!this.options.keepNullNodes&&mt==null)st=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(mt))for(Ye=0,Ve=mt.length;Ye<Ve;Ye++)Be=mt[Ye],We={},We[et]=Be,st=this.element(We);else we(mt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&et.indexOf(this.stringify.convertTextKey)===0?st=this.element(mt):(st=this.element(et),st.element(mt)):st=this.element(et,mt)}else!this.options.keepNullNodes&&Le===null?st=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ie.indexOf(this.stringify.convertTextKey)===0?st=this.text(Le):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ie.indexOf(this.stringify.convertCDataKey)===0?st=this.cdata(Le):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ie.indexOf(this.stringify.convertCommentKey)===0?st=this.comment(Le):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ie.indexOf(this.stringify.convertRawKey)===0?st=this.raw(Le):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ie.indexOf(this.stringify.convertPIKey)===0?st=this.instruction(Ie.substr(this.stringify.convertPIKey.length),Le):st=this.node(Ie,Pe,Le);if(st==null)throw new Error("Could not create any elements with: "+Ie+". "+this.debugInfo());return st},De.prototype.insertBefore=function(Ie,Pe,Le){var We,Be,He,Ye,et;if(Ie!=null&&Ie.type)return He=Ie,Ye=Pe,He.setParent(this),Ye?(Be=children.indexOf(Ye),et=children.splice(Be),children.push(He),Array.prototype.push.apply(children,et)):children.push(He),He;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ie));return Be=this.parent.children.indexOf(this),et=this.parent.children.splice(Be),We=this.parent.element(Ie,Pe,Le),Array.prototype.push.apply(this.parent.children,et),We},De.prototype.insertAfter=function(Ie,Pe,Le){var We,Be,He;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ie));return Be=this.parent.children.indexOf(this),He=this.parent.children.splice(Be+1),We=this.parent.element(Ie,Pe,Le),Array.prototype.push.apply(this.parent.children,He),We},De.prototype.remove=function(){var Ie,Pe;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ie=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ie,Ie-Ie+1].concat(Pe=[])),this.parent},De.prototype.node=function(Ie,Pe,Le){var We,Be;return Ie!=null&&(Ie=ye(Ie)),Pe||(Pe={}),Pe=ye(Pe),we(Pe)||(Be=[Pe,Le],Le=Be[0],Pe=Be[1]),We=new le(this,Ie,Pe),Le!=null&&We.text(Le),this.children.push(We),We},De.prototype.text=function(Ie){var Pe;return we(Ie)&&this.element(Ie),Pe=new Ce(this,Ie),this.children.push(Pe),this},De.prototype.cdata=function(Ie){var Pe;return Pe=new ae(this,Ie),this.children.push(Pe),this},De.prototype.comment=function(Ie){var Pe;return Pe=new re(this,Ie),this.children.push(Pe),this},De.prototype.commentBefore=function(Ie){var Pe,Le,We;return Le=this.parent.children.indexOf(this),We=this.parent.children.splice(Le),Pe=this.parent.comment(Ie),Array.prototype.push.apply(this.parent.children,We),this},De.prototype.commentAfter=function(Ie){var Pe,Le,We;return Le=this.parent.children.indexOf(this),We=this.parent.children.splice(Le+1),Pe=this.parent.comment(Ie),Array.prototype.push.apply(this.parent.children,We),this},De.prototype.raw=function(Ie){var Pe;return Pe=new Se(this,Ie),this.children.push(Pe),this},De.prototype.dummy=function(){var Ie;return Ie=new ie(this),Ie},De.prototype.instruction=function(Ie,Pe){var Le,We,Be,He,Ye;if(Ie!=null&&(Ie=ye(Ie)),Pe!=null&&(Pe=ye(Pe)),Array.isArray(Ie))for(He=0,Ye=Ie.length;He<Ye;He++)Le=Ie[He],this.instruction(Le);else if(we(Ie))for(Le in Ie)Ae.call(Ie,Le)&&(We=Ie[Le],this.instruction(Le,We));else Me(Pe)&&(Pe=Pe.apply()),Be=new oe(this,Ie,Pe),this.children.push(Be);return this},De.prototype.instructionBefore=function(Ie,Pe){var Le,We,Be;return We=this.parent.children.indexOf(this),Be=this.parent.children.splice(We),Le=this.parent.instruction(Ie,Pe),Array.prototype.push.apply(this.parent.children,Be),this},De.prototype.instructionAfter=function(Ie,Pe){var Le,We,Be;return We=this.parent.children.indexOf(this),Be=this.parent.children.splice(We+1),Le=this.parent.instruction(Ie,Pe),Array.prototype.push.apply(this.parent.children,Be),this},De.prototype.declaration=function(Ie,Pe,Le){var We,Be;return We=this.document(),Be=new se(We,Ie,Pe,Le),We.children.length===0?We.children.unshift(Be):We.children[0].type===z.Declaration?We.children[0]=Be:We.children.unshift(Be),We.root()||We},De.prototype.dtd=function(Ie,Pe){var Le,We,Be,He,Ye,et,st,yt,Ve,Qe;for(We=this.document(),Be=new me(We,Ie,Pe),Ve=We.children,He=Ye=0,st=Ve.length;Ye<st;He=++Ye)if(Le=Ve[He],Le.type===z.DocType)return We.children[He]=Be,Be;for(Qe=We.children,He=et=0,yt=Qe.length;et<yt;He=++et)if(Le=Qe[He],Le.isRoot)return We.children.splice(He,0,Be),Be;return We.children.push(Be),Be},De.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},De.prototype.root=function(){var Ie;for(Ie=this;Ie;){if(Ie.type===z.Document)return Ie.rootObject;if(Ie.isRoot)return Ie;Ie=Ie.parent}},De.prototype.document=function(){var Ie;for(Ie=this;Ie;){if(Ie.type===z.Document)return Ie;Ie=Ie.parent}},De.prototype.end=function(Ie){return this.document().end(Ie)},De.prototype.prev=function(){var Ie;if(Ie=this.parent.children.indexOf(this),Ie<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ie-1]},De.prototype.next=function(){var Ie;if(Ie=this.parent.children.indexOf(this),Ie===-1||Ie===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ie+1]},De.prototype.importDocument=function(Ie){var Pe;return Pe=Ie.root().clone(),Pe.parent=this,Pe.isRoot=!1,this.children.push(Pe),this},De.prototype.debugInfo=function(Ie){var Pe,Le;return Ie=Ie||this.name,Ie==null&&!((Pe=this.parent)!=null&&Pe.name)?"":Ie==null?"parent: <"+this.parent.name+">":(Le=this.parent)!=null&&Le.name?"node: <"+Ie+">, parent: <"+this.parent.name+">":"node: <"+Ie+">"},De.prototype.ele=function(Ie,Pe,Le){return this.element(Ie,Pe,Le)},De.prototype.nod=function(Ie,Pe,Le){return this.node(Ie,Pe,Le)},De.prototype.txt=function(Ie){return this.text(Ie)},De.prototype.dat=function(Ie){return this.cdata(Ie)},De.prototype.com=function(Ie){return this.comment(Ie)},De.prototype.ins=function(Ie,Pe){return this.instruction(Ie,Pe)},De.prototype.doc=function(){return this.document()},De.prototype.dec=function(Ie,Pe,Le){return this.declaration(Ie,Pe,Le)},De.prototype.e=function(Ie,Pe,Le){return this.element(Ie,Pe,Le)},De.prototype.n=function(Ie,Pe,Le){return this.node(Ie,Pe,Le)},De.prototype.t=function(Ie){return this.text(Ie)},De.prototype.d=function(Ie){return this.cdata(Ie)},De.prototype.c=function(Ie){return this.comment(Ie)},De.prototype.r=function(Ie){return this.raw(Ie)},De.prototype.i=function(Ie,Pe){return this.instruction(Ie,Pe)},De.prototype.u=function(){return this.up()},De.prototype.importXMLBuilder=function(Ie){return this.importDocument(Ie)},De.prototype.replaceChild=function(Ie,Pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.removeChild=function(Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.appendChild=function(Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.hasChildNodes=function(){return this.children.length!==0},De.prototype.cloneNode=function(Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isSupported=function(Ie,Pe){return!0},De.prototype.hasAttributes=function(){return this.attribs.length!==0},De.prototype.compareDocumentPosition=function(Ie){var Pe,Le;return Pe=this,Pe===Ie?0:this.document()!==Ie.document()?(Le=ne.Disconnected|ne.ImplementationSpecific,Math.random()<.5?Le|=ne.Preceding:Le|=ne.Following,Le):Pe.isAncestor(Ie)?ne.Contains|ne.Preceding:Pe.isDescendant(Ie)?ne.Contains|ne.Following:Pe.isPreceding(Ie)?ne.Preceding:ne.Following},De.prototype.isSameNode=function(Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.lookupPrefix=function(Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isDefaultNamespace=function(Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.lookupNamespaceURI=function(Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.isEqualNode=function(Ie){var Pe,Le,We;if(Ie.nodeType!==this.nodeType||Ie.children.length!==this.children.length)return!1;for(Pe=Le=0,We=this.children.length-1;0<=We?Le<=We:Le>=We;Pe=0<=We?++Le:--Le)if(!this.children[Pe].isEqualNode(Ie.children[Pe]))return!1;return!0},De.prototype.getFeature=function(Ie,Pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.setUserData=function(Ie,Pe,Le){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.getUserData=function(Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},De.prototype.contains=function(Ie){return Ie?Ie===this||this.isDescendant(Ie):!1},De.prototype.isDescendant=function(Ie){var Pe,Le,We,Be,He;for(He=this.children,We=0,Be=He.length;We<Be;We++)if(Pe=He[We],Ie===Pe||(Le=Pe.isDescendant(Ie),Le))return!0;return!1},De.prototype.isAncestor=function(Ie){return Ie.isDescendant(this)},De.prototype.isPreceding=function(Ie){var Pe,Le;return Pe=this.treePosition(Ie),Le=this.treePosition(this),Pe===-1||Le===-1?!1:Pe<Le},De.prototype.isFollowing=function(Ie){var Pe,Le;return Pe=this.treePosition(Ie),Le=this.treePosition(this),Pe===-1||Le===-1?!1:Pe>Le},De.prototype.treePosition=function(Ie){var Pe,Le;return Le=0,Pe=!1,this.foreachTreeNode(this.document(),function(We){if(Le++,!Pe&&We===Ie)return Pe=!0}),Pe?Le:-1},De.prototype.foreachTreeNode=function(Ie,Pe){var Le,We,Be,He,Ye;for(Ie||(Ie=this.document()),He=Ie.children,We=0,Be=He.length;We<Be;We++){if(Le=He[We],Ye=Pe(Le))return Ye;if(Ye=this.foreachTreeNode(Le,Pe),Ye)return Ye}},De}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(x,ke,pe){(function(){var ne;ke.exports=ne=function(){function z(ae){this.nodes=ae}return Object.defineProperty(z.prototype,"length",{get:function(){return this.nodes.length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.item=function(ae){return this.nodes[ae]||null},z}()}).call(this)},{}],452:[function(x,ke,pe){(function(){var ne,z,ae,re=function(me,ie){for(var le in ie)se.call(ie,le)&&(me[le]=ie[le]);function ue(){this.constructor=me}return ue.prototype=ie.prototype,me.prototype=new ue,me.__super__=ie.prototype,me},se={}.hasOwnProperty;ne=x("./NodeType"),z=x("./XMLCharacterData"),ke.exports=ae=function(me){re(ie,me);function ie(le,ue,fe){if(ie.__super__.constructor.call(this,le),ue==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ne.ProcessingInstruction,this.target=this.stringify.insTarget(ue),this.name=this.target,fe&&(this.value=this.stringify.insValue(fe))}return ie.prototype.clone=function(){return Object.create(this)},ie.prototype.toString=function(le){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(le))},ie.prototype.isEqualNode=function(le){return!(!ie.__super__.isEqualNode.apply(this,arguments).isEqualNode(le)||le.target!==this.target)},ie}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(x,ke,pe){(function(){var ne,z,ae,re=function(me,ie){for(var le in ie)se.call(ie,le)&&(me[le]=ie[le]);function ue(){this.constructor=me}return ue.prototype=ie.prototype,me.prototype=new ue,me.__super__=ie.prototype,me},se={}.hasOwnProperty;ne=x("./NodeType"),z=x("./XMLNode"),ke.exports=ae=function(me){re(ie,me);function ie(le,ue){if(ie.__super__.constructor.call(this,le),ue==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ne.Raw,this.value=this.stringify.raw(ue)}return ie.prototype.clone=function(){return Object.create(this)},ie.prototype.toString=function(le){return this.options.writer.raw(this,this.options.writer.filterOptions(le))},ie}(z)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(x,ke,pe){(function(){var ne,z,ae,re,se=function(ie,le){for(var ue in le)me.call(le,ue)&&(ie[ue]=le[ue]);function fe(){this.constructor=ie}return fe.prototype=le.prototype,ie.prototype=new fe,ie.__super__=le.prototype,ie},me={}.hasOwnProperty;ne=x("./NodeType"),re=x("./XMLWriterBase"),z=x("./WriterState"),ke.exports=ae=function(ie){se(le,ie);function le(ue,fe){this.stream=ue,le.__super__.constructor.call(this,fe)}return le.prototype.endline=function(ue,fe,he){return ue.isLastRootNode&&fe.state===z.CloseTag?"":le.__super__.endline.call(this,ue,fe,he)},le.prototype.document=function(ue,fe){var he,oe,Se,Ce,ye,_e,Me,we,Ne;for(Me=ue.children,oe=Se=0,ye=Me.length;Se<ye;oe=++Se)he=Me[oe],he.isLastRootNode=oe===ue.children.length-1;for(fe=this.filterOptions(fe),we=ue.children,Ne=[],Ce=0,_e=we.length;Ce<_e;Ce++)he=we[Ce],Ne.push(this.writeChildNode(he,fe,0));return Ne},le.prototype.attribute=function(ue,fe,he){return this.stream.write(le.__super__.attribute.call(this,ue,fe,he))},le.prototype.cdata=function(ue,fe,he){return this.stream.write(le.__super__.cdata.call(this,ue,fe,he))},le.prototype.comment=function(ue,fe,he){return this.stream.write(le.__super__.comment.call(this,ue,fe,he))},le.prototype.declaration=function(ue,fe,he){return this.stream.write(le.__super__.declaration.call(this,ue,fe,he))},le.prototype.docType=function(ue,fe,he){var oe,Se,Ce,ye;if(he||(he=0),this.openNode(ue,fe,he),fe.state=z.OpenTag,this.stream.write(this.indent(ue,fe,he)),this.stream.write("<!DOCTYPE "+ue.root().name),ue.pubID&&ue.sysID?this.stream.write(' PUBLIC "'+ue.pubID+'" "'+ue.sysID+'"'):ue.sysID&&this.stream.write(' SYSTEM "'+ue.sysID+'"'),ue.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(ue,fe,he)),fe.state=z.InsideTag,ye=ue.children,Se=0,Ce=ye.length;Se<Ce;Se++)oe=ye[Se],this.writeChildNode(oe,fe,he+1);fe.state=z.CloseTag,this.stream.write("]")}return fe.state=z.CloseTag,this.stream.write(fe.spaceBeforeSlash+">"),this.stream.write(this.endline(ue,fe,he)),fe.state=z.None,this.closeNode(ue,fe,he)},le.prototype.element=function(ue,fe,he){var oe,Se,Ce,ye,_e,Me,we,Ne,Ae,De;he||(he=0),this.openNode(ue,fe,he),fe.state=z.OpenTag,this.stream.write(this.indent(ue,fe,he)+"<"+ue.name),Ae=ue.attribs;for(we in Ae)me.call(Ae,we)&&(oe=Ae[we],this.attribute(oe,fe,he));if(Ce=ue.children.length,ye=Ce===0?null:ue.children[0],Ce===0||ue.children.every(function(Ie){return(Ie.type===ne.Text||Ie.type===ne.Raw)&&Ie.value===""}))fe.allowEmpty?(this.stream.write(">"),fe.state=z.CloseTag,this.stream.write("</"+ue.name+">")):(fe.state=z.CloseTag,this.stream.write(fe.spaceBeforeSlash+"/>"));else if(fe.pretty&&Ce===1&&(ye.type===ne.Text||ye.type===ne.Raw)&&ye.value!=null)this.stream.write(">"),fe.state=z.InsideTag,fe.suppressPrettyCount++,Ne=!0,this.writeChildNode(ye,fe,he+1),fe.suppressPrettyCount--,Ne=!1,fe.state=z.CloseTag,this.stream.write("</"+ue.name+">");else{for(this.stream.write(">"+this.endline(ue,fe,he)),fe.state=z.InsideTag,De=ue.children,_e=0,Me=De.length;_e<Me;_e++)Se=De[_e],this.writeChildNode(Se,fe,he+1);fe.state=z.CloseTag,this.stream.write(this.indent(ue,fe,he)+"</"+ue.name+">")}return this.stream.write(this.endline(ue,fe,he)),fe.state=z.None,this.closeNode(ue,fe,he)},le.prototype.processingInstruction=function(ue,fe,he){return this.stream.write(le.__super__.processingInstruction.call(this,ue,fe,he))},le.prototype.raw=function(ue,fe,he){return this.stream.write(le.__super__.raw.call(this,ue,fe,he))},le.prototype.text=function(ue,fe,he){return this.stream.write(le.__super__.text.call(this,ue,fe,he))},le.prototype.dtdAttList=function(ue,fe,he){return this.stream.write(le.__super__.dtdAttList.call(this,ue,fe,he))},le.prototype.dtdElement=function(ue,fe,he){return this.stream.write(le.__super__.dtdElement.call(this,ue,fe,he))},le.prototype.dtdEntity=function(ue,fe,he){return this.stream.write(le.__super__.dtdEntity.call(this,ue,fe,he))},le.prototype.dtdNotation=function(ue,fe,he){return this.stream.write(le.__super__.dtdNotation.call(this,ue,fe,he))},le}(re)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(x,ke,pe){(function(){var ne,z,ae=function(se,me){for(var ie in me)re.call(me,ie)&&(se[ie]=me[ie]);function le(){this.constructor=se}return le.prototype=me.prototype,se.prototype=new le,se.__super__=me.prototype,se},re={}.hasOwnProperty;z=x("./XMLWriterBase"),ke.exports=ne=function(se){ae(me,se);function me(ie){me.__super__.constructor.call(this,ie)}return me.prototype.document=function(ie,le){var ue,fe,he,oe,Se;for(le=this.filterOptions(le),oe="",Se=ie.children,fe=0,he=Se.length;fe<he;fe++)ue=Se[fe],oe+=this.writeChildNode(ue,le,0);return le.pretty&&oe.slice(-le.newline.length)===le.newline&&(oe=oe.slice(0,-le.newline.length)),oe},me}(z)}).call(this)},{"./XMLWriterBase":458}],456:[function(x,ke,pe){(function(){var ne,z=function(re,se){return function(){return re.apply(se,arguments)}},ae={}.hasOwnProperty;ke.exports=ne=function(){function re(se){this.assertLegalName=z(this.assertLegalName,this),this.assertLegalChar=z(this.assertLegalChar,this);var me,ie,le;se||(se={}),this.options=se,this.options.version||(this.options.version="1.0"),ie=se.stringify||{};for(me in ie)ae.call(ie,me)&&(le=ie[me],this[me]=le)}return re.prototype.name=function(se){return this.options.noValidation?se:this.assertLegalName(""+se||"")},re.prototype.text=function(se){return this.options.noValidation?se:this.assertLegalChar(this.textEscape(""+se||""))},re.prototype.cdata=function(se){return this.options.noValidation?se:(se=""+se||"",se=se.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(se))},re.prototype.comment=function(se){if(this.options.noValidation)return se;if(se=""+se||"",se.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+se);return this.assertLegalChar(se)},re.prototype.raw=function(se){return this.options.noValidation?se:""+se||""},re.prototype.attValue=function(se){return this.options.noValidation?se:this.assertLegalChar(this.attEscape(se=""+se||""))},re.prototype.insTarget=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},re.prototype.insValue=function(se){if(this.options.noValidation)return se;if(se=""+se||"",se.match(/\?>/))throw new Error("Invalid processing instruction value: "+se);return this.assertLegalChar(se)},re.prototype.xmlVersion=function(se){if(this.options.noValidation)return se;if(se=""+se||"",!se.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+se);return se},re.prototype.xmlEncoding=function(se){if(this.options.noValidation)return se;if(se=""+se||"",!se.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+se);return this.assertLegalChar(se)},re.prototype.xmlStandalone=function(se){return this.options.noValidation?se:se?"yes":"no"},re.prototype.dtdPubID=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},re.prototype.dtdSysID=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},re.prototype.dtdElementValue=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},re.prototype.dtdAttType=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},re.prototype.dtdAttDefault=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},re.prototype.dtdEntityValue=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},re.prototype.dtdNData=function(se){return this.options.noValidation?se:this.assertLegalChar(""+se||"")},re.prototype.convertAttKey="@",re.prototype.convertPIKey="?",re.prototype.convertTextKey="#text",re.prototype.convertCDataKey="#cdata",re.prototype.convertCommentKey="#comment",re.prototype.convertRawKey="#raw",re.prototype.assertLegalChar=function(se){var me,ie;if(this.options.noValidation)return se;if(me="",this.options.version==="1.0"){if(me=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ie=se.match(me))throw new Error("Invalid character in string: "+se+" at index "+ie.index)}else if(this.options.version==="1.1"&&(me=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ie=se.match(me)))throw new Error("Invalid character in string: "+se+" at index "+ie.index);return se},re.prototype.assertLegalName=function(se){var me;if(this.options.noValidation)return se;if(this.assertLegalChar(se),me=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!se.match(me))throw new Error("Invalid character in name");return se},re.prototype.textEscape=function(se){var me;return this.options.noValidation?se:(me=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,se.replace(me,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},re.prototype.attEscape=function(se){var me;return this.options.noValidation?se:(me=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,se.replace(me,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},re}()}).call(this)},{}],457:[function(x,ke,pe){(function(){var ne,z,ae,re=function(me,ie){for(var le in ie)se.call(ie,le)&&(me[le]=ie[le]);function ue(){this.constructor=me}return ue.prototype=ie.prototype,me.prototype=new ue,me.__super__=ie.prototype,me},se={}.hasOwnProperty;ne=x("./NodeType"),z=x("./XMLCharacterData"),ke.exports=ae=function(me){re(ie,me);function ie(le,ue){if(ie.__super__.constructor.call(this,le),ue==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ne.Text,this.value=this.stringify.text(ue)}return Object.defineProperty(ie.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(ie.prototype,"wholeText",{get:function(){var le,ue,fe;for(fe="",ue=this.previousSibling;ue;)fe=ue.data+fe,ue=ue.previousSibling;for(fe+=this.data,le=this.nextSibling;le;)fe=fe+le.data,le=le.nextSibling;return fe}}),ie.prototype.clone=function(){return Object.create(this)},ie.prototype.toString=function(le){return this.options.writer.text(this,this.options.writer.filterOptions(le))},ie.prototype.splitText=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ie.prototype.replaceWholeText=function(le){throw new Error("This DOM method is not implemented."+this.debugInfo())},ie}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(x,ke,pe){(function(){var ne,z,ae,re,se,me,ie,le,ue,fe,he,oe,Se,Ce,ye,_e,Me,we={}.hasOwnProperty;Me=x("./Utility").assign,ne=x("./NodeType"),ue=x("./XMLDeclaration"),fe=x("./XMLDocType"),ae=x("./XMLCData"),re=x("./XMLComment"),oe=x("./XMLElement"),Ce=x("./XMLRaw"),ye=x("./XMLText"),Se=x("./XMLProcessingInstruction"),he=x("./XMLDummy"),se=x("./XMLDTDAttList"),me=x("./XMLDTDElement"),ie=x("./XMLDTDEntity"),le=x("./XMLDTDNotation"),z=x("./WriterState"),ke.exports=_e=function(){function Ne(Ae){var De,Ie,Pe;Ae||(Ae={}),this.options=Ae,Ie=Ae.writer||{};for(De in Ie)we.call(Ie,De)&&(Pe=Ie[De],this["_"+De]=this[De],this[De]=Pe)}return Ne.prototype.filterOptions=function(Ae){var De,Ie,Pe,Le,We,Be,He,Ye;return Ae||(Ae={}),Ae=Me({},this.options,Ae),De={writer:this},De.pretty=Ae.pretty||!1,De.allowEmpty=Ae.allowEmpty||!1,De.indent=(Ie=Ae.indent)!=null?Ie:" ",De.newline=(Pe=Ae.newline)!=null?Pe:`
|
|
|
`,De.offset=(Le=Ae.offset)!=null?Le:0,De.dontPrettyTextNodes=(We=(Be=Ae.dontPrettyTextNodes)!=null?Be:Ae.dontprettytextnodes)!=null?We:0,De.spaceBeforeSlash=(He=(Ye=Ae.spaceBeforeSlash)!=null?Ye:Ae.spacebeforeslash)!=null?He:"",De.spaceBeforeSlash===!0&&(De.spaceBeforeSlash=" "),De.suppressPrettyCount=0,De.user={},De.state=z.None,De},Ne.prototype.indent=function(Ae,De,Ie){var Pe;return!De.pretty||De.suppressPrettyCount?"":De.pretty&&(Pe=(Ie||0)+De.offset+1,Pe>0)?new Array(Pe).join(De.indent):""},Ne.prototype.endline=function(Ae,De,Ie){return!De.pretty||De.suppressPrettyCount?"":De.newline},Ne.prototype.attribute=function(Ae,De,Ie){var Pe;return this.openAttribute(Ae,De,Ie),Pe=" "+Ae.name+'="'+Ae.value+'"',this.closeAttribute(Ae,De,Ie),Pe},Ne.prototype.cdata=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie)+"<![CDATA[",De.state=z.InsideTag,Pe+=Ae.value,De.state=z.CloseTag,Pe+="]]>"+this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.comment=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie)+"<!-- ",De.state=z.InsideTag,Pe+=Ae.value,De.state=z.CloseTag,Pe+=" -->"+this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.declaration=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie)+"<?xml",De.state=z.InsideTag,Pe+=' version="'+Ae.version+'"',Ae.encoding!=null&&(Pe+=' encoding="'+Ae.encoding+'"'),Ae.standalone!=null&&(Pe+=' standalone="'+Ae.standalone+'"'),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+"?>",Pe+=this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.docType=function(Ae,De,Ie){var Pe,Le,We,Be,He;if(Ie||(Ie=0),this.openNode(Ae,De,Ie),De.state=z.OpenTag,Be=this.indent(Ae,De,Ie),Be+="<!DOCTYPE "+Ae.root().name,Ae.pubID&&Ae.sysID?Be+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(Be+=' SYSTEM "'+Ae.sysID+'"'),Ae.children.length>0){for(Be+=" [",Be+=this.endline(Ae,De,Ie),De.state=z.InsideTag,He=Ae.children,Le=0,We=He.length;Le<We;Le++)Pe=He[Le],Be+=this.writeChildNode(Pe,De,Ie+1);De.state=z.CloseTag,Be+="]"}return De.state=z.CloseTag,Be+=De.spaceBeforeSlash+">",Be+=this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Be},Ne.prototype.element=function(Ae,De,Ie){var Pe,Le,We,Be,He,Ye,et,st,yt,Ve,Qe,pt,mt,ft;Ie||(Ie=0),Ve=!1,Qe="",this.openNode(Ae,De,Ie),De.state=z.OpenTag,Qe+=this.indent(Ae,De,Ie)+"<"+Ae.name,pt=Ae.attribs;for(yt in pt)we.call(pt,yt)&&(Pe=pt[yt],Qe+=this.attribute(Pe,De,Ie));if(We=Ae.children.length,Be=We===0?null:Ae.children[0],We===0||Ae.children.every(function(nt){return(nt.type===ne.Text||nt.type===ne.Raw)&&nt.value===""}))De.allowEmpty?(Qe+=">",De.state=z.CloseTag,Qe+="</"+Ae.name+">"+this.endline(Ae,De,Ie)):(De.state=z.CloseTag,Qe+=De.spaceBeforeSlash+"/>"+this.endline(Ae,De,Ie));else if(De.pretty&&We===1&&(Be.type===ne.Text||Be.type===ne.Raw)&&Be.value!=null)Qe+=">",De.state=z.InsideTag,De.suppressPrettyCount++,Ve=!0,Qe+=this.writeChildNode(Be,De,Ie+1),De.suppressPrettyCount--,Ve=!1,De.state=z.CloseTag,Qe+="</"+Ae.name+">"+this.endline(Ae,De,Ie);else{if(De.dontPrettyTextNodes){for(mt=Ae.children,He=0,et=mt.length;He<et;He++)if(Le=mt[He],(Le.type===ne.Text||Le.type===ne.Raw)&&Le.value!=null){De.suppressPrettyCount++,Ve=!0;break}}for(Qe+=">"+this.endline(Ae,De,Ie),De.state=z.InsideTag,ft=Ae.children,Ye=0,st=ft.length;Ye<st;Ye++)Le=ft[Ye],Qe+=this.writeChildNode(Le,De,Ie+1);De.state=z.CloseTag,Qe+=this.indent(Ae,De,Ie)+"</"+Ae.name+">",Ve&&De.suppressPrettyCount--,Qe+=this.endline(Ae,De,Ie),De.state=z.None}return this.closeNode(Ae,De,Ie),Qe},Ne.prototype.writeChildNode=function(Ae,De,Ie){switch(Ae.type){case ne.CData:return this.cdata(Ae,De,Ie);case ne.Comment:return this.comment(Ae,De,Ie);case ne.Element:return this.element(Ae,De,Ie);case ne.Raw:return this.raw(Ae,De,Ie);case ne.Text:return this.text(Ae,De,Ie);case ne.ProcessingInstruction:return this.processingInstruction(Ae,De,Ie);case ne.Dummy:return"";case ne.Declaration:return this.declaration(Ae,De,Ie);case ne.DocType:return this.docType(Ae,De,Ie);case ne.AttributeDeclaration:return this.dtdAttList(Ae,De,Ie);case ne.ElementDeclaration:return this.dtdElement(Ae,De,Ie);case ne.EntityDeclaration:return this.dtdEntity(Ae,De,Ie);case ne.NotationDeclaration:return this.dtdNotation(Ae,De,Ie);default:throw new Error("Unknown XML node type: "+Ae.constructor.name)}},Ne.prototype.processingInstruction=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie)+"<?",De.state=z.InsideTag,Pe+=Ae.target,Ae.value&&(Pe+=" "+Ae.value),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+"?>",Pe+=this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.raw=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie),De.state=z.InsideTag,Pe+=Ae.value,De.state=z.CloseTag,Pe+=this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.text=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie),De.state=z.InsideTag,Pe+=Ae.value,De.state=z.CloseTag,Pe+=this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.dtdAttList=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie)+"<!ATTLIST",De.state=z.InsideTag,Pe+=" "+Ae.elementName+" "+Ae.attributeName+" "+Ae.attributeType,Ae.defaultValueType!=="#DEFAULT"&&(Pe+=" "+Ae.defaultValueType),Ae.defaultValue&&(Pe+=' "'+Ae.defaultValue+'"'),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+">"+this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.dtdElement=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie)+"<!ELEMENT",De.state=z.InsideTag,Pe+=" "+Ae.name+" "+Ae.value,De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+">"+this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.dtdEntity=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie)+"<!ENTITY",De.state=z.InsideTag,Ae.pe&&(Pe+=" %"),Pe+=" "+Ae.name,Ae.value?Pe+=' "'+Ae.value+'"':(Ae.pubID&&Ae.sysID?Pe+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(Pe+=' SYSTEM "'+Ae.sysID+'"'),Ae.nData&&(Pe+=" NDATA "+Ae.nData)),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+">"+this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.dtdNotation=function(Ae,De,Ie){var Pe;return this.openNode(Ae,De,Ie),De.state=z.OpenTag,Pe=this.indent(Ae,De,Ie)+"<!NOTATION",De.state=z.InsideTag,Pe+=" "+Ae.name,Ae.pubID&&Ae.sysID?Pe+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.pubID?Pe+=' PUBLIC "'+Ae.pubID+'"':Ae.sysID&&(Pe+=' SYSTEM "'+Ae.sysID+'"'),De.state=z.CloseTag,Pe+=De.spaceBeforeSlash+">"+this.endline(Ae,De,Ie),De.state=z.None,this.closeNode(Ae,De,Ie),Pe},Ne.prototype.openNode=function(Ae,De,Ie){},Ne.prototype.closeNode=function(Ae,De,Ie){},Ne.prototype.openAttribute=function(Ae,De,Ie){},Ne.prototype.closeAttribute=function(Ae,De,Ie){},Ne}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(x,ke,pe){(function(){var ne,z,ae,re,se,me,ie,le,ue,fe;fe=x("./Utility"),le=fe.assign,ue=fe.isFunction,ae=x("./XMLDOMImplementation"),re=x("./XMLDocument"),se=x("./XMLDocumentCB"),ie=x("./XMLStringWriter"),me=x("./XMLStreamWriter"),ne=x("./NodeType"),z=x("./WriterState"),ke.exports.create=function(he,oe,Se,Ce){var ye,_e;if(he==null)throw new Error("Root element needs a name.");return Ce=le({},oe,Se,Ce),ye=new re(Ce),_e=ye.element(he),Ce.headless||(ye.declaration(Ce),(Ce.pubID!=null||Ce.sysID!=null)&&ye.dtd(Ce)),_e},ke.exports.begin=function(he,oe,Se){var Ce;return ue(he)&&(Ce=[he,oe],oe=Ce[0],Se=Ce[1],he={}),oe?new se(he,oe,Se):new re(he)},ke.exports.stringWriter=function(he){return new ie(he)},ke.exports.streamWriter=function(he,oe){return new me(he,oe)},ke.exports.implementation=new ae,ke.exports.nodeType=ne,ke.exports.writerState=z}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(x,ke,pe){ke.exports=z;var ne=Object.prototype.hasOwnProperty;function z(){for(var ae={},re=0;re<arguments.length;re++){var se=arguments[re];for(var me in se)ne.call(se,me)&&(ae[me]=se[me])}return ae}},{}],461:[function(x,ke,pe){"use strict";x("core-js/modules/es.array.fill.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.array.slice.js");var ne=x("buffer").Buffer,z=x("./sha"),ae=x("./md5"),re={sha1:z,md5:ae},se=64,me=ne.alloc(se);me.fill(0);function ie(fe,he,oe){ne.isBuffer(he)||(he=ne.from(he)),ne.isBuffer(oe)||(oe=ne.from(oe)),he.length>se?he=fe(he):he.length<se&&(he=ne.concat([he,me],se));for(var Se=ne.alloc(se),Ce=ne.alloc(se),ye=0;ye<se;ye++)Se[ye]=he[ye]^54,Ce[ye]=he[ye]^92;var _e=fe(ne.concat([Se,oe]));return fe(ne.concat([Ce,_e]))}function le(fe,he){fe=fe||"sha1";var oe=re[fe],Se=[],Ce=0;return oe||ue("algorithm:",fe,"is not yet supported"),{update:function(_e){return ne.isBuffer(_e)||(_e=ne.from(_e)),Se.push(_e),Ce+=_e.length,this},digest:function(_e){var Me=ne.concat(Se),we=he?ie(oe,he,Me):oe(Me);return Se=null,_e?we.toString(_e):we}}}function ue(){var fe=[].slice.call(arguments).join(" ");throw new Error([fe,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}pe.createHash=function(fe){return le(fe)},pe.createHmac=function(fe,he){return le(fe,he)},pe.createCredentials=function(){ue("sorry,createCredentials is not implemented yet")},pe.createCipher=function(){ue("sorry,createCipher is not implemented yet")},pe.createCipheriv=function(){ue("sorry,createCipheriv is not implemented yet")},pe.createDecipher=function(){ue("sorry,createDecipher is not implemented yet")},pe.createDecipheriv=function(){ue("sorry,createDecipheriv is not implemented yet")},pe.createSign=function(){ue("sorry,createSign is not implemented yet")},pe.createVerify=function(){ue("sorry,createVerify is not implemented yet")},pe.createDiffieHellman=function(){ue("sorry,createDiffieHellman is not implemented yet")},pe.pbkdf2=function(){ue("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(x,ke,pe){"use strict";x("core-js/modules/es.array.fill.js"),x("core-js/modules/es.array.concat.js");var ne=x("buffer").Buffer,z=4,ae=ne.alloc(z);ae.fill(0);var re=8;function se(le,ue){if(le.length%z!==0){var fe=le.length+(z-le.length%z);le=ne.concat([le,ae],fe)}for(var he=[],oe=ue?le.readInt32BE:le.readInt32LE,Se=0;Se<le.length;Se+=z)he.push(oe.call(le,Se));return he}function me(le,ue,fe){for(var he=ne.alloc(ue),oe=fe?he.writeInt32BE:he.writeInt32LE,Se=0;Se<le.length;Se++)oe.call(he,le[Se],Se*4,!0);return he}function ie(le,ue,fe,he){ne.isBuffer(le)||(le=ne.from(le));var oe=ue(se(le,he),le.length*re);return me(oe,fe,he)}ke.exports={hash:ie}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(x,ke,pe){"use strict";var ne=x("./helpers");function z(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ae(he,oe){he[oe>>5]|=128<<oe%32,he[(oe+64>>>9<<4)+14]=oe;for(var Se=1732584193,Ce=-271733879,ye=-1732584194,_e=271733878,Me=0;Me<he.length;Me+=16){var we=Se,Ne=Ce,Ae=ye,De=_e;Se=se(Se,Ce,ye,_e,he[Me+0],7,-680876936),_e=se(_e,Se,Ce,ye,he[Me+1],12,-389564586),ye=se(ye,_e,Se,Ce,he[Me+2],17,606105819),Ce=se(Ce,ye,_e,Se,he[Me+3],22,-1044525330),Se=se(Se,Ce,ye,_e,he[Me+4],7,-176418897),_e=se(_e,Se,Ce,ye,he[Me+5],12,1200080426),ye=se(ye,_e,Se,Ce,he[Me+6],17,-1473231341),Ce=se(Ce,ye,_e,Se,he[Me+7],22,-45705983),Se=se(Se,Ce,ye,_e,he[Me+8],7,1770035416),_e=se(_e,Se,Ce,ye,he[Me+9],12,-1958414417),ye=se(ye,_e,Se,Ce,he[Me+10],17,-42063),Ce=se(Ce,ye,_e,Se,he[Me+11],22,-1990404162),Se=se(Se,Ce,ye,_e,he[Me+12],7,1804603682),_e=se(_e,Se,Ce,ye,he[Me+13],12,-40341101),ye=se(ye,_e,Se,Ce,he[Me+14],17,-1502002290),Ce=se(Ce,ye,_e,Se,he[Me+15],22,1236535329),Se=me(Se,Ce,ye,_e,he[Me+1],5,-165796510),_e=me(_e,Se,Ce,ye,he[Me+6],9,-1069501632),ye=me(ye,_e,Se,Ce,he[Me+11],14,643717713),Ce=me(Ce,ye,_e,Se,he[Me+0],20,-373897302),Se=me(Se,Ce,ye,_e,he[Me+5],5,-701558691),_e=me(_e,Se,Ce,ye,he[Me+10],9,38016083),ye=me(ye,_e,Se,Ce,he[Me+15],14,-660478335),Ce=me(Ce,ye,_e,Se,he[Me+4],20,-405537848),Se=me(Se,Ce,ye,_e,he[Me+9],5,568446438),_e=me(_e,Se,Ce,ye,he[Me+14],9,-1019803690),ye=me(ye,_e,Se,Ce,he[Me+3],14,-187363961),Ce=me(Ce,ye,_e,Se,he[Me+8],20,1163531501),Se=me(Se,Ce,ye,_e,he[Me+13],5,-1444681467),_e=me(_e,Se,Ce,ye,he[Me+2],9,-51403784),ye=me(ye,_e,Se,Ce,he[Me+7],14,1735328473),Ce=me(Ce,ye,_e,Se,he[Me+12],20,-1926607734),Se=ie(Se,Ce,ye,_e,he[Me+5],4,-378558),_e=ie(_e,Se,Ce,ye,he[Me+8],11,-2022574463),ye=ie(ye,_e,Se,Ce,he[Me+11],16,1839030562),Ce=ie(Ce,ye,_e,Se,he[Me+14],23,-35309556),Se=ie(Se,Ce,ye,_e,he[Me+1],4,-1530992060),_e=ie(_e,Se,Ce,ye,he[Me+4],11,1272893353),ye=ie(ye,_e,Se,Ce,he[Me+7],16,-155497632),Ce=ie(Ce,ye,_e,Se,he[Me+10],23,-1094730640),Se=ie(Se,Ce,ye,_e,he[Me+13],4,681279174),_e=ie(_e,Se,Ce,ye,he[Me+0],11,-358537222),ye=ie(ye,_e,Se,Ce,he[Me+3],16,-722521979),Ce=ie(Ce,ye,_e,Se,he[Me+6],23,76029189),Se=ie(Se,Ce,ye,_e,he[Me+9],4,-640364487),_e=ie(_e,Se,Ce,ye,he[Me+12],11,-421815835),ye=ie(ye,_e,Se,Ce,he[Me+15],16,530742520),Ce=ie(Ce,ye,_e,Se,he[Me+2],23,-995338651),Se=le(Se,Ce,ye,_e,he[Me+0],6,-198630844),_e=le(_e,Se,Ce,ye,he[Me+7],10,1126891415),ye=le(ye,_e,Se,Ce,he[Me+14],15,-1416354905),Ce=le(Ce,ye,_e,Se,he[Me+5],21,-57434055),Se=le(Se,Ce,ye,_e,he[Me+12],6,1700485571),_e=le(_e,Se,Ce,ye,he[Me+3],10,-1894986606),ye=le(ye,_e,Se,Ce,he[Me+10],15,-1051523),Ce=le(Ce,ye,_e,Se,he[Me+1],21,-2054922799),Se=le(Se,Ce,ye,_e,he[Me+8],6,1873313359),_e=le(_e,Se,Ce,ye,he[Me+15],10,-30611744),ye=le(ye,_e,Se,Ce,he[Me+6],15,-1560198380),Ce=le(Ce,ye,_e,Se,he[Me+13],21,1309151649),Se=le(Se,Ce,ye,_e,he[Me+4],6,-145523070),_e=le(_e,Se,Ce,ye,he[Me+11],10,-1120210379),ye=le(ye,_e,Se,Ce,he[Me+2],15,718787259),Ce=le(Ce,ye,_e,Se,he[Me+9],21,-343485551),Se=ue(Se,we),Ce=ue(Ce,Ne),ye=ue(ye,Ae),_e=ue(_e,De)}return Array(Se,Ce,ye,_e)}function re(he,oe,Se,Ce,ye,_e){return ue(fe(ue(ue(oe,he),ue(Ce,_e)),ye),Se)}function se(he,oe,Se,Ce,ye,_e,Me){return re(oe&Se|~oe&Ce,he,oe,ye,_e,Me)}function me(he,oe,Se,Ce,ye,_e,Me){return re(oe&Ce|Se&~Ce,he,oe,ye,_e,Me)}function ie(he,oe,Se,Ce,ye,_e,Me){return re(oe^Se^Ce,he,oe,ye,_e,Me)}function le(he,oe,Se,Ce,ye,_e,Me){return re(Se^(oe|~Ce),he,oe,ye,_e,Me)}function ue(he,oe){var Se=(he&65535)+(oe&65535),Ce=(he>>16)+(oe>>16)+(Se>>16);return Ce<<16|Se&65535}function fe(he,oe){return he<<oe|he>>>32-oe}ke.exports=function(oe){return ne.hash(oe,ae,16)}},{"./helpers":462}],464:[function(x,ke,pe){"use strict";var ne=x("./helpers");function z(ie,le){ie[le>>5]|=128<<24-le%32,ie[(le+64>>9<<4)+15]=le;for(var ue=Array(80),fe=1732584193,he=-271733879,oe=-1732584194,Se=271733878,Ce=-1009589776,ye=0;ye<ie.length;ye+=16){for(var _e=fe,Me=he,we=oe,Ne=Se,Ae=Ce,De=0;De<80;De++){De<16?ue[De]=ie[ye+De]:ue[De]=me(ue[De-3]^ue[De-8]^ue[De-14]^ue[De-16],1);var Ie=se(se(me(fe,5),ae(De,he,oe,Se)),se(se(Ce,ue[De]),re(De)));Ce=Se,Se=oe,oe=me(he,30),he=fe,fe=Ie}fe=se(fe,_e),he=se(he,Me),oe=se(oe,we),Se=se(Se,Ne),Ce=se(Ce,Ae)}return Array(fe,he,oe,Se,Ce)}function ae(ie,le,ue,fe){return ie<20?le&ue|~le&fe:ie<40?le^ue^fe:ie<60?le&ue|le&fe|ue&fe:le^ue^fe}function re(ie){return ie<20?1518500249:ie<40?1859775393:ie<60?-1894007588:-899497514}function se(ie,le){var ue=(ie&65535)+(le&65535),fe=(ie>>16)+(le>>16)+(ue>>16);return fe<<16|ue&65535}function me(ie,le){return ie<<le|ie>>>32-le}ke.exports=function(le){return ne.hash(le,z,20,!0)}},{"./helpers":462}],465:[function(x,ke,pe){"use strict";ke.exports=function(){return function(){}}},{}],466:[function(x,ke,pe){(function(ne){(function(){"use strict";var z=x("@babel/runtime/helpers/interopRequireDefault"),ae=z(x("@babel/runtime/helpers/typeof")),re=x("stream"),se=re.Stream,me=x("../lib/common/utils/isArray"),ie=me.isArray;ke.exports.string=function(fe){return typeof fe=="string"},ke.exports.array=ie,ke.exports.buffer=ne.isBuffer;function le(ue){return ue instanceof se}ke.exports.writableStream=function(fe){return le(fe)&&typeof fe._write=="function"&&(0,ae.default)(fe._writableState)==="object"}}).call(this)}).call(this,{isBuffer:x("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(x,ke,pe){"use strict";var ne=x("immediate"),z=ke.exports={};z.nextTick=ne,z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function ae(){}z.on=ae,z.addListener=ae,z.once=ae,z.off=ae,z.removeListener=ae,z.removeAllListeners=ae,z.emit=ae,z.prependListener=ae,z.prependOnceListener=ae,z.listeners=function(re){return[]},z.binding=function(re){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(re){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{immediate:358}],468:[function(x,ke,pe){(function(ne){(function(){"use strict";x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.search.js");var z=x("./lib/request"),ae=x("./lib/response"),re=x("xtend"),se=x("builtin-status-codes"),me=x("url"),ie=pe;ie.request=function(le,ue){typeof le=="string"?le=me.parse(le):le=re(le);var fe=ne.location.protocol.search(/^https?:$/)===-1?"http:":"",he=le.protocol||fe,oe=le.hostname||le.host,Se=le.port,Ce=le.path||"/";oe&&oe.indexOf(":")!==-1&&(oe="["+oe+"]"),le.url=(oe?he+"//"+oe:"")+(Se?":"+Se:"")+Ce,le.method=(le.method||"GET").toUpperCase(),le.headers=le.headers||{};var ye=new z(le);return ue&&ye.on("response",ue),ye},ie.get=function(ue,fe){var he=ie.request(ue,fe);return he.end(),he},ie.ClientRequest=z,ie.IncomingMessage=ae.IncomingMessage,ie.Agent=function(){},ie.Agent.defaultMaxSockets=4,ie.globalAgent=new ie.Agent,ie.STATUS_CODES=se,ie.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(x,ke,pe){(function(ne){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array-buffer.constructor.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.array.slice.js"),pe.fetch=ie(ne.fetch)&&ie(ne.ReadableStream),pe.writableStream=ie(ne.WritableStream),pe.abortController=ie(ne.AbortController),pe.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),pe.blobConstructor=!0}catch(le){}var z;function ae(){if(z!==void 0)return z;if(ne.XMLHttpRequest){z=new ne.XMLHttpRequest;try{z.open("GET",ne.XDomainRequest?"/":"https://example.com")}catch(le){z=null}}else z=null;return z}function re(le){var ue=ae();if(!ue)return!1;try{return ue.responseType=le,ue.responseType===le}catch(fe){}return!1}var se=typeof ne.ArrayBuffer!="undefined",me=se&&ie(ne.ArrayBuffer.prototype.slice);pe.arraybuffer=pe.fetch||se&&re("arraybuffer"),pe.msstream=!pe.fetch&&me&&re("ms-stream"),pe.mozchunkedarraybuffer=!pe.fetch&&se&&re("moz-chunked-arraybuffer"),pe.overrideMimeType=pe.fetch||(ae()?ie(ae().overrideMimeType):!1),pe.vbArray=ie(ne.VBArray);function ie(le){return typeof le=="function"}z=null}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(x,ke,pe){(function(ne,z,ae){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js");var re=x("./capability"),se=x("inherits"),me=x("./response"),ie=x("readable-stream"),le=x("to-arraybuffer"),ue=me.IncomingMessage,fe=me.readyStates;function he(ye,_e){return re.fetch&&_e?"fetch":re.mozchunkedarraybuffer?"moz-chunked-arraybuffer":re.msstream?"ms-stream":re.arraybuffer&&ye?"arraybuffer":re.vbArray&&ye?"text:vbarray":"text"}var oe=ke.exports=function(ye){var _e=this;ie.Writable.call(_e),_e._opts=ye,_e._body=[],_e._headers={},ye.auth&&_e.setHeader("Authorization","Basic "+new ae(ye.auth).toString("base64")),Object.keys(ye.headers).forEach(function(Ne){_e.setHeader(Ne,ye.headers[Ne])});var Me,we=!0;if(ye.mode==="disable-fetch"||"requestTimeout"in ye&&!re.abortController)we=!1,Me=!0;else if(ye.mode==="prefer-streaming")Me=!1;else if(ye.mode==="allow-wrong-content-type")Me=!re.overrideMimeType;else if(!ye.mode||ye.mode==="default"||ye.mode==="prefer-fast")Me=!0;else throw new Error("Invalid value for opts.mode");_e._mode=he(Me,we),_e._fetchTimer=null,_e.on("finish",function(){_e._onFinish()})};se(oe,ie.Writable),oe.prototype.setHeader=function(ye,_e){var Me=this,we=ye.toLowerCase();Ce.indexOf(we)===-1&&(Me._headers[we]={name:ye,value:_e})},oe.prototype.getHeader=function(ye){var _e=this._headers[ye.toLowerCase()];return _e?_e.value:null},oe.prototype.removeHeader=function(ye){var _e=this;delete _e._headers[ye.toLowerCase()]},oe.prototype._onFinish=function(){var ye=this;if(!ye._destroyed){var _e=ye._opts,Me=ye._headers,we=null;_e.method!=="GET"&&_e.method!=="HEAD"&&(re.arraybuffer?we=le(ae.concat(ye._body)):re.blobConstructor?we=new z.Blob(ye._body.map(function(Le){return le(Le)}),{type:(Me["content-type"]||{}).value||""}):we=ae.concat(ye._body).toString());var Ne=[];if(Object.keys(Me).forEach(function(Le){var We=Me[Le].name,Be=Me[Le].value;Array.isArray(Be)?Be.forEach(function(He){Ne.push([We,He])}):Ne.push([We,Be])}),ye._mode==="fetch"){var Ae=null,De=null;if(re.abortController){var Ie=new AbortController;Ae=Ie.signal,ye._fetchAbortController=Ie,"requestTimeout"in _e&&_e.requestTimeout!==0&&(ye._fetchTimer=z.setTimeout(function(){ye.emit("requestTimeout"),ye._fetchAbortController&&ye._fetchAbortController.abort()},_e.requestTimeout))}z.fetch(ye._opts.url,{method:ye._opts.method,headers:Ne,body:we||void 0,mode:"cors",credentials:_e.withCredentials?"include":"same-origin",signal:Ae}).then(function(Le){ye._fetchResponse=Le,ye._connect()},function(Le){z.clearTimeout(ye._fetchTimer),ye._destroyed||ye.emit("error",Le)})}else{var Pe=ye._xhr=new z.XMLHttpRequest;try{Pe.open(ye._opts.method,ye._opts.url,!0)}catch(Le){ne.nextTick(function(){ye.emit("error",Le)});return}"responseType"in Pe&&(Pe.responseType=ye._mode.split(":")[0]),"withCredentials"in Pe&&(Pe.withCredentials=!!_e.withCredentials),ye._mode==="text"&&"overrideMimeType"in Pe&&Pe.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in _e&&(Pe.timeout=_e.requestTimeout,Pe.ontimeout=function(){ye.emit("requestTimeout")}),Ne.forEach(function(Le){Pe.setRequestHeader(Le[0],Le[1])}),ye._response=null,Pe.onreadystatechange=function(){switch(Pe.readyState){case fe.LOADING:case fe.DONE:ye._onXHRProgress();break}},ye._mode==="moz-chunked-arraybuffer"&&(Pe.onprogress=function(){ye._onXHRProgress()}),Pe.onerror=function(){ye._destroyed||ye.emit("error",new Error("XHR error"))};try{Pe.send(we)}catch(Le){ne.nextTick(function(){ye.emit("error",Le)});return}}}};function Se(ye){try{var _e=ye.status;return _e!==null&&_e!==0}catch(Me){return!1}}oe.prototype._onXHRProgress=function(){var ye=this;!Se(ye._xhr)||ye._destroyed||(ye._response||ye._connect(),ye._response._onXHRProgress())},oe.prototype._connect=function(){var ye=this;ye._destroyed||(ye._response=new ue(ye._xhr,ye._fetchResponse,ye._mode,ye._fetchTimer),ye._response.on("error",function(_e){ye.emit("error",_e)}),ye.emit("response",ye._response))},oe.prototype._write=function(ye,_e,Me){var we=this;we._body.push(ye),Me()},oe.prototype.abort=oe.prototype.destroy=function(){var ye=this;ye._destroyed=!0,z.clearTimeout(ye._fetchTimer),ye._response&&(ye._response._destroyed=!0),ye._xhr?ye._xhr.abort():ye._fetchAbortController&&ye._fetchAbortController.abort()},oe.prototype.end=function(ye,_e,Me){var we=this;typeof ye=="function"&&(Me=ye,ye=void 0),ie.Writable.prototype.end.call(we,ye,_e,Me)},oe.prototype.flushHeaders=function(){},oe.prototype.setTimeout=function(){},oe.prototype.setNoDelay=function(){},oe.prototype.setSocketKeepAlive=function(){};var Ce=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,x("_process"),typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(x,ke,pe){(function(ne,z,ae){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.string.match.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.typed-array.uint8-array.js"),x("core-js/modules/es.typed-array.copy-within.js"),x("core-js/modules/es.typed-array.every.js"),x("core-js/modules/es.typed-array.fill.js"),x("core-js/modules/es.typed-array.filter.js"),x("core-js/modules/es.typed-array.find.js"),x("core-js/modules/es.typed-array.find-index.js"),x("core-js/modules/es.typed-array.for-each.js"),x("core-js/modules/es.typed-array.includes.js"),x("core-js/modules/es.typed-array.index-of.js"),x("core-js/modules/es.typed-array.iterator.js"),x("core-js/modules/es.typed-array.join.js"),x("core-js/modules/es.typed-array.last-index-of.js"),x("core-js/modules/es.typed-array.map.js"),x("core-js/modules/es.typed-array.reduce.js"),x("core-js/modules/es.typed-array.reduce-right.js"),x("core-js/modules/es.typed-array.reverse.js"),x("core-js/modules/es.typed-array.set.js"),x("core-js/modules/es.typed-array.slice.js"),x("core-js/modules/es.typed-array.some.js"),x("core-js/modules/es.typed-array.sort.js"),x("core-js/modules/es.typed-array.subarray.js"),x("core-js/modules/es.typed-array.to-locale-string.js"),x("core-js/modules/es.typed-array.to-string.js"),x("core-js/modules/es.array.slice.js");var re=x("./capability"),se=x("inherits"),me=x("readable-stream"),ie=pe.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},le=pe.IncomingMessage=function(ue,fe,he,oe){var Se=this;if(me.Readable.call(Se),Se._mode=he,Se.headers={},Se.rawHeaders=[],Se.trailers={},Se.rawTrailers=[],Se.on("end",function(){ne.nextTick(function(){Se.emit("close")})}),he==="fetch"){var Ce=function Ae(){_e.read().then(function(De){if(!Se._destroyed){if(De.done){z.clearTimeout(oe),Se.push(null);return}Se.push(new ae(De.value)),Ae()}}).catch(function(De){z.clearTimeout(oe),Se._destroyed||Se.emit("error",De)})};if(Se._fetchResponse=fe,Se.url=fe.url,Se.statusCode=fe.status,Se.statusMessage=fe.statusText,fe.headers.forEach(function(Ae,De){Se.headers[De.toLowerCase()]=Ae,Se.rawHeaders.push(De,Ae)}),re.writableStream){var ye=new WritableStream({write:function(De){return new Promise(function(Ie,Pe){Se._destroyed?Pe():Se.push(new ae(De))?Ie():Se._resumeFetch=Ie})},close:function(){z.clearTimeout(oe),Se._destroyed||Se.push(null)},abort:function(De){Se._destroyed||Se.emit("error",De)}});try{fe.body.pipeTo(ye).catch(function(Ae){z.clearTimeout(oe),Se._destroyed||Se.emit("error",Ae)});return}catch(Ae){}}var _e=fe.body.getReader();Ce()}else{Se._xhr=ue,Se._pos=0,Se.url=ue.responseURL,Se.statusCode=ue.status,Se.statusMessage=ue.statusText;var Me=ue.getAllResponseHeaders().split(/\r?\n/);if(Me.forEach(function(Ae){var De=Ae.match(/^([^:]+):\s*(.*)/);if(De){var Ie=De[1].toLowerCase();Ie==="set-cookie"?(Se.headers[Ie]===void 0&&(Se.headers[Ie]=[]),Se.headers[Ie].push(De[2])):Se.headers[Ie]!==void 0?Se.headers[Ie]+=", "+De[2]:Se.headers[Ie]=De[2],Se.rawHeaders.push(De[1],De[2])}}),Se._charset="x-user-defined",!re.overrideMimeType){var we=Se.rawHeaders["mime-type"];if(we){var Ne=we.match(/;\s*charset=([^;])(;|$)/);Ne&&(Se._charset=Ne[1].toLowerCase())}Se._charset||(Se._charset="utf-8")}}};se(le,me.Readable),le.prototype._read=function(){var ue=this,fe=ue._resumeFetch;fe&&(ue._resumeFetch=null,fe())},le.prototype._onXHRProgress=function(){var ue=this,fe=ue._xhr,he=null;switch(ue._mode){case"text:vbarray":if(fe.readyState!==ie.DONE)break;try{he=new z.VBArray(fe.responseBody).toArray()}catch(_e){}if(he!==null){ue.push(new ae(he));break}case"text":try{he=fe.responseText}catch(_e){ue._mode="text:vbarray";break}if(he.length>ue._pos){var oe=he.substr(ue._pos);if(ue._charset==="x-user-defined"){for(var Se=new ae(oe.length),Ce=0;Ce<oe.length;Ce++)Se[Ce]=oe.charCodeAt(Ce)&255;ue.push(Se)}else ue.push(oe,ue._charset);ue._pos=he.length}break;case"arraybuffer":if(fe.readyState!==ie.DONE||!fe.response)break;he=fe.response,ue.push(new ae(new Uint8Array(he)));break;case"moz-chunked-arraybuffer":if(he=fe.response,fe.readyState!==ie.LOADING||!he)break;ue.push(new ae(new Uint8Array(he)));break;case"ms-stream":if(he=fe.response,fe.readyState!==ie.LOADING)break;var ye=new z.MSStreamReader;ye.onprogress=function(){ye.result.byteLength>ue._pos&&(ue.push(new ae(new Uint8Array(ye.result.slice(ue._pos)))),ue._pos=ye.result.byteLength)},ye.onload=function(){ue.push(null)},ye.readAsArrayBuffer(he);break}ue._xhr.readyState===ie.DONE&&ue._mode!=="ms-stream"&&ue.push(null)}}).call(this)}).call(this,x("_process"),typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/helpers/typeof"));x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.search.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.string.match.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.splice.js");var ae=x("punycode"),re=x("./util");pe.parse=De,pe.resolve=Pe,pe.resolveObject=Le,pe.format=Ie,pe.Url=se;function se(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var me=/^([a-z0-9.+-]+:)/i,ie=/:[0-9]*$/,le=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ue=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],fe=["{","}","|","\\","^","`"].concat(ue),he=["'"].concat(fe),oe=["%","/","?",";","#"].concat(he),Se=["/","?","#"],Ce=255,ye=/^[+a-z0-9A-Z_-]{0,63}$/,_e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Me={javascript:!0,"javascript:":!0},we={javascript:!0,"javascript:":!0},Ne={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ae=x("querystring");function De(We,Be,He){if(We&&re.isObject(We)&&We instanceof se)return We;var Ye=new se;return Ye.parse(We,Be,He),Ye}se.prototype.parse=function(We,Be,He){if(!re.isString(We))throw new TypeError("Parameter 'url' must be a string, not "+(0,z.default)(We));var Ye=We.indexOf("?"),et=Ye!==-1&&Ye<We.indexOf("#")?"?":"#",st=We.split(et),yt=/\\/g;st[0]=st[0].replace(yt,"/"),We=st.join(et);var Ve=We;if(Ve=Ve.trim(),!He&&We.split("#").length===1){var Qe=le.exec(Ve);if(Qe)return this.path=Ve,this.href=Ve,this.pathname=Qe[1],Qe[2]?(this.search=Qe[2],Be?this.query=Ae.parse(this.search.substr(1)):this.query=this.search.substr(1)):Be&&(this.search="",this.query={}),this}var pt=me.exec(Ve);if(pt){pt=pt[0];var mt=pt.toLowerCase();this.protocol=mt,Ve=Ve.substr(pt.length)}if(He||pt||Ve.match(/^\/\/[^@\/]+@[^@\/]+/)){var ft=Ve.substr(0,2)==="//";ft&&!(pt&&we[pt])&&(Ve=Ve.substr(2),this.slashes=!0)}if(!we[pt]&&(ft||pt&&!Ne[pt])){for(var nt=-1,tt=0;tt<Se.length;tt++){var rt=Ve.indexOf(Se[tt]);rt!==-1&&(nt===-1||rt<nt)&&(nt=rt)}var Et,bt;nt===-1?bt=Ve.lastIndexOf("@"):bt=Ve.lastIndexOf("@",nt),bt!==-1&&(Et=Ve.slice(0,bt),Ve=Ve.slice(bt+1),this.auth=decodeURIComponent(Et)),nt=-1;for(var tt=0;tt<oe.length;tt++){var rt=Ve.indexOf(oe[tt]);rt!==-1&&(nt===-1||rt<nt)&&(nt=rt)}nt===-1&&(nt=Ve.length),this.host=Ve.slice(0,nt),Ve=Ve.slice(nt),this.parseHost(),this.hostname=this.hostname||"";var Pt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Pt)for(var Lt=this.hostname.split("."),tt=0,dt=Lt.length;tt<dt;tt++){var Ze=Lt[tt];if(Ze&&!Ze.match(ye)){for(var Ke="",de=0,xe=Ze.length;de<xe;de++)Ze.charCodeAt(de)>127?Ke+="x":Ke+=Ze[de];if(!Ke.match(ye)){var ze=Lt.slice(0,tt),$e=Lt.slice(tt+1),Ee=Ze.match(_e);Ee&&(ze.push(Ee[1]),$e.unshift(Ee[2])),$e.length&&(Ve="/"+$e.join(".")+Ve),this.hostname=ze.join(".");break}}}this.hostname.length>Ce?this.hostname="":this.hostname=this.hostname.toLowerCase(),Pt||(this.hostname=ae.toASCII(this.hostname));var Re=this.port?":"+this.port:"",Fe=this.hostname||"";this.host=Fe+Re,this.href+=this.host,Pt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ve[0]!=="/"&&(Ve="/"+Ve))}if(!Me[mt])for(var tt=0,dt=he.length;tt<dt;tt++){var Ge=he[tt];if(Ve.indexOf(Ge)!==-1){var it=encodeURIComponent(Ge);it===Ge&&(it=escape(Ge)),Ve=Ve.split(Ge).join(it)}}var gt=Ve.indexOf("#");gt!==-1&&(this.hash=Ve.substr(gt),Ve=Ve.slice(0,gt));var Kt=Ve.indexOf("?");if(Kt!==-1?(this.search=Ve.substr(Kt),this.query=Ve.substr(Kt+1),Be&&(this.query=Ae.parse(this.query)),Ve=Ve.slice(0,Kt)):Be&&(this.search="",this.query={}),Ve&&(this.pathname=Ve),Ne[mt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Re=this.pathname||"",kt=this.search||"";this.path=Re+kt}return this.href=this.format(),this};function Ie(We){return re.isString(We)&&(We=De(We)),We instanceof se?We.format():se.prototype.format.call(We)}se.prototype.format=function(){var We=this.auth||"";We&&(We=encodeURIComponent(We),We=We.replace(/%3A/i,":"),We+="@");var Be=this.protocol||"",He=this.pathname||"",Ye=this.hash||"",et=!1,st="";this.host?et=We+this.host:this.hostname&&(et=We+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(et+=":"+this.port)),this.query&&re.isObject(this.query)&&Object.keys(this.query).length&&(st=Ae.stringify(this.query));var yt=this.search||st&&"?"+st||"";return Be&&Be.substr(-1)!==":"&&(Be+=":"),this.slashes||(!Be||Ne[Be])&&et!==!1?(et="//"+(et||""),He&&He.charAt(0)!=="/"&&(He="/"+He)):et||(et=""),Ye&&Ye.charAt(0)!=="#"&&(Ye="#"+Ye),yt&&yt.charAt(0)!=="?"&&(yt="?"+yt),He=He.replace(/[?#]/g,function(Ve){return encodeURIComponent(Ve)}),yt=yt.replace("#","%23"),Be+et+He+yt+Ye};function Pe(We,Be){return De(We,!1,!0).resolve(Be)}se.prototype.resolve=function(We){return this.resolveObject(De(We,!1,!0)).format()};function Le(We,Be){return We?De(We,!1,!0).resolveObject(Be):Be}se.prototype.resolveObject=function(We){if(re.isString(We)){var Be=new se;Be.parse(We,!1,!0),We=Be}for(var He=new se,Ye=Object.keys(this),et=0;et<Ye.length;et++){var st=Ye[et];He[st]=this[st]}if(He.hash=We.hash,We.href==="")return He.href=He.format(),He;if(We.slashes&&!We.protocol){for(var yt=Object.keys(We),Ve=0;Ve<yt.length;Ve++){var Qe=yt[Ve];Qe!=="protocol"&&(He[Qe]=We[Qe])}return Ne[He.protocol]&&He.hostname&&!He.pathname&&(He.path=He.pathname="/"),He.href=He.format(),He}if(We.protocol&&We.protocol!==He.protocol){if(!Ne[We.protocol]){for(var pt=Object.keys(We),mt=0;mt<pt.length;mt++){var ft=pt[mt];He[ft]=We[ft]}return He.href=He.format(),He}if(He.protocol=We.protocol,!We.host&&!we[We.protocol]){for(var dt=(We.pathname||"").split("/");dt.length&&!(We.host=dt.shift()););We.host||(We.host=""),We.hostname||(We.hostname=""),dt[0]!==""&&dt.unshift(""),dt.length<2&&dt.unshift(""),He.pathname=dt.join("/")}else He.pathname=We.pathname;if(He.search=We.search,He.query=We.query,He.host=We.host||"",He.auth=We.auth,He.hostname=We.hostname||We.host,He.port=We.port,He.pathname||He.search){var nt=He.pathname||"",tt=He.search||"";He.path=nt+tt}return He.slashes=He.slashes||We.slashes,He.href=He.format(),He}var rt=He.pathname&&He.pathname.charAt(0)==="/",Et=We.host||We.pathname&&We.pathname.charAt(0)==="/",bt=Et||rt||He.host&&We.pathname,Pt=bt,Lt=He.pathname&&He.pathname.split("/")||[],dt=We.pathname&&We.pathname.split("/")||[],Ze=He.protocol&&!Ne[He.protocol];if(Ze&&(He.hostname="",He.port=null,He.host&&(Lt[0]===""?Lt[0]=He.host:Lt.unshift(He.host)),He.host="",We.protocol&&(We.hostname=null,We.port=null,We.host&&(dt[0]===""?dt[0]=We.host:dt.unshift(We.host)),We.host=null),bt=bt&&(dt[0]===""||Lt[0]==="")),Et)He.host=We.host||We.host===""?We.host:He.host,He.hostname=We.hostname||We.hostname===""?We.hostname:He.hostname,He.search=We.search,He.query=We.query,Lt=dt;else if(dt.length)Lt||(Lt=[]),Lt.pop(),Lt=Lt.concat(dt),He.search=We.search,He.query=We.query;else if(!re.isNullOrUndefined(We.search)){if(Ze){He.hostname=He.host=Lt.shift();var Ke=He.host&&He.host.indexOf("@")>0?He.host.split("@"):!1;Ke&&(He.auth=Ke.shift(),He.host=He.hostname=Ke.shift())}return He.search=We.search,He.query=We.query,(!re.isNull(He.pathname)||!re.isNull(He.search))&&(He.path=(He.pathname?He.pathname:"")+(He.search?He.search:"")),He.href=He.format(),He}if(!Lt.length)return He.pathname=null,He.search?He.path="/"+He.search:He.path=null,He.href=He.format(),He;for(var de=Lt.slice(-1)[0],xe=(He.host||We.host||Lt.length>1)&&(de==="."||de==="..")||de==="",ze=0,$e=Lt.length;$e>=0;$e--)de=Lt[$e],de==="."?Lt.splice($e,1):de===".."?(Lt.splice($e,1),ze++):ze&&(Lt.splice($e,1),ze--);if(!bt&&!Pt)for(;ze--;ze)Lt.unshift("..");bt&&Lt[0]!==""&&(!Lt[0]||Lt[0].charAt(0)!=="/")&&Lt.unshift(""),xe&&Lt.join("/").substr(-1)!=="/"&&Lt.push("");var Ee=Lt[0]===""||Lt[0]&&Lt[0].charAt(0)==="/";if(Ze){He.hostname=He.host=Ee?"":Lt.length?Lt.shift():"";var Ke=He.host&&He.host.indexOf("@")>0?He.host.split("@"):!1;Ke&&(He.auth=Ke.shift(),He.host=He.hostname=Ke.shift())}return bt=bt||He.host&&Lt.length,bt&&!Ee&&Lt.unshift(""),Lt.length?He.pathname=Lt.join("/"):(He.pathname=null,He.path=null),(!re.isNull(He.pathname)||!re.isNull(He.search))&&(He.path=(He.pathname?He.pathname:"")+(He.search?He.search:"")),He.auth=We.auth||He.auth,He.slashes=He.slashes||We.slashes,He.href=He.format(),He},se.prototype.parseHost=function(){var We=this.host,Be=ie.exec(We);Be&&(Be=Be[0],Be!==":"&&(this.port=Be.substr(1)),We=We.substr(0,We.length-Be.length)),We&&(this.hostname=We)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(x,ke,pe){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),z=ne(x("@babel/runtime/helpers/typeof"));ke.exports={isString:function(re){return typeof re=="string"},isObject:function(re){return(0,z.default)(re)==="object"&&re!==null},isNull:function(re){return re===null},isNullOrUndefined:function(re){return re==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(x,ke,pe){"use strict";x("core-js/modules/es.number.constructor.js"),pe.encodeURIComponent=function(ne){try{return encodeURIComponent(ne)}catch(z){return ne}},pe.escape=x("escape-html"),pe.timestamp=function(z){if(z){var ae=z;return typeof ae=="string"&&(ae=Number(ae)),String(z).length===10&&(ae*=1e3),new Date(ae)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(x,ke,pe){(function(ne,z){(function(){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),re=ae(x("@babel/runtime/helpers/typeof"));x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.array.concat.js");var se=x("util"),me=x("url"),ie=x("http"),le=x("https"),ue=x("debug")("urllib"),fe=x("humanize-ms"),he=0,oe=Math.pow(2,31)-10,Se=/^https?:\/\//i;function Ce(we,Ne){return we===void 0?Ne:we}function ye(we){return we?we.split(";")[0].trim().toLowerCase():""}function _e(we,Ne){return function(Ae,De,Ie){if(Ae)return Ne(Ae);we({data:De,status:Ie.statusCode,headers:Ie.headers,res:Ie})}}pe.TIMEOUTS=[fe("300s"),fe("300s")];var Me=["json","text"];pe.request=function(Ne,Ae,De){return arguments.length===2&&typeof Ae=="function"&&(De=Ae,Ae=null),typeof De=="function"?pe.requestWithCallback(Ne,Ae,De):new Promise(function(Ie,Pe){pe.requestWithCallback(Ne,Ae,_e(Ie,Pe))})},pe.requestWithCallback=function(Ne,Ae,De){if(!Ne||typeof Ne!="string"&&(0,re.default)(Ne)!=="object"){var Ie=se.format("expect request url to be a string or a http request options, but got %j",Ne);throw new Error(Ie)}arguments.length===2&&typeof Ae=="function"&&(De=Ae,Ae=null),Ae=Ae||{},he>=oe&&(he=0);var Pe=++he;Ae.requestUrls=Ae.requestUrls||[];var Le={requestId:Pe,url:Ne,args:Ae,ctx:Ae.ctx};Ae.emitter&&Ae.emitter.emit("request",Le),Ae.timeout=Ae.timeout||pe.TIMEOUTS,Ae.maxRedirects=Ae.maxRedirects||10,Ae.streaming=Ae.streaming||Ae.customResponse;var We=Date.now(),Be;typeof Ne=="string"?(Se.test(Ne)||(Ne="https://"+Ne),Be=me.parse(Ne)):Be=Ne;var He=(Ae.type||Ae.method||Be.method||"GET").toUpperCase(),Ye=Be.port||80,et=ie,st=Ce(Ae.agent,pe.agent),yt=Ae.fixJSONCtlChars;Be.protocol==="https:"&&(et=le,st=Ce(Ae.httpsAgent,pe.httpsAgent),Be.port||(Ye=443));var Ve={host:Be.hostname||Be.host||"localhost",path:Be.path||"/",method:He,port:Ye,agent:st,headers:Ae.headers||{},lookup:Ae.lookup};Array.isArray(Ae.timeout)?Ve.requestTimeout=Ae.timeout[Ae.timeout.length-1]:typeof Ae.timeout!="undefined"&&(Ve.requestTimeout=Ae.timeout);var Qe=Ae.auth||Be.auth;Qe&&(Ve.auth=Qe);var pt=Ae.content||Ae.data,mt=He==="GET"||He==="HEAD"||Ae.dataAsQueryString;if(!Ae.content&&pt&&!(typeof pt=="string"||z.isBuffer(pt)))if(mt)pt=Ae.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt);else{var ft=Ve.headers["Content-Type"]||Ve.headers["content-type"];ft||(Ae.contentType==="json"?ft="application/json":ft="application/x-www-form-urlencoded",Ve.headers["Content-Type"]=ft),ye(ft)==="application/json"?pt=JSON.stringify(pt):pt=Ae.nestedQuerystring?qs.stringify(pt):querystring.stringify(pt)}mt&&pt&&(Ve.path+=(Be.query?"&":"?")+pt,pt=null);var nt=0;if(pt){var tt=pt.length;z.isBuffer(pt)||(tt=z.byteLength(pt)),nt=Ve.headers["Content-Length"]=tt}Ae.dataType==="json"&&(Ve.headers.Accept="application/json"),typeof Ae.beforeRequest=="function"&&Ae.beforeRequest(Ve);var rt=null,Et=null,bt=null,Pt=!1,Lt=!1,dt=0,Ze=-1,Ke=!1,de="",xe="",ze=null;Ae.timing&&(ze={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function $e(){rt&&(clearTimeout(rt),rt=null)}function Ee(){Et&&(clearTimeout(Et),Et=null)}function Re(_t,sn,Dt){if(Ee(),!De){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Pe,ne.pid,Ve.method,Ne),_t&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Pe,ne.pid,_t.name,_t.message,_t.stack);return}var xt=De;De=null;var en={};Dt&&(Ze=Dt.statusCode,en=Dt.headers);var an=Date.now()-We;ze&&(ze.contentDownload=an),ue("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",an,dt,Ze,Ve.method,Ve.host,Ve.path,Lt,ze);var fn={status:Ze,statusCode:Ze,headers:en,size:dt,aborted:Ke,rt:an,keepAliveSocket:Lt,data:sn,requestUrls:Ae.requestUrls,timing:ze,remoteAddress:de,remotePort:xe};if(_t){var Tn="";st&&typeof st.getCurrentStatus=="function"&&(Tn=", agent status: "+JSON.stringify(st.getCurrentStatus())),_t.message+=", "+Ve.method+" "+Ne+" "+Ze+" (connected: "+Pt+", keepalive socket: "+Lt+Tn+`)
|
|
|
headers: `+JSON.stringify(en),_t.data=sn,_t.path=Ve.path,_t.status=Ze,_t.headers=en,_t.res=fn}xt(_t,sn,Ae.streaming?Dt:fn),Ae.emitter&&(Le.url=Ne,Le.socket=jt&&jt.connection,Le.options=Ve,Le.size=nt,Ae.emitter.emit("response",{requestId:Pe,error:_t,ctx:Ae.ctx,req:Le,res:fn}))}function Fe(_t){var sn=null;if(Ae.followRedirect&&statuses.redirect[_t.statusCode]){Ae._followRedirectCount=(Ae._followRedirectCount||0)+1;var Dt=_t.headers.location;if(!Dt)sn=new Error("Got statusCode "+_t.statusCode+" but cannot resolve next location from headers"),sn.name="FollowRedirectError";else if(Ae._followRedirectCount>Ae.maxRedirects)sn=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ne),sn.name="MaxRedirectError";else{var xt=Ae.formatRedirectUrl?Ae.formatRedirectUrl(Ne,Dt):me.resolve(Ne,Dt);ue("Request#%d %s: `redirected` from %s to %s",Pe,Ve.path,Ne,xt),Ee(),Ae.headers&&Ae.headers.Host&&Se.test(Dt)&&(Ae.headers.Host=null);var en=De;return De=null,pe.requestWithCallback(xt,Ae,en),{redirect:!0,error:null}}}return{redirect:!1,error:sn}}Ae.gzip&&!Ve.headers["Accept-Encoding"]&&!Ve.headers["accept-encoding"]&&(Ve.headers["Accept-Encoding"]="gzip");function Ge(_t,sn,Dt){var xt=_t.headers["content-encoding"];return Dt(null,sn,xt)}var it=Ae.writeStream;ue("Request#%d %s %s with headers %j, options.path: %s",Pe,He,Ne,Ve.headers,Ve.path),Ae.requestUrls.push(Ne);function gt(_t){if(ze&&(ze.waiting=Date.now()-We),ue("Request#%d %s `req response` event emit: status %d, headers: %j",Pe,Ne,_t.statusCode,_t.headers),Ae.streaming){var sn=Fe(_t);if(sn.redirect){_t.resume();return}return sn.error?(_t.resume(),Re(sn.error,null,_t)):Re(null,null,_t)}if(_t.on("close",function(){ue("Request#%d %s: `res close` event emit, total size %d",Pe,Ne,dt)}),_t.on("error",function(){ue("Request#%d %s: `res error` event emit, total size %d",Pe,Ne,dt)}),_t.on("aborted",function(){Ke=!0,ue("Request#%d %s: `res aborted` event emit, total size %d",Pe,Ne,dt)}),it){var Dt=Fe(_t);if(Dt.redirect){_t.resume();return}return Dt.error?(_t.resume(),it.end(),Re(Dt.error,null,_t)):(Ae.consumeWriteStream===!1?_t.on("end",Re.bind(null,null,null,_t)):it.on("close",function(){ue("Request#%d %s: writeStream close event emitted",Pe,Ne),Re(bt||null,null,_t)}),_t.pipe(it))}var xt=[];_t.on("data",function(en){ue("Request#%d %s: `res data` event emit, size %d",Pe,Ne,en.length),dt+=en.length,xt.push(en)}),_t.on("end",function(){var en=z.concat(xt,dt);if(ue("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Pe,Ne,dt,_t._dumped),bt)return Re(bt,en,_t);var an=Fe(_t);if(an.error)return Re(an.error,en,_t);an.redirect||Ge(_t,en,function(fn,Tn,ar){if(fn)return Re(fn,en,_t);if(!ar&&Me.indexOf(Ae.dataType)>=0){try{Tn=decodeBodyByCharset(Tn,_t)}catch(Ar){return ue("decodeBodyByCharset error: %s",Ar),Re(null,Tn,_t)}if(Ae.dataType==="json")if(dt===0)Tn=null;else{var pr=parseJSON(Tn,yt);pr.error?fn=pr.error:Tn=pr.data}}Ke&&ue("Request#%d %s: Remote socket was terminated before `response.end()` was called",Pe,Ne),Re(fn,Tn,_t)})})}var Kt,kt;Array.isArray(Ae.timeout)?(Kt=fe(Ae.timeout[0]),kt=fe(Ae.timeout[1])):Kt=kt=fe(Ae.timeout),ue("ConnectTimeout: %d, ResponseTimeout: %d",Kt,kt);function St(){ue("Connect timer ticking, timeout: %d",Kt),rt=setTimeout(function(){rt=null,Ze===-1&&(Ze=-2);var _t="Connect timeout for "+Kt+"ms",sn="ConnectionTimeoutError";jt.socket||(sn="SocketAssignTimeoutError",_t+=", working sockets is full"),bt=new Error(_t),bt.name=sn,bt.requestId=Pe,ue("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Pe,Ne,bt.name,_t,Pt),Vt()},Kt)}function Wt(){ue("Response timer ticking, timeout: %d",kt),Et=setTimeout(function(){Et=null;var _t="Response timeout for "+kt+"ms",sn="ResponseTimeoutError";bt=new Error(_t),bt.name=sn,bt.requestId=Pe,ue("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Pe,Ne,bt.name,_t,Pt),Vt()},kt)}var jt;Ve.mode=Ae.mode?Ae.mode:"";try{jt=et.request(Ve,gt)}catch(_t){return Re(_t)}typeof window=="undefined"?St():jt.on("requestTimeout",function(){Ze===-1&&(Ze=-2);var _t="Connect timeout for "+Kt+"ms",sn="ConnectionTimeoutError";bt=new Error(_t),bt.name=sn,bt.requestId=Pe,Vt()});function Vt(){ue("Request#%d %s abort, connected: %s",Pe,Ne,Pt),jt.socket||(bt.noSocket=!0,Re(bt)),jt.abort()}return ze&&jt.on("finish",function(){ze.requestSent=Date.now()-We}),jt.once("socket",function(_t){ze&&(ze.queuing=Date.now()-We);var sn=_t.readyState;if(sn==="opening"){_t.once("lookup",function(Dt,xt,en){ue("Request#%d %s lookup: %s, %s, %s",Pe,Ne,Dt,xt,en),ze&&(ze.dnslookup=Date.now()-We),xt&&(de=xt)}),_t.once("connect",function(){ze&&(ze.connected=Date.now()-We),$e(),Wt(),ue("Request#%d %s new socket connected",Pe,Ne),Pt=!0,de||(de=_t.remoteAddress),xe=_t.remotePort});return}ue("Request#%d %s reuse socket connected, readyState: %s",Pe,Ne,sn),Pt=!0,Lt=!0,de||(de=_t.remoteAddress),xe=_t.remotePort,$e(),Wt()}),jt.on("error",function(_t){(_t.name==="Error"||_t.name==="TypeError")&&(_t.name=Pt?"ResponseError":"RequestError"),_t.message+=' (req "error")',ue("Request#%d %s `req error` event emit, %s: %s",Pe,Ne,_t.name,_t.message),Re(bt||_t)}),it&&it.once("error",function(_t){_t.message+=' (writeStream "error")',bt=_t,ue("Request#%d %s `writeStream error` event emit, %s: %s",Pe,Ne,_t.name,_t.message),Vt()}),Ae.stream?(Ae.stream.pipe(jt),Ae.stream.once("error",function(_t){_t.message+=' (stream "error")',bt=_t,ue("Request#%d %s `readStream error` event emit, %s: %s",Pe,Ne,_t.name,_t.message),Vt()})):jt.end(pt),jt.requestId=Pe,jt}}).call(this)}).call(this,x("_process"),x("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},38780:function(xn,Zt){"use strict";function ve(){const Ue=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ot=1;ot<arguments.length;ot++){const x=ot<0||arguments.length<=ot?void 0:arguments[ot];x&&Object.keys(x).forEach(ke=>{const pe=x[ke];pe!==void 0&&(Ue[ke]=pe)})}return Ue}Zt.Z=ve},81643:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Ue}});const Ue=ot=>ot?typeof ot=="function"?ot():ot:null},66367:function(xn,Zt,ve){"use strict";ve.d(Zt,{F:function(){return Ue},Z:function(){return ot}});function Ue(x){return x!=null&&x===x.window}function ot(x,ke){var pe,ne;if(typeof window=="undefined")return 0;const z=ke?"scrollTop":"scrollLeft";let ae=0;return Ue(x)?ae=x[ke?"pageYOffset":"pageXOffset"]:x instanceof Document?ae=x.documentElement[z]:(x instanceof HTMLElement||x)&&(ae=x[z]),x&&!Ue(x)&&typeof ae!="number"&&(ae=(ne=((pe=x.ownerDocument)!==null&&pe!==void 0?pe:x).documentElement)===null||ne===void 0?void 0:ne[z]),ae}},57838:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ot}});var Ue=ve(67294);function ot(){const[,x]=Ue.useReducer(ke=>ke+1,0);return x}},58375:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ke}});var Ue=ve(96523);function ot(pe,ne,z,ae){const re=z-ne;return pe/=ae/2,pe<1?re/2*pe*pe*pe+ne:re/2*((pe-=2)*pe*pe+2)+ne}var x=ve(66367);function ke(pe){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:z=()=>window,callback:ae,duration:re=450}=ne,se=z(),me=(0,x.Z)(se,!0),ie=Date.now(),le=()=>{const fe=Date.now()-ie,he=ot(fe>re?re:fe,me,pe,re);(0,x.F)(se)?se.scrollTo(window.pageXOffset,he):se instanceof Document||se.constructor.name==="HTMLDocument"?se.documentElement.scrollTop=he:se.scrollTop=he,fe<re?(0,Ue.Z)(le):typeof ae=="function"&&ae()};(0,Ue.Z)(le)}},9708:function(xn,Zt,ve){"use strict";ve.d(Zt,{F:function(){return pe},Z:function(){return ke}});var Ue=ve(94184),ot=ve.n(Ue);const x=null;function ke(ne,z,ae){return ot()({[`${ne}-status-success`]:z==="success",[`${ne}-status-warning`]:z==="warning",[`${ne}-status-error`]:z==="error",[`${ne}-status-validating`]:z==="validating",[`${ne}-has-feedback`]:ae})}const pe=(ne,z)=>z||ne},84567:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return Ne}});var Ue=ve(94184),ot=ve.n(Ue),x=ve(95860),ke=ve(67294),pe=ve(53124),ne=ve(98866),z=ve(65223),re=ke.createContext(null),se=ve(63185),me=ve(45353),ie=ve(92429),le=function(Ae,De){var Ie={};for(var Pe in Ae)Object.prototype.hasOwnProperty.call(Ae,Pe)&&De.indexOf(Pe)<0&&(Ie[Pe]=Ae[Pe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Pe=Object.getOwnPropertySymbols(Ae);Le<Pe.length;Le++)De.indexOf(Pe[Le])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Pe[Le])&&(Ie[Pe[Le]]=Ae[Pe[Le]]);return Ie};const ue=(Ae,De)=>{var Ie;const{prefixCls:Pe,className:Le,rootClassName:We,children:Be,indeterminate:He=!1,style:Ye,onMouseEnter:et,onMouseLeave:st,skipGroup:yt=!1,disabled:Ve}=Ae,Qe=le(Ae,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pt,direction:mt,checkbox:ft}=ke.useContext(pe.E_),nt=ke.useContext(re),{isFormItemInput:tt}=ke.useContext(z.aM),rt=ke.useContext(ne.Z),Et=(Ie=(nt==null?void 0:nt.disabled)||Ve)!==null&&Ie!==void 0?Ie:rt,bt=ke.useRef(Qe.value);ke.useEffect(()=>{nt==null||nt.registerValue(Qe.value)},[]),ke.useEffect(()=>{if(!yt)return Qe.value!==bt.current&&(nt==null||nt.cancelValue(bt.current),nt==null||nt.registerValue(Qe.value),bt.current=Qe.value),()=>nt==null?void 0:nt.cancelValue(Qe.value)},[Qe.value]);const Pt=pt("checkbox",Pe),[Lt,dt]=(0,se.ZP)(Pt),Ze=Object.assign({},Qe);nt&&!yt&&(Ze.onChange=function(){Qe.onChange&&Qe.onChange.apply(Qe,arguments),nt.toggleOption&&nt.toggleOption({label:Be,value:Qe.value})},Ze.name=nt.name,Ze.checked=nt.value.includes(Qe.value));const Ke=ot()(`${Pt}-wrapper`,{[`${Pt}-rtl`]:mt==="rtl",[`${Pt}-wrapper-checked`]:Ze.checked,[`${Pt}-wrapper-disabled`]:Et,[`${Pt}-wrapper-in-form-item`]:tt},ft==null?void 0:ft.className,Le,We,dt),de=ot()({[`${Pt}-indeterminate`]:He},ie.A,dt),xe=He?"mixed":void 0;return Lt(ke.createElement(me.Z,{component:"Checkbox",disabled:Et},ke.createElement("label",{className:Ke,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),Ye),onMouseEnter:et,onMouseLeave:st},ke.createElement(x.Z,Object.assign({"aria-checked":xe},Ze,{prefixCls:Pt,className:de,disabled:Et,ref:De})),Be!==void 0&&ke.createElement("span",null,Be))))};var he=ke.forwardRef(ue),oe=ve(74902),Se=ve(10366),Ce=function(Ae,De){var Ie={};for(var Pe in Ae)Object.prototype.hasOwnProperty.call(Ae,Pe)&&De.indexOf(Pe)<0&&(Ie[Pe]=Ae[Pe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Pe=Object.getOwnPropertySymbols(Ae);Le<Pe.length;Le++)De.indexOf(Pe[Le])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Pe[Le])&&(Ie[Pe[Le]]=Ae[Pe[Le]]);return Ie};const ye=(Ae,De)=>{const{defaultValue:Ie,children:Pe,options:Le=[],prefixCls:We,className:Be,rootClassName:He,style:Ye,onChange:et}=Ae,st=Ce(Ae,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:yt,direction:Ve}=ke.useContext(pe.E_),[Qe,pt]=ke.useState(st.value||Ie||[]),[mt,ft]=ke.useState([]);ke.useEffect(()=>{"value"in st&&pt(st.value||[])},[st.value]);const nt=ke.useMemo(()=>Le.map(ze=>typeof ze=="string"||typeof ze=="number"?{label:ze,value:ze}:ze),[Le]),tt=ze=>{ft($e=>$e.filter(Ee=>Ee!==ze))},rt=ze=>{ft($e=>[].concat((0,oe.Z)($e),[ze]))},Et=ze=>{const $e=Qe.indexOf(ze.value),Ee=(0,oe.Z)(Qe);$e===-1?Ee.push(ze.value):Ee.splice($e,1),"value"in st||pt(Ee),et==null||et(Ee.filter(Re=>mt.includes(Re)).sort((Re,Fe)=>{const Ge=nt.findIndex(gt=>gt.value===Re),it=nt.findIndex(gt=>gt.value===Fe);return Ge-it}))},bt=yt("checkbox",We),Pt=`${bt}-group`,[Lt,dt]=(0,se.ZP)(bt),Ze=(0,Se.Z)(st,["value","disabled"]),Ke=Le.length?nt.map(ze=>ke.createElement(he,{prefixCls:bt,key:ze.value.toString(),disabled:"disabled"in ze?ze.disabled:st.disabled,value:ze.value,checked:Qe.includes(ze.value),onChange:ze.onChange,className:`${Pt}-item`,style:ze.style,title:ze.title},ze.label)):Pe,de={toggleOption:Et,value:Qe,disabled:st.disabled,name:st.name,registerValue:rt,cancelValue:tt},xe=ot()(Pt,{[`${Pt}-rtl`]:Ve==="rtl"},Be,He,dt);return Lt(ke.createElement("div",Object.assign({className:xe,style:Ye},Ze,{ref:De}),ke.createElement(re.Provider,{value:de},Ke)))},_e=ke.forwardRef(ye);var Me=ke.memo(_e);const we=he;we.Group=Me,we.__ANT_CHECKBOX=!0;var Ne=we},63185:function(xn,Zt,ve){"use strict";ve.d(Zt,{C2:function(){return pe}});var Ue=ve(14747),ot=ve(45503),x=ve(67968);const ke=ne=>{const{checkboxCls:z}=ne,ae=`${z}-wrapper`;return[{[`${z}-group`]:Object.assign(Object.assign({},(0,Ue.Wf)(ne)),{display:"inline-flex",flexWrap:"wrap",columnGap:ne.marginXS,[`> ${ne.antCls}-row`]:{flex:1}}),[ae]:Object.assign(Object.assign({},(0,Ue.Wf)(ne)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ae}`]:{marginInlineStart:0},[`&${ae}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[z]:Object.assign(Object.assign({},(0,Ue.Wf)(ne)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ne.borderRadiusSM,alignSelf:"center",[`${z}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${z}-inner`]:Object.assign({},(0,Ue.oN)(ne))},[`${z}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ne.checkboxSize,height:ne.checkboxSize,direction:"ltr",backgroundColor:ne.colorBgContainer,border:`${ne.lineWidth}px ${ne.lineType} ${ne.colorBorder}`,borderRadius:ne.borderRadiusSM,borderCollapse:"separate",transition:`all ${ne.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ne.checkboxSize/14*5,height:ne.checkboxSize/14*8,border:`${ne.lineWidthBold}px solid ${ne.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ne.motionDurationFast} ${ne.motionEaseInBack}, opacity ${ne.motionDurationFast}`}},"& + span":{paddingInlineStart:ne.paddingXS,paddingInlineEnd:ne.paddingXS}})},{[`
|
|
|
${ae}:not(${ae}-disabled),
|
|
|
${z}:not(${z}-disabled)
|
|
|
`]:{[`&:hover ${z}-inner`]:{borderColor:ne.colorPrimary}},[`${ae}:not(${ae}-disabled)`]:{[`&:hover ${z}-checked:not(${z}-disabled) ${z}-inner`]:{backgroundColor:ne.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${z}-checked:not(${z}-disabled):after`]:{borderColor:ne.colorPrimaryHover}}},{[`${z}-checked`]:{[`${z}-inner`]:{backgroundColor:ne.colorPrimary,borderColor:ne.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ne.motionDurationMid} ${ne.motionEaseOutBack} ${ne.motionDurationFast}`}}},[`
|
|
|
${ae}-checked:not(${ae}-disabled),
|
|
|
${z}-checked:not(${z}-disabled)
|
|
|
`]:{[`&:hover ${z}-inner`]:{backgroundColor:ne.colorPrimaryHover,borderColor:"transparent"}}},{[z]:{"&-indeterminate":{[`${z}-inner`]:{backgroundColor:ne.colorBgContainer,borderColor:ne.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ne.fontSizeLG/2,height:ne.fontSizeLG/2,backgroundColor:ne.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ae}-disabled`]:{cursor:"not-allowed"},[`${z}-disabled`]:{[`&, ${z}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${z}-inner`]:{background:ne.colorBgContainerDisabled,borderColor:ne.colorBorder,"&:after":{borderColor:ne.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ne.colorTextDisabled},[`&${z}-indeterminate ${z}-inner::after`]:{background:ne.colorTextDisabled}}}]};function pe(ne,z){const ae=(0,ot.TS)(z,{checkboxCls:`.${ne}`,checkboxSize:z.controlInteractiveSize});return[ke(ae)]}Zt.ZP=(0,x.Z)("Checkbox",(ne,z)=>{let{prefixCls:ae}=z;return[pe(ae,ne)]})},47221:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return Ze}});var Ue=ve(91034),ot=ve(94184),x=ve.n(ot),ke=ve(97685),pe=ve(74902),ne=ve(71002),z=ve(21770),ae=ve(80334),re=ve(67294),se=ve(87462),me=ve(45987),ie=ve(50344),le=ve(4942),ue=ve(62874),fe=ve(15105),he=re.forwardRef(function(Ke,de){var xe,ze=Ke.prefixCls,$e=Ke.forceRender,Ee=Ke.className,Re=Ke.style,Fe=Ke.children,Ge=Ke.isActive,it=Ke.role,gt=re.useState(Ge||$e),Kt=(0,ke.Z)(gt,2),kt=Kt[0],St=Kt[1];return re.useEffect(function(){($e||Ge)&&St(!0)},[$e,Ge]),kt?re.createElement("div",{ref:de,className:x()("".concat(ze,"-content"),(xe={},(0,le.Z)(xe,"".concat(ze,"-content-active"),Ge),(0,le.Z)(xe,"".concat(ze,"-content-inactive"),!Ge),xe),Ee),style:Re,role:it},re.createElement("div",{className:"".concat(ze,"-content-box")},Fe)):null});he.displayName="PanelContent";var oe=he,Se=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Ce=re.forwardRef(function(Ke,de){var xe,ze,$e=Ke.showArrow,Ee=$e===void 0?!0:$e,Re=Ke.headerClass,Fe=Ke.isActive,Ge=Ke.onItemClick,it=Ke.forceRender,gt=Ke.className,Kt=Ke.prefixCls,kt=Ke.collapsible,St=Ke.accordion,Wt=Ke.panelKey,jt=Ke.extra,Vt=Ke.header,_t=Ke.expandIcon,sn=Ke.openMotion,Dt=Ke.destroyInactivePanel,xt=Ke.children,en=(0,me.Z)(Ke,Se),an=kt==="disabled",fn=kt==="header",Tn=kt==="icon",ar=jt!=null&&typeof jt!="boolean",pr=function(){Ge==null||Ge(Wt)},Ar=function(Ni){(Ni.key==="Enter"||Ni.keyCode===fe.Z.ENTER||Ni.which===fe.Z.ENTER)&&pr()},Dr=typeof _t=="function"?_t(Ke):re.createElement("i",{className:"arrow"});Dr&&(Dr=re.createElement("div",{className:"".concat(Kt,"-expand-icon"),onClick:["header","icon"].includes(kt)?pr:void 0},Dr));var dr=x()((xe={},(0,le.Z)(xe,"".concat(Kt,"-item"),!0),(0,le.Z)(xe,"".concat(Kt,"-item-active"),Fe),(0,le.Z)(xe,"".concat(Kt,"-item-disabled"),an),xe),gt),zr=x()(Re,(ze={},(0,le.Z)(ze,"".concat(Kt,"-header"),!0),(0,le.Z)(ze,"".concat(Kt,"-header-collapsible-only"),fn),(0,le.Z)(ze,"".concat(Kt,"-icon-collapsible-only"),Tn),ze)),ai={className:zr,"aria-expanded":Fe,"aria-disabled":an,onKeyDown:Ar};return!fn&&!Tn&&(ai.onClick=pr,ai.role=St?"tab":"button",ai.tabIndex=an?-1:0),re.createElement("div",(0,se.Z)({},en,{ref:de,className:dr}),re.createElement("div",ai,Ee&&Dr,re.createElement("span",{className:"".concat(Kt,"-header-text"),onClick:kt==="header"?pr:void 0},Vt),ar&&re.createElement("div",{className:"".concat(Kt,"-extra")},jt)),re.createElement(ue.Z,(0,se.Z)({visible:Fe,leavedClassName:"".concat(Kt,"-content-hidden")},sn,{forceRender:it,removeOnLeave:Dt}),function(ki,Ni){var xi=ki.className,cn=ki.style;return re.createElement(oe,{ref:Ni,prefixCls:Kt,className:xi,style:cn,isActive:Fe,forceRender:it,role:St?"tabpanel":void 0},xt)}))}),ye=Ce,_e=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Me=function(de,xe){var ze=xe.prefixCls,$e=xe.accordion,Ee=xe.collapsible,Re=xe.destroyInactivePanel,Fe=xe.onItemClick,Ge=xe.activeKey,it=xe.openMotion,gt=xe.expandIcon;return de.map(function(Kt,kt){var St=Kt.children,Wt=Kt.label,jt=Kt.key,Vt=Kt.collapsible,_t=Kt.onItemClick,sn=Kt.destroyInactivePanel,Dt=(0,me.Z)(Kt,_e),xt=String(jt!=null?jt:kt),en=Vt!=null?Vt:Ee,an=sn!=null?sn:Re,fn=function(pr){en!=="disabled"&&(Fe(pr),_t==null||_t(pr))},Tn=!1;return $e?Tn=Ge[0]===xt:Tn=Ge.indexOf(xt)>-1,re.createElement(ye,(0,se.Z)({},Dt,{prefixCls:ze,key:xt,panelKey:xt,isActive:Tn,accordion:$e,openMotion:it,expandIcon:gt,header:Wt,collapsible:en,onItemClick:fn,destroyInactivePanel:an}),St)})},we=function(de,xe,ze){if(!de)return null;var $e=ze.prefixCls,Ee=ze.accordion,Re=ze.collapsible,Fe=ze.destroyInactivePanel,Ge=ze.onItemClick,it=ze.activeKey,gt=ze.openMotion,Kt=ze.expandIcon,kt=de.key||String(xe),St=de.props,Wt=St.header,jt=St.headerClass,Vt=St.destroyInactivePanel,_t=St.collapsible,sn=St.onItemClick,Dt=!1;Ee?Dt=it[0]===kt:Dt=it.indexOf(kt)>-1;var xt=_t!=null?_t:Re,en=function(Tn){xt!=="disabled"&&(Ge(Tn),sn==null||sn(Tn))},an={key:kt,panelKey:kt,header:Wt,headerClass:jt,isActive:Dt,prefixCls:$e,destroyInactivePanel:Vt!=null?Vt:Fe,openMotion:gt,accordion:Ee,children:de.props.children,onItemClick:en,expandIcon:Kt,collapsible:xt};return typeof de.type=="string"?de:(Object.keys(an).forEach(function(fn){typeof an[fn]=="undefined"&&delete an[fn]}),re.cloneElement(de,an))};function Ne(Ke,de,xe){return Array.isArray(Ke)?Me(Ke,xe):(0,ie.Z)(de).map(function(ze,$e){return we(ze,$e,xe)})}var Ae=Ne;function De(Ke){var de=Ke;if(!Array.isArray(de)){var xe=(0,ne.Z)(de);de=xe==="number"||xe==="string"?[de]:[]}return de.map(function(ze){return String(ze)})}var Ie=re.forwardRef(function(Ke,de){var xe=Ke.prefixCls,ze=xe===void 0?"rc-collapse":xe,$e=Ke.destroyInactivePanel,Ee=$e===void 0?!1:$e,Re=Ke.style,Fe=Ke.accordion,Ge=Ke.className,it=Ke.children,gt=Ke.collapsible,Kt=Ke.openMotion,kt=Ke.expandIcon,St=Ke.activeKey,Wt=Ke.defaultActiveKey,jt=Ke.onChange,Vt=Ke.items,_t=x()(ze,Ge),sn=(0,z.Z)([],{value:St,onChange:function(ar){return jt==null?void 0:jt(ar)},defaultValue:Wt,postState:De}),Dt=(0,ke.Z)(sn,2),xt=Dt[0],en=Dt[1],an=function(ar){return en(function(){if(Fe)return xt[0]===ar?[]:[ar];var pr=xt.indexOf(ar),Ar=pr>-1;return Ar?xt.filter(function(Dr){return Dr!==ar}):[].concat((0,pe.Z)(xt),[ar])})};(0,ae.ZP)(!it,"`children` will be removed in next major version. Please use `items` instead.");var fn=Ae(Vt,it,{prefixCls:ze,accordion:Fe,openMotion:Kt,expandIcon:kt,collapsible:gt,destroyInactivePanel:Ee,onItemClick:an,activeKey:xt});return re.createElement("div",{ref:de,className:_t,style:Re,role:Fe?"tablist":void 0},fn)}),Pe=Object.assign(Ie,{Panel:ye}),Le=Pe,We=Pe.Panel,Be=ve(37419),He=ve(10366),Ye=ve(33603),et=ve(96159),st=ve(53124),yt=ve(98675),Qe=re.forwardRef((Ke,de)=>{const{getPrefixCls:xe}=re.useContext(st.E_),{prefixCls:ze,className:$e,showArrow:Ee=!0}=Ke,Re=xe("collapse",ze),Fe=x()({[`${Re}-no-arrow`]:!Ee},$e);return re.createElement(Le.Panel,Object.assign({ref:de},Ke,{prefixCls:Re,className:Fe}))}),pt=ve(14747),mt=ve(33507),ft=ve(67968),nt=ve(45503);const tt=Ke=>{const{componentCls:de,contentBg:xe,padding:ze,headerBg:$e,headerPadding:Ee,collapseHeaderPaddingSM:Re,collapseHeaderPaddingLG:Fe,collapsePanelBorderRadius:Ge,lineWidth:it,lineType:gt,colorBorder:Kt,colorText:kt,colorTextHeading:St,colorTextDisabled:Wt,fontSize:jt,fontSizeLG:Vt,lineHeight:_t,marginSM:sn,paddingSM:Dt,paddingLG:xt,paddingXS:en,motionDurationSlow:an,fontSizeIcon:fn,contentPadding:Tn}=Ke,ar=`${it}px ${gt} ${Kt}`;return{[de]:Object.assign(Object.assign({},(0,pt.Wf)(Ke)),{backgroundColor:$e,border:ar,borderBottom:0,borderRadius:`${Ge}px`,"&-rtl":{direction:"rtl"},[`& > ${de}-item`]:{borderBottom:ar,"&:last-child":{[`
|
|
|
&,
|
|
|
& > ${de}-header`]:{borderRadius:`0 0 ${Ge}px ${Ge}px`}},[`> ${de}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Ee,color:St,lineHeight:_t,cursor:"pointer",transition:`all ${an}, visibility 0s`,[`> ${de}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${de}-expand-icon`]:{height:jt*_t,display:"flex",alignItems:"center",paddingInlineEnd:sn},[`${de}-arrow`]:Object.assign(Object.assign({},(0,pt.Ro)()),{fontSize:fn,svg:{transition:`transform ${an}`}}),[`${de}-header-text`]:{marginInlineEnd:"auto"}},[`${de}-header-collapsible-only`]:{cursor:"default",[`${de}-header-text`]:{flex:"none",cursor:"pointer"}},[`${de}-icon-collapsible-only`]:{cursor:"default",[`${de}-expand-icon`]:{cursor:"pointer"}}},[`${de}-content`]:{color:kt,backgroundColor:xe,borderTop:ar,[`& > ${de}-content-box`]:{padding:Tn},"&-hidden":{display:"none"}},"&-small":{[`> ${de}-item`]:{[`> ${de}-header`]:{padding:Re,paddingInlineStart:en,[`> ${de}-expand-icon`]:{marginInlineStart:Dt-en}},[`> ${de}-content > ${de}-content-box`]:{padding:Dt}}},"&-large":{[`> ${de}-item`]:{fontSize:Vt,[`> ${de}-header`]:{padding:Fe,paddingInlineStart:ze,[`> ${de}-expand-icon`]:{height:Vt*_t,marginInlineStart:xt-ze}},[`> ${de}-content > ${de}-content-box`]:{padding:xt}}},[`${de}-item:last-child`]:{[`> ${de}-content`]:{borderRadius:`0 0 ${Ge}px ${Ge}px`}},[`& ${de}-item-disabled > ${de}-header`]:{"\n &,\n & > .arrow\n ":{color:Wt,cursor:"not-allowed"}},[`&${de}-icon-position-end`]:{[`& > ${de}-item`]:{[`> ${de}-header`]:{[`${de}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:sn}}}}})}},rt=Ke=>{const{componentCls:de}=Ke,xe=`> ${de}-item > ${de}-header ${de}-arrow svg`;return{[`${de}-rtl`]:{[xe]:{transform:"rotate(180deg)"}}}},Et=Ke=>{const{componentCls:de,headerBg:xe,paddingXXS:ze,colorBorder:$e}=Ke;return{[`${de}-borderless`]:{backgroundColor:xe,border:0,[`> ${de}-item`]:{borderBottom:`1px solid ${$e}`},[`
|
|
|
> ${de}-item:last-child,
|
|
|
> ${de}-item:last-child ${de}-header
|
|
|
`]:{borderRadius:0},[`> ${de}-item:last-child`]:{borderBottom:0},[`> ${de}-item > ${de}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${de}-item > ${de}-content > ${de}-content-box`]:{paddingTop:ze}}}},bt=Ke=>{const{componentCls:de,paddingSM:xe}=Ke;return{[`${de}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${de}-item`]:{borderBottom:0,[`> ${de}-content`]:{backgroundColor:"transparent",border:0,[`> ${de}-content-box`]:{paddingBlock:xe}}}}}};var Pt=(0,ft.Z)("Collapse",Ke=>{const de=(0,nt.TS)(Ke,{collapseHeaderPaddingSM:`${Ke.paddingXS}px ${Ke.paddingSM}px`,collapseHeaderPaddingLG:`${Ke.padding}px ${Ke.paddingLG}px`,collapsePanelBorderRadius:Ke.borderRadiusLG});return[tt(de),Et(de),bt(de),rt(de),(0,mt.Z)(de)]},Ke=>({headerPadding:`${Ke.paddingSM}px ${Ke.padding}px`,headerBg:Ke.colorFillAlter,contentPadding:`${Ke.padding}px 16px`,contentBg:Ke.colorBgContainer})),dt=Object.assign(re.forwardRef((Ke,de)=>{const{getPrefixCls:xe,direction:ze,collapse:$e}=re.useContext(st.E_),{prefixCls:Ee,className:Re,rootClassName:Fe,style:Ge,bordered:it=!0,ghost:gt,size:Kt,expandIconPosition:kt="start",children:St,expandIcon:Wt}=Ke,jt=(0,yt.Z)(ar=>{var pr;return(pr=Kt!=null?Kt:ar)!==null&&pr!==void 0?pr:"middle"}),Vt=xe("collapse",Ee),_t=xe(),[sn,Dt]=Pt(Vt),xt=re.useMemo(()=>kt==="left"?"start":kt==="right"?"end":kt,[kt]),en=function(){let ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const pr=Wt?Wt(ar):re.createElement(Ue.Z,{rotate:ar.isActive?90:void 0});return(0,et.Tm)(pr,()=>({className:x()(pr.props.className,`${Vt}-arrow`)}))},an=x()(`${Vt}-icon-position-${xt}`,{[`${Vt}-borderless`]:!it,[`${Vt}-rtl`]:ze==="rtl",[`${Vt}-ghost`]:!!gt,[`${Vt}-${jt}`]:jt!=="middle"},$e==null?void 0:$e.className,Re,Fe,Dt),fn=Object.assign(Object.assign({},(0,Ye.Z)(_t)),{motionAppear:!1,leavedClassName:`${Vt}-content-hidden`}),Tn=re.useMemo(()=>St?(0,Be.Z)(St).map((ar,pr)=>{var Ar,Dr;if(!((Ar=ar.props)===null||Ar===void 0)&&Ar.disabled){const dr=(Dr=ar.key)!==null&&Dr!==void 0?Dr:String(pr),{disabled:zr,collapsible:ai}=ar.props,ki=Object.assign(Object.assign({},(0,He.Z)(ar.props,["disabled"])),{key:dr,collapsible:ai!=null?ai:zr?"disabled":void 0});return(0,et.Tm)(ar,ki)}return ar}):null,[St]);return sn(re.createElement(Le,Object.assign({ref:de,openMotion:fn},(0,He.Z)(Ke,["rootClassName"]),{expandIcon:en,prefixCls:Vt,className:an,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),Ge)}),Tn))}),{Panel:Qe}),Ze=dt},88258:function(xn,Zt,ve){"use strict";var Ue=ve(67294),ot=ve(53124),x=ve(32983);const ke=pe=>{const{componentName:ne}=pe,{getPrefixCls:z}=(0,Ue.useContext)(ot.E_),ae=z("empty");switch(ne){case"Table":case"List":return Ue.createElement(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ue.createElement(x.Z,{image:x.Z.PRESENTED_IMAGE_SIMPLE,className:`${ae}-small`});default:return Ue.createElement(x.Z,null)}};Zt.Z=ke},72565:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Pi}});var Ue=ve(94184),ot=ve.n(Ue),x=ve(1413),ke=ve(97685),pe=ve(67294),ne=ve(73935);function z(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ae={};function re(yn,dn){}function se(yn,dn){}function me(){ae={}}function ie(yn,dn,Kn){!dn&&!ae[Kn]&&(yn(!1,Kn),ae[Kn]=!0)}function le(yn,dn){ie(re,yn,dn)}function ue(yn,dn){ie(se,yn,dn)}var fe=null,he=ve(71002),oe=ve(18459);function Se(yn,dn,Kn){var or=pe.useRef({});return(!("value"in or.current)||Kn(or.current.condition,dn))&&(or.current.value=yn(),or.current.condition=dn),or.current.value}function Ce(yn,dn){typeof yn=="function"?yn(dn):(0,he.Z)(yn)==="object"&&yn&&"current"in yn&&(yn.current=dn)}function ye(){for(var yn=arguments.length,dn=new Array(yn),Kn=0;Kn<yn;Kn++)dn[Kn]=arguments[Kn];var or=dn.filter(function(xr){return xr});return or.length<=1?or[0]:function(xr){dn.forEach(function(Wr){Ce(Wr,xr)})}}function _e(){for(var yn=arguments.length,dn=new Array(yn),Kn=0;Kn<yn;Kn++)dn[Kn]=arguments[Kn];return Se(function(){return ye.apply(void 0,dn)},dn,function(or,xr){return or.length===xr.length&&or.every(function(Wr,oi){return Wr===xr[oi]})})}function Me(yn){var dn,Kn,or=(0,oe.isMemo)(yn)?yn.type.type:yn.type;return!(typeof or=="function"&&!((dn=or.prototype)!==null&&dn!==void 0&&dn.render)||typeof yn=="function"&&!((Kn=yn.prototype)!==null&&Kn!==void 0&&Kn.render))}var we=pe.createContext(null),Ne=we,Ae=ve(74902),De=z()?pe.useLayoutEffect:pe.useEffect,Ie=De,Pe=function(dn,Kn){var or=React.useRef(!0);De(function(){if(!or.current)return dn()},Kn),De(function(){return or.current=!1,function(){or.current=!0}},[])},Le=[];function We(yn,dn){var Kn=pe.useState(function(){if(!z())return null;var hn=document.createElement("div");return hn}),or=(0,ke.Z)(Kn,1),xr=or[0],Wr=pe.useRef(!1),oi=pe.useContext(Ne),pi=pe.useState(Le),Ei=(0,ke.Z)(pi,2),mi=Ei[0],Li=Ei[1],ea=oi||(Wr.current?void 0:function(hn){Li(function(On){var Je=[hn].concat((0,Ae.Z)(On));return Je})});function ni(){xr.parentElement||document.body.appendChild(xr),Wr.current=!0}function Mn(){var hn;(hn=xr.parentElement)===null||hn===void 0||hn.removeChild(xr),Wr.current=!1}return Ie(function(){return yn?oi?oi(ni):ni():Mn(),Mn},[yn]),Ie(function(){mi.length&&(mi.forEach(function(hn){return hn()}),Li(Le))},[mi]),[xr,ea]}function Be(yn,dn){if(!yn)return!1;if(yn.contains)return yn.contains(dn);for(var Kn=dn;Kn;){if(Kn===yn)return!0;Kn=Kn.parentNode}return!1}var He="data-rc-order",Ye="rc-util-key",et=new Map;function st(){var yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dn=yn.mark;return dn?dn.startsWith("data-")?dn:"data-".concat(dn):Ye}function yt(yn){if(yn.attachTo)return yn.attachTo;var dn=document.querySelector("head");return dn||document.body}function Ve(yn){return yn==="queue"?"prependQueue":yn?"prepend":"append"}function Qe(yn){return Array.from((et.get(yn)||yn).children).filter(function(dn){return dn.tagName==="STYLE"})}function pt(yn){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!z())return null;var Kn=dn.csp,or=dn.prepend,xr=document.createElement("style");xr.setAttribute(He,Ve(or)),Kn!=null&&Kn.nonce&&(xr.nonce=Kn==null?void 0:Kn.nonce),xr.innerHTML=yn;var Wr=yt(dn),oi=Wr.firstChild;if(or){if(or==="queue"){var pi=Qe(Wr).filter(function(Ei){return["prepend","prependQueue"].includes(Ei.getAttribute(He))});if(pi.length)return Wr.insertBefore(xr,pi[pi.length-1].nextSibling),xr}Wr.insertBefore(xr,oi)}else Wr.appendChild(xr);return xr}function mt(yn){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kn=yt(dn);return Qe(Kn).find(function(or){return or.getAttribute(st(dn))===yn})}function ft(yn){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kn=mt(yn,dn);if(Kn){var or=yt(dn);or.removeChild(Kn)}}function nt(yn,dn){var Kn=et.get(yn);if(!Kn||!Be(document,Kn)){var or=pt("",dn),xr=or.parentNode;et.set(yn,xr),yn.removeChild(or)}}function tt(){et.clear()}function rt(yn,dn){var Kn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},or=yt(Kn);nt(or,Kn);var xr=mt(dn,Kn);if(xr){var Wr,oi;if((Wr=Kn.csp)!==null&&Wr!==void 0&&Wr.nonce&&xr.nonce!==((oi=Kn.csp)===null||oi===void 0?void 0:oi.nonce)){var pi;xr.nonce=(pi=Kn.csp)===null||pi===void 0?void 0:pi.nonce}return xr.innerHTML!==yn&&(xr.innerHTML=yn),xr}var Ei=pt(yn,Kn);return Ei.setAttribute(st(Kn),dn),Ei}var Et;function bt(yn){if(typeof document=="undefined")return 0;if(yn||Et===void 0){var dn=document.createElement("div");dn.style.width="100%",dn.style.height="200px";var Kn=document.createElement("div"),or=Kn.style;or.position="absolute",or.top="0",or.left="0",or.pointerEvents="none",or.visibility="hidden",or.width="200px",or.height="150px",or.overflow="hidden",Kn.appendChild(dn),document.body.appendChild(Kn);var xr=dn.offsetWidth;Kn.style.overflow="scroll";var Wr=dn.offsetWidth;xr===Wr&&(Wr=Kn.clientWidth),document.body.removeChild(Kn),Et=xr-Wr}return Et}function Pt(yn){var dn=yn.match(/^(.*)px$/),Kn=Number(dn==null?void 0:dn[1]);return Number.isNaN(Kn)?bt():Kn}function Lt(yn){if(typeof document=="undefined"||!yn||!(yn instanceof Element))return{width:0,height:0};var dn=getComputedStyle(yn,"::-webkit-scrollbar"),Kn=dn.width,or=dn.height;return{width:Pt(Kn),height:Pt(or)}}function dt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ze="rc-util-locker-".concat(Date.now()),Ke=0;function de(yn){var dn=!!yn,Kn=pe.useState(function(){return Ke+=1,"".concat(Ze,"_").concat(Ke)}),or=(0,ke.Z)(Kn,1),xr=or[0];Ie(function(){if(dn){var Wr=Lt(document.body).width,oi=dt();rt(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(oi?"width: calc(100% - ".concat(Wr,"px);"):"",`
|
|
|
}`),xr)}else ft(xr);return function(){ft(xr)}},[dn,xr])}var xe=!1;function ze(yn){return typeof yn=="boolean"&&(xe=yn),xe}var $e=function(dn){return dn===!1?!1:!z()||!dn?null:typeof dn=="string"?document.querySelector(dn):typeof dn=="function"?dn():dn},Ee=pe.forwardRef(function(yn,dn){var Kn=yn.open,or=yn.autoLock,xr=yn.getContainer,Wr=yn.debug,oi=yn.autoDestroy,pi=oi===void 0?!0:oi,Ei=yn.children,mi=pe.useState(Kn),Li=(0,ke.Z)(mi,2),ea=Li[0],ni=Li[1],Mn=ea||Kn;pe.useEffect(function(){(pi||Kn)&&ni(Kn)},[Kn,pi]);var hn=pe.useState(function(){return $e(xr)}),On=(0,ke.Z)(hn,2),Je=On[0],vt=On[1];pe.useEffect(function(){var Pn=$e(xr);vt(Pn!=null?Pn:null)});var Ct=We(Mn&&!Je,Wr),It=(0,ke.Z)(Ct,2),At=It[0],Bt=It[1],Ft=Je!=null?Je:At;de(or&&Kn&&z()&&(Ft===At||Ft===document.body));var on=null;if(Ei&&Me(Ei)&&dn){var gn=Ei;on=gn.ref}var Ln=_e(on,dn);if(!Mn||!z()||Je===void 0)return null;var qn=Ft===!1||ze(),Zn=Ei;return dn&&(Zn=pe.cloneElement(Ei,{ref:Ln})),pe.createElement(Ne.Provider,{value:Bt},qn?Zn:(0,ne.createPortal)(Zn,Ft))}),Re=Ee,Fe=Re;function Ge(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var it=Ge()?pe.useLayoutEffect:pe.useEffect,gt=function(dn,Kn){var or=pe.useRef(!0);it(function(){return dn(or.current)},Kn),it(function(){return or.current=!1,function(){or.current=!0}},[])},Kt=function(dn,Kn){gt(function(or){if(!or)return dn()},Kn)},kt=gt,St=pe.createContext(null),Wt=pe.createContext({}),jt=St,Vt=ve(4942),_t=ve(87462),sn=ve(62874),Dt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(dn){var Kn=dn.keyCode;if(dn.altKey&&!dn.ctrlKey||dn.metaKey||Kn>=Dt.F1&&Kn<=Dt.F12)return!1;switch(Kn){case Dt.ALT:case Dt.CAPS_LOCK:case Dt.CONTEXT_MENU:case Dt.CTRL:case Dt.DOWN:case Dt.END:case Dt.ESC:case Dt.HOME:case Dt.INSERT:case Dt.LEFT:case Dt.MAC_FF_META:case Dt.META:case Dt.NUMLOCK:case Dt.NUM_CENTER:case Dt.PAGE_DOWN:case Dt.PAGE_UP:case Dt.PAUSE:case Dt.PRINT_SCREEN:case Dt.RIGHT:case Dt.SHIFT:case Dt.UP:case Dt.WIN_KEY:case Dt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(dn){if(dn>=Dt.ZERO&&dn<=Dt.NINE||dn>=Dt.NUM_ZERO&&dn<=Dt.NUM_MULTIPLY||dn>=Dt.A&&dn<=Dt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&dn===0)return!0;switch(dn){case Dt.SPACE:case Dt.QUESTION_MARK:case Dt.NUM_PLUS:case Dt.NUM_MINUS:case Dt.NUM_PERIOD:case Dt.NUM_DIVISION:case Dt.SEMICOLON:case Dt.DASH:case Dt.EQUALS:case Dt.COMMA:case Dt.PERIOD:case Dt.SLASH:case Dt.APOSTROPHE:case Dt.SINGLE_QUOTE:case Dt.OPEN_SQUARE_BRACKET:case Dt.BACKSLASH:case Dt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xt=Dt,en=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,an=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,fn="".concat(en," ").concat(an).split(/[\s\n]+/),Tn="aria-",ar="data-";function pr(yn,dn){return yn.indexOf(dn)===0}function Ar(yn){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kn;dn===!1?Kn={aria:!0,data:!0,attr:!0}:dn===!0?Kn={aria:!0}:Kn=(0,x.Z)({},dn);var or={};return Object.keys(yn).forEach(function(xr){(Kn.aria&&(xr==="role"||pr(xr,Tn))||Kn.data&&pr(xr,ar)||Kn.attr&&fn.includes(xr))&&(or[xr]=yn[xr])}),or}function Dr(yn){var dn=React.useRef();dn.current=yn;var Kn=React.useCallback(function(){for(var or,xr=arguments.length,Wr=new Array(xr),oi=0;oi<xr;oi++)Wr[oi]=arguments[oi];return(or=dn.current)===null||or===void 0?void 0:or.call.apply(or,[dn].concat(Wr))},[]);return Kn}function dr(yn){var dn=React.useRef(!1),Kn=React.useState(yn),or=_slicedToArray(Kn,2),xr=or[0],Wr=or[1];React.useEffect(function(){return dn.current=!1,function(){dn.current=!0}},[]);function oi(pi,Ei){Ei&&dn.current||Wr(pi)}return[xr,oi]}function zr(yn){return yn!==void 0}function ai(yn,dn){var Kn=dn||{},or=Kn.defaultValue,xr=Kn.value,Wr=Kn.onChange,oi=Kn.postState,pi=useState(function(){return zr(xr)?xr:zr(or)?typeof or=="function"?or():or:typeof yn=="function"?yn():yn}),Ei=_slicedToArray(pi,2),mi=Ei[0],Li=Ei[1],ea=xr!==void 0?xr:mi,ni=oi?oi(ea):ea,Mn=useEvent(Wr),hn=useState([ea]),On=_slicedToArray(hn,2),Je=On[0],vt=On[1];useLayoutUpdateEffect(function(){var It=Je[0];mi!==It&&Mn(mi,It)},[Je]),useLayoutUpdateEffect(function(){zr(xr)||Li(xr)},[xr]);var Ct=useEvent(function(It,At){Li(It,At),vt([ea],At)});return[ni,Ct]}var ki=ve(33993);function Ni(yn,dn,Kn){var or=pe.useRef({});return(!("value"in or.current)||Kn(or.current.condition,dn))&&(or.current.value=yn(),or.current.condition=dn),or.current.value}function xi(yn,dn){typeof yn=="function"?yn(dn):(0,he.Z)(yn)==="object"&&yn&&"current"in yn&&(yn.current=dn)}function cn(){for(var yn=arguments.length,dn=new Array(yn),Kn=0;Kn<yn;Kn++)dn[Kn]=arguments[Kn];var or=dn.filter(function(xr){return xr});return or.length<=1?or[0]:function(xr){dn.forEach(function(Wr){xi(Wr,xr)})}}function ir(){for(var yn=arguments.length,dn=new Array(yn),Kn=0;Kn<yn;Kn++)dn[Kn]=arguments[Kn];return Ni(function(){return cn.apply(void 0,dn)},dn,function(or,xr){return or.length!==xr.length||or.every(function(Wr,oi){return Wr!==xr[oi]})})}function sr(yn){var dn,Kn,or=isMemo(yn)?yn.type.type:yn.type;return!(typeof or=="function"&&!((dn=or.prototype)!==null&&dn!==void 0&&dn.render)||typeof yn=="function"&&!((Kn=yn.prototype)!==null&&Kn!==void 0&&Kn.render))}function Yn(yn){return!isValidElement(yn)||isFragment(yn)?!1:sr(yn)}function Rr(yn,dn,Kn,or){if(!dn.length)return Kn;var xr=_toArray(dn),Wr=xr[0],oi=xr.slice(1),pi;return!yn&&typeof Wr=="number"?pi=[]:Array.isArray(yn)?pi=_toConsumableArray(yn):pi=_objectSpread({},yn),or&&Kn===void 0&&oi.length===1?delete pi[Wr][oi[0]]:pi[Wr]=Rr(pi[Wr],oi,Kn,or),pi}function Nn(yn,dn,Kn){var or=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return dn.length&&or&&Kn===void 0&&!get(yn,dn.slice(0,-1))?yn:Rr(yn,dn,Kn,or)}function Hn(yn){return _typeof(yn)==="object"&&yn!==null&&Object.getPrototypeOf(yn)===Object.prototype}function jn(yn){return Array.isArray(yn)?[]:{}}var Gt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Xt(){for(var yn=arguments.length,dn=new Array(yn),Kn=0;Kn<yn;Kn++)dn[Kn]=arguments[Kn];var or=jn(dn[0]);return dn.forEach(function(xr){function Wr(oi,pi){var Ei=new Set(pi),mi=get(xr,oi),Li=Array.isArray(mi);if(Li||Hn(mi)){if(!Ei.has(mi)){Ei.add(mi);var ea=get(or,oi);Li?or=Nn(or,oi,[]):(!ea||_typeof(ea)!=="object")&&(or=Nn(or,oi,jn(mi))),Gt(mi).forEach(function(ni){Wr([].concat(_toConsumableArray(oi),[ni]),Ei)})}}else or=Nn(or,oi,mi)}Wr([])}),or}var rn={},An=[],zt=function(dn){An.push(dn)};function tn(yn,dn){if(0)var Kn}function bn(yn,dn){if(0)var Kn}function wn(){rn={}}function zn(yn,dn,Kn){!dn&&!rn[Kn]&&(yn(!1,Kn),rn[Kn]=!0)}function Un(yn,dn){zn(tn,yn,dn)}function kr(yn,dn){zn(bn,yn,dn)}Un.preMessage=zt,Un.resetWarned=wn,Un.noteOnce=kr;var Zr=Un,Ir=function(dn){var Kn=dn.prefixCls,or=dn.className,xr=dn.style,Wr=dn.children,oi=dn.containerRef,pi=dn.id,Ei=dn.onMouseEnter,mi=dn.onMouseOver,Li=dn.onMouseLeave,ea=dn.onClick,ni=dn.onKeyDown,Mn=dn.onKeyUp,hn={onMouseEnter:Ei,onMouseOver:mi,onMouseLeave:Li,onClick:ea,onKeyDown:ni,onKeyUp:Mn},On=pe.useContext(Wt),Je=On.panel,vt=ir(Je,oi);return pe.createElement(pe.Fragment,null,pe.createElement("div",(0,_t.Z)({id:pi,className:ot()("".concat(Kn,"-content"),or),style:(0,x.Z)({},xr),"aria-modal":"true",role:"dialog",ref:vt},hn),Wr))},Er=Ir;function Br(yn){return typeof yn=="string"&&String(Number(yn))===yn?(Zr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(yn)):yn}function Pr(yn){warning(!("wrapperClassName"in yn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!yn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var nn={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Jt(yn,dn){var Kn,or,xr,Wr,oi=yn.prefixCls,pi=yn.open,Ei=yn.placement,mi=yn.inline,Li=yn.push,ea=yn.forceRender,ni=yn.autoFocus,Mn=yn.keyboard,hn=yn.rootClassName,On=yn.rootStyle,Je=yn.zIndex,vt=yn.className,Ct=yn.id,It=yn.style,At=yn.motion,Bt=yn.width,Ft=yn.height,on=yn.children,gn=yn.contentWrapperStyle,Ln=yn.mask,qn=yn.maskClosable,Zn=yn.maskMotion,Pn=yn.maskClassName,Bn=yn.maskStyle,Sn=yn.afterOpenChange,Xn=yn.onClose,vr=yn.onMouseEnter,rr=yn.onMouseOver,lr=yn.onMouseLeave,fr=yn.onClick,yr=yn.onKeyDown,Mr=yn.onKeyUp,Ot=pe.useRef(),Rt=pe.useRef(),un=pe.useRef();pe.useImperativeHandle(dn,function(){return Ot.current});var Qt=function(ui){var bi=ui.keyCode,zi=ui.shiftKey;switch(bi){case xt.TAB:{if(bi===xt.TAB){if(!zi&&document.activeElement===un.current){var ti;(ti=Rt.current)===null||ti===void 0||ti.focus({preventScroll:!0})}else if(zi&&document.activeElement===Rt.current){var Ji;(Ji=un.current)===null||Ji===void 0||Ji.focus({preventScroll:!0})}}break}case xt.ESC:{Xn&&Mn&&(ui.stopPropagation(),Xn(ui));break}}};pe.useEffect(function(){if(pi&&ni){var Qr;(Qr=Ot.current)===null||Qr===void 0||Qr.focus({preventScroll:!0})}},[pi]);var _n=pe.useState(!1),Wn=(0,ke.Z)(_n,2),Gn=Wn[0],gr=Wn[1],cr=pe.useContext(jt),Jn;Li===!1?Jn={distance:0}:Li===!0?Jn={}:Jn=Li||{};var wr=(Kn=(or=(xr=Jn)===null||xr===void 0?void 0:xr.distance)!==null&&or!==void 0?or:cr==null?void 0:cr.pushDistance)!==null&&Kn!==void 0?Kn:180,_r=pe.useMemo(function(){return{pushDistance:wr,push:function(){gr(!0)},pull:function(){gr(!1)}}},[wr]);pe.useEffect(function(){if(pi){var Qr;cr==null||(Qr=cr.push)===null||Qr===void 0||Qr.call(cr)}else{var ui;cr==null||(ui=cr.pull)===null||ui===void 0||ui.call(cr)}},[pi]),pe.useEffect(function(){return function(){var Qr;cr==null||(Qr=cr.pull)===null||Qr===void 0||Qr.call(cr)}},[]);var Vr=Ln&&pe.createElement(sn.Z,(0,_t.Z)({key:"mask"},Zn,{visible:pi}),function(Qr,ui){var bi=Qr.className,zi=Qr.style;return pe.createElement("div",{className:ot()("".concat(oi,"-mask"),bi,Pn),style:(0,x.Z)((0,x.Z)({},zi),Bn),onClick:qn&&pi?Xn:void 0,ref:ui})}),Tr=typeof At=="function"?At(Ei):At,qr={};if(Gn&&wr)switch(Ei){case"top":qr.transform="translateY(".concat(wr,"px)");break;case"bottom":qr.transform="translateY(".concat(-wr,"px)");break;case"left":qr.transform="translateX(".concat(wr,"px)");break;default:qr.transform="translateX(".concat(-wr,"px)");break}Ei==="left"||Ei==="right"?qr.width=Br(Bt):qr.height=Br(Ft);var vi={onMouseEnter:vr,onMouseOver:rr,onMouseLeave:lr,onClick:fr,onKeyDown:yr,onKeyUp:Mr},si=pe.createElement(sn.Z,(0,_t.Z)({key:"panel"},Tr,{visible:pi,forceRender:ea,onVisibleChanged:function(ui){Sn==null||Sn(ui)},removeOnLeave:!1,leavedClassName:"".concat(oi,"-content-wrapper-hidden")}),function(Qr,ui){var bi=Qr.className,zi=Qr.style;return pe.createElement("div",(0,_t.Z)({className:ot()("".concat(oi,"-content-wrapper"),bi),style:(0,x.Z)((0,x.Z)((0,x.Z)({},qr),zi),gn)},Ar(yn,{data:!0})),pe.createElement(Er,(0,_t.Z)({id:Ct,containerRef:ui,prefixCls:oi,className:vt,style:It},vi),on))}),gi=(0,x.Z)({},On);return Je&&(gi.zIndex=Je),pe.createElement(jt.Provider,{value:_r},pe.createElement("div",{className:ot()(oi,"".concat(oi,"-").concat(Ei),hn,(Wr={},(0,Vt.Z)(Wr,"".concat(oi,"-open"),pi),(0,Vt.Z)(Wr,"".concat(oi,"-inline"),mi),Wr)),style:gi,tabIndex:-1,ref:Ot,onKeyDown:Qt},Vr,pe.createElement("div",{tabIndex:0,ref:Rt,style:nn,"aria-hidden":"true","data-sentinel":"start"}),si,pe.createElement("div",{tabIndex:0,ref:un,style:nn,"aria-hidden":"true","data-sentinel":"end"})))}var pn=pe.forwardRef(Jt),Qn=pn,hr=function(dn){var Kn=dn.open,or=Kn===void 0?!1:Kn,xr=dn.prefixCls,Wr=xr===void 0?"rc-drawer":xr,oi=dn.placement,pi=oi===void 0?"right":oi,Ei=dn.autoFocus,mi=Ei===void 0?!0:Ei,Li=dn.keyboard,ea=Li===void 0?!0:Li,ni=dn.width,Mn=ni===void 0?378:ni,hn=dn.mask,On=hn===void 0?!0:hn,Je=dn.maskClosable,vt=Je===void 0?!0:Je,Ct=dn.getContainer,It=dn.forceRender,At=dn.afterOpenChange,Bt=dn.destroyOnClose,Ft=dn.onMouseEnter,on=dn.onMouseOver,gn=dn.onMouseLeave,Ln=dn.onClick,qn=dn.onKeyDown,Zn=dn.onKeyUp,Pn=dn.panelRef,Bn=pe.useState(!1),Sn=(0,ke.Z)(Bn,2),Xn=Sn[0],vr=Sn[1],rr=pe.useState(!1),lr=(0,ke.Z)(rr,2),fr=lr[0],yr=lr[1];kt(function(){yr(!0)},[]);var Mr=fr?or:!1,Ot=pe.useRef(),Rt=pe.useRef();kt(function(){Mr&&(Rt.current=document.activeElement)},[Mr]);var un=function(gr){var cr;if(vr(gr),At==null||At(gr),!gr&&Rt.current&&!((cr=Ot.current)!==null&&cr!==void 0&&cr.contains(Rt.current))){var Jn;(Jn=Rt.current)===null||Jn===void 0||Jn.focus({preventScroll:!0})}},Qt=pe.useMemo(function(){return{panel:Pn}},[Pn]);if(!It&&!Xn&&!Mr&&Bt)return null;var _n={onMouseEnter:Ft,onMouseOver:on,onMouseLeave:gn,onClick:Ln,onKeyDown:qn,onKeyUp:Zn},Wn=(0,x.Z)((0,x.Z)({},dn),{},{open:Mr,prefixCls:Wr,placement:pi,autoFocus:mi,keyboard:ea,width:Mn,mask:On,maskClosable:vt,inline:Ct===!1,afterOpenChange:un,ref:Ot},_n);return pe.createElement(Wt.Provider,{value:Qt},pe.createElement(Fe,{open:Mr||It||Xn,autoDestroy:!1,getContainer:Ct,autoLock:On&&(Mr||Xn)},pe.createElement(Qn,Wn)))},Fn=hr,Vn=Fn,er=ve(33603),Sr=ve(53124),Nr=ve(65223),In=ve(69760),ei=yn=>{const{prefixCls:dn,title:Kn,footer:or,extra:xr,closeIcon:Wr,closable:oi,onClose:pi,headerStyle:Ei,drawerStyle:mi,bodyStyle:Li,footerStyle:ea,children:ni}=yn,Mn=pe.useCallback(Ct=>pe.createElement("button",{type:"button",onClick:pi,"aria-label":"Close",className:`${dn}-close`},Ct),[pi]),[hn,On]=(0,In.Z)(oi,Wr,Mn,void 0,!0),Je=pe.useMemo(()=>!Kn&&!hn?null:pe.createElement("div",{style:Ei,className:ot()(`${dn}-header`,{[`${dn}-header-close-only`]:hn&&!Kn&&!xr})},pe.createElement("div",{className:`${dn}-header-title`},On,Kn&&pe.createElement("div",{className:`${dn}-title`},Kn)),xr&&pe.createElement("div",{className:`${dn}-extra`},xr)),[hn,On,xr,Ei,dn,Kn]),vt=pe.useMemo(()=>{if(!or)return null;const Ct=`${dn}-footer`;return pe.createElement("div",{className:Ct,style:ea},or)},[or,ea,dn]);return pe.createElement("div",{className:`${dn}-wrapper-body`,style:mi},Je,pe.createElement("div",{className:`${dn}-body`,style:Li},ni),vt)},aa=ve(4173),ca=ve(67968),qi=ve(45503),oa=yn=>{const{componentCls:dn,motionDurationSlow:Kn}=yn,or={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Kn}`}}};return{[dn]:{[`${dn}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Kn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${dn}-panel-motion`]:{"&-left":[or,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[or,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[or,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[or,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Bi=yn=>{const{componentCls:dn,zIndexPopup:Kn,colorBgMask:or,colorBgElevated:xr,motionDurationSlow:Wr,motionDurationMid:oi,padding:pi,paddingLG:Ei,fontSizeLG:mi,lineHeightLG:Li,lineWidth:ea,lineType:ni,colorSplit:Mn,marginSM:hn,colorIcon:On,colorIconHover:Je,colorText:vt,fontWeightStrong:Ct,footerPaddingBlock:It,footerPaddingInline:At}=yn,Bt=`${dn}-content-wrapper`;return{[dn]:{position:"fixed",inset:0,zIndex:Kn,pointerEvents:"none","&-pure":{position:"relative",background:xr,[`&${dn}-left`]:{boxShadow:yn.boxShadowDrawerLeft},[`&${dn}-right`]:{boxShadow:yn.boxShadowDrawerRight},[`&${dn}-top`]:{boxShadow:yn.boxShadowDrawerUp},[`&${dn}-bottom`]:{boxShadow:yn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dn}-mask`]:{position:"absolute",inset:0,zIndex:Kn,background:or,pointerEvents:"auto"},[Bt]:{position:"absolute",zIndex:Kn,maxWidth:"100vw",transition:`all ${Wr}`,"&-hidden":{display:"none"}},[`&-left > ${Bt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:yn.boxShadowDrawerLeft},[`&-right > ${Bt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:yn.boxShadowDrawerRight},[`&-top > ${Bt}`]:{top:0,insetInline:0,boxShadow:yn.boxShadowDrawerUp},[`&-bottom > ${Bt}`]:{bottom:0,insetInline:0,boxShadow:yn.boxShadowDrawerDown},[`${dn}-content`]:{width:"100%",height:"100%",overflow:"auto",background:xr,pointerEvents:"auto"},[`${dn}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${dn}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${pi}px ${Ei}px`,fontSize:mi,lineHeight:Li,borderBottom:`${ea}px ${ni} ${Mn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dn}-extra`]:{flex:"none"},[`${dn}-close`]:{display:"inline-block",marginInlineEnd:hn,color:On,fontWeight:Ct,fontSize:mi,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${oi}`,textRendering:"auto","&:focus, &:hover":{color:Je,textDecoration:"none"}},[`${dn}-title`]:{flex:1,margin:0,color:vt,fontWeight:yn.fontWeightStrong,fontSize:mi,lineHeight:Li},[`${dn}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ei,overflow:"auto"},[`${dn}-footer`]:{flexShrink:0,padding:`${It}px ${At}px`,borderTop:`${ea}px ${ni} ${Mn}`},"&-rtl":{direction:"rtl"}}}};var Di=(0,ca.Z)("Drawer",yn=>{const dn=(0,qi.TS)(yn,{});return[Bi(dn),oa(dn)]},yn=>({zIndexPopup:yn.zIndexPopupBase,footerPaddingBlock:yn.paddingXS,footerPaddingInline:yn.padding})),_a=ve(16569),_i=function(yn,dn){var Kn={};for(var or in yn)Object.prototype.hasOwnProperty.call(yn,or)&&dn.indexOf(or)<0&&(Kn[or]=yn[or]);if(yn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xr=0,or=Object.getOwnPropertySymbols(yn);xr<or.length;xr++)dn.indexOf(or[xr])<0&&Object.prototype.propertyIsEnumerable.call(yn,or[xr])&&(Kn[or[xr]]=yn[or[xr]]);return Kn};const ta=null,Ea={distance:180},Va=yn=>{var dn;const{rootClassName:Kn,width:or,height:xr,size:Wr="default",mask:oi=!0,push:pi=Ea,open:Ei,afterOpenChange:mi,onClose:Li,prefixCls:ea,getContainer:ni,style:Mn,className:hn,visible:On,afterVisibleChange:Je}=yn,vt=_i(yn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ct,getPrefixCls:It,direction:At,drawer:Bt}=pe.useContext(Sr.E_),Ft=It("drawer",ea),[on,gn]=Di(Ft),Ln=ni===void 0&&Ct?()=>Ct(document.body):ni,qn=ot()({"no-mask":!oi,[`${Ft}-rtl`]:At==="rtl"},Kn,gn),Zn=pe.useMemo(()=>or!=null?or:Wr==="large"?736:378,[or,Wr]),Pn=pe.useMemo(()=>xr!=null?xr:Wr==="large"?736:378,[xr,Wr]),Bn={motionName:(0,er.m)(Ft,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Sn=vr=>({motionName:(0,er.m)(Ft,`panel-motion-${vr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Xn=(0,_a.H)();return on(pe.createElement(aa.BR,null,pe.createElement(Nr.Ux,{status:!0,override:!0},pe.createElement(Vn,Object.assign({prefixCls:Ft,onClose:Li,maskMotion:Bn,motion:Sn},vt,{open:Ei!=null?Ei:On,mask:oi,push:pi,width:Zn,height:Pn,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Mn),className:ot()(Bt==null?void 0:Bt.className,hn),rootClassName:qn,getContainer:Ln,afterOpenChange:mi!=null?mi:Je,panelRef:Xn}),pe.createElement(ei,Object.assign({prefixCls:Ft},vt,{onClose:Li}))))))},Na=yn=>{const{prefixCls:dn,style:Kn,className:or,placement:xr="right"}=yn,Wr=_i(yn,["prefixCls","style","className","placement"]),{getPrefixCls:oi}=pe.useContext(Sr.E_),pi=oi("drawer",dn),[Ei,mi]=Di(pi),Li=ot()(pi,`${pi}-pure`,`${pi}-${xr}`,mi,or);return Ei(pe.createElement("div",{className:Li,style:Kn},pe.createElement(ei,Object.assign({prefixCls:pi},Wr))))};Va._InternalPanelDoNotUseOrYouWillBeFired=Na;var Pi=Va},35874:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return $e}});var Ue=ve(67294),ot=ve(91034),x=ve(94184),ke=ve.n(x),pe=ve(87462),ne=ve(4942),z=ve(97685),ae=ve(45987),re=ve(62709),se=ve(71002),me=ve(12060);function ie(Ee,Re,Fe){var Ge=React.useRef({});return(!("value"in Ge.current)||Fe(Ge.current.condition,Re))&&(Ge.current.value=Ee(),Ge.current.condition=Re),Ge.current.value}function le(Ee,Re){typeof Ee=="function"?Ee(Re):(0,se.Z)(Ee)==="object"&&Ee&&"current"in Ee&&(Ee.current=Re)}function ue(){for(var Ee=arguments.length,Re=new Array(Ee),Fe=0;Fe<Ee;Fe++)Re[Fe]=arguments[Fe];var Ge=Re.filter(function(it){return it});return Ge.length<=1?Ge[0]:function(it){Re.forEach(function(gt){le(gt,it)})}}function fe(){for(var Ee=arguments.length,Re=new Array(Ee),Fe=0;Fe<Ee;Fe++)Re[Fe]=arguments[Fe];return useMemo(function(){return ue.apply(void 0,Re)},Re,function(Ge,it){return Ge.length===it.length&&Ge.every(function(gt,Kt){return gt===it[Kt]})})}function he(Ee){var Re,Fe,Ge=(0,me.isMemo)(Ee)?Ee.type.type:Ee.type;return!(typeof Ge=="function"&&!((Re=Ge.prototype)!==null&&Re!==void 0&&Re.render)||typeof Ee=="function"&&!((Fe=Ee.prototype)!==null&&Fe!==void 0&&Fe.render))}var oe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Re){var Fe=Re.keyCode;if(Re.altKey&&!Re.ctrlKey||Re.metaKey||Fe>=oe.F1&&Fe<=oe.F12)return!1;switch(Fe){case oe.ALT:case oe.CAPS_LOCK:case oe.CONTEXT_MENU:case oe.CTRL:case oe.DOWN:case oe.END:case oe.ESC:case oe.HOME:case oe.INSERT:case oe.LEFT:case oe.MAC_FF_META:case oe.META:case oe.NUMLOCK:case oe.NUM_CENTER:case oe.PAGE_DOWN:case oe.PAGE_UP:case oe.PAUSE:case oe.PRINT_SCREEN:case oe.RIGHT:case oe.SHIFT:case oe.UP:case oe.WIN_KEY:case oe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Re){if(Re>=oe.ZERO&&Re<=oe.NINE||Re>=oe.NUM_ZERO&&Re<=oe.NUM_MULTIPLY||Re>=oe.A&&Re<=oe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Re===0)return!0;switch(Re){case oe.SPACE:case oe.QUESTION_MARK:case oe.NUM_PLUS:case oe.NUM_MINUS:case oe.NUM_PERIOD:case oe.NUM_DIVISION:case oe.SEMICOLON:case oe.DASH:case oe.EQUALS:case oe.COMMA:case oe.PERIOD:case oe.SLASH:case oe.APOSTROPHE:case oe.SINGLE_QUOTE:case oe.OPEN_SQUARE_BRACKET:case oe.BACKSLASH:case oe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Se=oe,Ce=function(Re){return+setTimeout(Re,16)},ye=function(Re){return clearTimeout(Re)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ce=function(Re){return window.requestAnimationFrame(Re)},ye=function(Re){return window.cancelAnimationFrame(Re)});var _e=0,Me=new Map;function we(Ee){Me.delete(Ee)}var Ne=function(Re){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_e+=1;var Ge=_e;function it(gt){if(gt===0)we(Ge),Re();else{var Kt=Ce(function(){it(gt-1)});Me.set(Ge,Kt)}}return it(Fe),Ge};Ne.cancel=function(Ee){var Re=Me.get(Ee);return we(Re),ye(Re)};var Ae=Ne,De=Se.ESC,Ie=Se.TAB;function Pe(Ee){var Re=Ee.visible,Fe=Ee.triggerRef,Ge=Ee.onVisibleChange,it=Ee.autoFocus,gt=Ee.overlayRef,Kt=Ue.useRef(!1),kt=function(){if(Re){var Vt,_t;(Vt=Fe.current)===null||Vt===void 0||(_t=Vt.focus)===null||_t===void 0||_t.call(Vt),Ge==null||Ge(!1)}},St=function(){var Vt;return(Vt=gt.current)!==null&&Vt!==void 0&&Vt.focus?(gt.current.focus(),Kt.current=!0,!0):!1},Wt=function(Vt){switch(Vt.keyCode){case De:kt();break;case Ie:{var _t=!1;Kt.current||(_t=St()),_t?Vt.preventDefault():kt();break}}};Ue.useEffect(function(){return Re?(window.addEventListener("keydown",Wt),it&&Ae(St,3),function(){window.removeEventListener("keydown",Wt),Kt.current=!1}):function(){Kt.current=!1}},[Re])}var Le=(0,Ue.forwardRef)(function(Ee,Re){var Fe=Ee.overlay,Ge=Ee.arrow,it=Ee.prefixCls,gt=(0,Ue.useMemo)(function(){var kt;return typeof Fe=="function"?kt=Fe():kt=Fe,kt},[Fe]),Kt=ue(Re,gt==null?void 0:gt.ref);return Ue.createElement(Ue.Fragment,null,Ge&&Ue.createElement("div",{className:"".concat(it,"-arrow")}),Ue.cloneElement(gt,{ref:he(gt)?Kt:void 0}))}),We=Le,Be={adjustX:1,adjustY:1},He=[0,0],Ye={topLeft:{points:["bl","tl"],overflow:Be,offset:[0,-4],targetOffset:He},top:{points:["bc","tc"],overflow:Be,offset:[0,-4],targetOffset:He},topRight:{points:["br","tr"],overflow:Be,offset:[0,-4],targetOffset:He},bottomLeft:{points:["tl","bl"],overflow:Be,offset:[0,4],targetOffset:He},bottom:{points:["tc","bc"],overflow:Be,offset:[0,4],targetOffset:He},bottomRight:{points:["tr","br"],overflow:Be,offset:[0,4],targetOffset:He}},et=Ye,st=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function yt(Ee,Re){var Fe,Ge=Ee.arrow,it=Ge===void 0?!1:Ge,gt=Ee.prefixCls,Kt=gt===void 0?"rc-dropdown":gt,kt=Ee.transitionName,St=Ee.animation,Wt=Ee.align,jt=Ee.placement,Vt=jt===void 0?"bottomLeft":jt,_t=Ee.placements,sn=_t===void 0?et:_t,Dt=Ee.getPopupContainer,xt=Ee.showAction,en=Ee.hideAction,an=Ee.overlayClassName,fn=Ee.overlayStyle,Tn=Ee.visible,ar=Ee.trigger,pr=ar===void 0?["hover"]:ar,Ar=Ee.autoFocus,Dr=Ee.overlay,dr=Ee.children,zr=Ee.onVisibleChange,ai=(0,ae.Z)(Ee,st),ki=Ue.useState(),Ni=(0,z.Z)(ki,2),xi=Ni[0],cn=Ni[1],ir="visible"in Ee?Tn:xi,sr=Ue.useRef(null),Yn=Ue.useRef(null),Rr=Ue.useRef(null);Ue.useImperativeHandle(Re,function(){return sr.current});var Nn=function(bn){cn(bn),zr==null||zr(bn)};Pe({visible:ir,triggerRef:Rr,onVisibleChange:Nn,autoFocus:Ar,overlayRef:Yn});var Hn=function(bn){var wn=Ee.onOverlayClick;cn(!1),wn&&wn(bn)},jn=function(){return Ue.createElement(We,{ref:Yn,overlay:Dr,prefixCls:Kt,arrow:it})},Gt=function(){return typeof Dr=="function"?jn:jn()},Xt=function(){var bn=Ee.minOverlayWidthMatchTrigger,wn=Ee.alignPoint;return"minOverlayWidthMatchTrigger"in Ee?bn:!wn},rn=function(){var bn=Ee.openClassName;return bn!==void 0?bn:"".concat(Kt,"-open")},An=Ue.cloneElement(dr,{className:ke()((Fe=dr.props)===null||Fe===void 0?void 0:Fe.className,ir&&rn()),ref:he(dr)?ue(Rr,dr.ref):void 0}),zt=en;return!zt&&pr.indexOf("contextMenu")!==-1&&(zt=["click"]),Ue.createElement(re.Z,(0,pe.Z)({builtinPlacements:sn},ai,{prefixCls:Kt,ref:sr,popupClassName:ke()(an,(0,ne.Z)({},"".concat(Kt,"-show-arrow"),it)),popupStyle:fn,action:pr,showAction:xt,hideAction:zt,popupPlacement:Vt,popupAlign:Wt,popupTransitionName:kt,popupAnimation:St,popupVisible:ir,stretch:Xt()?"minWidth":"",popup:Gt(),onPopupVisibleChange:Nn,onPopupClick:Hn,getPopupContainer:Dt}),An)}var Ve=Ue.forwardRef(yt),Qe=Ve,pt=ve(60276),mt=ve(5663),ft=ve(10366),nt=ve(80636),tt=ve(8745),rt=ve(96159),Et=ve(53124),bt=ve(68508),Pt=ve(76529),Lt=ve(29691),dt=ve(66748);const Ze=null,Ke=Ee=>{const{menu:Re,arrow:Fe,prefixCls:Ge,children:it,trigger:gt,disabled:Kt,dropdownRender:kt,getPopupContainer:St,overlayClassName:Wt,rootClassName:jt,open:Vt,onOpenChange:_t,visible:sn,onVisibleChange:Dt,mouseEnterDelay:xt=.15,mouseLeaveDelay:en=.1,autoAdjustOverflow:an=!0,placement:fn="",overlay:Tn,transitionName:ar}=Ee,{getPopupContainer:pr,getPrefixCls:Ar,direction:Dr}=Ue.useContext(Et.E_),dr=Ue.useMemo(()=>{const An=Ar();return ar!==void 0?ar:fn.includes("top")?`${An}-slide-down`:`${An}-slide-up`},[Ar,fn,ar]),zr=Ue.useMemo(()=>fn?fn.includes("Center")?fn.slice(0,fn.indexOf("Center")):fn:Dr==="rtl"?"bottomRight":"bottomLeft",[fn,Dr]),ai=Ar("dropdown",Ge),[ki,Ni]=(0,dt.Z)(ai),[,xi]=(0,Lt.Z)(),cn=Ue.Children.only(it),ir=(0,rt.Tm)(cn,{className:ke()(`${ai}-trigger`,{[`${ai}-rtl`]:Dr==="rtl"},cn.props.className),disabled:Kt}),sr=Kt?[]:gt;let Yn;sr&&sr.includes("contextMenu")&&(Yn=!0);const[Rr,Nn]=(0,mt.Z)(!1,{value:Vt!=null?Vt:sn}),Hn=(0,pt.useEvent)(An=>{_t==null||_t(An),Dt==null||Dt(An),Nn(An)}),jn=ke()(Wt,jt,Ni,{[`${ai}-rtl`]:Dr==="rtl"}),Gt=(0,nt.Z)({arrowPointAtCenter:typeof Fe=="object"&&Fe.pointAtCenter,autoAdjustOverflow:an,offset:xi.marginXXS,arrowWidth:Fe?xi.sizePopupArrow:0,borderRadius:xi.borderRadius}),Xt=Ue.useCallback(()=>{Nn(!1)},[]),rn=()=>{let An;return Re!=null&&Re.items?An=Ue.createElement(bt.default,Object.assign({},Re)):typeof Tn=="function"?An=Tn():An=Tn,kt&&(An=kt(An)),An=Ue.Children.only(typeof An=="string"?Ue.createElement("span",null,An):An),Ue.createElement(Pt.J,{prefixCls:`${ai}-menu`,expandIcon:Ue.createElement("span",{className:`${ai}-menu-submenu-arrow`},Ue.createElement(ot.Z,{className:`${ai}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Xt,validator:zt=>{let{mode:tn}=zt}},An)};return ki(Ue.createElement(Qe,Object.assign({alignPoint:Yn},(0,ft.Z)(Ee,["rootClassName"]),{mouseEnterDelay:xt,mouseLeaveDelay:en,visible:Rr,builtinPlacements:Gt,arrow:!!Fe,overlayClassName:jn,prefixCls:ai,getPopupContainer:St||pr,transitionName:dr,trigger:sr,overlay:rn,placement:zr,onVisibleChange:Hn}),ir))};function de(Ee){return Object.assign(Object.assign({},Ee),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const xe=(0,tt.Z)(Ke,"dropdown",Ee=>Ee,de),ze=Ee=>Ue.createElement(xe,Object.assign({},Ee),Ue.createElement("span",null));Ke._InternalPanelDoNotUseOrYouWillBeFired=ze;var $e=Ke},85418:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return fe}});var Ue=ve(35874),ot=ve(94184),x=ve.n(ot),ke=ve(67294),pe=ve(25877),ne=ve(71577),z=ve(53124),ae=ve(93421),re=ve(4173),se=ve(66748),me=function(he,oe){var Se={};for(var Ce in he)Object.prototype.hasOwnProperty.call(he,Ce)&&oe.indexOf(Ce)<0&&(Se[Ce]=he[Ce]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Ce=Object.getOwnPropertySymbols(he);ye<Ce.length;ye++)oe.indexOf(Ce[ye])<0&&Object.prototype.propertyIsEnumerable.call(he,Ce[ye])&&(Se[Ce[ye]]=he[Ce[ye]]);return Se};const ie=he=>{const{getPopupContainer:oe,getPrefixCls:Se,direction:Ce}=ke.useContext(z.E_),{prefixCls:ye,type:_e="default",danger:Me,disabled:we,loading:Ne,onClick:Ae,htmlType:De,children:Ie,className:Pe,menu:Le,arrow:We,autoFocus:Be,overlay:He,trigger:Ye,align:et,open:st,onOpenChange:yt,placement:Ve,getPopupContainer:Qe,href:pt,icon:mt=ke.createElement(pe.Z,null),title:ft,buttonsRender:nt=Kt=>Kt,mouseEnterDelay:tt,mouseLeaveDelay:rt,overlayClassName:Et,overlayStyle:bt,destroyPopupOnHide:Pt,dropdownRender:Lt}=he,dt=me(he,["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"]),Ze=Se("dropdown",ye),Ke=`${Ze}-button`,[de,xe]=(0,se.Z)(Ze),ze={menu:Le,arrow:We,autoFocus:Be,align:et,disabled:we,trigger:we?[]:Ye,onOpenChange:yt,getPopupContainer:Qe||oe,mouseEnterDelay:tt,mouseLeaveDelay:rt,overlayClassName:Et,overlayStyle:bt,destroyPopupOnHide:Pt,dropdownRender:Lt},{compactSize:$e,compactItemClassnames:Ee}=(0,re.ri)(Ze,Ce),Re=x()(Ke,Ee,Pe,xe);"overlay"in he&&(ze.overlay=He),"open"in he&&(ze.open=st),"placement"in he?ze.placement=Ve:ze.placement=Ce==="rtl"?"bottomLeft":"bottomRight";const Fe=ke.createElement(ne.ZP,{type:_e,danger:Me,disabled:we,loading:Ne,onClick:Ae,htmlType:De,href:pt,title:ft},Ie),Ge=ke.createElement(ne.ZP,{type:_e,danger:Me,icon:mt}),[it,gt]=nt([Fe,Ge]);return de(ke.createElement(ae.Z.Compact,Object.assign({className:Re,size:$e,block:!0},dt),it,ke.createElement(Ue.Z,Object.assign({},ze),gt)))};ie.__ANT_BUTTON=!0;var le=ie;const ue=Ue.Z;ue.Button=le;var fe=ue},66748:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return me}});var Ue=ve(14747),ot=ve(67771),x=ve(33297),ke=ve(50438),pe=ve(97414),ne=ve(67968),z=ve(45503),re=ie=>{const{componentCls:le,menuCls:ue,colorError:fe,colorTextLightSolid:he}=ie,oe=`${ue}-item`;return{[`${le}, ${le}-menu-submenu`]:{[`${ue} ${oe}`]:{[`&${oe}-danger:not(${oe}-disabled)`]:{color:fe,"&:hover":{color:he,backgroundColor:fe}}}}}};const se=ie=>{const{componentCls:le,menuCls:ue,zIndexPopup:fe,dropdownArrowDistance:he,sizePopupArrow:oe,antCls:Se,iconCls:Ce,motionDurationMid:ye,dropdownPaddingVertical:_e,fontSize:Me,dropdownEdgeChildPadding:we,colorTextDisabled:Ne,fontSizeIcon:Ae,controlPaddingHorizontal:De,colorBgElevated:Ie}=ie;return[{[le]:Object.assign(Object.assign({},(0,Ue.Wf)(ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:fe,display:"block","&::before":{position:"absolute",insetBlock:-he+oe/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Se}-btn`]:{[`& > ${Ce}-down, & > ${Se}-btn-icon > ${Ce}-down`]:{fontSize:Ae}},[`${le}-wrap`]:{position:"relative",[`${Se}-btn > ${Ce}-down`]:{fontSize:Ae},[`${Ce}-down::before`]:{transition:`transform ${ye}`}},[`${le}-wrap-open`]:{[`${Ce}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Se}-slide-down-enter${Se}-slide-down-enter-active${le}-placement-bottomLeft,
|
|
|
&${Se}-slide-down-appear${Se}-slide-down-appear-active${le}-placement-bottomLeft,
|
|
|
&${Se}-slide-down-enter${Se}-slide-down-enter-active${le}-placement-bottom,
|
|
|
&${Se}-slide-down-appear${Se}-slide-down-appear-active${le}-placement-bottom,
|
|
|
&${Se}-slide-down-enter${Se}-slide-down-enter-active${le}-placement-bottomRight,
|
|
|
&${Se}-slide-down-appear${Se}-slide-down-appear-active${le}-placement-bottomRight`]:{animationName:ot.fJ},[`&${Se}-slide-up-enter${Se}-slide-up-enter-active${le}-placement-topLeft,
|
|
|
&${Se}-slide-up-appear${Se}-slide-up-appear-active${le}-placement-topLeft,
|
|
|
&${Se}-slide-up-enter${Se}-slide-up-enter-active${le}-placement-top,
|
|
|
&${Se}-slide-up-appear${Se}-slide-up-appear-active${le}-placement-top,
|
|
|
&${Se}-slide-up-enter${Se}-slide-up-enter-active${le}-placement-topRight,
|
|
|
&${Se}-slide-up-appear${Se}-slide-up-appear-active${le}-placement-topRight`]:{animationName:ot.Qt},[`&${Se}-slide-down-leave${Se}-slide-down-leave-active${le}-placement-bottomLeft,
|
|
|
&${Se}-slide-down-leave${Se}-slide-down-leave-active${le}-placement-bottom,
|
|
|
&${Se}-slide-down-leave${Se}-slide-down-leave-active${le}-placement-bottomRight`]:{animationName:ot.Uw},[`&${Se}-slide-up-leave${Se}-slide-up-leave-active${le}-placement-topLeft,
|
|
|
&${Se}-slide-up-leave${Se}-slide-up-leave-active${le}-placement-top,
|
|
|
&${Se}-slide-up-leave${Se}-slide-up-leave-active${le}-placement-topRight`]:{animationName:ot.ly}})},(0,pe.ZP)(ie,{colorBg:Ie,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${le} ${ue}`]:{position:"relative",margin:0},[`${ue}-submenu-popup`]:{position:"absolute",zIndex:fe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${le}, ${le}-menu-submenu`]:{[ue]:Object.assign(Object.assign({padding:we,listStyleType:"none",backgroundColor:Ie,backgroundClip:"padding-box",borderRadius:ie.borderRadiusLG,outline:"none",boxShadow:ie.boxShadowSecondary},(0,Ue.Qy)(ie)),{[`${ue}-item-group-title`]:{padding:`${_e}px ${De}px`,color:ie.colorTextDescription,transition:`all ${ye}`},[`${ue}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ue}-item-icon`]:{minWidth:Me,marginInlineEnd:ie.marginXS,fontSize:ie.fontSizeSM},[`${ue}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ye}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ue}-item, ${ue}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${_e}px ${De}px`,color:ie.colorText,fontWeight:"normal",fontSize:Me,lineHeight:ie.lineHeight,cursor:"pointer",transition:`all ${ye}`,borderRadius:ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:ie.controlItemBgHover}},(0,Ue.Qy)(ie)),{"&-selected":{color:ie.colorPrimary,backgroundColor:ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:ie.controlItemBgActiveHover}},"&-disabled":{color:Ne,cursor:"not-allowed","&:hover":{color:Ne,backgroundColor:Ie,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ie.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ie.colorSplit},[`${le}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ie.paddingXS,[`${le}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ie.colorTextDescription,fontSize:Ae,fontStyle:"normal"}}}),[`${ue}-item-group-list`]:{margin:`0 ${ie.marginXS}px`,padding:0,listStyle:"none"},[`${ue}-submenu-title`]:{paddingInlineEnd:De+ie.fontSizeSM},[`${ue}-submenu-vertical`]:{position:"relative"},[`${ue}-submenu${ue}-submenu-disabled ${le}-menu-submenu-title`]:{[`&, ${le}-menu-submenu-arrow-icon`]:{color:Ne,backgroundColor:Ie,cursor:"not-allowed"}},[`${ue}-submenu-selected ${le}-menu-submenu-title`]:{color:ie.colorPrimary}})}},[(0,ot.oN)(ie,"slide-up"),(0,ot.oN)(ie,"slide-down"),(0,x.Fm)(ie,"move-up"),(0,x.Fm)(ie,"move-down"),(0,ke._y)(ie,"zoom-big")]]};var me=(0,ne.Z)("Dropdown",(ie,le)=>{let{rootPrefixCls:ue}=le;const{marginXXS:fe,sizePopupArrow:he,controlHeight:oe,fontSize:Se,lineHeight:Ce,paddingXXS:ye,componentCls:_e,borderRadiusLG:Me}=ie,we=(oe-Se*Ce)/2,{dropdownArrowOffset:Ne}=(0,pe.fS)({contentRadius:Me}),Ae=(0,z.TS)(ie,{menuCls:`${_e}-menu`,rootPrefixCls:ue,dropdownArrowDistance:he/2+fe,dropdownArrowOffset:Ne,dropdownPaddingVertical:we,dropdownEdgeChildPadding:ye});return[se(Ae),re(Ae)]},ie=>({zIndexPopup:ie.zIndexPopupBase+50}))},32983:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ye}});var Ue=ve(94184),ot=ve.n(Ue),x=ve(67294),ke=ve(53124),pe=ve(10110),ne=ve(84780),z=ve(29691),re=()=>{const[,_e]=(0,z.Z)(),we=new ne.C(_e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return x.createElement("svg",{style:we,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(24 31.67)"},x.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),x.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"}),x.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)"}),x.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"}),x.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"})),x.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"}),x.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},x.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),x.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},me=()=>{const[,_e]=(0,z.Z)(),{colorFill:Me,colorFillTertiary:we,colorFillQuaternary:Ne,colorBgContainer:Ae}=_e,{borderColor:De,shadowColor:Ie,contentColor:Pe}=(0,x.useMemo)(()=>({borderColor:new ne.C(Me).onBackground(Ae).toHexShortString(),shadowColor:new ne.C(we).onBackground(Ae).toHexShortString(),contentColor:new ne.C(Ne).onBackground(Ae).toHexShortString()}),[Me,we,Ne,Ae]);return x.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},x.createElement("ellipse",{fill:Ie,cx:"32",cy:"33",rx:"32",ry:"7"}),x.createElement("g",{fillRule:"nonzero",stroke:De},x.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"}),x.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:Pe}))))},ie=ve(67968),le=ve(45503);const ue=_e=>{const{componentCls:Me,margin:we,marginXS:Ne,marginXL:Ae,fontSize:De,lineHeight:Ie}=_e;return{[Me]:{marginInline:Ne,fontSize:De,lineHeight:Ie,textAlign:"center",[`${Me}-image`]:{height:_e.emptyImgHeight,marginBottom:Ne,opacity:_e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Me}-description`]:{color:_e.colorText},[`${Me}-footer`]:{marginTop:we},"&-normal":{marginBlock:Ae,color:_e.colorTextDisabled,[`${Me}-description`]:{color:_e.colorTextDisabled},[`${Me}-image`]:{height:_e.emptyImgHeightMD}},"&-small":{marginBlock:Ne,color:_e.colorTextDisabled,[`${Me}-image`]:{height:_e.emptyImgHeightSM}}}}};var fe=(0,ie.Z)("Empty",_e=>{const{componentCls:Me,controlHeightLG:we}=_e,Ne=(0,le.TS)(_e,{emptyImgCls:`${Me}-img`,emptyImgHeight:we*2.5,emptyImgHeightMD:we,emptyImgHeightSM:we*.875});return[ue(Ne)]}),he=function(_e,Me){var we={};for(var Ne in _e)Object.prototype.hasOwnProperty.call(_e,Ne)&&Me.indexOf(Ne)<0&&(we[Ne]=_e[Ne]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ne=Object.getOwnPropertySymbols(_e);Ae<Ne.length;Ae++)Me.indexOf(Ne[Ae])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ne[Ae])&&(we[Ne[Ae]]=_e[Ne[Ae]]);return we};const oe=x.createElement(re,null),Se=x.createElement(me,null),Ce=_e=>{var{className:Me,rootClassName:we,prefixCls:Ne,image:Ae=oe,description:De,children:Ie,imageStyle:Pe,style:Le}=_e,We=he(_e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Be,direction:He,empty:Ye}=x.useContext(ke.E_),et=Be("empty",Ne),[st,yt]=fe(et),[Ve]=(0,pe.Z)("Empty"),Qe=typeof De!="undefined"?De:Ve==null?void 0:Ve.description,pt=typeof Qe=="string"?Qe:"empty";let mt=null;return typeof Ae=="string"?mt=x.createElement("img",{alt:pt,src:Ae}):mt=Ae,st(x.createElement("div",Object.assign({className:ot()(yt,et,Ye==null?void 0:Ye.className,{[`${et}-normal`]:Ae===Se,[`${et}-rtl`]:He==="rtl"},Me,we),style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Le)},We),x.createElement("div",{className:`${et}-image`,style:Pe},mt),Qe&&x.createElement("div",{className:`${et}-description`},Qe),Ie&&x.createElement("div",{className:`${et}-footer`},Ie)))};Ce.PRESENTED_IMAGE_DEFAULT=oe,Ce.PRESENTED_IMAGE_SIMPLE=Se;var ye=Ce},22150:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return An}});var Ue=ve(74902),ot=ve(94184),x=ve.n(ot),ke=ve(38379),pe=ve(67294),ne=ve(33603),z=ve(65223);function ae(zt){const[tn,bn]=pe.useState(zt);return pe.useEffect(()=>{const wn=setTimeout(()=>{bn(zt)},zt.length?0:10);return()=>{clearTimeout(wn)}},[zt]),tn}var re=ve(14747),se=ve(50438),me=ve(33507),ie=ve(45503),le=ve(67968),fe=zt=>{const{componentCls:tn}=zt,bn=`${tn}-show-help`,wn=`${tn}-show-help-item`;return{[bn]:{transition:`opacity ${zt.motionDurationSlow} ${zt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[wn]:{overflow:"hidden",transition:`height ${zt.motionDurationSlow} ${zt.motionEaseInOut},
|
|
|
opacity ${zt.motionDurationSlow} ${zt.motionEaseInOut},
|
|
|
transform ${zt.motionDurationSlow} ${zt.motionEaseInOut} !important`,[`&${wn}-appear, &${wn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${wn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const he=zt=>({legend:{display:"block",width:"100%",marginBottom:zt.marginLG,padding:0,color:zt.colorTextDescription,fontSize:zt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${zt.lineWidth}px ${zt.lineType} ${zt.colorBorder}`},label:{fontSize:zt.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 ${zt.controlOutlineWidth}px ${zt.controlOutline}`},output:{display:"block",paddingTop:15,color:zt.colorText,fontSize:zt.fontSize,lineHeight:zt.lineHeight}}),oe=(zt,tn)=>{const{formItemCls:bn}=zt;return{[bn]:{[`${bn}-label > label`]:{height:tn},[`${bn}-control-input`]:{minHeight:tn}}}},Se=zt=>{const{componentCls:tn}=zt;return{[zt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,re.Wf)(zt)),he(zt)),{[`${tn}-text`]:{display:"inline-block",paddingInlineEnd:zt.paddingSM},"&-small":Object.assign({},oe(zt,zt.controlHeightSM)),"&-large":Object.assign({},oe(zt,zt.controlHeightLG))})}},Ce=zt=>{const{formItemCls:tn,iconCls:bn,componentCls:wn,rootPrefixCls:zn,labelRequiredMarkColor:Un,labelColor:kr,labelFontSize:Zr,labelHeight:Ir,labelColonMarginInlineStart:Er,labelColonMarginInlineEnd:Br,itemMarginBottom:Pr}=zt;return{[tn]:Object.assign(Object.assign({},(0,re.Wf)(zt)),{marginBottom:Pr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${zn}-row`]:{display:"none"},"&-has-warning":{[`${tn}-split`]:{color:zt.colorError}},"&-has-error":{[`${tn}-split`]:{color:zt.colorWarning}},[`${tn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${zt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ir,color:kr,fontSize:Zr,[`> ${bn}`]:{fontSize:zt.fontSize,verticalAlign:"top"},[`&${tn}-required:not(${tn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:zt.marginXXS,color:Un,fontSize:zt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${wn}-hide-required-mark &`]:{display:"none"}},[`${tn}-optional`]:{display:"inline-block",marginInlineStart:zt.marginXXS,color:zt.colorTextDescription,[`${wn}-hide-required-mark &`]:{display:"none"}},[`${tn}-tooltip`]:{color:zt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:zt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Er,marginInlineEnd:Br},[`&${tn}-no-colon::after`]:{content:'"\\a0"'}}},[`${tn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${zn}-col-'"]):not([class*="' ${zn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:zt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[tn]:{"&-explain, &-extra":{clear:"both",color:zt.colorTextDescription,fontSize:zt.fontSize,lineHeight:zt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:zt.controlHeightSM,transition:`color ${zt.motionDurationMid} ${zt.motionEaseOut}`},"&-explain":{"&-error":{color:zt.colorError},"&-warning":{color:zt.colorWarning}}},[`&-with-help ${tn}-explain`]:{height:"auto",opacity:1},[`${tn}-feedback-icon`]:{fontSize:zt.fontSize,textAlign:"center",visibility:"visible",animationName:se.kr,animationDuration:zt.motionDurationMid,animationTimingFunction:zt.motionEaseOutBack,pointerEvents:"none","&-success":{color:zt.colorSuccess},"&-error":{color:zt.colorError},"&-warning":{color:zt.colorWarning},"&-validating":{color:zt.colorPrimary}}})}},ye=zt=>{const{componentCls:tn,formItemCls:bn}=zt;return{[`${tn}-horizontal`]:{[`${bn}-label`]:{flexGrow:0},[`${bn}-control`]:{flex:"1 1 0",minWidth:0},[`${bn}-label[class$='-24'], ${bn}-label[class*='-24 ']`]:{[`& + ${bn}-control`]:{minWidth:"unset"}}}}},_e=zt=>{const{componentCls:tn,formItemCls:bn}=zt;return{[`${tn}-inline`]:{display:"flex",flexWrap:"wrap",[bn]:{flex:"none",marginInlineEnd:zt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${bn}-label,
|
|
|
> ${bn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${bn}-label`]:{flex:"none"},[`${tn}-text`]:{display:"inline-block"},[`${bn}-has-feedback`]:{display:"inline-block"}}}}},Me=zt=>({padding:zt.verticalLabelPadding,margin:zt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),we=zt=>{const{componentCls:tn,formItemCls:bn,rootPrefixCls:wn}=zt;return{[`${bn} ${bn}-label`]:Me(zt),[tn]:{[bn]:{flexWrap:"wrap",[`${bn}-label, ${bn}-control`]:{[`&:not([class*=" ${wn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ne=zt=>{const{componentCls:tn,formItemCls:bn,rootPrefixCls:wn}=zt;return{[`${tn}-vertical`]:{[bn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${tn}-item-control`]:{width:"100%"}}},[`${tn}-vertical ${bn}-label,
|
|
|
.${wn}-col-24${bn}-label,
|
|
|
.${wn}-col-xl-24${bn}-label`]:Me(zt),[`@media (max-width: ${zt.screenXSMax}px)`]:[we(zt),{[tn]:{[`.${wn}-col-xs-24${bn}-label`]:Me(zt)}}],[`@media (max-width: ${zt.screenSMMax}px)`]:{[tn]:{[`.${wn}-col-sm-24${bn}-label`]:Me(zt)}},[`@media (max-width: ${zt.screenMDMax}px)`]:{[tn]:{[`.${wn}-col-md-24${bn}-label`]:Me(zt)}},[`@media (max-width: ${zt.screenLGMax}px)`]:{[tn]:{[`.${wn}-col-lg-24${bn}-label`]:Me(zt)}}}},Ae=(zt,tn)=>(0,ie.TS)(zt,{formItemCls:`${zt.componentCls}-item`,rootPrefixCls:tn});var De=(0,le.Z)("Form",(zt,tn)=>{let{rootPrefixCls:bn}=tn;const wn=Ae(zt,bn);return[Se(wn),Ce(wn),fe(wn),ye(wn),_e(wn),Ne(wn),(0,me.Z)(wn),se.kr]},zt=>({labelRequiredMarkColor:zt.colorError,labelColor:zt.colorTextHeading,labelFontSize:zt.fontSize,labelHeight:zt.controlHeight,labelColonMarginInlineStart:zt.marginXXS/2,labelColonMarginInlineEnd:zt.marginXS,itemMarginBottom:zt.marginLG,verticalLabelPadding:`0 0 ${zt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ie=[];function Pe(zt,tn,bn){let wn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof zt=="string"?zt:`${tn}-${wn}`,error:zt,errorStatus:bn}}var We=zt=>{let{help:tn,helpStatus:bn,errors:wn=Ie,warnings:zn=Ie,className:Un,fieldId:kr,onVisibleChanged:Zr}=zt;const{prefixCls:Ir}=pe.useContext(z.Rk),Er=`${Ir}-item-explain`,[,Br]=De(Ir),Pr=(0,pe.useMemo)(()=>(0,ne.Z)(Ir),[Ir]),nn=ae(wn),Jt=ae(zn),pn=pe.useMemo(()=>tn!=null?[Pe(tn,"help",bn)]:[].concat((0,Ue.Z)(nn.map((hr,Fn)=>Pe(hr,"error","error",Fn))),(0,Ue.Z)(Jt.map((hr,Fn)=>Pe(hr,"warning","warning",Fn)))),[tn,bn,nn,Jt]),Qn={};return kr&&(Qn.id=`${kr}_help`),pe.createElement(ke.default,{motionDeadline:Pr.motionDeadline,motionName:`${Ir}-show-help`,visible:!!pn.length,onVisibleChanged:Zr},hr=>{const{className:Fn,style:Vn}=hr;return pe.createElement("div",Object.assign({},Qn,{className:x()(Er,Fn,Un,Br),style:Vn,role:"alert"}),pe.createElement(ke.CSSMotionList,Object.assign({keys:pn},(0,ne.Z)(Ir),{motionName:`${Ir}-show-help-item`,component:!1}),er=>{const{key:Sr,error:Nr,errorStatus:In,className:Gr,style:ei}=er;return pe.createElement("div",{key:Sr,className:x()(Gr,{[`${Er}-${In}`]:In}),style:ei},Nr)}))})},Be=ve(46660),He=ve(53124),Ye=ve(98866),et=ve(97647),st=ve(98675),yt=ve(17423);const Ve=["parentNode"],Qe="form_item";function pt(zt){return zt===void 0||zt===!1?[]:Array.isArray(zt)?zt:[zt]}function mt(zt,tn){if(!zt.length)return;const bn=zt.join("_");return tn?`${tn}_${bn}`:Ve.includes(bn)?`${Qe}_${bn}`:bn}function ft(zt,tn,bn,wn,zn,Un){let kr=wn;return Un!==void 0?kr=Un:bn.validating?kr="validating":zt.length?kr="error":tn.length?kr="warning":(bn.touched||zn&&bn.validated)&&(kr="success"),kr}function nt(zt){return pt(zt).join("_")}function tt(zt){const[tn]=(0,Be.useForm)(),bn=pe.useRef({}),wn=pe.useMemo(()=>zt!=null?zt:Object.assign(Object.assign({},tn),{__INTERNAL__:{itemRef:zn=>Un=>{const kr=nt(zn);Un?bn.current[kr]=Un:delete bn.current[kr]}},scrollToField:function(zn){let Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const kr=pt(zn),Zr=mt(kr,wn.__INTERNAL__.name),Ir=Zr?document.getElementById(Zr):null;Ir&&(0,yt.Z)(Ir,Object.assign({scrollMode:"if-needed",block:"nearest"},Un))},getFieldInstance:zn=>{const Un=nt(zn);return bn.current[Un]}}),[zt,tn]);return[wn]}var rt=ve(37920),Et=function(zt,tn){var bn={};for(var wn in zt)Object.prototype.hasOwnProperty.call(zt,wn)&&tn.indexOf(wn)<0&&(bn[wn]=zt[wn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,wn=Object.getOwnPropertySymbols(zt);zn<wn.length;zn++)tn.indexOf(wn[zn])<0&&Object.prototype.propertyIsEnumerable.call(zt,wn[zn])&&(bn[wn[zn]]=zt[wn[zn]]);return bn};const bt=(zt,tn)=>{const bn=pe.useContext(Ye.Z),{getPrefixCls:wn,direction:zn,form:Un}=pe.useContext(He.E_),{prefixCls:kr,className:Zr,rootClassName:Ir,size:Er,disabled:Br=bn,form:Pr,colon:nn,labelAlign:Jt,labelWrap:pn,labelCol:Qn,wrapperCol:hr,hideRequiredMark:Fn,layout:Vn="horizontal",scrollToFirstError:er,requiredMark:Sr,onFinishFailed:Nr,name:In,style:Gr,feedbackIcons:ei}=zt,aa=Et(zt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ca=(0,st.Z)(Er),qi=pe.useContext(rt.Z),Oi=(0,pe.useMemo)(()=>Sr!==void 0?Sr:Un&&Un.requiredMark!==void 0?Un.requiredMark:!Fn,[Fn,Sr,Un]),oa=nn!=null?nn:Un==null?void 0:Un.colon,Bi=wn("form",kr),[Di,_a]=De(Bi),_i=x()(Bi,`${Bi}-${Vn}`,{[`${Bi}-hide-required-mark`]:Oi===!1,[`${Bi}-rtl`]:zn==="rtl",[`${Bi}-${ca}`]:ca},_a,Un==null?void 0:Un.className,Zr,Ir),[ta]=tt(Pr),{__INTERNAL__:Ea}=ta;Ea.name=In;const Va=(0,pe.useMemo)(()=>({name:In,labelAlign:Jt,labelCol:Qn,labelWrap:pn,wrapperCol:hr,vertical:Vn==="vertical",colon:oa,requiredMark:Oi,itemRef:Ea.itemRef,form:ta,feedbackIcons:ei}),[In,Jt,Qn,hr,Vn,oa,Oi,ta,ei]);pe.useImperativeHandle(tn,()=>ta);const Na=(yn,dn)=>{if(yn){let Kn={block:"nearest"};typeof yn=="object"&&(Kn=yn),ta.scrollToField(dn,Kn)}},Pi=yn=>{if(Nr==null||Nr(yn),yn.errorFields.length){const dn=yn.errorFields[0].name;if(er!==void 0){Na(er,dn);return}Un&&Un.scrollToFirstError!==void 0&&Na(Un.scrollToFirstError,dn)}};return Di(pe.createElement(Ye.n,{disabled:Br},pe.createElement(et.q,{size:ca},pe.createElement(z.RV,Object.assign({},{validateMessages:qi}),pe.createElement(z.q3.Provider,{value:Va},pe.createElement(Be.default,Object.assign({id:In},aa,{name:In,onFinishFailed:Pi,form:ta,style:Object.assign(Object.assign({},Un==null?void 0:Un.style),Gr),className:_i})))))))};var Lt=pe.forwardRef(bt),dt=ve(9475),Ze=ve(17799),Ke=ve(96159),de=ve(37419);function xe(zt){if(typeof zt=="function")return zt;const tn=(0,de.Z)(zt);return tn.length<=1?tn[0]:tn}const ze=()=>{const{status:zt,errors:tn=[],warnings:bn=[]}=(0,pe.useContext)(z.aM);return{status:zt,errors:tn,warnings:bn}};ze.Context=z.aM;var $e=ze,Ee=ve(96523);function Re(zt){const[tn,bn]=pe.useState(zt),wn=(0,pe.useRef)(null),zn=(0,pe.useRef)([]),Un=(0,pe.useRef)(!1);pe.useEffect(()=>(Un.current=!1,()=>{Un.current=!0,Ee.Z.cancel(wn.current),wn.current=null}),[]);function kr(Zr){Un.current||(wn.current===null&&(zn.current=[],wn.current=(0,Ee.Z)(()=>{wn.current=null,bn(Ir=>{let Er=Ir;return zn.current.forEach(Br=>{Er=Br(Er)}),Er})})),zn.current.push(Zr))}return[tn,kr]}function Fe(){const{itemRef:zt}=pe.useContext(z.q3),tn=pe.useRef({});function bn(wn,zn){const Un=zn&&typeof zn=="object"&&zn.ref,kr=wn.join("_");return(tn.current.name!==kr||tn.current.originRef!==Un)&&(tn.current.name=kr,tn.current.originRef=Un,tn.current.ref=(0,Ze.sQ)(zt(wn),Un)),tn.current.ref}return bn}var Ge=ve(48130),it=ve(14075),gt=ve(10366),Kt=ve(92820),kt=ve(21584);const St=zt=>{const{formItemCls:tn}=zt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${tn}-control`]:{display:"flex"}}}};var Wt=(0,le.b)(["Form","item-item"],(zt,tn)=>{let{rootPrefixCls:bn}=tn;const wn=Ae(zt,bn);return[St(wn)]}),Vt=zt=>{const{prefixCls:tn,status:bn,wrapperCol:wn,children:zn,errors:Un,warnings:kr,_internalItemRender:Zr,extra:Ir,help:Er,fieldId:Br,marginBottom:Pr,onErrorVisibleChanged:nn}=zt,Jt=`${tn}-item`,pn=pe.useContext(z.q3),Qn=wn||pn.wrapperCol||{},hr=x()(`${Jt}-control`,Qn.className),Fn=pe.useMemo(()=>Object.assign({},pn),[pn]);delete Fn.labelCol,delete Fn.wrapperCol;const Vn=pe.createElement("div",{className:`${Jt}-control-input`},pe.createElement("div",{className:`${Jt}-control-input-content`},zn)),er=pe.useMemo(()=>({prefixCls:tn,status:bn}),[tn,bn]),Sr=Pr!==null||Un.length||kr.length?pe.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},pe.createElement(z.Rk.Provider,{value:er},pe.createElement(We,{fieldId:Br,errors:Un,warnings:kr,help:Er,helpStatus:bn,className:`${Jt}-explain-connected`,onVisibleChanged:nn})),!!Pr&&pe.createElement("div",{style:{width:0,height:Pr}})):null,Nr={};Br&&(Nr.id=`${Br}_extra`);const In=Ir?pe.createElement("div",Object.assign({},Nr,{className:`${Jt}-extra`}),Ir):null,Gr=Zr&&Zr.mark==="pro_table_render"&&Zr.render?Zr.render(zt,{input:Vn,errorList:Sr,extra:In}):pe.createElement(pe.Fragment,null,Vn,Sr,In);return pe.createElement(z.q3.Provider,{value:Fn},pe.createElement(kt.Z,Object.assign({},Qn,{className:hr}),Gr),pe.createElement(Wt,{prefixCls:tn}))},_t=ve(17663),sn=ve(24457),Dt=ve(10110),xt=ve(83062),en=function(zt,tn){var bn={};for(var wn in zt)Object.prototype.hasOwnProperty.call(zt,wn)&&tn.indexOf(wn)<0&&(bn[wn]=zt[wn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,wn=Object.getOwnPropertySymbols(zt);zn<wn.length;zn++)tn.indexOf(wn[zn])<0&&Object.prototype.propertyIsEnumerable.call(zt,wn[zn])&&(bn[wn[zn]]=zt[wn[zn]]);return bn};function an(zt){return zt?typeof zt=="object"&&!pe.isValidElement(zt)?zt:{title:zt}:null}var Tn=zt=>{let{prefixCls:tn,label:bn,htmlFor:wn,labelCol:zn,labelAlign:Un,colon:kr,required:Zr,requiredMark:Ir,tooltip:Er}=zt;var Br;const[Pr]=(0,Dt.Z)("Form"),{vertical:nn,labelAlign:Jt,labelCol:pn,labelWrap:Qn,colon:hr}=pe.useContext(z.q3);if(!bn)return null;const Fn=zn||pn||{},Vn=Un||Jt,er=`${tn}-item-label`,Sr=x()(er,Vn==="left"&&`${er}-left`,Fn.className,{[`${er}-wrap`]:!!Qn});let Nr=bn;const In=kr===!0||hr!==!1&&kr!==!1;In&&!nn&&typeof bn=="string"&&bn.trim()!==""&&(Nr=bn.replace(/[:|:]\s*$/,""));const ei=an(Er);if(ei){const{icon:Oi=pe.createElement(_t.Z,null)}=ei,oa=en(ei,["icon"]),Bi=pe.createElement(xt.Z,Object.assign({},oa),pe.cloneElement(Oi,{className:`${tn}-item-tooltip`,title:""}));Nr=pe.createElement(pe.Fragment,null,Nr,Bi)}const aa=Ir==="optional",ca=typeof Ir=="function";ca?Nr=Ir(Nr,{required:!!Zr}):aa&&!Zr&&(Nr=pe.createElement(pe.Fragment,null,Nr,pe.createElement("span",{className:`${tn}-item-optional`,title:""},(Pr==null?void 0:Pr.optional)||((Br=sn.Z.Form)===null||Br===void 0?void 0:Br.optional))));const qi=x()({[`${tn}-item-required`]:Zr,[`${tn}-item-required-mark-optional`]:aa||ca,[`${tn}-item-no-colon`]:!In});return pe.createElement(kt.Z,Object.assign({},Fn,{className:Sr}),pe.createElement("label",{htmlFor:wn,className:qi,title:typeof bn=="string"?bn:""},Nr))},ar=ve(87725),pr=ve(16646),Ar=ve(87995),Dr=ve(3407);const dr={success:ar.Z,warning:Ar.Z,error:pr.Z,validating:Dr.Z};function zr(zt){let{children:tn,errors:bn,warnings:wn,hasFeedback:zn,validateStatus:Un,prefixCls:kr,meta:Zr,noStyle:Ir}=zt;const Er=`${kr}-item`,{feedbackIcons:Br}=pe.useContext(z.q3),Pr=ft(bn,wn,Zr,null,!!zn,Un),{isFormItemInput:nn,status:Jt}=pe.useContext(z.aM),pn=pe.useMemo(()=>{var Qn;let hr;if(zn){const er=zn!==!0&&zn.icons||Br,Sr=Pr&&((Qn=er==null?void 0:er({status:Pr,errors:bn,warnings:wn}))===null||Qn===void 0?void 0:Qn[Pr]),Nr=Pr&&dr[Pr];hr=Sr!==!1&&Nr?pe.createElement("span",{className:x()(`${Er}-feedback-icon`,`${Er}-feedback-icon-${Pr}`)},Sr||pe.createElement(Nr,null)):null}let Fn=!0,Vn=Pr||"";return Ir&&(Fn=nn,Vn=(Pr!=null?Pr:Jt)||""),{status:Vn,errors:bn,warnings:wn,hasFeedback:!!zn,feedbackIcon:hr,isFormItemInput:Fn}},[Pr,zn,Ir,nn,Jt]);return pe.createElement(z.aM.Provider,{value:pn},tn)}var ai=function(zt,tn){var bn={};for(var wn in zt)Object.prototype.hasOwnProperty.call(zt,wn)&&tn.indexOf(wn)<0&&(bn[wn]=zt[wn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,wn=Object.getOwnPropertySymbols(zt);zn<wn.length;zn++)tn.indexOf(wn[zn])<0&&Object.prototype.propertyIsEnumerable.call(zt,wn[zn])&&(bn[wn[zn]]=zt[wn[zn]]);return bn};function ki(zt){const{prefixCls:tn,className:bn,rootClassName:wn,style:zn,help:Un,errors:kr,warnings:Zr,validateStatus:Ir,meta:Er,hasFeedback:Br,hidden:Pr,children:nn,fieldId:Jt,required:pn,isRequired:Qn,onSubItemMetaChange:hr}=zt,Fn=ai(zt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Vn=`${tn}-item`,{requiredMark:er}=pe.useContext(z.q3),Sr=pe.useRef(null),Nr=ae(kr),In=ae(Zr),Gr=Un!=null,ei=!!(Gr||kr.length||Zr.length),aa=!!Sr.current&&(0,Ge.Z)(Sr.current),[ca,qi]=pe.useState(null);(0,it.Z)(()=>{if(ei&&Sr.current){const _a=getComputedStyle(Sr.current);qi(parseInt(_a.marginBottom,10))}},[ei,aa]);const Oi=_a=>{_a||qi(null)},Bi=function(){let _a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const _i=_a?Nr:Er.errors,ta=_a?In:Er.warnings;return ft(_i,ta,Er,"",!!Br,Ir)}(),Di=x()(Vn,bn,wn,{[`${Vn}-with-help`]:Gr||Nr.length||In.length,[`${Vn}-has-feedback`]:Bi&&Br,[`${Vn}-has-success`]:Bi==="success",[`${Vn}-has-warning`]:Bi==="warning",[`${Vn}-has-error`]:Bi==="error",[`${Vn}-is-validating`]:Bi==="validating",[`${Vn}-hidden`]:Pr});return pe.createElement("div",{className:Di,style:zn,ref:Sr},pe.createElement(Kt.Z,Object.assign({className:`${Vn}-row`},(0,gt.Z)(Fn,["_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"])),pe.createElement(Tn,Object.assign({htmlFor:Jt},zt,{requiredMark:er,required:pn!=null?pn:Qn,prefixCls:tn})),pe.createElement(Vt,Object.assign({},zt,Er,{errors:Nr,warnings:In,prefixCls:tn,status:Bi,help:Un,marginBottom:ca,onErrorVisibleChanged:Oi}),pe.createElement(z.qI.Provider,{value:hr},pe.createElement(zr,{prefixCls:tn,meta:Er,errors:Er.errors,warnings:Er.warnings,hasFeedback:Br,validateStatus:Bi},nn)))),!!ca&&pe.createElement("div",{className:`${Vn}-margin-offset`,style:{marginBottom:-ca}}))}const Ni="__SPLIT__",xi=null,cn=pe.memo(zt=>{let{children:tn}=zt;return tn},(zt,tn)=>zt.value===tn.value&&zt.update===tn.update&&zt.childProps.length===tn.childProps.length&&zt.childProps.every((bn,wn)=>bn===tn.childProps[wn]));function ir(zt){return zt!=null}function sr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Yn(zt){const{name:tn,noStyle:bn,className:wn,dependencies:zn,prefixCls:Un,shouldUpdate:kr,rules:Zr,children:Ir,required:Er,label:Br,messageVariables:Pr,trigger:nn="onChange",validateTrigger:Jt,hidden:pn,help:Qn}=zt,{getPrefixCls:hr}=pe.useContext(He.E_),{name:Fn}=pe.useContext(z.q3),Vn=xe(Ir),er=typeof Vn=="function",Sr=pe.useContext(z.qI),{validateTrigger:Nr}=pe.useContext(Be.FieldContext),In=Jt!==void 0?Jt:Nr,Gr=ir(tn),ei=hr("form",Un),[aa,ca]=De(ei),qi=pe.useContext(Be.ListContext),Oi=pe.useRef(),[oa,Bi]=Re({}),[Di,_a]=(0,dt.Z)(()=>sr()),_i=dn=>{const Kn=qi==null?void 0:qi.getKey(dn.name);if(_a(dn.destroy?sr():dn,!0),bn&&Qn!==!1&&Sr){let or=dn.name;if(dn.destroy)or=Oi.current||or;else if(Kn!==void 0){const[xr,Wr]=Kn;or=[xr].concat((0,Ue.Z)(Wr)),Oi.current=or}Sr(dn,or)}},ta=(dn,Kn)=>{Bi(or=>{const xr=Object.assign({},or),oi=[].concat((0,Ue.Z)(dn.name.slice(0,-1)),(0,Ue.Z)(Kn)).join(Ni);return dn.destroy?delete xr[oi]:xr[oi]=dn,xr})},[Ea,Va]=pe.useMemo(()=>{const dn=(0,Ue.Z)(Di.errors),Kn=(0,Ue.Z)(Di.warnings);return Object.values(oa).forEach(or=>{dn.push.apply(dn,(0,Ue.Z)(or.errors||[])),Kn.push.apply(Kn,(0,Ue.Z)(or.warnings||[]))}),[dn,Kn]},[oa,Di.errors,Di.warnings]),Na=Fe();function Pi(dn,Kn,or){return bn&&!pn?pe.createElement(zr,{prefixCls:ei,hasFeedback:zt.hasFeedback,validateStatus:zt.validateStatus,meta:Di,errors:Ea,warnings:Va,noStyle:!0},dn):pe.createElement(ki,Object.assign({key:"row"},zt,{className:x()(wn,ca),prefixCls:ei,fieldId:Kn,isRequired:or,errors:Ea,warnings:Va,meta:Di,onSubItemMetaChange:ta}),dn)}if(!Gr&&!er&&!zn)return aa(Pi(Vn));let yn={};return typeof Br=="string"?yn.label=Br:tn&&(yn.label=String(tn)),Pr&&(yn=Object.assign(Object.assign({},yn),Pr)),aa(pe.createElement(Be.Field,Object.assign({},zt,{messageVariables:yn,trigger:nn,validateTrigger:In,onMetaChange:_i}),(dn,Kn,or)=>{const xr=pt(tn).length&&Kn?Kn.name:[],Wr=mt(xr,Fn),oi=Er!==void 0?Er:!!(Zr&&Zr.some(mi=>{if(mi&&typeof mi=="object"&&mi.required&&!mi.warningOnly)return!0;if(typeof mi=="function"){const Li=mi(or);return Li&&Li.required&&!Li.warningOnly}return!1})),pi=Object.assign({},dn);let Ei=null;if(Array.isArray(Vn)&&Gr)Ei=Vn;else if(!(er&&(!(kr||zn)||Gr))){if(!(zn&&!er&&!Gr))if((0,Ke.l$)(Vn)){const mi=Object.assign(Object.assign({},Vn.props),pi);if(mi.id||(mi.id=Wr),Qn||Ea.length>0||Va.length>0||zt.extra){const ni=[];(Qn||Ea.length>0)&&ni.push(`${Wr}_help`),zt.extra&&ni.push(`${Wr}_extra`),mi["aria-describedby"]=ni.join(" ")}Ea.length>0&&(mi["aria-invalid"]="true"),oi&&(mi["aria-required"]="true"),(0,Ze.Yr)(Vn)&&(mi.ref=Na(xr,Vn)),new Set([].concat((0,Ue.Z)(pt(nn)),(0,Ue.Z)(pt(In)))).forEach(ni=>{mi[ni]=function(){for(var Mn,hn,On,Je,vt,Ct=arguments.length,It=new Array(Ct),At=0;At<Ct;At++)It[At]=arguments[At];(On=pi[ni])===null||On===void 0||(Mn=On).call.apply(Mn,[pi].concat(It)),(vt=(Je=Vn.props)[ni])===null||vt===void 0||(hn=vt).call.apply(hn,[Je].concat(It))}});const ea=[mi["aria-required"],mi["aria-invalid"],mi["aria-describedby"]];Ei=pe.createElement(cn,{value:pi[zt.valuePropName||"value"],update:Vn,childProps:ea},(0,Ke.Tm)(Vn,mi))}else er&&(kr||zn)&&!Gr?Ei=Vn(or):Ei=Vn}return Pi(Ei,Wr,oi)}))}const Rr=Yn;Rr.useStatus=$e;var Nn=Rr,Hn=function(zt,tn){var bn={};for(var wn in zt)Object.prototype.hasOwnProperty.call(zt,wn)&&tn.indexOf(wn)<0&&(bn[wn]=zt[wn]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,wn=Object.getOwnPropertySymbols(zt);zn<wn.length;zn++)tn.indexOf(wn[zn])<0&&Object.prototype.propertyIsEnumerable.call(zt,wn[zn])&&(bn[wn[zn]]=zt[wn[zn]]);return bn},Gt=zt=>{var{prefixCls:tn,children:bn}=zt,wn=Hn(zt,["prefixCls","children"]);const{getPrefixCls:zn}=pe.useContext(He.E_),Un=zn("form",tn),kr=pe.useMemo(()=>({prefixCls:Un,status:"error"}),[Un]);return pe.createElement(Be.List,Object.assign({},wn),(Zr,Ir,Er)=>pe.createElement(z.Rk.Provider,{value:kr},bn(Zr.map(Br=>Object.assign(Object.assign({},Br),{fieldKey:Br.key})),Ir,{errors:Er.errors,warnings:Er.warnings})))};function Xt(){const{form:zt}=(0,pe.useContext)(z.q3);return zt}const rn=Lt;rn.Item=Nn,rn.List=Gt,rn.ErrorList=We,rn.useForm=tt,rn.useFormInstance=Xt,rn.useWatch=Be.useWatch,rn.Provider=z.RV,rn.create=()=>{};var An=rn},25378:function(xn,Zt,ve){"use strict";var Ue=ve(67294),ot=ve(14075),x=ve(57838),ke=ve(74443);function pe(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const z=(0,Ue.useRef)({}),ae=(0,x.Z)(),re=(0,ke.ZP)();return(0,ot.Z)(()=>{const se=re.subscribe(me=>{z.current=me,ne&&ae()});return()=>re.unsubscribe(se)},[]),z.current}Zt.Z=pe},31795:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return jn}});var Ue=ve(42922),ot=ve(53978),x=ve(94184),ke=ve.n(x),pe=ve(87462),ne=ve(4942),z=ve(71002),ae=ve(97685),re=ve(45987),se=ve(15671),me=ve(43144);function ie(){return typeof BigInt=="function"}function le(Gt){return!Gt&&Gt!==0&&!Number.isNaN(Gt)||!String(Gt).trim()}function ue(Gt){var Xt=Gt.trim(),rn=Xt.startsWith("-");rn&&(Xt=Xt.slice(1)),Xt=Xt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Xt.startsWith(".")&&(Xt="0".concat(Xt));var An=Xt||"0",zt=An.split("."),tn=zt[0]||"0",bn=zt[1]||"0";tn==="0"&&bn==="0"&&(rn=!1);var wn=rn?"-":"";return{negative:rn,negativeStr:wn,trimStr:An,integerStr:tn,decimalStr:bn,fullStr:"".concat(wn).concat(An)}}function fe(Gt){var Xt=String(Gt);return!Number.isNaN(Number(Xt))&&Xt.includes("e")}function he(Gt){var Xt=String(Gt);if(fe(Gt)){var rn=Number(Xt.slice(Xt.indexOf("e-")+2)),An=Xt.match(/\.(\d+)/);return An!=null&&An[1]&&(rn+=An[1].length),rn}return Xt.includes(".")&&Se(Xt)?Xt.length-Xt.indexOf(".")-1:0}function oe(Gt){var Xt=String(Gt);if(fe(Gt)){if(Gt>Number.MAX_SAFE_INTEGER)return String(ie()?BigInt(Gt).toString():Number.MAX_SAFE_INTEGER);if(Gt<Number.MIN_SAFE_INTEGER)return String(ie()?BigInt(Gt).toString():Number.MIN_SAFE_INTEGER);Xt=Gt.toFixed(he(Xt))}return ue(Xt).fullStr}function Se(Gt){return typeof Gt=="number"?!Number.isNaN(Gt):Gt?/^\s*-?\d+(\.\d+)?\s*$/.test(Gt)||/^\s*-?\d+\.\s*$/.test(Gt)||/^\s*-?\.\d+\s*$/.test(Gt):!1}var Ce=function(){function Gt(Xt){if((0,se.Z)(this,Gt),(0,ne.Z)(this,"origin",""),(0,ne.Z)(this,"negative",void 0),(0,ne.Z)(this,"integer",void 0),(0,ne.Z)(this,"decimal",void 0),(0,ne.Z)(this,"decimalLen",void 0),(0,ne.Z)(this,"empty",void 0),(0,ne.Z)(this,"nan",void 0),le(Xt)){this.empty=!0;return}if(this.origin=String(Xt),Xt==="-"||Number.isNaN(Xt)){this.nan=!0;return}var rn=Xt;if(fe(rn)&&(rn=Number(rn)),rn=typeof rn=="string"?rn:oe(rn),Se(rn)){var An=ue(rn);this.negative=An.negative;var zt=An.trimStr.split(".");this.integer=BigInt(zt[0]);var tn=zt[1]||"0";this.decimal=BigInt(tn),this.decimalLen=tn.length}else this.nan=!0}return(0,me.Z)(Gt,[{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(rn){var An="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(rn,"0"));return BigInt(An)}},{key:"negate",value:function(){var rn=new Gt(this.toString());return rn.negative=!rn.negative,rn}},{key:"cal",value:function(rn,An,zt){var tn=Math.max(this.getDecimalStr().length,rn.getDecimalStr().length),bn=this.alignDecimal(tn),wn=rn.alignDecimal(tn),zn=An(bn,wn).toString(),Un=zt(tn),kr=ue(zn),Zr=kr.negativeStr,Ir=kr.trimStr,Er="".concat(Zr).concat(Ir.padStart(Un+1,"0"));return new Gt("".concat(Er.slice(0,-Un),".").concat(Er.slice(-Un)))}},{key:"add",value:function(rn){if(this.isInvalidate())return new Gt(rn);var An=new Gt(rn);return An.isInvalidate()?this:this.cal(An,function(zt,tn){return zt+tn},function(zt){return zt})}},{key:"multi",value:function(rn){var An=new Gt(rn);return this.isInvalidate()||An.isInvalidate()?new Gt(NaN):this.cal(An,function(zt,tn){return zt*tn},function(zt){return zt*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(rn){return this.toString()===(rn==null?void 0:rn.toString())}},{key:"lessEquals",value:function(rn){return this.add(rn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return rn?this.isInvalidate()?"":ue("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Gt}(),ye=function(){function Gt(Xt){if((0,se.Z)(this,Gt),(0,ne.Z)(this,"origin",""),(0,ne.Z)(this,"number",void 0),(0,ne.Z)(this,"empty",void 0),le(Xt)){this.empty=!0;return}this.origin=String(Xt),this.number=Number(Xt)}return(0,me.Z)(Gt,[{key:"negate",value:function(){return new Gt(-this.toNumber())}},{key:"add",value:function(rn){if(this.isInvalidate())return new Gt(rn);var An=Number(rn);if(Number.isNaN(An))return this;var zt=this.number+An;if(zt>Number.MAX_SAFE_INTEGER)return new Gt(Number.MAX_SAFE_INTEGER);if(zt<Number.MIN_SAFE_INTEGER)return new Gt(Number.MIN_SAFE_INTEGER);var tn=Math.max(he(this.number),he(An));return new Gt(zt.toFixed(tn))}},{key:"multi",value:function(rn){var An=Number(rn);if(this.isInvalidate()||Number.isNaN(An))return new Gt(NaN);var zt=this.number*An;if(zt>Number.MAX_SAFE_INTEGER)return new Gt(Number.MAX_SAFE_INTEGER);if(zt<Number.MIN_SAFE_INTEGER)return new Gt(Number.MIN_SAFE_INTEGER);var tn=Math.max(he(this.number),he(An));return new Gt(zt.toFixed(tn))}},{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(rn){return this.toNumber()===(rn==null?void 0:rn.toNumber())}},{key:"lessEquals",value:function(rn){return this.add(rn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return rn?this.isInvalidate()?"":oe(this.number):this.origin}}]),Gt}();function _e(Gt){return ie()?new Ce(Gt):new ye(Gt)}function Me(Gt,Xt,rn){var An=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Gt==="")return"";var zt=ue(Gt),tn=zt.negativeStr,bn=zt.integerStr,wn=zt.decimalStr,zn="".concat(Xt).concat(wn),Un="".concat(tn).concat(bn);if(rn>=0){var kr=Number(wn[rn]);if(kr>=5&&!An){var Zr=_e(Gt).add("".concat(tn,"0.").concat("0".repeat(rn)).concat(10-kr));return Me(Zr.toString(),Xt,rn,An)}return rn===0?Un:"".concat(Un).concat(Xt).concat(wn.padEnd(rn,"0").slice(0,rn))}return zn===".0"?Un:"".concat(Un).concat(zn)}var we=_e,Ne=ve(67656),Ae=ve(67294);function De(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ie=De()?Ae.useLayoutEffect:Ae.useEffect,Pe=function(Xt,rn){var An=Ae.useRef(!0);Ie(function(){return Xt(An.current)},rn),Ie(function(){return An.current=!1,function(){An.current=!0}},[])},Le=function(Xt,rn){Pe(function(An){if(!An)return Xt()},rn)},We=Pe,Be=ve(27183);function He(Gt,Xt,rn){var An=React.useRef({});return(!("value"in An.current)||rn(An.current.condition,Xt))&&(An.current.value=Gt(),An.current.condition=Xt),An.current.value}function Ye(Gt,Xt){typeof Gt=="function"?Gt(Xt):(0,z.Z)(Gt)==="object"&&Gt&&"current"in Gt&&(Gt.current=Xt)}function et(){for(var Gt=arguments.length,Xt=new Array(Gt),rn=0;rn<Gt;rn++)Xt[rn]=arguments[rn];var An=Xt.filter(function(zt){return zt});return An.length<=1?An[0]:function(zt){Xt.forEach(function(tn){Ye(tn,zt)})}}function st(){for(var Gt=arguments.length,Xt=new Array(Gt),rn=0;rn<Gt;rn++)Xt[rn]=arguments[rn];return useMemo(function(){return et.apply(void 0,Xt)},Xt,function(An,zt){return An.length!==zt.length||An.every(function(tn,bn){return tn!==zt[bn]})})}function yt(Gt){var Xt,rn,An=isMemo(Gt)?Gt.type.type:Gt.type;return!(typeof An=="function"&&!((Xt=An.prototype)!==null&&Xt!==void 0&&Xt.render)||typeof Gt=="function"&&!((rn=Gt.prototype)!==null&&rn!==void 0&&rn.render))}function Ve(Gt){return!isValidElement(Gt)||isFragment(Gt)?!1:yt(Gt)}var Qe={},pt=[],mt=function(Xt){pt.push(Xt)};function ft(Gt,Xt){if(0)var rn}function nt(Gt,Xt){if(0)var rn}function tt(){Qe={}}function rt(Gt,Xt,rn){!Xt&&!Qe[rn]&&(Gt(!1,rn),Qe[rn]=!0)}function Et(Gt,Xt){rt(ft,Gt,Xt)}function bt(Gt,Xt){rt(nt,Gt,Xt)}Et.preMessage=mt,Et.resetWarned=tt,Et.noteOnce=bt;var Pt=Et;function Lt(Gt,Xt){var rn=(0,Ae.useRef)(null);function An(){try{var tn=Gt.selectionStart,bn=Gt.selectionEnd,wn=Gt.value,zn=wn.substring(0,tn),Un=wn.substring(bn);rn.current={start:tn,end:bn,value:wn,beforeTxt:zn,afterTxt:Un}}catch(kr){}}function zt(){if(Gt&&rn.current&&Xt)try{var tn=Gt.value,bn=rn.current,wn=bn.beforeTxt,zn=bn.afterTxt,Un=bn.start,kr=tn.length;if(tn.endsWith(zn))kr=tn.length-rn.current.afterTxt.length;else if(tn.startsWith(wn))kr=wn.length;else{var Zr=wn[Un-1],Ir=tn.indexOf(Zr,Un-1);Ir!==-1&&(kr=Ir+1)}Gt.setSelectionRange(kr,kr)}catch(Er){Pt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Er.message))}}return[An,zt]}var dt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Gt=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(Gt)||/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(Gt==null?void 0:Gt.substr(0,4))},Ze=function(){var Xt=(0,Ae.useState)(!1),rn=(0,ae.Z)(Xt,2),An=rn[0],zt=rn[1];return We(function(){zt(dt())},[]),An},Ke=Ze,de=function(Xt){return+setTimeout(Xt,16)},xe=function(Xt){return clearTimeout(Xt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(de=function(Xt){return window.requestAnimationFrame(Xt)},xe=function(Xt){return window.cancelAnimationFrame(Xt)});var ze=0,$e=new Map;function Ee(Gt){$e.delete(Gt)}var Re=function(Xt){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ze+=1;var An=ze;function zt(tn){if(tn===0)Ee(An),Xt();else{var bn=de(function(){zt(tn-1)});$e.set(An,bn)}}return zt(rn),An};Re.cancel=function(Gt){var Xt=$e.get(Gt);return Ee(Xt),xe(Xt)};var Fe=Re,Ge=200,it=600;function gt(Gt){var Xt=Gt.prefixCls,rn=Gt.upNode,An=Gt.downNode,zt=Gt.upDisabled,tn=Gt.downDisabled,bn=Gt.onStep,wn=Ae.useRef(),zn=Ae.useRef([]),Un=Ae.useRef();Un.current=bn;var kr=function(){clearTimeout(wn.current)},Zr=function(Qn,hr){Qn.preventDefault(),kr(),Un.current(hr);function Fn(){Un.current(hr),wn.current=setTimeout(Fn,Ge)}wn.current=setTimeout(Fn,it)};Ae.useEffect(function(){return function(){kr(),zn.current.forEach(function(pn){return Fe.cancel(pn)})}},[]);var Ir=Ke();if(Ir)return null;var Er="".concat(Xt,"-handler"),Br=ke()(Er,"".concat(Er,"-up"),(0,ne.Z)({},"".concat(Er,"-up-disabled"),zt)),Pr=ke()(Er,"".concat(Er,"-down"),(0,ne.Z)({},"".concat(Er,"-down-disabled"),tn)),nn=function(){return zn.current.push(Fe(kr))},Jt={unselectable:"on",role:"button",onMouseUp:nn,onMouseLeave:nn};return Ae.createElement("div",{className:"".concat(Er,"-wrap")},Ae.createElement("span",(0,pe.Z)({},Jt,{onMouseDown:function(Qn){Zr(Qn,!0)},"aria-label":"Increase Value","aria-disabled":zt,className:Br}),rn||Ae.createElement("span",{unselectable:"on",className:"".concat(Xt,"-handler-up-inner")})),Ae.createElement("span",(0,pe.Z)({},Jt,{onMouseDown:function(Qn){Zr(Qn,!1)},"aria-label":"Decrease Value","aria-disabled":tn,className:Pr}),An||Ae.createElement("span",{unselectable:"on",className:"".concat(Xt,"-handler-down-inner")})))}function Kt(Gt){var Xt=typeof Gt=="number"?oe(Gt):ue(Gt).fullStr,rn=Xt.includes(".");return rn?ue(Xt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Gt+"0"}var kt=ve(87887),St=function(){var Gt=(0,Ae.useRef)(0),Xt=function(){Fe.cancel(Gt.current)};return(0,Ae.useEffect)(function(){return Xt},[]),function(rn){Xt(),Gt.current=Fe(function(){rn()})}},Wt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],jt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Vt=function(Xt,rn){return Xt||rn.isEmpty()?rn.toString():rn.toNumber()},_t=function(Xt){var rn=we(Xt);return rn.isInvalidate()?null:rn},sn=Ae.forwardRef(function(Gt,Xt){var rn,An=Gt.prefixCls,zt=An===void 0?"rc-input-number":An,tn=Gt.className,bn=Gt.style,wn=Gt.min,zn=Gt.max,Un=Gt.step,kr=Un===void 0?1:Un,Zr=Gt.defaultValue,Ir=Gt.value,Er=Gt.disabled,Br=Gt.readOnly,Pr=Gt.upHandler,nn=Gt.downHandler,Jt=Gt.keyboard,pn=Gt.controls,Qn=pn===void 0?!0:pn,hr=Gt.classNames,Fn=Gt.stringMode,Vn=Gt.parser,er=Gt.formatter,Sr=Gt.precision,Nr=Gt.decimalSeparator,In=Gt.onChange,Gr=Gt.onInput,ei=Gt.onPressEnter,aa=Gt.onStep,ca=(0,re.Z)(Gt,Wt),qi="".concat(zt,"-input"),Oi=Ae.useRef(null),oa=Ae.useState(!1),Bi=(0,ae.Z)(oa,2),Di=Bi[0],_a=Bi[1],_i=Ae.useRef(!1),ta=Ae.useRef(!1),Ea=Ae.useRef(!1),Va=Ae.useState(function(){return we(Ir!=null?Ir:Zr)}),Na=(0,ae.Z)(Va,2),Pi=Na[0],yn=Na[1];function dn(rr){Ir===void 0&&yn(rr)}var Kn=Ae.useCallback(function(rr,lr){if(!lr)return Sr>=0?Sr:Math.max(he(rr),he(kr))},[Sr,kr]),or=Ae.useCallback(function(rr){var lr=String(rr);if(Vn)return Vn(lr);var fr=lr;return Nr&&(fr=fr.replace(Nr,".")),fr.replace(/[^\w.-]+/g,"")},[Vn,Nr]),xr=Ae.useRef(""),Wr=Ae.useCallback(function(rr,lr){if(er)return er(rr,{userTyping:lr,input:String(xr.current)});var fr=typeof rr=="number"?oe(rr):rr;if(!lr){var yr=Kn(fr,lr);if(Se(fr)&&(Nr||yr>=0)){var Mr=Nr||".";fr=Me(fr,Mr,yr)}}return fr},[er,Kn,Nr]),oi=Ae.useState(function(){var rr=Zr!=null?Zr:Ir;return Pi.isInvalidate()&&["string","number"].includes((0,z.Z)(rr))?Number.isNaN(rr)?"":rr:Wr(Pi.toString(),!1)}),pi=(0,ae.Z)(oi,2),Ei=pi[0],mi=pi[1];xr.current=Ei;function Li(rr,lr){mi(Wr(rr.isInvalidate()?rr.toString(!1):rr.toString(!lr),lr))}var ea=Ae.useMemo(function(){return _t(zn)},[zn,Sr]),ni=Ae.useMemo(function(){return _t(wn)},[wn,Sr]),Mn=Ae.useMemo(function(){return!ea||!Pi||Pi.isInvalidate()?!1:ea.lessEquals(Pi)},[ea,Pi]),hn=Ae.useMemo(function(){return!ni||!Pi||Pi.isInvalidate()?!1:Pi.lessEquals(ni)},[ni,Pi]),On=Lt(Oi.current,Di),Je=(0,ae.Z)(On,2),vt=Je[0],Ct=Je[1],It=function(lr){return ea&&!lr.lessEquals(ea)?ea:ni&&!ni.lessEquals(lr)?ni:null},At=function(lr){return!It(lr)},Bt=function(lr,fr){var yr=lr,Mr=At(yr)||yr.isEmpty();if(!yr.isEmpty()&&!fr&&(yr=It(yr)||yr,Mr=!0),!Br&&!Er&&Mr){var Ot=yr.toString(),Rt=Kn(Ot,fr);return Rt>=0&&(yr=we(Me(Ot,".",Rt)),At(yr)||(yr=we(Me(Ot,".",Rt,!0)))),yr.equals(Pi)||(dn(yr),In==null||In(yr.isEmpty()?null:Vt(Fn,yr)),Ir===void 0&&Li(yr,fr)),yr}return Pi},Ft=St(),on=function rr(lr){if(vt(),xr.current=lr,mi(lr),!ta.current){var fr=or(lr),yr=we(fr);yr.isNaN()||Bt(yr,!0)}Gr==null||Gr(lr),Ft(function(){var Mr=lr;Vn||(Mr=lr.replace(/。/g,".")),Mr!==lr&&rr(Mr)})},gn=function(){ta.current=!0},Ln=function(){ta.current=!1,on(Oi.current.value)},qn=function(lr){on(lr.target.value)},Zn=function(lr){var fr;if(!(lr&&Mn||!lr&&hn)){_i.current=!1;var yr=we(Ea.current?Kt(kr):kr);lr||(yr=yr.negate());var Mr=(Pi||we(0)).add(yr.toString()),Ot=Bt(Mr,!1);aa==null||aa(Vt(Fn,Ot),{offset:Ea.current?Kt(kr):kr,type:lr?"up":"down"}),(fr=Oi.current)===null||fr===void 0||fr.focus()}},Pn=function(lr){var fr=we(or(Ei)),yr=fr;fr.isNaN()?yr=Bt(Pi,lr):yr=Bt(fr,lr),Ir!==void 0?Li(Pi,!1):yr.isNaN()||Li(yr,!1)},Bn=function(){_i.current=!0},Sn=function(lr){var fr=lr.key,yr=lr.shiftKey;_i.current=!0,Ea.current=yr,fr==="Enter"&&(ta.current||(_i.current=!1),Pn(!1),ei==null||ei(lr)),Jt!==!1&&!ta.current&&["Up","ArrowUp","Down","ArrowDown"].includes(fr)&&(Zn(fr==="Up"||fr==="ArrowUp"),lr.preventDefault())},Xn=function(){_i.current=!1,Ea.current=!1},vr=function(){Pn(!1),_a(!1),_i.current=!1};return Le(function(){Pi.isInvalidate()||Li(Pi,!1)},[Sr]),Le(function(){var rr=we(Ir);yn(rr);var lr=we(or(Ei));(!rr.equals(lr)||!_i.current||er)&&Li(rr,_i.current)},[Ir]),Le(function(){er&&Ct()},[Ei]),Ae.createElement("div",{className:ke()(zt,hr==null?void 0:hr.input,tn,(rn={},(0,ne.Z)(rn,"".concat(zt,"-focused"),Di),(0,ne.Z)(rn,"".concat(zt,"-disabled"),Er),(0,ne.Z)(rn,"".concat(zt,"-readonly"),Br),(0,ne.Z)(rn,"".concat(zt,"-not-a-number"),Pi.isNaN()),(0,ne.Z)(rn,"".concat(zt,"-out-of-range"),!Pi.isInvalidate()&&!At(Pi)),rn)),style:bn,onFocus:function(){_a(!0)},onBlur:vr,onKeyDown:Sn,onKeyUp:Xn,onCompositionStart:gn,onCompositionEnd:Ln,onBeforeInput:Bn},Qn&&Ae.createElement(gt,{prefixCls:zt,upNode:Pr,downNode:nn,upDisabled:Mn,downDisabled:hn,onStep:Zn}),Ae.createElement("div",{className:"".concat(qi,"-wrap")},Ae.createElement("input",(0,pe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":wn,"aria-valuemax":zn,"aria-valuenow":Pi.isInvalidate()?null:Pi.toString(),step:kr},ca,{ref:et(Oi,Xt),className:qi,value:Ei,onChange:qn,disabled:Er,readOnly:Br}))))}),Dt=Ae.forwardRef(function(Gt,Xt){var rn=Gt.disabled,An=Gt.style,zt=Gt.prefixCls,tn=Gt.value,bn=Gt.prefix,wn=Gt.suffix,zn=Gt.addonBefore,Un=Gt.addonAfter,kr=Gt.classes,Zr=Gt.className,Ir=Gt.classNames,Er=(0,re.Z)(Gt,jt),Br=Ae.useRef(null),Pr=function(Jt){Br.current&&(0,kt.nH)(Br.current,Jt)};return Ae.createElement(Ne.BaseInput,{inputElement:Ae.createElement(sn,(0,pe.Z)({prefixCls:zt,disabled:rn,classNames:Ir,ref:et(Br,Xt)},Er)),className:Zr,triggerFocus:Pr,prefixCls:zt,value:tn,disabled:rn,style:An,prefix:bn,suffix:wn,addonAfter:Un,addonBefore:zn,classes:kr,classNames:Ir,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Dt.displayName="InputNumber";var xt=Dt,en=xt,an=ve(9708),fn=ve(53124),Tn=ve(46735),ar=ve(98866),pr=ve(98675),Ar=ve(65223),Dr=ve(4173),dr=ve(47673),zr=ve(14747),ai=ve(80110),ki=ve(67968),Ni=ve(45503);const xi=(Gt,Xt)=>{let{componentCls:rn,borderRadiusSM:An,borderRadiusLG:zt}=Gt;const tn=Xt==="lg"?zt:An;return{[`&-${Xt}`]:{[`${rn}-handler-wrap`]:{borderStartEndRadius:tn,borderEndEndRadius:tn},[`${rn}-handler-up`]:{borderStartEndRadius:tn},[`${rn}-handler-down`]:{borderEndEndRadius:tn}}}},cn=Gt=>{const{componentCls:Xt,lineWidth:rn,lineType:An,colorBorder:zt,borderRadius:tn,fontSizeLG:bn,controlHeightLG:wn,controlHeightSM:zn,colorError:Un,paddingInlineSM:kr,colorTextDescription:Zr,motionDurationMid:Ir,handleHoverColor:Er,paddingInline:Br,paddingBlock:Pr,handleBg:nn,handleActiveBg:Jt,colorTextDisabled:pn,borderRadiusSM:Qn,borderRadiusLG:hr,controlWidth:Fn,handleVisible:Vn,handleBorderColor:er}=Gt;return[{[Xt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,zr.Wf)(Gt)),(0,dr.ik)(Gt)),(0,dr.bi)(Gt,Xt)),{display:"inline-block",width:Fn,margin:0,padding:0,border:`${rn}px ${An} ${zt}`,borderRadius:tn,"&-rtl":{direction:"rtl",[`${Xt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:bn,borderRadius:hr,[`input${Xt}-input`]:{height:wn-2*rn}},"&-sm":{padding:0,borderRadius:Qn,[`input${Xt}-input`]:{height:zn-2*rn,padding:`0 ${kr}px`}},"&:hover":Object.assign({},(0,dr.pU)(Gt)),"&-focused":Object.assign({},(0,dr.M1)(Gt)),"&-out-of-range":{[`${Xt}-input-wrap`]:{input:{color:Un}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,zr.Wf)(Gt)),(0,dr.s7)(Gt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Xt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Xt}-group-addon`]:{borderRadius:hr,fontSize:Gt.fontSizeLG}},"&-sm":{[`${Xt}-group-addon`]:{borderRadius:Qn}},[`${Xt}-wrapper-disabled > ${Xt}-group-addon`]:Object.assign({},(0,dr.Xy)(Gt))}}),[`&-disabled ${Xt}-input`]:{cursor:"not-allowed"},[Xt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,zr.Wf)(Gt)),{width:"100%",padding:`${Pr}px ${Br}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:tn,outline:0,transition:`all ${Ir} linear`,appearance:"textfield",fontSize:"inherit"}),(0,dr.nz)(Gt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Xt]:Object.assign(Object.assign(Object.assign({[`&:hover ${Xt}-handler-wrap, &-focused ${Xt}-handler-wrap`]:{opacity:1},[`${Xt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Gt.handleWidth,height:"100%",background:nn,borderStartStartRadius:0,borderStartEndRadius:tn,borderEndEndRadius:tn,borderEndStartRadius:0,opacity:Vn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Ir} linear ${Ir}`,[`${Xt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Xt}-handler-up-inner,
|
|
|
${Xt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Gt.handleFontSize}}},[`${Xt}-handler`]:{height:"50%",overflow:"hidden",color:Zr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${rn}px ${An} ${er}`,transition:`all ${Ir} linear`,"&:active":{background:Jt},"&:hover":{height:"60%",[`
|
|
|
${Xt}-handler-up-inner,
|
|
|
${Xt}-handler-down-inner
|
|
|
`]:{color:Er}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,zr.Ro)()),{color:Zr,transition:`all ${Ir} linear`,userSelect:"none"})},[`${Xt}-handler-up`]:{borderStartEndRadius:tn},[`${Xt}-handler-down`]:{borderBlockStart:`${rn}px ${An} ${er}`,borderEndEndRadius:tn}},xi(Gt,"lg")),xi(Gt,"sm")),{"&-disabled, &-readonly":{[`${Xt}-handler-wrap`]:{display:"none"},[`${Xt}-input`]:{color:"inherit"}},[`
|
|
|
${Xt}-handler-up-disabled,
|
|
|
${Xt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Xt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Xt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:pn}})},{[`${Xt}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Xt}-handler-down`]:{borderBlockStartWidth:0}}}]},ir=Gt=>{const{componentCls:Xt,paddingBlock:rn,paddingInline:An,inputAffixPadding:zt,controlWidth:tn,borderRadiusLG:bn,borderRadiusSM:wn}=Gt;return{[`${Xt}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,dr.ik)(Gt)),(0,dr.bi)(Gt,`${Xt}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:tn,padding:0,paddingInlineStart:An,"&-lg":{borderRadius:bn},"&-sm":{borderRadius:wn},[`&:not(${Xt}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,dr.pU)(Gt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Xt}-disabled`]:{background:"transparent"},[`> div${Xt}`]:{width:"100%",border:"none",outline:"none",[`&${Xt}-focused`]:{boxShadow:"none !important"}},[`input${Xt}-input`]:{padding:`${rn}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Xt}-handler-wrap`]:{zIndex:2},[Xt]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:zt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:An,marginInlineStart:zt}}})}};var sr=(0,ki.Z)("InputNumber",Gt=>{const Xt=(0,Ni.TS)(Gt,(0,dr.e5)(Gt));return[cn(Xt),ir(Xt),(0,ai.c)(Xt)]},Gt=>Object.assign(Object.assign({},(0,dr.TM)(Gt)),{controlWidth:90,handleWidth:Gt.controlHeightSM-Gt.lineWidth*2,handleFontSize:Gt.fontSize/2,handleVisible:"auto",handleActiveBg:Gt.colorFillAlter,handleBg:Gt.colorBgContainer,handleHoverColor:Gt.colorPrimary,handleBorderColor:Gt.colorBorder})),Yn=function(Gt,Xt){var rn={};for(var An in Gt)Object.prototype.hasOwnProperty.call(Gt,An)&&Xt.indexOf(An)<0&&(rn[An]=Gt[An]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,An=Object.getOwnPropertySymbols(Gt);zt<An.length;zt++)Xt.indexOf(An[zt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,An[zt])&&(rn[An[zt]]=Gt[An[zt]]);return rn};const Rr=Ae.forwardRef((Gt,Xt)=>{const{getPrefixCls:rn,direction:An}=Ae.useContext(fn.E_),zt=Ae.useRef(null);Ae.useImperativeHandle(Xt,()=>zt.current);const{className:tn,rootClassName:bn,size:wn,disabled:zn,prefixCls:Un,addonBefore:kr,addonAfter:Zr,prefix:Ir,bordered:Er=!0,readOnly:Br,status:Pr,controls:nn}=Gt,Jt=Yn(Gt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),pn=rn("input-number",Un),[Qn,hr]=sr(pn),{compactSize:Fn,compactItemClassnames:Vn}=(0,Dr.ri)(pn,An);let er=Ae.createElement(ot.Z,{className:`${pn}-handler-up-inner`}),Sr=Ae.createElement(Ue.Z,{className:`${pn}-handler-down-inner`});const Nr=typeof nn=="boolean"?nn:void 0;typeof nn=="object"&&(er=typeof nn.upIcon=="undefined"?er:Ae.createElement("span",{className:`${pn}-handler-up-inner`},nn.upIcon),Sr=typeof nn.downIcon=="undefined"?Sr:Ae.createElement("span",{className:`${pn}-handler-down-inner`},nn.downIcon));const{hasFeedback:In,status:Gr,isFormItemInput:ei,feedbackIcon:aa}=Ae.useContext(Ar.aM),ca=(0,an.F)(Gr,Pr),qi=(0,pr.Z)(_i=>{var ta;return(ta=wn!=null?wn:Fn)!==null&&ta!==void 0?ta:_i}),Oi=Ae.useContext(ar.Z),oa=zn!=null?zn:Oi,Bi=ke()({[`${pn}-lg`]:qi==="large",[`${pn}-sm`]:qi==="small",[`${pn}-rtl`]:An==="rtl",[`${pn}-borderless`]:!Er,[`${pn}-in-form-item`]:ei},(0,an.Z)(pn,ca),Vn,hr),Di=`${pn}-group`,_a=Ae.createElement(en,Object.assign({ref:zt,disabled:oa,className:ke()(tn,bn),upHandler:er,downHandler:Sr,prefixCls:pn,readOnly:Br,controls:Nr,prefix:Ir,suffix:In&&aa,addonAfter:Zr&&Ae.createElement(Dr.BR,null,Ae.createElement(Ar.Ux,{override:!0,status:!0},Zr)),addonBefore:kr&&Ae.createElement(Dr.BR,null,Ae.createElement(Ar.Ux,{override:!0,status:!0},kr)),classNames:{input:Bi},classes:{affixWrapper:ke()((0,an.Z)(`${pn}-affix-wrapper`,ca,In),{[`${pn}-affix-wrapper-sm`]:qi==="small",[`${pn}-affix-wrapper-lg`]:qi==="large",[`${pn}-affix-wrapper-rtl`]:An==="rtl",[`${pn}-affix-wrapper-borderless`]:!Er},hr),wrapper:ke()({[`${Di}-rtl`]:An==="rtl",[`${pn}-wrapper-disabled`]:oa},hr),group:ke()({[`${pn}-group-wrapper-sm`]:qi==="small",[`${pn}-group-wrapper-lg`]:qi==="large",[`${pn}-group-wrapper-rtl`]:An==="rtl"},(0,an.Z)(`${pn}-group-wrapper`,ca,In),hr)}},Jt));return Qn(_a)}),Nn=Rr,Hn=Gt=>Ae.createElement(Tn.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ae.createElement(Rr,Object.assign({},Gt)));Nn._InternalPanelDoNotUseOrYouWillBeFired=Hn;var jn=Nn},82586:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Ce},n:function(){return oe}});var Ue=ve(16646),ot=ve(94184),x=ve.n(ot),ke=ve(67656),pe=ve(17799),ne=ve(67294),z=ve(9708),ae=ve(53124),re=ve(98866),se=ve(98675),me=ve(65223),ie=ve(4173),le=ve(72922),ue=ve(47673);function fe(ye){return!!(ye.prefix||ye.suffix||ye.allowClear)}var he=function(ye,_e){var Me={};for(var we in ye)Object.prototype.hasOwnProperty.call(ye,we)&&_e.indexOf(we)<0&&(Me[we]=ye[we]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,we=Object.getOwnPropertySymbols(ye);Ne<we.length;Ne++)_e.indexOf(we[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ye,we[Ne])&&(Me[we[Ne]]=ye[we[Ne]]);return Me};function oe(ye,_e){if(!ye)return;ye.focus(_e);const{cursor:Me}=_e||{};if(Me){const we=ye.value.length;switch(Me){case"start":ye.setSelectionRange(0,0);break;case"end":ye.setSelectionRange(we,we);break;default:ye.setSelectionRange(0,we);break}}}var Ce=(0,ne.forwardRef)((ye,_e)=>{var Me;const{prefixCls:we,bordered:Ne=!0,status:Ae,size:De,disabled:Ie,onBlur:Pe,onFocus:Le,suffix:We,allowClear:Be,addonAfter:He,addonBefore:Ye,className:et,style:st,styles:yt,rootClassName:Ve,onChange:Qe,classNames:pt}=ye,mt=he(ye,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ft,direction:nt,input:tt}=ne.useContext(ae.E_),rt=ft("input",we),Et=(0,ne.useRef)(null),[bt,Pt]=(0,ue.ZP)(rt),{compactSize:Lt,compactItemClassnames:dt}=(0,ie.ri)(rt,nt),Ze=(0,se.Z)(Wt=>{var jt;return(jt=De!=null?De:Lt)!==null&&jt!==void 0?jt:Wt}),Ke=ne.useContext(re.Z),de=Ie!=null?Ie:Ke,{status:xe,hasFeedback:ze,feedbackIcon:$e}=(0,ne.useContext)(me.aM),Ee=(0,z.F)(xe,Ae),Re=fe(ye)||!!ze,Fe=(0,ne.useRef)(Re);(0,ne.useEffect)(()=>{var Wt;Re&&Fe.current,Fe.current=Re},[Re]);const Ge=(0,le.Z)(Et,!0),it=Wt=>{Ge(),Pe==null||Pe(Wt)},gt=Wt=>{Ge(),Le==null||Le(Wt)},Kt=Wt=>{Ge(),Qe==null||Qe(Wt)},kt=(ze||We)&&ne.createElement(ne.Fragment,null,We,ze&&$e);let St;return typeof Be=="object"&&(Be!=null&&Be.clearIcon)?St=Be:Be&&(St={clearIcon:ne.createElement(Ue.Z,null)}),bt(ne.createElement(ke.default,Object.assign({ref:(0,pe.sQ)(_e,Et),prefixCls:rt,autoComplete:tt==null?void 0:tt.autoComplete},mt,{disabled:de,onBlur:it,onFocus:gt,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),st),styles:Object.assign(Object.assign({},tt==null?void 0:tt.styles),yt),suffix:kt,allowClear:St,className:x()(et,Ve,dt,tt==null?void 0:tt.className),onChange:Kt,addonAfter:He&&ne.createElement(ie.BR,null,ne.createElement(me.Ux,{override:!0,status:!0},He)),addonBefore:Ye&&ne.createElement(ie.BR,null,ne.createElement(me.Ux,{override:!0,status:!0},Ye)),classNames:Object.assign(Object.assign(Object.assign({},pt),tt==null?void 0:tt.classNames),{input:x()({[`${rt}-sm`]:Ze==="small",[`${rt}-lg`]:Ze==="large",[`${rt}-rtl`]:nt==="rtl",[`${rt}-borderless`]:!Ne},!Re&&(0,z.Z)(rt,Ee),pt==null?void 0:pt.input,(Me=tt==null?void 0:tt.classNames)===null||Me===void 0?void 0:Me.input,Pt)}),classes:{affixWrapper:x()({[`${rt}-affix-wrapper-sm`]:Ze==="small",[`${rt}-affix-wrapper-lg`]:Ze==="large",[`${rt}-affix-wrapper-rtl`]:nt==="rtl",[`${rt}-affix-wrapper-borderless`]:!Ne},(0,z.Z)(`${rt}-affix-wrapper`,Ee,ze),Pt),wrapper:x()({[`${rt}-group-rtl`]:nt==="rtl"},Pt),group:x()({[`${rt}-group-wrapper-sm`]:Ze==="small",[`${rt}-group-wrapper-lg`]:Ze==="large",[`${rt}-group-wrapper-rtl`]:nt==="rtl",[`${rt}-group-wrapper-disabled`]:de},(0,z.Z)(`${rt}-group-wrapper`,Ee,ze),Pt)}})))})},96330:function(xn,Zt,ve){"use strict";var Ue=ve(16646),ot=ve(94184),x=ve.n(ot),ke=ve(64701),pe=ve(67294),ne=ve(9708),z=ve(53124),ae=ve(98866),re=ve(98675),se=ve(65223),me=ve(82586),ie=ve(47673),le=function(fe,he){var oe={};for(var Se in fe)Object.prototype.hasOwnProperty.call(fe,Se)&&he.indexOf(Se)<0&&(oe[Se]=fe[Se]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Se=Object.getOwnPropertySymbols(fe);Ce<Se.length;Ce++)he.indexOf(Se[Ce])<0&&Object.prototype.propertyIsEnumerable.call(fe,Se[Ce])&&(oe[Se[Ce]]=fe[Se[Ce]]);return oe};const ue=(0,pe.forwardRef)((fe,he)=>{const{prefixCls:oe,bordered:Se=!0,size:Ce,disabled:ye,status:_e,allowClear:Me,showCount:we,classNames:Ne,rootClassName:Ae,className:De}=fe,Ie=le(fe,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Pe,direction:Le}=pe.useContext(z.E_),We=(0,re.Z)(Ce),Be=pe.useContext(ae.Z),He=ye!=null?ye:Be,{status:Ye,hasFeedback:et,feedbackIcon:st}=pe.useContext(se.aM),yt=(0,ne.F)(Ye,_e),Ve=pe.useRef(null);pe.useImperativeHandle(he,()=>{var nt;return{resizableTextArea:(nt=Ve.current)===null||nt===void 0?void 0:nt.resizableTextArea,focus:tt=>{var rt,Et;(0,me.n)((Et=(rt=Ve.current)===null||rt===void 0?void 0:rt.resizableTextArea)===null||Et===void 0?void 0:Et.textArea,tt)},blur:()=>{var tt;return(tt=Ve.current)===null||tt===void 0?void 0:tt.blur()}}});const Qe=Pe("input",oe);let pt;typeof Me=="object"&&(Me!=null&&Me.clearIcon)?pt=Me:Me&&(pt={clearIcon:pe.createElement(Ue.Z,null)});const[mt,ft]=(0,ie.ZP)(Qe);return mt(pe.createElement(ke.default,Object.assign({},Ie,{disabled:He,allowClear:pt,className:x()(De,Ae),classes:{affixWrapper:x()(`${Qe}-textarea-affix-wrapper`,{[`${Qe}-affix-wrapper-rtl`]:Le==="rtl",[`${Qe}-affix-wrapper-borderless`]:!Se,[`${Qe}-affix-wrapper-sm`]:We==="small",[`${Qe}-affix-wrapper-lg`]:We==="large",[`${Qe}-textarea-show-count`]:we},(0,ne.Z)(`${Qe}-affix-wrapper`,yt),ft)},classNames:Object.assign(Object.assign({},Ne),{textarea:x()({[`${Qe}-borderless`]:!Se,[`${Qe}-sm`]:We==="small",[`${Qe}-lg`]:We==="large"},(0,ne.Z)(Qe,yt),ft,Ne==null?void 0:Ne.textarea)}),prefixCls:Qe,suffix:et&&pe.createElement("span",{className:`${Qe}-textarea-suffix`},st),showCount:we,ref:Ve})))});Zt.Z=ue},72922:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ot}});var Ue=ve(67294);function ot(x,ke){const pe=(0,Ue.useRef)([]),ne=()=>{pe.current.push(setTimeout(()=>{var z,ae,re,se;!((z=x.current)===null||z===void 0)&&z.input&&((ae=x.current)===null||ae===void 0?void 0:ae.input.getAttribute("type"))==="password"&&(!((re=x.current)===null||re===void 0)&&re.input.hasAttribute("value"))&&((se=x.current)===null||se===void 0||se.input.removeAttribute("value"))}))};return(0,Ue.useEffect)(()=>(ke&&ne(),()=>pe.current.forEach(z=>{z&&clearTimeout(z)})),[]),ne}},69677:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return We}});var Ue=ve(94184),ot=ve.n(Ue),x=ve(67294),ke=ve(53124),pe=ve(65223),ne=ve(47673),ae=Be=>{const{getPrefixCls:He,direction:Ye}=(0,x.useContext)(ke.E_),{prefixCls:et,className:st}=Be,yt=He("input-group",et),Ve=He("input"),[Qe,pt]=(0,ne.ZP)(Ve),mt=ot()(yt,{[`${yt}-lg`]:Be.size==="large",[`${yt}-sm`]:Be.size==="small",[`${yt}-compact`]:Be.compact,[`${yt}-rtl`]:Ye==="rtl"},pt,st),ft=(0,x.useContext)(pe.aM),nt=(0,x.useMemo)(()=>Object.assign(Object.assign({},ft),{isFormItemInput:!1}),[ft]);return Qe(x.createElement("span",{className:mt,style:Be.style,onMouseEnter:Be.onMouseEnter,onMouseLeave:Be.onMouseLeave,onFocus:Be.onFocus,onBlur:Be.onBlur},x.createElement(pe.aM.Provider,{value:nt},Be.children)))},re=ve(82586),se=ve(63237),me=ve(99569),ie=ve(10366),le=ve(17799),ue=ve(72922),fe=function(Be,He){var Ye={};for(var et in Be)Object.prototype.hasOwnProperty.call(Be,et)&&He.indexOf(et)<0&&(Ye[et]=Be[et]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Be);st<et.length;st++)He.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Be,et[st])&&(Ye[et[st]]=Be[et[st]]);return Ye};const he=Be=>Be?x.createElement(me.Z,null):x.createElement(se.Z,null),oe={click:"onClick",hover:"onMouseOver"};var Ce=x.forwardRef((Be,He)=>{const{visibilityToggle:Ye=!0}=Be,et=typeof Ye=="object"&&Ye.visible!==void 0,[st,yt]=(0,x.useState)(()=>et?Ye.visible:!1),Ve=(0,x.useRef)(null);x.useEffect(()=>{et&&yt(Ye.visible)},[et,Ye]);const Qe=(0,ue.Z)(Ve),pt=()=>{const{disabled:de}=Be;de||(st&&Qe(),yt(xe=>{var ze;const $e=!xe;return typeof Ye=="object"&&((ze=Ye.onVisibleChange)===null||ze===void 0||ze.call(Ye,$e)),$e}))},mt=de=>{const{action:xe="click",iconRender:ze=he}=Be,$e=oe[xe]||"",Ee=ze(st),Re={[$e]:pt,className:`${de}-icon`,key:"passwordIcon",onMouseDown:Fe=>{Fe.preventDefault()},onMouseUp:Fe=>{Fe.preventDefault()}};return x.cloneElement(x.isValidElement(Ee)?Ee:x.createElement("span",null,Ee),Re)},{className:ft,prefixCls:nt,inputPrefixCls:tt,size:rt}=Be,Et=fe(Be,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:bt}=x.useContext(ke.E_),Pt=bt("input",tt),Lt=bt("input-password",nt),dt=Ye&&mt(Lt),Ze=ot()(Lt,ft,{[`${Lt}-${rt}`]:!!rt}),Ke=Object.assign(Object.assign({},(0,ie.Z)(Et,["suffix","iconRender","visibilityToggle"])),{type:st?"text":"password",className:Ze,prefixCls:Pt,suffix:dt});return rt&&(Ke.size=rt),x.createElement(re.Z,Object.assign({ref:(0,le.sQ)(He,Ve)},Ke))}),ye=ve(72395),_e=ve(96159),Me=ve(71577),we=ve(98675),Ne=ve(4173),Ae=function(Be,He){var Ye={};for(var et in Be)Object.prototype.hasOwnProperty.call(Be,et)&&He.indexOf(et)<0&&(Ye[et]=Be[et]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,et=Object.getOwnPropertySymbols(Be);st<et.length;st++)He.indexOf(et[st])<0&&Object.prototype.propertyIsEnumerable.call(Be,et[st])&&(Ye[et[st]]=Be[et[st]]);return Ye},Ie=x.forwardRef((Be,He)=>{const{prefixCls:Ye,inputPrefixCls:et,className:st,size:yt,suffix:Ve,enterButton:Qe=!1,addonAfter:pt,loading:mt,disabled:ft,onSearch:nt,onChange:tt,onCompositionStart:rt,onCompositionEnd:Et}=Be,bt=Ae(Be,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Pt,direction:Lt}=x.useContext(ke.E_),dt=x.useRef(!1),Ze=Pt("input-search",Ye),Ke=Pt("input",et),{compactSize:de}=(0,Ne.ri)(Ze,Lt),xe=(0,we.Z)(Vt=>{var _t;return(_t=yt!=null?yt:de)!==null&&_t!==void 0?_t:Vt}),ze=x.useRef(null),$e=Vt=>{Vt&&Vt.target&&Vt.type==="click"&&nt&&nt(Vt.target.value,Vt,{source:"clear"}),tt&&tt(Vt)},Ee=Vt=>{var _t;document.activeElement===((_t=ze.current)===null||_t===void 0?void 0:_t.input)&&Vt.preventDefault()},Re=Vt=>{var _t,sn;nt&&nt((sn=(_t=ze.current)===null||_t===void 0?void 0:_t.input)===null||sn===void 0?void 0:sn.value,Vt,{source:"input"})},Fe=Vt=>{dt.current||mt||Re(Vt)},Ge=typeof Qe=="boolean"?x.createElement(ye.Z,null):null,it=`${Ze}-button`;let gt;const Kt=Qe||{},kt=Kt.type&&Kt.type.__ANT_BUTTON===!0;kt||Kt.type==="button"?gt=(0,_e.Tm)(Kt,Object.assign({onMouseDown:Ee,onClick:Vt=>{var _t,sn;(sn=(_t=Kt==null?void 0:Kt.props)===null||_t===void 0?void 0:_t.onClick)===null||sn===void 0||sn.call(_t,Vt),Re(Vt)},key:"enterButton"},kt?{className:it,size:xe}:{})):gt=x.createElement(Me.ZP,{className:it,type:Qe?"primary":void 0,size:xe,disabled:ft,key:"enterButton",onMouseDown:Ee,onClick:Re,loading:mt,icon:Ge},Qe),pt&&(gt=[gt,(0,_e.Tm)(pt,{key:"addonAfter"})]);const St=ot()(Ze,{[`${Ze}-rtl`]:Lt==="rtl",[`${Ze}-${xe}`]:!!xe,[`${Ze}-with-button`]:!!Qe},st),Wt=Vt=>{dt.current=!0,rt==null||rt(Vt)},jt=Vt=>{dt.current=!1,Et==null||Et(Vt)};return x.createElement(re.Z,Object.assign({ref:(0,le.sQ)(ze,He),onPressEnter:Fe},bt,{size:xe,onCompositionStart:Wt,onCompositionEnd:jt,prefixCls:Ke,addonAfter:gt,suffix:Ve,onChange:$e,className:St,disabled:ft}))}),Pe=ve(96330);const Le=re.Z;Le.Group=ae,Le.Search=Ie,Le.TextArea=Pe.Z,Le.Password=Ce;var We=Le},47673:function(xn,Zt,ve){"use strict";ve.d(Zt,{M1:function(){return z},TM:function(){return _e},Xy:function(){return ae},bi:function(){return me},e5:function(){return ye},ik:function(){return ie},nz:function(){return pe},pU:function(){return ne},s7:function(){return le},x0:function(){return se}});var Ue=ve(14747),ot=ve(80110),x=ve(45503),ke=ve(67968);const pe=Me=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Me,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ne=Me=>({borderColor:Me.hoverBorderColor}),z=Me=>({borderColor:Me.activeBorderColor,boxShadow:Me.activeShadow,outline:0}),ae=Me=>({color:Me.colorTextDisabled,backgroundColor:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ne((0,x.TS)(Me,{hoverBorderColor:Me.colorBorder})))}),re=Me=>{const{paddingBlockLG:we,fontSizeLG:Ne,lineHeightLG:Ae,borderRadiusLG:De,paddingInlineLG:Ie}=Me;return{padding:`${we}px ${Ie}px`,fontSize:Ne,lineHeight:Ae,borderRadius:De}},se=Me=>({padding:`${Me.paddingBlockSM}px ${Me.paddingInlineSM}px`,borderRadius:Me.borderRadiusSM}),me=(Me,we)=>{const{componentCls:Ne,colorError:Ae,colorWarning:De,errorActiveShadow:Ie,warningActiveShadow:Pe,colorErrorBorderHover:Le,colorWarningBorderHover:We}=Me;return{[`&-status-error:not(${we}-disabled):not(${we}-borderless)${we}`]:{borderColor:Ae,"&:hover":{borderColor:Le},"&:focus, &-focused":Object.assign({},z((0,x.TS)(Me,{activeBorderColor:Ae,activeShadow:Ie}))),[`${Ne}-prefix, ${Ne}-suffix`]:{color:Ae}},[`&-status-warning:not(${we}-disabled):not(${we}-borderless)${we}`]:{borderColor:De,"&:hover":{borderColor:We},"&:focus, &-focused":Object.assign({},z((0,x.TS)(Me,{activeBorderColor:De,activeShadow:Pe}))),[`${Ne}-prefix, ${Ne}-suffix`]:{color:De}}}},ie=Me=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Me.paddingBlock}px ${Me.paddingInline}px`,color:Me.colorText,fontSize:Me.fontSize,lineHeight:Me.lineHeight,backgroundColor:Me.colorBgContainer,backgroundImage:"none",borderWidth:Me.lineWidth,borderStyle:Me.lineType,borderColor:Me.colorBorder,borderRadius:Me.borderRadius,transition:`all ${Me.motionDurationMid}`},pe(Me.colorTextPlaceholder)),{"&:hover":Object.assign({},ne(Me)),"&:focus, &-focused":Object.assign({},z(Me)),"&-disabled, &[disabled]":Object.assign({},ae(Me)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Me.controlHeight,lineHeight:Me.lineHeight,verticalAlign:"bottom",transition:`all ${Me.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},re(Me)),"&-sm":Object.assign({},se(Me)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),le=Me=>{const{componentCls:we,antCls:Ne}=Me;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Me.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${we}, &-lg > ${we}-group-addon`]:Object.assign({},re(Me)),[`&-sm ${we}, &-sm > ${we}-group-addon`]:Object.assign({},se(Me)),[`&-lg ${Ne}-select-single ${Ne}-select-selector`]:{height:Me.controlHeightLG},[`&-sm ${Ne}-select-single ${Ne}-select-selector`]:{height:Me.controlHeightSM},[`> ${we}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${we}-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 ${Me.paddingInline}px`,color:Me.colorText,fontWeight:"normal",fontSize:Me.fontSize,textAlign:"center",backgroundColor:Me.colorFillAlter,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadius,transition:`all ${Me.motionDurationSlow}`,lineHeight:1,[`${Ne}-select`]:{margin:`-${Me.paddingBlock+1}px -${Me.paddingInline}px`,[`&${Ne}-select-single:not(${Ne}-select-customize-input)`]:{[`${Ne}-select-selector`]:{backgroundColor:"inherit",border:`${Me.lineWidth}px ${Me.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ne}-select-selector`]:{color:Me.colorPrimary}}},[`${Ne}-cascader-picker`]:{margin:`-9px -${Me.paddingInline}px`,backgroundColor:"transparent",[`${Ne}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${we}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${we}-search-with-button &`]:{zIndex:0}}},[`> ${we}:first-child, ${we}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ne}-select ${Ne}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${we}-affix-wrapper`]:{[`&:not(:first-child) ${we}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${we}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${we}:last-child, ${we}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ne}-select ${Ne}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${we}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${we}-search &`]:{borderStartStartRadius:Me.borderRadius,borderEndStartRadius:Me.borderRadius}},[`&:not(:first-child), ${we}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${we}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,Ue.dF)()),{[`${we}-group-addon, ${we}-group-wrap, > ${we}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Me.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${we}-affix-wrapper,
|
|
|
& > ${we}-number-affix-wrapper,
|
|
|
& > ${Ne}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Me.lineWidth,borderInlineEndWidth:Me.lineWidth},[`${we}`]:{float:"none"},[`& > ${Ne}-select > ${Ne}-select-selector,
|
|
|
& > ${Ne}-select-auto-complete ${we},
|
|
|
& > ${Ne}-cascader-picker ${we},
|
|
|
& > ${we}-group-wrapper ${we}`]:{borderInlineEndWidth:Me.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ne}-select-focused`]:{zIndex:1},[`& > ${Ne}-select > ${Ne}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Ne}-select:first-child > ${Ne}-select-selector,
|
|
|
& > ${Ne}-select-auto-complete:first-child ${we},
|
|
|
& > ${Ne}-cascader-picker:first-child ${we}`]:{borderStartStartRadius:Me.borderRadius,borderEndStartRadius:Me.borderRadius},[`& > *:last-child,
|
|
|
& > ${Ne}-select:last-child > ${Ne}-select-selector,
|
|
|
& > ${Ne}-cascader-picker:last-child ${we},
|
|
|
& > ${Ne}-cascader-picker-focused:last-child ${we}`]:{borderInlineEndWidth:Me.lineWidth,borderStartEndRadius:Me.borderRadius,borderEndEndRadius:Me.borderRadius},[`& > ${Ne}-select-auto-complete ${we}`]:{verticalAlign:"top"},[`${we}-group-wrapper + ${we}-group-wrapper`]:{marginInlineStart:-Me.lineWidth,[`${we}-affix-wrapper`]:{borderRadius:0}},[`${we}-group-wrapper:not(:last-child)`]:{[`&${we}-search > ${we}-group`]:{[`& > ${we}-group-addon > ${we}-search-button`]:{borderRadius:0},[`& > ${we}`]:{borderStartStartRadius:Me.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Me.borderRadius}}}})}},ue=Me=>{const{componentCls:we,controlHeightSM:Ne,lineWidth:Ae}=Me,Ie=(Ne-Ae*2-16)/2;return{[we]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(Me)),ie(Me)),me(Me,we)),{'&[type="color"]':{height:Me.controlHeight,[`&${we}-lg`]:{height:Me.controlHeightLG},[`&${we}-sm`]:{height:Ne,paddingTop:Ie,paddingBottom:Ie}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},fe=Me=>{const{componentCls:we}=Me;return{[`${we}-clear-icon`]:{margin:0,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Me.motionDurationSlow}`,"&:hover":{color:Me.colorTextTertiary},"&:active":{color:Me.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Me.inputAffixPadding}px`}}}},he=Me=>{const{componentCls:we,inputAffixPadding:Ne,colorTextDescription:Ae,motionDurationSlow:De,colorIcon:Ie,colorIconHover:Pe,iconCls:Le}=Me;return{[`${we}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ie(Me)),{display:"inline-flex",[`&:not(${we}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ne(Me)),{zIndex:1,[`${we}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${we}[disabled]`]:{background:"transparent"}},[`> input${we}`]:{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"'},[`${we}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Me.paddingXS}},"&-show-count-suffix":{color:Ae},"&-show-count-has-suffix":{marginInlineEnd:Me.paddingXXS},"&-prefix":{marginInlineEnd:Ne},"&-suffix":{marginInlineStart:Ne}}}),fe(Me)),{[`${Le}${we}-password-icon`]:{color:Ie,cursor:"pointer",transition:`all ${De}`,"&:hover":{color:Pe}}}),me(Me,`${we}-affix-wrapper`))}},oe=Me=>{const{componentCls:we,colorError:Ne,colorWarning:Ae,borderRadiusLG:De,borderRadiusSM:Ie}=Me;return{[`${we}-group`]:Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(Me)),le(Me)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${we}-group-addon`]:{borderRadius:De,fontSize:Me.fontSizeLG}},"&-sm":{[`${we}-group-addon`]:{borderRadius:Ie}},"&-status-error":{[`${we}-group-addon`]:{color:Ne,borderColor:Ne}},"&-status-warning":{[`${we}-group-addon`]:{color:Ae,borderColor:Ae}},"&-disabled":{[`${we}-group-addon`]:Object.assign({},ae(Me))},[`&:not(${we}-compact-first-item):not(${we}-compact-last-item)${we}-compact-item`]:{[`${we}, ${we}-group-addon`]:{borderRadius:0}},[`&:not(${we}-compact-last-item)${we}-compact-first-item`]:{[`${we}, ${we}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${we}-compact-first-item)${we}-compact-last-item`]:{[`${we}, ${we}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Se=Me=>{const{componentCls:we,antCls:Ne}=Me,Ae=`${we}-search`;return{[Ae]:{[`${we}`]:{"&:hover, &:focus":{borderColor:Me.colorPrimaryHover,[`+ ${we}-group-addon ${Ae}-button:not(${Ne}-btn-primary)`]:{borderInlineStartColor:Me.colorPrimaryHover}}},[`${we}-affix-wrapper`]:{borderRadius:0},[`${we}-lg`]:{lineHeight:Me.lineHeightLG-2e-4},[`> ${we}-group`]:{[`> ${we}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ae}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Me.borderRadius,borderEndEndRadius:Me.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ae}-button:not(${Ne}-btn-primary)`]:{color:Me.colorTextDescription,"&:hover":{color:Me.colorPrimaryHover},"&:active":{color:Me.colorPrimaryActive},[`&${Ne}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ae}-button`]:{height:Me.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ae}-button`]:{height:Me.controlHeightLG},[`&-small ${Ae}-button`]:{height:Me.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${we}-compact-item`]:{[`&:not(${we}-compact-last-item)`]:{[`${we}-group-addon`]:{[`${we}-search-button`]:{marginInlineEnd:-Me.lineWidth,borderRadius:0}}},[`&:not(${we}-compact-first-item)`]:{[`${we},${we}-affix-wrapper`]:{borderRadius:0}},[`> ${we}-group-addon ${we}-search-button,
|
|
|
> ${we},
|
|
|
${we}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${we}-affix-wrapper-focused`]:{zIndex:2}}}}},Ce=Me=>{const{componentCls:we,paddingLG:Ne}=Me,Ae=`${we}-textarea`;return{[Ae]:{position:"relative","&-show-count":{[`> ${we}`]:{height:"100%"},[`${we}-data-count`]:{position:"absolute",bottom:-Me.fontSize*Me.lineHeight,insetInlineEnd:0,color:Me.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${we}`]:{paddingInlineEnd:Ne}},[`&-affix-wrapper${Ae}-has-feedback`]:{[`${we}`]:{paddingInlineEnd:Ne}},[`&-affix-wrapper${we}-affix-wrapper`]:{padding:0,[`> textarea${we}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${we}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${we}-clear-icon`]:{position:"absolute",insetInlineEnd:Me.paddingXS,insetBlockStart:Me.paddingXS},[`${Ae}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Me.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ye(Me){return(0,x.TS)(Me,{inputAffixPadding:Me.paddingXXS})}const _e=Me=>{const{controlHeight:we,fontSize:Ne,lineHeight:Ae,lineWidth:De,controlHeightSM:Ie,controlHeightLG:Pe,fontSizeLG:Le,lineHeightLG:We,paddingSM:Be,controlPaddingHorizontalSM:He,controlPaddingHorizontal:Ye,colorFillAlter:et,colorPrimaryHover:st,controlOutlineWidth:yt,controlOutline:Ve,colorErrorOutline:Qe,colorWarningOutline:pt}=Me;return{paddingBlock:Math.max(Math.round((we-Ne*Ae)/2*10)/10-De,3),paddingBlockSM:Math.max(Math.round((Ie-Ne*Ae)/2*10)/10-De,0),paddingBlockLG:Math.ceil((Pe-Le*We)/2*10)/10-De,paddingInline:Be-De,paddingInlineSM:He-De,paddingInlineLG:Ye-De,addonBg:et,activeBorderColor:st,hoverBorderColor:st,activeShadow:`0 0 0 ${yt}px ${Ve}`,errorActiveShadow:`0 0 0 ${yt}px ${Qe}`,warningActiveShadow:`0 0 0 ${yt}px ${pt}`}};Zt.ZP=(0,ke.Z)("Input",Me=>{const we=(0,x.TS)(Me,ye(Me));return[ue(we),Ce(we),he(we),oe(we),Se(we),(0,ot.c)(we)]},_e)},71322:function(xn,Zt,ve){"use strict";ve.d(Zt,{D:function(){return Ce},Z:function(){return Me}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(Ne,Ae){return ot.createElement(pe.Z,(0,Ue.Z)({},Ne,{ref:Ae,icon:ke}))},z=ot.forwardRef(ne),ae=ve(22751),re=ve(91034),se=ve(94184),me=ve.n(se),ie=ve(10366),ue=we=>!isNaN(parseFloat(we))&&isFinite(we),fe=ve(53124),he=ve(84321),oe=function(we,Ne){var Ae={};for(var De in we)Object.prototype.hasOwnProperty.call(we,De)&&Ne.indexOf(De)<0&&(Ae[De]=we[De]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,De=Object.getOwnPropertySymbols(we);Ie<De.length;Ie++)Ne.indexOf(De[Ie])<0&&Object.prototype.propertyIsEnumerable.call(we,De[Ie])&&(Ae[De[Ie]]=we[De[Ie]]);return Ae};const Se={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ce=ot.createContext({}),ye=(()=>{let we=0;return function(){let Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return we+=1,`${Ne}${we}`}})();var Me=ot.forwardRef((we,Ne)=>{const{prefixCls:Ae,className:De,trigger:Ie,children:Pe,defaultCollapsed:Le=!1,theme:We="dark",style:Be={},collapsible:He=!1,reverseArrow:Ye=!1,width:et=200,collapsedWidth:st=80,zeroWidthTriggerStyle:yt,breakpoint:Ve,onCollapse:Qe,onBreakpoint:pt}=we,mt=oe(we,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ft}=(0,ot.useContext)(he.Gs),[nt,tt]=(0,ot.useState)("collapsed"in we?we.collapsed:Le),[rt,Et]=(0,ot.useState)(!1);(0,ot.useEffect)(()=>{"collapsed"in we&&tt(we.collapsed)},[we.collapsed]);const bt=(de,xe)=>{"collapsed"in we||tt(de),Qe==null||Qe(de,xe)},Pt=(0,ot.useRef)();Pt.current=de=>{Et(de.matches),pt==null||pt(de.matches),nt!==de.matches&&bt(de.matches,"responsive")},(0,ot.useEffect)(()=>{function de(ze){return Pt.current(ze)}let xe;if(typeof window!="undefined"){const{matchMedia:ze}=window;if(ze&&Ve&&Ve in Se){xe=ze(`(max-width: ${Se[Ve]})`);try{xe.addEventListener("change",de)}catch($e){xe.addListener(de)}de(xe)}}return()=>{try{xe==null||xe.removeEventListener("change",de)}catch(ze){xe==null||xe.removeListener(de)}}},[Ve]),(0,ot.useEffect)(()=>{const de=ye("ant-sider-");return ft.addSider(de),()=>ft.removeSider(de)},[]);const Lt=()=>{bt(!nt,"clickTrigger")},{getPrefixCls:dt}=(0,ot.useContext)(fe.E_),Ze=()=>{const de=dt("layout-sider",Ae),xe=(0,ie.Z)(mt,["collapsed"]),ze=nt?st:et,$e=ue(ze)?`${ze}px`:String(ze),Ee=parseFloat(String(st||0))===0?ot.createElement("span",{onClick:Lt,className:me()(`${de}-zero-width-trigger`,`${de}-zero-width-trigger-${Ye?"right":"left"}`),style:yt},Ie||ot.createElement(z,null)):null,Ge={expanded:Ye?ot.createElement(re.Z,null):ot.createElement(ae.Z,null),collapsed:Ye?ot.createElement(ae.Z,null):ot.createElement(re.Z,null)}[nt?"collapsed":"expanded"],it=Ie!==null?Ee||ot.createElement("div",{className:`${de}-trigger`,onClick:Lt,style:{width:$e}},Ie||Ge):null,gt=Object.assign(Object.assign({},Be),{flex:`0 0 ${$e}`,maxWidth:$e,minWidth:$e,width:$e}),Kt=me()(de,`${de}-${We}`,{[`${de}-collapsed`]:!!nt,[`${de}-has-trigger`]:He&&Ie!==null&&!Ee,[`${de}-below`]:!!rt,[`${de}-zero-width`]:parseFloat($e)===0},De);return ot.createElement("aside",Object.assign({className:Kt},xe,{style:gt,ref:Ne}),ot.createElement("div",{className:`${de}-children`},Pe),He||rt&&Ee?it:null)},Ke=ot.useMemo(()=>({siderCollapsed:nt}),[nt]);return ot.createElement(Ce.Provider,{value:Ke},Ze())})},84321:function(xn,Zt,ve){"use strict";ve.d(Zt,{VY:function(){return ye},$_:function(){return Ce},h4:function(){return Se},Gs:function(){return le},ZP:function(){return _e}});var Ue=ve(74902),ot=ve(94184),x=ve.n(ot),ke=ve(10366),pe=ve(67294),ne=ve(53124),z=ve(67968),re=Me=>{const{componentCls:we,bodyBg:Ne,lightSiderBg:Ae,lightTriggerBg:De,lightTriggerColor:Ie}=Me;return{[`${we}-sider-light`]:{background:Ae,[`${we}-sider-trigger`]:{color:Ie,background:De},[`${we}-sider-zero-width-trigger`]:{color:Ie,background:De,border:`1px solid ${Ne}`,borderInlineStart:0}}}};const se=Me=>{const{antCls:we,componentCls:Ne,colorText:Ae,triggerColor:De,footerBg:Ie,triggerBg:Pe,headerHeight:Le,headerPadding:We,headerColor:Be,footerPadding:He,triggerHeight:Ye,zeroTriggerHeight:et,zeroTriggerWidth:st,motionDurationMid:yt,motionDurationSlow:Ve,fontSize:Qe,borderRadius:pt,bodyBg:mt,headerBg:ft,siderBg:nt}=Me;return{[Ne]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:mt,"&, *":{boxSizing:"border-box"},[`&${Ne}-has-sider`]:{flexDirection:"row",[`> ${Ne}, > ${Ne}-content`]:{width:0}},[`${Ne}-header, &${Ne}-footer`]:{flex:"0 0 auto"},[`${Ne}-sider`]:{position:"relative",minWidth:0,background:nt,transition:`all ${yt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${we}-menu${we}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ye,color:De,lineHeight:`${Ye}px`,textAlign:"center",background:Pe,cursor:"pointer",transition:`all ${yt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Le,insetInlineEnd:-st,zIndex:1,width:st,height:et,color:De,fontSize:Me.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderStartStartRadius:0,borderStartEndRadius:pt,borderEndEndRadius:pt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-st,borderStartStartRadius:pt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:pt}}}}},re(Me)),{"&-rtl":{direction:"rtl"}}),[`${Ne}-header`]:{height:Le,padding:We,color:Be,lineHeight:`${Le}px`,background:ft,[`${we}-menu`]:{lineHeight:"inherit"}},[`${Ne}-footer`]:{padding:He,color:Ae,fontSize:Qe,background:Ie},[`${Ne}-content`]:{flex:"auto",minHeight:0}}};var me=(0,z.Z)("Layout",Me=>[se(Me)],Me=>{const{colorBgLayout:we,controlHeight:Ne,controlHeightLG:Ae,colorText:De,controlHeightSM:Ie,marginXXS:Pe,colorTextLightSolid:Le,colorBgContainer:We}=Me,Be=Ae*1.25;return{colorBgHeader:"#001529",colorBgBody:we,colorBgTrigger:"#002140",bodyBg:we,headerBg:"#001529",headerHeight:Ne*2,headerPadding:`0 ${Be}px`,headerColor:De,footerPadding:`${Ie}px ${Be}px`,footerBg:we,siderBg:"#001529",triggerHeight:Ae+Pe*2,triggerBg:"#002140",triggerColor:Le,zeroTriggerWidth:Ae,zeroTriggerHeight:Ae,lightSiderBg:We,lightTriggerBg:We,lightTriggerColor:De}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ie=function(Me,we){var Ne={};for(var Ae in Me)Object.prototype.hasOwnProperty.call(Me,Ae)&&we.indexOf(Ae)<0&&(Ne[Ae]=Me[Ae]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ae=Object.getOwnPropertySymbols(Me);De<Ae.length;De++)we.indexOf(Ae[De])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ae[De])&&(Ne[Ae[De]]=Me[Ae[De]]);return Ne};const le=pe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ue(Me){let{suffixCls:we,tagName:Ne,displayName:Ae}=Me;return De=>pe.forwardRef((Pe,Le)=>pe.createElement(De,Object.assign({ref:Le,suffixCls:we,tagName:Ne},Pe)))}const fe=pe.forwardRef((Me,we)=>{const{prefixCls:Ne,suffixCls:Ae,className:De,tagName:Ie}=Me,Pe=ie(Me,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Le}=pe.useContext(ne.E_),We=Le("layout",Ne),[Be,He]=me(We),Ye=Ae?`${We}-${Ae}`:We;return Be(pe.createElement(Ie,Object.assign({className:x()(Ne||Ye,De,He),ref:we},Pe)))}),he=pe.forwardRef((Me,we)=>{const{direction:Ne}=pe.useContext(ne.E_),[Ae,De]=pe.useState([]),{prefixCls:Ie,className:Pe,rootClassName:Le,children:We,hasSider:Be,tagName:He,style:Ye}=Me,et=ie(Me,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),st=(0,ke.Z)(et,["suffixCls"]),{getPrefixCls:yt,layout:Ve}=pe.useContext(ne.E_),Qe=yt("layout",Ie),[pt,mt]=me(Qe),ft=x()(Qe,{[`${Qe}-has-sider`]:typeof Be=="boolean"?Be:Ae.length>0,[`${Qe}-rtl`]:Ne==="rtl"},Ve==null?void 0:Ve.className,Pe,Le,mt),nt=pe.useMemo(()=>({siderHook:{addSider:tt=>{De(rt=>[].concat((0,Ue.Z)(rt),[tt]))},removeSider:tt=>{De(rt=>rt.filter(Et=>Et!==tt))}}}),[]);return pt(pe.createElement(le.Provider,{value:nt},pe.createElement(He,Object.assign({ref:we,className:ft,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),Ye)},st),We)))}),oe=ue({tagName:"div",displayName:"Layout"})(he),Se=ue({suffixCls:"header",tagName:"header",displayName:"Header"})(fe),Ce=ue({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(fe),ye=ue({suffixCls:"content",tagName:"main",displayName:"Content"})(fe);var _e=oe},76529:function(xn,Zt,ve){"use strict";ve.d(Zt,{J:function(){return ne}});var Ue=ve(67294),ot=ve(4173),x=ve(60276),ke=function(z,ae){var re={};for(var se in z)Object.prototype.hasOwnProperty.call(z,se)&&ae.indexOf(se)<0&&(re[se]=z[se]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,se=Object.getOwnPropertySymbols(z);me<se.length;me++)ae.indexOf(se[me])<0&&Object.prototype.propertyIsEnumerable.call(z,se[me])&&(re[se[me]]=z[se[me]]);return re};const pe=Ue.createContext(null),ne=Ue.forwardRef((z,ae)=>{const{children:re}=z,se=ke(z,["children"]),me=Ue.useContext(pe),ie=Ue.useMemo(()=>Object.assign(Object.assign({},me),se),[me,se.prefixCls,se.mode,se.selectable]);return Ue.createElement(pe.Provider,{value:ie},Ue.createElement(ot.BR,null,(0,x.supportNodeRef)(re)?Ue.cloneElement(re,{ref:ae}):re))});Zt.Z=pe},68508:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return de}});var Ue=ve(78595),ot=ve(67294),x=ve(71322),ke=ve(94184),pe=ve.n(ke),ne=ve(53124),z=function(xe,ze){var $e={};for(var Ee in xe)Object.prototype.hasOwnProperty.call(xe,Ee)&&ze.indexOf(Ee)<0&&($e[Ee]=xe[Ee]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ee=Object.getOwnPropertySymbols(xe);Re<Ee.length;Re++)ze.indexOf(Ee[Re])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ee[Re])&&($e[Ee[Re]]=xe[Ee[Re]]);return $e},re=xe=>{const{prefixCls:ze,className:$e,dashed:Ee}=xe,Re=z(xe,["prefixCls","className","dashed"]),{getPrefixCls:Fe}=ot.useContext(ne.E_),Ge=Fe("menu",ze),it=pe()({[`${Ge}-item-divider-dashed`]:!!Ee},$e);return ot.createElement(Ue.iz,Object.assign({className:it},Re))},se=ve(37419),me=ve(10366),ie=ve(83062),le=ve(96159),fe=(0,ot.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),oe=xe=>{var ze;const{className:$e,children:Ee,icon:Re,title:Fe,danger:Ge}=xe,{prefixCls:it,firstLevel:gt,direction:Kt,disableMenuItemTitleTooltip:kt,inlineCollapsed:St}=ot.useContext(fe),Wt=xt=>{const en=ot.createElement("span",{className:`${it}-title-content`},Ee);return(!Re||(0,le.l$)(Ee)&&Ee.type==="span")&&Ee&&xt&>&&typeof Ee=="string"?ot.createElement("div",{className:`${it}-inline-collapsed-noicon`},Ee.charAt(0)):en},{siderCollapsed:jt}=ot.useContext(x.D);let Vt=Fe;typeof Fe=="undefined"?Vt=gt?Ee:"":Fe===!1&&(Vt="");const _t={title:Vt};!jt&&!St&&(_t.title=null,_t.open=!1);const sn=(0,se.Z)(Ee).length;let Dt=ot.createElement(Ue.ck,Object.assign({},(0,me.Z)(xe,["title","icon","danger"]),{className:pe()({[`${it}-item-danger`]:Ge,[`${it}-item-only-child`]:(Re?sn+1:sn)===1},$e),title:typeof Fe=="string"?Fe:void 0}),(0,le.Tm)(Re,{className:pe()((0,le.l$)(Re)?(ze=Re.props)===null||ze===void 0?void 0:ze.className:"",`${it}-item-icon`)}),Wt(St));return kt||(Dt=ot.createElement(ie.Z,Object.assign({},_t,{placement:Kt==="rtl"?"left":"right",overlayClassName:`${it}-inline-collapsed-tooltip`}),Dt)),Dt},Ce=xe=>{var ze;const{popupClassName:$e,icon:Ee,title:Re,theme:Fe}=xe,Ge=ot.useContext(fe),{prefixCls:it,inlineCollapsed:gt,theme:Kt}=Ge,kt=(0,Ue.Xl)();let St;if(!Ee)St=gt&&!kt.length&&Re&&typeof Re=="string"?ot.createElement("div",{className:`${it}-inline-collapsed-noicon`},Re.charAt(0)):ot.createElement("span",{className:`${it}-title-content`},Re);else{const jt=(0,le.l$)(Re)&&Re.type==="span";St=ot.createElement(ot.Fragment,null,(0,le.Tm)(Ee,{className:pe()((0,le.l$)(Ee)?(ze=Ee.props)===null||ze===void 0?void 0:ze.className:"",`${it}-item-icon`)}),jt?Re:ot.createElement("span",{className:`${it}-title-content`},Re))}const Wt=ot.useMemo(()=>Object.assign(Object.assign({},Ge),{firstLevel:!1}),[Ge]);return ot.createElement(fe.Provider,{value:Wt},ot.createElement(Ue.Wd,Object.assign({},(0,me.Z)(xe,["icon"]),{title:St,popupClassName:pe()(it,$e,`${it}-${Fe||Kt}`)})))},ye=ve(25877),_e=ve(60276),Me=ve(33603),we=ve(76529),Ne=function(xe,ze){var $e={};for(var Ee in xe)Object.prototype.hasOwnProperty.call(xe,Ee)&&ze.indexOf(Ee)<0&&($e[Ee]=xe[Ee]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ee=Object.getOwnPropertySymbols(xe);Re<Ee.length;Re++)ze.indexOf(Ee[Re])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ee[Re])&&($e[Ee[Re]]=xe[Ee[Re]]);return $e};function Ae(xe){return(xe||[]).map((ze,$e)=>{if(ze&&typeof ze=="object"){const Ee=ze,{label:Re,children:Fe,key:Ge,type:it}=Ee,gt=Ne(Ee,["label","children","key","type"]),Kt=Ge!=null?Ge:`tmp-${$e}`;return Fe||it==="group"?it==="group"?ot.createElement(Ue.BW,Object.assign({key:Kt},gt,{title:Re}),Ae(Fe)):ot.createElement(Ce,Object.assign({key:Kt},gt,{title:Re}),Ae(Fe)):it==="divider"?ot.createElement(re,Object.assign({key:Kt},gt)):ot.createElement(oe,Object.assign({key:Kt},gt),Re)}return null}).filter(ze=>ze)}function De(xe){return ot.useMemo(()=>xe&&Ae(xe),[xe])}var Ie=ve(84780),Pe=ve(14747),Le=ve(33507),We=ve(67771),Be=ve(50438),He=ve(67968),Ye=ve(45503),st=xe=>{const{componentCls:ze,motionDurationSlow:$e,horizontalLineHeight:Ee,colorSplit:Re,lineWidth:Fe,lineType:Ge,itemPaddingInline:it}=xe;return{[`${ze}-horizontal`]:{lineHeight:Ee,border:0,borderBottom:`${Fe}px ${Ge} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ze}-item, ${ze}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:it},[`> ${ze}-item:hover,
|
|
|
> ${ze}-item-active,
|
|
|
> ${ze}-submenu ${ze}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ze}-item, ${ze}-submenu-title`]:{transition:[`border-color ${$e}`,`background ${$e}`].join(",")},[`${ze}-submenu-arrow`]:{display:"none"}}}},Ve=xe=>{let{componentCls:ze,menuArrowOffset:$e}=xe;return{[`${ze}-rtl`]:{direction:"rtl"},[`${ze}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ze}-rtl${ze}-vertical,
|
|
|
${ze}-submenu-rtl ${ze}-vertical`]:{[`${ze}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${$e})`},"&::after":{transform:`rotate(45deg) translateY(${$e})`}}}}};const Qe=xe=>Object.assign({},(0,Pe.oN)(xe));var mt=(xe,ze)=>{const{componentCls:$e,itemColor:Ee,itemSelectedColor:Re,groupTitleColor:Fe,itemBg:Ge,subMenuItemBg:it,itemSelectedBg:gt,activeBarHeight:Kt,activeBarWidth:kt,activeBarBorderWidth:St,motionDurationSlow:Wt,motionEaseInOut:jt,motionEaseOut:Vt,itemPaddingInline:_t,motionDurationMid:sn,itemHoverColor:Dt,lineType:xt,colorSplit:en,itemDisabledColor:an,dangerItemColor:fn,dangerItemHoverColor:Tn,dangerItemSelectedColor:ar,dangerItemActiveBg:pr,dangerItemSelectedBg:Ar,itemHoverBg:Dr,itemActiveBg:dr,menuSubMenuBg:zr,horizontalItemSelectedColor:ai,horizontalItemSelectedBg:ki,horizontalItemBorderRadius:Ni,horizontalItemHoverBg:xi,popupBg:cn}=xe;return{[`${$e}-${ze}, ${$e}-${ze} > ${$e}`]:{color:Ee,background:Ge,[`&${$e}-root:focus-visible`]:Object.assign({},Qe(xe)),[`${$e}-item-group-title`]:{color:Fe},[`${$e}-submenu-selected`]:{[`> ${$e}-submenu-title`]:{color:Re}},[`${$e}-item-disabled, ${$e}-submenu-disabled`]:{color:`${an} !important`},[`${$e}-item:not(${$e}-item-selected):not(${$e}-submenu-selected)`]:{[`&:hover, > ${$e}-submenu-title:hover`]:{color:Dt}},[`&:not(${$e}-horizontal)`]:{[`${$e}-item:not(${$e}-item-selected)`]:{"&:hover":{backgroundColor:Dr},"&:active":{backgroundColor:dr}},[`${$e}-submenu-title`]:{"&:hover":{backgroundColor:Dr},"&:active":{backgroundColor:dr}}},[`${$e}-item-danger`]:{color:fn,[`&${$e}-item:hover`]:{[`&:not(${$e}-item-selected):not(${$e}-submenu-selected)`]:{color:Tn}},[`&${$e}-item:active`]:{background:pr}},[`${$e}-item a`]:{"&, &:hover":{color:"inherit"}},[`${$e}-item-selected`]:{color:Re,[`&${$e}-item-danger`]:{color:ar},"a, a:hover":{color:"inherit"}},[`& ${$e}-item-selected`]:{backgroundColor:gt,[`&${$e}-item-danger`]:{backgroundColor:Ar}},[`${$e}-item, ${$e}-submenu-title`]:{[`&:not(${$e}-item-disabled):focus-visible`]:Object.assign({},Qe(xe))},[`&${$e}-submenu > ${$e}`]:{backgroundColor:zr},[`&${$e}-popup > ${$e}`]:{backgroundColor:cn},[`&${$e}-horizontal`]:Object.assign(Object.assign({},ze==="dark"?{borderBottom:0}:{}),{[`> ${$e}-item, > ${$e}-submenu`]:{top:St,marginTop:-St,marginBottom:0,borderRadius:Ni,"&::after":{position:"absolute",insetInline:_t,bottom:0,borderBottom:`${Kt}px solid transparent`,transition:`border-color ${Wt} ${jt}`,content:'""'},"&:hover, &-active, &-open":{background:xi,"&::after":{borderBottomWidth:Kt,borderBottomColor:ai}},"&-selected":{color:ai,backgroundColor:ki,"&:hover":{backgroundColor:ki},"&::after":{borderBottomWidth:Kt,borderBottomColor:ai}}}}),[`&${$e}-root`]:{[`&${$e}-inline, &${$e}-vertical`]:{borderInlineEnd:`${St}px ${xt} ${en}`}},[`&${$e}-inline`]:{[`${$e}-sub${$e}-inline`]:{background:it},[`${$e}-item, ${$e}-submenu-title`]:St&&kt?{width:`calc(100% + ${St}px)`}:{},[`${$e}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${kt}px solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${sn} ${Vt}`,`opacity ${sn} ${Vt}`].join(","),content:'""'},[`&${$e}-item-danger`]:{"&::after":{borderInlineEndColor:ar}}},[`${$e}-selected, ${$e}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${sn} ${jt}`,`opacity ${sn} ${jt}`].join(",")}}}}}};const ft=xe=>{const{componentCls:ze,itemHeight:$e,itemMarginInline:Ee,padding:Re,menuArrowSize:Fe,marginXS:Ge,itemMarginBlock:it}=xe,gt=Re+Fe+Ge;return{[`${ze}-item`]:{position:"relative",overflow:"hidden"},[`${ze}-item, ${ze}-submenu-title`]:{height:$e,lineHeight:`${$e}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ee,marginBlock:it,width:`calc(100% - ${Ee*2}px)`},[`> ${ze}-item,
|
|
|
> ${ze}-submenu > ${ze}-submenu-title`]:{height:$e,lineHeight:`${$e}px`},[`${ze}-item-group-list ${ze}-submenu-title,
|
|
|
${ze}-submenu-title`]:{paddingInlineEnd:gt}}};var tt=xe=>{const{componentCls:ze,iconCls:$e,itemHeight:Ee,colorTextLightSolid:Re,dropdownWidth:Fe,controlHeightLG:Ge,motionDurationMid:it,motionEaseOut:gt,paddingXL:Kt,itemMarginInline:kt,fontSizeLG:St,motionDurationSlow:Wt,paddingXS:jt,boxShadowSecondary:Vt,collapsedWidth:_t,collapsedIconSize:sn}=xe,Dt={height:Ee,lineHeight:`${Ee}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ze]:{"&-inline, &-vertical":Object.assign({[`&${ze}-root`]:{boxShadow:"none"}},ft(xe))},[`${ze}-submenu-popup`]:{[`${ze}-vertical`]:Object.assign(Object.assign({},ft(xe)),{boxShadow:Vt})}},{[`${ze}-submenu-popup ${ze}-vertical${ze}-sub`]:{minWidth:Fe,maxHeight:`calc(100vh - ${Ge*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ze}-inline`]:{width:"100%",[`&${ze}-root`]:{[`${ze}-item, ${ze}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Wt}`,`background ${Wt}`,`padding ${it} ${gt}`].join(","),[`> ${ze}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ze}-sub${ze}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ze}-submenu > ${ze}-submenu-title`]:Dt,[`& ${ze}-item-group-title`]:{paddingInlineStart:Kt}},[`${ze}-item`]:Dt}},{[`${ze}-inline-collapsed`]:{width:_t,[`&${ze}-root`]:{[`${ze}-item, ${ze}-submenu ${ze}-submenu-title`]:{[`> ${ze}-inline-collapsed-noicon`]:{fontSize:St,textAlign:"center"}}},[`> ${ze}-item,
|
|
|
> ${ze}-item-group > ${ze}-item-group-list > ${ze}-item,
|
|
|
> ${ze}-item-group > ${ze}-item-group-list > ${ze}-submenu > ${ze}-submenu-title,
|
|
|
> ${ze}-submenu > ${ze}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${St/2}px - ${kt}px)`,textOverflow:"clip",[`
|
|
|
${ze}-submenu-arrow,
|
|
|
${ze}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${ze}-item-icon, ${$e}`]:{margin:0,fontSize:sn,lineHeight:`${Ee}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ze}-item-icon, ${$e}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ze}-item-icon, ${$e}`]:{display:"none"},"a, a:hover":{color:Re}},[`${ze}-item-group-title`]:Object.assign(Object.assign({},Pe.vS),{paddingInline:jt})}}]};const rt=xe=>{const{componentCls:ze,motionDurationSlow:$e,motionDurationMid:Ee,motionEaseInOut:Re,motionEaseOut:Fe,iconCls:Ge,iconSize:it,iconMarginInlineEnd:gt}=xe;return{[`${ze}-item, ${ze}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${$e}`,`background ${$e}`,`padding ${$e} ${Re}`].join(","),[`${ze}-item-icon, ${Ge}`]:{minWidth:it,fontSize:it,transition:[`font-size ${Ee} ${Fe}`,`margin ${$e} ${Re}`,`color ${$e}`].join(","),"+ span":{marginInlineStart:gt,opacity:1,transition:[`opacity ${$e} ${Re}`,`margin ${$e}`,`color ${$e}`].join(",")}},[`${ze}-item-icon`]:Object.assign({},(0,Pe.Ro)()),[`&${ze}-item-only-child`]:{[`> ${Ge}, > ${ze}-item-icon`]:{marginInlineEnd:0}}},[`${ze}-item-disabled, ${ze}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ze}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Et=xe=>{const{componentCls:ze,motionDurationSlow:$e,motionEaseInOut:Ee,borderRadius:Re,menuArrowSize:Fe,menuArrowOffset:Ge}=xe;return{[`${ze}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:xe.margin,width:Fe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${$e} ${Ee}, opacity ${$e}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Fe*.6,height:Fe*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${$e} ${Ee}`,`transform ${$e} ${Ee}`,`top ${$e} ${Ee}`,`color ${$e} ${Ee}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ge})`},"&::after":{transform:`rotate(-45deg) translateY(${Ge})`}}}}},bt=xe=>{const{antCls:ze,componentCls:$e,fontSize:Ee,motionDurationSlow:Re,motionDurationMid:Fe,motionEaseInOut:Ge,paddingXS:it,padding:gt,colorSplit:Kt,lineWidth:kt,zIndexPopup:St,borderRadiusLG:Wt,subMenuItemBorderRadius:jt,menuArrowSize:Vt,menuArrowOffset:_t,lineType:sn,menuPanelMaskInset:Dt,groupTitleLineHeight:xt,groupTitleFontSize:en}=xe;return[{"":{[`${$e}`]:Object.assign(Object.assign({},(0,Pe.dF)()),{"&-hidden":{display:"none"}})},[`${$e}-submenu-hidden`]:{display:"none"}},{[$e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(xe)),(0,Pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ee,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${$e}-item`]:{flex:"none"}},[`${$e}-item, ${$e}-submenu, ${$e}-submenu-title`]:{borderRadius:xe.itemBorderRadius},[`${$e}-item-group-title`]:{padding:`${it}px ${gt}px`,fontSize:en,lineHeight:xt,transition:`all ${Re}`},[`&-horizontal ${$e}-submenu`]:{transition:[`border-color ${Re} ${Ge}`,`background ${Re} ${Ge}`].join(",")},[`${$e}-submenu, ${$e}-submenu-inline`]:{transition:[`border-color ${Re} ${Ge}`,`background ${Re} ${Ge}`,`padding ${Fe} ${Ge}`].join(",")},[`${$e}-submenu ${$e}-sub`]:{cursor:"initial",transition:[`background ${Re} ${Ge}`,`padding ${Re} ${Ge}`].join(",")},[`${$e}-title-content`]:{transition:`color ${Re}`},[`${$e}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${$e}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Kt,borderStyle:sn,borderWidth:0,borderTopWidth:kt,marginBlock:kt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rt(xe)),{[`${$e}-item-group`]:{[`${$e}-item-group-list`]:{margin:0,padding:0,[`${$e}-item, ${$e}-submenu-title`]:{paddingInline:`${Ee*2}px ${gt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:St,borderRadius:Wt,boxShadow:"none",transformOrigin:"0 0",[`&${$e}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Dt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Dt},"\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:xe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:xe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:xe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:xe.paddingXS},[`> ${$e}`]:Object.assign(Object.assign(Object.assign({borderRadius:Wt},rt(xe)),Et(xe)),{[`${$e}-item, ${$e}-submenu > ${$e}-submenu-title`]:{borderRadius:jt},[`${$e}-submenu-title::after`]:{transition:`transform ${Re} ${Ge}`}})}}),Et(xe)),{[`&-inline-collapsed ${$e}-submenu-arrow,
|
|
|
&-inline ${$e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_t})`},"&::after":{transform:`rotate(45deg) translateX(-${_t})`}},[`${$e}-submenu-open${$e}-submenu-inline > ${$e}-submenu-title > ${$e}-submenu-arrow`]:{transform:`translateY(-${Vt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_t})`},"&::before":{transform:`rotate(45deg) translateX(${_t})`}}})},{[`${ze}-layout-header`]:{[$e]:{lineHeight:"inherit"}}}]};var Pt=(xe,ze)=>(0,He.Z)("Menu",Ee=>{if(ze===!1)return[];const{colorBgElevated:Re,colorPrimary:Fe,colorTextLightSolid:Ge,controlHeightLG:it,fontSize:gt,darkItemColor:Kt,darkDangerItemColor:kt,darkItemBg:St,darkSubMenuItemBg:Wt,darkItemSelectedColor:jt,darkItemSelectedBg:Vt,darkDangerItemSelectedBg:_t,darkItemHoverBg:sn,darkGroupTitleColor:Dt,darkItemHoverColor:xt,darkItemDisabledColor:en,darkDangerItemHoverColor:an,darkDangerItemSelectedColor:fn,darkDangerItemActiveBg:Tn}=Ee,ar=gt/7*5,pr=(0,Ye.TS)(Ee,{menuArrowSize:ar,menuHorizontalHeight:it*1.15,menuArrowOffset:`${ar*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),Ar=(0,Ye.TS)(pr,{itemColor:Kt,itemHoverColor:xt,groupTitleColor:Dt,itemSelectedColor:jt,itemBg:St,popupBg:St,subMenuItemBg:Wt,itemActiveBg:"transparent",itemSelectedBg:Vt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:sn,itemDisabledColor:en,dangerItemColor:kt,dangerItemHoverColor:an,dangerItemSelectedColor:fn,dangerItemActiveBg:Tn,dangerItemSelectedBg:_t,menuSubMenuBg:Wt,horizontalItemSelectedColor:Ge,horizontalItemSelectedBg:Fe});return[bt(pr),st(pr),tt(pr),mt(pr,"light"),mt(Ar,"dark"),Ve(pr),(0,Le.Z)(pr),(0,We.oN)(pr,"slide-up"),(0,We.oN)(pr,"slide-down"),(0,Be._y)(pr,"zoom-big")]},Ee=>{const{colorPrimary:Re,colorError:Fe,colorTextDisabled:Ge,colorErrorBg:it,colorText:gt,colorTextDescription:Kt,colorBgContainer:kt,colorFillAlter:St,colorFillContent:Wt,lineWidth:jt,lineWidthBold:Vt,controlItemBgActive:_t,colorBgTextHover:sn,controlHeightLG:Dt,lineHeight:xt,colorBgElevated:en,marginXXS:an,padding:fn,fontSize:Tn,controlHeightSM:ar,fontSizeLG:pr,colorTextLightSolid:Ar,colorErrorHover:Dr}=Ee,dr=new Ie.C(Ar).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ee.zIndexPopupBase+50,radiusItem:Ee.borderRadiusLG,itemBorderRadius:Ee.borderRadiusLG,radiusSubMenuItem:Ee.borderRadiusSM,subMenuItemBorderRadius:Ee.borderRadiusSM,colorItemText:gt,itemColor:gt,colorItemTextHover:gt,itemHoverColor:gt,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:Kt,groupTitleColor:Kt,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:kt,itemBg:kt,colorItemBgHover:sn,itemHoverBg:sn,colorItemBgActive:Wt,itemActiveBg:_t,colorSubItemBg:St,subMenuItemBg:St,colorItemBgSelected:_t,itemSelectedBg:_t,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Vt,activeBarHeight:Vt,colorActiveBarBorderSize:jt,activeBarBorderWidth:jt,colorItemTextDisabled:Ge,itemDisabledColor:Ge,colorDangerItemText:Fe,dangerItemColor:Fe,colorDangerItemTextHover:Fe,dangerItemHoverColor:Fe,colorDangerItemTextSelected:Fe,dangerItemSelectedColor:Fe,colorDangerItemBgActive:it,dangerItemActiveBg:it,colorDangerItemBgSelected:it,dangerItemSelectedBg:it,itemMarginInline:Ee.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Dt,groupTitleLineHeight:xt,collapsedWidth:Dt*2,popupBg:en,itemMarginBlock:an,itemPaddingInline:fn,horizontalLineHeight:`${Dt*1.15}px`,iconSize:Tn,iconMarginInlineEnd:ar-Tn,collapsedIconSize:pr,groupTitleFontSize:Tn,darkItemDisabledColor:new Ie.C(Ar).setAlpha(.25).toRgbString(),darkItemColor:dr,darkDangerItemColor:Fe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ar,darkItemSelectedBg:Re,darkDangerItemSelectedBg:Fe,darkItemHoverBg:"transparent",darkGroupTitleColor:dr,darkItemHoverColor:Ar,darkDangerItemHoverColor:Dr,darkDangerItemSelectedColor:Ar,darkDangerItemActiveBg:Fe}},{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"]]})(xe),Lt=function(xe,ze){var $e={};for(var Ee in xe)Object.prototype.hasOwnProperty.call(xe,Ee)&&ze.indexOf(Ee)<0&&($e[Ee]=xe[Ee]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ee=Object.getOwnPropertySymbols(xe);Re<Ee.length;Re++)ze.indexOf(Ee[Re])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ee[Re])&&($e[Ee[Re]]=xe[Ee[Re]]);return $e},Ze=(0,ot.forwardRef)((xe,ze)=>{var $e,Ee;const Re=ot.useContext(we.Z),Fe=Re||{},{getPrefixCls:Ge,getPopupContainer:it,direction:gt,menu:Kt}=ot.useContext(ne.E_),kt=Ge(),{prefixCls:St,className:Wt,style:jt,theme:Vt="light",expandIcon:_t,_internalDisableMenuItemTitleTooltip:sn,inlineCollapsed:Dt,siderCollapsed:xt,items:en,children:an,rootClassName:fn,mode:Tn,selectable:ar,onClick:pr,overflowedIndicatorPopupClassName:Ar}=xe,Dr=Lt(xe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),dr=(0,me.Z)(Dr,["collapsedWidth"]),zr=De(en)||an;($e=Fe.validator)===null||$e===void 0||$e.call(Fe,{mode:Tn});const ai=(0,_e.useEvent)(function(){var jn;pr==null||pr.apply(void 0,arguments),(jn=Fe.onClick)===null||jn===void 0||jn.call(Fe)}),ki=Fe.mode||Tn,Ni=ar!=null?ar:Fe.selectable,xi=ot.useMemo(()=>xt!==void 0?xt:Dt,[Dt,xt]),cn={horizontal:{motionName:`${kt}-slide-up`},inline:(0,Me.Z)(kt),other:{motionName:`${kt}-zoom-big`}},ir=Ge("menu",St||Fe.prefixCls),[sr,Yn]=Pt(ir,!Re),Rr=pe()(`${ir}-${Vt}`,Kt==null?void 0:Kt.className,Wt);let Nn;if(typeof _t=="function")Nn=_t;else if(_t===null||_t===!1)Nn=null;else if(Fe.expandIcon===null||Fe.expandIcon===!1)Nn=null;else{const jn=_t!=null?_t:Fe.expandIcon;Nn=(0,le.Tm)(jn,{className:pe()(`${ir}-submenu-expand-icon`,(0,le.l$)(jn)?(Ee=jn.props)===null||Ee===void 0?void 0:Ee.className:"")})}const Hn=ot.useMemo(()=>({prefixCls:ir,inlineCollapsed:xi||!1,direction:gt,firstLevel:!0,theme:Vt,mode:ki,disableMenuItemTitleTooltip:sn}),[ir,xi,gt,sn,Vt]);return sr(ot.createElement(we.Z.Provider,{value:null},ot.createElement(fe.Provider,{value:Hn},ot.createElement(Ue.ZP,Object.assign({getPopupContainer:it,overflowedIndicator:ot.createElement(ye.Z,null),overflowedIndicatorPopupClassName:pe()(ir,`${ir}-${Vt}`,Ar),mode:ki,selectable:Ni,onClick:ai},dr,{inlineCollapsed:xi,style:Object.assign(Object.assign({},Kt==null?void 0:Kt.style),jt),className:Rr,prefixCls:ir,direction:gt,defaultMotions:cn,expandIcon:Nn,ref:ze,rootClassName:pe()(fn,Yn)}),zr))))});const Ke=(0,ot.forwardRef)((xe,ze)=>{const $e=(0,ot.useRef)(null),Ee=ot.useContext(x.D);return(0,ot.useImperativeHandle)(ze,()=>({menu:$e.current,focus:Re=>{var Fe;(Fe=$e.current)===null||Fe===void 0||Fe.focus(Re)}})),ot.createElement(Ze,Object.assign({ref:$e},xe,Ee))});Ke.Item=oe,Ke.SubMenu=Ce,Ke.Divider=re,Ke.ItemGroup=Ue.BW;var de=Ke},28452:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return kt}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(Wt,jt){return ot.createElement(pe.Z,(0,Ue.Z)({},Wt,{ref:jt,icon:ke}))},z=ot.forwardRef(ne),ae=ve(81893),re=ve(22751),se=ve(91034),me=ve(94184),ie=ve.n(me),le=ve(4942),ue=ve(1413),fe=ve(15671),he=ve(43144),oe=ve(60136),Se=ve(51630),Ce=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,ye=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,_e="".concat(Ce," ").concat(ye).split(/[\s\n]+/),Me="aria-",we="data-";function Ne(St,Wt){return St.indexOf(Wt)===0}function Ae(St){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,jt;Wt===!1?jt={aria:!0,data:!0,attr:!0}:Wt===!0?jt={aria:!0}:jt=(0,ue.Z)({},Wt);var Vt={};return Object.keys(St).forEach(function(_t){(jt.aria&&(_t==="role"||Ne(_t,Me))||jt.data&&Ne(_t,we)||jt.attr&&_e.includes(_t))&&(Vt[_t]=St[_t])}),Vt}var De={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ie=De,Pe=ve(81626),Le=function(St){(0,oe.Z)(jt,St);var Wt=(0,Se.Z)(jt);function jt(){var Vt;(0,fe.Z)(this,jt);for(var _t=arguments.length,sn=new Array(_t),Dt=0;Dt<_t;Dt++)sn[Dt]=arguments[Dt];return Vt=Wt.call.apply(Wt,[this].concat(sn)),Vt.state={goInputText:""},Vt.getValidValue=function(){var xt=Vt.state.goInputText;return!xt||Number.isNaN(xt)?void 0:Number(xt)},Vt.buildOptionText=function(xt){return"".concat(xt," ").concat(Vt.props.locale.items_per_page)},Vt.changeSize=function(xt){Vt.props.changeSize(Number(xt))},Vt.handleChange=function(xt){Vt.setState({goInputText:xt.target.value})},Vt.handleBlur=function(xt){var en=Vt.props,an=en.goButton,fn=en.quickGo,Tn=en.rootPrefixCls,ar=Vt.state.goInputText;an||ar===""||(Vt.setState({goInputText:""}),!(xt.relatedTarget&&(xt.relatedTarget.className.indexOf("".concat(Tn,"-item-link"))>=0||xt.relatedTarget.className.indexOf("".concat(Tn,"-item"))>=0))&&fn(Vt.getValidValue()))},Vt.go=function(xt){var en=Vt.state.goInputText;en!==""&&(xt.keyCode===Ie.ENTER||xt.type==="click")&&(Vt.setState({goInputText:""}),Vt.props.quickGo(Vt.getValidValue()))},Vt}return(0,he.Z)(jt,[{key:"getPageSizeOptions",value:function(){var _t=this.props,sn=_t.pageSize,Dt=_t.pageSizeOptions;return Dt.some(function(xt){return xt.toString()===sn.toString()})?Dt:Dt.concat([sn.toString()]).sort(function(xt,en){var an=Number.isNaN(Number(xt))?0:Number(xt),fn=Number.isNaN(Number(en))?0:Number(en);return an-fn})}},{key:"render",value:function(){var _t=this,sn=this.props,Dt=sn.pageSize,xt=sn.locale,en=sn.rootPrefixCls,an=sn.changeSize,fn=sn.quickGo,Tn=sn.goButton,ar=sn.selectComponentClass,pr=sn.buildOptionText,Ar=sn.selectPrefixCls,Dr=sn.disabled,dr=this.state.goInputText,zr="".concat(en,"-options"),ai=ar,ki=null,Ni=null,xi=null;if(!an&&!fn)return null;var cn=this.getPageSizeOptions();if(an&&ai){var ir=cn.map(function(sr,Yn){return ot.createElement(ai.Option,{key:Yn,value:sr.toString()},(pr||_t.buildOptionText)(sr))});ki=ot.createElement(ai,{disabled:Dr,prefixCls:Ar,showSearch:!1,className:"".concat(zr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Dt||cn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Yn){return Yn.parentNode},"aria-label":xt.page_size,defaultOpen:!1},ir)}return fn&&(Tn&&(xi=typeof Tn=="boolean"?ot.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Dr,className:"".concat(zr,"-quick-jumper-button")},xt.jump_to_confirm):ot.createElement("span",{onClick:this.go,onKeyUp:this.go},Tn)),Ni=ot.createElement("div",{className:"".concat(zr,"-quick-jumper")},xt.jump_to,ot.createElement("input",{disabled:Dr,type:"text",value:dr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":xt.page}),xt.page,xi)),ot.createElement("li",{className:"".concat(zr)},ki,Ni)}}]),jt}(ot.Component);Le.defaultProps={pageSizeOptions:["10","20","50","100"]};var We=Le,Be=function(Wt){var jt,Vt=Wt.rootPrefixCls,_t=Wt.page,sn=Wt.active,Dt=Wt.className,xt=Wt.showTitle,en=Wt.onClick,an=Wt.onKeyPress,fn=Wt.itemRender,Tn="".concat(Vt,"-item"),ar=ie()(Tn,"".concat(Tn,"-").concat(_t),(jt={},(0,le.Z)(jt,"".concat(Tn,"-active"),sn),(0,le.Z)(jt,"".concat(Tn,"-disabled"),!_t),(0,le.Z)(jt,Wt.className,Dt),jt)),pr=function(){en(_t)},Ar=function(zr){an(zr,en,_t)},Dr=fn(_t,"page",ot.createElement("a",{rel:"nofollow"},_t));return Dr?ot.createElement("li",{title:xt?_t.toString():null,className:ar,onClick:pr,onKeyPress:Ar,tabIndex:0},Dr):null},He=Be;function Ye(){}function et(St){var Wt=Number(St);return typeof Wt=="number"&&!Number.isNaN(Wt)&&isFinite(Wt)&&Math.floor(Wt)===Wt}var st=function(Wt,jt,Vt){return Vt};function yt(St,Wt,jt){var Vt=typeof St=="undefined"?Wt.pageSize:St;return Math.floor((jt.total-1)/Vt)+1}var Ve=function(St){(0,oe.Z)(jt,St);var Wt=(0,Se.Z)(jt);function jt(Vt){var _t;(0,fe.Z)(this,jt),_t=Wt.call(this,Vt),_t.paginationNode=ot.createRef(),_t.getJumpPrevPage=function(){return Math.max(1,_t.state.current-(_t.props.showLessItems?3:5))},_t.getJumpNextPage=function(){return Math.min(yt(void 0,_t.state,_t.props),_t.state.current+(_t.props.showLessItems?3:5))},_t.getItemIcon=function(an,fn){var Tn=_t.props.prefixCls,ar=an||ot.createElement("button",{type:"button","aria-label":fn,className:"".concat(Tn,"-item-link")});return typeof an=="function"&&(ar=ot.createElement(an,(0,ue.Z)({},_t.props))),ar},_t.isValid=function(an){var fn=_t.props.total;return et(an)&&an!==_t.state.current&&et(fn)&&fn>0},_t.shouldDisplayQuickJumper=function(){var an=_t.props,fn=an.showQuickJumper,Tn=an.total,ar=_t.state.pageSize;return Tn<=ar?!1:fn},_t.handleKeyDown=function(an){(an.keyCode===Ie.ARROW_UP||an.keyCode===Ie.ARROW_DOWN)&&an.preventDefault()},_t.handleKeyUp=function(an){var fn=_t.getValidValue(an),Tn=_t.state.currentInputValue;fn!==Tn&&_t.setState({currentInputValue:fn}),an.keyCode===Ie.ENTER?_t.handleChange(fn):an.keyCode===Ie.ARROW_UP?_t.handleChange(fn-1):an.keyCode===Ie.ARROW_DOWN&&_t.handleChange(fn+1)},_t.handleBlur=function(an){var fn=_t.getValidValue(an);_t.handleChange(fn)},_t.changePageSize=function(an){var fn=_t.state.current,Tn=yt(an,_t.state,_t.props);fn=fn>Tn?Tn:fn,Tn===0&&(fn=_t.state.current),typeof an=="number"&&("pageSize"in _t.props||_t.setState({pageSize:an}),"current"in _t.props||_t.setState({current:fn,currentInputValue:fn})),_t.props.onShowSizeChange(fn,an),"onChange"in _t.props&&_t.props.onChange&&_t.props.onChange(fn,an)},_t.handleChange=function(an){var fn=_t.props,Tn=fn.disabled,ar=fn.onChange,pr=_t.state,Ar=pr.pageSize,Dr=pr.current,dr=pr.currentInputValue;if(_t.isValid(an)&&!Tn){var zr=yt(void 0,_t.state,_t.props),ai=an;return an>zr?ai=zr:an<1&&(ai=1),"current"in _t.props||_t.setState({current:ai}),ai!==dr&&_t.setState({currentInputValue:ai}),ar(ai,Ar),ai}return Dr},_t.prev=function(){_t.hasPrev()&&_t.handleChange(_t.state.current-1)},_t.next=function(){_t.hasNext()&&_t.handleChange(_t.state.current+1)},_t.jumpPrev=function(){_t.handleChange(_t.getJumpPrevPage())},_t.jumpNext=function(){_t.handleChange(_t.getJumpNextPage())},_t.hasPrev=function(){return _t.state.current>1},_t.hasNext=function(){return _t.state.current<yt(void 0,_t.state,_t.props)},_t.runIfEnter=function(an,fn){if(an.key==="Enter"||an.charCode===13){for(var Tn=arguments.length,ar=new Array(Tn>2?Tn-2:0),pr=2;pr<Tn;pr++)ar[pr-2]=arguments[pr];fn.apply(void 0,ar)}},_t.runIfEnterPrev=function(an){_t.runIfEnter(an,_t.prev)},_t.runIfEnterNext=function(an){_t.runIfEnter(an,_t.next)},_t.runIfEnterJumpPrev=function(an){_t.runIfEnter(an,_t.jumpPrev)},_t.runIfEnterJumpNext=function(an){_t.runIfEnter(an,_t.jumpNext)},_t.handleGoTO=function(an){(an.keyCode===Ie.ENTER||an.type==="click")&&_t.handleChange(_t.state.currentInputValue)},_t.renderPrev=function(an){var fn=_t.props,Tn=fn.prevIcon,ar=fn.itemRender,pr=ar(an,"prev",_t.getItemIcon(Tn,"prev page")),Ar=!_t.hasPrev();return(0,ot.isValidElement)(pr)?(0,ot.cloneElement)(pr,{disabled:Ar}):pr},_t.renderNext=function(an){var fn=_t.props,Tn=fn.nextIcon,ar=fn.itemRender,pr=ar(an,"next",_t.getItemIcon(Tn,"next page")),Ar=!_t.hasNext();return(0,ot.isValidElement)(pr)?(0,ot.cloneElement)(pr,{disabled:Ar}):pr};var sn=Vt.onChange!==Ye,Dt="current"in Vt;Dt&&!sn&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var xt=Vt.defaultCurrent;"current"in Vt&&(xt=Vt.current);var en=Vt.defaultPageSize;return"pageSize"in Vt&&(en=Vt.pageSize),xt=Math.min(xt,yt(en,void 0,Vt)),_t.state={current:xt,currentInputValue:xt,pageSize:en},_t}return(0,he.Z)(jt,[{key:"componentDidUpdate",value:function(_t,sn){var Dt=this.props.prefixCls;if(sn.current!==this.state.current&&this.paginationNode.current){var xt=this.paginationNode.current.querySelector(".".concat(Dt,"-item-").concat(sn.current));if(xt&&document.activeElement===xt){var en;xt==null||(en=xt.blur)===null||en===void 0||en.call(xt)}}}},{key:"getValidValue",value:function(_t){var sn=_t.target.value,Dt=yt(void 0,this.state,this.props),xt=this.state.currentInputValue,en;return sn===""?en=sn:Number.isNaN(Number(sn))?en=xt:sn>=Dt?en=Dt:en=Number(sn),en}},{key:"getShowSizeChanger",value:function(){var _t=this.props,sn=_t.showSizeChanger,Dt=_t.total,xt=_t.totalBoundaryShowSizeChanger;return typeof sn!="undefined"?sn:Dt>xt}},{key:"render",value:function(){var _t=this.props,sn=_t.prefixCls,Dt=_t.className,xt=_t.style,en=_t.disabled,an=_t.hideOnSinglePage,fn=_t.total,Tn=_t.locale,ar=_t.showQuickJumper,pr=_t.showLessItems,Ar=_t.showTitle,Dr=_t.showTotal,dr=_t.simple,zr=_t.itemRender,ai=_t.showPrevNextJumpers,ki=_t.jumpPrevIcon,Ni=_t.jumpNextIcon,xi=_t.selectComponentClass,cn=_t.selectPrefixCls,ir=_t.pageSizeOptions,sr=this.state,Yn=sr.current,Rr=sr.pageSize,Nn=sr.currentInputValue;if(an===!0&&fn<=Rr)return null;var Hn=yt(void 0,this.state,this.props),jn=[],Gt=null,Xt=null,rn=null,An=null,zt=null,tn=ar&&ar.goButton,bn=pr?1:2,wn=Yn-1>0?Yn-1:0,zn=Yn+1<Hn?Yn+1:Hn,Un=Ae(this.props,{aria:!0,data:!0}),kr=Dr&&ot.createElement("li",{className:"".concat(sn,"-total-text")},Dr(fn,[fn===0?0:(Yn-1)*Rr+1,Yn*Rr>fn?fn:Yn*Rr]));if(dr){tn&&(typeof tn=="boolean"?zt=ot.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Tn.jump_to_confirm):zt=ot.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},tn),zt=ot.createElement("li",{title:Ar?"".concat(Tn.jump_to).concat(Yn,"/").concat(Hn):null,className:"".concat(sn,"-simple-pager")},zt));var Zr=this.renderPrev(wn);return ot.createElement("ul",(0,Ue.Z)({className:ie()(sn,"".concat(sn,"-simple"),(0,le.Z)({},"".concat(sn,"-disabled"),en),Dt),style:xt,ref:this.paginationNode},Un),kr,Zr?ot.createElement("li",{title:Ar?Tn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:ie()("".concat(sn,"-prev"),(0,le.Z)({},"".concat(sn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Zr):null,ot.createElement("li",{title:Ar?"".concat(Yn,"/").concat(Hn):null,className:"".concat(sn,"-simple-pager")},ot.createElement("input",{type:"text",value:Nn,disabled:en,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ot.createElement("span",{className:"".concat(sn,"-slash")},"/"),Hn),ot.createElement("li",{title:Ar?Tn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:ie()("".concat(sn,"-next"),(0,le.Z)({},"".concat(sn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(zn)),zt)}if(Hn<=3+bn*2){var Ir={locale:Tn,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ar,itemRender:zr};Hn||jn.push(ot.createElement(He,(0,Ue.Z)({},Ir,{key:"noPager",page:1,className:"".concat(sn,"-item-disabled")})));for(var Er=1;Er<=Hn;Er+=1){var Br=Yn===Er;jn.push(ot.createElement(He,(0,Ue.Z)({},Ir,{key:Er,page:Er,active:Br})))}}else{var Pr=pr?Tn.prev_3:Tn.prev_5,nn=pr?Tn.next_3:Tn.next_5,Jt=zr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ki,"prev page")),pn=zr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ni,"next page"));ai&&(Gt=Jt?ot.createElement("li",{title:Ar?Pr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:ie()("".concat(sn,"-jump-prev"),(0,le.Z)({},"".concat(sn,"-jump-prev-custom-icon"),!!ki))},Jt):null,Xt=pn?ot.createElement("li",{title:Ar?nn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:ie()("".concat(sn,"-jump-next"),(0,le.Z)({},"".concat(sn,"-jump-next-custom-icon"),!!Ni))},pn):null),An=ot.createElement(He,{locale:Tn,last:!0,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Hn,page:Hn,active:!1,showTitle:Ar,itemRender:zr}),rn=ot.createElement(He,{locale:Tn,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ar,itemRender:zr});var Qn=Math.max(1,Yn-bn),hr=Math.min(Yn+bn,Hn);Yn-1<=bn&&(hr=1+bn*2),Hn-Yn<=bn&&(Qn=Hn-bn*2);for(var Fn=Qn;Fn<=hr;Fn+=1){var Vn=Yn===Fn;jn.push(ot.createElement(He,{locale:Tn,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Fn,page:Fn,active:Vn,showTitle:Ar,itemRender:zr}))}Yn-1>=bn*2&&Yn!==3&&(jn[0]=(0,ot.cloneElement)(jn[0],{className:"".concat(sn,"-item-after-jump-prev")}),jn.unshift(Gt)),Hn-Yn>=bn*2&&Yn!==Hn-2&&(jn[jn.length-1]=(0,ot.cloneElement)(jn[jn.length-1],{className:"".concat(sn,"-item-before-jump-next")}),jn.push(Xt)),Qn!==1&&jn.unshift(rn),hr!==Hn&&jn.push(An)}var er=!this.hasPrev()||!Hn,Sr=!this.hasNext()||!Hn,Nr=this.renderPrev(wn),In=this.renderNext(zn);return ot.createElement("ul",(0,Ue.Z)({className:ie()(sn,Dt,(0,le.Z)({},"".concat(sn,"-disabled"),en)),style:xt,ref:this.paginationNode},Un),kr,Nr?ot.createElement("li",{title:Ar?Tn.prev_page:null,onClick:this.prev,tabIndex:er?null:0,onKeyPress:this.runIfEnterPrev,className:ie()("".concat(sn,"-prev"),(0,le.Z)({},"".concat(sn,"-disabled"),er)),"aria-disabled":er},Nr):null,jn,In?ot.createElement("li",{title:Ar?Tn.next_page:null,onClick:this.next,tabIndex:Sr?null:0,onKeyPress:this.runIfEnterNext,className:ie()("".concat(sn,"-next"),(0,le.Z)({},"".concat(sn,"-disabled"),Sr)),"aria-disabled":Sr},In):null,ot.createElement(We,{disabled:en,locale:Tn,rootPrefixCls:sn,selectComponentClass:xi,selectPrefixCls:cn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Yn,pageSize:Rr,pageSizeOptions:ir,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:tn}))}}],[{key:"getDerivedStateFromProps",value:function(_t,sn){var Dt={};if("current"in _t&&(Dt.current=_t.current,_t.current!==sn.current&&(Dt.currentInputValue=Dt.current)),"pageSize"in _t&&_t.pageSize!==sn.pageSize){var xt=sn.current,en=yt(_t.pageSize,sn,_t);xt=xt>en?en:xt,"current"in _t||(Dt.current=xt,Dt.currentInputValue=xt),Dt.pageSize=_t.pageSize}return Dt}}]),jt}(ot.Component);Ve.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ye,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ye,locale:Pe.Z,style:{},itemRender:st,totalBoundaryShowSizeChanger:50};var Qe=Ve,pt=ve(62906),mt=ve(53124),ft=ve(98675),nt=ve(25378),tt=ve(10110),rt=ve(11713);const Et=St=>ot.createElement(rt.default,Object.assign({},St,{showSearch:!0,size:"small"})),bt=St=>ot.createElement(rt.default,Object.assign({},St,{showSearch:!0,size:"middle"}));Et.Option=rt.default.Option,bt.Option=rt.default.Option;var Pt=ve(47673),Lt=ve(14747),dt=ve(67968),Ze=ve(45503);const Ke=St=>{const{componentCls:Wt}=St;return{[`${Wt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Wt}-item-link`]:{color:St.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Wt}-item-link`]:{color:St.colorTextDisabled,cursor:"not-allowed"}}},[`&${Wt}-disabled`]:{cursor:"not-allowed",[`${Wt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:St.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:St.colorBorder,backgroundColor:St.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:St.itemActiveBgDisabled},a:{color:St.itemActiveColorDisabled}}},[`${Wt}-item-link`]:{color:St.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Wt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Wt}-simple-pager`]:{color:St.colorTextDisabled},[`${Wt}-jump-prev, ${Wt}-jump-next`]:{[`${Wt}-item-link-icon`]:{opacity:0},[`${Wt}-item-ellipsis`]:{opacity:1}}},[`&${Wt}-simple`]:{[`${Wt}-prev, ${Wt}-next`]:{[`&${Wt}-disabled ${Wt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},de=St=>{const{componentCls:Wt}=St;return{[`&${Wt}-mini ${Wt}-total-text, &${Wt}-mini ${Wt}-simple-pager`]:{height:St.itemSizeSM,lineHeight:`${St.itemSizeSM}px`},[`&${Wt}-mini ${Wt}-item`]:{minWidth:St.itemSizeSM,height:St.itemSizeSM,margin:0,lineHeight:`${St.itemSizeSM-2}px`},[`&${Wt}-mini:not(${Wt}-disabled) ${Wt}-item:not(${Wt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:St.colorBgTextHover},"&:active":{backgroundColor:St.colorBgTextActive}},[`&${Wt}-mini ${Wt}-prev, &${Wt}-mini ${Wt}-next`]:{minWidth:St.itemSizeSM,height:St.itemSizeSM,margin:0,lineHeight:`${St.itemSizeSM}px`},[`&${Wt}-mini:not(${Wt}-disabled)`]:{[`${Wt}-prev, ${Wt}-next`]:{[`&:hover ${Wt}-item-link`]:{backgroundColor:St.colorBgTextHover},[`&:active ${Wt}-item-link`]:{backgroundColor:St.colorBgTextActive},[`&${Wt}-disabled:hover ${Wt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Wt}-mini ${Wt}-prev ${Wt}-item-link,
|
|
|
&${Wt}-mini ${Wt}-next ${Wt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:St.itemSizeSM,lineHeight:`${St.itemSizeSM}px`}},[`&${Wt}-mini ${Wt}-jump-prev, &${Wt}-mini ${Wt}-jump-next`]:{height:St.itemSizeSM,marginInlineEnd:0,lineHeight:`${St.itemSizeSM}px`},[`&${Wt}-mini ${Wt}-options`]:{marginInlineStart:St.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:St.miniOptionsSizeChangerTop},"&-quick-jumper":{height:St.itemSizeSM,lineHeight:`${St.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Pt.x0)(St)),{width:St.paginationMiniQuickJumperInputWidth,height:St.controlHeightSM})}}}},xe=St=>{const{componentCls:Wt}=St;return{[`
|
|
|
&${Wt}-simple ${Wt}-prev,
|
|
|
&${Wt}-simple ${Wt}-next
|
|
|
`]:{height:St.itemSizeSM,lineHeight:`${St.itemSizeSM}px`,verticalAlign:"top",[`${Wt}-item-link`]:{height:St.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:St.colorBgTextHover},"&:active":{backgroundColor:St.colorBgTextActive},"&::after":{height:St.itemSizeSM,lineHeight:`${St.itemSizeSM}px`}}},[`&${Wt}-simple ${Wt}-simple-pager`]:{display:"inline-block",height:St.itemSizeSM,marginInlineEnd:St.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:St.marginXS,padding:`0 ${St.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:St.itemInputBg,border:`${St.lineWidth}px ${St.lineType} ${St.colorBorder}`,borderRadius:St.borderRadius,outline:"none",transition:`border-color ${St.motionDurationMid}`,color:"inherit","&:hover":{borderColor:St.colorPrimary},"&:focus":{borderColor:St.colorPrimaryHover,boxShadow:`${St.inputOutlineOffset}px 0 ${St.controlOutlineWidth}px ${St.controlOutline}`},"&[disabled]":{color:St.colorTextDisabled,backgroundColor:St.colorBgContainerDisabled,borderColor:St.colorBorder,cursor:"not-allowed"}}}}},ze=St=>{const{componentCls:Wt}=St;return{[`${Wt}-jump-prev, ${Wt}-jump-next`]:{outline:0,[`${Wt}-item-container`]:{position:"relative",[`${Wt}-item-link-icon`]:{color:St.colorPrimary,fontSize:St.fontSizeSM,opacity:0,transition:`all ${St.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Wt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:St.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:St.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:St.paginationEllipsisTextIndent,opacity:1,transition:`all ${St.motionDurationMid}`}},"&:hover":{[`${Wt}-item-link-icon`]:{opacity:1},[`${Wt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Wt}-prev,
|
|
|
${Wt}-jump-prev,
|
|
|
${Wt}-jump-next
|
|
|
`]:{marginInlineEnd:St.marginXS},[`
|
|
|
${Wt}-prev,
|
|
|
${Wt}-next,
|
|
|
${Wt}-jump-prev,
|
|
|
${Wt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:St.itemSize,height:St.itemSize,color:St.colorText,fontFamily:St.fontFamily,lineHeight:`${St.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:St.borderRadius,cursor:"pointer",transition:`all ${St.motionDurationMid}`},[`${Wt}-prev, ${Wt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:St.colorText,cursor:"pointer",userSelect:"none"},[`${Wt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:St.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${St.lineWidth}px ${St.lineType} transparent`,borderRadius:St.borderRadius,outline:"none",transition:`all ${St.motionDurationMid}`},[`&:hover ${Wt}-item-link`]:{backgroundColor:St.colorBgTextHover},[`&:active ${Wt}-item-link`]:{backgroundColor:St.colorBgTextActive},[`&${Wt}-disabled:hover`]:{[`${Wt}-item-link`]:{backgroundColor:"transparent"}}},[`${Wt}-slash`]:{marginInlineEnd:St.paginationSlashMarginInlineEnd,marginInlineStart:St.paginationSlashMarginInlineStart},[`${Wt}-options`]:{display:"inline-block",marginInlineStart:St.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:St.controlHeight,marginInlineStart:St.marginXS,lineHeight:`${St.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Pt.ik)(St)),{width:St.controlHeightLG*1.25,height:St.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:St.marginXS,marginInlineEnd:St.marginXS})}}}},$e=St=>{const{componentCls:Wt}=St;return{[`${Wt}-item`]:{display:"inline-block",minWidth:St.itemSize,height:St.itemSize,marginInlineEnd:St.marginXS,fontFamily:St.fontFamily,lineHeight:`${St.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${St.lineWidth}px ${St.lineType} transparent`,borderRadius:St.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${St.paginationItemPaddingInline}px`,color:St.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Wt}-item-active)`]:{"&:hover":{transition:`all ${St.motionDurationMid}`,backgroundColor:St.colorBgTextHover},"&:active":{backgroundColor:St.colorBgTextActive}},"&-active":{fontWeight:St.fontWeightStrong,backgroundColor:St.itemActiveBg,borderColor:St.colorPrimary,a:{color:St.colorPrimary},"&:hover":{borderColor:St.colorPrimaryHover},"&:hover a":{color:St.colorPrimaryHover}}}}},Ee=St=>{const{componentCls:Wt}=St;return{[Wt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(St)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Wt}-total-text`]:{display:"inline-block",height:St.itemSize,marginInlineEnd:St.marginXS,lineHeight:`${St.itemSize-2}px`,verticalAlign:"middle"}}),$e(St)),ze(St)),xe(St)),de(St)),Ke(St)),{[`@media only screen and (max-width: ${St.screenLG}px)`]:{[`${Wt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${St.screenSM}px)`]:{[`${Wt}-options`]:{display:"none"}}}),[`&${St.componentCls}-rtl`]:{direction:"rtl"}}},Re=St=>{const{componentCls:Wt}=St;return{[`${Wt}${Wt}-disabled:not(${Wt}-mini)`]:{"&, &:hover":{[`${Wt}-item-link`]:{borderColor:St.colorBorder}},"&:focus-visible":{[`${Wt}-item-link`]:{borderColor:St.colorBorder}},[`${Wt}-item, ${Wt}-item-link`]:{backgroundColor:St.colorBgContainerDisabled,borderColor:St.colorBorder,[`&:hover:not(${Wt}-item-active)`]:{backgroundColor:St.colorBgContainerDisabled,borderColor:St.colorBorder,a:{color:St.colorTextDisabled}},[`&${Wt}-item-active`]:{backgroundColor:St.itemActiveBgDisabled}},[`${Wt}-prev, ${Wt}-next`]:{"&:hover button":{backgroundColor:St.colorBgContainerDisabled,borderColor:St.colorBorder,color:St.colorTextDisabled},[`${Wt}-item-link`]:{backgroundColor:St.colorBgContainerDisabled,borderColor:St.colorBorder}}},[`${Wt}:not(${Wt}-mini)`]:{[`${Wt}-prev, ${Wt}-next`]:{"&:hover button":{borderColor:St.colorPrimaryHover,backgroundColor:St.itemBg},[`${Wt}-item-link`]:{backgroundColor:St.itemLinkBg,borderColor:St.colorBorder},[`&:hover ${Wt}-item-link`]:{borderColor:St.colorPrimary,backgroundColor:St.itemBg,color:St.colorPrimary},[`&${Wt}-disabled`]:{[`${Wt}-item-link`]:{borderColor:St.colorBorder,color:St.colorTextDisabled}}},[`${Wt}-item`]:{backgroundColor:St.itemBg,border:`${St.lineWidth}px ${St.lineType} ${St.colorBorder}`,[`&:hover:not(${Wt}-item-active)`]:{borderColor:St.colorPrimary,backgroundColor:St.itemBg,a:{color:St.colorPrimary}},"&-active":{borderColor:St.colorPrimary}}}}},Fe=St=>{const{componentCls:Wt}=St;return{[`${Wt}:not(${Wt}-disabled)`]:{[`${Wt}-item`]:Object.assign({},(0,Lt.Qy)(St)),[`${Wt}-jump-prev, ${Wt}-jump-next`]:{"&:focus-visible":Object.assign({[`${Wt}-item-link-icon`]:{opacity:1},[`${Wt}-item-ellipsis`]:{opacity:0}},(0,Lt.oN)(St))},[`${Wt}-prev, ${Wt}-next`]:{[`&:focus-visible ${Wt}-item-link`]:Object.assign({},(0,Lt.oN)(St))}}}};var Ge=(0,dt.Z)("Pagination",St=>{const Wt=(0,Ze.TS)(St,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:St.marginXXS/2,paginationMiniQuickJumperInputWidth:St.controlHeightLG*1.1,paginationItemPaddingInline:St.marginXXS*1.5,paginationEllipsisLetterSpacing:St.marginXXS/2,paginationSlashMarginInlineStart:St.marginXXS,paginationSlashMarginInlineEnd:St.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Pt.e5)(St),(0,Pt.TM)(St));return[Ee(Wt),Fe(Wt),St.wireframe&&Re(Wt)]},St=>({itemBg:St.colorBgContainer,itemSize:St.controlHeight,itemSizeSM:St.controlHeightSM,itemActiveBg:St.colorBgContainer,itemLinkBg:St.colorBgContainer,itemActiveColorDisabled:St.colorTextDisabled,itemActiveBgDisabled:St.controlItemBgActiveDisabled,itemInputBg:St.colorBgContainer,miniOptionsSizeChangerTop:0})),it=function(St,Wt){var jt={};for(var Vt in St)Object.prototype.hasOwnProperty.call(St,Vt)&&Wt.indexOf(Vt)<0&&(jt[Vt]=St[Vt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Vt=Object.getOwnPropertySymbols(St);_t<Vt.length;_t++)Wt.indexOf(Vt[_t])<0&&Object.prototype.propertyIsEnumerable.call(St,Vt[_t])&&(jt[Vt[_t]]=St[Vt[_t]]);return jt},Kt=St=>{const{prefixCls:Wt,selectPrefixCls:jt,className:Vt,rootClassName:_t,style:sn,size:Dt,locale:xt,selectComponentClass:en,responsive:an,showSizeChanger:fn}=St,Tn=it(St,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ar}=(0,nt.Z)(an),{getPrefixCls:pr,direction:Ar,pagination:Dr={}}=ot.useContext(mt.E_),dr=pr("pagination",Wt),[zr,ai]=Ge(dr),ki=fn!=null?fn:Dr.showSizeChanger,Ni=ot.useMemo(()=>{const Hn=ot.createElement("span",{className:`${dr}-item-ellipsis`},"\u2022\u2022\u2022"),jn=ot.createElement("button",{className:`${dr}-item-link`,type:"button",tabIndex:-1},Ar==="rtl"?ot.createElement(se.Z,null):ot.createElement(re.Z,null)),Gt=ot.createElement("button",{className:`${dr}-item-link`,type:"button",tabIndex:-1},Ar==="rtl"?ot.createElement(re.Z,null):ot.createElement(se.Z,null)),Xt=ot.createElement("a",{className:`${dr}-item-link`},ot.createElement("div",{className:`${dr}-item-container`},Ar==="rtl"?ot.createElement(ae.Z,{className:`${dr}-item-link-icon`}):ot.createElement(z,{className:`${dr}-item-link-icon`}),Hn)),rn=ot.createElement("a",{className:`${dr}-item-link`},ot.createElement("div",{className:`${dr}-item-container`},Ar==="rtl"?ot.createElement(z,{className:`${dr}-item-link-icon`}):ot.createElement(ae.Z,{className:`${dr}-item-link-icon`}),Hn));return{prevIcon:jn,nextIcon:Gt,jumpPrevIcon:Xt,jumpNextIcon:rn}},[Ar,dr]),[xi]=(0,tt.Z)("Pagination",pt.Z),cn=Object.assign(Object.assign({},xi),xt),ir=(0,ft.Z)(Dt),sr=ir==="small"||!!(ar&&!ir&&an),Yn=pr("select",jt),Rr=ie()({[`${dr}-mini`]:sr,[`${dr}-rtl`]:Ar==="rtl"},Dr==null?void 0:Dr.className,Vt,_t,ai),Nn=Object.assign(Object.assign({},Dr==null?void 0:Dr.style),sn);return zr(ot.createElement(Qe,Object.assign({},Ni,Tn,{style:Nn,prefixCls:dr,selectPrefixCls:Yn,className:Rr,selectComponentClass:en||(sr?Et:bt),locale:cn,showSizeChanger:ki})))},kt=Kt},86738:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Ie}});var Ue=ve(87995),ot=ve(94184),x=ve.n(ot),ke=ve(92389),pe=ve(5663),ne=ve(10366),z=ve(67294),ae=ve(96159),re=ve(53124),se=ve(55241),me=ve(86743),ie=ve(81643),le=ve(71577),ue=ve(4026),fe=ve(10110),he=ve(24457),oe=ve(66330),Se=ve(67968);const Ce=Pe=>{const{componentCls:Le,iconCls:We,antCls:Be,zIndexPopup:He,colorText:Ye,colorWarning:et,marginXXS:st,marginXS:yt,fontSize:Ve,fontWeightStrong:Qe,colorTextHeading:pt}=Pe;return{[Le]:{zIndex:He,[`&${Be}-popover`]:{fontSize:Ve},[`${Le}-message`]:{marginBottom:yt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Le}-message-icon ${We}`]:{color:et,fontSize:Ve,lineHeight:1,marginInlineEnd:yt},[`${Le}-title`]:{fontWeight:Qe,color:pt,"&:only-child":{fontWeight:"normal"}},[`${Le}-description`]:{marginTop:st,color:Ye}},[`${Le}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:yt}}}}};var ye=(0,Se.Z)("Popconfirm",Pe=>Ce(Pe),Pe=>{const{zIndexPopupBase:Le}=Pe;return{zIndexPopup:Le+60}},{resetStyle:!1}),_e=function(Pe,Le){var We={};for(var Be in Pe)Object.prototype.hasOwnProperty.call(Pe,Be)&&Le.indexOf(Be)<0&&(We[Be]=Pe[Be]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Be=Object.getOwnPropertySymbols(Pe);He<Be.length;He++)Le.indexOf(Be[He])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Be[He])&&(We[Be[He]]=Pe[Be[He]]);return We};const Me=Pe=>{const{prefixCls:Le,okButtonProps:We,cancelButtonProps:Be,title:He,description:Ye,cancelText:et,okText:st,okType:yt="primary",icon:Ve=z.createElement(Ue.Z,null),showCancel:Qe=!0,close:pt,onConfirm:mt,onCancel:ft,onPopupClick:nt}=Pe,{getPrefixCls:tt}=z.useContext(re.E_),[rt]=(0,fe.Z)("Popconfirm",he.Z.Popconfirm),Et=(0,ie.Z)(He),bt=(0,ie.Z)(Ye);return z.createElement("div",{className:`${Le}-inner-content`,onClick:nt},z.createElement("div",{className:`${Le}-message`},Ve&&z.createElement("span",{className:`${Le}-message-icon`},Ve),z.createElement("div",{className:`${Le}-message-text`},Et&&z.createElement("div",{className:x()(`${Le}-title`)},Et),bt&&z.createElement("div",{className:`${Le}-description`},bt))),z.createElement("div",{className:`${Le}-buttons`},Qe&&z.createElement(le.ZP,Object.assign({onClick:ft,size:"small"},Be),et!=null?et:rt==null?void 0:rt.cancelText),z.createElement(me.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,ue.n)(yt)),We),actionFn:mt,close:pt,prefixCls:tt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},st!=null?st:rt==null?void 0:rt.okText)))};var Ne=Pe=>{const{prefixCls:Le,placement:We,className:Be,style:He}=Pe,Ye=_e(Pe,["prefixCls","placement","className","style"]),{getPrefixCls:et}=z.useContext(re.E_),st=et("popconfirm",Le),[yt]=ye(st);return yt(z.createElement(oe.ZP,{placement:We,className:x()(st,Be),style:He,content:z.createElement(Me,Object.assign({prefixCls:st},Ye))}))},Ae=function(Pe,Le){var We={};for(var Be in Pe)Object.prototype.hasOwnProperty.call(Pe,Be)&&Le.indexOf(Be)<0&&(We[Be]=Pe[Be]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Be=Object.getOwnPropertySymbols(Pe);He<Be.length;He++)Le.indexOf(Be[He])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Be[He])&&(We[Be[He]]=Pe[Be[He]]);return We};const De=z.forwardRef((Pe,Le)=>{const{prefixCls:We,placement:Be="top",trigger:He="click",okType:Ye="primary",icon:et=z.createElement(Ue.Z,null),children:st,overlayClassName:yt,onOpenChange:Ve,onVisibleChange:Qe}=Pe,pt=Ae(Pe,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:mt}=z.useContext(re.E_),[ft,nt]=(0,pe.Z)(!1,{value:Pe.open,defaultValue:Pe.defaultOpen}),tt=(de,xe)=>{nt(de,!0),Qe==null||Qe(de),Ve==null||Ve(de,xe)},rt=de=>{tt(!1,de)},Et=de=>{var xe;return(xe=Pe.onConfirm)===null||xe===void 0?void 0:xe.call(void 0,de)},bt=de=>{var xe;tt(!1,de),(xe=Pe.onCancel)===null||xe===void 0||xe.call(void 0,de)},Pt=de=>{de.keyCode===ke.Z.ESC&&ft&&tt(!1,de)},Lt=de=>{const{disabled:xe=!1}=Pe;xe||tt(de)},dt=mt("popconfirm",We),Ze=x()(dt,yt),[Ke]=ye(dt);return Ke(z.createElement(se.Z,Object.assign({},(0,ne.Z)(pt,["title"]),{trigger:He,placement:Be,onOpenChange:Lt,open:ft,ref:Le,overlayClassName:Ze,content:z.createElement(Me,Object.assign({okType:Ye,icon:et},Pe,{prefixCls:dt,close:rt,onConfirm:Et,onCancel:bt})),"data-popover-inject":!0}),(0,ae.Tm)(st,{onKeyDown:de=>{var xe,ze;z.isValidElement(st)&&((ze=st==null?void 0:(xe=st.props).onKeyDown)===null||ze===void 0||ze.call(xe,de)),Pt(de)}})))});De._InternalPanelDoNotUseOrYouWillBeFired=Ne;var Ie=De},66330:function(xn,Zt,ve){"use strict";ve.d(Zt,{t5:function(){return se}});var Ue=ve(94184),ot=ve.n(Ue),x=ve(92419),ke=ve(67294),pe=ve(53124),ne=ve(81643),z=ve(20136),ae=function(ie,le){var ue={};for(var fe in ie)Object.prototype.hasOwnProperty.call(ie,fe)&&le.indexOf(fe)<0&&(ue[fe]=ie[fe]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,fe=Object.getOwnPropertySymbols(ie);he<fe.length;he++)le.indexOf(fe[he])<0&&Object.prototype.propertyIsEnumerable.call(ie,fe[he])&&(ue[fe[he]]=ie[fe[he]]);return ue};const re=(ie,le,ue)=>{if(!(!le&&!ue))return ke.createElement(ke.Fragment,null,le&&ke.createElement("div",{className:`${ie}-title`},(0,ne.Z)(le)),ke.createElement("div",{className:`${ie}-inner-content`},(0,ne.Z)(ue)))},se=ie=>{const{hashId:le,prefixCls:ue,className:fe,style:he,placement:oe="top",title:Se,content:Ce,children:ye}=ie;return ke.createElement("div",{className:ot()(le,ue,`${ue}-pure`,`${ue}-placement-${oe}`,fe),style:he},ke.createElement("div",{className:`${ue}-arrow`}),ke.createElement(x.G,Object.assign({},ie,{className:le,prefixCls:ue}),ye||re(ue,Se,Ce)))},me=ie=>{const{prefixCls:le}=ie,ue=ae(ie,["prefixCls"]),{getPrefixCls:fe}=ke.useContext(pe.E_),he=fe("popover",le),[oe,Se]=(0,z.Z)(he);return oe(ke.createElement(se,Object.assign({},ue,{prefixCls:he,hashId:Se})))};Zt.ZP=me},55241:function(xn,Zt,ve){"use strict";var Ue=ve(94184),ot=ve.n(Ue),x=ve(67294),ke=ve(81643),pe=ve(33603),ne=ve(53124),z=ve(83062),ae=ve(66330),re=ve(20136),se=function(le,ue){var fe={};for(var he in le)Object.prototype.hasOwnProperty.call(le,he)&&ue.indexOf(he)<0&&(fe[he]=le[he]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,he=Object.getOwnPropertySymbols(le);oe<he.length;oe++)ue.indexOf(he[oe])<0&&Object.prototype.propertyIsEnumerable.call(le,he[oe])&&(fe[he[oe]]=le[he[oe]]);return fe};const me=le=>{let{title:ue,content:fe,prefixCls:he}=le;return x.createElement(x.Fragment,null,ue&&x.createElement("div",{className:`${he}-title`},(0,ke.Z)(ue)),x.createElement("div",{className:`${he}-inner-content`},(0,ke.Z)(fe)))},ie=x.forwardRef((le,ue)=>{const{prefixCls:fe,title:he,content:oe,overlayClassName:Se,placement:Ce="top",trigger:ye="hover",mouseEnterDelay:_e=.1,mouseLeaveDelay:Me=.1,overlayStyle:we={}}=le,Ne=se(le,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Ae}=x.useContext(ne.E_),De=Ae("popover",fe),[Ie,Pe]=(0,re.Z)(De),Le=Ae(),We=ot()(Se,Pe);return Ie(x.createElement(z.Z,Object.assign({placement:Ce,trigger:ye,mouseEnterDelay:_e,mouseLeaveDelay:Me,overlayStyle:we},Ne,{prefixCls:De,overlayClassName:We,ref:ue,overlay:he||oe?x.createElement(me,{prefixCls:De,title:he,content:oe}):null,transitionName:(0,pe.m)(Le,"zoom-big",Ne.transitionName),"data-popover-inject":!0})))});ie._InternalPanelDoNotUseOrYouWillBeFired=ae.ZP,Zt.Z=ie},20136:function(xn,Zt,ve){"use strict";var Ue=ve(14747),ot=ve(50438),x=ve(97414),ke=ve(8796),pe=ve(67968),ne=ve(45503);const z=se=>{const{componentCls:me,popoverColor:ie,minWidth:le,fontWeightStrong:ue,popoverPadding:fe,boxShadowSecondary:he,colorTextHeading:oe,borderRadiusLG:Se,zIndexPopup:Ce,marginXS:ye,colorBgElevated:_e,popoverBg:Me}=se;return[{[me]:Object.assign(Object.assign({},(0,Ue.Wf)(se)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Ce,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":_e,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${me}-content`]:{position:"relative"},[`${me}-inner`]:{backgroundColor:Me,backgroundClip:"padding-box",borderRadius:Se,boxShadow:he,padding:fe},[`${me}-title`]:{minWidth:le,marginBottom:ye,color:oe,fontWeight:ue},[`${me}-inner-content`]:{color:ie}})},(0,x.ZP)(se,{colorBg:"var(--antd-arrow-background-color)"}),{[`${me}-pure`]:{position:"relative",maxWidth:"none",margin:se.sizePopupArrow,display:"inline-block",[`${me}-content`]:{display:"inline-block"}}}]},ae=se=>{const{componentCls:me}=se;return{[me]:ke.i.map(ie=>{const le=se[`${ie}6`];return{[`&${me}-${ie}`]:{"--antd-arrow-background-color":le,[`${me}-inner`]:{backgroundColor:le},[`${me}-arrow`]:{background:"transparent"}}}})}},re=se=>{const{componentCls:me,lineWidth:ie,lineType:le,colorSplit:ue,paddingSM:fe,controlHeight:he,fontSize:oe,lineHeight:Se,padding:Ce}=se,ye=he-Math.round(oe*Se),_e=ye/2,Me=ye/2-ie,we=Ce;return{[me]:{[`${me}-inner`]:{padding:0},[`${me}-title`]:{margin:0,padding:`${_e}px ${we}px ${Me}px`,borderBottom:`${ie}px ${le} ${ue}`},[`${me}-inner-content`]:{padding:`${fe}px ${we}px`}}}};Zt.Z=(0,pe.Z)("Popover",se=>{const{colorBgElevated:me,colorText:ie,wireframe:le}=se,ue=(0,ne.TS)(se,{popoverPadding:12,popoverBg:me,popoverColor:ie});return[z(ue),ae(ue),le&&re(ue),(0,ot._y)(ue,"zoom-big")]},se=>({width:177,minWidth:177,zIndexPopup:se.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},38703:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return sn}});var Ue=ve(67294),ot=ve(87725),x=ve(18299),ke=ve(16646),pe=ve(73475),ne=ve(94184),z=ve.n(ne),ae=ve(10366),re=ve(53124),se=ve(87462),me=ve(1413),ie=ve(45987),le={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ue=function(){var xt=(0,Ue.useRef)([]),en=(0,Ue.useRef)(null);return(0,Ue.useEffect)(function(){var an=Date.now(),fn=!1;xt.current.forEach(function(Tn){if(Tn){fn=!0;var ar=Tn.style;ar.transitionDuration=".3s, .3s, .3s, .06s",en.current&&an-en.current<100&&(ar.transitionDuration="0s, 0s")}}),fn&&(en.current=Date.now())}),xt.current},fe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],he=function(xt){var en=(0,me.Z)((0,me.Z)({},le),xt),an=en.className,fn=en.percent,Tn=en.prefixCls,ar=en.strokeColor,pr=en.strokeLinecap,Ar=en.strokeWidth,Dr=en.style,dr=en.trailColor,zr=en.trailWidth,ai=en.transition,ki=(0,ie.Z)(en,fe);delete ki.gapPosition;var Ni=Array.isArray(fn)?fn:[fn],xi=Array.isArray(ar)?ar:[ar],cn=ue(),ir=Ar/2,sr=100-Ar/2,Yn="M ".concat(pr==="round"?ir:0,",").concat(ir,`
|
|
|
L `).concat(pr==="round"?sr:100,",").concat(ir),Rr="0 0 100 ".concat(Ar),Nn=0;return Ue.createElement("svg",(0,se.Z)({className:z()("".concat(Tn,"-line"),an),viewBox:Rr,preserveAspectRatio:"none",style:Dr},ki),Ue.createElement("path",{className:"".concat(Tn,"-line-trail"),d:Yn,strokeLinecap:pr,stroke:dr,strokeWidth:zr||Ar,fillOpacity:"0"}),Ni.map(function(Hn,jn){var Gt=1;switch(pr){case"round":Gt=1-Ar/100;break;case"square":Gt=1-Ar/2/100;break;default:Gt=1;break}var Xt={strokeDasharray:"".concat(Hn*Gt,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:ai||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},rn=xi[jn]||xi[xi.length-1];return Nn+=Hn,Ue.createElement("path",{key:jn,className:"".concat(Tn,"-line-path"),d:Yn,strokeLinecap:pr,stroke:rn,strokeWidth:Ar,fillOpacity:"0",ref:function(zt){cn[jn]=zt},style:Xt})}))},oe=he,Se=ve(71002),Ce=ve(97685),ye=ve(98924),_e=0,Me=(0,ye.Z)();function we(){var Dt;return Me?(Dt=_e,_e+=1):Dt="TEST_OR_SSR",Dt}var Ne=function(Dt){var xt=Ue.useState(),en=(0,Ce.Z)(xt,2),an=en[0],fn=en[1];return Ue.useEffect(function(){fn("rc_progress_".concat(we()))},[]),Dt||an},Ae=function(xt){var en=xt.bg,an=xt.children;return Ue.createElement("div",{style:{width:"100%",height:"100%",background:en}},an)};function De(Dt,xt){return Object.keys(Dt).map(function(en){var an=parseFloat(en),fn="".concat(Math.floor(an*xt),"%");return"".concat(Dt[en]," ").concat(fn)})}var Ie=Ue.forwardRef(function(Dt,xt){var en=Dt.prefixCls,an=Dt.color,fn=Dt.gradientId,Tn=Dt.radius,ar=Dt.style,pr=Dt.ptg,Ar=Dt.strokeLinecap,Dr=Dt.strokeWidth,dr=Dt.size,zr=Dt.gapDegree,ai=an&&(0,Se.Z)(an)==="object",ki=ai?"#FFF":void 0,Ni=dr/2,xi=Ue.createElement("circle",{className:"".concat(en,"-circle-path"),r:Tn,cx:Ni,cy:Ni,stroke:ki,strokeLinecap:Ar,strokeWidth:Dr,opacity:pr===0?0:1,style:ar,ref:xt});if(!ai)return xi;var cn="".concat(fn,"-conic"),ir=zr?"".concat(180+zr/2,"deg"):"0deg",sr=De(an,(360-zr)/360),Yn=De(an,1),Rr="conic-gradient(from ".concat(ir,", ").concat(sr.join(", "),")"),Nn="linear-gradient(to ".concat(zr?"bottom":"top",", ").concat(Yn.join(", "),")");return Ue.createElement(Ue.Fragment,null,Ue.createElement("mask",{id:cn},xi),Ue.createElement("foreignObject",{x:0,y:0,width:dr,height:dr,mask:"url(#".concat(cn,")")},Ue.createElement(Ae,{bg:Nn},Ue.createElement(Ae,{bg:Rr}))))}),Pe=Ie,Le=100,We=function(xt,en,an,fn,Tn,ar,pr,Ar,Dr,dr){var zr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ai=an/100*360*((360-ar)/360),ki=ar===0?0:{bottom:0,top:180,left:90,right:-90}[pr],Ni=(100-fn)/100*en;Dr==="round"&&fn!==100&&(Ni+=dr/2,Ni>=en&&(Ni=en-.01));var xi=Le/2;return{stroke:typeof Ar=="string"?Ar:void 0,strokeDasharray:"".concat(en,"px ").concat(xt),strokeDashoffset:Ni+zr,transform:"rotate(".concat(Tn+ai+ki,"deg)"),transformOrigin:"".concat(xi,"px ").concat(xi,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Be=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function He(Dt){var xt=Dt!=null?Dt:[];return Array.isArray(xt)?xt:[xt]}var Ye=function(xt){var en=(0,me.Z)((0,me.Z)({},le),xt),an=en.id,fn=en.prefixCls,Tn=en.steps,ar=en.strokeWidth,pr=en.trailWidth,Ar=en.gapDegree,Dr=Ar===void 0?0:Ar,dr=en.gapPosition,zr=en.trailColor,ai=en.strokeLinecap,ki=en.style,Ni=en.className,xi=en.strokeColor,cn=en.percent,ir=(0,ie.Z)(en,Be),sr=Le/2,Yn=Ne(an),Rr="".concat(Yn,"-gradient"),Nn=sr-ar/2,Hn=Math.PI*2*Nn,jn=Dr>0?90+Dr/2:-90,Gt=Hn*((360-Dr)/360),Xt=(0,Se.Z)(Tn)==="object"?Tn:{count:Tn,space:2},rn=Xt.count,An=Xt.space,zt=He(cn),tn=He(xi),bn=tn.find(function(Er){return Er&&(0,Se.Z)(Er)==="object"}),wn=bn&&(0,Se.Z)(bn)==="object",zn=wn?"butt":ai,Un=We(Hn,Gt,0,100,jn,Dr,dr,zr,zn,ar),kr=ue(),Zr=function(){var Br=0;return zt.map(function(Pr,nn){var Jt=tn[nn]||tn[tn.length-1],pn=We(Hn,Gt,Br,Pr,jn,Dr,dr,Jt,zn,ar);return Br+=Pr,Ue.createElement(Pe,{key:nn,color:Jt,ptg:Pr,radius:Nn,prefixCls:fn,gradientId:Rr,style:pn,strokeLinecap:zn,strokeWidth:ar,gapDegree:Dr,ref:function(hr){kr[nn]=hr},size:Le})}).reverse()},Ir=function(){var Br=Math.round(rn*(zt[0]/100)),Pr=100/rn,nn=0;return new Array(rn).fill(null).map(function(Jt,pn){var Qn=pn<=Br-1?tn[0]:zr,hr=Qn&&(0,Se.Z)(Qn)==="object"?"url(#".concat(Rr,")"):void 0,Fn=We(Hn,Gt,nn,Pr,jn,Dr,dr,Qn,"butt",ar,An);return nn+=(Gt-Fn.strokeDashoffset+An)*100/Gt,Ue.createElement("circle",{key:pn,className:"".concat(fn,"-circle-path"),r:Nn,cx:sr,cy:sr,stroke:hr,strokeWidth:ar,opacity:1,style:Fn,ref:function(er){kr[pn]=er}})})};return Ue.createElement("svg",(0,se.Z)({className:z()("".concat(fn,"-circle"),Ni),viewBox:"0 0 ".concat(Le," ").concat(Le),style:ki,id:an,role:"presentation"},ir),!rn&&Ue.createElement("circle",{className:"".concat(fn,"-circle-trail"),r:Nn,cx:sr,cy:sr,stroke:zr,strokeLinecap:zn,strokeWidth:pr||ar,style:Un}),rn?Ir():Zr())},et=Ye,st={Line:oe,Circle:et},yt=ve(83062),Ve=ve(16397);function Qe(Dt){return!Dt||Dt<0?0:Dt>100?100:Dt}function pt(Dt){let{success:xt,successPercent:en}=Dt,an=en;return xt&&"progress"in xt&&(an=xt.progress),xt&&"percent"in xt&&(an=xt.percent),an}const mt=Dt=>{let{percent:xt,success:en,successPercent:an}=Dt;const fn=Qe(pt({success:en,successPercent:an}));return[fn,Qe(Qe(xt)-fn)]},ft=Dt=>{let{success:xt={},strokeColor:en}=Dt;const{strokeColor:an}=xt;return[an||Ve.presetPrimaryColors.green,en||null]},nt=(Dt,xt,en)=>{var an,fn,Tn,ar;let pr=-1,Ar=-1;if(xt==="step"){const Dr=en.steps,dr=en.strokeWidth;typeof Dt=="string"||typeof Dt=="undefined"?(pr=Dt==="small"?2:14,Ar=dr!=null?dr:8):typeof Dt=="number"?[pr,Ar]=[Dt,Dt]:[pr=14,Ar=8]=Dt,pr*=Dr}else if(xt==="line"){const Dr=en==null?void 0:en.strokeWidth;typeof Dt=="string"||typeof Dt=="undefined"?Ar=Dr||(Dt==="small"?6:8):typeof Dt=="number"?[pr,Ar]=[Dt,Dt]:[pr=-1,Ar=8]=Dt}else(xt==="circle"||xt==="dashboard")&&(typeof Dt=="string"||typeof Dt=="undefined"?[pr,Ar]=Dt==="small"?[60,60]:[120,120]:typeof Dt=="number"?[pr,Ar]=[Dt,Dt]:(pr=(fn=(an=Dt[0])!==null&&an!==void 0?an:Dt[1])!==null&&fn!==void 0?fn:120,Ar=(ar=(Tn=Dt[0])!==null&&Tn!==void 0?Tn:Dt[1])!==null&&ar!==void 0?ar:120));return[pr,Ar]},tt=3,rt=Dt=>tt/Dt*100;var bt=Dt=>{const{prefixCls:xt,trailColor:en=null,strokeLinecap:an="round",gapPosition:fn,gapDegree:Tn,width:ar=120,type:pr,children:Ar,success:Dr,size:dr=ar}=Dt,[zr,ai]=nt(dr,"circle");let{strokeWidth:ki}=Dt;ki===void 0&&(ki=Math.max(rt(zr),6));const Ni={width:zr,height:ai,fontSize:zr*.15+6},xi=Ue.useMemo(()=>{if(Tn||Tn===0)return Tn;if(pr==="dashboard")return 75},[Tn,pr]),cn=fn||pr==="dashboard"&&"bottom"||void 0,ir=Object.prototype.toString.call(Dt.strokeColor)==="[object Object]",sr=ft({success:Dr,strokeColor:Dt.strokeColor}),Yn=z()(`${xt}-inner`,{[`${xt}-circle-gradient`]:ir}),Rr=Ue.createElement(et,{percent:mt(Dt),strokeWidth:ki,trailWidth:ki,strokeColor:sr,strokeLinecap:an,trailColor:en,prefixCls:xt,gapDegree:xi,gapPosition:cn});return Ue.createElement("div",{className:Yn,style:Ni},zr<=20?Ue.createElement(yt.Z,{title:Ar},Ue.createElement("span",null,Rr)):Ue.createElement(Ue.Fragment,null,Rr,Ar))},Pt=function(Dt,xt){var en={};for(var an in Dt)Object.prototype.hasOwnProperty.call(Dt,an)&&xt.indexOf(an)<0&&(en[an]=Dt[an]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,an=Object.getOwnPropertySymbols(Dt);fn<an.length;fn++)xt.indexOf(an[fn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,an[fn])&&(en[an[fn]]=Dt[an[fn]]);return en};const Lt=Dt=>{let xt=[];return Object.keys(Dt).forEach(en=>{const an=parseFloat(en.replace(/%/g,""));isNaN(an)||xt.push({key:an,value:Dt[en]})}),xt=xt.sort((en,an)=>en.key-an.key),xt.map(en=>{let{key:an,value:fn}=en;return`${fn} ${an}%`}).join(", ")},dt=(Dt,xt)=>{const{from:en=Ve.presetPrimaryColors.blue,to:an=Ve.presetPrimaryColors.blue,direction:fn=xt==="rtl"?"to left":"to right"}=Dt,Tn=Pt(Dt,["from","to","direction"]);if(Object.keys(Tn).length!==0){const ar=Lt(Tn);return{backgroundImage:`linear-gradient(${fn}, ${ar})`}}return{backgroundImage:`linear-gradient(${fn}, ${en}, ${an})`}};var Ke=Dt=>{const{prefixCls:xt,direction:en,percent:an,size:fn,strokeWidth:Tn,strokeColor:ar,strokeLinecap:pr="round",children:Ar,trailColor:Dr=null,success:dr}=Dt,zr=ar&&typeof ar!="string"?dt(ar,en):{backgroundColor:ar},ai=pr==="square"||pr==="butt"?0:void 0,ki={backgroundColor:Dr||void 0,borderRadius:ai},Ni=fn!=null?fn:[-1,Tn||(fn==="small"?6:8)],[xi,cn]=nt(Ni,"line",{strokeWidth:Tn}),ir=Object.assign({width:`${Qe(an)}%`,height:cn,borderRadius:ai},zr),sr=pt(Dt),Yn={width:`${Qe(sr)}%`,height:cn,borderRadius:ai,backgroundColor:dr==null?void 0:dr.strokeColor},Rr={width:xi<0?"100%":xi,height:cn};return Ue.createElement(Ue.Fragment,null,Ue.createElement("div",{className:`${xt}-outer`,style:Rr},Ue.createElement("div",{className:`${xt}-inner`,style:ki},Ue.createElement("div",{className:`${xt}-bg`,style:ir}),sr!==void 0?Ue.createElement("div",{className:`${xt}-success-bg`,style:Yn}):null)),Ar)},xe=Dt=>{const{size:xt,steps:en,percent:an=0,strokeWidth:fn=8,strokeColor:Tn,trailColor:ar=null,prefixCls:pr,children:Ar}=Dt,Dr=Math.round(en*(an/100)),dr=xt==="small"?2:14,zr=xt!=null?xt:[dr,fn],[ai,ki]=nt(zr,"step",{steps:en,strokeWidth:fn}),Ni=ai/en,xi=new Array(en);for(let cn=0;cn<en;cn++){const ir=Array.isArray(Tn)?Tn[cn]:Tn;xi[cn]=Ue.createElement("div",{key:cn,className:z()(`${pr}-steps-item`,{[`${pr}-steps-item-active`]:cn<=Dr-1}),style:{backgroundColor:cn<=Dr-1?ir:ar,width:Ni,height:ki}})}return Ue.createElement("div",{className:`${pr}-steps-outer`},xi,Ar)},ze=ve(34367),$e=ve(14747),Ee=ve(67968),Re=ve(45503);const Fe=Dt=>{const xt=Dt?"100%":"-100%";return new ze.Keyframes(`antProgress${Dt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ge=Dt=>{const{componentCls:xt,iconCls:en}=Dt;return{[xt]:Object.assign(Object.assign({},(0,$e.Wf)(Dt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Dt.fontSize,marginInlineEnd:Dt.marginXS,marginBottom:Dt.marginXS},[`${xt}-outer`]:{display:"inline-block",width:"100%"},[`&${xt}-show-info`]:{[`${xt}-outer`]:{marginInlineEnd:`calc(-2em - ${Dt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Dt.paddingXS}px)`}},[`${xt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Dt.remainingColor,borderRadius:Dt.lineBorderRadius},[`${xt}-inner:not(${xt}-circle-gradient)`]:{[`${xt}-circle-path`]:{stroke:Dt.defaultColor}},[`${xt}-success-bg, ${xt}-bg`]:{position:"relative",backgroundColor:Dt.defaultColor,borderRadius:Dt.lineBorderRadius,transition:`all ${Dt.motionDurationSlow} ${Dt.motionEaseInOutCirc}`},[`${xt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Dt.colorSuccess},[`${xt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Dt.marginXS,color:Dt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[en]:{fontSize:Dt.fontSize}},[`&${xt}-status-active`]:{[`${xt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Dt.colorBgContainer,borderRadius:Dt.lineBorderRadius,opacity:0,animationName:Fe(),animationDuration:Dt.progressActiveMotionDuration,animationTimingFunction:Dt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xt}-rtl${xt}-status-active`]:{[`${xt}-bg::before`]:{animationName:Fe(!0)}},[`&${xt}-status-exception`]:{[`${xt}-bg`]:{backgroundColor:Dt.colorError},[`${xt}-text`]:{color:Dt.colorError}},[`&${xt}-status-exception ${xt}-inner:not(${xt}-circle-gradient)`]:{[`${xt}-circle-path`]:{stroke:Dt.colorError}},[`&${xt}-status-success`]:{[`${xt}-bg`]:{backgroundColor:Dt.colorSuccess},[`${xt}-text`]:{color:Dt.colorSuccess}},[`&${xt}-status-success ${xt}-inner:not(${xt}-circle-gradient)`]:{[`${xt}-circle-path`]:{stroke:Dt.colorSuccess}}})}},it=Dt=>{const{componentCls:xt,iconCls:en}=Dt;return{[xt]:{[`${xt}-circle-trail`]:{stroke:Dt.remainingColor},[`&${xt}-circle ${xt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xt}-circle ${xt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Dt.circleTextColor,fontSize:Dt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[en]:{fontSize:`${Dt.fontSize/Dt.fontSizeSM}em`}},[`${xt}-circle&-status-exception`]:{[`${xt}-text`]:{color:Dt.colorError}},[`${xt}-circle&-status-success`]:{[`${xt}-text`]:{color:Dt.colorSuccess}}},[`${xt}-inline-circle`]:{lineHeight:1,[`${xt}-inner`]:{verticalAlign:"bottom"}}}},gt=Dt=>{const{componentCls:xt}=Dt;return{[xt]:{[`${xt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Dt.progressStepMinWidth,marginInlineEnd:Dt.progressStepMarginInlineEnd,backgroundColor:Dt.remainingColor,transition:`all ${Dt.motionDurationSlow}`,"&-active":{backgroundColor:Dt.defaultColor}}}}}},Kt=Dt=>{const{componentCls:xt,iconCls:en}=Dt;return{[xt]:{[`${xt}-small&-line, ${xt}-small&-line ${xt}-text ${en}`]:{fontSize:Dt.fontSizeSM}}}};var kt=(0,Ee.Z)("Progress",Dt=>{const xt=Dt.marginXXS/2,en=(0,Re.TS)(Dt,{progressStepMarginInlineEnd:xt,progressStepMinWidth:xt,progressActiveMotionDuration:"2.4s"});return[Ge(en),it(en),gt(en),Kt(en)]},Dt=>({circleTextColor:Dt.colorText,defaultColor:Dt.colorInfo,remainingColor:Dt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),St=function(Dt,xt){var en={};for(var an in Dt)Object.prototype.hasOwnProperty.call(Dt,an)&&xt.indexOf(an)<0&&(en[an]=Dt[an]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,an=Object.getOwnPropertySymbols(Dt);fn<an.length;fn++)xt.indexOf(an[fn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,an[fn])&&(en[an[fn]]=Dt[an[fn]]);return en};const Wt=null,jt=["normal","exception","active","success"];var _t=Ue.forwardRef((Dt,xt)=>{const{prefixCls:en,className:an,rootClassName:fn,steps:Tn,strokeColor:ar,percent:pr=0,size:Ar="default",showInfo:Dr=!0,type:dr="line",status:zr,format:ai,style:ki}=Dt,Ni=St(Dt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),xi=Ue.useMemo(()=>{var zt,tn;const bn=pt(Dt);return parseInt(bn!==void 0?(zt=bn!=null?bn:0)===null||zt===void 0?void 0:zt.toString():(tn=pr!=null?pr:0)===null||tn===void 0?void 0:tn.toString(),10)},[pr,Dt.success,Dt.successPercent]),cn=Ue.useMemo(()=>!jt.includes(zr)&&xi>=100?"success":zr||"normal",[zr,xi]),{getPrefixCls:ir,direction:sr,progress:Yn}=Ue.useContext(re.E_),Rr=ir("progress",en),[Nn,Hn]=kt(Rr),jn=Ue.useMemo(()=>{if(!Dr)return null;const zt=pt(Dt);let tn;const bn=ai||(zn=>`${zn}%`),wn=dr==="line";return ai||cn!=="exception"&&cn!=="success"?tn=bn(Qe(pr),Qe(zt)):cn==="exception"?tn=wn?Ue.createElement(ke.Z,null):Ue.createElement(pe.Z,null):cn==="success"&&(tn=wn?Ue.createElement(ot.Z,null):Ue.createElement(x.Z,null)),Ue.createElement("span",{className:`${Rr}-text`,title:typeof tn=="string"?tn:void 0},tn)},[Dr,pr,xi,cn,dr,Rr,ai]),Gt=Array.isArray(ar)?ar[0]:ar,Xt=typeof ar=="string"||Array.isArray(ar)?ar:void 0;let rn;dr==="line"?rn=Tn?Ue.createElement(xe,Object.assign({},Dt,{strokeColor:Xt,prefixCls:Rr,steps:Tn}),jn):Ue.createElement(Ke,Object.assign({},Dt,{strokeColor:Gt,prefixCls:Rr,direction:sr}),jn):(dr==="circle"||dr==="dashboard")&&(rn=Ue.createElement(bt,Object.assign({},Dt,{strokeColor:Gt,prefixCls:Rr,progressStatus:cn}),jn));const An=z()(Rr,`${Rr}-status-${cn}`,`${Rr}-${dr==="dashboard"&&"circle"||Tn&&"steps"||dr}`,{[`${Rr}-inline-circle`]:dr==="circle"&&nt(Ar,"circle")[0]<=20,[`${Rr}-show-info`]:Dr,[`${Rr}-${Ar}`]:typeof Ar=="string",[`${Rr}-rtl`]:sr==="rtl"},Yn==null?void 0:Yn.className,an,fn,Hn);return Nn(Ue.createElement("div",Object.assign({ref:xt,style:Object.assign(Object.assign({},Yn==null?void 0:Yn.style),ki),className:An,role:"progressbar","aria-valuenow":xi},(0,ae.Z)(Ni,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),rn))}),sn=_t},78045:function(xn,Zt,ve){"use strict";ve.d(Zt,{ZP:function(){return Ve}});var Ue=ve(94184),ot=ve.n(Ue),x=ve(5663),ke=ve(1337),pe=ve(67294),ne=ve(53124),z=ve(98675);const ae=pe.createContext(null),re=ae.Provider;var se=ae;const me=pe.createContext(null),ie=me.Provider;var le=ve(95860),ue=ve(17799),fe=ve(98866),he=ve(65223),oe=ve(14747),Se=ve(67968),Ce=ve(45503);const ye=Qe=>{const{componentCls:pt,antCls:mt}=Qe,ft=`${pt}-group`;return{[ft]:Object.assign(Object.assign({},(0,oe.Wf)(Qe)),{display:"inline-block",fontSize:0,[`&${ft}-rtl`]:{direction:"rtl"},[`${mt}-badge ${mt}-badge-count`]:{zIndex:1},[`> ${mt}-badge:not(:first-child) > ${mt}-button-wrapper`]:{borderInlineStart:"none"}})}},_e=Qe=>{const{componentCls:pt,wrapperMarginInlineEnd:mt,colorPrimary:ft,radioSize:nt,motionDurationSlow:tt,motionDurationMid:rt,motionEaseInOutCirc:Et,colorBgContainer:bt,colorBorder:Pt,lineWidth:Lt,dotSize:dt,colorBgContainerDisabled:Ze,colorTextDisabled:Ke,paddingXS:de,dotColorDisabled:xe,lineType:ze,radioDotDisabledSize:$e,wireframe:Ee,colorWhite:Re}=Qe,Fe=`${pt}-inner`;return{[`${pt}-wrapper`]:Object.assign(Object.assign({},(0,oe.Wf)(Qe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:mt,cursor:"pointer",[`&${pt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Qe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${pt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Lt}px ${ze} ${ft}`,borderRadius:"50%",visibility:"hidden",content:'""'},[pt]:Object.assign(Object.assign({},(0,oe.Wf)(Qe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${pt}-wrapper:hover &,
|
|
|
&:hover ${Fe}`]:{borderColor:ft},[`${pt}-input:focus-visible + ${Fe}`]:Object.assign({},(0,oe.oN)(Qe)),[`${pt}:hover::after, ${pt}-wrapper:hover &::after`]:{visibility:"visible"},[`${pt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:nt,height:nt,marginBlockStart:nt/-2,marginInlineStart:nt/-2,backgroundColor:Ee?ft:Re,borderBlockStart:0,borderInlineStart:0,borderRadius:nt,transform:"scale(0)",opacity:0,transition:`all ${tt} ${Et}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:nt,height:nt,backgroundColor:bt,borderColor:Pt,borderStyle:"solid",borderWidth:Lt,borderRadius:"50%",transition:`all ${rt}`},[`${pt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${pt}-checked`]:{[Fe]:{borderColor:ft,backgroundColor:Ee?bt:ft,"&::after":{transform:`scale(${dt/nt})`,opacity:1,transition:`all ${tt} ${Et}`}}},[`${pt}-disabled`]:{cursor:"not-allowed",[Fe]:{backgroundColor:Ze,borderColor:Pt,cursor:"not-allowed","&::after":{backgroundColor:xe}},[`${pt}-input`]:{cursor:"not-allowed"},[`${pt}-disabled + span`]:{color:Ke,cursor:"not-allowed"},[`&${pt}-checked`]:{[Fe]:{"&::after":{transform:`scale(${$e/nt})`}}}},[`span${pt} + *`]:{paddingInlineStart:de,paddingInlineEnd:de}})}},Me=Qe=>{const{buttonColor:pt,controlHeight:mt,componentCls:ft,lineWidth:nt,lineType:tt,colorBorder:rt,motionDurationSlow:Et,motionDurationMid:bt,buttonPaddingInline:Pt,fontSize:Lt,buttonBg:dt,fontSizeLG:Ze,controlHeightLG:Ke,controlHeightSM:de,paddingXS:xe,borderRadius:ze,borderRadiusSM:$e,borderRadiusLG:Ee,buttonCheckedBg:Re,buttonSolidCheckedColor:Fe,colorTextDisabled:Ge,colorBgContainerDisabled:it,buttonCheckedBgDisabled:gt,buttonCheckedColorDisabled:Kt,colorPrimary:kt,colorPrimaryHover:St,colorPrimaryActive:Wt,buttonSolidCheckedBg:jt,buttonSolidCheckedHoverBg:Vt,buttonSolidCheckedActiveBg:_t}=Qe;return{[`${ft}-button-wrapper`]:{position:"relative",display:"inline-block",height:mt,margin:0,paddingInline:Pt,paddingBlock:0,color:pt,fontSize:Lt,lineHeight:`${mt-nt*2}px`,background:dt,border:`${nt}px ${tt} ${rt}`,borderBlockStartWidth:nt+.02,borderInlineStartWidth:0,borderInlineEndWidth:nt,cursor:"pointer",transition:[`color ${bt}`,`background ${bt}`,`box-shadow ${bt}`].join(","),a:{color:pt},[`> ${ft}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-nt,insetInlineStart:-nt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:nt,paddingInline:0,backgroundColor:rt,transition:`background-color ${Et}`,content:'""'}},"&:first-child":{borderInlineStart:`${nt}px ${tt} ${rt}`,borderStartStartRadius:ze,borderEndStartRadius:ze},"&:last-child":{borderStartEndRadius:ze,borderEndEndRadius:ze},"&:first-child:last-child":{borderRadius:ze},[`${ft}-group-large &`]:{height:Ke,fontSize:Ze,lineHeight:`${Ke-nt*2}px`,"&:first-child":{borderStartStartRadius:Ee,borderEndStartRadius:Ee},"&:last-child":{borderStartEndRadius:Ee,borderEndEndRadius:Ee}},[`${ft}-group-small &`]:{height:de,paddingInline:xe-nt,paddingBlock:0,lineHeight:`${de-nt*2}px`,"&:first-child":{borderStartStartRadius:$e,borderEndStartRadius:$e},"&:last-child":{borderStartEndRadius:$e,borderEndEndRadius:$e}},"&:hover":{position:"relative",color:kt},"&:has(:focus-visible)":Object.assign({},(0,oe.oN)(Qe)),[`${ft}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${ft}-button-wrapper-disabled)`]:{zIndex:1,color:kt,background:Re,borderColor:kt,"&::before":{backgroundColor:kt},"&:first-child":{borderColor:kt},"&:hover":{color:St,borderColor:St,"&::before":{backgroundColor:St}},"&:active":{color:Wt,borderColor:Wt,"&::before":{backgroundColor:Wt}}},[`${ft}-group-solid &-checked:not(${ft}-button-wrapper-disabled)`]:{color:Fe,background:jt,borderColor:jt,"&:hover":{color:Fe,background:Vt,borderColor:Vt},"&:active":{color:Fe,background:_t,borderColor:_t}},"&-disabled":{color:Ge,backgroundColor:it,borderColor:rt,cursor:"not-allowed","&:first-child, &:hover":{color:Ge,backgroundColor:it,borderColor:rt}},[`&-disabled${ft}-button-wrapper-checked`]:{color:Kt,backgroundColor:gt,borderColor:rt,boxShadow:"none"}}}},we=Qe=>Qe-4*2;var Ne=(0,Se.Z)("Radio",Qe=>{const{controlOutline:pt,controlOutlineWidth:mt,radioSize:ft}=Qe,nt=`0 0 0 ${mt}px ${pt}`,tt=nt,rt=we(ft),Et=(0,Ce.TS)(Qe,{radioDotDisabledSize:rt,radioFocusShadow:nt,radioButtonFocusShadow:tt});return[ye(Et),_e(Et),Me(Et)]},Qe=>{const{wireframe:pt,padding:mt,marginXS:ft,lineWidth:nt,fontSizeLG:tt,colorText:rt,colorBgContainer:Et,colorTextDisabled:bt,controlItemBgActiveDisabled:Pt,colorTextLightSolid:Lt,colorPrimary:dt,colorPrimaryHover:Ze,colorPrimaryActive:Ke}=Qe,de=4,xe=tt,ze=pt?we(xe):xe-(de+nt)*2;return{radioSize:xe,dotSize:ze,dotColorDisabled:bt,buttonSolidCheckedColor:Lt,buttonSolidCheckedBg:dt,buttonSolidCheckedHoverBg:Ze,buttonSolidCheckedActiveBg:Ke,buttonBg:Et,buttonCheckedBg:Et,buttonColor:rt,buttonCheckedBgDisabled:Pt,buttonCheckedColorDisabled:bt,buttonPaddingInline:mt-nt,wrapperMarginInlineEnd:ft}}),Ae=ve(45353),De=ve(92429),Ie=function(Qe,pt){var mt={};for(var ft in Qe)Object.prototype.hasOwnProperty.call(Qe,ft)&&pt.indexOf(ft)<0&&(mt[ft]=Qe[ft]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,ft=Object.getOwnPropertySymbols(Qe);nt<ft.length;nt++)pt.indexOf(ft[nt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,ft[nt])&&(mt[ft[nt]]=Qe[ft[nt]]);return mt};const Pe=(Qe,pt)=>{var mt,ft;const nt=pe.useContext(se),tt=pe.useContext(me),{getPrefixCls:rt,direction:Et,radio:bt}=pe.useContext(ne.E_),Pt=pe.useRef(null),Lt=(0,ue.sQ)(pt,Pt),{isFormItemInput:dt}=pe.useContext(he.aM),Ze=Wt=>{var jt,Vt;(jt=Qe.onChange)===null||jt===void 0||jt.call(Qe,Wt),(Vt=nt==null?void 0:nt.onChange)===null||Vt===void 0||Vt.call(nt,Wt)},{prefixCls:Ke,className:de,rootClassName:xe,children:ze,style:$e}=Qe,Ee=Ie(Qe,["prefixCls","className","rootClassName","children","style"]),Re=rt("radio",Ke),Fe=((nt==null?void 0:nt.optionType)||tt)==="button",Ge=Fe?`${Re}-button`:Re,[it,gt]=Ne(Re),Kt=Object.assign({},Ee),kt=pe.useContext(fe.Z);nt&&(Kt.name=nt.name,Kt.onChange=Ze,Kt.checked=Qe.value===nt.value,Kt.disabled=(mt=Kt.disabled)!==null&&mt!==void 0?mt:nt.disabled),Kt.disabled=(ft=Kt.disabled)!==null&&ft!==void 0?ft:kt;const St=ot()(`${Ge}-wrapper`,{[`${Ge}-wrapper-checked`]:Kt.checked,[`${Ge}-wrapper-disabled`]:Kt.disabled,[`${Ge}-wrapper-rtl`]:Et==="rtl",[`${Ge}-wrapper-in-form-item`]:dt},bt==null?void 0:bt.className,de,xe,gt);return it(pe.createElement(Ae.Z,{component:"Radio",disabled:Kt.disabled},pe.createElement("label",{className:St,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),$e),onMouseEnter:Qe.onMouseEnter,onMouseLeave:Qe.onMouseLeave},pe.createElement(le.Z,Object.assign({},Kt,{className:ot()(Kt.className,!Fe&&De.A),type:"radio",prefixCls:Ge,ref:Lt})),ze!==void 0?pe.createElement("span",null,ze):null)))};var We=pe.forwardRef(Pe);const Be=pe.forwardRef((Qe,pt)=>{const{getPrefixCls:mt,direction:ft}=pe.useContext(ne.E_),[nt,tt]=(0,x.Z)(Qe.defaultValue,{value:Qe.value}),rt=jt=>{const Vt=nt,_t=jt.target.value;"value"in Qe||tt(_t);const{onChange:sn}=Qe;sn&&_t!==Vt&&sn(jt)},{prefixCls:Et,className:bt,rootClassName:Pt,options:Lt,buttonStyle:dt="outline",disabled:Ze,children:Ke,size:de,style:xe,id:ze,onMouseEnter:$e,onMouseLeave:Ee,onFocus:Re,onBlur:Fe}=Qe,Ge=mt("radio",Et),it=`${Ge}-group`,[gt,Kt]=Ne(Ge);let kt=Ke;Lt&&Lt.length>0&&(kt=Lt.map(jt=>typeof jt=="string"||typeof jt=="number"?pe.createElement(We,{key:jt.toString(),prefixCls:Ge,disabled:Ze,value:jt,checked:nt===jt},jt):pe.createElement(We,{key:`radio-group-value-options-${jt.value}`,prefixCls:Ge,disabled:jt.disabled||Ze,value:jt.value,checked:nt===jt.value,title:jt.title,style:jt.style},jt.label)));const St=(0,z.Z)(de),Wt=ot()(it,`${it}-${dt}`,{[`${it}-${St}`]:St,[`${it}-rtl`]:ft==="rtl"},bt,Pt,Kt);return gt(pe.createElement("div",Object.assign({},(0,ke.Z)(Qe,{aria:!0,data:!0}),{className:Wt,style:xe,onMouseEnter:$e,onMouseLeave:Ee,onFocus:Re,onBlur:Fe,id:ze,ref:pt}),pe.createElement(re,{value:{onChange:rt,value:nt,disabled:Qe.disabled,name:Qe.name,optionType:Qe.optionType}},kt)))});var He=pe.memo(Be),Ye=function(Qe,pt){var mt={};for(var ft in Qe)Object.prototype.hasOwnProperty.call(Qe,ft)&&pt.indexOf(ft)<0&&(mt[ft]=Qe[ft]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,ft=Object.getOwnPropertySymbols(Qe);nt<ft.length;nt++)pt.indexOf(ft[nt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,ft[nt])&&(mt[ft[nt]]=Qe[ft[nt]]);return mt};const et=(Qe,pt)=>{const{getPrefixCls:mt}=pe.useContext(ne.E_),{prefixCls:ft}=Qe,nt=Ye(Qe,["prefixCls"]),tt=mt("radio",ft);return pe.createElement(ie,{value:"button"},pe.createElement(We,Object.assign({prefixCls:tt},nt,{type:"radio",ref:pt})))};var st=pe.forwardRef(et);const yt=We;yt.Button=st,yt.Group=He,yt.__ANT_RADIO=!0;var Ve=yt},11713:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return Mr}});var Ue=ve(94184),ot=ve.n(Ue),x=ve(87462),ke=ve(74902),pe=ve(4942),ne=ve(1413),z=ve(97685),ae=ve(45987),re=ve(71002),se=ve(67294);function me(Ot){var Rt=se.useRef();Rt.current=Ot;var un=se.useCallback(function(){for(var Qt,_n=arguments.length,Wn=new Array(_n),Gn=0;Gn<_n;Gn++)Wn[Gn]=arguments[Gn];return(Qt=Rt.current)===null||Qt===void 0?void 0:Qt.call.apply(Qt,[Rt].concat(Wn))},[]);return un}function ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var le=ie()?se.useLayoutEffect:se.useEffect,ue=le,fe=function(Rt,un){var Qt=se.useRef(!0);le(function(){if(!Qt.current)return Rt()},un),le(function(){return Qt.current=!1,function(){Qt.current=!0}},[])};function he(Ot){var Rt=se.useRef(!1),un=se.useState(Ot),Qt=(0,z.Z)(un,2),_n=Qt[0],Wn=Qt[1];se.useEffect(function(){return Rt.current=!1,function(){Rt.current=!0}},[]);function Gn(gr,cr){cr&&Rt.current||Wn(gr)}return[_n,Gn]}function oe(Ot){return Ot!==void 0}function Se(Ot,Rt){var un=Rt||{},Qt=un.defaultValue,_n=un.value,Wn=un.onChange,Gn=un.postState,gr=he(function(){return oe(_n)?_n:oe(Qt)?typeof Qt=="function"?Qt():Qt:typeof Ot=="function"?Ot():Ot}),cr=(0,z.Z)(gr,2),Jn=cr[0],wr=cr[1],_r=_n!==void 0?_n:Jn,Vr=Gn?Gn(_r):_r,Tr=me(Wn),qr=he([_r]),vi=(0,z.Z)(qr,2),si=vi[0],gi=vi[1];fe(function(){var ui=si[0];Jn!==ui&&Tr(Jn,ui)},[si]),fe(function(){oe(_n)||wr(_n)},[_n]);var Qr=me(function(ui,bi){wr(ui,bi),gi([_r],bi)});return[Vr,Qr]}var Ce={};function ye(Ot,Rt){}function _e(Ot,Rt){}function Me(){Ce={}}function we(Ot,Rt,un){!Rt&&!Ce[un]&&(Ot(!1,un),Ce[un]=!0)}function Ne(Ot,Rt){we(ye,Ot,Rt)}function Ae(Ot,Rt){we(_e,Ot,Rt)}var De=Ne,Ie=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ot=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(Ot)||/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(Ot==null?void 0:Ot.substr(0,4))},Pe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Rt){var un=Rt.keyCode;if(Rt.altKey&&!Rt.ctrlKey||Rt.metaKey||un>=Pe.F1&&un<=Pe.F12)return!1;switch(un){case Pe.ALT:case Pe.CAPS_LOCK:case Pe.CONTEXT_MENU:case Pe.CTRL:case Pe.DOWN:case Pe.END:case Pe.ESC:case Pe.HOME:case Pe.INSERT:case Pe.LEFT:case Pe.MAC_FF_META:case Pe.META:case Pe.NUMLOCK:case Pe.NUM_CENTER:case Pe.PAGE_DOWN:case Pe.PAGE_UP:case Pe.PAUSE:case Pe.PRINT_SCREEN:case Pe.RIGHT:case Pe.SHIFT:case Pe.UP:case Pe.WIN_KEY:case Pe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Rt){if(Rt>=Pe.ZERO&&Rt<=Pe.NINE||Rt>=Pe.NUM_ZERO&&Rt<=Pe.NUM_MULTIPLY||Rt>=Pe.A&&Rt<=Pe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Rt===0)return!0;switch(Rt){case Pe.SPACE:case Pe.QUESTION_MARK:case Pe.NUM_PLUS:case Pe.NUM_MINUS:case Pe.NUM_PERIOD:case Pe.NUM_DIVISION:case Pe.SEMICOLON:case Pe.DASH:case Pe.EQUALS:case Pe.COMMA:case Pe.PERIOD:case Pe.SLASH:case Pe.APOSTROPHE:case Pe.SINGLE_QUOTE:case Pe.OPEN_SQUARE_BRACKET:case Pe.BACKSLASH:case Pe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Le=Pe,We=ve(47655);function Be(Ot,Rt,un){var Qt=se.useRef({});return(!("value"in Qt.current)||un(Qt.current.condition,Rt))&&(Qt.current.value=Ot(),Qt.current.condition=Rt),Qt.current.value}function He(Ot,Rt){typeof Ot=="function"?Ot(Rt):(0,re.Z)(Ot)==="object"&&Ot&&"current"in Ot&&(Ot.current=Rt)}function Ye(){for(var Ot=arguments.length,Rt=new Array(Ot),un=0;un<Ot;un++)Rt[un]=arguments[un];var Qt=Rt.filter(function(_n){return _n});return Qt.length<=1?Qt[0]:function(_n){Rt.forEach(function(Wn){He(Wn,_n)})}}function et(){for(var Ot=arguments.length,Rt=new Array(Ot),un=0;un<Ot;un++)Rt[un]=arguments[un];return Be(function(){return Ye.apply(void 0,Rt)},Rt,function(Qt,_n){return Qt.length===_n.length&&Qt.every(function(Wn,Gn){return Wn===_n[Gn]})})}function st(Ot){var Rt,un,Qt=isMemo(Ot)?Ot.type.type:Ot.type;return!(typeof Qt=="function"&&!((Rt=Qt.prototype)!==null&&Rt!==void 0&&Rt.render)||typeof Ot=="function"&&!((un=Ot.prototype)!==null&&un!==void 0&&un.render))}var yt=function(Rt){var un=Rt.className,Qt=Rt.customizeIcon,_n=Rt.customizeIconProps,Wn=Rt.onMouseDown,Gn=Rt.onClick,gr=Rt.children,cr;return typeof Qt=="function"?cr=Qt(_n):cr=Qt,se.createElement("span",{className:un,onMouseDown:function(wr){wr.preventDefault(),Wn&&Wn(wr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Gn,"aria-hidden":!0},cr!==void 0?cr:se.createElement("span",{className:ot()(un.split(/\s+/).map(function(Jn){return"".concat(Jn,"-icon")}))},gr))},Ve=yt;function Qe(Ot,Rt,un,Qt,_n){var Wn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Gn=arguments.length>6?arguments[6]:void 0,gr=arguments.length>7?arguments[7]:void 0,cr=se.useMemo(function(){if((0,re.Z)(Qt)==="object")return Qt.clearIcon;if(_n)return _n},[Qt,_n]),Jn=se.useMemo(function(){return!!(!Wn&&Qt&&(un.length||Gn)&&!(gr==="combobox"&&Gn===""))},[Qt,Wn,un.length,Gn,gr]);return{allowClear:Jn,clearIcon:se.createElement(Ve,{className:"".concat(Ot,"-clear"),onMouseDown:Rt,customizeIcon:cr},"\xD7")}}var pt=se.createContext(null);function mt(){return se.useContext(pt)}function ft(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Rt=se.useState(!1),un=(0,z.Z)(Rt,2),Qt=un[0],_n=un[1],Wn=se.useRef(null),Gn=function(){window.clearTimeout(Wn.current)};se.useEffect(function(){return Gn},[]);var gr=function(Jn,wr){Gn(),Wn.current=window.setTimeout(function(){_n(Jn),wr&&wr()},Ot)};return[Qt,gr,Gn]}function nt(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Rt=se.useRef(null),un=se.useRef(null);se.useEffect(function(){return function(){window.clearTimeout(un.current)}},[]);function Qt(_n){(_n||Rt.current===null)&&(Rt.current=_n),window.clearTimeout(un.current),un.current=window.setTimeout(function(){Rt.current=null},Ot)}return[function(){return Rt.current},Qt]}function tt(Ot,Rt,un,Qt){var _n=se.useRef(null);_n.current={open:Rt,triggerOpen:un,customizedTrigger:Qt},se.useEffect(function(){function Wn(Gn){var gr;if(!((gr=_n.current)!==null&&gr!==void 0&&gr.customizedTrigger)){var cr=Gn.target;cr.shadowRoot&&Gn.composed&&(cr=Gn.composedPath()[0]||cr),_n.current.open&&Ot().filter(function(Jn){return Jn}).every(function(Jn){return!Jn.contains(cr)&&Jn!==cr})&&_n.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Wn),function(){return window.removeEventListener("mousedown",Wn)}},[])}var rt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Et=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,bt="".concat(rt," ").concat(Et).split(/[\s\n]+/),Pt="aria-",Lt="data-";function dt(Ot,Rt){return Ot.indexOf(Rt)===0}function Ze(Ot){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un;Rt===!1?un={aria:!0,data:!0,attr:!0}:Rt===!0?un={aria:!0}:un=(0,ne.Z)({},Rt);var Qt={};return Object.keys(Ot).forEach(function(_n){(un.aria&&(_n==="role"||dt(_n,Pt))||un.data&&dt(_n,Lt)||un.attr&&bt.includes(_n))&&(Qt[_n]=Ot[_n])}),Qt}var Ke=ve(48555),de=ve(14075),xe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ze=void 0;function $e(Ot,Rt){var un=Ot.prefixCls,Qt=Ot.invalidate,_n=Ot.item,Wn=Ot.renderItem,Gn=Ot.responsive,gr=Ot.responsiveDisabled,cr=Ot.registerSize,Jn=Ot.itemKey,wr=Ot.className,_r=Ot.style,Vr=Ot.children,Tr=Ot.display,qr=Ot.order,vi=Ot.component,si=vi===void 0?"div":vi,gi=(0,ae.Z)(Ot,xe),Qr=Gn&&!Tr;function ui(na){cr(Jn,na)}se.useEffect(function(){return function(){ui(null)}},[]);var bi=Wn&&_n!==ze?Wn(_n):Vr,zi;Qt||(zi={opacity:Qr?0:1,height:Qr?0:ze,overflowY:Qr?"hidden":ze,order:Gn?qr:ze,pointerEvents:Qr?"none":ze,position:Qr?"absolute":ze});var ti={};Qr&&(ti["aria-hidden"]=!0);var Ji=se.createElement(si,(0,x.Z)({className:ot()(!Qt&&un,wr),style:(0,ne.Z)((0,ne.Z)({},zi),_r)},ti,gi,{ref:Rt}),bi);return Gn&&(Ji=se.createElement(Ke.Z,{onResize:function(za){var Ta=za.offsetWidth;ui(Ta)},disabled:gr},Ji)),Ji}var Ee=se.forwardRef($e);Ee.displayName="Item";var Re=Ee,Fe=ve(77527),Ge=ve(73935),it=ve(96523);function gt(Ot){if(typeof MessageChannel=="undefined")(0,it.Z)(Ot);else{var Rt=new MessageChannel;Rt.port1.onmessage=function(){return Ot()},Rt.port2.postMessage(void 0)}}function Kt(){var Ot=se.useRef(null),Rt=function(Qt){Ot.current||(Ot.current=[],gt(function(){(0,Ge.unstable_batchedUpdates)(function(){Ot.current.forEach(function(_n){_n()}),Ot.current=null})})),Ot.current.push(Qt)};return Rt}function kt(Ot,Rt){var un=se.useState(Rt),Qt=(0,z.Z)(un,2),_n=Qt[0],Wn=Qt[1],Gn=(0,Fe.Z)(function(gr){Ot(function(){Wn(gr)})});return[_n,Gn]}var St=se.createContext(null),Wt=["component"],jt=["className"],Vt=["className"],_t=function(Rt,un){var Qt=se.useContext(St);if(!Qt){var _n=Rt.component,Wn=_n===void 0?"div":_n,Gn=(0,ae.Z)(Rt,Wt);return se.createElement(Wn,(0,x.Z)({},Gn,{ref:un}))}var gr=Qt.className,cr=(0,ae.Z)(Qt,jt),Jn=Rt.className,wr=(0,ae.Z)(Rt,Vt);return se.createElement(St.Provider,{value:null},se.createElement(Re,(0,x.Z)({ref:un,className:ot()(gr,Jn)},cr,wr)))},sn=se.forwardRef(_t);sn.displayName="RawItem";var Dt=sn,xt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],en="responsive",an="invalidate";function fn(Ot){return"+ ".concat(Ot.length," ...")}function Tn(Ot,Rt){var un=Ot.prefixCls,Qt=un===void 0?"rc-overflow":un,_n=Ot.data,Wn=_n===void 0?[]:_n,Gn=Ot.renderItem,gr=Ot.renderRawItem,cr=Ot.itemKey,Jn=Ot.itemWidth,wr=Jn===void 0?10:Jn,_r=Ot.ssr,Vr=Ot.style,Tr=Ot.className,qr=Ot.maxCount,vi=Ot.renderRest,si=Ot.renderRawRest,gi=Ot.suffix,Qr=Ot.component,ui=Qr===void 0?"div":Qr,bi=Ot.itemComponent,zi=Ot.onVisibleChange,ti=(0,ae.Z)(Ot,xt),Ji=_r==="full",na=Kt(),za=kt(na,null),Ta=(0,z.Z)(za,2),pa=Ta[0],Vi=Ta[1],Xi=pa||0,Ii=kt(na,new Map),ma=(0,z.Z)(Ii,2),Ri=ma[0],wi=ma[1],sa=kt(na,0),Ma=(0,z.Z)(sa,2),go=Ma[0],ho=Ma[1],Ja=kt(na,0),Za=(0,z.Z)(Ja,2),La=Za[0],ua=Za[1],Oo=kt(na,0),ba=(0,z.Z)(Oo,2),Ki=ba[0],Ia=ba[1],to=(0,se.useState)(null),Ra=(0,z.Z)(to,2),Fa=Ra[0],ra=Ra[1],no=(0,se.useState)(null),yo=(0,z.Z)(no,2),so=yo[0],bo=yo[1],Mo=se.useMemo(function(){return so===null&&Ji?Number.MAX_SAFE_INTEGER:so||0},[so,pa]),Xo=(0,se.useState)(!1),lo=(0,z.Z)(Xo,2),So=lo[0],os=lo[1],rs="".concat(Qt,"-item"),cs=Math.max(go,La),Lo=qr===en,xo=Wn.length&&Lo,ya=qr===an,Da=xo||typeof qr=="number"&&Wn.length>qr,ro=(0,se.useMemo)(function(){var Xa=Wn;return xo?pa===null&&Ji?Xa=Wn:Xa=Wn.slice(0,Math.min(Wn.length,Xi/wr)):typeof qr=="number"&&(Xa=Wn.slice(0,qr)),Xa},[Wn,wr,pa,qr,xo]),po=(0,se.useMemo)(function(){return xo?Wn.slice(Mo+1):Wn.slice(ro.length)},[Wn,ro,xo,Mo]),Wo=(0,se.useCallback)(function(Xa,fi){var fa;return typeof cr=="function"?cr(Xa):(fa=cr&&(Xa==null?void 0:Xa[cr]))!==null&&fa!==void 0?fa:fi},[cr]),us=(0,se.useCallback)(Gn||function(Xa){return Xa},[Gn]);function xs(Xa,fi,fa){so===Xa&&(fi===void 0||fi===Fa)||(bo(Xa),fa||(os(Xa<Wn.length-1),zi==null||zi(Xa)),fi!==void 0&&ra(fi))}function Js(Xa,fi){Vi(fi.clientWidth)}function Fs(Xa,fi){wi(function(fa){var ha=new Map(fa);return fi===null?ha.delete(Xa):ha.set(Xa,fi),ha})}function ds(Xa,fi){ua(fi),ho(La)}function $s(Xa,fi){Ia(fi)}function Ga(Xa){return Ri.get(Wo(ro[Xa],Xa))}(0,de.Z)(function(){if(Xi&&typeof cs=="number"&&ro){var Xa=Ki,fi=ro.length,fa=fi-1;if(!fi){xs(0,null);return}for(var ha=0;ha<fi;ha+=1){var ka=Ga(ha);if(Ji&&(ka=ka||0),ka===void 0){xs(ha-1,void 0,!0);break}if(Xa+=ka,fa===0&&Xa<=Xi||ha===fa-1&&Xa+Ga(fa)<=Xi){xs(fa,null);break}else if(Xa+cs>Xi){xs(ha-1,Xa-ka-Ki+La);break}}gi&&Ga(0)+Ki>Xi&&ra(null)}},[Xi,Ri,La,Ki,Wo,ro]);var Aa=So&&!!po.length,fo={};Fa!==null&&xo&&(fo={position:"absolute",left:Fa,top:0});var ko={prefixCls:rs,responsive:xo,component:bi,invalidate:ya},fs=gr?function(Xa,fi){var fa=Wo(Xa,fi);return se.createElement(St.Provider,{key:fa,value:(0,ne.Z)((0,ne.Z)({},ko),{},{order:fi,item:Xa,itemKey:fa,registerSize:Fs,display:fi<=Mo})},gr(Xa,fi))}:function(Xa,fi){var fa=Wo(Xa,fi);return se.createElement(Re,(0,x.Z)({},ko,{order:fi,key:fa,item:Xa,renderItem:us,itemKey:fa,registerSize:Fs,display:fi<=Mo}))},ss,jl={order:Aa?Mo:Number.MAX_SAFE_INTEGER,className:"".concat(rs,"-rest"),registerSize:ds,display:Aa};if(si)si&&(ss=se.createElement(St.Provider,{value:(0,ne.Z)((0,ne.Z)({},ko),jl)},si(po)));else{var vl=vi||fn;ss=se.createElement(Re,(0,x.Z)({},ko,jl),typeof vl=="function"?vl(po):vl)}var Sl=se.createElement(ui,(0,x.Z)({className:ot()(!ya&&Qt,Tr),style:Vr,ref:Rt},ti),ro.map(fs),Da?ss:null,gi&&se.createElement(Re,(0,x.Z)({},ko,{responsive:Lo,responsiveDisabled:!xo,order:Mo,className:"".concat(rs,"-suffix"),registerSize:$s,display:!0,style:fo}),gi));return Lo&&(Sl=se.createElement(Ke.Z,{onResize:Js,disabled:!xo},Sl)),Sl}var ar=se.forwardRef(Tn);ar.displayName="Overflow",ar.Item=Dt,ar.RESPONSIVE=en,ar.INVALIDATE=an;var pr=ar,Ar=pr,Dr=function(Rt,un){var Qt,_n,Wn=Rt.prefixCls,Gn=Rt.id,gr=Rt.inputElement,cr=Rt.disabled,Jn=Rt.tabIndex,wr=Rt.autoFocus,_r=Rt.autoComplete,Vr=Rt.editable,Tr=Rt.activeDescendantId,qr=Rt.value,vi=Rt.maxLength,si=Rt.onKeyDown,gi=Rt.onMouseDown,Qr=Rt.onChange,ui=Rt.onPaste,bi=Rt.onCompositionStart,zi=Rt.onCompositionEnd,ti=Rt.open,Ji=Rt.attrs,na=gr||se.createElement("input",null),za=na,Ta=za.ref,pa=za.props,Vi=pa.onKeyDown,Xi=pa.onChange,Ii=pa.onMouseDown,ma=pa.onCompositionStart,Ri=pa.onCompositionEnd,wi=pa.style;return"maxLength"in na.props,na=se.cloneElement(na,(0,ne.Z)((0,ne.Z)((0,ne.Z)({type:"search"},pa),{},{id:Gn,ref:Ye(un,Ta),disabled:cr,tabIndex:Jn,autoComplete:_r||"off",autoFocus:wr,className:ot()("".concat(Wn,"-selection-search-input"),(Qt=na)===null||Qt===void 0||(_n=Qt.props)===null||_n===void 0?void 0:_n.className),role:"combobox","aria-label":"Search","aria-expanded":ti||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Gn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Gn,"_list"),"aria-activedescendant":ti?Tr:void 0},Ji),{},{value:Vr?qr:"",maxLength:vi,readOnly:!Vr,unselectable:Vr?null:"on",style:(0,ne.Z)((0,ne.Z)({},wi),{},{opacity:Vr?null:0}),onKeyDown:function(Ma){si(Ma),Vi&&Vi(Ma)},onMouseDown:function(Ma){gi(Ma),Ii&&Ii(Ma)},onChange:function(Ma){Qr(Ma),Xi&&Xi(Ma)},onCompositionStart:function(Ma){bi(Ma),ma&&ma(Ma)},onCompositionEnd:function(Ma){zi(Ma),Ri&&Ri(Ma)},onPaste:ui})),na},dr=se.forwardRef(Dr);dr.displayName="Input";var zr=dr;function ai(Ot){return Array.isArray(Ot)?Ot:Ot!==void 0?[Ot]:[]}var ki=typeof window!="undefined"&&window.document&&window.document.documentElement,Ni=ki;function xi(Ot){return Ot!=null}function cn(Ot){return!Ot&&Ot!==0}function ir(Ot){return["string","number"].includes((0,re.Z)(Ot))}function sr(Ot){var Rt=void 0;return Ot&&(ir(Ot.title)?Rt=Ot.title.toString():ir(Ot.label)&&(Rt=Ot.label.toString())),Rt}function Yn(Ot,Rt){Ni?se.useLayoutEffect(Ot,Rt):se.useEffect(Ot,Rt)}function Rr(Ot){var Rt;return(Rt=Ot.key)!==null&&Rt!==void 0?Rt:Ot.value}var Nn=function(Rt){Rt.preventDefault(),Rt.stopPropagation()},Hn=function(Rt){var un=Rt.id,Qt=Rt.prefixCls,_n=Rt.values,Wn=Rt.open,Gn=Rt.searchValue,gr=Rt.autoClearSearchValue,cr=Rt.inputRef,Jn=Rt.placeholder,wr=Rt.disabled,_r=Rt.mode,Vr=Rt.showSearch,Tr=Rt.autoFocus,qr=Rt.autoComplete,vi=Rt.activeDescendantId,si=Rt.tabIndex,gi=Rt.removeIcon,Qr=Rt.maxTagCount,ui=Rt.maxTagTextLength,bi=Rt.maxTagPlaceholder,zi=bi===void 0?function(ra){return"+ ".concat(ra.length," ...")}:bi,ti=Rt.tagRender,Ji=Rt.onToggleOpen,na=Rt.onRemove,za=Rt.onInputChange,Ta=Rt.onInputPaste,pa=Rt.onInputKeyDown,Vi=Rt.onInputMouseDown,Xi=Rt.onInputCompositionStart,Ii=Rt.onInputCompositionEnd,ma=se.useRef(null),Ri=(0,se.useState)(0),wi=(0,z.Z)(Ri,2),sa=wi[0],Ma=wi[1],go=(0,se.useState)(!1),ho=(0,z.Z)(go,2),Ja=ho[0],Za=ho[1],La="".concat(Qt,"-selection"),ua=Wn||_r==="multiple"&&gr===!1||_r==="tags"?Gn:"",Oo=_r==="tags"||_r==="multiple"&&gr===!1||Vr&&(Wn||Ja);Yn(function(){Ma(ma.current.scrollWidth)},[ua]);function ba(ra,no,yo,so,bo){return se.createElement("span",{className:ot()("".concat(La,"-item"),(0,pe.Z)({},"".concat(La,"-item-disabled"),yo)),title:sr(ra)},se.createElement("span",{className:"".concat(La,"-item-content")},no),so&&se.createElement(Ve,{className:"".concat(La,"-item-remove"),onMouseDown:Nn,onClick:bo,customizeIcon:gi},"\xD7"))}function Ki(ra,no,yo,so,bo){var Mo=function(lo){Nn(lo),Ji(!Wn)};return se.createElement("span",{onMouseDown:Mo},ti({label:no,value:ra,disabled:yo,closable:so,onClose:bo}))}function Ia(ra){var no=ra.disabled,yo=ra.label,so=ra.value,bo=!wr&&!no,Mo=yo;if(typeof ui=="number"&&(typeof yo=="string"||typeof yo=="number")){var Xo=String(Mo);Xo.length>ui&&(Mo="".concat(Xo.slice(0,ui),"..."))}var lo=function(os){os&&os.stopPropagation(),na(ra)};return typeof ti=="function"?Ki(so,Mo,no,bo,lo):ba(ra,Mo,no,bo,lo)}function to(ra){var no=typeof zi=="function"?zi(ra):zi;return ba({title:no},no,!1)}var Ra=se.createElement("div",{className:"".concat(La,"-search"),style:{width:sa},onFocus:function(){Za(!0)},onBlur:function(){Za(!1)}},se.createElement(zr,{ref:cr,open:Wn,prefixCls:Qt,id:un,inputElement:null,disabled:wr,autoFocus:Tr,autoComplete:qr,editable:Oo,activeDescendantId:vi,value:ua,onKeyDown:pa,onMouseDown:Vi,onChange:za,onPaste:Ta,onCompositionStart:Xi,onCompositionEnd:Ii,tabIndex:si,attrs:Ze(Rt,!0)}),se.createElement("span",{ref:ma,className:"".concat(La,"-search-mirror"),"aria-hidden":!0},ua,"\xA0")),Fa=se.createElement(Ar,{prefixCls:"".concat(La,"-overflow"),data:_n,renderItem:Ia,renderRest:to,suffix:Ra,itemKey:Rr,maxCount:Qr});return se.createElement(se.Fragment,null,Fa,!_n.length&&!ua&&se.createElement("span",{className:"".concat(La,"-placeholder")},Jn))},jn=Hn,Gt=function(Rt){var un=Rt.inputElement,Qt=Rt.prefixCls,_n=Rt.id,Wn=Rt.inputRef,Gn=Rt.disabled,gr=Rt.autoFocus,cr=Rt.autoComplete,Jn=Rt.activeDescendantId,wr=Rt.mode,_r=Rt.open,Vr=Rt.values,Tr=Rt.placeholder,qr=Rt.tabIndex,vi=Rt.showSearch,si=Rt.searchValue,gi=Rt.activeValue,Qr=Rt.maxLength,ui=Rt.onInputKeyDown,bi=Rt.onInputMouseDown,zi=Rt.onInputChange,ti=Rt.onInputPaste,Ji=Rt.onInputCompositionStart,na=Rt.onInputCompositionEnd,za=Rt.title,Ta=se.useState(!1),pa=(0,z.Z)(Ta,2),Vi=pa[0],Xi=pa[1],Ii=wr==="combobox",ma=Ii||vi,Ri=Vr[0],wi=si||"";Ii&&gi&&!Vi&&(wi=gi),se.useEffect(function(){Ii&&Xi(!1)},[Ii,gi]);var sa=wr!=="combobox"&&!_r&&!vi?!1:!!wi,Ma=za===void 0?sr(Ri):za,go=function(){if(Ri)return null;var Ja=sa?{visibility:"hidden"}:void 0;return se.createElement("span",{className:"".concat(Qt,"-selection-placeholder"),style:Ja},Tr)};return se.createElement(se.Fragment,null,se.createElement("span",{className:"".concat(Qt,"-selection-search")},se.createElement(zr,{ref:Wn,prefixCls:Qt,id:_n,open:_r,inputElement:un,disabled:Gn,autoFocus:gr,autoComplete:cr,editable:ma,activeDescendantId:Jn,value:wi,onKeyDown:ui,onMouseDown:bi,onChange:function(Ja){Xi(!0),zi(Ja)},onPaste:ti,onCompositionStart:Ji,onCompositionEnd:na,tabIndex:qr,attrs:Ze(Rt,!0),maxLength:Ii?Qr:void 0})),!Ii&&Ri?se.createElement("span",{className:"".concat(Qt,"-selection-item"),title:Ma,style:sa?{visibility:"hidden"}:void 0},Ri.label):null,go())},Xt=Gt;function rn(Ot){return![Le.ESC,Le.SHIFT,Le.BACKSPACE,Le.TAB,Le.WIN_KEY,Le.ALT,Le.META,Le.WIN_KEY_RIGHT,Le.CTRL,Le.SEMICOLON,Le.EQUALS,Le.CAPS_LOCK,Le.CONTEXT_MENU,Le.F1,Le.F2,Le.F3,Le.F4,Le.F5,Le.F6,Le.F7,Le.F8,Le.F9,Le.F10,Le.F11,Le.F12].includes(Ot)}var An=function(Rt,un){var Qt=(0,se.useRef)(null),_n=(0,se.useRef)(!1),Wn=Rt.prefixCls,Gn=Rt.open,gr=Rt.mode,cr=Rt.showSearch,Jn=Rt.tokenWithEnter,wr=Rt.autoClearSearchValue,_r=Rt.onSearch,Vr=Rt.onSearchSubmit,Tr=Rt.onToggleOpen,qr=Rt.onInputKeyDown,vi=Rt.domRef;se.useImperativeHandle(un,function(){return{focus:function(){Qt.current.focus()},blur:function(){Qt.current.blur()}}});var si=nt(0),gi=(0,z.Z)(si,2),Qr=gi[0],ui=gi[1],bi=function(wi){var sa=wi.which;(sa===Le.UP||sa===Le.DOWN)&&wi.preventDefault(),qr&&qr(wi),sa===Le.ENTER&&gr==="tags"&&!_n.current&&!Gn&&(Vr==null||Vr(wi.target.value)),rn(sa)&&Tr(!0)},zi=function(){ui(!0)},ti=(0,se.useRef)(null),Ji=function(wi){_r(wi,!0,_n.current)!==!1&&Tr(!0)},na=function(){_n.current=!0},za=function(wi){_n.current=!1,gr!=="combobox"&&Ji(wi.target.value)},Ta=function(wi){var sa=wi.target.value;if(Jn&&ti.current&&/[\r\n]/.test(ti.current)){var Ma=ti.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");sa=sa.replace(Ma,ti.current)}ti.current=null,Ji(sa)},pa=function(wi){var sa=wi.clipboardData,Ma=sa.getData("text");ti.current=Ma},Vi=function(wi){var sa=wi.target;if(sa!==Qt.current){var Ma=document.body.style.msTouchAction!==void 0;Ma?setTimeout(function(){Qt.current.focus()}):Qt.current.focus()}},Xi=function(wi){var sa=Qr();wi.target!==Qt.current&&!sa&&gr!=="combobox"&&wi.preventDefault(),(gr!=="combobox"&&(!cr||!sa)||!Gn)&&(Gn&&wr!==!1&&_r("",!0,!1),Tr())},Ii={inputRef:Qt,onInputKeyDown:bi,onInputMouseDown:zi,onInputChange:Ta,onInputPaste:pa,onInputCompositionStart:na,onInputCompositionEnd:za},ma=gr==="multiple"||gr==="tags"?se.createElement(jn,(0,x.Z)({},Rt,Ii)):se.createElement(Xt,(0,x.Z)({},Rt,Ii));return se.createElement("div",{ref:vi,className:"".concat(Wn,"-selector"),onClick:Vi,onMouseDown:Xi},ma)},zt=se.forwardRef(An);zt.displayName="Selector";var tn=zt,bn=ve(62709),wn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],zn=function(Rt){var un=Rt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"}}},Un=function(Rt,un){var Qt=Rt.prefixCls,_n=Rt.disabled,Wn=Rt.visible,Gn=Rt.children,gr=Rt.popupElement,cr=Rt.animation,Jn=Rt.transitionName,wr=Rt.dropdownStyle,_r=Rt.dropdownClassName,Vr=Rt.direction,Tr=Vr===void 0?"ltr":Vr,qr=Rt.placement,vi=Rt.builtinPlacements,si=Rt.dropdownMatchSelectWidth,gi=Rt.dropdownRender,Qr=Rt.dropdownAlign,ui=Rt.getPopupContainer,bi=Rt.empty,zi=Rt.getTriggerDOMNode,ti=Rt.onPopupVisibleChange,Ji=Rt.onPopupMouseEnter,na=(0,ae.Z)(Rt,wn),za="".concat(Qt,"-dropdown"),Ta=gr;gi&&(Ta=gi(gr));var pa=se.useMemo(function(){return vi||zn(si)},[vi,si]),Vi=cr?"".concat(za,"-").concat(cr):Jn,Xi=typeof si=="number",Ii=se.useMemo(function(){return Xi?null:si===!1?"minWidth":"width"},[si,Xi]),ma=wr;Xi&&(ma=(0,ne.Z)((0,ne.Z)({},ma),{},{width:si}));var Ri=se.useRef(null);return se.useImperativeHandle(un,function(){return{getPopupElement:function(){return Ri.current}}}),se.createElement(bn.Z,(0,x.Z)({},na,{showAction:ti?["click"]:[],hideAction:ti?["click"]:[],popupPlacement:qr||(Tr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:pa,prefixCls:za,popupTransitionName:Vi,popup:se.createElement("div",{ref:Ri,onMouseEnter:Ji},Ta),stretch:Ii,popupAlign:Qr,popupVisible:Wn,getPopupContainer:ui,popupClassName:ot()(_r,(0,pe.Z)({},"".concat(za,"-empty"),bi)),popupStyle:ma,getTriggerDOMNode:zi,onPopupVisibleChange:ti}),Gn)},kr=se.forwardRef(Un);kr.displayName="SelectTrigger";var Zr=kr,Ir=ve(84506);function Er(Ot,Rt){var un=Ot.key,Qt;return"value"in Ot&&(Qt=Ot.value),un!=null?un:Qt!==void 0?Qt:"rc-index-key-".concat(Rt)}function Br(Ot,Rt){var un=Ot||{},Qt=un.label,_n=un.value,Wn=un.options,Gn=un.groupLabel,gr=Qt||(Rt?"children":"label");return{label:gr,value:_n||"value",options:Wn||"options",groupLabel:Gn||gr}}function Pr(Ot){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},un=Rt.fieldNames,Qt=Rt.childrenAsData,_n=[],Wn=Br(un,!1),Gn=Wn.label,gr=Wn.value,cr=Wn.options,Jn=Wn.groupLabel;function wr(_r,Vr){_r.forEach(function(Tr){if(Vr||!(cr in Tr)){var qr=Tr[gr];_n.push({key:Er(Tr,_n.length),groupOption:Vr,data:Tr,label:Tr[Gn],value:qr})}else{var vi=Tr[Jn];vi===void 0&&Qt&&(vi=Tr.label),_n.push({key:Er(Tr,_n.length),group:!0,data:Tr,label:vi}),wr(Tr[cr],!0)}})}return wr(Ot,!1),_n}function nn(Ot){var Rt=(0,ne.Z)({},Ot);return"props"in Rt||Object.defineProperty(Rt,"props",{get:function(){return De(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Rt}}),Rt}function Jt(Ot,Rt){if(!Rt||!Rt.length)return null;var un=!1;function Qt(Wn,Gn){var gr=(0,Ir.Z)(Gn),cr=gr[0],Jn=gr.slice(1);if(!cr)return[Wn];var wr=Wn.split(cr);return un=un||wr.length>1,wr.reduce(function(_r,Vr){return[].concat((0,ke.Z)(_r),(0,ke.Z)(Qt(Vr,Jn)))},[]).filter(function(_r){return _r})}var _n=Qt(Ot,Rt);return un?_n:null}var pn=["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"],Qn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function hr(Ot){return Ot==="tags"||Ot==="multiple"}var Fn=se.forwardRef(function(Ot,Rt){var un,Qt,_n=Ot.id,Wn=Ot.prefixCls,Gn=Ot.className,gr=Ot.showSearch,cr=Ot.tagRender,Jn=Ot.direction,wr=Ot.omitDomProps,_r=Ot.displayValues,Vr=Ot.onDisplayValuesChange,Tr=Ot.emptyOptions,qr=Ot.notFoundContent,vi=qr===void 0?"Not Found":qr,si=Ot.onClear,gi=Ot.mode,Qr=Ot.disabled,ui=Ot.loading,bi=Ot.getInputElement,zi=Ot.getRawInputElement,ti=Ot.open,Ji=Ot.defaultOpen,na=Ot.onDropdownVisibleChange,za=Ot.activeValue,Ta=Ot.onActiveValueChange,pa=Ot.activeDescendantId,Vi=Ot.searchValue,Xi=Ot.autoClearSearchValue,Ii=Ot.onSearch,ma=Ot.onSearchSplit,Ri=Ot.tokenSeparators,wi=Ot.allowClear,sa=Ot.suffixIcon,Ma=Ot.clearIcon,go=Ot.OptionList,ho=Ot.animation,Ja=Ot.transitionName,Za=Ot.dropdownStyle,La=Ot.dropdownClassName,ua=Ot.dropdownMatchSelectWidth,Oo=Ot.dropdownRender,ba=Ot.dropdownAlign,Ki=Ot.placement,Ia=Ot.builtinPlacements,to=Ot.getPopupContainer,Ra=Ot.showAction,Fa=Ra===void 0?[]:Ra,ra=Ot.onFocus,no=Ot.onBlur,yo=Ot.onKeyUp,so=Ot.onKeyDown,bo=Ot.onMouseDown,Mo=(0,ae.Z)(Ot,pn),Xo=hr(gi),lo=(gr!==void 0?gr:Xo)||gi==="combobox",So=(0,ne.Z)({},Mo);Qn.forEach(function(_o){delete So[_o]}),wr==null||wr.forEach(function(_o){delete So[_o]});var os=se.useState(!1),rs=(0,z.Z)(os,2),cs=rs[0],Lo=rs[1];se.useEffect(function(){Lo(Ie())},[]);var xo=se.useRef(null),ya=se.useRef(null),Da=se.useRef(null),ro=se.useRef(null),po=se.useRef(null),Wo=ft(),us=(0,z.Z)(Wo,3),xs=us[0],Js=us[1],Fs=us[2];se.useImperativeHandle(Rt,function(){var _o,co;return{focus:(_o=ro.current)===null||_o===void 0?void 0:_o.focus,blur:(co=ro.current)===null||co===void 0?void 0:co.blur,scrollTo:function(gl){var uo;return(uo=po.current)===null||uo===void 0?void 0:uo.scrollTo(gl)}}});var ds=se.useMemo(function(){var _o;if(gi!=="combobox")return Vi;var co=(_o=_r[0])===null||_o===void 0?void 0:_o.value;return typeof co=="string"||typeof co=="number"?String(co):""},[Vi,gi,_r]),$s=gi==="combobox"&&typeof bi=="function"&&bi()||null,Ga=typeof zi=="function"&&zi(),Aa=et(ya,Ga==null||(un=Ga.props)===null||un===void 0?void 0:un.ref),fo=se.useState(!1),ko=(0,z.Z)(fo,2),fs=ko[0],ss=ko[1];ue(function(){ss(!0)},[]);var jl=Se(!1,{defaultValue:Ji,value:ti}),vl=(0,z.Z)(jl,2),Sl=vl[0],Xa=vl[1],fi=fs?Sl:!1,fa=!vi&&Tr;(Qr||fa&&fi&&gi==="combobox")&&(fi=!1);var ha=fa?!1:fi,ka=se.useCallback(function(_o){var co=_o!==void 0?_o:!fi;Qr||(Xa(co),fi!==co&&(na==null||na(co)))},[Qr,fi,Xa,na]),Zo=se.useMemo(function(){return(Ri||[]).some(function(_o){return[`
|
|
|
`,`\r
|
|
|
`].includes(_o)})},[Ri]),Yo=function(co,zs,gl){var uo=!0,Ko=co;Ta==null||Ta(null);var $o=gl?null:Jt(co,Ri);return gi!=="combobox"&&$o&&(Ko="",ma==null||ma($o),ka(!1),uo=!1),Ii&&ds!==Ko&&Ii(Ko,{source:zs?"typing":"effect"}),uo},il=function(co){!co||!co.trim()||Ii(co,{source:"submit"})};se.useEffect(function(){!fi&&!Xo&&gi!=="combobox"&&Yo("",!1,!1)},[fi]),se.useEffect(function(){Sl&&Qr&&Xa(!1),Qr&&Js(!1)},[Qr]);var dl=nt(),Cl=(0,z.Z)(dl,2),mo=Cl[0],Qs=Cl[1],Ll=function(co){var zs=mo(),gl=co.which;if(gl===Le.ENTER&&(gi!=="combobox"&&co.preventDefault(),fi||ka(!0)),Qs(!!ds),gl===Le.BACKSPACE&&!zs&&Xo&&!ds&&_r.length){for(var uo=(0,ke.Z)(_r),Ko=null,$o=uo.length-1;$o>=0;$o-=1){var Ss=uo[$o];if(!Ss.disabled){uo.splice($o,1),Ko=Ss;break}}Ko&&Vr(uo,{type:"remove",values:[Ko]})}for(var el=arguments.length,Kl=new Array(el>1?el-1:0),Fl=1;Fl<el;Fl++)Kl[Fl-1]=arguments[Fl];if(fi&&po.current){var Wc;(Wc=po.current).onKeyDown.apply(Wc,[co].concat(Kl))}so==null||so.apply(void 0,[co].concat(Kl))},Sc=function(co){for(var zs=arguments.length,gl=new Array(zs>1?zs-1:0),uo=1;uo<zs;uo++)gl[uo-1]=arguments[uo];if(fi&&po.current){var Ko;(Ko=po.current).onKeyUp.apply(Ko,[co].concat(gl))}yo==null||yo.apply(void 0,[co].concat(gl))},Gl=function(co){var zs=_r.filter(function(gl){return gl!==co});Vr(zs,{type:"remove",values:[co]})},El=se.useRef(!1),al=function(){Js(!0),Qr||(ra&&!El.current&&ra.apply(void 0,arguments),Fa.includes("focus")&&ka(!0)),El.current=!0},ec=function(){Js(!1,function(){El.current=!1,ka(!1)}),!Qr&&(ds&&(gi==="tags"?Ii(ds,{source:"submit"}):gi==="multiple"&&Ii("",{source:"blur"})),no&&no.apply(void 0,arguments))},fl=[];se.useEffect(function(){return function(){fl.forEach(function(_o){return clearTimeout(_o)}),fl.splice(0,fl.length)}},[]);var tc=function(co){var zs,gl=co.target,uo=(zs=Da.current)===null||zs===void 0?void 0:zs.getPopupElement();if(uo&&uo.contains(gl)){var Ko=setTimeout(function(){var Kl=fl.indexOf(Ko);if(Kl!==-1&&fl.splice(Kl,1),Fs(),!cs&&!uo.contains(document.activeElement)){var Fl;(Fl=ro.current)===null||Fl===void 0||Fl.focus()}});fl.push(Ko)}for(var $o=arguments.length,Ss=new Array($o>1?$o-1:0),el=1;el<$o;el++)Ss[el-1]=arguments[el];bo==null||bo.apply(void 0,[co].concat(Ss))},is=se.useState({}),Co=(0,z.Z)(is,2),qo=Co[1];function ws(){qo({})}var Ds;Ga&&(Ds=function(co){ka(co)}),tt(function(){var _o;return[xo.current,(_o=Da.current)===null||_o===void 0?void 0:_o.getPopupElement()]},ha,ka,!!Ga);var ol=se.useMemo(function(){return(0,ne.Z)((0,ne.Z)({},Ot),{},{notFoundContent:vi,open:fi,triggerOpen:ha,id:_n,showSearch:lo,multiple:Xo,toggleOpen:ka})},[Ot,vi,ha,fi,_n,lo,Xo,ka]),Ps=!!sa||ui,zl;Ps&&(zl=se.createElement(Ve,{className:ot()("".concat(Wn,"-arrow"),(0,pe.Z)({},"".concat(Wn,"-arrow-loading"),ui)),customizeIcon:sa,customizeIconProps:{loading:ui,searchValue:ds,open:fi,focused:xs,showSearch:lo}}));var Hc=function(){var co;si==null||si(),(co=ro.current)===null||co===void 0||co.focus(),Vr([],{type:"clear",values:_r}),Yo("",!1,!1)},hc=Qe(Wn,Hc,_r,wi,Ma,Qr,ds,gi),Pc=hc.allowClear,Lc=hc.clearIcon,nc=se.createElement(go,{ref:po}),rc=ot()(Wn,Gn,(Qt={},(0,pe.Z)(Qt,"".concat(Wn,"-focused"),xs),(0,pe.Z)(Qt,"".concat(Wn,"-multiple"),Xo),(0,pe.Z)(Qt,"".concat(Wn,"-single"),!Xo),(0,pe.Z)(Qt,"".concat(Wn,"-allow-clear"),wi),(0,pe.Z)(Qt,"".concat(Wn,"-show-arrow"),Ps),(0,pe.Z)(Qt,"".concat(Wn,"-disabled"),Qr),(0,pe.Z)(Qt,"".concat(Wn,"-loading"),ui),(0,pe.Z)(Qt,"".concat(Wn,"-open"),fi),(0,pe.Z)(Qt,"".concat(Wn,"-customize-input"),$s),(0,pe.Z)(Qt,"".concat(Wn,"-show-search"),lo),Qt)),Rc=se.createElement(Zr,{ref:Da,disabled:Qr,prefixCls:Wn,visible:ha,popupElement:nc,animation:ho,transitionName:Ja,dropdownStyle:Za,dropdownClassName:La,direction:Jn,dropdownMatchSelectWidth:ua,dropdownRender:Oo,dropdownAlign:ba,placement:Ki,builtinPlacements:Ia,getPopupContainer:to,empty:Tr,getTriggerDOMNode:function(){return ya.current},onPopupVisibleChange:Ds,onPopupMouseEnter:ws},Ga?se.cloneElement(Ga,{ref:Aa}):se.createElement(tn,(0,x.Z)({},Ot,{domRef:ya,prefixCls:Wn,inputElement:$s,ref:ro,id:_n,showSearch:lo,autoClearSearchValue:Xi,mode:gi,activeDescendantId:pa,tagRender:cr,values:_r,open:fi,onToggleOpen:ka,activeValue:za,searchValue:ds,onSearch:Yo,onSearchSubmit:il,onRemove:Gl,tokenWithEnter:Zo}))),Nc;return Ga?Nc=Rc:Nc=se.createElement("div",(0,x.Z)({className:rc},So,{ref:xo,onMouseDown:tc,onKeyDown:Ll,onKeyUp:Sc,onFocus:al,onBlur:ec}),xs&&!fi&&se.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(_r.map(function(_o){var co=_o.label,zs=_o.value;return["number","string"].includes((0,re.Z)(co))?co:zs}).join(", "))),Rc,zl,Pc&&Lc),se.createElement(pt.Provider,{value:ol},Nc)}),Vn=Fn,er=function(Ot,Rt){var un=se.useRef({values:new Map,options:new Map}),Qt=se.useMemo(function(){var Wn=un.current,Gn=Wn.values,gr=Wn.options,cr=Ot.map(function(_r){if(_r.label===void 0){var Vr;return(0,ne.Z)((0,ne.Z)({},_r),{},{label:(Vr=Gn.get(_r.value))===null||Vr===void 0?void 0:Vr.label})}return _r}),Jn=new Map,wr=new Map;return cr.forEach(function(_r){Jn.set(_r.value,_r),wr.set(_r.value,Rt.get(_r.value)||gr.get(_r.value))}),un.current.values=Jn,un.current.options=wr,cr},[Ot,Rt]),_n=se.useCallback(function(Wn){return Rt.get(Wn)||un.current.options.get(Wn)},[Rt]);return[Qt,_n]};function Sr(Ot,Rt){return ai(Ot).join("").toUpperCase().includes(Rt)}var Nr=function(Ot,Rt,un,Qt,_n){return se.useMemo(function(){if(!un||Qt===!1)return Ot;var Wn=Rt.options,Gn=Rt.label,gr=Rt.value,cr=[],Jn=typeof Qt=="function",wr=un.toUpperCase(),_r=Jn?Qt:function(Tr,qr){return _n?Sr(qr[_n],wr):qr[Wn]?Sr(qr[Gn!=="children"?Gn:"label"],wr):Sr(qr[gr],wr)},Vr=Jn?function(Tr){return nn(Tr)}:function(Tr){return Tr};return Ot.forEach(function(Tr){if(Tr[Wn]){var qr=_r(un,Vr(Tr));if(qr)cr.push(Tr);else{var vi=Tr[Wn].filter(function(si){return _r(un,Vr(si))});vi.length&&cr.push((0,ne.Z)((0,ne.Z)({},Tr),{},(0,pe.Z)({},Wn,vi)))}return}_r(un,Vr(Tr))&&cr.push(Tr)}),cr},[Ot,Qt,_n,un,Rt])},In=0,Gr=ie();function ei(){var Ot;return Gr?(Ot=In,In+=1):Ot="TEST_OR_SSR",Ot}function aa(Ot){var Rt=se.useState(),un=(0,z.Z)(Rt,2),Qt=un[0],_n=un[1];return se.useEffect(function(){_n("rc_select_".concat(ei()))},[]),Ot||Qt}function ca(Ot){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},un=[];return se.Children.forEach(Ot,function(Qt){Qt==null&&!Rt.keepEmpty||(Array.isArray(Qt)?un=un.concat(ca(Qt)):(0,We.isFragment)(Qt)&&Qt.props?un=un.concat(ca(Qt.props.children,Rt)):un.push(Qt))}),un}var qi=["children","value"],Oi=["children"];function oa(Ot){var Rt=Ot,un=Rt.key,Qt=Rt.props,_n=Qt.children,Wn=Qt.value,Gn=(0,ae.Z)(Qt,qi);return(0,ne.Z)({key:un,value:Wn!==void 0?Wn:un,children:_n},Gn)}function Bi(Ot){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ca(Ot).map(function(un,Qt){if(!se.isValidElement(un)||!un.type)return null;var _n=un,Wn=_n.type.isSelectOptGroup,Gn=_n.key,gr=_n.props,cr=gr.children,Jn=(0,ae.Z)(gr,Oi);return Rt||!Wn?oa(un):(0,ne.Z)((0,ne.Z)({key:"__RC_SELECT_GRP__".concat(Gn===null?Qt:Gn,"__"),label:Gn},Jn),{},{options:Bi(cr)})}).filter(function(un){return un})}function Di(Ot,Rt,un,Qt,_n){return se.useMemo(function(){var Wn=Ot,Gn=!Ot;Gn&&(Wn=Bi(Rt));var gr=new Map,cr=new Map,Jn=function(Vr,Tr,qr){qr&&typeof qr=="string"&&Vr.set(Tr[qr],Tr)};function wr(_r){for(var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tr=0;Tr<_r.length;Tr+=1){var qr=_r[Tr];!qr[un.options]||Vr?(gr.set(qr[un.value],qr),Jn(cr,qr,un.label),Jn(cr,qr,Qt),Jn(cr,qr,_n)):wr(qr[un.options],!0)}}return wr(Wn),{options:Wn,valueOptions:gr,labelOptions:cr}},[Ot,Rt,un,Qt,_n])}function _a(Ot){var Rt=se.useRef();Rt.current=Ot;var un=se.useCallback(function(){return Rt.current.apply(Rt,arguments)},[]);return un}var _i=function(){return null};_i.isSelectOptGroup=!0;var ta=_i,Ea=function(){return null};Ea.isSelectOption=!0;var Va=Ea;function Na(Ot,Rt){var un=(0,ne.Z)({},Ot);return Array.isArray(Rt)&&Rt.forEach(function(Qt){delete un[Qt]}),un}var Pi=ve(73299),yn=se.createContext(null),dn=yn;function Kn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var or=["disabled","title","children","style","className"];function xr(Ot){return typeof Ot=="string"||typeof Ot=="number"}var Wr=function(Rt,un){var Qt=mt(),_n=Qt.prefixCls,Wn=Qt.id,Gn=Qt.open,gr=Qt.multiple,cr=Qt.mode,Jn=Qt.searchValue,wr=Qt.toggleOpen,_r=Qt.notFoundContent,Vr=Qt.onPopupScroll,Tr=se.useContext(dn),qr=Tr.flattenOptions,vi=Tr.onActiveValue,si=Tr.defaultActiveFirstOption,gi=Tr.onSelect,Qr=Tr.menuItemSelectedIcon,ui=Tr.rawValues,bi=Tr.fieldNames,zi=Tr.virtual,ti=Tr.direction,Ji=Tr.listHeight,na=Tr.listItemHeight,za="".concat(_n,"-item"),Ta=Be(function(){return qr},[Gn,qr],function(ba,Ki){return Ki[0]&&ba[1]!==Ki[1]}),pa=se.useRef(null),Vi=function(Ki){Ki.preventDefault()},Xi=function(Ki){pa.current&&pa.current.scrollTo(typeof Ki=="number"?{index:Ki}:Ki)},Ii=function(Ki){for(var Ia=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,to=Ta.length,Ra=0;Ra<to;Ra+=1){var Fa=(Ki+Ra*Ia+to)%to,ra=Ta[Fa],no=ra.group,yo=ra.data;if(!no&&!yo.disabled)return Fa}return-1},ma=se.useState(function(){return Ii(0)}),Ri=(0,z.Z)(ma,2),wi=Ri[0],sa=Ri[1],Ma=function(Ki){var Ia=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;sa(Ki);var to={source:Ia?"keyboard":"mouse"},Ra=Ta[Ki];if(!Ra){vi(null,-1,to);return}vi(Ra.value,Ki,to)};(0,se.useEffect)(function(){Ma(si!==!1?Ii(0):-1)},[Ta.length,Jn]);var go=se.useCallback(function(ba){return ui.has(ba)&&cr!=="combobox"},[cr,(0,ke.Z)(ui).toString(),ui.size]);(0,se.useEffect)(function(){var ba=setTimeout(function(){if(!gr&&Gn&&ui.size===1){var Ia=Array.from(ui)[0],to=Ta.findIndex(function(Ra){var Fa=Ra.data;return Fa.value===Ia});to!==-1&&(Ma(to),Xi(to))}});if(Gn){var Ki;(Ki=pa.current)===null||Ki===void 0||Ki.scrollTo(void 0)}return function(){return clearTimeout(ba)}},[Gn,Jn,qr.length]);var ho=function(Ki){Ki!==void 0&&gi(Ki,{selected:!ui.has(Ki)}),gr||wr(!1)};if(se.useImperativeHandle(un,function(){return{onKeyDown:function(Ki){var Ia=Ki.which,to=Ki.ctrlKey;switch(Ia){case Le.N:case Le.P:case Le.UP:case Le.DOWN:{var Ra=0;if(Ia===Le.UP?Ra=-1:Ia===Le.DOWN?Ra=1:Kn()&&to&&(Ia===Le.N?Ra=1:Ia===Le.P&&(Ra=-1)),Ra!==0){var Fa=Ii(wi+Ra,Ra);Xi(Fa),Ma(Fa,!0)}break}case Le.ENTER:{var ra=Ta[wi];ra&&!ra.data.disabled?ho(ra.value):ho(void 0),Gn&&Ki.preventDefault();break}case Le.ESC:wr(!1),Gn&&Ki.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ki){Xi(Ki)}}}),Ta.length===0)return se.createElement("div",{role:"listbox",id:"".concat(Wn,"_list"),className:"".concat(za,"-empty"),onMouseDown:Vi},_r);var Ja=Object.keys(bi).map(function(ba){return bi[ba]}),Za=function(Ki){return Ki.label};function La(ba,Ki){var Ia=ba.group;return{role:Ia?"presentation":"option",id:"".concat(Wn,"_list_").concat(Ki)}}var ua=function(Ki){var Ia=Ta[Ki];if(!Ia)return null;var to=Ia.data||{},Ra=to.value,Fa=Ia.group,ra=Ze(to,!0),no=Za(Ia);return Ia?se.createElement("div",(0,x.Z)({"aria-label":typeof no=="string"&&!Fa?no:null},ra,{key:Ki},La(Ia,Ki),{"aria-selected":go(Ra)}),Ra):null},Oo={role:"listbox",id:"".concat(Wn,"_list")};return se.createElement(se.Fragment,null,zi&&se.createElement("div",(0,x.Z)({},Oo,{style:{height:0,width:0,overflow:"hidden"}}),ua(wi-1),ua(wi),ua(wi+1)),se.createElement(Pi.Z,{itemKey:"key",ref:pa,data:Ta,height:Ji,itemHeight:na,fullHeight:!1,onMouseDown:Vi,onScroll:Vr,virtual:zi,direction:ti,innerProps:zi?null:Oo},function(ba,Ki){var Ia,to=ba.group,Ra=ba.groupOption,Fa=ba.data,ra=ba.label,no=ba.value,yo=Fa.key;if(to){var so,bo=(so=Fa.title)!==null&&so!==void 0?so:xr(ra)?ra.toString():void 0;return se.createElement("div",{className:ot()(za,"".concat(za,"-group")),title:bo},ra!==void 0?ra:yo)}var Mo=Fa.disabled,Xo=Fa.title,lo=Fa.children,So=Fa.style,os=Fa.className,rs=(0,ae.Z)(Fa,or),cs=Na(rs,Ja),Lo=go(no),xo="".concat(za,"-option"),ya=ot()(za,xo,os,(Ia={},(0,pe.Z)(Ia,"".concat(xo,"-grouped"),Ra),(0,pe.Z)(Ia,"".concat(xo,"-active"),wi===Ki&&!Mo),(0,pe.Z)(Ia,"".concat(xo,"-disabled"),Mo),(0,pe.Z)(Ia,"".concat(xo,"-selected"),Lo),Ia)),Da=Za(ba),ro=!Qr||typeof Qr=="function"||Lo,po=typeof Da=="number"?Da:Da||no,Wo=xr(po)?po.toString():void 0;return Xo!==void 0&&(Wo=Xo),se.createElement("div",(0,x.Z)({},Ze(cs),zi?{}:La(ba,Ki),{"aria-selected":Lo,className:ya,title:Wo,onMouseMove:function(){wi===Ki||Mo||Ma(Ki)},onClick:function(){Mo||ho(no)},style:So}),se.createElement("div",{className:"".concat(xo,"-content")},po),se.isValidElement(Qr)||Lo,ro&&se.createElement(Ve,{className:"".concat(za,"-option-state"),customizeIcon:Qr,customizeIconProps:{isSelected:Lo}},Lo?"\u2713":null))}))},oi=se.forwardRef(Wr);oi.displayName="OptionList";var pi=oi;function Ei(Ot){var Rt=Ot.mode,un=Ot.options,Qt=Ot.children,_n=Ot.backfill,Wn=Ot.allowClear,Gn=Ot.placeholder,gr=Ot.getInputElement,cr=Ot.showSearch,Jn=Ot.onSearch,wr=Ot.defaultOpen,_r=Ot.autoFocus,Vr=Ot.labelInValue,Tr=Ot.value,qr=Ot.inputValue,vi=Ot.optionLabelProp,si=isMultiple(Rt),gi=cr!==void 0?cr:si||Rt==="combobox",Qr=un||convertChildrenToData(Qt);if(warning(Rt!=="tags"||Qr.every(function(ti){return!ti.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Rt==="tags"||Rt==="combobox"){var ui=Qr.some(function(ti){return ti.options?ti.options.some(function(Ji){return typeof("value"in Ji?Ji.value:Ji.key)=="number"}):typeof("value"in ti?ti.value:ti.key)=="number"});warning(!ui,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Rt!=="combobox"||!vi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Rt==="combobox"||!_n,"`backfill` only works with `combobox` mode."),warning(Rt==="combobox"||!gr,"`getInputElement` only work with `combobox` mode."),noteOnce(Rt!=="combobox"||!gr||!Wn||!Gn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Jn&&!gi&&Rt!=="combobox"&&Rt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!wr||_r,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Tr!=null){var bi=toArray(Tr);warning(!Vr||bi.every(function(ti){return _typeof(ti)==="object"&&("key"in ti||"value"in ti)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!si||Array.isArray(Tr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qt){var zi=null;toNodeArray(Qt).some(function(ti){if(!React.isValidElement(ti)||!ti.type)return!1;var Ji=ti,na=Ji.type;if(na.isSelectOption)return!1;if(na.isSelectOptGroup){var za=toNodeArray(ti.props.children).every(function(Ta){return!React.isValidElement(Ta)||!ti.type||Ta.type.isSelectOption?!0:(zi=Ta.type,!1)});return!za}return zi=na,!0}),zi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(zi.displayName||zi.name||zi,"`.")),warning(qr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function mi(Ot,Rt){if(Ot){var un=function Qt(_n){for(var Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gn=0;Gn<_n.length;Gn++){var gr=_n[Gn];if(gr[Rt==null?void 0:Rt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Wn&&Array.isArray(gr[Rt==null?void 0:Rt.options])&&Qt(gr[Rt==null?void 0:Rt.options],!0))break}};un(Ot)}}var Li=null,ea=["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"],ni=["inputValue"];function Mn(Ot){return!Ot||(0,re.Z)(Ot)!=="object"}var hn=se.forwardRef(function(Ot,Rt){var un=Ot.id,Qt=Ot.mode,_n=Ot.prefixCls,Wn=_n===void 0?"rc-select":_n,Gn=Ot.backfill,gr=Ot.fieldNames,cr=Ot.inputValue,Jn=Ot.searchValue,wr=Ot.onSearch,_r=Ot.autoClearSearchValue,Vr=_r===void 0?!0:_r,Tr=Ot.onSelect,qr=Ot.onDeselect,vi=Ot.dropdownMatchSelectWidth,si=vi===void 0?!0:vi,gi=Ot.filterOption,Qr=Ot.filterSort,ui=Ot.optionFilterProp,bi=Ot.optionLabelProp,zi=Ot.options,ti=Ot.children,Ji=Ot.defaultActiveFirstOption,na=Ot.menuItemSelectedIcon,za=Ot.virtual,Ta=Ot.direction,pa=Ot.listHeight,Vi=pa===void 0?200:pa,Xi=Ot.listItemHeight,Ii=Xi===void 0?20:Xi,ma=Ot.value,Ri=Ot.defaultValue,wi=Ot.labelInValue,sa=Ot.onChange,Ma=(0,ae.Z)(Ot,ea),go=aa(un),ho=hr(Qt),Ja=!!(!zi&&ti),Za=se.useMemo(function(){return gi===void 0&&Qt==="combobox"?!1:gi},[gi,Qt]),La=se.useMemo(function(){return Br(gr,Ja)},[JSON.stringify(gr),Ja]),ua=Se("",{value:Jn!==void 0?Jn:cr,postState:function(fa){return fa||""}}),Oo=(0,z.Z)(ua,2),ba=Oo[0],Ki=Oo[1],Ia=Di(zi,ti,La,ui,bi),to=Ia.valueOptions,Ra=Ia.labelOptions,Fa=Ia.options,ra=se.useCallback(function(fi){var fa=ai(fi);return fa.map(function(ha){var ka,Zo,Yo,il,dl;if(Mn(ha))ka=ha;else{var Cl;Yo=ha.key,Zo=ha.label,ka=(Cl=ha.value)!==null&&Cl!==void 0?Cl:Yo}var mo=to.get(ka);if(mo){var Qs;if(Zo===void 0&&(Zo=mo==null?void 0:mo[bi||La.label]),Yo===void 0&&(Yo=(Qs=mo==null?void 0:mo.key)!==null&&Qs!==void 0?Qs:ka),il=mo==null?void 0:mo.disabled,dl=mo==null?void 0:mo.title,0)var Ll}return{label:Zo,value:ka,key:Yo,disabled:il,title:dl}})},[La,bi,to]),no=Se(Ri,{value:ma}),yo=(0,z.Z)(no,2),so=yo[0],bo=yo[1],Mo=se.useMemo(function(){var fi,fa=ra(so);return Qt==="combobox"&&cn((fi=fa[0])===null||fi===void 0?void 0:fi.value)?[]:fa},[so,ra,Qt]),Xo=er(Mo,to),lo=(0,z.Z)(Xo,2),So=lo[0],os=lo[1],rs=se.useMemo(function(){if(!Qt&&So.length===1){var fi=So[0];if(fi.value===null&&(fi.label===null||fi.label===void 0))return[]}return So.map(function(fa){var ha;return(0,ne.Z)((0,ne.Z)({},fa),{},{label:(ha=fa.label)!==null&&ha!==void 0?ha:fa.value})})},[Qt,So]),cs=se.useMemo(function(){return new Set(So.map(function(fi){return fi.value}))},[So]);se.useEffect(function(){if(Qt==="combobox"){var fi,fa=(fi=So[0])===null||fi===void 0?void 0:fi.value;Ki(xi(fa)?String(fa):"")}},[So]);var Lo=_a(function(fi,fa){var ha,ka=fa!=null?fa:fi;return ha={},(0,pe.Z)(ha,La.value,fi),(0,pe.Z)(ha,La.label,ka),ha}),xo=se.useMemo(function(){if(Qt!=="tags")return Fa;var fi=(0,ke.Z)(Fa),fa=function(ka){return to.has(ka)};return(0,ke.Z)(So).sort(function(ha,ka){return ha.value<ka.value?-1:1}).forEach(function(ha){var ka=ha.value;fa(ka)||fi.push(Lo(ka,ha.label))}),fi},[Lo,Fa,to,So,Qt]),ya=Nr(xo,La,ba,Za,ui),Da=se.useMemo(function(){return Qt!=="tags"||!ba||ya.some(function(fi){return fi[ui||"value"]===ba})||ya.some(function(fi){return fi[La.value]===ba})?ya:[Lo(ba)].concat((0,ke.Z)(ya))},[Lo,ui,Qt,ya,ba,La]),ro=se.useMemo(function(){return Qr?(0,ke.Z)(Da).sort(function(fi,fa){return Qr(fi,fa)}):Da},[Da,Qr]),po=se.useMemo(function(){return Pr(ro,{fieldNames:La,childrenAsData:Ja})},[ro,La,Ja]),Wo=function(fa){var ha=ra(fa);if(bo(ha),sa&&(ha.length!==So.length||ha.some(function(Yo,il){var dl;return((dl=So[il])===null||dl===void 0?void 0:dl.value)!==(Yo==null?void 0:Yo.value)}))){var ka=wi?ha:ha.map(function(Yo){return Yo.value}),Zo=ha.map(function(Yo){return nn(os(Yo.value))});sa(ho?ka:ka[0],ho?Zo:Zo[0])}},us=se.useState(null),xs=(0,z.Z)(us,2),Js=xs[0],Fs=xs[1],ds=se.useState(0),$s=(0,z.Z)(ds,2),Ga=$s[0],Aa=$s[1],fo=Ji!==void 0?Ji:Qt!=="combobox",ko=se.useCallback(function(fi,fa){var ha=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ka=ha.source,Zo=ka===void 0?"keyboard":ka;Aa(fa),Gn&&Qt==="combobox"&&fi!==null&&Zo==="keyboard"&&Fs(String(fi))},[Gn,Qt]),fs=function(fa,ha,ka){var Zo=function(){var El,al=os(fa);return[wi?{label:al==null?void 0:al[La.label],value:fa,key:(El=al==null?void 0:al.key)!==null&&El!==void 0?El:fa}:fa,nn(al)]};if(ha&&Tr){var Yo=Zo(),il=(0,z.Z)(Yo,2),dl=il[0],Cl=il[1];Tr(dl,Cl)}else if(!ha&&qr&&ka!=="clear"){var mo=Zo(),Qs=(0,z.Z)(mo,2),Ll=Qs[0],Sc=Qs[1];qr(Ll,Sc)}},ss=_a(function(fi,fa){var ha,ka=ho?fa.selected:!0;ka?ha=ho?[].concat((0,ke.Z)(So),[fi]):[fi]:ha=So.filter(function(Zo){return Zo.value!==fi}),Wo(ha),fs(fi,ka),Qt==="combobox"?Fs(""):(!hr||Vr)&&(Ki(""),Fs(""))}),jl=function(fa,ha){Wo(fa);var ka=ha.type,Zo=ha.values;(ka==="remove"||ka==="clear")&&Zo.forEach(function(Yo){fs(Yo.value,!1,ka)})},vl=function(fa,ha){if(Ki(fa),Fs(null),ha.source==="submit"){var ka=(fa||"").trim();if(ka){var Zo=Array.from(new Set([].concat((0,ke.Z)(cs),[ka])));Wo(Zo),fs(ka,!0),Ki("")}return}ha.source!=="blur"&&(Qt==="combobox"&&Wo(fa),wr==null||wr(fa))},Sl=function(fa){var ha=fa;Qt!=="tags"&&(ha=fa.map(function(Zo){var Yo=Ra.get(Zo);return Yo==null?void 0:Yo.value}).filter(function(Zo){return Zo!==void 0}));var ka=Array.from(new Set([].concat((0,ke.Z)(cs),(0,ke.Z)(ha))));Wo(ka),ka.forEach(function(Zo){fs(Zo,!0)})},Xa=se.useMemo(function(){var fi=za!==!1&&si!==!1;return(0,ne.Z)((0,ne.Z)({},Ia),{},{flattenOptions:po,onActiveValue:ko,defaultActiveFirstOption:fo,onSelect:ss,menuItemSelectedIcon:na,rawValues:cs,fieldNames:La,virtual:fi,direction:Ta,listHeight:Vi,listItemHeight:Ii,childrenAsData:Ja})},[Ia,po,ko,fo,ss,na,cs,La,za,si,Vi,Ii,Ja]);return se.createElement(dn.Provider,{value:Xa},se.createElement(Vn,(0,x.Z)({},Ma,{id:go,prefixCls:Wn,ref:Rt,omitDomProps:ni,mode:Qt,displayValues:rs,onDisplayValuesChange:jl,direction:Ta,searchValue:ba,onSearch:vl,autoClearSearchValue:Vr,onSearchSplit:Sl,dropdownMatchSelectWidth:si,OptionList:pi,emptyOptions:!po.length,activeValue:Js,activeDescendantId:"".concat(go,"_list_").concat(Ga)})))}),On=hn;On.Option=Va,On.OptGroup=ta;var Je=On,vt=Je,Ct=ve(10366),It=ve(8745),At=ve(33603),Bt=ve(9708),Ft=ve(53124),on=ve(98866),gn=ve(88258),Ln=ve(98675),qn=ve(65223),Zn=ve(4173),Pn=ve(87244),Bn=ve(13458),Sn=ve(78642),Xn=ve(46163),vr=function(Ot,Rt){var un={};for(var Qt in Ot)Object.prototype.hasOwnProperty.call(Ot,Qt)&&Rt.indexOf(Qt)<0&&(un[Qt]=Ot[Qt]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Qt=Object.getOwnPropertySymbols(Ot);_n<Qt.length;_n++)Rt.indexOf(Qt[_n])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Qt[_n])&&(un[Qt[_n]]=Ot[Qt[_n]]);return un};const rr="SECRET_COMBOBOX_MODE_DO_NOT_USE",lr=(Ot,Rt)=>{var un,{prefixCls:Qt,bordered:_n=!0,className:Wn,rootClassName:Gn,getPopupContainer:gr,popupClassName:cr,dropdownClassName:Jn,listHeight:wr=256,placement:_r,listItemHeight:Vr=24,size:Tr,disabled:qr,notFoundContent:vi,status:si,builtinPlacements:gi,dropdownMatchSelectWidth:Qr,popupMatchSelectWidth:ui,direction:bi,style:zi,allowClear:ti}=Ot,Ji=vr(Ot,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:na,getPrefixCls:za,renderEmpty:Ta,direction:pa,virtual:Vi,popupMatchSelectWidth:Xi,popupOverflow:Ii,select:ma}=se.useContext(Ft.E_),Ri=za("select",Qt),wi=za(),sa=bi!=null?bi:pa,{compactSize:Ma,compactItemClassnames:go}=(0,Zn.ri)(Ri,sa),[ho,Ja]=(0,Pn.Z)(Ri),Za=se.useMemo(()=>{const{mode:xo}=Ji;if(xo!=="combobox")return xo===rr?"combobox":xo},[Ji.mode]),La=Za==="multiple"||Za==="tags",ua=(0,Sn.Z)(Ji.suffixIcon,Ji.showArrow),Oo=(un=ui!=null?ui:Qr)!==null&&un!==void 0?un:Xi,{status:ba,hasFeedback:Ki,isFormItemInput:Ia,feedbackIcon:to}=se.useContext(qn.aM),Ra=(0,Bt.F)(ba,si);let Fa;vi!==void 0?Fa=vi:Za==="combobox"?Fa=null:Fa=(Ta==null?void 0:Ta("Select"))||se.createElement(gn.Z,{componentName:"Select"});const{suffixIcon:ra,itemIcon:no,removeIcon:yo,clearIcon:so}=(0,Xn.Z)(Object.assign(Object.assign({},Ji),{multiple:La,hasFeedback:Ki,feedbackIcon:to,showSuffixIcon:ua,prefixCls:Ri,showArrow:Ji.showArrow,componentName:"Select"})),bo=ti===!0?{clearIcon:so}:ti,Mo=(0,Ct.Z)(Ji,["suffixIcon","itemIcon"]),Xo=ot()(cr||Jn,{[`${Ri}-dropdown-${sa}`]:sa==="rtl"},Gn,Ja),lo=(0,Ln.Z)(xo=>{var ya;return(ya=Tr!=null?Tr:Ma)!==null&&ya!==void 0?ya:xo}),So=se.useContext(on.Z),os=qr!=null?qr:So,rs=ot()({[`${Ri}-lg`]:lo==="large",[`${Ri}-sm`]:lo==="small",[`${Ri}-rtl`]:sa==="rtl",[`${Ri}-borderless`]:!_n,[`${Ri}-in-form-item`]:Ia},(0,Bt.Z)(Ri,Ra,Ki),go,ma==null?void 0:ma.className,Wn,Gn,Ja),cs=se.useMemo(()=>_r!==void 0?_r:sa==="rtl"?"bottomRight":"bottomLeft",[_r,sa]),Lo=(0,Bn.Z)(gi,Ii);return ho(se.createElement(vt,Object.assign({ref:Rt,virtual:Vi,showSearch:ma==null?void 0:ma.showSearch},Mo,{style:Object.assign(Object.assign({},ma==null?void 0:ma.style),zi),dropdownMatchSelectWidth:Oo,builtinPlacements:Lo,transitionName:(0,At.m)(wi,"slide-up",Ji.transitionName),listHeight:wr,listItemHeight:Vr,mode:Za,prefixCls:Ri,placement:cs,direction:sa,suffixIcon:ra,menuItemSelectedIcon:no,removeIcon:yo,allowClear:bo,notFoundContent:Fa,className:rs,getPopupContainer:gr||na,dropdownClassName:Xo,disabled:os})))},fr=se.forwardRef(lr),yr=(0,It.Z)(fr);fr.SECRET_COMBOBOX_MODE_DO_NOT_USE=rr,fr.Option=Va,fr.OptGroup=ta,fr._InternalPanelDoNotUseOrYouWillBeFired=yr;var Mr=fr},87244:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Me}});var Ue=ve(14747),ot=ve(80110),x=ve(45503),ke=ve(67968),pe=ve(67771),ne=ve(33297);const z=we=>{const{optionHeight:Ne,optionFontSize:Ae,optionLineHeight:De,optionPadding:Ie}=we;return{position:"relative",display:"block",minHeight:Ne,padding:Ie,color:we.colorText,fontWeight:"normal",fontSize:Ae,lineHeight:De,boxSizing:"border-box"}};var re=we=>{const{antCls:Ne,componentCls:Ae}=we,De=`${Ae}-item`,Ie=`&${Ne}-slide-up-enter${Ne}-slide-up-enter-active`,Pe=`&${Ne}-slide-up-appear${Ne}-slide-up-appear-active`,Le=`&${Ne}-slide-up-leave${Ne}-slide-up-leave-active`,We=`${Ae}-dropdown-placement-`;return[{[`${Ae}-dropdown`]:Object.assign(Object.assign({},(0,Ue.Wf)(we)),{position:"absolute",top:-9999,zIndex:we.zIndexPopup,boxSizing:"border-box",padding:we.paddingXXS,overflow:"hidden",fontSize:we.fontSize,fontVariant:"initial",backgroundColor:we.colorBgElevated,borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary,[`
|
|
|
${Ie}${We}bottomLeft,
|
|
|
${Pe}${We}bottomLeft
|
|
|
`]:{animationName:pe.fJ},[`
|
|
|
${Ie}${We}topLeft,
|
|
|
${Pe}${We}topLeft,
|
|
|
${Ie}${We}topRight,
|
|
|
${Pe}${We}topRight
|
|
|
`]:{animationName:pe.Qt},[`${Le}${We}bottomLeft`]:{animationName:pe.Uw},[`
|
|
|
${Le}${We}topLeft,
|
|
|
${Le}${We}topRight
|
|
|
`]:{animationName:pe.ly},"&-hidden":{display:"none"},[`${De}`]:Object.assign(Object.assign({},z(we)),{cursor:"pointer",transition:`background ${we.motionDurationSlow} ease`,borderRadius:we.borderRadiusSM,"&-group":{color:we.colorTextDescription,fontSize:we.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ue.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${De}-option-disabled)`]:{backgroundColor:we.optionActiveBg},[`&-selected:not(${De}-option-disabled)`]:{color:we.optionSelectedColor,fontWeight:we.optionSelectedFontWeight,backgroundColor:we.optionSelectedBg,[`${De}-option-state`]:{color:we.colorPrimary}},"&-disabled":{[`&${De}-option-selected`]:{backgroundColor:we.colorBgContainerDisabled},color:we.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:we.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,pe.oN)(we,"slide-up"),(0,pe.oN)(we,"slide-down"),(0,ne.Fm)(we,"move-up"),(0,ne.Fm)(we,"move-down")]};const se=2,me=we=>{let{controlHeightSM:Ne,controlHeight:Ae,lineWidth:De}=we;const Ie=(Ae-Ne)/2-De,Pe=Math.ceil(Ie/2);return[Ie,Pe]};function ie(we,Ne){const{componentCls:Ae,iconCls:De}=we,Ie=`${Ae}-selection-overflow`,Pe=we.multipleSelectItemHeight,[Le]=me(we),We=Ne?`${Ae}-${Ne}`:"";return{[`${Ae}-multiple${We}`]:{fontSize:we.fontSize,[Ie]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ae}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Le-se}px ${se*2}px`,borderRadius:we.borderRadius,[`${Ae}-show-search&`]:{cursor:"text"},[`${Ae}-disabled&`]:{background:we.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${se}px 0`,lineHeight:`${Pe}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ae}-show-arrow ${Ae}-selector,
|
|
|
&${Ae}-allow-clear ${Ae}-selector
|
|
|
`]:{paddingInlineEnd:we.fontSizeIcon+we.controlPaddingHorizontal},[`${Ae}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Pe,marginTop:se,marginBottom:se,lineHeight:`${Pe-we.lineWidth*2}px`,background:we.multipleItemBg,border:`${we.lineWidth}px ${we.lineType} ${we.multipleItemBorderColor}`,borderRadius:we.borderRadiusSM,cursor:"default",transition:`font-size ${we.motionDurationSlow}, line-height ${we.motionDurationSlow}, height ${we.motionDurationSlow}`,userSelect:"none",marginInlineEnd:se*2,paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS/2,[`${Ae}-disabled&`]:{color:we.multipleItemColorDisabled,borderColor:we.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:we.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ue.Ro)()),{display:"inline-flex",alignItems:"center",color:we.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${De}`]:{verticalAlign:"-0.2em"},"&:hover":{color:we.colorIconHover}})},[`${Ie}-item + ${Ie}-item`]:{[`${Ae}-selection-search`]:{marginInlineStart:0}},[`${Ae}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:we.inputPaddingHorizontalBase-Le,"\n &-input,\n &-mirror\n ":{height:Pe,fontFamily:we.fontFamily,lineHeight:`${Pe}px`,transition:`all ${we.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ae}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:we.inputPaddingHorizontalBase,insetInlineEnd:we.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${we.motionDurationSlow}`}}}}var ue=we=>{const{componentCls:Ne}=we,Ae=(0,x.TS)(we,{controlHeight:we.controlHeightSM,multipleSelectItemHeight:we.controlHeightXS,borderRadius:we.borderRadiusSM,borderRadiusSM:we.borderRadiusXS}),De=(0,x.TS)(we,{fontSize:we.fontSizeLG,controlHeight:we.controlHeightLG,multipleSelectItemHeight:we.multipleItemHeightLG,borderRadius:we.borderRadiusLG,borderRadiusSM:we.borderRadius}),[,Ie]=me(we);return[ie(we),ie(Ae,"sm"),{[`${Ne}-multiple${Ne}-sm`]:{[`${Ne}-selection-placeholder`]:{insetInline:we.controlPaddingHorizontalSM-we.lineWidth},[`${Ne}-selection-search`]:{marginInlineStart:Ie}}},ie(De,"lg")]};function fe(we,Ne){const{componentCls:Ae,inputPaddingHorizontalBase:De,borderRadius:Ie}=we,Pe=we.controlHeight-we.lineWidth*2,Le=Math.ceil(we.fontSize*1.25),We=Ne?`${Ae}-${Ne}`:"";return{[`${Ae}-single${We}`]:{fontSize:we.fontSize,[`${Ae}-selector`]:Object.assign(Object.assign({},(0,Ue.Wf)(we)),{display:"flex",borderRadius:Ie,[`${Ae}-selection-search`]:{position:"absolute",top:0,insetInlineStart:De,insetInlineEnd:De,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ae}-selection-item,
|
|
|
${Ae}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Pe}px`,transition:`all ${we.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Pe}px`}},[`${Ae}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ae}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ae}-selection-item:after`,`${Ae}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ae}-show-arrow ${Ae}-selection-item,
|
|
|
&${Ae}-show-arrow ${Ae}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Le},[`&${Ae}-open ${Ae}-selection-item`]:{color:we.colorTextPlaceholder},[`&:not(${Ae}-customize-input)`]:{[`${Ae}-selector`]:{width:"100%",height:we.controlHeight,padding:`0 ${De}px`,[`${Ae}-selection-search-input`]:{height:Pe},"&:after":{lineHeight:`${Pe}px`}}},[`&${Ae}-customize-input`]:{[`${Ae}-selector`]:{"&:after":{display:"none"},[`${Ae}-selection-search`]:{position:"static",width:"100%"},[`${Ae}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${De}px`,"&:after":{display:"none"}}}}}}}function he(we){const{componentCls:Ne}=we,Ae=we.controlPaddingHorizontalSM-we.lineWidth;return[fe(we),fe((0,x.TS)(we,{controlHeight:we.controlHeightSM,borderRadius:we.borderRadiusSM}),"sm"),{[`${Ne}-single${Ne}-sm`]:{[`&:not(${Ne}-customize-input)`]:{[`${Ne}-selection-search`]:{insetInlineStart:Ae,insetInlineEnd:Ae},[`${Ne}-selector`]:{padding:`0 ${Ae}px`},[`&${Ne}-show-arrow ${Ne}-selection-search`]:{insetInlineEnd:Ae+we.fontSize*1.5},[`
|
|
|
&${Ne}-show-arrow ${Ne}-selection-item,
|
|
|
&${Ne}-show-arrow ${Ne}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:we.fontSize*1.5}}}},fe((0,x.TS)(we,{controlHeight:we.singleItemHeightLG,fontSize:we.fontSizeLG,borderRadius:we.borderRadiusLG}),"lg")]}const oe=we=>{const{componentCls:Ne,selectorBg:Ae}=we;return{position:"relative",backgroundColor:Ae,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,transition:`all ${we.motionDurationMid} ${we.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ne}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ne}-disabled&`]:{color:we.colorTextDisabled,background:we.colorBgContainerDisabled,cursor:"not-allowed",[`${Ne}-multiple&`]:{background:we.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Se=function(we,Ne){let Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:De,borderHoverColor:Ie,outlineColor:Pe,antCls:Le}=Ne,We=Ae?{[`${De}-selector`]:{borderColor:Ie}}:{};return{[we]:{[`&:not(${De}-disabled):not(${De}-customize-input):not(${Le}-pagination-size-changer)`]:Object.assign(Object.assign({},We),{[`${De}-focused& ${De}-selector`]:{borderColor:Ie,boxShadow:`0 0 0 ${Ne.controlOutlineWidth}px ${Pe}`,outline:0},[`&:hover ${De}-selector`]:{borderColor:Ie}})}}},Ce=we=>{const{componentCls:Ne}=we;return{[`${Ne}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ye=we=>{const{componentCls:Ne,inputPaddingHorizontalBase:Ae,iconCls:De}=we;return{[Ne]:Object.assign(Object.assign({},(0,Ue.Wf)(we)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ne}-customize-input) ${Ne}-selector`]:Object.assign(Object.assign({},oe(we)),Ce(we)),[`${Ne}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Ue.vS),[`${Ne}-selection-placeholder`]:Object.assign(Object.assign({},Ue.vS),{flex:1,color:we.colorTextPlaceholder,pointerEvents:"none"}),[`${Ne}-arrow`]:Object.assign(Object.assign({},(0,Ue.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,height:we.fontSizeIcon,marginTop:-we.fontSizeIcon/2,color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[De]:{verticalAlign:"top",transition:`transform ${we.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ne}-suffix)`]:{pointerEvents:"auto"}},[`${Ne}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ne}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,zIndex:1,display:"inline-block",width:we.fontSizeIcon,height:we.fontSizeIcon,marginTop:-we.fontSizeIcon/2,color:we.colorTextQuaternary,fontSize:we.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:we.clearBg,cursor:"pointer",opacity:0,transition:`color ${we.motionDurationMid} ease, opacity ${we.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:we.colorTextTertiary}},"&:hover":{[`${Ne}-clear`]:{opacity:1}}}),[`${Ne}-has-feedback`]:{[`${Ne}-clear`]:{insetInlineEnd:Ae+we.fontSize+we.paddingXS}}}},_e=we=>{const{componentCls:Ne}=we;return[{[Ne]:{[`&-borderless ${Ne}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ne}-in-form-item`]:{width:"100%"}}},ye(we),he(we),ue(we),re(we),{[`${Ne}-rtl`]:{direction:"rtl"}},Se(Ne,(0,x.TS)(we,{borderHoverColor:we.colorPrimaryHover,outlineColor:we.controlOutline})),Se(`${Ne}-status-error`,(0,x.TS)(we,{borderHoverColor:we.colorErrorHover,outlineColor:we.colorErrorOutline}),!0),Se(`${Ne}-status-warning`,(0,x.TS)(we,{borderHoverColor:we.colorWarningHover,outlineColor:we.colorWarningOutline}),!0),(0,ot.c)(we,{borderElCls:`${Ne}-selector`,focusElCls:`${Ne}-focused`})]};var Me=(0,ke.Z)("Select",(we,Ne)=>{let{rootPrefixCls:Ae}=Ne;const De=(0,x.TS)(we,{rootPrefixCls:Ae,inputPaddingHorizontalBase:we.paddingSM-1,multipleSelectItemHeight:we.multipleItemHeight});return[_e(De)]},we=>{const{fontSize:Ne,lineHeight:Ae,controlHeight:De,controlPaddingHorizontal:Ie,zIndexPopupBase:Pe,colorText:Le,fontWeightStrong:We,controlItemBgActive:Be,controlItemBgHover:He,colorBgContainer:Ye,colorFillSecondary:et,controlHeightLG:st,controlHeightSM:yt,colorBgContainerDisabled:Ve,colorTextDisabled:Qe}=we;return{zIndexPopup:Pe+50,optionSelectedColor:Le,optionSelectedFontWeight:We,optionSelectedBg:Be,optionActiveBg:He,optionPadding:`${(De-Ne*Ae)/2}px ${Ie}px`,optionFontSize:Ne,optionLineHeight:Ae,optionHeight:De,selectorBg:Ye,clearBg:Ye,singleItemHeightLG:st,multipleItemBg:et,multipleItemBorderColor:"transparent",multipleItemHeight:yt,multipleItemHeightLG:De,multipleSelectorBgDisabled:Ve,multipleItemColorDisabled:Qe,multipleItemBorderColorDisabled:"transparent"}})},13458:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ot}});const Ue=x=>{const pe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:x==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},pe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},pe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},pe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},pe),{points:["br","tr"],offset:[0,-4]})}};function ot(x,ke){return x||Ue(ke)}},78642:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Ue}});function Ue(ot,x){return x!==void 0?x:ot!==null}},46163:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ae}});var Ue=ve(18299),ot=ve(16646),x=ve(73475),ke=ve(42922),pe=ve(3407),ne=ve(72395),z=ve(67294);function ae(re){let{suffixIcon:se,clearIcon:me,menuItemSelectedIcon:ie,removeIcon:le,loading:ue,multiple:fe,hasFeedback:he,prefixCls:oe,showSuffixIcon:Se,feedbackIcon:Ce,showArrow:ye,componentName:_e}=re;const Me=me!=null?me:z.createElement(ot.Z,null),we=Ie=>se===null&&!he&&!ye?null:z.createElement(z.Fragment,null,Se!==!1&&Ie,he&&Ce);let Ne=null;if(se!==void 0)Ne=we(se);else if(ue)Ne=we(z.createElement(pe.Z,{spin:!0}));else{const Ie=`${oe}-suffix`;Ne=Pe=>{let{open:Le,showSearch:We}=Pe;return we(Le&&We?z.createElement(ne.Z,{className:Ie}):z.createElement(ke.Z,{className:Ie}))}}let Ae=null;ie!==void 0?Ae=ie:fe?Ae=z.createElement(Ue.Z,null):Ae=null;let De=null;return le!==void 0?De=le:De=z.createElement(x.Z,null),{clearIcon:Me,suffixIcon:Ne,itemIcon:Ae,removeIcon:De}}},33507:function(xn,Zt){"use strict";const ve=Ue=>({[Ue.componentCls]:{[`${Ue.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${Ue.motionDurationMid} ${Ue.motionEaseInOut},
|
|
|
opacity ${Ue.motionDurationMid} ${Ue.motionEaseInOut} !important`}},[`${Ue.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${Ue.motionDurationMid} ${Ue.motionEaseInOut},
|
|
|
opacity ${Ue.motionDurationMid} ${Ue.motionEaseInOut} !important`}}});Zt.Z=ve},33297:function(xn,Zt,ve){"use strict";ve.d(Zt,{Fm:function(){return ie}});var Ue=ve(34367),ot=ve(93590);const x=new Ue.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 Ue.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),pe=new Ue.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ne=new Ue.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),z=new Ue.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ae=new Ue.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),re=new Ue.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),se=new Ue.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),me={"move-up":{inKeyframes:re,outKeyframes:se},"move-down":{inKeyframes:x,outKeyframes:ke},"move-left":{inKeyframes:pe,outKeyframes:ne},"move-right":{inKeyframes:z,outKeyframes:ae}},ie=(le,ue)=>{const{antCls:fe}=le,he=`${fe}-${ue}`,{inKeyframes:oe,outKeyframes:Se}=me[ue];return[(0,ot.R)(he,oe,Se,le.motionDurationMid),{[`
|
|
|
${he}-enter,
|
|
|
${he}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:le.motionEaseOutCirc},[`${he}-leave`]:{animationTimingFunction:le.motionEaseInOutCirc}}]}},67771:function(xn,Zt,ve){"use strict";ve.d(Zt,{Qt:function(){return pe},Uw:function(){return ke},fJ:function(){return x},ly:function(){return ne},oN:function(){return ie}});var Ue=ve(34367),ot=ve(93590);const x=new Ue.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ke=new Ue.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),pe=new Ue.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ne=new Ue.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),z=new Ue.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ae=new Ue.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),re=new Ue.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),se=new Ue.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),me={"slide-up":{inKeyframes:x,outKeyframes:ke},"slide-down":{inKeyframes:pe,outKeyframes:ne},"slide-left":{inKeyframes:z,outKeyframes:ae},"slide-right":{inKeyframes:re,outKeyframes:se}},ie=(le,ue)=>{const{antCls:fe}=le,he=`${fe}-${ue}`,{inKeyframes:oe,outKeyframes:Se}=me[ue];return[(0,ot.R)(he,oe,Se,le.motionDurationMid),{[`
|
|
|
${he}-enter,
|
|
|
${he}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:le.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${he}-leave`]:{animationTimingFunction:le.motionEaseInQuint}}]}},49867:function(xn,Zt,ve){"use strict";ve.d(Zt,{N:function(){return Ue}});const Ue=ot=>({color:ot.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ot.motionDurationSlow}`,"&:focus, &:hover":{color:ot.colorLinkHover},"&:active":{color:ot.colorLinkActive}})},47897:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ze}});var Ue=ve(3407),ot=ve(94184),x=ve.n(ot);function ke(){return ke=Object.assign?Object.assign.bind():function($e){for(var Ee=1;Ee<arguments.length;Ee++){var Re=arguments[Ee];for(var Fe in Re)Object.prototype.hasOwnProperty.call(Re,Fe)&&($e[Fe]=Re[Fe])}return $e},ke.apply(this,arguments)}function pe($e){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ee){return typeof Ee}:function(Ee){return Ee&&typeof Symbol=="function"&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee},pe($e)}function ne($e,Ee){if(pe($e)!=="object"||$e===null)return $e;var Re=$e[Symbol.toPrimitive];if(Re!==void 0){var Fe=Re.call($e,Ee||"default");if(pe(Fe)!=="object")return Fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)($e)}function z($e){var Ee=ne($e,"string");return pe(Ee)==="symbol"?Ee:String(Ee)}function ae($e,Ee,Re){return Ee=z(Ee),Ee in $e?Object.defineProperty($e,Ee,{value:Re,enumerable:!0,configurable:!0,writable:!0}):$e[Ee]=Re,$e}function re($e){if(Array.isArray($e))return $e}function se($e,Ee){var Re=$e==null?null:typeof Symbol!="undefined"&&$e[Symbol.iterator]||$e["@@iterator"];if(Re!=null){var Fe,Ge,it,gt,Kt=[],kt=!0,St=!1;try{if(it=(Re=Re.call($e)).next,Ee===0){if(Object(Re)!==Re)return;kt=!1}else for(;!(kt=(Fe=it.call(Re)).done)&&(Kt.push(Fe.value),Kt.length!==Ee);kt=!0);}catch(Wt){St=!0,Ge=Wt}finally{try{if(!kt&&Re.return!=null&&(gt=Re.return(),Object(gt)!==gt))return}finally{if(St)throw Ge}}return Kt}}function me($e,Ee){(Ee==null||Ee>$e.length)&&(Ee=$e.length);for(var Re=0,Fe=new Array(Ee);Re<Ee;Re++)Fe[Re]=$e[Re];return Fe}function ie($e,Ee){if($e){if(typeof $e=="string")return me($e,Ee);var Re=Object.prototype.toString.call($e).slice(8,-1);if(Re==="Object"&&$e.constructor&&(Re=$e.constructor.name),Re==="Map"||Re==="Set")return Array.from($e);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return me($e,Ee)}}function le(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue($e,Ee){return re($e)||se($e,Ee)||ie($e,Ee)||le()}function fe($e,Ee){if($e==null)return{};var Re={},Fe=Object.keys($e),Ge,it;for(it=0;it<Fe.length;it++)Ge=Fe[it],!(Ee.indexOf(Ge)>=0)&&(Re[Ge]=$e[Ge]);return Re}function he($e,Ee){if($e==null)return{};var Re=fe($e,Ee),Fe,Ge;if(Object.getOwnPropertySymbols){var it=Object.getOwnPropertySymbols($e);for(Ge=0;Ge<it.length;Ge++)Fe=it[Ge],!(Ee.indexOf(Fe)>=0)&&Object.prototype.propertyIsEnumerable.call($e,Fe)&&(Re[Fe]=$e[Fe])}return Re}var oe=ve(67294);function Se($e){if(Array.isArray($e))return $e}function Ce($e,Ee){var Re=$e==null?null:typeof Symbol!="undefined"&&$e[Symbol.iterator]||$e["@@iterator"];if(Re!=null){var Fe,Ge,it,gt,Kt=[],kt=!0,St=!1;try{if(it=(Re=Re.call($e)).next,Ee===0){if(Object(Re)!==Re)return;kt=!1}else for(;!(kt=(Fe=it.call(Re)).done)&&(Kt.push(Fe.value),Kt.length!==Ee);kt=!0);}catch(Wt){St=!0,Ge=Wt}finally{try{if(!kt&&Re.return!=null&&(gt=Re.return(),Object(gt)!==gt))return}finally{if(St)throw Ge}}return Kt}}function ye($e,Ee){(Ee==null||Ee>$e.length)&&(Ee=$e.length);for(var Re=0,Fe=new Array(Ee);Re<Ee;Re++)Fe[Re]=$e[Re];return Fe}function _e($e,Ee){if($e){if(typeof $e=="string")return ye($e,Ee);var Re=Object.prototype.toString.call($e).slice(8,-1);if(Re==="Object"&&$e.constructor&&(Re=$e.constructor.name),Re==="Map"||Re==="Set")return Array.from($e);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return ye($e,Ee)}}function Me(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we($e,Ee){return Se($e)||Ce($e,Ee)||_e($e,Ee)||Me()}function Ne($e){var Ee=oe.useRef();Ee.current=$e;var Re=oe.useCallback(function(){for(var Fe,Ge=arguments.length,it=new Array(Ge),gt=0;gt<Ge;gt++)it[gt]=arguments[gt];return(Fe=Ee.current)===null||Fe===void 0?void 0:Fe.call.apply(Fe,[Ee].concat(it))},[]);return Re}function Ae(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var De=Ae()?oe.useLayoutEffect:oe.useEffect,Ie=function(Ee,Re){var Fe=oe.useRef(!0);De(function(){return Ee(Fe.current)},Re),De(function(){return Fe.current=!1,function(){Fe.current=!0}},[])},Pe=function(Ee,Re){Ie(function(Fe){if(!Fe)return Ee()},Re)},Le=null;function We($e){var Ee=oe.useRef(!1),Re=oe.useState($e),Fe=we(Re,2),Ge=Fe[0],it=Fe[1];oe.useEffect(function(){return Ee.current=!1,function(){Ee.current=!0}},[]);function gt(Kt,kt){kt&&Ee.current||it(Kt)}return[Ge,gt]}function Be($e){return $e!==void 0}function He($e,Ee){var Re=Ee||{},Fe=Re.defaultValue,Ge=Re.value,it=Re.onChange,gt=Re.postState,Kt=We(function(){return Be(Ge)?Ge:Be(Fe)?typeof Fe=="function"?Fe():Fe:typeof $e=="function"?$e():$e}),kt=we(Kt,2),St=kt[0],Wt=kt[1],jt=Ge!==void 0?Ge:St,Vt=gt?gt(jt):jt,_t=Ne(it),sn=We([jt]),Dt=we(sn,2),xt=Dt[0],en=Dt[1];Pe(function(){var fn=xt[0];St!==fn&&_t(St,fn)},[xt]),Pe(function(){Be(Ge)||Wt(Ge)},[Ge]);var an=Ne(function(fn,Tn){Wt(fn,Tn),en([jt],Tn)});return[Vt,an]}var Ye={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ee){var Re=Ee.keyCode;if(Ee.altKey&&!Ee.ctrlKey||Ee.metaKey||Re>=Ye.F1&&Re<=Ye.F12)return!1;switch(Re){case Ye.ALT:case Ye.CAPS_LOCK:case Ye.CONTEXT_MENU:case Ye.CTRL:case Ye.DOWN:case Ye.END:case Ye.ESC:case Ye.HOME:case Ye.INSERT:case Ye.LEFT:case Ye.MAC_FF_META:case Ye.META:case Ye.NUMLOCK:case Ye.NUM_CENTER:case Ye.PAGE_DOWN:case Ye.PAGE_UP:case Ye.PAUSE:case Ye.PRINT_SCREEN:case Ye.RIGHT:case Ye.SHIFT:case Ye.UP:case Ye.WIN_KEY:case Ye.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ee){if(Ee>=Ye.ZERO&&Ee<=Ye.NINE||Ee>=Ye.NUM_ZERO&&Ee<=Ye.NUM_MULTIPLY||Ee>=Ye.A&&Ee<=Ye.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ee===0)return!0;switch(Ee){case Ye.SPACE:case Ye.QUESTION_MARK:case Ye.NUM_PLUS:case Ye.NUM_MINUS:case Ye.NUM_PERIOD:case Ye.NUM_DIVISION:case Ye.SEMICOLON:case Ye.DASH:case Ye.EQUALS:case Ye.COMMA:case Ye.PERIOD:case Ye.SLASH:case Ye.APOSTROPHE:case Ye.SINGLE_QUOTE:case Ye.OPEN_SQUARE_BRACKET:case Ye.BACKSLASH:case Ye.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},et=Ye,st=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],yt=oe.forwardRef(function($e,Ee){var Re,Fe=$e.prefixCls,Ge=Fe===void 0?"rc-switch":Fe,it=$e.className,gt=$e.checked,Kt=$e.defaultChecked,kt=$e.disabled,St=$e.loadingIcon,Wt=$e.checkedChildren,jt=$e.unCheckedChildren,Vt=$e.onClick,_t=$e.onChange,sn=$e.onKeyDown,Dt=he($e,st),xt=He(!1,{value:gt,defaultValue:Kt}),en=ue(xt,2),an=en[0],fn=en[1];function Tn(Dr,dr){var zr=an;return kt||(zr=Dr,fn(zr),_t==null||_t(zr,dr)),zr}function ar(Dr){Dr.which===et.LEFT?Tn(!1,Dr):Dr.which===et.RIGHT&&Tn(!0,Dr),sn==null||sn(Dr)}function pr(Dr){var dr=Tn(!an,Dr);Vt==null||Vt(dr,Dr)}var Ar=x()(Ge,it,(Re={},ae(Re,"".concat(Ge,"-checked"),an),ae(Re,"".concat(Ge,"-disabled"),kt),Re));return oe.createElement("button",ke({},Dt,{type:"button",role:"switch","aria-checked":an,disabled:kt,className:Ar,ref:Ee,onKeyDown:ar,onClick:pr}),St,oe.createElement("span",{className:"".concat(Ge,"-inner")},oe.createElement("span",{className:"".concat(Ge,"-inner-checked")},Wt),oe.createElement("span",{className:"".concat(Ge,"-inner-unchecked")},jt)))});yt.displayName="Switch";var Ve=yt,Qe=ve(45353),pt=ve(53124),mt=ve(98866),ft=ve(98675),nt=ve(84780),tt=ve(14747),rt=ve(67968),Et=ve(45503);const bt=$e=>{const{componentCls:Ee,trackHeightSM:Re,trackPadding:Fe,trackMinWidthSM:Ge,innerMinMarginSM:it,innerMaxMarginSM:gt,handleSizeSM:Kt}=$e,kt=`${Ee}-inner`;return{[Ee]:{[`&${Ee}-small`]:{minWidth:Ge,height:Re,lineHeight:`${Re}px`,[`${Ee}-inner`]:{paddingInlineStart:gt,paddingInlineEnd:it,[`${kt}-checked`]:{marginInlineStart:`calc(-100% + ${Kt+Fe*2}px - ${gt*2}px)`,marginInlineEnd:`calc(100% - ${Kt+Fe*2}px + ${gt*2}px)`},[`${kt}-unchecked`]:{marginTop:-Re,marginInlineStart:0,marginInlineEnd:0}},[`${Ee}-handle`]:{width:Kt,height:Kt},[`${Ee}-loading-icon`]:{top:(Kt-$e.switchLoadingIconSize)/2,fontSize:$e.switchLoadingIconSize},[`&${Ee}-checked`]:{[`${Ee}-inner`]:{paddingInlineStart:it,paddingInlineEnd:gt,[`${kt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${kt}-unchecked`]:{marginInlineStart:`calc(100% - ${Kt+Fe*2}px + ${gt*2}px)`,marginInlineEnd:`calc(-100% + ${Kt+Fe*2}px - ${gt*2}px)`}},[`${Ee}-handle`]:{insetInlineStart:`calc(100% - ${Kt+Fe}px)`}},[`&:not(${Ee}-disabled):active`]:{[`&:not(${Ee}-checked) ${kt}`]:{[`${kt}-unchecked`]:{marginInlineStart:$e.marginXXS/2,marginInlineEnd:-$e.marginXXS/2}},[`&${Ee}-checked ${kt}`]:{[`${kt}-checked`]:{marginInlineStart:-$e.marginXXS/2,marginInlineEnd:$e.marginXXS/2}}}}}}},Pt=$e=>{const{componentCls:Ee,handleSize:Re}=$e;return{[Ee]:{[`${Ee}-loading-icon${$e.iconCls}`]:{position:"relative",top:(Re-$e.fontSize)/2,color:$e.switchLoadingIconColor,verticalAlign:"top"},[`&${Ee}-checked ${Ee}-loading-icon`]:{color:$e.switchColor}}}},Lt=$e=>{const{componentCls:Ee,motion:Re,trackPadding:Fe,handleBg:Ge,handleShadow:it,handleSize:gt}=$e,Kt=`${Ee}-handle`;return{[Ee]:{[Kt]:{position:"absolute",top:Fe,insetInlineStart:Fe,width:gt,height:gt,transition:`all ${$e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ge,borderRadius:gt/2,boxShadow:it,transition:`all ${$e.switchDuration} ease-in-out`,content:'""'}},[`&${Ee}-checked ${Kt}`]:{insetInlineStart:`calc(100% - ${gt+Fe}px)`},[`&:not(${Ee}-disabled):active`]:Re?{[`${Kt}::before`]:{insetInlineEnd:$e.switchHandleActiveInset,insetInlineStart:0},[`&${Ee}-checked ${Kt}::before`]:{insetInlineEnd:0,insetInlineStart:$e.switchHandleActiveInset}}:{}}}},dt=$e=>{const{componentCls:Ee,trackHeight:Re,trackPadding:Fe,innerMinMargin:Ge,innerMaxMargin:it,handleSize:gt}=$e,Kt=`${Ee}-inner`;return{[Ee]:{[Kt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:it,paddingInlineEnd:Ge,transition:`padding-inline-start ${$e.switchDuration} ease-in-out, padding-inline-end ${$e.switchDuration} ease-in-out`,[`${Kt}-checked, ${Kt}-unchecked`]:{display:"block",color:$e.colorTextLightSolid,fontSize:$e.fontSizeSM,transition:`margin-inline-start ${$e.switchDuration} ease-in-out, margin-inline-end ${$e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Kt}-checked`]:{marginInlineStart:`calc(-100% + ${gt+Fe*2}px - ${it*2}px)`,marginInlineEnd:`calc(100% - ${gt+Fe*2}px + ${it*2}px)`},[`${Kt}-unchecked`]:{marginTop:-Re,marginInlineStart:0,marginInlineEnd:0}},[`&${Ee}-checked ${Kt}`]:{paddingInlineStart:Ge,paddingInlineEnd:it,[`${Kt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Kt}-unchecked`]:{marginInlineStart:`calc(100% - ${gt+Fe*2}px + ${it*2}px)`,marginInlineEnd:`calc(-100% + ${gt+Fe*2}px - ${it*2}px)`}},[`&:not(${Ee}-disabled):active`]:{[`&:not(${Ee}-checked) ${Kt}`]:{[`${Kt}-unchecked`]:{marginInlineStart:Fe*2,marginInlineEnd:-Fe*2}},[`&${Ee}-checked ${Kt}`]:{[`${Kt}-checked`]:{marginInlineStart:-Fe*2,marginInlineEnd:Fe*2}}}}}},Ze=$e=>{const{componentCls:Ee,trackHeight:Re,trackMinWidth:Fe}=$e;return{[Ee]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,tt.Wf)($e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Fe,height:Re,lineHeight:`${Re}px`,verticalAlign:"middle",background:$e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${$e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ee}-disabled)`]:{background:$e.colorTextTertiary}}),(0,tt.Qy)($e)),{[`&${Ee}-checked`]:{background:$e.switchColor,[`&:hover:not(${Ee}-disabled)`]:{background:$e.colorPrimaryHover}},[`&${Ee}-loading, &${Ee}-disabled`]:{cursor:"not-allowed",opacity:$e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ee}-rtl`]:{direction:"rtl"}})}};var Ke=(0,rt.Z)("Switch",$e=>{const Ee=(0,Et.TS)($e,{switchDuration:$e.motionDurationMid,switchColor:$e.colorPrimary,switchDisabledOpacity:$e.opacityLoading,switchLoadingIconSize:$e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${$e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ze(Ee),dt(Ee),Lt(Ee),Pt(Ee),bt(Ee)]},$e=>{const{fontSize:Ee,lineHeight:Re,controlHeight:Fe,colorWhite:Ge}=$e,it=Ee*Re,gt=Fe/2,Kt=2,kt=it-Kt*2,St=gt-Kt*2;return{trackHeight:it,trackHeightSM:gt,trackMinWidth:kt*2+Kt*4,trackMinWidthSM:St*2+Kt*2,trackPadding:Kt,handleBg:Ge,handleSize:kt,handleSizeSM:St,handleShadow:`0 2px 4px 0 ${new nt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:kt/2,innerMaxMargin:kt+Kt+Kt*2,innerMinMarginSM:St/2,innerMaxMarginSM:St+Kt+Kt*2}}),de=function($e,Ee){var Re={};for(var Fe in $e)Object.prototype.hasOwnProperty.call($e,Fe)&&Ee.indexOf(Fe)<0&&(Re[Fe]=$e[Fe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Fe=Object.getOwnPropertySymbols($e);Ge<Fe.length;Ge++)Ee.indexOf(Fe[Ge])<0&&Object.prototype.propertyIsEnumerable.call($e,Fe[Ge])&&(Re[Fe[Ge]]=$e[Fe[Ge]]);return Re};const xe=oe.forwardRef(($e,Ee)=>{const{prefixCls:Re,size:Fe,disabled:Ge,loading:it,className:gt,rootClassName:Kt,style:kt}=$e,St=de($e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Wt,direction:jt,switch:Vt}=oe.useContext(pt.E_),_t=oe.useContext(mt.Z),sn=(Ge!=null?Ge:_t)||it,Dt=Wt("switch",Re),xt=oe.createElement("div",{className:`${Dt}-handle`},it&&oe.createElement(Ue.Z,{className:`${Dt}-loading-icon`})),[en,an]=Ke(Dt),fn=(0,ft.Z)(Fe),Tn=x()(Vt==null?void 0:Vt.className,{[`${Dt}-small`]:fn==="small",[`${Dt}-loading`]:it,[`${Dt}-rtl`]:jt==="rtl"},gt,Kt,an),ar=Object.assign(Object.assign({},Vt==null?void 0:Vt.style),kt);return en(oe.createElement(Qe.Z,{component:"Switch"},oe.createElement(Ve,Object.assign({},St,{prefixCls:Dt,className:Tn,style:ar,disabled:sn,ref:Ee,loadingIcon:xt}))))});xe.__ANT_SWITCH=!0;var ze=xe},9430:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return Du}});var Ue={},ot="rc-table-internal-hook",x=ve(97685),ke=ve(66680),pe=ve(8410),ne=ve(91881),z=ve(67294),ae=ve(73935);function re(lt){var ht=z.createContext(void 0),Nt=function(qt){var ln=qt.value,Dn=qt.children,$n=z.useRef(ln);$n.current=ln;var Rn=z.useState(function(){return{getValue:function(){return $n.current},listeners:new Set}}),tr=(0,x.Z)(Rn,1),mr=tr[0];return(0,pe.Z)(function(){(0,ae.unstable_batchedUpdates)(function(){mr.listeners.forEach(function(En){En(ln)})})},[ln]),z.createElement(ht.Provider,{value:mr},Dn)};return{Context:ht,Provider:Nt,defaultValue:lt}}function se(lt,ht){var Nt=(0,ke.Z)(typeof ht=="function"?ht:function(En){if(ht===void 0)return En;if(!Array.isArray(ht))return En[ht];var Lr={};return ht.forEach(function(jr){Lr[jr]=En[jr]}),Lr}),Ht=z.useContext(lt==null?void 0:lt.Context),qt=Ht||{},ln=qt.listeners,Dn=qt.getValue,$n=z.useRef();$n.current=Nt(Ht?Dn():lt==null?void 0:lt.defaultValue);var Rn=z.useState({}),tr=(0,x.Z)(Rn,2),mr=tr[1];return(0,pe.Z)(function(){if(!Ht)return;function En(Lr){var jr=Nt(Lr);(0,ne.Z)($n.current,jr,!0)||mr({})}return ln.add(En),function(){ln.delete(En)}},[Ht]),$n.current}var me=ve(87462),ie=ve(42550);function le(){var lt=z.createContext(null);function ht(){return z.useContext(lt)}function Nt(qt,ln){var Dn=(0,ie.Yr)(qt),$n=function(tr,mr){var En=Dn?{ref:mr}:{},Lr=z.useRef(0),jr=z.useRef(tr),$r=ht();return $r!==null?z.createElement(qt,(0,me.Z)({},tr,En)):((!ln||ln(jr.current,tr))&&(Lr.current+=1),jr.current=tr,z.createElement(lt.Provider,{value:Lr.current},z.createElement(qt,(0,me.Z)({},tr,En))))};return Dn?z.forwardRef($n):$n}function Ht(qt,ln){var Dn=(0,ie.Yr)(qt),$n=function(tr,mr){var En=Dn?{ref:mr}:{};return ht(),z.createElement(qt,(0,me.Z)({},tr,En))};return Dn?z.memo(z.forwardRef($n),ln):z.memo($n,ln)}return{makeImmutable:Nt,responseImmutable:Ht,useImmutableMark:ht}}var ue=le(),fe=ue.makeImmutable,he=ue.responseImmutable,oe=ue.useImmutableMark,Se=le(),Ce=Se.makeImmutable,ye=Se.responseImmutable,_e=Se.useImmutableMark,Me=re(),we=Me;function Ne(lt,ht){var Nt=z.useRef(0);Nt.current+=1;var Ht=z.useRef(lt),qt=[];Object.keys(lt||{}).map(function(Dn){var $n;(lt==null?void 0:lt[Dn])!==(($n=Ht.current)===null||$n===void 0?void 0:$n[Dn])&&qt.push(Dn)}),Ht.current=lt;var ln=z.useRef([]);return qt.length&&(ln.current=qt),z.useDebugValue(Nt.current),z.useDebugValue(ln.current.join(", ")),ht&&console.log("".concat(ht,":"),Nt.current,ln.current),Nt.current}var Ae=null,De=z.memo(function(){var lt=Ne();return z.createElement("h1",null,"Render Times: ",lt)});De.displayName="RenderBlock";var Ie=ve(71002),Pe=ve(1413),Le=ve(4942),We=ve(94184),Be=ve.n(We);function He(lt,ht,Nt){var Ht=z.useRef({});return(!("value"in Ht.current)||Nt(Ht.current.condition,ht))&&(Ht.current.value=lt(),Ht.current.condition=ht),Ht.current.value}var Ye={},et=[],st=function(ht){et.push(ht)};function yt(lt,ht){if(0)var Nt}function Ve(lt,ht){if(0)var Nt}function Qe(){Ye={}}function pt(lt,ht,Nt){!ht&&!Ye[Nt]&&(lt(!1,Nt),Ye[Nt]=!0)}function mt(lt,ht){pt(yt,lt,ht)}function ft(lt,ht){pt(Ve,lt,ht)}mt.preMessage=st,mt.resetWarned=Qe,mt.noteOnce=ft;var nt=mt;function tt(lt,ht){var Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ht=new Set;function qt(ln,Dn){var $n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Rn=Ht.has(ln);if(nt(!Rn,"Warning: There may be circular references"),Rn)return!1;if(ln===Dn)return!0;if(Nt&&$n>1)return!1;Ht.add(ln);var tr=$n+1;if(Array.isArray(ln)){if(!Array.isArray(Dn)||ln.length!==Dn.length)return!1;for(var mr=0;mr<ln.length;mr++)if(!qt(ln[mr],Dn[mr],tr))return!1;return!0}if(ln&&Dn&&(0,Ie.Z)(ln)==="object"&&(0,Ie.Z)(Dn)==="object"){var En=Object.keys(ln);return En.length!==Object.keys(Dn).length?!1:En.every(function(Lr){return qt(ln[Lr],Dn[Lr],tr)})}return!1}return qt(lt,ht)}var rt=tt;function Et(lt,ht){for(var Nt=lt,Ht=0;Ht<ht.length;Ht+=1){if(Nt==null)return;Nt=Nt[ht[Ht]]}return Nt}var bt=z.createContext({renderWithProps:!1}),Pt=bt,Lt="RC_TABLE_KEY";function dt(lt){return lt==null?[]:Array.isArray(lt)?lt:[lt]}function Ze(lt){var ht=[],Nt={};return lt.forEach(function(Ht){for(var qt=Ht||{},ln=qt.key,Dn=qt.dataIndex,$n=ln||dt(Dn).join("-")||Lt;Nt[$n];)$n="".concat($n,"_next");Nt[$n]=!0,ht.push($n)}),ht}function Ke(lt){return lt!=null}function de(lt){return lt&&(0,Ie.Z)(lt)==="object"&&!Array.isArray(lt)&&!z.isValidElement(lt)}function xe(lt,ht,Nt,Ht,qt,ln){var Dn=z.useContext(Pt),$n=_e(),Rn=He(function(){if(Ke(Ht))return[Ht];var tr=ht==null||ht===""?[]:Array.isArray(ht)?ht:[ht],mr=Et(lt,tr),En=mr,Lr=void 0;if(qt){var jr=qt(mr,lt,Nt);de(jr)?(En=jr.children,Lr=jr.props,Dn.renderWithProps=!0):En=jr}return[En,Lr]},[$n,lt,Ht,ht,qt,Nt],function(tr,mr){if(ln){var En=(0,x.Z)(tr,2),Lr=En[1],jr=(0,x.Z)(mr,2),$r=jr[1];return ln($r,Lr)}return Dn.renderWithProps?!0:!rt(tr,mr,!0)});return Rn}function ze(lt,ht,Nt,Ht){var qt=lt+ht-1;return lt<=Ht&&qt>=Nt}function $e(lt,ht){return se(we,function(Nt){var Ht=ze(lt,ht||1,Nt.hoverStartRow,Nt.hoverEndRow);return[Ht,Nt.onHover]})}var Ee=function(ht){var Nt=ht.ellipsis,Ht=ht.rowType,qt=ht.children,ln,Dn=Nt===!0?{showTitle:!0}:Nt;return Dn&&(Dn.showTitle||Ht==="header")&&(typeof qt=="string"||typeof qt=="number"?ln=qt.toString():z.isValidElement(qt)&&typeof qt.props.children=="string"&&(ln=qt.props.children)),ln};function Re(lt){var ht,Nt,Ht,qt,ln,Dn,$n,Rn,tr=lt.component,mr=lt.children,En=lt.ellipsis,Lr=lt.scope,jr=lt.prefixCls,$r=lt.className,Yr=lt.align,Kr=lt.record,ci=lt.render,ii=lt.dataIndex,Si=lt.renderIndex,Yi=lt.shouldCellUpdate,Ui=lt.index,Gi=lt.rowType,xa=lt.colSpan,Ua=lt.rowSpan,ji=lt.fixLeft,Hi=lt.fixRight,Fi=lt.firstFixLeft,di=lt.lastFixLeft,Zi=lt.firstFixRight,wa=lt.lastFixRight,Qa=lt.appendNode,ja=lt.additionalProps,Sa=ja===void 0?{}:ja,io=lt.isSticky,qa="".concat(jr,"-cell"),zo=se(we,["supportSticky","allColumnsFixedLeft"]),ao=zo.supportSticky,es=zo.allColumnsFixedLeft,ts=xe(Kr,ii,Si,mr,ci,Yi),Ha=(0,x.Z)(ts,2),Ts=Ha[0],Io=Ha[1],Uo={},No=typeof ji=="number"&&ao,$a=typeof Hi=="number"&&ao;No&&(Uo.position="sticky",Uo.left=ji),$a&&(Uo.position="sticky",Uo.right=Hi);var Ti=(ht=(Nt=(Ht=Io==null?void 0:Io.colSpan)!==null&&Ht!==void 0?Ht:Sa.colSpan)!==null&&Nt!==void 0?Nt:xa)!==null&&ht!==void 0?ht:1,da=(qt=(ln=(Dn=Io==null?void 0:Io.rowSpan)!==null&&Dn!==void 0?Dn:Sa.rowSpan)!==null&&ln!==void 0?ln:Ua)!==null&&qt!==void 0?qt:1,Ca=$e(Ui,da),Wi=(0,x.Z)(Ca,2),Do=Wi[0],Mi=Wi[1],Ka=function(Cs){var hl;Kr&&Mi(Ui,Ui+da-1),Sa==null||(hl=Sa.onMouseEnter)===null||hl===void 0||hl.call(Sa,Cs)},To=function(Cs){var hl;Kr&&Mi(-1,-1),Sa==null||(hl=Sa.onMouseLeave)===null||hl===void 0||hl.call(Sa,Cs)};if(Ti===0||da===0)return null;var wo=($n=Sa.title)!==null&&$n!==void 0?$n:Ee({rowType:Gi,ellipsis:En,children:Ts}),sl=Be()(qa,$r,(Rn={},(0,Le.Z)(Rn,"".concat(qa,"-fix-left"),No&&ao),(0,Le.Z)(Rn,"".concat(qa,"-fix-left-first"),Fi&&ao),(0,Le.Z)(Rn,"".concat(qa,"-fix-left-last"),di&&ao),(0,Le.Z)(Rn,"".concat(qa,"-fix-left-all"),di&&es&&ao),(0,Le.Z)(Rn,"".concat(qa,"-fix-right"),$a&&ao),(0,Le.Z)(Rn,"".concat(qa,"-fix-right-first"),Zi&&ao),(0,Le.Z)(Rn,"".concat(qa,"-fix-right-last"),wa&&ao),(0,Le.Z)(Rn,"".concat(qa,"-ellipsis"),En),(0,Le.Z)(Rn,"".concat(qa,"-with-append"),Qa),(0,Le.Z)(Rn,"".concat(qa,"-fix-sticky"),(No||$a)&&io&&ao),(0,Le.Z)(Rn,"".concat(qa,"-row-hover"),!Io&&Do),Rn),Sa.className,Io==null?void 0:Io.className),As={};Yr&&(As.textAlign=Yr);var Ml=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Uo),Sa.style),As),Io==null?void 0:Io.style),Hr=Ts;return(0,Ie.Z)(Hr)==="object"&&!Array.isArray(Hr)&&!z.isValidElement(Hr)&&(Hr=null),En&&(di||Zi)&&(Hr=z.createElement("span",{className:"".concat(qa,"-content")},Hr)),z.createElement(tr,(0,me.Z)({},Io,Sa,{className:sl,style:Ml,title:wo,scope:Lr,onMouseEnter:Ka,onMouseLeave:To,colSpan:Ti!==1?Ti:null,rowSpan:da!==1?da:null}),Qa,Hr)}var Fe=z.memo(Re);function Ge(lt,ht,Nt,Ht,qt,ln){var Dn=Nt[lt]||{},$n=Nt[ht]||{},Rn,tr;Dn.fixed==="left"?Rn=Ht.left[qt==="rtl"?ht:lt]:$n.fixed==="right"&&(tr=Ht.right[qt==="rtl"?lt:ht]);var mr=!1,En=!1,Lr=!1,jr=!1,$r=Nt[ht+1],Yr=Nt[lt-1],Kr=!(ln!=null&&ln.children);if(qt==="rtl"){if(Rn!==void 0){var ci=Yr&&Yr.fixed==="left";jr=!ci&&Kr}else if(tr!==void 0){var ii=$r&&$r.fixed==="right";Lr=!ii&&Kr}}else if(Rn!==void 0){var Si=$r&&$r.fixed==="left";mr=!Si&&Kr}else if(tr!==void 0){var Yi=Yr&&Yr.fixed==="right";En=!Yi&&Kr}return{fixLeft:Rn,fixRight:tr,lastFixLeft:mr,firstFixRight:En,lastFixRight:Lr,firstFixLeft:jr,isSticky:Ht.isSticky}}var it=z.createContext({}),gt=it;function Kt(lt){var ht=lt.className,Nt=lt.index,Ht=lt.children,qt=lt.colSpan,ln=qt===void 0?1:qt,Dn=lt.rowSpan,$n=lt.align,Rn=se(we,["prefixCls","direction"]),tr=Rn.prefixCls,mr=Rn.direction,En=z.useContext(gt),Lr=En.scrollColumnIndex,jr=En.stickyOffsets,$r=En.flattenColumns,Yr=En.columns,Kr=Nt+ln-1,ci=Kr+1===Lr?ln+1:ln,ii=Ge(Nt,Nt+ci-1,$r,jr,mr,Yr==null?void 0:Yr[Nt]);return z.createElement(Fe,(0,me.Z)({className:ht,index:Nt,component:"td",prefixCls:tr,record:null,dataIndex:null,align:$n,colSpan:ci,rowSpan:Dn,render:function(){return Ht}},ii))}var kt=ve(45987),St=["children"];function Wt(lt){var ht=lt.children,Nt=(0,kt.Z)(lt,St);return z.createElement("tr",Nt,ht)}function jt(lt){var ht=lt.children;return ht}jt.Row=Wt,jt.Cell=Kt;var Vt=jt;function _t(lt){var ht=lt.children,Nt=lt.stickyOffsets,Ht=lt.flattenColumns,qt=lt.columns,ln=se(we,"prefixCls"),Dn=Ht.length-1,$n=Ht[Dn],Rn=z.useMemo(function(){return{stickyOffsets:Nt,flattenColumns:Ht,scrollColumnIndex:$n!=null&&$n.scrollbar?Dn:null,columns:qt}},[$n,Ht,Dn,Nt,qt]);return z.createElement(gt.Provider,{value:Rn},z.createElement("tfoot",{className:"".concat(ln,"-summary")},ht))}var sn=ye(_t),Dt=Vt;function xt(lt){var ht=z.useRef();ht.current=lt;var Nt=z.useCallback(function(){for(var Ht,qt=arguments.length,ln=new Array(qt),Dn=0;Dn<qt;Dn++)ln[Dn]=arguments[Dn];return(Ht=ht.current)===null||Ht===void 0?void 0:Ht.call.apply(Ht,[ht].concat(ln))},[]);return Nt}function en(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var an=en()?z.useLayoutEffect:z.useEffect,fn=function(ht,Nt){var Ht=React.useRef(!0);an(function(){return ht(Ht.current)},Nt),an(function(){return Ht.current=!1,function(){Ht.current=!0}},[])},Tn=function(ht,Nt){fn(function(Ht){if(!Ht)return ht()},Nt)},ar=null;function pr(lt){var ht=React.useRef(!1),Nt=React.useState(lt),Ht=_slicedToArray(Nt,2),qt=Ht[0],ln=Ht[1];React.useEffect(function(){return ht.current=!1,function(){ht.current=!0}},[]);function Dn($n,Rn){Rn&&ht.current||ln($n)}return[qt,Dn]}function Ar(lt){return lt!==void 0}function Dr(lt,ht){var Nt=ht||{},Ht=Nt.defaultValue,qt=Nt.value,ln=Nt.onChange,Dn=Nt.postState,$n=useState(function(){return Ar(qt)?qt:Ar(Ht)?typeof Ht=="function"?Ht():Ht:typeof lt=="function"?lt():lt}),Rn=_slicedToArray($n,2),tr=Rn[0],mr=Rn[1],En=qt!==void 0?qt:tr,Lr=Dn?Dn(En):En,jr=useEvent(ln),$r=useState([En]),Yr=_slicedToArray($r,2),Kr=Yr[0],ci=Yr[1];useLayoutUpdateEffect(function(){var Si=Kr[0];tr!==Si&&jr(tr,Si)},[Kr]),useLayoutUpdateEffect(function(){Ar(qt)||mr(qt)},[qt]);var ii=useEvent(function(Si,Yi){mr(Si,Yi),ci([En],Yi)});return[Lr,ii]}var dr=ve(35110);function zr(lt,ht){typeof lt=="function"?lt(ht):(0,Ie.Z)(lt)==="object"&<&&"current"in lt&&(lt.current=ht)}function ai(){for(var lt=arguments.length,ht=new Array(lt),Nt=0;Nt<lt;Nt++)ht[Nt]=arguments[Nt];var Ht=ht.filter(function(qt){return qt});return Ht.length<=1?Ht[0]:function(qt){ht.forEach(function(ln){zr(ln,qt)})}}function ki(){for(var lt=arguments.length,ht=new Array(lt),Nt=0;Nt<lt;Nt++)ht[Nt]=arguments[Nt];return useMemo(function(){return ai.apply(void 0,ht)},ht,function(Ht,qt){return Ht.length!==qt.length||Ht.every(function(ln,Dn){return ln!==qt[Dn]})})}function Ni(lt){var ht,Nt,Ht=isMemo(lt)?lt.type.type:lt.type;return!(typeof Ht=="function"&&!((ht=Ht.prototype)!==null&&ht!==void 0&&ht.render)||typeof lt=="function"&&!((Nt=lt.prototype)!==null&&Nt!==void 0&&Nt.render))}function xi(lt){return!isValidElement(lt)||isFragment(lt)?!1:Ni(lt)}function cn(lt,ht,Nt,Ht){if(!ht.length)return Nt;var qt=_toArray(ht),ln=qt[0],Dn=qt.slice(1),$n;return!lt&&typeof ln=="number"?$n=[]:Array.isArray(lt)?$n=_toConsumableArray(lt):$n=_objectSpread({},lt),Ht&&Nt===void 0&&Dn.length===1?delete $n[ln][Dn[0]]:$n[ln]=cn($n[ln],Dn,Nt,Ht),$n}function ir(lt,ht,Nt){var Ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ht.length&&Ht&&Nt===void 0&&!get(lt,ht.slice(0,-1))?lt:cn(lt,ht,Nt,Ht)}function sr(lt){return _typeof(lt)==="object"&<!==null&&Object.getPrototypeOf(lt)===Object.prototype}function Yn(lt){return Array.isArray(lt)?[]:{}}var Rr=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Nn(){for(var lt=arguments.length,ht=new Array(lt),Nt=0;Nt<lt;Nt++)ht[Nt]=arguments[Nt];var Ht=Yn(ht[0]);return ht.forEach(function(qt){function ln(Dn,$n){var Rn=new Set($n),tr=get(qt,Dn),mr=Array.isArray(tr);if(mr||sr(tr)){if(!Rn.has(tr)){Rn.add(tr);var En=get(Ht,Dn);mr?Ht=ir(Ht,Dn,[]):(!En||_typeof(En)!=="object")&&(Ht=ir(Ht,Dn,Yn(tr))),Rr(tr).forEach(function(Lr){ln([].concat(_toConsumableArray(Dn),[Lr]),Rn)})}}else Ht=ir(Ht,Dn,tr)}ln([])}),Ht}var Hn=ve(48555),jn=function(lt){if(!lt)return!1;if(lt instanceof Element){if(lt.offsetParent)return!0;if(lt.getBBox){var ht=lt.getBBox(),Nt=ht.width,Ht=ht.height;if(Nt||Ht)return!0}if(lt.getBoundingClientRect){var qt=lt.getBoundingClientRect(),ln=qt.width,Dn=qt.height;if(ln||Dn)return!0}}return!1},Gt=function(ht){if(en()&&window.document.documentElement){var Nt=Array.isArray(ht)?ht:[ht],Ht=window.document.documentElement;return Nt.some(function(qt){return qt in Ht.style})}return!1},Xt=function(ht,Nt){if(!Gt(ht))return!1;var Ht=document.createElement("div"),qt=Ht.style[ht];return Ht.style[ht]=Nt,Ht.style[ht]!==qt};function rn(lt,ht){return!Array.isArray(lt)&&ht!==void 0?Xt(lt,ht):Gt(lt)}var An;function zt(lt){if(typeof document=="undefined")return 0;if(lt||An===void 0){var ht=document.createElement("div");ht.style.width="100%",ht.style.height="200px";var Nt=document.createElement("div"),Ht=Nt.style;Ht.position="absolute",Ht.top="0",Ht.left="0",Ht.pointerEvents="none",Ht.visibility="hidden",Ht.width="200px",Ht.height="150px",Ht.overflow="hidden",Nt.appendChild(ht),document.body.appendChild(Nt);var qt=ht.offsetWidth;Nt.style.overflow="scroll";var ln=ht.offsetWidth;qt===ln&&(ln=Nt.clientWidth),document.body.removeChild(Nt),An=qt-ln}return An}function tn(lt){var ht=lt.match(/^(.*)px$/),Nt=Number(ht==null?void 0:ht[1]);return Number.isNaN(Nt)?zt():Nt}function bn(lt){if(typeof document=="undefined"||!lt||!(lt instanceof Element))return{width:0,height:0};var ht=getComputedStyle(lt,"::-webkit-scrollbar"),Nt=ht.width,Ht=ht.height;return{width:tn(Nt),height:tn(Ht)}}var wn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,zn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Un="".concat(wn," ").concat(zn).split(/[\s\n]+/),kr="aria-",Zr="data-";function Ir(lt,ht){return lt.indexOf(ht)===0}function Er(lt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nt;ht===!1?Nt={aria:!0,data:!0,attr:!0}:ht===!0?Nt={aria:!0}:Nt=(0,Pe.Z)({},ht);var Ht={};return Object.keys(lt).forEach(function(qt){(Nt.aria&&(qt==="role"||Ir(qt,kr))||Nt.data&&Ir(qt,Zr)||Nt.attr&&Un.includes(qt))&&(Ht[qt]=lt[qt])}),Ht}function Br(lt,ht,Nt,Ht,qt,ln,Dn){lt.push({record:ht,indent:Nt,index:Dn});var $n=ln(ht),Rn=qt==null?void 0:qt.has($n);if(ht&&Array.isArray(ht[Ht])&&Rn)for(var tr=0;tr<ht[Ht].length;tr+=1)Br(lt,ht[Ht][tr],Nt+1,Ht,qt,ln,tr)}function Pr(lt,ht,Nt,Ht){var qt=z.useMemo(function(){if(Nt!=null&&Nt.size){for(var ln=[],Dn=0;Dn<(lt==null?void 0:lt.length);Dn+=1){var $n=lt[Dn];Br(ln,$n,0,ht,Nt,Ht,Dn)}return ln}return lt==null?void 0:lt.map(function(Rn,tr){return{record:Rn,indent:0,index:tr}})},[lt,ht,Nt,Ht]);return qt}function nn(lt){var ht=lt.prefixCls,Nt=lt.children,Ht=lt.component,qt=lt.cellComponent,ln=lt.className,Dn=lt.expanded,$n=lt.colSpan,Rn=lt.isEmpty,tr=se(we,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),mr=tr.scrollbarSize,En=tr.fixHeader,Lr=tr.fixColumn,jr=tr.componentWidth,$r=tr.horizonScroll,Yr=Nt;return(Rn?$r&&jr:Lr)&&(Yr=z.createElement("div",{style:{width:jr-(En?mr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ht,"-expanded-row-fixed")},Yr)),z.createElement(Ht,{className:ln,style:{display:Dn?null:"none"}},z.createElement(Fe,{component:qt,prefixCls:ht,colSpan:$n},Yr))}var Jt=nn;function pn(lt,ht,Nt,Ht){var qt=se(we,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ln=qt.flattenColumns,Dn=qt.expandableType,$n=qt.expandedKeys,Rn=qt.childrenColumnName,tr=qt.onTriggerExpand,mr=qt.rowExpandable,En=qt.onRow,Lr=qt.expandRowByClick,jr=qt.rowClassName,$r=Dn==="nest",Yr=Dn==="row"&&(!mr||mr(lt)),Kr=Yr||$r,ci=$n&&$n.has(ht),ii=Rn&<&<[Rn],Si=xt(tr),Yi=En==null?void 0:En(lt,Nt),Ui=Yi==null?void 0:Yi.onClick,Gi=function(Hi){Lr&&Kr&&tr(lt,Hi);for(var Fi=arguments.length,di=new Array(Fi>1?Fi-1:0),Zi=1;Zi<Fi;Zi++)di[Zi-1]=arguments[Zi];Ui==null||Ui.apply(void 0,[Hi].concat(di))},xa;typeof jr=="string"?xa=jr:typeof jr=="function"&&(xa=jr(lt,Nt,Ht));var Ua=Ze(ln);return(0,Pe.Z)((0,Pe.Z)({},qt),{},{columnsKey:Ua,nestExpandable:$r,expanded:ci,hasNestChildren:ii,record:lt,onTriggerExpand:Si,rowSupportExpand:Yr,expandable:Kr,rowProps:(0,Pe.Z)((0,Pe.Z)({},Yi),{},{className:Be()(xa,Yi==null?void 0:Yi.className),onClick:Gi})})}function Qn(lt,ht,Nt,Ht,qt){var ln=lt.record,Dn=lt.prefixCls,$n=lt.columnsKey,Rn=lt.fixedInfoList,tr=lt.expandIconColumnIndex,mr=lt.nestExpandable,En=lt.indentSize,Lr=lt.expandIcon,jr=lt.expanded,$r=lt.hasNestChildren,Yr=lt.onTriggerExpand,Kr=$n[Nt],ci=Rn[Nt],ii;Nt===(tr||0)&&mr&&(ii=z.createElement(z.Fragment,null,z.createElement("span",{style:{paddingLeft:"".concat(En*Ht,"px")},className:"".concat(Dn,"-row-indent indent-level-").concat(Ht)}),Lr({prefixCls:Dn,expanded:jr,expandable:$r,record:ln,onExpand:Yr})));var Si;return ht.onCell&&(Si=ht.onCell(ln,qt)),{key:Kr,fixedInfo:ci,appendCellNode:ii,additionalCellProps:Si||{}}}function hr(lt){var ht=lt.className,Nt=lt.style,Ht=lt.record,qt=lt.index,ln=lt.renderIndex,Dn=lt.rowKey,$n=lt.indent,Rn=$n===void 0?0:$n,tr=lt.rowComponent,mr=lt.cellComponent,En=lt.scopeCellComponent,Lr=pn(Ht,Dn,qt,Rn),jr=Lr.prefixCls,$r=Lr.flattenColumns,Yr=Lr.expandedRowClassName,Kr=Lr.expandedRowRender,ci=Lr.rowProps,ii=Lr.expanded,Si=Lr.rowSupportExpand,Yi=z.useState(!1),Ui=(0,x.Z)(Yi,2),Gi=Ui[0],xa=Ui[1];z.useEffect(function(){ii&&xa(!0)},[ii]);var Ua=z.createElement(tr,(0,me.Z)({},ci,{"data-row-key":Dn,className:Be()(ht,"".concat(jr,"-row"),"".concat(jr,"-row-level-").concat(Rn),ci==null?void 0:ci.className),style:(0,Pe.Z)((0,Pe.Z)({},Nt),ci==null?void 0:ci.style)}),$r.map(function(di,Zi){var wa=di.render,Qa=di.dataIndex,ja=di.className,Sa=Qn(Lr,di,Zi,Rn,qt),io=Sa.key,qa=Sa.fixedInfo,zo=Sa.appendCellNode,ao=Sa.additionalCellProps;return z.createElement(Fe,(0,me.Z)({className:ja,ellipsis:di.ellipsis,align:di.align,scope:di.rowScope,component:di.rowScope?En:mr,prefixCls:jr,key:io,record:Ht,index:qt,renderIndex:ln,dataIndex:Qa,render:wa,shouldCellUpdate:di.shouldCellUpdate},qa,{appendNode:zo,additionalProps:ao}))})),ji;if(Si&&(Gi||ii)){var Hi=Kr(Ht,qt,Rn+1,ii),Fi=Yr&&Yr(Ht,qt,Rn);ji=z.createElement(Jt,{expanded:ii,className:Be()("".concat(jr,"-expanded-row"),"".concat(jr,"-expanded-row-level-").concat(Rn+1),Fi),prefixCls:jr,component:tr,cellComponent:mr,colSpan:$r.length,isEmpty:!1},Hi)}return z.createElement(z.Fragment,null,Ua,ji)}hr.displayName="BodyRow";var Fn=ye(hr);function Vn(lt){var ht=lt.columnKey,Nt=lt.onColumnResize,Ht=z.useRef();return z.useEffect(function(){Ht.current&&Nt(ht,Ht.current.offsetWidth)},[]),z.createElement(Hn.Z,{data:ht},z.createElement("td",{ref:Ht,style:{padding:0,border:0,height:0}},z.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function er(lt){var ht=lt.prefixCls,Nt=lt.columnsKey,Ht=lt.onColumnResize;return z.createElement("tr",{"aria-hidden":"true",className:"".concat(ht,"-measure-row"),style:{height:0,fontSize:0}},z.createElement(Hn.Z.Collection,{onBatchResize:function(ln){ln.forEach(function(Dn){var $n=Dn.data,Rn=Dn.size;Ht($n,Rn.offsetWidth)})}},Nt.map(function(qt){return z.createElement(Vn,{key:qt,columnKey:qt,onColumnResize:Ht})})))}function Sr(lt){var ht=lt.data,Nt=lt.measureColumnWidth,Ht=se(we,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),qt=Ht.prefixCls,ln=Ht.getComponent,Dn=Ht.onColumnResize,$n=Ht.flattenColumns,Rn=Ht.getRowKey,tr=Ht.expandedKeys,mr=Ht.childrenColumnName,En=Ht.emptyNode,Lr=Pr(ht,mr,tr,Rn),jr=z.useRef({renderWithProps:!1}),$r=ln(["body","wrapper"],"tbody"),Yr=ln(["body","row"],"tr"),Kr=ln(["body","cell"],"td"),ci=ln(["body","cell"],"th"),ii;ht.length?ii=Lr.map(function(Yi,Ui){var Gi=Yi.record,xa=Yi.indent,Ua=Yi.index,ji=Rn(Gi,Ui);return z.createElement(Fn,{key:ji,rowKey:ji,record:Gi,index:Ui,renderIndex:Ua,rowComponent:Yr,cellComponent:Kr,scopeCellComponent:ci,getRowKey:Rn,indent:xa})}):ii=z.createElement(Jt,{expanded:!0,className:"".concat(qt,"-placeholder"),prefixCls:qt,component:Yr,cellComponent:Kr,colSpan:$n.length,isEmpty:!0},En);var Si=Ze($n);return z.createElement(Pt.Provider,{value:jr.current},z.createElement($r,{className:"".concat(qt,"-tbody")},Nt&&z.createElement(er,{prefixCls:qt,columnsKey:Si,onColumnResize:Dn}),ii))}Sr.displayName="Body";var Nr=ye(Sr),In=["expandable"],Gr="RC_TABLE_INTERNAL_COL_DEFINE";function ei(lt){var ht=lt.expandable,Nt=(0,kt.Z)(lt,In),Ht;return"expandable"in lt?Ht=(0,Pe.Z)((0,Pe.Z)({},Nt),ht):Ht=Nt,Ht.showExpandColumn===!1&&(Ht.expandIconColumnIndex=-1),Ht}var aa=["columnType"];function ca(lt){for(var ht=lt.colWidths,Nt=lt.columns,Ht=lt.columCount,qt=[],ln=Ht||Nt.length,Dn=!1,$n=ln-1;$n>=0;$n-=1){var Rn=ht[$n],tr=Nt&&Nt[$n],mr=tr&&tr[Gr];if(Rn||mr||Dn){var En=mr||{},Lr=En.columnType,jr=(0,kt.Z)(En,aa);qt.unshift(z.createElement("col",(0,me.Z)({key:$n,style:{width:Rn}},jr))),Dn=!0}}return z.createElement("colgroup",null,qt)}var qi=ca,Oi=ve(74902),oa=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Bi(lt,ht){return(0,z.useMemo)(function(){for(var Nt=[],Ht=0;Ht<ht;Ht+=1){var qt=lt[Ht];if(qt!==void 0)Nt[Ht]=qt;else return null}return Nt},[lt.join("_"),ht])}var Di=z.forwardRef(function(lt,ht){var Nt=lt.className,Ht=lt.noData,qt=lt.columns,ln=lt.flattenColumns,Dn=lt.colWidths,$n=lt.columCount,Rn=lt.stickyOffsets,tr=lt.direction,mr=lt.fixHeader,En=lt.stickyTopOffset,Lr=lt.stickyBottomOffset,jr=lt.stickyClassName,$r=lt.onScroll,Yr=lt.maxContentScroll,Kr=lt.children,ci=(0,kt.Z)(lt,oa),ii=se(we,["prefixCls","scrollbarSize","isSticky"]),Si=ii.prefixCls,Yi=ii.scrollbarSize,Ui=ii.isSticky,Gi=Ui&&!mr?0:Yi,xa=z.useRef(null),Ua=z.useCallback(function(ja){zr(ht,ja),zr(xa,ja)},[]);z.useEffect(function(){var ja;function Sa(io){var qa=io,zo=qa.currentTarget,ao=qa.deltaX;ao&&($r({currentTarget:zo,scrollLeft:zo.scrollLeft+ao}),io.preventDefault())}return(ja=xa.current)===null||ja===void 0||ja.addEventListener("wheel",Sa),function(){var io;(io=xa.current)===null||io===void 0||io.removeEventListener("wheel",Sa)}},[]);var ji=z.useMemo(function(){return ln.every(function(ja){return ja.width})},[ln]),Hi=ln[ln.length-1],Fi={fixed:Hi?Hi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Si,"-cell-scrollbar")}}},di=(0,z.useMemo)(function(){return Gi?[].concat((0,Oi.Z)(qt),[Fi]):qt},[Gi,qt]),Zi=(0,z.useMemo)(function(){return Gi?[].concat((0,Oi.Z)(ln),[Fi]):ln},[Gi,ln]),wa=(0,z.useMemo)(function(){var ja=Rn.right,Sa=Rn.left;return(0,Pe.Z)((0,Pe.Z)({},Rn),{},{left:tr==="rtl"?[].concat((0,Oi.Z)(Sa.map(function(io){return io+Gi})),[0]):Sa,right:tr==="rtl"?ja:[].concat((0,Oi.Z)(ja.map(function(io){return io+Gi})),[0]),isSticky:Ui})},[Gi,Rn,Ui]),Qa=Bi(Dn,$n);return z.createElement("div",{style:(0,Pe.Z)({overflow:"hidden"},Ui?{top:En,bottom:Lr}:{}),ref:Ua,className:Be()(Nt,(0,Le.Z)({},jr,!!jr))},z.createElement("table",{style:{tableLayout:"fixed",visibility:Ht||Qa?null:"hidden"}},(!Ht||!Yr||ji)&&z.createElement(qi,{colWidths:Qa?[].concat((0,Oi.Z)(Qa),[Gi]):[],columCount:$n+1,columns:Zi}),Kr((0,Pe.Z)((0,Pe.Z)({},ci),{},{stickyOffsets:wa,columns:di,flattenColumns:Zi}))))});Di.displayName="FixedHolder";var _a=z.memo(Di);function _i(lt){var ht=lt.cells,Nt=lt.stickyOffsets,Ht=lt.flattenColumns,qt=lt.rowComponent,ln=lt.cellComponent,Dn=lt.tdCellComponent,$n=lt.onHeaderRow,Rn=lt.index,tr=se(we,["prefixCls","direction"]),mr=tr.prefixCls,En=tr.direction,Lr;$n&&(Lr=$n(ht.map(function($r){return $r.column}),Rn));var jr=Ze(ht.map(function($r){return $r.column}));return z.createElement(qt,Lr,ht.map(function($r,Yr){var Kr=$r.column,ci=Ge($r.colStart,$r.colEnd,Ht,Nt,En,Kr),ii;return Kr&&Kr.onHeaderCell&&(ii=$r.column.onHeaderCell(Kr)),z.createElement(Fe,(0,me.Z)({},$r,{scope:Kr.title?$r.colSpan>1?"colgroup":"col":null,ellipsis:Kr.ellipsis,align:Kr.align,component:Kr.title?ln:Dn,prefixCls:mr,key:jr[Yr]},ci,{additionalProps:ii,rowType:"header"}))}))}_i.displayName="HeaderRow";var ta=_i;function Ea(lt){var ht=[];function Nt(Dn,$n){var Rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ht[Rn]=ht[Rn]||[];var tr=$n,mr=Dn.filter(Boolean).map(function(En){var Lr={key:En.key,className:En.className||"",children:En.title,column:En,colStart:tr},jr=1,$r=En.children;return $r&&$r.length>0&&(jr=Nt($r,tr,Rn+1).reduce(function(Yr,Kr){return Yr+Kr},0),Lr.hasSubColumns=!0),"colSpan"in En&&(jr=En.colSpan),"rowSpan"in En&&(Lr.rowSpan=En.rowSpan),Lr.colSpan=jr,Lr.colEnd=Lr.colStart+jr-1,ht[Rn].push(Lr),tr+=jr,jr});return mr}Nt(lt,0);for(var Ht=ht.length,qt=function($n){ht[$n].forEach(function(Rn){!("rowSpan"in Rn)&&!Rn.hasSubColumns&&(Rn.rowSpan=Ht-$n)})},ln=0;ln<Ht;ln+=1)qt(ln);return ht}function Va(lt){var ht=lt.stickyOffsets,Nt=lt.columns,Ht=lt.flattenColumns,qt=lt.onHeaderRow,ln=se(we,["prefixCls","getComponent"]),Dn=ln.prefixCls,$n=ln.getComponent,Rn=z.useMemo(function(){return Ea(Nt)},[Nt]),tr=$n(["header","wrapper"],"thead"),mr=$n(["header","row"],"tr"),En=$n(["header","cell"],"th"),Lr=$n(["header","cell"],"td");return z.createElement(tr,{className:"".concat(Dn,"-thead")},Rn.map(function(jr,$r){var Yr=z.createElement(ta,{key:$r,flattenColumns:Ht,cells:jr,stickyOffsets:ht,rowComponent:mr,cellComponent:En,tdCellComponent:Lr,onHeaderRow:qt,index:$r});return Yr}))}var Na=ye(Va);function Pi(lt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Nt=[];return z.Children.forEach(lt,function(Ht){Ht==null&&!ht.keepEmpty||(Array.isArray(Ht)?Nt=Nt.concat(Pi(Ht)):(0,dr.isFragment)(Ht)&&Ht.props?Nt=Nt.concat(Pi(Ht.props.children,ht)):Nt.push(Ht))}),Nt}function yn(lt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ht=="number"?ht:ht.endsWith("%")?lt*parseFloat(ht)/100:null}function dn(lt,ht){return z.useMemo(function(){if(ht&&ht>0){var Nt=0,Ht=0;lt.forEach(function(tr){var mr=yn(ht,tr.width);mr?Nt+=mr:Ht+=1});var qt=ht-Nt,ln=Ht,Dn=qt/Ht,$n=0,Rn=lt.map(function(tr){var mr=(0,Pe.Z)({},tr),En=yn(ht,mr.width);if(En)mr.width=En;else{var Lr=Math.floor(Dn);mr.width=ln===1?qt:Lr,qt-=Lr,ln-=1}return $n+=mr.width,mr});return[Rn,$n]}return[lt,ht]},[lt,ht])}var Kn=["children"],or=["fixed"];function xr(lt){return Pi(lt).filter(function(ht){return z.isValidElement(ht)}).map(function(ht){var Nt=ht.key,Ht=ht.props,qt=Ht.children,ln=(0,kt.Z)(Ht,Kn),Dn=(0,Pe.Z)({key:Nt},ln);return qt&&(Dn.children=xr(qt)),Dn})}function Wr(lt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return lt.filter(function(Nt){return Nt&&(0,Ie.Z)(Nt)==="object"}).reduce(function(Nt,Ht,qt){var ln=Ht.fixed,Dn=ln===!0?"left":ln,$n="".concat(ht,"-").concat(qt),Rn=Ht.children;return Rn&&Rn.length>0?[].concat((0,Oi.Z)(Nt),(0,Oi.Z)(Wr(Rn,$n).map(function(tr){return(0,Pe.Z)({fixed:Dn},tr)}))):[].concat((0,Oi.Z)(Nt),[(0,Pe.Z)((0,Pe.Z)({key:$n},Ht),{},{fixed:Dn})])},[])}function oi(lt){for(var ht=!0,Nt=0;Nt<lt.length;Nt+=1){var Ht=lt[Nt];if(ht&&Ht.fixed!=="left")ht=!1;else if(!ht&&Ht.fixed==="left"){warning(!1,"Index ".concat(Nt-1," of `columns` missing `fixed='left'` prop."));break}}for(var qt=!0,ln=lt.length-1;ln>=0;ln-=1){var Dn=lt[ln];if(qt&&Dn.fixed!=="right")qt=!1;else if(!qt&&Dn.fixed==="right"){warning(!1,"Index ".concat(ln+1," of `columns` missing `fixed='right'` prop."));break}}}function pi(lt){return lt.map(function(ht){var Nt=ht.fixed,Ht=(0,kt.Z)(ht,or),qt=Nt;return Nt==="left"?qt="right":Nt==="right"&&(qt="left"),(0,Pe.Z)({fixed:qt},Ht)})}function Ei(lt,ht){var Nt=lt.prefixCls,Ht=lt.columns,qt=lt.children,ln=lt.expandable,Dn=lt.expandedKeys,$n=lt.columnTitle,Rn=lt.getRowKey,tr=lt.onTriggerExpand,mr=lt.expandIcon,En=lt.rowExpandable,Lr=lt.expandIconColumnIndex,jr=lt.direction,$r=lt.expandRowByClick,Yr=lt.columnWidth,Kr=lt.fixed,ci=lt.scrollWidth,ii=z.useMemo(function(){return Ht||xr(qt)},[Ht,qt]),Si=z.useMemo(function(){if(ln){var Hi,Fi=ii.slice();if(!Fi.includes(Ue)){var di=Lr||0;di>=0&&Fi.splice(di,0,Ue)}var Zi=Fi.indexOf(Ue);Fi=Fi.filter(function(Sa,io){return Sa!==Ue||io===Zi});var wa=ii[Zi],Qa;(Kr==="left"||Kr)&&!Lr?Qa="left":(Kr==="right"||Kr)&&Lr===ii.length?Qa="right":Qa=wa?wa.fixed:null;var ja=(Hi={},(0,Le.Z)(Hi,Gr,{className:"".concat(Nt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Le.Z)(Hi,"title",$n),(0,Le.Z)(Hi,"fixed",Qa),(0,Le.Z)(Hi,"className","".concat(Nt,"-row-expand-icon-cell")),(0,Le.Z)(Hi,"width",Yr),(0,Le.Z)(Hi,"render",function(io,qa,zo){var ao=Rn(qa,zo),es=Dn.has(ao),ts=En?En(qa):!0,Ha=mr({prefixCls:Nt,expanded:es,expandable:ts,record:qa,onExpand:tr});return $r?z.createElement("span",{onClick:function(Io){return Io.stopPropagation()}},Ha):Ha}),Hi);return Fi.map(function(Sa){return Sa===Ue?ja:Sa})}return ii.filter(function(Sa){return Sa!==Ue})},[ln,ii,Rn,Dn,mr,jr]),Yi=z.useMemo(function(){var Hi=Si;return ht&&(Hi=ht(Hi)),Hi.length||(Hi=[{render:function(){return null}}]),Hi},[ht,Si,jr]),Ui=z.useMemo(function(){return jr==="rtl"?pi(Wr(Yi)):Wr(Yi)},[Yi,jr,ci]),Gi=dn(Ui,ci),xa=(0,x.Z)(Gi,2),Ua=xa[0],ji=xa[1];return[Yi,Ua,ji]}var mi=Ei;function Li(lt){var ht,Nt=lt.prefixCls,Ht=lt.record,qt=lt.onExpand,ln=lt.expanded,Dn=lt.expandable,$n="".concat(Nt,"-row-expand-icon");if(!Dn)return z.createElement("span",{className:Be()($n,"".concat(Nt,"-row-spaced"))});var Rn=function(mr){qt(Ht,mr),mr.stopPropagation()};return z.createElement("span",{className:Be()($n,(ht={},(0,Le.Z)(ht,"".concat(Nt,"-row-expanded"),ln),(0,Le.Z)(ht,"".concat(Nt,"-row-collapsed"),!ln),ht)),onClick:Rn})}function ea(lt,ht,Nt){var Ht=[];function qt(ln){(ln||[]).forEach(function(Dn,$n){Ht.push(ht(Dn,$n)),qt(Dn[Nt])})}return qt(lt),Ht}function ni(lt,ht,Nt){var Ht=ei(lt),qt=Ht.expandIcon,ln=Ht.expandedRowKeys,Dn=Ht.defaultExpandedRowKeys,$n=Ht.defaultExpandAllRows,Rn=Ht.expandedRowRender,tr=Ht.onExpand,mr=Ht.onExpandedRowsChange,En=Ht.childrenColumnName,Lr=qt||Li,jr=En||"children",$r=z.useMemo(function(){return Rn?"row":lt.expandable&<.internalHooks===ot&<.expandable.__PARENT_RENDER_ICON__||ht.some(function(Ui){return Ui&&(0,Ie.Z)(Ui)==="object"&&Ui[jr]})?"nest":!1},[!!Rn,ht]),Yr=z.useState(function(){return Dn||($n?ea(ht,Nt,jr):[])}),Kr=(0,x.Z)(Yr,2),ci=Kr[0],ii=Kr[1],Si=z.useMemo(function(){return new Set(ln||ci||[])},[ln,ci]),Yi=z.useCallback(function(Ui){var Gi=Nt(Ui,ht.indexOf(Ui)),xa,Ua=Si.has(Gi);Ua?(Si.delete(Gi),xa=(0,Oi.Z)(Si)):xa=[].concat((0,Oi.Z)(Si),[Gi]),ii(xa),tr&&tr(!Ua,Ui),mr&&mr(xa)},[Nt,Si,ht,tr,mr]);return[Ht,$r,Si,Lr,jr,Yi]}function Mn(lt,ht,Nt,Ht){var qt=lt.map(function(ln,Dn){return Ge(Dn,Dn,lt,ht,Nt,Ht==null?void 0:Ht[Dn])});return He(function(){return qt},[qt],function(ln,Dn){return!rt(ln,Dn)})}function hn(lt){var ht=(0,z.useRef)(lt),Nt=(0,z.useState)({}),Ht=(0,x.Z)(Nt,2),qt=Ht[1],ln=(0,z.useRef)(null),Dn=(0,z.useRef)([]);function $n(Rn){Dn.current.push(Rn);var tr=Promise.resolve();ln.current=tr,tr.then(function(){if(ln.current===tr){var mr=Dn.current,En=ht.current;Dn.current=[],mr.forEach(function(Lr){ht.current=Lr(ht.current)}),ln.current=null,En!==ht.current&&qt({})}})}return(0,z.useEffect)(function(){return function(){ln.current=null}},[]),[ht.current,$n]}function On(lt){var ht=(0,z.useRef)(lt||null),Nt=(0,z.useRef)();function Ht(){window.clearTimeout(Nt.current)}function qt(Dn){ht.current=Dn,Ht(),Nt.current=window.setTimeout(function(){ht.current=null,Nt.current=void 0},100)}function ln(){return ht.current}return(0,z.useEffect)(function(){return Ht},[]),[qt,ln]}function Je(){var lt=z.useState(-1),ht=(0,x.Z)(lt,2),Nt=ht[0],Ht=ht[1],qt=z.useState(-1),ln=(0,x.Z)(qt,2),Dn=ln[0],$n=ln[1],Rn=z.useCallback(function(tr,mr){Ht(tr),$n(mr)},[]);return[Nt,Dn,Rn]}var vt=en()?window:null;function Ct(lt,ht){var Nt=(0,Ie.Z)(lt)==="object"?lt:{},Ht=Nt.offsetHeader,qt=Ht===void 0?0:Ht,ln=Nt.offsetSummary,Dn=ln===void 0?0:ln,$n=Nt.offsetScroll,Rn=$n===void 0?0:$n,tr=Nt.getContainer,mr=tr===void 0?function(){return vt}:tr,En=mr()||vt;return z.useMemo(function(){var Lr=!!lt;return{isSticky:Lr,stickyClassName:Lr?"".concat(ht,"-sticky-holder"):"",offsetHeader:qt,offsetSummary:Dn,offsetScroll:Rn,container:En}},[Rn,qt,Dn,ht,En])}function It(lt,ht,Nt){var Ht=(0,z.useMemo)(function(){for(var qt=[],ln=[],Dn=0,$n=0,Rn=0;Rn<ht;Rn+=1)if(Nt==="rtl"){ln[Rn]=$n,$n+=lt[Rn]||0;var tr=ht-Rn-1;qt[tr]=Dn,Dn+=lt[tr]||0}else{qt[Rn]=Dn,Dn+=lt[Rn]||0;var mr=ht-Rn-1;ln[mr]=$n,$n+=lt[mr]||0}return{left:qt,right:ln}},[lt,ht,Nt]);return Ht}var At=It;function Bt(lt){var ht=lt.className,Nt=lt.children;return z.createElement("div",{className:ht},Nt)}var Ft=Bt;function on(lt,ht,Nt,Ht){var qt=ae.unstable_batchedUpdates?function(Dn){ae.unstable_batchedUpdates(Nt,Dn)}:Nt;return lt!=null&<.addEventListener&<.addEventListener(ht,qt,Ht),{remove:function(){lt!=null&<.removeEventListener&<.removeEventListener(ht,qt,Ht)}}}var gn=/margin|padding|width|height|max|min|offset/,Ln={left:!0,top:!0},qn={cssFloat:1,styleFloat:1,float:1};function Zn(lt){return lt.nodeType===1?lt.ownerDocument.defaultView.getComputedStyle(lt,null):{}}function Pn(lt,ht,Nt){if(ht=ht.toLowerCase(),Nt==="auto"){if(ht==="height")return lt.offsetHeight;if(ht==="width")return lt.offsetWidth}return ht in Ln||(Ln[ht]=gn.test(ht)),Ln[ht]?parseFloat(Nt)||0:Nt}function Bn(lt,ht){var Nt=arguments.length,Ht=Zn(lt);return ht=qn[ht]?"cssFloat"in lt.style?"cssFloat":"styleFloat":ht,Nt===1?Ht:Pn(lt,ht,Ht[ht]||lt.style[ht])}function Sn(lt,ht,Nt){var Ht=arguments.length;if(ht=qn[ht]?"cssFloat"in lt.style?"cssFloat":"styleFloat":ht,Ht===3)return typeof Nt=="number"&&gn.test(ht)&&(Nt="".concat(Nt,"px")),lt.style[ht]=Nt,Nt;for(var qt in ht)ht.hasOwnProperty(qt)&&Sn(lt,qt,ht[qt]);return Zn(lt)}function Xn(lt){return lt===document.body?document.documentElement.clientWidth:lt.offsetWidth}function vr(lt){return lt===document.body?window.innerHeight||document.documentElement.clientHeight:lt.offsetHeight}function rr(){var lt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ht=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:lt,height:ht}}function lr(){var lt=document.documentElement.clientWidth,ht=window.innerHeight||document.documentElement.clientHeight;return{width:lt,height:ht}}function fr(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function yr(lt){var ht=lt.getBoundingClientRect(),Nt=document.documentElement;return{left:ht.left+(window.pageXOffset||Nt.scrollLeft)-(Nt.clientLeft||document.body.clientLeft||0),top:ht.top+(window.pageYOffset||Nt.scrollTop)-(Nt.clientTop||document.body.clientTop||0)}}var Mr=function(ht,Nt){var Ht,qt,ln=ht.scrollBodyRef,Dn=ht.onScroll,$n=ht.offsetScroll,Rn=ht.container,tr=se(we,"prefixCls"),mr=((Ht=ln.current)===null||Ht===void 0?void 0:Ht.scrollWidth)||0,En=((qt=ln.current)===null||qt===void 0?void 0:qt.clientWidth)||0,Lr=mr&&En*(En/mr),jr=z.useRef(),$r=hn({scrollLeft:0,isHiddenScrollBar:!1}),Yr=(0,x.Z)($r,2),Kr=Yr[0],ci=Yr[1],ii=z.useRef({delta:0,x:0}),Si=z.useState(!1),Yi=(0,x.Z)(Si,2),Ui=Yi[0],Gi=Yi[1],xa=function(){Gi(!1)},Ua=function(Zi){Zi.persist(),ii.current.delta=Zi.pageX-Kr.scrollLeft,ii.current.x=0,Gi(!0),Zi.preventDefault()},ji=function(Zi){var wa,Qa=Zi||((wa=window)===null||wa===void 0?void 0:wa.event),ja=Qa.buttons;if(!Ui||ja===0){Ui&&Gi(!1);return}var Sa=ii.current.x+Zi.pageX-ii.current.x-ii.current.delta;Sa<=0&&(Sa=0),Sa+Lr>=En&&(Sa=En-Lr),Dn({scrollLeft:Sa/En*(mr+2)}),ii.current.x=Zi.pageX},Hi=function(){if(ln.current){var Zi=yr(ln.current).top,wa=Zi+ln.current.offsetHeight,Qa=Rn===window?document.documentElement.scrollTop+window.innerHeight:yr(Rn).top+Rn.clientHeight;wa-zt()<=Qa||Zi>=Qa-$n?ci(function(ja){return(0,Pe.Z)((0,Pe.Z)({},ja),{},{isHiddenScrollBar:!0})}):ci(function(ja){return(0,Pe.Z)((0,Pe.Z)({},ja),{},{isHiddenScrollBar:!1})})}},Fi=function(Zi){ci(function(wa){return(0,Pe.Z)((0,Pe.Z)({},wa),{},{scrollLeft:Zi/mr*En||0})})};return z.useImperativeHandle(Nt,function(){return{setScrollLeft:Fi}}),z.useEffect(function(){var di=on(document.body,"mouseup",xa,!1),Zi=on(document.body,"mousemove",ji,!1);return Hi(),function(){di.remove(),Zi.remove()}},[Lr,Ui]),z.useEffect(function(){var di=on(Rn,"scroll",Hi,!1),Zi=on(window,"resize",Hi,!1);return function(){di.remove(),Zi.remove()}},[Rn]),z.useEffect(function(){Kr.isHiddenScrollBar||ci(function(di){var Zi=ln.current;return Zi?(0,Pe.Z)((0,Pe.Z)({},di),{},{scrollLeft:Zi.scrollLeft/Zi.scrollWidth*Zi.clientWidth}):di})},[Kr.isHiddenScrollBar]),mr<=En||!Lr||Kr.isHiddenScrollBar?null:z.createElement("div",{style:{height:zt(),width:En,bottom:$n},className:"".concat(tr,"-sticky-scroll")},z.createElement("div",{onMouseDown:Ua,ref:jr,className:Be()("".concat(tr,"-sticky-scroll-bar"),(0,Le.Z)({},"".concat(tr,"-sticky-scroll-bar-active"),Ui)),style:{width:"".concat(Lr,"px"),transform:"translate3d(".concat(Kr.scrollLeft,"px, 0, 0)")}}))},Ot=z.forwardRef(Mr);function Rt(lt){return null}var un=Rt;function Qt(lt){return null}var _n=Qt,Wn="rc-table",Gn=[],gr={};function cr(){return"No Data"}function Jn(lt){var ht,Nt=(0,Pe.Z)({rowKey:"key",prefixCls:Wn,emptyText:cr},lt),Ht=Nt.prefixCls,qt=Nt.className,ln=Nt.rowClassName,Dn=Nt.style,$n=Nt.data,Rn=Nt.rowKey,tr=Nt.scroll,mr=Nt.tableLayout,En=Nt.direction,Lr=Nt.title,jr=Nt.footer,$r=Nt.summary,Yr=Nt.caption,Kr=Nt.id,ci=Nt.showHeader,ii=Nt.components,Si=Nt.emptyText,Yi=Nt.onRow,Ui=Nt.onHeaderRow,Gi=Nt.internalHooks,xa=Nt.transformColumns,Ua=Nt.internalRefs,ji=Nt.tailor,Hi=Nt.sticky,Fi=$n||Gn,di=!!Fi.length,Zi=Gi===ot,wa=z.useCallback(function(Bo,as){return Et(ii,Bo)||as},[ii]),Qa=z.useMemo(function(){return typeof Rn=="function"?Rn:function(Bo){var as=Bo&&Bo[Rn];return as}},[Rn]),ja=wa(["body"]),Sa=Je(),io=(0,x.Z)(Sa,3),qa=io[0],zo=io[1],ao=io[2],es=ni(Nt,Fi,Qa),ts=(0,x.Z)(es,6),Ha=ts[0],Ts=ts[1],Io=ts[2],Uo=ts[3],No=ts[4],$a=ts[5],Ti=tr==null?void 0:tr.x,da=z.useState(0),Ca=(0,x.Z)(da,2),Wi=Ca[0],Do=Ca[1],Mi=mi((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Nt),Ha),{},{expandable:!!Ha.expandedRowRender,columnTitle:Ha.columnTitle,expandedKeys:Io,getRowKey:Qa,onTriggerExpand:$a,expandIcon:Uo,expandIconColumnIndex:Ha.expandIconColumnIndex,direction:En,scrollWidth:Zi&&ji&&typeof Ti=="number"?Ti:null}),Zi?xa:null),Ka=(0,x.Z)(Mi,3),To=Ka[0],wo=Ka[1],sl=Ka[2],As=sl!=null?sl:Ti,Ml=z.useMemo(function(){return{columns:To,flattenColumns:wo}},[To,wo]),Hr=z.useRef(),$l=z.useRef(),Cs=z.useRef(),hl=z.useRef(),bl=z.useRef(),Ao=z.useState(!1),Ro=(0,x.Z)(Ao,2),ns=Ro[0],Ya=Ro[1],Ns=z.useState(!1),oo=(0,x.Z)(Ns,2),Os=oo[0],Ks=oo[1],Us=hn(new Map),kl=(0,x.Z)(Us,2),Es=kl[0],_l=kl[1],Ms=Ze(wo),Hs=Ms.map(function(Bo){return Es.get(Bo)}),Ws=z.useMemo(function(){return Hs},[Hs.join("_")]),ks=At(Ws,wo.length,En),ms=tr&&Ke(tr.y),ls=tr&&Ke(As)||!!Ha.fixed,Yl=ls&&wo.some(function(Bo){var as=Bo.fixed;return as}),Ec=z.useRef(),hs=Ct(Hi,Ht),ll=hs.isSticky,Pu=hs.offsetHeader,Mc=hs.offsetSummary,vo=hs.offsetScroll,va=hs.stickyClassName,Ls=hs.container,Ho=z.useMemo(function(){return $r==null?void 0:$r(Fi)},[$r,Fi]),Zs=(ms||ll)&&z.isValidElement(Ho)&&Ho.type===Vt&&Ho.props.fixed,Or,Tl,cc;ms&&(Tl={overflowY:"scroll",maxHeight:tr.y}),ls&&(Or={overflowX:"auto"},ms||(Tl={overflowY:"hidden"}),cc={width:As===!0?"auto":As,minWidth:"100%"});var Lu=z.useCallback(function(Bo,as){jn(Hr.current)&&_l(function(Rl){if(Rl.get(Bo)!==as){var gc=new Map(Rl);return gc.set(Bo,as),gc}return Rl})},[]),ad=On(null),uc=(0,x.Z)(ad,2),pu=uc[0],Od=uc[1];function Vs(Bo,as){as&&(typeof as=="function"?as(Bo):as.scrollLeft!==Bo&&(as.scrollLeft=Bo,as.scrollLeft!==Bo&&setTimeout(function(){as.scrollLeft=Bo},0)))}var Hl=xt(function(Bo){var as=Bo.currentTarget,Rl=Bo.scrollLeft,gc=En==="rtl",jo=typeof Rl=="number"?Rl:as.scrollLeft,cd=as||gr;if(!Od()||Od()===cd){var ud;pu(cd),Vs(jo,$l.current),Vs(jo,Cs.current),Vs(jo,bl.current),Vs(jo,(ud=Ec.current)===null||ud===void 0?void 0:ud.setScrollLeft)}var _c=as||$l.current;if(_c){var dd=_c.scrollWidth,Xc=_c.clientWidth;if(dd===Xc){Ya(!1),Ks(!1);return}gc?(Ya(-jo<dd-Xc),Ks(-jo>0)):(Ya(jo>0),Ks(jo<dd-Xc))}}),mu=function(){ls&&Cs.current?Hl({currentTarget:Cs.current}):(Ya(!1),Ks(!1))},Ru=function(as){var Rl=as.width;Rl!==Wi&&(mu(),Do(Hr.current?Hr.current.offsetWidth:Rl))},Id=z.useRef(!1);z.useEffect(function(){Id.current&&mu()},[ls,$n,To.length]),z.useEffect(function(){Id.current=!0},[]);var Dd=z.useState(0),Nu=(0,x.Z)(Dd,2),vu=Nu[0],Gc=Nu[1],xl=z.useState(!0),mc=(0,x.Z)(xl,2),od=mc[0],sd=mc[1];z.useEffect(function(){(!ji||!Zi)&&(Cs.current instanceof Element?Gc(bn(Cs.current).width):Gc(bn(hl.current).width)),sd(rn("position","sticky"))},[]),z.useEffect(function(){Zi&&Ua&&(Ua.body.current=Cs.current)});var kc=z.useCallback(function(Bo){return z.createElement(z.Fragment,null,z.createElement(Na,Bo),Zs==="top"&&z.createElement(sn,Bo,Ho))},[Zs,Ho]),Pd=z.useCallback(function(Bo){return z.createElement(sn,Bo,Ho)},[Ho]),gu=wa(["table"],"table"),Bu=z.useMemo(function(){return mr||(Yl?As==="max-content"?"auto":"fixed":ms||ll||wo.some(function(Bo){var as=Bo.ellipsis;return as})?"fixed":"auto")},[ms,Yl,wo,mr,ll]),ld,ju={colWidths:Ws,columCount:wo.length,stickyOffsets:ks,onHeaderRow:Ui,fixHeader:ms,scroll:tr},Wa=z.useMemo(function(){return di?null:typeof Si=="function"?Si():Si},[di,Si]),Ld=z.createElement(Nr,{data:Fi,measureColumnWidth:ms||ls||ll}),Fu=z.createElement(qi,{colWidths:wo.map(function(Bo){var as=Bo.width;return as}),columns:wo}),Jl=Yr!=null?z.createElement("caption",{className:"".concat(Ht,"-caption")},Yr):void 0,oc=Er(Nt,{data:!0}),vc=Er(Nt,{aria:!0});if(ms||ll){var yu;typeof ja=="function"?(yu=ja(Fi,{scrollbarSize:vu,ref:Cs,onScroll:Hl}),ju.colWidths=wo.map(function(Bo,as){var Rl=Bo.width,gc=as===wo.length-1?Rl-vu:Rl;return typeof gc=="number"&&!Number.isNaN(gc)?gc:0})):yu=z.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},Or),Tl),onScroll:Hl,ref:Cs,className:Be()("".concat(Ht,"-body"))},z.createElement(gu,(0,me.Z)({style:(0,Pe.Z)((0,Pe.Z)({},cc),{},{tableLayout:Bu})},vc),Jl,Fu,Ld,!Zs&&Ho&&z.createElement(sn,{stickyOffsets:ks,flattenColumns:wo,columns:To},Ho)));var $u=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({noData:!Fi.length,maxContentScroll:ls&&As==="max-content"},ju),Ml),{},{direction:En,stickyClassName:va,onScroll:Hl});ld=z.createElement(z.Fragment,null,ci!==!1&&z.createElement(_a,(0,me.Z)({},$u,{stickyTopOffset:Pu,className:"".concat(Ht,"-header"),ref:$l}),kc),yu,Zs&&Zs!=="top"&&z.createElement(_a,(0,me.Z)({},$u,{stickyBottomOffset:Mc,className:"".concat(Ht,"-summary"),ref:bl}),Pd),ll&&z.createElement(Ot,{ref:Ec,offsetScroll:vo,scrollBodyRef:Cs,onScroll:Hl,container:Ls}))}else ld=z.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},Or),Tl),className:Be()("".concat(Ht,"-content")),onScroll:Hl,ref:Cs},z.createElement(gu,(0,me.Z)({style:(0,Pe.Z)((0,Pe.Z)({},cc),{},{tableLayout:Bu})},vc),Jl,Fu,ci!==!1&&z.createElement(Na,(0,me.Z)({},ju,Ml)),Ld,Ho&&z.createElement(sn,{stickyOffsets:ks,flattenColumns:wo,columns:To},Ho)));var bu=z.createElement("div",(0,me.Z)({className:Be()(Ht,qt,(ht={},(0,Le.Z)(ht,"".concat(Ht,"-rtl"),En==="rtl"),(0,Le.Z)(ht,"".concat(Ht,"-ping-left"),ns),(0,Le.Z)(ht,"".concat(Ht,"-ping-right"),Os),(0,Le.Z)(ht,"".concat(Ht,"-layout-fixed"),mr==="fixed"),(0,Le.Z)(ht,"".concat(Ht,"-fixed-header"),ms),(0,Le.Z)(ht,"".concat(Ht,"-fixed-column"),Yl),(0,Le.Z)(ht,"".concat(Ht,"-scroll-horizontal"),ls),(0,Le.Z)(ht,"".concat(Ht,"-has-fix-left"),wo[0]&&wo[0].fixed),(0,Le.Z)(ht,"".concat(Ht,"-has-fix-right"),wo[wo.length-1]&&wo[wo.length-1].fixed==="right"),ht)),style:Dn,id:Kr,ref:Hr},oc),Lr&&z.createElement(Ft,{className:"".concat(Ht,"-title")},Lr(Fi)),z.createElement("div",{ref:hl,className:"".concat(Ht,"-container")},ld),jr&&z.createElement(Ft,{className:"".concat(Ht,"-footer")},jr(Fi)));ls&&(bu=z.createElement(Hn.Z,{onResize:Ru},bu));var Fc=Mn(wo,ks,En,To),Rd=z.useMemo(function(){return{scrollX:As,prefixCls:Ht,getComponent:wa,scrollbarSize:vu,direction:En,fixedInfoList:Fc,isSticky:ll,supportSticky:od,componentWidth:Wi,fixHeader:ms,fixColumn:Yl,horizonScroll:ls,tableLayout:Bu,rowClassName:ln,expandedRowClassName:Ha.expandedRowClassName,expandIcon:Uo,expandableType:Ts,expandRowByClick:Ha.expandRowByClick,expandedRowRender:Ha.expandedRowRender,onTriggerExpand:$a,expandIconColumnIndex:Ha.expandIconColumnIndex,indentSize:Ha.indentSize,allColumnsFixedLeft:wo.every(function(Bo){return Bo.fixed==="left"}),emptyNode:Wa,columns:To,flattenColumns:wo,onColumnResize:Lu,hoverStartRow:qa,hoverEndRow:zo,onHover:ao,rowExpandable:Ha.rowExpandable,onRow:Yi,getRowKey:Qa,expandedKeys:Io,childrenColumnName:No}},[As,Ht,wa,vu,En,Fc,ll,od,Wi,ms,Yl,ls,Bu,ln,Ha.expandedRowClassName,Uo,Ts,Ha.expandRowByClick,Ha.expandedRowRender,$a,Ha.expandIconColumnIndex,Ha.indentSize,Wa,To,wo,Lu,qa,zo,ao,Ha.rowExpandable,Yi,Qa,Io,No]);return z.createElement(we.Provider,{value:Rd},bu)}function wr(lt){return Ce(Jn,lt)}var _r=wr();_r.EXPAND_COLUMN=Ue,_r.INTERNAL_HOOKS=ot,_r.Column=un,_r.ColumnGroup=_n,_r.Summary=Dt;var Vr=_r,Tr=ve(73299),qr=re(null),vi=re(null);function si(lt,ht,Nt){var Ht=ht||1;return Nt[lt+Ht]-(Nt[lt]||0)}function gi(lt){var ht=lt.rowInfo,Nt=lt.column,Ht=lt.colIndex,qt=lt.indent,ln=lt.index,Dn=lt.renderIndex,$n=lt.record,Rn=lt.style,tr=lt.className,mr=lt.inverse,En=lt.getHeight,Lr=Nt.render,jr=Nt.dataIndex,$r=Nt.className,Yr=Nt.width,Kr=se(vi,["columnsOffset"]),ci=Kr.columnsOffset,ii=Qn(ht,Nt,Ht,qt,ln),Si=ii.key,Yi=ii.fixedInfo,Ui=ii.appendCellNode,Gi=ii.additionalCellProps,xa=Gi.style,Ua=Gi.colSpan,ji=Ua===void 0?1:Ua,Hi=Gi.rowSpan,Fi=Hi===void 0?1:Hi,di=Ht-1,Zi=si(di,ji,ci),wa=ji>1?Yr-Zi:0,Qa=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},xa),Rn),{},{flex:"0 0 ".concat(Zi,"px"),width:"".concat(Zi,"px"),marginRight:wa,pointerEvents:"auto"}),ja=z.useMemo(function(){return mr?Fi<=1:ji===0||Fi===0||Fi>1},[Fi,ji,mr]);ja?Qa.visibility="hidden":mr&&(Qa.height=En==null?void 0:En(Fi));var Sa=ja?function(){return null}:Lr,io={};return(Fi===0||ji===0)&&(io.rowSpan=1,io.colSpan=1),z.createElement(Fe,(0,me.Z)({className:Be()($r,tr),ellipsis:Nt.ellipsis,align:Nt.align,scope:Nt.rowScope,component:"div",prefixCls:ht.prefixCls,key:Si,record:$n,index:ln,renderIndex:Dn,dataIndex:jr,render:Sa,shouldCellUpdate:Nt.shouldCellUpdate},Yi,{appendNode:Ui,additionalProps:(0,Pe.Z)((0,Pe.Z)({},Gi),{},{style:Qa},io)}))}var Qr=gi,ui=["data","index","className","rowKey","style","extra","getHeight"],bi=z.forwardRef(function(lt,ht){var Nt=lt.data,Ht=lt.index,qt=lt.className,ln=lt.rowKey,Dn=lt.style,$n=lt.extra,Rn=lt.getHeight,tr=(0,kt.Z)(lt,ui),mr=Nt.record,En=Nt.indent,Lr=Nt.index,jr=se(we,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),$r=jr.scrollX,Yr=jr.flattenColumns,Kr=jr.prefixCls,ci=jr.fixColumn,ii=jr.componentWidth,Si=pn(mr,ln,Ht,En),Yi=Si.rowSupportExpand,Ui=Si.expanded,Gi=Si.rowProps,xa=Si.expandedRowRender,Ua=Si.expandedRowClassName,ji;if(Yi&&Ui){var Hi=xa(mr,Ht,En+1,Ui),Fi=Ua==null?void 0:Ua(mr,Ht,En),di={};ci&&(di={style:(0,Le.Z)({},"--virtual-width","".concat(ii,"px"))});var Zi="".concat(Kr,"-expanded-row-cell");ji=z.createElement("div",{className:Be()("".concat(Kr,"-expanded-row"),"".concat(Kr,"-expanded-row-level-").concat(En+1),Fi)},z.createElement(Fe,{component:"div",prefixCls:Kr,className:Be()(Zi,(0,Le.Z)({},"".concat(Zi,"-fixed"),ci)),additionalProps:di},Hi))}var wa=(0,Pe.Z)((0,Pe.Z)({},Dn),{},{width:$r});$n&&(wa.position="absolute",wa.pointerEvents="none");var Qa=z.createElement("div",(0,me.Z)({},Gi,tr,{ref:Yi?null:ht,className:Be()(qt,"".concat(Kr,"-row"),Gi==null?void 0:Gi.className,(0,Le.Z)({},"".concat(Kr,"-row-extra"),$n)),style:(0,Pe.Z)((0,Pe.Z)({},wa),Gi==null?void 0:Gi.style)}),Yr.map(function(ja,Sa){return z.createElement(Qr,{key:Sa,rowInfo:Si,column:ja,colIndex:Sa,indent:En,index:Ht,renderIndex:Lr,record:mr,inverse:$n,getHeight:Rn})}));return Yi?z.createElement("div",{ref:ht},Qa,ji):Qa}),zi=ye(bi),ti=zi,Ji=z.forwardRef(function(lt,ht){var Nt=lt.data,Ht=lt.onScroll,qt=se(we,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),ln=qt.flattenColumns,Dn=qt.onColumnResize,$n=qt.getRowKey,Rn=qt.expandedKeys,tr=qt.prefixCls,mr=qt.childrenColumnName,En=qt.emptyNode,Lr=qt.scrollX,jr=se(qr),$r=jr.scrollY,Yr=jr.listItemHeight,Kr=z.useRef(),ci=Pr(Nt,mr,Rn,$n),ii=z.useMemo(function(){var ji=0;return ln.map(function(Hi){var Fi=Hi.width,di=Hi.key;return ji+=Fi,[di,Fi,ji]})},[ln]),Si=z.useMemo(function(){return ii.map(function(ji){return ji[2]})},[ii]);z.useEffect(function(){ii.forEach(function(ji){var Hi=(0,x.Z)(ji,2),Fi=Hi[0],di=Hi[1];Dn(Fi,di)})},[ii]),z.useImperativeHandle(ht,function(){var ji={};return Object.defineProperty(ji,"scrollLeft",{get:function(){var Fi;return((Fi=Kr.current)===null||Fi===void 0?void 0:Fi.getScrollInfo().x)||0},set:function(Fi){var di;(di=Kr.current)===null||di===void 0||di.scrollTo({left:Fi})}}),ji});var Yi=function(Hi,Fi){var di,Zi=(di=ci[Fi])===null||di===void 0?void 0:di.record,wa=Hi.onCell;if(wa){var Qa,ja=wa(Zi,Fi);return(Qa=ja==null?void 0:ja.rowSpan)!==null&&Qa!==void 0?Qa:1}return 1},Ui=function(Hi){var Fi=Hi.start,di=Hi.end,Zi=Hi.getSize,wa=Hi.offsetY;if(di<0)return null;for(var Qa=ln.filter(function(Ti){return Yi(Ti,Fi)===0}),ja=Fi,Sa=function(da){if(Qa=Qa.filter(function(Ca){return Yi(Ca,da)===0}),!Qa.length)return ja=da,"break"},io=Fi;io>=0;io-=1){var qa=Sa(io);if(qa==="break")break}for(var zo=ln.filter(function(Ti){return Yi(Ti,di)!==1}),ao=di,es=function(da){if(zo=zo.filter(function(Ca){return Yi(Ca,da)!==1}),!zo.length)return ao=Math.max(da-1,di),"break"},ts=di;ts<ci.length;ts+=1){var Ha=es(ts);if(Ha==="break")break}for(var Ts=[],Io=function(da){var Ca=ci[da];if(!Ca)return"continue";ln.some(function(Wi){return Yi(Wi,da)>1})&&Ts.push(da)},Uo=ja;Uo<=ao;Uo+=1)var No=Io(Uo);var $a=Ts.map(function(Ti){var da=ci[Ti],Ca=$n(da.record,Ti),Wi=function(Ka){var To=Ti+Ka-1,wo=$n(ci[To].record,To),sl=Zi(Ca,wo);return sl.bottom-sl.top},Do=Zi(Ca);return z.createElement(ti,{key:Ti,data:da,rowKey:Ca,index:Ti,style:{top:-wa+Do.top},extra:!0,getHeight:Wi})});return $a},Gi=z.useMemo(function(){return{columnsOffset:Si}},[Si]),xa="".concat(tr,"-tbody"),Ua;return ci.length?Ua=z.createElement(Tr.Z,{fullHeight:!1,ref:Kr,className:Be()(xa,"".concat(xa,"-virtual")),height:$r,itemHeight:Yr||24,data:ci,itemKey:function(Hi){return $n(Hi.record)},scrollWidth:Lr,onVirtualScroll:function(Hi){var Fi=Hi.x;Ht({scrollLeft:Fi})},extraRender:Ui},function(ji,Hi,Fi){var di=$n(ji.record,Hi);return z.createElement(ti,(0,me.Z)({data:ji,rowKey:di,index:Hi},Fi))}):Ua=z.createElement("div",{className:Be()("".concat(tr,"-placeholder"))},z.createElement(Fe,{component:"div",prefixCls:tr},En)),z.createElement(vi.Provider,{value:Gi},Ua)}),na=ye(Ji),za=na,Ta=function(ht,Nt){var Ht=Nt.ref,qt=Nt.onScroll;return z.createElement(za,{ref:Ht,data:ht,onScroll:qt})},pa=100;function Vi(lt){var ht=lt.columns,Nt=lt.scroll,Ht=lt.prefixCls,qt=Ht===void 0?Wn:Ht,ln=lt.className,Dn=lt.listItemHeight,$n=Nt||{},Rn=$n.x,tr=$n.y;typeof Rn!="number"&&(Rn=((ht||[]).length+1)*pa),typeof tr!="number"&&(tr=500);var mr=z.useMemo(function(){return{scrollY:tr,listItemHeight:Dn}},[tr,Dn]);return z.createElement(qr.Provider,{value:mr},z.createElement(Vr,(0,me.Z)({},lt,{className:Be()(ln,"".concat(qt,"-virtual")),scroll:(0,Pe.Z)((0,Pe.Z)({},Nt),{},{x:Rn}),components:{body:Ta},columns:ht,internalHooks:ot,tailor:!0})))}function Xi(lt){return Ce(Vi,lt)}var Ii=Xi(),ma=null;function Ri(lt){return null}var wi=Ri;function sa(lt){return null}var Ma=sa,go=ve(10366),ho=ve(58375),Ja=ve(53124),Za=ve(88258),La=ve(98675),ua=ve(25378),Oo=ve(24457),ba=ve(28452),Ki=ve(57953),Ia=ve(29691);function to(lt){return function(Nt){let{prefixCls:Ht,onExpand:qt,record:ln,expanded:Dn,expandable:$n}=Nt;const Rn=`${Ht}-row-expand-icon`;return z.createElement("button",{type:"button",onClick:tr=>{qt(ln,tr),tr.stopPropagation()},className:Be()(Rn,{[`${Rn}-spaced`]:!$n,[`${Rn}-expanded`]:$n&&Dn,[`${Rn}-collapsed`]:$n&&!Dn}),"aria-label":Dn?lt.collapse:lt.expand,"aria-expanded":Dn})}}var Ra=to;function Fa(lt,ht){return"key"in lt&<.key!==void 0&<.key!==null?lt.key:lt.dataIndex?Array.isArray(lt.dataIndex)?lt.dataIndex.join("."):lt.dataIndex:ht}function ra(lt,ht){return ht?`${ht}-${lt}`:`${lt}`}function no(lt,ht){return typeof lt=="function"?lt(ht):lt}function yo(lt,ht){const Nt=no(lt,ht);return Object.prototype.toString.call(Nt)==="[object Object]"?"":Nt}var so={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"},bo=so,Mo=ve(84089),Xo=function(ht,Nt){return z.createElement(Mo.Z,(0,me.Z)({},ht,{ref:Nt,icon:bo}))},lo=z.forwardRef(Xo),So=ve(7699),os=ve(57838);function rs(lt){const ht=z.useRef(lt),Nt=(0,os.Z)();return[()=>ht.current,Ht=>{ht.current=Ht,Nt()}]}var cs=ve(71577),Lo=ve(84567),xo=ve(85418),ya=ve(32983),Da=ve(68508),ro=ve(76529),po=ve(78045),Wo=ve(79870),us=ve(72395),xs=ve(69677);function Js(lt){let{value:ht,onChange:Nt,filterSearch:Ht,tablePrefixCls:qt,locale:ln}=lt;return Ht?z.createElement("div",{className:`${qt}-filter-dropdown-search`},z.createElement(xs.default,{prefix:z.createElement(us.Z,null),placeholder:ln.filterSearchPlaceholder,onChange:Nt,value:ht,htmlSize:1,className:`${qt}-filter-dropdown-search-input`})):null}var Fs=Js,ds=ve(92389);const $s=lt=>{const{keyCode:ht}=lt;ht===ds.Z.ENTER&<.stopPropagation()};var Aa=z.forwardRef((lt,ht)=>z.createElement("div",{className:lt.className,onClick:Nt=>Nt.stopPropagation(),onKeyDown:$s,ref:ht},lt.children));function fo(lt){let ht=[];return(lt||[]).forEach(Nt=>{let{value:Ht,children:qt}=Nt;ht.push(Ht),qt&&(ht=[].concat((0,Oi.Z)(ht),(0,Oi.Z)(fo(qt))))}),ht}function ko(lt){return lt.some(ht=>{let{children:Nt}=ht;return Nt})}function fs(lt,ht){return typeof ht=="string"||typeof ht=="number"?ht==null?void 0:ht.toString().toLowerCase().includes(lt.trim().toLowerCase()):!1}function ss(lt){let{filters:ht,prefixCls:Nt,filteredKeys:Ht,filterMultiple:qt,searchValue:ln,filterSearch:Dn}=lt;return ht.map(($n,Rn)=>{const tr=String($n.value);if($n.children)return{key:tr||Rn,label:$n.text,popupClassName:`${Nt}-dropdown-submenu`,children:ss({filters:$n.children,prefixCls:Nt,filteredKeys:Ht,filterMultiple:qt,searchValue:ln,filterSearch:Dn})};const mr=qt?Lo.default:po.ZP,En={key:$n.value!==void 0?tr:Rn,label:z.createElement(z.Fragment,null,z.createElement(mr,{checked:Ht.includes(tr)}),z.createElement("span",null,$n.text))};return ln.trim()?typeof Dn=="function"?Dn(ln,$n)?En:null:fs(ln,$n.text)?En:null:En})}function jl(lt){var ht,Nt;const{tablePrefixCls:Ht,prefixCls:qt,column:ln,dropdownPrefixCls:Dn,columnKey:$n,filterMultiple:Rn,filterMode:tr="menu",filterSearch:mr=!1,filterState:En,triggerFilter:Lr,locale:jr,children:$r,getPopupContainer:Yr}=lt,{filterDropdownOpen:Kr,onFilterDropdownOpenChange:ci,filterResetToDefaultFilteredValue:ii,defaultFilteredValue:Si,filterDropdownVisible:Yi,onFilterDropdownVisibleChange:Ui}=ln,[Gi,xa]=z.useState(!1),Ua=!!(En&&(!((ht=En.filteredKeys)===null||ht===void 0)&&ht.length||En.forceFiltered)),ji=Mi=>{xa(Mi),ci==null||ci(Mi),Ui==null||Ui(Mi)},Hi=(Nt=Kr!=null?Kr:Yi)!==null&&Nt!==void 0?Nt:Gi,Fi=En==null?void 0:En.filteredKeys,[di,Zi]=rs(Fi||[]),wa=Mi=>{let{selectedKeys:Ka}=Mi;Zi(Ka)},Qa=(Mi,Ka)=>{let{node:To,checked:wo}=Ka;wa(Rn?{selectedKeys:Mi}:{selectedKeys:wo&&To.key?[To.key]:[]})};z.useEffect(()=>{Gi&&wa({selectedKeys:Fi||[]})},[Fi]);const[ja,Sa]=z.useState([]),io=Mi=>{Sa(Mi)},[qa,zo]=z.useState(""),ao=Mi=>{const{value:Ka}=Mi.target;zo(Ka)};z.useEffect(()=>{Gi||zo("")},[Gi]);const es=Mi=>{const Ka=Mi&&Mi.length?Mi:null;if(Ka===null&&(!En||!En.filteredKeys)||(0,So.Z)(Ka,En==null?void 0:En.filteredKeys,!0))return null;Lr({column:ln,key:$n,filteredKeys:Ka})},ts=()=>{ji(!1),es(di())},Ha=function(){let{confirm:Mi,closeDropdown:Ka}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Mi&&es([]),Ka&&ji(!1),zo(""),Zi(ii?(Si||[]).map(To=>String(To)):[])},Ts=function(){let{closeDropdown:Mi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Mi&&ji(!1),es(di())},Io=Mi=>{Mi&&Fi!==void 0&&Zi(Fi||[]),ji(Mi),!Mi&&!ln.filterDropdown&&ts()},Uo=Be()({[`${Dn}-menu-without-submenu`]:!ko(ln.filters||[])}),No=Mi=>{if(Mi.target.checked){const Ka=fo(ln==null?void 0:ln.filters).map(To=>String(To));Zi(Ka)}else Zi([])},$a=Mi=>{let{filters:Ka}=Mi;return(Ka||[]).map((To,wo)=>{const sl=String(To.value),As={title:To.text,key:To.value!==void 0?sl:wo};return To.children&&(As.children=$a({filters:To.children})),As})},Ti=Mi=>{var Ka;return Object.assign(Object.assign({},Mi),{text:Mi.title,value:Mi.key,children:((Ka=Mi.children)===null||Ka===void 0?void 0:Ka.map(To=>Ti(To)))||[]})};let da;if(typeof ln.filterDropdown=="function")da=ln.filterDropdown({prefixCls:`${Dn}-custom`,setSelectedKeys:Mi=>wa({selectedKeys:Mi}),selectedKeys:di(),confirm:Ts,clearFilters:Ha,filters:ln.filters,visible:Hi,close:()=>{ji(!1)}});else if(ln.filterDropdown)da=ln.filterDropdown;else{const Mi=di()||[],Ka=()=>(ln.filters||[]).length===0?z.createElement(ya.Z,{image:ya.Z.PRESENTED_IMAGE_SIMPLE,description:jr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):tr==="tree"?z.createElement(z.Fragment,null,z.createElement(Fs,{filterSearch:mr,value:qa,onChange:ao,tablePrefixCls:Ht,locale:jr}),z.createElement("div",{className:`${Ht}-filter-dropdown-tree`},Rn?z.createElement(Lo.default,{checked:Mi.length===fo(ln.filters).length,indeterminate:Mi.length>0&&Mi.length<fo(ln.filters).length,className:`${Ht}-filter-dropdown-checkall`,onChange:No},jr.filterCheckall):null,z.createElement(Wo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Rn,checkStrictly:!Rn,className:`${Dn}-menu`,onCheck:Qa,checkedKeys:Mi,selectedKeys:Mi,showIcon:!1,treeData:$a({filters:ln.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:qa.trim()?wo=>typeof mr=="function"?mr(qa,Ti(wo)):fs(qa,wo.title):void 0}))):z.createElement(z.Fragment,null,z.createElement(Fs,{filterSearch:mr,value:qa,onChange:ao,tablePrefixCls:Ht,locale:jr}),z.createElement(Da.default,{selectable:!0,multiple:Rn,prefixCls:`${Dn}-menu`,className:Uo,onSelect:wa,onDeselect:wa,selectedKeys:Mi,getPopupContainer:Yr,openKeys:ja,onOpenChange:io,items:ss({filters:ln.filters||[],filterSearch:mr,prefixCls:qt,filteredKeys:di(),filterMultiple:Rn,searchValue:qa})})),To=()=>ii?(0,So.Z)((Si||[]).map(wo=>String(wo)),Mi,!0):Mi.length===0;da=z.createElement(z.Fragment,null,Ka(),z.createElement("div",{className:`${qt}-dropdown-btns`},z.createElement(cs.ZP,{type:"link",size:"small",disabled:To(),onClick:()=>Ha()},jr.filterReset),z.createElement(cs.ZP,{type:"primary",size:"small",onClick:ts},jr.filterConfirm)))}ln.filterDropdown&&(da=z.createElement(ro.J,{selectable:void 0},da));const Ca=()=>z.createElement(Aa,{className:`${qt}-dropdown`},da);let Wi;typeof ln.filterIcon=="function"?Wi=ln.filterIcon(Ua):ln.filterIcon?Wi=ln.filterIcon:Wi=z.createElement(lo,null);const{direction:Do}=z.useContext(Ja.E_);return z.createElement("div",{className:`${qt}-column`},z.createElement("span",{className:`${Ht}-column-title`},$r),z.createElement(xo.Z,{dropdownRender:Ca,trigger:["click"],open:Hi,onOpenChange:Io,getPopupContainer:Yr,placement:Do==="rtl"?"bottomLeft":"bottomRight"},z.createElement("span",{role:"button",tabIndex:-1,className:Be()(`${qt}-trigger`,{active:Ua}),onClick:Mi=>{Mi.stopPropagation()}},Wi)))}var vl=jl;function Sl(lt,ht,Nt){let Ht=[];return(lt||[]).forEach((qt,ln)=>{var Dn;const $n=ra(ln,Nt);if(qt.filters||"filterDropdown"in qt||"onFilter"in qt)if("filteredValue"in qt){let Rn=qt.filteredValue;"filterDropdown"in qt||(Rn=(Dn=Rn==null?void 0:Rn.map(String))!==null&&Dn!==void 0?Dn:Rn),Ht.push({column:qt,key:Fa(qt,$n),filteredKeys:Rn,forceFiltered:qt.filtered})}else Ht.push({column:qt,key:Fa(qt,$n),filteredKeys:ht&&qt.defaultFilteredValue?qt.defaultFilteredValue:void 0,forceFiltered:qt.filtered});"children"in qt&&(Ht=[].concat((0,Oi.Z)(Ht),(0,Oi.Z)(Sl(qt.children,ht,$n))))}),Ht}function Xa(lt,ht,Nt,Ht,qt,ln,Dn,$n){return Nt.map((Rn,tr)=>{const mr=ra(tr,$n),{filterMultiple:En=!0,filterMode:Lr,filterSearch:jr}=Rn;let $r=Rn;if($r.filters||$r.filterDropdown){const Yr=Fa($r,mr),Kr=Ht.find(ci=>{let{key:ii}=ci;return Yr===ii});$r=Object.assign(Object.assign({},$r),{title:ci=>z.createElement(vl,{tablePrefixCls:lt,prefixCls:`${lt}-filter`,dropdownPrefixCls:ht,column:$r,columnKey:Yr,filterState:Kr,filterMultiple:En,filterMode:Lr,filterSearch:jr,triggerFilter:ln,locale:qt,getPopupContainer:Dn},no(Rn.title,ci))})}return"children"in $r&&($r=Object.assign(Object.assign({},$r),{children:Xa(lt,ht,$r.children,Ht,qt,ln,Dn,mr)})),$r})}function fi(lt){const ht={};return lt.forEach(Nt=>{let{key:Ht,filteredKeys:qt,column:ln}=Nt;const{filters:Dn,filterDropdown:$n}=ln;if($n)ht[Ht]=qt||null;else if(Array.isArray(qt)){const Rn=fo(Dn);ht[Ht]=Rn.filter(tr=>qt.includes(String(tr)))}else ht[Ht]=null}),ht}function fa(lt,ht){return ht.reduce((Nt,Ht)=>{const{column:{onFilter:qt,filters:ln},filteredKeys:Dn}=Ht;return qt&&Dn&&Dn.length?Nt.filter($n=>Dn.some(Rn=>{const tr=fo(ln),mr=tr.findIndex(Lr=>String(Lr)===String(Rn)),En=mr!==-1?tr[mr]:Rn;return qt(En,$n)})):Nt},lt)}const ha=lt=>lt.flatMap(ht=>"children"in ht?[ht].concat((0,Oi.Z)(ha(ht.children||[]))):[ht]);function ka(lt){let{prefixCls:ht,dropdownPrefixCls:Nt,mergedColumns:Ht,onFilterChange:qt,getPopupContainer:ln,locale:Dn}=lt;const $n=z.useMemo(()=>ha(Ht||[]),[Ht]),[Rn,tr]=z.useState(()=>Sl($n,!0)),mr=z.useMemo(()=>{const $r=Sl($n,!1);if($r.length===0)return $r;let Yr=!0,Kr=!0;if($r.forEach(ci=>{let{filteredKeys:ii}=ci;ii!==void 0?Yr=!1:Kr=!1}),Yr){const ci=($n||[]).map((ii,Si)=>Fa(ii,ra(Si)));return Rn.filter(ii=>{let{key:Si}=ii;return ci.includes(Si)}).map(ii=>{const Si=$n[ci.findIndex(Yi=>Yi===ii.key)];return Object.assign(Object.assign({},ii),{column:Object.assign(Object.assign({},ii.column),Si),forceFiltered:Si.filtered})})}return $r},[$n,Rn]),En=z.useMemo(()=>fi(mr),[mr]),Lr=$r=>{const Yr=mr.filter(Kr=>{let{key:ci}=Kr;return ci!==$r.key});Yr.push($r),tr(Yr),qt(fi(Yr),Yr)};return[$r=>Xa(ht,Nt,$r,mr,Dn,Lr,ln),mr,En]}var Zo=ka;function Yo(lt,ht,Nt){const Ht=z.useRef({});function qt(ln){if(!Ht.current||Ht.current.data!==lt||Ht.current.childrenColumnName!==ht||Ht.current.getRowKey!==Nt){let $n=function(Rn){Rn.forEach((tr,mr)=>{const En=Nt(tr,mr);Dn.set(En,tr),tr&&typeof tr=="object"&&ht in tr&&$n(tr[ht]||[])})};const Dn=new Map;$n(lt),Ht.current={data:lt,childrenColumnName:ht,kvMap:Dn,getRowKey:Nt}}return Ht.current.kvMap.get(ln)}return[qt]}var il=ve(38780),dl=function(lt,ht){var Nt={};for(var Ht in lt)Object.prototype.hasOwnProperty.call(lt,Ht)&&ht.indexOf(Ht)<0&&(Nt[Ht]=lt[Ht]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Ht=Object.getOwnPropertySymbols(lt);qt<Ht.length;qt++)ht.indexOf(Ht[qt])<0&&Object.prototype.propertyIsEnumerable.call(lt,Ht[qt])&&(Nt[Ht[qt]]=lt[Ht[qt]]);return Nt};const Cl=10;function mo(lt,ht){const Nt={current:lt.current,pageSize:lt.pageSize};return Object.keys(ht&&typeof ht=="object"?ht:{}).forEach(qt=>{const ln=lt[qt];typeof ln!="function"&&(Nt[qt]=ln)}),Nt}function Qs(lt,ht,Nt){const Ht=Nt&&typeof Nt=="object"?Nt:{},{total:qt=0}=Ht,ln=dl(Ht,["total"]),[Dn,$n]=(0,z.useState)(()=>({current:"defaultCurrent"in ln?ln.defaultCurrent:1,pageSize:"defaultPageSize"in ln?ln.defaultPageSize:Cl})),Rn=(0,il.Z)(Dn,ln,{total:qt>0?qt:lt}),tr=Math.ceil((qt||lt)/Rn.pageSize);Rn.current>tr&&(Rn.current=tr||1);const mr=(Lr,jr)=>{$n({current:Lr!=null?Lr:1,pageSize:jr||Rn.pageSize})},En=(Lr,jr)=>{var $r;Nt&&(($r=Nt.onChange)===null||$r===void 0||$r.call(Nt,Lr,jr)),mr(Lr,jr),ht(Lr,jr||(Rn==null?void 0:Rn.pageSize))};return Nt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Rn),{onChange:En}),mr]}var Ll=Qs,Sc=ve(42922),Gl=ve(29873),El=ve(97153),al=ve(83898),ec=ve(5663);const fl={},tc="SELECT_ALL",is="SELECT_INVERT",Co="SELECT_NONE",qo=[],ws=(lt,ht)=>{let Nt=[];return(ht||[]).forEach(Ht=>{Nt.push(Ht),Ht&&typeof Ht=="object"&< in Ht&&(Nt=[].concat((0,Oi.Z)(Nt),(0,Oi.Z)(ws(lt,Ht[lt]))))}),Nt};var ol=(lt,ht)=>{const{preserveSelectedRowKeys:Nt,selectedRowKeys:Ht,defaultSelectedRowKeys:qt,getCheckboxProps:ln,onChange:Dn,onSelect:$n,onSelectAll:Rn,onSelectInvert:tr,onSelectNone:mr,onSelectMultiple:En,columnWidth:Lr,type:jr,selections:$r,fixed:Yr,renderCell:Kr,hideSelectAll:ci,checkStrictly:ii=!0}=ht||{},{prefixCls:Si,data:Yi,pageData:Ui,getRecordByKey:Gi,getRowKey:xa,expandType:Ua,childrenColumnName:ji,locale:Hi,getPopupContainer:Fi}=lt,[di,Zi]=(0,ec.Z)(Ht||qt||qo,{value:Ht}),wa=z.useRef(new Map),Qa=(0,z.useCallback)(Ti=>{if(Nt){const da=new Map;Ti.forEach(Ca=>{let Wi=Gi(Ca);!Wi&&wa.current.has(Ca)&&(Wi=wa.current.get(Ca)),da.set(Ca,Wi)}),wa.current=da}},[Gi,Nt]);z.useEffect(()=>{Qa(di)},[di]);const{keyEntities:ja}=(0,z.useMemo)(()=>{if(ii)return{keyEntities:null};let Ti=Yi;if(Nt){const da=new Set(Yi.map((Wi,Do)=>xa(Wi,Do))),Ca=Array.from(wa.current).reduce((Wi,Do)=>{let[Mi,Ka]=Do;return da.has(Mi)?Wi:Wi.concat(Ka)},[]);Ti=[].concat((0,Oi.Z)(Ti),(0,Oi.Z)(Ca))}return(0,al.I8)(Ti,{externalGetKey:xa,childrenPropName:ji})},[Yi,xa,ii,ji,Nt]),Sa=(0,z.useMemo)(()=>ws(ji,Ui),[ji,Ui]),io=(0,z.useMemo)(()=>{const Ti=new Map;return Sa.forEach((da,Ca)=>{const Wi=xa(da,Ca),Do=(ln?ln(da):null)||{};Ti.set(Wi,Do)}),Ti},[Sa,xa,ln]),qa=(0,z.useCallback)(Ti=>{var da;return!!(!((da=io.get(xa(Ti)))===null||da===void 0)&&da.disabled)},[io,xa]),[zo,ao]=(0,z.useMemo)(()=>{if(ii)return[di||[],[]];const{checkedKeys:Ti,halfCheckedKeys:da}=(0,El.S)(di,!0,ja,qa);return[Ti||[],da]},[di,ii,ja,qa]),es=(0,z.useMemo)(()=>{const Ti=jr==="radio"?zo.slice(0,1):zo;return new Set(Ti)},[zo,jr]),ts=(0,z.useMemo)(()=>jr==="radio"?new Set:new Set(ao),[ao,jr]),[Ha,Ts]=(0,z.useState)(null);z.useEffect(()=>{ht||Zi(qo)},[!!ht]);const Io=(0,z.useCallback)((Ti,da)=>{let Ca,Wi;Qa(Ti),Nt?(Ca=Ti,Wi=Ti.map(Do=>wa.current.get(Do))):(Ca=[],Wi=[],Ti.forEach(Do=>{const Mi=Gi(Do);Mi!==void 0&&(Ca.push(Do),Wi.push(Mi))})),Zi(Ca),Dn==null||Dn(Ca,Wi,{type:da})},[Zi,Gi,Dn,Nt]),Uo=(0,z.useCallback)((Ti,da,Ca,Wi)=>{if($n){const Do=Ca.map(Mi=>Gi(Mi));$n(Gi(Ti),da,Do,Wi)}Io(Ca,"single")},[$n,Gi,Io]),No=(0,z.useMemo)(()=>!$r||ci?null:($r===!0?[tc,is,Co]:$r).map(da=>da===tc?{key:"all",text:Hi.selectionAll,onSelect(){Io(Yi.map((Ca,Wi)=>xa(Ca,Wi)).filter(Ca=>{const Wi=io.get(Ca);return!(Wi!=null&&Wi.disabled)||es.has(Ca)}),"all")}}:da===is?{key:"invert",text:Hi.selectInvert,onSelect(){const Ca=new Set(es);Ui.forEach((Do,Mi)=>{const Ka=xa(Do,Mi),To=io.get(Ka);To!=null&&To.disabled||(Ca.has(Ka)?Ca.delete(Ka):Ca.add(Ka))});const Wi=Array.from(Ca);tr&&tr(Wi),Io(Wi,"invert")}}:da===Co?{key:"none",text:Hi.selectNone,onSelect(){mr==null||mr(),Io(Array.from(es).filter(Ca=>{const Wi=io.get(Ca);return Wi==null?void 0:Wi.disabled}),"none")}}:da).map(da=>Object.assign(Object.assign({},da),{onSelect:function(){for(var Ca,Wi,Do=arguments.length,Mi=new Array(Do),Ka=0;Ka<Do;Ka++)Mi[Ka]=arguments[Ka];(Wi=da.onSelect)===null||Wi===void 0||(Ca=Wi).call.apply(Ca,[da].concat(Mi)),Ts(null)}})),[$r,es,Ui,xa,tr,Io]);return[(0,z.useCallback)(Ti=>{var da;if(!ht)return Ti.filter(Ao=>Ao!==fl);let Ca=(0,Oi.Z)(Ti);const Wi=new Set(es),Do=Sa.map(xa).filter(Ao=>!io.get(Ao).disabled),Mi=Do.every(Ao=>Wi.has(Ao)),Ka=Do.some(Ao=>Wi.has(Ao)),To=()=>{const Ao=[];Mi?Do.forEach(ns=>{Wi.delete(ns),Ao.push(ns)}):Do.forEach(ns=>{Wi.has(ns)||(Wi.add(ns),Ao.push(ns))});const Ro=Array.from(Wi);Rn==null||Rn(!Mi,Ro.map(ns=>Gi(ns)),Ao.map(ns=>Gi(ns))),Io(Ro,"all"),Ts(null)};let wo;if(jr!=="radio"){let Ao;if(No){const oo={getPopupContainer:Fi,items:No.map((Os,Ks)=>{const{key:Us,text:kl,onSelect:Es}=Os;return{key:Us!=null?Us:Ks,onClick:()=>{Es==null||Es(Do)},label:kl}})};Ao=z.createElement("div",{className:`${Si}-selection-extra`},z.createElement(xo.Z,{menu:oo,getPopupContainer:Fi},z.createElement("span",null,z.createElement(Sc.Z,null))))}const Ro=Sa.map((oo,Os)=>{const Ks=xa(oo,Os),Us=io.get(Ks)||{};return Object.assign({checked:Wi.has(Ks)},Us)}).filter(oo=>{let{disabled:Os}=oo;return Os}),ns=!!Ro.length&&Ro.length===Sa.length,Ya=ns&&Ro.every(oo=>{let{checked:Os}=oo;return Os}),Ns=ns&&Ro.some(oo=>{let{checked:Os}=oo;return Os});wo=!ci&&z.createElement("div",{className:`${Si}-selection`},z.createElement(Lo.default,{checked:ns?Ya:!!Sa.length&&Mi,indeterminate:ns?!Ya&&Ns:!Mi&&Ka,onChange:To,disabled:Sa.length===0||ns,"aria-label":Ao?"Custom selection":"Select all",skipGroup:!0}),Ao)}let sl;jr==="radio"?sl=(Ao,Ro,ns)=>{const Ya=xa(Ro,ns),Ns=Wi.has(Ya);return{node:z.createElement(po.ZP,Object.assign({},io.get(Ya),{checked:Ns,onClick:oo=>oo.stopPropagation(),onChange:oo=>{Wi.has(Ya)||Uo(Ya,!0,[Ya],oo.nativeEvent)}})),checked:Ns}}:sl=(Ao,Ro,ns)=>{var Ya;const Ns=xa(Ro,ns),oo=Wi.has(Ns),Os=ts.has(Ns),Ks=io.get(Ns);let Us;return Ua==="nest"?Us=Os:Us=(Ya=Ks==null?void 0:Ks.indeterminate)!==null&&Ya!==void 0?Ya:Os,{node:z.createElement(Lo.default,Object.assign({},Ks,{indeterminate:Us,checked:oo,skipGroup:!0,onClick:kl=>kl.stopPropagation(),onChange:kl=>{let{nativeEvent:Es}=kl;const{shiftKey:_l}=Es;let Ms=-1,Hs=-1;if(_l&&ii){const Ws=new Set([Ha,Ns]);Do.some((ks,ms)=>{if(Ws.has(ks))if(Ms===-1)Ms=ms;else return Hs=ms,!0;return!1})}if(Hs!==-1&&Ms!==Hs&&ii){const Ws=Do.slice(Ms,Hs+1),ks=[];oo?Ws.forEach(ls=>{Wi.has(ls)&&(ks.push(ls),Wi.delete(ls))}):Ws.forEach(ls=>{Wi.has(ls)||(ks.push(ls),Wi.add(ls))});const ms=Array.from(Wi);En==null||En(!oo,ms.map(ls=>Gi(ls)),ks.map(ls=>Gi(ls))),Io(ms,"multiple")}else{const Ws=zo;if(ii){const ks=oo?(0,Gl._5)(Ws,Ns):(0,Gl.L0)(Ws,Ns);Uo(Ns,!oo,ks,Es)}else{const ks=(0,El.S)([].concat((0,Oi.Z)(Ws),[Ns]),!0,ja,qa),{checkedKeys:ms,halfCheckedKeys:ls}=ks;let Yl=ms;if(oo){const Ec=new Set(ms);Ec.delete(Ns),Yl=(0,El.S)(Array.from(Ec),{checked:!1,halfCheckedKeys:ls},ja,qa).checkedKeys}Uo(Ns,!oo,Yl,Es)}}Ts(oo?null:Ns)}})),checked:oo}};const As=(Ao,Ro,ns)=>{const{node:Ya,checked:Ns}=sl(Ao,Ro,ns);return Kr?Kr(Ns,Ro,ns,Ya):Ya};if(!Ca.includes(fl))if(Ca.findIndex(Ao=>{var Ro;return((Ro=Ao[Gr])===null||Ro===void 0?void 0:Ro.columnType)==="EXPAND_COLUMN"})===0){const[Ao,...Ro]=Ca;Ca=[Ao,fl].concat((0,Oi.Z)(Ro))}else Ca=[fl].concat((0,Oi.Z)(Ca));const Ml=Ca.indexOf(fl);Ca=Ca.filter((Ao,Ro)=>Ao!==fl||Ro===Ml);const Hr=Ca[Ml-1],$l=Ca[Ml+1];let Cs=Yr;Cs===void 0&&(($l==null?void 0:$l.fixed)!==void 0?Cs=$l.fixed:(Hr==null?void 0:Hr.fixed)!==void 0&&(Cs=Hr.fixed)),Cs&&Hr&&((da=Hr[Gr])===null||da===void 0?void 0:da.columnType)==="EXPAND_COLUMN"&&Hr.fixed===void 0&&(Hr.fixed=Cs);const hl=Be()(`${Si}-selection-col`,{[`${Si}-selection-col-with-dropdown`]:$r&&jr==="checkbox"}),bl={fixed:Cs,width:Lr,className:`${Si}-selection-column`,title:ht.columnTitle||wo,render:As,onCell:ht.onCell,[Gr]:{className:hl}};return Ca.map(Ao=>Ao===fl?bl:Ao)},[xa,Sa,ht,zo,es,ts,Lr,No,Ua,Ha,io,En,Uo,qa]),es]},Ps=ve(33463),zl=ve(28575),Hc=ve(83062);const hc="ascend",Pc="descend";function Lc(lt){return typeof lt.sorter=="object"&&typeof lt.sorter.multiple=="number"?lt.sorter.multiple:!1}function nc(lt){return typeof lt=="function"?lt:lt&&typeof lt=="object"&<.compare?lt.compare:!1}function rc(lt,ht){return ht?lt[lt.indexOf(ht)+1]:lt[0]}function Rc(lt,ht,Nt){let Ht=[];function qt(ln,Dn){Ht.push({column:ln,key:Fa(ln,Dn),multiplePriority:Lc(ln),sortOrder:ln.sortOrder})}return(lt||[]).forEach((ln,Dn)=>{const $n=ra(Dn,Nt);ln.children?("sortOrder"in ln&&qt(ln,$n),Ht=[].concat((0,Oi.Z)(Ht),(0,Oi.Z)(Rc(ln.children,ht,$n)))):ln.sorter&&("sortOrder"in ln?qt(ln,$n):ht&&ln.defaultSortOrder&&Ht.push({column:ln,key:Fa(ln,$n),multiplePriority:Lc(ln),sortOrder:ln.defaultSortOrder}))}),Ht}function Nc(lt,ht,Nt,Ht,qt,ln,Dn,$n){return(ht||[]).map((Rn,tr)=>{const mr=ra(tr,$n);let En=Rn;if(En.sorter){const Lr=En.sortDirections||qt,jr=En.showSorterTooltip===void 0?Dn:En.showSorterTooltip,$r=Fa(En,mr),Yr=Nt.find(Ua=>{let{key:ji}=Ua;return ji===$r}),Kr=Yr?Yr.sortOrder:null,ci=rc(Lr,Kr);let ii;if(Rn.sortIcon)ii=Rn.sortIcon({sortOrder:Kr});else{const Ua=Lr.includes(hc)&&z.createElement(zl.Z,{className:Be()(`${lt}-column-sorter-up`,{active:Kr===hc})}),ji=Lr.includes(Pc)&&z.createElement(Ps.Z,{className:Be()(`${lt}-column-sorter-down`,{active:Kr===Pc})});ii=z.createElement("span",{className:Be()(`${lt}-column-sorter`,{[`${lt}-column-sorter-full`]:!!(Ua&&ji)})},z.createElement("span",{className:`${lt}-column-sorter-inner`,"aria-hidden":"true"},Ua,ji))}const{cancelSort:Si,triggerAsc:Yi,triggerDesc:Ui}=ln||{};let Gi=Si;ci===Pc?Gi=Ui:ci===hc&&(Gi=Yi);const xa=typeof jr=="object"?jr:{title:Gi};En=Object.assign(Object.assign({},En),{className:Be()(En.className,{[`${lt}-column-sort`]:Kr}),title:Ua=>{const ji=z.createElement("div",{className:`${lt}-column-sorters`},z.createElement("span",{className:`${lt}-column-title`},no(Rn.title,Ua)),ii);return jr?z.createElement(Hc.Z,Object.assign({},xa),ji):ji},onHeaderCell:Ua=>{const ji=Rn.onHeaderCell&&Rn.onHeaderCell(Ua)||{},Hi=ji.onClick,Fi=ji.onKeyDown;ji.onClick=wa=>{Ht({column:Rn,key:$r,sortOrder:ci,multiplePriority:Lc(Rn)}),Hi==null||Hi(wa)},ji.onKeyDown=wa=>{wa.keyCode===ds.Z.ENTER&&(Ht({column:Rn,key:$r,sortOrder:ci,multiplePriority:Lc(Rn)}),Fi==null||Fi(wa))};const di=yo(Rn.title,{}),Zi=di==null?void 0:di.toString();return Kr?ji["aria-sort"]=Kr==="ascend"?"ascending":"descending":ji["aria-label"]=Zi||"",ji.className=Be()(ji.className,`${lt}-column-has-sorters`),ji.tabIndex=0,Rn.ellipsis&&(ji.title=(di!=null?di:"").toString()),ji}})}return"children"in En&&(En=Object.assign(Object.assign({},En),{children:Nc(lt,En.children,Nt,Ht,qt,ln,Dn,mr)})),En})}function _o(lt){const{column:ht,sortOrder:Nt}=lt;return{column:ht,order:Nt,field:ht.dataIndex,columnKey:ht.key}}function co(lt){const ht=lt.filter(Nt=>{let{sortOrder:Ht}=Nt;return Ht}).map(_o);return ht.length===0&<.length?Object.assign(Object.assign({},_o(lt[lt.length-1])),{column:void 0}):ht.length<=1?ht[0]||{}:ht}function zs(lt,ht,Nt){const Ht=ht.slice().sort((Dn,$n)=>$n.multiplePriority-Dn.multiplePriority),qt=lt.slice(),ln=Ht.filter(Dn=>{let{column:{sorter:$n},sortOrder:Rn}=Dn;return nc($n)&&Rn});return ln.length?qt.sort((Dn,$n)=>{for(let Rn=0;Rn<ln.length;Rn+=1){const tr=ln[Rn],{column:{sorter:mr},sortOrder:En}=tr,Lr=nc(mr);if(Lr&&En){const jr=Lr(Dn,$n,En);if(jr!==0)return En===hc?jr:-jr}}return 0}).map(Dn=>{const $n=Dn[Nt];return $n?Object.assign(Object.assign({},Dn),{[Nt]:zs($n,ht,Nt)}):Dn}):qt}function gl(lt){let{prefixCls:ht,mergedColumns:Nt,onSorterChange:Ht,sortDirections:qt,tableLocale:ln,showSorterTooltip:Dn}=lt;const[$n,Rn]=z.useState(Rc(Nt,!0)),tr=z.useMemo(()=>{let $r=!0;const Yr=Rc(Nt,!1);if(!Yr.length)return $n;const Kr=[];function ci(Si){$r?Kr.push(Si):Kr.push(Object.assign(Object.assign({},Si),{sortOrder:null}))}let ii=null;return Yr.forEach(Si=>{ii===null?(ci(Si),Si.sortOrder&&(Si.multiplePriority===!1?$r=!1:ii=!0)):(ii&&Si.multiplePriority!==!1||($r=!1),ci(Si))}),Kr},[Nt,$n]),mr=z.useMemo(()=>{const $r=tr.map(Yr=>{let{column:Kr,sortOrder:ci}=Yr;return{column:Kr,order:ci}});return{sortColumns:$r,sortColumn:$r[0]&&$r[0].column,sortOrder:$r[0]&&$r[0].order}},[tr]);function En($r){let Yr;$r.multiplePriority===!1||!tr.length||tr[0].multiplePriority===!1?Yr=[$r]:Yr=[].concat((0,Oi.Z)(tr.filter(Kr=>{let{key:ci}=Kr;return ci!==$r.key})),[$r]),Rn(Yr),Ht(co(Yr),Yr)}return[$r=>Nc(ht,$r,tr,En,qt,ln,Dn),tr,mr,()=>co(tr)]}function uo(lt,ht){return lt.map(Nt=>{const Ht=Object.assign({},Nt);return Ht.title=no(Nt.title,ht),"children"in Ht&&(Ht.children=uo(Ht.children,ht)),Ht})}function Ko(lt){return[z.useCallback(Nt=>uo(Nt,lt),[lt])]}var $o=wr((lt,ht)=>{const{_renderTimes:Nt}=lt,{_renderTimes:Ht}=ht;return Nt!==Ht}),Ss=Xi((lt,ht)=>{const{_renderTimes:Nt}=lt,{_renderTimes:Ht}=ht;return Nt!==Ht}),el=ve(84780),Kl=ve(14747),Fl=ve(67968),Wc=ve(45503),kd=lt=>{const{componentCls:ht}=lt,Nt=`${lt.lineWidth}px ${lt.lineType} ${lt.tableBorderColor}`,Ht=(qt,ln,Dn)=>({[`&${ht}-${qt}`]:{[`> ${ht}-container`]:{[`> ${ht}-content, > ${ht}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ht}-expanded-row-fixed`]:{margin:`-${ln}px -${Dn+lt.lineWidth}px`}}}}}});return{[`${ht}-wrapper`]:{[`${ht}${ht}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ht}-title`]:{border:Nt,borderBottom:0},[`> ${ht}-container`]:{borderInlineStart:Nt,borderTop:Nt,[`
|
|
|
> ${ht}-content,
|
|
|
> ${ht}-header,
|
|
|
> ${ht}-body,
|
|
|
> ${ht}-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:Nt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Nt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ht}-cell-fix-right-first::after`]:{borderInlineEnd:Nt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ht}-expanded-row-fixed`]:{margin:`-${lt.tablePaddingVertical}px -${lt.tablePaddingHorizontal+lt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:lt.lineWidth,bottom:0,borderInlineEnd:Nt,content:'""'}}}}}},[`&${ht}-scroll-horizontal`]:{[`> ${ht}-container > ${ht}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ht}-expanded-row,
|
|
|
> tr${ht}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ht("middle",lt.tablePaddingVerticalMiddle,lt.tablePaddingHorizontalMiddle)),Ht("small",lt.tablePaddingVerticalSmall,lt.tablePaddingHorizontalSmall)),{[`> ${ht}-footer`]:{border:Nt,borderTop:0}}),[`${ht}-cell`]:{[`${ht}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${lt.lineWidth}px 0 ${lt.lineWidth}px ${lt.tableHeaderBg}`}},[`${ht}-bordered ${ht}-cell-scrollbar`]:{borderInlineEnd:Nt}}}},Xu=lt=>{const{componentCls:ht}=lt;return{[`${ht}-wrapper`]:{[`${ht}-cell-ellipsis`]:Object.assign(Object.assign({},Kl.vS),{wordBreak:"keep-all",[`
|
|
|
&${ht}-cell-fix-left-last,
|
|
|
&${ht}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ht}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ht}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},_d=lt=>{const{componentCls:ht}=lt;return{[`${ht}-wrapper`]:{[`${ht}-tbody > tr${ht}-placeholder`]:{textAlign:"center",color:lt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:lt.colorBgContainer}}}}},_u=ve(49867),Qu=lt=>{const{componentCls:ht,antCls:Nt,controlInteractiveSize:Ht,motionDurationSlow:qt,lineWidth:ln,paddingXS:Dn,lineType:$n,tableBorderColor:Rn,tableExpandIconBg:tr,tableExpandColumnWidth:mr,borderRadius:En,fontSize:Lr,fontSizeSM:jr,lineHeight:$r,tablePaddingVertical:Yr,tablePaddingHorizontal:Kr,tableExpandedRowBg:ci,paddingXXS:ii}=lt,Si=Ht/2-ln,Yi=Si*2+ln*3,Ui=`${ln}px ${$n} ${Rn}`,Gi=ii-ln;return{[`${ht}-wrapper`]:{[`${ht}-expand-icon-col`]:{width:mr},[`${ht}-row-expand-icon-cell`]:{textAlign:"center",[`${ht}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ht}-row-indent`]:{height:1,float:"left"},[`${ht}-row-expand-icon`]:Object.assign(Object.assign({},(0,_u.N)(lt)),{position:"relative",float:"left",boxSizing:"border-box",width:Yi,height:Yi,padding:0,color:"inherit",lineHeight:`${Yi}px`,background:tr,border:Ui,borderRadius:En,transform:`scale(${Ht/Yi})`,transition:`all ${qt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${qt} ease-out`,content:'""'},"&::before":{top:Si,insetInlineEnd:Gi,insetInlineStart:Gi,height:ln},"&::after":{top:Gi,bottom:Gi,insetInlineStart:Si,width:ln,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"}}),[`${ht}-row-indent + ${ht}-row-expand-icon`]:{marginTop:(Lr*$r-ln*3)/2-Math.ceil((jr*1.4-ln*3)/2),marginInlineEnd:Dn},[`tr${ht}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ci}},[`${Nt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ht}-expanded-row-fixed`]:{position:"relative",margin:`-${Yr}px -${Kr}px`,padding:`${Yr}px ${Kr}px`}}}},Au=lt=>{const{componentCls:ht,antCls:Nt,iconCls:Ht,tableFilterDropdownWidth:qt,tableFilterDropdownSearchWidth:ln,paddingXXS:Dn,paddingXS:$n,colorText:Rn,lineWidth:tr,lineType:mr,tableBorderColor:En,tableHeaderIconColor:Lr,fontSizeSM:jr,tablePaddingHorizontal:$r,borderRadius:Yr,motionDurationSlow:Kr,colorTextDescription:ci,colorPrimary:ii,tableHeaderFilterActiveBg:Si,colorTextDisabled:Yi,tableFilterDropdownBg:Ui,tableFilterDropdownHeight:Gi,controlItemBgHover:xa,controlItemBgActive:Ua,boxShadowSecondary:ji,filterDropdownMenuBg:Hi}=lt,Fi=`${Nt}-dropdown`,di=`${ht}-filter-dropdown`,Zi=`${Nt}-tree`,wa=`${tr}px ${mr} ${En}`;return[{[`${ht}-wrapper`]:{[`${ht}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ht}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Dn,marginInline:`${Dn}px ${-$r/2}px`,padding:`0 ${Dn}px`,color:Lr,fontSize:jr,borderRadius:Yr,cursor:"pointer",transition:`all ${Kr}`,"&:hover":{color:ci,background:Si},"&.active":{color:ii}}}},{[`${Nt}-dropdown`]:{[di]:Object.assign(Object.assign({},(0,Kl.Wf)(lt)),{minWidth:qt,backgroundColor:Ui,borderRadius:Yr,boxShadow:ji,overflow:"hidden",[`${Fi}-menu`]:{maxHeight:Gi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Hi,"&:empty::after":{display:"block",padding:`${$n}px 0`,color:Yi,fontSize:jr,textAlign:"center",content:'"Not Found"'}},[`${di}-tree`]:{paddingBlock:`${$n}px 0`,paddingInline:$n,[Zi]:{padding:0},[`${Zi}-treenode ${Zi}-node-content-wrapper:hover`]:{backgroundColor:xa},[`${Zi}-treenode-checkbox-checked ${Zi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Ua}}},[`${di}-search`]:{padding:$n,borderBottom:wa,"&-input":{input:{minWidth:ln},[Ht]:{color:Yi}}},[`${di}-checkall`]:{width:"100%",marginBottom:Dn,marginInlineStart:Dn},[`${di}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${$n-tr}px ${$n}px`,overflow:"hidden",borderTop:wa}})}},{[`${Nt}-dropdown ${di}, ${di}-submenu`]:{[`${Nt}-checkbox-wrapper + span`]:{paddingInlineStart:$n,color:Rn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Zc=lt=>{const{componentCls:ht,lineWidth:Nt,colorSplit:Ht,motionDurationSlow:qt,zIndexTableFixed:ln,tableBg:Dn,zIndexTableSticky:$n}=lt,Rn=Ht;return{[`${ht}-wrapper`]:{[`
|
|
|
${ht}-cell-fix-left,
|
|
|
${ht}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:ln,background:Dn},[`
|
|
|
${ht}-cell-fix-left-first::after,
|
|
|
${ht}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Nt,width:30,transform:"translateX(100%)",transition:`box-shadow ${qt}`,content:'""',pointerEvents:"none"},[`${ht}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ht}-cell-fix-right-first::after,
|
|
|
${ht}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Nt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${qt}`,content:'""',pointerEvents:"none"},[`${ht}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:$n+1,width:30,transition:`box-shadow ${qt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ht}-ping-left`]:{[`&:not(${ht}-has-fix-left) ${ht}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Rn}`}},[`
|
|
|
${ht}-cell-fix-left-first::after,
|
|
|
${ht}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Rn}`},[`${ht}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ht}-ping-right`]:{[`&:not(${ht}-has-fix-right) ${ht}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Rn}`}},[`
|
|
|
${ht}-cell-fix-right-first::after,
|
|
|
${ht}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Rn}`}}}}},cu=lt=>{const{componentCls:ht,antCls:Nt}=lt;return{[`${ht}-wrapper`]:{[`${ht}-pagination${Nt}-pagination`]:{margin:`${lt.margin}px 0`},[`${ht}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:lt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Bc=lt=>{const{componentCls:ht,tableRadius:Nt}=lt;return{[`${ht}-wrapper`]:{[ht]:{[`${ht}-title, ${ht}-header`]:{borderRadius:`${Nt}px ${Nt}px 0 0`},[`${ht}-title + ${ht}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ht}-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:Nt,borderStartEndRadius:Nt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Nt},"> *:last-child":{borderStartEndRadius:Nt}}},"&-footer":{borderRadius:`0 0 ${Nt}px ${Nt}px`}}}}},qu=lt=>{const{componentCls:ht}=lt;return{[`${ht}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ht}-pagination-left`]:{justifyContent:"flex-end"},[`${ht}-pagination-right`]:{justifyContent:"flex-start"},[`${ht}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ht}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ht}-row-indent`]:{float:"right"}}}}},Go=lt=>{const{componentCls:ht,antCls:Nt,iconCls:Ht,fontSizeIcon:qt,padding:ln,paddingXS:Dn,tableHeaderIconColor:$n,tableHeaderIconColorHover:Rn,tableSelectionColumnWidth:tr}=lt;return{[`${ht}-wrapper`]:{[`${ht}-selection-col`]:{width:tr,[`&${ht}-selection-col-with-dropdown`]:{width:tr+qt+ln/4}},[`${ht}-bordered ${ht}-selection-col`]:{width:tr+Dn*2,[`&${ht}-selection-col-with-dropdown`]:{width:tr+qt+ln/4+Dn*2}},[`
|
|
|
table tr th${ht}-selection-column,
|
|
|
table tr td${ht}-selection-column
|
|
|
`]:{paddingInlineEnd:lt.paddingXS,paddingInlineStart:lt.paddingXS,textAlign:"center",[`${Nt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ht}-selection-column${ht}-cell-fix-left`]:{zIndex:lt.zIndexTableFixed+1},[`table tr th${ht}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ht}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ht}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${lt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${lt.tablePaddingHorizontal/4}px`,[Ht]:{color:$n,fontSize:qt,verticalAlign:"baseline","&:hover":{color:Rn}}}}}},ac=lt=>{const{componentCls:ht}=lt,Nt=(Ht,qt,ln,Dn)=>({[`${ht}${ht}-${Ht}`]:{fontSize:Dn,[`
|
|
|
${ht}-title,
|
|
|
${ht}-footer,
|
|
|
${ht}-cell,
|
|
|
${ht}-thead > tr > th,
|
|
|
${ht}-tbody > tr > th,
|
|
|
${ht}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${qt}px ${ln}px`},[`${ht}-filter-trigger`]:{marginInlineEnd:`-${ln/2}px`},[`${ht}-expanded-row-fixed`]:{margin:`-${qt}px -${ln}px`},[`${ht}-tbody`]:{[`${ht}-wrapper:only-child ${ht}`]:{marginBlock:`-${qt}px`,marginInline:`${lt.tableExpandColumnWidth-ln}px -${ln}px`}},[`${ht}-selection-column`]:{paddingInlineStart:`${ln/4}px`}}});return{[`${ht}-wrapper`]:Object.assign(Object.assign({},Nt("middle",lt.tablePaddingVerticalMiddle,lt.tablePaddingHorizontalMiddle,lt.tableFontSizeMiddle)),Nt("small",lt.tablePaddingVerticalSmall,lt.tablePaddingHorizontalSmall,lt.tableFontSizeSmall))}},ed=lt=>{const{componentCls:ht,marginXXS:Nt,fontSizeIcon:Ht,tableHeaderIconColor:qt,tableHeaderIconColorHover:ln}=lt;return{[`${ht}-wrapper`]:{[`${ht}-thead th${ht}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${lt.motionDurationSlow}`,"&:hover":{background:lt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:lt.colorPrimary},[`
|
|
|
&${ht}-cell-fix-left:hover,
|
|
|
&${ht}-cell-fix-right:hover
|
|
|
`]:{background:lt.tableFixedHeaderSortActiveBg}},[`${ht}-thead th${ht}-column-sort`]:{background:lt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ht}-column-sort`]:{background:lt.tableBodySortBg},[`${ht}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ht}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ht}-column-sorter`]:{marginInlineStart:Nt,color:qt,fontSize:0,transition:`color ${lt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ht,"&.active":{color:lt.colorPrimary}},[`${ht}-column-sorter-up + ${ht}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ht}-column-sorters:hover ${ht}-column-sorter`]:{color:ln}}}},jc=lt=>{const{componentCls:ht,opacityLoading:Nt,tableScrollThumbBg:Ht,tableScrollThumbBgHover:qt,tableScrollThumbSize:ln,tableScrollBg:Dn,zIndexTableSticky:$n,stickyScrollBarBorderRadius:Rn}=lt,tr=`${lt.lineWidth}px ${lt.lineType} ${lt.tableBorderColor}`;return{[`${ht}-wrapper`]:{[`${ht}-sticky`]:{"&-holder":{position:"sticky",zIndex:$n,background:lt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ln}px !important`,zIndex:$n,display:"flex",alignItems:"center",background:Dn,borderTop:tr,opacity:Nt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:ln,backgroundColor:Ht,borderRadius:Rn,transition:`all ${lt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:qt}}}}}}},uu=lt=>{const{componentCls:ht,lineWidth:Nt,tableBorderColor:Ht}=lt,qt=`${Nt}px ${lt.lineType} ${Ht}`;return{[`${ht}-wrapper`]:{[`${ht}-summary`]:{position:"relative",zIndex:lt.zIndexTableFixed,background:lt.tableBg,"> tr":{"> th, > td":{borderBottom:qt}}},[`div${ht}-summary`]:{boxShadow:`0 -${Nt}px 0 ${Ht}`}}}},rd=lt=>{const{componentCls:ht}=lt,Nt=`${lt.lineWidth}px ${lt.lineType} ${lt.tableBorderColor}`,Ht=`${ht}-expanded-row-cell`;return{[`${ht}-wrapper`]:{[`${ht}-tbody-virtual`]:{[`${ht}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ht}-cell`]:{borderBottom:Nt},[`${ht}-expanded-row`]:{[`${Ht}${Ht}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${lt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ht}-bordered`]:{[`${ht}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Nt,position:"absolute"},[`${ht}-cell`]:{borderInlineEnd:Nt,[`&${ht}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-lt.lineWidth,borderInlineStart:Nt}}}}}}};const Ou=lt=>{const{componentCls:ht,fontWeightStrong:Nt,tablePaddingVertical:Ht,tablePaddingHorizontal:qt,lineWidth:ln,lineType:Dn,tableBorderColor:$n,tableFontSize:Rn,tableBg:tr,tableRadius:mr,tableHeaderTextColor:En,motionDurationMid:Lr,tableHeaderBg:jr,tableHeaderCellSplitColor:$r,tableRowHoverBg:Yr,tableSelectedRowBg:Kr,tableSelectedRowHoverBg:ci,tableFooterTextColor:ii,tableFooterBg:Si,paddingContentVerticalLG:Yi}=lt,Ui=`${ln}px ${Dn} ${$n}`;return{[`${ht}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Kl.dF)()),{[ht]:Object.assign(Object.assign({},(0,Kl.Wf)(lt)),{fontSize:Rn,background:tr,borderRadius:`${mr}px ${mr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${mr}px ${mr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ht}-cell,
|
|
|
${ht}-thead > tr > th,
|
|
|
${ht}-tbody > tr > th,
|
|
|
${ht}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Yi}px ${qt}px`,overflowWrap:"break-word"},[`${ht}-title`]:{padding:`${Ht}px ${qt}px`},[`${ht}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:En,fontWeight:Nt,textAlign:"start",background:jr,borderBottom:Ui,transition:`background ${Lr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ht}-selection-column):not(${ht}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:$r,transform:"translateY(-50%)",transition:`background-color ${Lr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ht}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Lr}, border-color ${Lr}`,borderBottom:Ui,[`
|
|
|
> ${ht}-wrapper:only-child,
|
|
|
> ${ht}-expanded-row-fixed > ${ht}-wrapper:only-child
|
|
|
`]:{[ht]:{marginBlock:`-${Ht}px`,marginInline:`${lt.tableExpandColumnWidth-qt}px -${qt}px`,[`${ht}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:En,fontWeight:Nt,textAlign:"start",background:jr,borderBottom:Ui,transition:`background ${Lr} ease`},[`
|
|
|
&${ht}-row:hover > th,
|
|
|
&${ht}-row:hover > td,
|
|
|
> th${ht}-cell-row-hover,
|
|
|
> td${ht}-cell-row-hover
|
|
|
`]:{background:Yr},[`&${ht}-row-selected`]:{"> th, > td":{background:Kr},"&:hover > th, &:hover > td":{background:ci}}}},[`${ht}-footer`]:{padding:`${Ht}px ${qt}px`,color:ii,background:Si}})}};var pc=(0,Fl.Z)("Table",lt=>{const{colorTextHeading:ht,colorSplit:Nt,colorIcon:Ht,colorIconHover:qt,opacityLoading:ln,colorBgContainer:Dn,controlInteractiveSize:$n,headerBg:Rn,headerColor:tr,headerSortActiveBg:mr,headerSortHoverBg:En,bodySortBg:Lr,rowHoverBg:jr,rowSelectedBg:$r,rowSelectedHoverBg:Yr,rowExpandedBg:Kr,cellPaddingBlock:ci,cellPaddingInline:ii,cellPaddingBlockMD:Si,cellPaddingInlineMD:Yi,cellPaddingBlockSM:Ui,cellPaddingInlineSM:Gi,borderColor:xa,footerBg:Ua,footerColor:ji,headerBorderRadius:Hi,cellFontSize:Fi,cellFontSizeMD:di,cellFontSizeSM:Zi,headerSplitColor:wa,fixedHeaderSortActiveBg:Qa,headerFilterHoverBg:ja,filterDropdownBg:Sa,expandIconBg:io,selectionColumnWidth:qa,stickyScrollBarBg:zo}=lt,ao=new el.C(Ht),es=new el.C(qt),ts=2,Ha=(0,Wc.TS)(lt,{tableFontSize:Fi,tableBg:Dn,tableRadius:Hi,tablePaddingVertical:ci,tablePaddingHorizontal:ii,tablePaddingVerticalMiddle:Si,tablePaddingHorizontalMiddle:Yi,tablePaddingVerticalSmall:Ui,tablePaddingHorizontalSmall:Gi,tableBorderColor:xa,tableHeaderTextColor:tr,tableHeaderBg:Rn,tableFooterTextColor:ji,tableFooterBg:Ua,tableHeaderCellSplitColor:wa,tableHeaderSortBg:mr,tableHeaderSortHoverBg:En,tableHeaderIconColor:ao.clone().setAlpha(ao.getAlpha()*ln).toRgbString(),tableHeaderIconColorHover:es.clone().setAlpha(es.getAlpha()*ln).toRgbString(),tableBodySortBg:Lr,tableFixedHeaderSortActiveBg:Qa,tableHeaderFilterActiveBg:ja,tableFilterDropdownBg:Sa,tableRowHoverBg:jr,tableSelectedRowBg:$r,tableSelectedRowHoverBg:Yr,zIndexTableFixed:ts,zIndexTableSticky:ts+1,tableFontSizeMiddle:di,tableFontSizeSmall:Zi,tableSelectionColumnWidth:qa,tableExpandIconBg:io,tableExpandColumnWidth:$n+2*lt.padding,tableExpandedRowBg:Kr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:zo,tableScrollThumbBgHover:ht,tableScrollBg:Nt});return[Ou(Ha),cu(Ha),uu(Ha),ed(Ha),Au(Ha),kd(Ha),Bc(Ha),Qu(Ha),uu(Ha),_d(Ha),Go(Ha),Zc(Ha),jc(Ha),Xu(Ha),ac(Ha),qu(Ha),rd(Ha)]},lt=>{const{colorFillAlter:ht,colorBgContainer:Nt,colorTextHeading:Ht,colorFillSecondary:qt,colorFillContent:ln,controlItemBgActive:Dn,controlItemBgActiveHover:$n,padding:Rn,paddingSM:tr,paddingXS:mr,colorBorderSecondary:En,borderRadiusLG:Lr,fontSize:jr,controlHeight:$r,colorTextPlaceholder:Yr}=lt,Kr=new el.C(qt).onBackground(Nt).toHexShortString(),ci=new el.C(ln).onBackground(Nt).toHexShortString(),ii=new el.C(ht).onBackground(Nt).toHexShortString();return{headerBg:ii,headerColor:Ht,headerSortActiveBg:Kr,headerSortHoverBg:ci,bodySortBg:ii,rowHoverBg:ii,rowSelectedBg:Dn,rowSelectedHoverBg:$n,rowExpandedBg:ht,cellPaddingBlock:Rn,cellPaddingInline:Rn,cellPaddingBlockMD:tr,cellPaddingInlineMD:mr,cellPaddingBlockSM:mr,cellPaddingInlineSM:mr,borderColor:En,headerBorderRadius:Lr,footerBg:ii,footerColor:Ht,cellFontSize:jr,cellFontSizeMD:jr,cellFontSizeSM:jr,headerSplitColor:En,fixedHeaderSortActiveBg:Kr,headerFilterHoverBg:ln,filterDropdownMenuBg:Nt,filterDropdownBg:Nt,expandIconBg:Nt,selectionColumnWidth:$r,stickyScrollBarBg:Yr,stickyScrollBarBorderRadius:100}});const du=[],fu=(lt,ht)=>{const{prefixCls:Nt,className:Ht,rootClassName:qt,style:ln,size:Dn,bordered:$n,dropdownPrefixCls:Rn,dataSource:tr,pagination:mr,rowSelection:En,rowKey:Lr="key",rowClassName:jr,columns:$r,children:Yr,childrenColumnName:Kr,onChange:ci,getPopupContainer:ii,loading:Si,expandIcon:Yi,expandable:Ui,expandedRowRender:Gi,expandIconColumnIndex:xa,indentSize:Ua,scroll:ji,sortDirections:Hi,locale:Fi,showSorterTooltip:di=!0,virtual:Zi}=lt,wa=z.useMemo(()=>$r||xr(Yr),[$r,Yr]),Qa=z.useMemo(()=>wa.some(vo=>vo.responsive),[wa]),ja=(0,ua.Z)(Qa),Sa=z.useMemo(()=>{const vo=new Set(Object.keys(ja).filter(va=>ja[va]));return wa.filter(va=>!va.responsive||va.responsive.some(Ls=>vo.has(Ls)))},[wa,ja]),io=(0,go.Z)(lt,["className","style","columns"]),{locale:qa=Oo.Z,direction:zo,table:ao,renderEmpty:es,getPrefixCls:ts,getPopupContainer:Ha}=z.useContext(Ja.E_),Ts=(0,La.Z)(Dn),Io=Object.assign(Object.assign({},qa.Table),Fi),Uo=tr||du,No=ts("table",Nt),$a=ts("dropdown",Rn),Ti=Object.assign({childrenColumnName:Kr,expandIconColumnIndex:xa},Ui),{childrenColumnName:da="children"}=Ti,Ca=z.useMemo(()=>Uo.some(vo=>vo==null?void 0:vo[da])?"nest":Gi||Ui&&Ui.expandedRowRender?"row":null,[Uo]),Wi={body:z.useRef()},Do=z.useMemo(()=>typeof Lr=="function"?Lr:vo=>vo==null?void 0:vo[Lr],[Lr]),[Mi]=Yo(Uo,da,Do),Ka={},To=function(vo,va){let Ls=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ho,Zs,Or;const Tl=Object.assign(Object.assign({},Ka),vo);Ls&&((Ho=Ka.resetPagination)===null||Ho===void 0||Ho.call(Ka),!((Zs=Tl.pagination)===null||Zs===void 0)&&Zs.current&&(Tl.pagination.current=1),mr&&mr.onChange&&mr.onChange(1,(Or=Tl.pagination)===null||Or===void 0?void 0:Or.pageSize)),ji&&ji.scrollToFirstRowOnChange!==!1&&Wi.body.current&&(0,ho.Z)(0,{getContainer:()=>Wi.body.current}),ci==null||ci(Tl.pagination,Tl.filters,Tl.sorter,{currentDataSource:fa(zs(Uo,Tl.sorterStates,da),Tl.filterStates),action:va})},wo=(vo,va)=>{To({sorter:vo,sorterStates:va},"sort",!1)},[sl,As,Ml,Hr]=gl({prefixCls:No,mergedColumns:Sa,onSorterChange:wo,sortDirections:Hi||["ascend","descend"],tableLocale:Io,showSorterTooltip:di}),$l=z.useMemo(()=>zs(Uo,As,da),[Uo,As]);Ka.sorter=Hr(),Ka.sorterStates=As;const Cs=(vo,va)=>{To({filters:vo,filterStates:va},"filter",!0)},[hl,bl,Ao]=Zo({prefixCls:No,locale:Io,dropdownPrefixCls:$a,mergedColumns:Sa,onFilterChange:Cs,getPopupContainer:ii||Ha}),Ro=fa($l,bl);Ka.filters=Ao,Ka.filterStates=bl;const ns=z.useMemo(()=>{const vo={};return Object.keys(Ao).forEach(va=>{Ao[va]!==null&&(vo[va]=Ao[va])}),Object.assign(Object.assign({},Ml),{filters:vo})},[Ml,Ao]),[Ya]=Ko(ns),Ns=(vo,va)=>{To({pagination:Object.assign(Object.assign({},Ka.pagination),{current:vo,pageSize:va})},"paginate")},[oo,Os]=Ll(Ro.length,Ns,mr);Ka.pagination=mr===!1?{}:mo(oo,mr),Ka.resetPagination=Os;const Ks=z.useMemo(()=>{if(mr===!1||!oo.pageSize)return Ro;const{current:vo=1,total:va,pageSize:Ls=Cl}=oo;return Ro.length<va?Ro.length>Ls?Ro.slice((vo-1)*Ls,vo*Ls):Ro:Ro.slice((vo-1)*Ls,vo*Ls)},[!!mr,Ro,oo&&oo.current,oo&&oo.pageSize,oo&&oo.total]),[Us,kl]=ol({prefixCls:No,data:Ro,pageData:Ks,getRowKey:Do,getRecordByKey:Mi,expandType:Ca,childrenColumnName:da,locale:Io,getPopupContainer:ii||Ha},En),Es=(vo,va,Ls)=>{let Ho;return typeof jr=="function"?Ho=Be()(jr(vo,va,Ls)):Ho=Be()(jr),Be()({[`${No}-row-selected`]:kl.has(Do(vo,va))},Ho)};Ti.__PARENT_RENDER_ICON__=Ti.expandIcon,Ti.expandIcon=Ti.expandIcon||Yi||Ra(Io),Ca==="nest"&&Ti.expandIconColumnIndex===void 0?Ti.expandIconColumnIndex=En?1:0:Ti.expandIconColumnIndex>0&&En&&(Ti.expandIconColumnIndex-=1),typeof Ti.indentSize!="number"&&(Ti.indentSize=typeof Ua=="number"?Ua:15);const _l=z.useCallback(vo=>Ya(Us(hl(sl(vo)))),[sl,hl,Us]);let Ms,Hs;if(mr!==!1&&(oo!=null&&oo.total)){let vo;oo.size?vo=oo.size:vo=Ts==="small"||Ts==="middle"?"small":void 0;const va=Zs=>z.createElement(ba.Z,Object.assign({},oo,{className:Be()(`${No}-pagination ${No}-pagination-${Zs}`,oo.className),size:vo})),Ls=zo==="rtl"?"left":"right",{position:Ho}=oo;if(Ho!==null&&Array.isArray(Ho)){const Zs=Ho.find(cc=>cc.includes("top")),Or=Ho.find(cc=>cc.includes("bottom")),Tl=Ho.every(cc=>`${cc}`=="none");!Zs&&!Or&&!Tl&&(Hs=va(Ls)),Zs&&(Ms=va(Zs.toLowerCase().replace("top",""))),Or&&(Hs=va(Or.toLowerCase().replace("bottom","")))}else Hs=va(Ls)}let Ws;typeof Si=="boolean"?Ws={spinning:Si}:typeof Si=="object"&&(Ws=Object.assign({spinning:!0},Si));const[ks,ms]=pc(No),[,ls]=(0,Ia.Z)(),Yl=Be()(`${No}-wrapper`,ao==null?void 0:ao.className,{[`${No}-wrapper-rtl`]:zo==="rtl"},Ht,qt,ms),Ec=Object.assign(Object.assign({},ao==null?void 0:ao.style),ln),hs=Fi&&Fi.emptyText||(es==null?void 0:es("Table"))||z.createElement(Za.Z,{componentName:"Table"}),ll=Zi?Ss:$o,Pu={},Mc=z.useMemo(()=>{const{fontSize:vo,lineHeight:va,padding:Ls,paddingXS:Ho,paddingSM:Zs}=ls,Or=Math.floor(vo*va);switch(Ts){case"large":return Ls*2+Or;case"small":return Ho*2+Or;default:return Zs*2+Or}},[ls,Ts]);return Zi&&(Pu.listItemHeight=Mc),ks(z.createElement("div",{ref:ht,className:Yl,style:Ec},z.createElement(Ki.Z,Object.assign({spinning:!1},Ws),Ms,z.createElement(ll,Object.assign({},Pu,io,{columns:Sa,direction:zo,expandable:Ti,prefixCls:No,className:Be()({[`${No}-middle`]:Ts==="middle",[`${No}-small`]:Ts==="small",[`${No}-bordered`]:$n,[`${No}-empty`]:Uo.length===0}),data:Ks,rowKey:Do,rowClassName:Es,emptyText:hs,internalHooks:ot,internalRefs:Wi,transformColumns:_l})),Hs)))};var Iu=z.forwardRef(fu);const hu=(lt,ht)=>{const Nt=z.useRef(0);return Nt.current+=1,z.createElement(Iu,Object.assign({},lt,{ref:ht,_renderTimes:Nt.current}))},Xl=z.forwardRef(hu);Xl.SELECTION_COLUMN=fl,Xl.EXPAND_COLUMN=Ue,Xl.SELECTION_ALL=tc,Xl.SELECTION_INVERT=is,Xl.SELECTION_NONE=Co,Xl.Column=wi,Xl.ColumnGroup=Ma,Xl.Summary=Dt;var id=Xl,Du=id},66368:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return On}});var Ue=ve(73475),ot=ve(25877),x=ve(38308),ke=ve(94184),pe=ve.n(ke),ne=ve(87462),z=ve(4942),ae=ve(1413),re=ve(97685),se=ve(71002),me=ve(45987),ie=ve(67294),le=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Je=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(Je)||/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(Je==null?void 0:Je.substr(0,4))};function ue(Je){var vt=ie.useRef();vt.current=Je;var Ct=ie.useCallback(function(){for(var It,At=arguments.length,Bt=new Array(At),Ft=0;Ft<At;Ft++)Bt[Ft]=arguments[Ft];return(It=vt.current)===null||It===void 0?void 0:It.call.apply(It,[vt].concat(Bt))},[]);return Ct}function fe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var he=fe()?ie.useLayoutEffect:ie.useEffect,oe=function(vt,Ct){var It=ie.useRef(!0);he(function(){return vt(It.current)},Ct),he(function(){return It.current=!1,function(){It.current=!0}},[])},Se=function(vt,Ct){oe(function(It){if(!It)return vt()},Ct)},Ce=null;function ye(Je){var vt=ie.useRef(!1),Ct=ie.useState(Je),It=(0,re.Z)(Ct,2),At=It[0],Bt=It[1];ie.useEffect(function(){return vt.current=!1,function(){vt.current=!0}},[]);function Ft(on,gn){gn&&vt.current||Bt(on)}return[At,Ft]}function _e(Je){return Je!==void 0}function Me(Je,vt){var Ct=vt||{},It=Ct.defaultValue,At=Ct.value,Bt=Ct.onChange,Ft=Ct.postState,on=ye(function(){return _e(At)?At:_e(It)?typeof It=="function"?It():It:typeof Je=="function"?Je():Je}),gn=(0,re.Z)(on,2),Ln=gn[0],qn=gn[1],Zn=At!==void 0?At:Ln,Pn=Ft?Ft(Zn):Zn,Bn=ue(Bt),Sn=ye([Zn]),Xn=(0,re.Z)(Sn,2),vr=Xn[0],rr=Xn[1];Se(function(){var fr=vr[0];Ln!==fr&&Bn(Ln,fr)},[vr]),Se(function(){_e(At)||qn(At)},[At]);var lr=ue(function(fr,yr){qn(fr,yr),rr([Zn],yr)});return[Pn,lr]}var we=ve(62874),Ne=(0,ie.createContext)(null),Ae=ie.forwardRef(function(Je,vt){var Ct=Je.prefixCls,It=Je.className,At=Je.style,Bt=Je.id,Ft=Je.active,on=Je.tabKey,gn=Je.children;return ie.createElement("div",{id:Bt&&"".concat(Bt,"-panel-").concat(on),role:"tabpanel",tabIndex:Ft?0:-1,"aria-labelledby":Bt&&"".concat(Bt,"-tab-").concat(on),"aria-hidden":!Ft,style:At,className:pe()(Ct,Ft&&"".concat(Ct,"-active"),It),ref:vt},gn)}),De=Ae,Ie=["key","forceRender","style","className"];function Pe(Je){var vt=Je.id,Ct=Je.activeKey,It=Je.animated,At=Je.tabPosition,Bt=Je.destroyInactiveTabPane,Ft=ie.useContext(Ne),on=Ft.prefixCls,gn=Ft.tabs,Ln=It.tabPane,qn="".concat(on,"-tabpane");return ie.createElement("div",{className:pe()("".concat(on,"-content-holder"))},ie.createElement("div",{className:pe()("".concat(on,"-content"),"".concat(on,"-content-").concat(At),(0,z.Z)({},"".concat(on,"-content-animated"),Ln))},gn.map(function(Zn){var Pn=Zn.key,Bn=Zn.forceRender,Sn=Zn.style,Xn=Zn.className,vr=(0,me.Z)(Zn,Ie),rr=Pn===Ct;return ie.createElement(we.Z,(0,ne.Z)({key:Pn,visible:rr,forceRender:Bn,removeOnLeave:!!Bt,leavedClassName:"".concat(qn,"-hidden")},It.tabPaneMotion),function(lr,fr){var yr=lr.style,Mr=lr.className;return ie.createElement(De,(0,ne.Z)({},vr,{prefixCls:qn,id:vt,tabKey:Pn,animated:Ln,active:rr,style:(0,ae.Z)((0,ae.Z)({},Sn),yr),className:pe()(Xn,Mr),ref:fr}))})})))}var Le=ve(74902),We=ve(48555),Be=ve(59864);function He(Je,vt,Ct){var It=ie.useRef({});return(!("value"in It.current)||Ct(It.current.condition,vt))&&(It.current.value=Je(),It.current.condition=vt),It.current.value}function Ye(Je,vt){typeof Je=="function"?Je(vt):(0,se.Z)(Je)==="object"&&Je&&"current"in Je&&(Je.current=vt)}function et(){for(var Je=arguments.length,vt=new Array(Je),Ct=0;Ct<Je;Ct++)vt[Ct]=arguments[Ct];var It=vt.filter(function(At){return At});return It.length<=1?It[0]:function(At){vt.forEach(function(Bt){Ye(Bt,At)})}}function st(){for(var Je=arguments.length,vt=new Array(Je),Ct=0;Ct<Je;Ct++)vt[Ct]=arguments[Ct];return He(function(){return et.apply(void 0,vt)},vt,function(It,At){return It.length===At.length&&It.every(function(Bt,Ft){return Bt===At[Ft]})})}function yt(Je){var vt,Ct,It=isMemo(Je)?Je.type.type:Je.type;return!(typeof It=="function"&&!((vt=It.prototype)!==null&&vt!==void 0&&vt.render)||typeof Je=="function"&&!((Ct=Je.prototype)!==null&&Ct!==void 0&&Ct.render))}var Ve={width:0,height:0,left:0,top:0};function Qe(Je,vt,Ct){return(0,ie.useMemo)(function(){for(var It,At=new Map,Bt=vt.get((It=Je[0])===null||It===void 0?void 0:It.key)||Ve,Ft=Bt.left+Bt.width,on=0;on<Je.length;on+=1){var gn=Je[on].key,Ln=vt.get(gn);if(!Ln){var qn;Ln=vt.get((qn=Je[on-1])===null||qn===void 0?void 0:qn.key)||Ve}var Zn=At.get(gn)||(0,ae.Z)({},Ln);Zn.right=Ft-Zn.left-Zn.width,At.set(gn,Zn)}return At},[Je.map(function(It){return It.key}).join("_"),vt,Ct])}function pt(Je,vt){var Ct=ie.useRef(Je),It=ie.useState({}),At=(0,re.Z)(It,2),Bt=At[1];function Ft(on){var gn=typeof on=="function"?on(Ct.current):on;gn!==Ct.current&&vt(gn,Ct.current),Ct.current=gn,Bt({})}return[Ct.current,Ft]}var mt=.1,ft=.01,nt=20,tt=Math.pow(.995,nt);function rt(Je,vt){var Ct=(0,ie.useState)(),It=(0,re.Z)(Ct,2),At=It[0],Bt=It[1],Ft=(0,ie.useState)(0),on=(0,re.Z)(Ft,2),gn=on[0],Ln=on[1],qn=(0,ie.useState)(0),Zn=(0,re.Z)(qn,2),Pn=Zn[0],Bn=Zn[1],Sn=(0,ie.useState)(),Xn=(0,re.Z)(Sn,2),vr=Xn[0],rr=Xn[1],lr=(0,ie.useRef)();function fr(Qt){var _n=Qt.touches[0],Wn=_n.screenX,Gn=_n.screenY;Bt({x:Wn,y:Gn}),window.clearInterval(lr.current)}function yr(Qt){if(At){Qt.preventDefault();var _n=Qt.touches[0],Wn=_n.screenX,Gn=_n.screenY;Bt({x:Wn,y:Gn});var gr=Wn-At.x,cr=Gn-At.y;vt(gr,cr);var Jn=Date.now();Ln(Jn),Bn(Jn-gn),rr({x:gr,y:cr})}}function Mr(){if(At&&(Bt(null),rr(null),vr)){var Qt=vr.x/Pn,_n=vr.y/Pn,Wn=Math.abs(Qt),Gn=Math.abs(_n);if(Math.max(Wn,Gn)<mt)return;var gr=Qt,cr=_n;lr.current=window.setInterval(function(){if(Math.abs(gr)<ft&&Math.abs(cr)<ft){window.clearInterval(lr.current);return}gr*=tt,cr*=tt,vt(gr*nt,cr*nt)},nt)}}var Ot=(0,ie.useRef)();function Rt(Qt){var _n=Qt.deltaX,Wn=Qt.deltaY,Gn=0,gr=Math.abs(_n),cr=Math.abs(Wn);gr===cr?Gn=Ot.current==="x"?_n:Wn:gr>cr?(Gn=_n,Ot.current="x"):(Gn=Wn,Ot.current="y"),vt(-Gn,-Gn)&&Qt.preventDefault()}var un=(0,ie.useRef)(null);un.current={onTouchStart:fr,onTouchMove:yr,onTouchEnd:Mr,onWheel:Rt},ie.useEffect(function(){function Qt(gr){un.current.onTouchStart(gr)}function _n(gr){un.current.onTouchMove(gr)}function Wn(gr){un.current.onTouchEnd(gr)}function Gn(gr){un.current.onWheel(gr)}return document.addEventListener("touchmove",_n,{passive:!1}),document.addEventListener("touchend",Wn,{passive:!1}),Je.current.addEventListener("touchstart",Qt,{passive:!1}),Je.current.addEventListener("wheel",Gn),function(){document.removeEventListener("touchmove",_n),document.removeEventListener("touchend",Wn)}},[])}function Et(Je){var vt=(0,ie.useState)(0),Ct=(0,re.Z)(vt,2),It=Ct[0],At=Ct[1],Bt=(0,ie.useRef)(0),Ft=(0,ie.useRef)();return Ft.current=Je,Se(function(){var on;(on=Ft.current)===null||on===void 0||on.call(Ft)},[It]),function(){Bt.current===It&&(Bt.current+=1,At(Bt.current))}}function bt(Je){var vt=(0,ie.useRef)([]),Ct=(0,ie.useState)({}),It=(0,re.Z)(Ct,2),At=It[1],Bt=(0,ie.useRef)(typeof Je=="function"?Je():Je),Ft=Et(function(){var gn=Bt.current;vt.current.forEach(function(Ln){gn=Ln(gn)}),vt.current=[],Bt.current=gn,At({})});function on(gn){vt.current.push(gn),Ft()}return[Bt.current,on]}var Pt={width:0,height:0,left:0,top:0,right:0};function Lt(Je,vt,Ct,It,At,Bt,Ft){var on=Ft.tabs,gn=Ft.tabPosition,Ln=Ft.rtl,qn,Zn,Pn;return["top","bottom"].includes(gn)?(qn="width",Zn=Ln?"right":"left",Pn=Math.abs(Ct)):(qn="height",Zn="top",Pn=-Ct),(0,ie.useMemo)(function(){if(!on.length)return[0,0];for(var Bn=on.length,Sn=Bn,Xn=0;Xn<Bn;Xn+=1){var vr=Je.get(on[Xn].key)||Pt;if(vr[Zn]+vr[qn]>Pn+vt){Sn=Xn-1;break}}for(var rr=0,lr=Bn-1;lr>=0;lr-=1){var fr=Je.get(on[lr].key)||Pt;if(fr[Zn]<Pn){rr=lr+1;break}}return rr>=Sn?[0,0]:[rr,Sn]},[Je,vt,It,At,Bt,Pn,gn,on.map(function(Bn){return Bn.key}).join("_"),Ln])}function dt(Je){var vt;return Je instanceof Map?(vt={},Je.forEach(function(Ct,It){vt[It]=Ct})):vt=Je,JSON.stringify(vt)}var Ze="TABS_DQ";function Ke(Je){return String(Je).replace(/"/g,Ze)}function de(Je,vt,Ct,It){return!(!Ct||It||Je===!1||Je===void 0&&(vt===!1||vt===null))}function xe(Je,vt){var Ct=Je.prefixCls,It=Je.editable,At=Je.locale,Bt=Je.style;return!It||It.showAdd===!1?null:ie.createElement("button",{ref:vt,type:"button",className:"".concat(Ct,"-nav-add"),style:Bt,"aria-label":(At==null?void 0:At.addAriaLabel)||"Add tab",onClick:function(on){It.onEdit("add",{event:on})}},It.addIcon||"+")}var ze=ie.forwardRef(xe),$e=ie.forwardRef(function(Je,vt){var Ct=Je.position,It=Je.prefixCls,At=Je.extra;if(!At)return null;var Bt,Ft={};return(0,se.Z)(At)==="object"&&!ie.isValidElement(At)?Ft=At:Ft.right=At,Ct==="right"&&(Bt=Ft.right),Ct==="left"&&(Bt=Ft.left),Bt?ie.createElement("div",{className:"".concat(It,"-extra-content"),ref:vt},Bt):null}),Ee=$e,Re=ve(62709);function Fe(Je,vt,Ct){var It=React.useRef({});return(!("value"in It.current)||Ct(It.current.condition,vt))&&(It.current.value=Je(),It.current.condition=vt),It.current.value}function Ge(Je,vt){typeof Je=="function"?Je(vt):(0,se.Z)(Je)==="object"&&Je&&"current"in Je&&(Je.current=vt)}function it(){for(var Je=arguments.length,vt=new Array(Je),Ct=0;Ct<Je;Ct++)vt[Ct]=arguments[Ct];var It=vt.filter(function(At){return At});return It.length<=1?It[0]:function(At){vt.forEach(function(Bt){Ge(Bt,At)})}}function gt(){for(var Je=arguments.length,vt=new Array(Je),Ct=0;Ct<Je;Ct++)vt[Ct]=arguments[Ct];return useMemo(function(){return it.apply(void 0,vt)},vt,function(It,At){return It.length===At.length&&It.every(function(Bt,Ft){return Bt===At[Ft]})})}function Kt(Je){var vt,Ct,It=(0,Be.isMemo)(Je)?Je.type.type:Je.type;return!(typeof It=="function"&&!((vt=It.prototype)!==null&&vt!==void 0&&vt.render)||typeof Je=="function"&&!((Ct=Je.prototype)!==null&&Ct!==void 0&&Ct.render))}var kt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(vt){var Ct=vt.keyCode;if(vt.altKey&&!vt.ctrlKey||vt.metaKey||Ct>=kt.F1&&Ct<=kt.F12)return!1;switch(Ct){case kt.ALT:case kt.CAPS_LOCK:case kt.CONTEXT_MENU:case kt.CTRL:case kt.DOWN:case kt.END:case kt.ESC:case kt.HOME:case kt.INSERT:case kt.LEFT:case kt.MAC_FF_META:case kt.META:case kt.NUMLOCK:case kt.NUM_CENTER:case kt.PAGE_DOWN:case kt.PAGE_UP:case kt.PAUSE:case kt.PRINT_SCREEN:case kt.RIGHT:case kt.SHIFT:case kt.UP:case kt.WIN_KEY:case kt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(vt){if(vt>=kt.ZERO&&vt<=kt.NINE||vt>=kt.NUM_ZERO&&vt<=kt.NUM_MULTIPLY||vt>=kt.A&&vt<=kt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&vt===0)return!0;switch(vt){case kt.SPACE:case kt.QUESTION_MARK:case kt.NUM_PLUS:case kt.NUM_MINUS:case kt.NUM_PERIOD:case kt.NUM_DIVISION:case kt.SEMICOLON:case kt.DASH:case kt.EQUALS:case kt.COMMA:case kt.PERIOD:case kt.SLASH:case kt.APOSTROPHE:case kt.SINGLE_QUOTE:case kt.OPEN_SQUARE_BRACKET:case kt.BACKSLASH:case kt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},St=kt,Wt=function(vt){return+setTimeout(vt,16)},jt=function(vt){return clearTimeout(vt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Wt=function(vt){return window.requestAnimationFrame(vt)},jt=function(vt){return window.cancelAnimationFrame(vt)});var Vt=0,_t=new Map;function sn(Je){_t.delete(Je)}var Dt=function(vt){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vt+=1;var It=Vt;function At(Bt){if(Bt===0)sn(It),vt();else{var Ft=Wt(function(){At(Bt-1)});_t.set(It,Ft)}}return At(Ct),It};Dt.cancel=function(Je){var vt=_t.get(Je);return sn(vt),jt(vt)};var xt=Dt,en=St.ESC,an=St.TAB;function fn(Je){var vt=Je.visible,Ct=Je.triggerRef,It=Je.onVisibleChange,At=Je.autoFocus,Bt=Je.overlayRef,Ft=ie.useRef(!1),on=function(){if(vt){var Zn,Pn;(Zn=Ct.current)===null||Zn===void 0||(Pn=Zn.focus)===null||Pn===void 0||Pn.call(Zn),It==null||It(!1)}},gn=function(){var Zn;return(Zn=Bt.current)!==null&&Zn!==void 0&&Zn.focus?(Bt.current.focus(),Ft.current=!0,!0):!1},Ln=function(Zn){switch(Zn.keyCode){case en:on();break;case an:{var Pn=!1;Ft.current||(Pn=gn()),Pn?Zn.preventDefault():on();break}}};ie.useEffect(function(){return vt?(window.addEventListener("keydown",Ln),At&&xt(gn,3),function(){window.removeEventListener("keydown",Ln),Ft.current=!1}):function(){Ft.current=!1}},[vt])}var Tn=(0,ie.forwardRef)(function(Je,vt){var Ct=Je.overlay,It=Je.arrow,At=Je.prefixCls,Bt=(0,ie.useMemo)(function(){var on;return typeof Ct=="function"?on=Ct():on=Ct,on},[Ct]),Ft=it(vt,Bt==null?void 0:Bt.ref);return ie.createElement(ie.Fragment,null,It&&ie.createElement("div",{className:"".concat(At,"-arrow")}),ie.cloneElement(Bt,{ref:Kt(Bt)?Ft:void 0}))}),ar=Tn,pr={adjustX:1,adjustY:1},Ar=[0,0],Dr={topLeft:{points:["bl","tl"],overflow:pr,offset:[0,-4],targetOffset:Ar},top:{points:["bc","tc"],overflow:pr,offset:[0,-4],targetOffset:Ar},topRight:{points:["br","tr"],overflow:pr,offset:[0,-4],targetOffset:Ar},bottomLeft:{points:["tl","bl"],overflow:pr,offset:[0,4],targetOffset:Ar},bottom:{points:["tc","bc"],overflow:pr,offset:[0,4],targetOffset:Ar},bottomRight:{points:["tr","br"],overflow:pr,offset:[0,4],targetOffset:Ar}},dr=Dr,zr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ai(Je,vt){var Ct,It=Je.arrow,At=It===void 0?!1:It,Bt=Je.prefixCls,Ft=Bt===void 0?"rc-dropdown":Bt,on=Je.transitionName,gn=Je.animation,Ln=Je.align,qn=Je.placement,Zn=qn===void 0?"bottomLeft":qn,Pn=Je.placements,Bn=Pn===void 0?dr:Pn,Sn=Je.getPopupContainer,Xn=Je.showAction,vr=Je.hideAction,rr=Je.overlayClassName,lr=Je.overlayStyle,fr=Je.visible,yr=Je.trigger,Mr=yr===void 0?["hover"]:yr,Ot=Je.autoFocus,Rt=Je.overlay,un=Je.children,Qt=Je.onVisibleChange,_n=(0,me.Z)(Je,zr),Wn=ie.useState(),Gn=(0,re.Z)(Wn,2),gr=Gn[0],cr=Gn[1],Jn="visible"in Je?fr:gr,wr=ie.useRef(null),_r=ie.useRef(null),Vr=ie.useRef(null);ie.useImperativeHandle(vt,function(){return wr.current});var Tr=function(ti){cr(ti),Qt==null||Qt(ti)};fn({visible:Jn,triggerRef:Vr,onVisibleChange:Tr,autoFocus:Ot,overlayRef:_r});var qr=function(ti){var Ji=Je.onOverlayClick;cr(!1),Ji&&Ji(ti)},vi=function(){return ie.createElement(ar,{ref:_r,overlay:Rt,prefixCls:Ft,arrow:At})},si=function(){return typeof Rt=="function"?vi:vi()},gi=function(){var ti=Je.minOverlayWidthMatchTrigger,Ji=Je.alignPoint;return"minOverlayWidthMatchTrigger"in Je?ti:!Ji},Qr=function(){var ti=Je.openClassName;return ti!==void 0?ti:"".concat(Ft,"-open")},ui=ie.cloneElement(un,{className:pe()((Ct=un.props)===null||Ct===void 0?void 0:Ct.className,Jn&&Qr()),ref:Kt(un)?it(Vr,un.ref):void 0}),bi=vr;return!bi&&Mr.indexOf("contextMenu")!==-1&&(bi=["click"]),ie.createElement(Re.Z,(0,ne.Z)({builtinPlacements:Bn},_n,{prefixCls:Ft,ref:wr,popupClassName:pe()(rr,(0,z.Z)({},"".concat(Ft,"-show-arrow"),At)),popupStyle:lr,action:Mr,showAction:Xn,hideAction:bi,popupPlacement:Zn,popupAlign:Ln,popupTransitionName:on,popupAnimation:gn,popupVisible:Jn,stretch:gi()?"minWidth":"",popup:si(),onPopupVisibleChange:Tr,onPopupClick:qr,getPopupContainer:Sn}),ui)}var ki=ie.forwardRef(ai),Ni=ki,xi=ve(78595),cn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(vt){var Ct=vt.keyCode;if(vt.altKey&&!vt.ctrlKey||vt.metaKey||Ct>=cn.F1&&Ct<=cn.F12)return!1;switch(Ct){case cn.ALT:case cn.CAPS_LOCK:case cn.CONTEXT_MENU:case cn.CTRL:case cn.DOWN:case cn.END:case cn.ESC:case cn.HOME:case cn.INSERT:case cn.LEFT:case cn.MAC_FF_META:case cn.META:case cn.NUMLOCK:case cn.NUM_CENTER:case cn.PAGE_DOWN:case cn.PAGE_UP:case cn.PAUSE:case cn.PRINT_SCREEN:case cn.RIGHT:case cn.SHIFT:case cn.UP:case cn.WIN_KEY:case cn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(vt){if(vt>=cn.ZERO&&vt<=cn.NINE||vt>=cn.NUM_ZERO&&vt<=cn.NUM_MULTIPLY||vt>=cn.A&&vt<=cn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&vt===0)return!0;switch(vt){case cn.SPACE:case cn.QUESTION_MARK:case cn.NUM_PLUS:case cn.NUM_MINUS:case cn.NUM_PERIOD:case cn.NUM_DIVISION:case cn.SEMICOLON:case cn.DASH:case cn.EQUALS:case cn.COMMA:case cn.PERIOD:case cn.SLASH:case cn.APOSTROPHE:case cn.SINGLE_QUOTE:case cn.OPEN_SQUARE_BRACKET:case cn.BACKSLASH:case cn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ir=cn;function sr(Je,vt){var Ct=Je.prefixCls,It=Je.id,At=Je.tabs,Bt=Je.locale,Ft=Je.mobile,on=Je.moreIcon,gn=on===void 0?"More":on,Ln=Je.moreTransitionName,qn=Je.style,Zn=Je.className,Pn=Je.editable,Bn=Je.tabBarGutter,Sn=Je.rtl,Xn=Je.removeAriaLabel,vr=Je.onTabClick,rr=Je.getPopupContainer,lr=Je.popupClassName,fr=(0,ie.useState)(!1),yr=(0,re.Z)(fr,2),Mr=yr[0],Ot=yr[1],Rt=(0,ie.useState)(null),un=(0,re.Z)(Rt,2),Qt=un[0],_n=un[1],Wn="".concat(It,"-more-popup"),Gn="".concat(Ct,"-dropdown"),gr=Qt!==null?"".concat(Wn,"-").concat(Qt):null,cr=Bt==null?void 0:Bt.dropdownAriaLabel;function Jn(si,gi){si.preventDefault(),si.stopPropagation(),Pn.onEdit("remove",{key:gi,event:si})}var wr=ie.createElement(xi.ZP,{onClick:function(gi){var Qr=gi.key,ui=gi.domEvent;vr(Qr,ui),Ot(!1)},prefixCls:"".concat(Gn,"-menu"),id:Wn,tabIndex:-1,role:"listbox","aria-activedescendant":gr,selectedKeys:[Qt],"aria-label":cr!==void 0?cr:"expanded dropdown"},At.map(function(si){var gi=si.closable,Qr=si.disabled,ui=si.closeIcon,bi=si.key,zi=si.label,ti=de(gi,ui,Pn,Qr);return ie.createElement(xi.sN,{key:bi,id:"".concat(Wn,"-").concat(bi),role:"option","aria-controls":It&&"".concat(It,"-panel-").concat(bi),disabled:Qr},ie.createElement("span",null,zi),ti&&ie.createElement("button",{type:"button","aria-label":Xn||"remove",tabIndex:0,className:"".concat(Gn,"-menu-item-remove"),onClick:function(na){na.stopPropagation(),Jn(na,bi)}},ui||Pn.removeIcon||"\xD7"))}));function _r(si){for(var gi=At.filter(function(ti){return!ti.disabled}),Qr=gi.findIndex(function(ti){return ti.key===Qt})||0,ui=gi.length,bi=0;bi<ui;bi+=1){Qr=(Qr+si+ui)%ui;var zi=gi[Qr];if(!zi.disabled){_n(zi.key);return}}}function Vr(si){var gi=si.which;if(!Mr){[ir.DOWN,ir.SPACE,ir.ENTER].includes(gi)&&(Ot(!0),si.preventDefault());return}switch(gi){case ir.UP:_r(-1),si.preventDefault();break;case ir.DOWN:_r(1),si.preventDefault();break;case ir.ESC:Ot(!1);break;case ir.SPACE:case ir.ENTER:Qt!==null&&vr(Qt,si);break}}(0,ie.useEffect)(function(){var si=document.getElementById(gr);si&&si.scrollIntoView&&si.scrollIntoView(!1)},[Qt]),(0,ie.useEffect)(function(){Mr||_n(null)},[Mr]);var Tr=(0,z.Z)({},Sn?"marginRight":"marginLeft",Bn);At.length||(Tr.visibility="hidden",Tr.order=1);var qr=pe()((0,z.Z)({},"".concat(Gn,"-rtl"),Sn)),vi=Ft?null:ie.createElement(Ni,{prefixCls:Gn,overlay:wr,trigger:["hover"],visible:At.length?Mr:!1,transitionName:Ln,onVisibleChange:Ot,overlayClassName:pe()(qr,lr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:rr},ie.createElement("button",{type:"button",className:"".concat(Ct,"-nav-more"),style:Tr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Wn,id:"".concat(It,"-more"),"aria-expanded":Mr,onKeyDown:Vr},gn));return ie.createElement("div",{className:pe()("".concat(Ct,"-nav-operations"),Zn),style:qn,ref:vt},vi,ie.createElement(ze,{prefixCls:Ct,locale:Bt,editable:Pn}))}var Yn=ie.memo(ie.forwardRef(sr),function(Je,vt){return vt.tabMoving});function Rr(Je){var vt,Ct=Je.prefixCls,It=Je.id,At=Je.active,Bt=Je.tab,Ft=Bt.key,on=Bt.label,gn=Bt.disabled,Ln=Bt.closeIcon,qn=Je.closable,Zn=Je.renderWrapper,Pn=Je.removeAriaLabel,Bn=Je.editable,Sn=Je.onClick,Xn=Je.onFocus,vr=Je.style,rr="".concat(Ct,"-tab"),lr=de(qn,Ln,Bn,gn);function fr(Ot){gn||Sn(Ot)}function yr(Ot){Ot.preventDefault(),Ot.stopPropagation(),Bn.onEdit("remove",{key:Ft,event:Ot})}var Mr=ie.createElement("div",{key:Ft,"data-node-key":Ke(Ft),className:pe()(rr,(vt={},(0,z.Z)(vt,"".concat(rr,"-with-remove"),lr),(0,z.Z)(vt,"".concat(rr,"-active"),At),(0,z.Z)(vt,"".concat(rr,"-disabled"),gn),vt)),style:vr,onClick:fr},ie.createElement("div",{role:"tab","aria-selected":At,id:It&&"".concat(It,"-tab-").concat(Ft),className:"".concat(rr,"-btn"),"aria-controls":It&&"".concat(It,"-panel-").concat(Ft),"aria-disabled":gn,tabIndex:gn?null:0,onClick:function(Rt){Rt.stopPropagation(),fr(Rt)},onKeyDown:function(Rt){[ir.SPACE,ir.ENTER].includes(Rt.which)&&(Rt.preventDefault(),fr(Rt))},onFocus:Xn},on),lr&&ie.createElement("button",{type:"button","aria-label":Pn||"remove",tabIndex:0,className:"".concat(rr,"-remove"),onClick:function(Rt){Rt.stopPropagation(),yr(Rt)}},Ln||Bn.removeIcon||"\xD7"));return Zn?Zn(Mr):Mr}var Nn=Rr,Hn=function(vt){return+setTimeout(vt,16)},jn=function(vt){return clearTimeout(vt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Hn=function(vt){return window.requestAnimationFrame(vt)},jn=function(vt){return window.cancelAnimationFrame(vt)});var Gt=0,Xt=new Map;function rn(Je){Xt.delete(Je)}var An=function(vt){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Gt+=1;var It=Gt;function At(Bt){if(Bt===0)rn(It),vt();else{var Ft=Hn(function(){At(Bt-1)});Xt.set(It,Ft)}}return At(Ct),It};An.cancel=function(Je){var vt=Xt.get(Je);return rn(vt),jn(vt)};var zt=An,tn=function(vt){var Ct=vt.activeTabOffset,It=vt.horizontal,At=vt.rtl,Bt=vt.indicatorSize,Ft=(0,ie.useState)(),on=(0,re.Z)(Ft,2),gn=on[0],Ln=on[1],qn=(0,ie.useRef)(),Zn=function(Sn){return typeof Bt=="function"?Bt(Sn):typeof Bt=="number"?Bt:Sn};function Pn(){zt.cancel(qn.current)}return(0,ie.useEffect)(function(){var Bn={};return Ct&&(It?(At?(Bn.right=Ct.right+Ct.width/2,Bn.transform="translateX(50%)"):(Bn.left=Ct.left+Ct.width/2,Bn.transform="translateX(-50%)"),Bn.width=Zn(Ct.width)):(Bn.top=Ct.top+Ct.height/2,Bn.transform="translateY(-50%)",Bn.height=Zn(Ct.height))),Pn(),qn.current=zt(function(){Ln(Bn)}),Pn},[Ct,It,At,Bt]),{style:gn}},bn=tn,wn=function(vt){var Ct=vt.current||{},It=Ct.offsetWidth,At=It===void 0?0:It,Bt=Ct.offsetHeight,Ft=Bt===void 0?0:Bt;return[At,Ft]},zn=function(vt,Ct){return vt[Ct?0:1]};function Un(Je,vt){var Ct,It=ie.useContext(Ne),At=It.prefixCls,Bt=It.tabs,Ft=Je.className,on=Je.style,gn=Je.id,Ln=Je.animated,qn=Je.activeKey,Zn=Je.rtl,Pn=Je.extra,Bn=Je.editable,Sn=Je.locale,Xn=Je.tabPosition,vr=Je.tabBarGutter,rr=Je.children,lr=Je.onTabClick,fr=Je.onTabScroll,yr=Je.indicatorSize,Mr=(0,ie.useRef)(),Ot=(0,ie.useRef)(),Rt=(0,ie.useRef)(),un=(0,ie.useRef)(),Qt=(0,ie.useRef)(),_n=(0,ie.useRef)(),Wn=(0,ie.useRef)(),Gn=Xn==="top"||Xn==="bottom",gr=pt(0,function(Ga,Aa){Gn&&fr&&fr({direction:Ga>Aa?"left":"right"})}),cr=(0,re.Z)(gr,2),Jn=cr[0],wr=cr[1],_r=pt(0,function(Ga,Aa){!Gn&&fr&&fr({direction:Ga>Aa?"top":"bottom"})}),Vr=(0,re.Z)(_r,2),Tr=Vr[0],qr=Vr[1],vi=(0,ie.useState)([0,0]),si=(0,re.Z)(vi,2),gi=si[0],Qr=si[1],ui=(0,ie.useState)([0,0]),bi=(0,re.Z)(ui,2),zi=bi[0],ti=bi[1],Ji=(0,ie.useState)([0,0]),na=(0,re.Z)(Ji,2),za=na[0],Ta=na[1],pa=(0,ie.useState)([0,0]),Vi=(0,re.Z)(pa,2),Xi=Vi[0],Ii=Vi[1],ma=bt(new Map),Ri=(0,re.Z)(ma,2),wi=Ri[0],sa=Ri[1],Ma=Qe(Bt,wi,zi[0]),go=zn(gi,Gn),ho=zn(zi,Gn),Ja=zn(za,Gn),Za=zn(Xi,Gn),La=go<ho+Ja,ua=La?go-Za:go-Ja,Oo="".concat(At,"-nav-operations-hidden"),ba=0,Ki=0;Gn&&Zn?(ba=0,Ki=Math.max(0,ho-ua)):(ba=Math.min(0,ua-ho),Ki=0);function Ia(Ga){return Ga<ba?ba:Ga>Ki?Ki:Ga}var to=(0,ie.useRef)(),Ra=(0,ie.useState)(),Fa=(0,re.Z)(Ra,2),ra=Fa[0],no=Fa[1];function yo(){no(Date.now())}function so(){window.clearTimeout(to.current)}rt(un,function(Ga,Aa){function fo(ko,fs){ko(function(ss){var jl=Ia(ss+fs);return jl})}return La?(Gn?fo(wr,Ga):fo(qr,Aa),so(),yo(),!0):!1}),(0,ie.useEffect)(function(){return so(),ra&&(to.current=window.setTimeout(function(){no(0)},100)),so},[ra]);var bo=Lt(Ma,ua,Gn?Jn:Tr,ho,Ja,Za,(0,ae.Z)((0,ae.Z)({},Je),{},{tabs:Bt})),Mo=(0,re.Z)(bo,2),Xo=Mo[0],lo=Mo[1],So=ue(function(){var Ga=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qn,Aa=Ma.get(Ga)||{width:0,height:0,left:0,right:0,top:0};if(Gn){var fo=Jn;Zn?Aa.right<Jn?fo=Aa.right:Aa.right+Aa.width>Jn+ua&&(fo=Aa.right+Aa.width-ua):Aa.left<-Jn?fo=-Aa.left:Aa.left+Aa.width>-Jn+ua&&(fo=-(Aa.left+Aa.width-ua)),qr(0),wr(Ia(fo))}else{var ko=Tr;Aa.top<-Tr?ko=-Aa.top:Aa.top+Aa.height>-Tr+ua&&(ko=-(Aa.top+Aa.height-ua)),wr(0),qr(Ia(ko))}}),os={};Xn==="top"||Xn==="bottom"?os[Zn?"marginRight":"marginLeft"]=vr:os.marginTop=vr;var rs=Bt.map(function(Ga,Aa){var fo=Ga.key;return ie.createElement(Nn,{id:gn,prefixCls:At,key:fo,tab:Ga,style:Aa===0?void 0:os,closable:Ga.closable,editable:Bn,active:fo===qn,renderWrapper:rr,removeAriaLabel:Sn==null?void 0:Sn.removeAriaLabel,onClick:function(fs){lr(fo,fs)},onFocus:function(){So(fo),yo(),un.current&&(Zn||(un.current.scrollLeft=0),un.current.scrollTop=0)}})}),cs=function(){return sa(function(){var Aa=new Map;return Bt.forEach(function(fo){var ko,fs=fo.key,ss=(ko=Qt.current)===null||ko===void 0?void 0:ko.querySelector('[data-node-key="'.concat(Ke(fs),'"]'));ss&&Aa.set(fs,{width:ss.offsetWidth,height:ss.offsetHeight,left:ss.offsetLeft,top:ss.offsetTop})}),Aa})};(0,ie.useEffect)(function(){cs()},[Bt.map(function(Ga){return Ga.key}).join("_")]);var Lo=Et(function(){var Ga=wn(Mr),Aa=wn(Ot),fo=wn(Rt);Qr([Ga[0]-Aa[0]-fo[0],Ga[1]-Aa[1]-fo[1]]);var ko=wn(Wn);Ta(ko);var fs=wn(_n);Ii(fs);var ss=wn(Qt);ti([ss[0]-ko[0],ss[1]-ko[1]]),cs()}),xo=Bt.slice(0,Xo),ya=Bt.slice(lo+1),Da=[].concat((0,Le.Z)(xo),(0,Le.Z)(ya)),ro=Ma.get(qn),po=bn({activeTabOffset:ro,horizontal:Gn,rtl:Zn,indicatorSize:yr}),Wo=po.style;(0,ie.useEffect)(function(){So()},[qn,ba,Ki,dt(ro),dt(Ma),Gn]),(0,ie.useEffect)(function(){Lo()},[Zn]);var us=!!Da.length,xs="".concat(At,"-nav-wrap"),Js,Fs,ds,$s;return Gn?Zn?(Fs=Jn>0,Js=Jn!==Ki):(Js=Jn<0,Fs=Jn!==ba):(ds=Tr<0,$s=Tr!==ba),ie.createElement(We.Z,{onResize:Lo},ie.createElement("div",{ref:st(vt,Mr),role:"tablist",className:pe()("".concat(At,"-nav"),Ft),style:on,onKeyDown:function(){yo()}},ie.createElement(Ee,{ref:Ot,position:"left",extra:Pn,prefixCls:At}),ie.createElement(We.Z,{onResize:Lo},ie.createElement("div",{className:pe()(xs,(Ct={},(0,z.Z)(Ct,"".concat(xs,"-ping-left"),Js),(0,z.Z)(Ct,"".concat(xs,"-ping-right"),Fs),(0,z.Z)(Ct,"".concat(xs,"-ping-top"),ds),(0,z.Z)(Ct,"".concat(xs,"-ping-bottom"),$s),Ct)),ref:un},ie.createElement(We.Z,{onResize:Lo},ie.createElement("div",{ref:Qt,className:"".concat(At,"-nav-list"),style:{transform:"translate(".concat(Jn,"px, ").concat(Tr,"px)"),transition:ra?"none":void 0}},rs,ie.createElement(ze,{ref:Wn,prefixCls:At,locale:Sn,editable:Bn,style:(0,ae.Z)((0,ae.Z)({},rs.length===0?void 0:os),{},{visibility:us?"hidden":null})}),ie.createElement("div",{className:pe()("".concat(At,"-ink-bar"),(0,z.Z)({},"".concat(At,"-ink-bar-animated"),Ln.inkBar)),style:Wo}))))),ie.createElement(Yn,(0,ne.Z)({},Je,{removeAriaLabel:Sn==null?void 0:Sn.removeAriaLabel,ref:_n,prefixCls:At,tabs:Da,className:!us&&Oo,tabMoving:!!ra})),ie.createElement(Ee,{ref:Rt,position:"right",extra:Pn,prefixCls:At})))}var kr=ie.forwardRef(Un),Zr=["renderTabBar"],Ir=["label","key"];function Er(Je){var vt=Je.renderTabBar,Ct=(0,me.Z)(Je,Zr),It=ie.useContext(Ne),At=It.tabs;if(vt){var Bt=(0,ae.Z)((0,ae.Z)({},Ct),{},{panes:At.map(function(Ft){var on=Ft.label,gn=Ft.key,Ln=(0,me.Z)(Ft,Ir);return ie.createElement(De,(0,ne.Z)({tab:on,key:gn,tabKey:gn},Ln))})});return vt(Bt,kr)}return ie.createElement(kr,Ct)}var Br={},Pr=[],nn=function(vt){Pr.push(vt)};function Jt(Je,vt){if(0)var Ct}function pn(Je,vt){if(0)var Ct}function Qn(){Br={}}function hr(Je,vt,Ct){!vt&&!Br[Ct]&&(Je(!1,Ct),Br[Ct]=!0)}function Fn(Je,vt){hr(Jt,Je,vt)}function Vn(Je,vt){hr(pn,Je,vt)}Fn.preMessage=nn,Fn.resetWarned=Qn,Fn.noteOnce=Vn;var er=null;function Sr(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},vt;return Je===!1?vt={inkBar:!1,tabPane:!1}:Je===!0?vt={inkBar:!0,tabPane:!1}:vt=(0,ae.Z)({inkBar:!0},(0,se.Z)(Je)==="object"?Je:{}),vt.tabPaneMotion&&vt.tabPane===void 0&&(vt.tabPane=!0),!vt.tabPaneMotion&&vt.tabPane&&(vt.tabPane=!1),vt}var Nr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],In=0;function Gr(Je,vt){var Ct,It=Je.id,At=Je.prefixCls,Bt=At===void 0?"rc-tabs":At,Ft=Je.className,on=Je.items,gn=Je.direction,Ln=Je.activeKey,qn=Je.defaultActiveKey,Zn=Je.editable,Pn=Je.animated,Bn=Je.tabPosition,Sn=Bn===void 0?"top":Bn,Xn=Je.tabBarGutter,vr=Je.tabBarStyle,rr=Je.tabBarExtraContent,lr=Je.locale,fr=Je.moreIcon,yr=Je.moreTransitionName,Mr=Je.destroyInactiveTabPane,Ot=Je.renderTabBar,Rt=Je.onChange,un=Je.onTabClick,Qt=Je.onTabScroll,_n=Je.getPopupContainer,Wn=Je.popupClassName,Gn=Je.indicatorSize,gr=(0,me.Z)(Je,Nr),cr=ie.useMemo(function(){return(on||[]).filter(function(Ii){return Ii&&(0,se.Z)(Ii)==="object"&&"key"in Ii})},[on]),Jn=gn==="rtl",wr=Sr(Pn),_r=(0,ie.useState)(!1),Vr=(0,re.Z)(_r,2),Tr=Vr[0],qr=Vr[1];(0,ie.useEffect)(function(){qr(le())},[]);var vi=Me(function(){var Ii;return(Ii=cr[0])===null||Ii===void 0?void 0:Ii.key},{value:Ln,defaultValue:qn}),si=(0,re.Z)(vi,2),gi=si[0],Qr=si[1],ui=(0,ie.useState)(function(){return cr.findIndex(function(Ii){return Ii.key===gi})}),bi=(0,re.Z)(ui,2),zi=bi[0],ti=bi[1];(0,ie.useEffect)(function(){var Ii=cr.findIndex(function(Ri){return Ri.key===gi});if(Ii===-1){var ma;Ii=Math.max(0,Math.min(zi,cr.length-1)),Qr((ma=cr[Ii])===null||ma===void 0?void 0:ma.key)}ti(Ii)},[cr.map(function(Ii){return Ii.key}).join("_"),gi,zi]);var Ji=Me(null,{value:It}),na=(0,re.Z)(Ji,2),za=na[0],Ta=na[1];(0,ie.useEffect)(function(){It||(Ta("rc-tabs-".concat(In)),In+=1)},[]);function pa(Ii,ma){un==null||un(Ii,ma);var Ri=Ii!==gi;Qr(Ii),Ri&&(Rt==null||Rt(Ii))}var Vi={id:za,activeKey:gi,animated:wr,tabPosition:Sn,rtl:Jn,mobile:Tr},Xi=(0,ae.Z)((0,ae.Z)({},Vi),{},{editable:Zn,locale:lr,moreIcon:fr,moreTransitionName:yr,tabBarGutter:Xn,onTabClick:pa,onTabScroll:Qt,extra:rr,style:vr,panes:null,getPopupContainer:_n,popupClassName:Wn,indicatorSize:Gn});return ie.createElement(Ne.Provider,{value:{tabs:cr,prefixCls:Bt}},ie.createElement("div",(0,ne.Z)({ref:vt,id:It,className:pe()(Bt,"".concat(Bt,"-").concat(Sn),(Ct={},(0,z.Z)(Ct,"".concat(Bt,"-mobile"),Tr),(0,z.Z)(Ct,"".concat(Bt,"-editable"),Zn),(0,z.Z)(Ct,"".concat(Bt,"-rtl"),Jn),Ct),Ft)},gr),ie.createElement(Er,(0,ne.Z)({},Xi,{renderTabBar:Ot})),ie.createElement(Pe,(0,ne.Z)({destroyInactiveTabPane:Mr},Vi,{animated:wr}))))}var ei=ie.forwardRef(Gr),aa=ei,ca=aa,qi=ve(53124),Oi=ve(98675),Bi=()=>null,Di=ve(33603);const _a={motionAppear:!1,motionEnter:!0,motionLeave:!0};function _i(Je){let vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ct;return vt===!1?Ct={inkBar:!1,tabPane:!1}:vt===!0?Ct={inkBar:!0,tabPane:!0}:Ct=Object.assign({inkBar:!0},typeof vt=="object"?vt:{}),Ct.tabPane&&(Ct.tabPaneMotion=Object.assign(Object.assign({},_a),{motionName:(0,Di.m)(Je,"switch")})),Ct}var ta=ve(37419),Ea=function(Je,vt){var Ct={};for(var It in Je)Object.prototype.hasOwnProperty.call(Je,It)&&vt.indexOf(It)<0&&(Ct[It]=Je[It]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,It=Object.getOwnPropertySymbols(Je);At<It.length;At++)vt.indexOf(It[At])<0&&Object.prototype.propertyIsEnumerable.call(Je,It[At])&&(Ct[It[At]]=Je[It[At]]);return Ct};function Va(Je){return Je.filter(vt=>vt)}function Na(Je,vt){if(Je)return Je;const Ct=(0,ta.Z)(vt).map(It=>{if(ie.isValidElement(It)){const{key:At,props:Bt}=It,Ft=Bt||{},{tab:on}=Ft,gn=Ea(Ft,["tab"]);return Object.assign(Object.assign({key:String(At)},gn),{label:on})}return null});return Va(Ct)}var Pi=ve(14747),yn=ve(67968),dn=ve(45503),Kn=ve(67771),xr=Je=>{const{componentCls:vt,motionDurationSlow:Ct}=Je;return[{[vt]:{[`${vt}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ct}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ct}`}}}}},[(0,Kn.oN)(Je,"slide-up"),(0,Kn.oN)(Je,"slide-down")]]};const Wr=Je=>{const{componentCls:vt,tabsCardPadding:Ct,cardBg:It,cardGutter:At,colorBorderSecondary:Bt,itemSelectedColor:Ft}=Je;return{[`${vt}-card`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-tab`]:{margin:0,padding:Ct,background:It,border:`${Je.lineWidth}px ${Je.lineType} ${Bt}`,transition:`all ${Je.motionDurationSlow} ${Je.motionEaseInOut}`},[`${vt}-tab-active`]:{color:Ft,background:Je.colorBgContainer},[`${vt}-ink-bar`]:{visibility:"hidden"}},[`&${vt}-top, &${vt}-bottom`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-tab + ${vt}-tab`]:{marginLeft:{_skip_check_:!0,value:`${At}px`}}}},[`&${vt}-top`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-tab`]:{borderRadius:`${Je.borderRadiusLG}px ${Je.borderRadiusLG}px 0 0`},[`${vt}-tab-active`]:{borderBottomColor:Je.colorBgContainer}}},[`&${vt}-bottom`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-tab`]:{borderRadius:`0 0 ${Je.borderRadiusLG}px ${Je.borderRadiusLG}px`},[`${vt}-tab-active`]:{borderTopColor:Je.colorBgContainer}}},[`&${vt}-left, &${vt}-right`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-tab + ${vt}-tab`]:{marginTop:`${At}px`}}},[`&${vt}-left`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Je.borderRadiusLG}px 0 0 ${Je.borderRadiusLG}px`}},[`${vt}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Je.colorBgContainer}}}},[`&${vt}-right`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Je.borderRadiusLG}px ${Je.borderRadiusLG}px 0`}},[`${vt}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Je.colorBgContainer}}}}}}},oi=Je=>{const{componentCls:vt,itemHoverColor:Ct,dropdownEdgeChildVerticalPadding:It}=Je;return{[`${vt}-dropdown`]:Object.assign(Object.assign({},(0,Pi.Wf)(Je)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Je.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${vt}-dropdown-menu`]:{maxHeight:Je.tabsDropdownHeight,margin:0,padding:`${It}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Je.colorBgContainer,backgroundClip:"padding-box",borderRadius:Je.borderRadiusLG,outline:"none",boxShadow:Je.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Pi.vS),{display:"flex",alignItems:"center",minWidth:Je.tabsDropdownWidth,margin:0,padding:`${Je.paddingXXS}px ${Je.paddingSM}px`,color:Je.colorText,fontWeight:"normal",fontSize:Je.fontSize,lineHeight:Je.lineHeight,cursor:"pointer",transition:`all ${Je.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Je.marginSM},color:Je.colorTextDescription,fontSize:Je.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ct}},"&:hover":{background:Je.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Je.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},pi=Je=>{const{componentCls:vt,margin:Ct,colorBorderSecondary:It,horizontalMargin:At,verticalItemPadding:Bt,verticalItemMargin:Ft}=Je;return{[`${vt}-top, ${vt}-bottom`]:{flexDirection:"column",[`> ${vt}-nav, > div > ${vt}-nav`]:{margin:At,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Je.lineWidth}px ${Je.lineType} ${It}`,content:"''"},[`${vt}-ink-bar`]:{height:Je.lineWidthBold,"&-animated":{transition:`width ${Je.motionDurationSlow}, left ${Je.motionDurationSlow},
|
|
|
right ${Je.motionDurationSlow}`}},[`${vt}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Je.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Je.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Je.boxShadowTabsOverflowRight},[`&${vt}-nav-wrap-ping-left::before`]:{opacity:1},[`&${vt}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${vt}-top`]:{[`> ${vt}-nav,
|
|
|
> div > ${vt}-nav`]:{"&::before":{bottom:0},[`${vt}-ink-bar`]:{bottom:0}}},[`${vt}-bottom`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{order:1,marginTop:`${Ct}px`,marginBottom:0,"&::before":{top:0},[`${vt}-ink-bar`]:{top:0}},[`> ${vt}-content-holder, > div > ${vt}-content-holder`]:{order:0}},[`${vt}-left, ${vt}-right`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{flexDirection:"column",minWidth:Je.controlHeight*1.25,[`${vt}-tab`]:{padding:Bt,textAlign:"center"},[`${vt}-tab + ${vt}-tab`]:{margin:Ft},[`${vt}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Je.controlHeight},"&::before":{top:0,boxShadow:Je.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Je.boxShadowTabsOverflowBottom},[`&${vt}-nav-wrap-ping-top::before`]:{opacity:1},[`&${vt}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${vt}-ink-bar`]:{width:Je.lineWidthBold,"&-animated":{transition:`height ${Je.motionDurationSlow}, top ${Je.motionDurationSlow}`}},[`${vt}-nav-list, ${vt}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${vt}-left`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${vt}-content-holder, > div > ${vt}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Je.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Je.lineWidth}px ${Je.lineType} ${Je.colorBorder}`},[`> ${vt}-content > ${vt}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Je.paddingLG}}}},[`${vt}-right`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{order:1,[`${vt}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${vt}-content-holder, > div > ${vt}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Je.lineWidth},borderRight:{_skip_check_:!0,value:`${Je.lineWidth}px ${Je.lineType} ${Je.colorBorder}`},[`> ${vt}-content > ${vt}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Je.paddingLG}}}}}},Ei=Je=>{const{componentCls:vt,cardPaddingSM:Ct,cardPaddingLG:It,horizontalItemPaddingSM:At,horizontalItemPaddingLG:Bt}=Je;return{[vt]:{"&-small":{[`> ${vt}-nav`]:{[`${vt}-tab`]:{padding:At,fontSize:Je.titleFontSizeSM}}},"&-large":{[`> ${vt}-nav`]:{[`${vt}-tab`]:{padding:Bt,fontSize:Je.titleFontSizeLG}}}},[`${vt}-card`]:{[`&${vt}-small`]:{[`> ${vt}-nav`]:{[`${vt}-tab`]:{padding:Ct}},[`&${vt}-bottom`]:{[`> ${vt}-nav ${vt}-tab`]:{borderRadius:`0 0 ${Je.borderRadius}px ${Je.borderRadius}px`}},[`&${vt}-top`]:{[`> ${vt}-nav ${vt}-tab`]:{borderRadius:`${Je.borderRadius}px ${Je.borderRadius}px 0 0`}},[`&${vt}-right`]:{[`> ${vt}-nav ${vt}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Je.borderRadius}px ${Je.borderRadius}px 0`}}},[`&${vt}-left`]:{[`> ${vt}-nav ${vt}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Je.borderRadius}px 0 0 ${Je.borderRadius}px`}}}},[`&${vt}-large`]:{[`> ${vt}-nav`]:{[`${vt}-tab`]:{padding:It}}}}}},mi=Je=>{const{componentCls:vt,itemActiveColor:Ct,itemHoverColor:It,iconCls:At,tabsHorizontalItemMargin:Bt,horizontalItemPadding:Ft,itemSelectedColor:on,itemColor:gn}=Je,Ln=`${vt}-tab`;return{[Ln]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Ft,fontSize:Je.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:gn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ct}},(0,Pi.Qy)(Je)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Je.marginXXS},marginLeft:{_skip_check_:!0,value:Je.marginXS},color:Je.colorTextDescription,fontSize:Je.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Je.motionDurationSlow}`,"&:hover":{color:Je.colorTextHeading}},"&:hover":{color:It},[`&${Ln}-active ${Ln}-btn`]:{color:on,textShadow:Je.tabsActiveTextShadow},[`&${Ln}-disabled`]:{color:Je.colorTextDisabled,cursor:"not-allowed"},[`&${Ln}-disabled ${Ln}-btn, &${Ln}-disabled ${vt}-remove`]:{"&:focus, &:active":{color:Je.colorTextDisabled}},[`& ${Ln}-remove ${At}`]:{margin:0},[At]:{marginRight:{_skip_check_:!0,value:Je.marginSM}}},[`${Ln} + ${Ln}`]:{margin:{_skip_check_:!0,value:Bt}}}},Li=Je=>{const{componentCls:vt,tabsHorizontalItemMarginRTL:Ct,iconCls:It,cardGutter:At}=Je;return{[`${vt}-rtl`]:{direction:"rtl",[`${vt}-nav`]:{[`${vt}-tab`]:{margin:{_skip_check_:!0,value:Ct},[`${vt}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[It]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Je.marginSM}px`}},[`${vt}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Je.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Je.marginXXS}px`},[It]:{margin:0}}}},[`&${vt}-left`]:{[`> ${vt}-nav`]:{order:1},[`> ${vt}-content-holder`]:{order:0}},[`&${vt}-right`]:{[`> ${vt}-nav`]:{order:0},[`> ${vt}-content-holder`]:{order:1}},[`&${vt}-card${vt}-top, &${vt}-card${vt}-bottom`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-tab + ${vt}-tab`]:{marginRight:{_skip_check_:!0,value:At},marginLeft:{_skip_check_:!0,value:0}}}}},[`${vt}-dropdown-rtl`]:{direction:"rtl"},[`${vt}-menu-item`]:{[`${vt}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ea=Je=>{const{componentCls:vt,tabsCardPadding:Ct,cardHeight:It,cardGutter:At,itemHoverColor:Bt,itemActiveColor:Ft,colorBorderSecondary:on}=Je;return{[vt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pi.Wf)(Je)),{display:"flex",[`> ${vt}-nav, > div > ${vt}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${vt}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Je.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${vt}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Je.motionDurationSlow}`},[`${vt}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${vt}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${vt}-nav-more`]:{position:"relative",padding:Ct,background:"transparent",border:0,color:Je.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Je.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${vt}-nav-add`]:Object.assign({minWidth:It,marginLeft:{_skip_check_:!0,value:At},padding:`0 ${Je.paddingXS}px`,background:"transparent",border:`${Je.lineWidth}px ${Je.lineType} ${on}`,borderRadius:`${Je.borderRadiusLG}px ${Je.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Je.colorText,transition:`all ${Je.motionDurationSlow} ${Je.motionEaseInOut}`,"&:hover":{color:Bt},"&:active, &:focus:not(:focus-visible)":{color:Ft}},(0,Pi.Qy)(Je))},[`${vt}-extra-content`]:{flex:"none"},[`${vt}-ink-bar`]:{position:"absolute",background:Je.inkBarColor,pointerEvents:"none"}}),mi(Je)),{[`${vt}-content`]:{position:"relative",width:"100%"},[`${vt}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${vt}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${vt}-centered`]:{[`> ${vt}-nav, > div > ${vt}-nav`]:{[`${vt}-nav-wrap`]:{[`&:not([class*='${vt}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var ni=(0,yn.Z)("Tabs",Je=>{const vt=(0,dn.TS)(Je,{tabsCardPadding:Je.cardPadding||`${(Je.cardHeight-Math.round(Je.fontSize*Je.lineHeight))/2-Je.lineWidth}px ${Je.padding}px`,dropdownEdgeChildVerticalPadding:Je.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Je.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Je.horizontalItemGutter}px`});return[Ei(vt),Li(vt),pi(vt),oi(vt),Wr(vt),ea(vt),xr(vt)]},Je=>{const vt=Je.controlHeightLG;return{zIndexPopup:Je.zIndexPopupBase+50,cardBg:Je.colorFillAlter,cardHeight:vt,cardPadding:"",cardPaddingSM:`${Je.paddingXXS*1.5}px ${Je.padding}px`,cardPaddingLG:`${Je.paddingXS}px ${Je.padding}px ${Je.paddingXXS*1.5}px`,titleFontSize:Je.fontSize,titleFontSizeLG:Je.fontSizeLG,titleFontSizeSM:Je.fontSize,inkBarColor:Je.colorPrimary,horizontalMargin:`0 0 ${Je.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Je.paddingSM}px 0`,horizontalItemPaddingSM:`${Je.paddingXS}px 0`,horizontalItemPaddingLG:`${Je.padding}px 0`,verticalItemPadding:`${Je.paddingXS}px ${Je.paddingLG}px`,verticalItemMargin:`${Je.margin}px 0 0 0`,itemColor:Je.colorText,itemSelectedColor:Je.colorPrimary,itemHoverColor:Je.colorPrimaryHover,itemActiveColor:Je.colorPrimaryActive,cardGutter:Je.marginXXS/2}}),Mn=function(Je,vt){var Ct={};for(var It in Je)Object.prototype.hasOwnProperty.call(Je,It)&&vt.indexOf(It)<0&&(Ct[It]=Je[It]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,It=Object.getOwnPropertySymbols(Je);At<It.length;At++)vt.indexOf(It[At])<0&&Object.prototype.propertyIsEnumerable.call(Je,It[At])&&(Ct[It[At]]=Je[It[At]]);return Ct};const hn=Je=>{const{type:vt,className:Ct,rootClassName:It,size:At,onEdit:Bt,hideAdd:Ft,centered:on,addIcon:gn,popupClassName:Ln,children:qn,items:Zn,animated:Pn,style:Bn,indicatorSize:Sn}=Je,Xn=Mn(Je,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:vr,moreIcon:rr=ie.createElement(ot.Z,null)}=Xn,{direction:lr,tabs:fr,getPrefixCls:yr,getPopupContainer:Mr}=ie.useContext(qi.E_),Ot=yr("tabs",vr),[Rt,un]=ni(Ot);let Qt;vt==="editable-card"&&(Qt={onEdit:(Jn,wr)=>{let{key:_r,event:Vr}=wr;Bt==null||Bt(Jn==="add"?Vr:_r,Jn)},removeIcon:ie.createElement(Ue.Z,null),addIcon:gn||ie.createElement(x.Z,null),showAdd:Ft!==!0});const _n=yr(),Wn=Na(Zn,qn),Gn=_i(Ot,Pn),gr=(0,Oi.Z)(At),cr=Object.assign(Object.assign({},fr==null?void 0:fr.style),Bn);return Rt(ie.createElement(ca,Object.assign({direction:lr,getPopupContainer:Mr,moreTransitionName:`${_n}-slide-up`},Xn,{items:Wn,className:pe()({[`${Ot}-${gr}`]:gr,[`${Ot}-card`]:["card","editable-card"].includes(vt),[`${Ot}-editable-card`]:vt==="editable-card",[`${Ot}-centered`]:on},fr==null?void 0:fr.className,Ct,It,un),popupClassName:pe()(Ln,un),style:cr,editable:Qt,moreIcon:rr,prefixCls:Ot,animated:Gn,indicatorSize:Sn!=null?Sn:fr==null?void 0:fr.indicatorSize})))};hn.TabPane=Bi;var On=hn},79870:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return ni}});var Ue=ve(87462),ot=ve(4942),x=ve(71002),ke=ve(1413),pe=ve(74902),ne=ve(15671),z=ve(43144),ae=ve(97326),re=ve(60136),se=ve(51630),me=ve(94184),ie=ve.n(me),le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(hn){var On=hn.keyCode;if(hn.altKey&&!hn.ctrlKey||hn.metaKey||On>=le.F1&&On<=le.F12)return!1;switch(On){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(hn){if(hn>=le.ZERO&&hn<=le.NINE||hn>=le.NUM_ZERO&&hn<=le.NUM_MULTIPLY||hn>=le.A&&hn<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&hn===0)return!0;switch(hn){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ue=le,fe=ve(34952),he=ve(72978),oe=ve(67294),Se=ve(69610);function Ce(Mn){var hn=Mn.dropPosition,On=Mn.dropLevelOffset,Je=Mn.indent,vt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(hn){case-1:vt.top=0,vt.left=-On*Je;break;case 1:vt.bottom=0,vt.left=-On*Je;break;case 0:vt.bottom=0,vt.left=Je;break}return oe.createElement("div",{style:vt})}var ye=ve(36459),_e=ve(97685),Me=ve(45987);function we(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ne=we()?oe.useLayoutEffect:oe.useEffect,Ae=Ne,De=function(hn,On){var Je=React.useRef(!0);Ne(function(){if(!Je.current)return hn()},On),Ne(function(){return Je.current=!1,function(){Je.current=!0}},[])},Ie=ve(73299),Pe=ve(73935);function Le(Mn){return Mn instanceof HTMLElement||Mn instanceof SVGElement}function We(Mn){return Le(Mn)?Mn:Mn instanceof oe.Component?Pe.findDOMNode(Mn):null}var Be=ve(28580);function He(Mn,hn,On){var Je=React.useRef({});return(!("value"in Je.current)||On(Je.current.condition,hn))&&(Je.current.value=Mn(),Je.current.condition=hn),Je.current.value}function Ye(Mn,hn){typeof Mn=="function"?Mn(hn):(0,x.Z)(Mn)==="object"&&Mn&&"current"in Mn&&(Mn.current=hn)}function et(){for(var Mn=arguments.length,hn=new Array(Mn),On=0;On<Mn;On++)hn[On]=arguments[On];var Je=hn.filter(function(vt){return vt});return Je.length<=1?Je[0]:function(vt){hn.forEach(function(Ct){Ye(Ct,vt)})}}function st(){for(var Mn=arguments.length,hn=new Array(Mn),On=0;On<Mn;On++)hn[On]=arguments[On];return useMemo(function(){return et.apply(void 0,hn)},hn,function(Je,vt){return Je.length===vt.length&&Je.every(function(Ct,It){return Ct===vt[It]})})}function yt(Mn){var hn,On,Je=(0,Be.isMemo)(Mn)?Mn.type.type:Mn.type;return!(typeof Je=="function"&&!((hn=Je.prototype)!==null&&hn!==void 0&&hn.render)||typeof Mn=="function"&&!((On=Mn.prototype)!==null&&On!==void 0&&On.render))}function Ve(Mn,hn){var On={};return On[Mn.toLowerCase()]=hn.toLowerCase(),On["Webkit".concat(Mn)]="webkit".concat(hn),On["Moz".concat(Mn)]="moz".concat(hn),On["ms".concat(Mn)]="MS".concat(hn),On["O".concat(Mn)]="o".concat(hn.toLowerCase()),On}function Qe(Mn,hn){var On={animationend:Ve("Animation","AnimationEnd"),transitionend:Ve("Transition","TransitionEnd")};return Mn&&("AnimationEvent"in hn||delete On.animationend.animation,"TransitionEvent"in hn||delete On.transitionend.transition),On}var pt=Qe(we(),typeof window!="undefined"?window:{}),mt={};if(we()){var ft=document.createElement("div");mt=ft.style}var nt={};function tt(Mn){if(nt[Mn])return nt[Mn];var hn=pt[Mn];if(hn)for(var On=Object.keys(hn),Je=On.length,vt=0;vt<Je;vt+=1){var Ct=On[vt];if(Object.prototype.hasOwnProperty.call(hn,Ct)&&Ct in mt)return nt[Mn]=hn[Ct],nt[Mn]}return""}var rt=tt("animationend"),Et=tt("transitionend"),bt=!!(rt&&Et),Pt=rt||"animationend",Lt=Et||"transitionend";function dt(Mn,hn){if(!Mn)return null;if((0,x.Z)(Mn)==="object"){var On=hn.replace(/-\w/g,function(Je){return Je[1].toUpperCase()});return Mn[On]}return"".concat(Mn,"-").concat(hn)}var Ze="none",Ke="appear",de="enter",xe="leave",ze="none",$e="prepare",Ee="start",Re="active",Fe="end";function Ge(Mn){var hn=oe.useRef(!1),On=oe.useState(Mn),Je=(0,_e.Z)(On,2),vt=Je[0],Ct=Je[1];oe.useEffect(function(){return hn.current=!1,function(){hn.current=!0}},[]);function It(At,Bt){Bt&&hn.current||Ct(At)}return[vt,It]}var it=function(hn){return+setTimeout(hn,16)},gt=function(hn){return clearTimeout(hn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(it=function(hn){return window.requestAnimationFrame(hn)},gt=function(hn){return window.cancelAnimationFrame(hn)});var Kt=0,kt=new Map;function St(Mn){kt.delete(Mn)}var Wt=function(hn){var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Kt+=1;var Je=Kt;function vt(Ct){if(Ct===0)St(Je),hn();else{var It=it(function(){vt(Ct-1)});kt.set(Je,It)}}return vt(On),Je};Wt.cancel=function(Mn){var hn=kt.get(Mn);return St(hn),gt(hn)};var jt=Wt,Vt=function(){var Mn=oe.useRef(null);function hn(){jt.cancel(Mn.current)}function On(Je){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;hn();var Ct=jt(function(){vt<=1?Je({isCanceled:function(){return Ct!==Mn.current}}):On(Je,vt-1)});Mn.current=Ct}return oe.useEffect(function(){return function(){hn()}},[]),[On,hn]},_t=we()?oe.useLayoutEffect:oe.useEffect,sn=_t,Dt=[$e,Ee,Re,Fe],xt=!1,en=!0;function an(Mn){return Mn===Re||Mn===Fe}var fn=function(Mn,hn){var On=Ge(ze),Je=(0,_e.Z)(On,2),vt=Je[0],Ct=Je[1],It=Vt(),At=(0,_e.Z)(It,2),Bt=At[0],Ft=At[1];function on(){Ct($e,!0)}return sn(function(){if(vt!==ze&&vt!==Fe){var gn=Dt.indexOf(vt),Ln=Dt[gn+1],qn=hn(vt);qn===xt?Ct(Ln,!0):Bt(function(Zn){function Pn(){Zn.isCanceled()||Ct(Ln,!0)}qn===!0?Pn():Promise.resolve(qn).then(Pn)})}},[Mn,vt]),oe.useEffect(function(){return function(){Ft()}},[]),[on,vt]},Tn=function(Mn){var hn=(0,oe.useRef)(),On=(0,oe.useRef)(Mn);On.current=Mn;var Je=oe.useCallback(function(It){On.current(It)},[]);function vt(It){It&&(It.removeEventListener(Lt,Je),It.removeEventListener(Pt,Je))}function Ct(It){hn.current&&hn.current!==It&&vt(hn.current),It&&It!==hn.current&&(It.addEventListener(Lt,Je),It.addEventListener(Pt,Je),hn.current=It)}return oe.useEffect(function(){return function(){vt(hn.current)}},[]),[Ct,vt]};function ar(Mn,hn,On,Je){var vt=Je.motionEnter,Ct=vt===void 0?!0:vt,It=Je.motionAppear,At=It===void 0?!0:It,Bt=Je.motionLeave,Ft=Bt===void 0?!0:Bt,on=Je.motionDeadline,gn=Je.motionLeaveImmediately,Ln=Je.onAppearPrepare,qn=Je.onEnterPrepare,Zn=Je.onLeavePrepare,Pn=Je.onAppearStart,Bn=Je.onEnterStart,Sn=Je.onLeaveStart,Xn=Je.onAppearActive,vr=Je.onEnterActive,rr=Je.onLeaveActive,lr=Je.onAppearEnd,fr=Je.onEnterEnd,yr=Je.onLeaveEnd,Mr=Je.onVisibleChanged,Ot=Ge(),Rt=(0,_e.Z)(Ot,2),un=Rt[0],Qt=Rt[1],_n=Ge(Ze),Wn=(0,_e.Z)(_n,2),Gn=Wn[0],gr=Wn[1],cr=Ge(null),Jn=(0,_e.Z)(cr,2),wr=Jn[0],_r=Jn[1],Vr=(0,oe.useRef)(!1),Tr=(0,oe.useRef)(null);function qr(){return On()}var vi=(0,oe.useRef)(!1);function si(Vi){var Xi=qr();if(!(Vi&&!Vi.deadline&&Vi.target!==Xi)){var Ii=vi.current,ma;Gn===Ke&&Ii?ma=lr==null?void 0:lr(Xi,Vi):Gn===de&&Ii?ma=fr==null?void 0:fr(Xi,Vi):Gn===xe&&Ii&&(ma=yr==null?void 0:yr(Xi,Vi)),Gn!==Ze&&Ii&&ma!==!1&&(gr(Ze,!0),_r(null,!0))}}var gi=Tn(si),Qr=(0,_e.Z)(gi,1),ui=Qr[0],bi=oe.useMemo(function(){var Vi,Xi,Ii;switch(Gn){case Ke:return Vi={},(0,ot.Z)(Vi,$e,Ln),(0,ot.Z)(Vi,Ee,Pn),(0,ot.Z)(Vi,Re,Xn),Vi;case de:return Xi={},(0,ot.Z)(Xi,$e,qn),(0,ot.Z)(Xi,Ee,Bn),(0,ot.Z)(Xi,Re,vr),Xi;case xe:return Ii={},(0,ot.Z)(Ii,$e,Zn),(0,ot.Z)(Ii,Ee,Sn),(0,ot.Z)(Ii,Re,rr),Ii;default:return{}}},[Gn]),zi=fn(Gn,function(Vi){if(Vi===$e){var Xi=bi[$e];return Xi?Xi(qr()):xt}if(na in bi){var Ii;_r(((Ii=bi[na])===null||Ii===void 0?void 0:Ii.call(bi,qr(),null))||null)}return na===Re&&(ui(qr()),on>0&&(clearTimeout(Tr.current),Tr.current=setTimeout(function(){si({deadline:!0})},on))),en}),ti=(0,_e.Z)(zi,2),Ji=ti[0],na=ti[1],za=an(na);vi.current=za,sn(function(){Qt(hn);var Vi=Vr.current;if(Vr.current=!0,!!Mn){var Xi;!Vi&&hn&&At&&(Xi=Ke),Vi&&hn&&Ct&&(Xi=de),(Vi&&!hn&&Ft||!Vi&&gn&&!hn&&Ft)&&(Xi=xe),Xi&&(gr(Xi),Ji())}},[hn]),(0,oe.useEffect)(function(){(Gn===Ke&&!At||Gn===de&&!Ct||Gn===xe&&!Ft)&&gr(Ze)},[At,Ct,Ft]),(0,oe.useEffect)(function(){return function(){Vr.current=!1,clearTimeout(Tr.current)}},[]);var Ta=oe.useRef(!1);(0,oe.useEffect)(function(){un&&(Ta.current=!0),un!==void 0&&Gn===Ze&&((Ta.current||un)&&(Mr==null||Mr(un)),Ta.current=!0)},[un,Gn]);var pa=wr;return bi[$e]&&na===Ee&&(pa=(0,ke.Z)({transition:"none"},pa)),[Gn,na,pa,un!=null?un:hn]}var pr=function(Mn){(0,re.Z)(On,Mn);var hn=(0,se.Z)(On);function On(){return(0,ne.Z)(this,On),hn.apply(this,arguments)}return(0,z.Z)(On,[{key:"render",value:function(){return this.props.children}}]),On}(oe.Component),Ar=pr;function Dr(Mn){var hn=Mn;(0,x.Z)(Mn)==="object"&&(hn=Mn.transitionSupport);function On(vt){return!!(vt.motionName&&hn)}var Je=oe.forwardRef(function(vt,Ct){var It=vt.visible,At=It===void 0?!0:It,Bt=vt.removeOnLeave,Ft=Bt===void 0?!0:Bt,on=vt.forceRender,gn=vt.children,Ln=vt.motionName,qn=vt.leavedClassName,Zn=vt.eventProps,Pn=On(vt),Bn=(0,oe.useRef)(),Sn=(0,oe.useRef)();function Xn(){try{return Bn.current instanceof HTMLElement?Bn.current:We(Sn.current)}catch(cr){return null}}var vr=ar(Pn,At,Xn,vt),rr=(0,_e.Z)(vr,4),lr=rr[0],fr=rr[1],yr=rr[2],Mr=rr[3],Ot=oe.useRef(Mr);Mr&&(Ot.current=!0);var Rt=oe.useCallback(function(cr){Bn.current=cr,Ye(Ct,cr)},[Ct]),un,Qt=(0,ke.Z)((0,ke.Z)({},Zn),{},{visible:At});if(!gn)un=null;else if(lr===Ze||!On(vt))Mr?un=gn((0,ke.Z)({},Qt),Rt):!Ft&&Ot.current&&qn?un=gn((0,ke.Z)((0,ke.Z)({},Qt),{},{className:qn}),Rt):on||!Ft&&!qn?un=gn((0,ke.Z)((0,ke.Z)({},Qt),{},{style:{display:"none"}}),Rt):un=null;else{var _n,Wn;fr===$e?Wn="prepare":an(fr)?Wn="active":fr===Ee&&(Wn="start"),un=gn((0,ke.Z)((0,ke.Z)({},Qt),{},{className:ie()(dt(Ln,lr),(_n={},(0,ot.Z)(_n,dt(Ln,"".concat(lr,"-").concat(Wn)),Wn),(0,ot.Z)(_n,Ln,typeof Ln=="string"),_n)),style:yr}),Rt)}if(oe.isValidElement(un)&&yt(un)){var Gn=un,gr=Gn.ref;gr||(un=oe.cloneElement(un,{ref:Rt}))}return oe.createElement(Ar,{ref:Sn},un)});return Je.displayName="CSSMotion",Je}var dr=Dr(bt),zr="add",ai="keep",ki="remove",Ni="removed";function xi(Mn){var hn;return Mn&&(0,x.Z)(Mn)==="object"&&"key"in Mn?hn=Mn:hn={key:Mn},(0,ke.Z)((0,ke.Z)({},hn),{},{key:String(hn.key)})}function cn(){var Mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Mn.map(xi)}function ir(){var Mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],On=[],Je=0,vt=hn.length,Ct=cn(Mn),It=cn(hn);Ct.forEach(function(Ft){for(var on=!1,gn=Je;gn<vt;gn+=1){var Ln=It[gn];if(Ln.key===Ft.key){Je<gn&&(On=On.concat(It.slice(Je,gn).map(function(qn){return(0,ke.Z)((0,ke.Z)({},qn),{},{status:zr})})),Je=gn),On.push((0,ke.Z)((0,ke.Z)({},Ln),{},{status:ai})),Je+=1,on=!0;break}}on||On.push((0,ke.Z)((0,ke.Z)({},Ft),{},{status:ki}))}),Je<vt&&(On=On.concat(It.slice(Je).map(function(Ft){return(0,ke.Z)((0,ke.Z)({},Ft),{},{status:zr})})));var At={};On.forEach(function(Ft){var on=Ft.key;At[on]=(At[on]||0)+1});var Bt=Object.keys(At).filter(function(Ft){return At[Ft]>1});return Bt.forEach(function(Ft){On=On.filter(function(on){var gn=on.key,Ln=on.status;return gn!==Ft||Ln!==ki}),On.forEach(function(on){on.key===Ft&&(on.status=ai)})}),On}var sr=["component","children","onVisibleChanged","onAllRemoved"],Yn=["status"],Rr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Nn(Mn){var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dr,On=function(Je){(0,re.Z)(Ct,Je);var vt=(0,se.Z)(Ct);function Ct(){var It;(0,ne.Z)(this,Ct);for(var At=arguments.length,Bt=new Array(At),Ft=0;Ft<At;Ft++)Bt[Ft]=arguments[Ft];return It=vt.call.apply(vt,[this].concat(Bt)),(0,ot.Z)((0,ae.Z)(It),"state",{keyEntities:[]}),(0,ot.Z)((0,ae.Z)(It),"removeKey",function(on){var gn=It.state.keyEntities,Ln=gn.map(function(qn){return qn.key!==on?qn:(0,ke.Z)((0,ke.Z)({},qn),{},{status:Ni})});return It.setState({keyEntities:Ln}),Ln.filter(function(qn){var Zn=qn.status;return Zn!==Ni}).length}),It}return(0,z.Z)(Ct,[{key:"render",value:function(){var At=this,Bt=this.state.keyEntities,Ft=this.props,on=Ft.component,gn=Ft.children,Ln=Ft.onVisibleChanged,qn=Ft.onAllRemoved,Zn=(0,Me.Z)(Ft,sr),Pn=on||oe.Fragment,Bn={};return Rr.forEach(function(Sn){Bn[Sn]=Zn[Sn],delete Zn[Sn]}),delete Zn.keys,oe.createElement(Pn,Zn,Bt.map(function(Sn){var Xn=Sn.status,vr=(0,Me.Z)(Sn,Yn),rr=Xn===zr||Xn===ai;return oe.createElement(hn,(0,Ue.Z)({},Bn,{key:vr.key,visible:rr,eventProps:vr,onVisibleChanged:function(fr){if(Ln==null||Ln(fr,{key:vr.key}),!fr){var yr=At.removeKey(vr.key);yr===0&&qn&&qn()}}}),gn)}))}}],[{key:"getDerivedStateFromProps",value:function(At,Bt){var Ft=At.keys,on=Bt.keyEntities,gn=cn(Ft),Ln=ir(on,gn);return{keyEntities:Ln.filter(function(qn){var Zn=on.find(function(Pn){var Bn=Pn.key;return qn.key===Bn});return!(Zn&&Zn.status===Ni&&qn.status===ki)})}}}]),Ct}(oe.Component);return(0,ot.Z)(On,"defaultProps",{component:"div"}),On}var Hn=Nn(bt),jn=dr,Gt=ve(56261);function Xt(Mn,hn){var On=oe.useState(!1),Je=(0,_e.Z)(On,2),vt=Je[0],Ct=Je[1];oe.useLayoutEffect(function(){if(vt)return Mn(),function(){hn()}},[vt]),oe.useLayoutEffect(function(){return Ct(!0),function(){Ct(!1)}},[])}var rn=ve(83898),An=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],zt=function(hn,On){var Je=hn.className,vt=hn.style,Ct=hn.motion,It=hn.motionNodes,At=hn.motionType,Bt=hn.onMotionStart,Ft=hn.onMotionEnd,on=hn.active,gn=hn.treeNodeRequiredProps,Ln=(0,Me.Z)(hn,An),qn=oe.useState(!0),Zn=(0,_e.Z)(qn,2),Pn=Zn[0],Bn=Zn[1],Sn=oe.useContext(Se.k),Xn=Sn.prefixCls,vr=It&&At!=="hide";Ae(function(){It&&vr!==Pn&&Bn(vr)},[It]);var rr=function(){It&&Bt()},lr=oe.useRef(!1),fr=function(){It&&!lr.current&&(lr.current=!0,Ft())};Xt(rr,fr);var yr=function(Ot){vr===Ot&&fr()};return It?oe.createElement(jn,(0,Ue.Z)({ref:On,visible:Pn},Ct,{motionAppear:At==="show",onVisibleChanged:yr}),function(Mr,Ot){var Rt=Mr.className,un=Mr.style;return oe.createElement("div",{ref:Ot,className:ie()("".concat(Xn,"-treenode-motion"),Rt),style:un},It.map(function(Qt){var _n=(0,Ue.Z)({},((0,ye.Z)(Qt.data),Qt.data)),Wn=Qt.title,Gn=Qt.key,gr=Qt.isStart,cr=Qt.isEnd;delete _n.children;var Jn=(0,rn.H8)(Gn,gn);return oe.createElement(Gt.Z,(0,Ue.Z)({},_n,Jn,{title:Wn,active:on,data:Qt.data,key:Gn,isStart:gr,isEnd:cr}))}))}):oe.createElement(Gt.Z,(0,Ue.Z)({domRef:On,className:Je,style:vt},Ln,{active:on}))};zt.displayName="MotionTreeNode";var tn=oe.forwardRef(zt),bn=tn;function wn(){var Mn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],On=Mn.length,Je=hn.length;if(Math.abs(On-Je)!==1)return{add:!1,key:null};function vt(Ct,It){var At=new Map;Ct.forEach(function(Ft){At.set(Ft,!0)});var Bt=It.filter(function(Ft){return!At.has(Ft)});return Bt.length===1?Bt[0]:null}return On<Je?{add:!0,key:vt(Mn,hn)}:{add:!1,key:vt(hn,Mn)}}function zn(Mn,hn,On){var Je=Mn.findIndex(function(At){return At.key===On}),vt=Mn[Je+1],Ct=hn.findIndex(function(At){return At.key===On});if(vt){var It=hn.findIndex(function(At){return At.key===vt.key});return hn.slice(Ct+1,It)}return hn.slice(Ct+1)}var Un=["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"],kr={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zr=function(){},Ir="RC_TREE_MOTION_".concat(Math.random()),Er={key:Ir},Br={key:Ir,level:0,index:0,pos:"0",node:Er,nodes:[Er]},Pr={parent:null,children:[],pos:Br.pos,data:Er,title:null,key:Ir,isStart:[],isEnd:[]};function nn(Mn,hn,On,Je){return hn===!1||!On?Mn:Mn.slice(0,Math.ceil(On/Je)+1)}function Jt(Mn){var hn=Mn.key,On=Mn.pos;return(0,rn.km)(hn,On)}function pn(Mn){for(var hn=String(Mn.data.key),On=Mn;On.parent;)On=On.parent,hn="".concat(On.data.key," > ").concat(hn);return hn}var Qn=oe.forwardRef(function(Mn,hn){var On=Mn.prefixCls,Je=Mn.data,vt=Mn.selectable,Ct=Mn.checkable,It=Mn.expandedKeys,At=Mn.selectedKeys,Bt=Mn.checkedKeys,Ft=Mn.loadedKeys,on=Mn.loadingKeys,gn=Mn.halfCheckedKeys,Ln=Mn.keyEntities,qn=Mn.disabled,Zn=Mn.dragging,Pn=Mn.dragOverNodeKey,Bn=Mn.dropPosition,Sn=Mn.motion,Xn=Mn.height,vr=Mn.itemHeight,rr=Mn.virtual,lr=Mn.focusable,fr=Mn.activeItem,yr=Mn.focused,Mr=Mn.tabIndex,Ot=Mn.onKeyDown,Rt=Mn.onFocus,un=Mn.onBlur,Qt=Mn.onActiveChange,_n=Mn.onListChangeStart,Wn=Mn.onListChangeEnd,Gn=(0,Me.Z)(Mn,Un),gr=oe.useRef(null),cr=oe.useRef(null);oe.useImperativeHandle(hn,function(){return{scrollTo:function(sa){gr.current.scrollTo(sa)},getIndentWidth:function(){return cr.current.offsetWidth}}});var Jn=oe.useState(It),wr=(0,_e.Z)(Jn,2),_r=wr[0],Vr=wr[1],Tr=oe.useState(Je),qr=(0,_e.Z)(Tr,2),vi=qr[0],si=qr[1],gi=oe.useState(Je),Qr=(0,_e.Z)(gi,2),ui=Qr[0],bi=Qr[1],zi=oe.useState([]),ti=(0,_e.Z)(zi,2),Ji=ti[0],na=ti[1],za=oe.useState(null),Ta=(0,_e.Z)(za,2),pa=Ta[0],Vi=Ta[1],Xi=oe.useRef(Je);Xi.current=Je;function Ii(){var wi=Xi.current;si(wi),bi(wi),na([]),Vi(null),Wn()}Ae(function(){Vr(It);var wi=wn(_r,It);if(wi.key!==null)if(wi.add){var sa=vi.findIndex(function(La){var ua=La.key;return ua===wi.key}),Ma=nn(zn(vi,Je,wi.key),rr,Xn,vr),go=vi.slice();go.splice(sa+1,0,Pr),bi(go),na(Ma),Vi("show")}else{var ho=Je.findIndex(function(La){var ua=La.key;return ua===wi.key}),Ja=nn(zn(Je,vi,wi.key),rr,Xn,vr),Za=Je.slice();Za.splice(ho+1,0,Pr),bi(Za),na(Ja),Vi("hide")}else vi!==Je&&(si(Je),bi(Je))},[It,Je]),oe.useEffect(function(){Zn||Ii()},[Zn]);var ma=Sn?ui:Je,Ri={expandedKeys:It,selectedKeys:At,loadedKeys:Ft,loadingKeys:on,checkedKeys:Bt,halfCheckedKeys:gn,dragOverNodeKey:Pn,dropPosition:Bn,keyEntities:Ln};return oe.createElement(oe.Fragment,null,yr&&fr&&oe.createElement("span",{style:kr,"aria-live":"assertive"},pn(fr)),oe.createElement("div",null,oe.createElement("input",{style:kr,disabled:lr===!1||qn,tabIndex:lr!==!1?Mr:null,onKeyDown:Ot,onFocus:Rt,onBlur:un,value:"",onChange:Zr,"aria-label":"for screen reader"})),oe.createElement("div",{className:"".concat(On,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},oe.createElement("div",{className:"".concat(On,"-indent")},oe.createElement("div",{ref:cr,className:"".concat(On,"-indent-unit")}))),oe.createElement(Ie.Z,(0,Ue.Z)({},Gn,{data:ma,itemKey:Jt,height:Xn,fullHeight:!1,virtual:rr,itemHeight:vr,prefixCls:"".concat(On,"-list"),ref:gr,onVisibleChange:function(sa,Ma){var go=new Set(sa),ho=Ma.filter(function(Ja){return!go.has(Ja)});ho.some(function(Ja){return Jt(Ja)===Ir})&&Ii()}}),function(wi){var sa=wi.pos,Ma=(0,Ue.Z)({},((0,ye.Z)(wi.data),wi.data)),go=wi.title,ho=wi.key,Ja=wi.isStart,Za=wi.isEnd,La=(0,rn.km)(ho,sa);delete Ma.key,delete Ma.children;var ua=(0,rn.H8)(La,Ri);return oe.createElement(bn,(0,Ue.Z)({},Ma,ua,{title:go,active:!!fr&&ho===fr.key,pos:sa,data:wi.data,isStart:Ja,isEnd:Za,motion:Sn,motionNodes:ho===Ir?Ji:null,motionType:pa,onMotionStart:_n,onMotionEnd:Ii,treeNodeRequiredProps:Ri,onMouseMove:function(){Qt(null)}}))}))});Qn.displayName="NodeList";var hr=Qn,Fn=ve(29873),Vn=ve(97153),er=ve(3596),Sr=10,Nr=function(Mn){(0,re.Z)(On,Mn);var hn=(0,se.Z)(On);function On(){var Je;(0,ne.Z)(this,On);for(var vt=arguments.length,Ct=new Array(vt),It=0;It<vt;It++)Ct[It]=arguments[It];return Je=hn.call.apply(hn,[this].concat(Ct)),Je.destroyed=!1,Je.delayedDragEnterLogic=void 0,Je.loadingRetryTimes={},Je.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,rn.w$)()},Je.dragStartMousePosition=null,Je.dragNode=void 0,Je.currentMouseOverDroppableNodeKey=null,Je.listRef=oe.createRef(),Je.onNodeDragStart=function(At,Bt){var Ft=Je.state,on=Ft.expandedKeys,gn=Ft.keyEntities,Ln=Je.props.onDragStart,qn=Bt.props.eventKey;Je.dragNode=Bt,Je.dragStartMousePosition={x:At.clientX,y:At.clientY};var Zn=(0,Fn._5)(on,qn);Je.setState({draggingNodeKey:qn,dragChildrenKeys:(0,Fn.wA)(qn,gn),indent:Je.listRef.current.getIndentWidth()}),Je.setExpandedKeys(Zn),window.addEventListener("dragend",Je.onWindowDragEnd),Ln==null||Ln({event:At,node:(0,rn.F)(Bt.props)})},Je.onNodeDragEnter=function(At,Bt){var Ft=Je.state,on=Ft.expandedKeys,gn=Ft.keyEntities,Ln=Ft.dragChildrenKeys,qn=Ft.flattenNodes,Zn=Ft.indent,Pn=Je.props,Bn=Pn.onDragEnter,Sn=Pn.onExpand,Xn=Pn.allowDrop,vr=Pn.direction,rr=Bt.props,lr=rr.pos,fr=rr.eventKey,yr=(0,ae.Z)(Je),Mr=yr.dragNode;if(Je.currentMouseOverDroppableNodeKey!==fr&&(Je.currentMouseOverDroppableNodeKey=fr),!Mr){Je.resetDragState();return}var Ot=(0,Fn.OM)(At,Mr,Bt,Zn,Je.dragStartMousePosition,Xn,qn,gn,on,vr),Rt=Ot.dropPosition,un=Ot.dropLevelOffset,Qt=Ot.dropTargetKey,_n=Ot.dropContainerKey,Wn=Ot.dropTargetPos,Gn=Ot.dropAllowed,gr=Ot.dragOverNodeKey;if(Ln.indexOf(Qt)!==-1||!Gn){Je.resetDragState();return}if(Je.delayedDragEnterLogic||(Je.delayedDragEnterLogic={}),Object.keys(Je.delayedDragEnterLogic).forEach(function(cr){clearTimeout(Je.delayedDragEnterLogic[cr])}),Mr.props.eventKey!==Bt.props.eventKey&&(At.persist(),Je.delayedDragEnterLogic[lr]=window.setTimeout(function(){if(Je.state.draggingNodeKey!==null){var cr=(0,pe.Z)(on),Jn=(0,er.Z)(gn,Bt.props.eventKey);Jn&&(Jn.children||[]).length&&(cr=(0,Fn.L0)(on,Bt.props.eventKey)),"expandedKeys"in Je.props||Je.setExpandedKeys(cr),Sn==null||Sn(cr,{node:(0,rn.F)(Bt.props),expanded:!0,nativeEvent:At.nativeEvent})}},800)),Mr.props.eventKey===Qt&&un===0){Je.resetDragState();return}Je.setState({dragOverNodeKey:gr,dropPosition:Rt,dropLevelOffset:un,dropTargetKey:Qt,dropContainerKey:_n,dropTargetPos:Wn,dropAllowed:Gn}),Bn==null||Bn({event:At,node:(0,rn.F)(Bt.props),expandedKeys:on})},Je.onNodeDragOver=function(At,Bt){var Ft=Je.state,on=Ft.dragChildrenKeys,gn=Ft.flattenNodes,Ln=Ft.keyEntities,qn=Ft.expandedKeys,Zn=Ft.indent,Pn=Je.props,Bn=Pn.onDragOver,Sn=Pn.allowDrop,Xn=Pn.direction,vr=(0,ae.Z)(Je),rr=vr.dragNode;if(rr){var lr=(0,Fn.OM)(At,rr,Bt,Zn,Je.dragStartMousePosition,Sn,gn,Ln,qn,Xn),fr=lr.dropPosition,yr=lr.dropLevelOffset,Mr=lr.dropTargetKey,Ot=lr.dropContainerKey,Rt=lr.dropAllowed,un=lr.dropTargetPos,Qt=lr.dragOverNodeKey;on.indexOf(Mr)!==-1||!Rt||(rr.props.eventKey===Mr&&yr===0?Je.state.dropPosition===null&&Je.state.dropLevelOffset===null&&Je.state.dropTargetKey===null&&Je.state.dropContainerKey===null&&Je.state.dropTargetPos===null&&Je.state.dropAllowed===!1&&Je.state.dragOverNodeKey===null||Je.resetDragState():fr===Je.state.dropPosition&&yr===Je.state.dropLevelOffset&&Mr===Je.state.dropTargetKey&&Ot===Je.state.dropContainerKey&&un===Je.state.dropTargetPos&&Rt===Je.state.dropAllowed&&Qt===Je.state.dragOverNodeKey||Je.setState({dropPosition:fr,dropLevelOffset:yr,dropTargetKey:Mr,dropContainerKey:Ot,dropTargetPos:un,dropAllowed:Rt,dragOverNodeKey:Qt}),Bn==null||Bn({event:At,node:(0,rn.F)(Bt.props)}))}},Je.onNodeDragLeave=function(At,Bt){Je.currentMouseOverDroppableNodeKey===Bt.props.eventKey&&!At.currentTarget.contains(At.relatedTarget)&&(Je.resetDragState(),Je.currentMouseOverDroppableNodeKey=null);var Ft=Je.props.onDragLeave;Ft==null||Ft({event:At,node:(0,rn.F)(Bt.props)})},Je.onWindowDragEnd=function(At){Je.onNodeDragEnd(At,null,!0),window.removeEventListener("dragend",Je.onWindowDragEnd)},Je.onNodeDragEnd=function(At,Bt){var Ft=Je.props.onDragEnd;Je.setState({dragOverNodeKey:null}),Je.cleanDragState(),Ft==null||Ft({event:At,node:(0,rn.F)(Bt.props)}),Je.dragNode=null,window.removeEventListener("dragend",Je.onWindowDragEnd)},Je.onNodeDrop=function(At,Bt){var Ft,on=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,gn=Je.state,Ln=gn.dragChildrenKeys,qn=gn.dropPosition,Zn=gn.dropTargetKey,Pn=gn.dropTargetPos,Bn=gn.dropAllowed;if(Bn){var Sn=Je.props.onDrop;if(Je.setState({dragOverNodeKey:null}),Je.cleanDragState(),Zn!==null){var Xn=(0,ke.Z)((0,ke.Z)({},(0,rn.H8)(Zn,Je.getTreeNodeRequiredProps())),{},{active:((Ft=Je.getActiveItem())===null||Ft===void 0?void 0:Ft.key)===Zn,data:(0,er.Z)(Je.state.keyEntities,Zn).node}),vr=Ln.indexOf(Zn)!==-1;(0,he.ZP)(!vr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var rr=(0,Fn.yx)(Pn),lr={event:At,node:(0,rn.F)(Xn),dragNode:Je.dragNode?(0,rn.F)(Je.dragNode.props):null,dragNodesKeys:[Je.dragNode.props.eventKey].concat(Ln),dropToGap:qn!==0,dropPosition:qn+Number(rr[rr.length-1])};on||Sn==null||Sn(lr),Je.dragNode=null}}},Je.cleanDragState=function(){var At=Je.state.draggingNodeKey;At!==null&&Je.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Je.dragStartMousePosition=null,Je.currentMouseOverDroppableNodeKey=null},Je.triggerExpandActionExpand=function(At,Bt){var Ft=Je.state,on=Ft.expandedKeys,gn=Ft.flattenNodes,Ln=Bt.expanded,qn=Bt.key,Zn=Bt.isLeaf;if(!(Zn||At.shiftKey||At.metaKey||At.ctrlKey)){var Pn=gn.filter(function(Sn){return Sn.key===qn})[0],Bn=(0,rn.F)((0,ke.Z)((0,ke.Z)({},(0,rn.H8)(qn,Je.getTreeNodeRequiredProps())),{},{data:Pn.data}));Je.setExpandedKeys(Ln?(0,Fn._5)(on,qn):(0,Fn.L0)(on,qn)),Je.onNodeExpand(At,Bn)}},Je.onNodeClick=function(At,Bt){var Ft=Je.props,on=Ft.onClick,gn=Ft.expandAction;gn==="click"&&Je.triggerExpandActionExpand(At,Bt),on==null||on(At,Bt)},Je.onNodeDoubleClick=function(At,Bt){var Ft=Je.props,on=Ft.onDoubleClick,gn=Ft.expandAction;gn==="doubleClick"&&Je.triggerExpandActionExpand(At,Bt),on==null||on(At,Bt)},Je.onNodeSelect=function(At,Bt){var Ft=Je.state.selectedKeys,on=Je.state,gn=on.keyEntities,Ln=on.fieldNames,qn=Je.props,Zn=qn.onSelect,Pn=qn.multiple,Bn=Bt.selected,Sn=Bt[Ln.key],Xn=!Bn;Xn?Pn?Ft=(0,Fn.L0)(Ft,Sn):Ft=[Sn]:Ft=(0,Fn._5)(Ft,Sn);var vr=Ft.map(function(rr){var lr=(0,er.Z)(gn,rr);return lr?lr.node:null}).filter(function(rr){return rr});Je.setUncontrolledState({selectedKeys:Ft}),Zn==null||Zn(Ft,{event:"select",selected:Xn,node:Bt,selectedNodes:vr,nativeEvent:At.nativeEvent})},Je.onNodeCheck=function(At,Bt,Ft){var on=Je.state,gn=on.keyEntities,Ln=on.checkedKeys,qn=on.halfCheckedKeys,Zn=Je.props,Pn=Zn.checkStrictly,Bn=Zn.onCheck,Sn=Bt.key,Xn,vr={event:"check",node:Bt,checked:Ft,nativeEvent:At.nativeEvent};if(Pn){var rr=Ft?(0,Fn.L0)(Ln,Sn):(0,Fn._5)(Ln,Sn),lr=(0,Fn._5)(qn,Sn);Xn={checked:rr,halfChecked:lr},vr.checkedNodes=rr.map(function(un){return(0,er.Z)(gn,un)}).filter(function(un){return un}).map(function(un){return un.node}),Je.setUncontrolledState({checkedKeys:rr})}else{var fr=(0,Vn.S)([].concat((0,pe.Z)(Ln),[Sn]),!0,gn),yr=fr.checkedKeys,Mr=fr.halfCheckedKeys;if(!Ft){var Ot=new Set(yr);Ot.delete(Sn);var Rt=(0,Vn.S)(Array.from(Ot),{checked:!1,halfCheckedKeys:Mr},gn);yr=Rt.checkedKeys,Mr=Rt.halfCheckedKeys}Xn=yr,vr.checkedNodes=[],vr.checkedNodesPositions=[],vr.halfCheckedKeys=Mr,yr.forEach(function(un){var Qt=(0,er.Z)(gn,un);if(Qt){var _n=Qt.node,Wn=Qt.pos;vr.checkedNodes.push(_n),vr.checkedNodesPositions.push({node:_n,pos:Wn})}}),Je.setUncontrolledState({checkedKeys:yr},!1,{halfCheckedKeys:Mr})}Bn==null||Bn(Xn,vr)},Je.onNodeLoad=function(At){var Bt=At.key,Ft=new Promise(function(on,gn){Je.setState(function(Ln){var qn=Ln.loadedKeys,Zn=qn===void 0?[]:qn,Pn=Ln.loadingKeys,Bn=Pn===void 0?[]:Pn,Sn=Je.props,Xn=Sn.loadData,vr=Sn.onLoad;if(!Xn||Zn.indexOf(Bt)!==-1||Bn.indexOf(Bt)!==-1)return null;var rr=Xn(At);return rr.then(function(){var lr=Je.state.loadedKeys,fr=(0,Fn.L0)(lr,Bt);vr==null||vr(fr,{event:"load",node:At}),Je.setUncontrolledState({loadedKeys:fr}),Je.setState(function(yr){return{loadingKeys:(0,Fn._5)(yr.loadingKeys,Bt)}}),on()}).catch(function(lr){if(Je.setState(function(yr){return{loadingKeys:(0,Fn._5)(yr.loadingKeys,Bt)}}),Je.loadingRetryTimes[Bt]=(Je.loadingRetryTimes[Bt]||0)+1,Je.loadingRetryTimes[Bt]>=Sr){var fr=Je.state.loadedKeys;(0,he.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Je.setUncontrolledState({loadedKeys:(0,Fn.L0)(fr,Bt)}),on()}gn(lr)}),{loadingKeys:(0,Fn.L0)(Bn,Bt)}})});return Ft.catch(function(){}),Ft},Je.onNodeMouseEnter=function(At,Bt){var Ft=Je.props.onMouseEnter;Ft==null||Ft({event:At,node:Bt})},Je.onNodeMouseLeave=function(At,Bt){var Ft=Je.props.onMouseLeave;Ft==null||Ft({event:At,node:Bt})},Je.onNodeContextMenu=function(At,Bt){var Ft=Je.props.onRightClick;Ft&&(At.preventDefault(),Ft({event:At,node:Bt}))},Je.onFocus=function(){var At=Je.props.onFocus;Je.setState({focused:!0});for(var Bt=arguments.length,Ft=new Array(Bt),on=0;on<Bt;on++)Ft[on]=arguments[on];At==null||At.apply(void 0,Ft)},Je.onBlur=function(){var At=Je.props.onBlur;Je.setState({focused:!1}),Je.onActiveChange(null);for(var Bt=arguments.length,Ft=new Array(Bt),on=0;on<Bt;on++)Ft[on]=arguments[on];At==null||At.apply(void 0,Ft)},Je.getTreeNodeRequiredProps=function(){var At=Je.state,Bt=At.expandedKeys,Ft=At.selectedKeys,on=At.loadedKeys,gn=At.loadingKeys,Ln=At.checkedKeys,qn=At.halfCheckedKeys,Zn=At.dragOverNodeKey,Pn=At.dropPosition,Bn=At.keyEntities;return{expandedKeys:Bt||[],selectedKeys:Ft||[],loadedKeys:on||[],loadingKeys:gn||[],checkedKeys:Ln||[],halfCheckedKeys:qn||[],dragOverNodeKey:Zn,dropPosition:Pn,keyEntities:Bn}},Je.setExpandedKeys=function(At){var Bt=Je.state,Ft=Bt.treeData,on=Bt.fieldNames,gn=(0,rn.oH)(Ft,At,on);Je.setUncontrolledState({expandedKeys:At,flattenNodes:gn},!0)},Je.onNodeExpand=function(At,Bt){var Ft=Je.state.expandedKeys,on=Je.state,gn=on.listChanging,Ln=on.fieldNames,qn=Je.props,Zn=qn.onExpand,Pn=qn.loadData,Bn=Bt.expanded,Sn=Bt[Ln.key];if(!gn){var Xn=Ft.indexOf(Sn),vr=!Bn;if((0,he.ZP)(Bn&&Xn!==-1||!Bn&&Xn===-1,"Expand state not sync with index check"),vr?Ft=(0,Fn.L0)(Ft,Sn):Ft=(0,Fn._5)(Ft,Sn),Je.setExpandedKeys(Ft),Zn==null||Zn(Ft,{node:Bt,expanded:vr,nativeEvent:At.nativeEvent}),vr&&Pn){var rr=Je.onNodeLoad(Bt);rr&&rr.then(function(){var lr=(0,rn.oH)(Je.state.treeData,Ft,Ln);Je.setUncontrolledState({flattenNodes:lr})}).catch(function(){var lr=Je.state.expandedKeys,fr=(0,Fn._5)(lr,Sn);Je.setExpandedKeys(fr)})}}},Je.onListChangeStart=function(){Je.setUncontrolledState({listChanging:!0})},Je.onListChangeEnd=function(){setTimeout(function(){Je.setUncontrolledState({listChanging:!1})})},Je.onActiveChange=function(At){var Bt=Je.state.activeKey,Ft=Je.props.onActiveChange;Bt!==At&&(Je.setState({activeKey:At}),At!==null&&Je.scrollTo({key:At}),Ft==null||Ft(At))},Je.getActiveItem=function(){var At=Je.state,Bt=At.activeKey,Ft=At.flattenNodes;return Bt===null?null:Ft.find(function(on){var gn=on.key;return gn===Bt})||null},Je.offsetActiveKey=function(At){var Bt=Je.state,Ft=Bt.flattenNodes,on=Bt.activeKey,gn=Ft.findIndex(function(Zn){var Pn=Zn.key;return Pn===on});gn===-1&&At<0&&(gn=Ft.length),gn=(gn+At+Ft.length)%Ft.length;var Ln=Ft[gn];if(Ln){var qn=Ln.key;Je.onActiveChange(qn)}else Je.onActiveChange(null)},Je.onKeyDown=function(At){var Bt=Je.state,Ft=Bt.activeKey,on=Bt.expandedKeys,gn=Bt.checkedKeys,Ln=Bt.fieldNames,qn=Je.props,Zn=qn.onKeyDown,Pn=qn.checkable,Bn=qn.selectable;switch(At.which){case ue.UP:{Je.offsetActiveKey(-1),At.preventDefault();break}case ue.DOWN:{Je.offsetActiveKey(1),At.preventDefault();break}}var Sn=Je.getActiveItem();if(Sn&&Sn.data){var Xn=Je.getTreeNodeRequiredProps(),vr=Sn.data.isLeaf===!1||!!(Sn.data[Ln.children]||[]).length,rr=(0,rn.F)((0,ke.Z)((0,ke.Z)({},(0,rn.H8)(Ft,Xn)),{},{data:Sn.data,active:!0}));switch(At.which){case ue.LEFT:{vr&&on.includes(Ft)?Je.onNodeExpand({},rr):Sn.parent&&Je.onActiveChange(Sn.parent.key),At.preventDefault();break}case ue.RIGHT:{vr&&!on.includes(Ft)?Je.onNodeExpand({},rr):Sn.children&&Sn.children.length&&Je.onActiveChange(Sn.children[0].key),At.preventDefault();break}case ue.ENTER:case ue.SPACE:{Pn&&!rr.disabled&&rr.checkable!==!1&&!rr.disableCheckbox?Je.onNodeCheck({},rr,!gn.includes(Ft)):!Pn&&Bn&&!rr.disabled&&rr.selectable!==!1&&Je.onNodeSelect({},rr);break}}}Zn==null||Zn(At)},Je.setUncontrolledState=function(At){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Je.destroyed){var on=!1,gn=!0,Ln={};Object.keys(At).forEach(function(qn){if(qn in Je.props){gn=!1;return}on=!0,Ln[qn]=At[qn]}),on&&(!Bt||gn)&&Je.setState((0,ke.Z)((0,ke.Z)({},Ln),Ft))}},Je.scrollTo=function(At){Je.listRef.current.scrollTo(At)},Je}return(0,z.Z)(On,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var vt=this.props.activeKey;vt!==void 0&&vt!==this.state.activeKey&&(this.setState({activeKey:vt}),vt!==null&&this.scrollTo({key:vt}))}},{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 vt,Ct=this.state,It=Ct.focused,At=Ct.flattenNodes,Bt=Ct.keyEntities,Ft=Ct.draggingNodeKey,on=Ct.activeKey,gn=Ct.dropLevelOffset,Ln=Ct.dropContainerKey,qn=Ct.dropTargetKey,Zn=Ct.dropPosition,Pn=Ct.dragOverNodeKey,Bn=Ct.indent,Sn=this.props,Xn=Sn.prefixCls,vr=Sn.className,rr=Sn.style,lr=Sn.showLine,fr=Sn.focusable,yr=Sn.tabIndex,Mr=yr===void 0?0:yr,Ot=Sn.selectable,Rt=Sn.showIcon,un=Sn.icon,Qt=Sn.switcherIcon,_n=Sn.draggable,Wn=Sn.checkable,Gn=Sn.checkStrictly,gr=Sn.disabled,cr=Sn.motion,Jn=Sn.loadData,wr=Sn.filterTreeNode,_r=Sn.height,Vr=Sn.itemHeight,Tr=Sn.virtual,qr=Sn.titleRender,vi=Sn.dropIndicatorRender,si=Sn.onContextMenu,gi=Sn.onScroll,Qr=Sn.direction,ui=Sn.rootClassName,bi=Sn.rootStyle,zi=(0,fe.Z)(this.props,{aria:!0,data:!0}),ti;return _n&&((0,x.Z)(_n)==="object"?ti=_n:typeof _n=="function"?ti={nodeDraggable:_n}:ti={}),oe.createElement(Se.k.Provider,{value:{prefixCls:Xn,selectable:Ot,showIcon:Rt,icon:un,switcherIcon:Qt,draggable:ti,draggingNodeKey:Ft,checkable:Wn,checkStrictly:Gn,disabled:gr,keyEntities:Bt,dropLevelOffset:gn,dropContainerKey:Ln,dropTargetKey:qn,dropPosition:Zn,dragOverNodeKey:Pn,indent:Bn,direction:Qr,dropIndicatorRender:vi,loadData:Jn,filterTreeNode:wr,titleRender:qr,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}},oe.createElement("div",{role:"tree",className:ie()(Xn,vr,ui,(vt={},(0,ot.Z)(vt,"".concat(Xn,"-show-line"),lr),(0,ot.Z)(vt,"".concat(Xn,"-focused"),It),(0,ot.Z)(vt,"".concat(Xn,"-active-focused"),on!==null),vt)),style:bi},oe.createElement(hr,(0,Ue.Z)({ref:this.listRef,prefixCls:Xn,style:rr,data:At,disabled:gr,selectable:Ot,checkable:!!Wn,motion:cr,dragging:Ft!==null,height:_r,itemHeight:Vr,virtual:Tr,focusable:fr,focused:It,tabIndex:Mr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:si,onScroll:gi},this.getTreeNodeRequiredProps(),zi))))}}],[{key:"getDerivedStateFromProps",value:function(vt,Ct){var It=Ct.prevProps,At={prevProps:vt};function Bt(fr){return!It&&fr in vt||It&&It[fr]!==vt[fr]}var Ft,on=Ct.fieldNames;if(Bt("fieldNames")&&(on=(0,rn.w$)(vt.fieldNames),At.fieldNames=on),Bt("treeData")?Ft=vt.treeData:Bt("children")&&((0,he.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ft=(0,rn.zn)(vt.children)),Ft){At.treeData=Ft;var gn=(0,rn.I8)(Ft,{fieldNames:on});At.keyEntities=(0,ke.Z)((0,ot.Z)({},Ir,Br),gn.keyEntities)}var Ln=At.keyEntities||Ct.keyEntities;if(Bt("expandedKeys")||It&&Bt("autoExpandParent"))At.expandedKeys=vt.autoExpandParent||!It&&vt.defaultExpandParent?(0,Fn.r7)(vt.expandedKeys,Ln):vt.expandedKeys;else if(!It&&vt.defaultExpandAll){var qn=(0,ke.Z)({},Ln);delete qn[Ir],At.expandedKeys=Object.keys(qn).map(function(fr){return qn[fr].key})}else!It&&vt.defaultExpandedKeys&&(At.expandedKeys=vt.autoExpandParent||vt.defaultExpandParent?(0,Fn.r7)(vt.defaultExpandedKeys,Ln):vt.defaultExpandedKeys);if(At.expandedKeys||delete At.expandedKeys,Ft||At.expandedKeys){var Zn=(0,rn.oH)(Ft||Ct.treeData,At.expandedKeys||Ct.expandedKeys,on);At.flattenNodes=Zn}if(vt.selectable&&(Bt("selectedKeys")?At.selectedKeys=(0,Fn.BT)(vt.selectedKeys,vt):!It&&vt.defaultSelectedKeys&&(At.selectedKeys=(0,Fn.BT)(vt.defaultSelectedKeys,vt))),vt.checkable){var Pn;if(Bt("checkedKeys")?Pn=(0,Fn.E6)(vt.checkedKeys)||{}:!It&&vt.defaultCheckedKeys?Pn=(0,Fn.E6)(vt.defaultCheckedKeys)||{}:Ft&&(Pn=(0,Fn.E6)(vt.checkedKeys)||{checkedKeys:Ct.checkedKeys,halfCheckedKeys:Ct.halfCheckedKeys}),Pn){var Bn=Pn,Sn=Bn.checkedKeys,Xn=Sn===void 0?[]:Sn,vr=Bn.halfCheckedKeys,rr=vr===void 0?[]:vr;if(!vt.checkStrictly){var lr=(0,Vn.S)(Xn,!0,Ln);Xn=lr.checkedKeys,rr=lr.halfCheckedKeys}At.checkedKeys=Xn,At.halfCheckedKeys=rr}}return Bt("loadedKeys")&&(At.loadedKeys=vt.loadedKeys),At}}]),On}(oe.Component);Nr.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:Ce,allowDrop:function(){return!0},expandAction:!1},Nr.TreeNode=Gt.Z;var In=Nr,Gr=In,ei=ve(73148),aa=ve(56747),ca={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"},qi=ca,Oi=ve(84089),oa=function(hn,On){return oe.createElement(Oi.Z,(0,Ue.Z)({},hn,{ref:On,icon:qi}))},Bi=oe.forwardRef(oa),Di=ve(53124),_a=ve(50881),_i=ve(33603),ta=ve(32157);const Ea=4;function Va(Mn){const{dropPosition:hn,dropLevelOffset:On,prefixCls:Je,indent:vt,direction:Ct="ltr"}=Mn,It=Ct==="ltr"?"left":"right",At=Ct==="ltr"?"right":"left",Bt={[It]:-On*vt+Ea,[At]:0};switch(hn){case-1:Bt.top=-3;break;case 1:Bt.bottom=-3;break;default:Bt.bottom=-3,Bt[It]=vt+Ea;break}return oe.createElement("div",{style:Bt,className:`${Je}-drop-indicator`})}var Na=ve(99184),yn=oe.forwardRef((Mn,hn)=>{const{getPrefixCls:On,direction:Je,virtual:vt,tree:Ct}=oe.useContext(Di.E_),{prefixCls:It,className:At,showIcon:Bt=!1,showLine:Ft,switcherIcon:on,blockNode:gn=!1,children:Ln,checkable:qn=!1,selectable:Zn=!0,draggable:Pn,motion:Bn,style:Sn}=Mn,Xn=On("tree",It),vr=On(),rr=Bn!=null?Bn:Object.assign(Object.assign({},(0,_i.Z)(vr)),{motionAppear:!1}),lr=Object.assign(Object.assign({},Mn),{checkable:qn,selectable:Zn,showIcon:Bt,motion:rr,blockNode:gn,showLine:!!Ft,dropIndicatorRender:Va}),[fr,yr]=(0,ta.ZP)(Xn),Mr=oe.useMemo(()=>{if(!Pn)return!1;let Rt={};switch(typeof Pn){case"function":Rt.nodeDraggable=Pn;break;case"object":Rt=Object.assign({},Pn);break;default:break}return Rt.icon!==!1&&(Rt.icon=Rt.icon||oe.createElement(_a.Z,null)),Rt},[Pn]),Ot=Rt=>oe.createElement(Na.Z,{prefixCls:Xn,switcherIcon:on,treeNodeProps:Rt,showLine:Ft});return fr(oe.createElement(Gr,Object.assign({itemHeight:20,ref:hn,virtual:vt},lr,{style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Sn),prefixCls:Xn,className:ie()({[`${Xn}-icon-hide`]:!Bt,[`${Xn}-block-node`]:gn,[`${Xn}-unselectable`]:!Zn,[`${Xn}-rtl`]:Je==="rtl"},Ct==null?void 0:Ct.className,At,yr),direction:Je,checkable:qn&&oe.createElement("span",{className:`${Xn}-checkbox-inner`}),selectable:Zn,switcherIcon:Ot,draggable:Mr}),Ln))}),dn;(function(Mn){Mn[Mn.None=0]="None",Mn[Mn.Start=1]="Start",Mn[Mn.End=2]="End"})(dn||(dn={}));function Kn(Mn,hn){function On(Je){const{key:vt,children:Ct}=Je;hn(vt,Je)!==!1&&Kn(Ct||[],hn)}Mn.forEach(On)}function or(Mn){let{treeData:hn,expandedKeys:On,startKey:Je,endKey:vt}=Mn;const Ct=[];let It=dn.None;if(Je&&Je===vt)return[Je];if(!Je||!vt)return[];function At(Bt){return Bt===Je||Bt===vt}return Kn(hn,Bt=>{if(It===dn.End)return!1;if(At(Bt)){if(Ct.push(Bt),It===dn.None)It=dn.Start;else if(It===dn.Start)return It=dn.End,!1}else It===dn.Start&&Ct.push(Bt);return On.includes(Bt)}),Ct}function xr(Mn,hn){const On=(0,pe.Z)(hn),Je=[];return Kn(Mn,(vt,Ct)=>{const It=On.indexOf(vt);return It!==-1&&(Je.push(Ct),On.splice(It,1)),!!On.length}),Je}var Wr=function(Mn,hn){var On={};for(var Je in Mn)Object.prototype.hasOwnProperty.call(Mn,Je)&&hn.indexOf(Je)<0&&(On[Je]=Mn[Je]);if(Mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Je=Object.getOwnPropertySymbols(Mn);vt<Je.length;vt++)hn.indexOf(Je[vt])<0&&Object.prototype.propertyIsEnumerable.call(Mn,Je[vt])&&(On[Je[vt]]=Mn[Je[vt]]);return On};function oi(Mn){const{isLeaf:hn,expanded:On}=Mn;return hn?oe.createElement(ei.Z,null):On?oe.createElement(aa.Z,null):oe.createElement(Bi,null)}function pi(Mn){let{treeData:hn,children:On}=Mn;return hn||(0,rn.zn)(On)}const Ei=(Mn,hn)=>{var{defaultExpandAll:On,defaultExpandParent:Je,defaultExpandedKeys:vt}=Mn,Ct=Wr(Mn,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const It=oe.useRef(),At=oe.useRef(),Bt=()=>{const{keyEntities:Mr}=(0,rn.I8)(pi(Ct));let Ot;return On?Ot=Object.keys(Mr):Je?Ot=(0,Fn.r7)(Ct.expandedKeys||vt||[],Mr):Ot=Ct.expandedKeys||vt,Ot},[Ft,on]=oe.useState(Ct.selectedKeys||Ct.defaultSelectedKeys||[]),[gn,Ln]=oe.useState(()=>Bt());oe.useEffect(()=>{"selectedKeys"in Ct&&on(Ct.selectedKeys)},[Ct.selectedKeys]),oe.useEffect(()=>{"expandedKeys"in Ct&&Ln(Ct.expandedKeys)},[Ct.expandedKeys]);const qn=(Mr,Ot)=>{var Rt;return"expandedKeys"in Ct||Ln(Mr),(Rt=Ct.onExpand)===null||Rt===void 0?void 0:Rt.call(Ct,Mr,Ot)},Zn=(Mr,Ot)=>{var Rt;const{multiple:un}=Ct,{node:Qt,nativeEvent:_n}=Ot,{key:Wn=""}=Qt,Gn=pi(Ct),gr=Object.assign(Object.assign({},Ot),{selected:!0}),cr=(_n==null?void 0:_n.ctrlKey)||(_n==null?void 0:_n.metaKey),Jn=_n==null?void 0:_n.shiftKey;let wr;un&&cr?(wr=Mr,It.current=Wn,At.current=wr,gr.selectedNodes=xr(Gn,wr)):un&&Jn?(wr=Array.from(new Set([].concat((0,pe.Z)(At.current||[]),(0,pe.Z)(or({treeData:Gn,expandedKeys:gn,startKey:Wn,endKey:It.current}))))),gr.selectedNodes=xr(Gn,wr)):(wr=[Wn],It.current=Wn,At.current=wr,gr.selectedNodes=xr(Gn,wr)),(Rt=Ct.onSelect)===null||Rt===void 0||Rt.call(Ct,wr,gr),"selectedKeys"in Ct||on(wr)},{getPrefixCls:Pn,direction:Bn}=oe.useContext(Di.E_),{prefixCls:Sn,className:Xn,showIcon:vr=!0,expandAction:rr="click"}=Ct,lr=Wr(Ct,["prefixCls","className","showIcon","expandAction"]),fr=Pn("tree",Sn),yr=ie()(`${fr}-directory`,{[`${fr}-directory-rtl`]:Bn==="rtl"},Xn);return oe.createElement(yn,Object.assign({icon:oi,ref:hn,blockNode:!0},lr,{showIcon:vr,expandAction:rr,prefixCls:fr,className:yr,expandedKeys:gn,selectedKeys:Ft,onSelect:Zn,onExpand:qn}))};var Li=oe.forwardRef(Ei);const ea=yn;ea.DirectoryTree=Li,ea.TreeNode=Gt.Z;var ni=ea},32157:function(xn,Zt,ve){"use strict";ve.d(Zt,{TM:function(){return le},Yk:function(){return ie}});var Ue=ve(34367),ot=ve(63185),x=ve(14747),ke=ve(33507),pe=ve(45503),ne=ve(67968);const z=new Ue.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ae=(ue,fe)=>({[`.${ue}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${fe.motionDurationSlow}`}}}),re=(ue,fe)=>({[`.${ue}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:fe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${fe.lineWidthBold}px solid ${fe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),se=(ue,fe)=>{const{treeCls:he,treeNodeCls:oe,treeNodePadding:Se,titleHeight:Ce,nodeSelectedBg:ye,nodeHoverBg:_e}=fe,Me=fe.paddingXS;return{[he]:Object.assign(Object.assign({},(0,x.Wf)(fe)),{background:fe.colorBgContainer,borderRadius:fe.borderRadius,transition:`background-color ${fe.motionDurationSlow}`,[`&${he}-rtl`]:{[`${he}-switcher`]:{"&_close":{[`${he}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${he}-active-focused)`]:Object.assign({},(0,x.oN)(fe)),[`${he}-list-holder-inner`]:{alignItems:"flex-start"},[`&${he}-block-node`]:{[`${he}-list-holder-inner`]:{alignItems:"stretch",[`${he}-node-content-wrapper`]:{flex:"auto"},[`${oe}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Se,insetInlineStart:0,border:`1px solid ${fe.colorPrimary}`,opacity:0,animationName:z,animationDuration:fe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${oe}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Se}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${he}-node-content-wrapper`]:{color:fe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${he}-node-content-wrapper`]:Object.assign({},(0,x.oN)(fe)),[`&:not(${oe}-disabled).filter-node ${he}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${he}-draggable-icon`]:{flexShrink:0,width:Ce,lineHeight:`${Ce}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${fe.motionDurationSlow}`,[`${oe}:hover &`]:{opacity:.45}},[`&${oe}-disabled`]:{[`${he}-draggable-icon`]:{visibility:"hidden"}}}},[`${he}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Ce}},[`${he}-draggable-icon`]:{visibility:"hidden"},[`${he}-switcher`]:Object.assign(Object.assign({},ae(ue,fe)),{position:"relative",flex:"none",alignSelf:"stretch",width:Ce,margin:0,lineHeight:`${Ce}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${he}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:fe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ce/2,bottom:-Se,marginInlineStart:-1,borderInlineEnd:`1px solid ${fe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Ce/2*.8,height:Ce/2,borderBottom:`1px solid ${fe.colorBorder}`,content:'""'}}}),[`${he}-checkbox`]:{top:"initial",marginInlineEnd:Me},[`${he}-node-content-wrapper, ${he}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Ce,margin:0,padding:`0 ${fe.paddingXS/2}px`,color:"inherit",lineHeight:`${Ce}px`,background:"transparent",borderRadius:fe.borderRadius,cursor:"pointer",transition:`all ${fe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:_e},[`&${he}-node-selected`]:{backgroundColor:ye},[`${he}-iconEle`]:{display:"inline-block",width:Ce,height:Ce,lineHeight:`${Ce}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${he}-unselectable ${he}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${he}-node-content-wrapper`]:Object.assign({lineHeight:`${Ce}px`,userSelect:"none"},re(ue,fe)),[`${oe}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${fe.colorPrimary}`}},"&-show-line":{[`${he}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ce/2,bottom:-Se,borderInlineEnd:`1px solid ${fe.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${he}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${oe}-leaf-last`]:{[`${he}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Ce/2}px !important`}}}}})}},me=ue=>{const{treeCls:fe,treeNodeCls:he,treeNodePadding:oe,directoryNodeSelectedBg:Se,directoryNodeSelectedColor:Ce}=ue;return{[`${fe}${fe}-directory`]:{[he]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:oe,insetInlineStart:0,transition:`background-color ${ue.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ue.controlItemBgHover}},"> *":{zIndex:1},[`${fe}-switcher`]:{transition:`color ${ue.motionDurationMid}`},[`${fe}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${fe}-node-selected`]:{color:Ce,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Se},[`${fe}-switcher`]:{color:Ce},[`${fe}-node-content-wrapper`]:{color:Ce,background:"transparent"}}}}}},ie=(ue,fe)=>{const he=`.${ue}`,oe=`${he}-treenode`,Se=fe.paddingXS/2,Ce=(0,pe.TS)(fe,{treeCls:he,treeNodeCls:oe,treeNodePadding:Se});return[se(ue,Ce),me(Ce)]},le=ue=>{const{controlHeightSM:fe}=ue;return{titleHeight:fe,nodeHoverBg:ue.controlItemBgHover,nodeSelectedBg:ue.controlItemBgActive}};Zt.ZP=(0,ne.Z)("Tree",(ue,fe)=>{let{prefixCls:he}=fe;return[{[ue.componentCls]:(0,ot.C2)(`${he}-checkbox`,ue)},ie(he,ue),(0,ke.Z)(ue)]},ue=>{const{colorTextLightSolid:fe,colorPrimary:he}=ue;return Object.assign(Object.assign({},le(ue)),{directoryNodeSelectedColor:fe,directoryNodeSelectedBg:he})})},99184:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return he}});var Ue=ve(87462),ot=ve(67294),x={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=x,pe=ve(84089),ne=function(Se,Ce){return ot.createElement(pe.Z,(0,Ue.Z)({},Se,{ref:Ce,icon:ke}))},z=ot.forwardRef(ne),ae=ve(73148),re=ve(3407),se=ve(34182),me=ve(74664),ie=ve(94184),le=ve.n(ie),ue=ve(96159),he=oe=>{const{prefixCls:Se,switcherIcon:Ce,treeNodeProps:ye,showLine:_e}=oe,{isLeaf:Me,expanded:we,loading:Ne}=ye;if(Ne)return ot.createElement(re.Z,{className:`${Se}-switcher-loading-icon`});let Ae;if(_e&&typeof _e=="object"&&(Ae=_e.showLeafIcon),Me){if(!_e)return null;if(typeof Ae!="boolean"&&Ae){const Pe=typeof Ae=="function"?Ae(ye):Ae,Le=`${Se}-switcher-line-custom-icon`;return(0,ue.l$)(Pe)?(0,ue.Tm)(Pe,{className:le()(Pe.props.className||"",Le)}):Pe}return Ae?ot.createElement(ae.Z,{className:`${Se}-switcher-line-icon`}):ot.createElement("span",{className:`${Se}-switcher-leaf-line`})}const De=`${Se}-switcher-icon`,Ie=typeof Ce=="function"?Ce(ye):Ce;return(0,ue.l$)(Ie)?(0,ue.Tm)(Ie,{className:le()(Ie.props.className||"",De)}):Ie!==void 0?Ie:_e?we?ot.createElement(se.Z,{className:`${Se}-switcher-line-icon`}):ot.createElement(me.Z,{className:`${Se}-switcher-line-icon`}):ot.createElement(z,{className:De})}},59810:function(xn,Zt,ve){"use strict";ve.d(Zt,{default:function(){return Pr}});var Ue=ve(67294),ot=ve(74902),x=ve(94184),ke=ve.n(x),pe=ve(87462),ne=ve(15671),z=ve(43144),ae=ve(60136),re=ve(51630),se=ve(4942),me=ve(45987),ie=ve(74165),le=ve(71002),ue=ve(15861),fe=ve(64217);function he(nn,Jt){var pn="cannot ".concat(nn.method," ").concat(nn.action," ").concat(Jt.status,"'"),Qn=new Error(pn);return Qn.status=Jt.status,Qn.method=nn.method,Qn.url=nn.action,Qn}function oe(nn){var Jt=nn.responseText||nn.response;if(!Jt)return Jt;try{return JSON.parse(Jt)}catch(pn){return Jt}}function Se(nn){var Jt=new XMLHttpRequest;nn.onProgress&&Jt.upload&&(Jt.upload.onprogress=function(Fn){Fn.total>0&&(Fn.percent=Fn.loaded/Fn.total*100),nn.onProgress(Fn)});var pn=new FormData;nn.data&&Object.keys(nn.data).forEach(function(hr){var Fn=nn.data[hr];if(Array.isArray(Fn)){Fn.forEach(function(Vn){pn.append("".concat(hr,"[]"),Vn)});return}pn.append(hr,Fn)}),nn.file instanceof Blob?pn.append(nn.filename,nn.file,nn.file.name):pn.append(nn.filename,nn.file),Jt.onerror=function(Fn){nn.onError(Fn)},Jt.onload=function(){return Jt.status<200||Jt.status>=300?nn.onError(he(nn,Jt),oe(Jt)):nn.onSuccess(oe(Jt),Jt)},Jt.open(nn.method,nn.action,!0),nn.withCredentials&&"withCredentials"in Jt&&(Jt.withCredentials=!0);var Qn=nn.headers||{};return Qn["X-Requested-With"]!==null&&Jt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Qn).forEach(function(hr){Qn[hr]!==null&&Jt.setRequestHeader(hr,Qn[hr])}),Jt.send(pn),{abort:function(){Jt.abort()}}}var Ce=+new Date,ye=0;function _e(){return"rc-upload-".concat(Ce,"-").concat(++ye)}var Me=ve(80334),we=function(nn,Jt){if(nn&&Jt){var pn=Array.isArray(Jt)?Jt:Jt.split(","),Qn=nn.name||"",hr=nn.type||"",Fn=hr.replace(/\/.*$/,"");return pn.some(function(Vn){var er=Vn.trim();if(/^\*(\/\*)?$/.test(Vn))return!0;if(er.charAt(0)==="."){var Sr=Qn.toLowerCase(),Nr=er.toLowerCase(),In=[Nr];return(Nr===".jpg"||Nr===".jpeg")&&(In=[".jpg",".jpeg"]),In.some(function(Gr){return Sr.endsWith(Gr)})}return/\/\*$/.test(er)?Fn===er.replace(/\/.*$/,""):hr===er?!0:/^\w+$/.test(er)?((0,Me.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(er,"'.Skip for check.")),!0):!1})}return!0};function Ne(nn,Jt){var pn=nn.createReader(),Qn=[];function hr(){pn.readEntries(function(Fn){var Vn=Array.prototype.slice.apply(Fn);Qn=Qn.concat(Vn);var er=!Vn.length;er?Jt(Qn):hr()})}hr()}var Ae=function(Jt,pn,Qn){var hr=function Fn(Vn,er){Vn&&(Vn.path=er||"",Vn.isFile?Vn.file(function(Sr){Qn(Sr)&&(Vn.fullPath&&!Sr.webkitRelativePath&&(Object.defineProperties(Sr,{webkitRelativePath:{writable:!0}}),Sr.webkitRelativePath=Vn.fullPath.replace(/^\//,""),Object.defineProperties(Sr,{webkitRelativePath:{writable:!1}})),pn([Sr]))}):Vn.isDirectory&&Ne(Vn,function(Sr){Sr.forEach(function(Nr){Fn(Nr,"".concat(er).concat(Vn.name,"/"))})}))};Jt.forEach(function(Fn){hr(Fn.webkitGetAsEntry())})},De=Ae,Ie=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Pe=function(nn){(0,ae.Z)(pn,nn);var Jt=(0,re.Z)(pn);function pn(){var Qn;(0,ne.Z)(this,pn);for(var hr=arguments.length,Fn=new Array(hr),Vn=0;Vn<hr;Vn++)Fn[Vn]=arguments[Vn];return Qn=Jt.call.apply(Jt,[this].concat(Fn)),Qn.state={uid:_e()},Qn.reqs={},Qn.fileInput=void 0,Qn._isMounted=void 0,Qn.onChange=function(er){var Sr=Qn.props,Nr=Sr.accept,In=Sr.directory,Gr=er.target.files,ei=(0,ot.Z)(Gr).filter(function(aa){return!In||we(aa,Nr)});Qn.uploadFiles(ei),Qn.reset()},Qn.onClick=function(er){var Sr=Qn.fileInput;if(Sr){var Nr=Qn.props,In=Nr.children,Gr=Nr.onClick;if(In&&In.type==="button"){var ei=Sr.parentNode;ei.focus(),ei.querySelector("button").blur()}Sr.click(),Gr&&Gr(er)}},Qn.onKeyDown=function(er){er.key==="Enter"&&Qn.onClick(er)},Qn.onFileDrop=function(er){var Sr=Qn.props.multiple;if(er.preventDefault(),er.type!=="dragover")if(Qn.props.directory)De(Array.prototype.slice.call(er.dataTransfer.items),Qn.uploadFiles,function(In){return we(In,Qn.props.accept)});else{var Nr=(0,ot.Z)(er.dataTransfer.files).filter(function(In){return we(In,Qn.props.accept)});Sr===!1&&(Nr=Nr.slice(0,1)),Qn.uploadFiles(Nr)}},Qn.uploadFiles=function(er){var Sr=(0,ot.Z)(er),Nr=Sr.map(function(In){return In.uid=_e(),Qn.processFile(In,Sr)});Promise.all(Nr).then(function(In){var Gr=Qn.props.onBatchStart;Gr==null||Gr(In.map(function(ei){var aa=ei.origin,ca=ei.parsedFile;return{file:aa,parsedFile:ca}})),In.filter(function(ei){return ei.parsedFile!==null}).forEach(function(ei){Qn.post(ei)})})},Qn.processFile=function(){var er=(0,ue.Z)((0,ie.Z)().mark(function Sr(Nr,In){var Gr,ei,aa,ca,qi,Oi,oa,Bi,Di;return(0,ie.Z)().wrap(function(_i){for(;;)switch(_i.prev=_i.next){case 0:if(Gr=Qn.props.beforeUpload,ei=Nr,!Gr){_i.next=14;break}return _i.prev=3,_i.next=6,Gr(Nr,In);case 6:ei=_i.sent,_i.next=12;break;case 9:_i.prev=9,_i.t0=_i.catch(3),ei=!1;case 12:if(ei!==!1){_i.next=14;break}return _i.abrupt("return",{origin:Nr,parsedFile:null,action:null,data:null});case 14:if(aa=Qn.props.action,typeof aa!="function"){_i.next=21;break}return _i.next=18,aa(Nr);case 18:ca=_i.sent,_i.next=22;break;case 21:ca=aa;case 22:if(qi=Qn.props.data,typeof qi!="function"){_i.next=29;break}return _i.next=26,qi(Nr);case 26:Oi=_i.sent,_i.next=30;break;case 29:Oi=qi;case 30:return oa=((0,le.Z)(ei)==="object"||typeof ei=="string")&&ei?ei:Nr,oa instanceof File?Bi=oa:Bi=new File([oa],Nr.name,{type:Nr.type}),Di=Bi,Di.uid=Nr.uid,_i.abrupt("return",{origin:Nr,data:Oi,parsedFile:Di,action:ca});case 35:case"end":return _i.stop()}},Sr,null,[[3,9]])}));return function(Sr,Nr){return er.apply(this,arguments)}}(),Qn.saveFileInput=function(er){Qn.fileInput=er},Qn}return(0,z.Z)(pn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(hr){var Fn=this,Vn=hr.data,er=hr.origin,Sr=hr.action,Nr=hr.parsedFile;if(this._isMounted){var In=this.props,Gr=In.onStart,ei=In.customRequest,aa=In.name,ca=In.headers,qi=In.withCredentials,Oi=In.method,oa=er.uid,Bi=ei||Se,Di={action:Sr,filename:aa,data:Vn,file:Nr,headers:ca,withCredentials:qi,method:Oi||"post",onProgress:function(_i){var ta=Fn.props.onProgress;ta==null||ta(_i,Nr)},onSuccess:function(_i,ta){var Ea=Fn.props.onSuccess;Ea==null||Ea(_i,Nr,ta),delete Fn.reqs[oa]},onError:function(_i,ta){var Ea=Fn.props.onError;Ea==null||Ea(_i,ta,Nr),delete Fn.reqs[oa]}};Gr(er),this.reqs[oa]=Bi(Di)}}},{key:"reset",value:function(){this.setState({uid:_e()})}},{key:"abort",value:function(hr){var Fn=this.reqs;if(hr){var Vn=hr.uid?hr.uid:hr;Fn[Vn]&&Fn[Vn].abort&&Fn[Vn].abort(),delete Fn[Vn]}else Object.keys(Fn).forEach(function(er){Fn[er]&&Fn[er].abort&&Fn[er].abort(),delete Fn[er]})}},{key:"render",value:function(){var hr,Fn=this.props,Vn=Fn.component,er=Fn.prefixCls,Sr=Fn.className,Nr=Fn.disabled,In=Fn.id,Gr=Fn.style,ei=Fn.multiple,aa=Fn.accept,ca=Fn.capture,qi=Fn.children,Oi=Fn.directory,oa=Fn.openFileDialogOnClick,Bi=Fn.onMouseEnter,Di=Fn.onMouseLeave,_a=(0,me.Z)(Fn,Ie),_i=ke()((hr={},(0,se.Z)(hr,er,!0),(0,se.Z)(hr,"".concat(er,"-disabled"),Nr),(0,se.Z)(hr,Sr,Sr),hr)),ta=Oi?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ea=Nr?{}:{onClick:oa?this.onClick:function(){},onKeyDown:oa?this.onKeyDown:function(){},onMouseEnter:Bi,onMouseLeave:Di,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Ue.createElement(Vn,(0,pe.Z)({},Ea,{className:_i,role:"button",style:Gr}),Ue.createElement("input",(0,pe.Z)({},(0,fe.Z)(_a,{aria:!0,data:!0}),{id:In,disabled:Nr,type:"file",ref:this.saveFileInput,onClick:function(Na){return Na.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:aa},ta,{multiple:ei,onChange:this.onChange},ca!=null?{capture:ca}:{})),qi)}}]),pn}(Ue.Component),Le=Pe;function We(){}var Be=function(nn){(0,ae.Z)(pn,nn);var Jt=(0,re.Z)(pn);function pn(){var Qn;(0,ne.Z)(this,pn);for(var hr=arguments.length,Fn=new Array(hr),Vn=0;Vn<hr;Vn++)Fn[Vn]=arguments[Vn];return Qn=Jt.call.apply(Jt,[this].concat(Fn)),Qn.uploader=void 0,Qn.saveUploader=function(er){Qn.uploader=er},Qn}return(0,z.Z)(pn,[{key:"abort",value:function(hr){this.uploader.abort(hr)}},{key:"render",value:function(){return Ue.createElement(Le,(0,pe.Z)({},this.props,{ref:this.saveUploader}))}}]),pn}(Ue.Component);Be.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:We,onError:We,onSuccess:We,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var He=Be,Ye=He,et=ve(5663),st=ve(73935),yt=ve(53124),Ve=ve(98866),Qe=ve(10110),pt=ve(24457),mt={icon:function(Jt,pn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:pn}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Jt}}]}},name:"file",theme:"twotone"},ft=mt,nt=ve(84089),tt=function(Jt,pn){return Ue.createElement(nt.Z,(0,pe.Z)({},Jt,{ref:pn,icon:ft}))},rt=Ue.forwardRef(tt),Et=ve(3407),bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Pt=bt,Lt=function(Jt,pn){return Ue.createElement(nt.Z,(0,pe.Z)({},Jt,{ref:pn,icon:Pt}))},dt=Ue.forwardRef(Lt),Ze={icon:function(Jt,pn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Jt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:pn}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:pn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:pn}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Jt}}]}},name:"picture",theme:"twotone"},Ke=Ze,de=function(Jt,pn){return Ue.createElement(nt.Z,(0,pe.Z)({},Jt,{ref:pn,icon:Ke}))},xe=Ue.forwardRef(de),ze=ve(38379),$e=ve(57838),Ee=ve(33603),Re=ve(96159),Fe=ve(71577);function Ge(nn){return Object.assign(Object.assign({},nn),{lastModified:nn.lastModified,lastModifiedDate:nn.lastModifiedDate,name:nn.name,size:nn.size,type:nn.type,uid:nn.uid,percent:0,originFileObj:nn})}function it(nn,Jt){const pn=(0,ot.Z)(Jt),Qn=pn.findIndex(hr=>{let{uid:Fn}=hr;return Fn===nn.uid});return Qn===-1?pn.push(nn):pn[Qn]=nn,pn}function gt(nn,Jt){const pn=nn.uid!==void 0?"uid":"name";return Jt.filter(Qn=>Qn[pn]===nn[pn])[0]}function Kt(nn,Jt){const pn=nn.uid!==void 0?"uid":"name",Qn=Jt.filter(hr=>hr[pn]!==nn[pn]);return Qn.length===Jt.length?null:Qn}const kt=function(){const Jt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Qn=Jt[Jt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Qn)||[""])[0]},St=nn=>nn.indexOf("image/")===0,Wt=nn=>{if(nn.type&&!nn.thumbUrl)return St(nn.type);const Jt=nn.thumbUrl||nn.url||"",pn=kt(Jt);return/^data:image\//.test(Jt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(pn)?!0:!(/^data:/.test(Jt)||pn)},jt=200;function Vt(nn){return new Promise(Jt=>{if(!nn.type||!St(nn.type)){Jt("");return}const pn=document.createElement("canvas");pn.width=jt,pn.height=jt,pn.style.cssText=`position: fixed; left: 0; top: 0; width: ${jt}px; height: ${jt}px; z-index: 9999; display: none;`,document.body.appendChild(pn);const Qn=pn.getContext("2d"),hr=new Image;if(hr.onload=()=>{const{width:Fn,height:Vn}=hr;let er=jt,Sr=jt,Nr=0,In=0;Fn>Vn?(Sr=Vn*(jt/Fn),In=-(Sr-er)/2):(er=Fn*(jt/Vn),Nr=-(er-Sr)/2),Qn.drawImage(hr,Nr,In,er,Sr);const Gr=pn.toDataURL();document.body.removeChild(pn),window.URL.revokeObjectURL(hr.src),Jt(Gr)},hr.crossOrigin="anonymous",nn.type.startsWith("image/svg+xml")){const Fn=new FileReader;Fn.onload=()=>{Fn.result&&(hr.src=Fn.result)},Fn.readAsDataURL(nn)}else if(nn.type.startsWith("image/gif")){const Fn=new FileReader;Fn.onload=()=>{Fn.result&&Jt(Fn.result)},Fn.readAsDataURL(nn)}else hr.src=window.URL.createObjectURL(nn)})}var _t=ve(84249),sn=ve(90674),Dt=ve(99569),xt=ve(38703),en=ve(83062),fn=Ue.forwardRef((nn,Jt)=>{let{prefixCls:pn,className:Qn,style:hr,locale:Fn,listType:Vn,file:er,items:Sr,progress:Nr,iconRender:In,actionIconRender:Gr,itemRender:ei,isImgUrl:aa,showPreviewIcon:ca,showRemoveIcon:qi,showDownloadIcon:Oi,previewIcon:oa,removeIcon:Bi,downloadIcon:Di,onPreview:_a,onDownload:_i,onClose:ta}=nn;var Ea,Va;const{status:Na}=er,[Pi,yn]=Ue.useState(Na);Ue.useEffect(()=>{Na!=="removed"&&yn(Na)},[Na]);const[dn,Kn]=Ue.useState(!1);Ue.useEffect(()=>{const At=setTimeout(()=>{Kn(!0)},300);return()=>{clearTimeout(At)}},[]);const or=In(er);let xr=Ue.createElement("div",{className:`${pn}-icon`},or);if(Vn==="picture"||Vn==="picture-card"||Vn==="picture-circle")if(Pi==="uploading"||!er.thumbUrl&&!er.url){const At=ke()(`${pn}-list-item-thumbnail`,{[`${pn}-list-item-file`]:Pi!=="uploading"});xr=Ue.createElement("div",{className:At},or)}else{const At=aa!=null&&aa(er)?Ue.createElement("img",{src:er.thumbUrl||er.url,alt:er.name,className:`${pn}-list-item-image`,crossOrigin:er.crossOrigin}):or,Bt=ke()(`${pn}-list-item-thumbnail`,{[`${pn}-list-item-file`]:aa&&!aa(er)});xr=Ue.createElement("a",{className:Bt,onClick:Ft=>_a(er,Ft),href:er.url||er.thumbUrl,target:"_blank",rel:"noopener noreferrer"},At)}const Wr=ke()(`${pn}-list-item`,`${pn}-list-item-${Pi}`),oi=typeof er.linkProps=="string"?JSON.parse(er.linkProps):er.linkProps,pi=qi?Gr((typeof Bi=="function"?Bi(er):Bi)||Ue.createElement(_t.Z,null),()=>ta(er),pn,Fn.removeFile):null,Ei=Oi&&Pi==="done"?Gr((typeof Di=="function"?Di(er):Di)||Ue.createElement(sn.Z,null),()=>_i(er),pn,Fn.downloadFile):null,mi=Vn!=="picture-card"&&Vn!=="picture-circle"&&Ue.createElement("span",{key:"download-delete",className:ke()(`${pn}-list-item-actions`,{picture:Vn==="picture"})},Ei,pi),Li=ke()(`${pn}-list-item-name`),ea=er.url?[Ue.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Li,title:er.name},oi,{href:er.url,onClick:At=>_a(er,At)}),er.name),mi]:[Ue.createElement("span",{key:"view",className:Li,onClick:At=>_a(er,At),title:er.name},er.name),mi],ni={pointerEvents:"none",opacity:.5},Mn=ca?Ue.createElement("a",{href:er.url||er.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:er.url||er.thumbUrl?void 0:ni,onClick:At=>_a(er,At),title:Fn.previewFile},typeof oa=="function"?oa(er):oa||Ue.createElement(Dt.Z,null)):null,hn=(Vn==="picture-card"||Vn==="picture-circle")&&Pi!=="uploading"&&Ue.createElement("span",{className:`${pn}-list-item-actions`},Mn,Pi==="done"&&Ei,pi),{getPrefixCls:On}=Ue.useContext(yt.E_),Je=On(),vt=Ue.createElement("div",{className:Wr},xr,ea,hn,dn&&Ue.createElement(ze.default,{motionName:`${Je}-fade`,visible:Pi==="uploading",motionDeadline:2e3},At=>{let{className:Bt}=At;const Ft="percent"in er?Ue.createElement(xt.Z,Object.assign({},Nr,{type:"line",percent:er.percent,"aria-label":er["aria-label"],"aria-labelledby":er["aria-labelledby"]})):null;return Ue.createElement("div",{className:ke()(`${pn}-list-item-progress`,Bt)},Ft)})),Ct=er.response&&typeof er.response=="string"?er.response:((Ea=er.error)===null||Ea===void 0?void 0:Ea.statusText)||((Va=er.error)===null||Va===void 0?void 0:Va.message)||Fn.uploadError,It=Pi==="error"?Ue.createElement(en.Z,{title:Ct,getPopupContainer:At=>At.parentNode},vt):vt;return Ue.createElement("div",{className:ke()(`${pn}-list-item-container`,Qn),style:hr,ref:Jt},ei?ei(It,er,Sr,{download:_i.bind(null,er),preview:_a.bind(null,er),remove:ta.bind(null,er)}):It)});const Tn=(nn,Jt)=>{const{listType:pn="text",previewFile:Qn=Vt,onPreview:hr,onDownload:Fn,onRemove:Vn,locale:er,iconRender:Sr,isImageUrl:Nr=Wt,prefixCls:In,items:Gr=[],showPreviewIcon:ei=!0,showRemoveIcon:aa=!0,showDownloadIcon:ca=!1,removeIcon:qi,previewIcon:Oi,downloadIcon:oa,progress:Bi={size:[-1,2],showInfo:!1},appendAction:Di,appendActionVisible:_a=!0,itemRender:_i,disabled:ta}=nn,Ea=(0,$e.Z)(),[Va,Na]=Ue.useState(!1);Ue.useEffect(()=>{pn!=="picture"&&pn!=="picture-card"&&pn!=="picture-circle"||(Gr||[]).forEach(ni=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ni.originFileObj instanceof File||ni.originFileObj instanceof Blob)||ni.thumbUrl!==void 0||(ni.thumbUrl="",Qn&&Qn(ni.originFileObj).then(Mn=>{ni.thumbUrl=Mn||"",Ea()}))})},[pn,Gr,Qn]),Ue.useEffect(()=>{Na(!0)},[]);const Pi=(ni,Mn)=>{if(hr)return Mn==null||Mn.preventDefault(),hr(ni)},yn=ni=>{typeof Fn=="function"?Fn(ni):ni.url&&window.open(ni.url)},dn=ni=>{Vn==null||Vn(ni)},Kn=ni=>{if(Sr)return Sr(ni,pn);const Mn=ni.status==="uploading",hn=Nr&&Nr(ni)?Ue.createElement(xe,null):Ue.createElement(rt,null);let On=Mn?Ue.createElement(Et.Z,null):Ue.createElement(dt,null);return pn==="picture"?On=Mn?Ue.createElement(Et.Z,null):hn:(pn==="picture-card"||pn==="picture-circle")&&(On=Mn?er.uploading:hn),On},or=(ni,Mn,hn,On)=>{const Je={type:"text",size:"small",title:On,onClick:vt=>{Mn(),(0,Re.l$)(ni)&&ni.props.onClick&&ni.props.onClick(vt)},className:`${hn}-list-item-action`,disabled:ta};if((0,Re.l$)(ni)){const vt=(0,Re.Tm)(ni,Object.assign(Object.assign({},ni.props),{onClick:()=>{}}));return Ue.createElement(Fe.ZP,Object.assign({},Je,{icon:vt}))}return Ue.createElement(Fe.ZP,Object.assign({},Je),Ue.createElement("span",null,ni))};Ue.useImperativeHandle(Jt,()=>({handlePreview:Pi,handleDownload:yn}));const{getPrefixCls:xr}=Ue.useContext(yt.E_),Wr=xr("upload",In),oi=xr(),pi=ke()(`${Wr}-list`,`${Wr}-list-${pn}`),Ei=(0,ot.Z)(Gr.map(ni=>({key:ni.uid,file:ni})));let Li={motionDeadline:2e3,motionName:`${Wr}-${pn==="picture-card"||pn==="picture-circle"?"animate-inline":"animate"}`,keys:Ei,motionAppear:Va};const ea=Ue.useMemo(()=>{const ni=Object.assign({},(0,Ee.Z)(oi));return delete ni.onAppearEnd,delete ni.onEnterEnd,delete ni.onLeaveEnd,ni},[oi]);return pn!=="picture-card"&&pn!=="picture-circle"&&(Li=Object.assign(Object.assign({},ea),Li)),Ue.createElement("div",{className:pi},Ue.createElement(ze.CSSMotionList,Object.assign({},Li,{component:!1}),ni=>{let{key:Mn,file:hn,className:On,style:Je}=ni;return Ue.createElement(fn,{key:Mn,locale:er,prefixCls:Wr,className:On,style:Je,file:hn,items:Gr,progress:Bi,listType:pn,isImgUrl:Nr,showPreviewIcon:ei,showRemoveIcon:aa,showDownloadIcon:ca,removeIcon:qi,previewIcon:Oi,downloadIcon:oa,iconRender:Kn,actionIconRender:or,itemRender:_i,onPreview:Pi,onDownload:yn,onClose:dn})}),Di&&Ue.createElement(ze.default,Object.assign({},Li,{visible:_a,forceRender:!0}),ni=>{let{className:Mn,style:hn}=ni;return(0,Re.Tm)(Di,On=>({className:ke()(On.className,Mn),style:Object.assign(Object.assign(Object.assign({},hn),{pointerEvents:Mn?"none":void 0}),On.style)}))}))};var pr=Ue.forwardRef(Tn),Ar=ve(14747),Dr=ve(33507),dr=ve(67968),zr=ve(45503),ki=nn=>{const{componentCls:Jt,iconCls:pn}=nn;return{[`${Jt}-wrapper`]:{[`${Jt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:nn.colorFillAlter,border:`${nn.lineWidth}px dashed ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,cursor:"pointer",transition:`border-color ${nn.motionDurationSlow}`,[Jt]:{padding:`${nn.padding}px 0`},[`${Jt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Jt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Jt}-disabled):hover`]:{borderColor:nn.colorPrimaryHover},[`p${Jt}-drag-icon`]:{marginBottom:nn.margin,[pn]:{color:nn.colorPrimary,fontSize:nn.uploadThumbnailSize}},[`p${Jt}-text`]:{margin:`0 0 ${nn.marginXXS}px`,color:nn.colorTextHeading,fontSize:nn.fontSizeLG},[`p${Jt}-hint`]:{color:nn.colorTextDescription,fontSize:nn.fontSize},[`&${Jt}-disabled`]:{cursor:"not-allowed",[`p${Jt}-drag-icon ${pn},
|
|
|
p${Jt}-text,
|
|
|
p${Jt}-hint
|
|
|
`]:{color:nn.colorTextDisabled}}}}}},xi=nn=>{const{componentCls:Jt,antCls:pn,iconCls:Qn,fontSize:hr,lineHeight:Fn}=nn,Vn=`${Jt}-list-item`,er=`${Vn}-actions`,Sr=`${Vn}-action`,Nr=Math.round(hr*Fn);return{[`${Jt}-wrapper`]:{[`${Jt}-list`]:Object.assign(Object.assign({},(0,Ar.dF)()),{lineHeight:nn.lineHeight,[Vn]:{position:"relative",height:nn.lineHeight*hr,marginTop:nn.marginXS,fontSize:hr,display:"flex",alignItems:"center",transition:`background-color ${nn.motionDurationSlow}`,"&:hover":{backgroundColor:nn.controlItemBgHover},[`${Vn}-name`]:Object.assign(Object.assign({},Ar.vS),{padding:`0 ${nn.paddingXS}px`,lineHeight:Fn,flex:"auto",transition:`all ${nn.motionDurationSlow}`}),[er]:{[Sr]:{opacity:0},[`${Sr}${pn}-btn-sm`]:{height:Nr,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Sr}:focus-visible,
|
|
|
&.picture ${Sr}
|
|
|
`]:{opacity:1},[Qn]:{color:nn.actionsColor,transition:`all ${nn.motionDurationSlow}`},[`&:hover ${Qn}`]:{color:nn.colorText}},[`${Jt}-icon ${Qn}`]:{color:nn.colorTextDescription,fontSize:hr},[`${Vn}-progress`]:{position:"absolute",bottom:-nn.uploadProgressOffset,width:"100%",paddingInlineStart:hr+nn.paddingXS,fontSize:hr,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Vn}:hover ${Sr}`]:{opacity:1,color:nn.colorText},[`${Vn}-error`]:{color:nn.colorError,[`${Vn}-name, ${Jt}-icon ${Qn}`]:{color:nn.colorError},[er]:{[`${Qn}, ${Qn}:hover`]:{color:nn.colorError},[Sr]:{opacity:1}}},[`${Jt}-list-item-container`]:{transition:`opacity ${nn.motionDurationSlow}, height ${nn.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},cn=ve(34367),ir=ve(16932);const sr=new cn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new cn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Nn=nn=>{const{componentCls:Jt}=nn,pn=`${Jt}-animate-inline`;return[{[`${Jt}-wrapper`]:{[`${pn}-appear, ${pn}-enter, ${pn}-leave`]:{animationDuration:nn.motionDurationSlow,animationTimingFunction:nn.motionEaseInOutCirc,animationFillMode:"forwards"},[`${pn}-appear, ${pn}-enter`]:{animationName:sr},[`${pn}-leave`]:{animationName:Yn}}},{[`${Jt}-wrapper`]:(0,ir.J$)(nn)},sr,Yn]},Hn=ve(16397),jn=ve(84780);const Gt=nn=>{const{componentCls:Jt,iconCls:pn,uploadThumbnailSize:Qn,uploadProgressOffset:hr}=nn,Fn=`${Jt}-list`,Vn=`${Fn}-item`;return{[`${Jt}-wrapper`]:{[`
|
|
|
${Fn}${Fn}-picture,
|
|
|
${Fn}${Fn}-picture-card,
|
|
|
${Fn}${Fn}-picture-circle
|
|
|
`]:{[Vn]:{position:"relative",height:Qn+nn.lineWidth*2+nn.paddingXS*2,padding:nn.paddingXS,border:`${nn.lineWidth}px ${nn.lineType} ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,"&:hover":{background:"transparent"},[`${Vn}-thumbnail`]:Object.assign(Object.assign({},Ar.vS),{width:Qn,height:Qn,lineHeight:`${Qn+nn.paddingSM}px`,textAlign:"center",flex:"none",[pn]:{fontSize:nn.fontSizeHeading2,color:nn.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Vn}-progress`]:{bottom:hr,width:`calc(100% - ${nn.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Qn+nn.paddingXS}},[`${Vn}-error`]:{borderColor:nn.colorError,[`${Vn}-thumbnail ${pn}`]:{[`svg path[fill='${Hn.blue[0]}']`]:{fill:nn.colorErrorBg},[`svg path[fill='${Hn.blue.primary}']`]:{fill:nn.colorError}}},[`${Vn}-uploading`]:{borderStyle:"dashed",[`${Vn}-name`]:{marginBottom:hr}}},[`${Fn}${Fn}-picture-circle ${Vn}`]:{[`&, &::before, ${Vn}-thumbnail`]:{borderRadius:"50%"}}}}},Xt=nn=>{const{componentCls:Jt,iconCls:pn,fontSizeLG:Qn,colorTextLightSolid:hr}=nn,Fn=`${Jt}-list`,Vn=`${Fn}-item`,er=nn.uploadPicCardSize;return{[`
|
|
|
${Jt}-wrapper${Jt}-picture-card-wrapper,
|
|
|
${Jt}-wrapper${Jt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Ar.dF)()),{display:"inline-block",width:"100%",[`${Jt}${Jt}-select`]:{width:er,height:er,marginInlineEnd:nn.marginXS,marginBottom:nn.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:nn.colorFillAlter,border:`${nn.lineWidth}px dashed ${nn.colorBorder}`,borderRadius:nn.borderRadiusLG,cursor:"pointer",transition:`border-color ${nn.motionDurationSlow}`,[`> ${Jt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Jt}-disabled):hover`]:{borderColor:nn.colorPrimary}},[`${Fn}${Fn}-picture-card, ${Fn}${Fn}-picture-circle`]:{[`${Fn}-item-container`]:{display:"inline-block",width:er,height:er,marginBlock:`0 ${nn.marginXS}px`,marginInline:`0 ${nn.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Vn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${nn.paddingXS*2}px)`,height:`calc(100% - ${nn.paddingXS*2}px)`,backgroundColor:nn.colorBgMask,opacity:0,transition:`all ${nn.motionDurationSlow}`,content:'" "'}},[`${Vn}:hover`]:{[`&::before, ${Vn}-actions`]:{opacity:1}},[`${Vn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${nn.motionDurationSlow}`,[`${pn}-eye, ${pn}-download, ${pn}-delete`]:{zIndex:10,width:Qn,margin:`0 ${nn.marginXXS}px`,fontSize:Qn,cursor:"pointer",transition:`all ${nn.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Vn}-actions, ${Vn}-actions:hover`]:{[`${pn}-eye, ${pn}-download, ${pn}-delete`]:{color:new jn.C(hr).setAlpha(.65).toRgbString(),"&:hover":{color:hr}}},[`${Vn}-thumbnail, ${Vn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Vn}-name`]:{display:"none",textAlign:"center"},[`${Vn}-file + ${Vn}-name`]:{position:"absolute",bottom:nn.margin,display:"block",width:`calc(100% - ${nn.paddingXS*2}px)`},[`${Vn}-uploading`]:{[`&${Vn}`]:{backgroundColor:nn.colorFillAlter},[`&::before, ${pn}-eye, ${pn}-download, ${pn}-delete`]:{display:"none"}},[`${Vn}-progress`]:{bottom:nn.marginXL,width:`calc(100% - ${nn.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Jt}-wrapper${Jt}-picture-circle-wrapper`]:{[`${Jt}${Jt}-select`]:{borderRadius:"50%"}}}};var An=nn=>{const{componentCls:Jt}=nn;return{[`${Jt}-rtl`]:{direction:"rtl"}}};const zt=nn=>{const{componentCls:Jt,colorTextDisabled:pn}=nn;return{[`${Jt}-wrapper`]:Object.assign(Object.assign({},(0,Ar.Wf)(nn)),{[Jt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Jt}-select`]:{display:"inline-block"},[`${Jt}-disabled`]:{color:pn,cursor:"not-allowed"}})}};var tn=(0,dr.Z)("Upload",nn=>{const{fontSizeHeading3:Jt,fontSize:pn,lineHeight:Qn,lineWidth:hr,controlHeightLG:Fn}=nn,Vn=Math.round(pn*Qn),er=(0,zr.TS)(nn,{uploadThumbnailSize:Jt*2,uploadProgressOffset:Vn/2+hr,uploadPicCardSize:Fn*2.55});return[zt(er),ki(er),Gt(er),Xt(er),xi(er),Nn(er),An(er),(0,Dr.Z)(er)]},nn=>({actionsColor:nn.colorTextDescription})),bn=function(nn,Jt,pn,Qn){function hr(Fn){return Fn instanceof pn?Fn:new pn(function(Vn){Vn(Fn)})}return new(pn||(pn=Promise))(function(Fn,Vn){function er(In){try{Nr(Qn.next(In))}catch(Gr){Vn(Gr)}}function Sr(In){try{Nr(Qn.throw(In))}catch(Gr){Vn(Gr)}}function Nr(In){In.done?Fn(In.value):hr(In.value).then(er,Sr)}Nr((Qn=Qn.apply(nn,Jt||[])).next())})};const wn=`__LIST_IGNORE_${Date.now()}__`,zn=(nn,Jt)=>{const{fileList:pn,defaultFileList:Qn,onRemove:hr,showUploadList:Fn=!0,listType:Vn="text",onPreview:er,onDownload:Sr,onChange:Nr,onDrop:In,previewFile:Gr,disabled:ei,locale:aa,iconRender:ca,isImageUrl:qi,progress:Oi,prefixCls:oa,className:Bi,type:Di="select",children:_a,style:_i,itemRender:ta,maxCount:Ea,data:Va={},multiple:Na=!1,action:Pi="",accept:yn="",supportServerRender:dn=!0,rootClassName:Kn}=nn,or=Ue.useContext(Ve.Z),xr=ei!=null?ei:or,[Wr,oi]=(0,et.Z)(Qn||[],{value:pn,postState:Ot=>Ot!=null?Ot:[]}),[pi,Ei]=Ue.useState("drop"),mi=Ue.useRef(null);Ue.useMemo(()=>{const Ot=Date.now();(pn||[]).forEach((Rt,un)=>{!Rt.uid&&!Object.isFrozen(Rt)&&(Rt.uid=`__AUTO__${Ot}_${un}__`)})},[pn]);const Li=(Ot,Rt,un)=>{let Qt=(0,ot.Z)(Rt),_n=!1;Ea===1?Qt=Qt.slice(-1):Ea&&(_n=Qt.length>Ea,Qt=Qt.slice(0,Ea)),(0,st.flushSync)(()=>{oi(Qt)});const Wn={file:Ot,fileList:Qt};un&&(Wn.event=un),(!_n||Qt.some(Gn=>Gn.uid===Ot.uid))&&(0,st.flushSync)(()=>{Nr==null||Nr(Wn)})},ea=(Ot,Rt)=>bn(void 0,void 0,void 0,function*(){const{beforeUpload:un,transformFile:Qt}=nn;let _n=Ot;if(un){const Wn=yield un(Ot,Rt);if(Wn===!1)return!1;if(delete Ot[wn],Wn===wn)return Object.defineProperty(Ot,wn,{value:!0,configurable:!0}),!1;typeof Wn=="object"&&Wn&&(_n=Wn)}return Qt&&(_n=yield Qt(_n)),_n}),ni=Ot=>{const Rt=Ot.filter(_n=>!_n.file[wn]);if(!Rt.length)return;const un=Rt.map(_n=>Ge(_n.file));let Qt=(0,ot.Z)(Wr);un.forEach(_n=>{Qt=it(_n,Qt)}),un.forEach((_n,Wn)=>{let Gn=_n;if(Rt[Wn].parsedFile)_n.status="uploading";else{const{originFileObj:gr}=_n;let cr;try{cr=new File([gr],gr.name,{type:gr.type})}catch(Jn){cr=new Blob([gr],{type:gr.type}),cr.name=gr.name,cr.lastModifiedDate=new Date,cr.lastModified=new Date().getTime()}cr.uid=_n.uid,Gn=cr}Li(Gn,Qt)})},Mn=(Ot,Rt,un)=>{try{typeof Ot=="string"&&(Ot=JSON.parse(Ot))}catch(Wn){}if(!gt(Rt,Wr))return;const Qt=Ge(Rt);Qt.status="done",Qt.percent=100,Qt.response=Ot,Qt.xhr=un;const _n=it(Qt,Wr);Li(Qt,_n)},hn=(Ot,Rt)=>{if(!gt(Rt,Wr))return;const un=Ge(Rt);un.status="uploading",un.percent=Ot.percent;const Qt=it(un,Wr);Li(un,Qt,Ot)},On=(Ot,Rt,un)=>{if(!gt(un,Wr))return;const Qt=Ge(un);Qt.error=Ot,Qt.response=Rt,Qt.status="error";const _n=it(Qt,Wr);Li(Qt,_n)},Je=Ot=>{let Rt;Promise.resolve(typeof hr=="function"?hr(Ot):hr).then(un=>{var Qt;if(un===!1)return;const _n=Kt(Ot,Wr);_n&&(Rt=Object.assign(Object.assign({},Ot),{status:"removed"}),Wr==null||Wr.forEach(Wn=>{const Gn=Rt.uid!==void 0?"uid":"name";Wn[Gn]===Rt[Gn]&&!Object.isFrozen(Wn)&&(Wn.status="removed")}),(Qt=mi.current)===null||Qt===void 0||Qt.abort(Rt),Li(Rt,_n))})},vt=Ot=>{Ei(Ot.type),Ot.type==="drop"&&(In==null||In(Ot))};Ue.useImperativeHandle(Jt,()=>({onBatchStart:ni,onSuccess:Mn,onProgress:hn,onError:On,fileList:Wr,upload:mi.current}));const{getPrefixCls:Ct,direction:It,upload:At}=Ue.useContext(yt.E_),Bt=Ct("upload",oa),Ft=Object.assign(Object.assign({onBatchStart:ni,onError:On,onProgress:hn,onSuccess:Mn},nn),{data:Va,multiple:Na,action:Pi,accept:yn,supportServerRender:dn,prefixCls:Bt,disabled:xr,beforeUpload:ea,onChange:void 0});delete Ft.className,delete Ft.style,(!_a||xr)&&delete Ft.id;const[on,gn]=tn(Bt),[Ln]=(0,Qe.Z)("Upload",pt.Z.Upload),{showRemoveIcon:qn,showPreviewIcon:Zn,showDownloadIcon:Pn,removeIcon:Bn,previewIcon:Sn,downloadIcon:Xn}=typeof Fn=="boolean"?{}:Fn,vr=(Ot,Rt)=>Fn?Ue.createElement(pr,{prefixCls:Bt,listType:Vn,items:Wr,previewFile:Gr,onPreview:er,onDownload:Sr,onRemove:Je,showRemoveIcon:!xr&&qn,showPreviewIcon:Zn,showDownloadIcon:Pn,removeIcon:Bn,previewIcon:Sn,downloadIcon:Xn,iconRender:ca,locale:Object.assign(Object.assign({},Ln),aa),isImageUrl:qi,progress:Oi,appendAction:Ot,appendActionVisible:Rt,itemRender:ta,disabled:xr}):Ot,rr=ke()(`${Bt}-wrapper`,Bi,Kn,gn,At==null?void 0:At.className,{[`${Bt}-rtl`]:It==="rtl",[`${Bt}-picture-card-wrapper`]:Vn==="picture-card",[`${Bt}-picture-circle-wrapper`]:Vn==="picture-circle"}),lr=Object.assign(Object.assign({},At==null?void 0:At.style),_i);if(Di==="drag"){const Ot=ke()(gn,Bt,`${Bt}-drag`,{[`${Bt}-drag-uploading`]:Wr.some(Rt=>Rt.status==="uploading"),[`${Bt}-drag-hover`]:pi==="dragover",[`${Bt}-disabled`]:xr,[`${Bt}-rtl`]:It==="rtl"});return on(Ue.createElement("span",{className:rr},Ue.createElement("div",{className:Ot,style:lr,onDrop:vt,onDragOver:vt,onDragLeave:vt},Ue.createElement(Ye,Object.assign({},Ft,{ref:mi,className:`${Bt}-btn`}),Ue.createElement("div",{className:`${Bt}-drag-container`},_a))),vr()))}const fr=ke()(Bt,`${Bt}-select`,{[`${Bt}-disabled`]:xr}),Mr=(Ot=>Ue.createElement("div",{className:fr,style:Ot},Ue.createElement(Ye,Object.assign({},Ft,{ref:mi}))))(_a?void 0:{display:"none"});return on(Vn==="picture-card"||Vn==="picture-circle"?Ue.createElement("span",{className:rr},vr(Mr,!!_a)):Ue.createElement("span",{className:rr},Mr,vr()))};var kr=Ue.forwardRef(zn),Zr=function(nn,Jt){var pn={};for(var Qn in nn)Object.prototype.hasOwnProperty.call(nn,Qn)&&Jt.indexOf(Qn)<0&&(pn[Qn]=nn[Qn]);if(nn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hr=0,Qn=Object.getOwnPropertySymbols(nn);hr<Qn.length;hr++)Jt.indexOf(Qn[hr])<0&&Object.prototype.propertyIsEnumerable.call(nn,Qn[hr])&&(pn[Qn[hr]]=nn[Qn[hr]]);return pn},Er=Ue.forwardRef((nn,Jt)=>{var{style:pn,height:Qn}=nn,hr=Zr(nn,["style","height"]);return Ue.createElement(kr,Object.assign({ref:Jt},hr,{type:"drag",style:Object.assign(Object.assign({},pn),{height:Qn})}))});const Br=kr;Br.Dragger=Er,Br.LIST_IGNORE=wn;var Pr=Br},72665:function(xn,Zt){"use strict";var ve;var Ue=typeof Symbol=="function"&&Symbol.for,ot=Ue?Symbol.for("react.element"):60103,x=Ue?Symbol.for("react.portal"):60106,ke=Ue?Symbol.for("react.fragment"):60107,pe=Ue?Symbol.for("react.strict_mode"):60108,ne=Ue?Symbol.for("react.profiler"):60114,z=Ue?Symbol.for("react.provider"):60109,ae=Ue?Symbol.for("react.context"):60110,re=Ue?Symbol.for("react.async_mode"):60111,se=Ue?Symbol.for("react.concurrent_mode"):60111,me=Ue?Symbol.for("react.forward_ref"):60112,ie=Ue?Symbol.for("react.suspense"):60113,le=Ue?Symbol.for("react.suspense_list"):60120,ue=Ue?Symbol.for("react.memo"):60115,fe=Ue?Symbol.for("react.lazy"):60116,he=Ue?Symbol.for("react.block"):60121,oe=Ue?Symbol.for("react.fundamental"):60117,Se=Ue?Symbol.for("react.responder"):60118,Ce=Ue?Symbol.for("react.scope"):60119;function ye(Me){if(typeof Me=="object"&&Me!==null){var we=Me.$$typeof;switch(we){case ot:switch(Me=Me.type,Me){case re:case se:case ke:case ne:case pe:case ie:return Me;default:switch(Me=Me&&Me.$$typeof,Me){case ae:case me:case fe:case ue:case z:return Me;default:return we}}case x:return we}}}function _e(Me){return ye(Me)===se}ve=re,ve=se,ve=ae,ve=z,ve=ot,ve=me,ve=ke,ve=fe,ve=ue,ve=x,ve=ne,ve=pe,ve=ie,ve=function(Me){return _e(Me)||ye(Me)===re},ve=_e,ve=function(Me){return ye(Me)===ae},ve=function(Me){return ye(Me)===z},ve=function(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===ot},ve=function(Me){return ye(Me)===me},ve=function(Me){return ye(Me)===ke},ve=function(Me){return ye(Me)===fe},Zt.isMemo=function(Me){return ye(Me)===ue},ve=function(Me){return ye(Me)===x},ve=function(Me){return ye(Me)===ne},ve=function(Me){return ye(Me)===pe},ve=function(Me){return ye(Me)===ie},ve=function(Me){return typeof Me=="string"||typeof Me=="function"||Me===ke||Me===se||Me===ne||Me===pe||Me===ie||Me===le||typeof Me=="object"&&Me!==null&&(Me.$$typeof===fe||Me.$$typeof===ue||Me.$$typeof===z||Me.$$typeof===ae||Me.$$typeof===me||Me.$$typeof===oe||Me.$$typeof===Se||Me.$$typeof===Ce||Me.$$typeof===he)},ve=ye},12060:function(xn,Zt,ve){"use strict";xn.exports=ve(72665)},41771:function(xn,Zt){"use strict";var ve;var Ue=typeof Symbol=="function"&&Symbol.for,ot=Ue?Symbol.for("react.element"):60103,x=Ue?Symbol.for("react.portal"):60106,ke=Ue?Symbol.for("react.fragment"):60107,pe=Ue?Symbol.for("react.strict_mode"):60108,ne=Ue?Symbol.for("react.profiler"):60114,z=Ue?Symbol.for("react.provider"):60109,ae=Ue?Symbol.for("react.context"):60110,re=Ue?Symbol.for("react.async_mode"):60111,se=Ue?Symbol.for("react.concurrent_mode"):60111,me=Ue?Symbol.for("react.forward_ref"):60112,ie=Ue?Symbol.for("react.suspense"):60113,le=Ue?Symbol.for("react.suspense_list"):60120,ue=Ue?Symbol.for("react.memo"):60115,fe=Ue?Symbol.for("react.lazy"):60116,he=Ue?Symbol.for("react.block"):60121,oe=Ue?Symbol.for("react.fundamental"):60117,Se=Ue?Symbol.for("react.responder"):60118,Ce=Ue?Symbol.for("react.scope"):60119;function ye(Me){if(typeof Me=="object"&&Me!==null){var we=Me.$$typeof;switch(we){case ot:switch(Me=Me.type,Me){case re:case se:case ke:case ne:case pe:case ie:return Me;default:switch(Me=Me&&Me.$$typeof,Me){case ae:case me:case fe:case ue:case z:return Me;default:return we}}case x:return we}}}function _e(Me){return ye(Me)===se}ve=re,ve=se,ve=ae,ve=z,ve=ot,ve=me,ve=ke,ve=fe,ve=ue,ve=x,ve=ne,ve=pe,ve=ie,ve=function(Me){return _e(Me)||ye(Me)===re},ve=_e,ve=function(Me){return ye(Me)===ae},ve=function(Me){return ye(Me)===z},ve=function(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===ot},ve=function(Me){return ye(Me)===me},Zt.isFragment=function(Me){return ye(Me)===ke},ve=function(Me){return ye(Me)===fe},ve=function(Me){return ye(Me)===ue},ve=function(Me){return ye(Me)===x},ve=function(Me){return ye(Me)===ne},ve=function(Me){return ye(Me)===pe},ve=function(Me){return ye(Me)===ie},ve=function(Me){return typeof Me=="string"||typeof Me=="function"||Me===ke||Me===se||Me===ne||Me===pe||Me===ie||Me===le||typeof Me=="object"&&Me!==null&&(Me.$$typeof===fe||Me.$$typeof===ue||Me.$$typeof===z||Me.$$typeof===ae||Me.$$typeof===me||Me.$$typeof===oe||Me.$$typeof===Se||Me.$$typeof===Ce||Me.$$typeof===he)},ve=ye},47655:function(xn,Zt,ve){"use strict";xn.exports=ve(41771)},64701:function(xn,Zt,ve){"use strict";ve.r(Zt),ve.d(Zt,{ResizableTextArea:function(){return mt},default:function(){return bt}});var Ue=ve(87462),ot=ve(1413),x=ve(4942),ke=ve(71002),pe=ve(97685),ne=ve(45987),z=ve(74902),ae=ve(94184),re=ve.n(ae),se=ve(67656),me=ve(87887),ie=ve(67294);function le(Pt){var Lt=ie.useRef();Lt.current=Pt;var dt=ie.useCallback(function(){for(var Ze,Ke=arguments.length,de=new Array(Ke),xe=0;xe<Ke;xe++)de[xe]=arguments[xe];return(Ze=Lt.current)===null||Ze===void 0?void 0:Ze.call.apply(Ze,[Lt].concat(de))},[]);return dt}function ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var fe=ue()?ie.useLayoutEffect:ie.useEffect,he=fe,oe=function(Lt,dt){var Ze=ie.useRef(!0);fe(function(){if(!Ze.current)return Lt()},dt),fe(function(){return Ze.current=!1,function(){Ze.current=!0}},[])};function Se(Pt){var Lt=ie.useRef(!1),dt=ie.useState(Pt),Ze=(0,pe.Z)(dt,2),Ke=Ze[0],de=Ze[1];ie.useEffect(function(){return Lt.current=!1,function(){Lt.current=!0}},[]);function xe(ze,$e){$e&&Lt.current||de(ze)}return[Ke,xe]}function Ce(Pt){return Pt!==void 0}function ye(Pt,Lt){var dt=Lt||{},Ze=dt.defaultValue,Ke=dt.value,de=dt.onChange,xe=dt.postState,ze=Se(function(){return Ce(Ke)?Ke:Ce(Ze)?typeof Ze=="function"?Ze():Ze:typeof Pt=="function"?Pt():Pt}),$e=(0,pe.Z)(ze,2),Ee=$e[0],Re=$e[1],Fe=Ke!==void 0?Ke:Ee,Ge=xe?xe(Fe):Fe,it=le(de),gt=Se([Fe]),Kt=(0,pe.Z)(gt,2),kt=Kt[0],St=Kt[1];oe(function(){var jt=kt[0];Ee!==jt&&it(Ee,jt)},[kt]),oe(function(){Ce(Ke)||Re(Ke)},[Ke]);var Wt=le(function(jt,Vt){Re(jt,Vt),St([Fe],Vt)});return[Ge,Wt]}var _e=ve(48555),Me=function(Lt){return+setTimeout(Lt,16)},we=function(Lt){return clearTimeout(Lt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Me=function(Lt){return window.requestAnimationFrame(Lt)},we=function(Lt){return window.cancelAnimationFrame(Lt)});var Ne=0,Ae=new Map;function De(Pt){Ae.delete(Pt)}var Ie=function(Lt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ne+=1;var Ze=Ne;function Ke(de){if(de===0)De(Ze),Lt();else{var xe=Me(function(){Ke(de-1)});Ae.set(Ze,xe)}}return Ke(dt),Ze};Ie.cancel=function(Pt){var Lt=Ae.get(Pt);return De(Lt),we(Lt)};var Pe=Ie,Le=`
|
|
|
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;
|
|
|
`,We=["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"],Be={},He;function Ye(Pt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=Pt.getAttribute("id")||Pt.getAttribute("data-reactid")||Pt.getAttribute("name");if(Lt&&Be[dt])return Be[dt];var Ze=window.getComputedStyle(Pt),Ke=Ze.getPropertyValue("box-sizing")||Ze.getPropertyValue("-moz-box-sizing")||Ze.getPropertyValue("-webkit-box-sizing"),de=parseFloat(Ze.getPropertyValue("padding-bottom"))+parseFloat(Ze.getPropertyValue("padding-top")),xe=parseFloat(Ze.getPropertyValue("border-bottom-width"))+parseFloat(Ze.getPropertyValue("border-top-width")),ze=We.map(function(Ee){return"".concat(Ee,":").concat(Ze.getPropertyValue(Ee))}).join(";"),$e={sizingStyle:ze,paddingSize:de,borderSize:xe,boxSizing:Ke};return Lt&&dt&&(Be[dt]=$e),$e}function et(Pt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;He||(He=document.createElement("textarea"),He.setAttribute("tab-index","-1"),He.setAttribute("aria-hidden","true"),document.body.appendChild(He)),Pt.getAttribute("wrap")?He.setAttribute("wrap",Pt.getAttribute("wrap")):He.removeAttribute("wrap");var Ke=Ye(Pt,Lt),de=Ke.paddingSize,xe=Ke.borderSize,ze=Ke.boxSizing,$e=Ke.sizingStyle;He.setAttribute("style","".concat($e,";").concat(Le)),He.value=Pt.value||Pt.placeholder||"";var Ee=void 0,Re=void 0,Fe,Ge=He.scrollHeight;if(ze==="border-box"?Ge+=xe:ze==="content-box"&&(Ge-=de),dt!==null||Ze!==null){He.value=" ";var it=He.scrollHeight-de;dt!==null&&(Ee=it*dt,ze==="border-box"&&(Ee=Ee+de+xe),Ge=Math.max(Ee,Ge)),Ze!==null&&(Re=it*Ze,ze==="border-box"&&(Re=Re+de+xe),Fe=Ge>Re?"":"hidden",Ge=Math.min(Re,Ge))}var gt={height:Ge,overflowY:Fe,resize:"none"};return Ee&&(gt.minHeight=Ee),Re&&(gt.maxHeight=Re),gt}var st=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],yt=0,Ve=1,Qe=2,pt=ie.forwardRef(function(Pt,Lt){var dt=Pt,Ze=dt.prefixCls,Ke=dt.onPressEnter,de=dt.defaultValue,xe=dt.value,ze=dt.autoSize,$e=dt.onResize,Ee=dt.className,Re=dt.style,Fe=dt.disabled,Ge=dt.onChange,it=dt.onInternalAutoSize,gt=(0,ne.Z)(dt,st),Kt=ye(de,{value:xe,postState:function(Yn){return Yn!=null?Yn:""}}),kt=(0,pe.Z)(Kt,2),St=kt[0],Wt=kt[1],jt=function(Yn){Wt(Yn.target.value),Ge==null||Ge(Yn)},Vt=ie.useRef();ie.useImperativeHandle(Lt,function(){return{textArea:Vt.current}});var _t=ie.useMemo(function(){return ze&&(0,ke.Z)(ze)==="object"?[ze.minRows,ze.maxRows]:[]},[ze]),sn=(0,pe.Z)(_t,2),Dt=sn[0],xt=sn[1],en=!!ze,an=function(){try{if(document.activeElement===Vt.current){var Yn=Vt.current,Rr=Yn.selectionStart,Nn=Yn.selectionEnd,Hn=Yn.scrollTop;Vt.current.setSelectionRange(Rr,Nn),Vt.current.scrollTop=Hn}}catch(jn){}},fn=ie.useState(Qe),Tn=(0,pe.Z)(fn,2),ar=Tn[0],pr=Tn[1],Ar=ie.useState(),Dr=(0,pe.Z)(Ar,2),dr=Dr[0],zr=Dr[1],ai=function(){pr(yt)};he(function(){en&&ai()},[xe,Dt,xt,en]),he(function(){if(ar===yt)pr(Ve);else if(ar===Ve){var sr=et(Vt.current,!1,Dt,xt);pr(Qe),zr(sr)}else an()},[ar]);var ki=ie.useRef(),Ni=function(){Pe.cancel(ki.current)},xi=function(Yn){ar===Qe&&($e==null||$e(Yn),ze&&(Ni(),ki.current=Pe(function(){ai()})))};ie.useEffect(function(){return Ni},[]);var cn=en?dr:null,ir=(0,ot.Z)((0,ot.Z)({},Re),cn);return(ar===yt||ar===Ve)&&(ir.overflowY="hidden",ir.overflowX="hidden"),ie.createElement(_e.Z,{onResize:xi,disabled:!(ze||$e)},ie.createElement("textarea",(0,Ue.Z)({},gt,{ref:Vt,style:ir,className:re()(Ze,Ee,(0,x.Z)({},"".concat(Ze,"-disabled"),Fe)),disabled:Fe,value:St,onChange:jt})))}),mt=pt,ft=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function nt(Pt,Lt){return(0,z.Z)(Pt||"").slice(0,Lt).join("")}function tt(Pt,Lt,dt,Ze){var Ke=dt;return Pt?Ke=nt(dt,Ze):(0,z.Z)(Lt||"").length<dt.length&&(0,z.Z)(dt||"").length>Ze&&(Ke=Lt),Ke}var rt=ie.forwardRef(function(Pt,Lt){var dt,Ze=Pt.defaultValue,Ke=Pt.value,de=Pt.onFocus,xe=Pt.onBlur,ze=Pt.onChange,$e=Pt.allowClear,Ee=Pt.maxLength,Re=Pt.onCompositionStart,Fe=Pt.onCompositionEnd,Ge=Pt.suffix,it=Pt.prefixCls,gt=it===void 0?"rc-textarea":it,Kt=Pt.classes,kt=Pt.showCount,St=Pt.className,Wt=Pt.style,jt=Pt.disabled,Vt=Pt.hidden,_t=Pt.classNames,sn=Pt.styles,Dt=Pt.onResize,xt=(0,ne.Z)(Pt,ft),en=ye(Ze,{value:Ke,defaultValue:Ze}),an=(0,pe.Z)(en,2),fn=an[0],Tn=an[1],ar=(0,ie.useRef)(null),pr=ie.useState(!1),Ar=(0,pe.Z)(pr,2),Dr=Ar[0],dr=Ar[1],zr=ie.useState(!1),ai=(0,pe.Z)(zr,2),ki=ai[0],Ni=ai[1],xi=ie.useRef(),cn=ie.useRef(0),ir=ie.useState(null),sr=(0,pe.Z)(ir,2),Yn=sr[0],Rr=sr[1],Nn=function(){var Br;(Br=ar.current)===null||Br===void 0||Br.textArea.focus()};(0,ie.useImperativeHandle)(Lt,function(){return{resizableTextArea:ar.current,focus:Nn,blur:function(){var Br;(Br=ar.current)===null||Br===void 0||Br.textArea.blur()}}}),(0,ie.useEffect)(function(){dr(function(Er){return!jt&&Er})},[jt]);var Hn=Number(Ee)>0,jn=function(Br){Ni(!0),xi.current=fn,cn.current=Br.currentTarget.selectionStart,Re==null||Re(Br)},Gt=function(Br){Ni(!1);var Pr=Br.currentTarget.value;if(Hn){var nn,Jt=cn.current>=Ee+1||cn.current===((nn=xi.current)===null||nn===void 0?void 0:nn.length);Pr=tt(Jt,xi.current,Pr,Ee)}Pr!==fn&&(Tn(Pr),(0,me.rJ)(Br.currentTarget,Br,ze,Pr)),Fe==null||Fe(Br)},Xt=function(Br){var Pr=Br.target.value;if(!ki&&Hn){var nn=Br.target.selectionStart>=Ee+1||Br.target.selectionStart===Pr.length||!Br.target.selectionStart;Pr=tt(nn,fn,Pr,Ee)}Tn(Pr),(0,me.rJ)(Br.currentTarget,Br,ze,Pr)},rn=function(Br){var Pr=xt.onPressEnter,nn=xt.onKeyDown;Br.key==="Enter"&&Pr&&Pr(Br),nn==null||nn(Br)},An=function(Br){dr(!0),de==null||de(Br)},zt=function(Br){dr(!1),xe==null||xe(Br)},tn=function(Br){var Pr;Tn(""),Nn(),(0,me.rJ)((Pr=ar.current)===null||Pr===void 0?void 0:Pr.textArea,Br,ze)},bn=(0,me.D7)(fn);!ki&&Hn&&Ke==null&&(bn=nt(bn,Ee));var wn=Ge,zn;if(kt){var Un=(0,z.Z)(bn).length;(0,ke.Z)(kt)==="object"?zn=kt.formatter({value:bn,count:Un,maxLength:Ee}):zn="".concat(Un).concat(Hn?" / ".concat(Ee):""),wn=ie.createElement(ie.Fragment,null,wn,ie.createElement("span",{className:re()("".concat(gt,"-data-count"),_t==null?void 0:_t.count),style:sn==null?void 0:sn.count},zn))}var kr=function(Br){var Pr;Dt==null||Dt(Br),(Pr=ar.current)!==null&&Pr!==void 0&&Pr.textArea.style.height&&Rr(!0)},Zr=!xt.autoSize&&!kt&&!$e,Ir=ie.createElement(se.BaseInput,{value:bn,allowClear:$e,handleReset:tn,suffix:wn,prefixCls:gt,classes:{affixWrapper:re()(Kt==null?void 0:Kt.affixWrapper,(dt={},(0,x.Z)(dt,"".concat(gt,"-show-count"),kt),(0,x.Z)(dt,"".concat(gt,"-textarea-allow-clear"),$e),dt))},disabled:jt,focused:Dr,className:St,style:(0,ot.Z)((0,ot.Z)({},Wt),Yn&&!Zr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof zn=="string"?zn:void 0}},hidden:Vt,inputElement:ie.createElement(mt,(0,Ue.Z)({},xt,{onKeyDown:rn,onChange:Xt,onFocus:An,onBlur:zt,onCompositionStart:jn,onCompositionEnd:Gt,className:_t==null?void 0:_t.textarea,style:(0,ot.Z)((0,ot.Z)({},sn==null?void 0:sn.textarea),{},{resize:Wt==null?void 0:Wt.resize}),disabled:jt,prefixCls:gt,onResize:kr,ref:ar}))});return Ir}),Et=rt,bt=Et},56261:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Ae}});var Ue=ve(87462),ot=ve(4942),x=ve(45987),ke=ve(1413),pe=ve(15671),ne=ve(43144),z=ve(97326),ae=ve(60136),re=ve(51630),se=ve(94184),me=ve.n(se),ie=ve(34952),le=ve(67294),ue=ve(69610),fe=function(Ie){for(var Pe=Ie.prefixCls,Le=Ie.level,We=Ie.isStart,Be=Ie.isEnd,He="".concat(Pe,"-indent-unit"),Ye=[],et=0;et<Le;et+=1){var st;Ye.push(le.createElement("span",{key:et,className:me()(He,(st={},(0,ot.Z)(st,"".concat(He,"-start"),We[et]),(0,ot.Z)(st,"".concat(He,"-end"),Be[et]),st))}))}return le.createElement("span",{"aria-hidden":"true",className:"".concat(Pe,"-indent")},Ye)},he=le.memo(fe),oe=ve(3596),Se=ve(83898),Ce=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ye="open",_e="close",Me="---",we=function(De){(0,ae.Z)(Pe,De);var Ie=(0,re.Z)(Pe);function Pe(){var Le;(0,pe.Z)(this,Pe);for(var We=arguments.length,Be=new Array(We),He=0;He<We;He++)Be[He]=arguments[He];return Le=Ie.call.apply(Ie,[this].concat(Be)),Le.state={dragNodeHighlight:!1},Le.selectHandle=void 0,Le.cacheIndent=void 0,Le.onSelectorClick=function(Ye){var et=Le.props.context.onNodeClick;et(Ye,(0,Se.F)(Le.props)),Le.isSelectable()?Le.onSelect(Ye):Le.onCheck(Ye)},Le.onSelectorDoubleClick=function(Ye){var et=Le.props.context.onNodeDoubleClick;et(Ye,(0,Se.F)(Le.props))},Le.onSelect=function(Ye){if(!Le.isDisabled()){var et=Le.props.context.onNodeSelect;et(Ye,(0,Se.F)(Le.props))}},Le.onCheck=function(Ye){if(!Le.isDisabled()){var et=Le.props,st=et.disableCheckbox,yt=et.checked,Ve=Le.props.context.onNodeCheck;if(!(!Le.isCheckable()||st)){var Qe=!yt;Ve(Ye,(0,Se.F)(Le.props),Qe)}}},Le.onMouseEnter=function(Ye){var et=Le.props.context.onNodeMouseEnter;et(Ye,(0,Se.F)(Le.props))},Le.onMouseLeave=function(Ye){var et=Le.props.context.onNodeMouseLeave;et(Ye,(0,Se.F)(Le.props))},Le.onContextMenu=function(Ye){var et=Le.props.context.onNodeContextMenu;et(Ye,(0,Se.F)(Le.props))},Le.onDragStart=function(Ye){var et=Le.props.context.onNodeDragStart;Ye.stopPropagation(),Le.setState({dragNodeHighlight:!0}),et(Ye,(0,z.Z)(Le));try{Ye.dataTransfer.setData("text/plain","")}catch(st){}},Le.onDragEnter=function(Ye){var et=Le.props.context.onNodeDragEnter;Ye.preventDefault(),Ye.stopPropagation(),et(Ye,(0,z.Z)(Le))},Le.onDragOver=function(Ye){var et=Le.props.context.onNodeDragOver;Ye.preventDefault(),Ye.stopPropagation(),et(Ye,(0,z.Z)(Le))},Le.onDragLeave=function(Ye){var et=Le.props.context.onNodeDragLeave;Ye.stopPropagation(),et(Ye,(0,z.Z)(Le))},Le.onDragEnd=function(Ye){var et=Le.props.context.onNodeDragEnd;Ye.stopPropagation(),Le.setState({dragNodeHighlight:!1}),et(Ye,(0,z.Z)(Le))},Le.onDrop=function(Ye){var et=Le.props.context.onNodeDrop;Ye.preventDefault(),Ye.stopPropagation(),Le.setState({dragNodeHighlight:!1}),et(Ye,(0,z.Z)(Le))},Le.onExpand=function(Ye){var et=Le.props,st=et.loading,yt=et.context.onNodeExpand;st||yt(Ye,(0,Se.F)(Le.props))},Le.setSelectHandle=function(Ye){Le.selectHandle=Ye},Le.getNodeState=function(){var Ye=Le.props.expanded;return Le.isLeaf()?null:Ye?ye:_e},Le.hasChildren=function(){var Ye=Le.props.eventKey,et=Le.props.context.keyEntities,st=(0,oe.Z)(et,Ye)||{},yt=st.children;return!!(yt||[]).length},Le.isLeaf=function(){var Ye=Le.props,et=Ye.isLeaf,st=Ye.loaded,yt=Le.props.context.loadData,Ve=Le.hasChildren();return et===!1?!1:et||!yt&&!Ve||yt&&st&&!Ve},Le.isDisabled=function(){var Ye=Le.props.disabled,et=Le.props.context.disabled;return!!(et||Ye)},Le.isCheckable=function(){var Ye=Le.props.checkable,et=Le.props.context.checkable;return!et||Ye===!1?!1:et},Le.syncLoadData=function(Ye){var et=Ye.expanded,st=Ye.loading,yt=Ye.loaded,Ve=Le.props.context,Qe=Ve.loadData,pt=Ve.onNodeLoad;st||Qe&&et&&!Le.isLeaf()&&!Le.hasChildren()&&!yt&&pt((0,Se.F)(Le.props))},Le.isDraggable=function(){var Ye=Le.props,et=Ye.data,st=Ye.context.draggable;return!!(st&&(!st.nodeDraggable||st.nodeDraggable(et)))},Le.renderDragHandler=function(){var Ye=Le.props.context,et=Ye.draggable,st=Ye.prefixCls;return et!=null&&et.icon?le.createElement("span",{className:"".concat(st,"-draggable-icon")},et.icon):null},Le.renderSwitcherIconDom=function(Ye){var et=Le.props.switcherIcon,st=Le.props.context.switcherIcon,yt=et||st;return typeof yt=="function"?yt((0,ke.Z)((0,ke.Z)({},Le.props),{},{isLeaf:Ye})):yt},Le.renderSwitcher=function(){var Ye=Le.props.expanded,et=Le.props.context.prefixCls;if(Le.isLeaf()){var st=Le.renderSwitcherIconDom(!0);return st!==!1?le.createElement("span",{className:me()("".concat(et,"-switcher"),"".concat(et,"-switcher-noop"))},st):null}var yt=me()("".concat(et,"-switcher"),"".concat(et,"-switcher_").concat(Ye?ye:_e)),Ve=Le.renderSwitcherIconDom(!1);return Ve!==!1?le.createElement("span",{onClick:Le.onExpand,className:yt},Ve):null},Le.renderCheckbox=function(){var Ye=Le.props,et=Ye.checked,st=Ye.halfChecked,yt=Ye.disableCheckbox,Ve=Le.props.context.prefixCls,Qe=Le.isDisabled(),pt=Le.isCheckable();if(!pt)return null;var mt=typeof pt!="boolean"?pt:null;return le.createElement("span",{className:me()("".concat(Ve,"-checkbox"),et&&"".concat(Ve,"-checkbox-checked"),!et&&st&&"".concat(Ve,"-checkbox-indeterminate"),(Qe||yt)&&"".concat(Ve,"-checkbox-disabled")),onClick:Le.onCheck},mt)},Le.renderIcon=function(){var Ye=Le.props.loading,et=Le.props.context.prefixCls;return le.createElement("span",{className:me()("".concat(et,"-iconEle"),"".concat(et,"-icon__").concat(Le.getNodeState()||"docu"),Ye&&"".concat(et,"-icon_loading"))})},Le.renderSelector=function(){var Ye=Le.state.dragNodeHighlight,et=Le.props,st=et.title,yt=st===void 0?Me:st,Ve=et.selected,Qe=et.icon,pt=et.loading,mt=et.data,ft=Le.props.context,nt=ft.prefixCls,tt=ft.showIcon,rt=ft.icon,Et=ft.loadData,bt=ft.titleRender,Pt=Le.isDisabled(),Lt="".concat(nt,"-node-content-wrapper"),dt;if(tt){var Ze=Qe||rt;dt=Ze?le.createElement("span",{className:me()("".concat(nt,"-iconEle"),"".concat(nt,"-icon__customize"))},typeof Ze=="function"?Ze(Le.props):Ze):Le.renderIcon()}else Et&&pt&&(dt=Le.renderIcon());var Ke;typeof yt=="function"?Ke=yt(mt):bt?Ke=bt(mt):Ke=yt;var de=le.createElement("span",{className:"".concat(nt,"-title")},Ke);return le.createElement("span",{ref:Le.setSelectHandle,title:typeof yt=="string"?yt:"",className:me()("".concat(Lt),"".concat(Lt,"-").concat(Le.getNodeState()||"normal"),!Pt&&(Ve||Ye)&&"".concat(nt,"-node-selected")),onMouseEnter:Le.onMouseEnter,onMouseLeave:Le.onMouseLeave,onContextMenu:Le.onContextMenu,onClick:Le.onSelectorClick,onDoubleClick:Le.onSelectorDoubleClick},dt,de,Le.renderDropIndicator())},Le.renderDropIndicator=function(){var Ye=Le.props,et=Ye.disabled,st=Ye.eventKey,yt=Le.props.context,Ve=yt.draggable,Qe=yt.dropLevelOffset,pt=yt.dropPosition,mt=yt.prefixCls,ft=yt.indent,nt=yt.dropIndicatorRender,tt=yt.dragOverNodeKey,rt=yt.direction,Et=!!Ve,bt=!et&&Et&&tt===st,Pt=ft!=null?ft:Le.cacheIndent;return Le.cacheIndent=ft,bt?nt({dropPosition:pt,dropLevelOffset:Qe,indent:Pt,prefixCls:mt,direction:rt}):null},Le}return(0,ne.Z)(Pe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var We=this.props.selectable,Be=this.props.context.selectable;return typeof We=="boolean"?We:Be}},{key:"render",value:function(){var We,Be=this.props,He=Be.eventKey,Ye=Be.className,et=Be.style,st=Be.dragOver,yt=Be.dragOverGapTop,Ve=Be.dragOverGapBottom,Qe=Be.isLeaf,pt=Be.isStart,mt=Be.isEnd,ft=Be.expanded,nt=Be.selected,tt=Be.checked,rt=Be.halfChecked,Et=Be.loading,bt=Be.domRef,Pt=Be.active,Lt=Be.data,dt=Be.onMouseMove,Ze=Be.selectable,Ke=(0,x.Z)(Be,Ce),de=this.props.context,xe=de.prefixCls,ze=de.filterTreeNode,$e=de.keyEntities,Ee=de.dropContainerKey,Re=de.dropTargetKey,Fe=de.draggingNodeKey,Ge=this.isDisabled(),it=(0,ie.Z)(Ke,{aria:!0,data:!0}),gt=(0,oe.Z)($e,He)||{},Kt=gt.level,kt=mt[mt.length-1],St=this.isDraggable(),Wt=!Ge&&St,jt=Fe===He,Vt=Ze!==void 0?{"aria-selected":!!Ze}:void 0;return le.createElement("div",(0,Ue.Z)({ref:bt,className:me()(Ye,"".concat(xe,"-treenode"),(We={},(0,ot.Z)(We,"".concat(xe,"-treenode-disabled"),Ge),(0,ot.Z)(We,"".concat(xe,"-treenode-switcher-").concat(ft?"open":"close"),!Qe),(0,ot.Z)(We,"".concat(xe,"-treenode-checkbox-checked"),tt),(0,ot.Z)(We,"".concat(xe,"-treenode-checkbox-indeterminate"),rt),(0,ot.Z)(We,"".concat(xe,"-treenode-selected"),nt),(0,ot.Z)(We,"".concat(xe,"-treenode-loading"),Et),(0,ot.Z)(We,"".concat(xe,"-treenode-active"),Pt),(0,ot.Z)(We,"".concat(xe,"-treenode-leaf-last"),kt),(0,ot.Z)(We,"".concat(xe,"-treenode-draggable"),St),(0,ot.Z)(We,"dragging",jt),(0,ot.Z)(We,"drop-target",Re===He),(0,ot.Z)(We,"drop-container",Ee===He),(0,ot.Z)(We,"drag-over",!Ge&&st),(0,ot.Z)(We,"drag-over-gap-top",!Ge&&yt),(0,ot.Z)(We,"drag-over-gap-bottom",!Ge&&Ve),(0,ot.Z)(We,"filter-node",ze&&ze((0,Se.F)(this.props))),We)),style:et,draggable:Wt,"aria-grabbed":jt,onDragStart:Wt?this.onDragStart:void 0,onDragEnter:St?this.onDragEnter:void 0,onDragOver:St?this.onDragOver:void 0,onDragLeave:St?this.onDragLeave:void 0,onDrop:St?this.onDrop:void 0,onDragEnd:St?this.onDragEnd:void 0,onMouseMove:dt},Vt,it),le.createElement(he,{prefixCls:xe,level:Kt,isStart:pt,isEnd:mt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Pe}(le.Component),Ne=function(Ie){return le.createElement(ue.k.Consumer,null,function(Pe){return le.createElement(we,(0,Ue.Z)({},Ie,{context:Pe}))})};Ne.displayName="TreeNode",Ne.isTreeNode=1;var Ae=Ne},69610:function(xn,Zt,ve){"use strict";ve.d(Zt,{k:function(){return ot}});var Ue=ve(67294),ot=Ue.createContext(null)},29873:function(xn,Zt,ve){"use strict";ve.d(Zt,{BT:function(){return he},E6:function(){return Ce},L0:function(){return se},OM:function(){return fe},_5:function(){return re},r7:function(){return ye},wA:function(){return ie},yx:function(){return me}});var Ue=ve(74902),ot=ve(71002),x=ve(72978),ke=ve(67294),pe=ve(56261),ne=ve(3596),z=ve(83898),ae=null;function re(_e,Me){if(!_e)return[];var we=_e.slice(),Ne=we.indexOf(Me);return Ne>=0&&we.splice(Ne,1),we}function se(_e,Me){var we=(_e||[]).slice();return we.indexOf(Me)===-1&&we.push(Me),we}function me(_e){return _e.split("-")}function ie(_e,Me){var we=[],Ne=(0,ne.Z)(Me,_e);function Ae(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];De.forEach(function(Ie){var Pe=Ie.key,Le=Ie.children;we.push(Pe),Ae(Le)})}return Ae(Ne.children),we}function le(_e){if(_e.parent){var Me=me(_e.pos);return Number(Me[Me.length-1])===_e.parent.children.length-1}return!1}function ue(_e){var Me=me(_e.pos);return Number(Me[Me.length-1])===0}function fe(_e,Me,we,Ne,Ae,De,Ie,Pe,Le,We){var Be,He=_e.clientX,Ye=_e.clientY,et=_e.target.getBoundingClientRect(),st=et.top,yt=et.height,Ve=(We==="rtl"?-1:1)*(((Ae==null?void 0:Ae.x)||0)-He),Qe=(Ve-12)/Ne,pt=(0,ne.Z)(Pe,we.props.eventKey);if(Ye<st+yt/2){var mt=Ie.findIndex(function(de){return de.key===pt.key}),ft=mt<=0?0:mt-1,nt=Ie[ft].key;pt=(0,ne.Z)(Pe,nt)}var tt=pt.key,rt=pt,Et=pt.key,bt=0,Pt=0;if(!Le.includes(tt))for(var Lt=0;Lt<Qe&&le(pt);Lt+=1)pt=pt.parent,Pt+=1;var dt=Me.props.data,Ze=pt.node,Ke=!0;return ue(pt)&&pt.level===0&&Ye<st+yt/2&&De({dragNode:dt,dropNode:Ze,dropPosition:-1})&&pt.key===we.props.eventKey?bt=-1:(rt.children||[]).length&&Le.includes(Et)?De({dragNode:dt,dropNode:Ze,dropPosition:0})?bt=0:Ke=!1:Pt===0?Qe>-1.5?De({dragNode:dt,dropNode:Ze,dropPosition:1})?bt=1:Ke=!1:De({dragNode:dt,dropNode:Ze,dropPosition:0})?bt=0:De({dragNode:dt,dropNode:Ze,dropPosition:1})?bt=1:Ke=!1:De({dragNode:dt,dropNode:Ze,dropPosition:1})?bt=1:Ke=!1,{dropPosition:bt,dropLevelOffset:Pt,dropTargetKey:pt.key,dropTargetPos:pt.pos,dragOverNodeKey:Et,dropContainerKey:bt===0?null:((Be=pt.parent)===null||Be===void 0?void 0:Be.key)||null,dropAllowed:Ke}}function he(_e,Me){if(_e){var we=Me.multiple;return we?_e.slice():_e.length?[_e[0]]:_e}}var oe=function(Me){return Me};function Se(_e,Me){if(!_e)return[];var we=Me||{},Ne=we.processProps,Ae=Ne===void 0?oe:Ne,De=Array.isArray(_e)?_e:[_e];return De.map(function(Ie){var Pe=Ie.children,Le=_objectWithoutProperties(Ie,ae),We=Se(Pe,Me);return React.createElement(TreeNode,_extends({key:Le.key},Ae(Le)),We)})}function Ce(_e){if(!_e)return null;var Me;if(Array.isArray(_e))Me={checkedKeys:_e,halfCheckedKeys:void 0};else if((0,ot.Z)(_e)==="object")Me={checkedKeys:_e.checked||void 0,halfCheckedKeys:_e.halfChecked||void 0};else return(0,x.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Me}function ye(_e,Me){var we=new Set;function Ne(Ae){if(!we.has(Ae)){var De=(0,ne.Z)(Me,Ae);if(De){we.add(Ae);var Ie=De.parent,Pe=De.node;Pe.disabled||Ie&&Ne(Ie.key)}}}return(_e||[]).forEach(function(Ae){Ne(Ae)}),(0,Ue.Z)(we)}},97153:function(xn,Zt,ve){"use strict";ve.d(Zt,{S:function(){return z}});var Ue=ve(72978),ot=ve(3596);function x(ae,re){var se=new Set;return ae.forEach(function(me){re.has(me)||se.add(me)}),se}function ke(ae){var re=ae||{},se=re.disabled,me=re.disableCheckbox,ie=re.checkable;return!!(se||me)||ie===!1}function pe(ae,re,se,me){for(var ie=new Set(ae),le=new Set,ue=0;ue<=se;ue+=1){var fe=re.get(ue)||new Set;fe.forEach(function(Ce){var ye=Ce.key,_e=Ce.node,Me=Ce.children,we=Me===void 0?[]:Me;ie.has(ye)&&!me(_e)&&we.filter(function(Ne){return!me(Ne.node)}).forEach(function(Ne){ie.add(Ne.key)})})}for(var he=new Set,oe=se;oe>=0;oe-=1){var Se=re.get(oe)||new Set;Se.forEach(function(Ce){var ye=Ce.parent,_e=Ce.node;if(!(me(_e)||!Ce.parent||he.has(Ce.parent.key))){if(me(Ce.parent.node)){he.add(ye.key);return}var Me=!0,we=!1;(ye.children||[]).filter(function(Ne){return!me(Ne.node)}).forEach(function(Ne){var Ae=Ne.key,De=ie.has(Ae);Me&&!De&&(Me=!1),!we&&(De||le.has(Ae))&&(we=!0)}),Me&&ie.add(ye.key),we&&le.add(ye.key),he.add(ye.key)}})}return{checkedKeys:Array.from(ie),halfCheckedKeys:Array.from(x(le,ie))}}function ne(ae,re,se,me,ie){for(var le=new Set(ae),ue=new Set(re),fe=0;fe<=me;fe+=1){var he=se.get(fe)||new Set;he.forEach(function(ye){var _e=ye.key,Me=ye.node,we=ye.children,Ne=we===void 0?[]:we;!le.has(_e)&&!ue.has(_e)&&!ie(Me)&&Ne.filter(function(Ae){return!ie(Ae.node)}).forEach(function(Ae){le.delete(Ae.key)})})}ue=new Set;for(var oe=new Set,Se=me;Se>=0;Se-=1){var Ce=se.get(Se)||new Set;Ce.forEach(function(ye){var _e=ye.parent,Me=ye.node;if(!(ie(Me)||!ye.parent||oe.has(ye.parent.key))){if(ie(ye.parent.node)){oe.add(_e.key);return}var we=!0,Ne=!1;(_e.children||[]).filter(function(Ae){return!ie(Ae.node)}).forEach(function(Ae){var De=Ae.key,Ie=le.has(De);we&&!Ie&&(we=!1),!Ne&&(Ie||ue.has(De))&&(Ne=!0)}),we||le.delete(_e.key),Ne&&ue.add(_e.key),oe.add(_e.key)}})}return{checkedKeys:Array.from(le),halfCheckedKeys:Array.from(x(ue,le))}}function z(ae,re,se,me){var ie=[],le;me?le=me:le=ke;var ue=new Set(ae.filter(function(Se){var Ce=!!(0,ot.Z)(se,Se);return Ce||ie.push(Se),Ce})),fe=new Map,he=0;Object.keys(se).forEach(function(Se){var Ce=se[Se],ye=Ce.level,_e=fe.get(ye);_e||(_e=new Set,fe.set(ye,_e)),_e.add(Ce),he=Math.max(he,ye)}),(0,Ue.ZP)(!ie.length,"Tree missing follow keys: ".concat(ie.slice(0,100).map(function(Se){return"'".concat(Se,"'")}).join(", ")));var oe;return re===!0?oe=pe(ue,fe,he,le):oe=ne(ue,re.halfCheckedKeys,fe,he,le),oe}},3596:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Ue}});function Ue(ot,x){return ot[x]}},83898:function(xn,Zt,ve){"use strict";ve.d(Zt,{I8:function(){return ye},F:function(){return Me},zn:function(){return oe},w$:function(){return fe},oH:function(){return Se},km:function(){return ue},H8:function(){return _e}});var Ue=ve(71002),ot=ve(74902),x=ve(1413),ke=ve(45987),pe=ve(67294),ne=ve(28580);function z(we){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=[];return pe.Children.forEach(we,function(De){De==null&&!Ne.keepEmpty||(Array.isArray(De)?Ae=Ae.concat(z(De)):(0,ne.isFragment)(De)&&De.props?Ae=Ae.concat(z(De.props.children,Ne)):Ae.push(De))}),Ae}function ae(we,Ne){var Ae=(0,x.Z)({},we);return Array.isArray(Ne)&&Ne.forEach(function(De){delete Ae[De]}),Ae}var re=ve(72978),se=ve(3596),me=["children"];function ie(we,Ne){return"".concat(we,"-").concat(Ne)}function le(we){return we&&we.type&&we.type.isTreeNode}function ue(we,Ne){return we!=null?we:Ne}function fe(we){var Ne=we||{},Ae=Ne.title,De=Ne._title,Ie=Ne.key,Pe=Ne.children,Le=Ae||"title";return{title:Le,_title:De||[Le],key:Ie||"key",children:Pe||"children"}}function he(we,Ne){var Ae=new Map;function De(Ie){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ie||[]).forEach(function(Le){var We=Le[Ne.key],Be=Le[Ne.children];warning(We!=null,"Tree node must have a certain key: [".concat(Pe).concat(We,"]"));var He=String(We);warning(!Ae.has(He)||We===null||We===void 0,"Same 'key' exist in the Tree: ".concat(He)),Ae.set(He,!0),De(Be,"".concat(Pe).concat(He," > "))})}De(we)}function oe(we){function Ne(Ae){var De=z(Ae);return De.map(function(Ie){if(!le(Ie))return(0,re.ZP)(!Ie,"Tree/TreeNode can only accept TreeNode as children."),null;var Pe=Ie.key,Le=Ie.props,We=Le.children,Be=(0,ke.Z)(Le,me),He=(0,x.Z)({key:Pe},Be),Ye=Ne(We);return Ye.length&&(He.children=Ye),He}).filter(function(Ie){return Ie})}return Ne(we)}function Se(we,Ne,Ae){var De=fe(Ae),Ie=De._title,Pe=De.key,Le=De.children,We=new Set(Ne===!0?[]:Ne),Be=[];function He(Ye){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ye.map(function(st,yt){for(var Ve=ie(et?et.pos:"0",yt),Qe=ue(st[Pe],Ve),pt,mt=0;mt<Ie.length;mt+=1){var ft=Ie[mt];if(st[ft]!==void 0){pt=st[ft];break}}var nt=(0,x.Z)((0,x.Z)({},ae(st,[].concat((0,ot.Z)(Ie),[Pe,Le]))),{},{title:pt,key:Qe,parent:et,pos:Ve,children:null,data:st,isStart:[].concat((0,ot.Z)(et?et.isStart:[]),[yt===0]),isEnd:[].concat((0,ot.Z)(et?et.isEnd:[]),[yt===Ye.length-1])});return Be.push(nt),Ne===!0||We.has(Qe)?nt.children=He(st[Le]||[],nt):nt.children=[],nt})}return He(we),Be}function Ce(we,Ne,Ae){var De={};(0,Ue.Z)(Ae)==="object"?De=Ae:De={externalGetKey:Ae},De=De||{};var Ie=De,Pe=Ie.childrenPropName,Le=Ie.externalGetKey,We=Ie.fieldNames,Be=fe(We),He=Be.key,Ye=Be.children,et=Pe||Ye,st;Le?typeof Le=="string"?st=function(Qe){return Qe[Le]}:typeof Le=="function"&&(st=function(Qe){return Le(Qe)}):st=function(Qe,pt){return ue(Qe[He],pt)};function yt(Ve,Qe,pt,mt){var ft=Ve?Ve[et]:we,nt=Ve?ie(pt.pos,Qe):"0",tt=Ve?[].concat((0,ot.Z)(mt),[Ve]):[];if(Ve){var rt=st(Ve,nt),Et={node:Ve,index:Qe,pos:nt,key:rt,parentPos:pt.node?pt.pos:null,level:pt.level+1,nodes:tt};Ne(Et)}ft&&ft.forEach(function(bt,Pt){yt(bt,Pt,{node:Ve,pos:nt,level:pt?pt.level+1:-1},tt)})}yt(null)}function ye(we){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=Ne.initWrapper,De=Ne.processEntity,Ie=Ne.onProcessFinished,Pe=Ne.externalGetKey,Le=Ne.childrenPropName,We=Ne.fieldNames,Be=arguments.length>2?arguments[2]:void 0,He=Pe||Be,Ye={},et={},st={posEntities:Ye,keyEntities:et};return Ae&&(st=Ae(st)||st),Ce(we,function(yt){var Ve=yt.node,Qe=yt.index,pt=yt.pos,mt=yt.key,ft=yt.parentPos,nt=yt.level,tt=yt.nodes,rt={node:Ve,nodes:tt,index:Qe,key:mt,pos:pt,level:nt},Et=ue(mt,pt);Ye[pt]=rt,et[Et]=rt,rt.parent=Ye[ft],rt.parent&&(rt.parent.children=rt.parent.children||[],rt.parent.children.push(rt)),De&&De(rt,st)},{externalGetKey:He,childrenPropName:Le,fieldNames:We}),Ie&&Ie(st),st}function _e(we,Ne){var Ae=Ne.expandedKeys,De=Ne.selectedKeys,Ie=Ne.loadedKeys,Pe=Ne.loadingKeys,Le=Ne.checkedKeys,We=Ne.halfCheckedKeys,Be=Ne.dragOverNodeKey,He=Ne.dropPosition,Ye=Ne.keyEntities,et=(0,se.Z)(Ye,we),st={eventKey:we,expanded:Ae.indexOf(we)!==-1,selected:De.indexOf(we)!==-1,loaded:Ie.indexOf(we)!==-1,loading:Pe.indexOf(we)!==-1,checked:Le.indexOf(we)!==-1,halfChecked:We.indexOf(we)!==-1,pos:String(et?et.pos:""),dragOver:Be===we&&He===0,dragOverGapTop:Be===we&&He===-1,dragOverGapBottom:Be===we&&He===1};return st}function Me(we){var Ne=we.data,Ae=we.expanded,De=we.selected,Ie=we.checked,Pe=we.loaded,Le=we.loading,We=we.halfChecked,Be=we.dragOver,He=we.dragOverGapTop,Ye=we.dragOverGapBottom,et=we.pos,st=we.active,yt=we.eventKey,Ve=(0,x.Z)((0,x.Z)({},Ne),{},{expanded:Ae,selected:De,checked:Ie,loaded:Pe,loading:Le,halfChecked:We,dragOver:Be,dragOverGapTop:He,dragOverGapBottom:Ye,pos:et,active:st,key:yt});return"props"in Ve||Object.defineProperty(Ve,"props",{get:function(){return(0,re.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),we}}),Ve}},34952:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ae}});var Ue=ve(1413),ot=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ke="".concat(ot," ").concat(x).split(/[\s\n]+/),pe="aria-",ne="data-";function z(re,se){return re.indexOf(se)===0}function ae(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me;se===!1?me={aria:!0,data:!0,attr:!0}:se===!0?me={aria:!0}:me=(0,Ue.Z)({},se);var ie={};return Object.keys(re).forEach(function(le){(me.aria&&(le==="role"||z(le,pe))||me.data&&z(le,ne)||me.attr&&ke.includes(le))&&(ie[le]=re[le])}),ie}},72978:function(xn,Zt,ve){"use strict";var Ue={};function ot(ae,re){}function x(ae,re){}function ke(){Ue={}}function pe(ae,re,se){!re&&!Ue[se]&&(ae(!1,se),Ue[se]=!0)}function ne(ae,re){pe(ot,ae,re)}function z(ae,re){pe(x,ae,re)}Zt.ZP=ne},81533:function(xn,Zt){"use strict";var ve;var Ue=typeof Symbol=="function"&&Symbol.for,ot=Ue?Symbol.for("react.element"):60103,x=Ue?Symbol.for("react.portal"):60106,ke=Ue?Symbol.for("react.fragment"):60107,pe=Ue?Symbol.for("react.strict_mode"):60108,ne=Ue?Symbol.for("react.profiler"):60114,z=Ue?Symbol.for("react.provider"):60109,ae=Ue?Symbol.for("react.context"):60110,re=Ue?Symbol.for("react.async_mode"):60111,se=Ue?Symbol.for("react.concurrent_mode"):60111,me=Ue?Symbol.for("react.forward_ref"):60112,ie=Ue?Symbol.for("react.suspense"):60113,le=Ue?Symbol.for("react.suspense_list"):60120,ue=Ue?Symbol.for("react.memo"):60115,fe=Ue?Symbol.for("react.lazy"):60116,he=Ue?Symbol.for("react.block"):60121,oe=Ue?Symbol.for("react.fundamental"):60117,Se=Ue?Symbol.for("react.responder"):60118,Ce=Ue?Symbol.for("react.scope"):60119;function ye(Me){if(typeof Me=="object"&&Me!==null){var we=Me.$$typeof;switch(we){case ot:switch(Me=Me.type,Me){case re:case se:case ke:case ne:case pe:case ie:return Me;default:switch(Me=Me&&Me.$$typeof,Me){case ae:case me:case fe:case ue:case z:return Me;default:return we}}case x:return we}}}function _e(Me){return ye(Me)===se}ve=re,ve=se,ve=ae,ve=z,ve=ot,ve=me,ve=ke,ve=fe,ve=ue,ve=x,ve=ne,ve=pe,ve=ie,ve=function(Me){return _e(Me)||ye(Me)===re},ve=_e,ve=function(Me){return ye(Me)===ae},ve=function(Me){return ye(Me)===z},ve=function(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===ot},ve=function(Me){return ye(Me)===me},Zt.isFragment=function(Me){return ye(Me)===ke},ve=function(Me){return ye(Me)===fe},Zt.isMemo=function(Me){return ye(Me)===ue},ve=function(Me){return ye(Me)===x},ve=function(Me){return ye(Me)===ne},ve=function(Me){return ye(Me)===pe},ve=function(Me){return ye(Me)===ie},ve=function(Me){return typeof Me=="string"||typeof Me=="function"||Me===ke||Me===se||Me===ne||Me===pe||Me===ie||Me===le||typeof Me=="object"&&Me!==null&&(Me.$$typeof===fe||Me.$$typeof===ue||Me.$$typeof===z||Me.$$typeof===ae||Me.$$typeof===me||Me.$$typeof===oe||Me.$$typeof===Se||Me.$$typeof===Ce||Me.$$typeof===he)},ve=ye},28580:function(xn,Zt,ve){"use strict";xn.exports=ve(81533)},92389:function(xn,Zt){"use strict";var ve={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ot){var x=ot.keyCode;if(ot.altKey&&!ot.ctrlKey||ot.metaKey||x>=ve.F1&&x<=ve.F12)return!1;switch(x){case ve.ALT:case ve.CAPS_LOCK:case ve.CONTEXT_MENU:case ve.CTRL:case ve.DOWN:case ve.END:case ve.ESC:case ve.HOME:case ve.INSERT:case ve.LEFT:case ve.MAC_FF_META:case ve.META:case ve.NUMLOCK:case ve.NUM_CENTER:case ve.PAGE_DOWN:case ve.PAGE_UP:case ve.PAUSE:case ve.PRINT_SCREEN:case ve.RIGHT:case ve.SHIFT:case ve.UP:case ve.WIN_KEY:case ve.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ot){if(ot>=ve.ZERO&&ot<=ve.NINE||ot>=ve.NUM_ZERO&&ot<=ve.NUM_MULTIPLY||ot>=ve.A&&ot<=ve.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ot===0)return!0;switch(ot){case ve.SPACE:case ve.QUESTION_MARK:case ve.NUM_PLUS:case ve.NUM_MINUS:case ve.NUM_PERIOD:case ve.NUM_DIVISION:case ve.SEMICOLON:case ve.DASH:case ve.EQUALS:case ve.COMMA:case ve.PERIOD:case ve.SLASH:case ve.APOSTROPHE:case ve.SINGLE_QUOTE:case ve.OPEN_SQUARE_BRACKET:case ve.BACKSLASH:case ve.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Zt.Z=ve},1337:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ae}});var Ue=ve(1413),ot=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ke="".concat(ot," ").concat(x).split(/[\s\n]+/),pe="aria-",ne="data-";function z(re,se){return re.indexOf(se)===0}function ae(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me;se===!1?me={aria:!0,data:!0,attr:!0}:se===!0?me={aria:!0}:me=(0,Ue.Z)({},se);var ie={};return Object.keys(re).forEach(function(le){(me.aria&&(le==="role"||z(le,pe))||me.data&&z(le,ne)||me.attr&&ke.includes(le))&&(ie[le]=re[le])}),ie}},88386:function(xn,Zt,ve){(function(Ue){Ue(ve(4631))})(function(Ue){Ue.defineOption("placeholder","",function(ae,re,se){var me=se&&se!=Ue.Init;if(re&&!me)ae.on("blur",pe),ae.on("change",ne),ae.on("swapDoc",ne),Ue.on(ae.getInputField(),"compositionupdate",ae.state.placeholderCompose=function(){ke(ae)}),ne(ae);else if(!re&&me){ae.off("blur",pe),ae.off("change",ne),ae.off("swapDoc",ne),Ue.off(ae.getInputField(),"compositionupdate",ae.state.placeholderCompose),ot(ae);var ie=ae.getWrapperElement();ie.className=ie.className.replace(" CodeMirror-empty","")}re&&!ae.hasFocus()&&pe(ae)});function ot(ae){ae.state.placeholder&&(ae.state.placeholder.parentNode.removeChild(ae.state.placeholder),ae.state.placeholder=null)}function x(ae){ot(ae);var re=ae.state.placeholder=document.createElement("pre");re.style.cssText="height: 0; overflow: visible",re.style.direction=ae.getOption("direction"),re.className="CodeMirror-placeholder CodeMirror-line-like";var se=ae.getOption("placeholder");typeof se=="string"&&(se=document.createTextNode(se)),re.appendChild(se),ae.display.lineSpace.insertBefore(re,ae.display.lineSpace.firstChild)}function ke(ae){setTimeout(function(){var re=!1,se=ae.getInputField();se.nodeName=="TEXTAREA"?re=!se.value:ae.lineCount()==1&&(re=!/[^\u200b]/.test(se.querySelector(".CodeMirror-line").textContent)),re?x(ae):ot(ae)},20)}function pe(ae){z(ae)&&x(ae)}function ne(ae){var re=ae.getWrapperElement(),se=z(ae);re.className=re.className.replace(" CodeMirror-empty","")+(se?" CodeMirror-empty":""),se?x(ae):ot(ae)}function z(ae){return ae.lineCount()===1&&ae.getLine(0)===""}})},82801:function(xn,Zt,ve){(function(Ue){Ue(ve(4631))})(function(Ue){var ot={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=Ue.Pos;Ue.defineOption("autoCloseBrackets",!1,function(fe,he,oe){oe&&oe!=Ue.Init&&(fe.removeKeyMap(pe),fe.state.closeBrackets=null),he&&(ne(ke(he,"pairs")),fe.state.closeBrackets=he,fe.addKeyMap(pe))});function ke(fe,he){return he=="pairs"&&typeof fe=="string"?fe:typeof fe=="object"&&fe[he]!=null?fe[he]:ot[he]}var pe={Backspace:re,Enter:se};function ne(fe){for(var he=0;he<fe.length;he++){var oe=fe.charAt(he),Se="'"+oe+"'";pe[Se]||(pe[Se]=z(oe))}}ne(ot.pairs+"`");function z(fe){return function(he){return ie(he,fe)}}function ae(fe){var he=fe.state.closeBrackets;if(!he||he.override)return he;var oe=fe.getModeAt(fe.getCursor());return oe.closeBrackets||he}function re(fe){var he=ae(fe);if(!he||fe.getOption("disableInput"))return Ue.Pass;for(var oe=ke(he,"pairs"),Se=fe.listSelections(),Ce=0;Ce<Se.length;Ce++){if(!Se[Ce].empty())return Ue.Pass;var ye=le(fe,Se[Ce].head);if(!ye||oe.indexOf(ye)%2!=0)return Ue.Pass}for(var Ce=Se.length-1;Ce>=0;Ce--){var _e=Se[Ce].head;fe.replaceRange("",x(_e.line,_e.ch-1),x(_e.line,_e.ch+1),"+delete")}}function se(fe){var he=ae(fe),oe=he&&ke(he,"explode");if(!oe||fe.getOption("disableInput"))return Ue.Pass;for(var Se=fe.listSelections(),Ce=0;Ce<Se.length;Ce++){if(!Se[Ce].empty())return Ue.Pass;var ye=le(fe,Se[Ce].head);if(!ye||oe.indexOf(ye)%2!=0)return Ue.Pass}fe.operation(function(){var _e=fe.lineSeparator()||`
|
|
|
`;fe.replaceSelection(_e+_e,null),fe.execCommand("goCharLeft"),Se=fe.listSelections();for(var Me=0;Me<Se.length;Me++){var we=Se[Me].head.line;fe.indentLine(we,null,!0),fe.indentLine(we+1,null,!0)}})}function me(fe){var he=Ue.cmpPos(fe.anchor,fe.head)>0;return{anchor:new x(fe.anchor.line,fe.anchor.ch+(he?-1:1)),head:new x(fe.head.line,fe.head.ch+(he?1:-1))}}function ie(fe,he){var oe=ae(fe);if(!oe||fe.getOption("disableInput"))return Ue.Pass;var Se=ke(oe,"pairs"),Ce=Se.indexOf(he);if(Ce==-1)return Ue.Pass;for(var ye=ke(oe,"closeBefore"),_e=ke(oe,"triples"),Me=Se.charAt(Ce+1)==he,we=fe.listSelections(),Ne=Ce%2==0,Ae,De=0;De<we.length;De++){var Ie=we[De],Pe=Ie.head,Le,We=fe.getRange(Pe,x(Pe.line,Pe.ch+1));if(Ne&&!Ie.empty())Le="surround";else if((Me||!Ne)&&We==he)Me&&ue(fe,Pe)?Le="both":_e.indexOf(he)>=0&&fe.getRange(Pe,x(Pe.line,Pe.ch+3))==he+he+he?Le="skipThree":Le="skip";else if(Me&&Pe.ch>1&&_e.indexOf(he)>=0&&fe.getRange(x(Pe.line,Pe.ch-2),Pe)==he+he){if(Pe.ch>2&&/\bstring/.test(fe.getTokenTypeAt(x(Pe.line,Pe.ch-2))))return Ue.Pass;Le="addFour"}else if(Me){var Be=Pe.ch==0?" ":fe.getRange(x(Pe.line,Pe.ch-1),Pe);if(!Ue.isWordChar(We)&&Be!=he&&!Ue.isWordChar(Be))Le="both";else return Ue.Pass}else if(Ne&&(We.length===0||/\s/.test(We)||ye.indexOf(We)>-1))Le="both";else return Ue.Pass;if(!Ae)Ae=Le;else if(Ae!=Le)return Ue.Pass}var He=Ce%2?Se.charAt(Ce-1):he,Ye=Ce%2?he:Se.charAt(Ce+1);fe.operation(function(){if(Ae=="skip")fe.execCommand("goCharRight");else if(Ae=="skipThree")for(var et=0;et<3;et++)fe.execCommand("goCharRight");else if(Ae=="surround"){for(var st=fe.getSelections(),et=0;et<st.length;et++)st[et]=He+st[et]+Ye;fe.replaceSelections(st,"around"),st=fe.listSelections().slice();for(var et=0;et<st.length;et++)st[et]=me(st[et]);fe.setSelections(st)}else Ae=="both"?(fe.replaceSelection(He+Ye,null),fe.triggerElectric(He+Ye),fe.execCommand("goCharLeft")):Ae=="addFour"&&(fe.replaceSelection(He+He+He+He,"before"),fe.execCommand("goCharRight"))})}function le(fe,he){var oe=fe.getRange(x(he.line,he.ch-1),x(he.line,he.ch+1));return oe.length==2?oe:null}function ue(fe,he){var oe=fe.getTokenAt(x(he.line,he.ch+1));return/\bstring/.test(oe.type)&&oe.start==he.ch&&(he.ch==0||!/\bstring/.test(fe.getTokenTypeAt(he)))}})},57341:function(xn,Zt,ve){(function(Ue){Ue(ve(4631),ve(4786))})(function(Ue){Ue.defineOption("autoCloseTags",!1,function(re,se,me){if(me!=Ue.Init&&me&&re.removeKeyMap("autoCloseTags"),!!se){var ie={name:"autoCloseTags"};(typeof se!="object"||se.whenClosing!==!1)&&(ie["'/'"]=function(le){return ne(le)}),(typeof se!="object"||se.whenOpening!==!1)&&(ie["'>'"]=function(le){return ke(le)}),re.addKeyMap(ie)}});var ot=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function ke(re){if(re.getOption("disableInput"))return Ue.Pass;for(var se=re.listSelections(),me=[],ie=re.getOption("autoCloseTags"),le=0;le<se.length;le++){if(!se[le].empty())return Ue.Pass;var ue=se[le].head,fe=re.getTokenAt(ue),he=Ue.innerMode(re.getMode(),fe.state),oe=he.state,Se=he.mode.xmlCurrentTag&&he.mode.xmlCurrentTag(oe),Ce=Se&&Se.name;if(!Ce)return Ue.Pass;var ye=he.mode.configuration=="html",_e=typeof ie=="object"&&ie.dontCloseTags||ye&&ot,Me=typeof ie=="object"&&ie.indentTags||ye&&x;fe.end>ue.ch&&(Ce=Ce.slice(0,Ce.length-fe.end+ue.ch));var we=Ce.toLowerCase();if(!Ce||fe.type=="string"&&(fe.end!=ue.ch||!/[\"\']/.test(fe.string.charAt(fe.string.length-1))||fe.string.length==1)||fe.type=="tag"&&Se.close||fe.string.indexOf("/")==ue.ch-fe.start-1||_e&&z(_e,we)>-1||ae(re,he.mode.xmlCurrentContext&&he.mode.xmlCurrentContext(oe)||[],Ce,ue,!0))return Ue.Pass;var Ne=typeof ie=="object"&&ie.emptyTags;if(Ne&&z(Ne,Ce)>-1){me[le]={text:"/>",newPos:Ue.Pos(ue.line,ue.ch+2)};continue}var Ae=Me&&z(Me,we)>-1;me[le]={indent:Ae,text:">"+(Ae?`
|
|
|
|
|
|
`:"")+"</"+Ce+">",newPos:Ae?Ue.Pos(ue.line+1,0):Ue.Pos(ue.line,ue.ch+1)}}for(var De=typeof ie=="object"&&ie.dontIndentOnAutoClose,le=se.length-1;le>=0;le--){var Ie=me[le];re.replaceRange(Ie.text,se[le].head,se[le].anchor,"+insert");var Pe=re.listSelections().slice(0);Pe[le]={head:Ie.newPos,anchor:Ie.newPos},re.setSelections(Pe),!De&&Ie.indent&&(re.indentLine(Ie.newPos.line,null,!0),re.indentLine(Ie.newPos.line+1,null,!0))}}function pe(re,se){for(var me=re.listSelections(),ie=[],le=se?"/":"</",ue=re.getOption("autoCloseTags"),fe=typeof ue=="object"&&ue.dontIndentOnSlash,he=0;he<me.length;he++){if(!me[he].empty())return Ue.Pass;var oe=me[he].head,Se=re.getTokenAt(oe),Ce=Ue.innerMode(re.getMode(),Se.state),ye=Ce.state;if(se&&(Se.type=="string"||Se.string.charAt(0)!="<"||Se.start!=oe.ch-1))return Ue.Pass;var _e,Me=Ce.mode.name!="xml"&&re.getMode().name=="htmlmixed";if(Me&&Ce.mode.name=="javascript")_e=le+"script";else if(Me&&Ce.mode.name=="css")_e=le+"style";else{var we=Ce.mode.xmlCurrentContext&&Ce.mode.xmlCurrentContext(ye);if(!we||we.length&&ae(re,we,we[we.length-1],oe))return Ue.Pass;_e=le+we[we.length-1]}re.getLine(oe.line).charAt(Se.end)!=">"&&(_e+=">"),ie[he]=_e}if(re.replaceSelections(ie),me=re.listSelections(),!fe)for(var he=0;he<me.length;he++)(he==me.length-1||me[he].head.line<me[he+1].head.line)&&re.indentLine(me[he].head.line)}function ne(re){return re.getOption("disableInput")?Ue.Pass:pe(re,!0)}Ue.commands.closeTag=function(re){return pe(re)};function z(re,se){if(re.indexOf)return re.indexOf(se);for(var me=0,ie=re.length;me<ie;++me)if(re[me]==se)return me;return-1}function ae(re,se,me,ie,le){if(!Ue.scanForClosingTag)return!1;var ue=Math.min(re.lastLine()+1,ie.line+500),fe=Ue.scanForClosingTag(re,ie,null,ue);if(!fe||fe.tag!=me)return!1;for(var he=le?1:0,oe=se.length-1;oe>=0&&se[oe]==me;oe--)++he;ie=fe.to;for(var oe=1;oe<he;oe++){var Se=Ue.scanForClosingTag(re,ie,null,ue);if(!Se||Se.tag!=me)return!1;ie=Se.to}return!0}})},4786:function(xn,Zt,ve){(function(Ue){Ue(ve(4631))})(function(Ue){"use strict";var ot=Ue.Pos;function x(oe,Se){return oe.line-Se.line||oe.ch-Se.ch}var ke="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",pe=ke+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ne=new RegExp("<(/?)(["+ke+"]["+pe+"]*)","g");function z(oe,Se,Ce,ye){this.line=Se,this.ch=Ce,this.cm=oe,this.text=oe.getLine(Se),this.min=ye?Math.max(ye.from,oe.firstLine()):oe.firstLine(),this.max=ye?Math.min(ye.to-1,oe.lastLine()):oe.lastLine()}function ae(oe,Se){var Ce=oe.cm.getTokenTypeAt(ot(oe.line,Se));return Ce&&/\btag\b/.test(Ce)}function re(oe){if(!(oe.line>=oe.max))return oe.ch=0,oe.text=oe.cm.getLine(++oe.line),!0}function se(oe){if(!(oe.line<=oe.min))return oe.text=oe.cm.getLine(--oe.line),oe.ch=oe.text.length,!0}function me(oe){for(;;){var Se=oe.text.indexOf(">",oe.ch);if(Se==-1){if(re(oe))continue;return}if(!ae(oe,Se+1)){oe.ch=Se+1;continue}var Ce=oe.text.lastIndexOf("/",Se),ye=Ce>-1&&!/\S/.test(oe.text.slice(Ce+1,Se));return oe.ch=Se+1,ye?"selfClose":"regular"}}function ie(oe){for(;;){var Se=oe.ch?oe.text.lastIndexOf("<",oe.ch-1):-1;if(Se==-1){if(se(oe))continue;return}if(!ae(oe,Se+1)){oe.ch=Se;continue}ne.lastIndex=Se,oe.ch=Se;var Ce=ne.exec(oe.text);if(Ce&&Ce.index==Se)return Ce}}function le(oe){for(;;){ne.lastIndex=oe.ch;var Se=ne.exec(oe.text);if(!Se){if(re(oe))continue;return}if(!ae(oe,Se.index+1)){oe.ch=Se.index+1;continue}return oe.ch=Se.index+Se[0].length,Se}}function ue(oe){for(;;){var Se=oe.ch?oe.text.lastIndexOf(">",oe.ch-1):-1;if(Se==-1){if(se(oe))continue;return}if(!ae(oe,Se+1)){oe.ch=Se;continue}var Ce=oe.text.lastIndexOf("/",Se),ye=Ce>-1&&!/\S/.test(oe.text.slice(Ce+1,Se));return oe.ch=Se+1,ye?"selfClose":"regular"}}function fe(oe,Se){for(var Ce=[];;){var ye=le(oe),_e,Me=oe.line,we=oe.ch-(ye?ye[0].length:0);if(!ye||!(_e=me(oe)))return;if(_e!="selfClose")if(ye[1]){for(var Ne=Ce.length-1;Ne>=0;--Ne)if(Ce[Ne]==ye[2]){Ce.length=Ne;break}if(Ne<0&&(!Se||Se==ye[2]))return{tag:ye[2],from:ot(Me,we),to:ot(oe.line,oe.ch)}}else Ce.push(ye[2])}}function he(oe,Se){for(var Ce=[];;){var ye=ue(oe);if(!ye)return;if(ye=="selfClose"){ie(oe);continue}var _e=oe.line,Me=oe.ch,we=ie(oe);if(!we)return;if(we[1])Ce.push(we[2]);else{for(var Ne=Ce.length-1;Ne>=0;--Ne)if(Ce[Ne]==we[2]){Ce.length=Ne;break}if(Ne<0&&(!Se||Se==we[2]))return{tag:we[2],from:ot(oe.line,oe.ch),to:ot(_e,Me)}}}}Ue.registerHelper("fold","xml",function(oe,Se){for(var Ce=new z(oe,Se.line,0);;){var ye=le(Ce);if(!ye||Ce.line!=Se.line)return;var _e=me(Ce);if(!_e)return;if(!ye[1]&&_e!="selfClose"){var Me=ot(Ce.line,Ce.ch),we=fe(Ce,ye[2]);return we&&x(we.from,Me)>0?{from:Me,to:we.from}:null}}}),Ue.findMatchingTag=function(oe,Se,Ce){var ye=new z(oe,Se.line,Se.ch,Ce);if(!(ye.text.indexOf(">")==-1&&ye.text.indexOf("<")==-1)){var _e=me(ye),Me=_e&&ot(ye.line,ye.ch),we=_e&&ie(ye);if(!(!_e||!we||x(ye,Se)>0)){var Ne={from:ot(ye.line,ye.ch),to:Me,tag:we[2]};return _e=="selfClose"?{open:Ne,close:null,at:"open"}:we[1]?{open:he(ye,we[2]),close:Ne,at:"close"}:(ye=new z(oe,Me.line,Me.ch,Ce),{open:Ne,close:fe(ye,we[2]),at:"open"})}}},Ue.findEnclosingTag=function(oe,Se,Ce,ye){for(var _e=new z(oe,Se.line,Se.ch,Ce);;){var Me=he(_e,ye);if(!Me)break;var we=new z(oe,Se.line,Se.ch,Ce),Ne=fe(we,Me.tag);if(Ne)return{open:Me,close:Ne}}},Ue.scanForClosingTag=function(oe,Se,Ce,ye){var _e=new z(oe,Se.line,Se.ch,ye?{from:0,to:ye}:null);return fe(_e,Ce)}})},4631:function(xn){(function(Zt,ve){xn.exports=ve()})(this,function(){"use strict";var Zt=navigator.userAgent,ve=navigator.platform,Ue=/gecko\/\d/i.test(Zt),ot=/MSIE \d/.test(Zt),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt),ke=/Edge\/(\d+)/.exec(Zt),pe=ot||x||ke,ne=pe&&(ot?document.documentMode||6:+(ke||x)[1]),z=!ke&&/WebKit\//.test(Zt),ae=z&&/Qt\/\d+\.\d+/.test(Zt),re=!ke&&/Chrome\//.test(Zt),se=/Opera\//.test(Zt),me=/Apple Computer/.test(navigator.vendor),ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Zt),le=/PhantomJS/.test(Zt),ue=!ke&&/AppleWebKit/.test(Zt)&&/Mobile\/\w+/.test(Zt),fe=/Android/.test(Zt),he=ue||fe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Zt),oe=ue||/Mac/.test(ve),Se=/\bCrOS\b/.test(Zt),Ce=/win/i.test(ve),ye=se&&Zt.match(/Version\/(\d*\.\d*)/);ye&&(ye=Number(ye[1])),ye&&ye>=15&&(se=!1,z=!0);var _e=oe&&(ae||se&&(ye==null||ye<12.11)),Me=Ue||pe&&ne>=9;function we(E){return new RegExp("(^|\\s)"+E+"(?:$|\\s)\\s*")}var Ne=function(E,te){var be=E.className,ge=we(te).exec(be);if(ge){var Oe=be.slice(ge.index+ge[0].length);E.className=be.slice(0,ge.index)+(Oe?ge[1]+Oe:"")}};function Ae(E){for(var te=E.childNodes.length;te>0;--te)E.removeChild(E.firstChild);return E}function De(E,te){return Ae(E).appendChild(te)}function Ie(E,te,be,ge){var Oe=document.createElement(E);if(be&&(Oe.className=be),ge&&(Oe.style.cssText=ge),typeof te=="string")Oe.appendChild(document.createTextNode(te));else if(te)for(var Xe=0;Xe<te.length;++Xe)Oe.appendChild(te[Xe]);return Oe}function Pe(E,te,be,ge){var Oe=Ie(E,te,be,ge);return Oe.setAttribute("role","presentation"),Oe}var Le;document.createRange?Le=function(E,te,be,ge){var Oe=document.createRange();return Oe.setEnd(ge||E,be),Oe.setStart(E,te),Oe}:Le=function(E,te,be){var ge=document.body.createTextRange();try{ge.moveToElementText(E.parentNode)}catch(Oe){return ge}return ge.collapse(!0),ge.moveEnd("character",be),ge.moveStart("character",te),ge};function We(E,te){if(te.nodeType==3&&(te=te.parentNode),E.contains)return E.contains(te);do if(te.nodeType==11&&(te=te.host),te==E)return!0;while(te=te.parentNode)}function Be(){var E;try{E=document.activeElement}catch(te){E=document.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function He(E,te){var be=E.className;we(te).test(be)||(E.className+=(be?" ":"")+te)}function Ye(E,te){for(var be=E.split(" "),ge=0;ge<be.length;ge++)be[ge]&&!we(be[ge]).test(te)&&(te+=" "+be[ge]);return te}var et=function(E){E.select()};ue?et=function(E){E.selectionStart=0,E.selectionEnd=E.value.length}:pe&&(et=function(E){try{E.select()}catch(te){}});function st(E){var te=Array.prototype.slice.call(arguments,1);return function(){return E.apply(null,te)}}function yt(E,te,be){te||(te={});for(var ge in E)E.hasOwnProperty(ge)&&(be!==!1||!te.hasOwnProperty(ge))&&(te[ge]=E[ge]);return te}function Ve(E,te,be,ge,Oe){te==null&&(te=E.search(/[^\s\u00a0]/),te==-1&&(te=E.length));for(var Xe=ge||0,ct=Oe||0;;){var Mt=E.indexOf(" ",Xe);if(Mt<0||Mt>=te)return ct+(te-Xe);ct+=Mt-Xe,ct+=be-ct%be,Xe=Mt+1}}var Qe=function(){this.id=null,this.f=null,this.time=0,this.handler=st(this.onTimeout,this)};Qe.prototype.onTimeout=function(E){E.id=0,E.time<=+new Date?E.f():setTimeout(E.handler,E.time-+new Date)},Qe.prototype.set=function(E,te){this.f=te;var be=+new Date+E;(!this.id||be<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,E),this.time=be)};function pt(E,te){for(var be=0;be<E.length;++be)if(E[be]==te)return be;return-1}var mt=50,ft={toString:function(){return"CodeMirror.Pass"}},nt={scroll:!1},tt={origin:"*mouse"},rt={origin:"+move"};function Et(E,te,be){for(var ge=0,Oe=0;;){var Xe=E.indexOf(" ",ge);Xe==-1&&(Xe=E.length);var ct=Xe-ge;if(Xe==E.length||Oe+ct>=te)return ge+Math.min(ct,te-Oe);if(Oe+=Xe-ge,Oe+=be-Oe%be,ge=Xe+1,Oe>=te)return ge}}var bt=[""];function Pt(E){for(;bt.length<=E;)bt.push(Lt(bt)+" ");return bt[E]}function Lt(E){return E[E.length-1]}function dt(E,te){for(var be=[],ge=0;ge<E.length;ge++)be[ge]=te(E[ge],ge);return be}function Ze(E,te,be){for(var ge=0,Oe=be(te);ge<E.length&&be(E[ge])<=Oe;)ge++;E.splice(ge,0,te)}function Ke(){}function de(E,te){var be;return Object.create?be=Object.create(E):(Ke.prototype=E,be=new Ke),te&&yt(te,be),be}var xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ze(E){return/\w/.test(E)||E>"\x80"&&(E.toUpperCase()!=E.toLowerCase()||xe.test(E))}function $e(E,te){return te?te.source.indexOf("\\w")>-1&&ze(E)?!0:te.test(E):ze(E)}function Ee(E){for(var te in E)if(E.hasOwnProperty(te)&&E[te])return!1;return!0}var Re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Fe(E){return E.charCodeAt(0)>=768&&Re.test(E)}function Ge(E,te,be){for(;(be<0?te>0:te<E.length)&&Fe(E.charAt(te));)te+=be;return te}function it(E,te,be){for(var ge=te>be?-1:1;;){if(te==be)return te;var Oe=(te+be)/2,Xe=ge<0?Math.ceil(Oe):Math.floor(Oe);if(Xe==te)return E(Xe)?te:be;E(Xe)?be=Xe:te=Xe+ge}}function gt(E,te,be,ge){if(!E)return ge(te,be,"ltr",0);for(var Oe=!1,Xe=0;Xe<E.length;++Xe){var ct=E[Xe];(ct.from<be&&ct.to>te||te==be&&ct.to==te)&&(ge(Math.max(ct.from,te),Math.min(ct.to,be),ct.level==1?"rtl":"ltr",Xe),Oe=!0)}Oe||ge(te,be,"ltr")}var Kt=null;function kt(E,te,be){var ge;Kt=null;for(var Oe=0;Oe<E.length;++Oe){var Xe=E[Oe];if(Xe.from<te&&Xe.to>te)return Oe;Xe.to==te&&(Xe.from!=Xe.to&&be=="before"?ge=Oe:Kt=Oe),Xe.from==te&&(Xe.from!=Xe.to&&be!="before"?ge=Oe:Kt=Oe)}return ge!=null?ge:Kt}var St=function(){var E="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",te="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function be($t){return $t<=247?E.charAt($t):1424<=$t&&$t<=1524?"R":1536<=$t&&$t<=1785?te.charAt($t-1536):1774<=$t&&$t<=2220?"r":8192<=$t&&$t<=8203?"w":$t==8204?"b":"L"}var ge=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Oe=/[stwN]/,Xe=/[LRr]/,ct=/[Lb1n]/,Mt=/[1n]/;function Tt($t,mn,kn){this.level=$t,this.from=mn,this.to=kn}return function($t,mn){var kn=mn=="ltr"?"L":"R";if($t.length==0||mn=="ltr"&&!ge.test($t))return!1;for(var ur=$t.length,nr=[],Fr=0;Fr<ur;++Fr)nr.push(be($t.charCodeAt(Fr)));for(var Jr=0,yi=kn;Jr<ur;++Jr){var $i=nr[Jr];$i=="m"?nr[Jr]=yi:yi=$i}for(var Qi=0,Ai=kn;Qi<ur;++Qi){var ia=nr[Qi];ia=="1"&&Ai=="r"?nr[Qi]="n":Xe.test(ia)&&(Ai=ia,ia=="r"&&(nr[Qi]="R"))}for(var Pa=1,Ba=nr[0];Pa<ur-1;++Pa){var Eo=nr[Pa];Eo=="+"&&Ba=="1"&&nr[Pa+1]=="1"?nr[Pa]="1":Eo==","&&Ba==nr[Pa+1]&&(Ba=="1"||Ba=="n")&&(nr[Pa]=Ba),Ba=Eo}for(var gs=0;gs<ur;++gs){var wl=nr[gs];if(wl==",")nr[gs]="N";else if(wl=="%"){var Bs=void 0;for(Bs=gs+1;Bs<ur&&nr[Bs]=="%";++Bs);for(var Wl=gs&&nr[gs-1]=="!"||Bs<ur&&nr[Bs]=="1"?"1":"N",Zl=gs;Zl<Bs;++Zl)nr[Zl]=Wl;gs=Bs-1}}for(var cl=0,Vl=kn;cl<ur;++cl){var eo=nr[cl];Vl=="L"&&eo=="1"?nr[cl]="L":Xe.test(eo)&&(Vl=eo)}for(var Gs=0;Gs<ur;++Gs)if(Oe.test(nr[Gs])){var js=void 0;for(js=Gs+1;js<ur&&Oe.test(nr[js]);++js);for(var Xs=(Gs?nr[Gs-1]:kn)=="L",tl=(js<ur?nr[js]:kn)=="L",wu=Xs==tl?Xs?"L":"R":kn,Ql=Gs;Ql<js;++Ql)nr[Ql]=wu;Gs=js-1}for(var Al=[],Jo,pl=0;pl<ur;)if(ct.test(nr[pl])){var Nd=pl;for(++pl;pl<ur&&ct.test(nr[pl]);++pl);Al.push(new Tt(0,Nd,pl))}else{var zc=pl,Yc=Al.length,Tc=mn=="rtl"?1:0;for(++pl;pl<ur&&nr[pl]!="L";++pl);for(var ul=zc;ul<pl;)if(Mt.test(nr[ul])){zc<ul&&(Al.splice(Yc,0,new Tt(1,zc,ul)),Yc+=Tc);var Su=ul;for(++ul;ul<pl&&Mt.test(nr[ul]);++ul);Al.splice(Yc,0,new Tt(2,Su,ul)),Yc+=Tc,zc=ul}else++ul;zc<pl&&Al.splice(Yc,0,new Tt(1,zc,pl))}return mn=="ltr"&&(Al[0].level==1&&(Jo=$t.match(/^\s+/))&&(Al[0].from=Jo[0].length,Al.unshift(new Tt(0,0,Jo[0].length))),Lt(Al).level==1&&(Jo=$t.match(/\s+$/))&&(Lt(Al).to-=Jo[0].length,Al.push(new Tt(0,ur-Jo[0].length,ur)))),mn=="rtl"?Al.reverse():Al}}();function Wt(E,te){var be=E.order;return be==null&&(be=E.order=St(E.text,te)),be}var jt=[],Vt=function(E,te,be){if(E.addEventListener)E.addEventListener(te,be,!1);else if(E.attachEvent)E.attachEvent("on"+te,be);else{var ge=E._handlers||(E._handlers={});ge[te]=(ge[te]||jt).concat(be)}};function _t(E,te){return E._handlers&&E._handlers[te]||jt}function sn(E,te,be){if(E.removeEventListener)E.removeEventListener(te,be,!1);else if(E.detachEvent)E.detachEvent("on"+te,be);else{var ge=E._handlers,Oe=ge&&ge[te];if(Oe){var Xe=pt(Oe,be);Xe>-1&&(ge[te]=Oe.slice(0,Xe).concat(Oe.slice(Xe+1)))}}}function Dt(E,te){var be=_t(E,te);if(be.length)for(var ge=Array.prototype.slice.call(arguments,2),Oe=0;Oe<be.length;++Oe)be[Oe].apply(null,ge)}function xt(E,te,be){return typeof te=="string"&&(te={type:te,preventDefault:function(){this.defaultPrevented=!0}}),Dt(E,be||te.type,E,te),pr(te)||te.codemirrorIgnore}function en(E){var te=E._handlers&&E._handlers.cursorActivity;if(te)for(var be=E.curOp.cursorActivityHandlers||(E.curOp.cursorActivityHandlers=[]),ge=0;ge<te.length;++ge)pt(be,te[ge])==-1&&be.push(te[ge])}function an(E,te){return _t(E,te).length>0}function fn(E){E.prototype.on=function(te,be){Vt(this,te,be)},E.prototype.off=function(te,be){sn(this,te,be)}}function Tn(E){E.preventDefault?E.preventDefault():E.returnValue=!1}function ar(E){E.stopPropagation?E.stopPropagation():E.cancelBubble=!0}function pr(E){return E.defaultPrevented!=null?E.defaultPrevented:E.returnValue==!1}function Ar(E){Tn(E),ar(E)}function Dr(E){return E.target||E.srcElement}function dr(E){var te=E.which;return te==null&&(E.button&1?te=1:E.button&2?te=3:E.button&4&&(te=2)),oe&&E.ctrlKey&&te==1&&(te=3),te}var zr=function(){if(pe&&ne<9)return!1;var E=Ie("div");return"draggable"in E||"dragDrop"in E}(),ai;function ki(E){if(ai==null){var te=Ie("span","\u200B");De(E,Ie("span",[te,document.createTextNode("x")])),E.firstChild.offsetHeight!=0&&(ai=te.offsetWidth<=1&&te.offsetHeight>2&&!(pe&&ne<8))}var be=ai?Ie("span","\u200B"):Ie("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return be.setAttribute("cm-text",""),be}var Ni;function xi(E){if(Ni!=null)return Ni;var te=De(E,document.createTextNode("A\u062EA")),be=Le(te,0,1).getBoundingClientRect(),ge=Le(te,1,2).getBoundingClientRect();return Ae(E),!be||be.left==be.right?!1:Ni=ge.right-be.right<3}var cn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(E){for(var te=0,be=[],ge=E.length;te<=ge;){var Oe=E.indexOf(`
|
|
|
`,te);Oe==-1&&(Oe=E.length);var Xe=E.slice(te,E.charAt(Oe-1)=="\r"?Oe-1:Oe),ct=Xe.indexOf("\r");ct!=-1?(be.push(Xe.slice(0,ct)),te+=ct+1):(be.push(Xe),te=Oe+1)}return be}:function(E){return E.split(/\r\n?|\n/)},ir=window.getSelection?function(E){try{return E.selectionStart!=E.selectionEnd}catch(te){return!1}}:function(E){var te;try{te=E.ownerDocument.selection.createRange()}catch(be){}return!te||te.parentElement()!=E?!1:te.compareEndPoints("StartToEnd",te)!=0},sr=function(){var E=Ie("div");return"oncopy"in E?!0:(E.setAttribute("oncopy","return;"),typeof E.oncopy=="function")}(),Yn=null;function Rr(E){if(Yn!=null)return Yn;var te=De(E,Ie("span","x")),be=te.getBoundingClientRect(),ge=Le(te,0,1).getBoundingClientRect();return Yn=Math.abs(be.left-ge.left)>1}var Nn={},Hn={};function jn(E,te){arguments.length>2&&(te.dependencies=Array.prototype.slice.call(arguments,2)),Nn[E]=te}function Gt(E,te){Hn[E]=te}function Xt(E){if(typeof E=="string"&&Hn.hasOwnProperty(E))E=Hn[E];else if(E&&typeof E.name=="string"&&Hn.hasOwnProperty(E.name)){var te=Hn[E.name];typeof te=="string"&&(te={name:te}),E=de(te,E),E.name=te.name}else{if(typeof E=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(E))return Xt("application/xml");if(typeof E=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(E))return Xt("application/json")}return typeof E=="string"?{name:E}:E||{name:"null"}}function rn(E,te){te=Xt(te);var be=Nn[te.name];if(!be)return rn(E,"text/plain");var ge=be(E,te);if(An.hasOwnProperty(te.name)){var Oe=An[te.name];for(var Xe in Oe)Oe.hasOwnProperty(Xe)&&(ge.hasOwnProperty(Xe)&&(ge["_"+Xe]=ge[Xe]),ge[Xe]=Oe[Xe])}if(ge.name=te.name,te.helperType&&(ge.helperType=te.helperType),te.modeProps)for(var ct in te.modeProps)ge[ct]=te.modeProps[ct];return ge}var An={};function zt(E,te){var be=An.hasOwnProperty(E)?An[E]:An[E]={};yt(te,be)}function tn(E,te){if(te===!0)return te;if(E.copyState)return E.copyState(te);var be={};for(var ge in te){var Oe=te[ge];Oe instanceof Array&&(Oe=Oe.concat([])),be[ge]=Oe}return be}function bn(E,te){for(var be;E.innerMode&&(be=E.innerMode(te),!(!be||be.mode==E));)te=be.state,E=be.mode;return be||{mode:E,state:te}}function wn(E,te,be){return E.startState?E.startState(te,be):!0}var zn=function(E,te,be){this.pos=this.start=0,this.string=E,this.tabSize=te||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=be};zn.prototype.eol=function(){return this.pos>=this.string.length},zn.prototype.sol=function(){return this.pos==this.lineStart},zn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},zn.prototype.eat=function(E){var te=this.string.charAt(this.pos),be;if(typeof E=="string"?be=te==E:be=te&&(E.test?E.test(te):E(te)),be)return++this.pos,te},zn.prototype.eatWhile=function(E){for(var te=this.pos;this.eat(E););return this.pos>te},zn.prototype.eatSpace=function(){for(var E=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>E},zn.prototype.skipToEnd=function(){this.pos=this.string.length},zn.prototype.skipTo=function(E){var te=this.string.indexOf(E,this.pos);if(te>-1)return this.pos=te,!0},zn.prototype.backUp=function(E){this.pos-=E},zn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ve(this.string,this.lineStart,this.tabSize):0)},zn.prototype.indentation=function(){return Ve(this.string,null,this.tabSize)-(this.lineStart?Ve(this.string,this.lineStart,this.tabSize):0)},zn.prototype.match=function(E,te,be){if(typeof E=="string"){var ge=function(ct){return be?ct.toLowerCase():ct},Oe=this.string.substr(this.pos,E.length);if(ge(Oe)==ge(E))return te!==!1&&(this.pos+=E.length),!0}else{var Xe=this.string.slice(this.pos).match(E);return Xe&&Xe.index>0?null:(Xe&&te!==!1&&(this.pos+=Xe[0].length),Xe)}},zn.prototype.current=function(){return this.string.slice(this.start,this.pos)},zn.prototype.hideFirstChars=function(E,te){this.lineStart+=E;try{return te()}finally{this.lineStart-=E}},zn.prototype.lookAhead=function(E){var te=this.lineOracle;return te&&te.lookAhead(E)},zn.prototype.baseToken=function(){var E=this.lineOracle;return E&&E.baseToken(this.pos)};function Un(E,te){if(te-=E.first,te<0||te>=E.size)throw new Error("There is no line "+(te+E.first)+" in the document.");for(var be=E;!be.lines;)for(var ge=0;;++ge){var Oe=be.children[ge],Xe=Oe.chunkSize();if(te<Xe){be=Oe;break}te-=Xe}return be.lines[te]}function kr(E,te,be){var ge=[],Oe=te.line;return E.iter(te.line,be.line+1,function(Xe){var ct=Xe.text;Oe==be.line&&(ct=ct.slice(0,be.ch)),Oe==te.line&&(ct=ct.slice(te.ch)),ge.push(ct),++Oe}),ge}function Zr(E,te,be){var ge=[];return E.iter(te,be,function(Oe){ge.push(Oe.text)}),ge}function Ir(E,te){var be=te-E.height;if(be)for(var ge=E;ge;ge=ge.parent)ge.height+=be}function Er(E){if(E.parent==null)return null;for(var te=E.parent,be=pt(te.lines,E),ge=te.parent;ge;te=ge,ge=ge.parent)for(var Oe=0;ge.children[Oe]!=te;++Oe)be+=ge.children[Oe].chunkSize();return be+te.first}function Br(E,te){var be=E.first;e:do{for(var ge=0;ge<E.children.length;++ge){var Oe=E.children[ge],Xe=Oe.height;if(te<Xe){E=Oe;continue e}te-=Xe,be+=Oe.chunkSize()}return be}while(!E.lines);for(var ct=0;ct<E.lines.length;++ct){var Mt=E.lines[ct],Tt=Mt.height;if(te<Tt)break;te-=Tt}return be+ct}function Pr(E,te){return te>=E.first&&te<E.first+E.size}function nn(E,te){return String(E.lineNumberFormatter(te+E.firstLineNumber))}function Jt(E,te,be){if(be===void 0&&(be=null),!(this instanceof Jt))return new Jt(E,te,be);this.line=E,this.ch=te,this.sticky=be}function pn(E,te){return E.line-te.line||E.ch-te.ch}function Qn(E,te){return E.sticky==te.sticky&&pn(E,te)==0}function hr(E){return Jt(E.line,E.ch)}function Fn(E,te){return pn(E,te)<0?te:E}function Vn(E,te){return pn(E,te)<0?E:te}function er(E,te){return Math.max(E.first,Math.min(te,E.first+E.size-1))}function Sr(E,te){if(te.line<E.first)return Jt(E.first,0);var be=E.first+E.size-1;return te.line>be?Jt(be,Un(E,be).text.length):Nr(te,Un(E,te.line).text.length)}function Nr(E,te){var be=E.ch;return be==null||be>te?Jt(E.line,te):be<0?Jt(E.line,0):E}function In(E,te){for(var be=[],ge=0;ge<te.length;ge++)be[ge]=Sr(E,te[ge]);return be}var Gr=function(E,te){this.state=E,this.lookAhead=te},ei=function(E,te,be,ge){this.state=te,this.doc=E,this.line=be,this.maxLookAhead=ge||0,this.baseTokens=null,this.baseTokenPos=1};ei.prototype.lookAhead=function(E){var te=this.doc.getLine(this.line+E);return te!=null&&E>this.maxLookAhead&&(this.maxLookAhead=E),te},ei.prototype.baseToken=function(E){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=E;)this.baseTokenPos+=2;var te=this.baseTokens[this.baseTokenPos+1];return{type:te&&te.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-E}},ei.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ei.fromSaved=function(E,te,be){return te instanceof Gr?new ei(E,tn(E.mode,te.state),be,te.lookAhead):new ei(E,tn(E.mode,te),be)},ei.prototype.save=function(E){var te=E!==!1?tn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Gr(te,this.maxLookAhead):te};function aa(E,te,be,ge){var Oe=[E.state.modeGen],Xe={};ta(E,te.text,E.doc.mode,be,function($t,mn){return Oe.push($t,mn)},Xe,ge);for(var ct=be.state,Mt=function($t){be.baseTokens=Oe;var mn=E.state.overlays[$t],kn=1,ur=0;be.state=!0,ta(E,te.text,mn.mode,be,function(nr,Fr){for(var Jr=kn;ur<nr;){var yi=Oe[kn];yi>nr&&Oe.splice(kn,1,nr,Oe[kn+1],yi),kn+=2,ur=Math.min(nr,yi)}if(Fr)if(mn.opaque)Oe.splice(Jr,kn-Jr,nr,"overlay "+Fr),kn=Jr+2;else for(;Jr<kn;Jr+=2){var $i=Oe[Jr+1];Oe[Jr+1]=($i?$i+" ":"")+"overlay "+Fr}},Xe),be.state=ct,be.baseTokens=null,be.baseTokenPos=1},Tt=0;Tt<E.state.overlays.length;++Tt)Mt(Tt);return{styles:Oe,classes:Xe.bgClass||Xe.textClass?Xe:null}}function ca(E,te,be){if(!te.styles||te.styles[0]!=E.state.modeGen){var ge=qi(E,Er(te)),Oe=te.text.length>E.options.maxHighlightLength&&tn(E.doc.mode,ge.state),Xe=aa(E,te,ge);Oe&&(ge.state=Oe),te.stateAfter=ge.save(!Oe),te.styles=Xe.styles,Xe.classes?te.styleClasses=Xe.classes:te.styleClasses&&(te.styleClasses=null),be===E.doc.highlightFrontier&&(E.doc.modeFrontier=Math.max(E.doc.modeFrontier,++E.doc.highlightFrontier))}return te.styles}function qi(E,te,be){var ge=E.doc,Oe=E.display;if(!ge.mode.startState)return new ei(ge,!0,te);var Xe=Ea(E,te,be),ct=Xe>ge.first&&Un(ge,Xe-1).stateAfter,Mt=ct?ei.fromSaved(ge,ct,Xe):new ei(ge,wn(ge.mode),Xe);return ge.iter(Xe,te,function(Tt){Oi(E,Tt.text,Mt);var $t=Mt.line;Tt.stateAfter=$t==te-1||$t%5==0||$t>=Oe.viewFrom&&$t<Oe.viewTo?Mt.save():null,Mt.nextLine()}),be&&(ge.modeFrontier=Mt.line),Mt}function Oi(E,te,be,ge){var Oe=E.doc.mode,Xe=new zn(te,E.options.tabSize,be);for(Xe.start=Xe.pos=ge||0,te==""&&oa(Oe,be.state);!Xe.eol();)Bi(Oe,Xe,be.state),Xe.start=Xe.pos}function oa(E,te){if(E.blankLine)return E.blankLine(te);if(E.innerMode){var be=bn(E,te);if(be.mode.blankLine)return be.mode.blankLine(be.state)}}function Bi(E,te,be,ge){for(var Oe=0;Oe<10;Oe++){ge&&(ge[0]=bn(E,be).mode);var Xe=E.token(te,be);if(te.pos>te.start)return Xe}throw new Error("Mode "+E.name+" failed to advance stream.")}var Di=function(E,te,be){this.start=E.start,this.end=E.pos,this.string=E.current(),this.type=te||null,this.state=be};function _a(E,te,be,ge){var Oe=E.doc,Xe=Oe.mode,ct;te=Sr(Oe,te);var Mt=Un(Oe,te.line),Tt=qi(E,te.line,be),$t=new zn(Mt.text,E.options.tabSize,Tt),mn;for(ge&&(mn=[]);(ge||$t.pos<te.ch)&&!$t.eol();)$t.start=$t.pos,ct=Bi(Xe,$t,Tt.state),ge&&mn.push(new Di($t,ct,tn(Oe.mode,Tt.state)));return ge?mn:new Di($t,ct,Tt.state)}function _i(E,te){if(E)for(;;){var be=E.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!be)break;E=E.slice(0,be.index)+E.slice(be.index+be[0].length);var ge=be[1]?"bgClass":"textClass";te[ge]==null?te[ge]=be[2]:new RegExp("(?:^|\\s)"+be[2]+"(?:$|\\s)").test(te[ge])||(te[ge]+=" "+be[2])}return E}function ta(E,te,be,ge,Oe,Xe,ct){var Mt=be.flattenSpans;Mt==null&&(Mt=E.options.flattenSpans);var Tt=0,$t=null,mn=new zn(te,E.options.tabSize,ge),kn,ur=E.options.addModeClass&&[null];for(te==""&&_i(oa(be,ge.state),Xe);!mn.eol();){if(mn.pos>E.options.maxHighlightLength?(Mt=!1,ct&&Oi(E,te,ge,mn.pos),mn.pos=te.length,kn=null):kn=_i(Bi(be,mn,ge.state,ur),Xe),ur){var nr=ur[0].name;nr&&(kn="m-"+(kn?nr+" "+kn:nr))}if(!Mt||$t!=kn){for(;Tt<mn.start;)Tt=Math.min(mn.start,Tt+5e3),Oe(Tt,$t);$t=kn}mn.start=mn.pos}for(;Tt<mn.pos;){var Fr=Math.min(mn.pos,Tt+5e3);Oe(Fr,$t),Tt=Fr}}function Ea(E,te,be){for(var ge,Oe,Xe=E.doc,ct=be?-1:te-(E.doc.mode.innerMode?1e3:100),Mt=te;Mt>ct;--Mt){if(Mt<=Xe.first)return Xe.first;var Tt=Un(Xe,Mt-1),$t=Tt.stateAfter;if($t&&(!be||Mt+($t instanceof Gr?$t.lookAhead:0)<=Xe.modeFrontier))return Mt;var mn=Ve(Tt.text,null,E.options.tabSize);(Oe==null||ge>mn)&&(Oe=Mt-1,ge=mn)}return Oe}function Va(E,te){if(E.modeFrontier=Math.min(E.modeFrontier,te),!(E.highlightFrontier<te-10)){for(var be=E.first,ge=te-1;ge>be;ge--){var Oe=Un(E,ge).stateAfter;if(Oe&&(!(Oe instanceof Gr)||ge+Oe.lookAhead<te)){be=ge+1;break}}E.highlightFrontier=Math.min(E.highlightFrontier,be)}}var Na=!1,Pi=!1;function yn(){Na=!0}function dn(){Pi=!0}function Kn(E,te,be){this.marker=E,this.from=te,this.to=be}function or(E,te){if(E)for(var be=0;be<E.length;++be){var ge=E[be];if(ge.marker==te)return ge}}function xr(E,te){for(var be,ge=0;ge<E.length;++ge)E[ge]!=te&&(be||(be=[])).push(E[ge]);return be}function Wr(E,te){E.markedSpans=E.markedSpans?E.markedSpans.concat([te]):[te],te.marker.attachLine(E)}function oi(E,te,be){var ge;if(E)for(var Oe=0;Oe<E.length;++Oe){var Xe=E[Oe],ct=Xe.marker,Mt=Xe.from==null||(ct.inclusiveLeft?Xe.from<=te:Xe.from<te);if(Mt||Xe.from==te&&ct.type=="bookmark"&&(!be||!Xe.marker.insertLeft)){var Tt=Xe.to==null||(ct.inclusiveRight?Xe.to>=te:Xe.to>te);(ge||(ge=[])).push(new Kn(ct,Xe.from,Tt?null:Xe.to))}}return ge}function pi(E,te,be){var ge;if(E)for(var Oe=0;Oe<E.length;++Oe){var Xe=E[Oe],ct=Xe.marker,Mt=Xe.to==null||(ct.inclusiveRight?Xe.to>=te:Xe.to>te);if(Mt||Xe.from==te&&ct.type=="bookmark"&&(!be||Xe.marker.insertLeft)){var Tt=Xe.from==null||(ct.inclusiveLeft?Xe.from<=te:Xe.from<te);(ge||(ge=[])).push(new Kn(ct,Tt?null:Xe.from-te,Xe.to==null?null:Xe.to-te))}}return ge}function Ei(E,te){if(te.full)return null;var be=Pr(E,te.from.line)&&Un(E,te.from.line).markedSpans,ge=Pr(E,te.to.line)&&Un(E,te.to.line).markedSpans;if(!be&&!ge)return null;var Oe=te.from.ch,Xe=te.to.ch,ct=pn(te.from,te.to)==0,Mt=oi(be,Oe,ct),Tt=pi(ge,Xe,ct),$t=te.text.length==1,mn=Lt(te.text).length+($t?Oe:0);if(Mt)for(var kn=0;kn<Mt.length;++kn){var ur=Mt[kn];if(ur.to==null){var nr=or(Tt,ur.marker);nr?$t&&(ur.to=nr.to==null?null:nr.to+mn):ur.to=Oe}}if(Tt)for(var Fr=0;Fr<Tt.length;++Fr){var Jr=Tt[Fr];if(Jr.to!=null&&(Jr.to+=mn),Jr.from==null){var yi=or(Mt,Jr.marker);yi||(Jr.from=mn,$t&&(Mt||(Mt=[])).push(Jr))}else Jr.from+=mn,$t&&(Mt||(Mt=[])).push(Jr)}Mt&&(Mt=mi(Mt)),Tt&&Tt!=Mt&&(Tt=mi(Tt));var $i=[Mt];if(!$t){var Qi=te.text.length-2,Ai;if(Qi>0&&Mt)for(var ia=0;ia<Mt.length;++ia)Mt[ia].to==null&&(Ai||(Ai=[])).push(new Kn(Mt[ia].marker,null,null));for(var Pa=0;Pa<Qi;++Pa)$i.push(Ai);$i.push(Tt)}return $i}function mi(E){for(var te=0;te<E.length;++te){var be=E[te];be.from!=null&&be.from==be.to&&be.marker.clearWhenEmpty!==!1&&E.splice(te--,1)}return E.length?E:null}function Li(E,te,be){var ge=null;if(E.iter(te.line,be.line+1,function(nr){if(nr.markedSpans)for(var Fr=0;Fr<nr.markedSpans.length;++Fr){var Jr=nr.markedSpans[Fr].marker;Jr.readOnly&&(!ge||pt(ge,Jr)==-1)&&(ge||(ge=[])).push(Jr)}}),!ge)return null;for(var Oe=[{from:te,to:be}],Xe=0;Xe<ge.length;++Xe)for(var ct=ge[Xe],Mt=ct.find(0),Tt=0;Tt<Oe.length;++Tt){var $t=Oe[Tt];if(!(pn($t.to,Mt.from)<0||pn($t.from,Mt.to)>0)){var mn=[Tt,1],kn=pn($t.from,Mt.from),ur=pn($t.to,Mt.to);(kn<0||!ct.inclusiveLeft&&!kn)&&mn.push({from:$t.from,to:Mt.from}),(ur>0||!ct.inclusiveRight&&!ur)&&mn.push({from:Mt.to,to:$t.to}),Oe.splice.apply(Oe,mn),Tt+=mn.length-3}}return Oe}function ea(E){var te=E.markedSpans;if(te){for(var be=0;be<te.length;++be)te[be].marker.detachLine(E);E.markedSpans=null}}function ni(E,te){if(te){for(var be=0;be<te.length;++be)te[be].marker.attachLine(E);E.markedSpans=te}}function Mn(E){return E.inclusiveLeft?-1:0}function hn(E){return E.inclusiveRight?1:0}function On(E,te){var be=E.lines.length-te.lines.length;if(be!=0)return be;var ge=E.find(),Oe=te.find(),Xe=pn(ge.from,Oe.from)||Mn(E)-Mn(te);if(Xe)return-Xe;var ct=pn(ge.to,Oe.to)||hn(E)-hn(te);return ct||te.id-E.id}function Je(E,te){var be=Pi&&E.markedSpans,ge;if(be)for(var Oe=void 0,Xe=0;Xe<be.length;++Xe)Oe=be[Xe],Oe.marker.collapsed&&(te?Oe.from:Oe.to)==null&&(!ge||On(ge,Oe.marker)<0)&&(ge=Oe.marker);return ge}function vt(E){return Je(E,!0)}function Ct(E){return Je(E,!1)}function It(E,te){var be=Pi&&E.markedSpans,ge;if(be)for(var Oe=0;Oe<be.length;++Oe){var Xe=be[Oe];Xe.marker.collapsed&&(Xe.from==null||Xe.from<te)&&(Xe.to==null||Xe.to>te)&&(!ge||On(ge,Xe.marker)<0)&&(ge=Xe.marker)}return ge}function At(E,te,be,ge,Oe){var Xe=Un(E,te),ct=Pi&&Xe.markedSpans;if(ct)for(var Mt=0;Mt<ct.length;++Mt){var Tt=ct[Mt];if(Tt.marker.collapsed){var $t=Tt.marker.find(0),mn=pn($t.from,be)||Mn(Tt.marker)-Mn(Oe),kn=pn($t.to,ge)||hn(Tt.marker)-hn(Oe);if(!(mn>=0&&kn<=0||mn<=0&&kn>=0)&&(mn<=0&&(Tt.marker.inclusiveRight&&Oe.inclusiveLeft?pn($t.to,be)>=0:pn($t.to,be)>0)||mn>=0&&(Tt.marker.inclusiveRight&&Oe.inclusiveLeft?pn($t.from,ge)<=0:pn($t.from,ge)<0)))return!0}}}function Bt(E){for(var te;te=vt(E);)E=te.find(-1,!0).line;return E}function Ft(E){for(var te;te=Ct(E);)E=te.find(1,!0).line;return E}function on(E){for(var te,be;te=Ct(E);)E=te.find(1,!0).line,(be||(be=[])).push(E);return be}function gn(E,te){var be=Un(E,te),ge=Bt(be);return be==ge?te:Er(ge)}function Ln(E,te){if(te>E.lastLine())return te;var be=Un(E,te),ge;if(!qn(E,be))return te;for(;ge=Ct(be);)be=ge.find(1,!0).line;return Er(be)+1}function qn(E,te){var be=Pi&&te.markedSpans;if(be){for(var ge=void 0,Oe=0;Oe<be.length;++Oe)if(ge=be[Oe],!!ge.marker.collapsed){if(ge.from==null)return!0;if(!ge.marker.widgetNode&&ge.from==0&&ge.marker.inclusiveLeft&&Zn(E,te,ge))return!0}}}function Zn(E,te,be){if(be.to==null){var ge=be.marker.find(1,!0);return Zn(E,ge.line,or(ge.line.markedSpans,be.marker))}if(be.marker.inclusiveRight&&be.to==te.text.length)return!0;for(var Oe=void 0,Xe=0;Xe<te.markedSpans.length;++Xe)if(Oe=te.markedSpans[Xe],Oe.marker.collapsed&&!Oe.marker.widgetNode&&Oe.from==be.to&&(Oe.to==null||Oe.to!=be.from)&&(Oe.marker.inclusiveLeft||be.marker.inclusiveRight)&&Zn(E,te,Oe))return!0}function Pn(E){E=Bt(E);for(var te=0,be=E.parent,ge=0;ge<be.lines.length;++ge){var Oe=be.lines[ge];if(Oe==E)break;te+=Oe.height}for(var Xe=be.parent;Xe;be=Xe,Xe=be.parent)for(var ct=0;ct<Xe.children.length;++ct){var Mt=Xe.children[ct];if(Mt==be)break;te+=Mt.height}return te}function Bn(E){if(E.height==0)return 0;for(var te=E.text.length,be,ge=E;be=vt(ge);){var Oe=be.find(0,!0);ge=Oe.from.line,te+=Oe.from.ch-Oe.to.ch}for(ge=E;be=Ct(ge);){var Xe=be.find(0,!0);te-=ge.text.length-Xe.from.ch,ge=Xe.to.line,te+=ge.text.length-Xe.to.ch}return te}function Sn(E){var te=E.display,be=E.doc;te.maxLine=Un(be,be.first),te.maxLineLength=Bn(te.maxLine),te.maxLineChanged=!0,be.iter(function(ge){var Oe=Bn(ge);Oe>te.maxLineLength&&(te.maxLineLength=Oe,te.maxLine=ge)})}var Xn=function(E,te,be){this.text=E,ni(this,te),this.height=be?be(this):1};Xn.prototype.lineNo=function(){return Er(this)},fn(Xn);function vr(E,te,be,ge){E.text=te,E.stateAfter&&(E.stateAfter=null),E.styles&&(E.styles=null),E.order!=null&&(E.order=null),ea(E),ni(E,be);var Oe=ge?ge(E):1;Oe!=E.height&&Ir(E,Oe)}function rr(E){E.parent=null,ea(E)}var lr={},fr={};function yr(E,te){if(!E||/^\s*$/.test(E))return null;var be=te.addModeClass?fr:lr;return be[E]||(be[E]=E.replace(/\S+/g,"cm-$&"))}function Mr(E,te){var be=Pe("span",null,null,z?"padding-right: .1px":null),ge={pre:Pe("pre",[be],"CodeMirror-line"),content:be,col:0,pos:0,cm:E,trailingSpace:!1,splitSpaces:E.getOption("lineWrapping")};te.measure={};for(var Oe=0;Oe<=(te.rest?te.rest.length:0);Oe++){var Xe=Oe?te.rest[Oe-1]:te.line,ct=void 0;ge.pos=0,ge.addToken=Rt,xi(E.display.measure)&&(ct=Wt(Xe,E.doc.direction))&&(ge.addToken=Qt(ge.addToken,ct)),ge.map=[];var Mt=te!=E.display.externalMeasured&&Er(Xe);Wn(Xe,ge,ca(E,Xe,Mt)),Xe.styleClasses&&(Xe.styleClasses.bgClass&&(ge.bgClass=Ye(Xe.styleClasses.bgClass,ge.bgClass||"")),Xe.styleClasses.textClass&&(ge.textClass=Ye(Xe.styleClasses.textClass,ge.textClass||""))),ge.map.length==0&&ge.map.push(0,0,ge.content.appendChild(ki(E.display.measure))),Oe==0?(te.measure.map=ge.map,te.measure.cache={}):((te.measure.maps||(te.measure.maps=[])).push(ge.map),(te.measure.caches||(te.measure.caches=[])).push({}))}if(z){var Tt=ge.content.lastChild;(/\bcm-tab\b/.test(Tt.className)||Tt.querySelector&&Tt.querySelector(".cm-tab"))&&(ge.content.className="cm-tab-wrap-hack")}return Dt(E,"renderLine",E,te.line,ge.pre),ge.pre.className&&(ge.textClass=Ye(ge.pre.className,ge.textClass||"")),ge}function Ot(E){var te=Ie("span","\u2022","cm-invalidchar");return te.title="\\u"+E.charCodeAt(0).toString(16),te.setAttribute("aria-label",te.title),te}function Rt(E,te,be,ge,Oe,Xe,ct){if(te){var Mt=E.splitSpaces?un(te,E.trailingSpace):te,Tt=E.cm.state.specialChars,$t=!1,mn;if(!Tt.test(te))E.col+=te.length,mn=document.createTextNode(Mt),E.map.push(E.pos,E.pos+te.length,mn),pe&&ne<9&&($t=!0),E.pos+=te.length;else{mn=document.createDocumentFragment();for(var kn=0;;){Tt.lastIndex=kn;var ur=Tt.exec(te),nr=ur?ur.index-kn:te.length-kn;if(nr){var Fr=document.createTextNode(Mt.slice(kn,kn+nr));pe&&ne<9?mn.appendChild(Ie("span",[Fr])):mn.appendChild(Fr),E.map.push(E.pos,E.pos+nr,Fr),E.col+=nr,E.pos+=nr}if(!ur)break;kn+=nr+1;var Jr=void 0;if(ur[0]==" "){var yi=E.cm.options.tabSize,$i=yi-E.col%yi;Jr=mn.appendChild(Ie("span",Pt($i),"cm-tab")),Jr.setAttribute("role","presentation"),Jr.setAttribute("cm-text"," "),E.col+=$i}else ur[0]=="\r"||ur[0]==`
|
|
|
`?(Jr=mn.appendChild(Ie("span",ur[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Jr.setAttribute("cm-text",ur[0]),E.col+=1):(Jr=E.cm.options.specialCharPlaceholder(ur[0]),Jr.setAttribute("cm-text",ur[0]),pe&&ne<9?mn.appendChild(Ie("span",[Jr])):mn.appendChild(Jr),E.col+=1);E.map.push(E.pos,E.pos+1,Jr),E.pos++}}if(E.trailingSpace=Mt.charCodeAt(te.length-1)==32,be||ge||Oe||$t||Xe||ct){var Qi=be||"";ge&&(Qi+=ge),Oe&&(Qi+=Oe);var Ai=Ie("span",[mn],Qi,Xe);if(ct)for(var ia in ct)ct.hasOwnProperty(ia)&&ia!="style"&&ia!="class"&&Ai.setAttribute(ia,ct[ia]);return E.content.appendChild(Ai)}E.content.appendChild(mn)}}function un(E,te){if(E.length>1&&!/ /.test(E))return E;for(var be=te,ge="",Oe=0;Oe<E.length;Oe++){var Xe=E.charAt(Oe);Xe==" "&&be&&(Oe==E.length-1||E.charCodeAt(Oe+1)==32)&&(Xe="\xA0"),ge+=Xe,be=Xe==" "}return ge}function Qt(E,te){return function(be,ge,Oe,Xe,ct,Mt,Tt){Oe=Oe?Oe+" cm-force-border":"cm-force-border";for(var $t=be.pos,mn=$t+ge.length;;){for(var kn=void 0,ur=0;ur<te.length&&(kn=te[ur],!(kn.to>$t&&kn.from<=$t));ur++);if(kn.to>=mn)return E(be,ge,Oe,Xe,ct,Mt,Tt);E(be,ge.slice(0,kn.to-$t),Oe,Xe,null,Mt,Tt),Xe=null,ge=ge.slice(kn.to-$t),$t=kn.to}}}function _n(E,te,be,ge){var Oe=!ge&&be.widgetNode;Oe&&E.map.push(E.pos,E.pos+te,Oe),!ge&&E.cm.display.input.needsContentAttribute&&(Oe||(Oe=E.content.appendChild(document.createElement("span"))),Oe.setAttribute("cm-marker",be.id)),Oe&&(E.cm.display.input.setUneditable(Oe),E.content.appendChild(Oe)),E.pos+=te,E.trailingSpace=!1}function Wn(E,te,be){var ge=E.markedSpans,Oe=E.text,Xe=0;if(!ge){for(var ct=1;ct<be.length;ct+=2)te.addToken(te,Oe.slice(Xe,Xe=be[ct]),yr(be[ct+1],te.cm.options));return}for(var Mt=Oe.length,Tt=0,$t=1,mn="",kn,ur,nr=0,Fr,Jr,yi,$i,Qi;;){if(nr==Tt){Fr=Jr=yi=ur="",Qi=null,$i=null,nr=1/0;for(var Ai=[],ia=void 0,Pa=0;Pa<ge.length;++Pa){var Ba=ge[Pa],Eo=Ba.marker;if(Eo.type=="bookmark"&&Ba.from==Tt&&Eo.widgetNode)Ai.push(Eo);else if(Ba.from<=Tt&&(Ba.to==null||Ba.to>Tt||Eo.collapsed&&Ba.to==Tt&&Ba.from==Tt)){if(Ba.to!=null&&Ba.to!=Tt&&nr>Ba.to&&(nr=Ba.to,Jr=""),Eo.className&&(Fr+=" "+Eo.className),Eo.css&&(ur=(ur?ur+";":"")+Eo.css),Eo.startStyle&&Ba.from==Tt&&(yi+=" "+Eo.startStyle),Eo.endStyle&&Ba.to==nr&&(ia||(ia=[])).push(Eo.endStyle,Ba.to),Eo.title&&((Qi||(Qi={})).title=Eo.title),Eo.attributes)for(var gs in Eo.attributes)(Qi||(Qi={}))[gs]=Eo.attributes[gs];Eo.collapsed&&(!$i||On($i.marker,Eo)<0)&&($i=Ba)}else Ba.from>Tt&&nr>Ba.from&&(nr=Ba.from)}if(ia)for(var wl=0;wl<ia.length;wl+=2)ia[wl+1]==nr&&(Jr+=" "+ia[wl]);if(!$i||$i.from==Tt)for(var Bs=0;Bs<Ai.length;++Bs)_n(te,0,Ai[Bs]);if($i&&($i.from||0)==Tt){if(_n(te,($i.to==null?Mt+1:$i.to)-Tt,$i.marker,$i.from==null),$i.to==null)return;$i.to==Tt&&($i=!1)}}if(Tt>=Mt)break;for(var Wl=Math.min(Mt,nr);;){if(mn){var Zl=Tt+mn.length;if(!$i){var cl=Zl>Wl?mn.slice(0,Wl-Tt):mn;te.addToken(te,cl,kn?kn+Fr:Fr,yi,Tt+cl.length==nr?Jr:"",ur,Qi)}if(Zl>=Wl){mn=mn.slice(Wl-Tt),Tt=Wl;break}Tt=Zl,yi=""}mn=Oe.slice(Xe,Xe=be[$t++]),kn=yr(be[$t++],te.cm.options)}}}function Gn(E,te,be){this.line=te,this.rest=on(te),this.size=this.rest?Er(Lt(this.rest))-be+1:1,this.node=this.text=null,this.hidden=qn(E,te)}function gr(E,te,be){for(var ge=[],Oe,Xe=te;Xe<be;Xe=Oe){var ct=new Gn(E.doc,Un(E.doc,Xe),Xe);Oe=Xe+ct.size,ge.push(ct)}return ge}var cr=null;function Jn(E){cr?cr.ops.push(E):E.ownsGroup=cr={ops:[E],delayedCallbacks:[]}}function wr(E){var te=E.delayedCallbacks,be=0;do{for(;be<te.length;be++)te[be].call(null);for(var ge=0;ge<E.ops.length;ge++){var Oe=E.ops[ge];if(Oe.cursorActivityHandlers)for(;Oe.cursorActivityCalled<Oe.cursorActivityHandlers.length;)Oe.cursorActivityHandlers[Oe.cursorActivityCalled++].call(null,Oe.cm)}}while(be<te.length)}function _r(E,te){var be=E.ownsGroup;if(be)try{wr(be)}finally{cr=null,te(be)}}var Vr=null;function Tr(E,te){var be=_t(E,te);if(be.length){var ge=Array.prototype.slice.call(arguments,2),Oe;cr?Oe=cr.delayedCallbacks:Vr?Oe=Vr:(Oe=Vr=[],setTimeout(qr,0));for(var Xe=function(Mt){Oe.push(function(){return be[Mt].apply(null,ge)})},ct=0;ct<be.length;++ct)Xe(ct)}}function qr(){var E=Vr;Vr=null;for(var te=0;te<E.length;++te)E[te]()}function vi(E,te,be,ge){for(var Oe=0;Oe<te.changes.length;Oe++){var Xe=te.changes[Oe];Xe=="text"?ui(E,te):Xe=="gutter"?zi(E,te,be,ge):Xe=="class"?bi(E,te):Xe=="widget"&&ti(E,te,ge)}te.changes=null}function si(E){return E.node==E.text&&(E.node=Ie("div",null,null,"position: relative"),E.text.parentNode&&E.text.parentNode.replaceChild(E.node,E.text),E.node.appendChild(E.text),pe&&ne<8&&(E.node.style.zIndex=2)),E.node}function gi(E,te){var be=te.bgClass?te.bgClass+" "+(te.line.bgClass||""):te.line.bgClass;if(be&&(be+=" CodeMirror-linebackground"),te.background)be?te.background.className=be:(te.background.parentNode.removeChild(te.background),te.background=null);else if(be){var ge=si(te);te.background=ge.insertBefore(Ie("div",null,be),ge.firstChild),E.display.input.setUneditable(te.background)}}function Qr(E,te){var be=E.display.externalMeasured;return be&&be.line==te.line?(E.display.externalMeasured=null,te.measure=be.measure,be.built):Mr(E,te)}function ui(E,te){var be=te.text.className,ge=Qr(E,te);te.text==te.node&&(te.node=ge.pre),te.text.parentNode.replaceChild(ge.pre,te.text),te.text=ge.pre,ge.bgClass!=te.bgClass||ge.textClass!=te.textClass?(te.bgClass=ge.bgClass,te.textClass=ge.textClass,bi(E,te)):be&&(te.text.className=be)}function bi(E,te){gi(E,te),te.line.wrapClass?si(te).className=te.line.wrapClass:te.node!=te.text&&(te.node.className="");var be=te.textClass?te.textClass+" "+(te.line.textClass||""):te.line.textClass;te.text.className=be||""}function zi(E,te,be,ge){if(te.gutter&&(te.node.removeChild(te.gutter),te.gutter=null),te.gutterBackground&&(te.node.removeChild(te.gutterBackground),te.gutterBackground=null),te.line.gutterClass){var Oe=si(te);te.gutterBackground=Ie("div",null,"CodeMirror-gutter-background "+te.line.gutterClass,"left: "+(E.options.fixedGutter?ge.fixedPos:-ge.gutterTotalWidth)+"px; width: "+ge.gutterTotalWidth+"px"),E.display.input.setUneditable(te.gutterBackground),Oe.insertBefore(te.gutterBackground,te.text)}var Xe=te.line.gutterMarkers;if(E.options.lineNumbers||Xe){var ct=si(te),Mt=te.gutter=Ie("div",null,"CodeMirror-gutter-wrapper","left: "+(E.options.fixedGutter?ge.fixedPos:-ge.gutterTotalWidth)+"px");if(E.display.input.setUneditable(Mt),ct.insertBefore(Mt,te.text),te.line.gutterClass&&(Mt.className+=" "+te.line.gutterClass),E.options.lineNumbers&&(!Xe||!Xe["CodeMirror-linenumbers"])&&(te.lineNumber=Mt.appendChild(Ie("div",nn(E.options,be),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ge.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+E.display.lineNumInnerWidth+"px"))),Xe)for(var Tt=0;Tt<E.display.gutterSpecs.length;++Tt){var $t=E.display.gutterSpecs[Tt].className,mn=Xe.hasOwnProperty($t)&&Xe[$t];mn&&Mt.appendChild(Ie("div",[mn],"CodeMirror-gutter-elt","left: "+ge.gutterLeft[$t]+"px; width: "+ge.gutterWidth[$t]+"px"))}}}function ti(E,te,be){te.alignable&&(te.alignable=null);for(var ge=we("CodeMirror-linewidget"),Oe=te.node.firstChild,Xe=void 0;Oe;Oe=Xe)Xe=Oe.nextSibling,ge.test(Oe.className)&&te.node.removeChild(Oe);na(E,te,be)}function Ji(E,te,be,ge){var Oe=Qr(E,te);return te.text=te.node=Oe.pre,Oe.bgClass&&(te.bgClass=Oe.bgClass),Oe.textClass&&(te.textClass=Oe.textClass),bi(E,te),zi(E,te,be,ge),na(E,te,ge),te.node}function na(E,te,be){if(za(E,te.line,te,be,!0),te.rest)for(var ge=0;ge<te.rest.length;ge++)za(E,te.rest[ge],te,be,!1)}function za(E,te,be,ge,Oe){if(te.widgets)for(var Xe=si(be),ct=0,Mt=te.widgets;ct<Mt.length;++ct){var Tt=Mt[ct],$t=Ie("div",[Tt.node],"CodeMirror-linewidget"+(Tt.className?" "+Tt.className:""));Tt.handleMouseEvents||$t.setAttribute("cm-ignore-events","true"),Ta(Tt,$t,be,ge),E.display.input.setUneditable($t),Oe&&Tt.above?Xe.insertBefore($t,be.gutter||be.text):Xe.appendChild($t),Tr(Tt,"redraw")}}function Ta(E,te,be,ge){if(E.noHScroll){(be.alignable||(be.alignable=[])).push(te);var Oe=ge.wrapperWidth;te.style.left=ge.fixedPos+"px",E.coverGutter||(Oe-=ge.gutterTotalWidth,te.style.paddingLeft=ge.gutterTotalWidth+"px"),te.style.width=Oe+"px"}E.coverGutter&&(te.style.zIndex=5,te.style.position="relative",E.noHScroll||(te.style.marginLeft=-ge.gutterTotalWidth+"px"))}function pa(E){if(E.height!=null)return E.height;var te=E.doc.cm;if(!te)return 0;if(!We(document.body,E.node)){var be="position: relative;";E.coverGutter&&(be+="margin-left: -"+te.display.gutters.offsetWidth+"px;"),E.noHScroll&&(be+="width: "+te.display.wrapper.clientWidth+"px;"),De(te.display.measure,Ie("div",[E.node],null,be))}return E.height=E.node.parentNode.offsetHeight}function Vi(E,te){for(var be=Dr(te);be!=E.wrapper;be=be.parentNode)if(!be||be.nodeType==1&&be.getAttribute("cm-ignore-events")=="true"||be.parentNode==E.sizer&&be!=E.mover)return!0}function Xi(E){return E.lineSpace.offsetTop}function Ii(E){return E.mover.offsetHeight-E.lineSpace.offsetHeight}function ma(E){if(E.cachedPaddingH)return E.cachedPaddingH;var te=De(E.measure,Ie("pre","x","CodeMirror-line-like")),be=window.getComputedStyle?window.getComputedStyle(te):te.currentStyle,ge={left:parseInt(be.paddingLeft),right:parseInt(be.paddingRight)};return!isNaN(ge.left)&&!isNaN(ge.right)&&(E.cachedPaddingH=ge),ge}function Ri(E){return mt-E.display.nativeBarWidth}function wi(E){return E.display.scroller.clientWidth-Ri(E)-E.display.barWidth}function sa(E){return E.display.scroller.clientHeight-Ri(E)-E.display.barHeight}function Ma(E,te,be){var ge=E.options.lineWrapping,Oe=ge&&wi(E);if(!te.measure.heights||ge&&te.measure.width!=Oe){var Xe=te.measure.heights=[];if(ge){te.measure.width=Oe;for(var ct=te.text.firstChild.getClientRects(),Mt=0;Mt<ct.length-1;Mt++){var Tt=ct[Mt],$t=ct[Mt+1];Math.abs(Tt.bottom-$t.bottom)>2&&Xe.push((Tt.bottom+$t.top)/2-be.top)}}Xe.push(be.bottom-be.top)}}function go(E,te,be){if(E.line==te)return{map:E.measure.map,cache:E.measure.cache};for(var ge=0;ge<E.rest.length;ge++)if(E.rest[ge]==te)return{map:E.measure.maps[ge],cache:E.measure.caches[ge]};for(var Oe=0;Oe<E.rest.length;Oe++)if(Er(E.rest[Oe])>be)return{map:E.measure.maps[Oe],cache:E.measure.caches[Oe],before:!0}}function ho(E,te){te=Bt(te);var be=Er(te),ge=E.display.externalMeasured=new Gn(E.doc,te,be);ge.lineN=be;var Oe=ge.built=Mr(E,ge);return ge.text=Oe.pre,De(E.display.lineMeasure,Oe.pre),ge}function Ja(E,te,be,ge){return ua(E,La(E,te),be,ge)}function Za(E,te){if(te>=E.display.viewFrom&&te<E.display.viewTo)return E.display.view[Ga(E,te)];var be=E.display.externalMeasured;if(be&&te>=be.lineN&&te<be.lineN+be.size)return be}function La(E,te){var be=Er(te),ge=Za(E,be);ge&&!ge.text?ge=null:ge&&ge.changes&&(vi(E,ge,be,xs(E)),E.curOp.forceUpdate=!0),ge||(ge=ho(E,te));var Oe=go(ge,te,be);return{line:te,view:ge,rect:null,map:Oe.map,cache:Oe.cache,before:Oe.before,hasHeights:!1}}function ua(E,te,be,ge,Oe){te.before&&(be=-1);var Xe=be+(ge||""),ct;return te.cache.hasOwnProperty(Xe)?ct=te.cache[Xe]:(te.rect||(te.rect=te.view.text.getBoundingClientRect()),te.hasHeights||(Ma(E,te.view,te.rect),te.hasHeights=!0),ct=Ia(E,te,be,ge),ct.bogus||(te.cache[Xe]=ct)),{left:ct.left,right:ct.right,top:Oe?ct.rtop:ct.top,bottom:Oe?ct.rbottom:ct.bottom}}var Oo={left:0,right:0,top:0,bottom:0};function ba(E,te,be){for(var ge,Oe,Xe,ct,Mt,Tt,$t=0;$t<E.length;$t+=3)if(Mt=E[$t],Tt=E[$t+1],te<Mt?(Oe=0,Xe=1,ct="left"):te<Tt?(Oe=te-Mt,Xe=Oe+1):($t==E.length-3||te==Tt&&E[$t+3]>te)&&(Xe=Tt-Mt,Oe=Xe-1,te>=Tt&&(ct="right")),Oe!=null){if(ge=E[$t+2],Mt==Tt&&be==(ge.insertLeft?"left":"right")&&(ct=be),be=="left"&&Oe==0)for(;$t&&E[$t-2]==E[$t-3]&&E[$t-1].insertLeft;)ge=E[($t-=3)+2],ct="left";if(be=="right"&&Oe==Tt-Mt)for(;$t<E.length-3&&E[$t+3]==E[$t+4]&&!E[$t+5].insertLeft;)ge=E[($t+=3)+2],ct="right";break}return{node:ge,start:Oe,end:Xe,collapse:ct,coverStart:Mt,coverEnd:Tt}}function Ki(E,te){var be=Oo;if(te=="left")for(var ge=0;ge<E.length&&(be=E[ge]).left==be.right;ge++);else for(var Oe=E.length-1;Oe>=0&&(be=E[Oe]).left==be.right;Oe--);return be}function Ia(E,te,be,ge){var Oe=ba(te.map,be,ge),Xe=Oe.node,ct=Oe.start,Mt=Oe.end,Tt=Oe.collapse,$t;if(Xe.nodeType==3){for(var mn=0;mn<4;mn++){for(;ct&&Fe(te.line.text.charAt(Oe.coverStart+ct));)--ct;for(;Oe.coverStart+Mt<Oe.coverEnd&&Fe(te.line.text.charAt(Oe.coverStart+Mt));)++Mt;if(pe&&ne<9&&ct==0&&Mt==Oe.coverEnd-Oe.coverStart?$t=Xe.parentNode.getBoundingClientRect():$t=Ki(Le(Xe,ct,Mt).getClientRects(),ge),$t.left||$t.right||ct==0)break;Mt=ct,ct=ct-1,Tt="right"}pe&&ne<11&&($t=to(E.display.measure,$t))}else{ct>0&&(Tt=ge="right");var kn;E.options.lineWrapping&&(kn=Xe.getClientRects()).length>1?$t=kn[ge=="right"?kn.length-1:0]:$t=Xe.getBoundingClientRect()}if(pe&&ne<9&&!ct&&(!$t||!$t.left&&!$t.right)){var ur=Xe.parentNode.getClientRects()[0];ur?$t={left:ur.left,right:ur.left+us(E.display),top:ur.top,bottom:ur.bottom}:$t=Oo}for(var nr=$t.top-te.rect.top,Fr=$t.bottom-te.rect.top,Jr=(nr+Fr)/2,yi=te.view.measure.heights,$i=0;$i<yi.length-1&&!(Jr<yi[$i]);$i++);var Qi=$i?yi[$i-1]:0,Ai=yi[$i],ia={left:(Tt=="right"?$t.right:$t.left)-te.rect.left,right:(Tt=="left"?$t.left:$t.right)-te.rect.left,top:Qi,bottom:Ai};return!$t.left&&!$t.right&&(ia.bogus=!0),E.options.singleCursorHeightPerLine||(ia.rtop=nr,ia.rbottom=Fr),ia}function to(E,te){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Rr(E))return te;var be=screen.logicalXDPI/screen.deviceXDPI,ge=screen.logicalYDPI/screen.deviceYDPI;return{left:te.left*be,right:te.right*be,top:te.top*ge,bottom:te.bottom*ge}}function Ra(E){if(E.measure&&(E.measure.cache={},E.measure.heights=null,E.rest))for(var te=0;te<E.rest.length;te++)E.measure.caches[te]={}}function Fa(E){E.display.externalMeasure=null,Ae(E.display.lineMeasure);for(var te=0;te<E.display.view.length;te++)Ra(E.display.view[te])}function ra(E){Fa(E),E.display.cachedCharWidth=E.display.cachedTextHeight=E.display.cachedPaddingH=null,E.options.lineWrapping||(E.display.maxLineChanged=!0),E.display.lineNumChars=null}function no(){return re&&fe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function yo(){return re&&fe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function so(E){var te=0;if(E.widgets)for(var be=0;be<E.widgets.length;++be)E.widgets[be].above&&(te+=pa(E.widgets[be]));return te}function bo(E,te,be,ge,Oe){if(!Oe){var Xe=so(te);be.top+=Xe,be.bottom+=Xe}if(ge=="line")return be;ge||(ge="local");var ct=Pn(te);if(ge=="local"?ct+=Xi(E.display):ct-=E.display.viewOffset,ge=="page"||ge=="window"){var Mt=E.display.lineSpace.getBoundingClientRect();ct+=Mt.top+(ge=="window"?0:yo());var Tt=Mt.left+(ge=="window"?0:no());be.left+=Tt,be.right+=Tt}return be.top+=ct,be.bottom+=ct,be}function Mo(E,te,be){if(be=="div")return te;var ge=te.left,Oe=te.top;if(be=="page")ge-=no(),Oe-=yo();else if(be=="local"||!be){var Xe=E.display.sizer.getBoundingClientRect();ge+=Xe.left,Oe+=Xe.top}var ct=E.display.lineSpace.getBoundingClientRect();return{left:ge-ct.left,top:Oe-ct.top}}function Xo(E,te,be,ge,Oe){return ge||(ge=Un(E.doc,te.line)),bo(E,ge,Ja(E,ge,te.ch,Oe),be)}function lo(E,te,be,ge,Oe,Xe){ge=ge||Un(E.doc,te.line),Oe||(Oe=La(E,ge));function ct(Fr,Jr){var yi=ua(E,Oe,Fr,Jr?"right":"left",Xe);return Jr?yi.left=yi.right:yi.right=yi.left,bo(E,ge,yi,be)}var Mt=Wt(ge,E.doc.direction),Tt=te.ch,$t=te.sticky;if(Tt>=ge.text.length?(Tt=ge.text.length,$t="before"):Tt<=0&&(Tt=0,$t="after"),!Mt)return ct($t=="before"?Tt-1:Tt,$t=="before");function mn(Fr,Jr,yi){var $i=Mt[Jr],Qi=$i.level==1;return ct(yi?Fr-1:Fr,Qi!=yi)}var kn=kt(Mt,Tt,$t),ur=Kt,nr=mn(Tt,kn,$t=="before");return ur!=null&&(nr.other=mn(Tt,ur,$t!="before")),nr}function So(E,te){var be=0;te=Sr(E.doc,te),E.options.lineWrapping||(be=us(E.display)*te.ch);var ge=Un(E.doc,te.line),Oe=Pn(ge)+Xi(E.display);return{left:be,right:be,top:Oe,bottom:Oe+ge.height}}function os(E,te,be,ge,Oe){var Xe=Jt(E,te,be);return Xe.xRel=Oe,ge&&(Xe.outside=ge),Xe}function rs(E,te,be){var ge=E.doc;if(be+=E.display.viewOffset,be<0)return os(ge.first,0,null,-1,-1);var Oe=Br(ge,be),Xe=ge.first+ge.size-1;if(Oe>Xe)return os(ge.first+ge.size-1,Un(ge,Xe).text.length,null,1,1);te<0&&(te=0);for(var ct=Un(ge,Oe);;){var Mt=ya(E,ct,Oe,te,be),Tt=It(ct,Mt.ch+(Mt.xRel>0||Mt.outside>0?1:0));if(!Tt)return Mt;var $t=Tt.find(1);if($t.line==Oe)return $t;ct=Un(ge,Oe=$t.line)}}function cs(E,te,be,ge){ge-=so(te);var Oe=te.text.length,Xe=it(function(ct){return ua(E,be,ct-1).bottom<=ge},Oe,0);return Oe=it(function(ct){return ua(E,be,ct).top>ge},Xe,Oe),{begin:Xe,end:Oe}}function Lo(E,te,be,ge){be||(be=La(E,te));var Oe=bo(E,te,ua(E,be,ge),"line").top;return cs(E,te,be,Oe)}function xo(E,te,be,ge){return E.bottom<=be?!1:E.top>be?!0:(ge?E.left:E.right)>te}function ya(E,te,be,ge,Oe){Oe-=Pn(te);var Xe=La(E,te),ct=so(te),Mt=0,Tt=te.text.length,$t=!0,mn=Wt(te,E.doc.direction);if(mn){var kn=(E.options.lineWrapping?ro:Da)(E,te,be,Xe,mn,ge,Oe);$t=kn.level!=1,Mt=$t?kn.from:kn.to-1,Tt=$t?kn.to:kn.from-1}var ur=null,nr=null,Fr=it(function(Pa){var Ba=ua(E,Xe,Pa);return Ba.top+=ct,Ba.bottom+=ct,xo(Ba,ge,Oe,!1)?(Ba.top<=Oe&&Ba.left<=ge&&(ur=Pa,nr=Ba),!0):!1},Mt,Tt),Jr,yi,$i=!1;if(nr){var Qi=ge-nr.left<nr.right-ge,Ai=Qi==$t;Fr=ur+(Ai?0:1),yi=Ai?"after":"before",Jr=Qi?nr.left:nr.right}else{!$t&&(Fr==Tt||Fr==Mt)&&Fr++,yi=Fr==0?"after":Fr==te.text.length?"before":ua(E,Xe,Fr-($t?1:0)).bottom+ct<=Oe==$t?"after":"before";var ia=lo(E,Jt(be,Fr,yi),"line",te,Xe);Jr=ia.left,$i=Oe<ia.top?-1:Oe>=ia.bottom?1:0}return Fr=Ge(te.text,Fr,1),os(be,Fr,yi,$i,ge-Jr)}function Da(E,te,be,ge,Oe,Xe,ct){var Mt=it(function(kn){var ur=Oe[kn],nr=ur.level!=1;return xo(lo(E,Jt(be,nr?ur.to:ur.from,nr?"before":"after"),"line",te,ge),Xe,ct,!0)},0,Oe.length-1),Tt=Oe[Mt];if(Mt>0){var $t=Tt.level!=1,mn=lo(E,Jt(be,$t?Tt.from:Tt.to,$t?"after":"before"),"line",te,ge);xo(mn,Xe,ct,!0)&&mn.top>ct&&(Tt=Oe[Mt-1])}return Tt}function ro(E,te,be,ge,Oe,Xe,ct){var Mt=cs(E,te,ge,ct),Tt=Mt.begin,$t=Mt.end;/\s/.test(te.text.charAt($t-1))&&$t--;for(var mn=null,kn=null,ur=0;ur<Oe.length;ur++){var nr=Oe[ur];if(!(nr.from>=$t||nr.to<=Tt)){var Fr=nr.level!=1,Jr=ua(E,ge,Fr?Math.min($t,nr.to)-1:Math.max(Tt,nr.from)).right,yi=Jr<Xe?Xe-Jr+1e9:Jr-Xe;(!mn||kn>yi)&&(mn=nr,kn=yi)}}return mn||(mn=Oe[Oe.length-1]),mn.from<Tt&&(mn={from:Tt,to:mn.to,level:mn.level}),mn.to>$t&&(mn={from:mn.from,to:$t,level:mn.level}),mn}var po;function Wo(E){if(E.cachedTextHeight!=null)return E.cachedTextHeight;if(po==null){po=Ie("pre",null,"CodeMirror-line-like");for(var te=0;te<49;++te)po.appendChild(document.createTextNode("x")),po.appendChild(Ie("br"));po.appendChild(document.createTextNode("x"))}De(E.measure,po);var be=po.offsetHeight/50;return be>3&&(E.cachedTextHeight=be),Ae(E.measure),be||1}function us(E){if(E.cachedCharWidth!=null)return E.cachedCharWidth;var te=Ie("span","xxxxxxxxxx"),be=Ie("pre",[te],"CodeMirror-line-like");De(E.measure,be);var ge=te.getBoundingClientRect(),Oe=(ge.right-ge.left)/10;return Oe>2&&(E.cachedCharWidth=Oe),Oe||10}function xs(E){for(var te=E.display,be={},ge={},Oe=te.gutters.clientLeft,Xe=te.gutters.firstChild,ct=0;Xe;Xe=Xe.nextSibling,++ct){var Mt=E.display.gutterSpecs[ct].className;be[Mt]=Xe.offsetLeft+Xe.clientLeft+Oe,ge[Mt]=Xe.clientWidth}return{fixedPos:Js(te),gutterTotalWidth:te.gutters.offsetWidth,gutterLeft:be,gutterWidth:ge,wrapperWidth:te.wrapper.clientWidth}}function Js(E){return E.scroller.getBoundingClientRect().left-E.sizer.getBoundingClientRect().left}function Fs(E){var te=Wo(E.display),be=E.options.lineWrapping,ge=be&&Math.max(5,E.display.scroller.clientWidth/us(E.display)-3);return function(Oe){if(qn(E.doc,Oe))return 0;var Xe=0;if(Oe.widgets)for(var ct=0;ct<Oe.widgets.length;ct++)Oe.widgets[ct].height&&(Xe+=Oe.widgets[ct].height);return be?Xe+(Math.ceil(Oe.text.length/ge)||1)*te:Xe+te}}function ds(E){var te=E.doc,be=Fs(E);te.iter(function(ge){var Oe=be(ge);Oe!=ge.height&&Ir(ge,Oe)})}function $s(E,te,be,ge){var Oe=E.display;if(!be&&Dr(te).getAttribute("cm-not-content")=="true")return null;var Xe,ct,Mt=Oe.lineSpace.getBoundingClientRect();try{Xe=te.clientX-Mt.left,ct=te.clientY-Mt.top}catch(kn){return null}var Tt=rs(E,Xe,ct),$t;if(ge&&Tt.xRel>0&&($t=Un(E.doc,Tt.line).text).length==Tt.ch){var mn=Ve($t,$t.length,E.options.tabSize)-$t.length;Tt=Jt(Tt.line,Math.max(0,Math.round((Xe-ma(E.display).left)/us(E.display))-mn))}return Tt}function Ga(E,te){if(te>=E.display.viewTo||(te-=E.display.viewFrom,te<0))return null;for(var be=E.display.view,ge=0;ge<be.length;ge++)if(te-=be[ge].size,te<0)return ge}function Aa(E,te,be,ge){te==null&&(te=E.doc.first),be==null&&(be=E.doc.first+E.doc.size),ge||(ge=0);var Oe=E.display;if(ge&&be<Oe.viewTo&&(Oe.updateLineNumbers==null||Oe.updateLineNumbers>te)&&(Oe.updateLineNumbers=te),E.curOp.viewChanged=!0,te>=Oe.viewTo)Pi&&gn(E.doc,te)<Oe.viewTo&&ko(E);else if(be<=Oe.viewFrom)Pi&&Ln(E.doc,be+ge)>Oe.viewFrom?ko(E):(Oe.viewFrom+=ge,Oe.viewTo+=ge);else if(te<=Oe.viewFrom&&be>=Oe.viewTo)ko(E);else if(te<=Oe.viewFrom){var Xe=fs(E,be,be+ge,1);Xe?(Oe.view=Oe.view.slice(Xe.index),Oe.viewFrom=Xe.lineN,Oe.viewTo+=ge):ko(E)}else if(be>=Oe.viewTo){var ct=fs(E,te,te,-1);ct?(Oe.view=Oe.view.slice(0,ct.index),Oe.viewTo=ct.lineN):ko(E)}else{var Mt=fs(E,te,te,-1),Tt=fs(E,be,be+ge,1);Mt&&Tt?(Oe.view=Oe.view.slice(0,Mt.index).concat(gr(E,Mt.lineN,Tt.lineN)).concat(Oe.view.slice(Tt.index)),Oe.viewTo+=ge):ko(E)}var $t=Oe.externalMeasured;$t&&(be<$t.lineN?$t.lineN+=ge:te<$t.lineN+$t.size&&(Oe.externalMeasured=null))}function fo(E,te,be){E.curOp.viewChanged=!0;var ge=E.display,Oe=E.display.externalMeasured;if(Oe&&te>=Oe.lineN&&te<Oe.lineN+Oe.size&&(ge.externalMeasured=null),!(te<ge.viewFrom||te>=ge.viewTo)){var Xe=ge.view[Ga(E,te)];if(Xe.node!=null){var ct=Xe.changes||(Xe.changes=[]);pt(ct,be)==-1&&ct.push(be)}}}function ko(E){E.display.viewFrom=E.display.viewTo=E.doc.first,E.display.view=[],E.display.viewOffset=0}function fs(E,te,be,ge){var Oe=Ga(E,te),Xe,ct=E.display.view;if(!Pi||be==E.doc.first+E.doc.size)return{index:Oe,lineN:be};for(var Mt=E.display.viewFrom,Tt=0;Tt<Oe;Tt++)Mt+=ct[Tt].size;if(Mt!=te){if(ge>0){if(Oe==ct.length-1)return null;Xe=Mt+ct[Oe].size-te,Oe++}else Xe=Mt-te;te+=Xe,be+=Xe}for(;gn(E.doc,be)!=be;){if(Oe==(ge<0?0:ct.length-1))return null;be+=ge*ct[Oe-(ge<0?1:0)].size,Oe+=ge}return{index:Oe,lineN:be}}function ss(E,te,be){var ge=E.display,Oe=ge.view;Oe.length==0||te>=ge.viewTo||be<=ge.viewFrom?(ge.view=gr(E,te,be),ge.viewFrom=te):(ge.viewFrom>te?ge.view=gr(E,te,ge.viewFrom).concat(ge.view):ge.viewFrom<te&&(ge.view=ge.view.slice(Ga(E,te))),ge.viewFrom=te,ge.viewTo<be?ge.view=ge.view.concat(gr(E,ge.viewTo,be)):ge.viewTo>be&&(ge.view=ge.view.slice(0,Ga(E,be)))),ge.viewTo=be}function jl(E){for(var te=E.display.view,be=0,ge=0;ge<te.length;ge++){var Oe=te[ge];!Oe.hidden&&(!Oe.node||Oe.changes)&&++be}return be}function vl(E){E.display.input.showSelection(E.display.input.prepareSelection())}function Sl(E,te){te===void 0&&(te=!0);for(var be=E.doc,ge={},Oe=ge.cursors=document.createDocumentFragment(),Xe=ge.selection=document.createDocumentFragment(),ct=0;ct<be.sel.ranges.length;ct++)if(!(!te&&ct==be.sel.primIndex)){var Mt=be.sel.ranges[ct];if(!(Mt.from().line>=E.display.viewTo||Mt.to().line<E.display.viewFrom)){var Tt=Mt.empty();(Tt||E.options.showCursorWhenSelecting)&&Xa(E,Mt.head,Oe),Tt||fa(E,Mt,Xe)}}return ge}function Xa(E,te,be){var ge=lo(E,te,"div",null,null,!E.options.singleCursorHeightPerLine),Oe=be.appendChild(Ie("div","\xA0","CodeMirror-cursor"));if(Oe.style.left=ge.left+"px",Oe.style.top=ge.top+"px",Oe.style.height=Math.max(0,ge.bottom-ge.top)*E.options.cursorHeight+"px",ge.other){var Xe=be.appendChild(Ie("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Xe.style.display="",Xe.style.left=ge.other.left+"px",Xe.style.top=ge.other.top+"px",Xe.style.height=(ge.other.bottom-ge.other.top)*.85+"px"}}function fi(E,te){return E.top-te.top||E.left-te.left}function fa(E,te,be){var ge=E.display,Oe=E.doc,Xe=document.createDocumentFragment(),ct=ma(E.display),Mt=ct.left,Tt=Math.max(ge.sizerWidth,wi(E)-ge.sizer.offsetLeft)-ct.right,$t=Oe.direction=="ltr";function mn(Ai,ia,Pa,Ba){ia<0&&(ia=0),ia=Math.round(ia),Ba=Math.round(Ba),Xe.appendChild(Ie("div",null,"CodeMirror-selected","position: absolute; left: "+Ai+`px;
|
|
|
top: `+ia+"px; width: "+(Pa==null?Tt-Ai:Pa)+`px;
|
|
|
height: `+(Ba-ia)+"px"))}function kn(Ai,ia,Pa){var Ba=Un(Oe,Ai),Eo=Ba.text.length,gs,wl;function Bs(cl,Vl){return Xo(E,Jt(Ai,cl),"div",Ba,Vl)}function Wl(cl,Vl,eo){var Gs=Lo(E,Ba,null,cl),js=Vl=="ltr"==(eo=="after")?"left":"right",Xs=eo=="after"?Gs.begin:Gs.end-(/\s/.test(Ba.text.charAt(Gs.end-1))?2:1);return Bs(Xs,js)[js]}var Zl=Wt(Ba,Oe.direction);return gt(Zl,ia||0,Pa==null?Eo:Pa,function(cl,Vl,eo,Gs){var js=eo=="ltr",Xs=Bs(cl,js?"left":"right"),tl=Bs(Vl-1,js?"right":"left"),wu=ia==null&&cl==0,Ql=Pa==null&&Vl==Eo,Al=Gs==0,Jo=!Zl||Gs==Zl.length-1;if(tl.top-Xs.top<=3){var pl=($t?wu:Ql)&&Al,Nd=($t?Ql:wu)&&Jo,zc=pl?Mt:(js?Xs:tl).left,Yc=Nd?Tt:(js?tl:Xs).right;mn(zc,Xs.top,Yc-zc,Xs.bottom)}else{var Tc,ul,Su,Ol;js?(Tc=$t&&wu&&Al?Mt:Xs.left,ul=$t?Tt:Wl(cl,eo,"before"),Su=$t?Mt:Wl(Vl,eo,"after"),Ol=$t&&Ql&&Jo?Tt:tl.right):(Tc=$t?Wl(cl,eo,"before"):Mt,ul=!$t&&wu&&Al?Tt:Xs.right,Su=!$t&&Ql&&Jo?Mt:tl.left,Ol=$t?Wl(Vl,eo,"after"):Tt),mn(Tc,Xs.top,ul-Tc,Xs.bottom),Xs.bottom<tl.top&&mn(Mt,Xs.bottom,null,tl.top),mn(Su,tl.top,Ol-Su,tl.bottom)}(!gs||fi(Xs,gs)<0)&&(gs=Xs),fi(tl,gs)<0&&(gs=tl),(!wl||fi(Xs,wl)<0)&&(wl=Xs),fi(tl,wl)<0&&(wl=tl)}),{start:gs,end:wl}}var ur=te.from(),nr=te.to();if(ur.line==nr.line)kn(ur.line,ur.ch,nr.ch);else{var Fr=Un(Oe,ur.line),Jr=Un(Oe,nr.line),yi=Bt(Fr)==Bt(Jr),$i=kn(ur.line,ur.ch,yi?Fr.text.length+1:null).end,Qi=kn(nr.line,yi?0:null,nr.ch).start;yi&&($i.top<Qi.top-2?(mn($i.right,$i.top,null,$i.bottom),mn(Mt,Qi.top,Qi.left,Qi.bottom)):mn($i.right,$i.top,Qi.left-$i.right,$i.bottom)),$i.bottom<Qi.top&&mn(Mt,$i.bottom,null,Qi.top)}be.appendChild(Xe)}function ha(E){if(E.state.focused){var te=E.display;clearInterval(te.blinker);var be=!0;te.cursorDiv.style.visibility="",E.options.cursorBlinkRate>0?te.blinker=setInterval(function(){E.hasFocus()||il(E),te.cursorDiv.style.visibility=(be=!be)?"":"hidden"},E.options.cursorBlinkRate):E.options.cursorBlinkRate<0&&(te.cursorDiv.style.visibility="hidden")}}function ka(E){E.state.focused||(E.display.input.focus(),Yo(E))}function Zo(E){E.state.delayingBlurEvent=!0,setTimeout(function(){E.state.delayingBlurEvent&&(E.state.delayingBlurEvent=!1,il(E))},100)}function Yo(E,te){E.state.delayingBlurEvent&&(E.state.delayingBlurEvent=!1),E.options.readOnly!="nocursor"&&(E.state.focused||(Dt(E,"focus",E,te),E.state.focused=!0,He(E.display.wrapper,"CodeMirror-focused"),!E.curOp&&E.display.selForContextMenu!=E.doc.sel&&(E.display.input.reset(),z&&setTimeout(function(){return E.display.input.reset(!0)},20)),E.display.input.receivedFocus()),ha(E))}function il(E,te){E.state.delayingBlurEvent||(E.state.focused&&(Dt(E,"blur",E,te),E.state.focused=!1,Ne(E.display.wrapper,"CodeMirror-focused")),clearInterval(E.display.blinker),setTimeout(function(){E.state.focused||(E.display.shift=!1)},150))}function dl(E){for(var te=E.display,be=te.lineDiv.offsetTop,ge=0;ge<te.view.length;ge++){var Oe=te.view[ge],Xe=E.options.lineWrapping,ct=void 0,Mt=0;if(!Oe.hidden){if(pe&&ne<8){var Tt=Oe.node.offsetTop+Oe.node.offsetHeight;ct=Tt-be,be=Tt}else{var $t=Oe.node.getBoundingClientRect();ct=$t.bottom-$t.top,!Xe&&Oe.text.firstChild&&(Mt=Oe.text.firstChild.getBoundingClientRect().right-$t.left-1)}var mn=Oe.line.height-ct;if((mn>.005||mn<-.005)&&(Ir(Oe.line,ct),Cl(Oe.line),Oe.rest))for(var kn=0;kn<Oe.rest.length;kn++)Cl(Oe.rest[kn]);if(Mt>E.display.sizerWidth){var ur=Math.ceil(Mt/us(E.display));ur>E.display.maxLineLength&&(E.display.maxLineLength=ur,E.display.maxLine=Oe.line,E.display.maxLineChanged=!0)}}}}function Cl(E){if(E.widgets)for(var te=0;te<E.widgets.length;++te){var be=E.widgets[te],ge=be.node.parentNode;ge&&(be.height=ge.offsetHeight)}}function mo(E,te,be){var ge=be&&be.top!=null?Math.max(0,be.top):E.scroller.scrollTop;ge=Math.floor(ge-Xi(E));var Oe=be&&be.bottom!=null?be.bottom:ge+E.wrapper.clientHeight,Xe=Br(te,ge),ct=Br(te,Oe);if(be&&be.ensure){var Mt=be.ensure.from.line,Tt=be.ensure.to.line;Mt<Xe?(Xe=Mt,ct=Br(te,Pn(Un(te,Mt))+E.wrapper.clientHeight)):Math.min(Tt,te.lastLine())>=ct&&(Xe=Br(te,Pn(Un(te,Tt))-E.wrapper.clientHeight),ct=Tt)}return{from:Xe,to:Math.max(ct,Xe+1)}}function Qs(E,te){if(!xt(E,"scrollCursorIntoView")){var be=E.display,ge=be.sizer.getBoundingClientRect(),Oe=null;if(te.top+ge.top<0?Oe=!0:te.bottom+ge.top>(window.innerHeight||document.documentElement.clientHeight)&&(Oe=!1),Oe!=null&&!le){var Xe=Ie("div","\u200B",null,`position: absolute;
|
|
|
top: `+(te.top-be.viewOffset-Xi(E.display))+`px;
|
|
|
height: `+(te.bottom-te.top+Ri(E)+be.barHeight)+`px;
|
|
|
left: `+te.left+"px; width: "+Math.max(2,te.right-te.left)+"px;");E.display.lineSpace.appendChild(Xe),Xe.scrollIntoView(Oe),E.display.lineSpace.removeChild(Xe)}}}function Ll(E,te,be,ge){ge==null&&(ge=0);var Oe;!E.options.lineWrapping&&te==be&&(te=te.ch?Jt(te.line,te.sticky=="before"?te.ch-1:te.ch,"after"):te,be=te.sticky=="before"?Jt(te.line,te.ch+1,"before"):te);for(var Xe=0;Xe<5;Xe++){var ct=!1,Mt=lo(E,te),Tt=!be||be==te?Mt:lo(E,be);Oe={left:Math.min(Mt.left,Tt.left),top:Math.min(Mt.top,Tt.top)-ge,right:Math.max(Mt.left,Tt.left),bottom:Math.max(Mt.bottom,Tt.bottom)+ge};var $t=Gl(E,Oe),mn=E.doc.scrollTop,kn=E.doc.scrollLeft;if($t.scrollTop!=null&&(Co(E,$t.scrollTop),Math.abs(E.doc.scrollTop-mn)>1&&(ct=!0)),$t.scrollLeft!=null&&(ws(E,$t.scrollLeft),Math.abs(E.doc.scrollLeft-kn)>1&&(ct=!0)),!ct)break}return Oe}function Sc(E,te){var be=Gl(E,te);be.scrollTop!=null&&Co(E,be.scrollTop),be.scrollLeft!=null&&ws(E,be.scrollLeft)}function Gl(E,te){var be=E.display,ge=Wo(E.display);te.top<0&&(te.top=0);var Oe=E.curOp&&E.curOp.scrollTop!=null?E.curOp.scrollTop:be.scroller.scrollTop,Xe=sa(E),ct={};te.bottom-te.top>Xe&&(te.bottom=te.top+Xe);var Mt=E.doc.height+Ii(be),Tt=te.top<ge,$t=te.bottom>Mt-ge;if(te.top<Oe)ct.scrollTop=Tt?0:te.top;else if(te.bottom>Oe+Xe){var mn=Math.min(te.top,($t?Mt:te.bottom)-Xe);mn!=Oe&&(ct.scrollTop=mn)}var kn=E.options.fixedGutter?0:be.gutters.offsetWidth,ur=E.curOp&&E.curOp.scrollLeft!=null?E.curOp.scrollLeft:be.scroller.scrollLeft-kn,nr=wi(E)-be.gutters.offsetWidth,Fr=te.right-te.left>nr;return Fr&&(te.right=te.left+nr),te.left<10?ct.scrollLeft=0:te.left<ur?ct.scrollLeft=Math.max(0,te.left+kn-(Fr?0:10)):te.right>nr+ur-3&&(ct.scrollLeft=te.right+(Fr?0:10)-nr),ct}function El(E,te){te!=null&&(tc(E),E.curOp.scrollTop=(E.curOp.scrollTop==null?E.doc.scrollTop:E.curOp.scrollTop)+te)}function al(E){tc(E);var te=E.getCursor();E.curOp.scrollToPos={from:te,to:te,margin:E.options.cursorScrollMargin}}function ec(E,te,be){(te!=null||be!=null)&&tc(E),te!=null&&(E.curOp.scrollLeft=te),be!=null&&(E.curOp.scrollTop=be)}function fl(E,te){tc(E),E.curOp.scrollToPos=te}function tc(E){var te=E.curOp.scrollToPos;if(te){E.curOp.scrollToPos=null;var be=So(E,te.from),ge=So(E,te.to);is(E,be,ge,te.margin)}}function is(E,te,be,ge){var Oe=Gl(E,{left:Math.min(te.left,be.left),top:Math.min(te.top,be.top)-ge,right:Math.max(te.right,be.right),bottom:Math.max(te.bottom,be.bottom)+ge});ec(E,Oe.scrollLeft,Oe.scrollTop)}function Co(E,te){Math.abs(E.doc.scrollTop-te)<2||(Ue||Yu(E,{top:te}),qo(E,te,!0),Ue&&Yu(E),el(E,100))}function qo(E,te,be){te=Math.max(0,Math.min(E.display.scroller.scrollHeight-E.display.scroller.clientHeight,te)),!(E.display.scroller.scrollTop==te&&!be)&&(E.doc.scrollTop=te,E.display.scrollbars.setScrollTop(te),E.display.scroller.scrollTop!=te&&(E.display.scroller.scrollTop=te))}function ws(E,te,be,ge){te=Math.max(0,Math.min(te,E.display.scroller.scrollWidth-E.display.scroller.clientWidth)),!((be?te==E.doc.scrollLeft:Math.abs(E.doc.scrollLeft-te)<2)&&!ge)&&(E.doc.scrollLeft=te,Qu(E),E.display.scroller.scrollLeft!=te&&(E.display.scroller.scrollLeft=te),E.display.scrollbars.setScrollLeft(te))}function Ds(E){var te=E.display,be=te.gutters.offsetWidth,ge=Math.round(E.doc.height+Ii(E.display));return{clientHeight:te.scroller.clientHeight,viewHeight:te.wrapper.clientHeight,scrollWidth:te.scroller.scrollWidth,clientWidth:te.scroller.clientWidth,viewWidth:te.wrapper.clientWidth,barLeft:E.options.fixedGutter?be:0,docHeight:ge,scrollHeight:ge+Ri(E)+te.barHeight,nativeBarWidth:te.nativeBarWidth,gutterWidth:be}}var ol=function(E,te,be){this.cm=be;var ge=this.vert=Ie("div",[Ie("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Oe=this.horiz=Ie("div",[Ie("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ge.tabIndex=Oe.tabIndex=-1,E(ge),E(Oe),Vt(ge,"scroll",function(){ge.clientHeight&&te(ge.scrollTop,"vertical")}),Vt(Oe,"scroll",function(){Oe.clientWidth&&te(Oe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,pe&&ne<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ol.prototype.update=function(E){var te=E.scrollWidth>E.clientWidth+1,be=E.scrollHeight>E.clientHeight+1,ge=E.nativeBarWidth;if(be){this.vert.style.display="block",this.vert.style.bottom=te?ge+"px":"0";var Oe=E.viewHeight-(te?ge:0);this.vert.firstChild.style.height=Math.max(0,E.scrollHeight-E.clientHeight+Oe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(te){this.horiz.style.display="block",this.horiz.style.right=be?ge+"px":"0",this.horiz.style.left=E.barLeft+"px";var Xe=E.viewWidth-E.barLeft-(be?ge:0);this.horiz.firstChild.style.width=Math.max(0,E.scrollWidth-E.clientWidth+Xe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&E.clientHeight>0&&(ge==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:be?ge:0,bottom:te?ge:0}},ol.prototype.setScrollLeft=function(E){this.horiz.scrollLeft!=E&&(this.horiz.scrollLeft=E),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ol.prototype.setScrollTop=function(E){this.vert.scrollTop!=E&&(this.vert.scrollTop=E),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ol.prototype.zeroWidthHack=function(){var E=oe&&!ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=E,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Qe,this.disableVert=new Qe},ol.prototype.enableZeroWidthBar=function(E,te,be){E.style.pointerEvents="auto";function ge(){var Oe=E.getBoundingClientRect(),Xe=be=="vert"?document.elementFromPoint(Oe.right-1,(Oe.top+Oe.bottom)/2):document.elementFromPoint((Oe.right+Oe.left)/2,Oe.bottom-1);Xe!=E?E.style.pointerEvents="none":te.set(1e3,ge)}te.set(1e3,ge)},ol.prototype.clear=function(){var E=this.horiz.parentNode;E.removeChild(this.horiz),E.removeChild(this.vert)};var Ps=function(){};Ps.prototype.update=function(){return{bottom:0,right:0}},Ps.prototype.setScrollLeft=function(){},Ps.prototype.setScrollTop=function(){},Ps.prototype.clear=function(){};function zl(E,te){te||(te=Ds(E));var be=E.display.barWidth,ge=E.display.barHeight;Hc(E,te);for(var Oe=0;Oe<4&&be!=E.display.barWidth||ge!=E.display.barHeight;Oe++)be!=E.display.barWidth&&E.options.lineWrapping&&dl(E),Hc(E,Ds(E)),be=E.display.barWidth,ge=E.display.barHeight}function Hc(E,te){var be=E.display,ge=be.scrollbars.update(te);be.sizer.style.paddingRight=(be.barWidth=ge.right)+"px",be.sizer.style.paddingBottom=(be.barHeight=ge.bottom)+"px",be.heightForcer.style.borderBottom=ge.bottom+"px solid transparent",ge.right&&ge.bottom?(be.scrollbarFiller.style.display="block",be.scrollbarFiller.style.height=ge.bottom+"px",be.scrollbarFiller.style.width=ge.right+"px"):be.scrollbarFiller.style.display="",ge.bottom&&E.options.coverGutterNextToScrollbar&&E.options.fixedGutter?(be.gutterFiller.style.display="block",be.gutterFiller.style.height=ge.bottom+"px",be.gutterFiller.style.width=te.gutterWidth+"px"):be.gutterFiller.style.display=""}var hc={native:ol,null:Ps};function Pc(E){E.display.scrollbars&&(E.display.scrollbars.clear(),E.display.scrollbars.addClass&&Ne(E.display.wrapper,E.display.scrollbars.addClass)),E.display.scrollbars=new hc[E.options.scrollbarStyle](function(te){E.display.wrapper.insertBefore(te,E.display.scrollbarFiller),Vt(te,"mousedown",function(){E.state.focused&&setTimeout(function(){return E.display.input.focus()},0)}),te.setAttribute("cm-not-content","true")},function(te,be){be=="horizontal"?ws(E,te):Co(E,te)},E),E.display.scrollbars.addClass&&He(E.display.wrapper,E.display.scrollbars.addClass)}var Lc=0;function nc(E){E.curOp={cm:E,viewChanged:!1,startHeight:E.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Lc},Jn(E.curOp)}function rc(E){var te=E.curOp;te&&_r(te,function(be){for(var ge=0;ge<be.ops.length;ge++)be.ops[ge].cm.curOp=null;Rc(be)})}function Rc(E){for(var te=E.ops,be=0;be<te.length;be++)Nc(te[be]);for(var ge=0;ge<te.length;ge++)_o(te[ge]);for(var Oe=0;Oe<te.length;Oe++)co(te[Oe]);for(var Xe=0;Xe<te.length;Xe++)zs(te[Xe]);for(var ct=0;ct<te.length;ct++)gl(te[ct])}function Nc(E){var te=E.cm,be=te.display;Wc(te),E.updateMaxLine&&Sn(te),E.mustUpdate=E.viewChanged||E.forceUpdate||E.scrollTop!=null||E.scrollToPos&&(E.scrollToPos.from.line<be.viewFrom||E.scrollToPos.to.line>=be.viewTo)||be.maxLineChanged&&te.options.lineWrapping,E.update=E.mustUpdate&&new Fl(te,E.mustUpdate&&{top:E.scrollTop,ensure:E.scrollToPos},E.forceUpdate)}function _o(E){E.updatedDisplay=E.mustUpdate&&Gu(E.cm,E.update)}function co(E){var te=E.cm,be=te.display;E.updatedDisplay&&dl(te),E.barMeasure=Ds(te),be.maxLineChanged&&!te.options.lineWrapping&&(E.adjustWidthTo=Ja(te,be.maxLine,be.maxLine.text.length).left+3,te.display.sizerWidth=E.adjustWidthTo,E.barMeasure.scrollWidth=Math.max(be.scroller.clientWidth,be.sizer.offsetLeft+E.adjustWidthTo+Ri(te)+te.display.barWidth),E.maxScrollLeft=Math.max(0,be.sizer.offsetLeft+E.adjustWidthTo-wi(te))),(E.updatedDisplay||E.selectionChanged)&&(E.preparedSelection=be.input.prepareSelection())}function zs(E){var te=E.cm;E.adjustWidthTo!=null&&(te.display.sizer.style.minWidth=E.adjustWidthTo+"px",E.maxScrollLeft<te.doc.scrollLeft&&ws(te,Math.min(te.display.scroller.scrollLeft,E.maxScrollLeft),!0),te.display.maxLineChanged=!1);var be=E.focus&&E.focus==Be();E.preparedSelection&&te.display.input.showSelection(E.preparedSelection,be),(E.updatedDisplay||E.startHeight!=te.doc.height)&&zl(te,E.barMeasure),E.updatedDisplay&&Ju(te,E.barMeasure),E.selectionChanged&&ha(te),te.state.focused&&E.updateInput&&te.display.input.reset(E.typing),be&&ka(E.cm)}function gl(E){var te=E.cm,be=te.display,ge=te.doc;if(E.updatedDisplay&&Xu(te,E.update),be.wheelStartX!=null&&(E.scrollTop!=null||E.scrollLeft!=null||E.scrollToPos)&&(be.wheelStartX=be.wheelStartY=null),E.scrollTop!=null&&qo(te,E.scrollTop,E.forceScroll),E.scrollLeft!=null&&ws(te,E.scrollLeft,!0,!0),E.scrollToPos){var Oe=Ll(te,Sr(ge,E.scrollToPos.from),Sr(ge,E.scrollToPos.to),E.scrollToPos.margin);Qs(te,Oe)}var Xe=E.maybeHiddenMarkers,ct=E.maybeUnhiddenMarkers;if(Xe)for(var Mt=0;Mt<Xe.length;++Mt)Xe[Mt].lines.length||Dt(Xe[Mt],"hide");if(ct)for(var Tt=0;Tt<ct.length;++Tt)ct[Tt].lines.length&&Dt(ct[Tt],"unhide");be.wrapper.offsetHeight&&(ge.scrollTop=te.display.scroller.scrollTop),E.changeObjs&&Dt(te,"changes",te,E.changeObjs),E.update&&E.update.finish()}function uo(E,te){if(E.curOp)return te();nc(E);try{return te()}finally{rc(E)}}function Ko(E,te){return function(){if(E.curOp)return te.apply(E,arguments);nc(E);try{return te.apply(E,arguments)}finally{rc(E)}}}function $o(E){return function(){if(this.curOp)return E.apply(this,arguments);nc(this);try{return E.apply(this,arguments)}finally{rc(this)}}}function Ss(E){return function(){var te=this.cm;if(!te||te.curOp)return E.apply(this,arguments);nc(te);try{return E.apply(this,arguments)}finally{rc(te)}}}function el(E,te){E.doc.highlightFrontier<E.display.viewTo&&E.state.highlight.set(te,st(Kl,E))}function Kl(E){var te=E.doc;if(!(te.highlightFrontier>=E.display.viewTo)){var be=+new Date+E.options.workTime,ge=qi(E,te.highlightFrontier),Oe=[];te.iter(ge.line,Math.min(te.first+te.size,E.display.viewTo+500),function(Xe){if(ge.line>=E.display.viewFrom){var ct=Xe.styles,Mt=Xe.text.length>E.options.maxHighlightLength?tn(te.mode,ge.state):null,Tt=aa(E,Xe,ge,!0);Mt&&(ge.state=Mt),Xe.styles=Tt.styles;var $t=Xe.styleClasses,mn=Tt.classes;mn?Xe.styleClasses=mn:$t&&(Xe.styleClasses=null);for(var kn=!ct||ct.length!=Xe.styles.length||$t!=mn&&(!$t||!mn||$t.bgClass!=mn.bgClass||$t.textClass!=mn.textClass),ur=0;!kn&&ur<ct.length;++ur)kn=ct[ur]!=Xe.styles[ur];kn&&Oe.push(ge.line),Xe.stateAfter=ge.save(),ge.nextLine()}else Xe.text.length<=E.options.maxHighlightLength&&Oi(E,Xe.text,ge),Xe.stateAfter=ge.line%5==0?ge.save():null,ge.nextLine();if(+new Date>be)return el(E,E.options.workDelay),!0}),te.highlightFrontier=ge.line,te.modeFrontier=Math.max(te.modeFrontier,ge.line),Oe.length&&uo(E,function(){for(var Xe=0;Xe<Oe.length;Xe++)fo(E,Oe[Xe],"text")})}}var Fl=function(E,te,be){var ge=E.display;this.viewport=te,this.visible=mo(ge,E.doc,te),this.editorIsHidden=!ge.wrapper.offsetWidth,this.wrapperHeight=ge.wrapper.clientHeight,this.wrapperWidth=ge.wrapper.clientWidth,this.oldDisplayWidth=wi(E),this.force=be,this.dims=xs(E),this.events=[]};Fl.prototype.signal=function(E,te){an(E,te)&&this.events.push(arguments)},Fl.prototype.finish=function(){for(var E=0;E<this.events.length;E++)Dt.apply(null,this.events[E])};function Wc(E){var te=E.display;!te.scrollbarsClipped&&te.scroller.offsetWidth&&(te.nativeBarWidth=te.scroller.offsetWidth-te.scroller.clientWidth,te.heightForcer.style.height=Ri(E)+"px",te.sizer.style.marginBottom=-te.nativeBarWidth+"px",te.sizer.style.borderRightWidth=Ri(E)+"px",te.scrollbarsClipped=!0)}function nf(E){if(E.hasFocus())return null;var te=Be();if(!te||!We(E.display.lineDiv,te))return null;var be={activeElt:te};if(window.getSelection){var ge=window.getSelection();ge.anchorNode&&ge.extend&&We(E.display.lineDiv,ge.anchorNode)&&(be.anchorNode=ge.anchorNode,be.anchorOffset=ge.anchorOffset,be.focusNode=ge.focusNode,be.focusOffset=ge.focusOffset)}return be}function kd(E){if(!(!E||!E.activeElt||E.activeElt==Be())&&(E.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(E.activeElt.nodeName)&&E.anchorNode&&We(document.body,E.anchorNode)&&We(document.body,E.focusNode))){var te=window.getSelection(),be=document.createRange();be.setEnd(E.anchorNode,E.anchorOffset),be.collapse(!1),te.removeAllRanges(),te.addRange(be),te.extend(E.focusNode,E.focusOffset)}}function Gu(E,te){var be=E.display,ge=E.doc;if(te.editorIsHidden)return ko(E),!1;if(!te.force&&te.visible.from>=be.viewFrom&&te.visible.to<=be.viewTo&&(be.updateLineNumbers==null||be.updateLineNumbers>=be.viewTo)&&be.renderedView==be.view&&jl(E)==0)return!1;Tu(E)&&(ko(E),te.dims=xs(E));var Oe=ge.first+ge.size,Xe=Math.max(te.visible.from-E.options.viewportMargin,ge.first),ct=Math.min(Oe,te.visible.to+E.options.viewportMargin);be.viewFrom<Xe&&Xe-be.viewFrom<20&&(Xe=Math.max(ge.first,be.viewFrom)),be.viewTo>ct&&be.viewTo-ct<20&&(ct=Math.min(Oe,be.viewTo)),Pi&&(Xe=gn(E.doc,Xe),ct=Ln(E.doc,ct));var Mt=Xe!=be.viewFrom||ct!=be.viewTo||be.lastWrapHeight!=te.wrapperHeight||be.lastWrapWidth!=te.wrapperWidth;ss(E,Xe,ct),be.viewOffset=Pn(Un(E.doc,be.viewFrom)),E.display.mover.style.top=be.viewOffset+"px";var Tt=jl(E);if(!Mt&&Tt==0&&!te.force&&be.renderedView==be.view&&(be.updateLineNumbers==null||be.updateLineNumbers>=be.viewTo))return!1;var $t=nf(E);return Tt>4&&(be.lineDiv.style.display="none"),_d(E,be.updateLineNumbers,te.dims),Tt>4&&(be.lineDiv.style.display=""),be.renderedView=be.view,kd($t),Ae(be.cursorDiv),Ae(be.selectionDiv),be.gutters.style.height=be.sizer.style.minHeight=0,Mt&&(be.lastWrapHeight=te.wrapperHeight,be.lastWrapWidth=te.wrapperWidth,el(E,400)),be.updateLineNumbers=null,!0}function Xu(E,te){for(var be=te.viewport,ge=!0;;ge=!1){if(!ge||!E.options.lineWrapping||te.oldDisplayWidth==wi(E)){if(be&&be.top!=null&&(be={top:Math.min(E.doc.height+Ii(E.display)-sa(E),be.top)}),te.visible=mo(E.display,E.doc,be),te.visible.from>=E.display.viewFrom&&te.visible.to<=E.display.viewTo)break}else ge&&(te.visible=mo(E.display,E.doc,be));if(!Gu(E,te))break;dl(E);var Oe=Ds(E);vl(E),zl(E,Oe),Ju(E,Oe),te.force=!1}te.signal(E,"update",E),(E.display.viewFrom!=E.display.reportedViewFrom||E.display.viewTo!=E.display.reportedViewTo)&&(te.signal(E,"viewportChange",E,E.display.viewFrom,E.display.viewTo),E.display.reportedViewFrom=E.display.viewFrom,E.display.reportedViewTo=E.display.viewTo)}function Yu(E,te){var be=new Fl(E,te);if(Gu(E,be)){dl(E),Xu(E,be);var ge=Ds(E);vl(E),zl(E,ge),Ju(E,ge),be.finish()}}function _d(E,te,be){var ge=E.display,Oe=E.options.lineNumbers,Xe=ge.lineDiv,ct=Xe.firstChild;function Mt(Fr){var Jr=Fr.nextSibling;return z&&oe&&E.display.currentWheelTarget==Fr?Fr.style.display="none":Fr.parentNode.removeChild(Fr),Jr}for(var Tt=ge.view,$t=ge.viewFrom,mn=0;mn<Tt.length;mn++){var kn=Tt[mn];if(!kn.hidden)if(!kn.node||kn.node.parentNode!=Xe){var ur=Ji(E,kn,$t,be);Xe.insertBefore(ur,ct)}else{for(;ct!=kn.node;)ct=Mt(ct);var nr=Oe&&te!=null&&te<=$t&&kn.lineNumber;kn.changes&&(pt(kn.changes,"gutter")>-1&&(nr=!1),vi(E,kn,$t,be)),nr&&(Ae(kn.lineNumber),kn.lineNumber.appendChild(document.createTextNode(nn(E.options,$t)))),ct=kn.node.nextSibling}$t+=kn.size}for(;ct;)ct=Mt(ct)}function _u(E){var te=E.gutters.offsetWidth;E.sizer.style.marginLeft=te+"px"}function Ju(E,te){E.display.sizer.style.minHeight=te.docHeight+"px",E.display.heightForcer.style.top=te.docHeight+"px",E.display.gutters.style.height=te.docHeight+E.display.barHeight+Ri(E)+"px"}function Qu(E){var te=E.display,be=te.view;if(!(!te.alignWidgets&&(!te.gutters.firstChild||!E.options.fixedGutter))){for(var ge=Js(te)-te.scroller.scrollLeft+E.doc.scrollLeft,Oe=te.gutters.offsetWidth,Xe=ge+"px",ct=0;ct<be.length;ct++)if(!be[ct].hidden){E.options.fixedGutter&&(be[ct].gutter&&(be[ct].gutter.style.left=Xe),be[ct].gutterBackground&&(be[ct].gutterBackground.style.left=Xe));var Mt=be[ct].alignable;if(Mt)for(var Tt=0;Tt<Mt.length;Tt++)Mt[Tt].style.left=Xe}E.options.fixedGutter&&(te.gutters.style.left=ge+Oe+"px")}}function Tu(E){if(!E.options.lineNumbers)return!1;var te=E.doc,be=nn(E.options,te.first+te.size-1),ge=E.display;if(be.length!=ge.lineNumChars){var Oe=ge.measure.appendChild(Ie("div",[Ie("div",be)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Xe=Oe.firstChild.offsetWidth,ct=Oe.offsetWidth-Xe;return ge.lineGutter.style.width="",ge.lineNumInnerWidth=Math.max(Xe,ge.lineGutter.offsetWidth-ct)+1,ge.lineNumWidth=ge.lineNumInnerWidth+ct,ge.lineNumChars=ge.lineNumInnerWidth?be.length:-1,ge.lineGutter.style.width=ge.lineNumWidth+"px",_u(E.display),!0}return!1}function Au(E,te){for(var be=[],ge=!1,Oe=0;Oe<E.length;Oe++){var Xe=E[Oe],ct=null;if(typeof Xe!="string"&&(ct=Xe.style,Xe=Xe.className),Xe=="CodeMirror-linenumbers")if(te)ge=!0;else continue;be.push({className:Xe,style:ct})}return te&&!ge&&be.push({className:"CodeMirror-linenumbers",style:null}),be}function Td(E){var te=E.gutters,be=E.gutterSpecs;Ae(te),E.lineGutter=null;for(var ge=0;ge<be.length;++ge){var Oe=be[ge],Xe=Oe.className,ct=Oe.style,Mt=te.appendChild(Ie("div",null,"CodeMirror-gutter "+Xe));ct&&(Mt.style.cssText=ct),Xe=="CodeMirror-linenumbers"&&(E.lineGutter=Mt,Mt.style.width=(E.lineNumWidth||1)+"px")}te.style.display=be.length?"":"none",_u(E)}function Zc(E){Td(E.display),Aa(E),Qu(E)}function rf(E,te,be,ge){var Oe=this;this.input=be,Oe.scrollbarFiller=Ie("div",null,"CodeMirror-scrollbar-filler"),Oe.scrollbarFiller.setAttribute("cm-not-content","true"),Oe.gutterFiller=Ie("div",null,"CodeMirror-gutter-filler"),Oe.gutterFiller.setAttribute("cm-not-content","true"),Oe.lineDiv=Pe("div",null,"CodeMirror-code"),Oe.selectionDiv=Ie("div",null,null,"position: relative; z-index: 1"),Oe.cursorDiv=Ie("div",null,"CodeMirror-cursors"),Oe.measure=Ie("div",null,"CodeMirror-measure"),Oe.lineMeasure=Ie("div",null,"CodeMirror-measure"),Oe.lineSpace=Pe("div",[Oe.measure,Oe.lineMeasure,Oe.selectionDiv,Oe.cursorDiv,Oe.lineDiv],null,"position: relative; outline: none");var Xe=Pe("div",[Oe.lineSpace],"CodeMirror-lines");Oe.mover=Ie("div",[Xe],null,"position: relative"),Oe.sizer=Ie("div",[Oe.mover],"CodeMirror-sizer"),Oe.sizerWidth=null,Oe.heightForcer=Ie("div",null,null,"position: absolute; height: "+mt+"px; width: 1px;"),Oe.gutters=Ie("div",null,"CodeMirror-gutters"),Oe.lineGutter=null,Oe.scroller=Ie("div",[Oe.sizer,Oe.heightForcer,Oe.gutters],"CodeMirror-scroll"),Oe.scroller.setAttribute("tabIndex","-1"),Oe.wrapper=Ie("div",[Oe.scrollbarFiller,Oe.gutterFiller,Oe.scroller],"CodeMirror"),pe&&ne<8&&(Oe.gutters.style.zIndex=-1,Oe.scroller.style.paddingRight=0),!z&&!(Ue&&he)&&(Oe.scroller.draggable=!0),E&&(E.appendChild?E.appendChild(Oe.wrapper):E(Oe.wrapper)),Oe.viewFrom=Oe.viewTo=te.first,Oe.reportedViewFrom=Oe.reportedViewTo=te.first,Oe.view=[],Oe.renderedView=null,Oe.externalMeasured=null,Oe.viewOffset=0,Oe.lastWrapHeight=Oe.lastWrapWidth=0,Oe.updateLineNumbers=null,Oe.nativeBarWidth=Oe.barHeight=Oe.barWidth=0,Oe.scrollbarsClipped=!1,Oe.lineNumWidth=Oe.lineNumInnerWidth=Oe.lineNumChars=null,Oe.alignWidgets=!1,Oe.cachedCharWidth=Oe.cachedTextHeight=Oe.cachedPaddingH=null,Oe.maxLine=null,Oe.maxLineLength=0,Oe.maxLineChanged=!1,Oe.wheelDX=Oe.wheelDY=Oe.wheelStartX=Oe.wheelStartY=null,Oe.shift=!1,Oe.selForContextMenu=null,Oe.activeTouch=null,Oe.gutterSpecs=Au(ge.gutters,ge.lineNumbers),Td(Oe),be.init(Oe)}var cu=0,yl=null;pe?yl=-.53:Ue?yl=15:re?yl=-.7:me&&(yl=-1/3);function Bc(E){var te=E.wheelDeltaX,be=E.wheelDeltaY;return te==null&&E.detail&&E.axis==E.HORIZONTAL_AXIS&&(te=E.detail),be==null&&E.detail&&E.axis==E.VERTICAL_AXIS?be=E.detail:be==null&&(be=E.wheelDelta),{x:te,y:be}}function Ad(E){var te=Bc(E);return te.x*=yl,te.y*=yl,te}function qu(E,te){var be=Bc(te),ge=be.x,Oe=be.y,Xe=E.display,ct=Xe.scroller,Mt=ct.scrollWidth>ct.clientWidth,Tt=ct.scrollHeight>ct.clientHeight;if(ge&&Mt||Oe&&Tt){if(Oe&&oe&&z){e:for(var $t=te.target,mn=Xe.view;$t!=ct;$t=$t.parentNode)for(var kn=0;kn<mn.length;kn++)if(mn[kn].node==$t){E.display.currentWheelTarget=$t;break e}}if(ge&&!Ue&&!se&&yl!=null){Oe&&Tt&&Co(E,Math.max(0,ct.scrollTop+Oe*yl)),ws(E,Math.max(0,ct.scrollLeft+ge*yl)),(!Oe||Oe&&Tt)&&Tn(te),Xe.wheelStartX=null;return}if(Oe&&yl!=null){var ur=Oe*yl,nr=E.doc.scrollTop,Fr=nr+Xe.wrapper.clientHeight;ur<0?nr=Math.max(0,nr+ur-50):Fr=Math.min(E.doc.height,Fr+ur+50),Yu(E,{top:nr,bottom:Fr})}cu<20&&(Xe.wheelStartX==null?(Xe.wheelStartX=ct.scrollLeft,Xe.wheelStartY=ct.scrollTop,Xe.wheelDX=ge,Xe.wheelDY=Oe,setTimeout(function(){if(Xe.wheelStartX!=null){var Jr=ct.scrollLeft-Xe.wheelStartX,yi=ct.scrollTop-Xe.wheelStartY,$i=yi&&Xe.wheelDY&&yi/Xe.wheelDY||Jr&&Xe.wheelDX&&Jr/Xe.wheelDX;Xe.wheelStartX=Xe.wheelStartY=null,$i&&(yl=(yl*cu+$i)/(cu+1),++cu)}},200)):(Xe.wheelDX+=ge,Xe.wheelDY+=Oe))}}var Ul=function(E,te){this.ranges=E,this.primIndex=te};Ul.prototype.primary=function(){return this.ranges[this.primIndex]},Ul.prototype.equals=function(E){if(E==this)return!0;if(E.primIndex!=this.primIndex||E.ranges.length!=this.ranges.length)return!1;for(var te=0;te<this.ranges.length;te++){var be=this.ranges[te],ge=E.ranges[te];if(!Qn(be.anchor,ge.anchor)||!Qn(be.head,ge.head))return!1}return!0},Ul.prototype.deepCopy=function(){for(var E=[],te=0;te<this.ranges.length;te++)E[te]=new Go(hr(this.ranges[te].anchor),hr(this.ranges[te].head));return new Ul(E,this.primIndex)},Ul.prototype.somethingSelected=function(){for(var E=0;E<this.ranges.length;E++)if(!this.ranges[E].empty())return!0;return!1},Ul.prototype.contains=function(E,te){te||(te=E);for(var be=0;be<this.ranges.length;be++){var ge=this.ranges[be];if(pn(te,ge.from())>=0&&pn(E,ge.to())<=0)return be}return-1};var Go=function(E,te){this.anchor=E,this.head=te};Go.prototype.from=function(){return Vn(this.anchor,this.head)},Go.prototype.to=function(){return Fn(this.anchor,this.head)},Go.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ic(E,te,be){var ge=E&&E.options.selectionsMayTouch,Oe=te[be];te.sort(function(ur,nr){return pn(ur.from(),nr.from())}),be=pt(te,Oe);for(var Xe=1;Xe<te.length;Xe++){var ct=te[Xe],Mt=te[Xe-1],Tt=pn(Mt.to(),ct.from());if(ge&&!ct.empty()?Tt>0:Tt>=0){var $t=Vn(Mt.from(),ct.from()),mn=Fn(Mt.to(),ct.to()),kn=Mt.empty()?ct.from()==ct.head:Mt.from()==Mt.head;Xe<=be&&--be,te.splice(--Xe,2,new Go(kn?mn:$t,kn?$t:mn))}}return new Ul(te,be)}function ac(E,te){return new Ul([new Go(E,te||E)],0)}function Cc(E){return E.text?Jt(E.from.line+E.text.length-1,Lt(E.text).length+(E.text.length==1?E.from.ch:0)):E.to}function ed(E,te){if(pn(E,te.from)<0)return E;if(pn(E,te.to)<=0)return Cc(te);var be=E.line+te.text.length-(te.to.line-te.from.line)-1,ge=E.ch;return E.line==te.to.line&&(ge+=Cc(te).ch-te.to.ch),Jt(be,ge)}function td(E,te){for(var be=[],ge=0;ge<E.sel.ranges.length;ge++){var Oe=E.sel.ranges[ge];be.push(new Go(ed(Oe.anchor,te),ed(Oe.head,te)))}return ic(E.cm,be,E.sel.primIndex)}function jc(E,te,be){return E.line==te.line?Jt(be.line,E.ch-te.ch+be.ch):Jt(be.line+(E.line-te.line),E.ch)}function nd(E,te,be){for(var ge=[],Oe=Jt(E.first,0),Xe=Oe,ct=0;ct<te.length;ct++){var Mt=te[ct],Tt=jc(Mt.from,Oe,Xe),$t=jc(Cc(Mt),Oe,Xe);if(Oe=Mt.to,Xe=$t,be=="around"){var mn=E.sel.ranges[ct],kn=pn(mn.head,mn.anchor)<0;ge[ct]=new Go(kn?$t:Tt,kn?Tt:$t)}else ge[ct]=new Go(Tt,Tt)}return new Ul(ge,E.sel.primIndex)}function uu(E){E.doc.mode=rn(E.options,E.doc.modeOption),Vc(E)}function Vc(E){E.doc.iter(function(te){te.stateAfter&&(te.stateAfter=null),te.styles&&(te.styles=null)}),E.doc.modeFrontier=E.doc.highlightFrontier=E.doc.first,el(E,100),E.state.modeGen++,E.curOp&&Aa(E)}function rd(E,te){return te.from.ch==0&&te.to.ch==0&&Lt(te.text)==""&&(!E.cm||E.cm.options.wholeLineUpdateBefore)}function Ou(E,te,be,ge){function Oe(Qi){return be?be[Qi]:null}function Xe(Qi,Ai,ia){vr(Qi,Ai,ia,ge),Tr(Qi,"change",Qi,te)}function ct(Qi,Ai){for(var ia=[],Pa=Qi;Pa<Ai;++Pa)ia.push(new Xn($t[Pa],Oe(Pa),ge));return ia}var Mt=te.from,Tt=te.to,$t=te.text,mn=Un(E,Mt.line),kn=Un(E,Tt.line),ur=Lt($t),nr=Oe($t.length-1),Fr=Tt.line-Mt.line;if(te.full)E.insert(0,ct(0,$t.length)),E.remove($t.length,E.size-$t.length);else if(rd(E,te)){var Jr=ct(0,$t.length-1);Xe(kn,kn.text,nr),Fr&&E.remove(Mt.line,Fr),Jr.length&&E.insert(Mt.line,Jr)}else if(mn==kn)if($t.length==1)Xe(mn,mn.text.slice(0,Mt.ch)+ur+mn.text.slice(Tt.ch),nr);else{var yi=ct(1,$t.length-1);yi.push(new Xn(ur+mn.text.slice(Tt.ch),nr,ge)),Xe(mn,mn.text.slice(0,Mt.ch)+$t[0],Oe(0)),E.insert(Mt.line+1,yi)}else if($t.length==1)Xe(mn,mn.text.slice(0,Mt.ch)+$t[0]+kn.text.slice(Tt.ch),Oe(0)),E.remove(Mt.line+1,Fr);else{Xe(mn,mn.text.slice(0,Mt.ch)+$t[0],Oe(0)),Xe(kn,ur+kn.text.slice(Tt.ch),nr);var $i=ct(1,$t.length-1);Fr>1&&E.remove(Mt.line+1,Fr-1),E.insert(Mt.line+1,$i)}Tr(E,"change",E,te)}function pc(E,te,be){function ge(Oe,Xe,ct){if(Oe.linked)for(var Mt=0;Mt<Oe.linked.length;++Mt){var Tt=Oe.linked[Mt];if(Tt.doc!=Xe){var $t=ct&&Tt.sharedHist;be&&!$t||(te(Tt.doc,$t),ge(Tt.doc,Oe,$t))}}}ge(E,null,!0)}function du(E,te){if(te.cm)throw new Error("This document is already in use.");E.doc=te,te.cm=E,ds(E),uu(E),fu(E),E.options.lineWrapping||Sn(E),E.options.mode=te.modeOption,Aa(E)}function fu(E){(E.doc.direction=="rtl"?He:Ne)(E.display.lineDiv,"CodeMirror-rtl")}function Iu(E){uo(E,function(){fu(E),Aa(E)})}function hu(E){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=E||1}function Xl(E,te){var be={from:hr(te.from),to:Cc(te),text:kr(E,te.from,te.to)};return qt(E,be,te.from.line,te.to.line+1),pc(E,function(ge){return qt(ge,be,te.from.line,te.to.line+1)},!0),be}function id(E){for(;E.length;){var te=Lt(E);if(te.ranges)E.pop();else break}}function Du(E,te){if(te)return id(E.done),Lt(E.done);if(E.done.length&&!Lt(E.done).ranges)return Lt(E.done);if(E.done.length>1&&!E.done[E.done.length-2].ranges)return E.done.pop(),Lt(E.done)}function lt(E,te,be,ge){var Oe=E.history;Oe.undone.length=0;var Xe=+new Date,ct,Mt;if((Oe.lastOp==ge||Oe.lastOrigin==te.origin&&te.origin&&(te.origin.charAt(0)=="+"&&Oe.lastModTime>Xe-(E.cm?E.cm.options.historyEventDelay:500)||te.origin.charAt(0)=="*"))&&(ct=Du(Oe,Oe.lastOp==ge)))Mt=Lt(ct.changes),pn(te.from,te.to)==0&&pn(te.from,Mt.to)==0?Mt.to=Cc(te):ct.changes.push(Xl(E,te));else{var Tt=Lt(Oe.done);for((!Tt||!Tt.ranges)&&Ht(E.sel,Oe.done),ct={changes:[Xl(E,te)],generation:Oe.generation},Oe.done.push(ct);Oe.done.length>Oe.undoDepth;)Oe.done.shift(),Oe.done[0].ranges||Oe.done.shift()}Oe.done.push(be),Oe.generation=++Oe.maxGeneration,Oe.lastModTime=Oe.lastSelTime=Xe,Oe.lastOp=Oe.lastSelOp=ge,Oe.lastOrigin=Oe.lastSelOrigin=te.origin,Mt||Dt(E,"historyAdded")}function ht(E,te,be,ge){var Oe=te.charAt(0);return Oe=="*"||Oe=="+"&&be.ranges.length==ge.ranges.length&&be.somethingSelected()==ge.somethingSelected()&&new Date-E.history.lastSelTime<=(E.cm?E.cm.options.historyEventDelay:500)}function Nt(E,te,be,ge){var Oe=E.history,Xe=ge&&ge.origin;be==Oe.lastSelOp||Xe&&Oe.lastSelOrigin==Xe&&(Oe.lastModTime==Oe.lastSelTime&&Oe.lastOrigin==Xe||ht(E,Xe,Lt(Oe.done),te))?Oe.done[Oe.done.length-1]=te:Ht(te,Oe.done),Oe.lastSelTime=+new Date,Oe.lastSelOrigin=Xe,Oe.lastSelOp=be,ge&&ge.clearRedo!==!1&&id(Oe.undone)}function Ht(E,te){var be=Lt(te);be&&be.ranges&&be.equals(E)||te.push(E)}function qt(E,te,be,ge){var Oe=te["spans_"+E.id],Xe=0;E.iter(Math.max(E.first,be),Math.min(E.first+E.size,ge),function(ct){ct.markedSpans&&((Oe||(Oe=te["spans_"+E.id]={}))[Xe]=ct.markedSpans),++Xe})}function ln(E){if(!E)return null;for(var te,be=0;be<E.length;++be)E[be].marker.explicitlyCleared?te||(te=E.slice(0,be)):te&&te.push(E[be]);return te?te.length?te:null:E}function Dn(E,te){var be=te["spans_"+E.id];if(!be)return null;for(var ge=[],Oe=0;Oe<te.text.length;++Oe)ge.push(ln(be[Oe]));return ge}function $n(E,te){var be=Dn(E,te),ge=Ei(E,te);if(!be)return ge;if(!ge)return be;for(var Oe=0;Oe<be.length;++Oe){var Xe=be[Oe],ct=ge[Oe];if(Xe&&ct)e:for(var Mt=0;Mt<ct.length;++Mt){for(var Tt=ct[Mt],$t=0;$t<Xe.length;++$t)if(Xe[$t].marker==Tt.marker)continue e;Xe.push(Tt)}else ct&&(be[Oe]=ct)}return be}function Rn(E,te,be){for(var ge=[],Oe=0;Oe<E.length;++Oe){var Xe=E[Oe];if(Xe.ranges){ge.push(be?Ul.prototype.deepCopy.call(Xe):Xe);continue}var ct=Xe.changes,Mt=[];ge.push({changes:Mt});for(var Tt=0;Tt<ct.length;++Tt){var $t=ct[Tt],mn=void 0;if(Mt.push({from:$t.from,to:$t.to,text:$t.text}),te)for(var kn in $t)(mn=kn.match(/^spans_(\d+)$/))&&pt(te,Number(mn[1]))>-1&&(Lt(Mt)[kn]=$t[kn],delete $t[kn])}}return ge}function tr(E,te,be,ge){if(ge){var Oe=E.anchor;if(be){var Xe=pn(te,Oe)<0;Xe!=pn(be,Oe)<0?(Oe=te,te=be):Xe!=pn(te,be)<0&&(te=be)}return new Go(Oe,te)}else return new Go(be||te,te)}function mr(E,te,be,ge,Oe){Oe==null&&(Oe=E.cm&&(E.cm.display.shift||E.extend)),Kr(E,new Ul([tr(E.sel.primary(),te,be,Oe)],0),ge)}function En(E,te,be){for(var ge=[],Oe=E.cm&&(E.cm.display.shift||E.extend),Xe=0;Xe<E.sel.ranges.length;Xe++)ge[Xe]=tr(E.sel.ranges[Xe],te[Xe],null,Oe);var ct=ic(E.cm,ge,E.sel.primIndex);Kr(E,ct,be)}function Lr(E,te,be,ge){var Oe=E.sel.ranges.slice(0);Oe[te]=be,Kr(E,ic(E.cm,Oe,E.sel.primIndex),ge)}function jr(E,te,be,ge){Kr(E,ac(te,be),ge)}function $r(E,te,be){var ge={ranges:te.ranges,update:function(Oe){this.ranges=[];for(var Xe=0;Xe<Oe.length;Xe++)this.ranges[Xe]=new Go(Sr(E,Oe[Xe].anchor),Sr(E,Oe[Xe].head))},origin:be&&be.origin};return Dt(E,"beforeSelectionChange",E,ge),E.cm&&Dt(E.cm,"beforeSelectionChange",E.cm,ge),ge.ranges!=te.ranges?ic(E.cm,ge.ranges,ge.ranges.length-1):te}function Yr(E,te,be){var ge=E.history.done,Oe=Lt(ge);Oe&&Oe.ranges?(ge[ge.length-1]=te,ci(E,te,be)):Kr(E,te,be)}function Kr(E,te,be){ci(E,te,be),Nt(E,E.sel,E.cm?E.cm.curOp.id:NaN,be)}function ci(E,te,be){(an(E,"beforeSelectionChange")||E.cm&&an(E.cm,"beforeSelectionChange"))&&(te=$r(E,te,be));var ge=be&&be.bias||(pn(te.primary().head,E.sel.primary().head)<0?-1:1);ii(E,Yi(E,te,ge,!0)),!(be&&be.scroll===!1)&&E.cm&&al(E.cm)}function ii(E,te){te.equals(E.sel)||(E.sel=te,E.cm&&(E.cm.curOp.updateInput=1,E.cm.curOp.selectionChanged=!0,en(E.cm)),Tr(E,"cursorActivity",E))}function Si(E){ii(E,Yi(E,E.sel,null,!1))}function Yi(E,te,be,ge){for(var Oe,Xe=0;Xe<te.ranges.length;Xe++){var ct=te.ranges[Xe],Mt=te.ranges.length==E.sel.ranges.length&&E.sel.ranges[Xe],Tt=Gi(E,ct.anchor,Mt&&Mt.anchor,be,ge),$t=Gi(E,ct.head,Mt&&Mt.head,be,ge);(Oe||Tt!=ct.anchor||$t!=ct.head)&&(Oe||(Oe=te.ranges.slice(0,Xe)),Oe[Xe]=new Go(Tt,$t))}return Oe?ic(E.cm,Oe,te.primIndex):te}function Ui(E,te,be,ge,Oe){var Xe=Un(E,te.line);if(Xe.markedSpans)for(var ct=0;ct<Xe.markedSpans.length;++ct){var Mt=Xe.markedSpans[ct],Tt=Mt.marker,$t="selectLeft"in Tt?!Tt.selectLeft:Tt.inclusiveLeft,mn="selectRight"in Tt?!Tt.selectRight:Tt.inclusiveRight;if((Mt.from==null||($t?Mt.from<=te.ch:Mt.from<te.ch))&&(Mt.to==null||(mn?Mt.to>=te.ch:Mt.to>te.ch))){if(Oe&&(Dt(Tt,"beforeCursorEnter"),Tt.explicitlyCleared))if(Xe.markedSpans){--ct;continue}else break;if(!Tt.atomic)continue;if(be){var kn=Tt.find(ge<0?1:-1),ur=void 0;if((ge<0?mn:$t)&&(kn=xa(E,kn,-ge,kn&&kn.line==te.line?Xe:null)),kn&&kn.line==te.line&&(ur=pn(kn,be))&&(ge<0?ur<0:ur>0))return Ui(E,kn,te,ge,Oe)}var nr=Tt.find(ge<0?-1:1);return(ge<0?$t:mn)&&(nr=xa(E,nr,ge,nr.line==te.line?Xe:null)),nr?Ui(E,nr,te,ge,Oe):null}}return te}function Gi(E,te,be,ge,Oe){var Xe=ge||1,ct=Ui(E,te,be,Xe,Oe)||!Oe&&Ui(E,te,be,Xe,!0)||Ui(E,te,be,-Xe,Oe)||!Oe&&Ui(E,te,be,-Xe,!0);return ct||(E.cantEdit=!0,Jt(E.first,0))}function xa(E,te,be,ge){return be<0&&te.ch==0?te.line>E.first?Sr(E,Jt(te.line-1)):null:be>0&&te.ch==(ge||Un(E,te.line)).text.length?te.line<E.first+E.size-1?Jt(te.line+1,0):null:new Jt(te.line,te.ch+be)}function Ua(E){E.setSelection(Jt(E.firstLine(),0),Jt(E.lastLine()),nt)}function ji(E,te,be){var ge={canceled:!1,from:te.from,to:te.to,text:te.text,origin:te.origin,cancel:function(){return ge.canceled=!0}};return be&&(ge.update=function(Oe,Xe,ct,Mt){Oe&&(ge.from=Sr(E,Oe)),Xe&&(ge.to=Sr(E,Xe)),ct&&(ge.text=ct),Mt!==void 0&&(ge.origin=Mt)}),Dt(E,"beforeChange",E,ge),E.cm&&Dt(E.cm,"beforeChange",E.cm,ge),ge.canceled?(E.cm&&(E.cm.curOp.updateInput=2),null):{from:ge.from,to:ge.to,text:ge.text,origin:ge.origin}}function Hi(E,te,be){if(E.cm){if(!E.cm.curOp)return Ko(E.cm,Hi)(E,te,be);if(E.cm.state.suppressEdits)return}if(!((an(E,"beforeChange")||E.cm&&an(E.cm,"beforeChange"))&&(te=ji(E,te,!0),!te))){var ge=Na&&!be&&Li(E,te.from,te.to);if(ge)for(var Oe=ge.length-1;Oe>=0;--Oe)Fi(E,{from:ge[Oe].from,to:ge[Oe].to,text:Oe?[""]:te.text,origin:te.origin});else Fi(E,te)}}function Fi(E,te){if(!(te.text.length==1&&te.text[0]==""&&pn(te.from,te.to)==0)){var be=td(E,te);lt(E,te,be,E.cm?E.cm.curOp.id:NaN),wa(E,te,be,Ei(E,te));var ge=[];pc(E,function(Oe,Xe){!Xe&&pt(ge,Oe.history)==-1&&(qa(Oe.history,te),ge.push(Oe.history)),wa(Oe,te,null,Ei(Oe,te))})}}function di(E,te,be){var ge=E.cm&&E.cm.state.suppressEdits;if(!(ge&&!be)){for(var Oe=E.history,Xe,ct=E.sel,Mt=te=="undo"?Oe.done:Oe.undone,Tt=te=="undo"?Oe.undone:Oe.done,$t=0;$t<Mt.length&&(Xe=Mt[$t],!(be?Xe.ranges&&!Xe.equals(E.sel):!Xe.ranges));$t++);if($t!=Mt.length){for(Oe.lastOrigin=Oe.lastSelOrigin=null;;)if(Xe=Mt.pop(),Xe.ranges){if(Ht(Xe,Tt),be&&!Xe.equals(E.sel)){Kr(E,Xe,{clearRedo:!1});return}ct=Xe}else if(ge){Mt.push(Xe);return}else break;var mn=[];Ht(ct,Tt),Tt.push({changes:mn,generation:Oe.generation}),Oe.generation=Xe.generation||++Oe.maxGeneration;for(var kn=an(E,"beforeChange")||E.cm&&an(E.cm,"beforeChange"),ur=function(Jr){var yi=Xe.changes[Jr];if(yi.origin=te,kn&&!ji(E,yi,!1))return Mt.length=0,{};mn.push(Xl(E,yi));var $i=Jr?td(E,yi):Lt(Mt);wa(E,yi,$i,$n(E,yi)),!Jr&&E.cm&&E.cm.scrollIntoView({from:yi.from,to:Cc(yi)});var Qi=[];pc(E,function(Ai,ia){!ia&&pt(Qi,Ai.history)==-1&&(qa(Ai.history,yi),Qi.push(Ai.history)),wa(Ai,yi,null,$n(Ai,yi))})},nr=Xe.changes.length-1;nr>=0;--nr){var Fr=ur(nr);if(Fr)return Fr.v}}}}function Zi(E,te){if(te!=0&&(E.first+=te,E.sel=new Ul(dt(E.sel.ranges,function(Oe){return new Go(Jt(Oe.anchor.line+te,Oe.anchor.ch),Jt(Oe.head.line+te,Oe.head.ch))}),E.sel.primIndex),E.cm)){Aa(E.cm,E.first,E.first-te,te);for(var be=E.cm.display,ge=be.viewFrom;ge<be.viewTo;ge++)fo(E.cm,ge,"gutter")}}function wa(E,te,be,ge){if(E.cm&&!E.cm.curOp)return Ko(E.cm,wa)(E,te,be,ge);if(te.to.line<E.first){Zi(E,te.text.length-1-(te.to.line-te.from.line));return}if(!(te.from.line>E.lastLine())){if(te.from.line<E.first){var Oe=te.text.length-1-(E.first-te.from.line);Zi(E,Oe),te={from:Jt(E.first,0),to:Jt(te.to.line+Oe,te.to.ch),text:[Lt(te.text)],origin:te.origin}}var Xe=E.lastLine();te.to.line>Xe&&(te={from:te.from,to:Jt(Xe,Un(E,Xe).text.length),text:[te.text[0]],origin:te.origin}),te.removed=kr(E,te.from,te.to),be||(be=td(E,te)),E.cm?Qa(E.cm,te,ge):Ou(E,te,ge),ci(E,be,nt),E.cantEdit&&Gi(E,Jt(E.firstLine(),0))&&(E.cantEdit=!1)}}function Qa(E,te,be){var ge=E.doc,Oe=E.display,Xe=te.from,ct=te.to,Mt=!1,Tt=Xe.line;E.options.lineWrapping||(Tt=Er(Bt(Un(ge,Xe.line))),ge.iter(Tt,ct.line+1,function(nr){if(nr==Oe.maxLine)return Mt=!0,!0})),ge.sel.contains(te.from,te.to)>-1&&en(E),Ou(ge,te,be,Fs(E)),E.options.lineWrapping||(ge.iter(Tt,Xe.line+te.text.length,function(nr){var Fr=Bn(nr);Fr>Oe.maxLineLength&&(Oe.maxLine=nr,Oe.maxLineLength=Fr,Oe.maxLineChanged=!0,Mt=!1)}),Mt&&(E.curOp.updateMaxLine=!0)),Va(ge,Xe.line),el(E,400);var $t=te.text.length-(ct.line-Xe.line)-1;te.full?Aa(E):Xe.line==ct.line&&te.text.length==1&&!rd(E.doc,te)?fo(E,Xe.line,"text"):Aa(E,Xe.line,ct.line+1,$t);var mn=an(E,"changes"),kn=an(E,"change");if(kn||mn){var ur={from:Xe,to:ct,text:te.text,removed:te.removed,origin:te.origin};kn&&Tr(E,"change",E,ur),mn&&(E.curOp.changeObjs||(E.curOp.changeObjs=[])).push(ur)}E.display.selForContextMenu=null}function ja(E,te,be,ge,Oe){var Xe;ge||(ge=be),pn(ge,be)<0&&(Xe=[ge,be],be=Xe[0],ge=Xe[1]),typeof te=="string"&&(te=E.splitLines(te)),Hi(E,{from:be,to:ge,text:te,origin:Oe})}function Sa(E,te,be,ge){be<E.line?E.line+=ge:te<E.line&&(E.line=te,E.ch=0)}function io(E,te,be,ge){for(var Oe=0;Oe<E.length;++Oe){var Xe=E[Oe],ct=!0;if(Xe.ranges){Xe.copied||(Xe=E[Oe]=Xe.deepCopy(),Xe.copied=!0);for(var Mt=0;Mt<Xe.ranges.length;Mt++)Sa(Xe.ranges[Mt].anchor,te,be,ge),Sa(Xe.ranges[Mt].head,te,be,ge);continue}for(var Tt=0;Tt<Xe.changes.length;++Tt){var $t=Xe.changes[Tt];if(be<$t.from.line)$t.from=Jt($t.from.line+ge,$t.from.ch),$t.to=Jt($t.to.line+ge,$t.to.ch);else if(te<=$t.to.line){ct=!1;break}}ct||(E.splice(0,Oe+1),Oe=0)}}function qa(E,te){var be=te.from.line,ge=te.to.line,Oe=te.text.length-(ge-be)-1;io(E.done,be,ge,Oe),io(E.undone,be,ge,Oe)}function zo(E,te,be,ge){var Oe=te,Xe=te;return typeof te=="number"?Xe=Un(E,er(E,te)):Oe=Er(te),Oe==null?null:(ge(Xe,Oe)&&E.cm&&fo(E.cm,Oe,be),Xe)}function ao(E){this.lines=E,this.parent=null;for(var te=0,be=0;be<E.length;++be)E[be].parent=this,te+=E[be].height;this.height=te}ao.prototype={chunkSize:function(){return this.lines.length},removeInner:function(E,te){for(var be=E,ge=E+te;be<ge;++be){var Oe=this.lines[be];this.height-=Oe.height,rr(Oe),Tr(Oe,"delete")}this.lines.splice(E,te)},collapse:function(E){E.push.apply(E,this.lines)},insertInner:function(E,te,be){this.height+=be,this.lines=this.lines.slice(0,E).concat(te).concat(this.lines.slice(E));for(var ge=0;ge<te.length;++ge)te[ge].parent=this},iterN:function(E,te,be){for(var ge=E+te;E<ge;++E)if(be(this.lines[E]))return!0}};function es(E){this.children=E;for(var te=0,be=0,ge=0;ge<E.length;++ge){var Oe=E[ge];te+=Oe.chunkSize(),be+=Oe.height,Oe.parent=this}this.size=te,this.height=be,this.parent=null}es.prototype={chunkSize:function(){return this.size},removeInner:function(E,te){this.size-=te;for(var be=0;be<this.children.length;++be){var ge=this.children[be],Oe=ge.chunkSize();if(E<Oe){var Xe=Math.min(te,Oe-E),ct=ge.height;if(ge.removeInner(E,Xe),this.height-=ct-ge.height,Oe==Xe&&(this.children.splice(be--,1),ge.parent=null),(te-=Xe)==0)break;E=0}else E-=Oe}if(this.size-te<25&&(this.children.length>1||!(this.children[0]instanceof ao))){var Mt=[];this.collapse(Mt),this.children=[new ao(Mt)],this.children[0].parent=this}},collapse:function(E){for(var te=0;te<this.children.length;++te)this.children[te].collapse(E)},insertInner:function(E,te,be){this.size+=te.length,this.height+=be;for(var ge=0;ge<this.children.length;++ge){var Oe=this.children[ge],Xe=Oe.chunkSize();if(E<=Xe){if(Oe.insertInner(E,te,be),Oe.lines&&Oe.lines.length>50){for(var ct=Oe.lines.length%25+25,Mt=ct;Mt<Oe.lines.length;){var Tt=new ao(Oe.lines.slice(Mt,Mt+=25));Oe.height-=Tt.height,this.children.splice(++ge,0,Tt),Tt.parent=this}Oe.lines=Oe.lines.slice(0,ct),this.maybeSpill()}break}E-=Xe}},maybeSpill:function(){if(!(this.children.length<=10)){var E=this;do{var te=E.children.splice(E.children.length-5,5),be=new es(te);if(E.parent){E.size-=be.size,E.height-=be.height;var Oe=pt(E.parent.children,E);E.parent.children.splice(Oe+1,0,be)}else{var ge=new es(E.children);ge.parent=E,E.children=[ge,be],E=ge}be.parent=E.parent}while(E.children.length>10);E.parent.maybeSpill()}},iterN:function(E,te,be){for(var ge=0;ge<this.children.length;++ge){var Oe=this.children[ge],Xe=Oe.chunkSize();if(E<Xe){var ct=Math.min(te,Xe-E);if(Oe.iterN(E,ct,be))return!0;if((te-=ct)==0)break;E=0}else E-=Xe}}};var ts=function(E,te,be){if(be)for(var ge in be)be.hasOwnProperty(ge)&&(this[ge]=be[ge]);this.doc=E,this.node=te};ts.prototype.clear=function(){var E=this.doc.cm,te=this.line.widgets,be=this.line,ge=Er(be);if(!(ge==null||!te)){for(var Oe=0;Oe<te.length;++Oe)te[Oe]==this&&te.splice(Oe--,1);te.length||(be.widgets=null);var Xe=pa(this);Ir(be,Math.max(0,be.height-Xe)),E&&(uo(E,function(){Ha(E,be,-Xe),fo(E,ge,"widget")}),Tr(E,"lineWidgetCleared",E,this,ge))}},ts.prototype.changed=function(){var E=this,te=this.height,be=this.doc.cm,ge=this.line;this.height=null;var Oe=pa(this)-te;Oe&&(qn(this.doc,ge)||Ir(ge,ge.height+Oe),be&&uo(be,function(){be.curOp.forceUpdate=!0,Ha(be,ge,Oe),Tr(be,"lineWidgetChanged",be,E,Er(ge))}))},fn(ts);function Ha(E,te,be){Pn(te)<(E.curOp&&E.curOp.scrollTop||E.doc.scrollTop)&&El(E,be)}function Ts(E,te,be,ge){var Oe=new ts(E,be,ge),Xe=E.cm;return Xe&&Oe.noHScroll&&(Xe.display.alignWidgets=!0),zo(E,te,"widget",function(ct){var Mt=ct.widgets||(ct.widgets=[]);if(Oe.insertAt==null?Mt.push(Oe):Mt.splice(Math.min(Mt.length-1,Math.max(0,Oe.insertAt)),0,Oe),Oe.line=ct,Xe&&!qn(E,ct)){var Tt=Pn(ct)<E.scrollTop;Ir(ct,ct.height+pa(Oe)),Tt&&El(Xe,Oe.height),Xe.curOp.forceUpdate=!0}return!0}),Xe&&Tr(Xe,"lineWidgetAdded",Xe,Oe,typeof te=="number"?te:Er(te)),Oe}var Io=0,Uo=function(E,te){this.lines=[],this.type=te,this.doc=E,this.id=++Io};Uo.prototype.clear=function(){if(!this.explicitlyCleared){var E=this.doc.cm,te=E&&!E.curOp;if(te&&nc(E),an(this,"clear")){var be=this.find();be&&Tr(this,"clear",be.from,be.to)}for(var ge=null,Oe=null,Xe=0;Xe<this.lines.length;++Xe){var ct=this.lines[Xe],Mt=or(ct.markedSpans,this);E&&!this.collapsed?fo(E,Er(ct),"text"):E&&(Mt.to!=null&&(Oe=Er(ct)),Mt.from!=null&&(ge=Er(ct))),ct.markedSpans=xr(ct.markedSpans,Mt),Mt.from==null&&this.collapsed&&!qn(this.doc,ct)&&E&&Ir(ct,Wo(E.display))}if(E&&this.collapsed&&!E.options.lineWrapping)for(var Tt=0;Tt<this.lines.length;++Tt){var $t=Bt(this.lines[Tt]),mn=Bn($t);mn>E.display.maxLineLength&&(E.display.maxLine=$t,E.display.maxLineLength=mn,E.display.maxLineChanged=!0)}ge!=null&&E&&this.collapsed&&Aa(E,ge,Oe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,E&&Si(E.doc)),E&&Tr(E,"markerCleared",E,this,ge,Oe),te&&rc(E),this.parent&&this.parent.clear()}},Uo.prototype.find=function(E,te){E==null&&this.type=="bookmark"&&(E=1);for(var be,ge,Oe=0;Oe<this.lines.length;++Oe){var Xe=this.lines[Oe],ct=or(Xe.markedSpans,this);if(ct.from!=null&&(be=Jt(te?Xe:Er(Xe),ct.from),E==-1))return be;if(ct.to!=null&&(ge=Jt(te?Xe:Er(Xe),ct.to),E==1))return ge}return be&&{from:be,to:ge}},Uo.prototype.changed=function(){var E=this,te=this.find(-1,!0),be=this,ge=this.doc.cm;!te||!ge||uo(ge,function(){var Oe=te.line,Xe=Er(te.line),ct=Za(ge,Xe);if(ct&&(Ra(ct),ge.curOp.selectionChanged=ge.curOp.forceUpdate=!0),ge.curOp.updateMaxLine=!0,!qn(be.doc,Oe)&&be.height!=null){var Mt=be.height;be.height=null;var Tt=pa(be)-Mt;Tt&&Ir(Oe,Oe.height+Tt)}Tr(ge,"markerChanged",ge,E)})},Uo.prototype.attachLine=function(E){if(!this.lines.length&&this.doc.cm){var te=this.doc.cm.curOp;(!te.maybeHiddenMarkers||pt(te.maybeHiddenMarkers,this)==-1)&&(te.maybeUnhiddenMarkers||(te.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(E)},Uo.prototype.detachLine=function(E){if(this.lines.splice(pt(this.lines,E),1),!this.lines.length&&this.doc.cm){var te=this.doc.cm.curOp;(te.maybeHiddenMarkers||(te.maybeHiddenMarkers=[])).push(this)}},fn(Uo);function No(E,te,be,ge,Oe){if(ge&&ge.shared)return Ti(E,te,be,ge,Oe);if(E.cm&&!E.cm.curOp)return Ko(E.cm,No)(E,te,be,ge,Oe);var Xe=new Uo(E,Oe),ct=pn(te,be);if(ge&&yt(ge,Xe,!1),ct>0||ct==0&&Xe.clearWhenEmpty!==!1)return Xe;if(Xe.replacedWith&&(Xe.collapsed=!0,Xe.widgetNode=Pe("span",[Xe.replacedWith],"CodeMirror-widget"),ge.handleMouseEvents||Xe.widgetNode.setAttribute("cm-ignore-events","true"),ge.insertLeft&&(Xe.widgetNode.insertLeft=!0)),Xe.collapsed){if(At(E,te.line,te,be,Xe)||te.line!=be.line&&At(E,be.line,te,be,Xe))throw new Error("Inserting collapsed marker partially overlapping an existing one");dn()}Xe.addToHistory&<(E,{from:te,to:be,origin:"markText"},E.sel,NaN);var Mt=te.line,Tt=E.cm,$t;if(E.iter(Mt,be.line+1,function(kn){Tt&&Xe.collapsed&&!Tt.options.lineWrapping&&Bt(kn)==Tt.display.maxLine&&($t=!0),Xe.collapsed&&Mt!=te.line&&Ir(kn,0),Wr(kn,new Kn(Xe,Mt==te.line?te.ch:null,Mt==be.line?be.ch:null)),++Mt}),Xe.collapsed&&E.iter(te.line,be.line+1,function(kn){qn(E,kn)&&Ir(kn,0)}),Xe.clearOnEnter&&Vt(Xe,"beforeCursorEnter",function(){return Xe.clear()}),Xe.readOnly&&(yn(),(E.history.done.length||E.history.undone.length)&&E.clearHistory()),Xe.collapsed&&(Xe.id=++Io,Xe.atomic=!0),Tt){if($t&&(Tt.curOp.updateMaxLine=!0),Xe.collapsed)Aa(Tt,te.line,be.line+1);else if(Xe.className||Xe.startStyle||Xe.endStyle||Xe.css||Xe.attributes||Xe.title)for(var mn=te.line;mn<=be.line;mn++)fo(Tt,mn,"text");Xe.atomic&&Si(Tt.doc),Tr(Tt,"markerAdded",Tt,Xe)}return Xe}var $a=function(E,te){this.markers=E,this.primary=te;for(var be=0;be<E.length;++be)E[be].parent=this};$a.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var E=0;E<this.markers.length;++E)this.markers[E].clear();Tr(this,"clear")}},$a.prototype.find=function(E,te){return this.primary.find(E,te)},fn($a);function Ti(E,te,be,ge,Oe){ge=yt(ge),ge.shared=!1;var Xe=[No(E,te,be,ge,Oe)],ct=Xe[0],Mt=ge.widgetNode;return pc(E,function(Tt){Mt&&(ge.widgetNode=Mt.cloneNode(!0)),Xe.push(No(Tt,Sr(Tt,te),Sr(Tt,be),ge,Oe));for(var $t=0;$t<Tt.linked.length;++$t)if(Tt.linked[$t].isParent)return;ct=Lt(Xe)}),new $a(Xe,ct)}function da(E){return E.findMarks(Jt(E.first,0),E.clipPos(Jt(E.lastLine())),function(te){return te.parent})}function Ca(E,te){for(var be=0;be<te.length;be++){var ge=te[be],Oe=ge.find(),Xe=E.clipPos(Oe.from),ct=E.clipPos(Oe.to);if(pn(Xe,ct)){var Mt=No(E,Xe,ct,ge.primary,ge.primary.type);ge.markers.push(Mt),Mt.parent=ge}}}function Wi(E){for(var te=function(ge){var Oe=E[ge],Xe=[Oe.primary.doc];pc(Oe.primary.doc,function(Tt){return Xe.push(Tt)});for(var ct=0;ct<Oe.markers.length;ct++){var Mt=Oe.markers[ct];pt(Xe,Mt.doc)==-1&&(Mt.parent=null,Oe.markers.splice(ct--,1))}},be=0;be<E.length;be++)te(be)}var Do=0,Mi=function(E,te,be,ge,Oe){if(!(this instanceof Mi))return new Mi(E,te,be,ge,Oe);be==null&&(be=0),es.call(this,[new ao([new Xn("",null)])]),this.first=be,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=be;var Xe=Jt(be,0);this.sel=ac(Xe),this.history=new hu(null),this.id=++Do,this.modeOption=te,this.lineSep=ge,this.direction=Oe=="rtl"?"rtl":"ltr",this.extend=!1,typeof E=="string"&&(E=this.splitLines(E)),Ou(this,{from:Xe,to:Xe,text:E}),Kr(this,ac(Xe),nt)};Mi.prototype=de(es.prototype,{constructor:Mi,iter:function(E,te,be){be?this.iterN(E-this.first,te-E,be):this.iterN(this.first,this.first+this.size,E)},insert:function(E,te){for(var be=0,ge=0;ge<te.length;++ge)be+=te[ge].height;this.insertInner(E-this.first,te,be)},remove:function(E,te){this.removeInner(E-this.first,te)},getValue:function(E){var te=Zr(this,this.first,this.first+this.size);return E===!1?te:te.join(E||this.lineSeparator())},setValue:Ss(function(E){var te=Jt(this.first,0),be=this.first+this.size-1;Hi(this,{from:te,to:Jt(be,Un(this,be).text.length),text:this.splitLines(E),origin:"setValue",full:!0},!0),this.cm&&ec(this.cm,0,0),Kr(this,ac(te),nt)}),replaceRange:function(E,te,be,ge){te=Sr(this,te),be=be?Sr(this,be):te,ja(this,E,te,be,ge)},getRange:function(E,te,be){var ge=kr(this,Sr(this,E),Sr(this,te));return be===!1?ge:ge.join(be||this.lineSeparator())},getLine:function(E){var te=this.getLineHandle(E);return te&&te.text},getLineHandle:function(E){if(Pr(this,E))return Un(this,E)},getLineNumber:function(E){return Er(E)},getLineHandleVisualStart:function(E){return typeof E=="number"&&(E=Un(this,E)),Bt(E)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(E){return Sr(this,E)},getCursor:function(E){var te=this.sel.primary(),be;return E==null||E=="head"?be=te.head:E=="anchor"?be=te.anchor:E=="end"||E=="to"||E===!1?be=te.to():be=te.from(),be},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ss(function(E,te,be){jr(this,Sr(this,typeof E=="number"?Jt(E,te||0):E),null,be)}),setSelection:Ss(function(E,te,be){jr(this,Sr(this,E),Sr(this,te||E),be)}),extendSelection:Ss(function(E,te,be){mr(this,Sr(this,E),te&&Sr(this,te),be)}),extendSelections:Ss(function(E,te){En(this,In(this,E),te)}),extendSelectionsBy:Ss(function(E,te){var be=dt(this.sel.ranges,E);En(this,In(this,be),te)}),setSelections:Ss(function(E,te,be){if(E.length){for(var ge=[],Oe=0;Oe<E.length;Oe++)ge[Oe]=new Go(Sr(this,E[Oe].anchor),Sr(this,E[Oe].head));te==null&&(te=Math.min(E.length-1,this.sel.primIndex)),Kr(this,ic(this.cm,ge,te),be)}}),addSelection:Ss(function(E,te,be){var ge=this.sel.ranges.slice(0);ge.push(new Go(Sr(this,E),Sr(this,te||E))),Kr(this,ic(this.cm,ge,ge.length-1),be)}),getSelection:function(E){for(var te=this.sel.ranges,be,ge=0;ge<te.length;ge++){var Oe=kr(this,te[ge].from(),te[ge].to());be=be?be.concat(Oe):Oe}return E===!1?be:be.join(E||this.lineSeparator())},getSelections:function(E){for(var te=[],be=this.sel.ranges,ge=0;ge<be.length;ge++){var Oe=kr(this,be[ge].from(),be[ge].to());E!==!1&&(Oe=Oe.join(E||this.lineSeparator())),te[ge]=Oe}return te},replaceSelection:function(E,te,be){for(var ge=[],Oe=0;Oe<this.sel.ranges.length;Oe++)ge[Oe]=E;this.replaceSelections(ge,te,be||"+input")},replaceSelections:Ss(function(E,te,be){for(var ge=[],Oe=this.sel,Xe=0;Xe<Oe.ranges.length;Xe++){var ct=Oe.ranges[Xe];ge[Xe]={from:ct.from(),to:ct.to(),text:this.splitLines(E[Xe]),origin:be}}for(var Mt=te&&te!="end"&&nd(this,ge,te),Tt=ge.length-1;Tt>=0;Tt--)Hi(this,ge[Tt]);Mt?Yr(this,Mt):this.cm&&al(this.cm)}),undo:Ss(function(){di(this,"undo")}),redo:Ss(function(){di(this,"redo")}),undoSelection:Ss(function(){di(this,"undo",!0)}),redoSelection:Ss(function(){di(this,"redo",!0)}),setExtending:function(E){this.extend=E},getExtending:function(){return this.extend},historySize:function(){for(var E=this.history,te=0,be=0,ge=0;ge<E.done.length;ge++)E.done[ge].ranges||++te;for(var Oe=0;Oe<E.undone.length;Oe++)E.undone[Oe].ranges||++be;return{undo:te,redo:be}},clearHistory:function(){var E=this;this.history=new hu(this.history.maxGeneration),pc(this,function(te){return te.history=E.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(E){return E&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(E){return this.history.generation==(E||this.cleanGeneration)},getHistory:function(){return{done:Rn(this.history.done),undone:Rn(this.history.undone)}},setHistory:function(E){var te=this.history=new hu(this.history.maxGeneration);te.done=Rn(E.done.slice(0),null,!0),te.undone=Rn(E.undone.slice(0),null,!0)},setGutterMarker:Ss(function(E,te,be){return zo(this,E,"gutter",function(ge){var Oe=ge.gutterMarkers||(ge.gutterMarkers={});return Oe[te]=be,!be&&Ee(Oe)&&(ge.gutterMarkers=null),!0})}),clearGutter:Ss(function(E){var te=this;this.iter(function(be){be.gutterMarkers&&be.gutterMarkers[E]&&zo(te,be,"gutter",function(){return be.gutterMarkers[E]=null,Ee(be.gutterMarkers)&&(be.gutterMarkers=null),!0})})}),lineInfo:function(E){var te;if(typeof E=="number"){if(!Pr(this,E)||(te=E,E=Un(this,E),!E))return null}else if(te=Er(E),te==null)return null;return{line:te,handle:E,text:E.text,gutterMarkers:E.gutterMarkers,textClass:E.textClass,bgClass:E.bgClass,wrapClass:E.wrapClass,widgets:E.widgets}},addLineClass:Ss(function(E,te,be){return zo(this,E,te=="gutter"?"gutter":"class",function(ge){var Oe=te=="text"?"textClass":te=="background"?"bgClass":te=="gutter"?"gutterClass":"wrapClass";if(!ge[Oe])ge[Oe]=be;else{if(we(be).test(ge[Oe]))return!1;ge[Oe]+=" "+be}return!0})}),removeLineClass:Ss(function(E,te,be){return zo(this,E,te=="gutter"?"gutter":"class",function(ge){var Oe=te=="text"?"textClass":te=="background"?"bgClass":te=="gutter"?"gutterClass":"wrapClass",Xe=ge[Oe];if(Xe)if(be==null)ge[Oe]=null;else{var ct=Xe.match(we(be));if(!ct)return!1;var Mt=ct.index+ct[0].length;ge[Oe]=Xe.slice(0,ct.index)+(!ct.index||Mt==Xe.length?"":" ")+Xe.slice(Mt)||null}else return!1;return!0})}),addLineWidget:Ss(function(E,te,be){return Ts(this,E,te,be)}),removeLineWidget:function(E){E.clear()},markText:function(E,te,be){return No(this,Sr(this,E),Sr(this,te),be,be&&be.type||"range")},setBookmark:function(E,te){var be={replacedWith:te&&(te.nodeType==null?te.widget:te),insertLeft:te&&te.insertLeft,clearWhenEmpty:!1,shared:te&&te.shared,handleMouseEvents:te&&te.handleMouseEvents};return E=Sr(this,E),No(this,E,E,be,"bookmark")},findMarksAt:function(E){E=Sr(this,E);var te=[],be=Un(this,E.line).markedSpans;if(be)for(var ge=0;ge<be.length;++ge){var Oe=be[ge];(Oe.from==null||Oe.from<=E.ch)&&(Oe.to==null||Oe.to>=E.ch)&&te.push(Oe.marker.parent||Oe.marker)}return te},findMarks:function(E,te,be){E=Sr(this,E),te=Sr(this,te);var ge=[],Oe=E.line;return this.iter(E.line,te.line+1,function(Xe){var ct=Xe.markedSpans;if(ct)for(var Mt=0;Mt<ct.length;Mt++){var Tt=ct[Mt];!(Tt.to!=null&&Oe==E.line&&E.ch>=Tt.to||Tt.from==null&&Oe!=E.line||Tt.from!=null&&Oe==te.line&&Tt.from>=te.ch)&&(!be||be(Tt.marker))&&ge.push(Tt.marker.parent||Tt.marker)}++Oe}),ge},getAllMarks:function(){var E=[];return this.iter(function(te){var be=te.markedSpans;if(be)for(var ge=0;ge<be.length;++ge)be[ge].from!=null&&E.push(be[ge].marker)}),E},posFromIndex:function(E){var te,be=this.first,ge=this.lineSeparator().length;return this.iter(function(Oe){var Xe=Oe.text.length+ge;if(Xe>E)return te=E,!0;E-=Xe,++be}),Sr(this,Jt(be,te))},indexFromPos:function(E){E=Sr(this,E);var te=E.ch;if(E.line<this.first||E.ch<0)return 0;var be=this.lineSeparator().length;return this.iter(this.first,E.line,function(ge){te+=ge.text.length+be}),te},copy:function(E){var te=new Mi(Zr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return te.scrollTop=this.scrollTop,te.scrollLeft=this.scrollLeft,te.sel=this.sel,te.extend=!1,E&&(te.history.undoDepth=this.history.undoDepth,te.setHistory(this.getHistory())),te},linkedDoc:function(E){E||(E={});var te=this.first,be=this.first+this.size;E.from!=null&&E.from>te&&(te=E.from),E.to!=null&&E.to<be&&(be=E.to);var ge=new Mi(Zr(this,te,be),E.mode||this.modeOption,te,this.lineSep,this.direction);return E.sharedHist&&(ge.history=this.history),(this.linked||(this.linked=[])).push({doc:ge,sharedHist:E.sharedHist}),ge.linked=[{doc:this,isParent:!0,sharedHist:E.sharedHist}],Ca(ge,da(this)),ge},unlinkDoc:function(E){if(E instanceof Wa&&(E=E.doc),this.linked)for(var te=0;te<this.linked.length;++te){var be=this.linked[te];if(be.doc==E){this.linked.splice(te,1),E.unlinkDoc(this),Wi(da(this));break}}if(E.history==this.history){var ge=[E.id];pc(E,function(Oe){return ge.push(Oe.id)},!0),E.history=new hu(null),E.history.done=Rn(this.history.done,ge),E.history.undone=Rn(this.history.undone,ge)}},iterLinkedDocs:function(E){pc(this,E)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(E){return this.lineSep?E.split(this.lineSep):cn(E)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Ss(function(E){E!="rtl"&&(E="ltr"),E!=this.direction&&(this.direction=E,this.iter(function(te){return te.order=null}),this.cm&&Iu(this.cm))})}),Mi.prototype.eachLine=Mi.prototype.iter;var Ka=0;function To(E){var te=this;if(As(te),!(xt(te,E)||Vi(te.display,E))){Tn(E),pe&&(Ka=+new Date);var be=$s(te,E,!0),ge=E.dataTransfer.files;if(!(!be||te.isReadOnly()))if(ge&&ge.length&&window.FileReader&&window.File)for(var Oe=ge.length,Xe=Array(Oe),ct=0,Mt=function(){++ct==Oe&&Ko(te,function(){be=Sr(te.doc,be);var nr={from:be,to:be,text:te.doc.splitLines(Xe.filter(function(Fr){return Fr!=null}).join(te.doc.lineSeparator())),origin:"paste"};Hi(te.doc,nr),Yr(te.doc,ac(Sr(te.doc,be),Sr(te.doc,Cc(nr))))})()},Tt=function(nr,Fr){if(te.options.allowDropFileTypes&&pt(te.options.allowDropFileTypes,nr.type)==-1){Mt();return}var Jr=new FileReader;Jr.onerror=function(){return Mt()},Jr.onload=function(){var yi=Jr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(yi)){Mt();return}Xe[Fr]=yi,Mt()},Jr.readAsText(nr)},$t=0;$t<ge.length;$t++)Tt(ge[$t],$t);else{if(te.state.draggingText&&te.doc.sel.contains(be)>-1){te.state.draggingText(E),setTimeout(function(){return te.display.input.focus()},20);return}try{var mn=E.dataTransfer.getData("Text");if(mn){var kn;if(te.state.draggingText&&!te.state.draggingText.copy&&(kn=te.listSelections()),ci(te.doc,ac(be,be)),kn)for(var ur=0;ur<kn.length;++ur)ja(te.doc,"",kn[ur].anchor,kn[ur].head,"drag");te.replaceSelection(mn,"around","paste"),te.display.input.focus()}}catch(nr){}}}}function wo(E,te){if(pe&&(!E.state.draggingText||+new Date-Ka<100)){Ar(te);return}if(!(xt(E,te)||Vi(E.display,te))&&(te.dataTransfer.setData("Text",E.getSelection()),te.dataTransfer.effectAllowed="copyMove",te.dataTransfer.setDragImage&&!me)){var be=Ie("img",null,null,"position: fixed; left: 0; top: 0;");be.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",se&&(be.width=be.height=1,E.display.wrapper.appendChild(be),be._top=be.offsetTop),te.dataTransfer.setDragImage(be,0,0),se&&be.parentNode.removeChild(be)}}function sl(E,te){var be=$s(E,te);if(be){var ge=document.createDocumentFragment();Xa(E,be,ge),E.display.dragCursor||(E.display.dragCursor=Ie("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),E.display.lineSpace.insertBefore(E.display.dragCursor,E.display.cursorDiv)),De(E.display.dragCursor,ge)}}function As(E){E.display.dragCursor&&(E.display.lineSpace.removeChild(E.display.dragCursor),E.display.dragCursor=null)}function Ml(E){if(document.getElementsByClassName){for(var te=document.getElementsByClassName("CodeMirror"),be=[],ge=0;ge<te.length;ge++){var Oe=te[ge].CodeMirror;Oe&&be.push(Oe)}be.length&&be[0].operation(function(){for(var Xe=0;Xe<be.length;Xe++)E(be[Xe])})}}var Hr=!1;function $l(){Hr||(Cs(),Hr=!0)}function Cs(){var E;Vt(window,"resize",function(){E==null&&(E=setTimeout(function(){E=null,Ml(hl)},100))}),Vt(window,"blur",function(){return Ml(il)})}function hl(E){var te=E.display;te.cachedCharWidth=te.cachedTextHeight=te.cachedPaddingH=null,te.scrollbarsClipped=!1,E.setSize()}for(var bl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ao=0;Ao<10;Ao++)bl[Ao+48]=bl[Ao+96]=String(Ao);for(var Ro=65;Ro<=90;Ro++)bl[Ro]=String.fromCharCode(Ro);for(var ns=1;ns<=12;ns++)bl[ns+111]=bl[ns+63235]="F"+ns;var Ya={};Ya.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ya.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ya.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ya.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ya.default=oe?Ya.macDefault:Ya.pcDefault;function Ns(E){var te=E.split(/-(?!$)/);E=te[te.length-1];for(var be,ge,Oe,Xe,ct=0;ct<te.length-1;ct++){var Mt=te[ct];if(/^(cmd|meta|m)$/i.test(Mt))Xe=!0;else if(/^a(lt)?$/i.test(Mt))be=!0;else if(/^(c|ctrl|control)$/i.test(Mt))ge=!0;else if(/^s(hift)?$/i.test(Mt))Oe=!0;else throw new Error("Unrecognized modifier name: "+Mt)}return be&&(E="Alt-"+E),ge&&(E="Ctrl-"+E),Xe&&(E="Cmd-"+E),Oe&&(E="Shift-"+E),E}function oo(E){var te={};for(var be in E)if(E.hasOwnProperty(be)){var ge=E[be];if(/^(name|fallthrough|(de|at)tach)$/.test(be))continue;if(ge=="..."){delete E[be];continue}for(var Oe=dt(be.split(" "),Ns),Xe=0;Xe<Oe.length;Xe++){var ct=void 0,Mt=void 0;Xe==Oe.length-1?(Mt=Oe.join(" "),ct=ge):(Mt=Oe.slice(0,Xe+1).join(" "),ct="...");var Tt=te[Mt];if(!Tt)te[Mt]=ct;else if(Tt!=ct)throw new Error("Inconsistent bindings for "+Mt)}delete E[be]}for(var $t in te)E[$t]=te[$t];return E}function Os(E,te,be,ge){te=Es(te);var Oe=te.call?te.call(E,ge):te[E];if(Oe===!1)return"nothing";if(Oe==="...")return"multi";if(Oe!=null&&be(Oe))return"handled";if(te.fallthrough){if(Object.prototype.toString.call(te.fallthrough)!="[object Array]")return Os(E,te.fallthrough,be,ge);for(var Xe=0;Xe<te.fallthrough.length;Xe++){var ct=Os(E,te.fallthrough[Xe],be,ge);if(ct)return ct}}}function Ks(E){var te=typeof E=="string"?E:bl[E.keyCode];return te=="Ctrl"||te=="Alt"||te=="Shift"||te=="Mod"}function Us(E,te,be){var ge=E;return te.altKey&&ge!="Alt"&&(E="Alt-"+E),(_e?te.metaKey:te.ctrlKey)&&ge!="Ctrl"&&(E="Ctrl-"+E),(_e?te.ctrlKey:te.metaKey)&&ge!="Mod"&&(E="Cmd-"+E),!be&&te.shiftKey&&ge!="Shift"&&(E="Shift-"+E),E}function kl(E,te){if(se&&E.keyCode==34&&E.char)return!1;var be=bl[E.keyCode];return be==null||E.altGraphKey?!1:(E.keyCode==3&&E.code&&(be=E.code),Us(be,E,te))}function Es(E){return typeof E=="string"?Ya[E]:E}function _l(E,te){for(var be=E.doc.sel.ranges,ge=[],Oe=0;Oe<be.length;Oe++){for(var Xe=te(be[Oe]);ge.length&&pn(Xe.from,Lt(ge).to)<=0;){var ct=ge.pop();if(pn(ct.from,Xe.from)<0){Xe.from=ct.from;break}}ge.push(Xe)}uo(E,function(){for(var Mt=ge.length-1;Mt>=0;Mt--)ja(E.doc,"",ge[Mt].from,ge[Mt].to,"+delete");al(E)})}function Ms(E,te,be){var ge=Ge(E.text,te+be,be);return ge<0||ge>E.text.length?null:ge}function Hs(E,te,be){var ge=Ms(E,te.ch,be);return ge==null?null:new Jt(te.line,ge,be<0?"after":"before")}function Ws(E,te,be,ge,Oe){if(E){te.doc.direction=="rtl"&&(Oe=-Oe);var Xe=Wt(be,te.doc.direction);if(Xe){var ct=Oe<0?Lt(Xe):Xe[0],Mt=Oe<0==(ct.level==1),Tt=Mt?"after":"before",$t;if(ct.level>0||te.doc.direction=="rtl"){var mn=La(te,be);$t=Oe<0?be.text.length-1:0;var kn=ua(te,mn,$t).top;$t=it(function(ur){return ua(te,mn,ur).top==kn},Oe<0==(ct.level==1)?ct.from:ct.to-1,$t),Tt=="before"&&($t=Ms(be,$t,1))}else $t=Oe<0?ct.to:ct.from;return new Jt(ge,$t,Tt)}}return new Jt(ge,Oe<0?be.text.length:0,Oe<0?"before":"after")}function ks(E,te,be,ge){var Oe=Wt(te,E.doc.direction);if(!Oe)return Hs(te,be,ge);be.ch>=te.text.length?(be.ch=te.text.length,be.sticky="before"):be.ch<=0&&(be.ch=0,be.sticky="after");var Xe=kt(Oe,be.ch,be.sticky),ct=Oe[Xe];if(E.doc.direction=="ltr"&&ct.level%2==0&&(ge>0?ct.to>be.ch:ct.from<be.ch))return Hs(te,be,ge);var Mt=function($i,Qi){return Ms(te,$i instanceof Jt?$i.ch:$i,Qi)},Tt,$t=function($i){return E.options.lineWrapping?(Tt=Tt||La(E,te),Lo(E,te,Tt,$i)):{begin:0,end:te.text.length}},mn=$t(be.sticky=="before"?Mt(be,-1):be.ch);if(E.doc.direction=="rtl"||ct.level==1){var kn=ct.level==1==ge<0,ur=Mt(be,kn?1:-1);if(ur!=null&&(kn?ur<=ct.to&&ur<=mn.end:ur>=ct.from&&ur>=mn.begin)){var nr=kn?"before":"after";return new Jt(be.line,ur,nr)}}var Fr=function($i,Qi,Ai){for(var ia=function(gs,wl){return wl?new Jt(be.line,Mt(gs,1),"before"):new Jt(be.line,gs,"after")};$i>=0&&$i<Oe.length;$i+=Qi){var Pa=Oe[$i],Ba=Qi>0==(Pa.level!=1),Eo=Ba?Ai.begin:Mt(Ai.end,-1);if(Pa.from<=Eo&&Eo<Pa.to||(Eo=Ba?Pa.from:Mt(Pa.to,-1),Ai.begin<=Eo&&Eo<Ai.end))return ia(Eo,Ba)}},Jr=Fr(Xe+ge,ge,mn);if(Jr)return Jr;var yi=ge>0?mn.end:Mt(mn.begin,-1);return yi!=null&&!(ge>0&&yi==te.text.length)&&(Jr=Fr(ge>0?0:Oe.length-1,ge,$t(yi)),Jr)?Jr:null}var ms={selectAll:Ua,singleSelection:function(E){return E.setSelection(E.getCursor("anchor"),E.getCursor("head"),nt)},killLine:function(E){return _l(E,function(te){if(te.empty()){var be=Un(E.doc,te.head.line).text.length;return te.head.ch==be&&te.head.line<E.lastLine()?{from:te.head,to:Jt(te.head.line+1,0)}:{from:te.head,to:Jt(te.head.line,be)}}else return{from:te.from(),to:te.to()}})},deleteLine:function(E){return _l(E,function(te){return{from:Jt(te.from().line,0),to:Sr(E.doc,Jt(te.to().line+1,0))}})},delLineLeft:function(E){return _l(E,function(te){return{from:Jt(te.from().line,0),to:te.from()}})},delWrappedLineLeft:function(E){return _l(E,function(te){var be=E.charCoords(te.head,"div").top+5,ge=E.coordsChar({left:0,top:be},"div");return{from:ge,to:te.from()}})},delWrappedLineRight:function(E){return _l(E,function(te){var be=E.charCoords(te.head,"div").top+5,ge=E.coordsChar({left:E.display.lineDiv.offsetWidth+100,top:be},"div");return{from:te.from(),to:ge}})},undo:function(E){return E.undo()},redo:function(E){return E.redo()},undoSelection:function(E){return E.undoSelection()},redoSelection:function(E){return E.redoSelection()},goDocStart:function(E){return E.extendSelection(Jt(E.firstLine(),0))},goDocEnd:function(E){return E.extendSelection(Jt(E.lastLine()))},goLineStart:function(E){return E.extendSelectionsBy(function(te){return ls(E,te.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(E){return E.extendSelectionsBy(function(te){return Ec(E,te.head)},{origin:"+move",bias:1})},goLineEnd:function(E){return E.extendSelectionsBy(function(te){return Yl(E,te.head.line)},{origin:"+move",bias:-1})},goLineRight:function(E){return E.extendSelectionsBy(function(te){var be=E.cursorCoords(te.head,"div").top+5;return E.coordsChar({left:E.display.lineDiv.offsetWidth+100,top:be},"div")},rt)},goLineLeft:function(E){return E.extendSelectionsBy(function(te){var be=E.cursorCoords(te.head,"div").top+5;return E.coordsChar({left:0,top:be},"div")},rt)},goLineLeftSmart:function(E){return E.extendSelectionsBy(function(te){var be=E.cursorCoords(te.head,"div").top+5,ge=E.coordsChar({left:0,top:be},"div");return ge.ch<E.getLine(ge.line).search(/\S/)?Ec(E,te.head):ge},rt)},goLineUp:function(E){return E.moveV(-1,"line")},goLineDown:function(E){return E.moveV(1,"line")},goPageUp:function(E){return E.moveV(-1,"page")},goPageDown:function(E){return E.moveV(1,"page")},goCharLeft:function(E){return E.moveH(-1,"char")},goCharRight:function(E){return E.moveH(1,"char")},goColumnLeft:function(E){return E.moveH(-1,"column")},goColumnRight:function(E){return E.moveH(1,"column")},goWordLeft:function(E){return E.moveH(-1,"word")},goGroupRight:function(E){return E.moveH(1,"group")},goGroupLeft:function(E){return E.moveH(-1,"group")},goWordRight:function(E){return E.moveH(1,"word")},delCharBefore:function(E){return E.deleteH(-1,"codepoint")},delCharAfter:function(E){return E.deleteH(1,"char")},delWordBefore:function(E){return E.deleteH(-1,"word")},delWordAfter:function(E){return E.deleteH(1,"word")},delGroupBefore:function(E){return E.deleteH(-1,"group")},delGroupAfter:function(E){return E.deleteH(1,"group")},indentAuto:function(E){return E.indentSelection("smart")},indentMore:function(E){return E.indentSelection("add")},indentLess:function(E){return E.indentSelection("subtract")},insertTab:function(E){return E.replaceSelection(" ")},insertSoftTab:function(E){for(var te=[],be=E.listSelections(),ge=E.options.tabSize,Oe=0;Oe<be.length;Oe++){var Xe=be[Oe].from(),ct=Ve(E.getLine(Xe.line),Xe.ch,ge);te.push(Pt(ge-ct%ge))}E.replaceSelections(te)},defaultTab:function(E){E.somethingSelected()?E.indentSelection("add"):E.execCommand("insertTab")},transposeChars:function(E){return uo(E,function(){for(var te=E.listSelections(),be=[],ge=0;ge<te.length;ge++)if(te[ge].empty()){var Oe=te[ge].head,Xe=Un(E.doc,Oe.line).text;if(Xe){if(Oe.ch==Xe.length&&(Oe=new Jt(Oe.line,Oe.ch-1)),Oe.ch>0)Oe=new Jt(Oe.line,Oe.ch+1),E.replaceRange(Xe.charAt(Oe.ch-1)+Xe.charAt(Oe.ch-2),Jt(Oe.line,Oe.ch-2),Oe,"+transpose");else if(Oe.line>E.doc.first){var ct=Un(E.doc,Oe.line-1).text;ct&&(Oe=new Jt(Oe.line,1),E.replaceRange(Xe.charAt(0)+E.doc.lineSeparator()+ct.charAt(ct.length-1),Jt(Oe.line-1,ct.length-1),Oe,"+transpose"))}}be.push(new Go(Oe,Oe))}E.setSelections(be)})},newlineAndIndent:function(E){return uo(E,function(){for(var te=E.listSelections(),be=te.length-1;be>=0;be--)E.replaceRange(E.doc.lineSeparator(),te[be].anchor,te[be].head,"+input");te=E.listSelections();for(var ge=0;ge<te.length;ge++)E.indentLine(te[ge].from().line,null,!0);al(E)})},openLine:function(E){return E.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(E){return E.toggleOverwrite()}};function ls(E,te){var be=Un(E.doc,te),ge=Bt(be);return ge!=be&&(te=Er(ge)),Ws(!0,E,ge,te,1)}function Yl(E,te){var be=Un(E.doc,te),ge=Ft(be);return ge!=be&&(te=Er(ge)),Ws(!0,E,be,te,-1)}function Ec(E,te){var be=ls(E,te.line),ge=Un(E.doc,be.line),Oe=Wt(ge,E.doc.direction);if(!Oe||Oe[0].level==0){var Xe=Math.max(be.ch,ge.text.search(/\S/)),ct=te.line==be.line&&te.ch<=Xe&&te.ch;return Jt(be.line,ct?0:Xe,be.sticky)}return be}function hs(E,te,be){if(typeof te=="string"&&(te=ms[te],!te))return!1;E.display.input.ensurePolled();var ge=E.display.shift,Oe=!1;try{E.isReadOnly()&&(E.state.suppressEdits=!0),be&&(E.display.shift=!1),Oe=te(E)!=ft}finally{E.display.shift=ge,E.state.suppressEdits=!1}return Oe}function ll(E,te,be){for(var ge=0;ge<E.state.keyMaps.length;ge++){var Oe=Os(te,E.state.keyMaps[ge],be,E);if(Oe)return Oe}return E.options.extraKeys&&Os(te,E.options.extraKeys,be,E)||Os(te,E.options.keyMap,be,E)}var Pu=new Qe;function Mc(E,te,be,ge){var Oe=E.state.keySeq;if(Oe){if(Ks(te))return"handled";if(/\'$/.test(te)?E.state.keySeq=null:Pu.set(50,function(){E.state.keySeq==Oe&&(E.state.keySeq=null,E.display.input.reset())}),vo(E,Oe+" "+te,be,ge))return!0}return vo(E,te,be,ge)}function vo(E,te,be,ge){var Oe=ll(E,te,ge);return Oe=="multi"&&(E.state.keySeq=te),Oe=="handled"&&Tr(E,"keyHandled",E,te,be),(Oe=="handled"||Oe=="multi")&&(Tn(be),ha(E)),!!Oe}function va(E,te){var be=kl(te,!0);return be?te.shiftKey&&!E.state.keySeq?Mc(E,"Shift-"+be,te,function(ge){return hs(E,ge,!0)})||Mc(E,be,te,function(ge){if(typeof ge=="string"?/^go[A-Z]/.test(ge):ge.motion)return hs(E,ge)}):Mc(E,be,te,function(ge){return hs(E,ge)}):!1}function Ls(E,te,be){return Mc(E,"'"+be+"'",te,function(ge){return hs(E,ge,!0)})}var Ho=null;function Zs(E){var te=this;if(!(E.target&&E.target!=te.display.input.getField())&&(te.curOp.focus=Be(),!xt(te,E))){pe&&ne<11&&E.keyCode==27&&(E.returnValue=!1);var be=E.keyCode;te.display.shift=be==16||E.shiftKey;var ge=va(te,E);se&&(Ho=ge?be:null,!ge&&be==88&&!sr&&(oe?E.metaKey:E.ctrlKey)&&te.replaceSelection("",null,"cut")),Ue&&!oe&&!ge&&be==46&&E.shiftKey&&!E.ctrlKey&&document.execCommand&&document.execCommand("cut"),be==18&&!/\bCodeMirror-crosshair\b/.test(te.display.lineDiv.className)&&Or(te)}}function Or(E){var te=E.display.lineDiv;He(te,"CodeMirror-crosshair");function be(ge){(ge.keyCode==18||!ge.altKey)&&(Ne(te,"CodeMirror-crosshair"),sn(document,"keyup",be),sn(document,"mouseover",be))}Vt(document,"keyup",be),Vt(document,"mouseover",be)}function Tl(E){E.keyCode==16&&(this.doc.sel.shift=!1),xt(this,E)}function cc(E){var te=this;if(!(E.target&&E.target!=te.display.input.getField())&&!(Vi(te.display,E)||xt(te,E)||E.ctrlKey&&!E.altKey||oe&&E.metaKey)){var be=E.keyCode,ge=E.charCode;if(se&&be==Ho){Ho=null,Tn(E);return}if(!(se&&(!E.which||E.which<10)&&va(te,E))){var Oe=String.fromCharCode(ge==null?be:ge);Oe!="\b"&&(Ls(te,E,Oe)||te.display.input.onKeyPress(E))}}}var Lu=400,ad=function(E,te,be){this.time=E,this.pos=te,this.button=be};ad.prototype.compare=function(E,te,be){return this.time+Lu>E&&pn(te,this.pos)==0&&be==this.button};var uc,pu;function Od(E,te){var be=+new Date;return pu&&pu.compare(be,E,te)?(uc=pu=null,"triple"):uc&&uc.compare(be,E,te)?(pu=new ad(be,E,te),uc=null,"double"):(uc=new ad(be,E,te),pu=null,"single")}function Vs(E){var te=this,be=te.display;if(!(xt(te,E)||be.activeTouch&&be.input.supportsTouch())){if(be.input.ensurePolled(),be.shift=E.shiftKey,Vi(be,E)){z||(be.scroller.draggable=!1,setTimeout(function(){return be.scroller.draggable=!0},100));return}if(!xl(te,E)){var ge=$s(te,E),Oe=dr(E),Xe=ge?Od(ge,Oe):"single";window.focus(),Oe==1&&te.state.selectingText&&te.state.selectingText(E),!(ge&&Hl(te,Oe,ge,Xe,E))&&(Oe==1?ge?Ru(te,ge,Xe,E):Dr(E)==be.scroller&&Tn(E):Oe==2?(ge&&mr(te.doc,ge),setTimeout(function(){return be.input.focus()},20)):Oe==3&&(Me?te.display.input.onContextMenu(E):Zo(te)))}}}function Hl(E,te,be,ge,Oe){var Xe="Click";return ge=="double"?Xe="Double"+Xe:ge=="triple"&&(Xe="Triple"+Xe),Xe=(te==1?"Left":te==2?"Middle":"Right")+Xe,Mc(E,Us(Xe,Oe),Oe,function(ct){if(typeof ct=="string"&&(ct=ms[ct]),!ct)return!1;var Mt=!1;try{E.isReadOnly()&&(E.state.suppressEdits=!0),Mt=ct(E,be)!=ft}finally{E.state.suppressEdits=!1}return Mt})}function mu(E,te,be){var ge=E.getOption("configureMouse"),Oe=ge?ge(E,te,be):{};if(Oe.unit==null){var Xe=Se?be.shiftKey&&be.metaKey:be.altKey;Oe.unit=Xe?"rectangle":te=="single"?"char":te=="double"?"word":"line"}return(Oe.extend==null||E.doc.extend)&&(Oe.extend=E.doc.extend||be.shiftKey),Oe.addNew==null&&(Oe.addNew=oe?be.metaKey:be.ctrlKey),Oe.moveOnDrag==null&&(Oe.moveOnDrag=!(oe?be.altKey:be.ctrlKey)),Oe}function Ru(E,te,be,ge){pe?setTimeout(st(ka,E),0):E.curOp.focus=Be();var Oe=mu(E,be,ge),Xe=E.doc.sel,ct;E.options.dragDrop&&zr&&!E.isReadOnly()&&be=="single"&&(ct=Xe.contains(te))>-1&&(pn((ct=Xe.ranges[ct]).from(),te)<0||te.xRel>0)&&(pn(ct.to(),te)>0||te.xRel<0)?Id(E,ge,te,Oe):Nu(E,ge,te,Oe)}function Id(E,te,be,ge){var Oe=E.display,Xe=!1,ct=Ko(E,function($t){z&&(Oe.scroller.draggable=!1),E.state.draggingText=!1,sn(Oe.wrapper.ownerDocument,"mouseup",ct),sn(Oe.wrapper.ownerDocument,"mousemove",Mt),sn(Oe.scroller,"dragstart",Tt),sn(Oe.scroller,"drop",ct),Xe||(Tn($t),ge.addNew||mr(E.doc,be,null,null,ge.extend),z&&!me||pe&&ne==9?setTimeout(function(){Oe.wrapper.ownerDocument.body.focus({preventScroll:!0}),Oe.input.focus()},20):Oe.input.focus())}),Mt=function($t){Xe=Xe||Math.abs(te.clientX-$t.clientX)+Math.abs(te.clientY-$t.clientY)>=10},Tt=function(){return Xe=!0};z&&(Oe.scroller.draggable=!0),E.state.draggingText=ct,ct.copy=!ge.moveOnDrag,Oe.scroller.dragDrop&&Oe.scroller.dragDrop(),Vt(Oe.wrapper.ownerDocument,"mouseup",ct),Vt(Oe.wrapper.ownerDocument,"mousemove",Mt),Vt(Oe.scroller,"dragstart",Tt),Vt(Oe.scroller,"drop",ct),Zo(E),setTimeout(function(){return Oe.input.focus()},20)}function Dd(E,te,be){if(be=="char")return new Go(te,te);if(be=="word")return E.findWordAt(te);if(be=="line")return new Go(Jt(te.line,0),Sr(E.doc,Jt(te.line+1,0)));var ge=be(E,te);return new Go(ge.from,ge.to)}function Nu(E,te,be,ge){var Oe=E.display,Xe=E.doc;Tn(te);var ct,Mt,Tt=Xe.sel,$t=Tt.ranges;if(ge.addNew&&!ge.extend?(Mt=Xe.sel.contains(be),Mt>-1?ct=$t[Mt]:ct=new Go(be,be)):(ct=Xe.sel.primary(),Mt=Xe.sel.primIndex),ge.unit=="rectangle")ge.addNew||(ct=new Go(be,be)),be=$s(E,te,!0,!0),Mt=-1;else{var mn=Dd(E,be,ge.unit);ge.extend?ct=tr(ct,mn.anchor,mn.head,ge.extend):ct=mn}ge.addNew?Mt==-1?(Mt=$t.length,Kr(Xe,ic(E,$t.concat([ct]),Mt),{scroll:!1,origin:"*mouse"})):$t.length>1&&$t[Mt].empty()&&ge.unit=="char"&&!ge.extend?(Kr(Xe,ic(E,$t.slice(0,Mt).concat($t.slice(Mt+1)),0),{scroll:!1,origin:"*mouse"}),Tt=Xe.sel):Lr(Xe,Mt,ct,tt):(Mt=0,Kr(Xe,new Ul([ct],0),tt),Tt=Xe.sel);var kn=be;function ur(Ai){if(pn(kn,Ai)!=0)if(kn=Ai,ge.unit=="rectangle"){for(var ia=[],Pa=E.options.tabSize,Ba=Ve(Un(Xe,be.line).text,be.ch,Pa),Eo=Ve(Un(Xe,Ai.line).text,Ai.ch,Pa),gs=Math.min(Ba,Eo),wl=Math.max(Ba,Eo),Bs=Math.min(be.line,Ai.line),Wl=Math.min(E.lastLine(),Math.max(be.line,Ai.line));Bs<=Wl;Bs++){var Zl=Un(Xe,Bs).text,cl=Et(Zl,gs,Pa);gs==wl?ia.push(new Go(Jt(Bs,cl),Jt(Bs,cl))):Zl.length>cl&&ia.push(new Go(Jt(Bs,cl),Jt(Bs,Et(Zl,wl,Pa))))}ia.length||ia.push(new Go(be,be)),Kr(Xe,ic(E,Tt.ranges.slice(0,Mt).concat(ia),Mt),{origin:"*mouse",scroll:!1}),E.scrollIntoView(Ai)}else{var Vl=ct,eo=Dd(E,Ai,ge.unit),Gs=Vl.anchor,js;pn(eo.anchor,Gs)>0?(js=eo.head,Gs=Vn(Vl.from(),eo.anchor)):(js=eo.anchor,Gs=Fn(Vl.to(),eo.head));var Xs=Tt.ranges.slice(0);Xs[Mt]=vu(E,new Go(Sr(Xe,Gs),js)),Kr(Xe,ic(E,Xs,Mt),tt)}}var nr=Oe.wrapper.getBoundingClientRect(),Fr=0;function Jr(Ai){var ia=++Fr,Pa=$s(E,Ai,!0,ge.unit=="rectangle");if(Pa)if(pn(Pa,kn)!=0){E.curOp.focus=Be(),ur(Pa);var Ba=mo(Oe,Xe);(Pa.line>=Ba.to||Pa.line<Ba.from)&&setTimeout(Ko(E,function(){Fr==ia&&Jr(Ai)}),150)}else{var Eo=Ai.clientY<nr.top?-20:Ai.clientY>nr.bottom?20:0;Eo&&setTimeout(Ko(E,function(){Fr==ia&&(Oe.scroller.scrollTop+=Eo,Jr(Ai))}),50)}}function yi(Ai){E.state.selectingText=!1,Fr=1/0,Ai&&(Tn(Ai),Oe.input.focus()),sn(Oe.wrapper.ownerDocument,"mousemove",$i),sn(Oe.wrapper.ownerDocument,"mouseup",Qi),Xe.history.lastSelOrigin=null}var $i=Ko(E,function(Ai){Ai.buttons===0||!dr(Ai)?yi(Ai):Jr(Ai)}),Qi=Ko(E,yi);E.state.selectingText=Qi,Vt(Oe.wrapper.ownerDocument,"mousemove",$i),Vt(Oe.wrapper.ownerDocument,"mouseup",Qi)}function vu(E,te){var be=te.anchor,ge=te.head,Oe=Un(E.doc,be.line);if(pn(be,ge)==0&&be.sticky==ge.sticky)return te;var Xe=Wt(Oe);if(!Xe)return te;var ct=kt(Xe,be.ch,be.sticky),Mt=Xe[ct];if(Mt.from!=be.ch&&Mt.to!=be.ch)return te;var Tt=ct+(Mt.from==be.ch==(Mt.level!=1)?0:1);if(Tt==0||Tt==Xe.length)return te;var $t;if(ge.line!=be.line)$t=(ge.line-be.line)*(E.doc.direction=="ltr"?1:-1)>0;else{var mn=kt(Xe,ge.ch,ge.sticky),kn=mn-ct||(ge.ch-be.ch)*(Mt.level==1?-1:1);mn==Tt-1||mn==Tt?$t=kn<0:$t=kn>0}var ur=Xe[Tt+($t?-1:0)],nr=$t==(ur.level==1),Fr=nr?ur.from:ur.to,Jr=nr?"after":"before";return be.ch==Fr&&be.sticky==Jr?te:new Go(new Jt(be.line,Fr,Jr),ge)}function Gc(E,te,be,ge){var Oe,Xe;if(te.touches)Oe=te.touches[0].clientX,Xe=te.touches[0].clientY;else try{Oe=te.clientX,Xe=te.clientY}catch(ur){return!1}if(Oe>=Math.floor(E.display.gutters.getBoundingClientRect().right))return!1;ge&&Tn(te);var ct=E.display,Mt=ct.lineDiv.getBoundingClientRect();if(Xe>Mt.bottom||!an(E,be))return pr(te);Xe-=Mt.top-ct.viewOffset;for(var Tt=0;Tt<E.display.gutterSpecs.length;++Tt){var $t=ct.gutters.childNodes[Tt];if($t&&$t.getBoundingClientRect().right>=Oe){var mn=Br(E.doc,Xe),kn=E.display.gutterSpecs[Tt];return Dt(E,be,E,mn,kn.className,te),pr(te)}}}function xl(E,te){return Gc(E,te,"gutterClick",!0)}function mc(E,te){Vi(E.display,te)||od(E,te)||xt(E,te,"contextmenu")||Me||E.display.input.onContextMenu(te)}function od(E,te){return an(E,"gutterContextMenu")?Gc(E,te,"gutterContextMenu",!1):!1}function sd(E){E.display.wrapper.className=E.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+E.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ra(E)}var kc={toString:function(){return"CodeMirror.Init"}},Pd={},gu={};function Bu(E){var te=E.optionHandlers;function be(ge,Oe,Xe,ct){E.defaults[ge]=Oe,Xe&&(te[ge]=ct?function(Mt,Tt,$t){$t!=kc&&Xe(Mt,Tt,$t)}:Xe)}E.defineOption=be,E.Init=kc,be("value","",function(ge,Oe){return ge.setValue(Oe)},!0),be("mode",null,function(ge,Oe){ge.doc.modeOption=Oe,uu(ge)},!0),be("indentUnit",2,uu,!0),be("indentWithTabs",!1),be("smartIndent",!0),be("tabSize",4,function(ge){Vc(ge),ra(ge),Aa(ge)},!0),be("lineSeparator",null,function(ge,Oe){if(ge.doc.lineSep=Oe,!!Oe){var Xe=[],ct=ge.doc.first;ge.doc.iter(function(Tt){for(var $t=0;;){var mn=Tt.text.indexOf(Oe,$t);if(mn==-1)break;$t=mn+Oe.length,Xe.push(Jt(ct,mn))}ct++});for(var Mt=Xe.length-1;Mt>=0;Mt--)ja(ge.doc,Oe,Xe[Mt],Jt(Xe[Mt].line,Xe[Mt].ch+Oe.length))}}),be("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ge,Oe,Xe){ge.state.specialChars=new RegExp(Oe.source+(Oe.test(" ")?"":"| "),"g"),Xe!=kc&&ge.refresh()}),be("specialCharPlaceholder",Ot,function(ge){return ge.refresh()},!0),be("electricChars",!0),be("inputStyle",he?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),be("spellcheck",!1,function(ge,Oe){return ge.getInputField().spellcheck=Oe},!0),be("autocorrect",!1,function(ge,Oe){return ge.getInputField().autocorrect=Oe},!0),be("autocapitalize",!1,function(ge,Oe){return ge.getInputField().autocapitalize=Oe},!0),be("rtlMoveVisually",!Ce),be("wholeLineUpdateBefore",!0),be("theme","default",function(ge){sd(ge),Zc(ge)},!0),be("keyMap","default",function(ge,Oe,Xe){var ct=Es(Oe),Mt=Xe!=kc&&Es(Xe);Mt&&Mt.detach&&Mt.detach(ge,ct),ct.attach&&ct.attach(ge,Mt||null)}),be("extraKeys",null),be("configureMouse",null),be("lineWrapping",!1,ju,!0),be("gutters",[],function(ge,Oe){ge.display.gutterSpecs=Au(Oe,ge.options.lineNumbers),Zc(ge)},!0),be("fixedGutter",!0,function(ge,Oe){ge.display.gutters.style.left=Oe?Js(ge.display)+"px":"0",ge.refresh()},!0),be("coverGutterNextToScrollbar",!1,function(ge){return zl(ge)},!0),be("scrollbarStyle","native",function(ge){Pc(ge),zl(ge),ge.display.scrollbars.setScrollTop(ge.doc.scrollTop),ge.display.scrollbars.setScrollLeft(ge.doc.scrollLeft)},!0),be("lineNumbers",!1,function(ge,Oe){ge.display.gutterSpecs=Au(ge.options.gutters,Oe),Zc(ge)},!0),be("firstLineNumber",1,Zc,!0),be("lineNumberFormatter",function(ge){return ge},Zc,!0),be("showCursorWhenSelecting",!1,vl,!0),be("resetSelectionOnContextMenu",!0),be("lineWiseCopyCut",!0),be("pasteLinesPerSelection",!0),be("selectionsMayTouch",!1),be("readOnly",!1,function(ge,Oe){Oe=="nocursor"&&(il(ge),ge.display.input.blur()),ge.display.input.readOnlyChanged(Oe)}),be("screenReaderLabel",null,function(ge,Oe){Oe=Oe===""?null:Oe,ge.display.input.screenReaderLabelChanged(Oe)}),be("disableInput",!1,function(ge,Oe){Oe||ge.display.input.reset()},!0),be("dragDrop",!0,ld),be("allowDropFileTypes",null),be("cursorBlinkRate",530),be("cursorScrollMargin",0),be("cursorHeight",1,vl,!0),be("singleCursorHeightPerLine",!0,vl,!0),be("workTime",100),be("workDelay",100),be("flattenSpans",!0,Vc,!0),be("addModeClass",!1,Vc,!0),be("pollInterval",100),be("undoDepth",200,function(ge,Oe){return ge.doc.history.undoDepth=Oe}),be("historyEventDelay",1250),be("viewportMargin",10,function(ge){return ge.refresh()},!0),be("maxHighlightLength",1e4,Vc,!0),be("moveInputWithCursor",!0,function(ge,Oe){Oe||ge.display.input.resetPosition()}),be("tabindex",null,function(ge,Oe){return ge.display.input.getField().tabIndex=Oe||""}),be("autofocus",null),be("direction","ltr",function(ge,Oe){return ge.doc.setDirection(Oe)},!0),be("phrases",null)}function ld(E,te,be){var ge=be&&be!=kc;if(!te!=!ge){var Oe=E.display.dragFunctions,Xe=te?Vt:sn;Xe(E.display.scroller,"dragstart",Oe.start),Xe(E.display.scroller,"dragenter",Oe.enter),Xe(E.display.scroller,"dragover",Oe.over),Xe(E.display.scroller,"dragleave",Oe.leave),Xe(E.display.scroller,"drop",Oe.drop)}}function ju(E){E.options.lineWrapping?(He(E.display.wrapper,"CodeMirror-wrap"),E.display.sizer.style.minWidth="",E.display.sizerWidth=null):(Ne(E.display.wrapper,"CodeMirror-wrap"),Sn(E)),ds(E),Aa(E),ra(E),setTimeout(function(){return zl(E)},100)}function Wa(E,te){var be=this;if(!(this instanceof Wa))return new Wa(E,te);this.options=te=te?yt(te):{},yt(Pd,te,!1);var ge=te.value;typeof ge=="string"?ge=new Mi(ge,te.mode,null,te.lineSeparator,te.direction):te.mode&&(ge.modeOption=te.mode),this.doc=ge;var Oe=new Wa.inputStyles[te.inputStyle](this),Xe=this.display=new rf(E,ge,Oe,te);Xe.wrapper.CodeMirror=this,sd(this),te.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Pc(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Qe,keySeq:null,specialChars:null},te.autofocus&&!he&&Xe.input.focus(),pe&&ne<11&&setTimeout(function(){return be.display.input.reset(!0)},20),Ld(this),$l(),nc(this),this.curOp.forceUpdate=!0,du(this,ge),te.autofocus&&!he||this.hasFocus()?setTimeout(function(){be.hasFocus()&&!be.state.focused&&Yo(be)},20):il(this);for(var ct in gu)gu.hasOwnProperty(ct)&&gu[ct](this,te[ct],kc);Tu(this),te.finishInit&&te.finishInit(this);for(var Mt=0;Mt<Fu.length;++Mt)Fu[Mt](this);rc(this),z&&te.lineWrapping&&getComputedStyle(Xe.lineDiv).textRendering=="optimizelegibility"&&(Xe.lineDiv.style.textRendering="auto")}Wa.defaults=Pd,Wa.optionHandlers=gu;function Ld(E){var te=E.display;Vt(te.scroller,"mousedown",Ko(E,Vs)),pe&&ne<11?Vt(te.scroller,"dblclick",Ko(E,function(Tt){if(!xt(E,Tt)){var $t=$s(E,Tt);if(!(!$t||xl(E,Tt)||Vi(E.display,Tt))){Tn(Tt);var mn=E.findWordAt($t);mr(E.doc,mn.anchor,mn.head)}}})):Vt(te.scroller,"dblclick",function(Tt){return xt(E,Tt)||Tn(Tt)}),Vt(te.scroller,"contextmenu",function(Tt){return mc(E,Tt)}),Vt(te.input.getField(),"contextmenu",function(Tt){te.scroller.contains(Tt.target)||mc(E,Tt)});var be,ge={end:0};function Oe(){te.activeTouch&&(be=setTimeout(function(){return te.activeTouch=null},1e3),ge=te.activeTouch,ge.end=+new Date)}function Xe(Tt){if(Tt.touches.length!=1)return!1;var $t=Tt.touches[0];return $t.radiusX<=1&&$t.radiusY<=1}function ct(Tt,$t){if($t.left==null)return!0;var mn=$t.left-Tt.left,kn=$t.top-Tt.top;return mn*mn+kn*kn>20*20}Vt(te.scroller,"touchstart",function(Tt){if(!xt(E,Tt)&&!Xe(Tt)&&!xl(E,Tt)){te.input.ensurePolled(),clearTimeout(be);var $t=+new Date;te.activeTouch={start:$t,moved:!1,prev:$t-ge.end<=300?ge:null},Tt.touches.length==1&&(te.activeTouch.left=Tt.touches[0].pageX,te.activeTouch.top=Tt.touches[0].pageY)}}),Vt(te.scroller,"touchmove",function(){te.activeTouch&&(te.activeTouch.moved=!0)}),Vt(te.scroller,"touchend",function(Tt){var $t=te.activeTouch;if($t&&!Vi(te,Tt)&&$t.left!=null&&!$t.moved&&new Date-$t.start<300){var mn=E.coordsChar(te.activeTouch,"page"),kn;!$t.prev||ct($t,$t.prev)?kn=new Go(mn,mn):!$t.prev.prev||ct($t,$t.prev.prev)?kn=E.findWordAt(mn):kn=new Go(Jt(mn.line,0),Sr(E.doc,Jt(mn.line+1,0))),E.setSelection(kn.anchor,kn.head),E.focus(),Tn(Tt)}Oe()}),Vt(te.scroller,"touchcancel",Oe),Vt(te.scroller,"scroll",function(){te.scroller.clientHeight&&(Co(E,te.scroller.scrollTop),ws(E,te.scroller.scrollLeft,!0),Dt(E,"scroll",E))}),Vt(te.scroller,"mousewheel",function(Tt){return qu(E,Tt)}),Vt(te.scroller,"DOMMouseScroll",function(Tt){return qu(E,Tt)}),Vt(te.wrapper,"scroll",function(){return te.wrapper.scrollTop=te.wrapper.scrollLeft=0}),te.dragFunctions={enter:function(Tt){xt(E,Tt)||Ar(Tt)},over:function(Tt){xt(E,Tt)||(sl(E,Tt),Ar(Tt))},start:function(Tt){return wo(E,Tt)},drop:Ko(E,To),leave:function(Tt){xt(E,Tt)||As(E)}};var Mt=te.input.getField();Vt(Mt,"keyup",function(Tt){return Tl.call(E,Tt)}),Vt(Mt,"keydown",Ko(E,Zs)),Vt(Mt,"keypress",Ko(E,cc)),Vt(Mt,"focus",function(Tt){return Yo(E,Tt)}),Vt(Mt,"blur",function(Tt){return il(E,Tt)})}var Fu=[];Wa.defineInitHook=function(E){return Fu.push(E)};function Jl(E,te,be,ge){var Oe=E.doc,Xe;be==null&&(be="add"),be=="smart"&&(Oe.mode.indent?Xe=qi(E,te).state:be="prev");var ct=E.options.tabSize,Mt=Un(Oe,te),Tt=Ve(Mt.text,null,ct);Mt.stateAfter&&(Mt.stateAfter=null);var $t=Mt.text.match(/^\s*/)[0],mn;if(!ge&&!/\S/.test(Mt.text))mn=0,be="not";else if(be=="smart"&&(mn=Oe.mode.indent(Xe,Mt.text.slice($t.length),Mt.text),mn==ft||mn>150)){if(!ge)return;be="prev"}be=="prev"?te>Oe.first?mn=Ve(Un(Oe,te-1).text,null,ct):mn=0:be=="add"?mn=Tt+E.options.indentUnit:be=="subtract"?mn=Tt-E.options.indentUnit:typeof be=="number"&&(mn=Tt+be),mn=Math.max(0,mn);var kn="",ur=0;if(E.options.indentWithTabs)for(var nr=Math.floor(mn/ct);nr;--nr)ur+=ct,kn+=" ";if(ur<mn&&(kn+=Pt(mn-ur)),kn!=$t)return ja(Oe,kn,Jt(te,0),Jt(te,$t.length),"+input"),Mt.stateAfter=null,!0;for(var Fr=0;Fr<Oe.sel.ranges.length;Fr++){var Jr=Oe.sel.ranges[Fr];if(Jr.head.line==te&&Jr.head.ch<$t.length){var yi=Jt(te,$t.length);Lr(Oe,Fr,new Go(yi,yi));break}}}var oc=null;function vc(E){oc=E}function yu(E,te,be,ge,Oe){var Xe=E.doc;E.display.shift=!1,ge||(ge=Xe.sel);var ct=+new Date-200,Mt=Oe=="paste"||E.state.pasteIncoming>ct,Tt=cn(te),$t=null;if(Mt&&ge.ranges.length>1)if(oc&&oc.text.join(`
|
|
|
`)==te){if(ge.ranges.length%oc.text.length==0){$t=[];for(var mn=0;mn<oc.text.length;mn++)$t.push(Xe.splitLines(oc.text[mn]))}}else Tt.length==ge.ranges.length&&E.options.pasteLinesPerSelection&&($t=dt(Tt,function($i){return[$i]}));for(var kn=E.curOp.updateInput,ur=ge.ranges.length-1;ur>=0;ur--){var nr=ge.ranges[ur],Fr=nr.from(),Jr=nr.to();nr.empty()&&(be&&be>0?Fr=Jt(Fr.line,Fr.ch-be):E.state.overwrite&&!Mt?Jr=Jt(Jr.line,Math.min(Un(Xe,Jr.line).text.length,Jr.ch+Lt(Tt).length)):Mt&&oc&&oc.lineWise&&oc.text.join(`
|
|
|
`)==Tt.join(`
|
|
|
`)&&(Fr=Jr=Jt(Fr.line,0)));var yi={from:Fr,to:Jr,text:$t?$t[ur%$t.length]:Tt,origin:Oe||(Mt?"paste":E.state.cutIncoming>ct?"cut":"+input")};Hi(E.doc,yi),Tr(E,"inputRead",E,yi)}te&&!Mt&&bu(E,te),al(E),E.curOp.updateInput<2&&(E.curOp.updateInput=kn),E.curOp.typing=!0,E.state.pasteIncoming=E.state.cutIncoming=-1}function $u(E,te){var be=E.clipboardData&&E.clipboardData.getData("Text");if(be)return E.preventDefault(),!te.isReadOnly()&&!te.options.disableInput&&uo(te,function(){return yu(te,be,0,null,"paste")}),!0}function bu(E,te){if(!(!E.options.electricChars||!E.options.smartIndent))for(var be=E.doc.sel,ge=be.ranges.length-1;ge>=0;ge--){var Oe=be.ranges[ge];if(!(Oe.head.ch>100||ge&&be.ranges[ge-1].head.line==Oe.head.line)){var Xe=E.getModeAt(Oe.head),ct=!1;if(Xe.electricChars){for(var Mt=0;Mt<Xe.electricChars.length;Mt++)if(te.indexOf(Xe.electricChars.charAt(Mt))>-1){ct=Jl(E,Oe.head.line,"smart");break}}else Xe.electricInput&&Xe.electricInput.test(Un(E.doc,Oe.head.line).text.slice(0,Oe.head.ch))&&(ct=Jl(E,Oe.head.line,"smart"));ct&&Tr(E,"electricInput",E,Oe.head.line)}}}function Fc(E){for(var te=[],be=[],ge=0;ge<E.doc.sel.ranges.length;ge++){var Oe=E.doc.sel.ranges[ge].head.line,Xe={anchor:Jt(Oe,0),head:Jt(Oe+1,0)};be.push(Xe),te.push(E.getRange(Xe.anchor,Xe.head))}return{text:te,ranges:be}}function Rd(E,te,be,ge){E.setAttribute("autocorrect",be?"":"off"),E.setAttribute("autocapitalize",ge?"":"off"),E.setAttribute("spellcheck",!!te)}function Bo(){var E=Ie("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),te=Ie("div",[E],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return z?E.style.width="1000px":E.setAttribute("wrap","off"),ue&&(E.style.border="1px solid black"),Rd(E),te}function as(E){var te=E.optionHandlers,be=E.helpers={};E.prototype={constructor:E,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ge,Oe){var Xe=this.options,ct=Xe[ge];Xe[ge]==Oe&&ge!="mode"||(Xe[ge]=Oe,te.hasOwnProperty(ge)&&Ko(this,te[ge])(this,Oe,ct),Dt(this,"optionChange",this,ge))},getOption:function(ge){return this.options[ge]},getDoc:function(){return this.doc},addKeyMap:function(ge,Oe){this.state.keyMaps[Oe?"push":"unshift"](Es(ge))},removeKeyMap:function(ge){for(var Oe=this.state.keyMaps,Xe=0;Xe<Oe.length;++Xe)if(Oe[Xe]==ge||Oe[Xe].name==ge)return Oe.splice(Xe,1),!0},addOverlay:$o(function(ge,Oe){var Xe=ge.token?ge:E.getMode(this.options,ge);if(Xe.startState)throw new Error("Overlays may not be stateful.");Ze(this.state.overlays,{mode:Xe,modeSpec:ge,opaque:Oe&&Oe.opaque,priority:Oe&&Oe.priority||0},function(ct){return ct.priority}),this.state.modeGen++,Aa(this)}),removeOverlay:$o(function(ge){for(var Oe=this.state.overlays,Xe=0;Xe<Oe.length;++Xe){var ct=Oe[Xe].modeSpec;if(ct==ge||typeof ge=="string"&&ct.name==ge){Oe.splice(Xe,1),this.state.modeGen++,Aa(this);return}}}),indentLine:$o(function(ge,Oe,Xe){typeof Oe!="string"&&typeof Oe!="number"&&(Oe==null?Oe=this.options.smartIndent?"smart":"prev":Oe=Oe?"add":"subtract"),Pr(this.doc,ge)&&Jl(this,ge,Oe,Xe)}),indentSelection:$o(function(ge){for(var Oe=this.doc.sel.ranges,Xe=-1,ct=0;ct<Oe.length;ct++){var Mt=Oe[ct];if(Mt.empty())Mt.head.line>Xe&&(Jl(this,Mt.head.line,ge,!0),Xe=Mt.head.line,ct==this.doc.sel.primIndex&&al(this));else{var Tt=Mt.from(),$t=Mt.to(),mn=Math.max(Xe,Tt.line);Xe=Math.min(this.lastLine(),$t.line-($t.ch?0:1))+1;for(var kn=mn;kn<Xe;++kn)Jl(this,kn,ge);var ur=this.doc.sel.ranges;Tt.ch==0&&Oe.length==ur.length&&ur[ct].from().ch>0&&Lr(this.doc,ct,new Go(Tt,ur[ct].to()),nt)}}}),getTokenAt:function(ge,Oe){return _a(this,ge,Oe)},getLineTokens:function(ge,Oe){return _a(this,Jt(ge),Oe,!0)},getTokenTypeAt:function(ge){ge=Sr(this.doc,ge);var Oe=ca(this,Un(this.doc,ge.line)),Xe=0,ct=(Oe.length-1)/2,Mt=ge.ch,Tt;if(Mt==0)Tt=Oe[2];else for(;;){var $t=Xe+ct>>1;if(($t?Oe[$t*2-1]:0)>=Mt)ct=$t;else if(Oe[$t*2+1]<Mt)Xe=$t+1;else{Tt=Oe[$t*2+2];break}}var mn=Tt?Tt.indexOf("overlay "):-1;return mn<0?Tt:mn==0?null:Tt.slice(0,mn-1)},getModeAt:function(ge){var Oe=this.doc.mode;return Oe.innerMode?E.innerMode(Oe,this.getTokenAt(ge).state).mode:Oe},getHelper:function(ge,Oe){return this.getHelpers(ge,Oe)[0]},getHelpers:function(ge,Oe){var Xe=[];if(!be.hasOwnProperty(Oe))return Xe;var ct=be[Oe],Mt=this.getModeAt(ge);if(typeof Mt[Oe]=="string")ct[Mt[Oe]]&&Xe.push(ct[Mt[Oe]]);else if(Mt[Oe])for(var Tt=0;Tt<Mt[Oe].length;Tt++){var $t=ct[Mt[Oe][Tt]];$t&&Xe.push($t)}else Mt.helperType&&ct[Mt.helperType]?Xe.push(ct[Mt.helperType]):ct[Mt.name]&&Xe.push(ct[Mt.name]);for(var mn=0;mn<ct._global.length;mn++){var kn=ct._global[mn];kn.pred(Mt,this)&&pt(Xe,kn.val)==-1&&Xe.push(kn.val)}return Xe},getStateAfter:function(ge,Oe){var Xe=this.doc;return ge=er(Xe,ge==null?Xe.first+Xe.size-1:ge),qi(this,ge+1,Oe).state},cursorCoords:function(ge,Oe){var Xe,ct=this.doc.sel.primary();return ge==null?Xe=ct.head:typeof ge=="object"?Xe=Sr(this.doc,ge):Xe=ge?ct.from():ct.to(),lo(this,Xe,Oe||"page")},charCoords:function(ge,Oe){return Xo(this,Sr(this.doc,ge),Oe||"page")},coordsChar:function(ge,Oe){return ge=Mo(this,ge,Oe||"page"),rs(this,ge.left,ge.top)},lineAtHeight:function(ge,Oe){return ge=Mo(this,{top:ge,left:0},Oe||"page").top,Br(this.doc,ge+this.display.viewOffset)},heightAtLine:function(ge,Oe,Xe){var ct=!1,Mt;if(typeof ge=="number"){var Tt=this.doc.first+this.doc.size-1;ge<this.doc.first?ge=this.doc.first:ge>Tt&&(ge=Tt,ct=!0),Mt=Un(this.doc,ge)}else Mt=ge;return bo(this,Mt,{top:0,left:0},Oe||"page",Xe||ct).top+(ct?this.doc.height-Pn(Mt):0)},defaultTextHeight:function(){return Wo(this.display)},defaultCharWidth:function(){return us(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ge,Oe,Xe,ct,Mt){var Tt=this.display;ge=lo(this,Sr(this.doc,ge));var $t=ge.bottom,mn=ge.left;if(Oe.style.position="absolute",Oe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Oe),Tt.sizer.appendChild(Oe),ct=="over")$t=ge.top;else if(ct=="above"||ct=="near"){var kn=Math.max(Tt.wrapper.clientHeight,this.doc.height),ur=Math.max(Tt.sizer.clientWidth,Tt.lineSpace.clientWidth);(ct=="above"||ge.bottom+Oe.offsetHeight>kn)&&ge.top>Oe.offsetHeight?$t=ge.top-Oe.offsetHeight:ge.bottom+Oe.offsetHeight<=kn&&($t=ge.bottom),mn+Oe.offsetWidth>ur&&(mn=ur-Oe.offsetWidth)}Oe.style.top=$t+"px",Oe.style.left=Oe.style.right="",Mt=="right"?(mn=Tt.sizer.clientWidth-Oe.offsetWidth,Oe.style.right="0px"):(Mt=="left"?mn=0:Mt=="middle"&&(mn=(Tt.sizer.clientWidth-Oe.offsetWidth)/2),Oe.style.left=mn+"px"),Xe&&Sc(this,{left:mn,top:$t,right:mn+Oe.offsetWidth,bottom:$t+Oe.offsetHeight})},triggerOnKeyDown:$o(Zs),triggerOnKeyPress:$o(cc),triggerOnKeyUp:Tl,triggerOnMouseDown:$o(Vs),execCommand:function(ge){if(ms.hasOwnProperty(ge))return ms[ge].call(null,this)},triggerElectric:$o(function(ge){bu(this,ge)}),findPosH:function(ge,Oe,Xe,ct){var Mt=1;Oe<0&&(Mt=-1,Oe=-Oe);for(var Tt=Sr(this.doc,ge),$t=0;$t<Oe&&(Tt=Rl(this.doc,Tt,Mt,Xe,ct),!Tt.hitSide);++$t);return Tt},moveH:$o(function(ge,Oe){var Xe=this;this.extendSelectionsBy(function(ct){return Xe.display.shift||Xe.doc.extend||ct.empty()?Rl(Xe.doc,ct.head,ge,Oe,Xe.options.rtlMoveVisually):ge<0?ct.from():ct.to()},rt)}),deleteH:$o(function(ge,Oe){var Xe=this.doc.sel,ct=this.doc;Xe.somethingSelected()?ct.replaceSelection("",null,"+delete"):_l(this,function(Mt){var Tt=Rl(ct,Mt.head,ge,Oe,!1);return ge<0?{from:Tt,to:Mt.head}:{from:Mt.head,to:Tt}})}),findPosV:function(ge,Oe,Xe,ct){var Mt=1,Tt=ct;Oe<0&&(Mt=-1,Oe=-Oe);for(var $t=Sr(this.doc,ge),mn=0;mn<Oe;++mn){var kn=lo(this,$t,"div");if(Tt==null?Tt=kn.left:kn.left=Tt,$t=gc(this,kn,Mt,Xe),$t.hitSide)break}return $t},moveV:$o(function(ge,Oe){var Xe=this,ct=this.doc,Mt=[],Tt=!this.display.shift&&!ct.extend&&ct.sel.somethingSelected();if(ct.extendSelectionsBy(function(mn){if(Tt)return ge<0?mn.from():mn.to();var kn=lo(Xe,mn.head,"div");mn.goalColumn!=null&&(kn.left=mn.goalColumn),Mt.push(kn.left);var ur=gc(Xe,kn,ge,Oe);return Oe=="page"&&mn==ct.sel.primary()&&El(Xe,Xo(Xe,ur,"div").top-kn.top),ur},rt),Mt.length)for(var $t=0;$t<ct.sel.ranges.length;$t++)ct.sel.ranges[$t].goalColumn=Mt[$t]}),findWordAt:function(ge){var Oe=this.doc,Xe=Un(Oe,ge.line).text,ct=ge.ch,Mt=ge.ch;if(Xe){var Tt=this.getHelper(ge,"wordChars");(ge.sticky=="before"||Mt==Xe.length)&&ct?--ct:++Mt;for(var $t=Xe.charAt(ct),mn=$e($t,Tt)?function(kn){return $e(kn,Tt)}:/\s/.test($t)?function(kn){return/\s/.test(kn)}:function(kn){return!/\s/.test(kn)&&!$e(kn)};ct>0&&mn(Xe.charAt(ct-1));)--ct;for(;Mt<Xe.length&&mn(Xe.charAt(Mt));)++Mt}return new Go(Jt(ge.line,ct),Jt(ge.line,Mt))},toggleOverwrite:function(ge){ge!=null&&ge==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?He(this.display.cursorDiv,"CodeMirror-overwrite"):Ne(this.display.cursorDiv,"CodeMirror-overwrite"),Dt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Be()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:$o(function(ge,Oe){ec(this,ge,Oe)}),getScrollInfo:function(){var ge=this.display.scroller;return{left:ge.scrollLeft,top:ge.scrollTop,height:ge.scrollHeight-Ri(this)-this.display.barHeight,width:ge.scrollWidth-Ri(this)-this.display.barWidth,clientHeight:sa(this),clientWidth:wi(this)}},scrollIntoView:$o(function(ge,Oe){ge==null?(ge={from:this.doc.sel.primary().head,to:null},Oe==null&&(Oe=this.options.cursorScrollMargin)):typeof ge=="number"?ge={from:Jt(ge,0),to:null}:ge.from==null&&(ge={from:ge,to:null}),ge.to||(ge.to=ge.from),ge.margin=Oe||0,ge.from.line!=null?fl(this,ge):is(this,ge.from,ge.to,ge.margin)}),setSize:$o(function(ge,Oe){var Xe=this,ct=function(Tt){return typeof Tt=="number"||/^\d+$/.test(String(Tt))?Tt+"px":Tt};ge!=null&&(this.display.wrapper.style.width=ct(ge)),Oe!=null&&(this.display.wrapper.style.height=ct(Oe)),this.options.lineWrapping&&Fa(this);var Mt=this.display.viewFrom;this.doc.iter(Mt,this.display.viewTo,function(Tt){if(Tt.widgets){for(var $t=0;$t<Tt.widgets.length;$t++)if(Tt.widgets[$t].noHScroll){fo(Xe,Mt,"widget");break}}++Mt}),this.curOp.forceUpdate=!0,Dt(this,"refresh",this)}),operation:function(ge){return uo(this,ge)},startOperation:function(){return nc(this)},endOperation:function(){return rc(this)},refresh:$o(function(){var ge=this.display.cachedTextHeight;Aa(this),this.curOp.forceUpdate=!0,ra(this),ec(this,this.doc.scrollLeft,this.doc.scrollTop),_u(this.display),(ge==null||Math.abs(ge-Wo(this.display))>.5||this.options.lineWrapping)&&ds(this),Dt(this,"refresh",this)}),swapDoc:$o(function(ge){var Oe=this.doc;return Oe.cm=null,this.state.selectingText&&this.state.selectingText(),du(this,ge),ra(this),this.display.input.reset(),ec(this,ge.scrollLeft,ge.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,Oe),Oe}),phrase:function(ge){var Oe=this.options.phrases;return Oe&&Object.prototype.hasOwnProperty.call(Oe,ge)?Oe[ge]:ge},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},fn(E),E.registerHelper=function(ge,Oe,Xe){be.hasOwnProperty(ge)||(be[ge]=E[ge]={_global:[]}),be[ge][Oe]=Xe},E.registerGlobalHelper=function(ge,Oe,Xe,ct){E.registerHelper(ge,Oe,ct),be[ge]._global.push({pred:Xe,val:ct})}}function Rl(E,te,be,ge,Oe){var Xe=te,ct=be,Mt=Un(E,te.line),Tt=Oe&&E.direction=="rtl"?-be:be;function $t(){var Qi=te.line+Tt;return Qi<E.first||Qi>=E.first+E.size?!1:(te=new Jt(Qi,te.ch,te.sticky),Mt=Un(E,Qi))}function mn(Qi){var Ai;if(ge=="codepoint"){var ia=Mt.text.charCodeAt(te.ch+(ge>0?0:-1));isNaN(ia)?Ai=null:Ai=new Jt(te.line,Math.max(0,Math.min(Mt.text.length,te.ch+be*(ia>=55296&&ia<56320?2:1))),-be)}else Oe?Ai=ks(E.cm,Mt,te,be):Ai=Hs(Mt,te,be);if(Ai==null)if(!Qi&&$t())te=Ws(Oe,E.cm,Mt,te.line,Tt);else return!1;else te=Ai;return!0}if(ge=="char"||ge=="codepoint")mn();else if(ge=="column")mn(!0);else if(ge=="word"||ge=="group")for(var kn=null,ur=ge=="group",nr=E.cm&&E.cm.getHelper(te,"wordChars"),Fr=!0;!(be<0&&!mn(!Fr));Fr=!1){var Jr=Mt.text.charAt(te.ch)||`
|
|
|
`,yi=$e(Jr,nr)?"w":ur&&Jr==`
|
|
|
`?"n":!ur||/\s/.test(Jr)?null:"p";if(ur&&!Fr&&!yi&&(yi="s"),kn&&kn!=yi){be<0&&(be=1,mn(),te.sticky="after");break}if(yi&&(kn=yi),be>0&&!mn(!Fr))break}var $i=Gi(E,te,Xe,ct,!0);return Qn(Xe,$i)&&($i.hitSide=!0),$i}function gc(E,te,be,ge){var Oe=E.doc,Xe=te.left,ct;if(ge=="page"){var Mt=Math.min(E.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Tt=Math.max(Mt-.5*Wo(E.display),3);ct=(be>0?te.bottom:te.top)+be*Tt}else ge=="line"&&(ct=be>0?te.bottom+3:te.top-3);for(var $t;$t=rs(E,Xe,ct),!!$t.outside;){if(be<0?ct<=0:ct>=Oe.height){$t.hitSide=!0;break}ct+=be*5}return $t}var jo=function(E){this.cm=E,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Qe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};jo.prototype.init=function(E){var te=this,be=this,ge=be.cm,Oe=be.div=E.lineDiv;Rd(Oe,ge.options.spellcheck,ge.options.autocorrect,ge.options.autocapitalize);function Xe(Mt){for(var Tt=Mt.target;Tt;Tt=Tt.parentNode){if(Tt==Oe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Tt.className))break}return!1}Vt(Oe,"paste",function(Mt){!Xe(Mt)||xt(ge,Mt)||$u(Mt,ge)||ne<=11&&setTimeout(Ko(ge,function(){return te.updateFromDOM()}),20)}),Vt(Oe,"compositionstart",function(Mt){te.composing={data:Mt.data,done:!1}}),Vt(Oe,"compositionupdate",function(Mt){te.composing||(te.composing={data:Mt.data,done:!1})}),Vt(Oe,"compositionend",function(Mt){te.composing&&(Mt.data!=te.composing.data&&te.readFromDOMSoon(),te.composing.done=!0)}),Vt(Oe,"touchstart",function(){return be.forceCompositionEnd()}),Vt(Oe,"input",function(){te.composing||te.readFromDOMSoon()});function ct(Mt){if(!(!Xe(Mt)||xt(ge,Mt))){if(ge.somethingSelected())vc({lineWise:!1,text:ge.getSelections()}),Mt.type=="cut"&&ge.replaceSelection("",null,"cut");else if(ge.options.lineWiseCopyCut){var Tt=Fc(ge);vc({lineWise:!0,text:Tt.text}),Mt.type=="cut"&&ge.operation(function(){ge.setSelections(Tt.ranges,0,nt),ge.replaceSelection("",null,"cut")})}else return;if(Mt.clipboardData){Mt.clipboardData.clearData();var $t=oc.text.join(`
|
|
|
`);if(Mt.clipboardData.setData("Text",$t),Mt.clipboardData.getData("Text")==$t){Mt.preventDefault();return}}var mn=Bo(),kn=mn.firstChild;ge.display.lineSpace.insertBefore(mn,ge.display.lineSpace.firstChild),kn.value=oc.text.join(`
|
|
|
`);var ur=document.activeElement;et(kn),setTimeout(function(){ge.display.lineSpace.removeChild(mn),ur.focus(),ur==Oe&&be.showPrimarySelection()},50)}}Vt(Oe,"copy",ct),Vt(Oe,"cut",ct)},jo.prototype.screenReaderLabelChanged=function(E){E?this.div.setAttribute("aria-label",E):this.div.removeAttribute("aria-label")},jo.prototype.prepareSelection=function(){var E=Sl(this.cm,!1);return E.focus=document.activeElement==this.div,E},jo.prototype.showSelection=function(E,te){!E||!this.cm.display.view.length||((E.focus||te)&&this.showPrimarySelection(),this.showMultipleSelections(E))},jo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},jo.prototype.showPrimarySelection=function(){var E=this.getSelection(),te=this.cm,be=te.doc.sel.primary(),ge=be.from(),Oe=be.to();if(te.display.viewTo==te.display.viewFrom||ge.line>=te.display.viewTo||Oe.line<te.display.viewFrom){E.removeAllRanges();return}var Xe=Xc(te,E.anchorNode,E.anchorOffset),ct=Xc(te,E.focusNode,E.focusOffset);if(!(Xe&&!Xe.bad&&ct&&!ct.bad&&pn(Vn(Xe,ct),ge)==0&&pn(Fn(Xe,ct),Oe)==0)){var Mt=te.display.view,Tt=ge.line>=te.display.viewFrom&&cd(te,ge)||{node:Mt[0].measure.map[2],offset:0},$t=Oe.line<te.display.viewTo&&cd(te,Oe);if(!$t){var mn=Mt[Mt.length-1].measure,kn=mn.maps?mn.maps[mn.maps.length-1]:mn.map;$t={node:kn[kn.length-1],offset:kn[kn.length-2]-kn[kn.length-3]}}if(!Tt||!$t){E.removeAllRanges();return}var ur=E.rangeCount&&E.getRangeAt(0),nr;try{nr=Le(Tt.node,Tt.offset,$t.offset,$t.node)}catch(Fr){}nr&&(!Ue&&te.state.focused?(E.collapse(Tt.node,Tt.offset),nr.collapsed||(E.removeAllRanges(),E.addRange(nr))):(E.removeAllRanges(),E.addRange(nr)),ur&&E.anchorNode==null?E.addRange(ur):Ue&&this.startGracePeriod()),this.rememberSelection()}},jo.prototype.startGracePeriod=function(){var E=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){E.gracePeriod=!1,E.selectionChanged()&&E.cm.operation(function(){return E.cm.curOp.selectionChanged=!0})},20)},jo.prototype.showMultipleSelections=function(E){De(this.cm.display.cursorDiv,E.cursors),De(this.cm.display.selectionDiv,E.selection)},jo.prototype.rememberSelection=function(){var E=this.getSelection();this.lastAnchorNode=E.anchorNode,this.lastAnchorOffset=E.anchorOffset,this.lastFocusNode=E.focusNode,this.lastFocusOffset=E.focusOffset},jo.prototype.selectionInEditor=function(){var E=this.getSelection();if(!E.rangeCount)return!1;var te=E.getRangeAt(0).commonAncestorContainer;return We(this.div,te)},jo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},jo.prototype.blur=function(){this.div.blur()},jo.prototype.getField=function(){return this.div},jo.prototype.supportsTouch=function(){return!0},jo.prototype.receivedFocus=function(){var E=this;this.selectionInEditor()?this.pollSelection():uo(this.cm,function(){return E.cm.curOp.selectionChanged=!0});function te(){E.cm.state.focused&&(E.pollSelection(),E.polling.set(E.cm.options.pollInterval,te))}this.polling.set(this.cm.options.pollInterval,te)},jo.prototype.selectionChanged=function(){var E=this.getSelection();return E.anchorNode!=this.lastAnchorNode||E.anchorOffset!=this.lastAnchorOffset||E.focusNode!=this.lastFocusNode||E.focusOffset!=this.lastFocusOffset},jo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var E=this.getSelection(),te=this.cm;if(fe&&re&&this.cm.display.gutterSpecs.length&&ud(E.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var be=Xc(te,E.anchorNode,E.anchorOffset),ge=Xc(te,E.focusNode,E.focusOffset);be&&ge&&uo(te,function(){Kr(te.doc,ac(be,ge),nt),(be.bad||ge.bad)&&(te.curOp.selectionChanged=!0)})}}},jo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var E=this.cm,te=E.display,be=E.doc.sel.primary(),ge=be.from(),Oe=be.to();if(ge.ch==0&&ge.line>E.firstLine()&&(ge=Jt(ge.line-1,Un(E.doc,ge.line-1).length)),Oe.ch==Un(E.doc,Oe.line).text.length&&Oe.line<E.lastLine()&&(Oe=Jt(Oe.line+1,0)),ge.line<te.viewFrom||Oe.line>te.viewTo-1)return!1;var Xe,ct,Mt;ge.line==te.viewFrom||(Xe=Ga(E,ge.line))==0?(ct=Er(te.view[0].line),Mt=te.view[0].node):(ct=Er(te.view[Xe].line),Mt=te.view[Xe-1].node.nextSibling);var Tt=Ga(E,Oe.line),$t,mn;if(Tt==te.view.length-1?($t=te.viewTo-1,mn=te.lineDiv.lastChild):($t=Er(te.view[Tt+1].line)-1,mn=te.view[Tt+1].node.previousSibling),!Mt)return!1;for(var kn=E.doc.splitLines(dd(E,Mt,mn,ct,$t)),ur=kr(E.doc,Jt(ct,0),Jt($t,Un(E.doc,$t).text.length));kn.length>1&&ur.length>1;)if(Lt(kn)==Lt(ur))kn.pop(),ur.pop(),$t--;else if(kn[0]==ur[0])kn.shift(),ur.shift(),ct++;else break;for(var nr=0,Fr=0,Jr=kn[0],yi=ur[0],$i=Math.min(Jr.length,yi.length);nr<$i&&Jr.charCodeAt(nr)==yi.charCodeAt(nr);)++nr;for(var Qi=Lt(kn),Ai=Lt(ur),ia=Math.min(Qi.length-(kn.length==1?nr:0),Ai.length-(ur.length==1?nr:0));Fr<ia&&Qi.charCodeAt(Qi.length-Fr-1)==Ai.charCodeAt(Ai.length-Fr-1);)++Fr;if(kn.length==1&&ur.length==1&&ct==ge.line)for(;nr&&nr>ge.ch&&Qi.charCodeAt(Qi.length-Fr-1)==Ai.charCodeAt(Ai.length-Fr-1);)nr--,Fr++;kn[kn.length-1]=Qi.slice(0,Qi.length-Fr).replace(/^\u200b+/,""),kn[0]=kn[0].slice(nr).replace(/\u200b+$/,"");var Pa=Jt(ct,nr),Ba=Jt($t,ur.length?Lt(ur).length-Fr:0);if(kn.length>1||kn[0]||pn(Pa,Ba))return ja(E.doc,kn,Pa,Ba,"+input"),!0},jo.prototype.ensurePolled=function(){this.forceCompositionEnd()},jo.prototype.reset=function(){this.forceCompositionEnd()},jo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},jo.prototype.readFromDOMSoon=function(){var E=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(E.readDOMTimeout=null,E.composing)if(E.composing.done)E.composing=null;else return;E.updateFromDOM()},80))},jo.prototype.updateFromDOM=function(){var E=this;(this.cm.isReadOnly()||!this.pollContent())&&uo(this.cm,function(){return Aa(E.cm)})},jo.prototype.setUneditable=function(E){E.contentEditable="false"},jo.prototype.onKeyPress=function(E){E.charCode==0||this.composing||(E.preventDefault(),this.cm.isReadOnly()||Ko(this.cm,yu)(this.cm,String.fromCharCode(E.charCode==null?E.keyCode:E.charCode),0))},jo.prototype.readOnlyChanged=function(E){this.div.contentEditable=String(E!="nocursor")},jo.prototype.onContextMenu=function(){},jo.prototype.resetPosition=function(){},jo.prototype.needsContentAttribute=!0;function cd(E,te){var be=Za(E,te.line);if(!be||be.hidden)return null;var ge=Un(E.doc,te.line),Oe=go(be,ge,te.line),Xe=Wt(ge,E.doc.direction),ct="left";if(Xe){var Mt=kt(Xe,te.ch);ct=Mt%2?"right":"left"}var Tt=ba(Oe.map,te.ch,ct);return Tt.offset=Tt.collapse=="right"?Tt.end:Tt.start,Tt}function ud(E){for(var te=E;te;te=te.parentNode)if(/CodeMirror-gutter-wrapper/.test(te.className))return!0;return!1}function _c(E,te){return te&&(E.bad=!0),E}function dd(E,te,be,ge,Oe){var Xe="",ct=!1,Mt=E.doc.lineSeparator(),Tt=!1;function $t(nr){return function(Fr){return Fr.id==nr}}function mn(){ct&&(Xe+=Mt,Tt&&(Xe+=Mt),ct=Tt=!1)}function kn(nr){nr&&(mn(),Xe+=nr)}function ur(nr){if(nr.nodeType==1){var Fr=nr.getAttribute("cm-text");if(Fr){kn(Fr);return}var Jr=nr.getAttribute("cm-marker"),yi;if(Jr){var $i=E.findMarks(Jt(ge,0),Jt(Oe+1,0),$t(+Jr));$i.length&&(yi=$i[0].find(0))&&kn(kr(E.doc,yi.from,yi.to).join(Mt));return}if(nr.getAttribute("contenteditable")=="false")return;var Qi=/^(pre|div|p|li|table|br)$/i.test(nr.nodeName);if(!/^br$/i.test(nr.nodeName)&&nr.textContent.length==0)return;Qi&&mn();for(var Ai=0;Ai<nr.childNodes.length;Ai++)ur(nr.childNodes[Ai]);/^(pre|p)$/i.test(nr.nodeName)&&(Tt=!0),Qi&&(ct=!0)}else nr.nodeType==3&&kn(nr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ur(te),te!=be;)te=te.nextSibling,Tt=!1;return Xe}function Xc(E,te,be){var ge;if(te==E.display.lineDiv){if(ge=E.display.lineDiv.childNodes[be],!ge)return _c(E.clipPos(Jt(E.display.viewTo-1)),!0);te=null,be=0}else for(ge=te;;ge=ge.parentNode){if(!ge||ge==E.display.lineDiv)return null;if(ge.parentNode&&ge.parentNode==E.display.lineDiv)break}for(var Oe=0;Oe<E.display.view.length;Oe++){var Xe=E.display.view[Oe];if(Xe.node==ge)return fh(Xe,te,be)}}function fh(E,te,be){var ge=E.text.firstChild,Oe=!1;if(!te||!We(ge,te))return _c(Jt(Er(E.line),0),!0);if(te==ge&&(Oe=!0,te=ge.childNodes[be],be=0,!te)){var Xe=E.rest?Lt(E.rest):E.line;return _c(Jt(Er(Xe),Xe.text.length),Oe)}var ct=te.nodeType==3?te:null,Mt=te;for(!ct&&te.childNodes.length==1&&te.firstChild.nodeType==3&&(ct=te.firstChild,be&&(be=ct.nodeValue.length));Mt.parentNode!=ge;)Mt=Mt.parentNode;var Tt=E.measure,$t=Tt.maps;function mn(yi,$i,Qi){for(var Ai=-1;Ai<($t?$t.length:0);Ai++)for(var ia=Ai<0?Tt.map:$t[Ai],Pa=0;Pa<ia.length;Pa+=3){var Ba=ia[Pa+2];if(Ba==yi||Ba==$i){var Eo=Er(Ai<0?E.line:E.rest[Ai]),gs=ia[Pa]+Qi;return(Qi<0||Ba!=yi)&&(gs=ia[Pa+(Qi?1:0)]),Jt(Eo,gs)}}}var kn=mn(ct,Mt,be);if(kn)return _c(kn,Oe);for(var ur=Mt.nextSibling,nr=ct?ct.nodeValue.length-be:0;ur;ur=ur.nextSibling){if(kn=mn(ur,ur.firstChild,0),kn)return _c(Jt(kn.line,kn.ch-nr),Oe);nr+=ur.textContent.length}for(var Fr=Mt.previousSibling,Jr=be;Fr;Fr=Fr.previousSibling){if(kn=mn(Fr,Fr.firstChild,-1),kn)return _c(Jt(kn.line,kn.ch+Jr),Oe);Jr+=Fr.textContent.length}}var vs=function(E){this.cm=E,this.prevInput="",this.pollingFast=!1,this.polling=new Qe,this.hasSelection=!1,this.composing=null};vs.prototype.init=function(E){var te=this,be=this,ge=this.cm;this.createField(E);var Oe=this.textarea;E.wrapper.insertBefore(this.wrapper,E.wrapper.firstChild),ue&&(Oe.style.width="0px"),Vt(Oe,"input",function(){pe&&ne>=9&&te.hasSelection&&(te.hasSelection=null),be.poll()}),Vt(Oe,"paste",function(ct){xt(ge,ct)||$u(ct,ge)||(ge.state.pasteIncoming=+new Date,be.fastPoll())});function Xe(ct){if(!xt(ge,ct)){if(ge.somethingSelected())vc({lineWise:!1,text:ge.getSelections()});else if(ge.options.lineWiseCopyCut){var Mt=Fc(ge);vc({lineWise:!0,text:Mt.text}),ct.type=="cut"?ge.setSelections(Mt.ranges,null,nt):(be.prevInput="",Oe.value=Mt.text.join(`
|
|
|
`),et(Oe))}else return;ct.type=="cut"&&(ge.state.cutIncoming=+new Date)}}Vt(Oe,"cut",Xe),Vt(Oe,"copy",Xe),Vt(E.scroller,"paste",function(ct){if(!(Vi(E,ct)||xt(ge,ct))){if(!Oe.dispatchEvent){ge.state.pasteIncoming=+new Date,be.focus();return}var Mt=new Event("paste");Mt.clipboardData=ct.clipboardData,Oe.dispatchEvent(Mt)}}),Vt(E.lineSpace,"selectstart",function(ct){Vi(E,ct)||Tn(ct)}),Vt(Oe,"compositionstart",function(){var ct=ge.getCursor("from");be.composing&&be.composing.range.clear(),be.composing={start:ct,range:ge.markText(ct,ge.getCursor("to"),{className:"CodeMirror-composing"})}}),Vt(Oe,"compositionend",function(){be.composing&&(be.poll(),be.composing.range.clear(),be.composing=null)})},vs.prototype.createField=function(E){this.wrapper=Bo(),this.textarea=this.wrapper.firstChild},vs.prototype.screenReaderLabelChanged=function(E){E?this.textarea.setAttribute("aria-label",E):this.textarea.removeAttribute("aria-label")},vs.prototype.prepareSelection=function(){var E=this.cm,te=E.display,be=E.doc,ge=Sl(E);if(E.options.moveInputWithCursor){var Oe=lo(E,be.sel.primary().head,"div"),Xe=te.wrapper.getBoundingClientRect(),ct=te.lineDiv.getBoundingClientRect();ge.teTop=Math.max(0,Math.min(te.wrapper.clientHeight-10,Oe.top+ct.top-Xe.top)),ge.teLeft=Math.max(0,Math.min(te.wrapper.clientWidth-10,Oe.left+ct.left-Xe.left))}return ge},vs.prototype.showSelection=function(E){var te=this.cm,be=te.display;De(be.cursorDiv,E.cursors),De(be.selectionDiv,E.selection),E.teTop!=null&&(this.wrapper.style.top=E.teTop+"px",this.wrapper.style.left=E.teLeft+"px")},vs.prototype.reset=function(E){if(!(this.contextMenuPending||this.composing)){var te=this.cm;if(te.somethingSelected()){this.prevInput="";var be=te.getSelection();this.textarea.value=be,te.state.focused&&et(this.textarea),pe&&ne>=9&&(this.hasSelection=be)}else E||(this.prevInput=this.textarea.value="",pe&&ne>=9&&(this.hasSelection=null))}},vs.prototype.getField=function(){return this.textarea},vs.prototype.supportsTouch=function(){return!1},vs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!he||Be()!=this.textarea))try{this.textarea.focus()}catch(E){}},vs.prototype.blur=function(){this.textarea.blur()},vs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vs.prototype.receivedFocus=function(){this.slowPoll()},vs.prototype.slowPoll=function(){var E=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){E.poll(),E.cm.state.focused&&E.slowPoll()})},vs.prototype.fastPoll=function(){var E=!1,te=this;te.pollingFast=!0;function be(){var ge=te.poll();!ge&&!E?(E=!0,te.polling.set(60,be)):(te.pollingFast=!1,te.slowPoll())}te.polling.set(20,be)},vs.prototype.poll=function(){var E=this,te=this.cm,be=this.textarea,ge=this.prevInput;if(this.contextMenuPending||!te.state.focused||ir(be)&&!ge&&!this.composing||te.isReadOnly()||te.options.disableInput||te.state.keySeq)return!1;var Oe=be.value;if(Oe==ge&&!te.somethingSelected())return!1;if(pe&&ne>=9&&this.hasSelection===Oe||oe&&/[\uf700-\uf7ff]/.test(Oe))return te.display.input.reset(),!1;if(te.doc.sel==te.display.selForContextMenu){var Xe=Oe.charCodeAt(0);if(Xe==8203&&!ge&&(ge="\u200B"),Xe==8666)return this.reset(),this.cm.execCommand("undo")}for(var ct=0,Mt=Math.min(ge.length,Oe.length);ct<Mt&&ge.charCodeAt(ct)==Oe.charCodeAt(ct);)++ct;return uo(te,function(){yu(te,Oe.slice(ct),ge.length-ct,null,E.composing?"*compose":null),Oe.length>1e3||Oe.indexOf(`
|
|
|
`)>-1?be.value=E.prevInput="":E.prevInput=Oe,E.composing&&(E.composing.range.clear(),E.composing.range=te.markText(E.composing.start,te.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vs.prototype.onKeyPress=function(){pe&&ne>=9&&(this.hasSelection=null),this.fastPoll()},vs.prototype.onContextMenu=function(E){var te=this,be=te.cm,ge=be.display,Oe=te.textarea;te.contextMenuPending&&te.contextMenuPending();var Xe=$s(be,E),ct=ge.scroller.scrollTop;if(!Xe||se)return;var Mt=be.options.resetSelectionOnContextMenu;Mt&&be.doc.sel.contains(Xe)==-1&&Ko(be,Kr)(be.doc,ac(Xe),nt);var Tt=Oe.style.cssText,$t=te.wrapper.style.cssText,mn=te.wrapper.offsetParent.getBoundingClientRect();te.wrapper.style.cssText="position: static",Oe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(E.clientY-mn.top-5)+"px; left: "+(E.clientX-mn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(pe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var kn;z&&(kn=window.scrollY),ge.input.focus(),z&&window.scrollTo(null,kn),ge.input.reset(),be.somethingSelected()||(Oe.value=te.prevInput=" "),te.contextMenuPending=nr,ge.selForContextMenu=be.doc.sel,clearTimeout(ge.detectingSelectAll);function ur(){if(Oe.selectionStart!=null){var Jr=be.somethingSelected(),yi="\u200B"+(Jr?Oe.value:"");Oe.value="\u21DA",Oe.value=yi,te.prevInput=Jr?"":"\u200B",Oe.selectionStart=1,Oe.selectionEnd=yi.length,ge.selForContextMenu=be.doc.sel}}function nr(){if(te.contextMenuPending==nr&&(te.contextMenuPending=!1,te.wrapper.style.cssText=$t,Oe.style.cssText=Tt,pe&&ne<9&&ge.scrollbars.setScrollTop(ge.scroller.scrollTop=ct),Oe.selectionStart!=null)){(!pe||pe&&ne<9)&&ur();var Jr=0,yi=function(){ge.selForContextMenu==be.doc.sel&&Oe.selectionStart==0&&Oe.selectionEnd>0&&te.prevInput=="\u200B"?Ko(be,Ua)(be):Jr++<10?ge.detectingSelectAll=setTimeout(yi,500):(ge.selForContextMenu=null,ge.input.reset())};ge.detectingSelectAll=setTimeout(yi,200)}}if(pe&&ne>=9&&ur(),Me){Ar(E);var Fr=function(){sn(window,"mouseup",Fr),setTimeout(nr,20)};Vt(window,"mouseup",Fr)}else setTimeout(nr,50)},vs.prototype.readOnlyChanged=function(E){E||this.reset(),this.textarea.disabled=E=="nocursor",this.textarea.readOnly=!!E},vs.prototype.setUneditable=function(){},vs.prototype.needsContentAttribute=!1;function xu(E,te){if(te=te?yt(te):{},te.value=E.value,!te.tabindex&&E.tabIndex&&(te.tabindex=E.tabIndex),!te.placeholder&&E.placeholder&&(te.placeholder=E.placeholder),te.autofocus==null){var be=Be();te.autofocus=be==E||E.getAttribute("autofocus")!=null&&be==document.body}function ge(){E.value=Mt.getValue()}var Oe;if(E.form&&(Vt(E.form,"submit",ge),!te.leaveSubmitMethodAlone)){var Xe=E.form;Oe=Xe.submit;try{var ct=Xe.submit=function(){ge(),Xe.submit=Oe,Xe.submit(),Xe.submit=ct}}catch(Tt){}}te.finishInit=function(Tt){Tt.save=ge,Tt.getTextArea=function(){return E},Tt.toTextArea=function(){Tt.toTextArea=isNaN,ge(),E.parentNode.removeChild(Tt.getWrapperElement()),E.style.display="",E.form&&(sn(E.form,"submit",ge),!te.leaveSubmitMethodAlone&&typeof E.form.submit=="function"&&(E.form.submit=Oe))}},E.style.display="none";var Mt=Wa(function(Tt){return E.parentNode.insertBefore(Tt,E.nextSibling)},te);return Mt}function zu(E){E.off=sn,E.on=Vt,E.wheelEventPixels=Ad,E.Doc=Mi,E.splitLines=cn,E.countColumn=Ve,E.findColumn=Et,E.isWordChar=ze,E.Pass=ft,E.signal=Dt,E.Line=Xn,E.changeEnd=Cc,E.scrollbarModel=hc,E.Pos=Jt,E.cmpPos=pn,E.modes=Nn,E.mimeModes=Hn,E.resolveMode=Xt,E.getMode=rn,E.modeExtensions=An,E.extendMode=zt,E.copyState=tn,E.startState=wn,E.innerMode=bn,E.commands=ms,E.keyMap=Ya,E.keyName=kl,E.isModifierKey=Ks,E.lookupKey=Os,E.normalizeKeyMap=oo,E.StringStream=zn,E.SharedTextMarker=$a,E.TextMarker=Uo,E.LineWidget=ts,E.e_preventDefault=Tn,E.e_stopPropagation=ar,E.e_stop=Ar,E.addClass=He,E.contains=We,E.rmClass=Ne,E.keyNames=bl}Bu(Wa),as(Wa);var $c="iter insert remove copy getEditor constructor".split(" ");for(var dc in Mi.prototype)Mi.prototype.hasOwnProperty(dc)&&pt($c,dc)<0&&(Wa.prototype[dc]=function(E){return function(){return E.apply(this.doc,arguments)}}(Mi.prototype[dc]));return fn(Mi),Wa.inputStyles={textarea:vs,contenteditable:jo},Wa.defineMode=function(E){!Wa.defaults.mode&&E!="null"&&(Wa.defaults.mode=E),jn.apply(this,arguments)},Wa.defineMIME=Gt,Wa.defineMode("null",function(){return{token:function(E){return E.skipToEnd()}}}),Wa.defineMIME("text/plain","null"),Wa.defineExtension=function(E,te){Wa.prototype[E]=te},Wa.defineDocExtension=function(E,te){Mi.prototype[E]=te},Wa.fromTextArea=xu,zu(Wa),Wa.version="5.58.2",Wa})},49047:function(xn,Zt,ve){(function(Ue){Ue(ve(4631),ve(29589),ve(52539))})(function(Ue){"use strict";Ue.defineMode("markdown",function(ot,x){var ke=Ue.getMode(ot,"text/html"),pe=ke.name=="null";function ne(Ve){if(Ue.findModeByName){var Qe=Ue.findModeByName(Ve);Qe&&(Ve=Qe.mime||Qe.mimes[0])}var pt=Ue.getMode(ot,Ve);return pt.name=="null"?null:pt}x.highlightFormatting===void 0&&(x.highlightFormatting=!1),x.maxBlockquoteDepth===void 0&&(x.maxBlockquoteDepth=0),x.taskLists===void 0&&(x.taskLists=!1),x.strikethrough===void 0&&(x.strikethrough=!1),x.emoji===void 0&&(x.emoji=!1),x.fencedCodeBlockHighlighting===void 0&&(x.fencedCodeBlockHighlighting=!0),x.fencedCodeBlockDefaultMode===void 0&&(x.fencedCodeBlockDefaultMode="text/plain"),x.xml===void 0&&(x.xml=!0),x.tokenTypeOverrides===void 0&&(x.tokenTypeOverrides={});var z={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var ae in z)z.hasOwnProperty(ae)&&x.tokenTypeOverrides[ae]&&(z[ae]=x.tokenTypeOverrides[ae]);var re=/^([*\-_])(?:\s*\1){2,}\s*$/,se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,me=/^\[(x| )\](?=\s)/i,ie=x.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,le=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ue=/^[^#!\[\]*_\\<>` "'(~:]+/,fe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,he=/^\s*\[[^\]]+?\]:.*$/,oe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Se=" ";function Ce(Ve,Qe,pt){return Qe.f=Qe.inline=pt,pt(Ve,Qe)}function ye(Ve,Qe,pt){return Qe.f=Qe.block=pt,pt(Ve,Qe)}function _e(Ve){return!Ve||!/\S/.test(Ve.string)}function Me(Ve){if(Ve.linkTitle=!1,Ve.linkHref=!1,Ve.linkText=!1,Ve.em=!1,Ve.strong=!1,Ve.strikethrough=!1,Ve.quote=0,Ve.indentedCode=!1,Ve.f==Ne){var Qe=pe;if(!Qe){var pt=Ue.innerMode(ke,Ve.htmlState);Qe=pt.mode.name=="xml"&&pt.state.tagStart===null&&!pt.state.context&&pt.state.tokenize.isInText}Qe&&(Ve.f=Pe,Ve.block=we,Ve.htmlState=null)}return Ve.trailingSpace=0,Ve.trailingSpaceNewLine=!1,Ve.prevLine=Ve.thisLine,Ve.thisLine={stream:null},null}function we(Ve,Qe){var pt=Ve.column()===Qe.indentation,mt=_e(Qe.prevLine.stream),ft=Qe.indentedCode,nt=Qe.prevLine.hr,tt=Qe.list!==!1,rt=(Qe.listStack[Qe.listStack.length-1]||0)+3;Qe.indentedCode=!1;var Et=Qe.indentation;if(Qe.indentationDiff===null&&(Qe.indentationDiff=Qe.indentation,tt)){for(Qe.list=null;Et<Qe.listStack[Qe.listStack.length-1];)Qe.listStack.pop(),Qe.listStack.length?Qe.indentation=Qe.listStack[Qe.listStack.length-1]:Qe.list=!1;Qe.list!==!1&&(Qe.indentationDiff=Et-Qe.listStack[Qe.listStack.length-1])}var bt=!mt&&!nt&&!Qe.prevLine.header&&(!tt||!ft)&&!Qe.prevLine.fencedCodeEnd,Pt=(Qe.list===!1||nt||mt)&&Qe.indentation<=rt&&Ve.match(re),Lt=null;if(Qe.indentationDiff>=4&&(ft||Qe.prevLine.fencedCodeEnd||Qe.prevLine.header||mt))return Ve.skipToEnd(),Qe.indentedCode=!0,z.code;if(Ve.eatSpace())return null;if(pt&&Qe.indentation<=rt&&(Lt=Ve.match(ie))&&Lt[1].length<=6)return Qe.quote=0,Qe.header=Lt[1].length,Qe.thisLine.header=!0,x.highlightFormatting&&(Qe.formatting="header"),Qe.f=Qe.inline,De(Qe);if(Qe.indentation<=rt&&Ve.eat(">"))return Qe.quote=pt?1:Qe.quote+1,x.highlightFormatting&&(Qe.formatting="quote"),Ve.eatSpace(),De(Qe);if(!Pt&&!Qe.setext&&pt&&Qe.indentation<=rt&&(Lt=Ve.match(se))){var dt=Lt[1]?"ol":"ul";return Qe.indentation=Et+Ve.current().length,Qe.list=!0,Qe.quote=0,Qe.listStack.push(Qe.indentation),Qe.em=!1,Qe.strong=!1,Qe.code=!1,Qe.strikethrough=!1,x.taskLists&&Ve.match(me,!1)&&(Qe.taskList=!0),Qe.f=Qe.inline,x.highlightFormatting&&(Qe.formatting=["list","list-"+dt]),De(Qe)}else{if(pt&&Qe.indentation<=rt&&(Lt=Ve.match(fe,!0)))return Qe.quote=0,Qe.fencedEndRE=new RegExp(Lt[1]+"+ *$"),Qe.localMode=x.fencedCodeBlockHighlighting&&ne(Lt[2]||x.fencedCodeBlockDefaultMode),Qe.localMode&&(Qe.localState=Ue.startState(Qe.localMode)),Qe.f=Qe.block=Ae,x.highlightFormatting&&(Qe.formatting="code-block"),Qe.code=-1,De(Qe);if(Qe.setext||(!bt||!tt)&&!Qe.quote&&Qe.list===!1&&!Qe.code&&!Pt&&!he.test(Ve.string)&&(Lt=Ve.lookAhead(1))&&(Lt=Lt.match(le)))return Qe.setext?(Qe.header=Qe.setext,Qe.setext=0,Ve.skipToEnd(),x.highlightFormatting&&(Qe.formatting="header")):(Qe.header=Lt[0].charAt(0)=="="?1:2,Qe.setext=Qe.header),Qe.thisLine.header=!0,Qe.f=Qe.inline,De(Qe);if(Pt)return Ve.skipToEnd(),Qe.hr=!0,Qe.thisLine.hr=!0,z.hr;if(Ve.peek()==="[")return Ce(Ve,Qe,Ye)}return Ce(Ve,Qe,Qe.inline)}function Ne(Ve,Qe){var pt=ke.token(Ve,Qe.htmlState);if(!pe){var mt=Ue.innerMode(ke,Qe.htmlState);(mt.mode.name=="xml"&&mt.state.tagStart===null&&!mt.state.context&&mt.state.tokenize.isInText||Qe.md_inside&&Ve.current().indexOf(">")>-1)&&(Qe.f=Pe,Qe.block=we,Qe.htmlState=null)}return pt}function Ae(Ve,Qe){var pt=Qe.listStack[Qe.listStack.length-1]||0,mt=Qe.indentation<pt,ft=pt+3;if(Qe.fencedEndRE&&Qe.indentation<=ft&&(mt||Ve.match(Qe.fencedEndRE))){x.highlightFormatting&&(Qe.formatting="code-block");var nt;return mt||(nt=De(Qe)),Qe.localMode=Qe.localState=null,Qe.block=we,Qe.f=Pe,Qe.fencedEndRE=null,Qe.code=0,Qe.thisLine.fencedCodeEnd=!0,mt?ye(Ve,Qe,Qe.block):nt}else return Qe.localMode?Qe.localMode.token(Ve,Qe.localState):(Ve.skipToEnd(),z.code)}function De(Ve){var Qe=[];if(Ve.formatting){Qe.push(z.formatting),typeof Ve.formatting=="string"&&(Ve.formatting=[Ve.formatting]);for(var pt=0;pt<Ve.formatting.length;pt++)Qe.push(z.formatting+"-"+Ve.formatting[pt]),Ve.formatting[pt]==="header"&&Qe.push(z.formatting+"-"+Ve.formatting[pt]+"-"+Ve.header),Ve.formatting[pt]==="quote"&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=Ve.quote?Qe.push(z.formatting+"-"+Ve.formatting[pt]+"-"+Ve.quote):Qe.push("error"))}if(Ve.taskOpen)return Qe.push("meta"),Qe.length?Qe.join(" "):null;if(Ve.taskClosed)return Qe.push("property"),Qe.length?Qe.join(" "):null;if(Ve.linkHref?Qe.push(z.linkHref,"url"):(Ve.strong&&Qe.push(z.strong),Ve.em&&Qe.push(z.em),Ve.strikethrough&&Qe.push(z.strikethrough),Ve.emoji&&Qe.push(z.emoji),Ve.linkText&&Qe.push(z.linkText),Ve.code&&Qe.push(z.code),Ve.image&&Qe.push(z.image),Ve.imageAltText&&Qe.push(z.imageAltText,"link"),Ve.imageMarker&&Qe.push(z.imageMarker)),Ve.header&&Qe.push(z.header,z.header+"-"+Ve.header),Ve.quote&&(Qe.push(z.quote),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=Ve.quote?Qe.push(z.quote+"-"+Ve.quote):Qe.push(z.quote+"-"+x.maxBlockquoteDepth)),Ve.list!==!1){var mt=(Ve.listStack.length-1)%3;mt?mt===1?Qe.push(z.list2):Qe.push(z.list3):Qe.push(z.list1)}return Ve.trailingSpaceNewLine?Qe.push("trailing-space-new-line"):Ve.trailingSpace&&Qe.push("trailing-space-"+(Ve.trailingSpace%2?"a":"b")),Qe.length?Qe.join(" "):null}function Ie(Ve,Qe){if(Ve.match(ue,!0))return De(Qe)}function Pe(Ve,Qe){var pt=Qe.text(Ve,Qe);if(typeof pt!="undefined")return pt;if(Qe.list)return Qe.list=null,De(Qe);if(Qe.taskList){var mt=Ve.match(me,!0)[1]===" ";return mt?Qe.taskOpen=!0:Qe.taskClosed=!0,x.highlightFormatting&&(Qe.formatting="task"),Qe.taskList=!1,De(Qe)}if(Qe.taskOpen=!1,Qe.taskClosed=!1,Qe.header&&Ve.match(/^#+$/,!0))return x.highlightFormatting&&(Qe.formatting="header"),De(Qe);var ft=Ve.next();if(Qe.linkTitle){Qe.linkTitle=!1;var nt=ft;ft==="("&&(nt=")"),nt=(nt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var tt="^\\s*(?:[^"+nt+"\\\\]+|\\\\\\\\|\\\\.)"+nt;if(Ve.match(new RegExp(tt),!0))return z.linkHref}if(ft==="`"){var rt=Qe.formatting;x.highlightFormatting&&(Qe.formatting="code"),Ve.eatWhile("`");var Et=Ve.current().length;if(Qe.code==0&&(!Qe.quote||Et==1))return Qe.code=Et,De(Qe);if(Et==Qe.code){var bt=De(Qe);return Qe.code=0,bt}else return Qe.formatting=rt,De(Qe)}else if(Qe.code)return De(Qe);if(ft==="\\"&&(Ve.next(),x.highlightFormatting)){var Pt=De(Qe),Lt=z.formatting+"-escape";return Pt?Pt+" "+Lt:Lt}if(ft==="!"&&Ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Qe.imageMarker=!0,Qe.image=!0,x.highlightFormatting&&(Qe.formatting="image"),De(Qe);if(ft==="["&&Qe.imageMarker&&Ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Qe.imageMarker=!1,Qe.imageAltText=!0,x.highlightFormatting&&(Qe.formatting="image"),De(Qe);if(ft==="]"&&Qe.imageAltText){x.highlightFormatting&&(Qe.formatting="image");var Pt=De(Qe);return Qe.imageAltText=!1,Qe.image=!1,Qe.inline=Qe.f=We,Pt}if(ft==="["&&!Qe.image)return Qe.linkText&&Ve.match(/^.*?\]/)||(Qe.linkText=!0,x.highlightFormatting&&(Qe.formatting="link")),De(Qe);if(ft==="]"&&Qe.linkText){x.highlightFormatting&&(Qe.formatting="link");var Pt=De(Qe);return Qe.linkText=!1,Qe.inline=Qe.f=Ve.match(/\(.*?\)| ?\[.*?\]/,!1)?We:Pe,Pt}if(ft==="<"&&Ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Qe.f=Qe.inline=Le,x.highlightFormatting&&(Qe.formatting="link");var Pt=De(Qe);return Pt?Pt+=" ":Pt="",Pt+z.linkInline}if(ft==="<"&&Ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Qe.f=Qe.inline=Le,x.highlightFormatting&&(Qe.formatting="link");var Pt=De(Qe);return Pt?Pt+=" ":Pt="",Pt+z.linkEmail}if(x.xml&&ft==="<"&&Ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var dt=Ve.string.indexOf(">",Ve.pos);if(dt!=-1){var Ze=Ve.string.substring(Ve.start,dt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ze)&&(Qe.md_inside=!0)}return Ve.backUp(1),Qe.htmlState=Ue.startState(ke),ye(Ve,Qe,Ne)}if(x.xml&&ft==="<"&&Ve.match(/^\/\w*?>/))return Qe.md_inside=!1,"tag";if(ft==="*"||ft==="_"){for(var Ke=1,de=Ve.pos==1?" ":Ve.string.charAt(Ve.pos-2);Ke<3&&Ve.eat(ft);)Ke++;var xe=Ve.peek()||" ",ze=!/\s/.test(xe)&&(!oe.test(xe)||/\s/.test(de)||oe.test(de)),$e=!/\s/.test(de)&&(!oe.test(de)||/\s/.test(xe)||oe.test(xe)),Ee=null,Re=null;if(Ke%2&&(!Qe.em&&ze&&(ft==="*"||!$e||oe.test(de))?Ee=!0:Qe.em==ft&&$e&&(ft==="*"||!ze||oe.test(xe))&&(Ee=!1)),Ke>1&&(!Qe.strong&&ze&&(ft==="*"||!$e||oe.test(de))?Re=!0:Qe.strong==ft&&$e&&(ft==="*"||!ze||oe.test(xe))&&(Re=!1)),Re!=null||Ee!=null){x.highlightFormatting&&(Qe.formatting=Ee==null?"strong":Re==null?"em":"strong em"),Ee===!0&&(Qe.em=ft),Re===!0&&(Qe.strong=ft);var bt=De(Qe);return Ee===!1&&(Qe.em=!1),Re===!1&&(Qe.strong=!1),bt}}else if(ft===" "&&(Ve.eat("*")||Ve.eat("_"))){if(Ve.peek()===" ")return De(Qe);Ve.backUp(1)}if(x.strikethrough){if(ft==="~"&&Ve.eatWhile(ft)){if(Qe.strikethrough){x.highlightFormatting&&(Qe.formatting="strikethrough");var bt=De(Qe);return Qe.strikethrough=!1,bt}else if(Ve.match(/^[^\s]/,!1))return Qe.strikethrough=!0,x.highlightFormatting&&(Qe.formatting="strikethrough"),De(Qe)}else if(ft===" "&&Ve.match(/^~~/,!0)){if(Ve.peek()===" ")return De(Qe);Ve.backUp(2)}}if(x.emoji&&ft===":"&&Ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Qe.emoji=!0,x.highlightFormatting&&(Qe.formatting="emoji");var Fe=De(Qe);return Qe.emoji=!1,Fe}return ft===" "&&(Ve.match(/^ +$/,!1)?Qe.trailingSpace++:Qe.trailingSpace&&(Qe.trailingSpaceNewLine=!0)),De(Qe)}function Le(Ve,Qe){var pt=Ve.next();if(pt===">"){Qe.f=Qe.inline=Pe,x.highlightFormatting&&(Qe.formatting="link");var mt=De(Qe);return mt?mt+=" ":mt="",mt+z.linkInline}return Ve.match(/^[^>]+/,!0),z.linkInline}function We(Ve,Qe){if(Ve.eatSpace())return null;var pt=Ve.next();return pt==="("||pt==="["?(Qe.f=Qe.inline=He(pt==="("?")":"]"),x.highlightFormatting&&(Qe.formatting="link-string"),Qe.linkHref=!0,De(Qe)):"error"}var Be={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function He(Ve){return function(Qe,pt){var mt=Qe.next();if(mt===Ve){pt.f=pt.inline=Pe,x.highlightFormatting&&(pt.formatting="link-string");var ft=De(pt);return pt.linkHref=!1,ft}return Qe.match(Be[Ve]),pt.linkHref=!0,De(pt)}}function Ye(Ve,Qe){return Ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(Qe.f=et,Ve.next(),x.highlightFormatting&&(Qe.formatting="link"),Qe.linkText=!0,De(Qe)):Ce(Ve,Qe,Pe)}function et(Ve,Qe){if(Ve.match(/^\]:/,!0)){Qe.f=Qe.inline=st,x.highlightFormatting&&(Qe.formatting="link");var pt=De(Qe);return Qe.linkText=!1,pt}return Ve.match(/^([^\]\\]|\\.)+/,!0),z.linkText}function st(Ve,Qe){return Ve.eatSpace()?null:(Ve.match(/^[^\s]+/,!0),Ve.peek()===void 0?Qe.linkTitle=!0:Ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Qe.f=Qe.inline=Pe,z.linkHref+" url")}var yt={startState:function(){return{f:we,prevLine:{stream:null},thisLine:{stream:null},block:we,htmlState:null,indentation:0,inline:Pe,text:Ie,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ve){return{f:Ve.f,prevLine:Ve.prevLine,thisLine:Ve.thisLine,block:Ve.block,htmlState:Ve.htmlState&&Ue.copyState(ke,Ve.htmlState),indentation:Ve.indentation,localMode:Ve.localMode,localState:Ve.localMode?Ue.copyState(Ve.localMode,Ve.localState):null,inline:Ve.inline,text:Ve.text,formatting:!1,linkText:Ve.linkText,linkTitle:Ve.linkTitle,linkHref:Ve.linkHref,code:Ve.code,em:Ve.em,strong:Ve.strong,strikethrough:Ve.strikethrough,emoji:Ve.emoji,header:Ve.header,setext:Ve.setext,hr:Ve.hr,taskList:Ve.taskList,list:Ve.list,listStack:Ve.listStack.slice(0),quote:Ve.quote,indentedCode:Ve.indentedCode,trailingSpace:Ve.trailingSpace,trailingSpaceNewLine:Ve.trailingSpaceNewLine,md_inside:Ve.md_inside,fencedEndRE:Ve.fencedEndRE}},token:function(Ve,Qe){if(Qe.formatting=!1,Ve!=Qe.thisLine.stream){if(Qe.header=0,Qe.hr=!1,Ve.match(/^\s*$/,!0))return Me(Qe),null;if(Qe.prevLine=Qe.thisLine,Qe.thisLine={stream:Ve},Qe.taskList=!1,Qe.trailingSpace=0,Qe.trailingSpaceNewLine=!1,!Qe.localState&&(Qe.f=Qe.block,Qe.f!=Ne)){var pt=Ve.match(/^\s*/,!0)[0].replace(/\t/g,Se).length;if(Qe.indentation=pt,Qe.indentationDiff=null,pt>0)return null}}return Qe.f(Ve,Qe)},innerMode:function(Ve){return Ve.block==Ne?{state:Ve.htmlState,mode:ke}:Ve.localState?{state:Ve.localState,mode:Ve.localMode}:{state:Ve,mode:yt}},indent:function(Ve,Qe,pt){return Ve.block==Ne&&ke.indent?ke.indent(Ve.htmlState,Qe,pt):Ve.localState&&Ve.localMode.indent?Ve.localMode.indent(Ve.localState,Qe,pt):Ue.Pass},blankLine:Me,getType:De,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return yt},"xml"),Ue.defineMIME("text/markdown","markdown"),Ue.defineMIME("text/x-markdown","markdown")})},52539:function(xn,Zt,ve){(function(Ue){Ue(ve(4631))})(function(Ue){"use strict";Ue.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ot=0;ot<Ue.modeInfo.length;ot++){var x=Ue.modeInfo[ot];x.mimes&&(x.mime=x.mimes[0])}Ue.findModeByMIME=function(ke){ke=ke.toLowerCase();for(var pe=0;pe<Ue.modeInfo.length;pe++){var ne=Ue.modeInfo[pe];if(ne.mime==ke)return ne;if(ne.mimes){for(var z=0;z<ne.mimes.length;z++)if(ne.mimes[z]==ke)return ne}}if(/\+xml$/.test(ke))return Ue.findModeByMIME("application/xml");if(/\+json$/.test(ke))return Ue.findModeByMIME("application/json")},Ue.findModeByExtension=function(ke){ke=ke.toLowerCase();for(var pe=0;pe<Ue.modeInfo.length;pe++){var ne=Ue.modeInfo[pe];if(ne.ext){for(var z=0;z<ne.ext.length;z++)if(ne.ext[z]==ke)return ne}}},Ue.findModeByFileName=function(ke){for(var pe=0;pe<Ue.modeInfo.length;pe++){var ne=Ue.modeInfo[pe];if(ne.file&&ne.file.test(ke))return ne}var z=ke.lastIndexOf("."),ae=z>-1&&ke.substring(z+1,ke.length);if(ae)return Ue.findModeByExtension(ae)},Ue.findModeByName=function(ke){ke=ke.toLowerCase();for(var pe=0;pe<Ue.modeInfo.length;pe++){var ne=Ue.modeInfo[pe];if(ne.name.toLowerCase()==ke)return ne;if(ne.alias){for(var z=0;z<ne.alias.length;z++)if(ne.alias[z].toLowerCase()==ke)return ne}}}})},80785:function(xn,Zt,ve){(function(Ue){Ue(ve(4631))})(function(Ue){"use strict";Ue.defineMode("stex",function(ot,x){"use strict";function ke(ue,fe){ue.cmdState.push(fe)}function pe(ue){return ue.cmdState.length>0?ue.cmdState[ue.cmdState.length-1]:null}function ne(ue){var fe=ue.cmdState.pop();fe&&fe.closeBracket()}function z(ue){for(var fe=ue.cmdState,he=fe.length-1;he>=0;he--){var oe=fe[he];if(oe.name!="DEFAULT")return oe}return{styleIdentifier:function(){return null}}}function ae(ue,fe,he){return function(){this.name=ue,this.bracketNo=0,this.style=fe,this.styles=he,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var re={};re.importmodule=ae("importmodule","tag",["string","builtin"]),re.documentclass=ae("documentclass","tag",["","atom"]),re.usepackage=ae("usepackage","tag",["atom"]),re.begin=ae("begin","tag",["atom"]),re.end=ae("end","tag",["atom"]),re.label=ae("label","tag",["atom"]),re.ref=ae("ref","tag",["atom"]),re.eqref=ae("eqref","tag",["atom"]),re.cite=ae("cite","tag",["atom"]),re.bibitem=ae("bibitem","tag",["atom"]),re.Bibitem=ae("Bibitem","tag",["atom"]),re.RBibitem=ae("RBibitem","tag",["atom"]),re.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function se(ue,fe){ue.f=fe}function me(ue,fe){var he;if(ue.match(/^\\[a-zA-Z@]+/)){var oe=ue.current().slice(1);return he=re.hasOwnProperty(oe)?re[oe]:re.DEFAULT,he=new he,ke(fe,he),se(fe,le),he.style}if(ue.match(/^\\[$&%#{}_]/)||ue.match(/^\\[,;!\/\\]/))return"tag";if(ue.match("\\["))return se(fe,function(Ce,ye){return ie(Ce,ye,"\\]")}),"keyword";if(ue.match("\\("))return se(fe,function(Ce,ye){return ie(Ce,ye,"\\)")}),"keyword";if(ue.match("$$"))return se(fe,function(Ce,ye){return ie(Ce,ye,"$$")}),"keyword";if(ue.match("$"))return se(fe,function(Ce,ye){return ie(Ce,ye,"$")}),"keyword";var Se=ue.next();if(Se=="%")return ue.skipToEnd(),"comment";if(Se=="}"||Se=="]"){if(he=pe(fe),he)he.closeBracket(Se),se(fe,le);else return"error";return"bracket"}else return Se=="{"||Se=="["?(he=re.DEFAULT,he=new he,ke(fe,he),"bracket"):/\d/.test(Se)?(ue.eatWhile(/[\w.%]/),"atom"):(ue.eatWhile(/[\w\-_]/),he=z(fe),he.name=="begin"&&(he.argument=ue.current()),he.styleIdentifier())}function ie(ue,fe,he){if(ue.eatSpace())return null;if(he&&ue.match(he))return se(fe,me),"keyword";if(ue.match(/^\\[a-zA-Z@]+/))return"tag";if(ue.match(/^[a-zA-Z]+/))return"variable-2";if(ue.match(/^\\[$&%#{}_]/)||ue.match(/^\\[,;!\/]/)||ue.match(/^[\^_&]/))return"tag";if(ue.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ue.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var oe=ue.next();return oe=="{"||oe=="}"||oe=="["||oe=="]"||oe=="("||oe==")"?"bracket":oe=="%"?(ue.skipToEnd(),"comment"):"error"}function le(ue,fe){var he=ue.peek(),oe;return he=="{"||he=="["?(oe=pe(fe),oe.openBracket(he),ue.eat(he),se(fe,me),"bracket"):/[ \t\r]/.test(he)?(ue.eat(he),null):(se(fe,me),ne(fe),me(ue,fe))}return{startState:function(){var ue=x.inMathMode?function(fe,he){return ie(fe,he)}:me;return{cmdState:[],f:ue}},copyState:function(ue){return{cmdState:ue.cmdState.slice(),f:ue.f}},token:function(ue,fe){return fe.f(ue,fe)},blankLine:function(ue){ue.f=me,ue.cmdState.length=0},lineComment:"%"}}),Ue.defineMIME("text/x-stex","stex"),Ue.defineMIME("text/x-latex","stex")})},29589:function(xn,Zt,ve){(function(Ue){Ue(ve(4631))})(function(Ue){"use strict";var ot={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ue.defineMode("xml",function(ke,pe){var ne=ke.indentUnit,z={},ae=pe.htmlMode?ot:x;for(var re in ae)z[re]=ae[re];for(var re in pe)z[re]=pe[re];var se,me;function ie(Le,We){function Be(et){return We.tokenize=et,et(Le,We)}var He=Le.next();if(He=="<")return Le.eat("!")?Le.eat("[")?Le.match("CDATA[")?Be(fe("atom","]]>")):null:Le.match("--")?Be(fe("comment","-->")):Le.match("DOCTYPE",!0,!0)?(Le.eatWhile(/[\w\._\-]/),Be(he(1))):null:Le.eat("?")?(Le.eatWhile(/[\w\._\-]/),We.tokenize=fe("meta","?>"),"meta"):(se=Le.eat("/")?"closeTag":"openTag",We.tokenize=le,"tag bracket");if(He=="&"){var Ye;return Le.eat("#")?Le.eat("x")?Ye=Le.eatWhile(/[a-fA-F\d]/)&&Le.eat(";"):Ye=Le.eatWhile(/[\d]/)&&Le.eat(";"):Ye=Le.eatWhile(/[\w\.\-:]/)&&Le.eat(";"),Ye?"atom":"error"}else return Le.eatWhile(/[^&<]/),null}ie.isInText=!0;function le(Le,We){var Be=Le.next();if(Be==">"||Be=="/"&&Le.eat(">"))return We.tokenize=ie,se=Be==">"?"endTag":"selfcloseTag","tag bracket";if(Be=="=")return se="equals",null;if(Be=="<"){We.tokenize=ie,We.state=ye,We.tagName=We.tagStart=null;var He=We.tokenize(Le,We);return He?He+" tag error":"tag error"}else return/[\'\"]/.test(Be)?(We.tokenize=ue(Be),We.stringStartCol=Le.column(),We.tokenize(Le,We)):(Le.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ue(Le){var We=function(Be,He){for(;!Be.eol();)if(Be.next()==Le){He.tokenize=le;break}return"string"};return We.isInAttribute=!0,We}function fe(Le,We){return function(Be,He){for(;!Be.eol();){if(Be.match(We)){He.tokenize=ie;break}Be.next()}return Le}}function he(Le){return function(We,Be){for(var He;(He=We.next())!=null;){if(He=="<")return Be.tokenize=he(Le+1),Be.tokenize(We,Be);if(He==">")if(Le==1){Be.tokenize=ie;break}else return Be.tokenize=he(Le-1),Be.tokenize(We,Be)}return"meta"}}function oe(Le,We,Be){this.prev=Le.context,this.tagName=We,this.indent=Le.indented,this.startOfLine=Be,(z.doNotIndent.hasOwnProperty(We)||Le.context&&Le.context.noIndent)&&(this.noIndent=!0)}function Se(Le){Le.context&&(Le.context=Le.context.prev)}function Ce(Le,We){for(var Be;;){if(!Le.context||(Be=Le.context.tagName,!z.contextGrabbers.hasOwnProperty(Be)||!z.contextGrabbers[Be].hasOwnProperty(We)))return;Se(Le)}}function ye(Le,We,Be){return Le=="openTag"?(Be.tagStart=We.column(),_e):Le=="closeTag"?Me:ye}function _e(Le,We,Be){return Le=="word"?(Be.tagName=We.current(),me="tag",Ae):z.allowMissingTagName&&Le=="endTag"?(me="tag bracket",Ae(Le,We,Be)):(me="error",_e)}function Me(Le,We,Be){if(Le=="word"){var He=We.current();return Be.context&&Be.context.tagName!=He&&z.implicitlyClosed.hasOwnProperty(Be.context.tagName)&&Se(Be),Be.context&&Be.context.tagName==He||z.matchClosing===!1?(me="tag",we):(me="tag error",Ne)}else return z.allowMissingTagName&&Le=="endTag"?(me="tag bracket",we(Le,We,Be)):(me="error",Ne)}function we(Le,We,Be){return Le!="endTag"?(me="error",we):(Se(Be),ye)}function Ne(Le,We,Be){return me="error",we(Le,We,Be)}function Ae(Le,We,Be){if(Le=="word")return me="attribute",De;if(Le=="endTag"||Le=="selfcloseTag"){var He=Be.tagName,Ye=Be.tagStart;return Be.tagName=Be.tagStart=null,Le=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(He)?Ce(Be,He):(Ce(Be,He),Be.context=new oe(Be,He,Ye==Be.indented)),ye}return me="error",Ae}function De(Le,We,Be){return Le=="equals"?Ie:(z.allowMissing||(me="error"),Ae(Le,We,Be))}function Ie(Le,We,Be){return Le=="string"?Pe:Le=="word"&&z.allowUnquoted?(me="string",Ae):(me="error",Ae(Le,We,Be))}function Pe(Le,We,Be){return Le=="string"?Pe:Ae(Le,We,Be)}return{startState:function(Le){var We={tokenize:ie,state:ye,indented:Le||0,tagName:null,tagStart:null,context:null};return Le!=null&&(We.baseIndent=Le),We},token:function(Le,We){if(!We.tagName&&Le.sol()&&(We.indented=Le.indentation()),Le.eatSpace())return null;se=null;var Be=We.tokenize(Le,We);return(Be||se)&&Be!="comment"&&(me=null,We.state=We.state(se||Be,Le,We),me&&(Be=me=="error"?Be+" error":me)),Be},indent:function(Le,We,Be){var He=Le.context;if(Le.tokenize.isInAttribute)return Le.tagStart==Le.indented?Le.stringStartCol+1:Le.indented+ne;if(He&&He.noIndent)return Ue.Pass;if(Le.tokenize!=le&&Le.tokenize!=ie)return Be?Be.match(/^(\s*)/)[0].length:0;if(Le.tagName)return z.multilineTagIndentPastTag!==!1?Le.tagStart+Le.tagName.length+2:Le.tagStart+ne*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(We))return 0;var Ye=We&&/^<(\/)?([\w_:\.-]*)/.exec(We);if(Ye&&Ye[1])for(;He;)if(He.tagName==Ye[2]){He=He.prev;break}else if(z.implicitlyClosed.hasOwnProperty(He.tagName))He=He.prev;else break;else if(Ye)for(;He;){var et=z.contextGrabbers[He.tagName];if(et&&et.hasOwnProperty(Ye[2]))He=He.prev;else break}for(;He&&He.prev&&!He.startOfLine;)He=He.prev;return He?He.indent+ne:Le.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(Le){Le.state==Ie&&(Le.state=Ae)},xmlCurrentTag:function(Le){return Le.tagName?{name:Le.tagName,close:Le.type=="closeTag"}:null},xmlCurrentContext:function(Le){for(var We=[],Be=Le.context;Be;Be=Be.prev)Be.tagName&&We.push(Be.tagName);return We.reverse()}}}),Ue.defineMIME("text/xml","xml"),Ue.defineMIME("application/xml","xml"),Ue.mimeModes.hasOwnProperty("text/html")||Ue.defineMIME("text/html",{name:"xml",htmlMode:!0})})},19575:function(xn,Zt,ve){var Ue,ot;(function(x,ke){xn.exports=ke(x)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ve.g!="undefined"?ve.g:this,function(x){"use strict";x=x||{};var ke=x.Base64,pe="2.6.4",ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=function(Be){for(var He={},Ye=0,et=Be.length;Ye<et;Ye++)He[Be.charAt(Ye)]=Ye;return He}(ne),ae=String.fromCharCode,re=function(Be){if(Be.length<2){var He=Be.charCodeAt(0);return He<128?Be:He<2048?ae(192|He>>>6)+ae(128|He&63):ae(224|He>>>12&15)+ae(128|He>>>6&63)+ae(128|He&63)}else{var He=65536+(Be.charCodeAt(0)-55296)*1024+(Be.charCodeAt(1)-56320);return ae(240|He>>>18&7)+ae(128|He>>>12&63)+ae(128|He>>>6&63)+ae(128|He&63)}},se=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,me=function(Be){return Be.replace(se,re)},ie=function(Be){var He=[0,2,1][Be.length%3],Ye=Be.charCodeAt(0)<<16|(Be.length>1?Be.charCodeAt(1):0)<<8|(Be.length>2?Be.charCodeAt(2):0),et=[ne.charAt(Ye>>>18),ne.charAt(Ye>>>12&63),He>=2?"=":ne.charAt(Ye>>>6&63),He>=1?"=":ne.charAt(Ye&63)];return et.join("")},le=x.btoa&&typeof x.btoa=="function"?function(Be){return x.btoa(Be)}:function(Be){if(Be.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Be.replace(/[\s\S]{1,3}/g,ie)},ue=function(Be){return le(me(String(Be)))},fe=function(Be){return Be.replace(/[+\/]/g,function(He){return He=="+"?"-":"_"}).replace(/=/g,"")},he=function(Be,He){return He?fe(ue(Be)):ue(Be)},oe=function(Be){return he(Be,!0)},Se;x.Uint8Array&&(Se=function(Be,He){for(var Ye="",et=0,st=Be.length;et<st;et+=3){var yt=Be[et],Ve=Be[et+1],Qe=Be[et+2],pt=yt<<16|Ve<<8|Qe;Ye+=ne.charAt(pt>>>18)+ne.charAt(pt>>>12&63)+(typeof Ve!="undefined"?ne.charAt(pt>>>6&63):"=")+(typeof Qe!="undefined"?ne.charAt(pt&63):"=")}return He?fe(Ye):Ye});var Ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ye=function(Be){switch(Be.length){case 4:var He=(7&Be.charCodeAt(0))<<18|(63&Be.charCodeAt(1))<<12|(63&Be.charCodeAt(2))<<6|63&Be.charCodeAt(3),Ye=He-65536;return ae((Ye>>>10)+55296)+ae((Ye&1023)+56320);case 3:return ae((15&Be.charCodeAt(0))<<12|(63&Be.charCodeAt(1))<<6|63&Be.charCodeAt(2));default:return ae((31&Be.charCodeAt(0))<<6|63&Be.charCodeAt(1))}},_e=function(Be){return Be.replace(Ce,ye)},Me=function(Be){var He=Be.length,Ye=He%4,et=(He>0?z[Be.charAt(0)]<<18:0)|(He>1?z[Be.charAt(1)]<<12:0)|(He>2?z[Be.charAt(2)]<<6:0)|(He>3?z[Be.charAt(3)]:0),st=[ae(et>>>16),ae(et>>>8&255),ae(et&255)];return st.length-=[0,0,2,1][Ye],st.join("")},we=x.atob&&typeof x.atob=="function"?function(Be){return x.atob(Be)}:function(Be){return Be.replace(/\S{1,4}/g,Me)},Ne=function(Be){return we(String(Be).replace(/[^A-Za-z0-9\+\/]/g,""))},Ae=function(Be){return _e(we(Be))},De=function(Be){return String(Be).replace(/[-_]/g,function(He){return He=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ie=function(Be){return Ae(De(Be))},Pe;x.Uint8Array&&(Pe=function(Be){return Uint8Array.from(Ne(De(Be)),function(He){return He.charCodeAt(0)})});var Le=function(){var Be=x.Base64;return x.Base64=ke,Be};if(x.Base64={VERSION:pe,atob:Ne,btoa:le,fromBase64:Ie,toBase64:he,utob:me,encode:he,encodeURI:oe,btou:_e,decode:Ie,noConflict:Le,fromUint8Array:Se,toUint8Array:Pe},typeof Object.defineProperty=="function"){var We=function(Be){return{value:Be,enumerable:!1,writable:!0,configurable:!0}};x.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",We(function(){return Ie(this)})),Object.defineProperty(String.prototype,"toBase64",We(function(Be){return he(this,Be)})),Object.defineProperty(String.prototype,"toBase64URI",We(function(){return he(this,!0)}))}}return x.Meteor&&(Base64=x.Base64),xn.exports?xn.exports.Base64=x.Base64:(Ue=[],ot=function(){return x.Base64}.apply(Zt,Ue),ot!==void 0&&(xn.exports=ot)),{Base64:x.Base64}})},15979:function(xn,Zt,ve){"use strict";ve.d(Zt,{hP:function(){return Ze}});var Ue=function(Ke,de){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,ze){xe.__proto__=ze}||function(xe,ze){for(var $e in ze)Object.prototype.hasOwnProperty.call(ze,$e)&&(xe[$e]=ze[$e])})(Ke,de)};function ot(Ke,de){function xe(){this.constructor=Ke}Ue(Ke,de),Ke.prototype=de===null?Object.create(de):(xe.prototype=de.prototype,new xe)}function x(Ke,de,xe,ze){return new(xe||(xe=Promise))(function($e,Ee){function Re(it){try{Ge(ze.next(it))}catch(gt){Ee(gt)}}function Fe(it){try{Ge(ze.throw(it))}catch(gt){Ee(gt)}}function Ge(it){var gt;it.done?$e(it.value):(gt=it.value,gt instanceof xe?gt:new xe(function(Kt){Kt(gt)})).then(Re,Fe)}Ge((ze=ze.apply(Ke,de||[])).next())})}function ke(Ke,de){var xe,ze,$e,Ee,Re={label:0,sent:function(){if(1&$e[0])throw $e[1];return $e[1]},trys:[],ops:[]};return Ee={next:Fe(0),throw:Fe(1),return:Fe(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function Fe(Ge){return function(it){return function(gt){if(xe)throw new TypeError("Generator is already executing.");for(;Re;)try{if(xe=1,ze&&($e=2>[0]?ze.return:gt[0]?ze.throw||(($e=ze.return)&&$e.call(ze),0):ze.next)&&!($e=$e.call(ze,gt[1])).done)return $e;switch(ze=0,$e&&(gt=[2>[0],$e.value]),gt[0]){case 0:case 1:$e=gt;break;case 4:return Re.label++,{value:gt[1],done:!1};case 5:Re.label++,ze=gt[1],gt=[0];continue;case 7:gt=Re.ops.pop(),Re.trys.pop();continue;default:if($e=Re.trys,!(($e=$e.length>0&&$e[$e.length-1])||gt[0]!==6&>[0]!==2)){Re=0;continue}if(gt[0]===3&&(!$e||gt[1]>$e[0]&>[1]<$e[3])){Re.label=gt[1];break}if(gt[0]===6&&Re.label<$e[1]){Re.label=$e[1],$e=gt;break}if($e&&Re.label<$e[2]){Re.label=$e[2],Re.ops.push(gt);break}$e[2]&&Re.ops.pop(),Re.trys.pop();continue}gt=de.call(Ke,Re)}catch(Kt){gt=[6,Kt],ze=0}finally{xe=$e=0}if(5>[0])throw gt[1];return{value:gt[0]?gt[1]:void 0,done:!0}}([Ge,it])}}}function pe(){for(var Ke=0,de=0,xe=arguments.length;de<xe;de++)Ke+=arguments[de].length;var ze=Array(Ke),$e=0;for(de=0;de<xe;de++)for(var Ee=arguments[de],Re=0,Fe=Ee.length;Re<Fe;Re++,$e++)ze[$e]=Ee[Re];return ze}var ne=function(){function Ke(){}return Ke.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ke.setAttributes=function(de,xe){for(var ze=0,$e=xe;ze<$e.length;ze++){var Ee=$e[ze],Re=Ee[0],Fe=Ee[1];de.setAttribute(Re,Fe)}},Ke.createRect=function(de,xe,ze){var $e=document.createElementNS("http://www.w3.org/2000/svg","rect");return $e.setAttribute("width",de.toString()),$e.setAttribute("height",xe.toString()),ze&&Ke.setAttributes($e,ze),$e},Ke.createLine=function(de,xe,ze,$e,Ee){var Re=document.createElementNS("http://www.w3.org/2000/svg","line");return Re.setAttribute("x1",de.toString()),Re.setAttribute("y1",xe.toString()),Re.setAttribute("x2",ze.toString()),Re.setAttribute("y2",$e.toString()),Ee&&Ke.setAttributes(Re,Ee),Re},Ke.createPolygon=function(de,xe){var ze=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ze.setAttribute("points",de),xe&&Ke.setAttributes(ze,xe),ze},Ke.createCircle=function(de,xe){var ze=document.createElementNS("http://www.w3.org/2000/svg","circle");return ze.setAttribute("cx",(de/2).toString()),ze.setAttribute("cy",(de/2).toString()),ze.setAttribute("r",de.toString()),xe&&Ke.setAttributes(ze,xe),ze},Ke.createEllipse=function(de,xe,ze){var $e=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return $e.setAttribute("cx",(de/2).toString()),$e.setAttribute("cy",(xe/2).toString()),$e.setAttribute("rx",(de/2).toString()),$e.setAttribute("ry",(xe/2).toString()),ze&&Ke.setAttributes($e,ze),$e},Ke.createGroup=function(de){var xe=document.createElementNS("http://www.w3.org/2000/svg","g");return de&&Ke.setAttributes(xe,de),xe},Ke.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ke.createMarker=function(de,xe,ze,$e,Ee,Re,Fe){var Ge=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ke.setAttributes(Ge,[["id",de],["orient",xe],["markerWidth",ze.toString()],["markerHeight",$e.toString()],["refX",Ee.toString()],["refY",Re.toString()]]),Ge.appendChild(Fe),Ge},Ke.createText=function(de){var xe=document.createElementNS("http://www.w3.org/2000/svg","text");return xe.setAttribute("x","0"),xe.setAttribute("y","0"),de&&Ke.setAttributes(xe,de),xe},Ke.createTSpan=function(de,xe){var ze=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ze.textContent=de,xe&&Ke.setAttributes(ze,xe),ze},Ke.createImage=function(de){var xe=document.createElementNS("http://www.w3.org/2000/svg","image");return de&&Ke.setAttributes(xe,de),xe},Ke.createPoint=function(de,xe){var ze=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ze.x=de,ze.y=xe,ze},Ke.createPath=function(de,xe){var ze=document.createElementNS("http://www.w3.org/2000/svg","path");return ze.setAttribute("d",de),xe&&Ke.setAttributes(ze,xe),ze},Ke}(),z=function(){function Ke(){}return Ke.addKey=function(de){Ke.key=de},Object.defineProperty(Ke,"isLicensed",{get:function(){return!!Ke.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ke.key)},enumerable:!1,configurable:!0}),Ke}(),ae=function(){function Ke(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ke.prototype.rasterize=function(de,xe,ze){var $e=this;return new Promise(function(Ee){var Re=ze!==void 0?ze:document.createElement("canvas");de===null&&($e.markersOnly=!0,$e.naturalSize=!1);var Fe=document.createElementNS("http://www.w3.org/2000/svg","svg");Fe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Fe.setAttribute("width",xe.width.baseVal.valueAsString),Fe.setAttribute("height",xe.height.baseVal.valueAsString),Fe.setAttribute("viewBox","0 0 "+xe.viewBox.baseVal.width.toString()+" "+xe.viewBox.baseVal.height.toString()),Fe.innerHTML=xe.innerHTML,$e.naturalSize===!0?(Fe.width.baseVal.value=de.naturalWidth,Fe.height.baseVal.value=de.naturalHeight):$e.width!==void 0&&$e.height!==void 0&&(Fe.width.baseVal.value=$e.width,Fe.height.baseVal.value=$e.height),Re.width=Fe.width.baseVal.value,Re.height=Fe.height.baseVal.value;var Ge=Fe.outerHTML,it=Re.getContext("2d");$e.markersOnly!==!0&&it.drawImage(de,0,0,Re.width,Re.height);var gt=window.URL,Kt=new Image(Re.width,Re.height);Kt.setAttribute("crossOrigin","anonymous");var kt=new Blob([Ge],{type:"image/svg+xml"}),St=gt.createObjectURL(kt);Kt.onload=function(){it.drawImage(Kt,0,0),gt.revokeObjectURL(St);var Wt=Re.toDataURL($e.imageType,$e.imageQuality);Ee(Wt)},Kt.src=St})},Ke}(),re=function(){},se=function(){function Ke(de){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+de+"_"}return Object.defineProperty(Ke.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ke.prototype.addClass=function(de){return this.styleSheet===void 0&&this.addStyleSheet(),de.name=""+this.classNamePrefix+de.localName,this.classes.push(de),this.styleSheet.sheet.insertRule("."+de.name+" {"+de.style+"}",this.styleSheet.sheet.cssRules.length),de},Ke.prototype.addRule=function(de){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(de),this.styleSheet.sheet.insertRule(de.selector+" {"+de.style+"}",this.styleSheet.sheet.cssRules.length)},Ke.prototype.addStyleSheet=function(){var de;this.styleSheet=document.createElement("style"),((de=this.styleSheetRoot)!==null&&de!==void 0?de:document.head).appendChild(this.styleSheet),this.addRule(new me("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new me("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new me("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ie("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ie("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Ke.prototype.removeStyleSheet=function(){var de;this.styleSheet&&(((de=this.styleSheetRoot)!==null&&de!==void 0?de:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ke}(),me=function(Ke,de){this.selector=Ke,this.style=de},ie=function(Ke,de){this.localName=Ke,this.style=de},le=function(){function Ke(de,xe,ze,$e,Ee){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=de,this.displayMode=xe,this.markerItems=ze,this.uiStyleSettings=$e,this.styles=Ee,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ke.prototype.show=function(de){var xe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=de,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ze=document.createElement("div");ze.className=this.toolbarBlockStyleClass.name,ze.style.whiteSpace="nowrap",this.uiContainer.appendChild(ze),this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Ee){var Re=document.createElement("div");Re.className=""+xe.toolbarButtonStyleClass.name,Re.setAttribute("data-type-name",Ee.typeName),Re.innerHTML=Ee.icon,Re.addEventListener("click",function(){xe.markerToolbarButtonClicked(Re,Ee)}),xe.buttons.push(Re),xe.markerButtons.push(Re)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var $e=document.createElement("div");$e.className=this.toolbarBlockStyleClass.name,$e.style.whiteSpace="nowrap",$e.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild($e),this.addActionButton($e,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton($e,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ke.prototype.addButtonClickListener=function(de){this.buttonClickListeners.push(de)},Ke.prototype.removeButtonClickListener=function(de){this.buttonClickListeners.indexOf(de)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(de),1)},Ke.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ke.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var de=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xe=0;xe<this.markerButtons.length;xe++)xe<de||xe===de&&this.markerButtons.length-1===de?this.markerButtonBlock.appendChild(this.markerButtons[xe]):(xe===de&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xe]))}},Ke.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Ke.prototype.resetButtonStyles=function(){var de=this;this.buttons.forEach(function(xe){xe.className=xe.className.replace(de.uiStyleSettings.toolbarButtonStyleColorsClassName?de.uiStyleSettings.toolbarButtonStyleColorsClassName:de.toolbarButtonStyleColorsClass.name,"").trim(),xe.className=xe.className.replace(de.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?de.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:de.toolbarActiveButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(de.uiStyleSettings.toolbarButtonStyleColorsClassName?de.uiStyleSettings.toolbarButtonStyleColorsClassName:de.toolbarButtonStyleColorsClass.name)})},Ke.prototype.addActionButton=function(de,xe,ze){var $e=this,Ee=document.createElement("div");switch(Ee.className=""+this.toolbarButtonStyleClass.name,Ee.innerHTML=xe,Ee.setAttribute("data-action",ze),Ee.addEventListener("click",function(){$e.actionToolbarButtonClicked(Ee,ze)}),ze){case"select":Ee.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ee.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ee.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ee.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ee.style.fill=this.uiStyleSettings.closeButtonColor}de.appendChild(Ee),this.buttons.push(Ee)},Ke.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ie("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ie("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ie("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ie("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ie("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var de=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ie("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
|
|
|
padding: `+de+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ie("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new me("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new me("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Ke.prototype.markerToolbarButtonClicked=function(de,xe){this.setActiveButton(de),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ze){return ze("marker",xe)}),this.markerButtonOverflowBlock.style.display="none"},Ke.prototype.actionToolbarButtonClicked=function(de,xe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ze){return ze("action",xe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ke.prototype.setActiveButton=function(de){this.resetButtonStyles(),de.className=de.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),de.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ke.prototype.setActiveMarkerButton=function(de){var xe=this.markerButtons.find(function(ze){return ze.getAttribute("data-type-name")===de});xe&&this.setActiveButton(xe)},Ke.prototype.setCurrentMarker=function(de){var xe=this;this.currentMarker=de,this.buttons.filter(function(ze){return/delete|notes/.test(ze.getAttribute("data-action"))}).forEach(function(ze){xe.currentMarker===void 0?(ze.style.fillOpacity="0.4",ze.style.pointerEvents="none"):(ze.style.fillOpacity="1",ze.style.pointerEvents="all")})},Ke}(),ue=function(){function Ke(de,xe,ze,$e){this.panels=[],this.panelButtons=[],this.markerjsContainer=de,this.displayMode=xe,this.uiStyleSettings=ze,this.styles=$e,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ke.prototype.addStyles=function(){var de;this.toolboxStyleClass=this.styles.addClass(new ie("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ie("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ie("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ie("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ie("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ie("toolbox-panel-row_colors",`
|
|
|
background-color: `+((de=this.uiStyleSettings.toolboxBackgroundColor)!==null&&de!==void 0?de:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ie("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
padding: `+xe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ie("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new me("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new me("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Ke.prototype.show=function(de){var xe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=de,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ke.prototype.setPanelButtons=function(de){var xe,ze,$e=this;this.panels=de,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ze=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ze!==void 0?ze:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ee){var Re;Ee.uiStyleSettings=$e.uiStyleSettings;var Fe=document.createElement("div");Fe.className=$e.toolboxButtonStyleClass.name+" "+((Re=$e.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Re!==void 0?Re:$e.toolboxButtonStyleColorsClass.name),Fe.innerHTML=Ee.icon,Fe.title=Ee.title,Fe.addEventListener("click",function(){$e.panelButtonClick(Ee)}),$e.panelButtons.push(Fe),$e.buttonRow.appendChild(Fe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ke.prototype.panelButtonClick=function(de){var xe=this,ze=-1;if(de!==this.activePanel){ze=this.panels.indexOf(de),this.panelRow.innerHTML="";var $e=de.getUi();$e.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild($e),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=de}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xe.displayMode==="inline"?xe.panelRow.style.display="none":xe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ee,Re){var Fe,Ge;Ee.className=xe.toolboxButtonStyleClass.name+" "+(Re===ze?""+((Fe=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Fe!==void 0?Fe:xe.toolboxActiveButtonStyleColorsClass.name):""+((Ge=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ge!==void 0?Ge:xe.toolboxButtonStyleColorsClass.name))})},Ke}(),fe=function(Ke,de){this.title=Ke,this.icon=de},he=function(Ke){function de(xe,ze,$e,Ee){var Re=Ke.call(this,xe,Ee||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Re.colors=[],Re.addTransparent=!1,Re.colorBoxes=[],Re.colors=ze,Re.currentColor=$e,Re.setCurrentColor=Re.setCurrentColor.bind(Re),Re.getColorBox=Re.getColorBox.bind(Re),Re}return ot(de,Ke),de.prototype.getUi=function(){var xe=this,ze=document.createElement("div");return ze.style.overflow="hidden",ze.style.whiteSpace="nowrap",this.colors.forEach(function($e){var Ee=xe.getColorBox($e);ze.appendChild(Ee),xe.colorBoxes.push(Ee)}),ze},de.prototype.getColorBox=function(xe){var ze=this,$e=this.uiStyleSettings.toolbarHeight/4,Ee=this.uiStyleSettings.toolbarHeight-$e,Re=document.createElement("div");Re.style.display="inline-block",Re.style.boxSizing="content-box",Re.style.width=Ee-2+"px",Re.style.height=Ee-2+"px",Re.style.padding="1px",Re.style.marginRight="2px",Re.style.marginBottom="2px",Re.style.borderWidth="2px",Re.style.borderStyle="solid",Re.style.borderRadius=(Ee+2)/2+"px",Re.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Re.addEventListener("click",function(){ze.setCurrentColor(xe,Re)});var Fe=document.createElement("div");return Fe.style.display="inline-block",Fe.style.width=Ee-2+"px",Fe.style.height=Ee-2+"px",Fe.style.backgroundColor=xe,Fe.style.borderRadius=Ee/2+"px",xe==="transparent"&&(Fe.style.fill=this.uiStyleSettings.toolboxAccentColor,Fe.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),Re.appendChild(Fe),Re},de.prototype.setCurrentColor=function(xe,ze){var $e=this;this.currentColor=xe,this.colorBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ze?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},de}(fe),oe=function(){function Ke(de,xe,ze){this._state="new",this._isSelected=!1,this._container=de,this._overlayContainer=xe,this.globalSettings=ze,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ke.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ke.prototype.ownsTarget=function(de){return!1},Object.defineProperty(Ke.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ke.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ke.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ke.prototype.pointerDown=function(de,xe){},Ke.prototype.dblClick=function(de,xe){},Ke.prototype.manipulate=function(de){},Ke.prototype.pointerUp=function(de){this.stateChanged()},Ke.prototype.dispose=function(){},Ke.prototype.addMarkerVisualToContainer=function(de){this.container.childNodes.length>0?this.container.insertBefore(de,this.container.childNodes[0]):this.container.appendChild(de)},Ke.prototype.getState=function(){return{typeName:Ke.typeName,state:this.state,notes:this.notes}},Ke.prototype.restoreState=function(de){this._state=de.state,this.notes=de.notes},Ke.prototype.scale=function(de,xe){},Ke.prototype.colorChanged=function(de){this.onColorChanged&&this.onColorChanged(de),this.stateChanged()},Ke.prototype.fillColorChanged=function(de){this.onFillColorChanged&&this.onFillColorChanged(de),this.stateChanged()},Ke.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var de=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),de.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(de)&&this.onStateChanged(this)}},Ke.typeName="MarkerBase",Ke}(),Se=function(){function Ke(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ke.prototype.findGripByVisual=function(de){return this.topLeft.ownsTarget(de)?this.topLeft:this.topCenter.ownsTarget(de)?this.topCenter:this.topRight.ownsTarget(de)?this.topRight:this.centerLeft.ownsTarget(de)?this.centerLeft:this.centerRight.ownsTarget(de)?this.centerRight:this.bottomLeft.ownsTarget(de)?this.bottomLeft:this.bottomCenter.ownsTarget(de)?this.bottomCenter:this.bottomRight.ownsTarget(de)?this.bottomRight:void 0},Ke}(),Ce=function(){function Ke(){this.GRIP_SIZE=10,this.visual=ne.createGroup(),this.visual.appendChild(ne.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ne.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ke.prototype.ownsTarget=function(de){return de===this.visual||de===this.visual.childNodes[0]||de===this.visual.childNodes[1]},Ke}(),ye=function(){function Ke(){}return Ke.toITransformMatrix=function(de){return{a:de.a,b:de.b,c:de.c,d:de.d,e:de.e,f:de.f}},Ke.toSVGMatrix=function(de,xe){return de.a=xe.a,de.b=xe.b,de.c=xe.c,de.d=xe.d,de.e=xe.e,de.f=xe.f,de},Ke}(),_e=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.left=0,Ee.top=0,Ee.width=0,Ee.height=0,Ee.defaultSize={x:50,y:20},Ee.offsetX=0,Ee.offsetY=0,Ee.rotationAngle=0,Ee.CB_DISTANCE=10,Ee._suppressMarkerCreateEvent=!1,Ee.container.transform.baseVal.appendItem(ne.createTransform()),Ee.setupControlBox(),Ee}return ot(de,Ke),Object.defineProperty(de.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"visual",{get:function(){return this._visual},set:function(xe){this._visual=xe;var ze=ne.createTransform();this._visual.transform.baseVal.appendItem(ze)},enumerable:!1,configurable:!0}),de.prototype.ownsTarget=function(xe){return!!Ke.prototype.ownsTarget.call(this,xe)||!!(this.controlGrips.findGripByVisual(xe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xe))},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.state==="new"&&(this.left=xe.x,this.top=xe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var $e=this.unrotatePoint(xe);if(this.manipulationStartX=$e.x,this.manipulationStartY=$e.y,this.offsetX=$e.x-this.left,this.offsetY=$e.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ze),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ze)){this.activeGrip=this.rotatorGrip;var Ee=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ee.x-this.width/2,this.top=Ee.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Re=this.container.transform.baseVal.getItem(0);Re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Re,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},de.prototype.pointerUp=function(xe){var ze=this.state;Ke.prototype.pointerUp.call(this,xe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xe),this._state="select",ze==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},de.prototype.moveVisual=function(xe){this.visual.style.transform="translate("+xe.x+"px, "+xe.y+"px)"},de.prototype.manipulate=function(xe){var ze=this.unrotatePoint(xe);this.state==="creating"?this.resize(xe):this.state==="move"?(this.left=this.manipulationStartLeft+(ze.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ze.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ze):this.state==="rotate"&&this.rotate(xe)},de.prototype.resize=function(xe){var ze=this.manipulationStartLeft,$e=this.manipulationStartWidth,Ee=this.manipulationStartTop,Re=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ze=this.manipulationStartLeft+xe.x-this.manipulationStartX,$e=this.manipulationStartWidth+this.manipulationStartLeft-ze;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:$e=this.manipulationStartWidth+xe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ee=this.manipulationStartTop+xe.y-this.manipulationStartY,Re=this.manipulationStartHeight+this.manipulationStartTop-Ee;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Re=this.manipulationStartHeight+xe.y-this.manipulationStartY}$e>=0?(this.left=ze,this.width=$e):(this.left=ze+$e,this.width=-$e),Re>=0?(this.top=Ee,this.height=Re):(this.top=Ee+Re,this.height=-Re),this.setSize()},de.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},de.prototype.rotate=function(xe){if(Math.abs(xe.x-this.centerX)>.1){var ze=Math.sign(xe.x-this.centerX);this.rotationAngle=180*Math.atan((xe.y-this.centerY)/(xe.x-this.centerX))/Math.PI+90*ze,this.applyRotation()}},de.prototype.applyRotation=function(){var xe=this.container.transform.baseVal.getItem(0);xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xe,0)},de.prototype.rotatePoint=function(xe){if(this.rotationAngle===0)return xe;var ze=this.container.getCTM(),$e=ne.createPoint(xe.x,xe.y);return{x:($e=$e.matrixTransform(ze)).x,y:$e.y}},de.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var ze=this.container.getCTM();ze=ze.inverse();var $e=ne.createPoint(xe.x,xe.y);return{x:($e=$e.matrixTransform(ze)).x,y:$e.y}},de.prototype.select=function(){Ke.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},de.prototype.deselect=function(){Ke.prototype.deselect.call(this),this.controlBox.style.display="none"},de.prototype.setupControlBox=function(){this.controlBox=ne.createGroup();var xe=ne.createTransform();xe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xe),this.container.appendChild(this.controlBox),this.controlRect=ne.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=ne.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Se,this.addControlGrips(),this.controlBox.style.display="none"},de.prototype.adjustControlBox=function(){var xe=this.controlBox.transform.baseVal.getItem(0);xe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xe,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},de.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},de.prototype.createGrip=function(){var xe=new Ce;return xe.visual.transform.baseVal.appendItem(ne.createTransform()),this.controlBox.appendChild(xe.visual),xe},de.prototype.positionGrips=function(){var xe=this.controlGrips.topLeft.GRIP_SIZE,ze=-xe/2,$e=ze,Ee=(this.width+this.CB_DISTANCE)/2-xe/2,Re=(this.height+this.CB_DISTANCE)/2-xe/2,Fe=this.height+this.CB_DISTANCE-xe/2,Ge=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,ze,$e),this.positionGrip(this.controlGrips.topCenter.visual,Ee,$e),this.positionGrip(this.controlGrips.topRight.visual,Ge,$e),this.positionGrip(this.controlGrips.centerLeft.visual,ze,Re),this.positionGrip(this.controlGrips.centerRight.visual,Ge,Re),this.positionGrip(this.controlGrips.bottomLeft.visual,ze,Fe),this.positionGrip(this.controlGrips.bottomCenter.visual,Ee,Fe),this.positionGrip(this.controlGrips.bottomRight.visual,Ge,Fe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ee,$e-3*this.CB_DISTANCE)},de.prototype.positionGrip=function(xe,ze,$e){var Ee=xe.transform.baseVal.getItem(0);Ee.setTranslate(ze,$e),xe.transform.baseVal.replaceItem(Ee,0)},de.prototype.hideControlBox=function(){this.controlBox.style.display="none"},de.prototype.showControlBox=function(){this.controlBox.style.display=""},de.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ye.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ye.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ke.prototype.getState.call(this))},de.prototype.restoreState=function(xe){Ke.prototype.restoreState.call(this,xe);var ze=xe;this.left=ze.left,this.top=ze.top,this.width=ze.width,this.height=ze.height,this.rotationAngle=ze.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ye.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ze.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ye.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ze.containerTransformMatrix))},de.prototype.scale=function(xe,ze){Ke.prototype.scale.call(this,xe,ze);var $e=this.rotatePoint({x:this.left,y:this.top}),Ee=this.unrotatePoint({x:$e.x*xe,y:$e.y*ze});this.left=Ee.x,this.top=Ee.y,this.width=this.width*xe,this.height=this.height*ze,this.adjustControlBox()},de}(oe),Me=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.opacity=1,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){return!(!Ke.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},de.prototype.createVisual=function(){this.visual=ne.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},de.prototype.manipulate=function(xe){Ke.prototype.manipulate.call(this,xe)},de.prototype.resize=function(xe){Ke.prototype.resize.call(this,xe),this.setSize()},de.prototype.setSize=function(){Ke.prototype.setSize.call(this),ne.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},de.prototype.pointerUp=function(xe){Ke.prototype.pointerUp.call(this,xe),this.setSize()},de.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&ne.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},de.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&ne.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},de.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&ne.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},de.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&ne.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},de.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ke.prototype.getState.call(this))},de.prototype.restoreState=function(xe){var ze=xe;this.fillColor=ze.fillColor,this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.strokeDasharray,this.opacity=ze.opacity,this.createVisual(),Ke.prototype.restoreState.call(this,xe),this.setSize()},de.prototype.scale=function(xe,ze){Ke.prototype.scale.call(this,xe,ze),this.setSize()},de.title="Rectangle marker",de}(_e),we=function(Ke){function de(xe,ze,$e,Ee){var Re=Ke.call(this,xe,Ee||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Re.widths=[],Re.widthBoxes=[],Re.widths=ze,Re.currentWidth=$e,Re.setCurrentWidth=Re.setCurrentWidth.bind(Re),Re}return ot(de,Ke),de.prototype.getUi=function(){var xe=this,ze=document.createElement("div");return ze.style.display="flex",ze.style.overflow="hidden",ze.style.flexGrow="2",this.widths.forEach(function($e){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.flexGrow="2",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=$e===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){xe.setCurrentWidth($e,Ee)}),ze.appendChild(Ee);var Re=document.createElement("div");Re.innerText=$e.toString(),Re.style.marginRight="5px",Ee.appendChild(Re);var Fe=document.createElement("div");Fe.style.minHeight="20px",Fe.style.flexGrow="2",Fe.style.display="flex",Fe.style.alignItems="center";var Ge=document.createElement("hr");Ge.style.minWidth="20px",Ge.style.border="0px",Ge.style.borderTop=$e+"px solid "+xe.uiStyleSettings.toolboxColor,Ge.style.flexGrow="2",Fe.appendChild(Ge),Ee.appendChild(Fe),xe.widthBoxes.push(Ee)}),ze},de.prototype.setCurrentWidth=function(xe,ze){var $e=this;this.currentWidth=xe,this.widthBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ze?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},de}(fe),Ne=function(Ke){function de(xe,ze,$e,Ee){var Re=Ke.call(this,xe,Ee||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Re.styles=[],Re.styleBoxes=[],Re.styles=ze,Re.currentStyle=$e,Re.setCurrentStyle=Re.setCurrentStyle.bind(Re),Re}return ot(de,Ke),de.prototype.getUi=function(){var xe=this,ze=document.createElement("div");return ze.style.display="flex",ze.style.overflow="hidden",ze.style.flexGrow="2",this.styles.forEach(function($e){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.overflow="hidden",Ee.style.maxWidth=100/xe.styles.length-5+"%",Ee.style.borderColor=$e===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){xe.setCurrentStyle($e,Ee)}),ze.appendChild(Ee);var Re=document.createElement("div");Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.overflow="hidden";var Fe=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+($e!==""?'stroke-dasharray="'+$e+'"':"")+` />
|
|
|
</svg>`;Re.innerHTML=Fe,Ee.appendChild(Re),xe.styleBoxes.push(Ee)}),ze},de.prototype.setCurrentStyle=function(xe,ze){var $e=this;this.currentStyle=xe,this.styleBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ze?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},de}(fe),Ae=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.strokeColor=$e.defaultColor,Ee.strokeWidth=$e.defaultStrokeWidth,Ee.strokeDasharray=$e.defaultStrokeDasharray,Ee.strokePanel=new he("Line color",$e.defaultColorSet,$e.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ne("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return ot(de,Ke),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Ke.prototype.getState.call(this);return xe.typeName=de.typeName,xe},de.typeName="FrameMarker",de.title="Frame marker",de.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',de}(Me),De=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Ie=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.x1=0,Ee.y1=0,Ee.x2=0,Ee.y2=0,Ee.defaultLength=50,Ee.manipulationStartX=0,Ee.manipulationStartY=0,Ee.manipulationStartX1=0,Ee.manipulationStartY1=0,Ee.manipulationStartX2=0,Ee.manipulationStartY2=0,Ee.setupControlBox(),Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){return!!Ke.prototype.ownsTarget.call(this,xe)||!(!this.grip1.ownsTarget(xe)&&!this.grip2.ownsTarget(xe))},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.state==="new"&&(this.x1=xe.x,this.y1=xe.y,this.x2=xe.x,this.y2=xe.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ze)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ze)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},de.prototype.pointerUp=function(xe){var ze=this.state;Ke.prototype.pointerUp.call(this,xe),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(xe),this._state="select",ze==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},de.prototype.adjustVisual=function(){},de.prototype.manipulate=function(xe){this.state==="creating"?this.resize(xe):this.state==="move"?(this.x1=this.manipulationStartX1+xe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xe)},de.prototype.resize=function(xe){switch(this.activeGrip){case this.grip1:this.x1=xe.x,this.y1=xe.y;break;case this.grip2:case void 0:this.x2=xe.x,this.y2=xe.y}this.adjustVisual(),this.adjustControlBox()},de.prototype.select=function(){Ke.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},de.prototype.deselect=function(){Ke.prototype.deselect.call(this),this.controlBox.style.display="none"},de.prototype.setupControlBox=function(){this.controlBox=ne.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},de.prototype.adjustControlBox=function(){this.positionGrips()},de.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},de.prototype.createGrip=function(){var xe=new Ce;return xe.visual.transform.baseVal.appendItem(ne.createTransform()),this.controlBox.appendChild(xe.visual),xe},de.prototype.positionGrips=function(){var xe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xe/2,this.y1-xe/2),this.positionGrip(this.grip2.visual,this.x2-xe/2,this.y2-xe/2)},de.prototype.positionGrip=function(xe,ze,$e){var Ee=xe.transform.baseVal.getItem(0);Ee.setTranslate(ze,$e),xe.transform.baseVal.replaceItem(Ee,0)},de.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ke.prototype.getState.call(this))},de.prototype.restoreState=function(xe){Ke.prototype.restoreState.call(this,xe);var ze=xe;this.x1=ze.x1,this.y1=ze.y1,this.x2=ze.x2,this.y2=ze.y2},de.prototype.scale=function(xe,ze){Ke.prototype.scale.call(this,xe,ze),this.x1=this.x1*xe,this.y1=this.y1*ze,this.x2=this.x2*xe,this.y2=this.y2*ze,this.adjustVisual(),this.adjustControlBox()},de}(oe),Pe=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.strokeColor=$e.defaultColor,Ee.strokeWidth=$e.defaultStrokeWidth,Ee.strokeDasharray=$e.defaultStrokeDasharray,Ee.strokePanel=new he("Line color",$e.defaultColorSet,$e.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ne("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){return!(!Ke.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorLine&&xe!==this.visibleLine)},de.prototype.createVisual=function(){this.visual=ne.createGroup(),this.selectorLine=ne.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ne.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},de.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),ne.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ne.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ne.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},de.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},de.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},de.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ke.prototype.getState.call(this));return xe.typeName=de.typeName,xe},de.prototype.restoreState=function(xe){Ke.prototype.restoreState.call(this,xe);var ze=xe;this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.strokeDasharray,this.createVisual(),this.adjustVisual()},de.typeName="LineMarker",de.title="Line marker",de.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',de}(Ie),Le=function(Ke){function de(xe,ze,$e,Ee){var Re=Ke.call(this,xe,Ee||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Re.fonts=[],Re.fontBoxes=[],Re.fonts=ze,Re.currentFont=$e,Re.setCurrentFont=Re.setCurrentFont.bind(Re),Re}return ot(de,Ke),de.prototype.getUi=function(){var xe=this,ze=document.createElement("div");return ze.style.overflow="hidden",ze.style.flexGrow="2",this.fonts.forEach(function($e){var Ee=document.createElement("div");Ee.style.display="inline-block",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.overflow="hidden",Ee.style.maxWidth=100/xe.fonts.length-5+"%",Ee.style.borderColor=$e===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){xe.setCurrentFont($e,Ee)}),ze.appendChild(Ee);var Re=document.createElement("div");Re.style.display="flex",Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.fontFamily=$e,Re.style.overflow="hidden";var Fe=document.createElement("div");Fe.style.whiteSpace="nowrap",Fe.style.overflow="hidden",Fe.style.textOverflow="ellipsis",Fe.innerHTML="The quick brown fox jumps over the lazy dog",Re.appendChild(Fe),Ee.appendChild(Re),xe.fontBoxes.push(Ee)}),ze},de.prototype.setCurrentFont=function(xe,ze){var $e=this;this.currentFont=xe,this.fontBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ze?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},de}(fe),We=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.color="transparent",Ee.padding=5,Ee.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ee.text=Ee.DEFAULT_TEXT,Ee.isMoved=!1,Ee.color=$e.defaultColor,Ee.fontFamily=$e.defaultFontFamily,Ee.defaultSize={x:100,y:30},Ee.setColor=Ee.setColor.bind(Ee),Ee.setFont=Ee.setFont.bind(Ee),Ee.renderText=Ee.renderText.bind(Ee),Ee.sizeText=Ee.sizeText.bind(Ee),Ee.textEditDivClicked=Ee.textEditDivClicked.bind(Ee),Ee.showTextEditor=Ee.showTextEditor.bind(Ee),Ee.setSize=Ee.setSize.bind(Ee),Ee.positionTextEditor=Ee.positionTextEditor.bind(Ee),Ee.colorPanel=new he("Color",$e.defaultColorSet,$e.defaultColor),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.fontFamilyPanel=new Le("Font",$e.defaultFontFamilies,$e.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){if(Ke.prototype.ownsTarget.call(this,xe)||xe===this.visual||xe===this.textElement||xe===this.bgRectangle)return!0;var ze=!1;return this.textElement.childNodes.forEach(function($e){$e===xe&&(ze=!0)}),ze},de.prototype.createVisual=function(){this.visual=ne.createGroup(),this.bgRectangle=ne.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ne.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ne.createTransform()),this.textElement.transform.baseVal.appendItem(ne.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},de.prototype.renderText=function(){var xe=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ze){xe.textElement.appendChild(ne.createTSpan(ze.trim()===""?" ":ze.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},de.prototype.getTextScale=function(){var xe=this.textElement.getBBox(),ze=1;if(xe.width>0&&xe.height>0){var $e=(1*this.width-this.width*this.padding*2/100)/xe.width,Ee=(1*this.height-this.height*this.padding*2/100)/xe.height;ze=Math.min($e,Ee)}return ze},de.prototype.getTextPosition=function(xe){var ze=this.textElement.getBBox(),$e=0,Ee=0;return ze.width>0&&ze.height>0&&($e=(this.width-ze.width*xe)/2,Ee=this.height/2-ze.height*xe/2),{x:$e,y:Ee}},de.prototype.sizeText=function(){var xe=this.textElement.getBBox(),ze=this.getTextScale(),$e=this.getTextPosition(ze);$e.y-=xe.y*ze,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+$e.x+"px, "+$e.y+"px) scale("+ze+", "+ze+")":(this.textElement.transform.baseVal.getItem(0).setTranslate($e.x,$e.y),this.textElement.transform.baseVal.getItem(1).setScale(ze,ze))},de.prototype.manipulate=function(xe){Ke.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},de.prototype.resize=function(xe){Ke.prototype.resize.call(this,xe),this.isMoved=!0,this.setSize(),this.sizeText()},de.prototype.setSize=function(){Ke.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ne.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ne.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},de.prototype.pointerUp=function(xe){var ze=this.state;ze==="creating"&&(this._suppressMarkerCreateEvent=!0),Ke.prototype.pointerUp.call(this,xe),this.setSize(),(ze==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},de.prototype.showTextEditor=function(){var xe=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ze){ze.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ze=Number.parseFloat(xe.textEditor.style.fontSize);xe.textEditor.clientWidth>=Number.parseInt(xe.textEditor.style.maxWidth)&&ze>.9;)ze-=.1,xe.textEditor.style.fontSize=Math.max(ze,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ze){ze.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ze){if(ze.clipboardData){var $e=ze.clipboardData.getData("text"),Ee=window.getSelection();if(!Ee.rangeCount)return!1;Ee.deleteFromDocument(),Ee.getRangeAt(0).insertNode(document.createTextNode($e)),ze.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xe.textEditDivClicked(xe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},de.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xe=this.getTextScale(),ze=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),$e=this.textElement.getBBox(),Ee={x:$e.width*xe,y:$e.height*xe};ze.x-=Ee.x/2,ze.y-=Ee.y/2,this.textEditor.style.top=ze.y+"px",this.textEditor.style.left=ze.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ze.x+"px",this.textEditor.style.fontSize=Math.max(16*xe,12)+"px",this.textElement.style.display="none"}},de.prototype.textEditDivClicked=function(xe){this.text=xe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},de.prototype.select=function(){Ke.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},de.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ke.prototype.deselect.call(this)},de.prototype.dblClick=function(xe,ze){Ke.prototype.dblClick.call(this,xe,ze),this.showTextEditor()},de.prototype.setColor=function(xe){this.textElement&&ne.setAttributes(this.textElement,[["fill",xe]]),this.color=xe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xe)},de.prototype.setFont=function(xe){this.textElement&&ne.setAttributes(this.textElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},de.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},de.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ke.prototype.getState.call(this));return xe.typeName=de.typeName,xe},de.prototype.restoreState=function(xe){var ze=xe;this.color=ze.color,this.fontFamily=ze.fontFamily,this.padding=ze.padding,this.text=ze.text,this.createVisual(),Ke.prototype.restoreState.call(this,xe),this.setSize()},de.prototype.scale=function(xe,ze){Ke.prototype.scale.call(this,xe,ze),this.setSize(),this.sizeText(),this.positionTextEditor()},de.typeName="TextMarker",de.title="Text marker",de.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',de}(_e),Be=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.color="transparent",Ee.lineWidth=3,Ee.drawing=!1,Ee.pixelRatio=1,Ee.color=$e.defaultColor,Ee.lineWidth=$e.defaultStrokeWidth,Ee.pixelRatio=$e.freehandPixelRatio,Ee.setColor=Ee.setColor.bind(Ee),Ee.addCanvas=Ee.addCanvas.bind(Ee),Ee.finishCreation=Ee.finishCreation.bind(Ee),Ee.setLineWidth=Ee.setLineWidth.bind(Ee),Ee.colorPanel=new he("Color",$e.defaultColorSet,$e.defaultColor),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.lineWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Ee.lineWidthPanel.onWidthChanged=Ee.setLineWidth,Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){return!(!Ke.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.drawingImage)},de.prototype.createVisual=function(){this.visual=ne.createGroup(),this.drawingImage=ne.createImage(),this.visual.appendChild(this.drawingImage);var xe=ne.createTransform();this.visual.transform.baseVal.appendItem(xe),this.addMarkerVisualToContainer(this.visual)},de.prototype.pointerDown=function(xe,ze){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(xe.x,xe.y),this.drawing=!0):Ke.prototype.pointerDown.call(this,xe,ze)},de.prototype.manipulate=function(xe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xe.x,xe.y),this.canvasContext.stroke()):Ke.prototype.manipulate.call(this,xe)},de.prototype.resize=function(xe){Ke.prototype.resize.call(this,xe),ne.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ne.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},de.prototype.pointerUp=function(xe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ke.prototype.pointerUp.call(this,xe)},de.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},de.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ke.prototype.select.call(this)},de.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ke.prototype.deselect.call(this)},de.prototype.finishCreation=function(){for(var xe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ze=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],$e=ze[0],Ee=ze[1],Re=ze[2],Fe=ze[3],Ge=!1,it=0;it<this.canvasElement.height;it++)for(var gt=0;gt<this.canvasElement.width;gt++)xe.data[it*this.canvasElement.width*4+4*gt+3]>0&&(Ge=!0,it<Ee&&(Ee=it),gt<$e&&($e=gt),it>Fe&&(Fe=it),gt>Re&&(Re=gt));if(Ge){this.left=$e/this.pixelRatio,this.top=Ee/this.pixelRatio,this.width=(Re-$e)/this.pixelRatio,this.height=(Fe-Ee)/this.pixelRatio;var Kt=document.createElement("canvas");Kt.width=Re-$e,Kt.height=Fe-Ee,Kt.getContext("2d").putImageData(this.canvasContext.getImageData($e,Ee,Re-$e,Fe-Ee),0,0),this.drawingImgUrl=Kt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},de.prototype.setDrawingImage=function(){ne.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ne.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},de.prototype.setColor=function(xe){this.color=xe,this.colorChanged(xe)},de.prototype.setLineWidth=function(xe){this.lineWidth=xe},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Object.assign({drawingImgUrl:this.drawingImgUrl},Ke.prototype.getState.call(this));return xe.typeName=de.typeName,xe},de.prototype.restoreState=function(xe){this.createVisual(),Ke.prototype.restoreState.call(this,xe),this.drawingImgUrl=xe.drawingImgUrl,this.setDrawingImage()},de.prototype.scale=function(xe,ze){Ke.prototype.scale.call(this,xe,ze),this.setDrawingImage()},de.typeName="FreehandMarker",de.title="Freehand marker",de.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',de}(_e),He=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,$e||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ee.typeBoxes=[],Ee.currentType=ze,Ee.setCurrentType=Ee.setCurrentType.bind(Ee),Ee}return ot(de,Ke),de.prototype.getUi=function(){var xe=this,ze=document.createElement("div");ze.style.display="flex",ze.style.overflow="hidden",ze.style.flexGrow="2";for(var $e=function(Fe){var Ge="both";switch(Fe){case 0:Ge="both";break;case 1:Ge="start";break;case 2:Ge="end";break;case 3:Ge="none"}var it=document.createElement("div");if(it.style.display="flex",it.style.flexGrow="2",it.style.alignItems="center",it.style.justifyContent="space-between",it.style.padding="5px",it.style.borderWidth="2px",it.style.borderStyle="solid",it.style.borderColor=Ge===Ee.currentType?Ee.uiStyleSettings.toolboxAccentColor:"transparent",it.addEventListener("click",function(){xe.setCurrentType(Ge,it)}),ze.appendChild(it),Ge==="both"||Ge==="start"){var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,gt.style.marginLeft="5px",it.appendChild(gt)}var Kt=document.createElement("div");Kt.style.display="flex",Kt.style.alignItems="center",Kt.style.minHeight="20px",Kt.style.flexGrow="2";var kt=document.createElement("hr");if(kt.style.minWidth="20px",kt.style.border="0px",kt.style.borderTop="3px solid "+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee"),kt.style.flexGrow="2",Kt.appendChild(kt),it.appendChild(Kt),Ge==="both"||Ge==="end"){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.minHeight="20px",St.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,St.style.marginRight="5px",it.appendChild(St)}Ee.typeBoxes.push(it)},Ee=this,Re=0;Re<4;Re++)$e(Re);return ze},de.prototype.setCurrentType=function(xe,ze){var $e=this;this.currentType=xe,this.typeBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ze?$e.uiStyleSettings!==void 0?$e.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},de}(fe),Ye=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.arrowType="end",Ee.arrowBaseHeight=10,Ee.arrowBaseWidth=10,Ee.getArrowPoints=Ee.getArrowPoints.bind(Ee),Ee.setArrowType=Ee.setArrowType.bind(Ee),Ee.arrowTypePanel=new He("Arrow type","end"),Ee.arrowTypePanel.onArrowTypeChanged=Ee.setArrowType,Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){return!(!Ke.prototype.ownsTarget.call(this,xe)&&xe!==this.arrow1&&xe!==this.arrow2)},de.prototype.getArrowPoints=function(xe,ze){var $e=this.arrowBaseWidth+2*this.strokeWidth,Ee=this.arrowBaseHeight+2*this.strokeWidth;return xe-$e/2+","+(ze+Ee/2)+" "+xe+","+(ze-Ee/2)+" "+(xe+$e/2)+","+(ze+Ee/2)},de.prototype.createTips=function(){this.arrow1=ne.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ne.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ne.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ne.createTransform()),this.visual.appendChild(this.arrow2)},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.state==="creating"&&this.createTips()},de.prototype.adjustVisual=function(){if(Ke.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",ne.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ne.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xe=0;Math.abs(this.x1-this.x2)>.1&&(xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ze=this.arrow1.transform.baseVal.getItem(0);ze.setRotate(xe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ze,0);var $e=this.arrow2.transform.baseVal.getItem(0);$e.setRotate(xe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem($e,0)}},de.prototype.setArrowType=function(xe){this.arrowType=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Object.assign({arrowType:this.arrowType},Ke.prototype.getState.call(this));return xe.typeName=de.typeName,xe},de.prototype.restoreState=function(xe){Ke.prototype.restoreState.call(this,xe);var ze=xe;this.arrowType=ze.arrowType,this.createTips(),this.adjustVisual()},de.typeName="ArrowMarker",de.title="Arrow marker",de.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',de}(Pe),et=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.fillColor=$e.defaultFillColor,Ee.strokeWidth=0,Ee.fillPanel=new he("Color",$e.defaultColorSet,$e.defaultFillColor),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee}return ot(de,Ke),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Ke.prototype.getState.call(this);return xe.typeName=de.typeName,xe},de.typeName="CoverMarker",de.title="Cover marker",de.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',de}(Me),st=function(Ke){function de(xe,ze,$e,Ee){var Re=Ke.call(this,xe,Ee||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Re.opacities=[],Re.opacityBoxes=[],Re.opacities=ze,Re.currentOpacity=$e,Re.setCurrentOpacity=Re.setCurrentOpacity.bind(Re),Re}return ot(de,Ke),de.prototype.getUi=function(){var xe=this,ze=document.createElement("div");return ze.style.display="flex",ze.style.overflow="hidden",ze.style.flexGrow="2",ze.style.justifyContent="space-between",this.opacities.forEach(function($e){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.alignItems="center",Ee.style.justifyContent="center",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=$e===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){xe.setCurrentOpacity($e,Ee)}),ze.appendChild(Ee);var Re=document.createElement("div");Re.innerText=100*$e+"%",Ee.appendChild(Re),xe.opacityBoxes.push(Ee)}),ze},de.prototype.setCurrentOpacity=function(xe,ze){var $e=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ze?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},de}(fe),yt=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.setOpacity=Ee.setOpacity.bind(Ee),Ee.fillColor=$e.defaultHighlightColor,Ee.strokeWidth=0,Ee.opacity=$e.defaultHighlightOpacity,Ee.fillPanel=new he("Color",$e.defaultColorSet,Ee.fillColor),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.opacityPanel=new st("Opacity",$e.defaultOpacitySteps,Ee.opacity),Ee.opacityPanel.onOpacityChanged=Ee.setOpacity,Ee}return ot(de,Ke),de.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&ne.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Ke.prototype.getState.call(this);return xe.typeName=de.typeName,xe},de.typeName="HighlightMarker",de.title="Highlight marker",de.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',de}(et),Ve='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Qe='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',pt=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.bgColor="transparent",Ee.tipPosition={x:0,y:0},Ee.tipBase1Position={x:0,y:0},Ee.tipBase2Position={x:0,y:0},Ee.tipMoving=!1,Ee.color=$e.defaultStrokeColor,Ee.bgColor=$e.defaultFillColor,Ee.fontFamily=$e.defaultFontFamily,Ee.defaultSize={x:100,y:30},Ee.setBgColor=Ee.setBgColor.bind(Ee),Ee.getTipPoints=Ee.getTipPoints.bind(Ee),Ee.positionTip=Ee.positionTip.bind(Ee),Ee.setTipPoints=Ee.setTipPoints.bind(Ee),Ee.colorPanel=new he("Text color",$e.defaultColorSet,Ee.color,Ve),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.bgColorPanel=new he("Fill color",$e.defaultColorSet,Ee.bgColor,Qe),Ee.bgColorPanel.onColorChanged=Ee.setBgColor,Ee.fontFamilyPanel=new Le("Font",$e.defaultFontFamilies,$e.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee.tipGrip=new Ce,Ee.tipGrip.visual.transform.baseVal.appendItem(ne.createTransform()),Ee.controlBox.appendChild(Ee.tipGrip.visual),Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){return Ke.prototype.ownsTarget.call(this,xe)||this.tipGrip.ownsTarget(xe)||this.tip===xe},de.prototype.createTip=function(){ne.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ne.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},de.prototype.pointerDown=function(xe,ze){this.state==="new"&&Ke.prototype.pointerDown.call(this,xe,ze),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ze)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ke.prototype.pointerDown.call(this,xe,ze)},de.prototype.pointerUp=function(xe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ke.prototype.pointerUp.call(this,xe);else{var ze=this.state==="creating";Ke.prototype.pointerUp.call(this,xe),this.setTipPoints(ze),this.positionTip()}},de.prototype.manipulate=function(xe){if(this.tipMoving){var ze=this.unrotatePoint(xe);this.tipPosition={x:ze.x-this.manipulationStartLeft,y:ze.y-this.manipulationStartTop},this.positionTip()}else Ke.prototype.manipulate.call(this,xe)},de.prototype.setBgColor=function(xe){this.bgRectangle&&this.tip&&(ne.setAttributes(this.bgRectangle,[["fill",xe]]),ne.setAttributes(this.tip,[["fill",xe]])),this.bgColor=xe,this.fillColorChanged(xe)},de.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},de.prototype.setTipPoints=function(xe){xe===void 0&&(xe=!1);var ze=Math.min(this.height/2,15),$e=this.height/5;xe&&(this.tipPosition={x:ze+$e/2,y:this.height+20});var Ee=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ee<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?($e=this.width/5,ze=Math.min(this.width/2,15),this.tipBase1Position={x:ze,y:0},this.tipBase2Position={x:ze+$e,y:0}):(this.tipBase1Position={x:0,y:ze},this.tipBase2Position={x:0,y:ze+$e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ee<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?($e=this.width/5,ze=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ze-$e,y:0},this.tipBase2Position={x:this.width-ze,y:0}):(this.tipBase1Position={x:this.width,y:ze},this.tipBase2Position={x:this.width,y:ze+$e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ee<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?($e=this.width/5,ze=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ze-$e,y:this.height},this.tipBase2Position={x:this.width-ze,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ze-$e},this.tipBase2Position={x:this.width,y:this.height-ze}):Ee<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?($e=this.width/5,ze=Math.min(this.width/2,15),this.tipBase1Position={x:ze,y:this.height},this.tipBase2Position={x:ze+$e,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ze},this.tipBase2Position={x:0,y:this.height-ze-$e})},de.prototype.resize=function(xe){Ke.prototype.resize.call(this,xe),this.positionTip()},de.prototype.positionTip=function(){ne.setAttributes(this.tip,[["points",this.getTipPoints()]]);var xe=this.tipGrip.visual.transform.baseVal.getItem(0);xe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(xe,0)},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),de.prototype.select=function(){this.positionTip(),Ke.prototype.select.call(this)},de.prototype.getState=function(){var xe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ke.prototype.getState.call(this));return xe.typeName=de.typeName,xe},de.prototype.restoreState=function(xe){var ze=xe;this.bgColor=ze.bgColor,this.tipPosition=ze.tipPosition,Ke.prototype.restoreState.call(this,xe),this.createTip(),this.setTipPoints()},de.prototype.scale=function(xe,ze){Ke.prototype.scale.call(this,xe,ze),this.tipPosition={x:this.tipPosition.x*xe,y:this.tipPosition.y*ze},this.positionTip()},de.typeName="CalloutMarker",de.title="Callout marker",de.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',de}(We),mt=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.opacity=1,Ee.strokeColor=$e.defaultColor,Ee.strokeWidth=$e.defaultStrokeWidth,Ee.strokeDasharray=$e.defaultStrokeDasharray,Ee.fillColor=$e.defaultFillColor,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.setOpacity=Ee.setOpacity.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee.strokePanel=new he("Line color",pe($e.defaultColorSet,["transparent"]),$e.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.fillPanel=new he("Fill color",pe($e.defaultColorSet,["transparent"]),Ee.fillColor,Qe),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ne("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee.opacityPanel=new st("Opacity",$e.defaultOpacitySteps,Ee.opacity),Ee.opacityPanel.onOpacityChanged=Ee.setOpacity,Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){return!(!Ke.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},de.prototype.createVisual=function(){this.visual=ne.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},de.prototype.manipulate=function(xe){Ke.prototype.manipulate.call(this,xe)},de.prototype.resize=function(xe){Ke.prototype.resize.call(this,xe),this.setSize()},de.prototype.setSize=function(){Ke.prototype.setSize.call(this),ne.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},de.prototype.pointerUp=function(xe){Ke.prototype.pointerUp.call(this,xe),this.setSize()},de.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&ne.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},de.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&ne.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},de.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&ne.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},de.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&ne.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},de.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&ne.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ke.prototype.getState.call(this));return xe.typeName=de.typeName,xe},de.prototype.restoreState=function(xe){var ze=xe;this.fillColor=ze.fillColor,this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.strokeDasharray,this.opacity=ze.opacity,this.createVisual(),Ke.prototype.restoreState.call(this,xe),this.setSize()},de.prototype.scale=function(xe,ze){Ke.prototype.scale.call(this,xe,ze),this.setSize()},de.typeName="EllipseMarker",de.title="Ellipse marker",de.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',de}(_e),ft=function(Ke){function de(xe,ze,$e){return Ke.call(this,xe,ze,$e)||this}return ot(de,Ke),Object.defineProperty(de.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),de.prototype.ownsTarget=function(xe){return!(!Ke.prototype.ownsTarget.call(this,xe)&&xe!==this.tip1&&xe!==this.tip2)},de.prototype.createTips=function(){this.tip1=ne.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ne.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ne.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ne.createTransform()),this.visual.appendChild(this.tip2)},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.state==="creating"&&this.createTips()},de.prototype.adjustVisual=function(){if(Ke.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ne.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ne.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ze=this.tip1.transform.baseVal.getItem(0);ze.setRotate(xe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ze,0);var $e=this.tip2.transform.baseVal.getItem(0);$e.setRotate(xe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem($e,0)}},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Ke.prototype.getState.call(this);return xe.typeName=de.typeName,xe},de.prototype.restoreState=function(xe){Ke.prototype.restoreState.call(this,xe),this.createTips(),this.adjustVisual()},de.typeName="MeasurementMarker",de.title="Measurement marker",de.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',de}(Pe),nt=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.strokePanel.colors=$e.defaultColorSet,Ee.fillColor="transparent",Ee}return ot(de,Ke),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Ke.prototype.getState.call(this);return xe.typeName=de.typeName,xe},de.typeName="EllipseFrameMarker",de.title="Ellipse frame marker",de.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',de}(mt),tt=function(){function Ke(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ke.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ke.prototype.addUndoStep=function(de){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(de)||(this.undoStack.push(de),JSON.stringify(this.lastRedoStep)!==JSON.stringify(de)&&this.redoStack.splice(0,this.redoStack.length))},Ke.prototype.replaceLastUndoStep=function(de){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=de)},Ke.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ke.prototype.undo=function(){if(this.undoStack.length>1){var de=this.undoStack.pop();return de!==void 0&&this.redoStack.push(de),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ke.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ke}(),rt=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.curveX=0,Ee.curveY=0,Ee.manipulationStartCurveX=0,Ee.manipulationStartCurveY=0,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.positionGrips=Ee.positionGrips.bind(Ee),Ee.addControlGrips=Ee.addControlGrips.bind(Ee),Ee.adjustVisual=Ee.adjustVisual.bind(Ee),Ee.setupControlBox=Ee.setupControlBox.bind(Ee),Ee.resize=Ee.resize.bind(Ee),Ee.strokeColor=$e.defaultColor,Ee.strokeWidth=$e.defaultStrokeWidth,Ee.strokeDasharray=$e.defaultStrokeDasharray,Ee.strokePanel=new he("Line color",$e.defaultColorSet,$e.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ne("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){return!(!Ke.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorCurve&&xe!==this.visibleCurve&&!this.curveGrip.ownsTarget(xe))},de.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},de.prototype.createVisual=function(){this.visual=ne.createGroup(),this.selectorCurve=ne.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ne.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xe.x,this.curveY=xe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ze)&&(this.activeGrip=this.curveGrip,this._state="resize")},de.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ne.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ne.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ne.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},de.prototype.setupControlBox=function(){Ke.prototype.setupControlBox.call(this),this.curveControlLine1=ne.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ne.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},de.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ke.prototype.addControlGrips.call(this)},de.prototype.positionGrips=function(){Ke.prototype.positionGrips.call(this);var xe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xe/2,this.curveY-xe/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},de.prototype.manipulate=function(xe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xe.y-this.manipulationStartY),Ke.prototype.manipulate.call(this,xe)},de.prototype.resize=function(xe){this.activeGrip===this.curveGrip&&(this.curveX=xe.x,this.curveY=xe.y),Ke.prototype.resize.call(this,xe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},de.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},de.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},de.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual()},de.prototype.scale=function(xe,ze){this.curveX=this.curveX*xe,this.curveY=this.curveY*ze,Ke.prototype.scale.call(this,xe,ze)},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ke.prototype.getState.call(this));return xe.typeName=de.typeName,xe},de.prototype.restoreState=function(xe){Ke.prototype.restoreState.call(this,xe);var ze=xe;this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.strokeDasharray,this.curveX=ze.curveX,this.curveY=ze.curveY,this.createVisual(),this.adjustVisual()},de.typeName="CurveMarker",de.title="Curve marker",de.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',de}(Ie),Et=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,ze,$e)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.textColor="transparent",Ee.fontSize="1rem",Ee.isMoved=!1,Ee.captionText="Caption",Ee.PADDING=5,Ee.captionBoxWidth=0,Ee.captionBoxHeight=0,Ee.strokeColor=$e.defaultColor,Ee.strokeWidth=$e.defaultStrokeWidth,Ee.strokeDasharray=$e.defaultStrokeDasharray,Ee.fillColor=$e.defaultFillColor,Ee.textColor=$e.defaultStrokeColor,Ee.fontFamily=$e.defaultFontFamily,Ee.fontSize=$e.defaultCaptionFontSize,Ee.captionText=$e.defaultCaptionText,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee.sizeCaption=Ee.sizeCaption.bind(Ee),Ee.setCaptionText=Ee.setCaptionText.bind(Ee),Ee.showTextEditor=Ee.showTextEditor.bind(Ee),Ee.positionTextEditor=Ee.positionTextEditor.bind(Ee),Ee.finishTextEditing=Ee.finishTextEditing.bind(Ee),Ee.setFont=Ee.setFont.bind(Ee),Ee.setTextColor=Ee.setTextColor.bind(Ee),Ee.strokePanel=new he("Line color",pe($e.defaultColorSet,["transparent"]),Ee.strokeColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.fillPanel=new he("Fill color",pe($e.defaultColorSet,["transparent"]),Ee.fillColor,Qe),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new Ne("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee.fontFamilyPanel=new Le("Font",$e.defaultFontFamilies,$e.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee.textColorPanel=new he("Text color",$e.defaultColorSet,Ee.textColor,Ve),Ee.textColorPanel.onColorChanged=Ee.setTextColor,Ee}return ot(de,Ke),de.prototype.ownsTarget=function(xe){return!(!Ke.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.frame&&xe!==this.captionBg&&xe!==this.captionElement)},de.prototype.createVisual=function(){this.visual=ne.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ne.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ne.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=ne.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},de.prototype.setCaptionText=function(xe){this.captionText=xe,this.captionElement.textContent=this.captionText,this.sizeCaption()},de.prototype.pointerDown=function(xe,ze){Ke.prototype.pointerDown.call(this,xe,ze),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},de.prototype.manipulate=function(xe){Ke.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},de.prototype.resize=function(xe){Ke.prototype.resize.call(this,xe),this.setSize()},de.prototype.sizeCaption=function(){var xe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xe.width+2*this.PADDING,this.captionBoxHeight=xe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ne.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),ne.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},de.prototype.showTextEditor=function(){var xe=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ze){ze.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ze){ze.key==="Enter"&&xe.finishTextEditing(xe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ze){ze.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},de.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},de.prototype.finishTextEditing=function(xe){this.setCaptionText(xe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},de.prototype.setFont=function(xe){this.captionElement&&ne.setAttributes(this.captionElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},de.prototype.setTextColor=function(xe){this.captionElement&&ne.setAttributes(this.captionElement,[["fill",xe]]),this.textColor=xe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},de.prototype.setSize=function(){Ke.prototype.setSize.call(this),ne.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},de.prototype.pointerUp=function(xe){Ke.prototype.pointerUp.call(this,xe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},de.prototype.dblClick=function(xe,ze){Ke.prototype.dblClick.call(this,xe,ze),this.showTextEditor()},de.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.frame&&ne.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},de.prototype.setFillColor=function(xe){this.fillColor=xe,this.captionBg&&ne.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},de.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.frame&&ne.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},de.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.frame&&ne.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Ke.prototype.getState.call(this));return xe.typeName=this.typeName,xe},de.prototype.restoreState=function(xe){var ze=xe;this.fillColor=ze.fillColor,this.strokeColor=ze.strokeColor,this.strokeWidth=ze.strokeWidth,this.strokeDasharray=ze.strokeDasharray,this.textColor=ze.textColor,this.fontFamily=ze.fontFamily,this.captionText=ze.captionText,this.fontSize=ze.fontSize,this.createVisual(),Ke.prototype.restoreState.call(this,xe),this.setSize()},de.prototype.scale=function(xe,ze){Ke.prototype.scale.call(this,xe,ze),this.setSize()},de.typeName="CaptionFrameMarker",de.title="Caption frame marker",de.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',de}(_e),bt=function(){function Ke(de,xe){xe===void 0&&(xe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=de,this.cancelable=xe}return Object.defineProperty(Ke.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ke.prototype.preventDefault=function(){this._defaultPrevented=!0},Ke}(),Pt=function(Ke){function de(xe,ze,$e){var Ee=Ke.call(this,xe,!1)||this;return Ee.dataUrl=ze,Ee.state=$e,Ee}return ot(de,Ke),de}(bt),Lt=function(Ke){function de(xe,ze,$e){$e===void 0&&($e=!1);var Ee=Ke.call(this,xe,$e)||this;return Ee.marker=ze,Ee}return ot(de,Ke),de}(bt),dt=function(){function Ke(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Ke.prototype.addEventListener=function(de,xe){this[de].push(xe)},Ke.prototype.removeEventListener=function(de,xe){var ze=this[de].indexOf(xe);ze>-1&&this[de].splice(ze,1)},Ke}(),Ze=function(){function Ke(de){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new De,this._isOpen=!1,this.undoRedoManager=new tt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new dt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ke.instanceCounter++,this.styles=new se(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=de,this.targetRoot=document.body,this.width=de.clientWidth,this.height=de.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Ke.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ae,Be,Ye,We,nt,mt,yt,pt,ft,et,Pe,rt,Et]},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ae,Be,Ye,We,mt,yt,pt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ae,Be,Ye,We,yt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(de){var xe=this;this._availableMarkerTypes.splice(0),de.forEach(function(ze){if(typeof ze=="string"){var $e=xe.ALL_MARKER_TYPES.find(function(Ee){return Ee.typeName===ze});$e!==void 0&&xe._availableMarkerTypes.push($e)}else xe._availableMarkerTypes.push(ze)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(de){this._zoomLevel=de,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Ke.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ke.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),z.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ke.prototype.show=function(){var de=this;this.styles.styleSheetRoot===void 0&&re.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=re.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new bt(de))})},Ke.prototype.render=function(){return x(this,void 0,void 0,function(){var de;return ke(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(de=new ae).naturalSize=this.renderAtNaturalSize,de.imageType=this.renderImageType,de.imageQuality=this.renderImageQuality,de.markersOnly=this.renderMarkersOnly,de.width=this.renderWidth,de.height=this.renderHeight,[4,de.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xe.sent(),[4,de.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xe.sent()]}})})},Ke.prototype.close=function(de){var xe=this;if(de===void 0&&(de=!1),this.isOpen){var ze=!1;de||this.eventListeners.beforeclose.forEach(function($e){var Ee=new bt(xe,!0);$e(Ee),Ee.defaultPrevented&&(ze=!0)}),ze||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function($e){return $e(new bt(xe))}),this.detachEvents(),this._isOpen=!1)}},Ke.prototype.addMarkersToToolbar=function(){for(var de,xe=[],ze=0;ze<arguments.length;ze++)xe[ze]=arguments[ze];(de=this._availableMarkerTypes).push.apply(de,xe)},Ke.prototype.addRenderEventListener=function(de){this.addEventListener("render",function(xe){de(xe.dataUrl,xe.state)})},Ke.prototype.removeRenderEventListener=function(de){},Ke.prototype.addCloseEventListener=function(de){this.addEventListener("close",function(){de()})},Ke.prototype.removeCloseEventListener=function(de){},Ke.prototype.setupResizeObserver=function(){var de=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){de.resize(de.target.clientWidth,de.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return de.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ke.prototype.onPopupTargetResize=function(){var de=1*this.target.clientWidth/this.target.clientHeight,xe=this.editorCanvas.clientWidth/de>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*de:this.editorCanvas.clientWidth,ze=xe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/de;this.resize(xe,ze)},Ke.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ke.prototype.resize=function(de,xe){this._isResizing=!0;var ze=de/this.imageWidth,$e=xe/this.imageHeight;this.imageWidth=Math.round(de),this.imageHeight=Math.round(xe),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ze,$e),this._isResizing=!1},Ke.prototype.scaleMarkers=function(de,xe){var ze,$e=this;this._currentMarker&&this._currentMarker instanceof We?this._currentMarker.scale(de,xe):(ze=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ee){Ee!==$e._currentMarker&&Ee.scale(de,xe)}),ze!==void 0&&this.setCurrentMarker(ze)},Ke.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Ke.prototype.setTopLeft=function(){var de=this.editingTarget.getBoundingClientRect(),xe=this.editorCanvas.getBoundingClientRect();this.left=de.left-xe.left,this.top=de.top-xe.top},Ke.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Ke.prototype.addDefs=function(){for(var de,xe=[],ze=0;ze<arguments.length;ze++)xe[ze]=arguments[ze];this.defs=ne.createDefs(),this.addDefsToImage(),(de=this.defs).append.apply(de,xe)},Ke.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ke.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Ke.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ke.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ke.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Ke.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ke.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Ke.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var de=document.createElement("a");de.href="https://markerjs.com/",de.target="_blank",de.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',de.title="Powered by marker.js",de.style.display="grid",de.style.alignItems="center",de.style.justifyItems="center",de.style.padding="3px",de.style.width="20px",de.style.height="20px",this.logoUI.appendChild(de),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ke.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Ke.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Ke.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ke.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var de=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=de+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new le(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new ue(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ke.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ke.prototype.removeMarker=function(de){this.markerImage.removeChild(de.container),this.markers.indexOf(de)>-1&&this.markers.splice(this.markers.indexOf(de),1),de.dispose()},Ke.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Ke.prototype.toolbarButtonClicked=function(de,xe){if(de==="marker"&&xe!==void 0)this.createNewMarker(xe);else if(de==="action")switch(xe){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Ke.prototype.deleteSelectedMarker=function(){var de=this;if(this._currentMarker!==void 0){var xe=!1;if(this.eventListeners.markerbeforedelete.forEach(function($e){var Ee=new Lt(de,de._currentMarker,!0);$e(Ee),Ee.defaultPrevented&&(xe=!0)}),!xe){var ze=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function($e){return $e(new Lt(de,ze))})}}},Ke.prototype.clear=function(){var de=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Re){var Fe=new Lt(de,void 0,!0);Re(Fe),Fe.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var ze=function(Re){var Fe=$e.markers[Re];$e.setCurrentMarker($e.markers[Re]),$e._currentMarker.dispose(),$e.markerImage.removeChild($e._currentMarker.container),$e.markers.splice($e.markers.indexOf($e._currentMarker),1),$e.eventListeners.markerdelete.forEach(function(Ge){return Ge(new Lt(de,Fe))})},$e=this,Ee=this.markers.length-1;Ee>=0;Ee--)ze(Ee);this.addUndoStep()}},Object.defineProperty(Ke.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ke.prototype.showNotesEditor=function(){var de;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(de=this._currentMarker.notes)!==null&&de!==void 0?de:"",this.overlayContainer.appendChild(this.notesArea))},Ke.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Ke.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ke.prototype.addUndoStep=function(){var de=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xe=this.getState(),ze=this.undoRedoManager.getLastUndoStep();if(!ze||ze.width===xe.width&&ze.height===xe.height){var $e=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xe),$e<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ee){return Ee(new bt(de))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(Ee){return Ee(new bt(de))})}},Ke.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ke.prototype.undoStep=function(){var de=this,xe=this.undoRedoManager.undo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ze){return ze(new bt(de))}))},Ke.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ke.prototype.redoStep=function(){var de=this,xe=this.undoRedoManager.redo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ze){return ze(new bt(de))}))},Ke.prototype.stepZoom=function(){var de=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=de<this.zoomSteps.length-1?this.zoomSteps[de+1]:this.zoomSteps[0]},Ke.prototype.panTo=function(de){this.contentDiv.scrollBy({left:this.prevPanPoint.x-de.x,top:this.prevPanPoint.y-de.y}),this.prevPanPoint=de},Ke.prototype.startRenderAndClose=function(){return x(this,void 0,void 0,function(){var de,xe,ze=this;return ke(this,function($e){switch($e.label){case 0:return[4,this.render()];case 1:return de=$e.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(Ee){return Ee(new Pt(ze,de,xe))}),this.close(!0),[2]}})})},Ke.prototype.getState=function(de){de===!0&&this.setCurrentMarker();var xe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ze){return xe.markers.push(ze.getState())}),xe},Ke.prototype.restoreState=function(de){var xe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);de.markers.forEach(function(ze){var $e=xe._availableMarkerTypes.find(function(Re){return Re.typeName===ze.typeName});if($e!==void 0){var Ee=xe.addNewMarker($e);Ee.restoreState(ze),xe.markers.push(Ee)}}),de.width&&de.height&&(de.width!==this.imageWidth||de.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/de.width,this.imageHeight/de.height),this.eventListeners.restorestate.forEach(function(ze){return ze(new bt(xe))})},Ke.prototype.addNewMarker=function(de){var xe=ne.createGroup();return this.markerImage.appendChild(xe),new de(xe,this.overlayContainer,this.settings)},Ke.prototype.createNewMarker=function(de){var xe,ze=this;(xe=typeof de=="string"?this._availableMarkerTypes.find(function($e){return $e.typeName===de}):de)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(xe),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(xe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function($e){return $e(new Lt(ze,ze._currentMarker))}))},Ke.prototype.markerCreated=function(de){var xe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(de),this.setCurrentMarker(de),de instanceof Be&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Be):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ze){return ze(new Lt(xe,xe._currentMarker))})},Ke.prototype.colorChanged=function(de){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=de,this.settings.defaultStrokeColor=de)},Ke.prototype.fillColorChanged=function(de){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=de)},Ke.prototype.markerStateChanged=function(de){var xe=this;this.eventListeners.markerchange.forEach(function(ze){return ze(new Lt(xe,de))})},Ke.prototype.setCurrentMarker=function(de){var xe=this;this._currentMarker!==de&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ze){return ze(new Lt(xe,xe._currentMarker))})),this._currentMarker=de,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ze){return ze(new Lt(xe,xe._currentMarker))}))},Ke.prototype.onPointerDown=function(de){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||de.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var xe=this.markers.find(function(ze){return ze.ownsTarget(de.target)});xe!==void 0?(this.setCurrentMarker(xe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(de.clientX,de.clientY),de.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:de.clientX,y:de.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(de.clientX,de.clientY))},Ke.prototype.onDblClick=function(de){if(this._isFocused||this.focus(),this.mode==="select"){var xe=this.markers.find(function(ze){return ze.ownsTarget(de.target)});xe!==void 0&&xe!==this._currentMarker&&this.setCurrentMarker(xe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(de.clientX,de.clientY),de.target):this.setCurrentMarker()}},Ke.prototype.onPointerMove=function(de){this.touchPoints!==1&&de.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||de.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(de.clientX,de.clientY)):this.zoomLevel>1&&this.panTo({x:de.clientX,y:de.clientY}))},Ke.prototype.onPointerUp=function(de){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(de.clientX,de.clientY)),this.isDragging=!1,this.addUndoStep()},Ke.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ke.prototype.onKeyUp=function(de){this._currentMarker===void 0||this.notesArea!==void 0||de.key!=="Delete"&&de.key!=="Backspace"||this.deleteSelectedMarker()},Ke.prototype.clientToLocalCoordinates=function(de,xe){var ze=this.markerImage.getBoundingClientRect();return{x:(de-ze.left)/this.zoomLevel,y:(xe-ze.top)/this.zoomLevel}},Ke.prototype.onWindowResize=function(){this.positionUI()},Ke.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var de=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=de+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Ke.prototype.addLicenseKey=function(de){z.addKey(de)},Ke.prototype.addEventListener=function(de,xe){this.eventListeners.addEventListener(de,xe)},Ke.prototype.removeEventListener=function(de,xe){this.eventListeners.removeEventListener(de,xe)},Ke.prototype.renderState=function(de){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(de),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ke.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ke.prototype.focus=function(){var de=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xe){return xe(new bt(de))}))},Ke.prototype.blur=function(){var de=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xe){return xe(new bt(de))}))},Ke.instanceCounter=0,Ke}()},95860:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ye}});var Ue=ve(87462),ot=ve(1413),x=ve(4942),ke=ve(97685),pe=ve(45987),ne=ve(94184),z=ve.n(ne),ae=ve(67294);function re(_e){var Me=ae.useRef();Me.current=_e;var we=ae.useCallback(function(){for(var Ne,Ae=arguments.length,De=new Array(Ae),Ie=0;Ie<Ae;Ie++)De[Ie]=arguments[Ie];return(Ne=Me.current)===null||Ne===void 0?void 0:Ne.call.apply(Ne,[Me].concat(De))},[]);return we}function se(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var me=se()?ae.useLayoutEffect:ae.useEffect,ie=function(Me,we){var Ne=ae.useRef(!0);me(function(){return Me(Ne.current)},we),me(function(){return Ne.current=!1,function(){Ne.current=!0}},[])},le=function(Me,we){ie(function(Ne){if(!Ne)return Me()},we)},ue=null;function fe(_e){var Me=ae.useRef(!1),we=ae.useState(_e),Ne=(0,ke.Z)(we,2),Ae=Ne[0],De=Ne[1];ae.useEffect(function(){return Me.current=!1,function(){Me.current=!0}},[]);function Ie(Pe,Le){Le&&Me.current||De(Pe)}return[Ae,Ie]}function he(_e){return _e!==void 0}function oe(_e,Me){var we=Me||{},Ne=we.defaultValue,Ae=we.value,De=we.onChange,Ie=we.postState,Pe=fe(function(){return he(Ae)?Ae:he(Ne)?typeof Ne=="function"?Ne():Ne:typeof _e=="function"?_e():_e}),Le=(0,ke.Z)(Pe,2),We=Le[0],Be=Le[1],He=Ae!==void 0?Ae:We,Ye=Ie?Ie(He):He,et=re(De),st=fe([He]),yt=(0,ke.Z)(st,2),Ve=yt[0],Qe=yt[1];le(function(){var mt=Ve[0];We!==mt&&et(We,mt)},[Ve]),le(function(){he(Ae)||Be(Ae)},[Ae]);var pt=re(function(mt,ft){Be(mt,ft),Qe([He],ft)});return[Ye,pt]}var Se=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Ce=(0,ae.forwardRef)(function(_e,Me){var we,Ne=_e.prefixCls,Ae=Ne===void 0?"rc-checkbox":Ne,De=_e.className,Ie=_e.style,Pe=_e.checked,Le=_e.disabled,We=_e.defaultChecked,Be=We===void 0?!1:We,He=_e.type,Ye=He===void 0?"checkbox":He,et=_e.title,st=_e.onChange,yt=(0,pe.Z)(_e,Se),Ve=(0,ae.useRef)(null),Qe=oe(Be,{value:Pe}),pt=(0,ke.Z)(Qe,2),mt=pt[0],ft=pt[1];(0,ae.useImperativeHandle)(Me,function(){return{focus:function(){var Et;(Et=Ve.current)===null||Et===void 0||Et.focus()},blur:function(){var Et;(Et=Ve.current)===null||Et===void 0||Et.blur()},input:Ve.current}});var nt=z()(Ae,De,(we={},(0,x.Z)(we,"".concat(Ae,"-checked"),mt),(0,x.Z)(we,"".concat(Ae,"-disabled"),Le),we)),tt=function(Et){Le||("checked"in _e||ft(Et.target.checked),st==null||st({target:(0,ot.Z)((0,ot.Z)({},_e),{},{type:Ye,checked:Et.target.checked}),stopPropagation:function(){Et.stopPropagation()},preventDefault:function(){Et.preventDefault()},nativeEvent:Et.nativeEvent}))};return ae.createElement("span",{className:nt,title:et,style:Ie},ae.createElement("input",(0,Ue.Z)({},yt,{className:"".concat(Ae,"-input"),ref:Ve,onChange:tt,disabled:Le,checked:!!mt,type:Ye})),ae.createElement("span",{className:"".concat(Ae,"-inner")}))}),ye=Ce},26819:function(xn,Zt){"use strict";var ve;var Ue=typeof Symbol=="function"&&Symbol.for,ot=Ue?Symbol.for("react.element"):60103,x=Ue?Symbol.for("react.portal"):60106,ke=Ue?Symbol.for("react.fragment"):60107,pe=Ue?Symbol.for("react.strict_mode"):60108,ne=Ue?Symbol.for("react.profiler"):60114,z=Ue?Symbol.for("react.provider"):60109,ae=Ue?Symbol.for("react.context"):60110,re=Ue?Symbol.for("react.async_mode"):60111,se=Ue?Symbol.for("react.concurrent_mode"):60111,me=Ue?Symbol.for("react.forward_ref"):60112,ie=Ue?Symbol.for("react.suspense"):60113,le=Ue?Symbol.for("react.suspense_list"):60120,ue=Ue?Symbol.for("react.memo"):60115,fe=Ue?Symbol.for("react.lazy"):60116,he=Ue?Symbol.for("react.block"):60121,oe=Ue?Symbol.for("react.fundamental"):60117,Se=Ue?Symbol.for("react.responder"):60118,Ce=Ue?Symbol.for("react.scope"):60119;function ye(Me){if(typeof Me=="object"&&Me!==null){var we=Me.$$typeof;switch(we){case ot:switch(Me=Me.type,Me){case re:case se:case ke:case ne:case pe:case ie:return Me;default:switch(Me=Me&&Me.$$typeof,Me){case ae:case me:case fe:case ue:case z:return Me;default:return we}}case x:return we}}}function _e(Me){return ye(Me)===se}ve=re,ve=se,ve=ae,ve=z,ve=ot,ve=me,ve=ke,ve=fe,ve=ue,ve=x,ve=ne,ve=pe,ve=ie,ve=function(Me){return _e(Me)||ye(Me)===re},ve=_e,ve=function(Me){return ye(Me)===ae},ve=function(Me){return ye(Me)===z},ve=function(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===ot},ve=function(Me){return ye(Me)===me},ve=function(Me){return ye(Me)===ke},ve=function(Me){return ye(Me)===fe},Zt.isMemo=function(Me){return ye(Me)===ue},ve=function(Me){return ye(Me)===x},ve=function(Me){return ye(Me)===ne},ve=function(Me){return ye(Me)===pe},ve=function(Me){return ye(Me)===ie},ve=function(Me){return typeof Me=="string"||typeof Me=="function"||Me===ke||Me===se||Me===ne||Me===pe||Me===ie||Me===le||typeof Me=="object"&&Me!==null&&(Me.$$typeof===fe||Me.$$typeof===ue||Me.$$typeof===z||Me.$$typeof===ae||Me.$$typeof===me||Me.$$typeof===oe||Me.$$typeof===Se||Me.$$typeof===Ce||Me.$$typeof===he)},ve=ye},18459:function(xn,Zt,ve){"use strict";xn.exports=ve(26819)},16651:function(xn,Zt){"use strict";var ve;var Ue=Symbol.for("react.element"),ot=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),z=Symbol.for("react.context"),ae=Symbol.for("react.server_context"),re=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),fe;fe=Symbol.for("react.module.reference");function he(oe){if(typeof oe=="object"&&oe!==null){var Se=oe.$$typeof;switch(Se){case Ue:switch(oe=oe.type,oe){case x:case pe:case ke:case se:case me:return oe;default:switch(oe=oe&&oe.$$typeof,oe){case ae:case z:case re:case le:case ie:case ne:return oe;default:return Se}}case ot:return Se}}}ve=z,ve=ne,ve=Ue,ve=re,ve=x,ve=le,ve=ie,ve=ot,ve=pe,ve=ke,ve=se,ve=me,ve=function(){return!1},ve=function(){return!1},ve=function(oe){return he(oe)===z},ve=function(oe){return he(oe)===ne},ve=function(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===Ue},ve=function(oe){return he(oe)===re},ve=function(oe){return he(oe)===x},ve=function(oe){return he(oe)===le},ve=function(oe){return he(oe)===ie},ve=function(oe){return he(oe)===ot},ve=function(oe){return he(oe)===pe},ve=function(oe){return he(oe)===ke},ve=function(oe){return he(oe)===se},ve=function(oe){return he(oe)===me},ve=function(oe){return typeof oe=="string"||typeof oe=="function"||oe===x||oe===pe||oe===ke||oe===se||oe===me||oe===ue||typeof oe=="object"&&oe!==null&&(oe.$$typeof===le||oe.$$typeof===ie||oe.$$typeof===ne||oe.$$typeof===z||oe.$$typeof===re||oe.$$typeof===fe||oe.getModuleId!==void 0)},ve=he},33993:function(xn,Zt,ve){"use strict";ve(16651)},82523:function(xn,Zt){"use strict";var ve;var Ue=Symbol.for("react.element"),ot=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),z=Symbol.for("react.context"),ae=Symbol.for("react.server_context"),re=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),fe;fe=Symbol.for("react.module.reference");function he(oe){if(typeof oe=="object"&&oe!==null){var Se=oe.$$typeof;switch(Se){case Ue:switch(oe=oe.type,oe){case x:case pe:case ke:case se:case me:return oe;default:switch(oe=oe&&oe.$$typeof,oe){case ae:case z:case re:case le:case ie:case ne:return oe;default:return Se}}case ot:return Se}}}ve=z,ve=ne,ve=Ue,ve=re,ve=x,ve=le,ve=ie,ve=ot,ve=pe,ve=ke,ve=se,ve=me,ve=function(){return!1},ve=function(){return!1},ve=function(oe){return he(oe)===z},ve=function(oe){return he(oe)===ne},ve=function(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===Ue},ve=function(oe){return he(oe)===re},ve=function(oe){return he(oe)===x},ve=function(oe){return he(oe)===le},ve=function(oe){return he(oe)===ie},ve=function(oe){return he(oe)===ot},ve=function(oe){return he(oe)===pe},ve=function(oe){return he(oe)===ke},ve=function(oe){return he(oe)===se},ve=function(oe){return he(oe)===me},ve=function(oe){return typeof oe=="string"||typeof oe=="function"||oe===x||oe===pe||oe===ke||oe===se||oe===me||oe===ue||typeof oe=="object"&&oe!==null&&(oe.$$typeof===le||oe.$$typeof===ie||oe.$$typeof===ne||oe.$$typeof===z||oe.$$typeof===re||oe.$$typeof===fe||oe.getModuleId!==void 0)},ve=he},27183:function(xn,Zt,ve){"use strict";ve(82523)},67656:function(xn,Zt,ve){"use strict";ve.r(Zt),ve.d(Zt,{BaseInput:function(){return se},default:function(){return Ce}});var Ue=ve(87462),ot=ve(1413),x=ve(4942),ke=ve(71002),pe=ve(94184),ne=ve.n(pe),z=ve(67294),ae=ve(87887),re=function(_e){var Me,we,Ne=_e.inputElement,Ae=_e.prefixCls,De=_e.prefix,Ie=_e.suffix,Pe=_e.addonBefore,Le=_e.addonAfter,We=_e.className,Be=_e.style,He=_e.disabled,Ye=_e.readOnly,et=_e.focused,st=_e.triggerFocus,yt=_e.allowClear,Ve=_e.value,Qe=_e.handleReset,pt=_e.hidden,mt=_e.classes,ft=_e.classNames,nt=_e.dataAttrs,tt=_e.styles,rt=_e.components,Et=(rt==null?void 0:rt.affixWrapper)||"span",bt=(rt==null?void 0:rt.groupWrapper)||"span",Pt=(rt==null?void 0:rt.wrapper)||"span",Lt=(rt==null?void 0:rt.groupAddon)||"span",dt=(0,z.useRef)(null),Ze=function(Kt){var kt;(kt=dt.current)!==null&&kt!==void 0&&kt.contains(Kt.target)&&(st==null||st())},Ke=function(){var Kt;if(!yt)return null;var kt=!He&&!Ye&&Ve,St="".concat(Ae,"-clear-icon"),Wt=(0,ke.Z)(yt)==="object"&&yt!==null&&yt!==void 0&&yt.clearIcon?yt.clearIcon:"\u2716";return z.createElement("span",{onClick:Qe,onMouseDown:function(Vt){return Vt.preventDefault()},className:ne()(St,(Kt={},(0,x.Z)(Kt,"".concat(St,"-hidden"),!kt),(0,x.Z)(Kt,"".concat(St,"-has-suffix"),!!Ie),Kt)),role:"button",tabIndex:-1},Wt)},de=(0,z.cloneElement)(Ne,{value:Ve,hidden:pt,className:ne()((Me=Ne.props)===null||Me===void 0?void 0:Me.className,!(0,ae.X3)(_e)&&!(0,ae.He)(_e)&&We)||null,style:(0,ot.Z)((0,ot.Z)({},(we=Ne.props)===null||we===void 0?void 0:we.style),!(0,ae.X3)(_e)&&!(0,ae.He)(_e)?Be:{})});if((0,ae.X3)(_e)){var xe,ze="".concat(Ae,"-affix-wrapper"),$e=ne()(ze,(xe={},(0,x.Z)(xe,"".concat(ze,"-disabled"),He),(0,x.Z)(xe,"".concat(ze,"-focused"),et),(0,x.Z)(xe,"".concat(ze,"-readonly"),Ye),(0,x.Z)(xe,"".concat(ze,"-input-with-clear-btn"),Ie&&yt&&Ve),xe),!(0,ae.He)(_e)&&We,mt==null?void 0:mt.affixWrapper,ft==null?void 0:ft.affixWrapper),Ee=(Ie||yt)&&z.createElement("span",{className:ne()("".concat(Ae,"-suffix"),ft==null?void 0:ft.suffix),style:tt==null?void 0:tt.suffix},Ke(),Ie);de=z.createElement(Et,(0,Ue.Z)({className:$e,style:(0,ot.Z)((0,ot.Z)({},(0,ae.He)(_e)?void 0:Be),tt==null?void 0:tt.affixWrapper),hidden:!(0,ae.He)(_e)&&pt,onClick:Ze},nt==null?void 0:nt.affixWrapper,{ref:dt}),De&&z.createElement("span",{className:ne()("".concat(Ae,"-prefix"),ft==null?void 0:ft.prefix),style:tt==null?void 0:tt.prefix},De),(0,z.cloneElement)(Ne,{value:Ve,hidden:null}),Ee)}if((0,ae.He)(_e)){var Re="".concat(Ae,"-group"),Fe="".concat(Re,"-addon"),Ge=ne()("".concat(Ae,"-wrapper"),Re,mt==null?void 0:mt.wrapper),it=ne()("".concat(Ae,"-group-wrapper"),We,mt==null?void 0:mt.group);return z.createElement(bt,{className:it,style:Be,hidden:pt},z.createElement(Pt,{className:Ge},Pe&&z.createElement(Lt,{className:Fe},Pe),(0,z.cloneElement)(de,{hidden:null}),Le&&z.createElement(Lt,{className:Fe},Le)))}return de},se=re,me=ve(74902),ie=ve(97685),le=ve(45987),ue=ve(21770),fe=ve(98423),he=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],oe=(0,z.forwardRef)(function(ye,_e){var Me=ye.autoComplete,we=ye.onChange,Ne=ye.onFocus,Ae=ye.onBlur,De=ye.onPressEnter,Ie=ye.onKeyDown,Pe=ye.prefixCls,Le=Pe===void 0?"rc-input":Pe,We=ye.disabled,Be=ye.htmlSize,He=ye.className,Ye=ye.maxLength,et=ye.suffix,st=ye.showCount,yt=ye.type,Ve=yt===void 0?"text":yt,Qe=ye.classes,pt=ye.classNames,mt=ye.styles,ft=(0,le.Z)(ye,he),nt=(0,ue.Z)(ye.defaultValue,{value:ye.value}),tt=(0,ie.Z)(nt,2),rt=tt[0],Et=tt[1],bt=(0,z.useState)(!1),Pt=(0,ie.Z)(bt,2),Lt=Pt[0],dt=Pt[1],Ze=(0,z.useRef)(null),Ke=function(it){Ze.current&&(0,ae.nH)(Ze.current,it)};(0,z.useImperativeHandle)(_e,function(){return{focus:Ke,blur:function(){var it;(it=Ze.current)===null||it===void 0||it.blur()},setSelectionRange:function(it,gt,Kt){var kt;(kt=Ze.current)===null||kt===void 0||kt.setSelectionRange(it,gt,Kt)},select:function(){var it;(it=Ze.current)===null||it===void 0||it.select()},input:Ze.current}}),(0,z.useEffect)(function(){dt(function(Ge){return Ge&&We?!1:Ge})},[We]);var de=function(it){ye.value===void 0&&Et(it.target.value),Ze.current&&(0,ae.rJ)(Ze.current,it,we)},xe=function(it){De&&it.key==="Enter"&&De(it),Ie==null||Ie(it)},ze=function(it){dt(!0),Ne==null||Ne(it)},$e=function(it){dt(!1),Ae==null||Ae(it)},Ee=function(it){Et(""),Ke(),Ze.current&&(0,ae.rJ)(Ze.current,it,we)},Re=function(){var it=(0,fe.Z)(ye,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return z.createElement("input",(0,Ue.Z)({autoComplete:Me},it,{onChange:de,onFocus:ze,onBlur:$e,onKeyDown:xe,className:ne()(Le,(0,x.Z)({},"".concat(Le,"-disabled"),We),pt==null?void 0:pt.input),style:mt==null?void 0:mt.input,ref:Ze,size:Be,type:Ve}))},Fe=function(){var it=Number(Ye)>0;if(et||st){var gt=(0,ae.D7)(rt),Kt=(0,me.Z)(gt).length,kt=(0,ke.Z)(st)==="object"?st.formatter({value:gt,count:Kt,maxLength:Ye}):"".concat(Kt).concat(it?" / ".concat(Ye):"");return z.createElement(z.Fragment,null,!!st&&z.createElement("span",{className:ne()("".concat(Le,"-show-count-suffix"),(0,x.Z)({},"".concat(Le,"-show-count-has-suffix"),!!et),pt==null?void 0:pt.count),style:(0,ot.Z)({},mt==null?void 0:mt.count)},kt),et)}return null};return z.createElement(se,(0,Ue.Z)({},ft,{prefixCls:Le,className:He,inputElement:Re(),handleReset:Ee,value:(0,ae.D7)(rt),focused:Lt,triggerFocus:Ke,suffix:Fe(),disabled:We,classes:Qe,classNames:pt,styles:mt}))}),Se=oe,Ce=Se},87887:function(xn,Zt,ve){"use strict";ve.d(Zt,{D7:function(){return pe},He:function(){return Ue},X3:function(){return ot},nH:function(){return ke},rJ:function(){return x}});function Ue(ne){return!!(ne.addonBefore||ne.addonAfter)}function ot(ne){return!!(ne.prefix||ne.suffix||ne.allowClear)}function x(ne,z,ae,re){if(ae){var se=z;if(z.type==="click"){var me=ne.cloneNode(!0);se=Object.create(z,{target:{value:me},currentTarget:{value:me}}),me.value="",ae(se);return}if(re!==void 0){se=Object.create(z,{target:{value:ne},currentTarget:{value:ne}}),ne.value=re,ae(se);return}ae(se)}}function ke(ne,z){if(ne){ne.focus(z);var ae=z||{},re=ae.cursor;if(re){var se=ne.value.length;switch(re){case"start":ne.setSelectionRange(0,0);break;case"end":ne.setSelectionRange(se,se);break;default:ne.setSelectionRange(0,se)}}}}function pe(ne){return typeof ne=="undefined"||ne===null?"":String(ne)}},78595:function(xn,Zt,ve){"use strict";ve.d(Zt,{iz:function(){return Ei},ck:function(){return Nr},BW:function(){return pi},sN:function(){return Nr},Wd:function(){return Kn},ZP:function(){return vt},Xl:function(){return kt}});var Ue=ve(87462),ot=ve(4942),x=ve(1413),ke=ve(74902),pe=ve(97685),ne=ve(45987),z=ve(94184),ae=ve.n(z),re=ve(67294),se=ve(48555);function me(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ie=me()?re.useLayoutEffect:re.useEffect,le=function(It,At){var Bt=re.useRef(!0);ie(function(){return It(Bt.current)},At),ie(function(){return Bt.current=!1,function(){Bt.current=!0}},[])},ue=function(It,At){le(function(Bt){if(!Bt)return It()},At)},fe=le,he=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],oe=void 0;function Se(Ct,It){var At=Ct.prefixCls,Bt=Ct.invalidate,Ft=Ct.item,on=Ct.renderItem,gn=Ct.responsive,Ln=Ct.responsiveDisabled,qn=Ct.registerSize,Zn=Ct.itemKey,Pn=Ct.className,Bn=Ct.style,Sn=Ct.children,Xn=Ct.display,vr=Ct.order,rr=Ct.component,lr=rr===void 0?"div":rr,fr=(0,ne.Z)(Ct,he),yr=gn&&!Xn;function Mr(_n){qn(Zn,_n)}re.useEffect(function(){return function(){Mr(null)}},[]);var Ot=on&&Ft!==oe?on(Ft):Sn,Rt;Bt||(Rt={opacity:yr?0:1,height:yr?0:oe,overflowY:yr?"hidden":oe,order:gn?vr:oe,pointerEvents:yr?"none":oe,position:yr?"absolute":oe});var un={};yr&&(un["aria-hidden"]=!0);var Qt=re.createElement(lr,(0,Ue.Z)({className:ae()(!Bt&&At,Pn),style:(0,x.Z)((0,x.Z)({},Rt),Bn)},un,fr,{ref:It}),Ot);return gn&&(Qt=re.createElement(se.Z,{onResize:function(Wn){var Gn=Wn.offsetWidth;Mr(Gn)},disabled:Ln},Qt)),Qt}var Ce=re.forwardRef(Se);Ce.displayName="Item";var ye=Ce;function _e(Ct){var It=re.useRef();It.current=Ct;var At=re.useCallback(function(){for(var Bt,Ft=arguments.length,on=new Array(Ft),gn=0;gn<Ft;gn++)on[gn]=arguments[gn];return(Bt=It.current)===null||Bt===void 0?void 0:Bt.call.apply(Bt,[It].concat(on))},[]);return At}var Me=ve(73935),we=function(It){return+setTimeout(It,16)},Ne=function(It){return clearTimeout(It)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(we=function(It){return window.requestAnimationFrame(It)},Ne=function(It){return window.cancelAnimationFrame(It)});var Ae=0,De=new Map;function Ie(Ct){De.delete(Ct)}var Pe=function(It){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ae+=1;var Bt=Ae;function Ft(on){if(on===0)Ie(Bt),It();else{var gn=we(function(){Ft(on-1)});De.set(Bt,gn)}}return Ft(At),Bt};Pe.cancel=function(Ct){var It=De.get(Ct);return Ie(It),Ne(It)};var Le=Pe;function We(Ct){if(typeof MessageChannel=="undefined")Le(Ct);else{var It=new MessageChannel;It.port1.onmessage=function(){return Ct()},It.port2.postMessage(void 0)}}function Be(){var Ct=re.useRef(null),It=function(Bt){Ct.current||(Ct.current=[],We(function(){(0,Me.unstable_batchedUpdates)(function(){Ct.current.forEach(function(Ft){Ft()}),Ct.current=null})})),Ct.current.push(Bt)};return It}function He(Ct,It){var At=re.useState(It),Bt=(0,pe.Z)(At,2),Ft=Bt[0],on=Bt[1],gn=_e(function(Ln){Ct(function(){on(Ln)})});return[Ft,gn]}var Ye=re.createContext(null),et=["component"],st=["className"],yt=["className"],Ve=function(It,At){var Bt=re.useContext(Ye);if(!Bt){var Ft=It.component,on=Ft===void 0?"div":Ft,gn=(0,ne.Z)(It,et);return re.createElement(on,(0,Ue.Z)({},gn,{ref:At}))}var Ln=Bt.className,qn=(0,ne.Z)(Bt,st),Zn=It.className,Pn=(0,ne.Z)(It,yt);return re.createElement(Ye.Provider,{value:null},re.createElement(ye,(0,Ue.Z)({ref:At,className:ae()(Ln,Zn)},qn,Pn)))},Qe=re.forwardRef(Ve);Qe.displayName="RawItem";var pt=Qe,mt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ft="responsive",nt="invalidate";function tt(Ct){return"+ ".concat(Ct.length," ...")}function rt(Ct,It){var At=Ct.prefixCls,Bt=At===void 0?"rc-overflow":At,Ft=Ct.data,on=Ft===void 0?[]:Ft,gn=Ct.renderItem,Ln=Ct.renderRawItem,qn=Ct.itemKey,Zn=Ct.itemWidth,Pn=Zn===void 0?10:Zn,Bn=Ct.ssr,Sn=Ct.style,Xn=Ct.className,vr=Ct.maxCount,rr=Ct.renderRest,lr=Ct.renderRawRest,fr=Ct.suffix,yr=Ct.component,Mr=yr===void 0?"div":yr,Ot=Ct.itemComponent,Rt=Ct.onVisibleChange,un=(0,ne.Z)(Ct,mt),Qt=Bn==="full",_n=Be(),Wn=He(_n,null),Gn=(0,pe.Z)(Wn,2),gr=Gn[0],cr=Gn[1],Jn=gr||0,wr=He(_n,new Map),_r=(0,pe.Z)(wr,2),Vr=_r[0],Tr=_r[1],qr=He(_n,0),vi=(0,pe.Z)(qr,2),si=vi[0],gi=vi[1],Qr=He(_n,0),ui=(0,pe.Z)(Qr,2),bi=ui[0],zi=ui[1],ti=He(_n,0),Ji=(0,pe.Z)(ti,2),na=Ji[0],za=Ji[1],Ta=(0,re.useState)(null),pa=(0,pe.Z)(Ta,2),Vi=pa[0],Xi=pa[1],Ii=(0,re.useState)(null),ma=(0,pe.Z)(Ii,2),Ri=ma[0],wi=ma[1],sa=re.useMemo(function(){return Ri===null&&Qt?Number.MAX_SAFE_INTEGER:Ri||0},[Ri,gr]),Ma=(0,re.useState)(!1),go=(0,pe.Z)(Ma,2),ho=go[0],Ja=go[1],Za="".concat(Bt,"-item"),La=Math.max(si,bi),ua=vr===ft,Oo=on.length&&ua,ba=vr===nt,Ki=Oo||typeof vr=="number"&&on.length>vr,Ia=(0,re.useMemo)(function(){var ya=on;return Oo?gr===null&&Qt?ya=on:ya=on.slice(0,Math.min(on.length,Jn/Pn)):typeof vr=="number"&&(ya=on.slice(0,vr)),ya},[on,Pn,gr,vr,Oo]),to=(0,re.useMemo)(function(){return Oo?on.slice(sa+1):on.slice(Ia.length)},[on,Ia,Oo,sa]),Ra=(0,re.useCallback)(function(ya,Da){var ro;return typeof qn=="function"?qn(ya):(ro=qn&&(ya==null?void 0:ya[qn]))!==null&&ro!==void 0?ro:Da},[qn]),Fa=(0,re.useCallback)(gn||function(ya){return ya},[gn]);function ra(ya,Da,ro){Ri===ya&&(Da===void 0||Da===Vi)||(wi(ya),ro||(Ja(ya<on.length-1),Rt==null||Rt(ya)),Da!==void 0&&Xi(Da))}function no(ya,Da){cr(Da.clientWidth)}function yo(ya,Da){Tr(function(ro){var po=new Map(ro);return Da===null?po.delete(ya):po.set(ya,Da),po})}function so(ya,Da){zi(Da),gi(bi)}function bo(ya,Da){za(Da)}function Mo(ya){return Vr.get(Ra(Ia[ya],ya))}fe(function(){if(Jn&&typeof La=="number"&&Ia){var ya=na,Da=Ia.length,ro=Da-1;if(!Da){ra(0,null);return}for(var po=0;po<Da;po+=1){var Wo=Mo(po);if(Qt&&(Wo=Wo||0),Wo===void 0){ra(po-1,void 0,!0);break}if(ya+=Wo,ro===0&&ya<=Jn||po===ro-1&&ya+Mo(ro)<=Jn){ra(ro,null);break}else if(ya+La>Jn){ra(po-1,ya-Wo-na+bi);break}}fr&&Mo(0)+na>Jn&&Xi(null)}},[Jn,Vr,bi,na,Ra,Ia]);var Xo=ho&&!!to.length,lo={};Vi!==null&&Oo&&(lo={position:"absolute",left:Vi,top:0});var So={prefixCls:Za,responsive:Oo,component:Ot,invalidate:ba},os=Ln?function(ya,Da){var ro=Ra(ya,Da);return re.createElement(Ye.Provider,{key:ro,value:(0,x.Z)((0,x.Z)({},So),{},{order:Da,item:ya,itemKey:ro,registerSize:yo,display:Da<=sa})},Ln(ya,Da))}:function(ya,Da){var ro=Ra(ya,Da);return re.createElement(ye,(0,Ue.Z)({},So,{order:Da,key:ro,item:ya,renderItem:Fa,itemKey:ro,registerSize:yo,display:Da<=sa}))},rs,cs={order:Xo?sa:Number.MAX_SAFE_INTEGER,className:"".concat(Za,"-rest"),registerSize:so,display:Xo};if(lr)lr&&(rs=re.createElement(Ye.Provider,{value:(0,x.Z)((0,x.Z)({},So),cs)},lr(to)));else{var Lo=rr||tt;rs=re.createElement(ye,(0,Ue.Z)({},So,cs),typeof Lo=="function"?Lo(to):Lo)}var xo=re.createElement(Mr,(0,Ue.Z)({className:ae()(!ba&&Bt,Xn),style:Sn,ref:It},un),Ia.map(os),Ki?rs:null,fr&&re.createElement(ye,(0,Ue.Z)({},So,{responsive:ua,responsiveDisabled:!Oo,order:sa,className:"".concat(Za,"-suffix"),registerSize:bo,display:!0,style:lo}),fr));return ua&&(xo=re.createElement(se.Z,{onResize:no,disabled:!Oo},xo)),xo}var Et=re.forwardRef(rt);Et.displayName="Overflow",Et.Item=pt,Et.RESPONSIVE=ft,Et.INVALIDATE=nt;var bt=Et,Pt=bt,Lt=ve(21770),dt=ve(80334),Ze=ve(91881),Ke=re.createContext(null);function de(Ct,It){return Ct===void 0?null:"".concat(Ct,"-").concat(It)}function xe(Ct){var It=re.useContext(Ke);return de(It,Ct)}var ze=ve(56982),$e=["children","locked"],Ee=re.createContext(null);function Re(Ct,It){var At=(0,x.Z)({},Ct);return Object.keys(It).forEach(function(Bt){var Ft=It[Bt];Ft!==void 0&&(At[Bt]=Ft)}),At}function Fe(Ct){var It=Ct.children,At=Ct.locked,Bt=(0,ne.Z)(Ct,$e),Ft=re.useContext(Ee),on=(0,ze.Z)(function(){return Re(Ft,Bt)},[Ft,Bt],function(gn,Ln){return!At&&(gn[0]!==Ln[0]||!(0,Ze.Z)(gn[1],Ln[1],!0))});return re.createElement(Ee.Provider,{value:on},It)}var Ge=[],it=re.createContext(null);function gt(){return re.useContext(it)}var Kt=re.createContext(Ge);function kt(Ct){var It=re.useContext(Kt);return re.useMemo(function(){return Ct!==void 0?[].concat((0,ke.Z)(It),[Ct]):It},[It,Ct])}var St=re.createContext(null),Wt=re.createContext({}),jt=Wt,Vt=ve(15105),_t=ve(75164),sn=function(Ct){if(!Ct)return!1;if(Ct instanceof Element){if(Ct.offsetParent)return!0;if(Ct.getBBox){var It=Ct.getBBox(),At=It.width,Bt=It.height;if(At||Bt)return!0}if(Ct.getBoundingClientRect){var Ft=Ct.getBoundingClientRect(),on=Ft.width,gn=Ft.height;if(on||gn)return!0}}return!1};function Dt(Ct){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(sn(Ct)){var At=Ct.nodeName.toLowerCase(),Bt=["input","select","textarea","button"].includes(At)||Ct.isContentEditable||At==="a"&&!!Ct.getAttribute("href"),Ft=Ct.getAttribute("tabindex"),on=Number(Ft),gn=null;return Ft&&!Number.isNaN(on)?gn=on:Bt&&gn===null&&(gn=0),Bt&&Ct.disabled&&(gn=null),gn!==null&&(gn>=0||It&&gn<0)}return!1}function xt(Ct){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=(0,ke.Z)(Ct.querySelectorAll("*")).filter(function(Bt){return Dt(Bt,It)});return Dt(Ct,It)&&At.unshift(Ct),At}var en=null;function an(){en=document.activeElement}function fn(){en=null}function Tn(){if(en)try{en.focus()}catch(Ct){}}function ar(Ct,It){if(It.keyCode===9){var At=xt(Ct),Bt=At[It.shiftKey?0:At.length-1],Ft=Bt===document.activeElement||Ct===document.activeElement;if(Ft){var on=At[It.shiftKey?At.length-1:0];on.focus(),It.preventDefault()}}}var pr=Vt.Z.LEFT,Ar=Vt.Z.RIGHT,Dr=Vt.Z.UP,dr=Vt.Z.DOWN,zr=Vt.Z.ENTER,ai=Vt.Z.ESC,ki=Vt.Z.HOME,Ni=Vt.Z.END,xi=[Dr,dr,pr,Ar];function cn(Ct,It,At,Bt){var Ft,on,gn,Ln,qn="prev",Zn="next",Pn="children",Bn="parent";if(Ct==="inline"&&Bt===zr)return{inlineTrigger:!0};var Sn=(Ft={},(0,ot.Z)(Ft,Dr,qn),(0,ot.Z)(Ft,dr,Zn),Ft),Xn=(on={},(0,ot.Z)(on,pr,At?Zn:qn),(0,ot.Z)(on,Ar,At?qn:Zn),(0,ot.Z)(on,dr,Pn),(0,ot.Z)(on,zr,Pn),on),vr=(gn={},(0,ot.Z)(gn,Dr,qn),(0,ot.Z)(gn,dr,Zn),(0,ot.Z)(gn,zr,Pn),(0,ot.Z)(gn,ai,Bn),(0,ot.Z)(gn,pr,At?Pn:Bn),(0,ot.Z)(gn,Ar,At?Bn:Pn),gn),rr={inline:Sn,horizontal:Xn,vertical:vr,inlineSub:Sn,horizontalSub:vr,verticalSub:vr},lr=(Ln=rr["".concat(Ct).concat(It?"":"Sub")])===null||Ln===void 0?void 0:Ln[Bt];switch(lr){case qn:return{offset:-1,sibling:!0};case Zn:return{offset:1,sibling:!0};case Bn:return{offset:-1,sibling:!1};case Pn:return{offset:1,sibling:!1};default:return null}}function ir(Ct){for(var It=Ct;It;){if(It.getAttribute("data-menu-list"))return It;It=It.parentElement}return null}function sr(Ct,It){for(var At=Ct||document.activeElement;At;){if(It.has(At))return At;At=At.parentElement}return null}function Yn(Ct,It){var At=xt(Ct,!0);return At.filter(function(Bt){return It.has(Bt)})}function Rr(Ct,It,At){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ct)return null;var Ft=Yn(Ct,It),on=Ft.length,gn=Ft.findIndex(function(Ln){return At===Ln});return Bt<0?gn===-1?gn=on-1:gn-=1:Bt>0&&(gn+=1),gn=(gn+on)%on,Ft[gn]}function Nn(Ct,It,At,Bt,Ft,on,gn,Ln,qn,Zn){var Pn=re.useRef(),Bn=re.useRef();Bn.current=It;var Sn=function(){_t.Z.cancel(Pn.current)};return re.useEffect(function(){return function(){Sn()}},[]),function(Xn){var vr=Xn.which;if([].concat(xi,[zr,ai,ki,Ni]).includes(vr)){var rr,lr,fr,yr=function(){rr=new Set,lr=new Map,fr=new Map;var _r=on();return _r.forEach(function(Vr){var Tr=document.querySelector("[data-menu-id='".concat(de(Bt,Vr),"']"));Tr&&(rr.add(Tr),fr.set(Tr,Vr),lr.set(Vr,Tr))}),rr};yr();var Mr=lr.get(It),Ot=sr(Mr,rr),Rt=fr.get(Ot),un=cn(Ct,gn(Rt,!0).length===1,At,vr);if(!un&&vr!==ki&&vr!==Ni)return;(xi.includes(vr)||[ki,Ni].includes(vr))&&Xn.preventDefault();var Qt=function(_r){if(_r){var Vr=_r,Tr=_r.querySelector("a");Tr!=null&&Tr.getAttribute("href")&&(Vr=Tr);var qr=fr.get(_r);Ln(qr),Sn(),Pn.current=(0,_t.Z)(function(){Bn.current===qr&&Vr.focus()})}};if([ki,Ni].includes(vr)||un.sibling||!Ot){var _n;!Ot||Ct==="inline"?_n=Ft.current:_n=ir(Ot);var Wn,Gn=Yn(_n,rr);vr===ki?Wn=Gn[0]:vr===Ni?Wn=Gn[Gn.length-1]:Wn=Rr(_n,rr,Ot,un.offset),Qt(Wn)}else if(un.inlineTrigger)qn(Rt);else if(un.offset>0)qn(Rt,!0),Sn(),Pn.current=(0,_t.Z)(function(){yr();var wr=Ot.getAttribute("aria-controls"),_r=document.getElementById(wr),Vr=Rr(_r,rr);Qt(Vr)},5);else if(un.offset<0){var gr=gn(Rt,!0),cr=gr[gr.length-2],Jn=lr.get(cr);qn(cr,!1),Qt(Jn)}}Zn==null||Zn(Xn)}}function Hn(Ct){Promise.resolve().then(Ct)}var jn="__RC_UTIL_PATH_SPLIT__",Gt=function(It){return It.join(jn)},Xt=function(It){return It.split(jn)},rn="rc-menu-more";function An(){var Ct=re.useState({}),It=(0,pe.Z)(Ct,2),At=It[1],Bt=(0,re.useRef)(new Map),Ft=(0,re.useRef)(new Map),on=re.useState([]),gn=(0,pe.Z)(on,2),Ln=gn[0],qn=gn[1],Zn=(0,re.useRef)(0),Pn=(0,re.useRef)(!1),Bn=function(){Pn.current||At({})},Sn=(0,re.useCallback)(function(Mr,Ot){var Rt=Gt(Ot);Ft.current.set(Rt,Mr),Bt.current.set(Mr,Rt),Zn.current+=1;var un=Zn.current;Hn(function(){un===Zn.current&&Bn()})},[]),Xn=(0,re.useCallback)(function(Mr,Ot){var Rt=Gt(Ot);Ft.current.delete(Rt),Bt.current.delete(Mr)},[]),vr=(0,re.useCallback)(function(Mr){qn(Mr)},[]),rr=(0,re.useCallback)(function(Mr,Ot){var Rt=Bt.current.get(Mr)||"",un=Xt(Rt);return Ot&&Ln.includes(un[0])&&un.unshift(rn),un},[Ln]),lr=(0,re.useCallback)(function(Mr,Ot){return Mr.some(function(Rt){var un=rr(Rt,!0);return un.includes(Ot)})},[rr]),fr=function(){var Ot=(0,ke.Z)(Bt.current.keys());return Ln.length&&Ot.push(rn),Ot},yr=(0,re.useCallback)(function(Mr){var Ot="".concat(Bt.current.get(Mr)).concat(jn),Rt=new Set;return(0,ke.Z)(Ft.current.keys()).forEach(function(un){un.startsWith(Ot)&&Rt.add(Ft.current.get(un))}),Rt},[]);return re.useEffect(function(){return function(){Pn.current=!0}},[]),{registerPath:Sn,unregisterPath:Xn,refreshOverflowKeys:vr,isSubPathKey:lr,getKeyPath:rr,getKeys:fr,getSubPathKeys:yr}}function zt(Ct){var It=re.useRef(Ct);It.current=Ct;var At=re.useCallback(function(){for(var Bt,Ft=arguments.length,on=new Array(Ft),gn=0;gn<Ft;gn++)on[gn]=arguments[gn];return(Bt=It.current)===null||Bt===void 0?void 0:Bt.call.apply(Bt,[It].concat(on))},[]);return Ct?At:void 0}var tn=Math.random().toFixed(5).toString().slice(2),bn=0;function wn(Ct){var It=(0,Lt.Z)(Ct,{value:Ct}),At=(0,pe.Z)(It,2),Bt=At[0],Ft=At[1];return re.useEffect(function(){bn+=1;var on="".concat(tn,"-").concat(bn);Ft("rc-menu-uuid-".concat(on))},[]),Bt}var zn=ve(15671),Un=ve(43144),kr=ve(60136),Zr=ve(51630),Ir=ve(98423),Er=ve(42550);function Br(Ct,It,At,Bt){var Ft=re.useContext(Ee),on=Ft.activeKey,gn=Ft.onActive,Ln=Ft.onInactive,qn={active:on===Ct};return It||(qn.onMouseEnter=function(Zn){At==null||At({key:Ct,domEvent:Zn}),gn(Ct)},qn.onMouseLeave=function(Zn){Bt==null||Bt({key:Ct,domEvent:Zn}),Ln(Ct)}),qn}function Pr(Ct){var It=re.useContext(Ee),At=It.mode,Bt=It.rtl,Ft=It.inlineIndent;if(At!=="inline")return null;var on=Ct;return Bt?{paddingRight:on*Ft}:{paddingLeft:on*Ft}}function nn(Ct){var It=Ct.icon,At=Ct.props,Bt=Ct.children,Ft;return It===null||It===!1?null:(typeof It=="function"?Ft=re.createElement(It,(0,x.Z)({},At)):typeof It!="boolean"&&(Ft=It),Ft||Bt||null)}var Jt=["item"];function pn(Ct){var It=Ct.item,At=(0,ne.Z)(Ct,Jt);return Object.defineProperty(At,"item",{get:function(){return(0,dt.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),It}}),At}var Qn=["title","attribute","elementRef"],hr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Fn=["active"],Vn=function(Ct){(0,kr.Z)(At,Ct);var It=(0,Zr.Z)(At);function At(){return(0,zn.Z)(this,At),It.apply(this,arguments)}return(0,Un.Z)(At,[{key:"render",value:function(){var Ft=this.props,on=Ft.title,gn=Ft.attribute,Ln=Ft.elementRef,qn=(0,ne.Z)(Ft,Qn),Zn=(0,Ir.Z)(qn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,dt.ZP)(!gn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),re.createElement(Pt.Item,(0,Ue.Z)({},gn,{title:typeof on=="string"?on:void 0},Zn,{ref:Ln}))}}]),At}(re.Component),er=re.forwardRef(function(Ct,It){var At,Bt=Ct.style,Ft=Ct.className,on=Ct.eventKey,gn=Ct.warnKey,Ln=Ct.disabled,qn=Ct.itemIcon,Zn=Ct.children,Pn=Ct.role,Bn=Ct.onMouseEnter,Sn=Ct.onMouseLeave,Xn=Ct.onClick,vr=Ct.onKeyDown,rr=Ct.onFocus,lr=(0,ne.Z)(Ct,hr),fr=xe(on),yr=re.useContext(Ee),Mr=yr.prefixCls,Ot=yr.onItemClick,Rt=yr.disabled,un=yr.overflowDisabled,Qt=yr.itemIcon,_n=yr.selectedKeys,Wn=yr.onActive,Gn=re.useContext(jt),gr=Gn._internalRenderMenuItem,cr="".concat(Mr,"-item"),Jn=re.useRef(),wr=re.useRef(),_r=Rt||Ln,Vr=(0,Er.x1)(It,wr),Tr=kt(on),qr=function(pa){return{key:on,keyPath:(0,ke.Z)(Tr).reverse(),item:Jn.current,domEvent:pa}},vi=qn||Qt,si=Br(on,_r,Bn,Sn),gi=si.active,Qr=(0,ne.Z)(si,Fn),ui=_n.includes(on),bi=Pr(Tr.length),zi=function(pa){if(!_r){var Vi=qr(pa);Xn==null||Xn(pn(Vi)),Ot(Vi)}},ti=function(pa){if(vr==null||vr(pa),pa.which===Vt.Z.ENTER){var Vi=qr(pa);Xn==null||Xn(pn(Vi)),Ot(Vi)}},Ji=function(pa){Wn(on),rr==null||rr(pa)},na={};Ct.role==="option"&&(na["aria-selected"]=ui);var za=re.createElement(Vn,(0,Ue.Z)({ref:Jn,elementRef:Vr,role:Pn===null?"none":Pn||"menuitem",tabIndex:Ln?null:-1,"data-menu-id":un&&fr?null:fr},lr,Qr,na,{component:"li","aria-disabled":Ln,style:(0,x.Z)((0,x.Z)({},bi),Bt),className:ae()(cr,(At={},(0,ot.Z)(At,"".concat(cr,"-active"),gi),(0,ot.Z)(At,"".concat(cr,"-selected"),ui),(0,ot.Z)(At,"".concat(cr,"-disabled"),_r),At),Ft),onClick:zi,onKeyDown:ti,onFocus:Ji}),Zn,re.createElement(nn,{props:(0,x.Z)((0,x.Z)({},Ct),{},{isSelected:ui}),icon:vi}));return gr&&(za=gr(za,Ct,{selected:ui})),za});function Sr(Ct,It){var At=Ct.eventKey,Bt=gt(),Ft=kt(At);return re.useEffect(function(){if(Bt)return Bt.registerPath(At,Ft),function(){Bt.unregisterPath(At,Ft)}},[Ft]),Bt?null:re.createElement(er,(0,Ue.Z)({},Ct,{ref:It}))}var Nr=re.forwardRef(Sr),In=["className","children"],Gr=function(It,At){var Bt=It.className,Ft=It.children,on=(0,ne.Z)(It,In),gn=re.useContext(Ee),Ln=gn.prefixCls,qn=gn.mode,Zn=gn.rtl;return re.createElement("ul",(0,Ue.Z)({className:ae()(Ln,Zn&&"".concat(Ln,"-rtl"),"".concat(Ln,"-sub"),"".concat(Ln,"-").concat(qn==="inline"?"inline":"vertical"),Bt),role:"menu"},on,{"data-menu-list":!0,ref:At}),Ft)},ei=re.forwardRef(Gr);ei.displayName="SubMenuList";var aa=ei,ca=ve(50344);function qi(Ct,It){return(0,ca.Z)(Ct).map(function(At,Bt){if(re.isValidElement(At)){var Ft,on,gn=At.key,Ln=(Ft=(on=At.props)===null||on===void 0?void 0:on.eventKey)!==null&&Ft!==void 0?Ft:gn,qn=Ln==null;qn&&(Ln="tmp_key-".concat([].concat((0,ke.Z)(It),[Bt]).join("-")));var Zn={key:Ln,eventKey:Ln};return re.cloneElement(At,Zn)}return At})}var Oi=ve(62709),oa={adjustX:1,adjustY:1},Bi={topLeft:{points:["bl","tl"],overflow:oa},topRight:{points:["br","tr"],overflow:oa},bottomLeft:{points:["tl","bl"],overflow:oa},bottomRight:{points:["tr","br"],overflow:oa},leftTop:{points:["tr","tl"],overflow:oa},leftBottom:{points:["br","bl"],overflow:oa},rightTop:{points:["tl","tr"],overflow:oa},rightBottom:{points:["bl","br"],overflow:oa}},Di={topLeft:{points:["bl","tl"],overflow:oa},topRight:{points:["br","tr"],overflow:oa},bottomLeft:{points:["tl","bl"],overflow:oa},bottomRight:{points:["tr","br"],overflow:oa},rightTop:{points:["tr","tl"],overflow:oa},rightBottom:{points:["br","bl"],overflow:oa},leftTop:{points:["tl","tr"],overflow:oa},leftBottom:{points:["bl","br"],overflow:oa}},_a=null;function _i(Ct,It,At){if(It)return It;if(At)return At[Ct]||At.other}var ta={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ea(Ct){var It=Ct.prefixCls,At=Ct.visible,Bt=Ct.children,Ft=Ct.popup,on=Ct.popupStyle,gn=Ct.popupClassName,Ln=Ct.popupOffset,qn=Ct.disabled,Zn=Ct.mode,Pn=Ct.onVisibleChange,Bn=re.useContext(Ee),Sn=Bn.getPopupContainer,Xn=Bn.rtl,vr=Bn.subMenuOpenDelay,rr=Bn.subMenuCloseDelay,lr=Bn.builtinPlacements,fr=Bn.triggerSubMenuAction,yr=Bn.forceSubMenuRender,Mr=Bn.rootClassName,Ot=Bn.motion,Rt=Bn.defaultMotions,un=re.useState(!1),Qt=(0,pe.Z)(un,2),_n=Qt[0],Wn=Qt[1],Gn=Xn?(0,x.Z)((0,x.Z)({},Di),lr):(0,x.Z)((0,x.Z)({},Bi),lr),gr=ta[Zn],cr=_i(Zn,Ot,Rt),Jn=re.useRef(cr);Zn!=="inline"&&(Jn.current=cr);var wr=(0,x.Z)((0,x.Z)({},Jn.current),{},{leavedClassName:"".concat(It,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_r=re.useRef();return re.useEffect(function(){return _r.current=(0,_t.Z)(function(){Wn(At)}),function(){_t.Z.cancel(_r.current)}},[At]),re.createElement(Oi.Z,{prefixCls:It,popupClassName:ae()("".concat(It,"-popup"),(0,ot.Z)({},"".concat(It,"-rtl"),Xn),gn,Mr),stretch:Zn==="horizontal"?"minWidth":null,getPopupContainer:Sn,builtinPlacements:Gn,popupPlacement:gr,popupVisible:_n,popup:Ft,popupStyle:on,popupAlign:Ln&&{offset:Ln},action:qn?[]:[fr],mouseEnterDelay:vr,mouseLeaveDelay:rr,onPopupVisibleChange:Pn,forceRender:yr,popupMotion:wr,fresh:!0},Bt)}var Va=ve(62874);function Na(Ct){var It=Ct.id,At=Ct.open,Bt=Ct.keyPath,Ft=Ct.children,on="inline",gn=re.useContext(Ee),Ln=gn.prefixCls,qn=gn.forceSubMenuRender,Zn=gn.motion,Pn=gn.defaultMotions,Bn=gn.mode,Sn=re.useRef(!1);Sn.current=Bn===on;var Xn=re.useState(!Sn.current),vr=(0,pe.Z)(Xn,2),rr=vr[0],lr=vr[1],fr=Sn.current?At:!1;re.useEffect(function(){Sn.current&&lr(!1)},[Bn]);var yr=(0,x.Z)({},_i(on,Zn,Pn));Bt.length>1&&(yr.motionAppear=!1);var Mr=yr.onVisibleChanged;return yr.onVisibleChanged=function(Ot){return!Sn.current&&!Ot&&lr(!0),Mr==null?void 0:Mr(Ot)},rr?null:re.createElement(Fe,{mode:on,locked:!Sn.current},re.createElement(Va.Z,(0,Ue.Z)({visible:fr},yr,{forceRender:qn,removeOnLeave:!1,leavedClassName:"".concat(Ln,"-hidden")}),function(Ot){var Rt=Ot.className,un=Ot.style;return re.createElement(aa,{id:It,className:Rt,style:un},Ft)}))}var Pi=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],yn=["active"],dn=function(It){var At,Bt=It.style,Ft=It.className,on=It.title,gn=It.eventKey,Ln=It.warnKey,qn=It.disabled,Zn=It.internalPopupClose,Pn=It.children,Bn=It.itemIcon,Sn=It.expandIcon,Xn=It.popupClassName,vr=It.popupOffset,rr=It.popupStyle,lr=It.onClick,fr=It.onMouseEnter,yr=It.onMouseLeave,Mr=It.onTitleClick,Ot=It.onTitleMouseEnter,Rt=It.onTitleMouseLeave,un=(0,ne.Z)(It,Pi),Qt=xe(gn),_n=re.useContext(Ee),Wn=_n.prefixCls,Gn=_n.mode,gr=_n.openKeys,cr=_n.disabled,Jn=_n.overflowDisabled,wr=_n.activeKey,_r=_n.selectedKeys,Vr=_n.itemIcon,Tr=_n.expandIcon,qr=_n.onItemClick,vi=_n.onOpenChange,si=_n.onActive,gi=re.useContext(jt),Qr=gi._internalRenderSubMenuItem,ui=re.useContext(St),bi=ui.isSubPathKey,zi=kt(),ti="".concat(Wn,"-submenu"),Ji=cr||qn,na=re.useRef(),za=re.useRef(),Ta=Bn!=null?Bn:Vr,pa=Sn!=null?Sn:Tr,Vi=gr.includes(gn),Xi=!Jn&&Vi,Ii=bi(_r,gn),ma=Br(gn,Ji,Ot,Rt),Ri=ma.active,wi=(0,ne.Z)(ma,yn),sa=re.useState(!1),Ma=(0,pe.Z)(sa,2),go=Ma[0],ho=Ma[1],Ja=function(bo){Ji||ho(bo)},Za=function(bo){Ja(!0),fr==null||fr({key:gn,domEvent:bo})},La=function(bo){Ja(!1),yr==null||yr({key:gn,domEvent:bo})},ua=re.useMemo(function(){return Ri||(Gn!=="inline"?go||bi([wr],gn):!1)},[Gn,Ri,wr,go,gn,bi]),Oo=Pr(zi.length),ba=function(bo){Ji||(Mr==null||Mr({key:gn,domEvent:bo}),Gn==="inline"&&vi(gn,!Vi))},Ki=zt(function(so){lr==null||lr(pn(so)),qr(so)}),Ia=function(bo){Gn!=="inline"&&vi(gn,bo)},to=function(){si(gn)},Ra=Qt&&"".concat(Qt,"-popup"),Fa=re.createElement("div",(0,Ue.Z)({role:"menuitem",style:Oo,className:"".concat(ti,"-title"),tabIndex:Ji?null:-1,ref:na,title:typeof on=="string"?on:null,"data-menu-id":Jn&&Qt?null:Qt,"aria-expanded":Xi,"aria-haspopup":!0,"aria-controls":Ra,"aria-disabled":Ji,onClick:ba,onFocus:to},wi),on,re.createElement(nn,{icon:Gn!=="horizontal"?pa:void 0,props:(0,x.Z)((0,x.Z)({},It),{},{isOpen:Xi,isSubMenu:!0})},re.createElement("i",{className:"".concat(ti,"-arrow")}))),ra=re.useRef(Gn);if(Gn!=="inline"&&zi.length>1?ra.current="vertical":ra.current=Gn,!Jn){var no=ra.current;Fa=re.createElement(Ea,{mode:no,prefixCls:ti,visible:!Zn&&Xi&&Gn!=="inline",popupClassName:Xn,popupOffset:vr,popupStyle:rr,popup:re.createElement(Fe,{mode:no==="horizontal"?"vertical":no},re.createElement(aa,{id:Ra,ref:za},Pn)),disabled:Ji,onVisibleChange:Ia},Fa)}var yo=re.createElement(Pt.Item,(0,Ue.Z)({role:"none"},un,{component:"li",style:Bt,className:ae()(ti,"".concat(ti,"-").concat(Gn),Ft,(At={},(0,ot.Z)(At,"".concat(ti,"-open"),Xi),(0,ot.Z)(At,"".concat(ti,"-active"),ua),(0,ot.Z)(At,"".concat(ti,"-selected"),Ii),(0,ot.Z)(At,"".concat(ti,"-disabled"),Ji),At)),onMouseEnter:Za,onMouseLeave:La}),Fa,!Jn&&re.createElement(Na,{id:Ra,open:Xi,keyPath:zi},Pn));return Qr&&(yo=Qr(yo,It,{selected:Ii,active:ua,open:Xi,disabled:Ji})),re.createElement(Fe,{onItemClick:Ki,mode:Gn==="horizontal"?"vertical":Gn,itemIcon:Ta,expandIcon:pa},yo)};function Kn(Ct){var It=Ct.eventKey,At=Ct.children,Bt=kt(It),Ft=qi(At,Bt),on=gt();re.useEffect(function(){if(on)return on.registerPath(It,Bt),function(){on.unregisterPath(It,Bt)}},[Bt]);var gn;return on?gn=Ft:gn=re.createElement(dn,Ct,Ft),re.createElement(Kt.Provider,{value:Bt},gn)}var or=ve(71002),xr=["className","title","eventKey","children"],Wr=["children"],oi=function(It){var At=It.className,Bt=It.title,Ft=It.eventKey,on=It.children,gn=(0,ne.Z)(It,xr),Ln=re.useContext(Ee),qn=Ln.prefixCls,Zn="".concat(qn,"-item-group");return re.createElement("li",(0,Ue.Z)({role:"presentation"},gn,{onClick:function(Bn){return Bn.stopPropagation()},className:ae()(Zn,At)}),re.createElement("div",{role:"presentation",className:"".concat(Zn,"-title"),title:typeof Bt=="string"?Bt:void 0},Bt),re.createElement("ul",{role:"group",className:"".concat(Zn,"-list")},on))};function pi(Ct){var It=Ct.children,At=(0,ne.Z)(Ct,Wr),Bt=kt(At.eventKey),Ft=qi(It,Bt),on=gt();return on?Ft:re.createElement(oi,(0,Ir.Z)(At,["warnKey"]),Ft)}function Ei(Ct){var It=Ct.className,At=Ct.style,Bt=re.useContext(Ee),Ft=Bt.prefixCls,on=gt();return on?null:re.createElement("li",{role:"separator",className:ae()("".concat(Ft,"-item-divider"),It),style:At})}var mi=["label","children","key","type"];function Li(Ct){return(Ct||[]).map(function(It,At){if(It&&(0,or.Z)(It)==="object"){var Bt=It,Ft=Bt.label,on=Bt.children,gn=Bt.key,Ln=Bt.type,qn=(0,ne.Z)(Bt,mi),Zn=gn!=null?gn:"tmp-".concat(At);return on||Ln==="group"?Ln==="group"?re.createElement(pi,(0,Ue.Z)({key:Zn},qn,{title:Ft}),Li(on)):re.createElement(Kn,(0,Ue.Z)({key:Zn},qn,{title:Ft}),Li(on)):Ln==="divider"?re.createElement(Ei,(0,Ue.Z)({key:Zn},qn)):re.createElement(Nr,(0,Ue.Z)({key:Zn},qn),Ft)}return null}).filter(function(It){return It})}function ea(Ct,It,At){var Bt=Ct;return It&&(Bt=Li(It)),qi(Bt,At)}var ni=["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"],Mn=[],hn=re.forwardRef(function(Ct,It){var At,Bt,Ft=Ct,on=Ft.prefixCls,gn=on===void 0?"rc-menu":on,Ln=Ft.rootClassName,qn=Ft.style,Zn=Ft.className,Pn=Ft.tabIndex,Bn=Pn===void 0?0:Pn,Sn=Ft.items,Xn=Ft.children,vr=Ft.direction,rr=Ft.id,lr=Ft.mode,fr=lr===void 0?"vertical":lr,yr=Ft.inlineCollapsed,Mr=Ft.disabled,Ot=Ft.disabledOverflow,Rt=Ft.subMenuOpenDelay,un=Rt===void 0?.1:Rt,Qt=Ft.subMenuCloseDelay,_n=Qt===void 0?.1:Qt,Wn=Ft.forceSubMenuRender,Gn=Ft.defaultOpenKeys,gr=Ft.openKeys,cr=Ft.activeKey,Jn=Ft.defaultActiveFirst,wr=Ft.selectable,_r=wr===void 0?!0:wr,Vr=Ft.multiple,Tr=Vr===void 0?!1:Vr,qr=Ft.defaultSelectedKeys,vi=Ft.selectedKeys,si=Ft.onSelect,gi=Ft.onDeselect,Qr=Ft.inlineIndent,ui=Qr===void 0?24:Qr,bi=Ft.motion,zi=Ft.defaultMotions,ti=Ft.triggerSubMenuAction,Ji=ti===void 0?"hover":ti,na=Ft.builtinPlacements,za=Ft.itemIcon,Ta=Ft.expandIcon,pa=Ft.overflowedIndicator,Vi=pa===void 0?"...":pa,Xi=Ft.overflowedIndicatorPopupClassName,Ii=Ft.getPopupContainer,ma=Ft.onClick,Ri=Ft.onOpenChange,wi=Ft.onKeyDown,sa=Ft.openAnimation,Ma=Ft.openTransitionName,go=Ft._internalRenderMenuItem,ho=Ft._internalRenderSubMenuItem,Ja=(0,ne.Z)(Ft,ni),Za=re.useMemo(function(){return ea(Xn,Sn,Mn)},[Xn,Sn]),La=re.useState(!1),ua=(0,pe.Z)(La,2),Oo=ua[0],ba=ua[1],Ki=re.useRef(),Ia=wn(rr),to=vr==="rtl",Ra=(0,Lt.Z)(Gn,{value:gr,postState:function(Co){return Co||Mn}}),Fa=(0,pe.Z)(Ra,2),ra=Fa[0],no=Fa[1],yo=function(Co){var qo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ws(){no(Co),Ri==null||Ri(Co)}qo?(0,Me.flushSync)(ws):ws()},so=re.useState(ra),bo=(0,pe.Z)(so,2),Mo=bo[0],Xo=bo[1],lo=re.useRef(!1),So=re.useMemo(function(){return(fr==="inline"||fr==="vertical")&&yr?["vertical",yr]:[fr,!1]},[fr,yr]),os=(0,pe.Z)(So,2),rs=os[0],cs=os[1],Lo=rs==="inline",xo=re.useState(rs),ya=(0,pe.Z)(xo,2),Da=ya[0],ro=ya[1],po=re.useState(cs),Wo=(0,pe.Z)(po,2),us=Wo[0],xs=Wo[1];re.useEffect(function(){ro(rs),xs(cs),lo.current&&(Lo?no(Mo):yo(Mn))},[rs,cs]);var Js=re.useState(0),Fs=(0,pe.Z)(Js,2),ds=Fs[0],$s=Fs[1],Ga=ds>=Za.length-1||Da!=="horizontal"||Ot;re.useEffect(function(){Lo&&Xo(ra)},[ra]),re.useEffect(function(){return lo.current=!0,function(){lo.current=!1}},[]);var Aa=An(),fo=Aa.registerPath,ko=Aa.unregisterPath,fs=Aa.refreshOverflowKeys,ss=Aa.isSubPathKey,jl=Aa.getKeyPath,vl=Aa.getKeys,Sl=Aa.getSubPathKeys,Xa=re.useMemo(function(){return{registerPath:fo,unregisterPath:ko}},[fo,ko]),fi=re.useMemo(function(){return{isSubPathKey:ss}},[ss]);re.useEffect(function(){fs(Ga?Mn:Za.slice(ds+1).map(function(is){return is.key}))},[ds,Ga]);var fa=(0,Lt.Z)(cr||Jn&&((At=Za[0])===null||At===void 0?void 0:At.key),{value:cr}),ha=(0,pe.Z)(fa,2),ka=ha[0],Zo=ha[1],Yo=zt(function(is){Zo(is)}),il=zt(function(){Zo(void 0)});(0,re.useImperativeHandle)(It,function(){return{list:Ki.current,focus:function(Co){var qo,ws=ka!=null?ka:(qo=Za.find(function(zl){return!zl.props.disabled}))===null||qo===void 0?void 0:qo.key;if(ws){var Ds,ol,Ps;(Ds=Ki.current)===null||Ds===void 0||(ol=Ds.querySelector("li[data-menu-id='".concat(de(Ia,ws),"']")))===null||ol===void 0||(Ps=ol.focus)===null||Ps===void 0||Ps.call(ol,Co)}}}});var dl=(0,Lt.Z)(qr||[],{value:vi,postState:function(Co){return Array.isArray(Co)?Co:Co==null?Mn:[Co]}}),Cl=(0,pe.Z)(dl,2),mo=Cl[0],Qs=Cl[1],Ll=function(Co){if(_r){var qo=Co.key,ws=mo.includes(qo),Ds;Tr?ws?Ds=mo.filter(function(Ps){return Ps!==qo}):Ds=[].concat((0,ke.Z)(mo),[qo]):Ds=[qo],Qs(Ds);var ol=(0,x.Z)((0,x.Z)({},Co),{},{selectedKeys:Ds});ws?gi==null||gi(ol):si==null||si(ol)}!Tr&&ra.length&&Da!=="inline"&&yo(Mn)},Sc=zt(function(is){ma==null||ma(pn(is)),Ll(is)}),Gl=zt(function(is,Co){var qo=ra.filter(function(Ds){return Ds!==is});if(Co)qo.push(is);else if(Da!=="inline"){var ws=Sl(is);qo=qo.filter(function(Ds){return!ws.has(Ds)})}(0,Ze.Z)(ra,qo,!0)||yo(qo,!0)}),El=function(Co,qo){var ws=qo!=null?qo:!ra.includes(Co);Gl(Co,ws)},al=Nn(Da,ka,to,Ia,Ki,vl,jl,Zo,El,wi);re.useEffect(function(){ba(!0)},[]);var ec=re.useMemo(function(){return{_internalRenderMenuItem:go,_internalRenderSubMenuItem:ho}},[go,ho]),fl=Da!=="horizontal"||Ot?Za:Za.map(function(is,Co){return re.createElement(Fe,{key:is.key,overflowDisabled:Co>ds},is)}),tc=re.createElement(Pt,(0,Ue.Z)({id:rr,ref:Ki,prefixCls:"".concat(gn,"-overflow"),component:"ul",itemComponent:Nr,className:ae()(gn,"".concat(gn,"-root"),"".concat(gn,"-").concat(Da),Zn,(Bt={},(0,ot.Z)(Bt,"".concat(gn,"-inline-collapsed"),us),(0,ot.Z)(Bt,"".concat(gn,"-rtl"),to),Bt),Ln),dir:vr,style:qn,role:"menu",tabIndex:Bn,data:fl,renderRawItem:function(Co){return Co},renderRawRest:function(Co){var qo=Co.length,ws=qo?Za.slice(-qo):null;return re.createElement(Kn,{eventKey:rn,title:Vi,disabled:Ga,internalPopupClose:qo===0,popupClassName:Xi},ws)},maxCount:Da!=="horizontal"||Ot?Pt.INVALIDATE:Pt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Co){$s(Co)},onKeyDown:al},Ja));return re.createElement(jt.Provider,{value:ec},re.createElement(Ke.Provider,{value:Ia},re.createElement(Fe,{prefixCls:gn,rootClassName:Ln,mode:Da,openKeys:ra,rtl:to,disabled:Mr,motion:Oo?bi:null,defaultMotions:Oo?zi:null,activeKey:ka,onActive:Yo,onInactive:il,selectedKeys:mo,inlineIndent:ui,subMenuOpenDelay:un,subMenuCloseDelay:_n,forceSubMenuRender:Wn,builtinPlacements:na,triggerSubMenuAction:Ji,getPopupContainer:Ii,itemIcon:za,expandIcon:Ta,onItemClick:Sc,onOpenChange:Gl},re.createElement(St.Provider,{value:fi},tc),re.createElement("div",{style:{display:"none"},"aria-hidden":!0},re.createElement(it.Provider,{value:Xa},Za)))))}),On=hn,Je=On;Je.Item=Nr,Je.SubMenu=Kn,Je.ItemGroup=pi,Je.Divider=Ei;var vt=Je},81626:function(xn,Zt){"use strict";Zt.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},46762:function(xn,Zt){"use strict";var ve;var Ue=Symbol.for("react.element"),ot=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),z=Symbol.for("react.context"),ae=Symbol.for("react.server_context"),re=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),fe;fe=Symbol.for("react.module.reference");function he(oe){if(typeof oe=="object"&&oe!==null){var Se=oe.$$typeof;switch(Se){case Ue:switch(oe=oe.type,oe){case x:case pe:case ke:case se:case me:return oe;default:switch(oe=oe&&oe.$$typeof,oe){case ae:case z:case re:case le:case ie:case ne:return oe;default:return Se}}case ot:return Se}}}ve=z,ve=ne,ve=Ue,ve=re,ve=x,ve=le,ve=ie,ve=ot,ve=pe,ve=ke,ve=se,ve=me,ve=function(){return!1},ve=function(){return!1},ve=function(oe){return he(oe)===z},ve=function(oe){return he(oe)===ne},ve=function(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===Ue},ve=function(oe){return he(oe)===re},Zt.isFragment=function(oe){return he(oe)===x},ve=function(oe){return he(oe)===le},ve=function(oe){return he(oe)===ie},ve=function(oe){return he(oe)===ot},ve=function(oe){return he(oe)===pe},ve=function(oe){return he(oe)===ke},ve=function(oe){return he(oe)===se},ve=function(oe){return he(oe)===me},ve=function(oe){return typeof oe=="string"||typeof oe=="function"||oe===x||oe===pe||oe===ke||oe===se||oe===me||oe===ue||typeof oe=="object"&&oe!==null&&(oe.$$typeof===le||oe.$$typeof===ie||oe.$$typeof===ne||oe.$$typeof===z||oe.$$typeof===re||oe.$$typeof===fe||oe.getModuleId!==void 0)},ve=he},35110:function(xn,Zt,ve){"use strict";xn.exports=ve(46762)},66680:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ot}});var Ue=ve(67294);function ot(x){var ke=Ue.useRef();ke.current=x;var pe=Ue.useCallback(function(){for(var ne,z=arguments.length,ae=new Array(z),re=0;re<z;re++)ae[re]=arguments[re];return(ne=ke.current)===null||ne===void 0?void 0:ne.call.apply(ne,[ke].concat(ae))},[]);return pe}},21770:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ne}});var Ue=ve(97685),ot=ve(66680),x=ve(8410),ke=ve(63896);function pe(z){return z!==void 0}function ne(z,ae){var re=ae||{},se=re.defaultValue,me=re.value,ie=re.onChange,le=re.postState,ue=(0,ke.Z)(function(){return pe(me)?me:pe(se)?typeof se=="function"?se():se:typeof z=="function"?z():z}),fe=(0,Ue.Z)(ue,2),he=fe[0],oe=fe[1],Se=me!==void 0?me:he,Ce=le?le(Se):Se,ye=(0,ot.Z)(ie),_e=(0,ke.Z)([Se]),Me=(0,Ue.Z)(_e,2),we=Me[0],Ne=Me[1];(0,x.o)(function(){var De=we[0];he!==De&&ye(he,De)},[we]),(0,x.o)(function(){pe(me)||oe(me)},[me]);var Ae=(0,ot.Z)(function(De,Ie){oe(De,Ie),Ne([Se],Ie)});return[Ce,Ae]}},91881:function(xn,Zt,ve){"use strict";var Ue=ve(71002),ot=ve(80334);function x(ke,pe){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,z=new Set;function ae(re,se){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ie=z.has(re);if((0,ot.ZP)(!ie,"Warning: There may be circular references"),ie)return!1;if(re===se)return!0;if(ne&&me>1)return!1;z.add(re);var le=me+1;if(Array.isArray(re)){if(!Array.isArray(se)||re.length!==se.length)return!1;for(var ue=0;ue<re.length;ue++)if(!ae(re[ue],se[ue],le))return!1;return!0}if(re&&se&&(0,Ue.Z)(re)==="object"&&(0,Ue.Z)(se)==="object"){var fe=Object.keys(re);return fe.length!==Object.keys(se).length?!1:fe.every(function(he){return ae(re[he],se[he],le)})}return!1}return ae(ke,pe)}Zt.Z=x},98423:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ot}});var Ue=ve(1413);function ot(x,ke){var pe=(0,Ue.Z)({},x);return Array.isArray(ke)&&ke.forEach(function(ne){delete pe[ne]}),pe}},64217:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ae}});var Ue=ve(1413),ot=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ke="".concat(ot," ").concat(x).split(/[\s\n]+/),pe="aria-",ne="data-";function z(re,se){return re.indexOf(se)===0}function ae(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,me;se===!1?me={aria:!0,data:!0,attr:!0}:se===!0?me={aria:!0}:me=(0,Ue.Z)({},se);var ie={};return Object.keys(re).forEach(function(le){(me.aria&&(le==="role"||z(le,pe))||me.data&&z(le,ne)||me.attr&&ke.includes(le))&&(ie[le]=re[le])}),ie}},73299:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return xi}});var Ue=ve(87462),ot=ve(1413),x=ve(71002),ke=ve(97685),pe=ve(4942),ne=ve(45987),z=ve(67294),ae=ve(73935),re=ve(94184),se=ve.n(re),me=ve(48555),ie=z.forwardRef(function(cn,ir){var sr=cn.height,Yn=cn.offsetY,Rr=cn.offsetX,Nn=cn.children,Hn=cn.prefixCls,jn=cn.onInnerResize,Gt=cn.innerProps,Xt=cn.rtl,rn=cn.extra,An={},zt={display:"flex",flexDirection:"column"};if(Yn!==void 0){var tn;An={height:sr,position:"relative",overflow:"hidden"},zt=(0,ot.Z)((0,ot.Z)({},zt),{},(tn={transform:"translateY(".concat(Yn,"px)")},(0,pe.Z)(tn,Xt?"marginRight":"marginLeft",-Rr),(0,pe.Z)(tn,"position","absolute"),(0,pe.Z)(tn,"left",0),(0,pe.Z)(tn,"right",0),(0,pe.Z)(tn,"top",0),tn))}return z.createElement("div",{style:An},z.createElement(me.Z,{onResize:function(wn){var zn=wn.offsetHeight;zn&&jn&&jn()}},z.createElement("div",(0,Ue.Z)({style:zt,className:se()((0,pe.Z)({},"".concat(Hn,"-holder-inner"),Hn)),ref:ir},Gt),Nn,rn)))});ie.displayName="Filler";var le=ie,ue=function(ir){return+setTimeout(ir,16)},fe=function(ir){return clearTimeout(ir)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ue=function(ir){return window.requestAnimationFrame(ir)},fe=function(ir){return window.cancelAnimationFrame(ir)});var he=0,oe=new Map;function Se(cn){oe.delete(cn)}var Ce=function(ir){var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;he+=1;var Yn=he;function Rr(Nn){if(Nn===0)Se(Yn),ir();else{var Hn=ue(function(){Rr(Nn-1)});oe.set(Yn,Hn)}}return Rr(sr),Yn};Ce.cancel=function(cn){var ir=oe.get(cn);return Se(ir),fe(ir)};var ye=Ce;function _e(cn,ir){var sr="touches"in cn?cn.touches[0]:cn;return sr[ir?"pageX":"pageY"]}var Me=z.forwardRef(function(cn,ir){var sr,Yn=cn.prefixCls,Rr=cn.rtl,Nn=cn.scrollOffset,Hn=cn.scrollRange,jn=cn.onStartMove,Gt=cn.onStopMove,Xt=cn.onScroll,rn=cn.horizontal,An=cn.spinSize,zt=cn.containerSize,tn=cn.style,bn=cn.thumbStyle,wn=z.useState(!1),zn=(0,ke.Z)(wn,2),Un=zn[0],kr=zn[1],Zr=z.useState(null),Ir=(0,ke.Z)(Zr,2),Er=Ir[0],Br=Ir[1],Pr=z.useState(null),nn=(0,ke.Z)(Pr,2),Jt=nn[0],pn=nn[1],Qn=!Rr,hr=z.useRef(),Fn=z.useRef(),Vn=z.useState(!1),er=(0,ke.Z)(Vn,2),Sr=er[0],Nr=er[1],In=z.useRef(),Gr=function(){clearTimeout(In.current),Nr(!0),In.current=setTimeout(function(){Nr(!1)},3e3)},ei=Hn-zt||0,aa=zt-An||0,ca=ei>0,qi=z.useMemo(function(){if(Nn===0||ei===0)return 0;var Va=Nn/ei;return Va*aa},[Nn,ei,aa]),Oi=function(Na){Na.stopPropagation(),Na.preventDefault()},oa=z.useRef({top:qi,dragging:Un,pageY:Er,startTop:Jt});oa.current={top:qi,dragging:Un,pageY:Er,startTop:Jt};var Bi=function(Na){kr(!0),Br(_e(Na,rn)),pn(oa.current.top),jn(),Na.stopPropagation(),Na.preventDefault()};z.useEffect(function(){var Va=function(dn){dn.preventDefault()},Na=hr.current,Pi=Fn.current;return Na.addEventListener("touchstart",Va),Pi.addEventListener("touchstart",Bi),function(){Na.removeEventListener("touchstart",Va),Pi.removeEventListener("touchstart",Bi)}},[]);var Di=z.useRef();Di.current=ei;var _a=z.useRef();_a.current=aa,z.useEffect(function(){if(Un){var Va,Na=function(dn){var Kn=oa.current,or=Kn.dragging,xr=Kn.pageY,Wr=Kn.startTop;if(ye.cancel(Va),or){var oi=_e(dn,rn)-xr,pi=Wr;!Qn&&rn?pi-=oi:pi+=oi;var Ei=Di.current,mi=_a.current,Li=mi?pi/mi:0,ea=Math.ceil(Li*Ei);ea=Math.max(ea,0),ea=Math.min(ea,Ei),Va=ye(function(){Xt(ea,rn)})}},Pi=function(){kr(!1),Gt()};return window.addEventListener("mousemove",Na),window.addEventListener("touchmove",Na),window.addEventListener("mouseup",Pi),window.addEventListener("touchend",Pi),function(){window.removeEventListener("mousemove",Na),window.removeEventListener("touchmove",Na),window.removeEventListener("mouseup",Pi),window.removeEventListener("touchend",Pi),ye.cancel(Va)}}},[Un]),z.useEffect(function(){Gr()},[Nn]),z.useImperativeHandle(ir,function(){return{delayHidden:Gr}});var _i="".concat(Yn,"-scrollbar"),ta={position:"absolute",visibility:Sr&&ca?null:"hidden"},Ea={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return rn?(ta.height=8,ta.left=0,ta.right=0,ta.bottom=0,Ea.height="100%",Ea.width=An,Qn?Ea.left=qi:Ea.right=qi):(ta.width=8,ta.top=0,ta.bottom=0,Qn?ta.right=0:ta.left=0,Ea.width="100%",Ea.height=An,Ea.top=qi),z.createElement("div",{ref:hr,className:se()(_i,(sr={},(0,pe.Z)(sr,"".concat(_i,"-horizontal"),rn),(0,pe.Z)(sr,"".concat(_i,"-vertical"),!rn),(0,pe.Z)(sr,"".concat(_i,"-visible"),Sr),sr)),style:(0,ot.Z)((0,ot.Z)({},ta),tn),onMouseDown:Oi,onMouseMove:Gr},z.createElement("div",{ref:Fn,className:se()("".concat(_i,"-thumb"),(0,pe.Z)({},"".concat(_i,"-thumb-moving"),Un)),style:(0,ot.Z)((0,ot.Z)({},Ea),bn),onMouseDown:Bi}))}),we=Me;function Ne(cn){var ir=cn.children,sr=cn.setRef,Yn=z.useCallback(function(Rr){sr(Rr)},[]);return z.cloneElement(ir,{ref:Yn})}function Ae(cn,ir,sr,Yn,Rr,Nn,Hn){var jn=Hn.getKey;return cn.slice(ir,sr+1).map(function(Gt,Xt){var rn=ir+Xt,An=Nn(Gt,rn,{style:{width:Yn}}),zt=jn(Gt);return z.createElement(Ne,{key:zt,setRef:function(bn){return Rr(Gt,bn)}},An)})}function De(cn){return cn instanceof HTMLElement||cn instanceof SVGElement}function Ie(cn){return De(cn)?cn:cn instanceof z.Component?ae.findDOMNode(cn):null}var Pe=ve(15671),Le=ve(43144),We=function(){function cn(){(0,Pe.Z)(this,cn),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Le.Z)(cn,[{key:"set",value:function(sr,Yn){this.maps[sr]=Yn,this.id+=1}},{key:"get",value:function(sr){return this.maps[sr]}}]),cn}(),Be=We;function He(cn,ir,sr){var Yn=z.useState(0),Rr=(0,ke.Z)(Yn,2),Nn=Rr[0],Hn=Rr[1],jn=(0,z.useRef)(new Map),Gt=(0,z.useRef)(new Be),Xt=(0,z.useRef)();function rn(){ye.cancel(Xt.current)}function An(){var tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;rn();var bn=function(){jn.current.forEach(function(zn,Un){if(zn&&zn.offsetParent){var kr=Ie(zn),Zr=kr.offsetHeight;Gt.current.get(Un)!==Zr&&Gt.current.set(Un,kr.offsetHeight)}}),Hn(function(zn){return zn+1})};tn?bn():Xt.current=ye(bn)}function zt(tn,bn){var wn=cn(tn),zn=jn.current.get(wn);bn?(jn.current.set(wn,bn),An()):jn.current.delete(wn),!zn!=!bn&&(bn?ir==null||ir(tn):sr==null||sr(tn))}return(0,z.useEffect)(function(){return rn},[]),[zt,An,Gt.current,Nn]}function Ye(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var et=Ye()?z.useLayoutEffect:z.useEffect,st=function(ir,sr){var Yn=z.useRef(!0);et(function(){return ir(Yn.current)},sr),et(function(){return Yn.current=!1,function(){Yn.current=!0}},[])},yt=function(ir,sr){st(function(Yn){if(!Yn)return ir()},sr)},Ve=st;function Qe(cn){var ir=z.useRef();ir.current=cn;var sr=z.useCallback(function(){for(var Yn,Rr=arguments.length,Nn=new Array(Rr),Hn=0;Hn<Rr;Hn++)Nn[Hn]=arguments[Hn];return(Yn=ir.current)===null||Yn===void 0?void 0:Yn.call.apply(Yn,[ir].concat(Nn))},[]);return sr}function pt(cn){var ir=React.useRef(!1),sr=React.useState(cn),Yn=_slicedToArray(sr,2),Rr=Yn[0],Nn=Yn[1];React.useEffect(function(){return ir.current=!1,function(){ir.current=!0}},[]);function Hn(jn,Gt){Gt&&ir.current||Nn(jn)}return[Rr,Hn]}function mt(cn){return cn!==void 0}function ft(cn,ir){var sr=ir||{},Yn=sr.defaultValue,Rr=sr.value,Nn=sr.onChange,Hn=sr.postState,jn=useState(function(){return mt(Rr)?Rr:mt(Yn)?typeof Yn=="function"?Yn():Yn:typeof cn=="function"?cn():cn}),Gt=_slicedToArray(jn,2),Xt=Gt[0],rn=Gt[1],An=Rr!==void 0?Rr:Xt,zt=Hn?Hn(An):An,tn=useEvent(Nn),bn=useState([An]),wn=_slicedToArray(bn,2),zn=wn[0],Un=wn[1];useLayoutUpdateEffect(function(){var Zr=zn[0];Xt!==Zr&&tn(Xt,Zr)},[zn]),useLayoutUpdateEffect(function(){mt(Rr)||rn(Rr)},[Rr]);var kr=useEvent(function(Zr,Ir){rn(Zr,Ir),Un([An],Ir)});return[zt,kr]}var nt=ve(31461);function tt(cn,ir,sr){var Yn=React.useRef({});return(!("value"in Yn.current)||sr(Yn.current.condition,ir))&&(Yn.current.value=cn(),Yn.current.condition=ir),Yn.current.value}function rt(cn,ir){typeof cn=="function"?cn(ir):_typeof(cn)==="object"&&cn&&"current"in cn&&(cn.current=ir)}function Et(){for(var cn=arguments.length,ir=new Array(cn),sr=0;sr<cn;sr++)ir[sr]=arguments[sr];var Yn=ir.filter(function(Rr){return Rr});return Yn.length<=1?Yn[0]:function(Rr){ir.forEach(function(Nn){rt(Nn,Rr)})}}function bt(){for(var cn=arguments.length,ir=new Array(cn),sr=0;sr<cn;sr++)ir[sr]=arguments[sr];return useMemo(function(){return Et.apply(void 0,ir)},ir,function(Yn,Rr){return Yn.length!==Rr.length||Yn.every(function(Nn,Hn){return Nn!==Rr[Hn]})})}function Pt(cn){var ir,sr,Yn=isMemo(cn)?cn.type.type:cn.type;return!(typeof Yn=="function"&&!((ir=Yn.prototype)!==null&&ir!==void 0&&ir.render)||typeof cn=="function"&&!((sr=cn.prototype)!==null&&sr!==void 0&&sr.render))}function Lt(cn){return!isValidElement(cn)||isFragment(cn)?!1:Pt(cn)}function dt(cn,ir,sr,Yn){if(!ir.length)return sr;var Rr=_toArray(ir),Nn=Rr[0],Hn=Rr.slice(1),jn;return!cn&&typeof Nn=="number"?jn=[]:Array.isArray(cn)?jn=_toConsumableArray(cn):jn=_objectSpread({},cn),Yn&&sr===void 0&&Hn.length===1?delete jn[Nn][Hn[0]]:jn[Nn]=dt(jn[Nn],Hn,sr,Yn),jn}function Ze(cn,ir,sr){var Yn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ir.length&&Yn&&sr===void 0&&!get(cn,ir.slice(0,-1))?cn:dt(cn,ir,sr,Yn)}function Ke(cn){return _typeof(cn)==="object"&&cn!==null&&Object.getPrototypeOf(cn)===Object.prototype}function de(cn){return Array.isArray(cn)?[]:{}}var xe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ze(){for(var cn=arguments.length,ir=new Array(cn),sr=0;sr<cn;sr++)ir[sr]=arguments[sr];var Yn=de(ir[0]);return ir.forEach(function(Rr){function Nn(Hn,jn){var Gt=new Set(jn),Xt=get(Rr,Hn),rn=Array.isArray(Xt);if(rn||Ke(Xt)){if(!Gt.has(Xt)){Gt.add(Xt);var An=get(Yn,Hn);rn?Yn=Ze(Yn,Hn,[]):(!An||_typeof(An)!=="object")&&(Yn=Ze(Yn,Hn,de(Xt))),xe(Xt).forEach(function(zt){Nn([].concat(_toConsumableArray(Hn),[zt]),Gt)})}}else Yn=Ze(Yn,Hn,Xt)}Nn([])}),Yn}var $e={},Ee=[],Re=function(ir){Ee.push(ir)};function Fe(cn,ir){if(0)var sr}function Ge(cn,ir){if(0)var sr}function it(){$e={}}function gt(cn,ir,sr){!ir&&!$e[sr]&&(cn(!1,sr),$e[sr]=!0)}function Kt(cn,ir){gt(Fe,cn,ir)}function kt(cn,ir){gt(Ge,cn,ir)}Kt.preMessage=Re,Kt.resetWarned=it,Kt.noteOnce=kt;var St=null,Wt=10;function jt(cn,ir,sr,Yn,Rr,Nn,Hn,jn){var Gt=z.useRef(),Xt=z.useState(null),rn=(0,ke.Z)(Xt,2),An=rn[0],zt=rn[1];return Ve(function(){if(An&&An.times<Wt){if(!cn.current){zt(function(Gr){return(0,ot.Z)({},Gr)});return}Nn();var tn=An.targetAlign,bn=An.originAlign,wn=An.index,zn=An.offset,Un=cn.current.clientHeight,kr=!1,Zr=tn,Ir=null;if(Un){for(var Er=tn||bn,Br=0,Pr=0,nn=0,Jt=Math.min(ir.length-1,wn),pn=0;pn<=Jt;pn+=1){var Qn=Rr(ir[pn]);Pr=Br;var hr=sr.get(Qn);nn=Pr+(hr===void 0?Yn:hr),Br=nn}for(var Fn=Er==="top"?zn:Un-zn,Vn=Jt;Vn>=0;Vn-=1){var er=Rr(ir[Vn]),Sr=sr.get(er);if(Sr===void 0){kr=!0;break}if(Fn-=Sr,Fn<=0)break}switch(Er){case"top":Ir=Pr-zn;break;case"bottom":Ir=nn-Un+zn;break;default:{var Nr=cn.current.scrollTop,In=Nr+Un;Pr<Nr?Zr="top":nn>In&&(Zr="bottom")}}Ir!==null&&Hn(Ir),Ir!==An.lastTop&&(kr=!0)}kr&&zt(function(Gr){return(0,ot.Z)((0,ot.Z)({},Gr),{},{times:Gr.times+1,targetAlign:Zr,lastTop:Ir})})}},[An,cn.current]),function(tn){if(tn==null){jn();return}if(ye.cancel(Gt.current),typeof tn=="number")Hn(tn);else if(tn&&(0,x.Z)(tn)==="object"){var bn,wn=tn.align;"index"in tn?bn=tn.index:bn=ir.findIndex(function(kr){return Rr(kr)===tn.key});var zn=tn.offset,Un=zn===void 0?0:zn;zt({times:0,index:bn,offset:Un,originAlign:wn})}}}function Vt(cn,ir,sr,Yn){var Rr=sr-cn,Nn=ir-sr,Hn=Math.min(Rr,Nn)*2;if(Yn<=Hn){var jn=Math.floor(Yn/2);return Yn%2?sr+jn+1:sr-jn}return Rr>Nn?sr-(Yn-Nn):sr+(Yn-Rr)}function _t(cn,ir,sr){var Yn=cn.length,Rr=ir.length,Nn,Hn;if(Yn===0&&Rr===0)return null;Yn<Rr?(Nn=cn,Hn=ir):(Nn=ir,Hn=cn);var jn={__EMPTY_ITEM__:!0};function Gt(bn){return bn!==void 0?sr(bn):jn}for(var Xt=null,rn=Math.abs(Yn-Rr)!==1,An=0;An<Hn.length;An+=1){var zt=Gt(Nn[An]),tn=Gt(Hn[An]);if(zt!==tn){Xt=An,rn=rn||zt!==Gt(Hn[An+1]);break}}return Xt===null?null:{index:Xt,multiple:rn}}function sn(cn,ir,sr){var Yn=z.useState(cn),Rr=(0,ke.Z)(Yn,2),Nn=Rr[0],Hn=Rr[1],jn=z.useState(null),Gt=(0,ke.Z)(jn,2),Xt=Gt[0],rn=Gt[1];return z.useEffect(function(){var An=_t(Nn||[],cn||[],ir);(An==null?void 0:An.index)!==void 0&&(sr==null||sr(An.index),rn(cn[An.index])),Hn(cn)},[cn]),[Xt]}var Dt=(typeof navigator=="undefined"?"undefined":(0,x.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),xt=Dt,en=function(cn,ir){var sr=(0,z.useRef)(!1),Yn=(0,z.useRef)(null);function Rr(){clearTimeout(Yn.current),sr.current=!0,Yn.current=setTimeout(function(){sr.current=!1},50)}var Nn=(0,z.useRef)({top:cn,bottom:ir});return Nn.current.top=cn,Nn.current.bottom=ir,function(Hn){var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gt=Hn<0&&Nn.current.top||Hn>0&&Nn.current.bottom;return jn&&Gt?(clearTimeout(Yn.current),sr.current=!1):(!Gt||sr.current)&&Rr(),!sr.current&&Gt}};function an(cn,ir,sr,Yn,Rr){var Nn=(0,z.useRef)(0),Hn=(0,z.useRef)(null),jn=(0,z.useRef)(null),Gt=(0,z.useRef)(!1),Xt=en(ir,sr);function rn(zn,Un){ye.cancel(Hn.current),Nn.current+=Un,jn.current=Un,!Xt(Un)&&(xt||zn.preventDefault(),Hn.current=ye(function(){var kr=Gt.current?10:1;Rr(Nn.current*kr),Nn.current=0}))}function An(zn,Un){Rr(Un,!0),xt||zn.preventDefault()}var zt=(0,z.useRef)(null),tn=(0,z.useRef)(null);function bn(zn){if(cn){ye.cancel(tn.current),tn.current=ye(function(){zt.current=null},2);var Un=zn.deltaX,kr=zn.deltaY,Zr=zn.shiftKey,Ir=Un,Er=kr;(zt.current==="sx"||!zt.current&&Zr&&kr&&!Un)&&(Ir=kr,Er=0,zt.current="sx");var Br=Math.abs(Ir),Pr=Math.abs(Er);zt.current===null&&(zt.current=Yn&&Br>Pr?"x":"y"),zt.current==="y"?rn(zn,Er):An(zn,Ir)}}function wn(zn){cn&&(Gt.current=zn.detail===jn.current)}return[bn,wn]}var fn=14/15;function Tn(cn,ir,sr){var Yn=(0,z.useRef)(!1),Rr=(0,z.useRef)(0),Nn=(0,z.useRef)(null),Hn=(0,z.useRef)(null),jn,Gt=function(zt){if(Yn.current){var tn=Math.ceil(zt.touches[0].pageY),bn=Rr.current-tn;Rr.current=tn,sr(bn)&&zt.preventDefault(),clearInterval(Hn.current),Hn.current=setInterval(function(){bn*=fn,(!sr(bn,!0)||Math.abs(bn)<=.1)&&clearInterval(Hn.current)},16)}},Xt=function(){Yn.current=!1,jn()},rn=function(zt){jn(),zt.touches.length===1&&!Yn.current&&(Yn.current=!0,Rr.current=Math.ceil(zt.touches[0].pageY),Nn.current=zt.target,Nn.current.addEventListener("touchmove",Gt),Nn.current.addEventListener("touchend",Xt))};jn=function(){Nn.current&&(Nn.current.removeEventListener("touchmove",Gt),Nn.current.removeEventListener("touchend",Xt))},Ve(function(){return cn&&ir.current.addEventListener("touchstart",rn),function(){var An;(An=ir.current)===null||An===void 0||An.removeEventListener("touchstart",rn),jn(),clearInterval(Hn.current)}},[cn])}var ar=20;function pr(){var cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ir=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,sr=cn/ir*100;return isNaN(sr)&&(sr=0),sr=Math.max(sr,ar),sr=Math.min(sr,cn/2),Math.floor(sr)}function Ar(cn,ir,sr,Yn){var Rr=z.useMemo(function(){return[new Map,[]]},[cn,sr.id,Yn]),Nn=(0,ke.Z)(Rr,2),Hn=Nn[0],jn=Nn[1],Gt=function(rn){var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rn,zt=Hn.get(rn),tn=Hn.get(An);if(zt===void 0||tn===void 0)for(var bn=cn.length,wn=jn.length;wn<bn;wn+=1){var zn,Un=cn[wn],kr=ir(Un);Hn.set(kr,wn);var Zr=(zn=sr.get(kr))!==null&&zn!==void 0?zn:Yn;if(jn[wn]=(jn[wn-1]||0)+Zr,kr===rn&&(zt=wn),kr===An&&(tn=wn),zt!==void 0&&tn!==void 0)break}return{top:jn[zt-1]||0,bottom:jn[tn]}};return Gt}var Dr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],dr=[],zr={overflowY:"auto",overflowAnchor:"none"};function ai(cn,ir){var sr=cn.prefixCls,Yn=sr===void 0?"rc-virtual-list":sr,Rr=cn.className,Nn=cn.height,Hn=cn.itemHeight,jn=cn.fullHeight,Gt=jn===void 0?!0:jn,Xt=cn.style,rn=cn.data,An=cn.children,zt=cn.itemKey,tn=cn.virtual,bn=cn.direction,wn=cn.scrollWidth,zn=cn.component,Un=zn===void 0?"div":zn,kr=cn.onScroll,Zr=cn.onVirtualScroll,Ir=cn.onVisibleChange,Er=cn.innerProps,Br=cn.extraRender,Pr=cn.styles,nn=(0,ne.Z)(cn,Dr),Jt=!!(tn!==!1&&Nn&&Hn),pn=Jt&&rn&&(Hn*rn.length>Nn||!!wn),Qn=bn==="rtl",hr=se()(Yn,(0,pe.Z)({},"".concat(Yn,"-rtl"),Qn),Rr),Fn=rn||dr,Vn=(0,z.useRef)(),er=(0,z.useRef)(),Sr=(0,z.useState)(0),Nr=(0,ke.Z)(Sr,2),In=Nr[0],Gr=Nr[1],ei=(0,z.useState)(0),aa=(0,ke.Z)(ei,2),ca=aa[0],qi=aa[1],Oi=(0,z.useState)(!1),oa=(0,ke.Z)(Oi,2),Bi=oa[0],Di=oa[1],_a=function(){Di(!0)},_i=function(){Di(!1)},ta=z.useCallback(function(Jn){return typeof zt=="function"?zt(Jn):Jn==null?void 0:Jn[zt]},[zt]),Ea={getKey:ta};function Va(Jn){Gr(function(wr){var _r;typeof Jn=="function"?_r=Jn(wr):_r=Jn;var Vr=Ln(_r);return Vn.current.scrollTop=Vr,Vr})}var Na=(0,z.useRef)({start:0,end:Fn.length}),Pi=(0,z.useRef)(),yn=sn(Fn,ta),dn=(0,ke.Z)(yn,1),Kn=dn[0];Pi.current=Kn;var or=He(ta,null,null),xr=(0,ke.Z)(or,4),Wr=xr[0],oi=xr[1],pi=xr[2],Ei=xr[3],mi=z.useMemo(function(){if(!Jt)return{scrollHeight:void 0,start:0,end:Fn.length-1,offset:void 0};if(!pn){var Jn;return{scrollHeight:((Jn=er.current)===null||Jn===void 0?void 0:Jn.offsetHeight)||0,start:0,end:Fn.length-1,offset:void 0}}for(var wr=0,_r,Vr,Tr,qr=Fn.length,vi=0;vi<qr;vi+=1){var si=Fn[vi],gi=ta(si),Qr=pi.get(gi),ui=wr+(Qr===void 0?Hn:Qr);ui>=In&&_r===void 0&&(_r=vi,Vr=wr),ui>In+Nn&&Tr===void 0&&(Tr=vi),wr=ui}return _r===void 0&&(_r=0,Vr=0,Tr=Math.ceil(Nn/Hn)),Tr===void 0&&(Tr=Fn.length-1),Tr=Math.min(Tr+1,Fn.length-1),{scrollHeight:wr,start:_r,end:Tr,offset:Vr}},[pn,Jt,In,Fn,Ei,Nn]),Li=mi.scrollHeight,ea=mi.start,ni=mi.end,Mn=mi.offset;Na.current.start=ea,Na.current.end=ni;var hn=z.useState({width:0,height:Nn}),On=(0,ke.Z)(hn,2),Je=On[0],vt=On[1],Ct=function(wr){vt({width:wr.width||wr.offsetWidth,height:wr.height||wr.offsetHeight})},It=(0,z.useRef)(),At=(0,z.useRef)(),Bt=z.useMemo(function(){return pr(Je.width,wn)},[Je.width,wn]),Ft=z.useMemo(function(){return pr(Je.height,Li)},[Je.height,Li]),on=Li-Nn,gn=(0,z.useRef)(on);gn.current=on;function Ln(Jn){var wr=Jn;return Number.isNaN(gn.current)||(wr=Math.min(wr,gn.current)),wr=Math.max(wr,0),wr}var qn=In<=0,Zn=In>=on,Pn=en(qn,Zn),Bn=function(){return{x:Qn?-ca:ca,y:In}},Sn=(0,z.useRef)(Bn()),Xn=Qe(function(){if(Zr){var Jn=Bn();(Sn.current.x!==Jn.x||Sn.current.y!==Jn.y)&&(Zr(Jn),Sn.current=Jn)}});function vr(Jn,wr){var _r=Jn;wr?((0,ae.flushSync)(function(){qi(_r)}),Xn()):Va(_r)}function rr(Jn){var wr=Jn.currentTarget.scrollTop;wr!==In&&Va(wr),kr==null||kr(Jn),Xn()}var lr=function(wr){var _r=wr,Vr=wn-Je.width;return _r=Math.max(_r,0),_r=Math.min(_r,Vr),_r},fr=Qe(function(Jn,wr){wr?((0,ae.flushSync)(function(){qi(function(_r){var Vr=_r+(Qn?-Jn:Jn);return lr(Vr)})}),Xn()):Va(function(_r){var Vr=_r+Jn;return Vr})}),yr=an(Jt,qn,Zn,!!wn,fr),Mr=(0,ke.Z)(yr,2),Ot=Mr[0],Rt=Mr[1];Tn(Jt,Vn,function(Jn,wr){return Pn(Jn,wr)?!1:(Ot({preventDefault:function(){},deltaY:Jn}),!0)}),Ve(function(){function Jn(_r){Jt&&_r.preventDefault()}var wr=Vn.current;return wr.addEventListener("wheel",Ot),wr.addEventListener("DOMMouseScroll",Rt),wr.addEventListener("MozMousePixelScroll",Jn),function(){wr.removeEventListener("wheel",Ot),wr.removeEventListener("DOMMouseScroll",Rt),wr.removeEventListener("MozMousePixelScroll",Jn)}},[Jt]),Ve(function(){wn&&qi(function(Jn){return lr(Jn)})},[Je.width,wn]);var un=function(){var wr,_r;(wr=It.current)===null||wr===void 0||wr.delayHidden(),(_r=At.current)===null||_r===void 0||_r.delayHidden()},Qt=jt(Vn,Fn,pi,Hn,ta,function(){return oi(!0)},Va,un);z.useImperativeHandle(ir,function(){return{getScrollInfo:Bn,scrollTo:function(wr){function _r(Vr){return Vr&&(0,x.Z)(Vr)==="object"&&("left"in Vr||"top"in Vr)}_r(wr)?(wr.left!==void 0&&qi(lr(wr.left)),Qt(wr.top)):Qt(wr)}}}),Ve(function(){if(Ir){var Jn=Fn.slice(ea,ni+1);Ir(Jn,Fn)}},[ea,ni,Fn]);var _n=Ar(Fn,ta,pi,Hn),Wn=Br==null?void 0:Br({start:ea,end:ni,virtual:pn,offsetX:ca,offsetY:Mn,rtl:Qn,getSize:_n}),Gn=Ae(Fn,ea,ni,wn,Wr,An,Ea),gr=null;Nn&&(gr=(0,ot.Z)((0,pe.Z)({},Gt?"height":"maxHeight",Nn),zr),Jt&&(gr.overflowY="hidden",wn&&(gr.overflowX="hidden"),Bi&&(gr.pointerEvents="none")));var cr={};return Qn&&(cr.dir="rtl"),z.createElement("div",(0,Ue.Z)({style:(0,ot.Z)((0,ot.Z)({},Xt),{},{position:"relative"}),className:hr},cr,nn),z.createElement(me.Z,{onResize:Ct},z.createElement(Un,{className:"".concat(Yn,"-holder"),style:gr,ref:Vn,onScroll:rr,onMouseEnter:un},z.createElement(le,{prefixCls:Yn,height:Li,offsetX:ca,offsetY:Mn,scrollWidth:wn,onInnerResize:oi,ref:er,innerProps:Er,rtl:Qn,extra:Wn},Gn))),pn&&Li>Nn&&z.createElement(we,{ref:It,prefixCls:Yn,scrollOffset:In,scrollRange:Li,rtl:Qn,onScroll:vr,onStartMove:_a,onStopMove:_i,spinSize:Ft,containerSize:Je.height,style:Pr==null?void 0:Pr.verticalScrollBar,thumbStyle:Pr==null?void 0:Pr.verticalScrollBarThumb}),pn&&wn&&z.createElement(we,{ref:At,prefixCls:Yn,scrollOffset:ca,scrollRange:wn,rtl:Qn,onScroll:vr,onStartMove:_a,onStopMove:_i,spinSize:Bt,containerSize:Je.width,horizontal:!0,style:Pr==null?void 0:Pr.horizontalScrollBar,thumbStyle:Pr==null?void 0:Pr.horizontalScrollBarThumb}))}var ki=z.forwardRef(ai);ki.displayName="List";var Ni=ki,xi=Ni},66392:function(xn,Zt){"use strict";var ve;var Ue=Symbol.for("react.element"),ot=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),ne=Symbol.for("react.provider"),z=Symbol.for("react.context"),ae=Symbol.for("react.server_context"),re=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),fe;fe=Symbol.for("react.module.reference");function he(oe){if(typeof oe=="object"&&oe!==null){var Se=oe.$$typeof;switch(Se){case Ue:switch(oe=oe.type,oe){case x:case pe:case ke:case se:case me:return oe;default:switch(oe=oe&&oe.$$typeof,oe){case ae:case z:case re:case le:case ie:case ne:return oe;default:return Se}}case ot:return Se}}}ve=z,ve=ne,ve=Ue,ve=re,ve=x,ve=le,ve=ie,ve=ot,ve=pe,ve=ke,ve=se,ve=me,ve=function(){return!1},ve=function(){return!1},ve=function(oe){return he(oe)===z},ve=function(oe){return he(oe)===ne},ve=function(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===Ue},ve=function(oe){return he(oe)===re},ve=function(oe){return he(oe)===x},ve=function(oe){return he(oe)===le},ve=function(oe){return he(oe)===ie},ve=function(oe){return he(oe)===ot},ve=function(oe){return he(oe)===pe},ve=function(oe){return he(oe)===ke},ve=function(oe){return he(oe)===se},ve=function(oe){return he(oe)===me},ve=function(oe){return typeof oe=="string"||typeof oe=="function"||oe===x||oe===pe||oe===ke||oe===se||oe===me||oe===ue||typeof oe=="object"&&oe!==null&&(oe.$$typeof===le||oe.$$typeof===ie||oe.$$typeof===ne||oe.$$typeof===z||oe.$$typeof===re||oe.$$typeof===fe||oe.getModuleId!==void 0)},ve=he},31461:function(xn,Zt,ve){"use strict";ve(66392)},58971:function(xn,Zt,ve){var Ue=ve(62195),ot=ve(39015),x=[ve(19257)];xn.exports=Ue.createStore(ot,x)},19257:function(xn,Zt,ve){xn.exports=Ue;function Ue(){return ve(55703),{}}},55703:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(xn){return xn<10?"0"+xn:xn}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(xn){return rx_escapable.lastIndex=0,rx_escapable.test(xn)?'"'+xn.replace(rx_escapable,function(Zt){var ve=meta[Zt];return typeof ve=="string"?ve:"\\u"+("0000"+Zt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+xn+'"'}function str(xn,Zt){var ve,Ue,ot,x,ke=gap,pe,ne=Zt[xn];switch(ne&&typeof ne=="object"&&typeof ne.toJSON=="function"&&(ne=ne.toJSON(xn)),typeof rep=="function"&&(ne=rep.call(Zt,xn,ne)),typeof ne){case"string":return quote(ne);case"number":return isFinite(ne)?String(ne):"null";case"boolean":case"null":return String(ne);case"object":if(!ne)return"null";if(gap+=indent,pe=[],Object.prototype.toString.apply(ne)==="[object Array]"){for(x=ne.length,ve=0;ve<x;ve+=1)pe[ve]=str(ve,ne)||"null";return ot=pe.length===0?"[]":gap?`[
|
|
|
`+gap+pe.join(`,
|
|
|
`+gap)+`
|
|
|
`+ke+"]":"["+pe.join(",")+"]",gap=ke,ot}if(rep&&typeof rep=="object")for(x=rep.length,ve=0;ve<x;ve+=1)typeof rep[ve]=="string"&&(Ue=rep[ve],ot=str(Ue,ne),ot&&pe.push(quote(Ue)+(gap?": ":":")+ot));else for(Ue in ne)Object.prototype.hasOwnProperty.call(ne,Ue)&&(ot=str(Ue,ne),ot&&pe.push(quote(Ue)+(gap?": ":":")+ot));return ot=pe.length===0?"{}":gap?`{
|
|
|
`+gap+pe.join(`,
|
|
|
`+gap)+`
|
|
|
`+ke+"}":"{"+pe.join(",")+"}",gap=ke,ot}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(xn,Zt,ve){var Ue;if(gap="",indent="",typeof ve=="number")for(Ue=0;Ue<ve;Ue+=1)indent+=" ";else typeof ve=="string"&&(indent=ve);if(rep=Zt,Zt&&typeof Zt!="function"&&(typeof Zt!="object"||typeof Zt.length!="number"))throw new Error("JSON.stringify");return str("",{"":xn})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(xn,Zt){var ve,Ue,ot=xn[Zt];if(ot&&typeof ot=="object")for(ve in ot)Object.prototype.hasOwnProperty.call(ot,ve)&&(Ue=walk(ot,ve),Ue!==void 0?ot[ve]=Ue:delete ot[ve]);return reviver.call(xn,Zt,ot)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(xn){return"\\u"+("0000"+xn.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},62195:function(xn,Zt,ve){var Ue=ve(69078),ot=Ue.slice,x=Ue.pluck,ke=Ue.each,pe=Ue.bind,ne=Ue.create,z=Ue.isList,ae=Ue.isFunction,re=Ue.isObject;xn.exports={createStore:ie};var se={version:"2.0.12",enabled:!1,get:function(le,ue){var fe=this.storage.read(this._namespacePrefix+le);return this._deserialize(fe,ue)},set:function(le,ue){return ue===void 0?this.remove(le):(this.storage.write(this._namespacePrefix+le,this._serialize(ue)),ue)},remove:function(le){this.storage.remove(this._namespacePrefix+le)},each:function(le){var ue=this;this.storage.each(function(fe,he){le.call(ue,ue._deserialize(fe),(he||"").replace(ue._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(le){return this._namespacePrefix=="__storejs_"+le+"_"},createStore:function(){return ie.apply(this,arguments)},addPlugin:function(le){this._addPlugin(le)},namespace:function(le){return ie(this.storage,this.plugins,le)}};function me(){var le=typeof console=="undefined"?null:console;if(le){var ue=le.warn?le.warn:le.log;ue.apply(le,arguments)}}function ie(le,ue,fe){fe||(fe=""),le&&!z(le)&&(le=[le]),ue&&!z(ue)&&(ue=[ue]);var he=fe?"__storejs_"+fe+"_":"",oe=fe?new RegExp("^"+he):null,Se=/^[a-zA-Z0-9_\-]*$/;if(!Se.test(fe))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var Ce={_namespacePrefix:he,_namespaceRegexp:oe,_testStorage:function(_e){try{var Me="__storejs__test__";_e.write(Me,Me);var we=_e.read(Me)===Me;return _e.remove(Me),we}catch(Ne){return!1}},_assignPluginFnProp:function(_e,Me){var we=this[Me];this[Me]=function(){var Ae=ot(arguments,0),De=this;function Ie(){if(we)return ke(arguments,function(Le,We){Ae[We]=Le}),we.apply(De,Ae)}var Pe=[Ie].concat(Ae);return _e.apply(De,Pe)}},_serialize:function(_e){return JSON.stringify(_e)},_deserialize:function(_e,Me){if(!_e)return Me;var we="";try{we=JSON.parse(_e)}catch(Ne){we=_e}return we!==void 0?we:Me},_addStorage:function(_e){this.enabled||this._testStorage(_e)&&(this.storage=_e,this.enabled=!0)},_addPlugin:function(_e){var Me=this;if(z(_e)){ke(_e,function(Ae){Me._addPlugin(Ae)});return}var we=x(this.plugins,function(Ae){return _e===Ae});if(!we){if(this.plugins.push(_e),!ae(_e))throw new Error("Plugins must be function values that return objects");var Ne=_e.call(this);if(!re(Ne))throw new Error("Plugins must return an object of function properties");ke(Ne,function(Ae,De){if(!ae(Ae))throw new Error("Bad plugin property: "+De+" from plugin "+_e.name+". Plugins should only return functions.");Me._assignPluginFnProp(Ae,De)})}},addStorage:function(_e){me("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(_e)}},ye=ne(Ce,se,{plugins:[]});return ye.raw={},ke(ye,function(_e,Me){ae(_e)&&(ye.raw[Me]=pe(ye,_e))}),ke(le,function(_e){ye._addStorage(_e)}),ke(ue,function(_e){ye._addPlugin(_e)}),ye}},69078:function(xn,Zt,ve){var Ue=pe(),ot=ne(),x=z(),ke=typeof window!="undefined"?window:ve.g;xn.exports={assign:Ue,create:ot,trim:x,bind:ae,slice:re,each:se,map:me,pluck:ie,isList:le,isFunction:ue,isObject:fe,Global:ke};function pe(){return Object.assign?Object.assign:function(oe,Se,Ce,ye){for(var _e=1;_e<arguments.length;_e++)se(Object(arguments[_e]),function(Me,we){oe[we]=Me});return oe}}function ne(){if(Object.create)return function(Se,Ce,ye,_e){var Me=re(arguments,1);return Ue.apply(this,[Object.create(Se)].concat(Me))};{let oe=function(){};var he=oe;return function(Ce,ye,_e,Me){var we=re(arguments,1);return oe.prototype=Ce,Ue.apply(this,[new oe].concat(we))}}}function z(){return String.prototype.trim?function(oe){return String.prototype.trim.call(oe)}:function(oe){return oe.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ae(he,oe){return function(){return oe.apply(he,Array.prototype.slice.call(arguments,0))}}function re(he,oe){return Array.prototype.slice.call(he,oe||0)}function se(he,oe){ie(he,function(Se,Ce){return oe(Se,Ce),!1})}function me(he,oe){var Se=le(he)?[]:{};return ie(he,function(Ce,ye){return Se[ye]=oe(Ce,ye),!1}),Se}function ie(he,oe){if(le(he)){for(var Se=0;Se<he.length;Se++)if(oe(he[Se],Se))return he[Se]}else for(var Ce in he)if(he.hasOwnProperty(Ce)&&oe(he[Ce],Ce))return he[Ce]}function le(he){return he!=null&&typeof he!="function"&&typeof he.length=="number"}function ue(he){return he&&{}.toString.call(he)==="[object Function]"}function fe(he){return he&&{}.toString.call(he)==="[object Object]"}},39015:function(xn,Zt,ve){xn.exports=[ve(39627),ve(95347),ve(34524),ve(45580),ve(58855),ve(8728)]},45580:function(xn,Zt,ve){var Ue=ve(69078),ot=Ue.Global,x=Ue.trim;xn.exports={name:"cookieStorage",read:pe,write:z,each:ne,remove:ae,clearAll:re};var ke=ot.document;function pe(me){if(!me||!se(me))return null;var ie="(?:^|.*;\\s*)"+escape(me).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ke.cookie.replace(new RegExp(ie),"$1"))}function ne(me){for(var ie=ke.cookie.split(/; ?/g),le=ie.length-1;le>=0;le--)if(x(ie[le])){var ue=ie[le].split("="),fe=unescape(ue[0]),he=unescape(ue[1]);me(he,fe)}}function z(me,ie){me&&(ke.cookie=escape(me)+"="+escape(ie)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ae(me){!me||!se(me)||(ke.cookie=escape(me)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function re(){ne(function(me,ie){ae(ie)})}function se(me){return new RegExp("(?:^|;\\s*)"+escape(me).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ke.cookie)}},39627:function(xn,Zt,ve){var Ue=ve(69078),ot=Ue.Global;xn.exports={name:"localStorage",read:ke,write:pe,each:ne,remove:z,clearAll:ae};function x(){return ot.localStorage}function ke(re){return x().getItem(re)}function pe(re,se){return x().setItem(re,se)}function ne(re){for(var se=x().length-1;se>=0;se--){var me=x().key(se);re(ke(me),me)}}function z(re){return x().removeItem(re)}function ae(){return x().clear()}},8728:function(xn){xn.exports={name:"memoryStorage",read:ve,write:Ue,each:ot,remove:x,clearAll:ke};var Zt={};function ve(pe){return Zt[pe]}function Ue(pe,ne){Zt[pe]=ne}function ot(pe){for(var ne in Zt)Zt.hasOwnProperty(ne)&&pe(Zt[ne],ne)}function x(pe){delete Zt[pe]}function ke(pe){Zt={}}},95347:function(xn,Zt,ve){var Ue=ve(69078),ot=Ue.Global;xn.exports={name:"oldFF-globalStorage",read:ke,write:pe,each:ne,remove:z,clearAll:ae};var x=ot.globalStorage;function ke(re){return x[re]}function pe(re,se){x[re]=se}function ne(re){for(var se=x.length-1;se>=0;se--){var me=x.key(se);re(x[me],me)}}function z(re){return x.removeItem(re)}function ae(){ne(function(re,se){delete x[re]})}},34524:function(xn,Zt,ve){var Ue=ve(69078),ot=Ue.Global;xn.exports={name:"oldIE-userDataStorage",write:z,read:ae,each:re,remove:se,clearAll:me};var x="storejs",ke=ot.document,pe=ue(),ne=(ot.navigator?ot.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function z(fe,he){if(!ne){var oe=le(fe);pe(function(Se){Se.setAttribute(oe,he),Se.save(x)})}}function ae(fe){if(!ne){var he=le(fe),oe=null;return pe(function(Se){oe=Se.getAttribute(he)}),oe}}function re(fe){pe(function(he){for(var oe=he.XMLDocument.documentElement.attributes,Se=oe.length-1;Se>=0;Se--){var Ce=oe[Se];fe(he.getAttribute(Ce.name),Ce.name)}})}function se(fe){var he=le(fe);pe(function(oe){oe.removeAttribute(he),oe.save(x)})}function me(){pe(function(fe){var he=fe.XMLDocument.documentElement.attributes;fe.load(x);for(var oe=he.length-1;oe>=0;oe--)fe.removeAttribute(he[oe].name);fe.save(x)})}var ie=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function le(fe){return fe.replace(/^\d/,"___$&").replace(ie,"___")}function ue(){if(!ke||!ke.documentElement||!ke.documentElement.addBehavior)return null;var fe="script",he,oe,Se;try{oe=new ActiveXObject("htmlfile"),oe.open(),oe.write("<"+fe+">document.w=window</"+fe+'><iframe src="/favicon.ico"></iframe>'),oe.close(),he=oe.w.frames[0].document,Se=he.createElement("div")}catch(Ce){Se=ke.createElement("div"),he=ke.body}return function(Ce){var ye=[].slice.call(arguments,0);ye.unshift(Se),he.appendChild(Se),Se.addBehavior("#default#userData"),Se.load(x),Ce.apply(this,ye),he.removeChild(Se)}}},58855:function(xn,Zt,ve){var Ue=ve(69078),ot=Ue.Global;xn.exports={name:"sessionStorage",read:ke,write:pe,each:ne,remove:z,clearAll:ae};function x(){return ot.sessionStorage}function ke(re){return x().getItem(re)}function pe(re,se){return x().setItem(re,se)}function ne(re){for(var se=x().length-1;se>=0;se--){var me=x().key(se);re(ke(me),me)}}function z(re){return x().removeItem(re)}function ae(){return x().clear()}},36459:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return Ue}});function Ue(ot){if(ot==null)throw new TypeError("Cannot destructure "+ot)}},84279:function(xn,Zt,ve){"use strict";var Ue=Object.defineProperty,ot=Object.defineProperties,x=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,z=(a,y,b)=>y in a?Ue(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,ae=(a,y)=>{for(var b in y||(y={}))pe.call(y,b)&&z(a,b,y[b]);if(ke)for(var b of ke(y))ne.call(y,b)&&z(a,b,y[b]);return a},re=(a,y)=>ot(a,x(y)),se=a=>typeof a=="symbol"?a:a+"",me=(a,y)=>{var b={};for(var ee in a)pe.call(a,ee)&&y.indexOf(ee)<0&&(b[ee]=a[ee]);if(a!=null&&ke)for(var ee of ke(a))y.indexOf(ee)<0&&ne.call(a,ee)&&(b[ee]=a[ee]);return b};function ie(a){return Array.isArray(a)}var le={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function ue(){return"window"in globalThis&&"document"in globalThis}function fe(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function he(){return typeof navigator.vibrate=="function"}function oe(){var a,y;if(!ue())return"other";const b=(y=(a=navigator.userAgentData)==null?void 0:a.platform)!=null?y:navigator.platform;return/^mac/i.test(b)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(b)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function Se(){if(!ue())return!0;if(/firefox/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/firefox\/(\d+)/i);return a?parseInt(a[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/edg\/(\d+)/i);return a?parseInt(a[1])>=79:!1}return!0}function Ce(){return HTMLElement.prototype.hasOwnProperty("popover")}var ye={strings:le,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ye._locale||(ye._locale=ue()?navigator.language.slice(0,5):"en-US"),ye._locale},set locale(a){ye._locale=a,ye._numberFormatter=void 0,ye.dirty=!0},get numberFormatter(){return ye._numberFormatter||(ye._numberFormatter=new Intl.NumberFormat(ye.locale)),ye._numberFormatter},merge(a,y){if(typeof a=="string"&&y)ye.strings[a]=ae(ae({},ye.strings[a]),y),ye.dirty=!0;else for(const b of Object.keys(a))ye.merge(b,a[b])},get dirty(){return ye._dirty},set dirty(a){ye._dirty||ye._dirty===a||(ye._dirty=!0,setTimeout(()=>{ye._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return ye._subscribers.push(a),ye._subscribers.length-1},unsubscribe(a){a<0||a>=ye._subscribers.length||(ye._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const ee=b.getAttribute("data-l10n-tooltip");if(ee){const ce=_e(ee);ce&&b.setAttribute("data-tooltip",ce)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const ee=b.getAttribute("data-l10n-arial-label");if(ee){const ce=_e(ee);ce&&b.setAttribute("aria-label",ce)}}}};function _e(a,...y){if(a===void 0)return;let b="";const ee=ye.locale;ye.strings[ee]&&(b=ye.strings[ee][a]);const ce=ee.slice(0,2);if(!b&&ye.strings[ce]&&(b=ye.strings[ce][a]),b||(b=ye.strings.en[a]),!b)return;const Te=/(%@|%([0-9]+)\$@)/g;let je=Te.exec(b),qe=0;for(;je;){if(y[qe++]){const ut=je[2]?parseInt(je[2],10)-1:qe-1;let wt=y[ut];typeof wt=="number"&&(wt=ye.numberFormatter.format(wt)),b=b.replace(je[1],wt)}je=Te.exec(b)}return b=b.replace(/%%/g,"%"),b}var Me={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},we={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Ne={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},Ae={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},De={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},Ie={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function Pe(a){var y,b,ee,ce,Te,je;const qe=a.split("!");let at,ut,wt,Ut=255,Yt=255,vn=255,Cn=-1;const Cr=qe.length>0&&qe[0].startsWith("-");Cr&&(qe[0]=qe[0].slice(1));for(let li=0;li<qe.length;li++){at=Ut,ut=Yt,wt=vn;const br=(y=qe[li].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],Ur=br==null?void 0:br.toLowerCase(),hi=br&&(je=(Te=(ce=(ee=(b=Ae[Ur])!=null?b:Ae[De[br]])!=null?ee:we[br])!=null?ce:Ie[br])!=null?Te:Me[br])!=null?je:qe[li].trim();let Xr=hi.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(Xr!=null&&Xr[1]&&Xr[2]&&Xr[3])Ut=Math.max(0,Math.min(255,Number.parseInt(Xr[1],16))),Yt=Math.max(0,Math.min(255,Number.parseInt(Xr[2],16))),vn=Math.max(0,Math.min(255,Number.parseInt(Xr[3],16)));else if(Xr=hi.match(/^#([\da-f]{3})$/i),Xr!=null&&Xr[1]){const la=Number.parseInt(Xr[1][0],16),Oa=Number.parseInt(Xr[1][1],16),ga=Number.parseInt(Xr[1][2],16);Ut=Math.max(0,Math.min(255,la*16+la)),Yt=Math.max(0,Math.min(255,Oa*16+Oa)),vn=Math.max(0,Math.min(255,ga*16+ga))}else if(Xr=hi.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),Xr!=null&&Xr[1]&&Xr[2]&&Xr[3])Ut=Math.max(0,Math.min(255,Number.parseInt(Xr[1]))),Yt=Math.max(0,Math.min(255,Number.parseInt(Xr[2]))),vn=Math.max(0,Math.min(255,Number.parseInt(Xr[3])));else return;Cn>=0&&(Ut=(1-Cn)*Ut+Cn*at,Yt=(1-Cn)*Yt+Cn*ut,vn=(1-Cn)*vn+Cn*wt,Cn=-1),li+1<qe.length&&(Cn=Math.max(0,Math.min(100,Number.parseInt(qe[++li])))/100)}return Cn>=0&&(Ut=Cn*Ut+(1-Cn)*at,Yt=Cn*Yt+(1-Cn)*ut,vn=Cn*vn+(1-Cn)*wt),Cr&&(Ut=255-Ut,Yt=255-Yt,vn=255-vn),"#"+("00"+Math.round(Ut).toString(16)).slice(-2)+("00"+Math.round(Yt).toString(16)).slice(-2)+("00"+Math.round(vn).toString(16)).slice(-2)}function Le(a){var y,b;return a=a.trim(),(b=(y=Ne[a.toLowerCase()])!=null?y:Ne[De[a]])!=null?b:Pe(a)}function We(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&y.a===void 0&&(y.a=1),y}function Be(a,y,b){return b<0&&(b+=6),b>=6&&(b-=6),b<1?(y-a)*b+a:b<3?y:b<4?(y-a)*(4-b)+a:a}function He(a){let[y,b,ee]=[a.h,a.s,a.l];y=(y+360)%360/60,ee=Math.max(0,Math.min(ee,1)),b=Math.max(0,Math.min(b,1));const ce=ee<=.5?ee*(b+1):ee+b-ee*b,Te=ee*2-ce;return{r:Math.round(255*Be(Te,ce,y+2)),g:Math.round(255*Be(Te,ce,y)),b:Math.round(255*Be(Te,ce,y-2))}}function Ye(a){return a<0?0:a>255?255:Math.round(a)}function et(a){const{r:y,g:b,b:ee}=a;let ce=((1<<24)+(Ye(y)<<16)+(Ye(b)<<8)+Ye(ee)).toString(16).slice(1);return ce[0]===ce[1]&&ce[2]===ce[3]&&ce[4]===ce[5]&&ce[6]===ce[7]&&(ce=ce[0]+ce[2]+ce[4]),"#"+ce}function st(a){let{r:y,g:b,b:ee}=a;y=y/255,b=b/255,ee=ee/255;const ce=Math.min(y,b,ee),Te=Math.max(y,b,ee),je=Te-ce;let qe,at;Te===ce?qe=0:y===Te?qe=(b-ee)/je:b===Te?qe=2+(ee-y)/je:ee===Te&&(qe=4+(y-b)/je),qe=Math.min(qe*60,360),qe<0&&(qe+=360);const ut=(ce+Te)/2;return Te===ce?at=0:ut<=.5?at=je/(Te+ce):at=je/(2-Te-ce),{h:qe,s:at,l:ut}}function yt(a){let y=We(a);if(!y)return a;let{h:b,s:ee,l:ce}=st(y);return ee+=.1,ce-=.1,et(He({h:b,s:ee,l:ce}))}var Ve={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},Qe={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},pt=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function mt(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const ee=a.codePointAt(0);if(ee===void 0)return a;for(const ce of pt)if((!y||ce.variant===y)&&(!b||ce.style===b)&&ee>=ce.offset&&ee<ce.offset+ce.len){const Te=ce.start+ee-ce.offset;return String.fromCodePoint(Qe[Te]||Te)}return a}function ft(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Qe)if(Qe[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of pt)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function nt(a){var y;let b="";for(const ee of a){if("{}<>[]$&#^_%:'\u02DC".includes(ee)){b+=ee;continue}const ce=(y=ee.codePointAt(0))!=null?y:0;let Te=Ve[ce];if(Te)Te.startsWith("\\")?b+=Te+" ":b+=Te;else{const{char:je,variant:qe,style:at}=ft(ce);switch(Te=je,qe){case"double-struck":Te=`\\mathbb{${Te}}`;break;case"fraktur":Te=`\\mathfrak{${Te}}`;break;case"script":Te=`\\mathscr{${Te}}`;break;case"sans-serif":Te=`\\mathsf{${Te}}`;break;case"monospace":Te=`\\mathtt{${Te}}`;break;case"calligraphic":Te=`\\mathcal{${Te}}`;break}switch(at){case"bold":Te=`\\mathbf{${Te}}`;break;case"italic":Te=`\\mathit{${Te}}`;break;case"bolditalic":Te=`\\mathbfit{${Te}}`;break}b+=Te}}return b}function tt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var rt={},Et=ae({},Ve),bt={},Pt={},Lt={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},dt={varGamma:"\\mathit{\\Gamma}",varDelta:"\\mathit{\\Delta}",varTheta:"\\mathit{\\Theta}",varLambda:"\\mathit{\\Lambda}",varXi:"\\mathit{\\Xi}",varPi:"\\mathit{\\Pi}",varSigma:"\\mathit{\\Sigma}",varUpsilon:"\\mathit{\\Upsilon}",varPhi:"\\mathit{\\Phi}",varPsi:"\\mathit{\\Psi}",varOmega:"\\mathit{\\Omega}",pmod:{def:"\\quad(\\operatorname{mod}\\ #1)",args:1,expand:!1,captureSelection:!1},mod:{def:"\\quad\\operatorname{mod}\\,\\,#1",args:1,expand:!1},bmod:{def:"\\;\\mathbin{\\operatorname{mod }}",expand:!1}},Ze={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},Ke={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:Ze},"amsmath.sty":{package:dt,primitive:!0},"texvc.sty":{package:Lt,primitive:!1}},de={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},xe=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,ze,$e;Se()?(ze=new RegExp("\\p{Letter}","u"),$e=new RegExp("[0-9\\p{Letter}]","u")):(ze=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,$e=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function Ee(a,y,b="mord",ee){y!==void 0&&(rt[a]={definitionType:"symbol",type:b,variant:ee,codepoint:y},Et[y]||(Et[y]=a))}function Re(a,y,b){if(typeof a=="string"){for(let ee=0;ee<a.length;ee++){const ce=a.charAt(ee);Ee(ce,ce.codePointAt(0))}return}for(const[ee,ce,Te,je]of a)Ee(ee,ce,Te!=null?Te:y,je!=null?je:b)}function Fe(a,y){for(let b=a;b<=y;b++)Ee(String.fromCodePoint(b),b)}function Ge(a){var y;return(y=Pt[a])!=null?y:null}function it(a,y){var b,ee;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ce=[];for(const je in bt)je.startsWith(y)&&!bt[je].infix&&ce.push({match:je,frequency:(b=bt[je].frequency)!=null?b:0});for(const je in rt)je.startsWith(y)&&ce.push({match:je,frequency:(ee=rt[je].frequency)!=null?ee:0});const Te=y.substring(1);for(const je of Object.keys(a.options.macros))je.startsWith(Te)&&ce.push({match:"\\"+je,frequency:0});return ce.sort((je,qe)=>{var at,ut;return je.frequency===qe.frequency?je.match.length===qe.match.length?je.match<qe.match?-1:1:je.match.length-qe.match.length:((at=qe.frequency)!=null?at:0)-((ut=je.frequency)!=null?ut:0)}),ce.map(je=>je.match)}function gt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function Kt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:gt(b[0].slice(1))});for(let ee=1;ee<=b.length;ee++)y.push(...Kt(b[ee]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:gt(b[0].slice(1))});for(let ee=1;ee<=b.length;ee++)y.push(...Kt(b[ee]))}return y}function kt(a){if(!a)return"";let y="",b=!0;for(const ee of a)typeof ee.value=="string"?y+=ee.value:b=!1;return b?y:""}function St(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const ee of a)Pt[ee]=b}function Wt(a,y,b){typeof a=="string"&&(a=[a]);const ce={tabular:!0,params:Kt(y),createAtom:b};for(const Te of a)Pt[Te]=ce}function jt(a,y,b){var ee,ce;b||(b={});const Te={definitionType:"function",params:Kt(y),ifMode:b.ifMode,isFunction:(ee=b.isFunction)!=null?ee:!1,applyMode:b.applyMode,infix:(ce=b.infix)!=null?ce:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")bt["\\"+a]=Te;else for(const je of a)bt["\\"+je]=Te}var Vt;function _t(a){return Vt||(Vt=Dt(Ke)),a?Dt(ae(ae({},Vt),a)):Vt}function sn(a,y){var b,ee,ce,Te;if(typeof a=="string"){let je=0;const qe=a;return/(^|[^\\])#1/.test(qe)&&(je=1),/(^|[^\\])#2/.test(qe)&&(je=2),/(^|[^\\])#3/.test(qe)&&(je=3),/(^|[^\\])#4/.test(qe)&&(je=4),/(^|[^\\])#5/.test(qe)&&(je=5),/(^|[^\\])#6/.test(qe)&&(je=6),/(^|[^\\])#7/.test(qe)&&(je=7),/(^|[^\\])#8/.test(qe)&&(je=8),/(^|[^\\])#9/.test(qe)&&(je=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(ee=y==null?void 0:y.captureSelection)!=null?ee:!0,args:je,def:qe}}return ae({expand:(ce=y==null?void 0:y.expand)!=null?ce:!0,captureSelection:(Te=y==null?void 0:y.captureSelection)!=null?Te:!0,args:0},a)}function Dt(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const ee=a[b];if(ee==null)delete y[b];else if(typeof ee=="object"&&"package"in ee)for(const ce of Object.keys(ee.package))y[ce]=sn(ee.package[ce],{expand:!ee.primitive,captureSelection:ee.captureSelection});else y[b]=sn(ee)}return y}function xt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=bt[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=rt[a]:de[a]&&(b={definitionType:"symbol",type:"mord",codepoint:de[a]})}else if(y==="math"){if(b=rt[a],!b&&a.length===1){const ee=an("math",a.codePointAt(0));return ee.startsWith("\\")?re(ae({},xt(ee,"math")),{command:ee}):null}}else de[a]?b={definitionType:"symbol",type:"mord",codepoint:de[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function en(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function an(a,y){if(y===void 0)return"";if(a==="math"&&Et[y])return Et[y];if(a==="text"){const b=Object.keys(de).find(ee=>de[ee]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var fn=[0,.68889,0,0,.72222],Tn=[0,.68889,0,0,.66667],ar=[0,.68889,0,0,.77778],pr=[0,.68889,0,0,.61111],Ar=[.16667,.68889,0,0,.77778],Dr=[0,.68889,0,0,.55556],dr=[0,0,0,0,.25],zr=[0,.825,0,0,2.33334],ai=[0,.9,0,0,2.33334],ki=[0,.68889,0,0,.54028],Ni=[-.03598,.46402,0,0,.5],xi=[-.13313,.36687,0,0,1],cn=[.01354,.52239,0,0,1],ir=[.01354,.52239,0,0,1.11111],sr=[0,.54986,0,0,1],Yn=[0,.69224,0,0,.5],Rr=[0,.43056,0,0,1],Nn=[.08198,.58198,0,0,.77778],Hn=[.19444,.69224,0,0,.41667],jn=[.1808,.675,0,0,1],Gt=[.19444,.69224,0,0,.83334],Xt=[.13667,.63667,0,0,1],rn=[-.064,.437,0,0,1.334],An=[.08167,.58167,0,0,.77778],zt=[0,.69224,0,0,.72222],tn=[0,.69224,0,0,.66667],bn=[-.13313,.36687,0,0,.77778],wn=[.06062,.54986,0,0,.77778],zn=[0,.69224,0,0,.77778],Un=[.25583,.75583,0,0,.77778],kr=[.25142,.75726,0,0,.77778],Zr=[.20576,.70576,0,0,.77778],Ir=[.30274,.79383,0,0,.77778],Er=[.22958,.72958,0,0,.77778],Br=[.1808,.675,0,0,.77778],Pr=[.13667,.63667,0,0,.77778],nn=[.13597,.63597,0,0,.77778],Jt=[.03517,.54986,0,0,.77778],pn=[0,.675,0,0,.77778],Qn=[.19444,.69224,0,0,.61111],hr=[0,.54986,0,0,.76042],Fn=[0,.54986,0,0,.66667],Vn=[.0391,.5391,0,0,.77778],er=[.03517,.54986,0,0,1.33334],Sr=[.38569,.88569,0,0,.77778],Nr=[.23222,.74111,0,0,.77778],In=[.19444,.69224,0,0,.77778],Gr=[0,.37788,0,0,.5],ei=[0,.54986,0,0,.72222],aa=[0,.69224,0,0,.83334],ca=[.11111,.69224,0,0,.66667],qi=[.26167,.75726,0,0,.77778],Oi=[.48256,.98256,0,0,.77778],oa=[.28481,.79383,0,0,.77778],Bi=[.08167,.58167,0,0,.22222],Di=[.08167,.58167,0,0,.38889],_a=[0,.43056,.04028,0,.66667],_i=[.41951,.91951,0,0,.77778],ta=[.24982,.74947,0,0,.38865],Ea=[.08319,.58283,0,0,.75623],Va=[0,.10803,0,0,.27764],Na=[0,.47534,0,0,.50181],Pi=[.18906,.47534,0,0,.50181],yn=[0,.69141,0,0,.50181],dn=[.24982,.74947,0,0,.27764],Kn=[0,.69141,0,0,.21471],or=[.25,.75,0,0,.44722],xr=[0,.64444,0,0,.575],Wr=[.08556,.58556,0,0,.89444],oi=[0,.69444,0,0,.89444],pi=[0,.68611,0,0,.9],Ei=[0,.68611,0,0,.86944],mi=[.25,.75,0,0,.575],Li=[.25,.75,0,0,.31944],ea=[0,.69444,0,0,.63889],ni=[0,.69444,0,0,.31944],Mn=[0,.44444,0,0,.63889],hn=[0,.44444,0,0,.51111],On=[0,.69444,0,0,.575],Je=[.13333,.63333,0,0,.89444],vt=[0,.44444,0,0,.31944],Ct=[0,.69444,0,0,.86944],It=[0,.68611,0,0,.69166],At=[0,.68611,0,0,.83055],Bt=[0,.68611,0,0,.89444],Ft=[0,.69444,0,0,.60278],on=[.19444,.69444,0,0,.51111],gn=[0,.69444,0,0,.83055],Ln=[-.10889,.39111,0,0,1.14999],qn=[.19444,.69444,0,0,.575],Zn=[.19444,.69444,0,0,1.14999],Pn=[.19444,.69444,0,0,.70277],Bn=[.05556,.75,0,0,.575],Sn=[0,.68611,0,0,.95833],Xn=[.08556,.58556,0,0,.76666],vr=[-.02639,.47361,0,0,.575],rr=[0,.44444,0,0,.89444],lr=[0,.55556,0,0,.76666],fr=[-.10889,.39111,0,0,.89444],yr=[.00222,.50222,0,0,.89444],Mr=[.19667,.69667,0,0,.89444],Ot=[.08556,.58556,0,0,1.14999],Rt=[0,.69444,0,0,.70277],un=[-.02778,.47222,0,0,.575],Qt=[.25,.75,0,0,.51111],_n=[-.13889,.36111,0,0,1.14999],Wn=[.19444,.69444,0,0,1.02222],Gn=[.12963,.69444,0,0,.89444],gr=[.19444,.69444,0,0,.44722],cr=[0,.64444,.13167,0,.59111],Jn=[.19444,.64444,.13167,0,.59111],wr=[0,.68611,.17208,0,.8961],_r=[.19444,.44444,.105,0,.53222],Vr=[0,.44444,.085,0,.82666],Tr=[0,.69444,.06709,0,.59111],qr=[0,.69444,.12945,0,.35555],vi=[0,.69444,0,0,.94888],si=[0,.69444,.11472,0,.59111],gi=[0,.68611,.10778,0,.88555],Qr=[0,.69444,.07939,0,.62055],ui=[0,.69444,.12417,0,.30667],bi=[0,.64444,.13556,0,.51111],zi=[.19444,.64444,.13556,0,.51111],ti=[0,.68333,.16389,0,.74333],Ji=[.19444,.43056,.08847,0,.46],na=[0,.43056,.07514,0,.71555],za=[0,.69444,.06646,0,.51111],Ta=[0,.69444,0,0,.83129],pa=[0,.69444,.1225,0,.51111],Vi=[0,.68333,.09403,0,.76666],Xi=[0,.68333,.11111,0,.76666],Ii=[0,.69444,.06961,0,.51444],ma=[0,.69444,0,0,.27778],Ri=[.25,.75,0,0,.38889],wi=[0,.64444,0,0,.5],sa=[0,.69444,0,0,.77778],Ma=[0,.68333,0,0,.75],go=[0,.68333,0,0,.77778],ho=[0,.68333,0,0,.68056],Ja=[0,.68333,0,0,.72222],Za=[.25,.75,0,0,.5],La=[.25,.75,0,0,.27778],ua=[0,.69444,0,0,.5],Oo=[0,.69444,0,0,.55556],ba=[0,.43056,0,0,.44445],Ki=[0,.43056,0,0,.5],Ia=[.19444,.43056,0,0,.55556],to=[0,.43056,0,0,.55556],Ra=[.08333,.58333,0,0,.77778],Fa=[0,.43056,0,0,.27778],ra=[0,.66786,0,0,.27778],no=[0,.69444,0,0,.75],yo=[0,.66786,0,0,.5],so=[0,.68333,0,0,.625],bo=[.19444,.69444,0,0,.44445],Mo=[0,.69444,0,0,.72222],Xo=[.19444,.69444,0,0,.5],lo=[.19444,.69444,0,0,1],So=[.011,.511,0,0,1.126],os=[.19444,.69444,0,0,.61111],rs=[.05556,.75,0,0,.5],cs=[0,.68333,0,0,.83334],Lo=[.0391,.5391,0,0,.66667],xo=[-.05555,.44445,0,0,.5],ya=[0,.43056,0,0,.77778],Da=[0,.55556,0,0,.66667],ro=[-.03625,.46375,0,0,.77778],po=[-.01688,.48312,0,0,.77778],Wo=[.0391,.5391,0,0,1],us=[0,.69444,0,0,.61111],xs=[-.03472,.46528,0,0,.5],Js=[.25,.75,0,0,.44445],Fs=[-.14236,.35764,0,0,1],ds=[.244,.744,0,0,.412],$s=[.19444,.69444,0,0,.88889],Ga=[.12963,.69444,0,0,.77778],Aa=[.19444,.69444,0,0,.38889],fo=[.011,.511,0,0,1.638],ko=[.19444,.69444,0,0,0],fs=[0,.44444,0,0,.575],ss=[.19444,.44444,0,0,.575],jl=[0,.68611,0,0,.75555],vl=[0,.69444,0,0,.66759],Sl=[0,.68611,0,0,.80555],Xa=[0,.68611,.08229,0,.98229],fi=[0,.68611,0,0,.76666],fa=[0,.44444,0,0,.58472],ha=[.19444,.44444,0,0,.6118],ka=[.19444,.43056,0,0,.5],Zo=[0,.68333,.02778,.08334,.76278],Yo=[0,.68333,.08125,.05556,.83125],il=[0,.43056,0,.05556,.48472],dl=[.19444,.43056,0,.08334,.51702],Cl=[.25,.75,0,0,.42778],mo=[0,.69444,0,0,.55],Qs=[0,.69444,0,0,.73334],Ll=[0,.69444,0,0,.79445],Sc=[0,.69444,0,0,.51945],Gl=[0,.69444,0,0,.70278],El=[0,.69444,0,0,.76389],al=[.25,.75,0,0,.34306],ec=[0,.69444,0,0,.56111],fl=[0,.69444,0,0,.25556],tc=[.19444,.45833,0,0,.56111],is=[0,.45833,0,0,.56111],Co=[0,.69444,0,0,.30556],qo=[0,.69444,0,0,.58056],ws=[0,.69444,0,0,.67223],Ds=[0,.69444,0,0,.85556],ol=[0,.69444,0,0,.55834],Ps=[0,.65556,.11156,0,.5],zl=[0,.69444,.08094,0,.70834],Hc=[.17014,0,0,0,.44445],hc=[0,.69444,.0799,0,.5],Pc=[0,.69444,0,0,.73752],Lc=[0,.69444,.09205,0,.5],nc=[0,.69444,.09031,0,.77778],rc=[0,.69444,.07816,0,.27778],Rc=[0,.69444,.00316,0,.5],Nc=[.19444,.69444,0,0,.83334],_o=[.05556,.75,0,0,.83334],co=[0,.75,0,0,.5],zs=[.125,.08333,0,0,.27778],gl=[0,.08333,0,0,.27778],uo=[0,.65556,0,0,.5],Ko=[0,.69444,0,0,.47222],$o=[0,.69444,0,0,.66667],Ss=[0,.69444,0,0,.59722],el=[0,.69444,0,0,.54167],Kl=[0,.69444,0,0,.70834],Fl=[.25,.75,0,0,.28889],Wc=[0,.69444,0,0,.51667],nf=[0,.44444,0,0,.44445],kd=[.19444,.44444,0,0,.51667],Gu=[0,.44444,0,0,.38333],Xu=[0,.44444,0,0,.51667],Yu=[0,.69444,0,0,.83334],_d=[.35001,.85,0,0,.45834],_u=[.35001,.85,0,0,.57778],Ju=[.35001,.85,0,0,.41667],Qu=[.35001,.85,0,0,.58334],Tu=[0,.72222,0,0,.55556],Au=[1e-5,.6,0,0,.66667],Td=[1e-5,.6,0,0,.77778],Zc=[.25001,.75,0,0,.94445],rf=[.306,.805,.19445,0,.47222],cu=[.30612,.805,.19445,0,.47222],yl=[.25001,.75,0,0,.83334],Bc=[.35001,.85,0,0,.47222],Ad=[.25001,.75,0,0,1.11111],qu=[.65002,1.15,0,0,.59722],Ul=[.65002,1.15,0,0,.81111],Go=[.65002,1.15,0,0,.47222],ic=[.65002,1.15,0,0,.66667],ac=[0,.75,0,0,1],Cc=[.55001,1.05,0,0,1.27778],ed=[.862,1.36,.44445,0,.55556],td=[.86225,1.36,.44445,0,.55556],jc=[.55001,1.05,0,0,1.11111],nd=[.65002,1.15,0,0,.52778],uu=[.65002,1.15,0,0,.61111],Vc=[.55001,1.05,0,0,1.51112],rd=[.95003,1.45,0,0,.73611],Ou=[.95003,1.45,0,0,1.04445],pc=[.95003,1.45,0,0,.52778],du=[.95003,1.45,0,0,.75],fu=[0,.75,0,0,1.44445],Iu=[.95003,1.45,0,0,.58334],hu=[1.25003,1.75,0,0,.79167],Xl=[1.25003,1.75,0,0,1.27778],id=[1.25003,1.75,0,0,.58334],Du=[1.25003,1.75,0,0,.80556],lt=[0,.825,0,0,1.8889],ht=[1.25003,1.75,0,0,.63889],Nt=[.64502,1.155,0,0,.875],Ht=[1e-5,.6,0,0,.875],qt=[-99e-5,.601,0,0,.66667],ln=[.64502,1.155,0,0,.66667],Dn=[1e-5,.9,0,0,.88889],$n=[.65002,1.15,0,0,.88889],Rn=[.90001,0,0,0,.88889],tr=[-.00499,.605,0,0,1.05556],mr=[0,.12,0,0,.45],En=[0,.61111,0,0,.525],Lr=[.08333,.69444,0,0,.525],jr=[-.08056,.53055,0,0,.525],$r=[-.05556,.55556,0,0,.525],Yr=[0,.43056,0,0,.525],Kr=[.22222,.43056,0,0,.525],ci=[0,0,0,0,.525],ii={"AMS-Regular":{32:dr,65:fn,66:Tn,67:fn,68:fn,69:Tn,70:pr,71:ar,72:ar,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:ar,76:Tn,77:[0,.68889,0,0,.94445],78:fn,79:Ar,80:pr,81:Ar,82:fn,83:Dr,84:Tn,85:fn,86:fn,87:[0,.68889,0,0,1],88:fn,89:fn,90:Tn,107:Dr,160:dr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Dr,295:ki,710:zr,732:ai,770:zr,771:ai,989:An,1008:_a,8245:[0,.54986,0,0,.275],8463:ki,8487:fn,8498:Dr,8502:Tn,8503:[0,.68889,0,0,.44445],8504:Tn,8513:[0,.68889,0,0,.63889],8592:Ni,8594:Ni,8602:xi,8603:xi,8606:cn,8608:cn,8610:ir,8611:ir,8619:sr,8620:sr,8621:[-.13313,.37788,0,0,1.38889],8622:xi,8624:Yn,8625:Yn,8630:Rr,8631:Rr,8634:Nn,8635:Nn,8638:Hn,8639:Hn,8642:Hn,8643:Hn,8644:jn,8646:jn,8647:jn,8648:Gt,8649:jn,8650:Gt,8651:cn,8652:cn,8653:xi,8654:xi,8655:xi,8666:Xt,8667:Xt,8669:[-.13313,.37788,0,0,1],8672:rn,8674:rn,8705:[0,.825,0,0,.5],8708:Dr,8709:An,8717:[0,.43056,0,0,.42917],8722:Ni,8724:[.08198,.69224,0,0,.77778],8726:An,8733:zn,8736:zt,8737:zt,8738:[.03517,.52239,0,0,.72222],8739:Bi,8740:[.25142,.74111,0,0,.27778],8741:Di,8742:[.25142,.74111,0,0,.5],8756:tn,8757:tn,8764:bn,8765:[-.13313,.37788,0,0,.77778],8769:bn,8770:ro,8774:Ir,8776:po,8778:An,8782:wn,8783:wn,8785:Nn,8786:Nn,8787:Nn,8790:zn,8791:Er,8796:[.08198,.91667,0,0,.77778],8806:Un,8807:Un,8808:kr,8809:kr,8812:[.25583,.75583,0,0,.5],8814:Zr,8815:Zr,8816:Ir,8817:Ir,8818:Er,8819:Er,8822:Br,8823:Br,8828:Pr,8829:Pr,8830:Er,8831:Er,8832:Zr,8833:Zr,8840:Ir,8841:Ir,8842:nn,8843:nn,8847:Jt,8848:Jt,8858:Nn,8859:Nn,8861:Nn,8862:pn,8863:pn,8864:pn,8865:pn,8872:[0,.69224,0,0,.61111],8873:zt,8874:[0,.69224,0,0,.88889],8876:pr,8877:pr,8878:fn,8879:fn,8882:Jt,8883:Jt,8884:Pr,8885:Pr,8888:[0,.54986,0,0,1.11111],8890:Ia,8891:Qn,8892:Qn,8901:[0,.54986,0,0,.27778],8903:An,8905:An,8906:An,8907:zn,8908:zn,8909:[-.03598,.46402,0,0,.77778],8910:hr,8911:hr,8912:Jt,8913:Jt,8914:Fn,8915:Fn,8916:tn,8918:Vn,8919:Vn,8920:er,8921:er,8922:Sr,8923:Sr,8926:Pr,8927:Pr,8928:Ir,8929:Ir,8934:Nr,8935:Nr,8936:Nr,8937:Nr,8938:Zr,8939:Zr,8940:Ir,8941:Ir,8994:In,8995:In,9416:[.15559,.69224,0,0,.90222],9484:Yn,9488:Yn,9492:Gr,9496:Gr,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:pn,9633:pn,9650:ei,9651:ei,9654:Jt,9660:ei,9661:ei,9664:Jt,9674:ca,9733:[.19444,.69224,0,0,.94445],10003:aa,10016:aa,10731:ca,10846:[.19444,.75583,0,0,.61111],10877:Pr,10878:Pr,10885:Un,10886:Un,10887:nn,10888:nn,10889:qi,10890:qi,10891:Oi,10892:Oi,10901:Pr,10902:Pr,10933:kr,10934:kr,10935:qi,10936:qi,10937:qi,10938:qi,10949:Un,10950:Un,10955:oa,10956:oa,57350:Bi,57351:Di,57352:An,57353:_a,57356:kr,57357:kr,57358:_i,57359:Ir,57360:Ir,57361:_i,57366:kr,57367:kr,57368:kr,57369:kr,57370:nn,57371:nn},"Caligraphic-Regular":{32:dr,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],160:dr},"Fraktur-Regular":{32:dr,33:[0,.69141,0,0,.29574],34:Kn,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:ta,41:ta,42:[0,.62119,0,0,.27764],43:Ea,44:Va,45:Ea,46:Va,47:[.24982,.74947,0,0,.50181],48:Na,49:Na,50:Na,51:Pi,52:Pi,53:Pi,54:yn,55:Pi,56:yn,57:Pi,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:dn,93:dn,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],160:dr,8216:Kn,8217:Kn,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":{32:dr,33:[0,.69444,0,0,.35],34:Ft,35:[.19444,.69444,0,0,.95833],36:Bn,37:[.05556,.75,0,0,.95833],38:oi,39:ni,40:or,41:or,42:[0,.75,0,0,.575],43:Je,44:[.19444,.15556,0,0,.31944],45:Gu,46:[0,.15556,0,0,.31944],47:mi,48:xr,49:xr,50:xr,51:xr,52:xr,53:xr,54:xr,55:xr,56:xr,57:xr,58:vt,59:[.19444,.44444,0,0,.31944],60:Wr,61:fr,62:Wr,63:[0,.69444,0,0,.54305],64:oi,65:Ei,66:[0,.68611,0,0,.81805],67:At,68:[0,.68611,0,0,.88194],69:jl,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:pi,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:It,77:[0,.68611,0,0,1.09166],78:pi,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:Ei,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Li,92:mi,93:Li,94:On,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:ea,99:hn,100:ea,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:ea,105:ni,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:ni,109:[0,.44444,0,0,.95833],110:Mn,111:fs,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:Mn,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:hn,123:mi,124:Li,125:mi,126:[.35,.34444,0,0,.575],160:dr,163:[0,.69444,0,0,.86853],168:On,172:[0,.44444,0,0,.76666],176:Ct,177:Je,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Je,216:[.04861,.73472,0,0,.89444],223:Ss,230:[0,.44444,0,0,.83055],247:Je,248:[.09722,.54167,0,0,.575],305:vt,338:[0,.68611,0,0,1.16944],339:rr,567:[.19444,.44444,0,0,.35139],710:On,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:On,715:On,728:On,729:ni,730:Ct,732:On,733:On,915:It,916:Sn,920:Bt,923:Sl,926:fi,928:pi,931:At,933:Bt,934:At,936:Bt,937:At,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:ni,8217:ni,8220:Ft,8221:Ft,8224:on,8225:on,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:vl,8465:gn,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:gn,8501:Rt,8592:Ln,8593:qn,8594:Ln,8595:qn,8596:Ln,8597:mi,8598:Zn,8599:Zn,8600:Zn,8601:Zn,8636:Ln,8637:Ln,8640:Ln,8641:Ln,8656:Ln,8657:Pn,8658:Ln,8659:Pn,8660:Ln,8661:[.25,.75,0,0,.70277],8704:ea,8706:[0,.69444,.06389,0,.62847],8707:ea,8709:Bn,8711:Sn,8712:Xn,8715:Xn,8722:Je,8723:Je,8725:mi,8726:mi,8727:un,8728:vr,8729:vr,8730:[.18,.82,0,0,.95833],8733:rr,8734:[0,.44444,0,0,1.14999],8736:zt,8739:Li,8741:mi,8743:lr,8744:lr,8745:lr,8746:lr,8747:[.19444,.69444,.12778,0,.56875],8764:fr,8768:[.19444,.69444,0,0,.31944],8771:yr,8776:[.02444,.52444,0,0,.89444],8781:yr,8801:yr,8804:Mr,8805:Mr,8810:Ot,8811:Ot,8826:Wr,8827:Wr,8834:Wr,8835:Wr,8838:Mr,8839:Mr,8846:lr,8849:Mr,8850:Mr,8851:lr,8852:lr,8853:Je,8854:Je,8855:Je,8856:Je,8857:Je,8866:Rt,8867:Rt,8868:oi,8869:oi,8900:vr,8901:[-.02639,.47361,0,0,.31944],8902:un,8968:Qt,8969:Qt,8970:Qt,8971:Qt,8994:_n,8995:_n,9651:Wn,9657:un,9661:Wn,9667:un,9711:Zn,9824:Gn,9825:Gn,9826:Gn,9827:Gn,9837:[0,.75,0,0,.44722],9838:gr,9839:gr,10216:or,10217:or,10815:pi,10927:Mr,10928:Mr,57376:ko},"Main-BoldItalic":{32:dr,33:[0,.69444,.11417,0,.38611],34:Qr,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:qr,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:cr,49:cr,50:cr,51:cr,52:Jn,53:cr,54:cr,55:Jn,56:cr,57:cr,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:si,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:wr,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:wr,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:Tr,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:_r,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:_r,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],160:dr,168:[0,.69444,.11473,0,.59111],176:vi,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:Vr,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Vr,567:[.19444,.44444,.04611,0,.385],710:Tr,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:qr,730:vi,732:si,733:si,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:wr,931:[0,.68611,.11431,0,.82666],933:gi,934:[0,.68611,.05632,0,.82666],936:gi,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:qr,8217:qr,8220:[0,.69444,.16772,0,.62055],8221:Qr},"Main-Italic":{32:dr,33:ui,34:Ii,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:ui,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:bi,49:bi,50:bi,51:bi,52:zi,53:bi,54:bi,55:zi,56:bi,57:bi,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:pa,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:ti,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:ti,79:Vi,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:ti,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:za,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:Ji,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:Ji,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],160:dr,168:[0,.66786,.10474,0,.51111],176:Ta,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:na,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:na,710:za,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:Ta,732:[0,.66786,.11585,0,.51111],733:pa,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Vi,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:ti,931:[0,.68333,.12028,0,.71555],933:Xi,934:[0,.68333,.05986,0,.71555],936:Xi,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:ui,8217:ui,8220:[0,.69444,.1685,0,.51444],8221:Ii,8463:ki},"Main-Regular":{32:dr,33:ma,34:ua,35:Nc,36:rs,37:_o,38:sa,39:ma,40:Ri,41:Ri,42:co,43:Ra,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Za,48:wi,49:wi,50:wi,51:wi,52:wi,53:wi,54:wi,55:wi,56:wi,57:wi,58:Fa,59:[.19444,.43056,0,0,.27778],60:Vn,61:bn,62:Vn,63:Ko,64:sa,65:Ma,66:[0,.68333,0,0,.70834],67:Ja,68:[0,.68333,0,0,.76389],69:ho,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Ma,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:go,76:so,77:[0,.68333,0,0,.91667],78:Ma,79:go,80:ho,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Ja,85:Ma,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Ma,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:La,92:Za,93:La,94:ua,95:[.31,.12056,.02778,0,.5],97:Ki,98:Oo,99:ba,100:Oo,101:ba,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Oo,105:ra,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:ma,109:[0,.43056,0,0,.83334],110:to,111:Ki,112:Ia,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:to,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:ba,123:Za,124:La,125:Za,126:[.35,.31786,0,0,.5],160:dr,163:[0,.69444,0,0,.76909],167:bo,168:yo,172:[0,.43056,0,0,.66667],176:no,177:Ra,182:os,184:Hc,198:[0,.68333,0,0,.90278],215:Ra,216:[.04861,.73194,0,0,.77778],223:ua,230:[0,.43056,0,0,.72222],247:Ra,248:[.09722,.52778,0,0,.5],305:Fa,338:[0,.68333,0,0,1.01389],339:ya,567:[.19444,.43056,0,0,.30556],710:ua,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:ua,715:ua,728:ua,729:ra,730:no,732:yo,733:ua,915:so,916:cs,920:go,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Ma,931:Ja,933:go,934:Ja,936:go,937:Ja,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:ma,8217:ma,8220:ua,8221:ua,8224:bo,8225:bo,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:ki,8465:Mo,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Mo,8501:us,8592:xi,8593:Xo,8594:xi,8595:Xo,8596:xi,8597:Za,8598:lo,8599:lo,8600:lo,8601:lo,8614:[.011,.511,0,0,1],8617:So,8618:So,8636:xi,8637:xi,8640:xi,8641:xi,8652:[.011,.671,0,0,1],8656:xi,8657:os,8658:xi,8659:os,8660:xi,8661:[.25,.75,0,0,.61111],8704:Oo,8706:[0,.69444,.05556,.08334,.5309],8707:Oo,8709:rs,8711:cs,8712:Lo,8715:Lo,8722:Ra,8723:Ra,8725:Za,8726:Za,8727:xs,8728:xo,8729:xo,8730:[.2,.8,0,0,.83334],8733:ya,8734:Rr,8736:zt,8739:La,8741:Za,8743:Da,8744:Da,8745:Da,8746:Da,8747:[.19444,.69444,.11111,0,.41667],8764:bn,8768:[.19444,.69444,0,0,.27778],8771:ro,8773:[-.022,.589,0,0,1],8776:po,8781:ro,8784:[-.133,.67,0,0,.778],8801:ro,8804:nn,8805:nn,8810:Wo,8811:Wo,8826:Vn,8827:Vn,8834:Vn,8835:Vn,8838:nn,8839:nn,8846:Da,8849:nn,8850:nn,8851:Da,8852:Da,8853:Ra,8854:Ra,8855:Ra,8856:Ra,8857:Ra,8866:us,8867:us,8868:sa,8869:sa,8872:[.249,.75,0,0,.867],8900:xo,8901:[-.05555,.44445,0,0,.27778],8902:xs,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:Js,8969:Js,8970:Js,8971:Js,8994:Fs,8995:Fs,9136:ds,9137:ds,9651:$s,9657:xs,9661:$s,9667:xs,9711:lo,9824:Ga,9825:Ga,9826:Ga,9827:Ga,9837:[0,.75,0,0,.38889],9838:Aa,9839:Aa,10216:Ri,10217:Ri,10222:ds,10223:ds,10229:[.011,.511,0,0,1.609],10230:fo,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:fo,10815:Ma,10927:nn,10928:nn,57376:ko},"Math-BoldItalic":{32:dr,48:fs,49:fs,50:fs,51:ss,52:ss,53:ss,54:xr,55:ss,56:xr,57:ss,65:Ei,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:Xa,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:jl,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:vl,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:fa,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],160:dr,915:[0,.68611,.15972,0,.65694],916:Sn,920:[0,.68611,.03194,0,.86722],923:Sl,926:[0,.68611,.07458,0,.84125],928:Xa,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:fi,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:fa,960:[0,.44444,.03704,0,.68241],961:ha,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:ha,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:dr,48:Ki,49:Ki,50:Ki,51:ka,52:ka,53:ka,54:wi,55:ka,56:wi,57:ka,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:Yo,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:Zo,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:il,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],160:dr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Zo,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Yo,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:il,960:[0,.43056,.03588,0,.57003],961:dl,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:dl,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:dr,33:[0,.69444,0,0,.36667],34:ol,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:Co,40:Cl,41:Cl,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:mo,49:mo,50:mo,51:mo,52:mo,53:mo,54:mo,55:mo,56:mo,57:mo,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Sc,64:Qs,65:Qs,66:Qs,67:Gl,68:Ll,69:[0,.69444,0,0,.64167],70:us,71:Qs,72:Ll,73:[0,.69444,0,0,.33056],74:Sc,75:El,76:qo,77:[0,.69444,0,0,.97778],78:Ll,79:Ll,80:Gl,81:[.10556,.69444,0,0,.79445],82:Gl,83:us,84:Qs,85:El,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Qs,89:[0,.69444,.0275,0,.73334],90:ws,91:al,93:al,94:mo,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:ec,99:[0,.45833,0,0,.48889],100:ec,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:ec,105:fl,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:fl,109:[0,.45833,0,0,.86667],110:is,111:[0,.45833,0,0,.55],112:tc,113:tc,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:is,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],160:dr,168:mo,176:Qs,180:mo,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:mo,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:mo,729:Co,730:Qs,732:mo,733:mo,915:qo,916:[0,.69444,0,0,.91667],920:Ds,923:ws,926:Qs,928:Ll,931:Ll,933:Ds,934:Ll,936:Ds,937:Ll,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Co,8217:Co,8220:ol,8221:ol},"SansSerif-Italic":{32:dr,33:[0,.69444,.05733,0,.31945],34:Rc,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:rc,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:zs,45:[0,.44444,.01946,0,.33333],46:gl,47:[.25,.75,.13164,0,.5],48:Ps,49:Ps,50:Ps,51:Ps,52:Ps,53:Ps,54:Ps,55:Ps,56:Ps,57:Ps,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:$o,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:zl,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:el,77:[0,.69444,.08094,0,.875],78:zl,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:hc,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],160:dr,168:[0,.67937,.06385,0,.5],176:Pc,184:Hc,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:hc,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Lc,715:ua,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Pc,732:[0,.67659,.08826,0,.5],733:Lc,915:[0,.69444,.13372,0,.54167],916:Yu,920:[0,.69444,.07555,0,.77778],923:us,926:[0,.69444,.12816,0,.66667],928:zl,931:[0,.69444,.11983,0,.72222],933:nc,934:[0,.69444,.04603,0,.72222],936:nc,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:rc,8217:rc,8220:[0,.69444,.14205,0,.5],8221:Rc},"SansSerif-Regular":{32:dr,33:[0,.69444,0,0,.31945],34:ua,35:Nc,36:rs,37:_o,38:[0,.69444,0,0,.75834],39:ma,40:Ri,41:Ri,42:co,43:Ra,44:zs,45:[0,.44444,0,0,.33333],46:gl,47:Za,48:uo,49:uo,50:uo,51:uo,52:uo,53:uo,54:uo,55:uo,56:uo,57:uo,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Ko,64:$o,65:$o,66:$o,67:ea,68:[0,.69444,0,0,.72223],69:Ss,70:[0,.69444,0,0,.56945],71:$o,72:Kl,73:ma,74:Ko,75:[0,.69444,0,0,.69445],76:el,77:[0,.69444,0,0,.875],78:Kl,79:[0,.69444,0,0,.73611],80:ea,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Oo,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:$o,89:[0,.69444,.025,0,.66667],90:us,91:Fl,93:Fl,94:ua,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:Wc,99:nf,100:Wc,101:nf,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:Wc,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:Xu,111:[0,.44444,0,0,.5],112:kd,113:kd,114:[0,.44444,.01389,0,.34167],115:Gu,116:[0,.57143,0,0,.36111],117:Xu,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],160:dr,168:[0,.67937,0,0,.5],176:$o,184:Hc,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:ua,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:ua,715:ua,728:ua,729:[0,.67937,0,0,.27778],730:$o,732:[0,.67659,0,0,.5],733:ua,915:el,916:Yu,920:sa,923:us,926:$o,928:Kl,931:Mo,933:sa,934:Mo,936:sa,937:Mo,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:ma,8217:ma,8220:ua,8221:ua},"Script-Regular":{32:dr,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],160:dr},"Size1-Regular":{32:dr,40:_d,41:_d,47:_u,91:Ju,92:_u,93:Ju,123:Qu,125:Qu,160:dr,710:Tu,732:Tu,770:Tu,771:Tu,8214:[-99e-5,.601,0,0,.77778],8593:Au,8595:Au,8657:Td,8659:Td,8719:Zc,8720:Zc,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:cu,8748:rf,8749:rf,8750:cu,8896:yl,8897:yl,8898:yl,8899:yl,8968:Bc,8969:Bc,8970:Bc,8971:Bc,9168:qt,10216:Bc,10217:Bc,10752:Ad,10753:Ad,10754:Ad,10756:yl,10758:yl},"Size2-Regular":{32:dr,40:qu,41:qu,47:Ul,91:Go,92:Ul,93:Go,123:ic,125:ic,160:dr,710:ac,732:ac,770:ac,771:ac,8719:Cc,8720:Cc,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:td,8748:ed,8749:ed,8750:td,8896:jc,8897:jc,8898:jc,8899:jc,8968:nd,8969:nd,8970:nd,8971:nd,10216:uu,10217:uu,10752:Vc,10753:Vc,10754:Vc,10756:jc,10758:jc},"Size3-Regular":{32:dr,40:rd,41:rd,47:Ou,91:pc,92:Ou,93:pc,123:du,125:du,160:dr,710:fu,732:fu,770:fu,771:fu,8730:[.95003,1.45,0,0,1],8968:Iu,8969:Iu,8970:Iu,8971:Iu,10216:du,10217:du},"Size4-Regular":{32:dr,40:hu,41:hu,47:Xl,91:id,92:Xl,93:id,123:Du,125:Du,160:dr,710:lt,732:lt,770:lt,771:lt,8730:[1.25003,1.75,0,0,1],8968:ht,8969:ht,8970:ht,8971:ht,9115:Nt,9116:Ht,9117:Nt,9118:Nt,9119:Ht,9120:Nt,9121:ln,9122:qt,9123:ln,9124:ln,9125:qt,9126:ln,9127:Dn,9128:$n,9129:Rn,9130:[0,.3,0,0,.88889],9131:Dn,9132:$n,9133:Rn,9143:[.88502,.915,0,0,1.05556],10216:Du,10217:Du,57344:tr,57345:tr,57680:mr,57681:mr,57682:mr,57683:mr},"Typewriter-Regular":{32:ci,33:En,34:En,35:En,36:Lr,37:Lr,38:En,39:En,40:Lr,41:Lr,42:[0,.52083,0,0,.525],43:jr,44:[.13889,.125,0,0,.525],45:jr,46:[0,.125,0,0,.525],47:Lr,48:En,49:En,50:En,51:En,52:En,53:En,54:En,55:En,56:En,57:En,58:Yr,59:[.13889,.43056,0,0,.525],60:$r,61:[-.19549,.41562,0,0,.525],62:$r,63:En,64:En,65:En,66:En,67:En,68:En,69:En,70:En,71:En,72:En,73:En,74:En,75:En,76:En,77:En,78:En,79:En,80:En,81:[.13889,.61111,0,0,.525],82:En,83:En,84:En,85:En,86:En,87:En,88:En,89:En,90:En,91:Lr,92:Lr,93:Lr,94:En,95:[.09514,0,0,0,.525],96:En,97:Yr,98:En,99:Yr,100:En,101:Yr,102:En,103:Kr,104:En,105:En,106:[.22222,.61111,0,0,.525],107:En,108:En,109:Yr,110:Yr,111:Yr,112:Kr,113:Kr,114:Yr,115:Yr,116:[0,.55358,0,0,.525],117:Yr,118:Yr,119:Yr,120:Yr,121:Kr,122:Yr,123:Lr,124:Lr,125:Lr,126:En,127:En,160:ci,176:En,184:[.19445,0,0,0,.525],305:Yr,567:Kr,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:En,715:En,728:En,730:En,770:En,771:En,776:En,915:En,916:En,920:En,923:En,926:En,928:En,931:En,933:En,934:En,936:En,937:En,8216:En,8217:En,8242:En,9251:[.11111,.21944,0,0,.525]}},Si=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Yi=10,Ui=.25,Gi=1.2,xa=.431,Ua={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[xa,xa,xa],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],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:[Ui,Ui,Ui],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]},ji=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Hi=5,Fi={"\xA0":" ","\u200B":" ",\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 di(a,y){a===void 0&&(a=77);const b=ii[y][a];if(b)return{defaultMetrics:!1,depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]};if(a===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const ee=String.fromCodePoint(a);if(ee in Fi)a=Fi[ee].codePointAt(0);else if(Si.test(ee))return a=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var Zi={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"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["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],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["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],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},wa={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},Qa={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`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
|
|
|
c -179 0 -524 -115 -524 -115
|
|
|
c -5 -1 -9 -5 -9 -10
|
|
|
c 0 -1 1 -2 1 -3
|
|
|
l 4 -22
|
|
|
c 1 -5 5 -9 11 -9
|
|
|
h 2
|
|
|
s 338 93 512 92
|
|
|
c 174 0 513 -92 513 -92
|
|
|
h 2
|
|
|
c 5 0 9 4 11 9
|
|
|
l 5 22
|
|
|
c 1 6 -2 12 -8 13
|
|
|
c 0 0 -342 115 -520 115
|
|
|
z
|
|
|
`,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`,widetilde1:`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`,widetilde2:`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`,widetilde3:`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`,widetilde4:`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`};function ja(a){if(wa[a]){const[ut,wt,Ut]=wa[a],Yt=`<span class="stretchy" style="height:${Ut}em"><svg width="100%" height="${Ut}em" viewBox="0 0 ${ut} ${wt}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Qa[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Ut/2)/100}em;min-width:0">${Yt}</span>`}const[y,b,ee,ce]=Zi[a];let Te,je;const qe=ee/1e3;y.length===3?(Te=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],je=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(Te=["slice-1-of-2","slice-2-of-2"],je=["xMinYMin","xMaxYMin"]):(Te=["slice-1-of-1"],je=[ce]);const at=y.map((ut,wt)=>`<span class="${Te[wt]}" style=height:${qe}em><svg width=400em height=${qe}em viewBox="0 0 400000 ${ee}" preserveAspectRatio="${je[wt]} slice"><path fill="currentcolor" d="${Qa[ut]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${qe}em;min-width:${b}em;">${at}</span>`}function Sa(a){return Zi[a]?Zi[a][2]/1e3:wa[a][2]}function io(a){const y=[];for(let b=0;b<a.length;b++){let ee=a.charCodeAt(b);if(ee===13&&a.charCodeAt(b+1)===10&&(ee=10,b++),(ee===13||ee===12)&&(ee=10),ee===0&&(ee=65533),ee>=55296&&ee<=56319){const ce=a.charCodeAt(b+1);if(ce>=56320&&ce<=57343){const Te=ee-55296,je=ce-56320;ee=lu(2,16)+Te*lu(2,10)+je,b++}}y.push(ee)}return y}var qa=8205,zo=[[qa,1],[65038,2],[127995,5],[129456,4],[917536,96]],ao,es=[127462,127487];function ts(a){var y;if(ao===void 0){ao={};for(const b of zo)for(let ee=b[0];ee<=b[0]+b[1]-1;ee++)ao[ee]=!0}return(y=ao[a])!=null?y:!1}function Ha(a){return a>=es[0]&&a<=es[1]}function Ts(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=io(a);let ee=0;for(;ee<b.length;){const ce=b[ee++],Te=b[ee];if(Te===qa){const je=ee-1;for(ee+=2;b[ee]===qa;)ee+=2;y.push(String.fromCodePoint(...b.slice(je,ee-je+1)))}else if(ts(Te)){const je=ee-1;for(;ts(b[ee]);)ee+=b[ee]===qa?2:1;y.push(String.fromCodePoint(...b.slice(je,2*ee-je-1)))}else Ha(ce)?(ee+=1,y.push(String.fromCodePoint(...b.slice(ee-2,2)))):y.push(String.fromCodePoint(ce))}return y}var Io=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=Ts(a)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(a){const y=typeof this.s=="string"?a.exec(this.s.slice(this.pos)):a.exec(this.s.slice(this.pos).join(""));return y!=null&&y[0]?(this.pos+=y[0].length,y[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const a=this.get();if(a==="\\"){if(!this.end()){let y=this.match(/^[a-zA-Z\*]+/);return y?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):y=this.get(),"\\"+y}}else{if(a==="{")return"<{>";if(a==="}")return"<}>";if(a==="^"){if(this.peek()==="^"){this.get();const y=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(y)return String.fromCodePoint(Number.parseInt(y.slice(y.lastIndexOf("^")+1),16))}return a}else if(a==="#"){if(!this.end()){let y=!1;if(/[\d?@]/.test(this.peek())&&(y=!0,this.pos+1<this.s.length)){const b=this.s[this.pos+1];y=/[^\dA-Za-z]/.test(b)}return y?"#"+this.get():"#"}}else if(a==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return a}};function Uo(a,y){var b,ee,ce,Te;const je=[];let qe=a.next();if(qe&&qe!=="\\relax"){if(qe==="\\noexpand")qe=a.next(),qe&&je.push(qe);else if(qe==="\\obeyspaces")a.obeyspaces=!0;else if(qe==="\\bgroup")je.push("<{>");else if(qe==="\\egroup")je.push("<}>");else if(qe==="\\string"){if(qe=a.next(),qe)if(qe.startsWith("\\"))for(const at of qe)je.push(at==="\\"?"\\backslash":at);else qe==="<{>"?je.push("\\{"):qe==="<space>"?je.push("~"):qe==="<}>"&&je.push("\\}")}else if(qe==="\\csname"){for(;a.peek()==="<space>";)a.next();let at="",ut=!1,wt=[];do{if(wt.length===0)if(/^#[\d?@]$/.test(a.peek())){const Ut=a.get().slice(1);wt=No((ee=(b=y==null?void 0:y(Ut))!=null?b:y==null?void 0:y("?"))!=null?ee:"\\placeholder{}",y),qe=wt[0]}else qe=a.next(),wt=qe?[qe]:[];ut=wt.length===0,!ut&&qe==="\\endcsname"&&(ut=!0,wt.shift()),ut||(ut=qe==="<$>"||qe==="<$$>"||qe==="<{>"||qe==="<}>"||typeof qe=="string"&&qe.length>1&&qe.startsWith("\\")),ut||(at+=wt.shift())}while(!ut);at&&je.push("\\"+at),je.push(...wt)}else if(qe!=="\\endcsname")if(qe.length>1&&qe.startsWith("#")){const at=qe.slice(1);je.push(...No((Te=(ce=y==null?void 0:y(at))!=null?ce:y==null?void 0:y("?"))!=null?Te:"\\placeholder{}",y))}else je.push(qe)}return je}function No(a,y=null){const b=[];let ee="";for(const je of a.toString().split(/\r?\n/)){ee&&b.push(ee),ee=" ";const qe=je.match(/((?:\\%)|[^%])*/);qe!==null&&b.push(qe[0])}const ce=new Io(nt(b.join(""))),Te=[];do Te.push(...Uo(ce,y));while(!ce.end());return Te}function $a(a){let y="";const b=[];for(const ee of a)ee&&(y&&/^[a-zA-Z\*]/.test(ee)&&b.push(y),b.push(ee),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(ee)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(ee)?" ":"");return b.join("")}function Ti(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:$a([a,...y.map(b=>`{${b}}`)])}function da(a){return $a(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var Ca=class Of{constructor(y){Of._registry[y]=this}static createAtom(y,b,ee){return Of._registry[y].createAtom(b,xt(b,y),ee)}static serialize(y,b){var ee;if(!y||y.length===0)return"";if((ee=b.skipStyles)!=null&&ee){const ce=[];for(const Te of Do(y)){const je=Of._registry[Te[0].mode];ce.push(...je.serialize(Te,b))}return $a(ce)}return $a(wo(y,b))}static getFont(y,b,ee){return Of._registry[y].getFont(b,ee)}};Ca._registry={};var Wi=Ca;function Do(a){const y=[];let b=[],ee="NONE";for(const ce of a)ce.type!=="first"&&(ce.mode!==ee?(b.length>0&&y.push(b),b=[ce],ee=ce.mode):b.push(ce));return b.length>0&&y.push(b),y}function Mi(a,y){const b=[];let ee=[],ce;for(const Te of a)if(Te.type!=="first"&&Te.style){let je;y==="variant"?(je=Te.style.variant,Te.style.variantStyle&&Te.style.variantStyle!=="up"&&(je+="-"+Te.style.variantStyle)):je=Te.style[y],je===ce?ee.push(Te):(ee.length>0&&b.push(ee),ee=[Te],ce=je)}return ee.length>0&&b.push(ee),b}function Ka(a,y){var b;const{parent:ee}=a[0],ce=ee==null?void 0:ee.computedStyle.color,Te=[];for(const je of Do(a)){const qe=y.defaultMode;for(const at of Mi(je,"color")){const ut=at[0].computedStyle,wt=Wi._registry[at[0].mode].serialize(at,re(ae({},y),{defaultMode:qe==="text"?"text":"math"}));!y.skipStyles&&ut.color&&ut.color!=="none"&&(!ee||ce!==ut.color)?Te.push(Ti("\\textcolor",(b=ut.verbatimColor)!=null?b:ut.color,$a(wt))):Te.push($a(wt))}}return Te}function To(a,y){const{parent:b}=a[0],ee=b==null?void 0:b.computedStyle.backgroundColor;return Mi(a,"backgroundColor").map(ce=>{var Te;if(ce.length>0||ce[0].type!=="box"){const je=ce[0].computedStyle;if(je.backgroundColor&&je.backgroundColor!=="none"&&(!b||ee!==je.backgroundColor))return Ti("\\colorbox",(Te=je.verbatimBackgroundColor)!=null?Te:je.backgroundColor,$a(Ka(ce,re(ae({},y),{defaultMode:"text"}))))}return $a(Ka(ce,y))})}function wo(a,y){if(a.length===0)return[];const{parent:b}=a[0],ee=b==null?void 0:b.computedStyle.fontSize,ce=[];for(const Te of Mi(a,"fontSize")){const je=Te[0].computedStyle.fontSize,qe=To(Te,y);qe&&(je&&je!=="auto"&&(!b||ee!==je)?ce.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][je],...qe):ce.push(...qe))}return ce}function sl(a){return a?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[a]:void 0}function As(a){if(a.length===0)return"ord";const y=sl(a[0].type),b=sl(a[a.length-1].type);return y&&y===b?y:"ord"}function Ml(a,y){if(typeof a=="string")return a;if(typeof a=="number"){console.assert(Number.isFinite(a));const b=Math.ceil(100*a)/100;return b===0?"0":b.toString()+(y!=null?y:"")}return""}var Hr=class Mm{constructor(y,b){var ee,ce,Te,je,qe;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:ie(y)?this.children=y.filter(ut=>ut!==null):y&&y instanceof Mm&&(this.children=[y]),this.children)for(const ut of this.children)ut.parent=this;this.type=(ee=b==null?void 0:b.type)!=null?ee:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ce=b==null?void 0:b.classes)!=null?ce:"",this.isTight=(Te=b==null?void 0:b.isTight)!=null?Te:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let at=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(at=(qe=Wi.getFont((je=b.mode)!=null?je:"math",this,re(ae({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?qe:void 0),at||(at="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(b==null?void 0:b.maxFontSize)!==void 0&&(this.maxFontSize=b.maxFontSize),Ao(this,at)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,ee){if(b===void 0)return;const ce=Ml(b,ee);ce.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ce)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=Ml(y,"em"),this.height-=y,this.depth+=y)}get left(){var y;return(y=this.cssProperties)!=null&&y["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=Ml(y,"em")))}set right(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=Ml(y,"em")))}set bottom(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=Ml(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const ee=y.color;ee&&ee!==b.color&&this.setStyle("color",ee);let ce=y.backgroundColor;this.isSelected&&(ce=yt(ce)),ce&&ce!==b.backgroundColor&&(this.setStyle("background-color",ce),this.setStyle("display","inline-block"));const Te=y.scalingFactor;return this.scale=Te,this.skew*=Te,this.italic*=Te,this}toMarkup(){var y,b,ee,ce;let Te=(y=this.value)!=null?y:"";if(this.children)for(const vn of this.children)Te+=vn.toMarkup();let je="";if(this.svgBody)je=ja(this.svgBody);else if(this.svgOverlay){je='<span style="',je+="display: inline-block;",je+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,je+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,je+='">',je+=Te,je+="</span>",je+='<svg style="position:absolute;overflow:visible;',je+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const vn=(b=this.cssProperties)==null?void 0:b.padding;vn?(je+=`top:${vn};`,je+=`left:${vn};`,je+=`width:calc(100% - 2 * ${vn} );`):je+="top:0;left:0;width:100%;",je+="z-index:2;",je+='"',this.svgStyle&&(je+=this.svgStyle),je+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,je+=`>${this.svgOverlay}</svg>`}let qe="";const at=this.classes.split(" ");at.push((ee={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?ee:""),this.caret==="latex"&&at.push("ML__latex-caret"),this.isSelected&&at.push("ML__selected");const ut=at.length===1?at[0]:at.filter((vn,Cn,Cr)=>vn.length>0&&Cr.indexOf(vn)===Cn).join(" ");if(ut.length>0&&(qe+=` class="${ut}"`),this.id&&(qe+=` data-atom-id=${this.id}`),this.cssId&&(qe+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(qe+=" "+Object.keys(this.attributes).map(vn=>`${vn}="${this.attributes[vn]}"`).join(" ")),this.htmlData){const vn=this.htmlData.split(",");for(const Cn of vn){const Cr=Cn.match(/([^=]+)=(.+$)/);if(Cr){const li=Cr[1].trim().replace(/ /g,"-");li&&(qe+=` data-${li}="${Cr[2]}" `)}else{const li=Cn.trim().replace(/ /g,"-");li&&(qe+=` data-${li} `)}}}const wt=(ce=this.cssProperties)!=null?ce:{};this.hasExplicitWidth&&wt.width===void 0&&(wt.width=`${Math.ceil(this._width*100)/100}em`);const Ut=Object.keys(wt).map(vn=>`${vn}:${wt[vn]}`);if(this.scale!==void 0&&this.scale!==1&&(Te.length>0||je.length>0)&&Ut.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const vn=this.htmlStyle.split(";");let Cn="";for(const Cr of vn){const li=Cr.match(/([^=]+):(.+$)/);if(li){const br=li[1].trim().replace(/ /g,"-");br&&(Cn+=`${br}:${li[2]};`)}}Cn&&(qe+=` style="${Cn}"`)}Ut.length>0&&(qe+=` style="${Ut.join(";")}"`);let Yt="";return qe.length>0||je.length>0?Yt=`<span${qe}>${Te}${je}</span>`:Yt=Te,this.caret==="text"?Yt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Yt+='<span class="ML__caret"></span>'),Yt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,ee=y.children&&y.children.length>0;if(b||ee)return!1;if(y.cssProperties||this.cssProperties){for(const at of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&at in y.cssProperties||this.cssProperties&&at in this.cssProperties)return!1}const ce=this.cssProperties?Object.keys(this.cssProperties).length:0,Te=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ce!==Te)return!1;if(ce>0){for(const at of Object.keys(this.cssProperties))if(this.cssProperties[at]!==y.cssProperties[at])return!1}const je=this.classes.trim().replace(/\s+/g," ").split(" "),qe=y.classes.trim().replace(/\s+/g," ").split(" ");if(je.length!==qe.length)return!1;je.sort(),qe.sort();for(const[at,ut]of je.entries())if(ut==="vertical-separator"||ut!==qe[at])return!1;return this.value+=y.value,this.height=Math.max(this.height,y.height),this.depth=Math.max(this.depth,y.depth),this._width=this._width+y._width,this.maxFontSize=Math.max(this.maxFontSize,y.maxFontSize),this.italic=y.italic,!0}};function $l(a){if(!a||a.length===0)return[];a[0].children=$l(a[0].children);const y=[a[0]];for(let b=1;b<a.length;b++)y[y.length-1].tryCoalesceWith(a[b])||(a[b].children=$l(a[b].children),y.push(a[b]));return y}function Cs(a){return a.children&&(a.children=$l(a.children)),a}function hl(a,y){if(!a)return new Hr(null,y);const b=new Hr(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const ee=[b];if(a.depth!==0){const ce=new Hr(null,{classes:"ML__strut--bottom",type:"ignore"});ce.setStyle("height",a.height+a.depth,"em"),ce.setStyle("vertical-align",-a.depth,"em"),ee.push(ce)}return ee.push(a),new Hr(ee,re(ae({},y),{type:"lift"}))}function bl(a){const y=Sa(a)/2,b=new Hr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Ao(a,y){var b;if(a.type==="latex"){a.height=.9,a.depth=.2,a._width=1;return}if(a.value){a.height=-1/0,a.depth=-1/0,a._width=0,a.skew=-1/0,a.italic=-1/0;for(let ee=0;ee<a.value.length;ee++){const ce=di(a.value.codePointAt(ee),y);a.height=Math.max(a.height,ce.height),a.depth=Math.max(a.depth,ce.depth),a._width+=ce.width,a.skew=ce.skew,a.italic=ce.italic}return}if(a.children&&a.children.length>0){let ee=-1/0,ce=-1/0,Te=0;for(const je of a.children)je.height>ee&&(ee=je.height),je.depth>ce&&(ce=je.depth),Te=Math.max(Te,(b=je.maxFontSize)!=null?b:0);a.height=ee,a.depth=ce,a._width=a.children.reduce((je,qe)=>je+qe.width,0),a.maxFontSize=Te}}function Ro(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const ee=[b],ce=-b.shift-b.box.depth;let Te=ce;for(let je=1;je<y.length;je++){const qe=y[je],at=-qe.shift-Te-qe.box.depth,ut=at-(b.box.height+b.box.depth);Te=Te+at,ee.push(ut),ee.push(qe),b=qe}return[ee,ce]}if("top"in a){let y=a.top;for(const b of a.children)y-=typeof b=="number"?b:b.box.height+b.box.depth;return[a.children,y]}else{if("bottom"in a)return[a.children,-a.bottom];if("firstBaseline"in a){const y=a.firstBaseline[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.firstBaseline,-y.box.depth]}else if("shift"in a){const y=a.children[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.children,-y.box.depth-a.shift]}}return[null,0]}function ns(a){var y;const[b,ee]=Ro(a);if(!b)return[[],0,0];const ce=new Hr(null,{classes:"pstrut"});let Te=0;for(const Cn of b)if(typeof Cn!="number"){const Cr=Cn.box;Te=Math.max(Te,Cr.maxFontSize,Cr.height)}Te+=2,ce.height=Te,ce.setStyle("height",Te,"em");const je=[];let qe=ee,at=ee,ut=ee,wt=0;for(const Cn of b){if(typeof Cn=="number")ut+=Cn;else{const Cr=Cn.box,li=(y=Cn.classes)!=null?y:[],br=new Hr([ce,Cr],{classes:li.join(" "),style:Cn.style});Cr.setStyle("height",Cr.height+Cr.depth,"em"),Cr.setStyle("display","inline-block"),br.setStyle("top",-Te-ut-Cr.depth,"em"),Cn.marginLeft&&br.setStyle("margin-left",Cn.marginLeft,"em"),Cn.marginRight&&br.setStyle("margin-right",Cn.marginRight,"em"),je.push(br),ut+=Cr.height+Cr.depth,wt=Math.max(wt,br.width)}qe=Math.min(qe,ut),at=Math.max(at,ut)}je.forEach(Cn=>{Cn.softWidth=wt});const Ut=new Hr(je,{classes:"vlist"});if(Ut.softWidth=wt,Ut.height=at,Ut.setStyle("height",at,"em"),qe>=0)return[[new Hr(Ut,{classes:"vlist-r"})],at,-qe];const Yt=new Hr(new Hr(null),{classes:"vlist"});Yt.height=-qe,Yt.setStyle("height",-qe,"em");const vn=new Hr(8203,{classes:"vlist-s",maxFontSize:0});return vn.softWidth=0,vn.height=0,vn.depth=0,[[new Hr([Ut,vn],{classes:"vlist-r"}),new Hr(Yt,{classes:"vlist-r"})],at,-qe]}var Ya=class extends Hr{constructor(a,y){var b;const[ee,ce,Te]=ns(a);super(ee.length===1?ee[0]:ee,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(ee.length===2?" vlist-t2":"")}),this.height=ce,this.depth=Te,this.softWidth=ee.reduce((je,qe)=>Math.max(je,qe.width),0)}};function Ns(a,y){var b,ee,ce,Te,je;const qe=a.metrics,at=new Hr(y.base),ut=(b=y.baseShift)!=null?b:0,wt=(ee=y.slant)!=null?ee:0;let Ut=0,Yt=0;y.above&&(Ut=(ce=y.aboveShift)!=null?ce:Math.max(qe.bigOpSpacing1,qe.bigOpSpacing3-y.above.depth)),y.below&&(Yt=(Te=y.belowShift)!=null?Te:Math.max(qe.bigOpSpacing2,qe.bigOpSpacing4-y.below.height));let vn=null;if(y.below&&y.above){const Cn=qe.bigOpSpacing5+y.below.height+y.below.depth+Yt+at.depth+ut;vn=new Ya({bottom:Cn,children:[qe.bigOpSpacing5,{box:y.below,marginLeft:-wt,classes:["ML__center"]},Yt,{box:at,classes:["ML__center"]},Ut,{box:y.above,marginLeft:wt,classes:["ML__center"]},qe.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)vn=new Ya({top:at.height-ut,children:[qe.bigOpSpacing5,{box:y.below,marginLeft:-wt,classes:["ML__center"]},Yt,{box:at,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const Cn=at.depth+ut;vn=new Ya({bottom:Cn,children:[{box:at,classes:["ML__center"]},Ut,{box:y.above,marginLeft:wt,classes:["ML__center"]},qe.bigOpSpacing5]}).wrap(a)}else{const Cn=at.depth+ut;vn=new Ya({bottom:Cn,children:[{box:at},qe.bigOpSpacing5]}).wrap(a)}return new Hr(vn,{type:(je=y.type)!=null?je:"op"})}var oo=7,Os=6,Ks=5,Us=4,kl=3,Es=2,_l=1,Ms=0,Hs=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const ee={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(Ua).reduce((ce,Te)=>re(ae({},ce),{[Te]:Ua[Te][ee]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return ks[[Ms,_l,Ms,_l,Es,kl,Es,kl][this.id]]}get sub(){return ks[[Ms,Ms,Ms,Ms,Es,Es,Es,Es][this.id]]}get fracNum(){return ks[[Ms,_l,Ms,_l,Es,kl,Us,Ks][this.id]]}get fracDen(){return ks[[Ms,Ms,Ms,Ms,Es,Es,Us,Us][this.id]]}get cramp(){return ks[[Ms,Ms,Es,Es,Us,Us,Os,Os][this.id]]}get isTight(){return this.sizeDelta<0}},Ws={7:new Hs(oo,0,!1),6:new Hs(Os,0,!0),5:new Hs(Ks,0,!1),4:new Hs(Us,0,!0),3:new Hs(kl,-3,!1),2:new Hs(Es,-3,!0),1:new Hs(_l,-4,!1),0:new Hs(Ms,-4,!0)},ks=re(ae({},Ws),{displaystyle:Ws[oo],textstyle:Ws[Ks],scriptstyle:Ws[kl],scriptscriptstyle:Ws[_l]});function ms(a,y){var b;if(!a)return 0;const ee={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:Yi,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(b=a.unit)!=null?b:"pt"];if(Number.isFinite(y)){const ce=lu(10,y);return Math.round(a.dimension/Yi*ee*ce)/ce}return a.dimension*ee}function ls(a,y){if(a===null)return 0;const b=ms(a)/Yi;if(Number.isFinite(y)){const ee=lu(10,y);return Math.round(b*ee)/ee}return b}function Yl(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function Ec(a){let y=Yl(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Yl(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Yl(a.shrink)}`),y}function hs(a){var y,b;if(a==null)return null;let ee="";if("dimension"in a&&(ee=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(ee=Ec(a)),"number"in a)if(!("base"in a)||a.base==="decimal")ee=Number(a.number).toString();else if(a.base==="alpha")ee=`\`${String.fromCodePoint(a.number)}`;else{const ce=Math.round(a.number)>>>0;a.base==="hexadecimal"?(ee=Number(ce).toString(16).toUpperCase(),ce<=255?ee=ee.padStart(2,"0"):ce<=65535?ee=ee.padStart(4,"0"):ce<=16777215?ee=ee.padStart(6,"0"):ee=ee.padStart(8,"0"),ee=`"${ee}`):a.base==="octal"&&(ee=Number(ce).toString(8),ce<=63?ee=ee.padStart(2,"0"):ce<=30583?ee=ee.padStart(4,"0"):ee=ee.padStart(8,"0"),ee=`'${ee}`)}return"register"in a&&("factor"in a&&(a.factor===-1?ee="-":a.factor!==1&&(ee=Number(a.factor).toString())),"global"in a&&a.global&&(ee+="\\global"),ee+=`\\${a.register}`),"string"in a&&(ee=a.string),(b=a.relax)!=null&&b&&(ee+="\\relax"),ee}function ll(a,y){return a==null?null:"number"in a?re(ae({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?re(ae({},a),{factor:a.factor*y}):re(ae({},a),{factor:y}):"dimension"in a?re(ae({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:ll(a.glue,y),shrink:ll(a.shrink,y),grow:ll(a.grow,y)}:a.shrink?{glue:ll(a.glue,y),shrink:ll(a.shrink,y)}:a.grow?{glue:ll(a.glue,y),grow:ll(a.grow,y)}:{glue:ll(a.glue,y)}:null}var Pu={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function Mc(){return ae({},Pu)}function vo(){return{registers:Mc(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ye.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Pe,backgroundColorMap:Le,getMacro:a=>en(a,_t())}}var va=class km{constructor(y,b){var ee,ce,Te,je,qe,at,ut,wt,Ut,Yt,vn,Cn,Cr,li,br;let Ur;y!=null&&y.parent?(this.parent=y.parent,Ur=y.parent,this.registers={}):(Ur=ae(ae({},vo()),(ee=y==null?void 0:y.from)!=null?ee:{}),this.registers=Ur.registers),Ur.atomIdsSettings&&(this.atomIdsSettings=ae({},Ur.atomIdsSettings)),this.renderPlaceholder=Ur.renderPlaceholder,this.isPhantom=(je=(Te=y==null?void 0:y.isPhantom)!=null?Te:(ce=this.parent)==null?void 0:ce.isPhantom)!=null?je:!1,this.letterShapeStyle=Ur.letterShapeStyle,this.minFontScale=Ur.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(at=(qe=this.parent)==null?void 0:qe.color)!=null?at:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(wt=(ut=this.parent)==null?void 0:ut.backgroundColor)!=null?wt:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Ut=this.parent)==null?void 0:Ut.size)?this.size=b.fontSize:this.size=(vn=(Yt=this.parent)==null?void 0:Yt.size)!=null?vn:Hi;let hi=(Cr=(Cn=this.parent)==null?void 0:Cn.mathstyle)!=null?Cr:ks.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(Ur instanceof km)switch(y.mathstyle){case"cramp":hi=hi.cramp;break;case"superscript":hi=hi.sup;break;case"subscript":hi=hi.sub;break;case"numerator":hi=hi.fracNum;break;case"denominator":hi=hi.fracDen;break}switch(y.mathstyle){case"textstyle":hi=ks.textstyle;break;case"displaystyle":hi=ks.displaystyle;break;case"scriptstyle":hi=ks.scriptstyle;break;case"scriptscriptstyle":hi=ks.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=hi,this.smartFence=Ur.smartFence,this.placeholderSymbol=Ur.placeholderSymbol,this.colorMap=(li=Ur.colorMap)!=null?li:Xr=>Xr,this.backgroundColorMap=(br=Ur.backgroundColorMap)!=null?br:Xr=>Xr,this.getMacro=Ur.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const y=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,y}scale(y){return y*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===oo||this.mathstyle.id===Os}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(ji[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(y){var b;if((b=this.registers)!=null&&b[y])return this.registers[y];if(this.parent)return this.parent.getRegister(y)}getRegisterAsNumber(y){const b=this.getRegister(y);if(typeof b=="number")return b;if(typeof b=="string")return Number(b)}getRegisterAsGlue(y){var b;if((b=this.registers)!=null&&b[y]){const ee=this.registers[y];return typeof ee=="object"&&"glue"in ee?ee:typeof ee=="object"&&"dimension"in ee?{glue:{dimension:ee.dimension}}:typeof ee=="number"?{glue:{dimension:ee}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return ls(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const ee=this.registers[y];return typeof ee=="object"&&"glue"in ee?ee.glue:typeof ee=="object"&&"dimension"in ee?ee:typeof ee=="number"?{dimension:ee}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(y)}setRegister(y,b){if(b===void 0){delete this.registers[y];return}this.registers[y]=b}evaluate(y){if(!y||!("register"in y))return y;let b=this;if("global"in y&&y.global)for(;b.parent;)b=b.parent;let ee=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(ee=y.factor);const ce=b.getRegister(y.register);if(ce===void 0)return;if(typeof ce=="string")return{string:Number(ce).toString()+ce};if(typeof ce=="number")return{number:ee*ce};const Te=b.evaluate(ce);if(Te!==void 0)return"string"in Te?{string:Number(ce).toString()+Te.string}:"number"in Te?{number:ee*Te.number}:"dimension"in Te?re(ae({},Te),{dimension:ee*Te.dimension}):"glue"in Te?re(ae({},Te),{glue:re(ae({},Te.glue),{dimension:ee*Te.glue.dimension}),shrink:Te.shrink?re(ae({},Te.shrink),{dimension:ee*Te.shrink.dimension}):void 0,grow:Te.grow?re(ae({},Te.grow),{dimension:ee*Te.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const ee=this.toDimension(y);return ee===null?0:ms(ee,b)/Yi}toNumber(y){if(y===null)return null;const b=this.evaluate(y);return b===void 0?null:"number"in b?b.number:"dimension"in b?b.dimension:"glue"in b?b.glue.dimension:"string"in b?Number(b.string):null}toColor(y){var b,ee;if(y===null)return null;const ce=this.evaluate(y);return ce===void 0?null:"string"in ce?(ee=(b=this.colorMap)==null?void 0:b.call(this,ce.string))!=null?ee:ce.string:null}toBackgroundColor(y){var b,ee;if(y===null)return null;const ce=this.evaluate(y);return ce===void 0?null:"string"in ce?(ee=(b=this.backgroundColorMap)==null?void 0:b.call(this,ce.string))!=null?ee:ce.string:null}},Ls=["body","above","below","superscript","subscript"];function Ho(a){return typeof a=="string"&&Ls.includes(a)}function Zs(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Or=class Mu{constructor(y){var b,ee,ce,Te,je,qe;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(ee=(b=y.command)!=null?b:this.value)!=null?ee:"",this.mode=(ce=y.mode)!=null?ce:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=ae({},y.style),this.displayContainsHighlight=(Te=y.displayContainsHighlight)!=null?Te:!1,this.captureSelection=(je=y.captureSelection)!=null?je:!1,this.skipBoundary=(qe=y.skipBoundary)!=null?qe:!1,y.verbatimLatex!==void 0&&y.verbatimLatex!==null&&(this.verbatimLatex=y.verbatimLatex),y.args&&(this.args=y.args),y.body&&(this.body=y.body),this._changeCounter=0}static createBox(y,b,ee){var ce;if(!b)return null;const Te=Tl(b),je=[];for(const at of Te){const ut=at[0].style,wt=cc(y,at,{style:{color:ut.color,backgroundColor:ut.backgroundColor,fontSize:ut.fontSize}});wt&&je.push(wt)}if(je.length===0)return null;const qe=((ce=ee==null?void 0:ee.classes)!=null?ce:"").trim();return je.length===1&&!qe&&!(ee!=null&&ee.type)?je[0].wrap(y):new Hr(je,{classes:qe,type:ee==null?void 0:ee.type}).wrap(y)}static serialize(y,b){return Wi.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const ee=new WeakSet;let{parent:ce}=y;for(;ce;)ee.add(ce),ce=ce.parent;for(ce=b.parent;ce;){if(ee.has(ce))return ce;ce=ce.parent}console.assert(!!ce)}static fromJson(y){return typeof y=="string"?new Mu({type:"mord",value:y,mode:"math"}):new Mu(y)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const y={};if(this.type&&(y.type=this.type),this.mode!=="math"&&(y.mode=this.mode),this.command&&this.command!==this.value&&(y.command=this.command),this.value!==void 0&&(y.value=this.value),this.style&&Object.keys(this.style).length>0&&(y.style=ae({},this.style)),this.verbatimLatex!==void 0&&(y.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(y.explicitSubsupPlacement=!0),this.isFunction&&(y.isFunction=!0),this.displayContainsHighlight&&(y.displayContainsHighlight=!0),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.skipBoundary&&(y.skipBoundary=!0),this.captureSelection&&(y.captureSelection=!0),this.args&&(y.args=ad(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(ee=>ee.type!=="first").map(ee=>ee.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=xt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?$a([Ti(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?$a([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Wi.serialize(this.body,re(ae({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Wi.serialize(this.above,y)}belowToLatex(y){return Wi.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=re(ae({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const ee=Wi.serialize(this.subscript,y);ee.length===0?b+="_{}":ee.length===1?/^[0-9]$/.test(ee)?b+=`_${ee}`:b+=`_{${ee}}`:b+=`_{${ee}}`}if(this.branch("superscript")!==void 0){const ee=Wi.serialize(this.superscript,y);ee.length===0?b+="^{}":ee.length===1?ee==="\u2032"?b+="^\\prime ":ee==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(ee)?b+=`^${ee}`:b+=`^{${ee}}`:b+=`^{${ee}}`}return b}get treeDepth(){let y=1,b=this.parent;for(;b;)b=b.parent,y+=1;return y}get inCaptureSelection(){let y=this;for(;y;){if(y.captureSelection)return!0;y=y.parent}return!1}get parentPrompt(){let y=this.parent;for(;y;){if(y.type==="prompt"&&!y.captureSelection)return y;y=y.parent}return null}branch(y){if(Ho(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Ls)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(Ho(y)),Ho(y)?(this._branches?this._branches[y]||(this._branches[y]=[this.makeFirstAtom(y)]):this._branches={[y]:[this.makeFirstAtom(y)]},this.isDirty=!0,this._branches[y]):[]}get row(){return Zs(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Zs(this.parentBranch)?this.parentBranch[1]:-1}get body(){var y;return(y=this._branches)==null?void 0:y.body}set body(y){this.setChildren(y,"body")}get superscript(){var y;return(y=this._branches)==null?void 0:y.superscript}set superscript(y){this.setChildren(y,"superscript")}get subscript(){var y;return(y=this._branches)==null?void 0:y.subscript}set subscript(y){this.setChildren(y,"subscript")}get above(){var y;return(y=this._branches)==null?void 0:y.above}set above(y){this.setChildren(y,"above")}get below(){var y;return(y=this._branches)==null?void 0:y.below}set below(y){this.setChildren(y,"below")}get computedStyle(){var y,b;const ee=typeof this.style.verbatimColor=="string",ce=typeof this.style.verbatimBackgroundColor=="string",Te=ae(ae({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete Te.variant,delete Te.variantStyle,ce||delete Te.verbatimBackgroundColor,ee||delete Te.verbatimColor,Te}applyStyle(y){this.isDirty=!0,this.style=ae(ae({},this.style),y),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const b of this.children)b.applyStyle(y)}getInitialBaseElement(){var y,b,ee;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(ee=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?ee:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(y){const b=this.branch(y);return b?(console.assert(b.length>0),console.assert(b[0].type==="first"),b.length===1):!0}setChildren(y,b){var ee;if(!y||(console.assert(Ho(b)),!Ho(b)))return;console.assert(((ee=y[0])==null?void 0:ee.type)!=="first");const ce=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ce:this._branches={[b]:ce};for(const Te of y)Te.parent=this,Te.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Mu({type:"first",mode:this.mode});return b.parent=this,b.parentBranch=y,b}addChild(y,b){console.assert(y.type!=="first"),this.createBranch(b).push(y),this.isDirty=!0,y.parent=this,y.parentBranch=b}addChildBefore(y,b){console.assert(b.parentBranch!==void 0);const ee=this.createBranch(b.parentBranch);ee.splice(ee.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const ee=this.createBranch(b.parentBranch);ee.splice(ee.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const ee=this.createBranch(b);for(const ce of y)ce.parent=this,ce.parentBranch=b,ee.push(ce);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const ee=this.createBranch(b.parentBranch);ee.splice(ee.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ce of y)ce.parent=this,ce.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(Ho(y)&&(this._branches[y]=void 0),!b)return[];for(const ee of b)ee.parent=void 0,ee.parentBranch=void 0;return console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}removeChild(y){if(console.assert(y.parent===this),y.type==="first")return;const b=this.branch(y.parentBranch),ee=b.indexOf(y);console.assert(ee>=0),b.splice(ee,1),this.isDirty=!0,y.parent=void 0,y.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:y}=this;return y[y.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:y}=this;return y[y.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const y=[];for(const b of Ls)if(this._branches[b])for(const ee of this._branches[b])y.push(...ee.children),y.push(ee);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=xt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const ee=new va({parent:y},this.style);let ce=this.createBox(ee,{classes:this.parent?"":"ML__base"});return ce?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ce=this.attachSupsub(ee,{base:ce})),ce.wrap(ee)):null}attachSupsub(y,b){var ee;const ce=b.base,Te=this.superscript,je=this.subscript;if(!Te&&!je)return ce;let qe=null,at=null;const ut=(ee=b.isCharacterBox)!=null?ee:this.isCharacterBox();let wt=0;if(Te){const Cr=new va({parent:y,mathstyle:"superscript"});qe=Mu.createBox(Cr,Te),ut||(wt=ce.height-y.metrics.supDrop*Cr.scalingFactor)}let Ut=0;if(je){const Cr=new va({parent:y,mathstyle:"subscript"});at=Mu.createBox(Cr,je),ut||(Ut=ce.depth+y.metrics.subDrop*Cr.scalingFactor)}let Yt;y.isDisplayStyle?Yt=y.metrics.sup1:y.isCramped?Yt=y.metrics.sup3:Yt=y.metrics.sup2;const vn=.5/Yi/y.scalingFactor;let Cn=null;if(at&&qe){wt=Math.max(wt,Yt,qe.depth+.25*y.metrics.xHeight),Ut=Math.max(Ut,y.metrics.sub2);const Cr=y.metrics.defaultRuleThickness;if(wt-qe.depth-(at.height-Ut)<4*Cr){Ut=4*Cr-(wt-qe.depth)+at.height;const br=.8*y.metrics.xHeight-(wt-qe.depth);br>0&&(wt+=br,Ut-=br)}const li=this.isExtensibleSymbol&&ce.italic?-ce.italic:0;Cn=new Ya({individualShift:[{box:at,shift:Ut,marginLeft:li},{box:qe,shift:-wt}]}).wrap(y)}else at&&!qe?(Ut=Math.max(Ut,y.metrics.sub1,at.height-.8*xa),Cn=new Ya({shift:Ut,children:[{box:at,marginRight:vn,marginLeft:this.isCharacterBox()?-ce.italic:0}]})):!at&&qe&&(wt=Math.max(wt,Yt,qe.depth+.25*xa),Cn=new Ya({shift:-wt,children:[{box:qe,marginRight:vn}]}));return new Hr([ce,new Hr(Cn,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const ee=this.superscript?Mu.createBox(new va({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ce=this.subscript?Mu.createBox(new va({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!ee&&!ce?b.base.wrap(y):Ns(y,re(ae({},b),{above:ee,below:ce}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let ee=this.parent;for(;ee&&!ee.captureSelection;)ee=ee.parent;return ee!=null&&ee.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var ee,ce,Te,je;const qe=(ee=this.value)!=null?ee:this.body,at=(ce=b==null?void 0:b.boxType)!=null?ce:sl(this.type);let ut=(Te=b==null?void 0:b.classes)!=null?Te:"";this.mode==="text"&&(ut+=" ML__text");const wt=typeof qe=="string"||qe===void 0?new Hr(qe!=null?qe:null,{type:at,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:re(ae({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:ut}):(je=Mu.createBox(y,qe,{type:at,classes:ut}))!=null?je:new Hr(null);return y.isTight&&(wt.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(wt.italic=0),wt.right=wt.italic,this.bind(y,wt),this.caret&&!this.superscript&&!this.subscript&&(wt.caret=this.caret),wt}isDigit(){var y;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((y=this.body)==null?void 0:y.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var y;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((y=this.body)==null?void 0:y.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function Tl(a){let y;const b=[];let ee=[];for(const ce of a)if(!y&&!ce.style)ee.push(ce);else{const Te=ce.computedStyle;y&&Te.color===y.color&&Te.backgroundColor===y.backgroundColor&&Te.fontSize===y.fontSize?ee.push(ce):(ee.length>0&&b.push(ee),ee=[ce],y=Te)}return ee.length>0&&b.push(ee),b}function cc(a,y,b){var ee,ce,Te,je,qe;if(!y||y.length===0)return null;const at=new va({parent:a},b.style),ut=!((ee=at.atomIdsSettings)!=null&&ee.groupNumbers);let wt=[];if(y.length===1){const Yt=y[0],vn=Yt.render(at);vn&&(ut&&Yt.isSelected&&vn.selected(!0),wt=[vn])}else{let Yt="",vn=!0;for(const Cn of y){(ce=at.atomIdsSettings)!=null&&ce.groupNumbers&&Yt&&(vn&&Cn.isDigit()||!vn&&Lu(Cn))&&(at.atomIdsSettings.overrideID=Yt);const Cr=Cn.render(at);at.atomIdsSettings&&(at.atomIdsSettings.overrideID=void 0),Cr&&((Te=at.atomIdsSettings)!=null&&Te.groupNumbers&&((Cn.isDigit()||Lu(Cn))&&(!Yt||vn!==Cn.isDigit())&&(vn=Cn.isDigit(),Yt=(je=Cn.id)!=null?je:""),Yt&&(!(Cn.isDigit()||Lu(Cn))||!Cn.hasEmptyBranch("superscript")||!Cn.hasEmptyBranch("subscript"))&&(Yt="")),ut&&Cn.isSelected&&Cr.selected(!0),wt.push(Cr))}}if(wt.length===0)return null;const Ut=new Hr(wt,re(ae({isTight:at.isTight},b),{type:(qe=b.type)!=null?qe:"lift"}));return Ut.isSelected=wt.every(Yt=>Yt.isSelected),Ut.wrap(at)}function Lu(a){return a.mode==="text"}function ad(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Or?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var uc=class _m extends Or{constructor(y,b,ee){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(ee)}static fromJson(y){return new _m(y.command,y.value,y.style)}render(y){const b=this.createBox(y);return this.caret&&(b.caret=this.caret),b}_serialize(y){var b;return(b=this.verbatimLatex)!=null?b:an("text",this.value.codePointAt(0))}};function pu(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let ee=0;for(;ee<b&&Od(a.ranges[ee],y.ranges[ee])==="equal";)ee++;return ee===b?"equal":"different"}}return"different"}function Od(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Vs(a){let y=1/0,b=-1/0;for(const ee of a.ranges)y=Math.min(y,ee[0],ee[1]),b=Math.max(b,ee[0],ee[1]);return[y,b]}function Hl(a){return typeof a=="number"&&!Number.isNaN(a)}function mu(a){return Array.isArray(a)&&a.length===2}function Ru(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function Id(a,y){const b=a.at(y);let ee;if(b){ee=b.mode;let ce=b.parent;for(;!ee&&ce;)ce&&(ee=ce.mode),ce=ce.parent}return ee}function Dd(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,ee=!1,ce=!1,Te=!1,je=!1,qe=!1,at=!1,ut=!1,wt=!1,Ut=!1,Yt=!1,vn=!1,Cn=!1,Cr=!1,li=!1,br=a[0],Ur=0;for(;br!=null&&br.type&&/^(subsup|placeholder)$/.test(br.type);)Ur+=1,br=a[Ur];return b=!br||br.type==="first",br&&(Cr=br.mode==="text",ee=!Cr&&br.type==="mord"&&ze.test(br.value),ce=!Cr&&br.type==="mord"&&/\d+$/.test(br.value),Te=!Cr&&br.isFunction,je=br.type==="genfrac",qe=br.type==="surd",at=br.type==="mbin",ut=br.type==="mrel",wt=br.type==="mop"||br.type==="operator"||br.type==="extensible-symbol",Ut=br.type==="mpunct"||br.type==="minner",Yt=br.type==="array",vn=br.type==="mopen",Cn=br.type==="mclose"||br.type==="leftright",li=br.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&ee||y.after.includes("digit")&&ce||y.after.includes("function")&&Te||y.after.includes("frac")&&je||y.after.includes("surd")&&qe||y.after.includes("binop")&&at||y.after.includes("relop")&&ut||y.after.includes("operator")&&wt||y.after.includes("punct")&&Ut||y.after.includes("array")&&Yt||y.after.includes("openfence")&&vn||y.after.includes("closefence")&&Cn||y.after.includes("text")&&Cr||y.after.includes("space")&&li?y.value:""}function Nu(a,y,b){return b?Dd(a,b[y]):""}var vu={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function Gc(a,y){var b;let ee=(b=y==null?void 0:y.format)!=null?b:"auto";return ee==="auto"&&([ee,a]=Pd(a)),ee==="ascii-math"?(a=a.replace(/\u2061/gu,""),a=a.replace(/\u3016/gu,"{"),a=a.replace(/\u3017/gu,"}"),a=a.replace(/([^\\])sinx/g,"$1\\sin x"),a=a.replace(/([^\\])cosx/g,"$1\\cos x "),a=a.replace(/\u2013/g,"-"),["ascii-math",xl(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function xl(a,y){var b,ee,ce;if(!a)return"";let Te=!1,je;const qe=(b=y.inlineShortcuts)!=null?b:vu;if(!Te&&(a.startsWith("^")||a.startsWith("_"))&&(je=mc(a.slice(1),{inlineShortcuts:qe,noWrap:!0}),a=a[0]+"{"+je.match+"}",a+=xl(je.rest,y),Te=!0),Te||(je=a.match(/^(sqrt|\u221A)(.*)/),je&&(je=mc(je[2],{inlineShortcuts:qe,noWrap:!0}),a="\\sqrt{"+((ee=je.match)!=null?ee:"\\placeholder{}")+"}",a+=xl(je.rest,y),Te=!0)),Te||(je=a.match(/^(\\cbrt|\u221B)(.*)/),je&&(je=mc(je[2],{inlineShortcuts:qe,noWrap:!0}),a="\\sqrt[3]{"+((ce=je.match)!=null?ce:"\\placeholder{}")+"}",a+=xl(je.rest,y),Te=!0)),Te||(je=a.match(/^abs(.*)/),je&&(je=mc(je[1],{inlineShortcuts:qe,noWrap:!0}),a="\\left|"+je.match+"\\right|",a+=xl(je.rest,y),Te=!0)),Te||(je=a.match(/^["”“](.*?)["”“](.*)/),je&&(a="\\text{"+je[1]+"}",a+=xl(je[2],y),Te=!0)),Te||(je=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),je&&(a=od(je[1],qe),a+=xl(je[2],y),Te=!0)),!Te&&/^([fgh])[^a-zA-Z]/.test(a)&&(je=mc(a.slice(1),{inlineShortcuts:qe,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+je.match+"\\right)":a[0]+je.match,a+=xl(je.rest,y),Te=!0),Te||(je=a.match(/^([a-zA-Z]+)(.*)/),je&&(a=od(je[1],qe),a+=xl(je[2],y),Te=!0)),!Te)if(je=mc(a,{inlineShortcuts:qe,noWrap:!0}),je.match&&je.rest[0]==="/"){const at=mc(je.rest.slice(1),{inlineShortcuts:qe,noWrap:!0});at.match&&(a="\\frac{"+je.match+"}{"+at.match+"}"+xl(at.rest,y)),Te=!0}else je.match&&(a=a.startsWith("(")?"\\left("+je.match+"\\right)"+xl(je.rest,y):je.match+xl(je.rest,y),Te=!0);return Te||(je=a.match(/^(\s+)(.*)$/),je&&(a=" "+xl(je[2],y),Te=!0)),a}function mc(a,y){let b="";a=a.trim();let ee=a,ce=a.charAt(0),Te={"(":")","{":"}","[":"]"}[ce];if(Te){let je=1,qe=1;for(;qe<a.length&&je>0;)a[qe]===ce&&je++,a[qe]===Te&&je--,qe++;je===0?(y.noWrap&&ce==="("?b=xl(a.substring(1,qe-1),y):(ce==="{"&&Te==="}"&&(ce="\\{",Te="\\}"),b="\\left"+ce+xl(a.substring(1,qe-1),y)+"\\right"+Te),ee=a.slice(Math.max(0,qe))):(b=a.substring(1,qe),ee="")}else{let je=a.match(/^([a-zA-Z]+)/);if(je){let qe=Nu(null,a,y.inlineShortcuts);if(qe)return qe=qe.replace("_{#?}",""),qe=qe.replace("^{#?}",""),{match:qe,rest:a.slice(qe.length)}}if(je=a.match(/^([a-zA-Z])/),je)return{match:je[1],rest:a.slice(1)};if(je=a.match(/^(-)?\d+(\.\d*)?/),je)return{match:je[0],rest:a.slice(je[0].length)};/^\\(left|right)/.test(a)||(je=a.match(/^(\\[a-zA-Z]+)/),je&&(ee=a.slice(je[1].length),b=je[1]))}return{match:b,rest:ee}}function od(a,y){let b=Nu(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var sd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function kc(a){const y=a.trim();for(const b of sd)if(y.startsWith(b[0])&&y.endsWith(b[1]))return[!0,y.substring(b[0].length,y.length-b[1].length)];return[!1,a]}function Pd(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=kc(a),y?["latex",a]:a.startsWith("`")&&a.endsWith("`")?(a=a.substring(1,a.length-1),["ascii-math",a]):a.includes("\\")?["latex",a]:/\$.+\$/.test(a)?["latex",`\\text{${a}}`]:[void 0,a]}var gu="$$",Bu="$$",ld=(a,y,b)=>(sd.some(ee=>y.startsWith(ee[0])&&y.endsWith(ee[1]))||(y=`${gu} ${y} ${Bu}`),y),ju=class dh{constructor(y){dh._modes[y]=this}static onPaste(y,b,ee){var ce;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof ee=="string"){const je=new DataTransfer;je.setData("text/plain",ee),ee=je}const Te=new ClipboardEvent("paste",{clipboardData:ee,cancelable:!0});return(ce=b.host)!=null&&ce.dispatchEvent(Te)?dh._modes[y].onPaste(b,ee):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ee=y.model,ce=ee.selectionIsCollapsed?[0,ee.lastOffset]:Vs(ee.selection),Te=ee.getValue(ce,b);navigator.clipboard.writeText(Te).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var ee;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ce=y.model,Te=ce.selectionIsCollapsed?[0,ce.lastOffset]:Vs(ce.selection);let je=ce.getAtoms(Te);if(je.every(qe=>qe.mode==="text"||!qe.mode))b.clipboardData.setData("text/plain",je.filter(qe=>qe instanceof uc).map(qe=>qe.value).join(""));else if(je.every(qe=>qe.mode==="latex"))b.clipboardData.setData("text/plain",ce.getAtoms(Te,{includeChildren:!0}).map(qe=>{var at;return(at=qe.value)!=null?at:""}).join(""));else{let qe;je.length===1&&je[0].verbatimLatex!==void 0?qe=je[0].verbatimLatex:qe=ce.getValue(Te,"latex-expanded"),b.clipboardData.setData("application/x-latex",qe);try{b.clipboardData.setData("text/plain",y.options.onExport(y,qe,Te))}catch(at){}if(je.length===1){const at=je[0];(at.type==="root"||at.type==="group")&&(je=at.body.filter(ut=>ut.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(je.map(at=>at.toJson())))}catch(at){}if((ee=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&ee.ComputeEngine){const at=window.MathfieldElement.computeEngine;if(at)try{const ut=at.jsonSerializationOptions;at.jsonSerializationOptions={metadata:["latex"]};const wt=at.parse(ce.getValue(Te,"latex-unstyled"));at.jsonSerializationOptions=ut;const Ut=JSON.stringify(wt.json);Ut&&b.clipboardData.setData("application/json",Ut)}catch(ut){}}}b.preventDefault()}static insert(y,b,ee={}){var ce;const Te=ee.mode==="auto"?y.mode:(ce=ee.mode)!=null?ce:y.mode;return dh._modes[Te].insert(y,b,ee)}onPaste(y,b){return!1}insert(y,b,ee){return!1}};ju._modes={};var Wa=ju,Ld=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Fu={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function Jl(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function oc(a){var y,b;return(b=(y=a.querySelector(".ML__caret"))!=null?y:a.querySelector(".ML__text-caret"))!=null?b:a.querySelector(".ML__latex-caret")}function vc(a){const y=oc(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function yu(a){var y;if(!a.parent)return"root";let b=(y=a.parent.id)!=null?y:"";return b+=typeof a.parentBranch=="string"?"-"+a.parentBranch:`-${a.parentBranch[0]}/${a.parentBranch[0]}`,b}function $u(a,y,b){if(!y)return null;const ee=a.field.getBoundingClientRect(),ce=y.right-y.left,Te=y.bottom-y.top,je=Math.ceil(y.left-ee.left+a.field.scrollLeft*b),qe=Math.ceil(y.top-ee.top);return{left:je,right:je+ce,top:qe,bottom:qe+Te}}function bu(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),ee={top:y.top-1,bottom:y.bottom,left:y.left,right:y.right-1+b};if(a.children.length===0||a.tagName.toUpperCase()==="SVG")return ee;for(const ce of a.children)if(ce.nodeType===1&&"atomId"in ce.dataset&&!ce.classList.contains("pstrut")){const Te=bu(ce);ee.left=Math.min(ee.left,Te.left),ee.right=Math.max(ee.right,Te.right),ee.top=Math.min(ee.top,Te.top),ee.bottom=Math.max(ee.bottom,Te.bottom)}return ee}function Fc(a,y){var b,ee;if(!y.id)return null;let ce=(ee=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?ee:null;if(ce!==null)return ce;const Te=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ce=Te?bu(Te):null,a.atomBoundsCache&&(ce?a.atomBoundsCache.set(y.id,ce):a.atomBoundsCache.delete(y.id)),ce!=null?ce:null}function Rd(a,y,b){const ee=new Map;for(const ce of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ce.style.backgroundColor)continue;const Te=a.field,je=Te.offsetWidth;let at=Math.floor(Te.getBoundingClientRect().width)/je;at=isNaN(at)?1:at;const ut=$u(a,Fc(a,ce),at);if(ut){const wt=yu(ce);if(ee.has(wt)){const Ut=ee.get(wt);ee.set(wt,{left:Math.min(Ut.left,ut.left),right:Math.max(Ut.right,ut.right),top:Math.min(Ut.top,ut.top),bottom:Math.max(Ut.bottom,ut.bottom)})}else ee.set(wt,ut)}}return[...ee.values()]}function Bo(a,y){return a.model.selection.ranges.reduce((b,ee)=>b.concat(...Rd(a,ee,y)),[])}function as(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Rl(a){let y=0,b=0;const ee=a.offsetWidth,ce=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,ee,ce)}var gc=`@keyframes ML__caret-blink {
|
|
|
0%,
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
50% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
.ML__container {
|
|
|
display: inline-flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
min-height: 39px;
|
|
|
/* Need some room for the virtual keyboard toggle */
|
|
|
width: 100%;
|
|
|
/* Encourage browsers to consider allocating a hardware accelerated
|
|
|
layer for this element. */
|
|
|
isolation: isolate;
|
|
|
/* Prevent the browser from trying to interpret touch gestures in the field */
|
|
|
/* "Disabling double-tap to zoom removes the need for browsers to
|
|
|
delay the generation of click events when the user taps the screen." */
|
|
|
touch-action: none;
|
|
|
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_selection-color: var(--selection-color, #000);
|
|
|
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
|
|
|
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
|
|
|
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
|
|
|
--_smart-fence-color: var(--smart-fence-color, currentColor);
|
|
|
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
|
|
|
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
|
|
|
--_correct-color: var(--correct-color, #10a000);
|
|
|
--_incorrect-color: var(--incorrect-color, #a01b00);
|
|
|
--_composition-background-color: var(--composition-background-color, #fff1c2);
|
|
|
--_composition-text-color: var(--composition-text-color, black);
|
|
|
--_composition-underline-color: var(--composition-underline-color, transparent);
|
|
|
}
|
|
|
/* This is the actual field content (formula) */
|
|
|
.ML__content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
align-self: center;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
padding: 2px 3px 2px 1px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle,
|
|
|
.ML__menu-toggle {
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
flex-shrink: 0;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
width: 34px;
|
|
|
height: 34px;
|
|
|
padding: 0;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
/* Avoid some weird blinking with :hover */
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid transparent;
|
|
|
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
color: hsl(var(--_hue), 40%, 50%);
|
|
|
fill: currentColor;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:hover,
|
|
|
.ML__menu-toggle:hover {
|
|
|
background: hsla(0, 0%, 70%, 0.3);
|
|
|
color: #333;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle > span,
|
|
|
.ML__menu-toggle > span {
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
/* The invisible element used to capture keyboard events. We're just trying
|
|
|
really hard to make sure it doesn't show. */
|
|
|
.ML__keyboard-sink {
|
|
|
display: inline-block;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
/* Need these for Microsoft Edge */
|
|
|
position: fixed;
|
|
|
clip: rect(0 0 0 0);
|
|
|
/* Need this to prevent iOS Safari from auto-zooming */
|
|
|
font-size: 1em;
|
|
|
font-family: KaTeX_Main;
|
|
|
line-height: 0.5;
|
|
|
/* On Chromium, if this is 0, no keyboard events are received */
|
|
|
}
|
|
|
[part="placeholder"] {
|
|
|
color: var(--neutral-400);
|
|
|
}
|
|
|
.ML__composition {
|
|
|
background: var(--_composition-background-color);
|
|
|
color: var(--_composition-text-color);
|
|
|
text-decoration: underline var(--_composition-underline-color);
|
|
|
}
|
|
|
.ML__caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__text-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__latex-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_latex-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.019em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__focused .ML__latex-caret::after,
|
|
|
.ML__focused .ML__text-caret::after,
|
|
|
.ML__focused .ML__caret::after {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.ML__focused .ML__text {
|
|
|
background: var(--_text-highlight-background-color);
|
|
|
}
|
|
|
/* When using smartFence, the anticipated closing fence is displayed
|
|
|
with this style */
|
|
|
.ML__smart-fence__close {
|
|
|
opacity: var(--_smart-fence-opacity);
|
|
|
color: var(--_smart-fence-color);
|
|
|
}
|
|
|
.ML__selected,
|
|
|
.ML__focused .ML__selected .ML__contains-caret,
|
|
|
.ML__focused .ML__selected .ML__smart-fence__close,
|
|
|
.ML__focused .ML__selected .ML__placeholder {
|
|
|
color: var(--_selection-color);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
.ML__selection {
|
|
|
box-sizing: border-box;
|
|
|
background: var(--_selection-background-color) !important;
|
|
|
}
|
|
|
.ML__contains-caret.ML__close,
|
|
|
.ML__contains-caret.ML__open,
|
|
|
.ML__contains-caret > .ML__close,
|
|
|
.ML__contains-caret > .ML__open,
|
|
|
.ML__contains-caret .ML__sqrt-sign,
|
|
|
.ML__contains-caret .ML__sqrt-line {
|
|
|
color: var(--_caret-color);
|
|
|
}
|
|
|
.ML__contains-highlight {
|
|
|
box-sizing: border-box;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__focused .ML__contains-highlight {
|
|
|
background: var(--_contains-highlight-background-color);
|
|
|
}
|
|
|
.ML__raw-latex {
|
|
|
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
font-weight: 400;
|
|
|
font-size: 0.8em;
|
|
|
letter-spacing: -0.05em;
|
|
|
color: var(--_latex-color);
|
|
|
}
|
|
|
.ML__suggestion {
|
|
|
color: var(--neutral-500);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:focus {
|
|
|
outline: none;
|
|
|
border-radius: 8px;
|
|
|
border: 2px solid hsl(var(--_hue), 40%, 50%);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-pressed,
|
|
|
.ML__virtual-keyboard-toggle.is-active:hover,
|
|
|
.ML__virtual-keyboard-toggle.is-active {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to automatically show a
|
|
|
tooltip over a element on hover.
|
|
|
*/
|
|
|
[data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
[data-tooltip]::after {
|
|
|
content: attr(data-tooltip);
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
z-index: 2;
|
|
|
pointer-events: none;
|
|
|
right: auto;
|
|
|
top: calc(-100% - 4px);
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
border-radius: 4px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
text-align: center;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-style: normal;
|
|
|
font-weight: 400;
|
|
|
font-size: 13px;
|
|
|
/* Phone */
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
@media only screen and (max-width: 767px) {
|
|
|
[data-tooltip]::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
menu [data-tooltip]::after {
|
|
|
left: 100%;
|
|
|
top: 0%;
|
|
|
}
|
|
|
menu .ML__base {
|
|
|
cursor: default;
|
|
|
}
|
|
|
/** Don't display if we're tracking, i.e. have the pointer down */
|
|
|
.tracking [data-tooltip]:hover::after {
|
|
|
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
/** But do display if tracking and inside a menu */
|
|
|
.tracking menu li[data-tooltip]:hover::after,
|
|
|
[data-tooltip]:hover::after {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
transition-property: opacity, scale;
|
|
|
transition-duration: 0.15s;
|
|
|
transition-delay: 1s;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__prompt {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.ML__editablePromptBox {
|
|
|
outline: 1px solid #acacac;
|
|
|
border-radius: 2px;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__focusedPromptBox {
|
|
|
outline: highlight auto 1px;
|
|
|
}
|
|
|
.ML__lockedPromptBox {
|
|
|
background-color: rgba(142, 142, 141, 0.4);
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__correctPromptBox {
|
|
|
outline: 1px solid var(--_correct-color);
|
|
|
box-shadow: 0 0 5px var(--_correct-color);
|
|
|
}
|
|
|
.ML__incorrectPromptBox {
|
|
|
outline: 1px solid var(--_incorrect-color);
|
|
|
box-shadow: 0 0 5px var(--_incorrect-color);
|
|
|
}
|
|
|
.variant-submenu {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
.variant-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
text-align: center;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.insert-matrix-submenu {
|
|
|
display: grid;
|
|
|
padding: 8px;
|
|
|
align-content: center;
|
|
|
justify-content: center;
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
}
|
|
|
.insert-matrix-submenu [part=menu-item] {
|
|
|
font-size: 21px;
|
|
|
border: none;
|
|
|
border-radius: 0;
|
|
|
line-height: 21px;
|
|
|
text-align: center;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.border-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
line-height: 1.2;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.swatches-submenu {
|
|
|
--_swatch-size: 2rem;
|
|
|
--_columns: 4;
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
padding: 8px;
|
|
|
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.menu-swatch {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
box-sizing: border-box;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
margin: 2px;
|
|
|
padding: 0;
|
|
|
background: var(--neutral-200);
|
|
|
}
|
|
|
.menu-swatch > .label {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
.menu-swatch > .label > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
min-width: var(--_swatch-size);
|
|
|
min-height: var(--_swatch-size);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.menu-swatch.active {
|
|
|
background: var(--neutral-100);
|
|
|
scale: 1.4;
|
|
|
}
|
|
|
.menu-swatch.active > .label > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.menu-swatch .ui-checkmark,
|
|
|
.menu-swatch .ui-mixedmark {
|
|
|
position: absolute;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
color: white;
|
|
|
}
|
|
|
.menu-swatch.dark-contrast .ui-checkmark,
|
|
|
.menu-swatch.dark-contrast .ui-mixedmark {
|
|
|
color: #000;
|
|
|
}
|
|
|
`,jo=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,cd=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,ud=`/* The element that display info while in latex mode */
|
|
|
#mathlive-suggestion-popover {
|
|
|
background-color: rgba(97, 97, 97);
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
border-radius: 8px;
|
|
|
position: fixed;
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
}
|
|
|
#mathlive-suggestion-popover.top-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-bottom: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.bottom-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
bottom: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-top: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-animated {
|
|
|
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-visible {
|
|
|
display: flex;
|
|
|
}
|
|
|
@keyframes ML__fade-in {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
/* The wrapper class for the entire content of the popover panel */
|
|
|
#mathlive-suggestion-popover ul {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
list-style: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
align-items: flex-start;
|
|
|
max-height: 400px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
margin: 8px;
|
|
|
padding: 8px;
|
|
|
width: calc(100% - 16px - 16px);
|
|
|
column-gap: 1em;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
/* Since the content can be clicked on, provide feedback on hover */
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a {
|
|
|
color: #5ea6fd;
|
|
|
padding-top: 0.3em;
|
|
|
margin-top: 0.4em;
|
|
|
display: block;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a:hover {
|
|
|
color: #5ea6fd;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li:hover,
|
|
|
#mathlive-suggestion-popover li.is-pressed,
|
|
|
#mathlive-suggestion-popover li.is-active {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
|
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
|
|
|
.ML__popover__command {
|
|
|
font-size: 1.6rem;
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
.ML__popover__current {
|
|
|
background: #5ea6fd;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.ML__popover__latex {
|
|
|
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
align-self: center;
|
|
|
}
|
|
|
/* The keyboard shortcuts for a symbol as displayed in the popover */
|
|
|
.ML__popover__keybinding {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 0.8em;
|
|
|
opacity: 0.7;
|
|
|
}
|
|
|
/* Style for the character that joins the modifiers of a keyboard shortcut
|
|
|
(usually a "+" sign)*/
|
|
|
.ML__shortcut-join {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
`,_c=`/* The element that displays the keys as the user type them */
|
|
|
#mathlive-keystroke-caption-panel {
|
|
|
visibility: hidden;
|
|
|
/*min-width: 160px;*/
|
|
|
/*background-color: rgba(97, 97, 200, .95);*/
|
|
|
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
|
|
|
border-color: var(--secondary-border, hsl(0, 0%, 91%));
|
|
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 16px;
|
|
|
position: absolute;
|
|
|
z-index: 1;
|
|
|
display: flex;
|
|
|
flex-direction: row-reverse;
|
|
|
justify-content: center;
|
|
|
--keystroke: white;
|
|
|
--on-keystroke: #555;
|
|
|
--keystroke-border: #f7f7f7;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
body:not([theme='light']) #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
}
|
|
|
body[theme='dark'] #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
#mathlive-keystroke-caption-panel > span {
|
|
|
min-width: 14px;
|
|
|
/*height: 8px;*/
|
|
|
margin: 0 8px 0 0;
|
|
|
padding: 4px;
|
|
|
background-color: var(--keystroke);
|
|
|
color: var(--on-keystroke);
|
|
|
fill: currentColor;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 1em;
|
|
|
border-radius: 6px;
|
|
|
border: 2px solid var(--keystroke-border);
|
|
|
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
|
|
|
}
|
|
|
`,dd=`.ML__keyboard {
|
|
|
--_keyboard-height: 0;
|
|
|
--_keyboard-zindex: var(--keyboard-zindex, 105);
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
|
|
|
--_padding-top: var(--keyboard-padding-top, 5px);
|
|
|
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
|
|
|
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
|
|
|
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
|
|
|
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
|
|
|
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_keycap-height: var(--keycap-height, 60px);
|
|
|
/* Keycap width (incl. margin) */
|
|
|
--_keycap-max-width: var(--keycap-max-width, 100px);
|
|
|
--_keycap-gap: var(--keycap-gap, 8px);
|
|
|
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
|
|
|
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
|
|
|
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 70px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
|
|
|
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
|
|
|
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
|
|
|
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
|
|
|
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
|
|
|
}
|
|
|
.is-math-mode .MLK__rows .if-text-mode,
|
|
|
.is-text-mode .MLK__rows .if-math-mode {
|
|
|
display: none;
|
|
|
}
|
|
|
.if-can-undo,
|
|
|
.if-can-redo,
|
|
|
.if-can-copy,
|
|
|
.if-can-cut,
|
|
|
.if-can-paste {
|
|
|
opacity: 0.4;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.can-undo .if-can-undo,
|
|
|
.can-redo .if-can-redo,
|
|
|
.can-copy .if-can-copy,
|
|
|
.can-cut .if-can-cut,
|
|
|
.can-paste .if-can-paste {
|
|
|
opacity: 1;
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
body > .ML__keyboard {
|
|
|
position: fixed;
|
|
|
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
|
|
|
border-top: 1px solid var(--_border);
|
|
|
}
|
|
|
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
|
|
|
box-shadow: none;
|
|
|
border: none;
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
|
|
|
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
|
|
|
transition-property: transform, opacity;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__keyboard {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
z-index: var(--_keyboard-zindex);
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
opacity: 1;
|
|
|
transform: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.ML__keyboard :where(div) {
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
transform: none;
|
|
|
}
|
|
|
.MLK__backdrop {
|
|
|
position: absolute;
|
|
|
bottom: calc(-1 * var(--_keyboard-height));
|
|
|
width: 100%;
|
|
|
height: var(--_keyboard-height);
|
|
|
box-sizing: border-box;
|
|
|
padding-top: var(--_padding-top);
|
|
|
padding-bottom: var(--_padding-bottom);
|
|
|
padding-left: var(--_padding-horizontal);
|
|
|
padding-right: var(--_padding-horizontal);
|
|
|
opacity: 0;
|
|
|
visibility: hidden;
|
|
|
transform: translate(0, 0);
|
|
|
background: var(--_background);
|
|
|
}
|
|
|
.backdrop-is-transparent .MLK__backdrop {
|
|
|
background: transparent;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop
|
|
|
(backdrop-is-transparent), make sure to let pointer event go through. */
|
|
|
.backdrop-is-transparent .MLK__plate {
|
|
|
background: transparent;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop, make sure to
|
|
|
allow pointer events on it. */
|
|
|
.backdrop-is-transparent .MLK__layer > div > div {
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
.ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
transform: translate(0, calc(-1 * var(--_keyboard-height)));
|
|
|
opacity: 1;
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.caps-lock-indicator {
|
|
|
display: none;
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
|
background: #0cbc0c;
|
|
|
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
|
|
|
border-radius: 8px;
|
|
|
right: 8px;
|
|
|
top: 8px;
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .caps-lock-indicator {
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .shift {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
}
|
|
|
.MLK__plate {
|
|
|
position: absolute;
|
|
|
top: var(--_padding-top);
|
|
|
left: var(--_padding-horizontal);
|
|
|
width: calc(100% - 2 * var(--_padding-horizontal));
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
box-sizing: border-box;
|
|
|
container-type: inline-size;
|
|
|
touch-action: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
pointer-events: all;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 16px;
|
|
|
/* Size of toolbar labels */
|
|
|
font-weight: 400;
|
|
|
text-shadow: none;
|
|
|
}
|
|
|
.ML__box-placeholder {
|
|
|
color: var(--_box-placeholder-color);
|
|
|
}
|
|
|
.MLK__tex {
|
|
|
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__tex-math {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.MLK__layer {
|
|
|
display: none;
|
|
|
outline: none;
|
|
|
}
|
|
|
.MLK__layer.is-visible {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
}
|
|
|
/* Keyboard layouts are made or rows of keys... */
|
|
|
.MLK__rows {
|
|
|
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
border-collapse: separate;
|
|
|
clear: both;
|
|
|
border: 0;
|
|
|
margin: 0;
|
|
|
margin-bottom: var(--_keycap-gap);
|
|
|
gap: var(--_keycap-gap);
|
|
|
/* If the styling include, e.g., some shadows, they will be
|
|
|
cut off by the overflow. In that case, set the padding to
|
|
|
compensate. */
|
|
|
padding-left: var(--_row-padding-left);
|
|
|
padding-right: var(--_row-padding-right);
|
|
|
overflow: visible;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: center;
|
|
|
width: 100%;
|
|
|
gap: var(--_keycap-gap);
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
/* For the alignment of the text on some modifiers (e.g. shift) */
|
|
|
/* Extra spacing between two adjacent keys */
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex-math {
|
|
|
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .big-op {
|
|
|
font-size: calc(1.25 * var(--_keycap-font-size));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bottom {
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .left {
|
|
|
align-items: flex-start;
|
|
|
padding-left: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .right {
|
|
|
align-items: flex-end;
|
|
|
padding-right: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w0 {
|
|
|
width: 0;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w5 {
|
|
|
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w15 {
|
|
|
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w20 {
|
|
|
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w40 {
|
|
|
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w50 {
|
|
|
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .MLK__keycap.w50 {
|
|
|
font-size: 80%;
|
|
|
padding-top: 10px;
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .separator {
|
|
|
background: transparent;
|
|
|
border: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .horizontal-rule {
|
|
|
height: 6px;
|
|
|
margin-top: 3px;
|
|
|
margin-bottom: 0;
|
|
|
width: 100%;
|
|
|
border-radius: 0;
|
|
|
border-top: var(--_horizontal-rule);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost {
|
|
|
background: var(--_toolbar-background);
|
|
|
border: none;
|
|
|
color: var(--_toolbar-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost:hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bigfnbutton {
|
|
|
font-size: var(--_keycap-extra-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift,
|
|
|
.MLK__rows > .MLK__row .action {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
background: var(--_keycap-secondary-background);
|
|
|
border-color: var(--_keycap-secondary-border);
|
|
|
border-bottom-color: var(--_keycap-secondary-border-bottom);
|
|
|
line-height: 0.8;
|
|
|
font-size: min(1rem, var(--_keycap-small-font-size));
|
|
|
font-weight: 600;
|
|
|
padding: 8px 12px 8px 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift:hover,
|
|
|
.MLK__rows > .MLK__row .action:hover {
|
|
|
background: var(--_keycap-secondary-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary {
|
|
|
background: var(--_keycap-primary-background);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary:hover {
|
|
|
background: var(--_keycap-primary-background-hover);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected,
|
|
|
.MLK__rows > .MLK__row .action.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-active,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-active {
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning {
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning svg.svg-glyph {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
/** A regular keycap
|
|
|
* Use the :where() pseudo-class to give it a very low specifity,
|
|
|
* so that it can be overriden by custom style.
|
|
|
*/
|
|
|
:where(.MLK__rows > .MLK__row div) {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: space-evenly;
|
|
|
width: calc(var(--_keycap-width) - var(--_keycap-gap));
|
|
|
height: var(--_keycap-height);
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
vertical-align: top;
|
|
|
text-align: center;
|
|
|
float: left;
|
|
|
color: var(--_keycap-text);
|
|
|
fill: currentColor;
|
|
|
font-size: var(--_keycap-font-size);
|
|
|
background: var(--_keycap-background);
|
|
|
border: 1px solid var(--_keycap-border);
|
|
|
border-bottom-color: var(--_keycap-border-bottom);
|
|
|
border-radius: 6px;
|
|
|
cursor: pointer;
|
|
|
touch-action: none;
|
|
|
/* Keys with a variants panel */
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div):hover {
|
|
|
overflow: visible;
|
|
|
background: var(--_keycap-background-hover);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) .ML__latex {
|
|
|
pointer-events: none;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
|
|
|
margin: 8px 0;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
min-height: 20px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
|
|
|
margin: 8px 0;
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
|
|
|
font-size: 25px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
z-index: calc(var(--_keyboard-zindex) - 5);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) small {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) aside {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 10px;
|
|
|
line-height: 10px;
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
|
|
|
Note there are a different set of tooltip rules for the keyboard toggle
|
|
|
(it's in a different CSS tree) */
|
|
|
.ML__keyboard [data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]::after {
|
|
|
position: absolute;
|
|
|
display: inline-table;
|
|
|
content: attr(data-tooltip);
|
|
|
top: inherit;
|
|
|
bottom: 100%;
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
z-index: 2;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
border-radius: 2px;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-weight: 400;
|
|
|
font-size: 12px;
|
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover::after {
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
}
|
|
|
.MLK__toolbar {
|
|
|
align-self: center;
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
max-width: 996px;
|
|
|
min-height: 32px;
|
|
|
/* Icons for undo/redo, etc. */
|
|
|
}
|
|
|
.MLK__toolbar svg {
|
|
|
height: 20px;
|
|
|
width: 20px;
|
|
|
}
|
|
|
.MLK__toolbar > .left {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > .right {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
/* "button" in the toolbar */
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
color: var(--_toolbar-text);
|
|
|
fill: currentColor;
|
|
|
background: var(--_toolbar-background);
|
|
|
font-size: var(--_toolbar-font-size);
|
|
|
padding: 4px 15px;
|
|
|
cursor: pointer;
|
|
|
width: max-content;
|
|
|
min-width: 42px;
|
|
|
min-height: 34px;
|
|
|
border: none;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
padding-bottom: 8px;
|
|
|
padding-top: 8px;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 4px;
|
|
|
margin-left: 4px;
|
|
|
margin-right: 4px;
|
|
|
border-radius: 8px;
|
|
|
box-shadow: none;
|
|
|
border-bottom: 2px solid transparent;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.disabled svg,
|
|
|
.MLK__toolbar > div > div.disabled:hover svg,
|
|
|
.MLK__toolbar > div > div.disabled.is-pressed svg {
|
|
|
color: var(--_toolbar-text);
|
|
|
opacity: 0.2;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:hover,
|
|
|
.MLK__toolbar > div > div:active,
|
|
|
.MLK__toolbar > div > div.is-pressed,
|
|
|
.MLK__toolbar > div > div.is-active {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
background: var(--_toolbar-background-selected);
|
|
|
border-radius: 0;
|
|
|
border-bottom-color: var(--_toolbar-text-active);
|
|
|
padding-bottom: 4px;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
/* This is the element that displays variants on press+hold */
|
|
|
.MLK__variant-panel {
|
|
|
visibility: hidden;
|
|
|
position: fixed;
|
|
|
display: flex;
|
|
|
flex-flow: row wrap-reverse;
|
|
|
justify-content: center;
|
|
|
align-content: center;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
bottom: auto;
|
|
|
top: 0;
|
|
|
box-sizing: content-box;
|
|
|
transform: none;
|
|
|
z-index: calc(var(--_keyboard-zindex) + 1);
|
|
|
touch-action: none;
|
|
|
max-width: 350px;
|
|
|
background: var(--_variant-panel-background);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 6px;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
transition: none;
|
|
|
}
|
|
|
.MLK__variant-panel.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.MLK__variant-panel.compact {
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
|
|
|
}
|
|
|
.MLK__variant-panel .item {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
font-size: var(--_variant-keycap-font-size);
|
|
|
height: var(--_variant-keycap-length);
|
|
|
width: var(--_variant-keycap-length);
|
|
|
margin: 0;
|
|
|
box-sizing: border-box;
|
|
|
border-radius: 5px;
|
|
|
border: 1px solid transparent;
|
|
|
background: transparent;
|
|
|
pointer-events: all;
|
|
|
cursor: pointer;
|
|
|
color: var(--_variant-keycap-text);
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
@media (max-height: 412px) {
|
|
|
.MLK__variant-panel .item {
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
.MLK__variant-panel .item .ML__latex {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-active {
|
|
|
background: var(--_variant-keycap-background-active);
|
|
|
color: var(--_variant-keycap-text-active);
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-pressed {
|
|
|
background: var(--_variant-keycap-background-pressed);
|
|
|
color: var(--_variant-keycap-text-pressed);
|
|
|
}
|
|
|
.MLK__variant-panel .item.small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button {
|
|
|
box-sizing: border-box;
|
|
|
background: #fbfbfb;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
width: calc(100% - 12px);
|
|
|
height: calc(100% - 12px);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover {
|
|
|
background: #f0f0f0;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.MLK__variant-panel .item.box > div,
|
|
|
.MLK__variant-panel .item.box > span {
|
|
|
border: 1px dashed rgba(0, 0, 0, 0.24);
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning {
|
|
|
min-height: 60px;
|
|
|
min-width: 60px;
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
padding: 5px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning.is-pressed,
|
|
|
.MLK__variant-panel .item .warning.is-active {
|
|
|
background: red;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning svg.svg-glyph {
|
|
|
width: 50px;
|
|
|
height: 50px;
|
|
|
}
|
|
|
.MLK__variant-panel .item aside {
|
|
|
font-size: var(--_variant-keycap-aside-font-size);
|
|
|
line-height: 12px;
|
|
|
opacity: 0.78;
|
|
|
padding-top: 2px;
|
|
|
}
|
|
|
.MLK__keycap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
right: 4px;
|
|
|
top: 4px;
|
|
|
font-size: var(--_keycap-shift-font-size);
|
|
|
color: var(--_keycap-shift-color);
|
|
|
}
|
|
|
.hide-shift .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
@media (max-width: 414px) {
|
|
|
.MLK__variant-panel {
|
|
|
max-width: 350px;
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
/* @xs breakpoint: iPhone 5 */
|
|
|
@container (max-width: 414px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--_keycap-height), 42px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
font-size: 100%;
|
|
|
margin-left: 2px;
|
|
|
margin-right: 2px;
|
|
|
}
|
|
|
.MLK__rows .shift,
|
|
|
.MLK__rows .action {
|
|
|
font-size: 65%;
|
|
|
}
|
|
|
.MLK__rows .warning svg.svg-glyph {
|
|
|
width: 14px;
|
|
|
height: 14px;
|
|
|
min-height: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 744px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--keycap-height, 52px), 52px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
}
|
|
|
.MLK__tooltip::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.fnbutton {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.bigfnbutton {
|
|
|
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.small {
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > aside {
|
|
|
display: none;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
/* Medium breakpoint: larger phones */
|
|
|
@container (max-width: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@media (max-height: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 1444px) {
|
|
|
.MLK__rows .if-wide {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
.ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
}
|
|
|
/* Same as the media query, but with a class */
|
|
|
[theme='dark'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
[theme='light'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--_keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
}
|
|
|
`,Xc=`:host {
|
|
|
--primary-color: #5898ff;
|
|
|
--primary-color-dimmed: #c0c0f0;
|
|
|
--primary-color-dark: var(--blue-500);
|
|
|
--primary-color-light: var(--blue-100);
|
|
|
--primary-color-reverse: #ffffff;
|
|
|
--secondary-color: #ff8a65;
|
|
|
--secondary-color-dimmed: #f0d5c5;
|
|
|
--secondary-color-dark: var(--orange-500);
|
|
|
--secondary-color-light: var(--orange-100);
|
|
|
--secondary-color-reverse: #ffffff;
|
|
|
--link-color: #5898ff;
|
|
|
--link-color-dimmed: #c5c5c5;
|
|
|
--link-color-dark: #121212;
|
|
|
--link-color-light: #e2e2e2;
|
|
|
--link-color-reverse: #ffffff;
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--neutral-100: #f5f5f5;
|
|
|
--neutral-200: #eeeeee;
|
|
|
--neutral-300: #e0e0e0;
|
|
|
--neutral-400: #bdbdbd;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #757575;
|
|
|
--neutral-700: #616161;
|
|
|
--neutral-800: #424242;
|
|
|
--neutral-900: #212121;
|
|
|
--red-25: #fff8f7;
|
|
|
--red-50: #fff1ef;
|
|
|
--red-100: #ffeae6;
|
|
|
--red-200: #ffcac1;
|
|
|
--red-300: #ffa495;
|
|
|
--red-400: #ff7865;
|
|
|
--red-500: #f21c0d;
|
|
|
--red-600: #e50018;
|
|
|
--red-700: #d30024;
|
|
|
--red-800: #bd002c;
|
|
|
--red-900: #a1002f;
|
|
|
--orange-25: #fffbf8;
|
|
|
--orange-50: #fff7f1;
|
|
|
--orange-100: #fff3ea;
|
|
|
--orange-200: #ffe1c9;
|
|
|
--orange-300: #ffcca2;
|
|
|
--orange-400: #ffb677;
|
|
|
--orange-500: #fe9310;
|
|
|
--orange-600: #f58700;
|
|
|
--orange-700: #ea7c00;
|
|
|
--orange-800: #dc6d00;
|
|
|
--orange-900: #ca5b00;
|
|
|
--brown-25: #fff8ef;
|
|
|
--brown-50: #fff1df;
|
|
|
--brown-100: #ffe9ce;
|
|
|
--brown-200: #ebcca6;
|
|
|
--brown-300: #cdaf8a;
|
|
|
--brown-400: #af936f;
|
|
|
--brown-500: #856a47;
|
|
|
--brown-600: #7f5e34;
|
|
|
--brown-700: #78511f;
|
|
|
--brown-800: #6e4200;
|
|
|
--brown-900: #593200;
|
|
|
--yellow-25: #fffdf9;
|
|
|
--yellow-50: #fffcf2;
|
|
|
--yellow-100: #fffaec;
|
|
|
--yellow-200: #fff2ce;
|
|
|
--yellow-300: #ffe8ab;
|
|
|
--yellow-400: #ffdf85;
|
|
|
--yellow-500: #ffcf33;
|
|
|
--yellow-600: #f1c000;
|
|
|
--yellow-700: #dfb200;
|
|
|
--yellow-800: #c9a000;
|
|
|
--yellow-900: #ad8a00;
|
|
|
--lime-25: #f4ffee;
|
|
|
--lime-50: #e9ffdd;
|
|
|
--lime-100: #ddffca;
|
|
|
--lime-200: #a8fb6f;
|
|
|
--lime-300: #94e659;
|
|
|
--lime-400: #80d142;
|
|
|
--lime-500: #63b215;
|
|
|
--lime-600: #45a000;
|
|
|
--lime-700: #268e00;
|
|
|
--lime-800: #007417;
|
|
|
--lime-900: #005321;
|
|
|
--green-25: #f5fff5;
|
|
|
--green-50: #ebffea;
|
|
|
--green-100: #e0ffdf;
|
|
|
--green-200: #a7ffa7;
|
|
|
--green-300: #5afa65;
|
|
|
--green-400: #45e953;
|
|
|
--green-500: #17cf36;
|
|
|
--green-600: #00b944;
|
|
|
--green-700: #00a34a;
|
|
|
--green-800: #008749;
|
|
|
--green-900: #00653e;
|
|
|
--teal-25: #f3ffff;
|
|
|
--teal-50: #e6fffe;
|
|
|
--teal-100: #d9fffe;
|
|
|
--teal-200: #8dfffe;
|
|
|
--teal-300: #57f4f4;
|
|
|
--teal-400: #43e5e5;
|
|
|
--teal-500: #17cfcf;
|
|
|
--teal-600: #00c2c0;
|
|
|
--teal-700: #00b5b1;
|
|
|
--teal-800: #00a49e;
|
|
|
--teal-900: #009087;
|
|
|
--cyan-25: #f7fcff;
|
|
|
--cyan-50: #eff8ff;
|
|
|
--cyan-100: #e7f5ff;
|
|
|
--cyan-200: #c2e6ff;
|
|
|
--cyan-300: #95d5ff;
|
|
|
--cyan-400: #61c4ff;
|
|
|
--cyan-500: #13a7ec;
|
|
|
--cyan-600: #069eda;
|
|
|
--cyan-700: #0095c9;
|
|
|
--cyan-800: #0088b2;
|
|
|
--cyan-900: #0a7897;
|
|
|
--blue-25: #f7faff;
|
|
|
--blue-50: #eef5ff;
|
|
|
--blue-100: #e5f1ff;
|
|
|
--blue-200: #bfdbff;
|
|
|
--blue-300: #92c2ff;
|
|
|
--blue-400: #63a8ff;
|
|
|
--blue-500: #0d80f2;
|
|
|
--blue-600: #0077db;
|
|
|
--blue-700: #006dc4;
|
|
|
--blue-800: #0060a7;
|
|
|
--blue-900: #005086;
|
|
|
--indigo-25: #f8f7ff;
|
|
|
--indigo-50: #f1efff;
|
|
|
--indigo-100: #eae7ff;
|
|
|
--indigo-200: #ccc3ff;
|
|
|
--indigo-300: #ac99ff;
|
|
|
--indigo-400: #916aff;
|
|
|
--indigo-500: #63c;
|
|
|
--indigo-600: #5a21b2;
|
|
|
--indigo-700: #4e0b99;
|
|
|
--indigo-800: #3b0071;
|
|
|
--indigo-900: #220040;
|
|
|
--purple-25: #fbf7ff;
|
|
|
--purple-50: #f8f0ff;
|
|
|
--purple-100: #f4e8ff;
|
|
|
--purple-200: #e4c4ff;
|
|
|
--purple-300: #d49aff;
|
|
|
--purple-400: #c36aff;
|
|
|
--purple-500: #a219e6;
|
|
|
--purple-600: #9000c4;
|
|
|
--purple-700: #7c009f;
|
|
|
--purple-800: #600073;
|
|
|
--purple-900: #3d0043;
|
|
|
--magenta-25: #fff8fb;
|
|
|
--magenta-50: #fff2f6;
|
|
|
--magenta-100: #ffebf2;
|
|
|
--magenta-200: #ffcddf;
|
|
|
--magenta-300: #ffa8cb;
|
|
|
--magenta-400: #ff7fb7;
|
|
|
--magenta-500: #eb4799;
|
|
|
--magenta-600: #da3689;
|
|
|
--magenta-700: #c82179;
|
|
|
--magenta-800: #b00065;
|
|
|
--magenta-900: #8a004c;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--label-color: #fff;
|
|
|
--active-label-color: #000;
|
|
|
--menu-bg: #525252;
|
|
|
--active-bg: #5898ff;
|
|
|
--active-bg-dimmed: #5c5c5c;
|
|
|
}
|
|
|
} */
|
|
|
:host {
|
|
|
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
|
|
|
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
--ui-font-size: 14px;
|
|
|
--ui-line-height: 1.5;
|
|
|
--ui-letter-spacing: 0.007em;
|
|
|
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
|
|
|
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
|
|
|
--ui-layer-1: var(--neutral-100);
|
|
|
--ui-layer-2: var(--neutral-200);
|
|
|
--ui-layer-3: var(--neutral-300);
|
|
|
--ui-layer-4: var(--neutral-400);
|
|
|
--ui-layer-5: var(--neutral-500);
|
|
|
--ui-layer-6: var(--neutral-600);
|
|
|
--ui-border-color: var(--primary-color);
|
|
|
--ui-border-radius: 4px;
|
|
|
--ui-text: var(--neutral-900);
|
|
|
--ui-text-secondary: var(--neutral-700);
|
|
|
--ui-text-placeholder: var(--neutral-500);
|
|
|
--ui-text-muted: var(--neutral-300);
|
|
|
/** A field is a UI element in which a user can type data, for
|
|
|
* example an input or textarea element.
|
|
|
*/
|
|
|
--ui-field-bg: var(--neutral-100);
|
|
|
--ui-field-bg-hover: var(--neutral-100);
|
|
|
--ui-field-bg-disabled: var(--neutral-300);
|
|
|
--ui-field-bg-invalid: var(--red-100);
|
|
|
--ui-field-bg-focus: var(--neutral-100);
|
|
|
--ui-field-border: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-hover: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-disabled: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-invalid: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-focus: 0.5px solid var(--border-color);
|
|
|
--ui-menu-bg: var(--neutral-100);
|
|
|
--ui-menu-text: var(--neutral-900);
|
|
|
--ui-menu-bg-hover: var(--neutral-200);
|
|
|
--ui-menu-text-hover: var(--neutral-900);
|
|
|
/** The \`active\` state is used for the state of menu items
|
|
|
* when they are selected.
|
|
|
*/
|
|
|
--ui-menu-bg-active: var(--primary-color);
|
|
|
--ui-menu-text-active: var(--primary-color-reverse);
|
|
|
/** The \`active-muted\` set is used for the state of
|
|
|
* submenus when they are open.
|
|
|
*/
|
|
|
--ui-menu-bg-active-muted: var(--neutral-300);
|
|
|
--ui-menu-text-active-muted: var(--neutral-900);
|
|
|
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
|
|
|
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
|
|
|
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
|
|
|
--ui-menu-divider: 0.5px solid #c7c7c7;
|
|
|
/* var(--neutral-300); */
|
|
|
--ui-menu-z-index: 10000;
|
|
|
--page-bg: var(--neutral-100);
|
|
|
--content-bg: var(--neutral-200);
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
|
|
|
Noto is a Linux/Android font.
|
|
|
*/
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
|
|
|
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
|
|
|
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
|
|
|
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
|
|
|
}
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
|
|
|
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
|
|
|
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
|
|
|
}
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
|
|
|
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
|
|
|
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
|
|
|
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
|
|
|
}
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
|
|
|
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
|
|
|
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh),
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo),
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac),
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std),
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-size: 1rem;
|
|
|
--ui-line-height: 1.7;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
:dir(rtl) {
|
|
|
--ui-line-height: auto;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
`,fh=`.ui-menu *,
|
|
|
.ui-menu ::before,
|
|
|
.ui-menu ::after {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ui-menu {
|
|
|
display: none;
|
|
|
color-scheme: light dark;
|
|
|
-webkit-user-select: none;
|
|
|
/* Important: Safari iOS doesn't respect user-select */
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0 0 0 0);
|
|
|
--active-label-color: #fff;
|
|
|
/* ui-menu-text-active */
|
|
|
--label-color: #121212;
|
|
|
/* ui-menu-text */
|
|
|
--menu-bg: #e2e2e2;
|
|
|
/* ui-menu-background */
|
|
|
--active-bg: #5898ff;
|
|
|
/* ui-menu-background-active */
|
|
|
--active-bg-dimmed: #c5c5c5;
|
|
|
/* ui-menu-background-active-muted */
|
|
|
}
|
|
|
/** Use the :where pseudo selector to make the specificity of the
|
|
|
* selector 0, so that it can be overridden by the user.
|
|
|
*/
|
|
|
:where(.ui-menu-container) {
|
|
|
position: absolute;
|
|
|
overflow: visible;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
z-index: 10000;
|
|
|
border-radius: 8px;
|
|
|
background: var(--ui-menu-bg);
|
|
|
box-shadow: var(--ui-menu-shadow);
|
|
|
list-style: none;
|
|
|
padding: 6px 0 6px 0;
|
|
|
margin: 0;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
color: var(--ui-menu-text);
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
text-shadow: none;
|
|
|
text-transform: none;
|
|
|
letter-spacing: 0;
|
|
|
outline: none;
|
|
|
opacity: 1;
|
|
|
/* The [popover] elements have a 1px solid black border. Ugh. */
|
|
|
border: none;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
}
|
|
|
:where(.ui-menu-container > li) {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
align-items: center;
|
|
|
padding: 1px 7px 1px 7px;
|
|
|
margin-top: 0;
|
|
|
margin-left: 6px;
|
|
|
margin-right: 6px;
|
|
|
border-radius: 4px;
|
|
|
white-space: nowrap;
|
|
|
position: relative;
|
|
|
outline: none;
|
|
|
fill: currentColor;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
text-align: left;
|
|
|
color: inherit;
|
|
|
font-family: var(--ui-font-family);
|
|
|
font-size: var(--ui-font-size);
|
|
|
line-height: var(--ui-line-height);
|
|
|
letter-spacing: var(--ui-letter-spacing);
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label) {
|
|
|
appearance: none;
|
|
|
background: none;
|
|
|
outline: none;
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
padding: 1px 2px 1px 1px;
|
|
|
overflow: visible;
|
|
|
border: 1px solid transparent;
|
|
|
white-space: nowrap;
|
|
|
text-align: start;
|
|
|
}
|
|
|
:where(.ui-menu-container > li:has(.heading)) {
|
|
|
margin-top: 0.5em;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.heading) {
|
|
|
font-weight: bold;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.indent > .label) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.indent) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[role='divider']) {
|
|
|
border-bottom: 1px solid var(--ui-menu-divider);
|
|
|
border-radius: 0;
|
|
|
padding: 0;
|
|
|
margin-left: 15px;
|
|
|
margin-right: 15px;
|
|
|
padding-top: 5px;
|
|
|
margin-bottom: 5px;
|
|
|
width: calc(100% - 30px);
|
|
|
/** 100% - (margin-left + margin-right) */
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-disabled='true']) {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active) {
|
|
|
background: var(--ui-menu-bg-active);
|
|
|
background: -apple-system-control-accent;
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active.is-submenu-open) {
|
|
|
background: var(--ui-menu-bg-active-muted);
|
|
|
color: inherit;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
|
|
|
padding-inline-end: 0;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
/** Keyboard shortcut */
|
|
|
:where(.ui-menu-container > li > kbd) {
|
|
|
font-family: var(--ui-font-family);
|
|
|
margin-inline-start: 12px;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active > kbd) {
|
|
|
opacity: 0.85;
|
|
|
}
|
|
|
.ui-trailing-chevron {
|
|
|
display: flex;
|
|
|
margin-inline-start: 24px;
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
.ui-trailing-chevron:dir(rtl) {
|
|
|
transform: scaleX(-1);
|
|
|
}
|
|
|
.ui-checkmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
.ui-mixedmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
`,vs;function xu(a){let y="";switch(a){case"mathfield-element":y=`
|
|
|
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
|
|
|
:host([hidden]) { display: none; }
|
|
|
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
|
|
|
:host(:focus), :host(:focus-within) {
|
|
|
outline: Highlight auto 1px; /* For Firefox */
|
|
|
outline: -webkit-focus-ring-color auto 1px;
|
|
|
}
|
|
|
:host([readonly]:focus), :host([readonly]:focus-within),
|
|
|
:host([read-only]:focus), :host([read-only]:focus-within) {
|
|
|
outline: none;
|
|
|
}
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
:host(:not(:focus)) :first-child { pointer-events: none !important; }
|
|
|
}`;break;case"core":y=jo;break;case"mathfield":y=gc;break;case"environment-popover":y=cd;break;case"suggestion-popover":y=ud;break;case"keystroke-caption":y=_c;break;case"virtual-keyboard":y=dd;break;case"ui":y=Xc;break;case"menu":y=fh;break;default:debugger}return y}function zu(a){return vs||(vs={}),vs[a]||(vs[a]=new CSSStyleSheet,vs[a].replaceSync(xu(a))),vs[a]}var $c;function dc(a){var y;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${a}`))return;const b=window.document.createElement("style");b.id=`mathlive-style-${a}`,b.append(window.document.createTextNode(xu(a))),window.document.head.appendChild(b);return}if($c||($c={}),((y=$c[a])!=null?y:0)!==0)$c[a]+=1;else{const b=zu(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],$c[a]=1}}function E(a){if("adoptedStyleSheets"in document&&$c!=null&&$c[a]&&($c[a]-=1,$c[a]<=0)){const y=vs[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var te=class Tm extends Or{constructor(y){var b;super(re(ae({},y),{type:"accent",body:(b=y.body)!=null?b:void 0})),y.accentChar?this.accent=y.accentChar:this.svgAccent=y==null?void 0:y.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(y){return new Tm(y)}toJson(){return re(ae({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const ee=new va({parent:y,mathstyle:"cramp"},this.style),ce=(b=Or.createBox(ee,this.body))!=null?b:new Hr("\u25A2",{style:this.style});let Te=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(Te=ce.skew);let je=Math.min(ce.height,xa),qe;if(this.svgAccent)qe=bl(this.svgAccent),je=ee.metrics.bigOpSpacing1-je;else if(this.accent){const ut=new Hr(this.accent,{fontFamily:"Main-Regular"});ut.italic=0;const wt=this.accent===8407?" ML__accent-vec":"";qe=new Hr(new Hr(ut),{classes:"ML__accent-body"+wt})}qe=new Ya({shift:0,children:[{box:new Hr(ce)},-je,{box:qe,marginLeft:ce.left+2*Te,classes:["ML__center"]}]});const at=new Hr(qe,{type:"lift"});return this.caret&&(at.caret=this.caret),this.bind(ee,at.wrap(ee)),this.attachSupsub(ee,{base:at})}},be={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},ge=Object.fromEntries(Object.entries(be).map(([a,y])=>[y,a]));function Oe(a){var y;return(y={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[a])!=null?y:a.codePointAt(0)}function Xe(a,y,b,ee){var ce;const je=new Hr(Oe(a),{fontFamily:"Main-Regular",isSelected:ee.isSelected,classes:"ML__small-delim "+((ce=ee.classes)!=null?ce:"")}).wrap(y);return b&&je.setTop((1-y.scalingFactor)*Ui),je}function ct(a,y,b,ee,ce){var Te,je;const qe=new va({parent:ee,mathstyle:"textstyle"},ce==null?void 0:ce.style),at=new Hr(Oe(a),{fontFamily:`Size${y}-Regular`,isSelected:ce.isSelected,classes:((Te=ce.classes)!=null?Te:"")+` ML__delim-size${y}`,type:(je=ce.type)!=null?je:"ignore"}).wrap(qe);return b&&at.setTop((1-qe.scalingFactor)*Ui),at}function Mt(a,y,b,ee,ce){var Te;let je,qe,at,ut;je=at=ut=Oe(a),qe=null;let wt="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?at=je=ut=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?at=je=ut=8741:a==="\\uparrow"?at=ut=9168:a==="\\Uparrow"?at=ut=8214:a==="\\downarrow"?je=at=9168:a==="\\Downarrow"?je=at=8214:a==="\\updownarrow"?(je=8593,at=9168,ut=8595):a==="\\Updownarrow"?(je=8657,at=8214,ut=8659):a==="["||a==="\\lbrack"?(je=9121,at=9122,ut=9123,wt="Size4-Regular"):a==="]"||a==="\\rbrack"?(je=9124,at=9125,ut=9126,wt="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(at=je=9122,ut=9123,wt="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(je=9121,at=ut=9122,wt="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(at=je=9125,ut=9126,wt="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(je=9124,at=ut=9125,wt="Size4-Regular"):a==="("||a==="\\lparen"?(je=9115,at=9116,ut=9117,wt="Size4-Regular"):a===")"||a==="\\rparen"?(je=9118,at=9119,ut=9120,wt="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(je=9127,qe=9128,ut=9129,at=9130,wt="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(je=9131,qe=9132,ut=9133,at=9130,wt="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(je=9127,ut=9129,at=9130,wt="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(je=9131,ut=9133,at=9130,wt="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(je=9127,ut=9133,at=9130,wt="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(je=9131,ut=9129,at=9130,wt="Size4-Regular"):a==="\\surd"?(je=57345,ut=9143,at=57344,wt="Size4-Regular"):a==="\\ulcorner"?(je=9484,at=ut=32):a==="\\urcorner"?(je=9488,at=ut=32):a==="\\llcorner"?(ut=9492,at=je=32):a==="\\lrcorner"&&(je=9496,at=je=32);const Ut=di(je,wt),Yt=Ut.height+Ut.depth,vn=di(at,wt),Cn=vn.height+vn.depth,Cr=di(ut,wt),li=Cr.height+Cr.depth;let br=0,Ur=1;if(qe!==null){const Dl=di(qe,wt);br=Dl.height+Dl.depth,Ur=2}const hi=Yt+li+br,Xr=Math.max(0,Math.ceil((y-hi)/(Ur*Cn))),la=hi+Xr*Ur*Cn;let Oa=Ui;b&&(Oa=Oa*ee.scalingFactor);const ga=la/2-Oa,Fo=.008,ps=[];ps.push({box:new Hr(ut,{fontFamily:wt})}),ps.push(-Fo);const Ci=new Hr(at,{fontFamily:wt});if(qe===null)for(let Dl=0;Dl<Xr;Dl++)ps.push({box:Ci});else{for(let Dl=0;Dl<Xr;Dl++)ps.push({box:Ci});ps.push(-Fo),ps.push({box:new Hr(qe,{fontFamily:wt})}),ps.push(-Fo);for(let Dl=0;Dl<Xr;Dl++)ps.push({box:Ci})}ps.push(-Fo),ps.push({box:new Hr(je,{fontFamily:wt})});let xc="";wt==="Size1-Regular"?xc=" delim-size1":wt==="Size4-Regular"&&(xc=" delim-size4");const ru=new Ya({bottom:ga,children:ps},{classes:xc});return new Hr(ru,re(ae({},ce!=null?ce:{}),{classes:((Te=ce==null?void 0:ce.classes)!=null?Te:"")+" ML__delim-mult"}))}var Tt=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),$t=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),mn=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),kn=[0,1.2,1.8,2.4,3];function ur(a,y,b,ee){return a===void 0||a==="."?ia(b,ee.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Tt.has(a)||mn.has(a)?ct(a,y,!1,b,ee):$t.has(a)?Mt(a,kn[y],!1,b,ee):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var nr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Fr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Jr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function yi(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function $i(a,y,b,ee){const ce={"-4":0,"-3":1,0:2}[ee.mathstyle.sizeDelta];for(let Te=ce;Te<b.length&&b[Te].type!=="stack";Te++){const je=di(a,yi(b[Te]));if(je.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let qe=je.height+je.depth;if(b[Te].type==="small"&&(b[Te].mathstyle==="scriptscriptstyle"?qe*=Math.max(ji[Math.max(1,ee.size-2)],ee.minFontScale):b[Te].mathstyle==="scriptstyle"&&(qe*=Math.max(ji[Math.max(1,ee.size-1)],ee.minFontScale))),qe>y)return b[Te]}return b[b.length-1]}function Qi(a,y,b,ee,ce,Te){if(!y||y.length===0||y===".")return ia(ce);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let je;mn.has(y)?je=nr:Tt.has(y)?je=Jr:je=Fr;const qe=$i(Oe(y),b,je,ce),at=new va({parent:ce,mathstyle:qe.mathstyle},Te==null?void 0:Te.style);return qe.type==="small"?Xe(y,at,ee,re(ae({},Te),{type:a})):qe.type==="large"?ct(y,qe.size,ee,at,re(ae({},Te),{type:a})):(console.assert(qe.type==="stack"),Mt(y,b,ee,at,re(ae({},Te),{type:a})))}function Ai(a,y,b,ee,ce,Te){if(y===".")return ia(ce,Te==null?void 0:Te.classes);const je=Ui*ce.scalingFactor,qe=901,at=5/Yi,ut=Math.max(b-je,ee+je),wt=Math.max(ut/500*qe,2*ut-at);return Qi(a,y,wt,!0,ce,Te)}function ia(a,y){const b=new Hr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new va({parent:a,mathstyle:"textstyle"}))}var Pa=class Am extends Or{constructor(y){var b;super({type:"placeholder",command:"\\placeholder",mode:(b=y==null?void 0:y.mode)!=null?b:"math",style:y==null?void 0:y.style}),this.captureSelection=!0}static fromJson(y){return new Am(y)}toJson(){return super.toJson()}render(y){let b;return this.value=y.placeholderSymbol,typeof y.renderPlaceholder=="function"?b=y.renderPlaceholder(y):b=this.createBox(y),this.caret&&(b.classes+=" ML__placeholder-selected"),b}_serialize(y){return y.skipPlaceholders?"":"\\placeholder{}"}},Ba=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Eo=["cases","dcases","rcases"],gs=["align","align*","aligned","gather","gathered","split"],wl=["array","subequations","eqnarray"];function Bs(a){return wl.concat(gs).concat(Eo).concat(Ba).includes(a)}function Wl(a){return Ba.includes(a)}function Zl(a){return Eo.includes(a)}function cl(a){return gs.includes(a)}function Vl(a,y,b){let ee=0;for(const ut of b)"align"in ut&&(ee+=1);let ce=0;const Te=[];for(const ut of y){let wt=0;for(ce=Math.max(ce,Math.min(ut.length,ee));wt<ut.length;){const Ut=[],Yt=Math.min(ut.length,wt+ee);for(;wt<Yt;){const vn=ut[wt];vn.length===0?Ut.push([new Or({type:"first",mode:a.mode})]):vn[0].type!=="first"?Ut.push([new Or({type:"first",mode:a.mode}),...vn]):(console.assert(!vn.slice(1).some(Cn=>Cn.type==="first")),Ut.push(vn)),wt+=1}Te.push(Ut)}}Te.length>0&&Te[Te.length-1].length===1&&Te[Te.length-1][0].length===1&&Te[Te.length-1][0][0].type==="first"&&Te.pop();const je=[];for(const ut of Te){if(ut.length!==ce)for(let wt=ut.length;wt<ce;wt++)ut.push([new Or({type:"first",mode:a.mode}),new Pa]);je.push(ut)}let qe=0,at=0;for(const ut of je){at=0;for(const wt of ut){for(const Ut of wt)Ut.parent=a,Ut.parentBranch=[qe,at];at+=1}qe+=1}return a.isDirty=!0,je}var eo=class Om extends Or{constructor(y,b,ee,ce={}){var Te;super({type:"array"}),this.environmentName=y,this.rowGaps=ee,ce.mathstyleName&&(this.mathstyleName=ce.mathstyleName),ce.columns&&(ce.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ce.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=Vl(this,b,this.colFormat),ce.leftDelim&&(this.leftDelim=ce.leftDelim),ce.rightDelim&&(this.rightDelim=ce.rightDelim),ce.arraycolsep!==void 0&&(this.arraycolsep=ce.arraycolsep),this.colSeparationType=ce.colSeparationType,ce.arraystretch!==void 0&&(this.arraystretch=ce.arraystretch),this.minColumns=(Te=ce.minColumns)!=null?Te:1}static fromJson(y){return new Om(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=re(ae({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(ee=>ee.map(ce=>ce.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(y.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(y.arraycolsep=this.arraycolsep),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}branch(y){var b;if(Zs(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Zs(y)?(this.isDirty=!0,(b=this.branch(y))!=null?b:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(y=>!!y.align).length}removeBranch(y){if(Ho(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(ee=>{ee.parent=void 0,ee.parentBranch=void 0}),console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}get hasChildren(){return this.children.length>0}get children(){const y=[];for(const b of this.array)for(const ee of b)if(ee)for(const ce of ee)y.push(...ce.children),y.push(ce);return[...y,...super.children]}render(y){var b,ee,ce,Te,je,qe;const at=new va({parent:y,mathstyle:this.mathstyleName},this.style),ut=at.getRegisterAsEm("arrayrulewidth"),wt=at.getRegisterAsEm("arraycolsep"),Ut=at.getRegisterAsEm("doublerulesep"),Yt=(ee=(b=this.arraystretch)!=null?b:at.getRegisterAsNumber("arraystretch"))!=null?ee:1;let vn=typeof this.arraycolsep=="number"?this.arraycolsep:wt;this.colSeparationType==="small"&&(vn=.2778*(new va({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const Cn=Yt*Gi,Cr=.7*Cn,li=.3*Cn;let br=0;const Ur=[];let hi=0;const Xr=this.array.length;for(let bs=0;bs<Xr;++bs){const rl=this.array[bs];hi=Math.max(hi,rl.length);const Pl=new va({parent:at,mathstyle:this.mathstyleName},this.style);let iu=Cr/Pl.scalingFactor,au=li/Pl.scalingFactor;const ou={cells:[],height:0,depth:0,pos:0};for(const Uc of rl){const tp=(ce=Or.createBox(Pl,Uc,{type:"ignore"}))!=null?ce:new Hr(null,{type:"ignore"});au=Math.max(au,tp.depth),iu=Math.max(iu,tp.height),ou.cells.push(tp)}let su=(Te=ls(this.rowGaps[bs]))!=null?Te:0;su>0&&(su+=li,au=Math.max(au,su),su=0),bs<Xr-1&&!Wl(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(au+=at.getRegisterAsEm("jot")),ou.height=iu,ou.depth=au,br+=iu,ou.pos=br,br+=au+su,Ur.push(ou)}const la=br/2+Ui,Oa=[];for(let bs=0;bs<hi;bs++){const rl=[];for(const Pl of Ur){const iu=Pl.cells[bs];iu.depth=Pl.depth,iu.height=Pl.height,rl.push({box:iu,shift:Pl.pos-la})}rl.length>0&&Oa.push(new Ya({individualShift:rl}))}const ga=[];let Fo=!1,ps=!1,Ci=0,xc=!this.leftDelim;const{colFormat:ru}=this;for(const bs of ru){if("align"in bs&&Ci>=Oa.length)break;if("align"in bs)Fo?ga.push(js(2*vn)):(ps||xc)&&ga.push(js(vn)),ga.push(new Hr(Oa[Ci],{classes:"col-align-"+bs.align})),Ci++,Fo=!0,ps=!1,xc=!1;else if("gap"in bs){if(typeof bs.gap=="number")ga.push(js(bs.gap));else{const rl=Xs(y,Ur,la,bs.gap);rl&&ga.push(rl)}Fo=!1,ps=!1,xc=!1}else if("separator"in bs){const rl=new Hr(null,{classes:"vertical-separator"});rl.height=br,rl.setStyle("height",br,"em"),rl.setStyle("border-right",`${ut}em ${bs.separator} currentColor`),rl.setStyle("vertical-align",-(br-la),"em");let Pl=0;ps?Pl=Ut-ut:Fo&&(Pl=vn-ut),rl.left=Pl,ga.push(rl),Fo=!1,ps=!0,xc=!1}}Fo&&!this.rightDelim&&ga.push(js(vn));const Ic=new Hr(ga,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Ic.caret=this.caret),this.bind(y,Ic);const Dl=Ic.height,wc=Ic.depth,lc=this.bind(y,new Hr([this.bind(y,Ai("open",(je=this.leftDelim)!=null?je:".",Dl,wc,at,{isSelected:this.isSelected})),Ic,this.bind(y,Ai("close",(qe=this.rightDelim)!=null?qe:".",Dl,wc,at,{isSelected:this.isSelected}))],{type:"ord"}));return lc?(lc.setStyle("display","inline-block"),this.caret&&(lc.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:lc}))):null}_serialize(y){var b;const ee=[];if(this.environmentName==="lines"?ee.push("{\\displaylines"):ee.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(ee.push("{"),this.colFormat!==void 0)for(const ce of this.colFormat)"align"in ce&&typeof ce.align=="string"?ee.push(ce.align):"separator"in ce&&ce.separator==="solid"?ee.push("|"):"separator"in ce&&ce.separator==="dashed"&&ee.push(":");ee.push("}")}for(let ce=0;ce<this.array.length;ce++){for(let Te=0;Te<this.array[ce].length;Te++)Te>0&&ee.push(" & "),ee.push(Or.serialize(this.array[ce][Te],y));if(ce<this.array.length-1){const Te=this.rowGaps[ce];Te!=null&&Te.dimension?ee.push(`\\\\[${Te.dimension} ${(b=Te.unit)!=null?b:"pt"}] `):ee.push("\\\\ ")}}return this.environmentName==="lines"?ee.push("}"):ee.push(`\\end{${this.environmentName}}`),$a(ee)}getCell(y,b){return this.array[y][b]}setCell(y,b,ee){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const Te of this.array[y][b])Te.parent=void 0,Te.parentBranch=void 0;let ce=ee;(ee.length===0||ee[0].type!=="first")&&(ce=[new Or({type:"first",mode:this.mode}),...ee]),this.array[y][b]=ce;for(const Te of ce)Te.parent=this,Te.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let ee=0;ee<this.colCount;ee++)b.push(Gs(this));this.array.splice(y,0,b);for(let ee=y;ee<this.rowCount;ee++)for(let ce=0;ce<this.colCount;ce++){const Te=this.array[ee][ce];if(Te)for(const je of Te)je.parentBranch=[ee,ce]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let ee=0;ee<this.colCount;ee++)b.push(Gs(this));this.array.splice(y+1,0,b);for(let ee=y+1;ee<this.rowCount;ee++)for(let ce=0;ce<this.colCount;ce++){const Te=this.array[ee][ce];if(Te)for(const je of Te)je.parentBranch=[ee,ce]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const ee of b)for(const ce of ee)if(ce)for(const Te of ce)Te.parent=void 0,Te.parentBranch=void 0;for(let ee=y;ee<this.rowCount;ee++)for(let ce=0;ce<this.colCount;ce++){const Te=this.array[ee][ce];if(Te)for(const je of Te)je.parentBranch=[ee,ce]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Gs(this));for(let b=0;b<this.rowCount;b++)for(let ee=y;ee<this.colCount;ee++){const ce=this.array[b][ee];if(ce)for(const Te of ce)Te.parentBranch=[b,ee]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,Gs(this));for(let b=0;b<this.rowCount;b++)for(let ee=y+1;ee<this.colCount;ee++){const ce=this.array[b][ee];if(ce)for(const Te of ce)Te.parentBranch=[b,ee]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const ee=b.splice(y,1);for(const ce of ee)if(ce)for(const Te of ce)Te.parent=void 0,Te.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let ee=y;ee<this.colCount;ee++){const ce=this.array[b][ee];if(ce)for(const Te of ce)Te.parentBranch=[b,ee]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const ee of b)ee&&y.push(ee.filter(ce=>ce.type!=="first"));return y}};function Gs(a){const y=new Or({type:"first",mode:a.mode});y.parent=a;const b=new Pa;return b.parent=a,[y,b]}function js(a){const y=new Hr(null,{classes:"arraycolsep"});return y.width=a,y}function Xs(a,y,b,ee){if(!ee)return null;const ce=[];for(const Te of y){const je=Or.createBox(a,ee,{type:"ignore"});je&&(je.depth=Te.depth,je.height=Te.height,ce.push({box:je,shift:Te.pos-b}))}return new Ya({individualShift:ce}).wrap(a)}var tl=class Im extends Or{constructor(y){super({mode:y.mode,command:y.command,style:y.style,body:y.body,type:"box"}),this.framecolor=y.framecolor,this.backgroundcolor=y.backgroundcolor,this.padding=y.padding,this.offset=y.offset,this.border=y.border}static fromJson(y){return new Im(y)}toJson(){return re(ae({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,ee,ce,Te;const je=Or.createBox(y,this.body,{type:"lift"});if(!je)return null;const qe=y.toEm((b=this.offset)!=null?b:{dimension:0});je.depth+=qe,je.setStyle("display","inline-block"),je.setStyle("position","relative"),je.setStyle("height",Math.floor(100*je.height+je.depth)/100,"em"),je.setStyle("vertical-align",-Math.floor(100*je.height)/100,"em");const at=new va({parent:y},this.style),ut=at.toEm((ee=this.padding)!=null?ee:{register:"fboxsep"}),wt=new Hr(null,{classes:"ML__box"});wt.height=je.height+ut,wt.depth=je.depth+ut,wt.setStyle("box-sizing","border-box"),wt.setStyle("position","absolute"),wt.setStyle("top",-ut+.3,"em"),wt.setStyle("left",0),wt.setStyle("height",wt.height+wt.depth,"em"),wt.setStyle("width","100%"),this.backgroundcolor&&wt.setStyle("background-color",(ce=at.toColor(this.backgroundcolor))!=null?ce:"transparent"),this.framecolor&&wt.setStyle("border",`${at.getRegisterAsEm("fboxrule",2)}em solid ${(Te=at.toColor(this.framecolor))!=null?Te:"black"}`),this.border&&wt.setStyle("border",this.border);const Ut=new Hr([wt,je],{type:"lift"});return Ut.setStyle("display","inline-block"),Ut.setStyle("position","relative"),Ut.setStyle("line-height",0),Ut.height=je.height+ut+(qe>0?qe:0),Ut.depth=je.depth+ut+(qe<0?-qe:0),Ut.setStyle("padding-left",ut,"em"),Ut.setStyle("padding-right",ut,"em"),Ut.setStyle("height",Math.floor(100*(je.height+je.depth+2*ut+Math.abs(qe)))/100,"em"),Ut.setStyle("margin-top",-ut,"em"),Ut.setStyle("top",Math.floor(100*(je.depth-je.height+2*ut-qe))/100,"em"),Ut.setStyle("vertical-align",Math.floor(100*(je.depth+2*ut))/100,"em"),this.caret&&(Ut.caret=this.caret),this.attachSupsub(y,{base:Ut})}_serialize(y){return y.skipStyles?$a([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},wu=class Dm extends Or{constructor(y,b){var ee;super({type:"composition",mode:(ee=b==null?void 0:b.mode)!=null?ee:"math",value:y})}static fromJson(y){return new Dm(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Hr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},Ql=class Pm extends Or{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Pm(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Al=class Lm extends Or{constructor(y,b,ee){super({type:"group",mode:b,style:ee}),this.body=y,this.boxType=y.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,y&&y.length===1&&y[0].command===","&&(this.captureSelection=!0)}static fromJson(y){return new Lm(y.body,y.mode,y.style)}render(y){const b=Or.createBox(y,this.body,{type:this.boxType});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=xt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Jo=class Rm extends Or{constructor(y,b,ee){super({type:"leftright",style:ee.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=ee.leftDelim,this.rightDelim=ee.rightDelim}static fromJson(y){var b;return new Rm((b=y.variant)!=null?b:"",y.body,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}_serialize(y){var b,ee;const ce=this.matchingRightDelim();return this.variant==="left...right"?$a(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ce]):this.variant==="mleft...mright"?$a(["\\mleft",(ee=this.leftDelim)!=null?ee:".",this.bodyToLatex(y),"\\mright",ce]):$a([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ce])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const ee=(y=this.leftDelim)!=null?y:".";return(b=be[ee])!=null?b:ee}render(y){var b,ee;const ce=new va({parent:y},this.style);console.assert(this.body!==void 0);const Te=new va({parent:y,mathstyle:"textstyle"},this.style),je=(b=Or.createBox(ce,this.body,{type:"inner"}))!=null?b:new Hr(null,{type:"inner"}),qe=je.height/Te.scalingFactor,at=je.depth/Te.scalingFactor,ut=[];if(this.leftDelim&&ut.push(this.bind(Te,Ai("open",this.leftDelim,qe,at,Te,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),je&&(pl(je.children,this,ce,qe,at),ut.push(je)),this.rightDelim){let vn=this.containsCaret?" ML__contains-caret":"",Cn=this.rightDelim;Cn==="?"&&(ce.smartFence?(Cn=this.matchingRightDelim(),vn+=" ML__smart-fence__close"):Cn="."),ut.push(this.bind(Te,Ai("close",Cn,qe,at,Te,{isSelected:this.isSelected,classes:vn+" ML__close",mode:this.mode,style:this.style})))}let wt=this.variant==="mleft...mright";const Ut=this.leftSibling;Ut&&(!wt&&Ut.isFunction&&(wt=!0),!wt&&Ut.type==="subsup"&&((ee=Ut.leftSibling)!=null&&ee.isFunction)&&(wt=!0));const Yt=new Hr(ut,{type:wt?"close":"inner",classes:"left-right"});return Yt.setStyle("margin-top",`${-je.depth}em`),Yt.setStyle("height",`${je.height+je.depth}em`),this.caret&&(Yt.caret=this.caret),this.bind(ce,Yt.wrap(ce))}};function pl(a,y,b,ee,ce){if(a)for(let Te=0;Te<a.length;Te++){const je=a[Te];je.type==="middle"?(a[Te]=y.bind(b,Ai("inner",je.value,ee,ce,b,{isSelected:y.isSelected})),a[Te].caret=je.caret,a[Te].isSelected=je.isSelected,a[Te].cssId=je.cssId,a[Te].htmlData=je.htmlData,a[Te].htmlStyle=je.htmlStyle,a[Te].attributes=je.attributes,a[Te].cssProperties=je.cssProperties):je.children&&pl(je.children,y,b,ee,ce)}}var Nd=class Nm extends Or{constructor(y,b){var ee;super({type:"macro",command:y,style:b.style}),this.body=b.body,b.captureSelection===void 0?b.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=b.captureSelection,this.macroArgs=b.args,this.expand=(ee=b.expand)!=null?ee:!1}static fromJson(y){return new Nm(y.command,y)}toJson(){const y=super.toJson();return this.expand&&(y.expand=!0),this.captureSelection!==void 0&&(y.captureSelection=this.captureSelection),this.macroArgs&&(y.args=this.macroArgs),y}_serialize(y){var b;return y.expandMacro&&this.expand?this.bodyToLatex(y):this.command+((b=this.macroArgs)!=null?b:"")}render(y){const b=Or.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},zc=class Bm extends Or{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Bm}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},Yc=class jm extends Or{constructor(y,b,ee=!1,ce,Te){var je;super({type:"prompt",mode:(je=Te==null?void 0:Te.mode)!=null?je:"math",style:Te==null?void 0:Te.style,command:"\\placeholder"}),this.body=ce,this.correctness=b,this.placeholderId=y,this.locked=ee,this.captureSelection=this.locked}static fromJson(y){return new jm(y.placeholderId,y.correctness,y.locked,y.body,y)}toJson(){const y=super.toJson();return this.placeholderId&&(y.placeholderId=this.placeholderId),this.body||delete y.body,this.body&&(y.body=this.body.filter(b=>b.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new va({parent:y}),ee=b.getRegisterAsEm("fboxsep"),ce=ee,Te=ee,je=Or.createBox(y,this.body);if(!je)return null;je.height||(je.height=b.metrics.xHeight),je.setStyle("vertical-align",-je.height,"em"),this.correctness==="correct"?je.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&je.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const qe=new Hr(je,{type:"ord"});qe.setStyle("display","inline-block"),qe.setStyle("height",je.height+je.depth,"em"),qe.setStyle("vertical-align",-Te,"em");let at="ML__prompt ";this.locked?at+=" ML__lockedPromptBox ":at+=" ML__editablePromptBox ",this.correctness==="correct"?at+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(at+=" ML__incorrectPromptBox "),this.containsCaret&&(at+=" ML__focusedPromptBox ");const ut=new Hr(null,{classes:at,attributes:{part:"prompt"}});ut.height=qe.height+Te,ut.depth=qe.depth+Te,ut.width=qe.width+2*ce,ut.setStyle("box-sizing","border-box"),ut.setStyle("position","absolute"),ut.setStyle("height",qe.height+qe.depth+2*Te,"em"),ce===0&&ut.setStyle("width","100%"),ce!==0&&(ut.setStyle("width",`calc(100% + ${2*ce}em)`),ut.setStyle("top",ee,"em"),ut.setStyle("left",-ce,"em")),(!this.body||this.body.length===1)&&(ut.width=3*ce,ut.setStyle("width",`calc(100% + ${3*ce}em)`),ut.setStyle("left",-1.5*ce,"em"));let wt="";this.correctness==="incorrect"&&(wt+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),wt&&(ut.svgOverlay=wt);const Ut=new Hr([ut,qe],{classes:"ML__prompt-atom"});return Ut.setStyle("position","relative"),Ut.setStyle("display","inline-block"),Ut.setStyle("line-height",0),Ut.height=qe.height+Te+.2,Ut.depth=qe.depth+Te,Ut.left=ce,Ut.right=ce,Ut.setStyle("height",qe.height+Te,"em"),Ut.setStyle("top",qe.depth-qe.height,"em"),Ut.setStyle("vertical-align",qe.depth+Te,"em"),Ut.setStyle("margin-left",.5,"em"),Ut.setStyle("margin-right",.5,"em"),this.caret&&(Ut.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Ut}))}_serialize(y){var b;const ee=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return ee;let ce="\\placeholder";return this.placeholderId&&(ce+=`[${this.placeholderId}]`),this.correctness==="correct"?ce+="[correct]":this.correctness==="incorrect"&&(ce+="[incorrect]"),this.locked&&(ce+="[locked]"),Ti(ce,ee)}},Tc=class Fm extends Or{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new Fm(y);for(const ee of Ls)y[ee]&&b.setChildren(y[ee],ee);return b}render(y){var b;const ee=new va({parent:y,isPhantom:!0}),ce=this.leftSibling,Te=(b=ce.render(ee))!=null?b:new Hr(null),je=new Hr(null);return je.height=Te.height,je.depth=Te.depth,this.attachSupsub(y,{base:je,isCharacterBox:ce.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function ul(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Su=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var ee,ce,Te,je;b!=null||(b={}),this.tokens=a,this.context=y instanceof va&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new va({from:y,mathstyle:b.mathstyle},b.style),this.args=(ee=b.args)!=null?ee:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ce=b.style)!=null?ce:{},parseMode:(Te=b.parseMode)!=null?Te:"math",mathstyle:(je=b.mathstyle)!=null?je:"displaystyle",tabular:!1}}beginContext(a){var y,b,ee;const ce=this.parsingContext,Te={parent:ce,mathlist:[],style:ae({},ce.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ce.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ce.mathstyle,tabular:(ee=a==null?void 0:a.tabular)!=null?ee:!1};this.parsingContext=Te}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(ae({before:da(this.tokens.slice(this.index,this.index+10)),after:da(this.tokens.slice(Math.max(0,this.index-10),this.index))},a))}get mathlist(){return this.parsingContext.mathlist}set mathlist(a){this.parsingContext.mathlist=a}get parseMode(){return this.parsingContext.parseMode}set parseMode(a){this.parsingContext.parseMode=a}get tabularMode(){return this.parsingContext.tabular}get style(){let a=this.parsingContext;for(;a;){if(a.style)return ae({},a.style);a=a.parent}return{}}set style(a){this.parsingContext.style=a}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(a){return this.tokens[this.index]===a?(this.index++,!0):!1}lastSubsupAtom(){let a;return this.mathlist.length>0&&(a=this.mathlist[this.mathlist.length-1],a.type==="subsup"||a.subsupPlacement!==void 0)||(a=new Tc({style:this.style}),this.mathlist.push(a)),a}hasPattern(a){return a.test(this.tokens[this.index])}hasInfixCommand(){var a;const{index:y}=this;if(y<this.tokens.length&&this.tokens[y].startsWith("\\")){const b=xt(this.tokens[y],this.parseMode);return!b||b.definitionType==="symbol"||b.ifMode&&!b.ifMode.includes(this.parseMode)?!1:(a=b.infix)!=null?a:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const a=this.peek();return a!=="\\\\"&&a!=="\\cr"&&a!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var a;const y=(a=this.args)==null?void 0:a.call(this,"?");return y?Ol(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Pa({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),ee="";for(;!b;){const Te=this.get();ul(Te)?(ee+=Te,b=this.end()||ee.length>=a.length):b=!0}const ce=a.toUpperCase()===ee.toUpperCase();return ce||(this.index=y),ce}scanString(){let a="";for(;!this.end();){const y=this.peek();if(y==="]")return a;if(y==="<space>")a+=" ";else if(y.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),a+=y.substring(1);else if(ul(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const ee=this.get();ee==="<space>"?a+=" ":ee==="<{>"?(a+="{",b+=1):ee==="<}>"?(b-=1,b>0?a+="}":this.index-=1):ee==="<$>"?a+="$":ee==="<$$>"?a+="$$":a+=ee,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const ee=this.get();ee==="<}>"?(b-=1,b>0&&(y+="}")):ee==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(ee)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[ee])!=null?a:ee)}return y}scanNumber(a=!0){var y,b;let ee=!1,ce=this.peek();for(;ce==="<space>"||ce==="+"||ce==="-";)this.get(),ce==="-"&&(ee=!ee),ce=this.peek();a=!!a;let Te=10,je=/\d/;if(this.match("'"))Te=8,je=/[0-7]/,a=!0;else if(this.match('"'))Te=16,je=/[\dA-F]/,a=!0;else if(this.match("x"))Te=16,je=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ce=this.get(),ce?ce.length===2&&ce.startsWith("\\")?{number:(ee?-1:1)*((y=ce.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(ee?-1:1)*((b=ce.codePointAt(0))!=null?b:0),base:"alpha"}:null;let qe="";for(;this.hasPattern(je);)qe+=this.get();if(!a&&(this.match(".")||this.match(",")))for(qe+=".";this.hasPattern(je);)qe+=this.get();const at=a?Number.parseInt(qe,Te):Number.parseFloat(qe);return Number.isNaN(at)?null:{number:ee?-at:at,base:Te===16?"hexadecimal":Te===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let ee=!1;if(b===null)for(;;){const Te=this.peek();if(Te==="-")ee=!ee;else if(Te!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const Te=this.get();return Te.startsWith("\\")?b?{register:Te,global:!0,factor:(ee?-1:1)*b.number}:ee?{register:Te,global:!0,factor:-1}:{register:Te,global:!0}:(this.index=y,null)}let ce=this.get();return ce!=null&&ce.startsWith("\\")?(ce=ce.substring(1),this.context.registers[ce]?!ee||b!==null?{register:ce,factor:(ee?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ce}:(this.index=y,null)):(this.index=y,null)}scanValue(){const a=this.scanRegister();if(a)return a;const y=this.index,b=this.scanGlueOrDimen();if(b&&("unit"in b||"glue"in b&&"unit"in b.glue))return b;this.index=y;const ee=this.scanNumber();if(ee)return ee;if(this.end()||!ul(this.peek()))return null;const ce=this.scanString();return ce.length>0?{string:ce}:null}scanDimen(){const a=this.scanNumber(!1);if(a===null)return null;const y=a.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let b;return this.matchKeyword("pt")?b="pt":this.matchKeyword("mm")?b="mm":this.matchKeyword("cm")?b="cm":this.matchKeyword("ex")?b="ex":this.matchKeyword("px")?b="px":this.matchKeyword("em")?b="em":this.matchKeyword("bp")?b="bp":this.matchKeyword("dd")?b="dd":this.matchKeyword("pc")?b="pc":this.matchKeyword("in")?b="in":this.matchKeyword("mu")&&(b="mu"),b?{dimension:y,unit:b}:{dimension:y}}scanGlueOrDimen(){const a=this.scanDimen();if(a===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return a;const y={glue:a};if(this.matchKeyword("plus")){const b=this.scanDimen();if(b)y.grow=b;else return y}if(this.skipWhitespace(),this.match("\\relax"))return y;if(this.skipWhitespace(),this.matchKeyword("minus")){const b=this.scanDimen();if(b)y.shrink=b;else return y}return!y.grow&&!y.shrink?a:y}scanColspec(){this.skipWhitespace();const a=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const y=this.get();y==="c"||y==="r"||y==="l"?a.push({align:y}):y==="|"?a.push({separator:"solid"}):y===":"?a.push({separator:"dashed"}):y==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),a.push({gap:this.scan(b=>b==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return a}scanModeSet(){let a;if(this.match("\\(")&&(a="textstyle"),!a&&this.match("\\[")&&(a="displaystyle"),!a)return null;this.beginContext({mode:"math",mathstyle:a});const y=this.scan(b=>b===(a==="displaystyle"?"\\]":"\\)"));return this.match(a==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanModeShift(){let a="";if(this.match("<$>")&&(a="<$>"),!a&&this.match("<$$>")&&(a="<$$>"),!a)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const y=this.scan(b=>b===a);return this.match(a)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanEnvironment(){if(!this.match("\\begin"))return null;const a=this.scanArgument("string");if(!a)return null;const y=Ge(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const qe of y.params)if(qe.isOptional)b.push(this.scanOptionalArgument(qe.type));else{const at=this.scanArgument(qe.type);at||this.onError({code:"missing-argument",arg:a}),b.push(at)}this.beginContext({tabular:y.tabular});const ee=[],ce=[];let Te=[],je=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),je=!0),!je&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),je=!0),!je)if(this.matchColumnSeparator())Te.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){Te.push(this.mathlist),this.mathlist=[];let qe=null;this.skipWhitespace(),this.match("[")&&(qe=this.scanDimen(),this.skipWhitespace(),this.match("]")),ce.push(qe!=null?qe:{dimension:0}),ee.push(Te),Te=[]}else this.mathlist.push(...this.scan(qe=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(qe)));while(!je);return Te.push(this.mathlist),Te.length>0&&ee.push(Te),this.endContext(),y.createAtom(a,ee,ce,b)}scanExpression(){const a=this.mathlist;if(this.mathlist=[],this.parseExpression()){const y=this.mathlist;return this.mathlist=a,y}return this.mathlist=a,null}scan(a){this.beginContext(),a||(a=je=>je==="<}>");let y="",b=null,ee=[],ce=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=xt(y,"math"),b&&(ee=this.scanArguments(b)[1]),ce=this.mathlist,this.mathlist=[]):this.parseExpression();let Te;return y?(console.assert(!!b),ee.unshift(this.mathlist),ce&&ee.unshift(ce),Te=[b.createAtom({command:y,args:ee,style:this.style,mode:this.parseMode})]):Te=this.mathlist,this.endContext(),Te}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(ee=>ee==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new Al(y,this.parseMode,this.style);return b.verbatimLatex=da(this.tokens.slice(a,this.index)),b}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let a=1;for(;!this.end()&&a!==0;)this.match("(")&&(a+=1),this.match(")")&&(a-=1),a!==0&&this.parseExpression();const y=new Jo("",this.mathlist,{leftDelim:"(",rightDelim:a===0?")":"?"});return this.endContext(),y}scanDelim(){this.skipWhitespace();const a=this.peek();if(!a)return this.onError({code:"unexpected-end-of-string"}),null;if(!ul(a)&&!a.startsWith("\\"))return null;this.next();const y=xt(a,"math");return y?y.definitionType==="function"&&y.ifMode&&!y.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:a}),null):y.definitionType==="symbol"&&(y.type==="mopen"||y.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(a)?a:(this.onError({code:"unexpected-delimiter",arg:a}),null):(this.onError({code:"unknown-command",arg:a}),null)}scanLeftRight(){var a;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Ql("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Ql("\\mright");let y="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;y="\\mright"}const b=this.scanDelim();if(!b)return this.onError({code:"unexpected-delimiter"}),new Ql(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const ee=this.mathlist;this.endContext();const ce=(a=this.scanDelim())!=null?a:".";return new Jo(y==="\\right"?"left...right":"mleft...mright",ee,{leftDelim:b,rightDelim:ce,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let a=this.peek();if(a!=="^"&&a!=="_"&&a!=="'")return!1;const y=this.lastSubsupAtom();for(;a==="^"||a==="_"||a==="'";)this.match("'")?this.match("'")?y.addChild(new Or({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Or({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(tt(this.scanArgument("expression")),a==="_"?"subscript":"superscript"),a=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const a=this.match("\\limits"),y=!a&&this.match("\\nolimits"),b=!y&&!a&&this.match("\\displaylimits");if(!a&&!y&&!b)return!1;const ee=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return ee===null?!1:(ee.explicitSubsupPlacement=!0,a&&(ee.subsupPlacement="over-under"),y&&(ee.subsupPlacement="adjacent"),b&&(ee.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let ee=a.infix?2:0;for(;ee<a.params.length;){const ce=a.params[ee];ce.type==="rest"?b.push(this.scan(Te=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(Te))):ce.isOptional?b.push(this.scanOptionalArgument(ce.type)):ce.type.endsWith("*")?y=ce.type.slice(0,-1):b.push(this.scanArgument(ce.type)),ee+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(ul(a)){const b=Wi.createAtom(this.parseMode,a,ae({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=xt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new Ql(a)];if(b.definitionType==="symbol"){const ee=ae({},this.style);b.variant&&(ee.variant=b.variant),y=new Or({type:b.type,command:a,style:ee,value:String.fromCodePoint(b.codepoint),mode:this.parseMode,verbatimLatex:a})}else{if(b.applyMode||b.applyStyle||b.infix)return this.onError({code:"invalid-command",arg:a}),[new Ql(a)];b.createAtom&&(y=b.createAtom({command:a,args:[],style:this.style,mode:this.parseMode}))}}return y?[y]:null}scanArgument(a){var y;this.skipFiller();const b=this.parseMode;if(a==="auto"&&(a=b),!this.match("<{>")){if(a==="string")return this.scanString();if(a==="value")return this.scanValue();if(a==="delim")return(y=this.scanDelim())!=null?y:".";if(a==="expression")return this.scanExpression();if(a==="math"){a!==b&&this.beginContext({mode:"math"});const ce=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ce}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ce=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ce}return a==="balanced-string"||console.assert(!1),null}if(a==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ce=this.mathlist;return this.endContext(),{group:ce}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ce=this.mathlist;return this.endContext(),{group:ce}}let ee=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ce=this.mathlist;return this.endContext(),{group:ce}}return a==="string"?ee=this.scanString():a==="balanced-string"?ee=this.scanBalancedString():a==="colspec"?ee=this.scanColspec():a==="value"&&(ee=this.scanValue()),this.skipUntilToken("<}>"),ee}scanOptionalArgument(a){if(a=a==="auto"?this.parseMode:a,this.skipFiller(),!this.match("["))return null;let y=null;for(;!this.end()&&!this.match("]");)if(a==="string")y=this.scanString();else if(a==="value")y=this.scanValue();else if(a==="colspec")y=this.scanColspec();else if(a==="bbox"){const b={},ee=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ce of ee){const Te=ce.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(Te)b.padding={dimension:parseInt(Te[1]),unit:Te[2]};else{const je=ce.match(/^\s*border\s*:\s*(.*)/);je?b.border=je[1]:b.backgroundcolor={string:ce}}}y=b}else a==="math"&&(this.beginContext({mode:"math"}),y=this.mathlist.concat(this.scan(b=>b==="]")),this.endContext());return y}scanSymbolOrCommand(a){var y,b,ee;if(a==="\\placeholder"){const qe=this.scanOptionalArgument("string"),at=this.scanOptionalArgument("math"),ut=Or.serialize(at,{defaultMode:"math"});let wt=[],Ut;!Ut&&ut==="correct"?Ut="correct":!Ut&&ut==="incorrect"?Ut="incorrect":ut!==""&&(wt=at);const Yt=this.scanOptionalArgument("string")==="locked",vn=this.scanArgument("auto");let Cn;return vn&&Array.isArray(vn)&&vn.length>0?Cn=vn:vn&&typeof vn=="object"&&"group"in vn?Cn=vn.group:Cn=wt,qe?[new Yc(qe,Ut,Yt,Cn!=null?Cn:wt,{mode:this.parseMode,style:this.style})]:[new Pa({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const qe=this.index,at=this.scanLiteralGroup()||this.next();if(!at)return null;if(this.context.registers[at.substring(1)]){const ut=this.scanArgument("string");ut!==null&&(this.context.registers[at.substring(1)]=ut);const wt=$a([a,da(this.tokens.slice(qe,this.index))]);return[new Or({type:"text",value:"",verbatimLatex:wt})]}}let ce=this.scanMacro(a);if(ce)return[ce];const Te=xt(a,this.parseMode);if(!Te)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(qe=>new Or({type:"text",value:qe,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new Ql(a)]);const je=this.index;if(Te.definitionType==="symbol"){const qe=ae({},this.style);Te.variant&&(qe.variant=Te.variant),ce=new Or({type:Te.type,command:a,style:qe,value:String.fromCodePoint(Te.codepoint),mode:this.parseMode})}else{if(Te.ifMode&&!Te.ifMode.includes(this.parseMode))return[];const qe=this.parseMode;Te.applyMode&&(this.parseMode=Te.applyMode);let at,ut=[];if(Te.parse?ut=Te.parse(this):[at,ut]=this.scanArguments(Te),this.parseMode=qe,Te.applyMode&&!Te.applyStyle&&!Te.createAtom)return tt(ut[0]);if(Te.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof Te.createAtom=="function")ce=Te.createAtom({command:a,args:ut,style:this.style,mode:this.parseMode}),at&&(ce.body=tt(this.scanArgument(at)));else if(typeof Te.applyStyle=="function"){const wt=ae(ae({},this.style),Te.applyStyle(a,ut,this.context)),Ut=this.parseMode;if(Te.applyMode&&(this.parseMode=Te.applyMode),at){const Yt=this.style;this.style=wt;const vn=this.scanArgument(at);return this.style=Yt,this.parseMode=Ut,tt(vn)}this.style=wt}else ce=new Or({type:"mord",command:(b=Te.command)!=null?b:a,style:ae({},this.style),value:a,mode:(ee=Te.applyMode)!=null?ee:this.parseMode})}if(!ce)return null;if(ce instanceof Or&&ce.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const qe=$a([a,da(this.tokens.slice(je,this.index))]);qe&&(ce.verbatimLatex=qe)}if(ce.verbatimLatex===null&&(ce.verbatimLatex=void 0),ce.isFunction&&this.smartFence){const qe=this.scanSmartFence();if(qe)return[ce,qe]}return[ce]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(ul(a)){const y=Wi.createAtom(this.parseMode,a,ae({},this.style));if(!y)return null;if(y.isFunction&&this.smartFence){const b=this.scanSmartFence();if(b)return[y,b]}return[y]}return a.startsWith("\\")?this.scanSymbolOrCommand(a):a==="<space>"?this.parseMode==="text"?[new uc(" "," ",this.style)]:null:(a==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:a}),null)}scanMacro(a){var y;const b=this.context.getMacro(a);if(!b)return null;const ee=this.index,ce=b.args,Te={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let je=1;je<=ce;je++){let qe=this.scanLiteralGroup();if(!qe){const at=this.index;this.scanExpression(),qe=da(this.tokens.slice(at,this.index))}Te[je]=qe}return new Nd(a,{expand:b.expand,captureSelection:b.captureSelection,args:ee===this.index?null:da(this.tokens.slice(ee,this.index)),style:this.parsingContext.style,body:Ol(b.def,{context:this.context,parseMode:this.parseMode,args:je=>Te[je],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,ee;let ce=(ee=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?ee:this.scanLeftRight();if(ce===null){if(this.parseSupSub()||this.parseLimits())return!0;ce=this.scanSymbolCommandOrLiteral()}return ce?(Array.isArray(ce)?this.mathlist.push(...ce):this.mathlist.push(ce),!0):!1}};function Ol(a,y){var b,ee,ce,Te;const je=(b=y==null?void 0:y.args)!=null?b:void 0,qe=new Su(No(a,je),y==null?void 0:y.context,{args:je,mathstyle:(ee=y==null?void 0:y.mathstyle)!=null?ee:"displaystyle",parseMode:(ce=y==null?void 0:y.parseMode)!=null?ce:"math",style:(Te=y==null?void 0:y.style)!=null?Te:{}}),at=[];for(;!qe.end();)at.push(...qe.scan(()=>!1));return at}function np(a,y){var b;const ee=new Su(No(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!ee.end();)ee.scan();return ee.errors}var rp=class $m extends Or{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const ee=Rs.go(ri.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Ol(ee),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new $m(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return re(ae({},super.toJson()),{arg:this.arg})}render(y){const b=Or.createBox(y,this.body,{type:"inner"});return this.caret&&(b.caret=this.caret),this.bind(y,b)}_serialize(y){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};jt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new rp(a.command,(y=a.args[0])!=null?y:"")}});var ri={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",ee={};ee.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ce,Te=10,je=[];;){ce!==a?(Te=10,ce=a):Te--;var qe=ri.stateMachines[y],at=qe.transitions[b]||qe.transitions["*"];e:for(var ut=0;ut<at.length;ut++){var wt=ri.patterns.match_(at[ut].pattern,a);if(wt){for(var Ut=at[ut].task,Yt=0;Yt<Ut.action_.length;Yt++){var vn;if(qe.actions[Ut.action_[Yt].type_])vn=qe.actions[Ut.action_[Yt].type_](ee,wt.match_,Ut.action_[Yt].option);else if(ri.actions[Ut.action_[Yt].type_])vn=ri.actions[Ut.action_[Yt].type_](ee,wt.match_,Ut.action_[Yt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Ut.action_[Yt].type_+")"];ri.concatArray(je,vn)}if(b=Ut.nextState||b,a.length>0){if(Ut.revisit||(a=wt.remainder),!Ut.toContinue)break e}else return je}}if(Te<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(a,y){if(y)if(Object.prototype.toString.call(y)==="[object Array]")for(var b=0;b<y.length;b++)a.push(y[b]);else a.push(y)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=ri.patterns.findObserveGroups(a,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(y&&y.remainder.match(/^($|[\s,;\)\]\}])/))return y;var b=a.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return b?{match_:b[0],remainder:a.substr(b[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(a){return ri.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return ri.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return ri.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return ri.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return ri.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return ri.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return ri.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return ri.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return ri.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return ri.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return ri.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return ri.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return ri.patterns.findObserveGroups(a,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(a){return ri.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return ri.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return ri.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return ri.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(a){return ri.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return ri.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return ri.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return ri.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return ri.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return ri.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return ri.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return ri.patterns.findObserveGroups(a,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(a){var y;if(y=a.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),y)return{match_:y[0],remainder:a.substr(y[0].length)};var b=ri.patterns.findObserveGroups(a,"","$","$","");return b&&(y=b.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),y)?{match_:y[0],remainder:a.substr(y[0].length)}:null},amount2:function(a){return this.amount(a)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(a){if(a.match(/^\([a-z]+\)$/))return null;var y=a.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return y?{match_:y[0],remainder:a.substr(y[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(a,y,b,ee,ce,Te,je,qe,at,ut){var wt=function(br,Ur){if(typeof Ur=="string")return br.indexOf(Ur)!==0?null:Ur;var hi=br.match(Ur);return hi?hi[0]:null},Ut=function(br,Ur,hi){for(var Xr=0;Ur<br.length;){var la=br.charAt(Ur),Oa=wt(br.substr(Ur),hi);if(Oa!==null&&Xr===0)return{endMatchBegin:Ur,endMatchEnd:Ur+Oa.length};if(la==="{")Xr++;else if(la==="}"){if(Xr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];Xr--}Ur++}return Xr>0,null},Yt=wt(a,y);if(Yt===null||(a=a.substr(Yt.length),Yt=wt(a,b),Yt===null))return null;var vn=Ut(a,Yt.length,ee||ce);if(vn===null)return null;var Cn=a.substring(0,ee?vn.endMatchEnd:vn.endMatchBegin);if(Te||je){var Cr=this.findObserveGroups(a.substr(vn.endMatchEnd),Te,je,qe,at);if(Cr===null)return null;var li=[Cn,Cr.match_];return{match_:ut?li.join(""):li,remainder:Cr.remainder}}else return{match_:Cn,remainder:a.substr(vn.endMatchEnd)}},match_:function(a,y){var b=ri.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return ri.patterns.patterns[a](y);var ee=y.match(b);if(ee){var ce;return ee[2]?ce=[ee[1],ee[2]]:ee[1]?ce=ee[1]:ce=ee[0],{match_:ce,remainder:y.substr(ee[0].length)}}return null}},actions:{"a=":function(a,y){a.a=(a.a||"")+y},"b=":function(a,y){a.b=(a.b||"")+y},"p=":function(a,y){a.p=(a.p||"")+y},"o=":function(a,y){a.o=(a.o||"")+y},"q=":function(a,y){a.q=(a.q||"")+y},"d=":function(a,y){a.d=(a.d||"")+y},"rm=":function(a,y){a.rm=(a.rm||"")+y},"text=":function(a,y){a.text_=(a.text_||"")+y},insert:function(a,y,b){return{type_:b}},"insert+p1":function(a,y,b){return{type_:b,p1:y}},"insert+p1+p2":function(a,y,b){return{type_:b,p1:y[0],p2:y[1]}},copy:function(a,y){return y},rm:function(a,y){return{type_:"rm",p1:y||""}},text:function(a,y){return ri.go(y,"text")},"{text}":function(a,y){var b=["{"];return ri.concatArray(b,ri.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return ri.go(y,"tex-math")},"tex-math tight":function(a,y){return ri.go(y,"tex-math tight")},bond:function(a,y,b){return{type_:"bond",kind_:b||y}},"color0-output":function(a,y){return{type_:"color0",color:y[0]}},ce:function(a,y){return ri.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var ee=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return ee[1]=ee[1].replace(/\$/g,""),b.push({type_:"frac",p1:ee[1],p2:ee[2]}),ee[3]&&(ee[3]=ee[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:ee[3]})),b},"9,9":function(a,y){return ri.go(y,"9,9")}},createTransitions:function(a){var y,b,ee,ce,Te={};for(y in a)for(b in a[y])for(ee=b.split("|"),a[y][b].stateArray=ee,ce=0;ce<ee.length;ce++)Te[ee[ce]]=[];for(y in a)for(b in a[y])for(ee=a[y][b].stateArray||[],ce=0;ce<ee.length;ce++){var je=a[y][b];if(je.action_){je.action_=[].concat(je.action_);for(var qe=0;qe<je.action_.length;qe++)typeof je.action_[qe]=="string"&&(je.action_[qe]={type_:je.action_[qe]})}else je.action_=[];for(var at=y.split("|"),ut=0;ut<at.length;ut++)if(ee[ce]==="*")for(var wt in Te)Te[wt].push({pattern:at[ut],task:je});else Te[ee[ce]].push({pattern:at[ut],task:je})}return Te},stateMachines:{}};ri.stateMachines={ce:{transitions:ri.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(a,y){var b;if((a.d||"").match(/^[0-9]+$/)){var ee=a.d;a.d=void 0,b=this.output(a),a.b=ee}else b=this.output(a);return ri.actions["o="](a,y),b},"d= kv":function(a,y){a.d=y,a.dType="kv"},"charge or bond":function(a,y){if(a.beginsWithBond){var b=[];return ri.concatArray(b,this.output(a)),ri.concatArray(b,ri.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var ee=ri.patterns.match_("orbital",a.o||""),ce=ri.patterns.match_("one lowercase greek letter $",a.o||""),Te=ri.patterns.match_("one lowercase latin letter $",a.o||""),je=ri.patterns.match_("$one lowercase latin letter$ $",a.o||""),qe=y==="-"&&(ee&&ee.remainder===""||ce||Te||je);qe&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!ee&&Te&&(a.o="$"+a.o+"$");var at=[];return qe?(ri.concatArray(at,this.output(a)),at.push({type_:"hyphen"})):(ee=ri.patterns.match_("digits",a.d||""),b&&ee&&ee.remainder===""?(ri.concatArray(at,ri.actions["d="](a,y)),ri.concatArray(at,this.output(a))):(ri.concatArray(at,this.output(a)),ri.concatArray(at,ri.actions.bond(a,y,"-")))),at},"a to o":function(a){a.o=a.a,a.a=void 0},"sb=true":function(a){a.sb=!0},"sb=false":function(a){a.sb=!1},"beginsWithBond=true":function(a){a.beginsWithBond=!0},"beginsWithBond=false":function(a){a.beginsWithBond=!1},"parenthesisLevel++":function(a){a.parenthesisLevel++},"parenthesisLevel--":function(a){a.parenthesisLevel--},"state of aggregation":function(a,y){return{type_:"state of aggregation",p1:ri.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),ee=b!==y;return ee&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var ee;if(!a.r)ee=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&ee.push({type_:"entitySkip"}),!a.o&&!a.q&&!a.d&&!a.b&&!a.p&&b!==2?(a.o=a.a,a.a=void 0):!a.o&&!a.q&&!a.d&&(a.b||a.p)?(a.o=a.a,a.d=a.b,a.q=a.p,a.a=a.b=a.p=void 0):a.o&&a.dType==="kv"&&ri.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),ee.push({type_:"chemfive",a:ri.go(a.a,"a"),b:ri.go(a.b,"bd"),p:ri.go(a.p,"pq"),o:ri.go(a.o,"o"),q:ri.go(a.q,"pq"),d:ri.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ce;a.rdt==="M"?ce=ri.go(a.rd,"tex-math"):a.rdt==="T"?ce=[{type_:"text",p1:a.rd||""}]:ce=ri.go(a.rd);var Te;a.rqt==="M"?Te=ri.go(a.rq,"tex-math"):a.rqt==="T"?Te=[{type_:"text",p1:a.rq||""}]:Te=ri.go(a.rq),ee={type_:"arrow",r:a.r,rd:ce,rq:Te}}for(var je in a)je!=="parenthesisLevel"&&je!=="beginsWithBond"&&delete a[je];return ee},"oxidation-output":function(a,y){var b=["{"];return ri.concatArray(b,ri.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:ri.go(y[0]),p2:ri.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:ri.go(y[0]),p2:ri.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:ri.go(y[0]),p2:ri.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:ri.go(y[0]),p2:ri.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ri.go(y[1])}},"r=":function(a,y){a.r=y},"rdt=":function(a,y){a.rdt=y},"rd=":function(a,y){a.rd=y},"rqt=":function(a,y){a.rqt=y},"rq=":function(a,y){a.rq=y},operator:function(a,y,b){return{type_:"operator",kind_:b||y}}}},a:{transitions:ri.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:ri.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:ri.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(a){if(a.text_){var y={type_:"text",p1:a.text_};for(var b in a)delete a[b];return y}}}},pq:{transitions:ri.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(a,y){return{type_:"state of aggregation subscript",p1:ri.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ri.go(y[1],"pq")}}}},bd:{transitions:ri.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ri.go(y[1],"bd")}}}},oxidation:{transitions:ri.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(a,y){return{type_:"roman numeral",p1:y||""}}}},"tex-math":{transitions:ri.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"tex-math tight":{transitions:ri.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(a,y){a.o=(a.o||"")+"{"+y+"}"},output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"9,9":{transitions:ri.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:ri.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),y[1]&&(ri.concatArray(b,ri.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?ri.concatArray(b,ri.go(y[2],"pu-9,9")):b.push(y[2])),(y[3]||y[4])&&(y[3]==="e"||y[4]==="*"?b.push({type_:"cdot"}):b.push({type_:"times"}))),y[5]&&b.push("10^{"+y[5]+"}"),b},"number^":function(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),ri.concatArray(b,ri.go(y[1],"pu-9,9")),b.push("^{"+y[2]+"}"),b},operator:function(a,y,b){return{type_:"operator",kind_:b||y}},space:function(){return{type_:"pu-space-1"}},output:function(a){var y,b=ri.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var ee=ri.patterns.match_("{(...)}",a.q||"");if(ee&&ee.remainder===""&&(a.q=ee.match_),a.d&&(a.d=a.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.d=a.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),a.q){a.q=a.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.q=a.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var ce={d:ri.go(a.d,"pu"),q:ri.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ce.d,p2:ce.q}:(y=ce.d,ce.d.length>1||ce.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),ri.concatArray(y,ce.q))}else y=ri.go(a.d,"pu-2");for(var Te in a)delete a[Te];return y}}},"pu-2":{transitions:ri.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(a,y){a.rm+="^{"+y+"}"},space:function(){return{type_:"pu-space-2"}},output:function(a){var y=[];if(a.rm){var b=ri.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=ri.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var ee in a)delete a[ee];return y}}},"pu-9,9":{transitions:ri.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){var b=a.text_.length%3;b===0&&(b=3);for(var ee=a.text_.length-3;ee>0;ee-=3)y.push(a.text_.substr(ee,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var ce in a)delete a[ce];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,ee=0;ee<b;ee+=3)y.push(a.text_.substr(ee,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(ee))}else y.push(a.text_);for(var ce in a)delete a[ce];return y}}}};var Rs={go:function(a,y){if(!a)return"";for(var b="",ee=!1,ce=0;ce<a.length;ce++){var Te=a[ce];typeof Te=="string"?b+=Te:(b+=Rs._go2(Te),Te.type_==="1st-level escape"&&(ee=!0))}return!y&&!ee&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Rs.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Rs._goInner(a.a),b:Rs._goInner(a.b),p:Rs._goInner(a.p),o:Rs._goInner(a.o),q:Rs._goInner(a.q),d:Rs._goInner(a.d)};b.a&&(b.a.match(/^[+\-]/)&&(b.a="{"+b.a+"}"),y+=b.a+"\\,"),(b.b||b.p)&&(y+="{\\vphantom{X}}",y+="^{\\hphantom{"+(b.b||"")+"}}_{\\hphantom{"+(b.p||"")+"}}",y+="{\\vphantom{X}}",y+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(b.b||"")+"}}",y+="_{\\vphantom{2}\\llap{\\smash[t]{"+(b.p||"")+"}}}"),b.o&&(b.o.match(/^[+\-]/)&&(b.o="{"+b.o+"}"),y+=b.o),a.dType==="kv"?((b.d||b.q)&&(y+="{\\vphantom{X}}"),b.d&&(y+="^{"+b.d+"}"),b.q&&(y+="_{\\smash[t]{"+b.q+"}}")):a.dType==="oxidation"?(b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"),b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}")):(b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}"),b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"));break;case"rm":y="\\mathrm{"+a.p1+"}";break;case"text":a.p1.match(/[\^_]/)?(a.p1=a.p1.replace(" ","~").replace("-","\\text{-}"),y="\\mathrm{"+a.p1+"}"):y="\\text{"+a.p1+"}";break;case"roman numeral":y="\\mathrm{"+a.p1+"}";break;case"state of aggregation":y="\\mskip2mu "+Rs._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Rs._goInner(a.p1);break;case"bond":if(y=Rs._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var ee="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"pu-frac":var ce="\\frac{"+Rs._goInner(a.p1)+"}{"+Rs._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ce+"}{"+ce+"}{"+ce+"}{"+ce+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Rs._goInner(a.p1)+"}{"+Rs._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Rs._goInner(a.p1)+"}{"+Rs._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Rs._goInner(a.p1)+"}{"+Rs._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Rs._goInner(a.p1)+"}_{"+Rs._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Rs._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var Te={rd:Rs._goInner(a.rd),rq:Rs._goInner(a.rq)},je=Rs._getArrow(a.r);Te.rd||Te.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(je="\\long"+je,Te.rd&&(je="\\overset{"+Te.rd+"}{"+je+"}"),Te.rq&&(a.r==="<-->"?je="\\underset{\\lower2mu{"+Te.rq+"}}{"+je+"}":je="\\underset{\\lower6mu{"+Te.rq+"}}{"+je+"}"),je=" {}\\mathrel{"+je+"}{} "):(Te.rq&&(je+="[{"+Te.rq+"}]"),je+="{"+Te.rd+"}",je=" {}\\mathrel{\\x"+je+"}{} "):je=" {}\\mathrel{\\long"+je+"}{} ",y=je;break;case"operator":y=Rs._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function ky(a){}function _y(a){}var ip=class zm extends Or{constructor(y){super(re(ae({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new zm(y)}toJson(){return re(ae({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Hr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=xt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ti(this.command,this.value)}},ap=class Km extends Or{constructor(y){super(re(ae({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Km(y)}toJson(){return re(ae({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=ur(this.value,this.size,y,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return b?(b=this.bind(y,b),this.caret&&(b.caret=this.caret),b):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=xt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ti(this.command,this.value)}},af=class Um extends Or{constructor(y,b,ee,ce){var Te,je;super({type:"enclose",command:y,style:ce.style}),this.body=b,this.backgroundcolor=ce.backgroundcolor,ee.updiagonalarrow&&(ee.updiagonalstrike=!1),ee.box&&(ee.left=!1,ee.right=!1,ee.bottom=!1,ee.top=!1),this.notation=ee,this.shadow=(Te=ce.shadow)!=null?Te:"none",this.strokeWidth=(je=ce.strokeWidth)!=null?je:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ce.strokeStyle,this.svgStrokeStyle=ce.svgStrokeStyle,this.strokeColor=ce.strokeColor,this.borderStyle=ce.borderStyle,this.padding=ce.padding,this.captureSelection=!1}static fromJson(y){return new Um(y.command,y.body,y.notation,y)}toJson(){return re(ae({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(y){var b;if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const ee=xt(this.command,this.mode);if(ee!=null&&ee.serialize)return ee.serialize(this,y);let ce=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ce+="{"+Object.keys(this.notation).join(" ")+"}";let Te="",je="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(Te+=je+'mathbackground="'+this.backgroundcolor+'"',je=","),this.shadow&&this.shadow!=="auto"&&(Te+=je+'shadow="'+this.shadow+'"',je=","),this.strokeWidth||this.strokeStyle!=="solid"?(Te+=je+this.borderStyle,je=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(Te+=je+'mathcolor="'+this.strokeColor+'"',je=","),Te&&(ce+=`[${Te}]`)}return Ti(ce,this.bodyToLatex(y))}render(y){const b=new va({parent:y},this.style),ee=Or.createBox(b,this.body);if(!ee)return null;const ce=a0(this.borderStyle),Te=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});ee.setStyle("position","relative"),ee.setStyle("display","inline-block"),ee.setStyle("top",Te,"em"),ee.setStyle("height",ee.height+ee.depth,"em"),ee.setStyle("width",ee.width,"em");const je=new Hr(null,{classes:"ML__notation"});let qe=ee.height+ee.depth+2*Te;const at=ee.width+2*Te;let ut="";if(this.notation.horizontalstrike&&(ut+=this.line(3,50,97,50)),this.notation.verticalstrike&&(ut+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(ut+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(ut+=this.line(3,3,97,97)),this.notation.updiagonalarrow){ut+=this.line(Te.toString(),(Te+ee.depth+ee.height).toString(),(Te+ee.width).toString(),Te.toString());const Cn=.03*Math.sqrt(at*at+qe*qe)*1,Cr=ee.width*Cn,li=(ee.depth+ee.height)*Cn,br=Te+ee.width;let Ur=Te;Ur+li-.4*Cr<0&&(Ur=.4*Cr-li),ut+='<polygon points="',ut+=`${br},${Ur} ${br-Cr-.4*li},${Ur+li-.4*Cr} `,ut+=`${br-.7*Cr},${Ur+.7*li} ${br-Cr+.4*li},${Ur+li+.4*Cr} `,ut+=`${br},${Ur}`,ut+=`" stroke='none' fill="${this.strokeColor}"`,ut+="/>"}let wt=0;if(this.notation.phasorangle){const Yt=op(b),vn=(ee.height+ee.depth+2*Yt+Te).toString(),Cn=(ee.height+ee.depth)/2;ut+=this.line(Te.toString(),vn,(Te+Cn+ee.width).toString(),vn),ut+=this.line(Te.toString(),vn,(Te+Cn).toString(),(Te-Yt).toString()),qe+=Yt,wt=Cn,ee.left+=qe/2-Te}if(this.notation.longdiv){const Yt=op(b);qe+=Yt,ut+=this.line(Te.toString(),Te.toString(),(Te+ee.width).toString(),Te.toString());const vn=.3;wt=vn+Yt,ee.left+=vn+Yt,ee.setTop(Te+Yt),ut+='<path d="',ut+=`M ${Te} ${Te} a${vn} ${(ee.depth+ee.height+2*Yt)/2}, 0, 1, 1, 0 ${ee.depth+ee.height+2*Yt} "`,ut+=` stroke-width="${o0(b)}" stroke="${this.strokeColor}" fill="none"`,ut+="/>"}if(je.width=ee.width+2*Te+wt,je.height=ee.height+Te,je.depth=ee.depth+Te,je.setStyle("box-sizing","border-box"),je.setStyle("left",`calc(-${ce} / 2 )`),je.setStyle("height",`${Math.floor(100*qe)/100}em`),je.setStyle("top",`calc(${ce} / 2 )`),this.backgroundcolor&&je.setStyle("background-color",this.backgroundcolor),this.notation.box&&je.setStyle("border","1px solid red"),this.notation.actuarial&&(je.setStyle("border-top",this.borderStyle),je.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(je.setStyle("border-bottom",this.borderStyle),je.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(je.setStyle("border-radius","8px"),je.setStyle("border",this.borderStyle)),this.notation.circle&&(je.setStyle("border-radius","50%"),je.setStyle("border",this.borderStyle)),this.notation.top&&je.setStyle("border-top",this.borderStyle),this.notation.left&&je.setStyle("border-left",this.borderStyle),this.notation.right&&je.setStyle("border-right",this.borderStyle),this.notation.bottom&&je.setStyle("border-bottom",this.borderStyle),ut){let Yt="";this.shadow==="auto"&&(Yt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Yt+=`filter: drop-shadow(${this.shadow})`),Yt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Yt+=' stroke-linecap="round"',this.svgStrokeStyle&&(Yt+=` stroke-dasharray="${this.svgStrokeStyle}"`),je.svgStyle=Yt,je.svgOverlay=ut}const Ut=new Hr([je,ee]);return Ut.setStyle("position","relative"),Ut.setStyle("vertical-align",Te,"em"),Ut.setStyle("height",`${Math.floor(100*(ee.height+ee.depth+2*Te))/100}em`),Ut.setStyle("display","inline-block"),Ut.height=je.height,Ut.depth=je.depth,Ut.width=je.width-2*Te,Ut.left=Te,Ut.right=Te,this.caret&&(Ut.caret=this.caret),Ut.wrap(b)}line(y,b,ee,ce){return`<line x1="${If(y)}" y1="${If(b)}" x2="${If(ee)}" y2="${If(ce)}" vector-effect="non-scaling-stroke"></line>`}};function If(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function a0(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function o0(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function op(a){const y=a.isDisplayStyle?xa:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var Bd=class Hm extends Or{constructor(y,b,ee){var ce,Te;super(re(ae({},ee),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ce=ee==null?void 0:ee.hasBarLine)!=null?ce:!0,this.continuousFraction=(Te=ee==null?void 0:ee.continuousFraction)!=null?Te:!1,this.numerPrefix=ee==null?void 0:ee.numerPrefix,this.denomPrefix=ee==null?void 0:ee.denomPrefix,this.mathstyleName=ee==null?void 0:ee.mathstyleName,this.leftDelim=ee==null?void 0:ee.leftDelim,this.rightDelim=ee==null?void 0:ee.rightDelim,this.fractionNavigationOrder=ee==null?void 0:ee.fractionNavigationOrder}static fromJson(y){return new Hm(y.above,y.below,y)}toJson(){const y={};return this.continuousFraction&&(y.continuousFraction=!0),this.numerPrefix&&(y.numerPrefix=this.numerPrefix),this.denomPrefix&&(y.denomPrefix=this.denomPrefix),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),this.hasBarLine||(y.hasBarLine=!1),this.mathstyleName&&(y.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(y.fractionNavigationOrder=this.fractionNavigationOrder),ae(ae({},super.toJson()),y)}get children(){if(this._children)return this._children;const y=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const b of this.below)y.push(...b.children),y.push(b);for(const b of this.above)y.push(...b.children),y.push(b)}else{for(const b of this.above)y.push(...b.children),y.push(b);for(const b of this.below)y.push(...b.children),y.push(b)}return this._children=y,y}render(y){var b,ee;const ce=new va({parent:y,mathstyle:this.mathstyleName},this.style),Te=ce.metrics,je=new va({parent:ce,mathstyle:this.continuousFraction?"":"numerator"},this.style),qe=this.numerPrefix?new Hr([new Hr(this.numerPrefix),Or.createBox(je,this.above)],{isTight:je.isTight,type:"ignore"}):(b=Or.createBox(je,this.above,{type:"ignore"}))!=null?b:new Hr(null,{type:"ignore"}),at=new va({parent:ce,mathstyle:this.continuousFraction?"":"denominator"},this.style),ut=this.denomPrefix?new Hr([new Hr(this.denomPrefix),Or.createBox(at,this.below,{type:"ignore"})]):(ee=Or.createBox(at,this.below,{type:"ignore"}))!=null?ee:new Hr(null,{type:"ignore"}),wt=this.hasBarLine?Te.defaultRuleThickness:0;let Ut,Yt=0,vn;ce.isDisplayStyle?(Ut=je.metrics.num1,Yt=wt>0?3*wt:7*wt,vn=at.metrics.denom1):(wt>0?(Ut=je.metrics.num2,Yt=wt):(Ut=je.metrics.num3,Yt=3*Te.defaultRuleThickness),vn=at.metrics.denom2);const Cn=[];this.isSelected&&Cn.push("ML__selected");const Cr=qe.depth,li=ut.height;let br;if(wt<=0){const ga=Ut-Cr-(li-vn);ga<Yt&&(Ut+=(Yt-ga)/2,vn+=(Yt-ga)/2),br=new Ya({individualShift:[{box:qe,shift:-Ut,classes:[...Cn,"ML__center"]},{box:ut,shift:vn,classes:[...Cn,"ML__center"]}]}).wrap(ce)}else{const ga=new Hr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});ga.softWidth=Math.max(qe.width,ut.width),ga.height=wt/2,ga.depth=wt/2;const Fo=Ui+wt/2;Ut<Yt+Cr+Fo&&(Ut=Yt+Cr+Fo);const ps=Ui-wt/2;vn<Yt+li-ps&&(vn=Yt+li-ps),br=new Ya({individualShift:[{box:ut,shift:vn,classes:[...Cn,"ML__center"]},{box:ga,shift:-ps,classes:Cn},{box:qe,shift:-Ut,classes:[...Cn,"ML__center"]}]}).wrap(ce)}const Ur=ce.isDisplayStyle?Te.delim1:Te.delim2,hi=this.leftDelim?this.bind(y,Qi("open",this.leftDelim,Ur,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):ia(ce,"open");let Xr=null;this.continuousFraction?Xr=new Hr(null,{type:"close"}):this.rightDelim?Xr=this.bind(y,Qi("close",this.rightDelim,Ur,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Xr=ia(ce,"close");const la=new Hr([hi,br,Xr],{isTight:ce.isTight,type:"inner",classes:"mfrac"}),Oa=this.bind(y,la);return this.caret&&(Oa.caret=this.caret),this.attachSupsub(y,{base:Oa})}},Nl=class Wm extends Or{constructor(y,b){var ee;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(ee=b==null?void 0:b.isSuggestion)!=null?ee:!1,this.isError=!1}static fromJson(y){const b=new Wm(y.value);return y.isSuggestion&&(b.isSuggestion=!0),y.isError&&(b.isError=!0),b}toJson(){const y={};return this.isSuggestion&&(y.isSuggestion=!0),this.isError&&(y.isError=!0),ae({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new Hr(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},of=class Zm extends Or{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Nl(b)),this.skipBoundary=!1}static fromJson(y){return new Zm("")}toJson(){return super.toJson()}render(y){const b=Or.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,ee;return(ee=(b=this.body)==null?void 0:b.map(ce=>ce.value).join(""))!=null?ee:""}},hh=class Vm extends Or{constructor(y,b){super(re(ae({},b),{type:"extensible-symbol",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new Vm(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.value&&(y.symbol=this.value),y}render(y){var b;const ee=y.isDisplayStyle&&this.value!=="\\smallint",ce=new Hr(this.value,{fontFamily:ee?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(ee?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ce)return null;ce.right=ce.italic;const Te=(ce.height-ce.depth)/2-Ui*y.scalingFactor,je=ce.italic;ce.setTop(Te);let qe=ce;if(this.superscript||this.subscript){const at=(b=this.subsupPlacement)!=null?b:"auto";qe=at==="over-under"||at==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ce,baseShift:Te,slant:je}):this.attachSupsub(y,{base:ce})}return new Hr(this.bind(y,qe),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=xt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const ee=[];return ee.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&ee.push("\\limits"),this.subsupPlacement==="adjacent"&&ee.push("\\nolimits"),this.subsupPlacement==="auto"&&ee.push("\\displaylimits")),ee.push(this.supsubToLatex(y)),$a(ee)}},fd=class Gm extends Or{constructor(y){const b=y.body;super(re(ae({},y),{type:"overlap",body:typeof b=="string"?[new Or({value:b})]:b,style:y==null?void 0:y.style})),this.skipBoundary=!0,this.align=y==null?void 0:y.align,this.boxType=y==null?void 0:y.boxType}static fromJson(y){return new Gm(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),ae(ae({},super.toJson()),y)}render(y){const b=Or.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Hr([b,new Hr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Ac=class Xm extends Or{constructor(y){var b,ee,ce,Te;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(ee=y.boxType)!=null?ee:"ord",this.paddedBody=(ce=y.paddedBody)!=null?ce:!1,this.paddedLabels=(Te=y.paddedLabels)!=null?Te:!1}static fromJson(y){return new Xm(y)}toJson(){const y=super.toJson();return this.skipBoundary||(y.skipBoundary=!1),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.svgAbove&&(y.svgAbove=this.svgAbove),this.svgBelow&&(y.svgBelow=this.svgBelow),this.svgBody&&(y.svgBody=this.svgBody),this.boxType!=="ord"&&(y.boxType=this.boxType),this.paddedBody&&(y.paddedBody=!0),this.paddedLabels&&(y.paddedLabels=!0),y}render(y){let b=this.svgBody?bl(this.svgBody):Or.createBox(y,this.body,{type:"ignore"});const ee=new va({parent:y,mathstyle:"scriptstyle"},this.style);let ce=null;this.svgAbove?ce=bl(this.svgAbove):this.above&&(ce=Or.createBox(ee,this.above,{type:"ignore"}));let Te=null;this.svgBelow?Te=bl(this.svgBelow):this.below&&(Te=Or.createBox(ee,this.below,{type:"ignore"})),this.paddedBody&&(b=new Hr([ia(y,"open"),b,ia(y,"close")],{type:"ignore"}));let je=s0(y,{base:b,above:ce,below:Te,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return je?(this.subsupPlacement==="over-under"?je=this.attachLimits(y,{base:je,type:je.type}):je=this.attachSupsub(y,{base:je}),this.caret&&(je.caret=this.caret),this.bind(y,je)):null}};function s0(a,y){if(!y.base)return null;if(!y.above&&!y.below){const qe=new Hr(y.base,{type:y.type});return qe.setStyle("position","relative"),qe}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let ee=null;const ce=y.base,Te=0,je=["ML__center"];if(y.paddedAboveBelow&&je.push("ML__label_padding"),y.below&&y.above){const qe=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ce.depth+Te;ee=new Ya({bottom:qe,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:je},{box:ce,classes:["ML__center"]},b,{box:y.above,classes:je},a.metrics.bigOpSpacing5]})}else y.below?ee=new Ya({top:ce.height-Te,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:je},{box:ce,classes:["ML__center"]}]}):y.above&&(ee=new Ya({bottom:ce.depth+Te,children:[{box:ce,classes:["ML__center"]},b,{box:y.above,classes:je},a.metrics.bigOpSpacing5]}));return new Hr(ee,{type:y.type})}var sf=class Ym extends Or{constructor(y){var b,ee,ce,Te;super(re(ae({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(ee=y.smashDepth)!=null?ee:!1,this.smashHeight=(ce=y.smashHeight)!=null?ce:!1,this.smashWidth=(Te=y.smashWidth)!=null?Te:!1}static fromJson(y){return new Ym(y)}toJson(){const y={};return this.isInvisible&&(y.isInvisible=!0),this.smashDepth&&(y.smashDepth=!0),this.smashHeight&&(y.smashHeight=!0),this.smashWidth&&(y.smashWidth=!0),ae(ae({},super.toJson()),y)}render(y){const b=new va({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Or.createBox(b,this.body,{classes:"inner"});const ee=Or.createBox(this.isInvisible?b:y,this.body);if(!ee)return null;if(this.smashWidth){const ce=new Hr(null,{classes:"fix"});return new Hr([ee,ce],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return ee;if(this.smashHeight&&(ee.height=0),this.smashDepth&&(ee.depth=0),ee.children)for(const ce of ee.children)this.smashHeight&&(ce.height=0),this.smashDepth&&(ce.depth=0);return new Ya({firstBaseline:[{box:ee}]},{type:ee.type}).wrap(y)}},lf=class Jm extends Or{constructor(y){var b;super(ae({type:"spacing"},y)),this.width=y==null?void 0:y.width,this._braced=(b=y==null?void 0:y.braced)!=null?b:!1}static fromJson(y){return new Jm(y)}toJson(){const y=super.toJson();return this.width!==void 0&&(y.width=this.width),this._braced&&(y.braced=!0),y}render(y){var b;if(this.command==="space")return new Hr(this.mode==="math"?null:" ");let ee;if(this.width!==void 0)ee=new Hr(null,{classes:"mspace"}),ee.left=y.toEm(this.width);else{const ce=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";ee=new Hr(null,{classes:ce})}return ee=this.bind(y,ee),this.caret&&(ee.caret=this.caret),ee}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const ee=xt(this.command,this.mode);if(ee!=null&&ee.serialize)return ee.serialize(this,y);const ce=(b=this.command)!=null?b:"";return this.width===void 0?ce:this._braced&&!("register"in this.width)?`${ce}{${hs(this.width)}}`:`${ce}${hs(this.width)}`}},sp=class Qm extends Or{constructor(y){var b;super(re(ae({},y),{type:"surd",mode:(b=y.mode)!=null?b:"math",style:y.style,displayContainsHighlight:!0,body:y.body})),this.above=y.index}static fromJson(y){return new Qm(re(ae({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=xt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const ee=this.command,ce=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?Ti(`${ee}[${this.aboveToLatex(y)}]`,ce):/^[0-9]$/.test(ce)?`${ee}${ce}`:Ti(ee,ce)}get children(){if(this._children)return this._children;const y=[];if(this.above)for(const b of this.above)y.push(...b.children),y.push(b);if(this.body)for(const b of this.body)y.push(...b.children),y.push(b);return this._children=y,y}render(y){var b;const ee=new va({parent:y,mathstyle:"cramp"},this.style),ce=(b=Or.createBox(ee,this.body,{type:"inner"}))!=null?b:new Hr(null),Te=ee.scalingFactor,je=ee.metrics.defaultRuleThickness/Te,qe=y.isDisplayStyle?xa:je,at=new Hr(null,{classes:"ML__sqrt-line",style:this.style});at.height=je,at.softWidth=ce.width;let ut=Te*(je+qe/4);const Ut=Math.max(Te*2*qe,ce.height+ce.depth)+ut+je,Yt=new va({parent:y},this.style),vn=this.bind(Yt,new Hr(Qi("inner","\\surd",Ut,!1,Yt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!vn)return null;const Cn=vn.height+vn.depth-je;Cn>ce.height+ce.depth+ut&&(ut=(ut+Cn-(ce.height+ce.depth))/2),vn.setTop(vn.height-ce.height-ut);const Cr=this.bind(y,new Ya({firstBaseline:[{box:new Hr(ce)},ut-2*je,{box:at},je]})),li=Or.createBox(new va({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!li){const hi=new Hr([vn,Cr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return hi.setStyle("display","inline-block"),hi.setStyle("height",hi.height+hi.depth,"em"),this.caret&&(hi.caret=this.caret),this.bind(y,hi)}const br=new Ya({shift:-.6*(Math.max(vn.height,Cr.height)-Math.max(vn.depth,Cr.depth)),children:[{box:li}]}),Ur=new Hr([new Hr(br,{classes:"ML__sqrt-index",type:"ignore"}),vn,Cr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return Ur.height=vn.height,Ur.depth=vn.depth,this.caret&&(Ur.caret=this.caret),this.bind(y,Ur)}},l0=class extends Hr{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function Df(a,y){if(!a.parent)return;const b=a.parent.children,ee=b.indexOf(a);let ce=ee-1;for(;ce>=0&&b[ce].type==="ignore";)ce-=1;if(ce<0&&a.parent.parent&&a.parent.type==="lift"){Df(a.parent,y);return}ee>0&&b[ee-1].type==="skip"?b[ee-1].width+=y:b.splice(ee,0,new l0(y))}var c0={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},u0={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function d0(a){uf(a,(y,b)=>{b.type==="bin"&&(!y||/^(middle|bin|op|rel|open|punct)$/.test(y.type))&&(b.type="ord"),(y==null?void 0:y.type)==="bin"&&/^(rel|close|punct)$/.test(b.type)&&(y.type="ord"),b.type!=="ignore"&&(y=b)})}function cf(a,y){if(!a.children)return a;const b=a.children;d0(b);const ee=y.getRegisterAsEm("thinmuskip"),ce=y.getRegisterAsEm("medmuskip"),Te=y.getRegisterAsEm("thickmuskip");return uf(b,(je,qe)=>{var at,ut,wt;if(!je)return;const Ut=je.type,Yt=qe.isTight?(at=u0[Ut])!=null?at:null:(ut=c0[Ut])!=null?ut:null,vn=(wt=Yt==null?void 0:Yt[qe.type])!=null?wt:null;vn===3&&Df(qe,ee),vn===4&&Df(qe,ce),vn===5&&Df(qe,Te)}),a}function uf(a,y,b=void 0){if(!a)return b;a=[...a];for(const ee of a)ee.type==="lift"?b=uf(ee.children,y,b):ee.type==="ignore"?uf(ee.children,y):(y(b,ee),uf(ee.children,y),b=ee);return b}var ph=class qm extends Or{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Or({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new qm(re(ae({},y),{tooltip:Ku(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(ee=>ee.type!=="first").map(ee=>ee.toJson());return re(ae({},super.toJson()),{tooltip:b})}render(y){const b=Or.createBox(new va,this.body);if(!b)return null;const ee=new va({parent:y,mathstyle:"displaystyle"},{fontSize:Hi}),ce=Cs(cf(new Hr(this.tooltip.render(ee),{classes:"ML__tooltip-content"}),ee)),Te=new Hr([ce,b],{classes:"ML__tooltip-container"});return this.caret&&(Te.caret=this.caret),this.bind(y,Te)}},hd=class e0 extends Or{constructor(y,b){super(re(ae({},b),{type:"operator",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.variantStyle=b==null?void 0:b.variantStyle,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new e0(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.variantStyle&&(y.variantStyle=this.variantStyle),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.value&&(y.symbol=this.value),y}render(y){var b;const ee=new Hr(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ce=ee;if(this.superscript||this.subscript){const Te=(b=this.subsupPlacement)!=null?b:"auto";ce=Te==="over-under"||Te==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee}):this.attachSupsub(y,{base:ee})}return new Hr(this.bind(y,ce),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=xt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const ee=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&ee.push("\\limits"),this.subsupPlacement==="adjacent"&&ee.push("\\nolimits"),this.subsupPlacement==="auto"&&ee.push("\\displaylimits")),ee.push(this.supsubToLatex(y)),$a(ee)}};function Ku(a){if(ie(a))return a.map(ee=>Ku(ee));if(typeof a=="string")return Or.fromJson(a);a=ae({},a);for(const ee of Ls)a[ee]&&(a[ee]=Ku(a[ee]));a.args&&(a.args=f0(a.args)),a.array&&(a.array=Ku(a.array));const y=a.type;let b;y==="accent"&&(b=te.fromJson(a)),y==="array"&&(b=eo.fromJson(a)),y==="box"&&(b=tl.fromJson(a)),y==="chem"&&(b=rp.fromJson(a)),y==="composition"&&(b=wu.fromJson(a)),y==="delim"&&(b=ip.fromJson(a)),y==="enclose"&&(b=af.fromJson(a)),y==="error"&&(b=Ql.fromJson(a)),y==="extensible-symbol"&&(b=hh.fromJson(a)),y==="genfrac"&&(b=Bd.fromJson(a)),y==="group"&&(b=Al.fromJson(a)),y==="latex"&&(b=Nl.fromJson(a)),y==="latexgroup"&&(b=of.fromJson(a)),y==="leftright"&&(b=Jo.fromJson(a)),y==="macro"&&(b=Nd.fromJson(a)),y==="macro-argument"&&(b=zc.fromJson(a)),y==="operator"&&(b=hd.fromJson(a)),y==="overlap"&&(b=fd.fromJson(a)),y==="overunder"&&(b=Ac.fromJson(a)),y==="placeholder"&&(b=Pa.fromJson(a)),y==="prompt"&&(b=Yc.fromJson(a)),y==="phantom"&&(b=sf.fromJson(a)),y==="sizeddelim"&&(b=ap.fromJson(a)),y==="spacing"&&(b=lf.fromJson(a)),y==="subsup"&&(b=Tc.fromJson(a)),y==="surd"&&(b=sp.fromJson(a)),y==="text"&&(b=uc.fromJson(a)),y==="tooltip"&&(b=ph.fromJson(a)),b||(console.assert(!y||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(y),`MathLive 0.98.5: an unexpected atom type "${y}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),b=Or.fromJson(a));for(const ee of Ls)a[ee]&&b.setChildren(a[ee],ee);return a.verbatimLatex!==void 0&&(b.verbatimLatex=a.verbatimLatex),a.subsupPlacement&&(b.subsupPlacement=a.subsupPlacement),a.explicitSubsupPlacement&&(b.explicitSubsupPlacement=!0),a.isFunction&&(b.isFunction=!0),a.isExtensibleSymbol&&(b.isExtensibleSymbol=!0),a.skipBoundary&&(b.skipBoundary=!0),a.captureSelection&&(b.captureSelection=!0),b}function f0(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>Ku(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>Ku(b)):y)}var lp={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},mh={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},cp=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,h0=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,p0=[/^[a-z]$/,/^[A-Z]$/,cp,h0],m0={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},v0=class extends Wi{constructor(){super("math")}createAtom(a,y,b){var ee,ce,Te,je;if(y===null)return new Or({type:"mord",mode:"math",command:a,value:a,style:b});const qe=window.MathfieldElement.isFunction((ee=y.command)!=null?ee:a);if(y.definitionType==="symbol"){const ut=new Or({type:(ce=y.type)!=null?ce:"mord",mode:"math",command:(Te=y.command)!=null?Te:a,value:String.fromCodePoint(y.codepoint),style:b});return qe&&(ut.isFunction=!0),a.startsWith("\\")&&(ut.verbatimLatex=a),ut}const at=new Or({type:"mord",mode:"math",command:(je=y.command)!=null?je:a,value:a,style:b});return qe&&(at.isFunction=!0),a.startsWith("\\")&&(at.verbatimLatex=a),at}serialize(a,y){const b=g0(a,re(ae({},y),{defaultMode:"math"}));return b.length===0||y.defaultMode!=="text"?b:["$ ",...b," $"]}getFont(a,y){console.assert(y.variant!==void 0);let{variant:b}=y,{variantStyle:ee}=y;b==="normal"&&!ee&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",ee="italic"),b==="normal"&&!ee&&a.value.length===1&&p0.forEach((qe,at)=>{var ut;qe.test(a.value)&&m0[(ut=y.letterShapeStyle)!=null?ut:"tex"][at]==="it"&&(ee="italic")}),ee==="up"&&(ee=void 0);const ce=ee?b+"-"+ee:b;console.assert(lp[ce]!==void 0);const[Te,je]=lp[ce];return mh[b]&&!mh[b].test(a.value)?(a.value=mt(a.value,b,ee),null):(cp.test(a.value)&&(a.classes+=" lcGreek"),je&&(a.classes+=" "+je),Te)}};function g0(a,y){const{parent:b}=a[0],ee=up(b);return Mi(a,"variant").map(ce=>{const Te=up(ce[0]);let je="";Te&&Te!==ee&&(je={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[Te],console.assert(je!==void 0));const qe=$a(ce.map(at=>at._serialize(y)));return je?Ti(je,qe):qe})}function up(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new v0;function y0(a,y){return a.map(b=>b._serialize(y))}function b0(a,y){return Mi(a,"fontShape").map(b=>{const ee=y0(b,y),{fontShape:ce}=b[0].style;let Te="";return ce==="it"&&(Te="\\textit"),ce==="sl"&&(Te="\\textsl"),ce==="sc"&&(Te="\\textsc"),ce==="n"&&(Te="\\textup"),!Te&&ce?`{${Ti("\\fontshape",ce)}${$a(ee)}}`:Te?Ti(Te,$a(ee)):$a(ee)})}function x0(a,y){return Mi(a,"fontSeries").map(b=>{const ee=b0(b,y),{fontSeries:ce}=b[0].style;let Te="";return ce==="b"&&(Te="\\textbf"),ce==="l"&&(Te="\\textlf"),ce==="m"&&(Te="\\textmd"),ce&&!Te?`{${Ti("\\fontseries",ce)}${$a(ee)}}`:Te?Ti(Te,$a(ee)):$a(ee)})}function w0(a,y){return Mi(a,"fontSize").map(b=>{var ee,ce;const Te=x0(b,y),je=(ce=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(ee=b[0].style.fontSize)!=null?ee:""])!=null?ce:"";return je?`${je} ${$a(Te)}`:$a(Te)})}function S0(a,y,b){return Mi(a,"fontFamily").map(ee=>{var ce,Te;const je=w0(ee,y),qe=(Te={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ce=ee[0].style.fontFamily)!=null?ce:""])!=null?Te:"";return qe?`\\${qe}{${$a(je)}}`:ee[0].style.fontFamily?`{\\fontfamily{${ee[0].style.fontFamily}} ${$a(je)}}`:b?`\\text{${$a(je)}}`:$a(je)})}var dp={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},C0=class extends Wi{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new uc(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return S0(a,re(ae({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,ee,ce,Te,je;const{fontFamily:qe}=y;if(dp[qe]?a.classes+=" "+dp[qe]:qe&&a.setStyle("font-family",qe),y.fontShape&&(a.classes+=" ",a.classes+=(b={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[y.fontShape])!=null?b:""),y.fontSeries){const at=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);at&&(a.classes+=" ",a.classes+=(ce={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(ee=at[1])!=null?ee:""])!=null?ce:"",a.classes+=" ",a.classes+=(je={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(Te=at[2])!=null?Te:""])!=null?je:"")}return"Main-Regular"}};new C0;var E0=class extends Wi{constructor(){super("latex")}createAtom(a){return new Nl(a)}serialize(a,y){return a.filter(b=>b instanceof Nl&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new E0;var M0={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},vh={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},fp={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},hp={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},k0={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},_0={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},T0={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},A0={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},O0={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},I0={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},D0={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},P0={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},L0={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function pp(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function jd(a){let y="";return a.shift&&(y+="shift+"),a.alt&&(y+="alt+"),a.ctrl&&(y+="ctrl+"),a.cmd&&(y+="cmd+"),a.win&&(y+="win+"),a.meta&&(y+="meta+"),y+a.key}var R0={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},df=[],ff;function gh(){switch(oe()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function yc(a){(!a.platform||a.platform===gh())&&df.push(a)}function N0(a,y){var b;const ee={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return ee;for(const[ce,Te]of Object.entries(y.mapping)){if(Te[0]===a)return ee.key=`[${ce}]`,ee;if(Te[1]===a)return ee.shift=!0,ee.key=`[${ce}]`,ee;if(Te[2]===a)return ee.alt=!0,ee.key=`[${ce}]`,ee;if(Te[3]===a)return ee.shift=!0,ee.alt=!0,ee.key=`[${ce}]`,ee}return ee.key=(b=R0[a])!=null?b:"",ee}function B0(a){if(a.code)return a;const y=Object.entries(hf().mapping);let b=!1,ee=!1,ce="";for(let Te=0;Te<4;Te++){for(const[je,qe]of y)if(qe[Te]===a.key){ce=je,Te===3?(b=!0,ee=!0):Te===2?b=!0:Te===1&&(ee=!0);break}if(ce)break}return new KeyboardEvent(a.type,re(ae({},a),{altKey:b,shiftKey:ee,code:ce}))}function j0(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const ee=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ce of df)((y=ce.mapping[a.code])==null?void 0:y[ee])===a.key?ce.score+=1:(b=ce.mapping[a.code])!=null&&b[ee]&&(ce.score=0);df.sort((ce,Te)=>Te.score-ce.score)}function F0(a){ff=df.find(y=>a.startsWith(y.locale))}function hf(){return ff!=null?ff:df[0]}function $0(){switch(gh()){case"apple":return vh;case"windows":return fp;case"linux":return hp}return vh}switch(gh()){case"apple":yc(vh),yc(k0),yc(D0),yc(A0);break;case"windows":yc(fp),yc(_0),yc(P0),yc(O0);break;case"linux":yc(hp),yc(T0),yc(L0),yc(I0);break}yc(M0);function yh(a){var y;const b=/macos|ios/.test(oe()),ee=a.split("+");let ce="";for(const Te of ee)ce&&(ce+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),Te.startsWith("[Key")?ce+=Te.slice(4,5):Te.startsWith("Key")?ce+=Te.slice(3,4):Te.startsWith("[Digit")?ce+=Te.slice(6,7):Te.startsWith("Digit")?ce+=Te.slice(5,6):ce+=(y={cmd:"\u2318",meta:b?"\u2318":"Ctrl",shift:b?"\u21E7":"Shift",alt:b?"\u2325":"Alt",ctrl:b?"\u2303":"Ctrl","\n":b?"\u23CE":"Return","[return]":b?"\u23CE":"Return","[enter]":b?"\u2324":"Enter","[tab]":b?"\u21E5":"Tab","[escape]":"Esc","[backspace]":b?"\u232B":"Backspace","[delete]":b?"\u2326":"Del","[pageup]":b?"\u21DE":"Page Up","[pagedown]":b?"\u21DF":"Page Down","[home]":b?"\u2912":"Home","[end]":b?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[Te.toLowerCase()])!=null?y:Te.toUpperCase();return ce}function Pf(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((ee,ce)=>({x:ee.x+ce.clientX,y:ee.y+ce.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function pd(a){const y={alt:!1,control:!1,shift:!1,meta:!1};return(a instanceof MouseEvent||a instanceof PointerEvent||a instanceof TouchEvent||a instanceof KeyboardEvent)&&(a.altKey&&(y.alt=!0),a.ctrlKey&&(y.control=!0),a.metaKey&&(y.meta=!0),a.shiftKey&&(y.shift=!0)),y}function z0(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var K0=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Lf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:K0.has(a.code)}function Rf(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Jc=class ku{static get scrim(){return ku._scrim||(ku._scrim=new ku),ku._scrim}static open(y){ku.scrim.open(y)}static close(){ku.scrim.close()}static get state(){return ku.scrim.state}static get element(){return ku.scrim.element}constructor(y){var b,ee;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(ee=y==null?void 0:y.translucent)!=null?ee:!1,this.state="closed"}get element(){if(this._element)return this._element;const y=document.createElement("div");return y.setAttribute("role","presentation"),y.style.position="fixed",y.style.contain="content",y.style.top="0",y.style.left="0",y.style.right="0",y.style.bottom="0",y.style.zIndex="var(--scrim-zindex, 10099)",y.style.outline="none",this.translucent?(y.style.background="rgba(255, 255, 255, .2)",y.style.backdropFilter="contrast(40%)"):y.style.background="transparent",this._element=y,y}open(y){var b;if(this.state!=="closed")return;this.state="opening",this.onDismiss=y==null?void 0:y.onDismiss,this.savedActiveElement=Rf();const{element:ee}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(ee),ee.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ce=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const Te=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${Te+ce}px`,y!=null&&y.child&&ee.append(y.child),this.state="open"}close(){var y,b,ee,ce;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:Te}=this;Te.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),Te.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Rf()!==this.savedActiveElement&&((ce=(ee=this.savedActiveElement)==null?void 0:ee.focus)==null||ce.call(ee)),Te.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function U0(a,y,b){let ee=null,ce=null,Te=!1,je=!1,qe=!1;const at=new AbortController,ut=at.signal;return a.addEventListener("keydown",wt=>{if(Te||wt.key==="Process"||wt.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(wt.code)){ee=null;return}ee=wt,ce=null,b.onKeystroke(wt)?a.textContent="":ee=null},{capture:!0,signal:ut}),a.addEventListener("keypress",wt=>{Te||(ee&&ce&&b.onKeystroke(ee),ce=wt)},{capture:!0,signal:ut}),a.addEventListener("compositionstart",wt=>{a.textContent="",Te=!0,b.onCompositionStart(wt.data)},{capture:!0,signal:ut}),a.addEventListener("compositionupdate",wt=>{Te&&b.onCompositionUpdate(wt.data)},{capture:!0,signal:ut}),a.addEventListener("compositionend",wt=>{a.textContent="",Te&&(Te=!1,b.onCompositionEnd(wt.data))},{capture:!0,signal:ut}),a.addEventListener("beforeinput",wt=>wt.stopImmediatePropagation(),{signal:ut}),a.addEventListener("input",wt=>{var Ut;if(!Te&&(a.textContent="",wt.inputType!=="insertCompositionText")){if(wt.inputType==="insertFromPaste"){wt.preventDefault(),wt.stopPropagation();return}b.onInput((Ut=wt.data)!=null?Ut:""),wt.preventDefault(),wt.stopPropagation()}},{signal:ut}),a.addEventListener("paste",wt=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(wt)||wt.preventDefault(),wt.stopImmediatePropagation()},{signal:ut}),a.addEventListener("cut",wt=>b.onCut(wt),{capture:!0,signal:ut}),a.addEventListener("copy",wt=>b.onCopy(wt),{capture:!0,signal:ut}),a.addEventListener("blur",wt=>{var Ut,Yt;if(((Yt=(Ut=wt.relatedTarget)==null?void 0:Ut._mathfield)==null?void 0:Yt.element)===y){a.focus({preventScroll:!0}),wt.preventDefault(),wt.stopPropagation();return}const vn=Jc.state;if(vn==="open"||vn==="opening"){wt.preventDefault(),wt.stopPropagation();return}if(wt.relatedTarget===wt.target.getRootNode().host){wt.preventDefault(),wt.stopPropagation();return}qe||je||(qe=!0,ee=null,ce=null,b.onBlur(),qe=!1)},{capture:!0,signal:ut}),a.addEventListener("focus",wt=>{qe||je||(je=!0,b.onFocus(),je=!1)},{capture:!0,signal:ut}),{dispose:()=>at.abort(),cancelComposition:()=>{Te&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!je&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Rf()===a,setAriaLabel:wt=>a.setAttribute("aria-label",wt),setValue:wt=>{var Ut;a.textContent=wt,a.style.left="-1000px",(Ut=window.getSelection())==null||Ut.selectAllChildren(a)},moveTo:(wt,Ut)=>{a.style.top=`${Ut}px`,a.style.left=`${wt}px`}}}function Fd(a){var y;if(!a||!Lf(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function mp(a){a=B0(a);const y=[];return a.ctrlKey&&y.push("ctrl"),a.metaKey&&y.push("meta"),a.altKey&&y.push("alt"),a.shiftKey&&y.push("shift"),y.length===0?`[${a.code}]`:(y.push(`[${a.code}]`),y.join("+"))}function H0(a){if(ue()){const y=oe(),b=a.startsWith("!"),ee=a.endsWith(y);if(b&&!ee||!b&&ee)return!0}return a==="!other"?!1:a==="other"}function W0(a,y,b){if(a.length===0)return"";const ee=jd(pp(mp(b))),ce=jd({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(oe()),cmd:!1,win:!1});for(let Te=a.length-1;Te>=0;Te--)if((a[Te].key===ee||a[Te].key===ce)&&(!a[Te].ifMode||a[Te].ifMode===y))return a[Te].command;return""}function vp(a){let y=a;return ie(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Z0(a,y){let b=[];if(typeof y=="string"){const Te=Fu[y];ie(Te)?b=Te.slice():Te&&b.push(Te)}const ee=vp(y),ce=new RegExp("^"+ee.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const Te of a)ce.test(vp(Te.command))&&b.push(Te.key);return b.map(yh)}function V0(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=pp(a.key);let ee=a.ifPlatform;if(b.cmd){if(ee&&ee!=="macos"&&ee!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+ee+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);ee||(ee=oe()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(ee&&ee!=="windows")throw new Error('Unexpected "win" modifier with platform "'+ee+`"
|
|
|
"win" modifier can only be used with Windows platform.`);ee="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(ee&&!H0(ee))return;if(/^\[.+\]$/.test(b.key))return re(ae({},a),{key:jd(b)});const ce=N0(b.key,y);if(!ce)return re(ae({},a),{key:jd(b)});if(ce.shift&&b.shift||ce.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${bh(a.command)}) is conflicting with the key combination ${jd(ce)} using the ${y.displayName} keyboard layout`);return ce.shift=ce.shift||b.shift,ce.alt=ce.alt||b.alt,ce.meta=b.meta,ce.ctrl=b.ctrl,re(ae({},a),{key:jd(ce)})}function bh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function G0(a,y){const b=[],ee=[];for(const ce of a)try{const Te=V0(ce,y);if(!Te)continue;const je=ee.find(qe=>qe.key===Te.key&&qe.ifMode===Te.ifMode);if(je)throw new Error(`Ambiguous key binding ${ce.key} (${bh(ce.command)}) matches ${je.key} (${bh(je.command)}) with the ${y.displayName} keyboard layout`);ee.push(Te)}catch(Te){Te instanceof Error&&b.push(Te.message)}return[ee,b]}var X0=class extends Wa{constructor(){super("latex")}createAtom(a){return new Nl(a)}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("application/x-latex")||y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Ys(a)),a.startRecording(),!0):!1}insert(a,y,b){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b||(b={}),b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder");const{silenceNotifications:ee}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ce=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Vs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const Te=[];for(const at of y)xe.test(at)&&Te.push(new Nl(at));let je=a.at(a.position);if(je instanceof of&&(je=je.lastChild),!(je.parent instanceof of)){const at=new of("");je.parent.addChildAfter(at,je),je=at.firstChild}const qe=je.parent.addChildrenAfter(Te,je);return a.silenceNotifications=ce,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(qe)):qe&&(a.position=a.offsetOf(qe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=ee,!0}};function Y0(a){return a.atoms.find(y=>y.type==="latexgroup")}function pf(a){var y,b;const ee=a.atoms.find(ce=>ce.type==="latexgroup");return ee?(b=(y=ee.body)==null?void 0:y.filter(ce=>ce.type==="latex"))!=null?b:[]:[]}function gp(a,y){var b;let ee=0,ce=!1;const Te=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;ee<=Te&&!ce;){const at=a.at(ee);ce=at instanceof Nl&&at.isSuggestion,ce||ee++}if(!ce)return[void 0,void 0];let je=ee,qe=!1;for(;je<=Te&&!qe;){const at=a.at(je);qe=!(at instanceof Nl&&at.isSuggestion),qe||je++}return[ee-1,je-1]}new X0;function Nf(a){const y=pf(a.model).filter(b=>b.isSuggestion);if(y.length!==0){a.model.position=a.model.offsetOf(y[0].leftSibling);for(const b of y)b.parent.removeChild(b)}}function mf(a,y){var b;const{model:ee}=a;Nf(a);for(const wt of pf(ee))wt.isError=!1;if(!ee.selectionIsCollapsed||a.options.popoverPolicy==="off"){zd(a);return}const ce=[];let Te=ee.at(ee.position);for(;Te&&Te instanceof Nl&&/^[a-zA-Z\*]$/.test(Te.value);)Te=Te.leftSibling;if(Te&&Te instanceof Nl&&Te.value==="\\")for(ce.push(Te),Te=Te.rightSibling;Te&&Te instanceof Nl&&/^[a-zA-Z\*]$/.test(Te.value);)ce.push(Te),Te=Te.rightSibling;const je=ce.map(wt=>wt.value).join(""),qe=it(a,je);if(qe.length===0){if(/^\\[a-zA-Z\*]+$/.test(je))for(const wt of ce)wt.isError=!0;zd(a);return}const at=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=at<0?qe.length-1:at%qe.length;const ut=qe[a.suggestionIndex];if(ut!==je){const wt=ce[ce.length-1];wt.parent.addChildrenAfter([...ut.slice(je.length-ut.length)].map(Ut=>new Nl(Ut,{isSuggestion:!0})),wt),md(a,{interactive:!0})}Q0(a,qe)}function yp(a){const[y,b]=gp(a,{before:a.position});if(y===void 0||b===void 0)return!1;let ee=!1;return a.getAtoms([y,b]).forEach(ce=>{ce.isSuggestion&&(ce.isSuggestion=!1,ee=!0)}),ee}function $d(a,y="accept",b){var ee,ce;zd(a);const Te=Y0(a.model);if(!Te)return!1;if(y==="accept-suggestion"||y==="accept-all"){const ut=pf(a.model).filter(wt=>wt.isSuggestion);if(ut.length!==0){for(const wt of ut)wt.isSuggestion=!1;a.model.position=a.model.offsetOf(ut[ut.length-1])}if(y==="accept-suggestion")return ut.length!==0}const qe=pf(a.model).filter(ut=>!ut.isSuggestion).map(ut=>ut.value).join(""),at=Te.leftSibling;return Te.parent.removeChild(Te),a.model.position=a.model.offsetOf(at),a.switchMode((ee=b==null?void 0:b.mode)!=null?ee:"math"),y==="reject"||(Wa.insert(a.model,qe,{selectionMode:(ce=b==null?void 0:b.selectItem)!=null&&ce?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function Bf(a){var y;let b=document.getElementById(a);return b?b.dataset.refcount=Number(Number.parseInt((y=b.dataset.refcount)!=null?y:"0")+1).toString():(b=document.createElement("div"),b.setAttribute("aria-hidden","true"),b.dataset.refcount="1",b.id=a,document.body.append(b)),b}function xh(a){var y;const b=document.getElementById(a);if(!b)return;const ee=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");ee<=1?b.remove():b.dataset.refcount=Number(ee-1).toString()}function J0(a,y){const b=new va({from:a.context}),ee=new Or({mode:"math",type:"root",body:Ol(y,{context:b})}),ce=Cs(cf(new Hr(ee.render(b),{classes:"ML__base"}),b));return hl(ce,{classes:"ML__latex"}).toMarkup()}function Q0(a,y){var b;if(y.length===0){zd(a);return}let ee="";for(const[Te,je]of y.entries()){const qe=je,at=J0(a,je),ut=Z0(a.keybindings,qe).join("<br>");ee+=`<li role="button" data-command="${qe}" ${Te===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${qe}</span><span class="ML__popover__command">${at}</span>`,ut&&(ee+=`<span class="ML__popover__keybinding">${ut}</span>`),ee+="</li>"}const ce=q0(a,`<ul>${ee}</ul>`);wh()&&((b=ce.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var Te;ce&&!wh()&&(ce.classList.add("is-visible"),jf(a),(Te=ce.querySelector(".ML__popover__current"))==null||Te.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function wh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function jf(a,y){var b;if(!a.element||a.element.mathfield!==a||!wh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){zd(a);return}if(y!=null&&y.deferred){setTimeout(()=>jf(a),32);return}const ee=vc(a.field);if(!ee)return;const ce=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Te=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,je=window.innerWidth-document.documentElement.clientWidth,qe=window.innerHeight-document.documentElement.clientHeight,at=window.mathVirtualKeyboard.boundingRect.height,ut=document.getElementById("mathlive-suggestion-popover");ee.x+ut.offsetWidth/2>Te-je?ut.style.left=`${Te-ut.offsetWidth-je}px`:ee.x-ut.offsetWidth/2<0?ut.style.left="0":ut.style.left=`${ee.x-ut.offsetWidth/2}px`;const wt=ee.y-ee.height;ce-qe-at-ee.y<wt?(ut.classList.add("ML__popover--reverse-direction"),ut.classList.remove("top-tip"),ut.classList.add("bottom-tip"),ut.style.top=`${ee.y-ee.height-ut.offsetHeight-15}px`):(ut.classList.remove("ML__popover--reverse-direction"),ut.classList.add("top-tip"),ut.classList.remove("bottom-tip"),ut.style.top=`${ee.y+15}px`)}function zd(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function q0(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Bf("mathlive-suggestion-popover"),dc("suggestion-popover"),dc("core"),b.addEventListener("pointerdown",ee=>ee.preventDefault()),b.addEventListener("click",ee=>{let ce=ee.target;for(;ce&&!ce.dataset.command;)ce=ce.parentElement;ce&&($d(a,"reject"),Wa.insert(a.model,ce.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function ev(){document.getElementById("mathlive-suggestion-popover")&&(xh("mathlive-suggestion-popover"),E("suggestion-popover"),E("core"))}function tv(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
|
|
|
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var Ff=null,bp,xp,Sh=((xp=(bp=globalThis==null?void 0:globalThis.document)==null?void 0:bp.currentScript)==null?void 0:xp.src)||tv();function wp(a){return Vu(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Ff===null)try{const y=yield fetch(Sh,{method:"HEAD"});y.status===200&&(Ff=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Sh}")`)}return new URL(a,Ff!=null?Ff:Sh).href})}function nv(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var bc="not-loaded";function rv(){return Vu(this,null,function*(){return bc="not-loaded",$f()})}function $f(){return Vu(this,null,function*(){var a;if(bc!=="not-loaded")return;if(bc="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){bc="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],ee=Array.from(document.fonts).map(je=>je.family);if(b.every(je=>ee.includes(je))){bc="ready";return}if(!window.MathfieldElement.fontsDirectory){bc="not-loaded";return}const ce=yield wp(window.MathfieldElement.fontsDirectory);if(!ce){document.body.classList.add("ML__fonts-did-not-load"),bc="error";return}const Te=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(je=>nv(je[0].replace(/-[a-zA-Z]+$/,""),`${ce}/${je[0]}`,je[1]));try{(yield Promise.all(Te.map(qe=>{try{return qe.load()}catch(at){}}))).forEach(qe=>document.fonts.add(qe)),bc="ready";return}catch(je){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ce}"`,{cause:je}),document.body.classList.add("ML__fonts-did-not-load")}bc="error"}})}function iv(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function Ys(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Jl(a)&&a.dirty&&(a.atomBoundsCache=new Map,md(a,y),a.atomBoundsCache=void 0)})))}function av(a,y){var b;y=y!=null?y:{};const ee=new va({from:re(ae({},a.context),{atomIdsSettings:{seed:y.forHighlighting?iv(Or.serialize([a.model.root],{expandMacro:!1,defaultMode:a.options.defaultMode})):"random",groupNumbers:(b=y.forHighlighting)!=null?b:!1},letterShapeStyle:a.options.letterShapeStyle}),mathstyle:a.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),ce=a.model.root.render(ee);return hl(cf(ce,ee),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Sp(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ce of b.atoms)ce.caret=void 0,ce.isSelected=!1,ce.containsCaret=!1;if(b.selectionIsCollapsed){const ce=b.at(b.position);ce.caret=a.model.mode;let Te=ce.parent;for(;Te;)Te.containsCaret=!0,Te=Te.parent}else{const ce=b.getAtoms(b.selection,{includeChildren:!0});for(const Te of ce)Te.isSelected=!0}return av(a,y).toMarkup()}function md(a,y){if(!Jl(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const ee=a.field;if(!ee)return;const ce=a.isSelectionEditable&&a.hasFocus(),Te=ee.classList.contains("ML__focused");Te&&!ce?ee.classList.remove("ML__focused"):!Te&&ce&&ee.classList.add("ML__focused");let je=Sp(a,y);const qe=a.element.querySelector("[part=menu-toggle]");if(qe&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?qe.style.display="none":qe.style.display=""),a.model.atoms.length<=1){const at=a.options.contentPlaceholder;at&&(je+=`<span part=placeholder class="ML__content-placeholder">${Il(at)}</span>`)}ee.innerHTML=window.MathfieldElement.createHTML(je),zf(a,y.interactive),a.dirty=!1}function zf(a,y){const b=a.field;if(!b)return;for(const qe of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))qe.remove();!(y!=null&&y)&&bc!=="error"&&bc!=="ready"&&setTimeout(()=>{bc==="ready"?zf(a):setTimeout(()=>zf(a),128)},32);const ee=a.model,ce=b.offsetWidth,Te=b.getBoundingClientRect().width;let je=Math.floor(Te)/ce;if(je=isNaN(je)?1:je,ee.selectionIsCollapsed){jf(a,{deferred:!0});let qe=ee.at(ee.position);for(;qe&&qe.type!=="prompt"&&!(qe.containsCaret&&qe.displayContainsHighlight);)qe=qe.parent;if(qe!=null&&qe.containsCaret&&qe.displayContainsHighlight){const at=$u(a,Fc(a,qe),je);if(at){at.left/=je,at.right/=je,at.top/=je,at.bottom/=je;const ut=document.createElement("div");ut.classList.add("ML__contains-highlight"),ut.style.position="absolute",ut.style.left=`${at.left+1}px`,ut.style.top=`${Math.ceil(at.top)}px`,ut.style.width=`${Math.ceil(at.right-at.left)}px`,ut.style.height=`${Math.ceil(at.bottom-at.top)}px`,b.insertBefore(ut,b.childNodes[0])}}return}for(const qe of ov(Bo(a,{excludeAtomsWithBackground:!0}))){qe.left/=je,qe.right/=je,qe.top/=je,qe.bottom/=je;const at=document.createElement("div");at.classList.add("ML__selection"),at.style.position="absolute",at.style.left=`${qe.left}px`,at.style.top=`${qe.top}px`,at.style.width=`${Math.ceil(qe.right-qe.left)}px`,at.style.height=`${Math.ceil(qe.bottom-qe.top-1)}px`,b.insertBefore(at,b.childNodes[0])}}function ov(a){let y=[];for(const b of a){let ee=!1;for(const ce of y)if(b.left===ce.left&&b.right===ce.right&&b.top===ce.top&&b.bottom===ce.bottom){ee=!0;break}ee||y.push(b)}a=y,y=[];for(const b of a){let ee=0;for(const ce of a)if(b.left>=ce.left&&b.right<=ce.right&&b.top>=ce.top&&b.bottom<=ce.bottom&&(ee+=1,ee>1))break;ee===1&&y.push(b)}return y}var Cp=3,Qc;function fc(a,y){y=ae({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Qc||(Qc={});for(const b of Object.keys(a))console.assert(!Qc[b],"Selector already defined: ",b),Qc[b]=re(ae({},y),{fn:a[b]})}function Ch(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Ch(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Qc[y]}function Kd(a){var y;return(y=Ch(a))==null?void 0:y.target}function sv(a,y){var b;if(!y)return!1;let ee,ce=[],Te=!1,je=!1;ie(y)?(ee=y[0],ce=y.slice(1)):ee=y,ee=ee.replace(/-\w/g,ut=>ut[1].toUpperCase());const qe=Qc[ee],at=qe==null?void 0:qe.target;if(at==="model"){if(!a.isSelectionEditable&&(qe!=null&&qe.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(ee)&&(ee!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(ee)),/^complete/.test(ee)||Nf(a),Qc[ee].fn(a.model,...ce),mf(a),je=!0,Te=!0}else if(at==="virtual-keyboard")je=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,Te=!0;else if(Qc[ee]){if(!a.isSelectionEditable&&(qe!=null&&qe.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(ee)&&a.flushInlineShortcutBuffer(),je=Qc[ee].fn(a,...ce),Te=!0}else throw new Error(`Unknown command "${ee}"`);return at!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||qe!=null&&qe.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),qe!=null&&qe.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),je&&Ys(a),Te}function lv(a,y){var b;if(!a)return!1;a.focus(),ym.keypressVibration&&he()&&navigator.vibrate(Cp);const ee=Ch(y);window.MathfieldElement.playSound((b=ee==null?void 0:ee.audioFeedback)!=null?b:"keypress");const ce=a.executeCommand(y);return a.scrollIntoView(),ce}fc({performWithFeedback:(a,y)=>lv(a,y)});function cv(a){return mf(a,{atIndex:a.suggestionIndex+1}),!1}function uv(a){return mf(a,{atIndex:a.suggestionIndex-1}),!1}fc({complete:$d},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),fc({nextSuggestion:cv,previousSuggestion:uv},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Kf="mathlive#virtual-keyboard-message";function Eh(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Kf}var dv=class t0{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new t0),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,ee){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,ee){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Eh(y)){if(!as(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:ee}=y;Kd(ee)==="virtual-keyboard"&&this.executeCommand(ee);return}if(b==="synchronize-proxy"){this._boundingRect=y.boundingRect,this._isShifted=y.isShifted;return}if(b==="geometry-changed"){this._boundingRect=y.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(y,b={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(ae({type:Kf,action:y},b),this.targetOrigin)}},Ep={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>φ</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>ς</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>ϵ</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>ρ</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>τ</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>υ</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>θ</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>ι</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>ο</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>π</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>α</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>σ</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>δ</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>γ</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>η</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>ξ</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>κ</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>λ</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>ζ</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>χ</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>ψ</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>ω</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>β</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>ν</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>μ</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>ε</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>ϑ</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>ϰ</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>ϖ</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>ϱ</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
|
|
|
.minimalist-backdrop {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.minimalist-container {
|
|
|
--keycap-height: 40px;
|
|
|
--keycap-max-width: 53px;
|
|
|
--keycap-small-font-size: 12px;
|
|
|
background: var(--keyboard-background);
|
|
|
padding: 20px;
|
|
|
border-top-left-radius: 8px;
|
|
|
border-top-right-radius: 8px;
|
|
|
border: 1px solid var(--keyboard-border);
|
|
|
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
|
|
|
}
|
|
|
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Uf={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},vf;function Mp(a,y){var b,ee,ce;const Te=Uu.singleton;if(!Te)return;const je=Ud(a),qe=(ee=(b=Te.getKeycap(je==null?void 0:je.id))==null?void 0:b.variants)!=null?ee:"";if(typeof qe=="string"&&!kp(qe)||Array.isArray(qe)&&qe.length===0){y==null||y();return}const at={};let ut="";for(const Cr of hv(qe)){const li=Tp(Cr),br=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);at[br]=li;const[Ur,hi]=Hf(li);ut+=`<div id=${br} class="item ${hi}">${Ur}</div>`}const wt=document.createElement("div");wt.setAttribute("aria-hidden","true"),wt.className="MLK__variant-panel",wt.style.height="auto";const Ut=Object.keys(at).length;let Yt=5;Ut===1?Yt=1:Ut===2||Ut===4?Yt=2:Ut===3||Ut===5||Ut===6?Yt=3:Ut>=7&&Ut<14&&(Yt=4),wt.style.width=`calc(var(--variant-keycap-length) * ${Yt} + 12px)`,wt.innerHTML=ym.createHTML(ut),Jc.open({root:(ce=Te==null?void 0:Te.container)==null?void 0:ce.querySelector(".ML__keyboard"),child:wt}),vf=new AbortController;const{signal:vn}=vf,Cn=a==null?void 0:a.getBoundingClientRect();if(Cn){Cn.top-wt.clientHeight<0&&(wt.style.width="auto",Ut<=6?wt.style.height="56px":Ut<=12?wt.style.height="108px":Ut<=18?wt.style.height="205px":wt.classList.add("compact"));const Cr=Math.max(0,Math.min(window.innerWidth-wt.offsetWidth,(Cn.left+Cn.right-wt.offsetWidth)/2)),li=Cn.top-wt.clientHeight+5;wt.style.transform=`translate(${Cr}px, ${li}px)`,wt.classList.add("is-visible"),requestAnimationFrame(()=>{wt.addEventListener("pointerup",br=>{const Ur=Ud(br.target);!(Ur!=null&&Ur.id)||!at[Ur.id]||(Mh(at[Ur.id]),gf(),y==null||y(),br.preventDefault())},{capture:!0,passive:!1,signal:vn}),wt.addEventListener("pointerenter",br=>{const Ur=Ud(br.target);!(Ur!=null&&Ur.id)||!at[Ur.id]||Ur.classList.add("is-active")},{capture:!0,signal:vn}),wt.addEventListener("pointerleave",br=>{const Ur=Ud(br.target);!(Ur!=null&&Ur.id)||!at[Ur.id]||Ur.classList.remove("is-active")},{capture:!0,signal:vn}),window.addEventListener("pointercancel",()=>{gf(),y==null||y()},{signal:vn}),window.addEventListener("pointerup",()=>{gf(),y==null||y()},{signal:vn})})}}function gf(){vf==null||vf.abort(),vf=null,Jc.state==="open"&&Jc.close()}function fv(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Ae))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Ae[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Ne))y.push({class:"swatch-button",label:'<span style="background:'+Ne[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function kp(a){return Uf[a]!==void 0}function hv(a){var y;return typeof a!="string"?a:(Uf[a]||(Uf[a]=(y=fv(a))!=null?y:[]),Uf[a])}function pv(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function mv(a){return Object.keys(a).map(y=>`${y} {${pv(a[y])}}`).join("")}function yf(a){if(!a)return"";const y=new va,b=new Or({mode:"math",type:"root",body:Ol(a,{context:y,args:ce=>ce==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),ee=Cs(cf(new Hr(b.render(y),{classes:"ML__base"}),y));return hl(ee,{classes:"ML__latex"}).toMarkup()}function bf(a){var y;if(Array.isArray(a))return a.map(ee=>bf(ee)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(ee=>ee.map(ce=>Tp(ce)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function vv(){var a,y;let ee=window.mathVirtualKeyboard.alphabeticLayout;if(ee==="auto"){const qe=hf();qe&&(ee=qe.virtualLayout),(!ee||ee==="auto")&&(ee=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[ye.locale.slice(0,2)])!=null?a:"qwerty")}const ce={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},Te=(y=ce[ee])!=null?y:ce.qwerty,je=ee==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const qe of Te){const at=[];for(const ut of qe)/[a-z]/.test(ut)?at.push({label:ut,class:"hide-shift",shift:{label:ut.toUpperCase()},variants:kp(ut)?ut:void 0}):ut==="~"?ee!=="dvorak"?at.push("[backspace]"):at.push({label:"[backspace]",width:1}):ut==="^"?at.push("[shift]"):ut===" "&&at.push("[separator-5]");je.push(at)}return je.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:bf({rows:je})}}function _p(a){if(a==="alphabetic")return vv();if(typeof a=="string")return console.assert(Ep[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),_p(Ep[a]);let y;if("rows"in a&&Array.isArray(a.rows)){console.assert(!("layers"in a||"markup"in a),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ce=a,{rows:Te}=ce,je=me(ce,["rows"]);y=re(ae({},je),{layers:bf({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ce=a,{markup:Te}=ce,je=me(ce,["markup"]);y=re(ae({},je),{layers:bf(a.markup)})}else y=ae({},a),"layers"in a?y.layers=bf(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,ee=!1;for(const ce of y.layers)if(ce.rows)for(const Te of ce.rows.flat()){Hd(Te)&&(b=!0);const je=Te.command;typeof je=="string"&&["undo","redo","cut","copy","paste"].includes(je)&&(ee=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!ee),y}function gv(a,y){var b,ee;let ce='<div class="left">';if(a.normalizedLayouts.length>1)for(const[Te,je]of a.normalizedLayouts.entries()){const qe=je,at=[Te===y?"selected":"layer-switch"];qe.tooltip&&at.push("MLK__tooltip"),qe.labelClass&&at.push(...qe.labelClass.split(" ")),ce+=`<div class="${at.join(" ")}"`,qe.tooltip&&(ce+=" data-tooltip='"+((b=_e(qe.tooltip))!=null?b:qe.tooltip)+"' "),Te!==y&&(ce+=`data-layer="${qe.layers[0].id}"`),ce+=`>${(ee=qe.label)!=null?ee:"untitled"}</div>`}return ce+="</div>",ce}function yv(a,y){let b="";if(a.editToolbar==="none")return"";const ce=[];y.selectionIsCollapsed?ce.push("undo","redo","pasteFromClipboard"):ce.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const Te={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${_e("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${_e("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${_e("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${_e("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${_e("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ce.map(je=>Te[je]).join(""),b}function bv(a){for(const y of a)xv(y)}function xv(a){const y=Uu.singleton;if(!y)return;const b={};if(!a.id){if(a.hasAttribute("data-label")&&(b.label=a.dataset.label),a.hasAttribute("data-latex")&&(b.latex=a.dataset.latex),a.hasAttribute("data-key")&&(b.key=a.dataset.key),a.hasAttribute("data-insert")&&(b.insert=a.dataset.insert),a.hasAttribute("data-variants")&&(b.variants=a.dataset.variants),a.hasAttribute("data-aside")&&(b.aside=a.dataset.aside),a.className&&(b.class=a.className),!b.label&&!b.latex&&!b.key&&!b.insert&&(b.latex=a.innerText,b.label=a.innerHTML),a.hasAttribute("data-command"))try{b.command=JSON.parse(a.dataset.command)}catch(ee){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[ee,ce]=Hf(b);a.innerHTML=window.MathfieldElement.createHTML(ee)}}function wv(){dc("virtual-keyboard"),dc("core"),$f()}function Sv(){E("core"),E("virtual-keyboard")}var Cv=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function Ev(a){a.resetKeycapRegistry(),wv();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Cv+a.normalizedLayouts.map((je,qe)=>Mv(a,je,qe)).join(""));const ee=document.createElement("div");ee.className="MLK__backdrop",ee.appendChild(b),y.appendChild(ee),y.addEventListener("pointerdown",_v,{passive:!1});const ce=y.querySelectorAll(".ML__edit-toolbar");if(ce)for(const je of ce)je.addEventListener("click",qe=>{var at,ut;let wt=qe.target,Ut="";for(;wt&&!Ut;)Ut=(at=wt==null?void 0:wt.getAttribute("data-command"))!=null?at:"",wt=(ut=wt==null?void 0:wt.parentElement)!=null?ut:null;Ut&&a.executeCommand(JSON.parse(Ut))});bv(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const Te=y.querySelectorAll(".MLK__layer");console.assert(Te.length>0,"No virtual keyboards available");for(const je of Te)je.addEventListener("pointerdown",qe=>qe.preventDefault());return a.currentLayer=a.latentLayer,y}function Mv(a,y,b){const ee=[];if(!("layers"in y))return"";for(const ce of y.layers)ee.push(`<div tabindex="-1" class="MLK__layer" id="${ce.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(ee.push("<div class='MLK__toolbar' role='toolbar'>"),ee.push(gv(a,b)),y.displayEditToolbar&&ee.push('<div class="ML__edit-toolbar right"></div>'),ee.push("</div>")),ee.push(kv(a,ce)),ee.push("</div>");return ee.join("")}function kv(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${mv(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const ee of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ce of ee)if(ce){const Te=a.registerKeycap(ce),[je,qe]=Hf(ce);/(^|\s)separator/.test(qe)?b+=`<div class="${qe}"`:b+=`<div tabindex="-1" id="${Te}" class="${qe}"`,ce.tooltip&&(b+=` data-tooltip="${ce.tooltip}"`),b+=`>${je}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Hf(a,y={shifted:!1}){var b,ee,ce,Te,je,qe,at;let ut="",wt=(b=a.class)!=null?b:"";if(y.shifted&&Hd(a)&&(wt+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?ut=yf(a.shift):typeof a.shift=="object"&&(ut=a.shift.label?a.shift.label:(ee=yf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?ee:""),typeof a.shift=="object"&&(wt=(Te=(ce=a.shift.class)!=null?ce:a.class)!=null?Te:"");else{if(ut=a.label?a.label:(je=yf(a.latex||a.insert||"")||a.key)!=null?je:"",a.shift){let Ut;typeof a.shift=="string"?Ut=yf(a.shift):a.shift.label?Ut=a.shift.label:Ut=(qe=yf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?qe:"",ut+=`<span class="MLK__shift">${Ut}</span>`}a.aside&&(ut+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(wt)&&(wt+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(wt)||(wt+=" MLK__keycap"),!/\bw[0-9]+\b/.test(wt)&&a.width&&(wt+=(at={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?at:""),[ut,wt||"MLK__keycap"]}var vd={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function Tp(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!vd[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&vd[a.label]&&(b=re(ae(ae({},vd[a.label]),a),{label:vd[a.label].label})),"key"in a&&a.key&&vd[a.key]&&(b=re(ae(ae({},vd[a.key]),a),{key:vd[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=ae(ae({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=ae(ae({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=ae(ae({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=ae(ae({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var xf;function _v(a){var y;if(a.button!==0)return;const b=Uu.singleton;if(!b)return;let ee=a.target;for(;ee&&!ee.getAttribute("data-layer");)ee=ee.parentElement;if(ee){b.currentLayer=(y=ee.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ce=Ud(a.target);if(!(ce!=null&&ce.id))return;const Te=b.getKeycap(ce.id);if(!Te)return;console.assert(a.type==="pointerdown");const je=new AbortController,qe=je.signal;ce.classList.add("is-pressed"),ce.addEventListener("pointerenter",Wf(je),{capture:!0,signal:qe}),ce.addEventListener("pointerleave",Wf(je),{capture:!0,signal:qe}),ce.addEventListener("pointercancel",Wf(je),{signal:qe}),ce.addEventListener("pointerup",Wf(je),{signal:qe}),Hd(Te)&&(ce.classList.add("is-active"),b.shiftPressCount++),Te.variants&&(xf&&clearTimeout(xf),xf=setTimeout(()=>{ce.classList.contains("is-pressed")&&(ce.classList.remove("is-pressed"),ce.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),Mp(ce,()=>{je.abort(),ce==null||ce.classList.remove("is-active")}))},300)),a.preventDefault()}function Wf(a){return y=>{const b=Ud(y.target);if(!(b!=null&&b.id))return;const ee=Uu.singleton;if(!ee)return;const ce=ee.getKeycap(b.id);if(ce){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),Hd(ce)&&(ee.shiftPressCount--,b.classList.toggle("is-active",ee.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),Hd(ce)&&(ee.shiftPressCount--,b.classList.toggle("is-active",ee.isShifted));return}if(y.type==="pointerup"){xf&&clearTimeout(xf),Hd(ce)?b.classList.toggle("is-active",ee.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),ee.isShifted&&ce.shift?typeof ce.shift=="string"?ee.executeCommand(["insert",ce.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Mh(ce.shift):Mh(ce),ee.shiftPressCount===1&&!y.shiftKey&&(ee.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Mh(a){var y;let b=a.command;!b&&a.insert&&(b=["insert",a.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!b&&a.key&&(b=["typedText",a.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!b&&a.latex&&(b=["insert",a.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),b||(b=["typedText",a.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(y=Uu.singleton)==null||y.executeCommand(b)}function Tv(a){if(a.nodeType!==1)return!1;const y=a.classList;return y.contains("MLK__keycap")||y.contains("shift")||y.contains("action")||y.contains("fnbutton")||y.contains("bigfnbutton")}function Ud(a){if(!a)return;let y=a;for(;y&&!Tv(y);)y=y.parentElement;return y!=null?y:void 0}function Hd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Uu=class n0{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,ee;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(b=(y=window.document)==null?void 0:y.body)!=null?b:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ce=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(ee=window.top)==null||ee.addEventListener("message",this)}catch(ce){window.addEventListener("message",this)}document.body.addEventListener("focusin",ce=>{const Te=ce.target;Te!=null&&Te.isConnected&&setTimeout(()=>{const je=Ap();je&&!je.readOnly&&je.mathVirtualKeyboardPolicy==="auto"&&fe()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ce=>{ce.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{Ap()||this.hide()},300)})}get currentLayer(){var y,b,ee;return(ee=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?ee:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let ee=y?this._element.querySelector(`#${y}.MLK__layer`):null;ee||(ee=this._element.querySelector(".MLK__layer")),ee&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),ee.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(y){var b;this._shiftPressCount=y>2||y<0?0:y,(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(y){const b="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[b]=y,b}getKeycap(y){return y?this.keycapRegistry[y]:void 0}getLayer(y){const b=this.normalizedLayouts;for(const ee of b)for(const ce of ee.layers)if(ce.id===y)return ce}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(y){this._alphabeticLayout=y,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(y){this._actionKeycap=typeof y=="string"?{label:y}:y}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(y){this._shiftKeycap=typeof y=="string"?{label:y}:y}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(y){this._backspaceKeycap=typeof y=="string"?{label:y}:y}get tabKeycap(){return this._tabKeycap}set tabKeycap(y){this._tabKeycap=typeof y=="string"?{label:y}:y}get layouts(){return this._layouts}set layouts(y){this.updateNormalizedLayouts(y),this.rebuild()}updateNormalizedLayouts(y){const b=Array.isArray(y)?[...y]:[y],ee=b.findIndex(ce=>ce==="default");ee>=0&&b.splice(ee,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ce=>_p(ce))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(y){this._editToolbar=y,this.rebuild()}get container(){return this._container}set container(y){this._container=y,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new n0}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,ee){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,ee){this.listeners[y]&&this.listeners[y].delete(b)}get element(){return this._element}set element(y){var b;this._element!==y&&((b=this._element)==null||b.remove(),this._element=y)}get visible(){return this._visible}set visible(y){y?this.show():this.hide()}get boundingRect(){var y;if(!this._visible)return new DOMRect;const b=(y=this._element)==null?void 0:y.getElementsByClassName("MLK__plate")[0];return b?b.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var y,b;const ee=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${ee}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ce=ee-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ce}px)`:`${ce}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${ee}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const y=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=y,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const y=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(y&&(y.backdrop||y.container)));const b=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(b)for(const ee of b){const ce=this.getKeycap(ee.id);if(ce){const[Te,je]=Hf(ce,{shifted:this.isShifted});ee.innerHTML=window.MathfieldElement.createHTML(Te),ee.className=je}}}show(y){var b;if(this._visible)return;const ee=this.container;if(ee&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ce=this._element.getElementsByClassName("MLK__plate")[0];if(ce&&this.observer.observe(ce),ee===window.document.body){const Te=ee.style.paddingBottom;this.originalContainerBottomPadding=Te;const je=ce.offsetHeight-1;ee.style.paddingBottom=Te?`calc(${Te} + ${je}px)`:`${je}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,y!=null&&y.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ce;return(ce=this._element)==null?void 0:ce.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(y){var b;const ee=this.container;if(ee&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ce=this._element.getElementsByClassName("MLK__plate")[0];ce&&this.observer.unobserve(ce),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),gf(),Sv(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(ee.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Ev(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&Mp(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Eh(y)){if(!as(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:ee}=y;if(ee==="execute-command"){const{command:ce}=y,Te=Kd(ce);if(window.top!==void 0&&Te!=="virtual-keyboard")return;this.executeCommand(ce);return}if((ee==="connect"||ee==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),ee!=="disconnect"&&window===window.top){if(ee==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(ee==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(ee==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(ee==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,ee){if(ee||(ee=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||ee===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:ae({type:Kf,action:y},b)}));return}if(ee)ee.postMessage(ae({type:Kf,action:y},b),{targetOrigin:this.targetOrigin});else if(b.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:b.command})),y==="execute-command"&&Array.isArray(b.command)&&b.command[0]==="insert"){const ce=b.command[1].split("");for(const Te of ce)this.dispatchEvent(new KeyboardEvent("keydown",{key:Te,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:Te,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const ee=b.querySelectorAll(".ML__edit-toolbar");if(ee)for(const ce of ee)ce.innerHTML=yv(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,ee=[],ce=Kd(y);return ie(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ce=Kd(y)),ee=y.slice(1)):b=y,b=b.replace(/-\w/g,Te=>Te[1].toUpperCase()),ce==="virtual-keyboard"?Qc[b].fn(void 0,...ee):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function Ap(){var a,y;let b=Rf(),ee=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){ee=b.host;break}b=b.parentNode}return ee}if(ue()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Uu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>dv.singleton,configurable:!0});function Zf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const ee=a.scriptDepth;if(ie(ee))y.scriptDepth=[ee[0],ee[1]];else if(typeof ee=="number")y.scriptDepth=[ee,ee];else if(typeof ee=="string"){const[Te,je]=ee.split(",").map(qe=>parseInt(qe.trim()));y.scriptDepth=[Te,je]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ce=a.mathVirtualKeyboardPolicy.toLowerCase();if(ce==="sandboxed"){if(window!==window.top){const Te=Uu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>Te})}ce="manual"}y.mathVirtualKeyboardPolicy=ce;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?ye.locale.startsWith("fr")?y.letterShapeStyle="french":y.letterShapeStyle="tex":y.letterShapeStyle=a.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(a.defaultMode)?y.defaultMode=a.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),y.defaultMode="math");break;case"macros":y.macros=Dt(a.macros);break;default:ie(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=ae({},a[b]):y[b]=a[b]}return y}function gd(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const ee={};for(const ce of b)a[ce]===null?ee[ce]=null:ie(a[ce])?ee[ce]=[...a[ce]]:typeof a[ce]=="object"&&!(a[ce]instanceof Element)&&ce!=="computeEngine"?ee[ce]=ae({},a[ce]):ee[ce]=a[ce];return typeof y=="string"?ee[y]:ee}function Vf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Pe,backgroundColorMap:Le,letterShapeStyle:ye.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:a=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(a),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:Ld,inlineShortcuts:vu,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:ld,value:""}}function Op(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Hu(a,y){!a||!y||(ie(a)?a.forEach(b=>Hu(b,y)):typeof a=="object"&&!a.style.color&&!a.style.backgroundColor&&!a.style.fontFamily&&!a.style.fontShape&&!a.style.fontSeries&&!a.style.fontSize&&!a.style.variant&&!a.style.variantStyle&&(a.applyStyle(y),Hu(a.body,y),Hu(a.above,y),Hu(a.below,y),Hu(a.subscript,y),Hu(a.superscript,y)))}function kh(a,y,b,ee){function ce(je,qe){for(const at of Te)if(at.style[je]!==qe)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const Te=a.getAtoms(y,{includeChildren:!0});ee.operation==="toggle"&&(b.color&&ce("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ce("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ce("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ce("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ce("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ce("fontSize",b.fontSize)&&(b.fontSize=Hi),b.variant&&ce("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ce("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const je of Te)je.applyStyle(b);return!0}function Av(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:ee}=b;b.caret=void 0;const ce=new wu(y,{mode:b.mode});ce.caret=ee,b.parent.addChildAfter(ce,b),a.position+=1}}function Ov(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}St(["math","displaymath"],Oc),St("center",Oc),jt("displaylines","",{parse:a=>{const y=[];let b=[];a.beginContext({tabular:!0});do{if(a.end()||a.match("<}>"))break;a.matchColumnSeparator()||a.matchRowSeparator()?(y.push([b]),b=[]):b.push(...a.scan(ee=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(ee)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new eo("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Wt("array","{columns:colspec}",(a,y,b,ee)=>new eo(a,_h(y),b,{columns:ee[0],mathstyleName:"textstyle"})),Wt(["equation","equation*","subequations"],"",(a,y,b)=>new eo(a,_h(y),b,{columns:[{align:"c"}]})),Wt(["multline","multline*"],"",Oc),Wt(["align","align*","aligned","eqnarray"],"",Oc),Wt("split","",Oc),Wt(["gather","gathered"],"",Oc),Wt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Oc),Wt(["smallmatrix","smallmatrix*"],"[columns:colspec]",Oc),Wt(["cases","dcases","rcases"],"",Oc);function Iv(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function _h(a,y=1){return Iv(a)?Array(y).fill([[new Or({type:"first"}),new Pa]]):a.map(b=>b.length===0?[[new Or({type:"first"})]]:b.map(ee=>ee.length===0?[new Or({type:"first"})]:(ee[0].type!=="first"&&ee.unshift(new Or({type:"first"})),ee)))}function Oc(a,y=[[[]]],b=[],ee=[]){switch(y=_h(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new eo(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new eo(a,y,b,{mathstyleName:"textstyle"});case"center":return new eo(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new eo(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new eo(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new eo(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new eo(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:yd(ee[0])});case"bmatrix":case"bmatrix*":return new eo(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:yd(ee[0])});case"Bmatrix":case"Bmatrix*":return new eo(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:yd(ee[0])});case"vmatrix":case"vmatrix*":return new eo(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:yd(ee[0])});case"Vmatrix":case"Vmatrix*":return new eo(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:yd(ee[0])});case"matrix":case"matrix*":return new eo(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:yd(ee==null?void 0:ee[0])});case"smallmatrix":case"smallmatrix*":return new eo(a,y,b,{mathstyleName:"scriptstyle",columns:yd(ee==null?void 0:ee[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new eo(a,y,b,{mathstyleName:a==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new eo(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new eo(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ce=0;for(const qe of y)ce=Math.max(ce,qe.length);const Te=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let je=2;for(;je<ce;)Te.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),je+=2;return Te.push({gap:0}),new eo(a,y,b,{arraycolsep:0,columns:Te,minColumns:2})}}return new eo(a,y,b,{mathstyleName:"textstyle"})}function yd(a){return a!=null?a:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Dv(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof eo);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof eo)){const ee=a.at(a.position);if(b=ee,!b.parent.parent){let ce=a.extractAtoms([a.position,a.lastOffset]),Te=a.extractAtoms([0,a.position]);Te.length===0&&(Te=Yf()),ce.length===0&&(ce=Yf());let je;return y.endsWith("column")?(je=Oc("split",[[Te,ce]]),a.root=je,bd(je,0,0)?xd(a,je,0,0):bd(je,0,1)?xd(a,je,0,1):a.position=a.offsetOf(ee)):(je=Oc("lines",[[Te],[ce]]),a.root=je,bd(je,0,0)?xd(a,je,0,0):bd(je,1,0)?xd(a,je,1,0):a.position=a.offsetOf(ee)),[void 0,[0,0]]}if(b.parent instanceof Jo){const ce=b.parent;let Te=a.extractAtoms([a.position,a.offsetOf(ce.lastChild)]),je=a.extractAtoms([a.offsetOf(ce.firstChild),a.position]);je.length===0&&(je=Yf()),Te.length===0&&(Te=Yf());let qe="pmatrix";const at=ce.leftDelim,ut=ce.rightDelim;at==="("&&(ut===")"||ut==="?")?qe="pmatrix":(at==="["||at==="\\lbrack")&&(ut==="]"||ut==="\\rbrack"||ut==="?")?qe="bmatrix":at==="\\vert"&&ut==="\\vert"?qe="vmatrix":at==="\\Vert"&&ut==="\\Vert"?qe="Vmatrix":(at==="{"||at==="\\lbrace")&&(ut==="."||ut==="?")&&(qe="cases");const wt=Oc(qe,y.endsWith("column")?[[je,Te]]:[[je],[Te]]);return ce.parent.addChildBefore(wt,ce),ce.parent.removeChild(ce),bd(wt,0,0)?xd(a,wt,0,0):y.endsWith("column")?bd(wt,0,1)?xd(a,wt,0,1):a.position=a.offsetOf(b):bd(wt,1,0)?xd(a,wt,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof eo?[b.parent,b.parentBranch]:[void 0,[0,0]]}function bd(a,y,b){const ee=a.getCell(y,b);return!ee||ee.length!==2?!1:ee[1].type==="placeholder"}function Pv(a,y,b,ee){const ce=y.getCell(b,ee);return ce?[a.offsetOf(ce[0]),a.offsetOf(ce[ce.length-1])]:-1}function xd(a,y,b,ee){const ce=Pv(a,y,b,ee);typeof ce!="number"&&a.setSelection(ce)}function Gf(a,y,b,ee,ce){const Te=y.getCell(b,ee);Te&&a.setPositionHandlingPlaceholder(a.offsetOf(Te[ce==="start"?0:Te.length-1]))}function Xf(a,y){const[b,[ee,ce]]=Dv(a,y);if(b)switch(y){case"after row":b.addRowAfter(ee),Gf(a,b,ee+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ce),Gf(a,b,ee,ce+1,"end");break;case"before row":b.addRowBefore(ee),Gf(a,b,ee,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ce),Gf(a,b,ee,ce,"start");break}}function Ip(a){return a.contentWillChange({inputType:"insertText"})?(Xf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Lv(a){return a.contentWillChange({inputType:"insertText"})?(Xf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Dp(a){return a.contentWillChange({inputType:"insertText"})?(Xf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Rv(a){return a.contentWillChange({inputType:"insertText"})?(Xf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pp(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",ee=".";switch(y){case"pmatrix":case"pmatrix*":b="(",ee=")";break;case"bmatrix":case"bmatrix*":b="[",ee="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",ee="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",ee="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",ee="\\Vert";break;case"matrix":case"matrix*":b=".",ee=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":ee="\\rbrace";break}const ce=a.at(a.position),Te=ce.type==="array"?ce:a.parentEnvironment;return Te.environmentName=y,Te.leftDelim=b,Te.rightDelim=ee,a.contentDidChange({}),!0}function Lp(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof eo);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof eo){const ee=b.parent,ce=b.parentBranch;let Te;switch(y){case"row":if(ee.rowCount>1){ee.removeRow(ce[0]);const je=ee.getCell(Math.max(0,ce[0]-1),ce[1]);Te=a.offsetOf(je[je.length-1])}break;case"column":if(ee.colCount>ee.minColumns){ee.removeColumn(ce[1]);const je=ee.getCell(ce[0],Math.max(0,ce[1]-1));Te=a.offsetOf(je[je.length-1])}break}Te&&a.setPositionHandlingPlaceholder(Te)}}function Nv(a){return a.contentWillChange({inputType:"deleteContent"})?(Lp(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Bv(a){return a.contentWillChange({inputType:"deleteContent"})?(Lp(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}fc({addRowAfter:Ip,addColumnAfter:Dp,addRowBefore:Lv,addColumnBefore:Rv,removeRow:Nv,removeColumn:Bv,setEnvironment:Pp},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Yf(){return[new Pa]}var Rp=class r0{constructor(y){this.recording=!1,this.model=y,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(y){y&&this.index>=0&&(this.stack[this.index].selection=y),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(y){return this.recording?(y&&y===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>r0.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};Rp.maximumDepth=1e3;var jv=Rp;function Th(a,y,b){if(a.at(y).mode!=="text")return y;const ee=b==="backward"?-1:1;let ce;if($e.test(a.at(y).value)){let Te=y,je;do je=a.at(Te).mode==="text"&&$e.test(a.at(Te).value),Te+=ee;while(a.at(Te)&&je);ce=a.at(Te)?Te-2*ee:Te-ee}else if(/\s/.test(a.at(y).value)){let Te=y;for(;a.at(Te)&&a.at(Te).mode==="text"&&/\s/.test(a.at(Te).value);)Te+=ee;if(!a.at(Te))ce=Te-ee;else{let je=!0;do je=a.at(Te).mode==="text"&&!/\s/.test(a.at(Te).value),Te+=ee;while(a.at(Te)&&je);ce=a.at(Te)?Te-2*ee:Te-ee}}else{let Te=y;for(;a.at(Te)&&a.at(Te).mode==="text"&&!/\s/.test(a.at(Te).value);)Te+=ee;ce=a.at(Te)?Te:Te-ee;let je=!0;for(;a.at(Te)&&je;)je=a.at(Te).mode==="text"&&/\s/.test(a.at(Te).value),je&&(ce=Te),Te+=ee;ce=a.at(Te)?Te-2*ee:Te-ee}return ce-(ee>0?0:1)}function Wd(a,y,b){var ee,ce,Te,je,qe,at,ut;const wt=a.position;(ee=b==null?void 0:b.extend)!=null&&ee||a.collapseSelection(y);let Ut=a.at(a.position);if(y==="forward"&&(Ut.type==="subsup"?(Ut=Ut.rightSibling,Ut||(Ut=a.at(a.position+1))):Ut=a.at(a.position+1)),!Ut)return a.announce("plonk"),!1;let Yt=a.offsetOf(Ut);if(Ut instanceof uc)Yt=Th(a,Yt,y);else if(Ut instanceof Nl)if(Ut.isSuggestion)for(console.assert(y==="forward");Ut&&Ut instanceof Nl;)Ut.isSuggestion=!1,Yt=a.offsetOf(Ut),Ut=Ut.rightSibling;else if(y==="forward"){if(Ut=Ut.rightSibling,!Ut||!(Ut instanceof Nl))return a.announce("plonk"),!1;for(;Ut&&Ut instanceof Nl&&/[a-zA-Z\*]/.test(Ut.value);)Yt=a.offsetOf(Ut),Ut=Ut.rightSibling}else{if(Ut=Ut.leftSibling,!Ut||!(Ut instanceof Nl))return a.announce("plonk"),!1;for(;Ut&&Ut instanceof Nl&&/[a-zA-Z\*]/.test(Ut.value);)Yt=a.offsetOf(Ut),Ut=Ut.leftSibling}else if(y==="forward"&&Ut.type==="mopen"){let vn=0;do Ut.type==="mopen"?vn+=1:Ut.type==="mclose"&&(vn-=1),Ut=Ut.rightSibling;while(!Ut.isLastSibling&&vn!==0);Yt=a.offsetOf(Ut.leftSibling)}else if(y==="backward"&&Ut.type==="mclose"){let vn=0;do Ut.type==="mopen"?vn+=1:Ut.type==="mclose"&&(vn-=1),Ut=Ut.leftSibling;while(!Ut.isFirstSibling&&vn!==0);Yt=a.offsetOf(Ut)}else if(y==="backward")if(Ut.type==="first")for(;Yt>0&&Ut.type==="first";)Yt-=1,Ut=a.at(Yt);else{const vn=Ut.type;Ut.type==="subsup"&&(Yt=a.offsetOf(a.at(Yt).leftSibling)),Yt-=1;let Cn=(ce=a.at(Yt))==null?void 0:ce.type;for(;Yt>=0&&Cn===vn;)((Te=a.at(Yt))==null?void 0:Te.type)==="subsup"?Yt=a.offsetOf(a.at(Yt).leftSibling):Yt-=1,Cn=a.at(Yt).type}else{const{type:vn}=Ut;let Cn=(je=a.at(Yt))==null?void 0:je.type;const{lastOffset:Cr}=a;for(;Yt<=Cr&&(Cn===vn||Cn==="subsup");){for(;((qe=a.at(Yt).rightSibling)==null?void 0:qe.type)==="subsup";)Yt=a.offsetOf(a.at(Yt).rightSibling);Yt+=1,Cn=(at=a.at(Yt))==null?void 0:at.type}Yt-=1}if((ut=b==null?void 0:b.extend)!=null&&ut){if(!a.setSelection(a.anchor,Yt))return a.announce("plonk"),!1}else{if(Yt===a.position)return a.announce("plonk"),!1;a.position=Yt}return a.announce("move",wt),a.mathfield.stopCoalescingUndo(),!0}function qc(a,y,b){var ee,ce;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[qe,at]=gp(a);qe!==void 0&&at!==void 0&&a.deleteAtoms([qe,at])}if(y==="upward")return $v(a,b);if(y==="downward")return zv(a,b);if(b.extend){let qe=Jf(a,a.position,y);qe<0&&(qe=0),qe>a.lastOffset&&(qe=a.lastOffset);const at=a.setSelection(a.anchor,qe);return a.mathfield.stopCoalescingUndo(),at}if(a.selectionIsPlaceholder){a.collapseSelection(y);const qe=qc(a,y);return a.mathfield.stopCoalescingUndo(),qe}let Te=a.position;const je=Te;if(a.collapseSelection(y)?(Te=a.position,Np(a,Te)||(Te=Jf(a,Te,y))):Te=Jf(a,Te,y),Te<0||Te>a.lastOffset){let qe=!0;return a.silenceNotifications||(qe=(ce=(ee=a.mathfield.host)==null?void 0:ee.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ce:!0),qe&&a.announce("plonk"),qe}return a.setPositionHandlingPlaceholder(Te),a.mathfield.stopCoalescingUndo(),a.announce("move",je),!0}function Jf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||Np(a,y)?y:Jf(a,y,b)}function Np(a,y){var b;const ee=a.at(y);let ce=ee.parent;for(;ce&&!ce.inCaptureSelection;)ce=ce.parent;return!(ce!=null&&ce.inCaptureSelection||(b=ee.parent)!=null&&b.skipBoundary&&(!ee.isFirstSibling&&ee.isLastSibling||ee.type==="first")||a.mathfield.hasEditablePrompts&&!ee.parentPrompt)}function Fv(a,y,b){let ee=1/0,ce=0;for(;ce<y.length;ce++){const Te=Rl(a.getHTMLElement(y[ce])).right,je=Math.abs(b-Te);if(je<=ee)ee=je;else break}return y[ce-1]}function Qf(a,y,b,ee,ce){const Te=a.mathfield.hasEditablePrompts,je=Te?b.filter(ut=>ut.type==="prompt"&&!ut.captureSelection):b,qe=Rl(a.mathfield.getHTMLElement(y)).right,at=a.offsetOf(Fv(a.mathfield,je,qe))-(Te?1:0);if(ee){const[ut,wt]=a.selection.ranges[0];let Ut;at<(ce==="up"?ut:wt)?Ut={ranges:[[at,wt]],direction:"backward"}:Ut={ranges:[[ut,at]],direction:"forward"},a.setSelection(Ut)}else a.setPositionHandlingPlaceholder(at);a.announce(`move ${ce}`)}function $v(a,y){var b,ee;const ce=(b=y==null?void 0:y.extend)!=null?b:!1;ce||a.collapseSelection("backward");const Te=()=>{var at,ut;let wt=!0;return a.silenceNotifications||(wt=(ut=(at=a.mathfield.host)==null?void 0:at.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ut:!0),a.announce(wt?"plonk":"line"),wt},je=a.at(a.position);let qe=je;for(;qe&&qe.parentBranch!=="below"&&!(Array.isArray(qe.parentBranch)&&qe.parent instanceof eo);)qe=qe.parent;if(Array.isArray(qe==null?void 0:qe.parentBranch)&&qe.parent instanceof eo){const at=qe.parent;if(qe.parentBranch[0]<1)return Te();const ut=qe.parentBranch[0]-1,wt=at.array[ut][qe.parentBranch[1]];if(!wt.some(Yt=>Yt.type==="prompt"&&!Yt.captureSelection)&&a.mathfield.hasEditablePrompts)return Te();Qf(a,je,wt,ce,"up")}else if(qe){const at=(ee=qe.parent.branch("above"))!=null?ee:qe.parent.createBranch("above");if(!at.some(wt=>wt.type==="prompt"&&wt.placeholderId)&&a.mathfield.hasEditablePrompts)return Te();Qf(a,je,at,ce,"up")}else return Te();return a.mathfield.stopCoalescingUndo(),!0}function zv(a,y){var b,ee;const ce=(b=y==null?void 0:y.extend)!=null?b:!1;ce||a.collapseSelection("forward");const Te=()=>{var at,ut;let wt=!0;return a.silenceNotifications||(wt=(ut=(at=a.mathfield.host)==null?void 0:at.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?ut:!0),a.announce(wt?"plonk":"line"),wt},je=a.at(a.position);let qe=je;for(;qe&&qe.parentBranch!=="above"&&!(Array.isArray(qe.parentBranch)&&qe.parent instanceof eo);)qe=qe.parent;if(Array.isArray(qe==null?void 0:qe.parentBranch)&&qe.parent instanceof eo){const at=qe.parent;if(qe.parentBranch[0]+1>at.array.length-1)return Te();const ut=qe.parentBranch[0]+1,wt=at.array[ut][qe.parentBranch[1]];if(!wt.some(Yt=>Yt.type==="prompt"&&!Yt.captureSelection)&&a.mathfield.hasEditablePrompts)return Te();Qf(a,je,wt,ce,"down")}else if(qe){const at=(ee=qe.parent.branch("below"))!=null?ee:qe.parent.createBranch("below");if(!at.some(wt=>wt.type==="prompt")&&a.mathfield.hasEditablePrompts)return Te();Qf(a,je,at,ce,"down")}else return Te();return!0}function Bp(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function Kv(a){let y=0,b=a.at(a.position),ee=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(ee=!1):ee=!0,b=b.parent;return ee?y:0}function Uv(a){let y=0,b=a.at(a.position),ee=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(ee=!0):ee=!1,b=b.parent;return ee?y:0}function jp(a){var y;if(a.collapseSelection(),Kv(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new Tc({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function Fp(a){var y;if(a.collapseSelection(),Uv(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new Tc({style:a.at(a.position).computedStyle}),b),b=a.at(a.position+1)),b.createBranch("subscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.subscript[0]))),!0}function Hv(){function a(at){const ut=[],wt=[];return[...at.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Yt,vn)=>{const Cn=ee(Yt);Cn===0?ut.push(Yt):wt.push({documentOrder:vn,tabIndex:Cn,node:Yt})}),wt.sort((Yt,vn)=>Yt.tabIndex===vn.tabIndex?Yt.documentOrder-vn.documentOrder:Yt.tabIndex-vn.tabIndex).map(Yt=>Yt.node).concat(ut)}function y(at){return!(!b(at)||ce(at)||ee(at)<0)}function b(at){return!(at.disabled||at.type==="hidden"&&at.tagName.toUpperCase()==="INPUT"||qe(at))}function ee(at){var ut;const wt=Number.parseInt((ut=at.getAttribute("tabindex"))!=null?ut:"NaN",10);return Number.isNaN(wt)?at.contentEditable==="true"||(at.nodeName==="AUDIO"||at.nodeName==="VIDEO")&&at.getAttribute("tabindex")===null?0:at.tabIndex:wt}function ce(at){return at.tagName.toUpperCase()==="INPUT"&&at.type==="radio"&&!je(at)}function Te(at,ut){for(const wt of at)if(wt.checked&&wt.form===ut)return wt;return null}function je(at){var ut;if(!at.name)return!0;const Ut=((ut=at.form)!=null?ut:at.ownerDocument).querySelectorAll('input[type="radio"][name="'+at.name+'"]'),Yt=Te(Ut,at.form);return!Yt||Yt===at}function qe(at){if(!ue()||at===document.activeElement||at.contains(document.activeElement))return!1;if(getComputedStyle(at).visibility==="hidden")return!0;const ut=at.getBoundingClientRect();if(ut.width===0||ut.height===0)return!0;for(;at;){if(getComputedStyle(at).display==="none")return!0;at=at.parentElement}return!1}return ue()?a(document.body):[]}function ql(a,y,b="forward"){const ee=a.position;if(Array.isArray(y)){const ce=a.offsetOf(y[0]),Te=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ce,Te):a.setSelection(Te,ce),a.announce("move",ee),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?ql(a,[y.leftSibling,y]):ql(a,[y,y.leftSibling])}function Kc(a,y){const b=a.position;if(typeof y=="number"&&(y=a.at(y)),y.type==="prompt")a.setSelection(a.offsetOf(y.firstChild),a.offsetOf(y.lastChild));else{const ee=a.offsetOf(y);y.type==="placeholder"?a.setSelection(ee-1,ee):a.position=ee}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function qf(a,y,b=!0){var ee,ce;const Te=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&qc(a,y);let je;const qe=a.at(a.anchor).parentPrompt;qe?y==="forward"?je=a.offsetOf(qe)+1:je=a.offsetOf(qe.leftSibling):je=Math.max(a.position+Te,0);const at=Ah(a,je,y);if(!at||y==="forward"&&a.offsetOf(at)<je||y==="backward"&&a.offsetOf(at)>je){if(!b||!((ce=(ee=a.mathfield.host)==null?void 0:ee.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ce))return a.announce("plonk"),!1;const wt=Hv();if(!document.activeElement||wt.length<=1)return a.announce("plonk"),!1;let Ut=wt.indexOf(document.activeElement)+Te;return Ut<0&&(Ut=wt.length-1),Ut>=wt.length&&(Ut=0),wt[Ut].focus(),a.mathfield.stopCoalescingUndo(),!0}return Kc(a,at),!0}function Ah(a,y=0,b="forward"){return a.findAtom(ee=>ee.type==="placeholder"||ee.type==="prompt"||!a.mathfield.readOnly&&ee.treeDepth>2&&ee.isFirstSibling&&ee.isLastSibling,y,b)}fc({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:ee}=b;if(!ee)return a.announce("plonk"),!1;const ce=b.parentBranch;let Te;if(typeof ce=="string"&&(Te=y[ce]),!Te){const qe=b.subsupPlacement?Fp(a):jp(a);return a.mathfield.stopCoalescingUndo(),qe}ee.branch(Te)||ee.createBranch(Te);const je=a.setSelection(a.getBranchRange(a.offsetOf(ee),Te));return a.mathfield.stopCoalescingUndo(),je},moveBeforeParent:a=>{const{parent:y}=a.at(a.position);return y?(a.position=a.offsetOf(y),a.mathfield.stopCoalescingUndo(),!0):(a.announce("plonk"),!1)},moveAfterParent:a=>Bp(a),moveToNextChar:a=>qc(a,"forward"),moveToPreviousChar:a=>qc(a,"backward"),moveUp:a=>qc(a,"upward"),moveDown:a=>qc(a,"downward"),moveToNextWord:a=>Wd(a,"forward"),moveToPreviousWord:a=>Wd(a,"backward"),moveToGroupStart:a=>{const y=a.offsetOf(a.at(a.position).firstSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:a=>{const y=a.offsetOf(a.at(a.position).lastSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:a=>{var y,b,ee,ce;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return qf(a,"forward");const Te=a.at(a.position);if(Te.mode==="text"){if(a.selectionIsCollapsed){let Yt=Te;for(;Yt&&Yt.mode==="text";)Yt=Yt.leftSibling;let vn=Te;for(;((y=vn.rightSibling)==null?void 0:y.mode)==="text";)vn=vn.rightSibling;if(Yt&&vn)return ql(a,[Yt,vn])}if(Te.rightSibling.mode==="text"){let Yt=Te;for(;Yt&&Yt.mode==="text";)Yt=Yt.rightSibling;return Yt?(Kc(a,(b=Yt.leftSibling)!=null?b:Yt),a.mathfield.switchMode("math"),!0):Kc(a,a.lastOffset)}}const qe=a.at(a.anchor).parentPrompt,at=qe?a.offsetOf(qe)+1:Math.max(a.position+1,0),ut=Ah(a,at,"forward");if(ut)return Kc(a,ut);const wt=$p(a,Te,Yt=>Yt.type==="leftright"||Yt.type==="text","forward");if(wt){if(wt.mode==="text"){let Yt=wt;for(;Yt&&Yt.mode==="text";)Yt=Yt.rightSibling;return ql(a,[(ee=wt.leftSibling)!=null?ee:wt,(ce=Yt.leftSibling)!=null?ce:Yt])}return ql(a,wt)}const Ut=Te.parent;if(Ut){if(Ut.type==="leftright"||Ut.type==="surd")return ql(a,Ut);if(Te.parentBranch==="superscript"&&Ut.subscript)return ql(a,Ut.subscript);if(Te.parentBranch==="above"&&Ut.below)return ql(a,Ut.below);if(Te.parentBranch==="superscript"||Te.parentBranch==="subscript")return Kc(a,Ut);if(Te.parentBranch==="above"||Te.parentBranch==="below")return ql(a,Ut)}return Kc(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return qf(a,"backward");let b=a.at(a.position);const ee=b.mode;if(ee==="text"){if(a.selectionIsCollapsed){let qe=b;for(;qe&&qe.mode==="text";)qe=qe.leftSibling;let at=b;for(;((y=at.rightSibling)==null?void 0:y.mode)==="text";)at=at.rightSibling;if(qe&&at)return ql(a,[qe,at])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?Kc(a,b):Kc(a,0)}const ce=a.at(a.anchor).parentPrompt,Te=ce?a.offsetOf(ce.leftSibling):Math.max(a.position-1,0),je=Ah(a,Te,"backward");if(je)return Kc(a,je);if(ee==="math"){const qe=$p(a,b,ut=>ut.type==="leftright"||ut.type==="text","backward");if(qe){if(qe.mode==="text"){let ut=qe;for(;ut&&ut.mode==="text";)ut=ut.leftSibling;return ql(a,[qe,ut])}return ql(a,qe)}const at=b.parent;if(at){if(at.type==="leftright"||at.type==="surd")return ql(a,at);if(b.parentBranch==="subscript"&&at.superscript)return ql(a,at.superscript);if(b.parentBranch==="below"&&at.above)return ql(a,at.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return Kc(a,at);if(b.parentBranch==="above"||b.parentBranch==="below")return ql(a,at)}return Kc(a,0)}return!1},moveToMathfieldStart:a=>a.selectionIsCollapsed&&a.position===0?(a.announce("plonk"),!1):(a.position=0,a.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:a=>a.selectionIsCollapsed&&a.position===a.lastOffset?(a.announce("plonk"),!1):(a.position=a.lastOffset,a.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:jp,moveToSubscript:Fp},{target:"model",changeSelection:!0}),fc({moveToNextPlaceholder:a=>qf(a,"forward"),moveToPreviousPlaceholder:a=>qf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function $p(a,y,b,ee){if(ee==="forward"){let Te=y.rightSibling;for(;Te&&!b(Te);)Te=Te.rightSibling;return Te}let ce=y.leftSibling;for(;ce&&!b(ce);)ce=ce.leftSibling;return ce}function eh(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let ee=a.position,ce=!1,Te="";for(;!ce;){const je=a.at(ee);ce=y===0||je===void 0||je.type==="first"||je.mode!=="math"||!(je.type&&/mord|mpunct|operator/.test(je.type)||je.type==="mop"&&/[a-zA-Z ]+/.test(je.value))||!je.hasEmptyBranch("superscript")||!je.hasEmptyBranch("subscript")||typeof b=="function"&&!b(je),ce||(je.mode="text",je.command=je.value,je.verbatimLatex=void 0,Te+=je.value),ee-=1,y-=1}a.contentDidChange({data:Te,inputType:"insertText"})}function wd(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let ee=a.position,ce=!1;const Te=[];for(;!ce;){const je=a.at(ee);ce=y===0||!je||je.type==="first"||je.isFirstSibling||je.mode!=="text"||je.value===" "||typeof b=="function"&&!b(je),ce||(Te.push(Or.serialize([je],{defaultMode:"math"})),je.mode="math"),ee-=1,y-=1}Oh(a),a.contentDidChange({data:$a(Te),inputType:"insertText"})}function Oh(a){var y;let b=a.position-1;for(;b>=0&&((y=a.at(b))==null?void 0:y.mode)==="math";)b-=1;if(!(b<0)&&a.at(b).mode==="text"&&a.at(b).value===" "&&a.at(b-1).mode==="math"){a.at(b-1).parent.removeChild(a.at(b-1));const ee=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=ee,a.contentDidChange({inputType:"deleteContent"})}}function Wv(a){let y="",b=a.position,ee=!1;for(;!ee;){const ce=a.at(b);ee=!(ce&&(ce.mode==="text"||ce.mode==="math"&&ce.type&&/mord|mpunct/.test(ce.type))),ee||(y=ce.value+y),b-=1}return y}function Zv(a,y,b){const{model:ee}=a;if(ee.mode==="latex"||!ee.at(ee.position).isLastSibling||!b||!Lf(b))return!1;const ce=Fd(b);if(!ee.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ce));const Te=Wv(ee)+ce;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ce))return!0;if(/[\^_]/.test(ce))return/(^|\s)[a-zA-Z][^_]$/.test(Te)&&wd(ee,1),!0;const je={")":"(","}":"{","]":"["}[ce],{parent:qe}=ee.at(ee.position);if(je&&qe instanceof Jo&&qe.leftDelim===je)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(Te))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ce))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(Te))return wd(ee,1),!1;if(/\D\.[^\d\s]$/.test(Te)){wd(ee,1);const at=ee.at(ee.position);return at.value="\u22C5",at.style.variant="normal",at.command="\\cdot",at.verbatimLatex=void 0,ee.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(Te)||/\.\d$/.test(Te)||/\([\d+\-.]$/.test(Te))return wd(ee,1),!0;if(/\([a-z][,;]$/.test(Te))return wd(ee,2),!0;if(/[\d+\-=><*|]$/.test(ce))return Oh(ee),!0}else{if(y==="[Space]")return eh(ee,void 0,je=>/[a-z][:,;.]$/.test(je.value)),!0;if(/[a-zA-Z]{3,}$/.test(Te)&&!/(dxd|abc|xyz|uvw)$/.test(Te))return eh(ee,void 0,je=>/[a-zA-Z]/.test(je.value)),!0;if(/(^|\W)(if)$/i.test(Te))return eh(ee,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(Te)&&!/(αβγ)$/.test(Te))return eh(ee,void 0,je=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(je.value)),!0;if(ce==="?"||ce==="."&&!/[\d-+]\.$/.test(Te))return!0}return!1}function Vv(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=zp(),ee=a.element.getBoundingClientRect();b.style.left=`${ee.left}px`,b.style.top=`${ee.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(yh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gv(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=zp();y.innerHTML=""}else{const y=Bf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function zp(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(dc("keystroke-caption"),dc("core"),Bf("mathlive-keystroke-caption-panel"))}function Xv(){document.getElementById("mathlive-keystroke-caption-panel")&&(xh("mathlive-keystroke-caption-panel"),E("core"),E("keystroke-caption"))}function Kp(a,y){var b,ee,ce;const{model:Te}=a,je=mp(y);if(y.isTrusted){j0(y);const vn=hf();a.keyboardLayout!==vn.id&&(a.keyboardLayout=vn.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vv(a,je),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let qe,at="",ut;const wt=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(Te.mode==="math")if(je==="[Backspace]")wt.pop();else if(!Lf(y))a.flushInlineShortcutBuffer();else{const vn=Fd(y),Cn=[...(ee=(b=wt[wt.length-1])==null?void 0:b.keystrokes)!=null?ee:[],vn];wt.push({state:Te.getState(),keystrokes:Cn,leftSiblings:Yv(a)});let Cr=0,li="";for(;!qe&&Cr<Cn.length;)ut=wt.length-(Cn.length-Cr),li=Cn.slice(Cr).join(""),qe=Nu(wt[ut].leftSiblings,li,a.options.inlineShortcuts),!qe&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(li)&&(qe=a.options.onInlineShortcut(a,li)),Cr+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(qe?a.switchMode("math"):Zv(a,je,y)&&(a.switchMode({math:"text",text:"math"}[Te.mode]),at=""))}if(!qe){if(at||(at=W0(a.keybindings,Te.mode,y)),!at&&(je==="[Enter]"||je==="[Return]")){let vn=!1;return Te.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(vn=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),vn||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),Te.contentDidChange({inputType:"insertLineBreak"})),vn}if((!at||je==="[Space]")&&Te.mode==="math"){if(je==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Wa.insert(Te,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),at="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const vn=Te.at(Te.position+1),Cn=Te.at(Te.position-1);if((vn==null?void 0:vn.mode)==="text"||(Cn==null?void 0:Cn.mode)==="text")return Wa.insert(Te," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ce=Te.at(Te.position))!=null&&ce.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Fd(y)===","&&(at="insertDecimalSeparator")}}if(!qe&&!at){if(Te.mathfield.smartFence){if(Dh(Te,Fd(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:vn}=Te.at(Te.position);if(vn instanceof Jo&&vn.rightDelim==="?"&&Te.at(Te.position).isLastSibling&&/^[)}\]|]$/.test(je))return a.snapshot(),vn.isDirty=!0,vn.rightDelim=je,Te.position+=1,Te.selectionDidChange(),Te.contentDidChange({data:Fd(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!Te.selectionIsCollapsed){const Cn=Fd(y);if(Cn==="("||Cn==="{"||Cn==="["){const Cr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Cn],li={"(":")","{":"\\rbrace","[":"\\rbrack"}[Cn],[br,Ur]=Vs(Te.selection);return a.snapshot(),Te.position=Ur,Wa.insert(Te,li,{format:"latex"}),Te.position=br,Wa.insert(Te,Cr,{format:"latex"}),Te.setSelection(br+1,Ur+1),Te.contentDidChange({data:Cn,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Ut=Te.at(Math.max(Te.position,Te.anchor)),{parent:Yt}=Ut;if(at==="moveAfterParent"&&(Yt==null?void 0:Yt.type)==="leftright"&&Ut.isLastSibling&&a.options.smartFence&&Dh(Te,".",a.defaultStyle)&&(at="",Ys(a)),a.keyboardDelegate.cancelComposition(),at)a.executeCommand(at);else if(qe){const vn=a.effectiveStyle;Te.setState(wt[ut].state);const Cn=wt[wt.length-1].keystrokes;for(const Cr of Cn)Wa.insert(Te,Cr,{silenceNotifications:!0,style:vn});a.snapshot("insert-shortcut"),Te.setState(wt[ut].state),Te.deferNotifications({content:!0,selection:!0,data:qe,type:"insertText"},()=>(Wa.insert(Te,qe,{format:"latex",style:vn}),Oh(a.model),qe.endsWith(" ")&&(a.switchMode("text"),Wa.insert(Te," ",{style:vn,mode:"text"})),a.snapshot(),Te.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,Te.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Ih(a,y,b){const{model:ee}=a;if(!a.isSelectionEditable){ee.announce("plonk");return}b!=null||(b={}),b.focus&&a.focus(),b.feedback&&window.MathfieldElement.playSound("keypress"),typeof b.mode=="string"&&(a.switchMode(b.mode),a.snapshot());let ce=Ts(y);const Te=window.mathVirtualKeyboard;if(Te!=null&&Te.isShifted&&(ce=typeof ce=="string"?ce.toUpperCase():ce.map(at=>at.toUpperCase())),b.simulateKeystroke){let at=!0;for(const ut of ce)Kp(a,new KeyboardEvent("keypress",{key:ut}))&&(at=!1);if(at)return}const je=ee.at(ee.position),qe=ae(ae({},je.computedStyle),a.defaultStyle);if(ee.selectionIsCollapsed||(ee.deleteAtoms(Vs(ee.selection)),a.snapshot("delete")),ee.mode==="latex")ee.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Nf(a);for(const at of ce)Wa.insert(ee,at);a.snapshot("insert-latex"),mf(a)});else if(ee.mode==="text"){for(const at of ce)Wa.insert(ee,at,{style:qe});a.snapshot("insert-text")}else if(ee.mode==="math")for(const at of ce)Jv(a,at,qe,je);a.dirty=!0,a.scrollIntoView()}function Yv(a){const y=a.model,b=[];let ee=y.at(Math.min(y.position,y.anchor));for(;ee.type!=="first";)b.push(ee),ee=ee.leftSibling;return b}function Jv(a,y,b,ee){const ce=a.model;let Te={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(Te=["insert",a.options.mathModeSpace]),Te){a.executeCommand(Te);return}if(/\d/.test(y)&&a.options.smartSuperscript&&ee.parentBranch==="superscript"&&ee.parent.type!=="mop"&&ee.parent.type!=="operator"&&ee.parent.type!=="extensible-symbol"&&ee.hasNoSiblings){Qv(ce),Wa.insert(ce,y,{style:b}),a.snapshot(),Bp(ce),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const je=a.adoptStyle==="left"?ee:ee.parent?ee.rightSibling:null;(je==null?void 0:je.type)==="mord"&&/[a-zA-Z0-9]/.test(je.value)&&(b=ae({},b),je.style.variant&&(b.variant=je.style.variant),je.style.variantStyle&&(b.variantStyle=je.style.variantStyle))}Wa.insert(ce,y,{style:b}),a.snapshot(`insert-${ce.at(ce.position).type}`)}function Qv(a){a.selectionIsCollapsed||(a.deleteAtoms(Vs(a.selection)),a.mathfield.snapshot("delete"))}function Dh(a,y,b){if(!y||a.mode!=="math")return!1;const ee=a.at(a.position),{parent:ce}=ee,Te={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!Te)return!1;const je=ge[Te],qe=be[Te];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[at,ut]=Vs(a.selection),wt=a.extractAtoms([at,ut]),Ut=ce.addChildrenAfter([new Jo("left...right",wt,{leftDelim:Te,rightDelim:qe})],a.at(at));return a.setSelection(a.offsetOf(Ut.firstChild),a.offsetOf(Ut.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:Te,inputType:"insertText"}),!0}if(Te==="|"){const at=ce instanceof Jo?ce.leftDelim+ce.rightDelim:"";if(at==="\\lbrace\\rbrace"||at==="\\{\\}"||at==="\\lbrace?")return a.mathfield.snapshot(),Wa.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:Te,inputType:"insertText"}),!0}if(qe){if(ce instanceof Jo&&ce.firstChild===ee&&(ce.leftDelim==="?"||ce.leftDelim==="."))return ce.leftDelim=Te,ce.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ce instanceof Jo)){let Ut=ee;for(;Ut&&!(Ut.type==="mclose"&&Ut.value===qe);)Ut=Ut.rightSibling;if(Ut){a.mathfield.snapshot();const Yt=a.extractAtoms([a.offsetOf(ee),a.offsetOf(Ut)]);return Yt.pop(),ce.addChildrenAfter([new Jo("left...right",Yt,{leftDelim:Te,rightDelim:qe})],ee),a.position=a.offsetOf(ce.firstChild)+1,a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const at=a.offsetOf(ee.lastSibling);let ut;for(ut=a.position;ut<=at;ut++){const Ut=a.at(ut);if(Ut instanceof Jo&&(Ut.leftDelim==="?"||Ut.leftDelim===".")&&Up(Te,Ut.rightDelim))break}const wt=a.at(ut);if(ut<=at&&wt instanceof Jo){wt.leftDelim=Te,a.mathfield.snapshot();let Ut=a.extractAtoms([a.position,ut-1]);return Ut=Ut.filter(Yt=>Yt.type!=="first"),wt.addChildren(Ut,wt.parentBranch),a.position+=1,a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ce instanceof Jo&&(ce.leftDelim==="?"||ce.leftDelim===".")&&Up(Te,ce.rightDelim)){ce.isDirty=!0,ce.leftDelim=Te,a.mathfield.snapshot();const Ut=a.extractAtoms([a.offsetOf(ee.firstSibling),a.position]);for(const Yt of Ut)ce.parent.addChildBefore(Yt,ce);return a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ce instanceof Jo&&ce.leftDelim==="|")){if(a.mathfield.snapshot(),Wa.insert(a,`\\left${Te}\\right?`,{format:"latex",style:b}),ee.lastSibling.type!=="first"){const Ut=a.offsetOf(ee.lastSibling),Yt=a.extractAtoms([a.position,Ut]);a.at(a.position).body=Yt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(je){let at=ee;for(;at;){if(at.type==="mopen"&&at.value===je){a.mathfield.snapshot();const vn=at.leftSibling,Cn=a.extractAtoms([a.offsetOf(at.leftSibling),a.offsetOf(ee)]);Cn.shift();const Cr=new Jo("left...right",Cn,{leftDelim:je,rightDelim:Te});return ce.addChildrenAfter([Cr],vn),a.position=a.offsetOf(Cr),a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}at=at.leftSibling}if(ce instanceof Jo&&ee.isLastSibling&&Ph(ce.leftDelim,Te))return a.mathfield.snapshot(),ce.isDirty=!0,ce.rightDelim=Te,a.position+=1,a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const ut=a.offsetOf(ee.firstSibling);let wt;for(wt=a.position;wt>=ut;wt--){const vn=a.at(wt);if(vn instanceof Jo&&(vn.rightDelim==="?"||vn.rightDelim===".")&&Ph(vn.leftDelim,Te))break}const Ut=a.at(wt);if(wt>=ut&&Ut instanceof Jo)return a.mathfield.snapshot(),Ut.rightDelim=Te,Ut.addChildren(a.extractAtoms([wt,a.position]),Ut.parentBranch),a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ce instanceof Jo&&(ce.rightDelim==="?"||ce.rightDelim===".")&&Ph(ce.leftDelim,Te))return a.mathfield.snapshot(),ce.isDirty=!0,ce.rightDelim=Te,ce.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(ee.lastSibling)]),ce.parentBranch),a.position=a.offsetOf(ce),a.contentDidChange({data:Te,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Yt=ce.parent;return Yt instanceof Jo&&(Yt.rightDelim==="?"||Yt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Yt),Dh(a,Te,b)):!1}return!1}function Ph(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):be[a]===y:!0}function Up(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):ge[y]===a:!0}fc({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Gv,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,ee)=>(a.switchMode(y,b,ee),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Ih(a,y,b),!0),insertDecimalSeparator:a=>{const y=a.model;return y.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&y.at(Math.max(y.position,y.anchor)).isDigit()?(a.insert("{,}",{format:"latex"}),a.snapshot("insert-mord"),!0):(a.insert("."),!0)},commit:a=>{var y;return a.model.contentWillChange({inputType:"insertLineBreak"})&&((y=a.host)==null||y.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(a,y,b)=>{const ee=a.getPrompts();let ce="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),Te=0;for(;ee.includes(ce)&&Te<100;){if(Te===99)return console.error("could not find a unique ID after 100 tries"),!1;ce="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),Te++}return a.insert(`\\placeholder[${y!=null?y:ce}]{}`,b),!0}}),fc({copyToClipboard:a=>(a.focus(),a.model.selectionIsCollapsed&&a.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),fc({cutToClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(y=>{y&&a.model.contentWillChange({inputType:"insertFromPaste",data:y})?(a.stopCoalescingUndo(),a.stopRecording(),a.insert(y,{mode:a.model.mode})&&(mf(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Ys(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function qv(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Lh(a,y),{model:ee}=a;return ee.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=ae(ae({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{ee.selection.ranges.forEach(ce=>kh(ee,ce,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}fc({applyStyle:qv},{target:"mathfield",canUndo:!0,changeContent:!0});function Lh(a,y){var b,ee,ce,Te,je,qe,at,ut,wt,Ut;const Yt={};if(typeof y.color=="string"){const Cn=(ee=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?ee:"none";Cn!==y.color&&(Yt.verbatimColor=(ce=y.verbatimColor)!=null?ce:y.color),Yt.color=Cn}if(typeof y.backgroundColor=="string"){const Cn=(je=a.backgroundColorMap((Te=y.backgroundColor)!=null?Te:y.verbatimBackgroundColor))!=null?je:"none";Cn!==y.backgroundColor&&(Yt.verbatimBackgroundColor=(qe=y.verbatimBackgroundColor)!=null?qe:y.backgroundColor),Yt.backgroundColor=Cn}typeof y.fontFamily=="string"&&(Yt.fontFamily=y.fontFamily),typeof y.series=="string"&&(Yt.fontSeries=y.series),typeof y.fontSeries=="string"&&(Yt.fontSeries=y.fontSeries.toLowerCase()),Yt.fontSeries&&(Yt.fontSeries=(at={bold:"b",medium:"m",normal:"m"}[Yt.fontSeries])!=null?at:Yt.fontSeries),typeof y.shape=="string"&&(Yt.fontShape=y.shape),typeof y.fontShape=="string"&&(Yt.fontShape=y.fontShape.toLowerCase()),Yt.fontShape&&(Yt.fontShape=(ut={italic:"it",up:"n",upright:"n",normal:"n"}[Yt.fontShape])!=null?ut:Yt.fontShape),y.variant&&(Yt.variant=y.variant.toLowerCase()),y.variantStyle&&(Yt.variantStyle=y.variantStyle.toLowerCase());const vn=(wt=y.size)!=null?wt:y.fontSize;return typeof vn=="number"?Yt.fontSize=Math.max(1,Math.min(10,vn)):typeof vn=="string"&&(Yt.fontSize=(Ut={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[vn.toLowerCase()])!=null?Ut:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[vn]),Yt}function Rh(a){let[y,b]=Vs(a.selection);if(y=Hp(a,y,"backward"),b=Hp(a,b,"forward"),y===b){const ee=a.at(y);if(ee.type==="leftright")return a.setSelection(a.offsetOf(ee.firstChild)-1,b);if(ee.type==="first"&&(ee.parent.type==="leftright"||ee.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(ee.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function Hp(a,y,b){var ee,ce,Te;let je=a.at(y);if(!je)return y;const qe=b==="forward"?1:-1;if(je.mode==="text"){for(;je&&!(je.mode!=="text"||!$e.test(je.value));)y+=qe,je=a.at(y);return b==="backward"?y-1:y}if(je.mode==="latex"){if(/[a-zA-Z\*]/.test(je.value))if(b==="backward")for(;je&&je.mode==="latex"&&je.value!=="\\"&&/[a-zA-Z]/.test(je.value);)y+=qe,je=a.at(y);else for(;je&&je.mode==="latex"&&/[a-zA-Z\*]/.test(je.value);)y+=qe,je=a.at(y);else if(je.value==="{"){if(b==="forward"){for(;je&&je.mode==="latex"&&je.value!=="}";)y+=qe,je=a.at(y);return y}return y-1}else if(je.value==="}"){if(b==="backward"){for(;je&&je.mode==="latex"&&je.value!=="{";)y+=qe,je=a.at(y);return y-1}return y}return y-1}if(je.mode==="math"){if(je.isDigit()){for(;(ee=a.at(y+qe))!=null&&ee.isDigit();)y+=qe;return b==="backward"?y-1:y}if(je.style.variant||je.style.variantStyle){let at=(ce=a.at(y))==null?void 0:ce.style;for(;at&&at.variant===je.style.variant&&at.variantStyle===je.style.variantStyle;)at=(Te=a.at(y+qe))==null?void 0:Te.style,y+=qe;return b==="backward"?y-1:y}return y}return y}fc({selectGroup:a=>{const y=Rh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>qc(a,"forward",{extend:!0}),extendSelectionBackward:a=>qc(a,"backward",{extend:!0}),extendToNextWord:a=>Wd(a,"forward",{extend:!0}),extendToPreviousWord:a=>Wd(a,"backward",{extend:!0}),extendSelectionUpward:a=>qc(a,"upward",{extend:!0}),extendSelectionDownward:a=>qc(a,"downward",{extend:!0}),extendToNextBoundary:a=>Wd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>Wd(a,"backward",{extend:!0}),extendToGroupStart:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).firstSibling));return y||a.announce("plonk"),y},extendToGroupEnd:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).lastSibling));return y||a.announce("plonk"),y},extendToMathFieldStart:a=>{const y=a.setSelection(a.anchor,0);return y||a.announce("plonk"),y},extendToMathFieldEnd:a=>{const y=a.setSelection(a.anchor,a.lastOffset);return y||a.announce("plonk"),y}},{target:"model",changeSelection:!0});var Sd=null,wf=0,th=class Dc{static start(y,b,ee,ce){var Te;Dc.element=y,(Te=Dc.controller)==null||Te.abort(),Dc.controller=new AbortController;const je={signal:Dc.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",ee,je),y.addEventListener("pointerup",ce,je),y.addEventListener("pointercancel",ce,je),Nh(b)&&(Dc.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",ee,je),window.addEventListener("blur",ce,je),window.addEventListener("mouseup",ce,je))}static stop(){var y;(y=Dc.controller)==null||y.abort(),Dc.controller=void 0,typeof Dc.pointerId=="number"&&(Dc.element.releasePointerCapture(Dc.pointerId),Dc.pointerId=void 0)}};function Nh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function Wp(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const ee=a;let ce,Te=!1,je=!1,qe="none",at=!1,ut=!1;const wt=y.clientX,Ut=y.clientY,Yt=Date.now(),vn=ee.field,Cn=setInterval(()=>{at?vn.scroll({top:0,left:vn.scrollLeft-16}):ut&&vn.scroll({top:0,left:vn.scrollLeft+16})},32);function Cr(){th.stop(),Te=!1,clearInterval(Cn),a.element.classList.remove("tracking"),y&&y.preventDefault()}function li(Ur){if(!ee.hasFocus()){Cr();return}const hi=Ur.clientX,Xr=Ur.clientY,la=Nh(Ur)&&Ur.pointerType==="touch"?20:5;if(Date.now()<Yt+500&&Math.abs(wt-hi)<la&&Math.abs(Ut-Xr)<la){Ur.preventDefault(),Ur.stopPropagation();return}const Oa=vn.getBoundingClientRect();ut=hi>Oa.right,at=hi<Oa.left;let ga=ce;Nh(Ur)&&(Ur.isPrimary||(ga=Sf(ee,Ur.clientX,Ur.clientY,{bias:0})));const Fo=Sf(ee,hi,Xr,{bias:hi<=wt?hi===wt?0:-1:1});ga>=0&&Fo>=0&&(ee.model.extendSelectionTo(ga,Fo),Ys(a)),je&&Rh(ee.model)}Sd&&Math.abs(Sd.x-wt)<5&&Math.abs(Sd.y-Ut)<5&&Date.now()<Sd.time+500?(wf+=1,Sd.time=Yt):(Sd={x:wt,y:Ut,time:Yt},wf=1);const br=vn.getBoundingClientRect();if(wt>=br.left&&wt<=br.right&&Ut>=br.top&&Ut<=br.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ce=Sf(a,wt,Ut,{bias:0}),ce>=0){if(a.element.classList.add("tracking"),y.shiftKey){const Ur=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ce),yp(a.model)||Ur?qe="all":qe="selection"}else a.model.at(ce).type==="placeholder"?(a.model.setSelection(ce-1,ce),qe="selection"):((b=a.model.at(ce).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ce,ce+1),qe="selection"):(a.model.position=ce,yp(a.model)?qe="all":qe="selection");a.defaultStyle={},y.detail===3||wf>2?(Cr(),(y.detail===3||wf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},qe="all")):Te||(Te=!0,th.start(vn,y,li,Cr),(y.detail===2||wf===2)&&(je=!0,Rh(a.model),qe="all"))}a.hasFocus()||(qe="none",a.focus({preventScroll:!0}))}else Sd=null;a.stopCoalescingUndo(),qe!=="none"&&(a.model.selectionIsCollapsed&&(qe="all"),Ys(a)),y.preventDefault()}function eg(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const ee=a-(b.left+b.right)/2,ce=y-(b.top+b.bottom)/2;return ee*ee+ce*ce}function Zp(a,y,b,ee,ce){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const Te=Fc(a,b);if(!Te)return[1/0,null];let je=[1/0,null];if(b.hasChildren&&!b.captureSelection&&ee>=Te.left&&ee<=Te.right)for(const qe of b.children){const at=Zp(a,y,qe,ee,ce);at[0]<=je[0]&&(je=at)}return je[1]||(je=[eg(ee,ce,Te),b]),y.set(b.id,je),je}function tg(a,y,b){const[,ee]=Zp(a,new Map,a.model.root,y,b);return ee}function Sf(a,y,b,ee){var ce;const Te=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!Te)return 0;if(y>Te.right||b>Te.bottom+8)return a.model.lastOffset;if(y<Te.left||b<Te.top-8)return 0;ee=ee!=null?ee:{},ee.bias=(ce=ee.bias)!=null?ce:0;let je=tg(a,y,b);const qe=[];let at=je;for(;at;)qe.unshift(at),at=at.parent;for(const wt of qe)if(wt.captureSelection){je=wt;break}let ut=a.model.offsetOf(je);if(ut<0)return-1;if(je.leftSibling)if(ee.bias===0&&je.type!=="placeholder"){const wt=Fc(a,je);wt&&y<(wt.left+wt.right)/2&&(ut=a.model.offsetOf(je.leftSibling))}else ee.bias<0&&(ut=a.model.offsetOf(je.leftSibling));return ut}var ng=class extends Wa{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",ee="auto",ce=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ce)try{const Te=JSON.parse(ce);if(Te&&Array.isArray(Te)){a.snapshot();const je=Ku(Te),{model:qe}=a;qe.selectionIsCollapsed||qe.deleteAtoms(Vs(qe.selection));const at=qe.at(qe.position);if(at.parent instanceof eo){console.assert(at.parentBranch!==void 0);const ut=[];let wt=[];je[0].type==="first"&&je.shift(),je[je.length-1].type==="first"&&je.pop();for(const Cn of je)Cn.type==="first"&&wt.length>0?(ut.push(wt),wt=[Cn]):wt.push(Cn);wt.length>0&&ut.push(wt);let Ut=Number(at.parentBranch[0]),Yt=Number(at.parentBranch[1]);const vn=at.parent.maxColumns;for(;at.parent.colCount-Yt<ut.length&&at.parent.colCount<vn;)at.parent.addColumn();at.parent.addChildrenAfter(ut[0],at);for(let Cn=1;Cn<ut.length;Cn++)Yt++,Yt>=vn&&(Yt=0,at.parent.addRowAfter(Ut),Ut++),at.parent.setCell(Ut,Yt,ut[Cn])}else at.parent.addChildrenAfter(je.filter(ut=>ut.type!=="first"),at);return qe.position=qe.offsetOf(je[je.length-1]),qe.contentDidChange({inputType:"insertFromPaste"}),Ys(a),!0}}catch(Te){}if(ce=typeof y!="string"?y.getData("application/json"):"",ce&&window.MathfieldElement.computeEngine)try{const Te=JSON.parse(ce);if(typeof Te=="object"&&"latex"in Te&&Te.latex&&(b=Te.latex),!b){const je=window.MathfieldElement.computeEngine.box(Te);je&&!je.has("Error")&&(b=je.latex)}b||(ee="latex")}catch(Te){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(ee="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let Te;return[Te,b]=kc(b),ee==="auto"&&Te&&(ee="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:ee})&&(a.startRecording(),a.snapshot("paste"),Ys(a)),a.startRecording(),!0}return!1}insert(a,y,b){var ee,ce;const Te=typeof y=="string"?y:(ce=(ee=window.MathfieldElement.computeEngine)==null?void 0:ee.box(y).latex)!=null?ce:"";if(!b.silenceNotifications&&!a.contentWillChange({data:Te,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:je}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const qe=a.silenceNotifications;a.silenceNotifications=!0;const at={"?":"\\placeholder{}","@":"\\placeholder{}"};at[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Vs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward"),!a.at(a.position).isLastSibling&&a.at(a.position+1).type==="placeholder"?a.deleteAtoms([a.position,a.position+1]):a.at(a.position).type==="placeholder"&&a.deleteAtoms([a.position-1,a.position]);let ut=-1;at[0]?at["@"]=at[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(ut=ig(a),ut>=0&&(at["@"]=a.getValue(ut,a.position,"latex"))),at[0]||(at[0]=at["?"]);let wt=!1;const Ut=hi=>(wt=!0,at[hi]);let[Yt,vn]=Vp(a,y,Ut,b);if(!vn)return!1;const Cn=vn.length===1&&vn[0].type==="genfrac";Cn&&ut>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(at["@"]=at["?"],wt=!1,[Yt,vn]=Vp(a,y,Ut,b)):ut>=0&&a.deleteAtoms([ut,a.position]);const{parent:Cr}=a.at(a.position),li=Cr.hasEmptyBranch("body");if(Cn&&Yt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Cr instanceof Jo&&Cr.leftDelim==="("&&li){const hi=Cr.parent,Xr=Cr.parentBranch;hi.removeChild(Cr),hi.setChildren(vn,Xr)}const br=a.at(a.position);br.parent.addChildrenAfter(vn,br),Yt==="latex"&&typeof y=="string"&&(Cr==null?void 0:Cr.type)==="root"&&li&&!wt&&(Cr.verbatimLatex=y),a.silenceNotifications=qe;const Ur=vn[vn.length-1];if(b.selectionMode==="placeholder"){const hi=vn.flatMap(Xr=>[Xr,...Xr.children]).find(Xr=>Xr.type==="placeholder");if(hi){const Xr=a.offsetOf(hi);a.setSelection(Xr-1,Xr),a.announce("move")}else Ur&&(a.position=a.offsetOf(Ur))}else b.selectionMode==="before"||(b.selectionMode==="after"?Ur&&(a.position=a.offsetOf(Ur)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(Ur)));return a.contentDidChange({data:Te,inputType:"insertText"}),a.silenceNotifications=je,!0}};function Vp(a,y,b,ee){var ce;let Te,je=[];if(typeof y!="string"||ee.format==="math-json"){const qe=window.MathfieldElement.computeEngine;if(!qe)return["math-json",[]];[Te,y]=["latex",qe.box(y).latex],je=Ol(y,{context:a.mathfield.context})}else typeof y=="string"&&ee.format==="ascii-math"?([Te,y]=Gc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),je=Ol(y,{context:a.mathfield.context}),Te!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&nh(je)):(ee.format==="auto"||(ce=ee.format)!=null&&ce.startsWith("latex"))&&(ee.format==="auto"&&([Te,y]=Gc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),ee.format==="latex"&&([,y]=kc(y)),je=Ol(y,{context:a.mathfield.context,args:b}),ee.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&nh(je));return Hu(je,ee.style),[Te!=null?Te:"latex",je]}function rg(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Jo&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function nh(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Jo&&b.leftDelim==="("){let ee=0,ce=0,Te=0;for(let je=0;b.body[je];je++)b.body[je].type==="genfrac"&&(ee++,ce=je),Te++;Te===0&&ee===1&&(a[y]=b.body[ce])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){nh(y.branch(b));const ee=rg(y.branch(b));ee&&y.setChildren(ee,b)}if(y instanceof eo)for(const b of y.cells)nh(b)}}}function ig(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let ee=!1;if(y.type==="mclose"){const ce=ge[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ce);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),ee=!0}else y.type==="leftright"&&(y=y.leftSibling,ee=!0);if(ee)for(;!y.isFirstSibling&&(y.isFunction||Gp(y));)y=y.leftSibling;else{const ce=[];for(;!y.isFirstSibling&&(Gp(y)||ce.length>0);)y.type==="mclose"&&ce.unshift(y.value),y.type==="mopen"&&ce.length>0&&y.value===ge[ce[0]]&&ce.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function Gp(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new ng;var ag=class extends Wa{constructor(){super("text")}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.model.contentDidChange({inputType:"insertFromPaste"}),a.startRecording(),a.snapshot("paste"),Ys(a)),a.startRecording(),!0):!1}insert(a,y,b={}){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:ee}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ce=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Vs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const Te=og(y,a.mathfield.context);if(Hu(Te,b.style),!Te)return!1;const je=a.at(a.position),qe=je.parent.addChildrenAfter(Te,je);return a.silenceNotifications=ce,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(qe)):qe&&(a.position=a.offsetOf(qe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=ee,!0}};function og(a,y){return a=a.replace(/\\/g,"\\textbackslash "),a=a.replace(/#/g,"\\#"),a=a.replace(/\$/g,"\\$"),a=a.replace(/%/g,"\\%"),a=a.replace(/&/g,"\\&"),a=a.replace(/_/g,"\\_"),a=a.replace(/{/g,"\\textbraceleft "),a=a.replace(/}/g,"\\textbraceright "),a=a.replace(/lbrace/g,"\\textbraceleft "),a=a.replace(/rbrace/g,"\\textbraceright "),a=a.replace(/\^/g,"\\textasciicircum "),a=a.replace(/~/g,"\\textasciitilde "),a=a.replace(/£/g,"\\textsterling "),Ol(a,{context:y,parseMode:"text"})}new ag;function eu(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var _s=4,sc=20,ml=2*(sc+_s),rh=(a,y)=>`
|
|
|
<line x1="${a+sc}" y1="${y+sc}"
|
|
|
x2="${a>y?a+sc:7*sc+10*_s}"
|
|
|
y2="${a<y?y+sc:7*sc+10*_s}"/>
|
|
|
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
|
|
|
</svg>`,Xp=(a,y)=>`
|
|
|
<line x1="${a+sc}" y1="${y+sc}"
|
|
|
x2="${a>y?a+sc:7*sc+10*_s}"
|
|
|
y2="${a<y?y+sc:7*sc+10*_s}"/>
|
|
|
<svg id="minus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
|
|
|
</svg>`,ih=(a,y,b)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${b})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,sg=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*sc+10*_s+5} ${8*sc+10*_s+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${ml+_s}"
|
|
|
height="${3*ml}"
|
|
|
width="${ml}"
|
|
|
rx="${ml/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${ml+_s}"
|
|
|
y="0"
|
|
|
height="${ml}"
|
|
|
width="${3*ml}"
|
|
|
rx="${ml/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${ih(2*(_s+ml),2*_s+3*ml,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${ih(2*(_s+ml),2*_s+ml,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${ih(2*_s+3*ml,2*(_s+ml),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${ih(2*_s+ml,2*(_s+ml),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${rh(2*_s+ml,_s)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Xp(2*_s+2*ml,_s)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${rh(2*_s+3*ml,_s)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${rh(_s,2*_s+ml)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Xp(_s,2*_s+2*ml)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${rh(_s,2*_s+3*ml)}
|
|
|
</g>
|
|
|
</svg>`,lg=a=>`
|
|
|
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","matrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,cg=a=>`
|
|
|
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","pmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
|
|
|
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,Yp=a=>`
|
|
|
<svg id="Bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,ug=a=>`
|
|
|
<svg id="bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4h-3v16h3"/>
|
|
|
<path class="cls-2" d="m22,4h3v16h-3"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,dg=a=>`
|
|
|
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
|
|
|
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
|
|
|
</svg>`,fg=a=>`
|
|
|
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
|
|
|
data-command='["setEnvironment","Vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
|
|
|
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
|
|
|
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
|
|
|
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
|
|
|
</svg>`,hg=a=>`
|
|
|
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","cases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<circle cx="13" cy="8" r="1"/>
|
|
|
<circle cx="13" cy="16" r="1"/>
|
|
|
<circle cx="21" cy="8" r="1"/>
|
|
|
<circle cx="21" cy="16" r="1"/>
|
|
|
</svg>`,pg=a=>`
|
|
|
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,Bh={matrix:lg,pmatrix:cg,bmatrix:ug,Bmatrix:Yp,vmatrix:dg,Vmatrix:fg},jh={cases:hg,rcases:pg,Bmatrix:Yp};function mg(a){var y,b;const ee=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!ee)return;let ce=0;ee.forEach(Cn=>{(!ce||Cn.length>ce)&&(ce=Cn.length)});let Te=document.getElementById("mathlive-environment-popover");Te||(Te=Bf("mathlive-environment-popover"),dc("environment-popover"),dc("core"),Te.setAttribute("aria-hidden","true"));let je;const qe=Te.querySelector(".MLEP__environment-controls");qe?je=qe:(je=document.createElement("div"),Te.innerHTML="",Te.appendChild(je)),je.className="MLEP__environment-controls",je.style.display="flex",je.style.width="100%",je.style.height="100%",je.style.boxSizing="border-box",je.innerHTML=sg;let at=[],ut="";const wt=a.model.parentEnvironment.environmentName;if(Wl(wt)){const Cn=gg(wt);ut=Bh[Cn]("active");const Cr=Bh,{[Cn]:li}=Cr,br=me(Cr,[se(Cn)]);at=Object.values(br).map(Ur=>Ur("inactive"))}else if(Zl(wt)){const Cn=yg(wt);ut=jh[Cn]("active");const Cr=jh,{[Cn]:li}=Cr,br=me(Cr,[se(Cn)]);at=Object.values(br).map(Ur=>Ur("inactive"))}else cl(wt)&&(ut=Bh.matrix("active"),at=Object.values(jh).map(Cn=>Cn("inactive")));const Ut=document.createElement("div");Ut.className="MLEP__environment-delimiter-controls",Ut.style.display="flex",Ut.style.flexDirection="column",Ut.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${ut}
|
|
|
${at.join("")}
|
|
|
</div>`,ut&&je.appendChild(Ut),je.querySelectorAll("[data-command]").forEach(Cn=>{const Cr=Cn.dataset.command;let li=Cr;try{li=JSON.parse(Cr)}catch(br){}Cn.addEventListener("mousedown",br=>br.preventDefault()),li&&Cn.addEventListener("click",()=>a.executeCommand(li))});const vn=(b=a.field)==null?void 0:b.getBoundingClientRect();vn&&(Te.style.top=`${window.scrollY+(vn.top-Te.clientHeight-15)}px`,Te.style.left=`${vn.left+20}px`,Te.classList.add("is-visible"))}function Fh(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function vg(){document.getElementById("mathlive-environment-popover")&&(xh("mathlive-environment-popover"),E("environment-popover"),E("core"))}function ah(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Bs(b.environmentName)){const ee=a.options.environmentPopoverPolicy;y=ee==="auto"||ee==="on"}}y?mg(a):Fh()}function gg(a){return a.replace("*","")}function yg(a){return a==="dcases"?"cases":a}function Jp(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function Qp(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function $h(a,y,b,ee){return b==="middle"?a-y/2:b==="start"&&ee==="rtl"||b==="end"&&ee==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function bg(a,y,b,ee){return b==="middle"?a-y/2:b==="start"&&ee==="ltr"||b==="end"&&ee==="rtl"||b==="top"||b==="right"?a:a-y}function xg(a,y){var b,ee,ce;const Te=(b=Jp(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const je=a.getBoundingClientRect(),qe=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let at=Math.min(qe,(ee=y.height)!=null?ee:je.height),ut=$h(y.location.y,at,y.verticalPos,Te);ut+at>window.innerHeight-8&&(y.alternateLocation?(ut=$h(y.alternateLocation.y,at,y.verticalPos,Te),ut+at>window.innerHeight-8&&(ut=void 0)):ut=void 0),Number.isFinite(ut)||(ut=Math.max(8,window.innerHeight-8-at),8+at>window.innerHeight-8&&(a.style.bottom="8px")),at=Math.min(ut+at,window.innerHeight-8)-ut;const wt=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Ut=Math.min(wt,(ce=y.width)!=null?ce:je.width),Yt=$h(y.location.x,Ut,y.horizontalPos,Te);Yt+Ut>window.innerWidth-8&&(y.alternateLocation?(Yt=bg(y.alternateLocation.x,Ut,y.verticalPos,Te),Yt+Ut>window.innerWidth-8&&(Yt=void 0)):Yt=void 0),Number.isFinite(Yt)||(Yt=Math.max(8,window.innerWidth-8-Ut),8+Ut>window.innerWidth-8&&(a.style.right="8px")),Ut=Math.min(Yt+Ut,window.innerWidth-8)-Yt,Te==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Yt-Ut).toString()}px`:a.style.left=`${Math.ceil(Yt).toString()}px`,a.style.top=`${Math.ceil(ut).toString()}px`,at!==je.height&&(a.style.height=`${Math.ceil(at).toString()}px`),Ut!==je.width&&(a.style.width=`${Math.ceil(Ut).toString()}px`)}function wg(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Zd(a){return"submenu"in a}function tu(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function zh(a){return"type"in a&&a.type==="divider"}function Kh(a){return"type"in a&&a.type==="heading"}var qp={};function Uh(a){let y=qp[a];if(!y){let b;switch(a){case"checkmark":b=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
|
|
|
</span>`;break;case"trailing-chevron":b='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":b='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(b){const ee=document.createElement("template");ee.innerHTML=b,qp[a]=ee,y=ee}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var em=80,tm=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,Zd(a)?(this.type="submenu",this.submenu=new nm(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=tu(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,ee;const ce=this._declaration;if(zh(ce)){this.enabled=!1,this.checked=!1;return}Kh(ce)&&(this.enabled=!1,this.checked=!1,this.visible=!0),tu(ce)&&(this.checked=tu(ce)&&((y=Vd(ce.checked,a))!=null?y:!1)),(tu(ce)||Zd(ce))&&(this.enabled=(b=Vd(ce.enabled,a))!=null?b:!0,this.visible=(ee=Vd(ce.visible,a))!=null?ee:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(tu(ce)||Kh(ce)||Zd(ce))&&(this.label=Vd(ce.label,a),this.tooltip=Vd(ce.tooltip,a),this.ariaLabel=Vd(ce.ariaLabel,a)),this._element&&this.updateElement()}set dirty(a){console.assert(a===!0),a&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const a=this.element;a.textContent="",this.enabled?a.removeAttribute("aria-disabled"):a.setAttribute("aria-disabled","true"),this.checked===!0?(a.setAttribute("aria-checked","true"),a.append(Uh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Uh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),tu(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=yh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Uh("trailing-chevron"))}get element(){if(this._element)return this._element;if(zh(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(tu(this._declaration)||Kh(this._declaration)||Zd(this._declaration))&&this._declaration.class&&(a.className=this._declaration.class),a.setAttribute("part","menu-item"),a.setAttribute("tabindex","-1"),this.hasCheck?a.setAttribute("role","menuitemcheckbox"):a.setAttribute("role","menuitem"),this.type==="submenu"&&(a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"));const y=this.abortController.signal;return a.addEventListener("pointerenter",this,{signal:y}),a.addEventListener("pointerleave",this,{signal:y}),a.addEventListener("pointerup",this,{signal:y}),a.addEventListener("click",this,{signal:y}),this._element}dispatchSelect(){if(!tu(this._declaration))return;const a=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(a)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(a){var y;if(!(!this.visible||!this.enabled)){if(a.type==="click"){this.rootMenu.state==="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}if(a.type==="pointerenter"){const b=a;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((y=this.parentMenu.activeMenuItem)!=null&&y.movingTowardSubmenu(b))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(a.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(a.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},em)},em)}openSubmenu(a){var y;if(this.type!=="submenu"||!this.element)return;if((y=a==null?void 0:a.withDelay)!=null&&y){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const b=this.element.getBoundingClientRect(),ee=Jp(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:Qp(b,"trailing",ee),y:b.top-4},alternateLocation:{x:Qp(b,"leading",ee),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const ee=a.clientX-y.clientX;if(Sg(ee,y.clientY-a.clientY,b)<=.2)return!1;let Te="right";if(this.submenu.element){const je=this.submenu.element.getBoundingClientRect(),qe=this.element.getBoundingClientRect();je.left<qe.left+qe.width/2&&(Te="left")}return Te==="right"?ee>0:ee<0}};function Sg(a,y,b){return Math.hypot(a,y)/b}function Vd(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var nm=class tf{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var ee,ce;this.parentMenu=(ee=b==null?void 0:b.parentMenu)!=null?ee:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ce=b==null?void 0:b.columnCount)!=null?ce:1,this.isSubmenuOpen=!1,this.menuItems=y}get children(){return this._menuItems}set menuItems(y){const b=this.parentMenu;this.dispose(),this.parentMenu=b,y=[...y],this._menuItems=y.map(ee=>ee.onCreate?ee.onCreate(ee,this):new tm(ee,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var y;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(y=this._menuItems)==null||y.forEach(b=>b.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(y){if(y.type==="wheel"&&this._element){const b=y;this._element.scrollBy(0,b.deltaY),y.stopPropagation()}}dispatchEvent(y){return this.rootMenu.dispatchEvent(y)}get rootMenu(){return this.parentMenu.rootMenu}updateState(y){var b,ee,ce;this._menuItems.forEach(ut=>ut.updateState(y));const Te=this.hasCheck;this.hasCheck=this._menuItems.some(ut=>ut.visible&&ut.hasCheck),this.hasCheck!==Te&&this._menuItems.forEach(ut=>ut.updateState(y));let je,qe=0;for(const ut of this._menuItems)ut.type==="heading"?(je&&qe===0&&(je.visible=!1),je=ut,qe=0):ut.type==="divider"&&je?(je.visible=qe>0,je=void 0,qe=0):je&&ut.visible&&(qe+=1);je&&(je.visible=qe>0);let at=!0;for(const ut of this._menuItems)ut.type==="divider"?(ut.visible=!at,at=!0):ut.visible&&(at=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((ee=this.activeMenuItem)!=null&&ee.enabled)&&((ce=this.activeMenuItem)==null?void 0:ce.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible&&y.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible)}set dirty(y){console.assert(y===!0),this._dirty!==y&&y&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var y;if(this._element){this._element.textContent="";for(const{element:b,visible:ee}of this._menuItems)b&&ee&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,ee,ce,Te;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const je=this.activeMenuItem;je.active=!1,(b=je.submenu)==null||b.hide()}if(!((ee=y==null?void 0:y.visible)==null||ee)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ce=y.element)==null||ce.focus({preventScroll:!0}):(Te=this._element)==null||Te.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const ee=this._menuItems;for(;!b&&y<=ee.length-1;){const ce=ee[y];b=ce.type!=="divider"&&ce.visible&&ce.enabled,y+=1}return b?ee[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,ee=!1;for(;!ee&&b>=0;){const ce=y[b];ee=ce.type!=="divider"&&ce.visible&&ce.enabled,b-=1}return ee?y[b+1]:null}nextMenuItem(y){if(y===0)return this._activeMenuItem;if(!this._activeMenuItem)return y>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const b=this._menuItems.indexOf(this.firstMenuItem),ee=this._menuItems.indexOf(this.lastMenuItem);let ce=this._menuItems.indexOf(this._activeMenuItem),Te=1;for(;ce>=b&&ce<=ee;){ce+=y>0?1:-1;const je=this._menuItems[ce];if(!je)break;if(je.visible&&je.enabled){if(Te===Math.abs(y))return this._menuItems[ce];Te+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const ee=this._menuItems.filter(ce=>ce.visible&&ce.enabled).indexOf(y);return ee<0?-1:ee%this.columnCount}static get collator(){return tf._collator||(tf._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),tf._collator}findMenuItem(y){var b;this.updateIfDirty();const ee=this._menuItems.filter(qe=>qe.type!=="divider"&&qe.visible&&qe.enabled);if(ee.length===0)return null;const ce=Math.max(...ee.map(qe=>qe.label.length))-y.length;if(ce<0)return null;let Te=null,je=0;for(;je<ce&&!Te;)Te=(b=ee.find(qe=>tf.collator.compare(y,qe.label.substring(je,y.length))===0))!=null?b:null,je++;return Te}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),Ce()&&(this.element.popover="manual",this.element.showPopover()),y.location&&xg(this.element,{location:y.location,alternateLocation:y.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var y,b,ee,ce,Te;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),Ce()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(ee=(b=this.parentMenu)==null?void 0:b.element)==null||ee.focus(),(Te=(ce=this._element)==null?void 0:ce.parentNode)==null||Te.removeChild(this._element)}set openSubmenu(y){var b,ee,ce,Te;const je=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((ee=this.activeMenuItem.element)==null||ee.setAttribute("aria-expanded",je.toString())),(Te=(ce=this.activeMenuItem)==null?void 0:ce.element)==null||Te.classList.toggle("is-submenu-open",je),this.isSubmenuOpen=je}},rm=class i0 extends nm{constructor(y,b){var ee;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(ee=b==null?void 0:b.host)!=null?ee:null,this.isDynamic=y.some(im),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){z0(this._modifiers,y)||(this._modifiers=y,this.dirty=!0)}get activeSubmenu(){let y=this;for(;y.isSubmenuOpen;)y=y.activeMenuItem.submenu;return y}set dirty(y){this._updating||(console.assert(y===!0),this._dirty!==y&&(this._dirty=!0,y&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(y){this._updating=!0,this.modifiers=y!=null?y:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(y){this.isDynamic&&(this.modifiers=pd(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,ee,ce;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=pd(y));let Te=!0;const je=this.activeSubmenu,qe=je.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":qe==null||qe.select(pd(y));break;case"ArrowRight":if((qe==null?void 0:qe.type)==="submenu")qe.select(pd(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!qe)je.activeMenuItem=je.firstMenuItem;else{const at=(b=je.getMenuItemColumn(qe))!=null?b:-1;if(at>=0&&at<((ee=je.columnCount)!=null?ee:1)-1){const ut=je.nextMenuItem(1);ut&&(je.activeMenuItem=ut)}}break;case"ArrowLeft":if(je===this.rootMenu)qe||(je.activeMenuItem=je.firstMenuItem);else if((qe&&(ce=je.getMenuItemColumn(qe))!=null?ce:-1)<=0||!qe){je.hide();const ut=je.parentMenu.activeMenuItem;if(ut){const{element:wt}=ut;wt==null||wt.focus(),wt==null||wt.classList.remove("is-submenu-open")}}else{const ut=je.nextMenuItem(-1);ut&&(je.activeMenuItem=ut)}break;case"ArrowDown":je.activeMenuItem=je.nextMenuItem(je.columnCount);break;case"ArrowUp":je.activeMenuItem=je.nextMenuItem(-je.columnCount);break;case"Home":case"PageUp":je.activeMenuItem=je.firstMenuItem;break;case"End":case"PageDown":je.activeMenuItem=je.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const at=je.findMenuItem(this.typingBuffer);at&&(je.activeMenuItem=at),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Lf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const at=je.findMenuItem(this.typingBuffer);at&&(je.activeMenuItem=at),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else Te=!1}Te&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return Jc.element}connectScrim(y){const b=this.scrim;b.addEventListener("pointerup",this),b.addEventListener("contextmenu",this),b.addEventListener("keydown",this),b.addEventListener("keyup",this),b.addEventListener("pointermove",this),Jc.open({root:y,onDismiss:()=>this.hide()})}disconnectScrim(){const y=this.scrim;y.removeEventListener("pointerup",this),y.removeEventListener("contextmenu",this),y.removeEventListener("keydown",this),y.removeEventListener("keyup",this),y.removeEventListener("pointermove",this),Jc.state==="open"&&Jc.scrim.close()}get rootMenu(){return this}show(y){return this._onDismiss=y==null?void 0:y.onDismiss,y!=null&&y.modifiers&&(this.modifiers=y.modifiers),this.updateState(),this.connectScrim(y==null?void 0:y.target),super.show(re(ae({},y),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,Jc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=i0.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};rm.SUBMENU_DELAY=120;var Cg=rm;function im(a){return zh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(tu(a)||Zd(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||tu(a)&&typeof a.checked=="function"?!0:Zd(a)?a.submenu.some(im):!1}var oh=class{};oh.DELAY=300,oh.MAX_DISTANCE=10;function Eg(a){return new Promise((y,b)=>{const ee=Pf(a);ee||y(!1);let ce=ee;const Te=setTimeout(()=>{je.abort(),y(wg(ce,ee)<oh.MAX_DISTANCE)},oh.DELAY),je=new AbortController,qe=je.signal;for(const at of["pointermove","pointerup","pointercancel"])window.addEventListener(at,ut=>{if(ut.type==="pointerup"||ut.type==="pointercancel")clearTimeout(Te),je.abort(),y(!1);else if(ut.type==="pointermove"){const wt=Pf(ut);wt&&(ce=wt)}},{passive:!0,signal:qe})})}function am(a,y,b){return Vu(this,null,function*(){if(a.type==="contextmenu"){const ee=a;if(b.show({target:y,location:Pf(ee),modifiers:pd(ee)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const ee=a;if(ee.code==="ContextMenu"||ee.code==="F10"&&ee.shiftKey){const ce=y==null?void 0:y.getBoundingClientRect();if(ce&&b.show({target:y,location:{x:Math.ceil(ce.left+ce.width/2),y:Math.ceil(ce.top+ce.height/2)},modifiers:pd(ee)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let ee=a.target;for(;ee&&y!==ee;)ee=ee.parentNode;if(!ee||!b.visible)return!1;const ce=Pf(a);if(yield Eg(a))return b.state!=="closed"?!1:(b.show({target:y,location:ce}),!0)}return!1})}var om={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};jt(Object.keys(om),"{body:auto}",{createAtom:a=>new te(re(ae({},a),{body:tt(a.args[0]),accentChar:om[a.command.slice(1)]}))}),jt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=kt(tt(a.args[0]));return new te(re(ae({},a),{body:tt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),jt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new te(re(ae({},a),{body:tt(a.args[0]),svgAccent:"overarc"}))}),jt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Ac(re(ae({},a),{body:tt(a.args[0]),svgBelow:"underarc"}))}),jt("utilde","{body:auto}",{createAtom:a=>{const y=tt(a.args[0]),b=kt(y),ee="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Ac(re(ae({},a),{body:y,svgBelow:ee,boxType:As(y)}))}}),jt("^","{:string}",{createAtom:a=>{var y;return new Or(re(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[a.args[0]])!=null?y:"^"}))}}),jt("`","{:string}",{createAtom:a=>{var y;return new Or(re(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[a.args[0]])!=null?y:"`"}))}}),jt("'","{:string}",{createAtom:a=>{var y;return new Or(re(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[a.args[0]])!=null?y:"'"}))}}),jt('"',"{:string}",{createAtom:a=>{var y,b;return new Or(re(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[a.args[0]])!=null?b:'"'+a.args[0]:'"'}))}}),jt(".","{:string}",{createAtom:a=>{var y,b;return new Or(re(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[a.args[0]])!=null?b:"."+a.args[0]:"."}))}}),jt("=","{:string}",{createAtom:a=>{var y,b;return new Or(re(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[a.args[0]])!=null?b:"="+a.args[0]:"="}))}}),jt("~","{:string}",{createAtom:a=>{var y;return new Or(re(ae({type:"mord"},a),{isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[a.args[0]])!=null?y:"\xB4"}))}}),jt("c","{:string}",{createAtom:a=>{var y;return new Or(re(ae({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),jt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const ee=a.args,ce={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(ee[1]){const je=ee[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const qe of je){const at=qe.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(at)ce.strokeWidth=at[1],ce.strokeStyle=at[2],ce.strokeColor=at[3];else{const ut=qe.match(/\s*([a-z]*)\s*=\s*"(.*)"/);ut&&(ut[1]==="mathbackground"?ce.backgroundcolor=ut[2]:ut[1]==="mathcolor"?ce.strokeColor=ut[2]:ut[1]==="padding"?ce.padding=ut[2]:ut[1]==="shadow"&&(ce.shadow=ut[2]))}}ce.strokeStyle==="dashed"?ce.svgStrokeStyle="5,5":ce.strokeStyle==="dotted"&&(ce.svgStrokeStyle="1,5")}ce.borderStyle=`${ce.strokeWidth} ${ce.strokeStyle} ${ce.strokeColor}`;const Te={};return((b=ee[0])!=null?b:"").split(/[, ]/).filter(je=>je.length>0).forEach(je=>{Te[je.toLowerCase()]=!0}),new af(a.command,tt(ee[2]),Te,ce)}}),jt("cancel","{body:auto}",{createAtom:a=>{var y;return new af(a.command,tt(a.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),jt("bcancel","{body:auto}",{createAtom:a=>{var y;return new af(a.command,tt(a.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),jt("xcancel","{body:auto}",{createAtom:a=>{var y;return new af(a.command,tt(a.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),jt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Ac(re(ae({},a),{body:tt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),jt("overbrace","{:auto}",{createAtom:a=>new Ac(re(ae({},a),{body:tt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),jt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Ac(re(ae({},a),{body:tt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),jt(["underbrace"],"{:auto}",{createAtom:a=>new Ac(re(ae({},a),{body:tt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),jt(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:a=>{var y,b,ee,ce,Te;return new Ac(re(ae({},a),{svgBody:a.command.slice(1),above:((b=tt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:tt((ee=a.args)==null?void 0:ee[1]),below:(Te=tt((ce=a.args)==null?void 0:ce[0]))!=null?Te:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),jt(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:a=>new hd(a.command.slice(1),re(ae({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),jt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new hd({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],re(ae({},a),{limits:"over-under",variant:"main"}))}),jt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new hd(a.command.slice(1),re(ae({},a),{limits:"over-under",variant:"main"}))}),jt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new hd(a.command.slice(1),re(ae({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),jt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),ee=b.caret;b.caret=void 0;const ce=new Hr("\xB0",{style:re(ae({},a.style),{variant:"normal",variantStyle:"up"})});return new Hr([b,ce],{type:"inner",isSelected:a.isSelected,caret:ee})}}),jt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new sp(re(ae({},a),{body:tt(a.args[1]),index:a.args[0]?tt(a.args[0]):void 0}))}),jt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=ae({},a),b=a.command,ee=a.args;switch(b){case"\\dfrac":case"\\frac":case"\\tfrac":y.hasBarLine=!0;break;case"\\atopfrac":y.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":y.hasBarLine=!1,y.leftDelim="(",y.rightDelim=")";break;case"\\cfrac":y.hasBarLine=!0,y.continuousFraction=!0;break;default:}switch(b){case"\\dfrac":case"\\dbinom":y.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":y.mathstyleName="textstyle";break;default:}return new Bd(ee[0]?tt(ee[0]):[new Pa],ee[1]?tt(ee[1]):[new Pa],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),ee=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(ee)?`${a.command}${b}${ee}`:Ti(a.command,b,ee)}}),jt(["brace","brack"],"",{infix:!0,createAtom:a=>new Bd(tt(a.args[0]),tt(a.args[1]),re(ae({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>$a([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),jt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const ee=a.args;return a.command==="\\choose"&&(y="(",b=")"),new Bd(tt(ee[0]),tt(ee[1]),re(ae({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>$a([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),jt(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const ee=a.args;return new Bd(tt(ee[0]),tt(ee[1]),re(ae({},a),{leftDelim:(y=ee[2])!=null?y:".",rightDelim:(b=ee[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),jt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new Bd(tt(a.args[0]),tt(a.args[1]),re(ae({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),jt(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new hh({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[a.command.slice(1)],re(ae({},a),{limits:"auto",variant:"main"}))}),jt("smallint","",{ifMode:"math",createAtom:a=>new hd("\u222B",re(ae({},a),{limits:"adjacent",variant:"main"}))});var sm={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};jt(Object.keys(sm),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=sm[y.slice(1)];return new hh(b,re(ae({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),jt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new hd({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],re(ae({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),jt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new ip(re(ae({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),jt("the","{:value}",{createAtom:a=>new Or(re(ae({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const ee=new va({parent:y},a.style);let ce="";a.isSelected&&(ce+=" ML__selected");const Te=ee.evaluate(a.args[0]);return new Hr(((b=hs(Te))!=null?b:"").split("").map(je=>new Hr(je,{type:"ord",classes:ce,mode:a.mode,isSelected:a.isSelected,style:ae({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ce}).wrap(ee)},serialize:a=>{var y;return`\\the${(y=hs(a.args[0]))!=null?y:"\\relax"}`}}),jt("mathtip","{:auto}{:math}",{createAtom:a=>new ph(re(ae({},a),{body:tt(a.args[0]),tooltip:tt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Or.serialize([a.tooltip],re(ae({},y),{defaultMode:"math"}))}}`}),jt("texttip","{:auto}{:text}",{createAtom:a=>new ph(re(ae({},a),{body:tt(a.args[0]),tooltip:tt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Or.serialize([a.tooltip],re(ae({},y),{defaultMode:"text"}))}}`}),jt("error","{:math}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),jt("ensuremath","{:math}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(re(ae({},y),{defaultMode:"math"}))}}`}),jt("color","{:value}",{applyStyle:(a,y,b)=>{var ee,ce;return{verbatimColor:(ee=hs(y[0]))!=null?ee:void 0,color:b.toColor((ce=y[0])!=null?ce:{string:"red"})}}}),jt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var ee,ce;return{verbatimColor:(ee=hs(y[0]))!=null?ee:void 0,color:b.toColor((ce=y[0])!=null?ce:{string:"red"})}}}),jt("boxed","{content:math}",{createAtom:a=>new tl(re(ae({},a),{body:tt(a.args[0]),framecolor:{string:"black"}}))}),jt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var ee,ce;return{verbatimBackgroundColor:(ee=hs(y[0]))!=null?ee:void 0,backgroundColor:b.toBackgroundColor((ce=y[0])!=null?ce:{string:"yellow"})}}}),jt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new tl(re(ae({},a),{body:tt(a.args[2]),framecolor:(y=a.args[0])!=null?y:{string:"blue"},backgroundcolor:(b=a.args[1])!=null?b:{string:"yellow"}}))},serialize:(a,y)=>{var b,ee;return y.skipStyles?a.bodyToLatex(re(ae({},y),{defaultMode:"text"})):Ti(a.command,(b=hs(a.framecolor))!=null?b:"",(ee=hs(a.backgroundcolor))!=null?ee:"",a.bodyToLatex(re(ae({},y),{defaultMode:"text"})))}}),jt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],ee=tt(a.args[1]);return b?new tl(re(ae({},a),{body:ee,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new tl(re(ae({},a),{body:ee}))},serialize:(a,y)=>{var b,ee;if(y.skipStyles)return a.bodyToLatex(y);let ce=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const Te=[];a.padding&&Te.push((b=hs(a.padding))!=null?b:""),a.border&&Te.push(`border: ${a.border}`),a.backgroundcolor&&Te.push((ee=hs(a.backgroundcolor))!=null?ee:""),ce+=`[${Te.join(",")}]`}return Ti(ce,a.bodyToLatex(y))}}),jt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[0])})),render:(a,y)=>{const b=new va({parent:y,mathstyle:a.command.slice(1)},a.style),ee=Or.createBox(b,a.body,{type:"lift"});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${$a([a.command,a.bodyToLatex(y)])}}`}),jt(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:a=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[a]})}),jt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),jt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),jt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),jt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),jt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),jt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),jt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),jt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),jt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),jt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),jt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),jt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),jt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),jt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),jt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),jt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),jt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),jt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),jt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),jt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),jt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),jt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),jt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),jt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),jt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),jt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),jt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),jt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),jt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),jt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),jt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),jt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),jt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),jt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),jt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),jt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),jt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),jt("mbox","{:text}",{ifMode:"math",createAtom:a=>new Or(re(ae({},a),{type:"mord",body:tt(a.args[0]),mode:"math"})),serialize:(a,y)=>Ti("\\mbox",a.bodyToLatex(re(ae({},y),{defaultMode:"text"})))}),jt("text","{:text}",{ifMode:"math",applyMode:"text"}),jt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[1])})),serialize:(a,y)=>!a.args[0]||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`,render:(a,y)=>{var b;return a.createBox(y,{classes:(b=a.args[0])!=null?b:""})}}),jt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const ee=a.createBox(y);return ee.cssId=(b=a.args[0])!=null?b:"",ee}}),jt("htmlData","{data:string}{content:auto}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`\\htmlData{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const ee=a.createBox(y);return ee.htmlData=(b=a.args[0])!=null?b:"",ee}}),jt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const ee=a.createBox(y);return ee.htmlStyle=(b=a.args[0])!=null?b:"",ee}}),jt("em","{:rest}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[0])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{\\em ${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})}),jt("emph","{:auto}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var lm={"\\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}};jt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new ap(re(ae({},a),{delim:(y=a.args[0])!=null?y:".",size:lm[a.command].size,delimType:lm[a.command].mclass}))}}),jt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new lf(re(ae({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),jt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new lf(re(ae({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),jt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Or(a),render:(a,y)=>{let b=0;const ee=y.mathstyle.id;(ee===Ks||ee===Us)&&(b=1),(ee===kl||ee===Es)&&(b=2),(ee===_l||ee===Ms)&&(b=3);const ce=tt(a.args[b]);return Or.createBox(y,ce)},serialize:(a,y)=>`\\mathchoice{${Or.serialize(a.args[0],y)}}{${Or.serialize(a.args[1],y)}}{${Or.serialize(a.args[2],y)}}{${Or.serialize(a.args[3],y)}}`}),jt("mathop","{:auto}",{createAtom:a=>new Or(re(ae({},a),{type:"mop",body:tt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let ee=Or.createBox(y,a.body);if(a.superscript||a.subscript){const ce=(b=a.subsupPlacement)!=null?b:"auto";ee=ce==="over-under"||ce==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:ee}):a.attachSupsub(y,{base:ee})}return new Hr(a.bind(y,ee),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ti(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),$a(b)}}),jt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Or(re(ae({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:tt(a.args[0])}))}),jt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=tt(a.args[0]).map(b=>{var ee;return b.type!=="first"&&(b.type="mord",b.value=(ee={"\u2217":"*","\u2212":"-"}[b.value])!=null?ee:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new Or(re(ae({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let ee=Or.createBox(y,a.body);if(a.superscript||a.subscript){const ce=(b=a.subsupPlacement)!=null?b:"auto";ee=ce==="over-under"||ce==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:ee}):a.attachSupsub(y,{base:ee})}return a.caret&&(ee.caret=a.caret),new Hr(a.bind(y,ee),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ti(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),$a(b)}}),jt(["char","unicode"],"{charcode:value}",{createAtom:a=>new Or(re(ae({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${hs((y=a.args[0])!=null?y:{number:10067,base:"hexadecimal"})}`},render:(a,y)=>{let b=y.evaluate(a.args[0]);return(!b||!("number"in b))&&(b={number:10067,base:"hexadecimal"}),a.value=String.fromCodePoint(b.number),a.createBox(y)}}),jt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Or(a),render:(a,y)=>{var b,ee,ce;const Te=new va({parent:y,mathstyle:"textstyle"},a.style),je=Te.toEm((b=a.args[0])!=null?b:{dimension:0}),qe=Te.toEm((ee=a.args[1])!=null?ee:{dimension:10}),at=Te.toEm((ce=a.args[2])!=null?ce:{dimension:10}),ut=new Hr(null,{classes:"rule",type:"ord"});return ut.width=qe,ut.height=at+je,ut.depth=-je,ut.setStyle("border-right-width",qe,"em"),ut.setStyle("border-top-width",at,"em"),ut.setStyle("border-color",a.style.color),ut.setStyle("vertical-align",je,"em"),a.isSelected&&ut.setStyle("opacity","50%"),a.bind(Te,ut),a.caret&&(ut.caret=a.caret),ut.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${hs(a.args[0])}]`:""}{${hs(a.args[1])}}{${hs(a.args[2])}}`}),jt(["overline","underline"],"{:auto}",{createAtom:a=>new Or(re(ae({},a),{body:tt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),ee=new va({parent:y,mathstyle:"cramp"},a.style),ce=Or.createBox(ee,a.body);if(!ce)return null;const Te=ee.metrics.defaultRuleThickness/ee.scalingFactor,je=new Hr(null,{classes:b+"-line"});je.height=Te,je.maxFontSize=Te*1.125*ee.scalingFactor;let qe;return b==="overline"?qe=new Ya({shift:0,children:[{box:ce},3*Te,{box:je},Te]}):qe=new Ya({top:ce.height,children:[Te,{box:je},3*Te,{box:ce}]}),a.caret&&(qe.caret=a.caret),new Hr(qe,{classes:b,type:"ignore"})}}),jt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=tt(a.args[1]);return new Ac(re(ae({},a),{above:tt(a.args[0]),body:y,skipBoundary:!1,boxType:As(y)}))},serialize:(a,y)=>Ti(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),jt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=tt(a.args[1]);return new Ac(re(ae({},a),{below:tt(a.args[0]),body:y,skipBoundary:!1,boxType:As(y)}))},serialize:(a,y)=>Ti(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),jt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=tt(a.args[2]);return new Ac(re(ae({},a),{above:tt(a.args[0]),below:tt(a.args[1]),body:y,skipBoundary:!1,boxType:As(y)}))},serialize:(a,y)=>Ti(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),jt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Ac(re(ae({},a),{body:tt(a.args[2]),above:tt(a.args[1]),below:tt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>Ti(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),jt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,ee,ce;return new sf(re(ae({},a),{body:tt(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ce=(ee=a.args[0])==null?void 0:ee.includes("b"))!=null?ce:!0}))}}),jt(["vphantom"],"{:auto}",{createAtom:a=>new sf(re(ae({},a),{body:tt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),jt(["hphantom"],"{:auto}",{createAtom:a=>new sf(re(ae({},a),{body:tt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),jt(["phantom"],"{:auto}",{createAtom:a=>new sf(re(ae({},a),{body:tt(a.args[0]),isInvisible:!0}))}),jt("not","{:math}",{createAtom:a=>{const y=tt(a.args[0]);return y.length===0?new Or(re(ae({},a),{type:"mrel",value:"\uE020"})):new Or(re(ae({},a),{body:[new fd(re(ae({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],ee=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?ee?`\\not{${Or.serialize(b.group,y)}}`:`\\not${Or.serialize(b,y)}`:ee?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const ee=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":As(tt(a.args[0])),ce=Or.createBox(y,a.body,{type:ee});return a.caret&&(ce.caret=a.caret),a.bind(y,ce)}}),jt(["ne","neq"],"",{createAtom:a=>new Or(re(ae({},a),{type:"mrel",body:[new fd(re(ae({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Or(re(ae({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),jt("rlap","{:auto}",{createAtom:a=>new fd(re(ae({},a),{body:tt(a.args[0]),align:"right"}))}),jt("llap","{:auto}",{createAtom:a=>new fd(re(ae({},a),{body:tt(a.args[0]),align:"left"}))}),jt("mathrlap","{:math}",{createAtom:a=>new fd(re(ae({},a),{body:tt(a.args[0]),align:"left"}))}),jt("mathllap","{:math}",{createAtom:a=>new fd(re(ae({},a),{body:tt(a.args[0]),align:"left"}))}),jt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new tl(re(ae({},a),{body:tt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ti("\\raisebox",(b=hs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),jt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new tl(re(ae({},a),{body:tt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ti("\\raise",(b=hs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),jt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new tl(re(ae({},a),{body:tt(a.args[1]),padding:{dimension:0},offset:(y=ll(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,ee;return Ti("\\lower",(ee=hs(ll((b=a.offset)!=null?b:{dimension:0},-1)))!=null?ee:"0pt",a.bodyToLatex(y))}}),Re("0123456789/@.?!"),Fe(65,90),Fe(97,122),Re([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Re([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Re([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Re([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Re([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Re([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Re([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Re([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Re([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Re([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Re([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Re([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Re([["\\wp",8472],["\\aleph",8501]]),Re([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Re([["\\ ",160],["~",160]],"space"),jt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new lf(a)}),jt("space","",{createAtom:a=>new lf(a)}),Re([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Re([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Re([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var cm="<mo>⁡</mo>",sh="<mo>⁢</mo>";function lh(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ys(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Mg(a,y,b){var ee,ce,Te,je,qe,at,ut,wt,Ut,Yt,vn;let Cn=!1;y=y!=null?y:a.atoms.length;let Cr="",li="",br=a.atoms[a.index];const Ur=(ce=(ee=br.style)==null?void 0:ee.variant)!=null?ce:"",hi=(je=(Te=br.style)==null?void 0:Te.variantStyle)!=null?je:"";let Xr="";if(Ur||hi){const Oa=mt(br.value,(qe=br.style)==null?void 0:qe.variant,(at=br.style)==null?void 0:at.variantStyle);if(Oa!==br.value)return a.index+=1,Cr=`<mi${ys(br.id,b)}>${Oa}</mi>`,Cu(Cr,a,b)||(a.mathML+=Cr,a.lastType="mi"),!0;Xr=(ut={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[hi+Ur])!=null?ut:"",Xr=` mathvariant="${Xr}"`}const la={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(br.command==="!")return a.index+=1,Cr="<mo>!</mo>",Cu(Cr,a,b)||(a.mathML+=Cr,a.lastType="mo"),!0;if(la[br.command]){a.index+=1;let Oa=`<mi${ys(br.id,b)}${Xr}>${la[br.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Oa=sh+Oa),Cu(Oa,a,b)||(a.mathML+=Oa,a.lastType="mi"),!0}if(br.command==="\\operatorname")li=Gd(br.body),a.index+=1;else if(Ur||hi)for(;a.index<y&&(br.type==="mord"||br.type==="macro")&&!br.isDigit()&&Ur===((Ut=(wt=br.style)==null?void 0:wt.variant)!=null?Ut:"")&&hi===((vn=(Yt=br.style)==null?void 0:Yt.variantStyle)!=null?vn:"");)li+=Gd([br]),a.index+=1,br=a.atoms[a.index];else(br.type==="mord"||br.type==="macro")&&!br.isDigit()&&(li+=Gd([br]),a.index+=1);if(li.length>0){Cn=!0,Cr=`<mi${Xr}>${li}</mi>`;const Oa=a.lastType;Cr.endsWith(">f</mi>")||Cr.endsWith(">g</mi>")?(Cr+=cm,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Cr)?"mo":"mi",Cu(Cr,a,b)||((Oa==="mi"||Oa==="mn"||Oa==="mtext"||Oa==="fence")&&(Cr=sh+Cr),a.mathML+=Cr)}return Cn}function kg(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function _g(a){let y=-1,b=a.index,ee=!1,ce=!1;for(;b<a.atoms.length&&!ee&&!ce;){const Te=a.atoms[b];ee=!Te.isDigit(),ce=!ee&&Te.superscript!==void 0,b++}return ce&&(y=b-1),y}function Cu(a,y,b){var ee;let ce=y.atoms[y.index-1];if(!ce)return!1;if(!ce.superscript&&!ce.subscript)if(((ee=y.atoms[y.index])==null?void 0:ee.type)==="subsup")ce=y.atoms[y.index],y.index+=1;else return!1;const Te=y.lastType;y.lastType="";const je=Qo(ce.superscript,b);y.lastType="";const qe=Qo(ce.subscript,b);if(y.lastType=Te,!je&&!qe)return!1;let at="";return je&&qe?at=`<msubsup>${a}${qe}${je}</msubsup>`:je?at=`<msup>${a}${je}</msup>`:qe&&(at=`<msub>${a}${qe}</msub>`),y.mathML+=at,y.lastType="",!0}function Tg(a,y,b){y=y!=null?y:a.atoms.length;const ee=a.index;let ce="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ce+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ce.length>0?(a.mathML+=`<mtext ${ys(a.atoms[ee].id,b)}>${ce}</mtext>`,a.lastType="mtext",!0):!1}function Ag(a,y,b){y=y!=null?y:a.atoms.length;const ee=a.index;let ce="",Te=_g(a);for(Te>=0&&Te<y&&(y=Te);a.index<y&&a.atoms[a.index].isDigit();)ce+=a.atoms[a.index].asDigit(),a.index+=1;return ce.length<=0?!1:(ce="<mn"+ys(a.atoms[ee].id,b)+">"+ce+"</mn>",Te<0&&kg(a)&&(Te=a.index,a.index+=1),Cu(ce,a,b)||(a.mathML+=ce,a.lastType="mn"),!0)}function Og(a,y,b){let ee=!1;y=y!=null?y:a.atoms.length;let ce="",Te="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let je=!1,qe=0;const at=a.index;let ut=-1,wt=at+1;for(;wt<y&&!je;)a.atoms[wt].type==="mopen"?qe+=1:a.atoms[wt].type==="mclose"&&(qe-=1),qe===-1&&(je=!0,ut=wt),wt+=1;je&&(ce="<mrow>",ce+=Cd(a.atoms[at],b),ce+=Qo(a.atoms,b,at+1,ut),ce+=Cd(a.atoms[ut],b),ce+="</mrow>",a.index=ut+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=sh),Cu(ce,a,b)&&(ee=!0,a.lastType="",ce=""),Te="fence")}return ce.length>0&&(ee=!0,a.mathML+=ce,a.lastType=Te),ee}function Ig(a,y,b){let ee=!1;y=y!=null?y:a.atoms.length;let ce="",Te="";const je=a.atoms[a.index];if(!je)return!1;const qe={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(qe[je.command]){a.index+=1;const at=`<mo${ys(je.id,b)}>${qe[je.command]}</mo>`;return Cu(at,a,b)||(a.mathML+=at,a.lastType="mo"),!0}if(a.index<y&&(je.type==="mbin"||je.type==="mrel"))ce+=Hh(a.atoms[a.index],b),a.index+=1,Te="mo";else if(a.index<y&&(je.type==="mop"||je.type==="operator"||je.type==="extensible-symbol")){if(je.subsupPlacement==="over-under"&&(je.superscript||je.subscript)){const at=Cd(je,b);return je.superscript&&je.subscript?(ce+="<munderover>"+at,ce+=Qo(je.subscript,b),ce+=Qo(je.superscript,b),ce+="</munderover>"):je.superscript?(ce+="<mover>"+at,ce+=Qo(je.superscript,b),ce+="</mover>"):je.subscript&&(ce+="<munder>"+at,ce+=Qo(je.subscript,b),ce+="</munder>"),a.mathML+=ce,a.lastType="mo",a.index+=1,!0}{const at=a.atoms[a.index],ut=at.value==="\\operatorname",wt=ut?'<mi class="MathML-Unit"'+ys(at.id,b)+">"+Gd(at.value)+"</mi>":Cd(at,b);ce+=wt,!ut&&!/^<mo>(.*)<\/mo>$/.test(wt)?(ce+=cm,Te="applyfunction"):Te=ut?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ce)&&(ce=sh+ce),a.index+=1}return ce.length>0&&(ee=!0,Cu(ce,a,b)||(a.mathML+=ce,a.lastType=Te)),ee}function Qo(a,y,b,ee){y!=null||(y={});const ce={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ce.mathML=a.toString();else if(typeof a=="string")ce.mathML=a;else if(a instanceof Or)ce.mathML=Hh(a,y);else if(Array.isArray(a)){ce.atoms=a;let Te=0;for(ee=ee||(a?a.length:0);ce.index<ee;)if(Tg(ce,ee,y)||Ag(ce,ee,y)||Mg(ce,ee,y)||Ig(ce,ee,y)||Og(ce,ee,y))Te+=1;else if(ce.index<ee){let je=Hh(ce.atoms[ce.index],y);ce.lastType==="mn"&&je.length>0&&ce.atoms[ce.index].type==="genfrac"&&(je="<mo>⁤</mo>"+je),ce.atoms[ce.index].type==="genfrac"?ce.lastType="mfrac":ce.lastType="",ce.index+=1,Cu(je,ce,y)?Te+=1:je.length>0&&(ce.mathML+=je,Te+=1)}Te>1&&(ce.mathML="<mrow>"+ce.mathML+"</mrow>")}return ce.mathML}function Cd(a,y){let b="";const ee=Gd(a.value);return ee&&(b="<mo"+ys(a.id,y)+">"+ee+"</mo>"),b}function Gd(a){if(!a)return"";if(typeof a=="string")return lh(a);if(!Array.isArray(a)&&typeof a.body=="string")return lh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return lh(y)}function Hh(a,y){var b,ee,ce,Te,je,qe,at,ut,wt,Ut,Yt,vn,Cn,Cr,li,br,Ur,hi,Xr,la,Oa,ga;if(a.mode==="text")return`<mi${ys(a.id,y)}>${a.value}</mi>`;const Fo={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\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",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},ps={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Ci="",xc="",ru,Ic,Dl,wc,lc,bs;const{command:rl}=a;if(a.command==="\\error")return`<merror${ys(a.id,y)}>${Qo(a.body,y)}</merror>`;const Pl={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},iu={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":Ci=Qo(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Ci+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Ci+="<mo>"+(Pl[a.leftDelim]||a.leftDelim)+"</mo>")),Ci+="<mtable",a.colFormat){for(Ci+=' columnalign="',Dl=0;Dl<a.colFormat.length;Dl++)a.colFormat[Dl].align&&(Ci+={l:"left",c:"center",r:"right"}[a.colFormat[Dl].align]+" ");Ci+='"'}for(Ci+=">",Ic=0;Ic<a.array.length;Ic++){for(Ci+="<mtr>",ru=0;ru<a.array[Ic].length;ru++)Ci+="<mtd>"+Qo(a.array[Ic][ru],y)+"</mtd>";Ci+="</mtr>"}Ci+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Ci+="<mo>"+(Pl[a.leftDelim]||a.rightDelim)+"</mo>"),Ci+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Ci+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Ci+="<mo"+ys(a.id,y)+">"+(Pl[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Ci+="<mfrac>",Ci+=Qo(a.above,y)||"<mi> </mi>",Ci+=Qo(a.below,y)||"<mi> </mi>",Ci+="</mfrac>"):(Ci+="<mtable"+ys(a.id,y)+">",Ci+="<mtr>"+Qo(a.above,y)+"</mtr>",Ci+="<mtr>"+Qo(a.below,y)+"</mtr>",Ci+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Ci+="<mo"+ys(a.id,y)+">"+(Pl[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Ci+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Ci+="<msqrt"+ys(a.id,y)+">",Ci+=Qo(a.body,y),Ci+="</msqrt>"):(Ci+="<mroot"+ys(a.id,y)+">",Ci+=Qo(a.body,y),Ci+=Qo(a.above,y),Ci+="</mroot>");break;case"leftright":const au=a,ou=au.leftDelim;Ci="<mrow>",ou&&ou!=="."&&(Ci+=`<mo${ys(a.id,y)}>${(b=Pl[ou])!=null?b:ou}</mo>`),a.body&&(Ci+=Qo(a.body,y));const su=au.matchingRightDelim();su&&su!=="."&&(Ci+=`<mo${ys(a.id,y)}>${(ee=Pl[su])!=null?ee:su}</mo>`),Ci+="</mrow>";break;case"sizeddelim":case"delim":Ci+=`<mo${ys(a.id,y)}>${Pl[a.value]||a.value}</mo>`;break;case"accent":Ci+='<mover accent="true"'+ys(a.id,y)+">",Ci+=Qo(a.body,y),Ci+="<mo>"+(iu[rl]||a.accent)+"</mo>",Ci+="</mover>";break;case"line":case"overlap":break;case"overunder":lc=a.above,wc=a.below,(a.svgAbove||lc)&&(a.svgBelow||wc)?bs=a.body:lc&&lc.length>0?(bs=a.body,(Te=(ce=a.body)==null?void 0:ce[0])!=null&&Te.below?(wc=a.body[0].below,bs=a.body[0].body):((qe=(je=a.body)==null?void 0:je[0])==null?void 0:qe.type)==="first"&&((ut=(at=a.body)==null?void 0:at[1])!=null&&ut.below)&&(wc=a.body[1].below,bs=a.body[1].body)):wc&&wc.length>0&&(bs=a.body,(Ut=(wt=a.body)==null?void 0:wt[0])!=null&&Ut.above?(lc=a.body[0].above,bs=a.body[0].body):((vn=(Yt=a.body)==null?void 0:Yt[0])==null?void 0:vn.type)==="first"&&((Cr=(Cn=a.body)==null?void 0:Cn[1])!=null&&Cr.above)&&(lc=a.body[1].overscript,bs=a.body[1].body)),(a.svgAbove||lc)&&(a.svgBelow||wc)?(Ci+=`<munderover ${ys(a.id,y)}>`,Ci+=(li=Fo[a.svgBody])!=null?li:Qo(bs,y),Ci+=(br=Fo[a.svgBelow])!=null?br:Qo(wc,y),Ci+=(Ur=Fo[a.svgAbove])!=null?Ur:Qo(lc,y),Ci+="</munderover>"):a.svgAbove||lc?(Ci+=`<mover ${ys(a.id,y)}>`+((hi=Fo[a.svgBody])!=null?hi:Qo(bs,y)),Ci+=(Xr=Fo[a.svgAbove])!=null?Xr:Qo(lc,y),Ci+="</mover>"):(a.svgBelow||wc)&&(Ci+=`<munder ${ys(a.id,y)}>`+((la=Fo[a.svgBody])!=null?la:Qo(bs,y)),Ci+=(Oa=Fo[a.svgBelow])!=null?Oa:Qo(wc,y),Ci+="</munder>");break;case"placeholder":Ci+="?";break;case"mord":{Ci=typeof a.value=="string"?a.value:rl,rl==="\\char"?Ci="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Ci.length>0&&Ci.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Ci="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Ci=a.value.charAt(0):(console.error("Did not expect this"),Ci=""));const Uc=/\d/.test(Ci)?"mn":"mi";Ci=`<${Uc}${ys(a.id,y)}>${lh(Ci)}</${Uc}>`;break}case"mbin":case"mrel":case"minner":Ci=Cd(a,y);break;case"mpunct":Ci='<mo separator="true"'+ys(a.id,y)+">"+rl+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Ci="<mo"+ys(a.id,y)+">",Ci+=rl==="\\operatorname"?a.body:rl||a.body,Ci+="</mo>");break;case"box":Ci='<menclose notation="box"',a.backgroundcolor&&(Ci+=' mathbackground="'+a.backgroundcolor+'"'),Ci+=ys(a.id,y)+">"+Qo(a.body,y)+"</menclose>";break;case"spacing":Ci+='<mspace width="'+((ga=ps[rl])!=null?ga:0)+'em"/>';break;case"enclose":Ci='<menclose notation="';for(const Uc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Uc)&&a.notation[Uc]&&(Ci+=xc+Uc,xc=" ");Ci+=ys(a.id,y)+'">'+Qo(a.body,y)+"</menclose>";break;case"prompt":Ci='<menclose notation="roundexbox""">'+Qo(a.body,y)+"</menclose>";break;case"space":Ci+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Ci+=Cd(a,y);break;case"mclose":Ci+=Cd(a,y);break;case"macro":{const Uc=a.command+Gd(a.macroArgs);Uc&&(Ci+=`<mo ${ys(a.id,y)}>${Uc}</mo>`)}break;case"latexgroup":Ci+=Qo(a.body,y);break;case"latex":Ci+="<mtext"+ys(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Ci+=Qo(a.body,y);break;case"text":Ci+=`<mtext ${ys(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${ys(a.id,y)} displaystyle="true">${Qo(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${ys(a.id,y)} displaystyle="false">${Qo(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Ci}var Xd={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},Wh={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Dg(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function Cf(a){let y=0;if(ie(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Pg(a){if(ie(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function um(a){let y="";if(ie(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Lg(a){return a?a.map(y=>y.value).join(""):""}function Po(a,y){var b,ee,ce,Te,je;function qe(wt){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(wt)?` <say-as interpret-as="character">${wt}</say-as>`:/[A-Z]/.test(wt)?`capital <say-as interpret-as="character">${wt.toLowerCase()}</say-as>`:wt:/[a-z]/.test(wt)?" '"+wt.toUpperCase()+"'":/[A-Z]/.test(wt)?" 'capital "+wt.toUpperCase()+"'":wt}function at(wt){return"<emphasis>"+wt+"</emphasis>"}if(!y)return"";let ut="";if(ie(y)){let wt=!1,Ut=!1;for(let Yt=0;Yt<y.length;Yt++)y[Yt].type!=="first"&&(y[Yt].mode!=="text"&&(Ut=!1),Yt<y.length-2&&y[Yt].type==="mopen"&&y[Yt+2].type==="mclose"&&y[Yt+1].type==="mord"?(ut+=" of ",ut+=at(Po(a,y[Yt+1])),Yt+=2):y[Yt].mode==="text"?Ut?ut+=(b=y[Yt].value)!=null?b:" ":(Ut=!0,ut+=Po("text",y[Yt])):y[Yt].isDigit()?wt?ut+=y[Yt].asDigit():(wt=!0,ut+=Po(a,y[Yt])):(wt=!1,ut+=Po(a,y[Yt])))}else if(y.mode==="text")y.id&&a==="math"&&(ut+='<mark name="'+y.id.toString()+'"/>'),ut+=y.value;else{y.id&&a==="math"&&(ut+='<mark name="'+y.id.toString()+'"/>');let wt="",Ut="",Yt="",vn=!1;const{command:Cn}=y;switch(Cn){case"\\vec":return"vector "+Po(a,y.body);case"\\acute":return Po(a,y.body)+" acute";case"\\grave":return Po(a,y.body)+" grave";case"\\dot":return"dot over"+Po(a,y.body);case"\\ddot":return"double dot over"+Po(a,y.body);case"\\mathring":return"ring over"+Po(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Po(a,y.body);case"\\bar":return Po(a,y.body)+" bar";case"\\breve":return Po(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Po(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Po(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Po(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Po(a,y.body)}switch(y.type){case"prompt":const Cr=y.body.length>1?'start input . <break time="500ms"/> '+Po(a,y.body)+'. <break time="500ms"/> end input':"blank";ut+=' <break time="300ms"/> '+Cr+'. <break time="700ms"/>'+((ee=y.correctness)!=null?ee:"")+' . <break time="700ms"/> ';break;case"array":const li=y.array,br=y.environmentName;if(Object.keys(Wh).includes(br)){ut+=` begin ${Wh[br]} `;for(let Xr=0;Xr<li.length;Xr++){Xr>0&&(ut+=","),ut+=` row ${Xr+1} `;for(let la=0;la<li[Xr].length;la++)la>0&&(ut+=","),ut+=` column ${la+1}: `,ut+=Po("math",li[Xr][la])}ut+=` end ${Wh[br]} `}break;case"group":Cn==="\\ne"?ut+=" not equal ":(Cn==="\\not"&&(ut+=" not "),ut+=Po("math",y.body));break;case"root":ut+=Po("math",y.body);break;case"genfrac":if(wt=Po("math",y.above),Ut=Po("math",y.below),Cf(y.above)&&Cf(y.below)){const la={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[um(y.above)+"/"+um(y.below)];la?ut=la:ut+=wt+" over "+Ut}else ut+=' the fraction <break time="150ms"/>'+wt+' over <break time="150ms"/>'+Ut+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Yt=Po("math",y.body),y.hasEmptyBranch("above"))ut+=Cf(y.body)?" the square root of "+Yt+" , ":' the square root of <break time="200ms"/>'+Yt+'. <break time="200ms"/> End square root';else{let Xr=Po("math",y.above);Xr=Xr.trim();const la=Xr.replace(/<mark([^/]*)\/>/g,"");la==="3"?ut+=' the cube root of <break time="200ms"/>'+Yt+'. <break time="200ms"/> End cube root':la==="n"?ut+=' the nth root of <break time="200ms"/>'+Yt+'. <break time="200ms"/> End root':ut+=' the root with index: <break time="200ms"/>'+Xr+', of <break time="200ms"/>'+Yt+'. <break time="200ms"/> End root'}break;case"leftright":{const Xr=y;ut+=(ce=Xr.leftDelim?Xd[Xr.leftDelim]:void 0)!=null?ce:Xr.leftDelim,ut+=Po("math",y.body),ut+=(Te=Xr.rightDelim?Xd[Xr.rightDelim]:void 0)!=null?Te:Xr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const Ur=Cn.replace(/^\\/g,""),hi=_t()[Ur];hi&&(hi!=null&&hi.expand?ut+=Po("math",y.body):ut+=`${Ur} `);break;case"placeholder":ut+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Cn==="\\mathbin"||Cn==="\\mathrel"||Cn==="\\mathopen"||Cn==="\\mathclose"||Cn==="\\mathpunct"||Cn==="\\mathord"||Cn==="\\mathinner"){ut=Po(a,y.body);break}let Xr=y.isDigit()?y.asDigit():y.value,la=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(la=y.value,Xr=la),a==="text")ut+=Xr;else{if(y.type==="mbin"&&(ut+='<break time="150ms"/>'),Xr){const Oa=Xd[Xr]||(la?Xd[la.trim()]:"");if(Oa)ut+=" "+Oa;else{const ga=la?Dg(la.trim()):"";ut+=ga||qe(Xr)}}else ut+=Po("math",y.body);y.type==="mbin"&&(ut+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const Xr=y.command;if(Xr==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let la=Po("math",y.superscript);la=la.trim();let Oa=Po("math",y.subscript);Oa=Oa.trim(),ut+=' the summation from <break time="200ms"/>'+Oa+'<break time="200ms"/> to <break time="200ms"/>'+la+'<break time="200ms"/> of <break time="150ms"/>',vn=!0}else if(y.hasEmptyBranch("subscript"))ut+=" the summation of";else{let la=Po("math",y.subscript);la=la.trim(),ut+=' the summation from <break time="200ms"/>'+la+'<break time="200ms"/> of <break time="150ms"/>',vn=!0}else if(Xr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let la=Po("math",y.superscript);la=la.trim();let Oa=Po("math",y.subscript);Oa=Oa.trim(),ut+=' the product from <break time="200ms"/>'+Oa+'<break time="200ms"/> to <break time="200ms"/>'+la+'<break time="200ms"/> of <break time="150ms"/>',vn=!0}else if(y.hasEmptyBranch("subscript"))ut+=" the product of ";else{let la=Po("math",y.subscript);la=la.trim(),ut+=' the product from <break time="200ms"/>'+la+'<break time="200ms"/> of <break time="150ms"/>',vn=!0}else if(Xr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let la=Po("math",y.superscript);la=la.trim();let Oa=Po("math",y.subscript);Oa=Oa.trim(),ut+=' the integral from <break time="200ms"/>'+at(Oa)+'<break time="200ms"/> to <break time="200ms"/>'+at(la)+' <break time="200ms"/> of ',vn=!0}else ut+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const la=(je=Xd[y.value])!=null?je:y.command?Xd[y.command]:void 0;ut+=la||" "+y.value}else y.command&&(y.command==="\\mathop"?ut+=Po("math",y.body):y.command==="\\operatorname"?ut+=Lg(y.body):ut+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Yt=Po("math",y.body),ut+=" crossed out "+Yt+". End crossed out.";break;case"space":case"spacing":break}if(!vn&&!y.hasEmptyBranch("superscript")){let Cr=Po(a,y.superscript);Cr=Cr.trim();const li=Cr.replace(/<[^>]*>/g,"");if(Cf(y.superscript)){if(a==="math"){const br=Pg(y.superscript);br&&(ut+='<mark name="'+br+'"/>')}li==="\u2032"?ut+=" prime ":li==="2"?ut+=" squared ":li==="3"?ut+=" cubed ":Number.isNaN(Number.parseInt(li))?ut+=" to the "+Cr+"; ":ut+=' to the <say-as interpret-as="ordinal">'+li+"</say-as> power; "}else Number.isNaN(Number.parseInt(li))?ut+=" raised to the "+Cr+"; ":ut+=' raised to the <say-as interpret-as="ordinal">'+li+"</say-as> power; "}if(!vn&&!y.hasEmptyBranch("subscript")){let Cr=Po("math",y.subscript);Cr=Cr.trim(),ut+=Cf(y.subscript)?" sub "+Cr:" subscript "+Cr+". End subscript. "}}return ut}function Yd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ce=Qo(a);if(ce){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=re(ae({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=re(ae({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=re(ae({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const Te=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&Te.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let je="";try{je=Te.toSpeech(ce)}catch(qe){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",qe)}return je}return""}let ee=Po("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ce="";window.MathfieldElement.speechEngineRate&&(ce='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),ee='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ce+"<p><s>"+ee+"</s></p>"+(ce?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&oe()==="macos"?ee=ee.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):ee=ee.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return ee}var Ef={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},Mf={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function Rg(a){let y="";for(const b of a){const ee=y[y.length-1];ee!==void 0&&/\d/.test(ee)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function nl(a){var y,b,ee,ce,Te,je,qe,at,ut,wt,Ut,Yt,vn;if(!a)return"";if(ie(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(nl).join("");if(a[0].mode==="text"){let hi=0,Xr="";for(;((y=a[hi])==null?void 0:y.mode)==="text";)Xr+=a[hi].body?nl(a[hi].body):a[hi].value,hi++;return`"${Xr}" ${nl(a.slice(hi))}`}let br=0;const Ur=[];for(;a[br]&&a[br].mode==="math";){let hi="";for(;a[br]&&a[br].type==="mord"&&/\d/.test(a[br].value);)hi+=a[br++].value;hi?Ur.push(hi):Ur.push(nl(a[br++]))}return Ur.push(nl(a.slice(br))),Rg(Ur)}if(a.mode==="text")return`"${a.value}"`;let Cn="";const{command:Cr}=a;let li;if(Cr==="\\placeholder")return`(${nl(a.body)})`;switch(a.type){case"accent":const br={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Cr];Cn=`${br!=null?br:""} ${nl(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(ga=>ga.value).join("");case"group":case"root":Cn=(b=Ef[Cr])!=null?b:nl(a.body);break;case"genfrac":{const ga=a;(ga.leftDelim||ga.rightDelim)&&(Cn=ga.leftDelim==="."||!ga.leftDelim?"{:":ga.leftDelim),ga.hasBarLine?(Cn+="(",Cn+=nl(ga.above),Cn+=")/(",Cn+=nl(ga.below),Cn+=")"):(Cn+="("+nl(ga.above)+"),",Cn+="("+nl(ga.below)+")"),(ga.leftDelim||ga.rightDelim)&&(Cn+=ga.rightDelim==="."||!ga.rightDelim?"{:":ga.rightDelim)}break;case"surd":Cn+=a.hasEmptyBranch("above")?"sqrt("+nl(a.body)+")":"root("+nl(a.above)+")("+nl(a.body)+")";break;case"latex":Cn=a.value;break;case"leftright":{const ga=a,Fo=ga.leftDelim;Cn+=Fo==="."||!Fo?"{:":Fo,Cn+=nl(ga.body);const ps=ga.matchingRightDelim();Cn+=ps==="."||!ps?":}":ps}break;case"sizeddelim":case"delim":Cn=a.value;break;case"overlap":break;case"overunder":break;case"mord":Cn=(ce=(ee=Ef[Cr])!=null?ee:Cr)!=null?ce:typeof a.value=="string"?a.value:"",Cn.startsWith("\\")&&(Cn+=" "),li=Cr?Cr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,li?Cn=String.fromCodePoint(Number.parseInt("0x"+li[1])):Cn.length>0&&Cn.startsWith("\\")&&(Cn=typeof a.value=="string"?a.value.charAt(0):a.command),Cn=Ng(Cn,a.style);break;case"mbin":case"mrel":case"minner":Cn=(je=(Te=Ef[Cr])!=null?Te:Mf[Cr])!=null?je:a.value;break;case"mopen":case"mclose":Cn=a.value;break;case"mpunct":Cn=(qe=Mf[Cr])!=null?qe:Cr;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(Mf[Cr]?Cn=Mf[Cr]:Cn=Cr==="\\operatorname"?nl(a.body):(at=a.value)!=null?at:Cr,Cn+=" ");break;case"array":const Ur=a.array,hi=a.environmentName,Xr=(ut={bmatrix:["[","]"],"bmatrix*":["[","]"]}[hi])!=null?ut:["(",")"],la=[];for(const ga of Ur){const Fo=[];for(const ps of ga)Fo.push(Xr[0]+nl(ps)+Xr[1]);la.push(Fo.join(","))}const Oa=(wt={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[hi])!=null?wt:["(",")"];Cn=Oa[0]+la.join(",")+Oa[1];break;case"box":break;case"spacing":Cn=(Ut=Ef[Cr])!=null?Ut:" ";break;case"enclose":Cn="("+nl(a.body)+")";break;case"space":Cn=" ";break;case"subsup":Cn="";break;case"macro":Cn=(vn=(Yt=Ef[Cr])!=null?Yt:Mf[Cr])!=null?vn:nl(a.body);break}if(!a.hasEmptyBranch("subscript")){Cn+="_";const br=nl(a.subscript);Cn+=br.length!==1?`(${br})`:br}if(!a.hasEmptyBranch("superscript")){Cn+="^";const br=nl(a.superscript);Cn+=br.length!==1?`(${br})`:br}return Cn}function Ng(a,y){if(!y)return a;let b=a;return y.variant==="double-struck"&&(b=`bbb "${b}"`),y.variant==="script"&&(b=`cc "${b}"`),y.variant==="fraktur"&&(b=`fr "${b}"`),y.variant==="sans-serif"&&(b=`sf "${b}"`),y.variant==="monospace"&&(b=`tt "${b}"`),y.variantStyle==="bold"&&(b=`bb "${b}"`),y.color?`color({${y.color}})(${b})`:b}function Il(a,y){var b,ee;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ce=new va({from:re(ae({},vo()),{renderPlaceholder:()=>new Hr(160,{maxFontSize:1}),letterShapeStyle:(ee=y==null?void 0:y.letterShapeStyle)!=null?ee:"tex"}),mathstyle:y.mathstyle}),je=new Or({mode:"math",type:"root",body:Ol(a,{context:ce,parseMode:"math",mathstyle:y.mathstyle})}).render(ce);return je?(Cs(cf(je,ce)),hl(je,{classes:"ML__latex"}).toMarkup()):""}function Ty(a){return np(a,{context:vo()})}function Bg(a,y={}){return Qo(Ol(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function jg(a){const y=Ol(a,{parseMode:"math",mathstyle:"displaystyle"});return Yd(y)}var ch;function Fg(a){var y,b;if(!ch){const ee=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;ee?ch=new ee:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(b=ch==null?void 0:ch.box(a).latex)!=null?b:""}function Ay(a,y="math"){return nl(new Or({type:"root",body:Ol(a,{parseMode:y})}))}function Oy(a){return Gc(a,{format:"ascii-math"})[1]}function Zh(a){if(typeof a=="string"){const y=$g(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Kg(a):"a"in a?dm(a):a}function Jd(a){return a<0?0:a>255?255:Math.round(a)}function $g(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function Vh(a){const[y,b,ee]=[a.L,a.C,a.H],ce=ee*Math.PI/180,Te={L:y,a:b*Math.cos(ce),b:b*Math.sin(ce)};return a.alpha!==void 0&&(Te.alpha=a.alpha),Te}function zg(a){const[y,b,ee]=[a.L,a.a,a.b],ce=Math.sqrt(b*b+ee*ee),je=Math.atan2(ee,b)*180/Math.PI,qe={L:y,C:ce,H:je};return a.alpha!==void 0&&(qe.alpha=a.alpha),qe}function Gh(a){const[y,b,ee]=[a.L,a.a,a.b],ce=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*ee,3),Te=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*ee,3),je=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*ee,3),qe=4.076741661347994*ce-3.307711590408193*Te+.230969928729428*je,at=-1.2684380040921763*ce+2.6097574006633715*Te-.3413193963102197*je,ut=-.004196086541837188*ce-.7034186144594493*Te+1.7076147009309444*je,wt=Ut=>{const Yt=Math.abs(Ut);return Yt<=.0031308?Ut*12.92:(Math.sign(Ut)||1)*(1.055*Math.pow(Yt,1/2.4)-.055)};return[wt(qe),wt(at),wt(ut)]}function Xh(a){const[y,b,ee]=a;return y>=0&&y<=1&&b>=0&&b<=1&&ee>=0&&ee<=1}function Yh(a,y){let[b,ee,ce]=a;return b=Jd(b*255),ee=Jd(ee*255),ce=Jd(ce*255),y!==void 0?{r:b,g:ee,b:ce,alpha:y}:{r:b,g:ee,b:ce}}function dm(a){let[y,b,ee]=Gh(a);if(Xh([y,b,ee]))return Yh([y,b,ee],a.alpha);const ce=zg(a);if(ce.C=0,[y,b,ee]=Gh(Vh(ce)),!Xh([y,b,ee]))return Yh([y,b,ee],a.alpha);let Te=0,je=a.L,qe=(Te+je)/2;ce.C=qe;const at=.36/Math.pow(2,12);for(;je-Te>at;)qe=(Te+je)/2,ce.C=qe,[y,b,ee]=Gh(Vh(ce)),Xh([y,b,ee])?Te=qe:je=qe;return Yh([y,b,ee],a.alpha)}function Kg(a){return dm(Vh(a))}function fm(a,y){const b=Zh(a),ee=Zh(y),ce=.56,Te=.57,je=.62,qe=.65,at=.022,ut=1.414,wt=.1,Ut=5e-4,Yt=1.14,vn=.027,Cn=1.14,Cr=.027;function li(ga){return ga>=at?ga:ga+lu(at-ga,ut)}function br(ga){return(ga<0?-1:1)*Math.pow(Math.abs(ga),2.4)}const Ur=li(br(ee.r/255)*.2126729+br(ee.g/255)*.7151522+br(ee.b/255)*.072175),hi=li(br(b.r/255)*.2126729+br(b.g/255)*.7151522+br(b.b/255)*.072175);let Xr,la,Oa;return Math.abs(hi-Ur)<Ut?la=0:hi>Ur?(Xr=lu(hi,ce)-lu(Ur,Te),la=Xr*Yt):(Xr=lu(hi,qe)-lu(Ur,je),la=Xr*Cn),Math.abs(la)<wt?Oa=0:la>0?Oa=la-Cr:Oa=la+vn,Oa*100}function hm(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const ee=fm(a,b),ce=fm(a,y);return Math.abs(ee)>Math.abs(ce)?b:y}function Ug(a){const y=Zh(a);let b=((1<<24)+(Jd(y.r)<<16)+(Jd(y.g)<<8)+Jd(y.b)).toString(16).slice(1);return y.alpha!==void 0&&y.alpha<1&&(b+=("00"+Math.round(y.alpha*255).toString(16)).slice(-2)),b[0]===b[1]&&b[2]===b[3]&&b[4]===b[5]&&b[6]===b[7]&&(b=b[0]+b[2]+b[4]+(y.alpha!==void 0&&y.alpha<1?b[6]:"")),"#"+b}function Is(a){const y=pm(a);let b="";for(const ee of y){if(typeof ee.value!="string")return"";b+=ee.value}return b}function pm(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Hg(a,y){const b=pm(a);if(b.length!==1)return!1;const ee=mh[y];return ee?!!ee.test(b[0].value):!1}function Wg(a,y){return Is(a).length>0}function Zg(a){return[Jh(a,"double-struck","mathbb","tooltip.blackboard"),Jh(a,"fraktur","mathfrak","tooltip.fraktur"),Jh(a,"calligraphic","mathcal","tooltip.caligraphic"),Qh(a,"up","mathrm","tooltip.roman-upright"),Qh(a,"bold","mathbf","tooltip.bold"),Qh(a,"italic","mathit","tooltip.italic")]}function Vg(a){return[{label:()=>Il(`\\vec{${Is(a)}}`),visible:()=>Is(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overrightarrow{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overleftarrow{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Il(`\\dot{${Is(a)}}`),visible:()=>Is(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Il(`\\ddot{${Is(a)}}`),visible:()=>Is(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Il(`\\bar{${Is(a)}}`),visible:()=>Is(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overline{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overgroup{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Il(`\\overbrace{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Il(`\\underline{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Il(`\\undergroup{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Il(`\\underbrace{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gg(a){return[{label:()=>Il(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Il(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Il(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Xg(a){const y=[];for(const b of Object.keys(Ne))y.push({class:(Ug(hm(Ne[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ne[b]} "></span>`,ariaLabel:()=>{var ee;return(ee=_e(b))!=null?ee:b},checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({backgroundColor:b}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Yg(a){const y=[];for(const b of Object.keys(Ae))y.push({class:(hm(Ae[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ae[b]} "></span>`,ariaLabel:()=>{var ee;return(ee=_e(b))!=null?ee:b},checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({color:b}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Jg=class extends tm{constructor(a,y,b,ee){super(a,y),this.row=b,this.col=ee}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function Qg(a){const y=[];for(let b=1;b<=5;b++)for(let ee=1;ee<=5;ee++)y.push({onCreate:(ce,Te)=>new Jg(ce,Te,b,ee),label:"\u2610",tooltip:()=>_e("tooltip.row-by-col",b,ee),data:{row:b,col:ee},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(ee).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function qg(a){return[{label:()=>_e("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Ed(a)},{label:()=>_e("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Ed(a)},{label:()=>_e("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Ed(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,ee]=ty(a);return b<y.maxColumns}},{label:()=>_e("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Ed(a)},{type:"divider"},{label:()=>_e("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Ed(a)},{label:()=>_e("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Ed(a)},{type:"divider"},{label:()=>_e("menu.borders"),visible:()=>(ey(a)||Ed(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>kf(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>kf(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>kf(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>kf(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>kf(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>_e("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Qg(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>_e("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>_e("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{$d(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>_e("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{$d(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>_e("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>_e("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Zg(a),submenuClass:"variant-submenu"},{label:()=>_e("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Yg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>_e("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Xg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>_e("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vg(a),submenuClass:"variant-submenu"},{label:()=>_e("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Is(a).length>0,submenu:Gg(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>_e("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=ny(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>_e("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const ee=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!ee){a.model.announce("plonk");return}a.insert(`=${ee.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const ee=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!ee){a.model.announce("plonk");return}a.insert(ee.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var y;if(window.MathfieldElement.computeEngine===null)return"";const b=(y=a.expression)==null?void 0:y.unknowns[0];return b?_e("menu.solve-for",Il(b)):_e("menu.solve")},id:"ce-solve",visible:()=>{var y;return a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((y=a.expression)==null?void 0:y.unknowns.length)===1&&a.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var y;const b=a.expression,ee=b==null?void 0:b.unknowns[0],ce=(y=b.solve(ee))==null?void 0:y.map(Te=>{var je;return(je=Te.simplify().latex)!=null?je:""});if(!ce){a.model.announce("plonk");return}a.insert(`${ee}=${ce.length===1?ce[0]:"\\left\\lbrace"+(ce==null?void 0:ce.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>_e("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>_e("menu.copy"),id:"copy",submenu:[{label:()=>_e("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Wa.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>_e("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Wa.copyToClipboard(a,"ascii-math")},{label:()=>_e("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Wa.copyToClipboard(a,"math-ml")}]},{label:()=>_e("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>_e("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Ed(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function ey(a){return a.model.at(a.model.position).type==="array"}function ty(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((ee,ce)=>Math.max(ee,ce.length),0)]:[0,0]}function kf(a,y){Nf(a),a.flushInlineShortcutBuffer(),Pp(a.model,y),Ys(a)}function ny(a){var y,b;let ee;if(a.model.selectionIsCollapsed?ee=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):ee=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!ee)return"";let ce=ee.evaluate();return ce.isSame(ee)&&(ce=ee.N()),ce.latex}function Jh(a,y,b,ee){return{label:()=>Il(`\\${b}{${Is(a)}}`),tooltip:()=>{var ce;return(ce=_e(ee))!=null?ce:ee},visible:()=>Hg(a,y),checked:()=>{var ce;return{some:"mixed",all:!0}[(ce=a.queryStyle({variant:y}))!=null?ce:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Qh(a,y,b,ee){return{label:()=>Il(`\\${b}{${Is(a)}}`),tooltip:()=>{var ce;return(ce=_e(ee))!=null?ce:ee},visible:()=>Wg(a,y),checked:()=>{var ce;return{some:"mixed",all:!0}[(ce=a.queryStyle({variantStyle:y}))!=null?ce:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Qd(a,y){return a+Yd(y)}fc({speak:(a,y,b)=>ry(a,y,b)},{target:"mathfield"});function ry(a,y,b){var ee,ce;b=b!=null?b:{withHighlighting:!1};const{model:Te}=a;function je(wt){let Ut=null;switch(wt){case"all":Ut=Te.root;break;case"selection":Ut=Te.getAtoms(Te.selection);break;case"left":{Ut=Te.getAtoms(Te.offsetOf(Te.at(Te.position).leftSibling),Te.position);break}case"right":{Ut=Te.getAtoms(Te.position,Te.offsetOf(Te.at(Te.position).rightSibling));break}case"group":Ut=Te.getAtoms(Te.getSiblingsRange(Te.position));break;case"parent":{const{parent:Yt}=Te.at(Te.position);Yt!=null&&Yt.parent?Ut=Yt:Ut=Te.root;break}default:Ut=Te.root}return Ut}function qe(wt){let Ut="";switch(wt){case"all":console.log("Internal failure: speak all failed");break;case"selection":Ut="no selection";break;case"left":Ut="at start";break;case"right":Ut="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Ut="no parent";break;default:console.log('unknown speak_ param value: "'+wt+'"');break}return Ut}const at=je(y);if(at===null)return(ce=(ee=window.MathfieldElement).speakHook)==null||ce.call(ee,qe(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const ut=Yd(at);return ue()&&b.withHighlighting?(Zu().readAloudMathfield=a,md(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,ut)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(ut),!1}function iy(a){var y,b;if(!ue()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const ee=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(ee)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const ee=new window.AWS.Polly({apiVersion:"2016-06-10"}),ce={OutputFormat:"mp3",VoiceId:(y=window.MathfieldElement.speechEngineVoice)!=null?y:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna")?"neural":"standard",Text:a,TextType:"ssml"};ee.synthesizeSpeech(ce,(Te,je)=>{if(Te)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${Te}`);else if(je!=null&&je.AudioStream){const qe=new Uint8Array(je.AudioStream),at=new Blob([qe.buffer],{type:"audio/mpeg"}),ut=URL.createObjectURL(at);new Audio(ut).play().catch(Ut=>console.log(Ut))}else console.log("polly.synthesizeSpeech():",je)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function mm(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function ay(a,y,b,ee){let ce="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ce=Qd("deleted: ",ee);else if(y==="focus"||y.includes("move"))ce=oy(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+sy(a.model);else if(y==="replacement")ce=Qd("",a.model.at(a.model.position));else if(y==="line"){const Te=Qd("",a.model.root);a.keyboardDelegate.setAriaLabel(Te)}else ce=ee?Qd(y+" ",ee):y;if(ce){const Te=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ce+Te}}function oy(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let ee="",ce=b.parent;const Te=a.at(a.position).parent;for(;ce!==a.root&&ce!==Te;)ee+=`out of ${mm(ce)};`,ce=ce.parent;return ee}function sy(a){if(!a.selectionIsCollapsed)return Qd("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),ee=mm(b);return b.isFirstSibling&&(y=(ee?"start of "+ee:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=ee?"end of "+ee:"unknown"):y+=Qd("",b),y}var ly=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const ee=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ce={};if((y==null?void 0:y.type)==="undo"&&(ce={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ce={inputType:"historyRedo"}),this.contentWillChange(ce)){const Te=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=Ku(a.content),this.selection=a.selection,this.silenceNotifications=Te,this.contentDidChange(ce)}this.silenceNotifications=ee}get atoms(){return this.root.children}get selection(){return this._selection}set selection(a){this.setSelection(a)}setSelection(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var b,ee,ce;const Te=this.normalizeSelection(a,y);if(Te===void 0)throw new TypeError("Invalid selection");if(Te.ranges.length===1&&Te.ranges[0][0]===Te.ranges[0][1]){const wt=Te.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(wt))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((ee=this.at(wt-1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(wt-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ce=this.at(wt+1))!=null&&ce.parentPrompt){this._anchor=this.normalizeOffset(wt+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=wt,this._position=wt,this._selection=Te;return}const je=Vs(Te);Te.direction==="backward"?[this._position,this._anchor]=je:[this._anchor,this._position]=je;const qe=this.at(je[0]+1),at=this.at(je[1]),ut=Or.commonAncestor(qe,at);(ut==null?void 0:ut.type)==="array"&&qe.parent===ut&&at.parent===ut?this._selection={ranges:[je],direction:Te.direction}:this._selection={ranges:[je],direction:Te.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(a){var y;const b=this.at(a);(b==null?void 0:b.type)==="placeholder"?this.setSelection(a-1,a):((y=b==null?void 0:b.rightSibling)==null?void 0:y.type)==="placeholder"?this.setSelection(a,a+1):this.position=a,b instanceof Nl&&b.isSuggestion&&(b.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(a){this.setSelection(a,a)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(a="forward"){return this._anchor===this._position?!1:(a==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(a){return this.atoms[a]}offsetOf(a){return this.atoms.indexOf(a)}getSiblingsRange(a){const y=this.at(a),{parent:b}=y;if(!b)return[0,this.lastOffset];const ee=y.parent.branch(y.parentBranch);return[this.offsetOf(ee[0]),this.offsetOf(ee[ee.length-1])]}getBranchRange(a,y){const b=this.at(a).branch(y);return[this.offsetOf(b[0]),this.offsetOf(b[b.length-1])]}getAtoms(a,y,b){let ee=b!=null?b:{};if(Ru(a)){if(ee=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((ut,wt)=>[...ut,...this.getAtoms(wt,ee)],[]);a=a.ranges[0]}let ce,Te;if(Hl(a)){if(ce=a,!Hl(y))return[];Te=y}else[ce,Te]=a,ee=y!=null?y:{};if(!Number.isFinite(ce))return[];ee.includeChildren===void 0&&(ee.includeChildren=!1),ce<0&&(ce=this.lastOffset-ce+1),Te<0&&(Te=this.lastOffset-Te+1);const je=Math.min(ce,Te)+1,qe=Math.max(ce,Te);if(!ee.includeChildren&&je===1&&qe===this.lastOffset)return[this.root];let at=[];for(let ut=je;ut<=qe;ut++){const wt=this.atoms[ut];vm(this,wt,je,qe)&&at.push(wt)}return ee.includeChildren||(at=at.filter(ut=>{let wt=!1,{parent:Ut}=ut;for(;Ut&&!wt;)wt=vm(this,Ut,je,qe),Ut=Ut.parent;return!wt})),at}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let ee=a;ee<=b;ee++)y.push(this.atoms[ee]);for(let ee=0;ee<a;ee++)y.push(this.atoms[ee]);return y}findAtom(a,y=0,b="forward"){let ee;const ce=this.lastOffset;if(b==="forward"){for(let Te=y;Te<=ce;Te++)if(ee=this.atoms[Te],a(ee))return ee;for(let Te=0;Te<y;Te++)if(ee=this.atoms[Te],a(ee))return ee;return}for(let Te=y;Te>=0;Te--)if(ee=this.atoms[Te],a(ee))return ee;for(let Te=ce;Te>y;Te--)if(ee=this.atoms[Te],a(ee))return ee}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new Or({type:"root",body:[]}),y;for(const b of y)b.parent.removeChild(b);return y}deleteAtoms(a){this.extractAtoms(a),this.position=a[0]}atomToString(a,y){const b=y!=null?y:"latex";if(b.startsWith("latex"))return Or.serialize([a],{expandMacro:b==="latex-expanded",skipStyles:b==="latex-unstyled",skipPlaceholders:b==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(b==="math-ml")return Qo(a);if(b==="spoken")return Yd(a);if(b==="spoken-text"){const ee=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ce=Yd(a);return window.MathfieldElement.textToSpeechMarkup=ee,ce}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const ee=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ce=Yd(a);return window.MathfieldElement.textToSpeechMarkup=ee,ce}return b==="ascii-math"?nl(a):(console.error(`MathLive 0.98.5: Unexpected format "${b}`),"")}getValue(a,y,b){if(a===void 0)return this.atomToString(this.root,"latex");if(typeof a=="string"&&a!=="math-json")return this.atomToString(this.root,a);let ee,ce;if(Hl(a)&&Hl(y)?(ee=[this.normalizeRange([a,y])],ce=b):mu(a)?(ee=[this.normalizeRange(a)],ce=y):Ru(a)?(ee=a.ranges,ce=y):(ee=[this.normalizeRange([0,-1])],ce=a),ce!=null||(ce="latex"),ce==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
|
|
|
Load the library, for example with:
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const Te=this.getValue({ranges:ee},"latex-unstyled");try{const je=window.MathfieldElement.computeEngine.parse(Te);return JSON.stringify(je.json)}catch(je){return JSON.stringify(["Error",`'${je.toString()}'`])}}if(ce.startsWith("latex")){const Te={expandMacro:ce==="latex-expanded",skipStyles:ce==="latex-unstyled",skipPlaceholders:ce==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return $a(ee.map(je=>Or.serialize(this.getAtoms(je),Te)))}return ee.map(Te=>this.getAtoms(Te).map(je=>this.atomToString(je,ce)).join("")).join("")}extendSelectionTo(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const b=this.normalizeRange([a,y]);let[ee,ce]=b,{parent:Te}=this.at(ce);if(Te&&(Te.type==="genfrac"||Te.type==="subsup"))for(;Te!==this.root&&qh(this,Te,[ee,ce]);)ce=this.offsetOf(Te),Te=Te.parent;for(Te=this.at(ee).parent;Te!==this.root&&qh(this,Te,[ee,ce]);)ee=this.offsetOf(Te.leftSibling),Te=Te.parent;if(Te=this.at(ce).parent,(Te==null?void 0:Te.type)==="genfrac")for(;Te!==this.root&&qh(this,Te,[ee,ce]);)ce=this.offsetOf(Te),console.assert(ce>=0),Te=Te.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[ee,ce]],direction:"none"}})}announce(a,y,b=[]){var ee,ce;((ce=(ee=this.mathfield.host)==null?void 0:ee.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ce:!0)&&ay(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,ee=this._anchor,ce=this._position,Te=this.silenceNotifications;this.silenceNotifications=!0;const je=this.root.changeCounter;y();const qe=this.root.changeCounter!==je,at=ee!==this._anchor||ce!==this._position||pu(this._selection,b)==="different";return this.silenceNotifications=Te,a.content&&qe&&this.contentDidChange({inputType:a.type}),a.selection&&at&&this.selectionDidChange(),qe||at}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let ee;if(Hl(a)){const ce=this.normalizeOffset(a);if(Hl(y)){const Te=this.normalizeOffset(y);ee=ce<=Te?{ranges:[[ce,Te]],direction:"none"}:{ranges:[[Te,ce]],direction:"backward"}}else ee={ranges:[[ce,ce]],direction:"none"}}else if(mu(a)){const ce=this.normalizeOffset(a[0]),Te=this.normalizeOffset(a[1]);ee=ce<=Te?{ranges:[[ce,Te]],direction:"none"}:{ranges:[[Te,ce]],direction:"backward"}}else Ru(a)&&(ee={ranges:a.ranges.map(ce=>this.normalizeRange(ce)),direction:(b=a.direction)!=null?b:"none"});return console.assert(ee!==void 0),ee}get parentEnvironment(){let a=this.at(this.position).parent;if(a){for(;a.parent&&a.type!=="array";)a=a.parent;if(a.type==="array")return a}}get cell(){var a;let y=this.at(this.position);if(y){for(;y&&((a=y.parent)==null?void 0:a.type)!=="array";)y=y.parent;if(!(!(y!=null&&y.parent)||y.parent.type!=="array"))return y.parentBranch}}contentWillChange(a={}){if(this.silenceNotifications||!this.mathfield)return!0;const y=this.silenceNotifications;this.silenceNotifications=!0;const b=this.mathfield.onContentWillChange(a);return this.silenceNotifications=y,b}contentDidChange(a){var y;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(eu(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",re(ae({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",bubbles:!0,composed:!0}))),this.silenceNotifications=b}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(eu(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function vm(a,y,b,ee){const ce=a.offsetOf(y);if(ce<b||ce>ee)return!1;if(!y.hasChildren)return!0;const Te=a.offsetOf(y.firstChild);if(Te>=b&&Te<=ee){const je=a.offsetOf(y.lastChild);if(je>=b&&je<=ee)return!0}return!1}function qh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[ee,ce]=b,Te=a.offsetOf(y.firstChild),je=a.offsetOf(y.lastChild);return Te>=ee&&Te<=ce&&je>=Te&&je<=ce}function _f(a,y,b,ee){var ce,Te,je,qe,at,ut;const wt=b.parent;if(wt&&b instanceof Jo){const Ut=!ee&&y==="forward"||ee==="body"&&y==="backward";let Yt=Ut?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Ut?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),Yt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),Yt--),a.position=Yt,!0}if(wt&&b.type==="surd"){if(y==="forward"&&!ee||y==="backward"&&ee==="body"){const Ut=b.leftSibling;b.hasChildren&&wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),a.position=a.offsetOf(Ut)}else y==="forward"&&ee==="body"?a.position=a.offsetOf(b):!ee&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),wt.removeChild(b)):ee==="above"&&(b.hasEmptyBranch("above")&&b.removeBranch("above"),y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b.body[0]));return!0}if(wt&&(b.type==="box"||b.type==="enclose")){const Ut=ee&&y==="backward"||!ee&&y==="forward"?b.leftSibling:b.lastChild;return wt.addChildrenAfter(b.removeBranch("body"),b),wt.removeChild(b),a.position=a.offsetOf(Ut),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!ee)return b.type==="overunder"&&b.hasEmptyBranch("body")||b.type==="genfrac"&&b.hasEmptyBranch("below")&&b.hasEmptyBranch("above")?!1:(a.position=a.offsetOf(y==="forward"?b.firstChild:b.lastChild),!0);const Ut=Tf.fractionNavigationOrder==="numerator-denominator"?"above":"below",Yt=Ut==="above"?"below":"above";if(wt&&(y==="forward"&&ee===Ut||y==="backward"&&ee===Yt)){const vn=b.removeBranch(Ut),Cn=b.removeBranch(Yt);return wt.addChildrenAfter([...vn,...Cn],b),wt.removeChild(b),a.position=a.offsetOf(vn.length>0?vn[vn.length-1]:Cn[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!ee&&y==="forward")return!1;if(!ee){if(b.subscript||b.superscript){const Ut=y==="forward"?(je=(ce=b.superscript)==null?void 0:ce[0])!=null?je:(Te=b.subscript)==null?void 0:Te[0]:(ut=(qe=b.subscript)==null?void 0:qe[0].lastSibling)!=null?ut:(at=b.superscript)==null?void 0:at[0].lastSibling;return Ut&&(a.position=a.offsetOf(Ut)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Ut=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Ut,!0}if(ee==="superscript")if(y==="backward"){const Ut=a.offsetOf(b.firstChild)-1;console.assert(Ut>=0),a.position=Ut}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else ee==="subscript"&&(y==="backward"&&b.superscript?a.position=a.offsetOf(b.superscript[0].lastSibling):y==="backward"?a.position=a.offsetOf(b.firstChild)-1:a.position=a.offsetOf(b));if(ee&&b.hasEmptyBranch(ee)&&(b.removeBranch(ee),b.type==="subsup"&&!b.subscript&&!b.superscript)){const Ut=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Ut}return!0}if((wt==null?void 0:wt.type)==="genfrac"&&!ee&&b.type!=="first"){let Ut=a.offsetOf(b.leftSibling);return wt.removeChild(b),wt.hasEmptyBranch("above")&&wt.hasEmptyBranch("below")?(Ut=a.offsetOf(wt.leftSibling),wt.parent.removeChild(wt),a.announce("delete",void 0,[wt]),a.position=Ut,!0):(a.announce("delete",void 0,[b]),a.position=Ut,!0)}if(y==="backward"&&((wt==null?void 0:wt.command)==="\\ln"||(wt==null?void 0:wt.command)==="\\log")&&b.parentBranch!=="body"){const Ut=a.offsetOf(wt.leftSibling);return wt.parent.removeChild(wt),a.announce("delete",void 0,[wt]),a.position=Ut,!0}return!1}function cy(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentBackward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let y=a.at(a.position);if(!(y&&_f(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(_f(a,"backward",y.parent,y.parentBranch))return;y=null}if(!y){a.announce("plonk");return}a.position=a.offsetOf(y.leftSibling),y.parent.removeChild(y),a.announce("delete",void 0,[y])}}):nu(a,Vs(a.selection),"deleteContentBackward")}function uy(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let ee=a.at(a.position).rightSibling;if(ee&&_f(a,"forward",ee))return;if(ee){if(a.at(a.position).isLastSibling&&_f(a,"forward",ee.parent,ee.parentBranch))return}else{if(ee=a.at(a.position),ee.isLastSibling&&_f(a,"forward",ee.parent,ee.parentBranch))return;ee=void 0}if(a.position===a.lastOffset||!ee){a.announce("plonk");return}ee.parent.removeChild(ee);let ce=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ce==null?void 0:ce.type)==="subsup";)ce.parent.removeChild(ce),ce=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[ee])}):nu(a,Vs(a.selection),"deleteContentForward")}function nu(a,y,b){const ee=a.getAtoms(y);if(ee.length>0&&ee[0].parent){let ce=ee[0].parent.firstChild;ce.type==="first"&&(ce=ce.rightSibling);const Te=ee[ee.length-1].parent.lastChild;let je=ee[0];je.type==="first"&&(je=je.rightSibling);const qe=ee[ee.length-1];if(je===ce&&qe===Te){const at=ee[0].parent;at.parent&&at.type!=="prompt"&&(y=[a.offsetOf(at.leftSibling),a.offsetOf(at)])}if(ee.length===1&&ee[0].type==="placeholder"&&ee[0].parent.type==="genfrac"){const at=ee[0].parent,ut=ee[0].parentBranch==="below"?"above":"below",wt=a.offsetOf(at.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Ut,Yt;const vn=at.removeBranch(ut);if(vn.length===1&&vn[0].type==="placeholder")(Yt=at.parent)==null||Yt.removeChild(at),a.position=Math.max(0,wt);else{const Cn=at.parent.addChildrenAfter(vn,at);(Ut=at.parent)==null||Ut.removeChild(at),a.position=a.offsetOf(Cn)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}fc({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&nu(a,[0,-1],"deleteContent"),deleteForward:a=>uy(a),deleteBackward:a=>cy(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&nu(a,[a.anchor,Th(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&nu(a,[a.anchor,Th(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&nu(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&nu(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&nu(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&nu(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var dy=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${_e("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,fy=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${_e("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,hy=class{constructor(a,y){this.focusBlurInProgress=!1;var b,ee,ce;this.options=ae(re(ae({},Vf()),{macros:_t(),registers:Mc()}),Zf(y)),this.eventController=new AbortController;const Te=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let je=(ee=(b=y.value)!=null?b:this.element.textContent)!=null?ee:"";je=je.trim();const qe=Op(this.options),at=new Or({type:"root",mode:qe,body:Ol(je,{context:this.context})});this.model=new ly(this,qe,at),this.undoManager=new jv(this.model);const ut=[];if(ut.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),ut.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),ut.push("<span part=content class=ML__content>"),ut.push(Sp(this)),ut.push("</span>"),window.mathVirtualKeyboard&&(ut.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),ut.push(dy),ut.push("</div>")),ut.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),ut.push(fy),ut.push("</div>"),ut.push("</span>"),ut.push("<span class=ML__sr-only>"),ut.push("<span role=status aria-live=assertive aria-atomic=true></span>"),ut.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(ut.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=ye.subscribe(()=>ye.update(this.element)),ye.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Ut=>Ut.stopImmediatePropagation(),{capture:!1,signal:Te}),this.field.addEventListener("wheel",this,{passive:!1,signal:Te}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:Te}):this.field.addEventListener("mousedown",this,{signal:Te}),(ce=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ce.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(eu(this)))},{signal:Te}),this._menu=new Cg(qg(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:Te});const wt=this.element.querySelector("[part=menu-toggle]");wt==null||wt.addEventListener("pointerdown",Ut=>{if(Ut.currentTarget!==wt||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Yt=wt.getBoundingClientRect();this._menu.modifiers=pd(Ut),this._menu.show({target:wt,location:{x:Yt.left,y:Yt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Ut.preventDefault(),Ut.stopPropagation()},{signal:Te}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(wt.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=U0(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:Te}),document.addEventListener("scroll",this,{signal:Te}),this.resizeObserver=new ResizeObserver(()=>Ys(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:Te}),ff&&!ye.locale.startsWith(ff.locale)&&F0(ye.locale),bc!=="ready"&&document.fonts.ready.then(()=>zf(this)),a.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(a){this._defaultStyle=a}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const a=this.model.at(this.model.position),y=this.adoptStyle==="right"?a.rightSibling:a;if(!y)return this.defaultStyle;if(y.type==="group"){const b=y.branch("body");return!b||b.length<2?{}:this.adoptStyle==="right"?b[1].computedStyle:b[b.length-1].computedStyle}return y.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(eu(this)),ah(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Fh())}showMenu(a){var y,b;const ee=(b=(y=a==null?void 0:a.location)!=null?y:vc(this.field))!=null?b:void 0,ce=a==null?void 0:a.modifiers,Te=this.element.querySelector("[part=container]");return this._menu.show({target:Te,location:ee,modifiers:ce})}get colorMap(){return a=>{var y,b,ee;return(ee=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?ee:Pe(a)}}get backgroundColorMap(){return a=>{var y,b,ee,ce,Te,je;return(je=(Te=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?Te:(ce=(ee=this.options).colorMap)==null?void 0:ce.call(ee,a))!=null?je:Le(a)}}get smartFence(){var a;return(a=this.options.smartFence)!=null?a:!1}get readOnly(){var a;return(a=this.options.readOnly)!=null?a:!1}get disabled(){var a,y;return(y=(a=this.host)==null?void 0:a.disabled)!=null?y:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const a=getComputedStyle(this.host);return a.getPropertyValue("user-select")||a.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(a=>a.type==="prompt"&&!a.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const a=this.model.at(this.model.anchor),y=this.model.at(this.model.position),b=Or.commonAncestor(a,y);return!!((b==null?void 0:b.type)==="prompt"||b!=null&&b.parentPrompt)}get letterShapeStyle(){var a;return(a=this.options.letterShapeStyle)!=null?a:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const a=this.model.getAtoms(this.model.selection);if(a.length===0)return{};const y=ae({},a[0].style);for(const b of a)for(const[ee,ce]of Object.entries(b.style))y[ee]!==ce&&delete y[ee];return y}queryStyle(a){const y=Lh(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const at of Object.keys(y)){const ut=this.queryStyle({[at]:y[at]});if(ut==="none")return"none";if(ut==="some")return"some"}return"all"}const ee=Object.keys(y)[0],ce=y[ee];if(this.model.selectionIsCollapsed)return this.effectiveStyle[ee]===ce?"all":"none";const Te=this.model.getAtoms(this.model.selection,{includeChildren:!0});let je=Te.length;if(je===0)return"none";let qe=0;for(const at of Te){if(at.type==="first"){je-=1;continue}at.style[ee]===ce&&(qe+=1)}return qe===0?"none":qe===je?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,ee]=G0(this.options.keybindings,(a=hf())!=null?a:$0());return((y=hf())==null?void 0:y.score)>0&&(this._keybindings=b,ee.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",ee)),b}get menu(){return this._menu}setOptions(a){var y;this.options=ae(ae({},this.options),Zf(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const ee=Or.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==ee)&&Wa.insert(this.model,ee,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in a||"macros"in a||"registers"in a||"colorMap"in a||"backgroundColorMap"in a||"letterShapeStyle"in a||"minFontScale"in a||"readOnly"in a||"placeholderSymbol"in a)&&Ys(this)}getOptions(a){return gd(this.options,a)}getOption(a){return gd(this.options,a)}handleEvent(a){return Vu(this,null,function*(){var y;if(Jl(this)){if(Eh(a)){if(!as(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const ee=a.data.command;if(Kd(ee)==="virtual-keyboard")return;this.executeCommand(ee)}else b==="update-state"||(b==="focus"?this.focus({preventScroll:!0}):b==="blur"&&this.blur());return}switch(a.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&Wp(this,a);break;case"pointerdown":this.userSelect!=="none"&&(Wp(this,a),a.shiftKey===!1&&(yield am(a,this.element.querySelector("[part=container]"),this._menu))&&th.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield am(a,this.element.querySelector("[part=container]"),this._menu))&&th.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&ah(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Jl(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Jl(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Jl(this))return;ye.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const a=this.element;delete a.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,Xv(),ev(),vg()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(a){return Kd(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(eu(this))),!1):sv(this,a)}get errors(){return np(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=Id(this.model,this.model.position))!=null?b:"math");const ee=this.undoManager.canUndo();Wa.insert(this.model,a,y)&&(Ys(this),ee||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const a=window.MathfieldElement.computeEngine;return a?a.box(a.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var a;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const ee=window.mathVirtualKeyboard.boundingRect,ce=this.host.getBoundingClientRect();ce.bottom>ee.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ce.bottom-ee.top+8))}}this.dirty&&md(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=vc(this.field);else{const ee=Bo(this);if(ee.length>0){let ce=-1/0,Te=-1/0;for(const je of ee)je.right>ce&&(ce=je.right),je.top<Te&&(Te=je.top);b={x:ce+y.left-this.field.scrollLeft,y:Te+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const ee=this.host.getBoundingClientRect(),ce=b.y;let Te=this.host.scrollTop;ce<ee.top?Te=ce-ee.top+this.host.scrollTop:ce>ee.bottom&&(Te=ce-ee.bottom+this.host.scrollTop+b.height),this.host.scroll({top:Te,left:0})}if(b){const ee=b.x-window.scrollX;let ce=this.field.scrollLeft;ee<y.left?ce=ee-y.left+this.field.scrollLeft-20:ee>y.right&&(ce=ee-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ce})}}insert(a,y){return typeof a!="string"||a.length===0&&((y==null?void 0:y.insertionMode)==="insertBefore"||(y==null?void 0:y.insertionMode)==="insertAfter")||a.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),y=y!=null?y:{mode:"math"},y.focus&&this.focus(),y.feedback&&(window.MathfieldElement.keypressVibration&&he()&&navigator.vibrate(Cp),window.MathfieldElement.playSound("keypress")),a==="\\\\"?Ip(this.model):a==="&"?Dp(this.model):this.model.selectionIsCollapsed?Wa.insert(this.model,a,ae({style:this.model.at(this.model.position).computedStyle},y)):Wa.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Ys(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var ee;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ce=this.model.mode;if(this.model.mode=a,!((ee=this.host)!=null&&ee.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ce;return}const Te=this.model.mode,{model:je}=this;je.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let qe=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const at=Ol(y,{context:this.context,parseMode:a});je.collapseSelection("forward");const ut=je.at(je.position);je.position=je.offsetOf(ut.parent.addChildrenAfter(at,ut)),qe=!0}if(this.model.mode=a,a==="latex"){let at=je.selectionIsCollapsed;$d(this,"accept");let ut,wt=je.at(je.position);if(at)ut="\\";else{const Yt=Vs(je.selection);ut=this.model.getValue(Yt,"latex");const vn=this.model.extractAtoms(Yt);vn.length===1&&vn[0].type==="placeholder"&&(ut=y,at=!0),wt=je.at(Yt[0])}const Ut=new of(ut);wt.parent.addChildAfter(Ut,wt),at?je.position=je.offsetOf(Ut.lastChild):je.setSelection(je.offsetOf(Ut.firstChild),je.offsetOf(Ut.lastChild))}else pf(je).forEach(at=>{at.isError=!1});if(b){const at=Ol(b,{context:this.context,parseMode:Te});je.collapseSelection("forward");const ut=je.at(je.position);je.position=je.offsetOf(ut.parent.addChildrenAfter(at,ut)),qe=!0}return Ys(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),qe}),this.model.mode=a,window.mathVirtualKeyboard.update(eu(this))}hasFocus(){return!this.blurred}focus(a){var y;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(y=a==null?void 0:a.preventScroll)!=null&&y||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(a,y={}){var b,ee;const ce={operation:"set",silenceNotifications:!1};mu(y)?ce.range=y:(y.operation==="toggle"&&(ce.operation="toggle"),ce.range=y.range,ce.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const Te=Lh(this,a),je=(ee=ce.operation)!=null?ee:"set";if(ce.range===void 0&&this.model.selectionIsCollapsed){if(je==="set"){this.defaultStyle=ae(ae({},this.defaultStyle),Te);return}const qe=ae({},this.defaultStyle);for(const at of Object.keys(Te))qe[at]===Te[at]?(at==="color"&&delete qe.verbatimColor,at==="backgroundColor"&&delete qe.verbatimBackgroundColor,delete qe[at]):qe[at]=Te[at];this.defaultStyle=qe;return}this.model.deferNotifications({content:!ce.silenceNotifications,type:"insertText"},()=>{if(ce.range===void 0)for(const qe of this.model.selection.ranges)kh(this.model,qe,Te,{operation:je});else kh(this.model,ce.range,Te,{operation:je})}),Ys(this)}toggleContextMenu(){var a;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(a=this.getCaretPoint())!=null?a:void 0,onDismiss:()=>{var y;return(y=this.element)==null?void 0:y.focus()}}),!0):!1}getCaretPoint(){const a=vc(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Sf(this,a,y,{bias:0});if(b<0)return!1;const ee=this.model.position;return this.model.position=b,this.model.announce("move",ee),Ys(this),!0}getPrompt(a){const y=this.model.findAtom(b=>b.type==="prompt"&&b.placeholderId===a);return console.assert(y!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),y}getPromptValue(a,y){const b=this.getPrompt(a);if(!b)return"";const ee=this.model.offsetOf(b.firstChild),ce=this.model.offsetOf(b.lastChild);return this.model.getValue(ee,ce,y)}getPrompts(a){return this.model.getAllAtoms().filter(y=>y.type!=="prompt"?!1:a?!(a.id&&y.placeholderId!==a.id||a.locked&&y.locked!==a.locked||a.correctness==="undefined"&&y.correctness||a.correctness&&y.correctness!==a.correctness):!0).map(y=>y.placeholderId)}setPromptValue(a,y,b){if(y!==void 0){const ee=this.getPrompt(a);if(!ee){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ce=this.model.getBranchRange(this.model.offsetOf(ee),"body");this.model.setSelection(ce),this.insert(y,re(ae({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Ys(this)}setPromptState(a,y,b){const ee=this.getPrompt(a);if(!ee){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?ee.correctness=void 0:typeof y=="string"&&(ee.correctness=y),typeof b=="boolean"&&(ee.locked=b,ee.captureSelection=b),Ys(this)}getPromptState(a){const y=this.getPrompt(a);return y?[y.correctness,y.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[void 0,!0])}getPromptRange(a){const y=this.getPrompt(a);return y?this.model.getBranchRange(this.model.offsetOf(y),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(a){var y;this.undoManager.snapshot(a)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(eu(this)),(y=this.host)==null||y.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var a;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(eu(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var a;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(eu(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var a;(a=this.undoManager)==null||a.reset()}onSelectionDidChange(){var a,y;const b=this.model;this.keyboardDelegate.setValue(b.getValue(this.model.selection,"latex-expanded"));{const ee=b.at(b.position),ce=(a=ee.mode)!=null?a:Op(this.options);this.model.mode!==ce&&(this.model.mode==="latex"?($d(this,"accept",{mode:ce}),b.position=b.offsetOf(ee)):this.switchMode(ce))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(eu(this)),ah(this)}onContentWillChange(a){var y,b,ee;return(ee=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",re(ae({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?ee:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),md(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var a,y,b;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",zd(this),this.model.getValue()!==this.valueOnFocus&&((a=this.host)==null||a.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(y=this.host)==null||y.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(b=this.host)==null||b.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),Ys(this),this.focusBlurInProgress=!1,Fh();const ee=new AbortController,ce=ee.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Jl(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ce})},{once:!0,signal:ce}),setTimeout(()=>ee.abort(),100)}onInput(a){Ih(this,a)}onKeystroke(a){return Kp(this,a)}onCompositionStart(a){this.model.deleteAtoms(Vs(this.model.selection));const y=vc(this.field);y&&requestAnimationFrame(()=>{md(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Av(this.model,a),Ys(this)}onCompositionEnd(a){Ov(this.model),Ih(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Wa.onCopy(this,a),nu(this.model,Vs(this.model.selection),"deleteByCut"),this.snapshot("cut"),Ys(this))}onCopy(a){Wa.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Wa.onPaste(this.model.at(this.model.position).mode,this,a.clipboardData)),y||this.model.announce("plonk"),a.preventDefault(),a.stopPropagation(),y}onGeometryChange(){this._menu.hide(),jf(this),ah(this)}onWheel(a){const y=5*a.deltaX;if(!Number.isFinite(y)||y===0)return;const b=this.field;y<0&&b.scrollLeft===0||y>0&&b.offsetWidth+b.scrollLeft>=b.scrollWidth||(b.scrollBy({top:0,left:y}),a.preventDefault(),a.stopPropagation())}getHTMLElement(a){let y=a;for(;!y.id&&y.hasChildren;)y=a.children[0];return this.field.querySelector(`[data-atom-id="${y.id}"]`)}get context(){var a,y;return{registers:(a=this.options.registers)!=null?a:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(y=this.options.placeholderSymbol)!=null?y:"\u25A2",colorMap:b=>this.colorMap(b),backgroundColorMap:b=>this.backgroundColorMap(b),getMacro:b=>en(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function gm(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)gm(y)}function ep(a,y){var b;a&&(!y||((b=a.dataset)==null?void 0:b.atomId)===y?(a.classList.add("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(ee=>{ee instanceof HTMLElement&&ep(ee)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(ee=>{ee instanceof HTMLElement&&ep(ee,y)})))}function py(a,y){var b;if(!ue())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(y);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const ee=new window.AWS.Polly({apiVersion:"2016-06-10"}),ce={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};Zu().readAloudElement=a,ee.synthesizeSpeech(ce,(Te,je)=>{if(Te){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${Te}`);return}if(!(je!=null&&je.AudioStream)){console.log("polly.synthesizeSpeech():",je);return}const qe=new TextDecoder("utf-8").decode(new Uint8Array(je.AudioStream));Zu().readAloudMarks=qe.split(`
|
|
|
`).map(at=>at?JSON.parse(at):{}),Zu().readAloudTokens=[];for(const at of Zu().readAloudMarks)at.value&&Zu().readAloudTokens.push(at.value);Zu().readAloudCurrentMark="",ce.OutputFormat="mp3",ce.SpeechMarkTypes=[],ee.synthesizeSpeech(ce,(at,ut)=>{if(at){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${at}`);return}if(!(ut!=null&&ut.AudioStream))return;const wt=new Uint8Array(ut.AudioStream),Ut=new Blob([wt.buffer],{type:"audio/mpeg"}),Yt=URL.createObjectURL(Ut),vn=Zu();vn.readAloudAudio?vn.readAloudAudio.pause():(vn.readAloudAudio=new Audio,vn.readAloudAudio.addEventListener("ended",()=>{const Cn=vn.readAloudMathfield;vn.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Cn?(md(Cn),vn.readAloudElement=null,vn.readAloudMathfield=null,vn.readAloudTokens=[],vn.readAloudMarks=[],vn.readAloudCurrentMark=""):gm(vn.readAloudElement)}),vn.readAloudAudio.addEventListener("timeupdate",()=>{let Cn="";const Cr=vn.readAloudAudio.currentTime*1e3+100;for(const li of vn.readAloudMarks)li.time<Cr&&(Cn=li.value);vn.readAloudCurrentMark!==Cn&&(vn.readAloudCurrentToken=Cn,Cn&&Cn===vn.readAloudFinalToken?vn.readAloudAudio.pause():(vn.readAloudCurrentMark=Cn,ep(vn.readAloudElement,vn.readAloudCurrentMark)))})),vn.readAloudAudio.src=Yt,vn.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),vn.readAloudAudio.play()})})}ue()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var Vo=new WeakMap,my=.5,Wu={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},Bl=class Md extends HTMLElement{static get formAssociated(){return qd()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,rv())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,ee,ce;this.audioBuffers={},y===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof y=="string"?this._keypressSound={spacebar:y,return:y,delete:y,default:y}:typeof y=="object"&&"default"in y&&(this._keypressSound={spacebar:(b=y.spacebar)!=null?b:y.default,return:(ee=y.return)!=null?ee:y.default,delete:(ce=y.delete)!=null?ce:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return ye.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),ye.locale=y}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(y){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return ye.strings}static set strings(y){ye.merge(y)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(y){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(y){this._decimalSeparator=y,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(y){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var y,b;if(this._computeEngine===void 0){const ee=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!ee)return null;this._computeEngine=new ee,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(b=this._computeEngine)!=null?b:null}static set computeEngine(y){this._computeEngine=y}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(y){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(y){this._isFunction=y}static loadSound(y){return Vu(this,null,function*(){delete this.audioBuffers[y];let b="";switch(y){case"keypress":b=this._keypressSound.default;break;case"return":b=this._keypressSound.return;break;case"spacebar":b=this._keypressSound.spacebar;break;case"delete":b=this._keypressSound.delete;break;case"plonk":b=this.plonkSound;break}if(typeof b!="string")return;b=b.trim();const ee=this.soundsDirectory;if(!(ee==null||ee==="null"||b==="none"||b==="null"))try{const Te=yield(yield fetch(yield wp(`${ee}/${b}`))).arrayBuffer(),je=yield this.audioContext.decodeAudioData(Te);this.audioBuffers[y]=je}catch(ce){}})}static playSound(y){return Vu(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const ee=this.audioContext.createGain();ee.gain.value=my,b.connect(ee).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const ee of Object.keys(y))if(Wu[ee])if(Wu[ee].startsWith("mf."))if(Wu[ee].startsWith(`mf.${ee}`))b.push(`Option \`${ee}\` cannot be used as a constructor option. Use ${Wu[ee]}`);else{const ce=Wu[ee].match(/([a-zA-Z]+) =/);b.push(`Option \`${ee}\` has been renamed \`${ce[1]}\``)}else b.push(`Option \`${ee}\` cannot be used as a constructor option. Use ${Wu[ee]}`);if(b.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const ee of b)console.warn(ee);console.groupEnd()}}if(qd()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[zu("core"),zu("mathfield"),zu("mathfield-element"),zu("ui"),zu("menu")],this.shadowRoot.appendChild(document.createElement("span"));const b=document.createElement("slot");b.style.display="none",this.shadowRoot.appendChild(b)}else this.shadowRoot.innerHTML="<style>"+xu("core")+xu("mathfield")+xu("mathfield-element")+xu("ui")+xu("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const ee=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=ee==null?void 0:ee.assignedNodes().map(ce=>ce.nodeType===3?ce.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?ee:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var ee,ce;return(ce=(ee=this._mathfield)==null?void 0:ee.getPromptValue(y,b))!=null?ce:""}setPromptValue(y,b,ee){var ce;(ce=this._mathfield)==null||ce.setPromptValue(y,b,ee)}getPromptRange(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?ee:null}getPrompts(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?ee:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(y){var b,ee;if(!this._mathfield)return;const ce=(ee=(b=Md.computeEngine)==null?void 0:b.box(y).latex)!=null?ee:null;ce!==null&&this._mathfield.setValue(ce),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.errors)!=null?b:[]}_getOptions(y){return this._mathfield?gd(this._mathfield.options,y):Vo.has(this)?ae({},gd(ae(ae({},Vf()),Zf(Vo.get(this).options)),y)):null}getOptions(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?gd(this._mathfield.options,y):Vo.has(this)?gd(ae(ae({},Vf()),Zf(Vo.get(this).options)),y):null}reflectAttributes(){const y=Vf(),b=this._getOptions();Object.keys(Md.optionsAttributes).forEach(ee=>{const ce=Eu(ee);Md.optionsAttributes[ee]==="on/off"?y[ce]!==b[ce]?this.setAttribute(ee,b[ce]?"on":"off"):this.removeAttribute(ee):y[ce]!==b[ce]&&(Md.optionsAttributes[ee]==="boolean"?b[ce]?this.setAttribute(ee,""):this.removeAttribute(ee):(typeof b[ce]=="string"||typeof b[ce]=="number")&&this.setAttribute(ee,b[ce].toString()))})}getOption(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([y])[y]}_getOption(y){return this._getOptions([y])[y]}_setOptions(y){if(this._mathfield)this._mathfield.setOptions(y);else if(Vo.has(this)){const b=ae(ae({},Vo.get(this).options),y);Vo.set(this,re(ae({},Vo.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Vo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:y,menuItems:void 0});this.reflectAttributes()}setOptions(y){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const b of Object.keys(y))Wu[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${Wu[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?ee:!1}getValue(y,b,ee){var ce,Te;if(this._mathfield)return this._mathfield.model.getValue(y,b,ee);if(Vo.has(this)){let je,qe,at;if(Ru(y)?([je,qe]=y.ranges[0],at=b):mu(y)?([je,qe]=y,at=b):Hl(y)&&Hl(b)?(je=y,qe=b,at=ee):(je=0,qe=-1,at=y),(at===void 0||at==="latex")&&je===0&&qe===-1)return(Te=(ce=Vo.get(this).value)!=null?ce:this.textContent)!=null?Te:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Vo.has(this)){const ce=Vo.get(this).options;Vo.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ce,menuItems:void 0});return}const ee=Af(this);Vo.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0})}hasFocus(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.hasFocus())!=null?b:!1}focus(){var y;(y=this._mathfield)==null||y.focus()}blur(){var y;(y=this._mathfield)==null||y.blur()}select(){var y;(y=this._mathfield)==null||y.select()}insert(y,b){var ee,ce;return(ce=(ee=this._mathfield)==null?void 0:ee.insert(y,b))!=null?ce:!1}applyStyle(y,b){var ee;return(ee=this._mathfield)==null?void 0:ee.applyStyle(y,b)}queryStyle(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?ee:"none"}get caretPoint(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.getCaretPoint())!=null?b:null}set caretPoint(y){var b;y&&((b=this._mathfield)==null||b.setCaretPoint(y.x,y.y))}setCaretPoint(y,b){var ee,ce;return(ce=(ee=this._mathfield)==null?void 0:ee.setCaretPoint(y,b))!=null?ce:!1}offsetFromPoint(y,b,ee){return this._mathfield?Sf(this._mathfield,y,b,ee):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const ee=Fc(this._mathfield,b);return ee?new DOMRect(ee.left,ee.top,ee.right-ee.left,ee.bottom-ee.top):null}resetUndo(){var y;(y=this._mathfield)==null||y.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(y){var b,ee,ce,Te;Jc.state==="closed"&&((ee=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:ee.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ce=this._mathfield)==null||ce.focus()),y.type==="blur"&&((Te=this._mathfield)==null||Te.blur()))}connectedCallback(){var y,b,ee,ce;const Te=window.getComputedStyle(this),je=this.shadowRoot,qe=Te.userSelect!=="none";if(qe)je.host.addEventListener("pointerdown",this,!0);else{const wt=je.querySelector("span");wt.style.pointerEvents="none"}je.host.addEventListener("focus",this,!0),je.host.addEventListener("blur",this,!0),qd()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),qe&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const at=je.querySelector("slot:not([name])");if(at)try{this._style=at.assignedElements().filter(wt=>wt.tagName.toLowerCase()==="style").map(wt=>wt.textContent).join("")}catch(wt){console.error(wt)}if(this._style){const wt=document.createElement("style");wt.textContent=this._style,je.appendChild(wt)}let ut="";if(this.hasAttribute("value")?ut=this.getAttribute("value"):ut=(y=at==null?void 0:at.assignedNodes().map(wt=>wt.nodeType===3?wt.textContent:"").join("").trim())!=null?y:"",this._mathfield=new hy(je.querySelector(":host > span"),re(ae({},(ee=(b=Vo.get(this))==null?void 0:b.options)!=null?ee:Af(this)),{eventSink:this,value:ut})),!Vo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const wt of Object.keys(Md.optionsAttributes))this.upgradeProperty(Eu(wt))}if(!((ce=this._mathfield)!=null&&ce.model)){this._mathfield=null;return}if(Vo.has(this)){const wt=this._mathfield,Ut=Vo.get(this),Yt=Ut.menuItems;wt.model.deferNotifications({content:!1,selection:!1},()=>{const vn=Ut.value;vn!==void 0&&wt.setValue(vn),wt.model.selection=Ut.selection,Vo.delete(this)}),Yt&&(this.menuItems=Yt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),$f()}disconnectedCallback(){var y,b;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const ee=gd(this._mathfield.options,Object.keys(Md.optionsAttributes).map(ce=>Eu(ce)));Vo.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(b=(y=this._mathfield.menu)==null?void 0:y.menuItems)!=null?b:void 0,options:ee}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(y){if(this.hasOwnProperty(y)){const b=this[y];delete this[y],(y==="readonly"||y==="read-only")&&(y="readOnly"),this[y]=b}}attributeChangedCallback(y,b,ee){if(b===ee)return;const ce=ee!==null;switch(y){case"contenteditable":Ys(this._mathfield);break;case"disabled":this.disabled=ce;break;case"read-only":case"readonly":this.readOnly=ce;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),qd()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(qd()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const ee=!!y;ee?this.setAttribute("disabled",""):this.removeAttribute("disabled"),qd()?this._internals.ariaDisabled=ee?"true":"false":this.setAttribute("aria-disabled",ee?"true":"false"),ee&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,ee)=>{if(typeof ee=="string")return y._getOption("registers")[ee]},set(b,ee,ce){return typeof ee!="string"?!1:(y._setOptions({registers:re(ae({},y._getOption("registers")),{[ee]:ce})}),!0)}})}set registers(y){this._setOptions({registers:y})}get colorMap(){return this._getOption("colorMap")}set colorMap(y){this._setOptions({colorMap:y})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(y){this._setOptions({backgroundColorMap:y})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(y){this._setOptions({letterShapeStyle:y})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(y){this._setOptions({minFontScale:y})}get smartMode(){return this._getOption("smartMode")}set smartMode(y){this._setOptions({smartMode:y})}get smartFence(){return this._getOption("smartFence")}set smartFence(y){this._setOptions({smartFence:y})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(y){this._setOptions({smartSuperscript:y})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(y){this._setOptions({scriptDepth:y})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(y){this._setOptions({removeExtraneousParentheses:y})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(y){this._setOptions({mathModeSpace:y})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(y){this._setOptions({placeholderSymbol:y})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(y){this._setOptions({popoverPolicy:y})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(y){this._setOptions({environmentPopoverPolicy:y})}get menuItems(){var y,b,ee;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ce=>ce.menuItem))!=null?y:[]:(ee=(b=Vo.get(this))==null?void 0:b.menuItems)!=null?ee:[]}set menuItems(y){var b;if(this._mathfield){const ee=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");ee&&(ee.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}Vo.has(this)?Vo.set(this,re(ae({},Vo.get(this)),{menuItems:y})):Vo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Af(this),menuItems:y})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(y){this._setOptions({mathVirtualKeyboardPolicy:y})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(y){this._setOptions({inlineShortcuts:y})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(y){this._setOptions({inlineShortcutTimeout:y})}get keybindings(){return this._getOption("keybindings")}set keybindings(y){this._setOptions({keybindings:y})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(y){this._setOptions({onInlineShortcut:y})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(y){this._setOptions({onScrollIntoView:y})}get onExport(){return this._getOption("onExport")}set onExport(y){this._setOptions({onExport:y})}get readOnly(){return this._getOption("readOnly")}set readOnly(y){this._setOptions({readOnly:y})}get isSelectionEditable(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.isSelectionEditable)!=null?b:!1}setPromptState(y,b,ee){var ce;(ce=this._mathfield)==null||ce.setPromptState(y,b,ee)}getPromptState(y){var b,ee;return(ee=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?ee:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(y){this._setOptions({virtualKeyboardTargetOrigin:y})}get selection(){return this._mathfield?this._mathfield.model.selection:Vo.has(this)?Vo.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(y){if(typeof y=="number"&&(y={ranges:[[y,y]]}),this._mathfield){this._mathfield.model.selection=y,Ys(this._mathfield);return}if(Vo.has(this)){Vo.set(this,re(ae({},Vo.get(this)),{selection:y}));return}Vo.set(this,{value:void 0,selection:y,options:Af(this),menuItems:void 0})}get selectionIsCollapsed(){const y=this.selection;return y.ranges.length===1&&y.ranges[0][0]===y.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:Vo.has(this)?Vo.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Ys(this._mathfield)),Vo.has(this)){Vo.set(this,re(ae({},Vo.get(this)),{selection:{ranges:[[y,y]]}}));return}Vo.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:Af(this),menuItems:void 0})}getOffsetDepth(y){var b,ee;return this._mathfield?((ee=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?ee:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};Bl.version="0.98.5",Bl._fontsDirectory="./fonts",Bl._soundsDirectory="./sounds",Bl.keypressVibration=!0,Bl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Bl._plonkSound="plonk.wav",Bl.audioBuffers={},Bl.createHTML=a=>a,Bl._speechEngineRate="100%",Bl._speechEngineVoice="Joanna",Bl._textToSpeechMarkup="",Bl._textToSpeechRules="mathlive",Bl._textToSpeechRulesOptions={},Bl.speakHook=iy,Bl.readAloudHook=py,Bl._decimalSeparator=".",Bl.fractionNavigationOrder="numerator-denominator",Bl._isFunction=a=>{var y,b;const ee=window.MathfieldElement.computeEngine;return(b=(y=ee==null?void 0:ee.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var Tf=Bl;function Eu(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function Af(a){const y={readOnly:!1},b=Tf.optionsAttributes;return Object.keys(b).forEach(ee=>{if(a.hasAttribute(ee)){const ce=a.getAttribute(ee);ee==="placeholder"?y.contentPlaceholder=ce!=null?ce:"":b[ee]==="boolean"?y[Eu(ee)]=!0:b[ee]==="on/off"?ce==="on"?y[Eu(ee)]=!0:ce==="off"?y[Eu(ee)]=!1:y[Eu(ee)]=void 0:b[ee]==="number"?y[Eu(ee)]=Number.parseFloat(ce!=null?ce:"0"):y[Eu(ee)]=ce}}),y}function qd(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var ym=Tf,bm,xm,wm,Sm;if(ue()&&!((bm=window.customElements)!=null&&bm.get("math-field"))){(wm=window[xm=Symbol.for("io.cortexjs.mathlive")])!=null||(window[xm]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=Tf,(Sm=window.customElements)==null||Sm.define("math-field",Tf)}function vy(a,y,b){let ee=b,ce=0;const Te=a.length;for(;ee<y.length;){const je=y[ee];if(ce<=0&&y.slice(ee,ee+Te)===a)return ee;je==="\\"?ee++:je==="{"?ce++:je==="}"&&ce--,ee++}return-1}function uh(a,y,b,ee,ce="latex"){const Te=[];for(const je of a)if(je.type==="text"){const qe=je.data;let at=!0,ut=0,wt;wt=qe.indexOf(y),wt!==-1&&(ut=wt,ut>0&&Te.push({type:"text",data:qe.slice(0,ut)}),at=!1);let Ut=!1;for(;!Ut;){if(at){if(wt=qe.indexOf(y,ut),wt===-1){Ut=!0;break}ut!==wt&&Te.push({type:"text",data:qe.slice(ut,wt)}),ut=wt}else{if(wt=vy(b,qe,ut+y.length),wt===-1){Ut=!0;break}let Yt=qe.slice(ut+y.length,wt);ce==="ascii-math"&&([,Yt]=Gc(Yt,{format:"ascii-math"})),Te.push({type:"math",data:Yt,rawData:qe.slice(ut,wt+b.length),mathstyle:ee}),ut=wt+b.length}at=!at}ut<qe.length&&Te.push({type:"text",data:qe.slice(ut)})}else Te.push(je);return Te}function Cm(a,y,b){let ee=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ce,Te])=>{ee=uh(ee,ce,Te,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ce,Te])=>{ee=uh(ee,ce,Te,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ce,Te])=>{ee=uh(ee,ce,Te,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ce,Te])=>{ee=uh(ee,ce,Te,"displaystyle","ascii-math")}),ee}function gy(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const ee="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(ee)}catch(ee){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${ee}`),b.textContent=a}return b.className="ML__sr-only",b}function yy(a,y,b,ee){try{const ce=y.renderToMarkup(a,{mathstyle:b,format:"html"}),Te=document.createElement("span");return Te.dataset.latex=a,Te.style.display=b==="displaystyle"?"flex":"inline-flex",Te.setAttribute("aria-hidden","true"),Te.setAttribute("translate","no"),Te.innerHTML=window.MathfieldElement.createHTML(ce),Te}catch(ce){if(console.error("Could not parse'"+a+"' with ",ce),ee)return document.createTextNode(a)}return null}function ef(a,y,b,ee){var ce;const Te=yy(a,b,y||"textstyle",ee),je=(ce=b.renderAccessibleContent)!=null?ce:"";if(Te&&/\b(mathml|speakable-text)\b/i.test(je)){const qe=document.createElement("span");if(/\bmathml\b/i.test(je)&&b.renderToMathML&&qe.append(gy(a,b)),/\bspeakable-text\b/i.test(je)&&b.renderToSpeakableText){const at=document.createElement("span");at.setAttribute("translate","no");const ut=b.renderToSpeakableText(a);at.innerHTML=window.MathfieldElement.createHTML(ut),at.className="ML__sr-only",qe.append(at)}return qe.append(Te),qe}return Te}function by(a,y){var b,ee,ce;let Te=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){Te=document.createDocumentFragment();const je=ef(a,"",y,!0);je&&Te.appendChild(je)}else{if(!a.trim())return null;const je=Cm(a,(ee=y.TeX)==null?void 0:ee.delimiters,(ce=y.asciiMath)==null?void 0:ce.delimiters);if(je.length===1&&je[0].type==="text")return null;Te=document.createDocumentFragment();for(const qe of je)if(qe.type==="text")Te.appendChild(document.createTextNode(qe.data));else{const at=ef(qe.data,qe.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);at&&Te.appendChild(at)}}return Te}function Em(a,y){var b,ee,ce,Te,je,qe,at,ut,wt,Ut,Yt,vn,Cn,Cr,li,br;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Ur=(b=a.childNodes[0].textContent)!=null?b:"";if((ee=y.TeX)!=null&&ee.processEnvironments&&/^\s*\\begin/.test(Ur)){a.textContent="";const Xr=ef(Ur,"",y,!0);Xr&&a.append(Xr);return}const hi=Cm(Ur,(ce=y.TeX)==null?void 0:ce.delimiters,(Te=y.asciiMath)==null?void 0:Te.delimiters);if(hi.length===1&&hi[0].type==="math"){a.textContent="";const Xr=ef(hi[0].data,hi[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Xr&&a.append(Xr);return}if(hi.length===1&&hi[0].type==="text")return}for(let Ur=a.childNodes.length-1;Ur>=0;Ur--){const hi=a.childNodes[Ur];if(hi.nodeType===3){const Xr=by((je=hi.textContent)!=null?je:"",y);Xr&&(Ur+=Xr.childNodes.length-1,hi.replaceWith(Xr))}else if(hi.nodeType===1){const Xr=hi,la=hi.nodeName.toLowerCase();if(la==="script"){const Oa=hi;let ga;if((qe=y.processScriptTypePattern)!=null&&qe.test(Oa.type))ga=(at=Oa.textContent)!=null?at:"";else if((ut=y.processMathJSONScriptTypePattern)!=null&&ut.test(Oa.type))try{ga=(Ut=y.serializeToLatex)==null?void 0:Ut.call(y,JSON.parse((wt=Oa.textContent)!=null?wt:""))}catch(Fo){console.error(Fo)}if(ga){let Fo="textstyle";for(const Ci of Oa.type.split(";")){const[xc,ru]=Ci.toLowerCase().split("=");xc.trim()==="mode"&&(Fo=ru.trim()==="display"?"displaystyle":"textstyle")}const ps=ef(ga,Fo,y,!0);ps&&Oa.parentNode.replaceChild(ps,Oa)}}else if(((vn=(Yt=y.processClassPattern)==null?void 0:Yt.test(Xr.className))!=null?vn:!1)||!((Cr=(Cn=y.skipTags)==null?void 0:Cn.includes(la))!=null&&Cr||(br=(li=y.ignoreClassPattern)==null?void 0:li.test(Xr.className))!=null&&br))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const ga=a.textContent;a.textContent="";const Fo=ef(ga!=null?ga:"","displaystyle",y,!0);Fo&&a.append(Fo)}else Em(Xr,y)}}}var xy={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function wy(a,y){var b,ee,ce,Te;try{const je=ae(ae({},xy),y);je.ignoreClassPattern=new RegExp((b=je.ignoreClass)!=null?b:""),je.processClassPattern=new RegExp((ee=je.processClass)!=null?ee:""),je.processScriptTypePattern=new RegExp((ce=je.processScriptType)!=null?ce:""),je.processMathJSONScriptTypePattern=new RegExp((Te=je.processMathJSONScriptType)!=null?Te:""),$f(),dc("core"),Em(a,je)}catch(je){je instanceof Error?console.error("renderMathInElement(): "+je.message):console.error("renderMathInElement(): Could not render math for element",a)}}function Sy(a,y){const b=Uu.singleton;return b?(b.show(),gf(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function Cy(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}fc({switchKeyboardLayer:Sy,toggleVirtualKeyboard:Cy,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function Zu(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Iy(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function Dy(a){My(document.body,a)}function Ey(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function My(a,y){var b,ee,ce,Te;const je=Ey(a);if(!je)return;const qe=y!=null?y:{};(b=qe.renderToMarkup)!=null||(qe.renderToMarkup=Il),(ee=qe.renderToMathML)!=null||(qe.renderToMathML=Bg),(ce=qe.renderToSpeakableText)!=null||(qe.renderToSpeakableText=jg),(Te=qe.serializeToLatex)!=null||(qe.serializeToLatex=Fg),wy(je,qe)}var Py={mathlive:"0.98.5"}},17423:function(xn,Zt,ve){"use strict";ve.d(Zt,{Z:function(){return ae}});const Ue=re=>typeof re=="object"&&re!=null&&re.nodeType===1,ot=(re,se)=>(!se||re!=="hidden")&&re!=="visible"&&re!=="clip",x=(re,se)=>{if(re.clientHeight<re.scrollHeight||re.clientWidth<re.scrollWidth){const me=getComputedStyle(re,null);return ot(me.overflowY,se)||ot(me.overflowX,se)||(ie=>{const le=(ue=>{if(!ue.ownerDocument||!ue.ownerDocument.defaultView)return null;try{return ue.ownerDocument.defaultView.frameElement}catch(fe){return null}})(ie);return!!le&&(le.clientHeight<ie.scrollHeight||le.clientWidth<ie.scrollWidth)})(re)}return!1},ke=(re,se,me,ie,le,ue,fe,he)=>ue<re&&fe>se||ue>re&&fe<se?0:ue<=re&&he<=me||fe>=se&&he>=me?ue-re-ie:fe>se&&he<me||ue<re&&he>me?fe-se+le:0,pe=re=>{const se=re.parentElement;return se==null?re.getRootNode().host||null:se},ne=(re,se)=>{var me,ie,le,ue;if(typeof document=="undefined")return[];const{scrollMode:fe,block:he,inline:oe,boundary:Se,skipOverflowHiddenElements:Ce}=se,ye=typeof Se=="function"?Se:ft=>ft!==Se;if(!Ue(re))throw new TypeError("Invalid target");const _e=document.scrollingElement||document.documentElement,Me=[];let we=re;for(;Ue(we)&&ye(we);){if(we=pe(we),we===_e){Me.push(we);break}we!=null&&we===document.body&&x(we)&&!x(document.documentElement)||we!=null&&x(we,Ce)&&Me.push(we)}const Ne=(ie=(me=window.visualViewport)==null?void 0:me.width)!=null?ie:innerWidth,Ae=(ue=(le=window.visualViewport)==null?void 0:le.height)!=null?ue:innerHeight,{scrollX:De,scrollY:Ie}=window,{height:Pe,width:Le,top:We,right:Be,bottom:He,left:Ye}=re.getBoundingClientRect(),{top:et,right:st,bottom:yt,left:Ve}=(ft=>{const nt=window.getComputedStyle(ft);return{top:parseFloat(nt.scrollMarginTop)||0,right:parseFloat(nt.scrollMarginRight)||0,bottom:parseFloat(nt.scrollMarginBottom)||0,left:parseFloat(nt.scrollMarginLeft)||0}})(re);let Qe=he==="start"||he==="nearest"?We-et:he==="end"?He+yt:We+Pe/2-et+yt,pt=oe==="center"?Ye+Le/2-Ve+st:oe==="end"?Be+st:Ye-Ve;const mt=[];for(let ft=0;ft<Me.length;ft++){const nt=Me[ft],{height:tt,width:rt,top:Et,right:bt,bottom:Pt,left:Lt}=nt.getBoundingClientRect();if(fe==="if-needed"&&We>=0&&Ye>=0&&He<=Ae&&Be<=Ne&&We>=Et&&He<=Pt&&Ye>=Lt&&Be<=bt)return mt;const dt=getComputedStyle(nt),Ze=parseInt(dt.borderLeftWidth,10),Ke=parseInt(dt.borderTopWidth,10),de=parseInt(dt.borderRightWidth,10),xe=parseInt(dt.borderBottomWidth,10);let ze=0,$e=0;const Ee="offsetWidth"in nt?nt.offsetWidth-nt.clientWidth-Ze-de:0,Re="offsetHeight"in nt?nt.offsetHeight-nt.clientHeight-Ke-xe:0,Fe="offsetWidth"in nt?nt.offsetWidth===0?0:rt/nt.offsetWidth:0,Ge="offsetHeight"in nt?nt.offsetHeight===0?0:tt/nt.offsetHeight:0;if(_e===nt)ze=he==="start"?Qe:he==="end"?Qe-Ae:he==="nearest"?ke(Ie,Ie+Ae,Ae,Ke,xe,Ie+Qe,Ie+Qe+Pe,Pe):Qe-Ae/2,$e=oe==="start"?pt:oe==="center"?pt-Ne/2:oe==="end"?pt-Ne:ke(De,De+Ne,Ne,Ze,de,De+pt,De+pt+Le,Le),ze=Math.max(0,ze+Ie),$e=Math.max(0,$e+De);else{ze=he==="start"?Qe-Et-Ke:he==="end"?Qe-Pt+xe+Re:he==="nearest"?ke(Et,Pt,tt,Ke,xe+Re,Qe,Qe+Pe,Pe):Qe-(Et+tt/2)+Re/2,$e=oe==="start"?pt-Lt-Ze:oe==="center"?pt-(Lt+rt/2)+Ee/2:oe==="end"?pt-bt+de+Ee:ke(Lt,bt,rt,Ze,de+Ee,pt,pt+Le,Le);const{scrollLeft:it,scrollTop:gt}=nt;ze=Ge===0?0:Math.max(0,Math.min(gt+ze/Ge,nt.scrollHeight-tt/Ge+Re)),$e=Fe===0?0:Math.max(0,Math.min(it+$e/Fe,nt.scrollWidth-rt/Fe+Ee)),Qe+=gt-ze,pt+=it-$e}mt.push({el:nt,top:ze,left:$e})}return mt},z=re=>re===!1?{block:"end",inline:"nearest"}:(se=>se===Object(se)&&Object.keys(se).length!==0)(re)?re:{block:"start",inline:"nearest"};function ae(re,se){if(!re.isConnected||!(le=>{let ue=le;for(;ue&&ue.parentNode;){if(ue.parentNode===document)return!0;ue=ue.parentNode instanceof ShadowRoot?ue.parentNode.host:ue.parentNode}return!1})(re))return;const me=(le=>{const ue=window.getComputedStyle(le);return{top:parseFloat(ue.scrollMarginTop)||0,right:parseFloat(ue.scrollMarginRight)||0,bottom:parseFloat(ue.scrollMarginBottom)||0,left:parseFloat(ue.scrollMarginLeft)||0}})(re);if((le=>typeof le=="object"&&typeof le.behavior=="function")(se))return se.behavior(ne(re,se));const ie=typeof se=="boolean"||se==null?void 0:se.behavior;for(const{el:le,top:ue,left:fe}of ne(re,z(se))){const he=ue-me.top+me.bottom,oe=fe-me.left+me.right;le.scroll({top:he,left:oe,behavior:ie})}}}}]);
|
|
|
}()); |