|
|
!(function(){var T1=Object.defineProperty,k1=Object.defineProperties;var M1=Object.getOwnPropertyDescriptors;var jg=Object.getOwnPropertySymbols;var Lv=Object.prototype.hasOwnProperty,_v=Object.prototype.propertyIsEnumerable;var S0=(qn,Mt,ae)=>Mt in qn?T1(qn,Mt,{enumerable:!0,configurable:!0,writable:!0,value:ae}):qn[Mt]=ae,wf=(qn,Mt)=>{for(var ae in Mt||(Mt={}))Lv.call(Mt,ae)&&S0(qn,ae,Mt[ae]);if(jg)for(var ae of jg(Mt))_v.call(Mt,ae)&&S0(qn,ae,Mt[ae]);return qn},F0=(qn,Mt)=>k1(qn,M1(Mt));var Nv=(qn,Mt)=>{var ae={};for(var x in qn)Lv.call(qn,x)&&Mt.indexOf(x)<0&&(ae[x]=qn[x]);if(qn!=null&&jg)for(var x of jg(qn))Mt.indexOf(x)<0&&_v.call(qn,x)&&(ae[x]=qn[x]);return ae};var Pl=(qn,Mt,ae)=>S0(qn,typeof Mt!="symbol"?Mt+"":Mt,ae);(self.webpackChunk=self.webpackChunk||[]).push([[342],{27812:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},89489:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},59477:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},40001:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},26227:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},49198:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},87169:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},73331:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},15277:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},52671:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},8657:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},56082:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},33853:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},15075:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},43531:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},61485:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},47472:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},95869:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},87395:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(60499),dt=ae(59301),Le={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"},qe=Le,ze=ae(7657),Ie=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:qe}))},Ue=dt.forwardRef(Ie),he=Ue},22054:function(){"use strict"},68305:function(){"use strict"},2375:function(qn,Mt){"use strict";Mt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},75354: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 qn={},Mt="5.0",ae={},x=null,dt=!1,Le=!1,qe=null,ze=!1,Ie=null,Ue=null,he=0;he<arguments.length;he++){var xe=arguments[he];if(xe!==null)switch(typeof xe){case"number":Mt=xe.toFixed(1);break;case"string":xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Mt=xe:qe=xe;break;case"object":typeof xe.is3D!="undefined"?x=xe:ae=xe;break;case"boolean":dt=xe,Le=!0;break}}x===null&&(x={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!Le&&(dt=!0)),qe!==null&&ae.id===void 0&&(ae.id=qe);var oe="",Oe="",ve=!1,Me=null,Se=null,Te=null,we=!1,Ce=null,Ee=null,ke=null,Ke=null,Qe=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var je=function(tt){return parseFloat(tt)>4?parseFloat(tt):5};qn.setHTML5Codebase=function(tt,Dt){Ue=tt,ut(tt,Dt)},qn.setJavaCodebase=qn.setJavaCodebaseVersion=qn.isCompiledInstalled=qn.setPreCompiledScriptPath=qn.setPreCompiledResourcePath=function(){},qn.setHTML5CodebaseVersion=function(tt,Dt){var jt=parseFloat(tt);if(jt!==NaN&&jt<5){console.log("The GeoGebra HTML5 codebase version "+jt+" is deprecated. Using version latest instead.");return}Ie=tt,De(tt,Dt)},qn.getHTML5CodebaseVersion=function(){return Se},qn.getParameters=function(){return ae},qn.setFontsCSSURL=function(tt){Ke=tt},qn.setGiacJSURL=function(tt){},qn.setJNLPFile=function(tt){oe=tt},qn.setJNLPBaseDir=function(tt){},qn.inject=function(){function tt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Dt="auto",jt=ae.id,An,kt=!1,pn=0;pn<arguments.length;pn++){var Pt=arguments[pn];typeof Pt=="string"?(Pt=Pt.toLowerCase(),Pt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Dt=Pt:jt=arguments[pn]):typeof Pt=="boolean"?kt=Pt:Pt instanceof HTMLElement&&(An=Pt)}En();function En(){if(!ze){setTimeout(En,200);return}Dt=Et(Dt);var on=An||document.getElementById(jt);if(!on){console.log("possibly bug on ajax loading? ");return}if(qn.removeExistingApplet(on,!1),ae.width===void 0&&on.clientWidth&&(ae.width=on.clientWidth),ae.height===void 0&&on.clientHeight&&(ae.height=on.clientHeight),!(ae.width&&ae.height)&&Dt==="html5"&&(delete ae.width,delete ae.height),Me=Dt,Dt==="screenshot")_e(on,ae);else{var de=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?de=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(de=(!Je()||tt())&&Ve()),de?(Me="screenshot",Ot(on,ae,kt,Dt)):ht(on,ae,kt)}}};function Je(){try{return window.self!==window.top}catch(tt){return!0}}function Ve(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}qn.getViews=function(){return x},qn.isJavaInstalled=function(){return!1};var ct=function(tt){var Dt=function(pn){var Pt=JSON.parse(pn),En=function(pe){return pe.type=="G"||pe.type=="E"},on=Pt.elements?Pt.elements.filter(En)[0]:Pt;if(!on||!on.url){jt();return}ae.fileName=on.url,ot(on.settings||{}),x.is3D=!0;var de="https://www.geogebra.org/images/";qn.setPreviewImage(Ce||on.previewUrl,de+"GeoGebra_loading.png",de+"applet_play.png"),tt()},jt=function(){ae.onError&&ae.onError(),Zt("Error: Fetching material (id "+ae.material_id+") failed.",ae)},An=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",kt="/materials/"+ae.material_id+"?scope=basic";pt("https://"+An+"/api/proxy.php?path="+encodeURIComponent(kt),Dt,jt)};function ot(tt){var Dt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(jt){tt[jt]=!!tt[jt]}),Dt.forEach(function(jt){ae[jt]===void 0&&tt[jt]!==void 0&&(ae[jt]=tt[jt])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function pt(tt,Dt,jt){var An=new XMLHttpRequest;An.open("GET",tt),An.onload=function(){Dt(An.responseText)},An.onerror=jt,An.send()}qn.isHTML5Installed=function(){return!0},qn.getLoadedAppletType=function(){return Me},qn.setPreviewImage=function(tt,Dt,jt){Ce=tt,Ee=Dt,ke=jt},qn.removeExistingApplet=function(tt,Dt){var jt;typeof tt=="string"&&(tt=document.getElementById(tt)),Me=null;var An=null;for(jt=0;jt<tt.childNodes.length;jt++){var kt=tt.childNodes[jt],pn=kt.className;pn==="applet_screenshot"?Dt?(kt.style.display="block",Me="screenshot"):kt.style.display="none":pn!=="applet_scaler prerender"&&(tt.removeChild(kt),An=pn&&pn.indexOf("appletParameters")!=-1?kt.id:null,jt--)}var Pt=ae.id!==void 0?ae.id:An,En=window[Pt];En&&typeof En.getBase64=="function"&&(En.remove(),window[Pt]=null)},qn.refreshHitPoints=function(){if(je(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var tt=qn.getAppletObject();return tt&&typeof tt.recalculateEnvironments=="function"?(tt.recalculateEnvironments(),!0):!1},qn.startAnimation=function(){var tt=qn.getAppletObject();return tt&&typeof tt.startAnimation=="function"?(tt.startAnimation(),!0):!1},qn.stopAnimation=function(){var tt=qn.getAppletObject();return tt&&typeof tt.stopAnimation=="function"?(tt.stopAnimation(),!0):!1},qn.getAppletObject=function(){var tt=ae.id!==void 0?ae.id:"ggbApplet";return window[tt]},qn.resize=function(){};var Ct=function(tt,Dt,jt){var An=document.createElement("param");An.setAttribute("name",Dt),An.setAttribute("value",jt),tt.appendChild(An)},He=function(tt){return tt&&tt!=="false"},ht=function(tt,Dt,jt){je(Se)<=4.2&&(jt=!0);var An=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Se||ggbHTML5LoadedCodebaseIsWebSimple&&!we)&&(An=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kt=document.createElement("div");kt.classList.add("appletParameters","notranslate");var pn=Dt.width,Pt=Dt.height;if(Dt.disableAutoScale=Dt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Dt.disableAutoScale,Dt.width!==void 0)if(je(Se)<=4.4)He(Dt.showToolBar)&&(Dt.height-=7),He(Dt.showAlgebraInput)&&(Dt.height-=37),Dt.width<605&&He(Dt.showToolBar)&&(Dt.width=605,pn=605);else{var En=100;(He(Dt.showToolBar)||He(Dt.showMenuBar))&&(Dt.hasOwnProperty("customToolBar")&&(Dt.customToolbar=Dt.customToolBar),En=He(Dt.showMenuBar)?245:155),pn<En&&(Dt.width=En,pn=En)}kt.style.border="none",kt.style.display="inline-block";for(var on in Dt)Dt.hasOwnProperty(on)&&on!=="appletOnLoad"&&kt.setAttribute("data-param-"+on,Dt[on]);Ke&&kt.setAttribute("data-param-fontscssurl",Ke),qn.resize=function(){GGBAppletUtils.responsiveResize(tt,Dt)},window.addEventListener("resize",function(_t){qn.resize()});var de=typeof Dt.appletOnLoad=="function"?Dt.appletOnLoad:function(){};if(!jt&&Dt.width!==void 0){Dt.hasOwnProperty("showSplash")||kt.setAttribute("data-param-showSplash","false");var pe=tt.querySelector(".applet_scaler.prerender"),ie=pe!==null;if(ie)var ee=pe.querySelector(".ggb_preview");else{var ee=at(pn,Pt,Dt.borderColor,!1);pe=document.createElement("div"),pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.style.width=pn+"px",pe.style.height=Pt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pe,"66%"),je(Se)>=5?(Dt.appletOnLoad=function(_t){var Qt=tt.querySelector(".ggb_preview");Qt&&Qt.parentNode.removeChild(Qt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pe),window.GGBT_wsf_view&&$(window).trigger("resize"),de(_t)},ie||pe.appendChild(ee)):kt.appendChild(ee),pe.appendChild(kt),ie||tt.appendChild(pe),setTimeout(function(){qn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(kt),tt.appendChild(se),Dt.appletOnLoad=function(_t){qn.resize(),de(_t)}}function le(_t,Qt){Qt&&typeof Qt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(_t,Qt.appletOnLoad):renderGGBElement(_t),Zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Qt)}function Be(_t,Qt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:_t,params:Qt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(xt){le(xt.article,xt.params)}),html5AppletsToProcess=null)},je(Se)<5&&(_t.className+=" geogebraweb")):le(_t,Qt)}if(An){scriptLoadStarted=!0;for(var We=0;We<kt.childNodes.length;We++){var st=kt.childNodes[We].tagName;st==="TABLE"&&(kt.removeChild(kt.childNodes[We]),We--)}if(ggbHTML5LoadedScript!==null){var mt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');mt!=null&&mt.parentNode.removeChild(mt)}var vt=document.createElement("script"),St=function(){Be(kt,Dt)};vt.src=Oe+Te,ggbHTML5LoadedCodebaseIsWebSimple=we,ggbHTML5LoadedCodebaseVersion=Se,ggbHTML5LoadedScript=vt.src,Zt("GeoGebra HTML5 codebase loaded: '"+Oe+"'.",Dt),!Ue&&(!Ie||Ie=="5.0")?(we?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),St()):Oe.requirejs?__webpack_require__.e(9111).then(function(){var _t=[__webpack_require__(49111)];St.apply(null,_t)}.bind(this)).catch(__webpack_require__.oe):(vt.onload=St,tt.appendChild(vt))}else Be(kt,Dt);Dt.height=Pt,Dt.width=pn},_e=function(tt,Dt,jt){var An=at(Dt.width,Dt.height,Dt.borderColor,jt),kt=document.createElement("div");kt.style.position="relative",kt.style.display="block",kt.style.width=Dt.width+"px",kt.style.height=Dt.height+"px",kt.className="applet_screenshot applet_scaler"+(jt?" applet_screenshot_play":""),kt.appendChild(An);var pn=GGBAppletUtils.getScale(Dt,tt,jt);jt?(tt.appendChild(it()),window.GGBT_wsf_view||(tt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),tt.appendChild(kt),pn!==1&&!isNaN(pn)&&(GGBAppletUtils.scaleElement(kt,pn),kt.style.width=Dt.width+"px",kt.style.height=Dt.height+"px",kt.parentNode.style.width=Dt.width*pn+"px",kt.parentNode.style.height=Dt.height*pn+"px"),qn.resize=function(){Re(tt,An,kt,jt)},window.addEventListener("resize",function(Pt){qn.resize()}),qn.resize()};function Re(tt,Dt,jt,An){if(tt.contains(Dt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(tt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(tt)}var kt=GGBAppletUtils.getScale(ae,tt,An);jt.parentNode!==null&&(!isNaN(kt)&&kt!==1?(GGBAppletUtils.scaleElement(jt,kt),jt.parentNode.style.width=ae.width*kt+"px",jt.parentNode.style.height=ae.height*kt+"px"):(GGBAppletUtils.scaleElement(jt,1),jt.parentNode.style.width=ae.width+"px",jt.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(tt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}qn.onExitFullscreen=function(tt,Dt){Dt.appendChild(tt)};var Ot=function(tt,Dt,jt,An){_e(tt,Dt,!0);for(var kt=function(){var En=[];for(Pt=0;Pt<tt.childNodes.length;Pt++)En.push(tt.childNodes[Pt]);if(window.GGBT_wsf_view){var on=window.GGBT_wsf_view.renderFullScreen(tt,Dt.id),de=document.getElementById("fullscreencontainer"),pe=jQuery(tt).find(".fullscreencontent");pe.length>0?(on.remove(),pe.attr("id","fullscreencontent").show(),jQuery(de).append(pe),window.dispatchEvent(new Event("resize"))):ht(on,Dt,!1),window.GGBT_wsf_view.launchFullScreen(de)}else Me=An,ht(tt,Dt,!1);if(!window.GGBT_wsf_view)for(Pt=0;Pt<En.length;Pt++)tt.removeChild(En[Pt])},pn=tt.getElementsByClassName("ggb_preview_play"),Pt=0;Pt<pn.length;Pt++)pn[Pt].addEventListener("click",kt,!1),pn[Pt].addEventListener("ontouchstart",kt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(tt),Ve()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},it=function(){var tt=document.createElement("div");if(tt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Dt='.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");}',jt=document.createElement("style");jt.styleSheet?jt.styleSheet.cssText=Dt:jt.appendChild(document.createTextNode(Dt)),document.getElementsByTagName("head")[0].appendChild(jt)}return tt},at=function(tt,Dt,jt,An){var kt=document.createElement("div");kt.className="ggb_preview",kt.style.position="absolute",kt.style.zIndex="90",kt.style.width=tt-2+"px",kt.style.height=Dt-2+"px",kt.style.top="0px",kt.style.left="0px",kt.style.overflow="hidden",kt.style.backgroundColor="white";var pn="lightgrey";jt!==void 0&&(jt==="none"?pn="transparent":pn=jt),kt.style.border="1px solid "+pn;var Pt=document.createElement("img");if(Pt.style.position="relative",Pt.style.zIndex="1000",Pt.style.top="-1px",Pt.style.left="-1px",Ce!==null&&Pt.setAttribute("src",Ce),Pt.style.opacity=.7,Ee!==null){var En,on,de;if(!An){En=document.createElement("img"),En.style.position="absolute",En.style.zIndex="1001",En.style.opacity=1,Pt.style.opacity=.3,on=360,on>tt/4*3&&(on=tt/4*3),de=on/5.8,En.setAttribute("src",Ee),En.setAttribute("width",on),En.setAttribute("height",de);var pe=(tt-on)/2,ie=(Dt-de)/2;En.style.left=pe+"px",En.style.top=ie+"px",kt.appendChild(En)}}return kt.appendChild(Pt),kt},Et=function(tt){return tt=tt.toLowerCase(),tt==="html5"||tt==="screenshot"?tt:"html5"},Ze=["web","webSimple","web3d","tablet","tablet3d","phone"],De=function(tt,Dt){if(Se=tt,Dt){ut(Se,!0);return}var jt=!dt;if(jt){var An=je(Se);!isNaN(An)&&An<4.4&&(jt=!1)}var kt,pn;window.location.protocol.substr(0,4)==="http"?kt=window.location.protocol:kt="http:";var Pt=Se.indexOf("//");Pt>0?pn=Se:Pt===0?pn=kt+Se:pn="https://www.geogebra.org/apps/5.2.814.0/";for(var En in Ze)if(Se.slice(Ze[En].length*-1)===Ze[En]||Se.slice((Ze[En].length+1)*-1)===Ze[En]+"/"){ut(pn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&jt&&!x.is3D&&!x.AV&&!x.SV&&!x.CV&&!x.EV2&&!x.CP&&!x.PC&&!x.DA&&!x.FI&&!x.PV&&!He(ae.showToolBar)&&!He(ae.showMenuBar)&&!He(ae.showAlgebraInput)&&!He(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?pn+="webSimple/":pn+="web3d/",ut(pn,!1)},ut=function(tt,Dt){if(tt.requirejs){Oe=tt;return}tt.slice(-1)!=="/"&&(tt+="/"),Oe=tt,Dt===null&&(Dt=tt.indexOf("http")===-1),ve=Dt,Te="web.nocache.js",we=!1;var jt=Oe.split("/");jt.length>1&&(!Dt&&jt[jt.length-2]==="webSimple"?(Te="webSimple.nocache.js",we=!0):Ze.indexOf(jt[jt.length-2])>=0&&(Te=jt[jt.length-2]+".nocache.js")),jt=tt.split("/"),Se=jt[jt.length-3],Se.substr(0,4)==="test"?Se=Se.substr(4,1)+"."+Se.substr(5,1):(Se.substr(0,3)==="war"||Se.substr(0,4)==="beta")&&(Se="5.0");var An=parseFloat(Se);An!==NaN&&An<5&&tt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+An+" is deprecated. Using version latest instead."),De("5.0",Dt))},Zt=function(tt,Dt){window.console&&window.console.log&&(!Dt||typeof Dt.showLogging=="undefined"||Dt.showLogging&&Dt.showLogging!=="false")&&console.log(tt)};ae.material_id!==void 0?ct(Kt):Kt();function Kt(){var tt=Mt;Ie!==null?tt=Ie:parseFloat(tt)<5&&(tt="5.0"),De(tt,!1),Ue!==null&&ut(Ue,ve),ze=!0}return qn},GGBAppletUtils=function(){"use strict";function qn(){return window.GGBT_wsf_edit!==void 0}function Mt(ze,Ie){Ie!=1?(ze.style.transformOrigin="0% 0% 0px",ze.style.webkitTransformOrigin="0% 0% 0px",ze.style.transform="scale("+Ie+","+Ie+")",ze.style.webkitTransform="scale("+Ie+","+Ie+")",ze.style.maxWidth="initial",ze.querySelector(".ggb_preview")!==null&&(ze.querySelector(".ggb_preview").style.maxWidth="initial"),ze.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ze.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ze.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ze.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ze.style.transform="none",ze.style.webkitTransform="none")}function ae(ze,Ie,Ue,he,xe,oe){var Oe=null;if(oe!=null&&oe!="")for(var ve=ze.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+oe+" ")>-1){Oe=ve;break}else ve=ve.parentNode;var Me=0,Se=0,Te=0,we=0,Ce=0,Ee=0,ke=0;if(Oe)Me=Oe.offsetWidth,Se=Math.max(he?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Me=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=Me):(Me=window.innerWidth,Se=window.innerHeight,Te=window.innerWidth),ze){var Ke=ze.getBoundingClientRect();Ke.left>0&&Ke.left<=Me&&(xe===void 0||!xe)&&(document.dir==="rtl"?(Ce=Me-Ke.width-Ke.left,Ee=Te<=480?10:30):(Ee=Ke.left,Ce=Te<=480?10:30),we=Ee+Ce)}if(ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Qe=ze.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we=40,ke=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(we=0,ke=40)}}return ze&&((Ue===void 0||!Ue)&&Ie>0&&Ie+we<Me?Me=Ie:Me-=we,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ue===void 0||!Ue)&&(Se-=ke)),{width:Me,height:Se}}function x(ze,Ie,Ue,he,xe){if(ze.isScreenshoGenerator)return 1;var oe=he!==void 0&&he,Oe=ze.noScaleMargin!=null&&ze.noScaleMargin,ve=function(Qe){return Qe&&Qe!=="false"},Me=ve(ze.autoHeight),Se=ae(Ie,ze.width,Ue,Me,oe&&window.GGBT_wsf_view||Oe,xe),Te=parseInt(Se.width),we=ze.width,Ce=ze.height;if(we===void 0){var Ee=Ie.querySelector(".appletParameters");Ee&&(we=Ee.offsetWidth,Ce=Ee.offsetHeight)}var ke=Te/we,Ke=oe?1:Se.height/Ce;return Ue!==void 0&&!Ue&&(ke=Math.min(1,ke),Ke=Math.min(1,Ke)),Math.min(ke,Ke)}function dt(ze,Ie,Ue){var he=1,xe,oe=!1;if(ze.hasOwnProperty("allowUpscale")&&(oe=ze.allowUpscale),ze.hasOwnProperty("scale")&&(he=parseFloat(ze.scale),(isNaN(he)||he===null||he===0)&&(he=1),he>1&&(oe=!0)),Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(oe=!0),!(ze.hasOwnProperty("disableAutoScale")&&ze.disableAutoScale))xe=x(ze,Ie,oe,Ue,ze.scaleContainerClass);else return he;return oe&&(!ze.hasOwnProperty("scale")||he===1)?xe:Math.min(he,xe)}function Le(ze){var Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),he=ze.getBoundingClientRect(),xe=(Ie-he.width)/2,oe=(Ue-he.height)/2;oe<0&&(oe=0),ze.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe<40?ze.style.left="40px":ze.style.left=xe+"px",ze.style.top=oe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(oe<40?ze.style.top="40px":ze.style.top=oe+"px",ze.style.left=xe+"px")}function qe(ze,Ie){var Ue=ze.querySelector(".appletParameters");if(Ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ie.id!==Ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ze)}if(Ue.parentElement&&/fullscreen/.test(Ue.parentElement.className))return;var he=dt(Ie,ze);qn()&&Ue.setAttribute("data-param-scale",he);for(var xe=null,oe=0;oe<ze.childNodes.length;oe++)if(ze.childNodes[oe].className!==void 0&&ze.childNodes[oe].className.match(/^applet_scaler/)){xe=ze.childNodes[oe];break}if(xe!==null&&xe.querySelector(".noscale")!==null)return;var Oe=Ie.id!==void 0?Ie.id:"ggbApplet",ve=window[Oe];(ve==null||!ve.recalculateEnvironments)&&xe!==null&&!xe.className.match(/fullscreen/)&&(xe.parentNode.style.transform="",!isNaN(he)&&he!==1?(xe.parentNode.style.width=Ie.width*he+"px",xe.parentNode.style.height=Ie.height*he+"px",Mt(xe,he)):(Mt(xe,1),xe.parentNode.style.width=Ie.width+"px",xe.parentNode.style.height=Ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Le(ze),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ue).parents(".content-added-content"))}}return{responsiveResize:qe,isFlexibleWorksheetEditor:qn,positionCenter:Le,getScale:dt,scaleElement:Mt}}();__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 qn=n.location.search;return qn.indexOf(J)!=-1||qn.indexOf(K)!=-1}function q(qn,Mt){}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(qn){var Mt=s[L].bindings;s[L].bindings=function(){for(var ae=Mt?Mt():{},x=qn[webModule.__softPermutationId],dt=O;dt<x.length;dt++){var Le=x[dt];ae[Le[O]]=Le[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var qn=o.createElement(Q);if(qn.id=L,qn.style.cssText=R+S,qn.tabIndex=-1,o.body.appendChild(qn),t=qn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Mt=document.compatMode==U?V:W;t.write(Mt+X),t.close()}}}function w(qn){function Mt(x){function dt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Le=dt();if(Le){x();return}function qe(){if(!Le){if(!dt())return;Le=!0,x(),o.removeEventListener&&o.removeEventListener(Z,qe,!1),ze&&clearInterval(ze)}}o.addEventListener&&o.addEventListener(Z,qe,!1);var ze=setInterval(function(){qe()},$)}function ae(x){var dt=u(),Le=dt.body,qe=dt.createElement(_);qe.language=ab,qe.crossOrigin=W,qe.src=x,webModule.__errFn&&(qe.onerror=function(){webModule.__errFn(L,new Error(bb+x))}),Le.appendChild(qe)}Mt(function(){ae(qn)})}webModule.__startLoadingFragment=function(qn){return C(qn)},webModule.__installRunAsyncCode=function(qn){var Mt=u(),ae=Mt.body,x=Mt.createElement(_);x.language=ab,x.text=qn,ae.appendChild(x),ae.removeChild(x)};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(qn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(qn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(qn){var Mt=c[qn];return Mt==null?null:Mt},r=d,webModule.__errFn=e}function B(){function qn(ze){var Ie=ze.lastIndexOf(rb);Ie==-1&&(Ie=ze.length);var Ue=ze.indexOf(sb);Ue==-1&&(Ue=ze.length);var he=ze.lastIndexOf(tb,Math.min(Ue,Ie));return he>=O?ze.substring(O,he+P):W}function Mt(ze){if(!ze.match(/^\w+:\/\//)){var Ie=o.createElement(ub);Ie.src=ze+vb,ze=qn(Ie.src)}return ze}function ae(){var ze=__gwt_getMetaProperty(wb);return ze!=null?ze:W}function x(){for(var ze=o.getElementsByTagName(_),Ie=O;Ie<ze.length;++Ie)if(ze[Ie].src.indexOf(xb)!=-1)return qn(ze[Ie].src);return W}function dt(){var ze=o.getElementsByTagName(yb);return ze.length>O?ze[ze.length-P].href:W}function Le(){var ze=o.location;return ze.href==ze.protocol+zb+ze.host+ze.pathname+ze.search+ze.hash}var qe=ae();return qe==W&&(qe=x()),qe==W&&(qe=dt()),qe==W&&Le()&&(qe=qn(o.location.href)),qe=Mt(qe),qe}function C(qn){return qn.match(/^\//)||qn.match(/^[a-zA-Z]+:\/\//)?qn:webModule.__moduleBase+qn}function D(){var qn=[],Mt=O,ae=[],x=[];function dt(ze){var Ie=x[ze](),Ue=ae[ze];if(Ie in Ue)return Ie;var he=[];for(var xe in Ue)he[Ue[xe]]=xe;throw r&&r(ze,he,Ie),null}if(__gwt_isKnownPropertyValue=function(ze,Ie){return Ie in ae[ze]},webModule.__getPropMap=function(){var ze={};for(var Ie in ae)ae.hasOwnProperty(Ie)&&(ze[Ie]=dt(Ie));return ze},webModule.__computePropValue=dt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Le;try{Le=Cb;var qe=Le.indexOf(Db);qe!=-1&&(Mt=parseInt(Le.substring(qe+P),$),Le=Le.substring(O,qe))}catch(ze){}return webModule.__softPermutationId=Mt,C(Le+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/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})()},32546:function(qn,Mt,ae){"use strict";ae.d(Mt,{Ax:function(){return qe},Ds:function(){return ze},KI:function(){return Ue},SI:function(){return Le},f1:function(){return dt}});var x=ae(42684);function dt(he){let xe=!0;if(he.length>0){for(let oe=0;oe<he.length;oe++)if(he[oe].compile_success==0||!he[oe].compile_success){xe=!1;break}}else xe=!1;return xe}function Le(he,xe=""){let oe=[];for(let Oe=0;Oe<he.length;Oe++){let ve=he[Oe],Me=xe?`${xe}/${ve.name}`:`${ve.name}`;oe.push({title:ve.name,type:ve.type,isLeaf:ve.type!=="tree",key:Me})}return oe}function qe(he,xe,oe){for(let Oe=0;Oe<he.length;Oe++){let ve=he[Oe];if(ve.key===xe){ve.children=oe;break}ve.children&&qe(ve.children,xe,oe)}return he}function ze(he,xe,oe){let Oe;return function(){let ve=this,Me=arguments,Se=function(){Oe=null,oe||he.apply(ve,Me)},Te=oe&&!Oe;clearTimeout(Oe),Oe=setTimeout(Se,xe),Te&&he.apply(ve,Me)}}const Ie=!0,Ue=x.Z.API_SERVER},54772:function(qn,Mt,ae){"use strict";ae.d(Mt,{ij:function(){return ke},_s:function(){return Ee},Uf:function(){return Ce},ZP:function(){return Qe}});var x=ae(59301),dt={flex_box_center:"flex_box_center___swvFl",flex_space_between:"flex_space_between___AqPFV",flex_box_vertical_center:"flex_box_vertical_center___XWInJ",flex_box_center_end:"flex_box_center_end___GB61t",flex_box_column:"flex_box_column___dJnz1",analysis:"analysis___xyV_c",title:"title___DQ3VK",itemWrap:"itemWrap___vFE5r",item:"item___NjeOt",list:"list___BbMrm",wrap:"wrap___UQTTb",img:"img___tNvUo",tips:"tips___Eu4wH",footer:"footer___ZbR9W",noData:"noData___mLlw0"},Le=ae(92310),qe=ae.n(Le),ze=ae(42441),Ie=ae(25399),Ue=ae(458),he=ae(29787),xe=ae(61648),oe=ae(42684),Oe=Object.defineProperty,ve=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Te=(je,Je,Ve)=>Je in je?Oe(je,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):je[Je]=Ve,we=(je,Je)=>{for(var Ve in Je||(Je={}))Me.call(Je,Ve)&&Te(je,Ve,Je[Ve]);if(ve)for(var Ve of ve(Je))Se.call(Je,Ve)&&Te(je,Ve,Je[Ve]);return je};const Ce=(je={})=>{var Je,Ve,ct,ot;let pt=(Je=je==null?void 0:je.emotion)==null?void 0:Je.map(_e=>we({value:_e==null?void 0:_e.rate},_e)),Ct=(Ve=je==null?void 0:je.focus)==null?void 0:Ve.map(_e=>we({value:_e==null?void 0:_e.rate},_e)),He=(ct=je==null?void 0:je.action)==null?void 0:ct.map(_e=>we({value:_e==null?void 0:_e.rate},_e)),ht=(ot=je==null?void 0:je.intention)==null?void 0:ot.map(_e=>we({value:_e==null?void 0:_e.rate},_e));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:pt||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:Ct||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:He||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:ht||[]}]},Ee=({className:je,dataSource:Je=[],col:Ve=4,right:ct,bottom:ot=23,precision:pt=0,wrapWidth:Ct=1200})=>{const He=(_e="",Re,Ot="--")=>_e?(_e==null?void 0:_e.length)>Re?(_e==null?void 0:_e.slice(0,Re-1))+"...":_e:Ot,ht=Math.floor((Ct-(Ve-1)*ct)/Ve);return x.createElement("div",{className:qe()(dt.list,je)},!!(Je!=null&&Je.length)&&(Je==null?void 0:Je.map((_e,Re)=>{const{cover_pic:Ot,created_at:it,emotion:at,action:Et,intention:Ze,focus:De}=_e;return x.createElement("div",{key:Re,className:dt.wrap,style:{width:ht,marginRight:(1+Re)%Ve===0?0:ct+pt,marginBottom:ot}},x.createElement("div",{className:dt.img},x.createElement("img",{src:`${oe.Z.API_SERVER}${Ot}`}),x.createElement("div",{className:dt.tips},x.createElement("div",null,x.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),x.createElement("span",null,it))),x.createElement("div",{className:dt.footer},x.createElement("ul",null,x.createElement("li",null,x.createElement("i",{className:"iconfont icon-biaoqing"}),x.createElement("span",null,"\u8868\u60C5\uFF1A",x.createElement(Ie.Z,{title:at},x.createElement("span",{className:"c-grey-333"},He(at,4))))),x.createElement("li",null,x.createElement("i",{className:"iconfont icon-hangwei"}),x.createElement("span",null,"\u884C\u4E3A\uFF1A",x.createElement(Ie.Z,{title:Et},x.createElement("span",{className:"c-grey-333"},He(Et,4)))))),x.createElement("ul",null,x.createElement("li",null,x.createElement("i",{className:"iconfont icon-yitu"}),x.createElement("span",null,"\u610F\u56FE\uFF1A",x.createElement(Ie.Z,{title:Ze},x.createElement("span",{className:"c-grey-333"},He(Ze,4))))),x.createElement("li",null,x.createElement("i",{className:"iconfont icon-zhuangtai"}),x.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",x.createElement(Ie.Z,{title:De},x.createElement("span",{className:"c-grey-333"},He(De,3))))))))})))},ke=({className:je,style:Je,title:Ve,hideBar:ct=!1,children:ot,customText:pt="",noDataText:Ct="",emptyData:He=[],loading:ht,actionAnalysis:_e})=>{var Re,Ot;const it=((Re=He==null?void 0:He[0])==null?void 0:Re.every(Et=>{var Ze;return!((Ze=Et==null?void 0:Et.data)!=null&&Ze.length)}))&&!((Ot=He==null?void 0:He[1])!=null&&Ot.length)||!_e,at=_e?Ct:pt;return x.createElement(Ue.Z,{loading:ht,active:!0},it&&x.createElement("div",{className:qe()(dt.noData,je),style:Je},!!Ve&&x.createElement("div",{className:dt.title},!ct&&x.createElement("b",null),x.createElement("span",null,Ve)),x.createElement("div",{className:dt.itemWrap},x.createElement(xe.Z,{customText:at}))),!it&&ot)};var Qe=({className:je,style:Je,data:Ve=[],title:ct,hideBar:ot=!1,loading:pt=!1})=>x.createElement("div",{className:qe()(dt.analysis,je),style:Je},!!ct&&x.createElement("div",{className:dt.title},!ot&&x.createElement("b",null),x.createElement("span",null,ct)),x.createElement(he.Z,{spinning:pt},x.createElement("div",{className:dt.itemWrap},Ve==null?void 0:Ve.map((Ct,He)=>x.createElement("div",{className:dt.item,key:He},x.createElement(ze.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:Ct==null?void 0:Ct.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(ht){for(let _e in Ct==null?void 0:Ct.data)if(ht==(Ct==null?void 0:Ct.data[_e].name))return ht+" "+(Ct==null?void 0:Ct.data[_e].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:Ct==null?void 0:Ct.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:Ct==null?void 0:Ct.data}]},style:{height:145}}))))))},98400:function(qn,Mt,ae){"use strict";var x=ae(86204),dt=ae.n(x),Le=Object.defineProperty,qe=(he,xe,oe)=>xe in he?Le(he,xe,{enumerable:!0,configurable:!0,writable:!0,value:oe}):he[xe]=oe,ze=(he,xe,oe)=>qe(he,typeof xe!="symbol"?xe+"":xe,oe),Ie=(he,xe,oe)=>new Promise((Oe,ve)=>{var Me=we=>{try{Te(oe.next(we))}catch(Ce){ve(Ce)}},Se=we=>{try{Te(oe.throw(we))}catch(Ce){ve(Ce)}},Te=we=>we.done?Oe(we.value):Promise.resolve(we.value).then(Me,Se);Te((oe=oe.apply(he,xe)).next())});class Ue extends x.EventEmitter{constructor(xe,oe){super(),ze(this,"url"),ze(this,"body"),ze(this,"fullContent",""),ze(this,"controller",null),ze(this,"buffer",""),this.url=xe,this.body=oe}startStream(){return Ie(this,null,function*(){this.controller=new AbortController;const{signal:xe}=this.controller;try{const oe=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:xe});if(!oe.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${oe.status}`);const Oe=oe.headers.get("content-type");if(!Oe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Oe.includes("application/json")){const Se=yield oe.json();this.emit("error",Se);return}if(!Oe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ve=oe.body.getReader(),Me=new TextDecoder("utf-8");for(;;){const{done:Se,value:Te}=yield ve.read();if(Se)break;const we=Me.decode(Te,{stream:!0});this.buffer+=we;const Ce=this.buffer.split(`
|
|
|
`);this.buffer=Ce.pop()||"";for(const Ee of Ce)if(Ee.startsWith("data:")){const ke=Ee.slice(5).trim();if(ke==="[DONE]")break;try{const Ke=JSON.parse(ke);Ke.data&&this.handleData(Ke.data)}catch(Ke){this.buffer=Ee+`
|
|
|
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Ke)}}}this.emit("done",this.fullContent)}catch(oe){oe.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",oe.message)}})}handleData(xe){xe.content&&(this.fullContent+=xe.content,this.emit("data",{chunk:xe,full:this.fullContent}))}cancelRequest(){var xe;(xe=this.controller)==null||xe.abort()}}Mt.Z=Ue},32250:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Te}});var x=ae(59301),dt={flex_box_center:"flex_box_center___A3pzf",flex_space_between:"flex_space_between___JBoa5",flex_box_vertical_center:"flex_box_vertical_center___MJuIO",flex_box_center_end:"flex_box_center_end___OcjUA",flex_box_column:"flex_box_column___zSH4A",list:"list___KhJas",middle:"middle___IjlYi",row:"row___GGtIx",title:"title___o_xqf",size:"size___OVRoL",download:"download___ZLcIH",preview:"preview___gi0kI",annotation:"annotation___KVSwj"},Le=ae(92310),qe=ae.n(Le),ze=ae(71169),Ie=ae(18997),Ue=ae(85333),he=ae(42684),xe=ae(58661),oe=ae(36466),Oe=ae(44225),ve=ae(6767),Me=(we,Ce,Ee)=>new Promise((ke,Ke)=>{var Qe=Ve=>{try{Je(Ee.next(Ve))}catch(ct){Ke(ct)}},je=Ve=>{try{Je(Ee.throw(Ve))}catch(ct){Ke(ct)}},Je=Ve=>Ve.done?ke(Ve.value):Promise.resolve(Ve.value).then(Qe,je);Je((Ee=Ee.apply(we,Ce)).next())});const Se=({className:we,style:Ce,dataSource:Ee=[],authority:ke=!1,callback:Ke,showDimensions:Qe=!0,classroomList:je})=>{var Je;const[Ve,ct]=(0,x.useState)({content:"",type:""}),[ot,pt]=(0,x.useState)({}),[Ct,He]=(0,x.useState)(!1),[ht,_e]=(0,x.useState)({title:"",visible:!1,src:"",snapshotData:{}}),Re=(0,x.useRef)(),Ot=Ze=>Me(void 0,null,function*(){if(pt(Ze),Ze.file_type==="txt"){const De=yield(0,xe.ZP)(Ze.url,{method:"get",headers:{"Content-Type":"application/xml"}});Re.current=De}ct({type:Ze.file_type,content:he.Z.API_SERVER+Ze.url})}),it=Ze=>{var De;_e({visible:!0,src:he.Z.API_SERVER+Ze.url,id:Ze.id,title:Ze.title,snapshotData:(De=Ze==null?void 0:Ze.subitem)==null?void 0:De.settings})},at=Ze=>Me(void 0,null,function*(){var De;ct({type:Ze.file_type,content:he.Z.API_SERVER+((De=Ze==null?void 0:Ze.subitem)==null?void 0:De.url)})}),Et=()=>{Ke(),_e({visible:!1})};return Ee!=null&&Ee.length?x.createElement(x.Fragment,null,x.createElement("div",{className:qe()(dt.list,we),style:Ce},Ee.map((Ze,De)=>{var ut,Zt,Kt;return x.createElement("div",{key:De,className:dt.row},x.createElement("div",{className:dt.title,onClick:()=>Ot(Ze)},x.createElement("i",{className:"iconfont icon-fujian1"}),x.createElement("span",{title:Ze.title},Ze.title)),x.createElement("div",{className:dt.size},Ze.filesize),x.createElement("div",{className:dt.download,onClick:()=>{var tt,Dt;if((0,oe.Rm)()&&!((tt=je.AssistantObject.normal)!=null&&tt.can_download)){ve.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,Ue.Nd)("",`${he.Z.API_SERVER}${(Dt=Ze.url)==null?void 0:Dt.replace("disposition=inline","")}`)}},x.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(Ze==null?void 0:Ze.file_type)&&x.createElement("div",{className:dt.preview,onClick:()=>Ot(Ze)},x.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(Ze==null?void 0:Ze.file_type)&&Qe&&(ke?x.createElement("div",{className:dt.annotation,onClick:()=>it(Ze)},x.createElement("i",{className:"iconfont icon-pizhu"}),(ut=Ze.subitem)!=null&&ut.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):((Zt=Ze.subitem)==null?void 0:Zt.id)&&x.createElement("div",{className:dt.annotation,onClick:()=>at(Ze)},x.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(Ze==null?void 0:Ze.file_type)&&((Kt=Ze.subitem)==null?void 0:Kt.id)&&x.createElement("div",{className:dt.download,style:{marginLeft:20},onClick:()=>{var tt,Dt;(0,Ue.Nd)("",`${he.Z.API_SERVER}${(Dt=(tt=Ze==null?void 0:Ze.subitem)==null?void 0:tt.url)==null?void 0:Dt.replace("disposition=inline","")}`)}},x.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(Ze==null?void 0:Ze.file_type)&&(0,oe.eB)()&&["xlsx","docx","pptx"].includes(Ze==null?void 0:Ze.file_sub)&&Qe&&x.createElement("div",{className:dt.annotation,onClick:()=>{He(!0),Ot(Ze)}},x.createElement("i",{className:"iconfont icon-pizhu"}),Ze.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),Ze.is_edit&&(0,oe.dE)()&&Qe&&x.createElement("div",{className:dt.annotation,onClick:()=>{Ot(Ze)}},x.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),x.createElement(ze.Z,{close:!0,data:Ve==null?void 0:Ve.content,type:Ve==null?void 0:Ve.type,hasMask:!0,disabledDownload:(0,oe.Rm)()&&!((Je=je.AssistantObject.normal)!=null&&Je.can_download),editOffice:Ct?"edit":"view",monacoEditor:{value:Re.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:ke&&Qe&&Ve.type==="image"?()=>it(ot):null,onClose:()=>{Ke(),He(!1),ct({content:"",type:""})}}),x.createElement(Ie.Z,{onOk:Et,onClose:()=>_e({visible:!1}),data:ht,showFullTools:!0})):null};var Te=(0,Oe.connect)(({classroomList:we})=>({classroomList:we}))(Se)},18997:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Oe}});var x=ae(59301),dt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Le=ae(92310),qe=ae.n(Le),ze=ae(29787),Ie=ae(2859),Ue=ae(58661),he=ae(85333),xe=(ve,Me,Se)=>new Promise((Te,we)=>{var Ce=Ke=>{try{ke(Se.next(Ke))}catch(Qe){we(Qe)}},Ee=Ke=>{try{ke(Se.throw(Ke))}catch(Qe){we(Qe)}},ke=Ke=>Ke.done?Te(Ke.value):Promise.resolve(Ke.value).then(Ce,Ee);ke((Se=Se.apply(ve,Me)).next())}),Oe=({data:ve,className:Me,fullWidth:Se,style:Te={},onClose:we,onOk:Ce,showFullTools:Ee,noAssociationId:ke})=>{const Ke=(0,x.useRef)(null),Qe=(0,x.useRef)(null),je=(0,x.useRef)(null),Je=(0,x.useRef)(null),[Ve,ct]=(0,x.useState)(!1),[ot,pt]=(0,x.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,x.useEffect)(()=>(je.current||(je.current=document.createElement("style"),document.head.appendChild(je.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),je.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&Ct()):(document.body.removeAttribute("data-custom"),je.current&&(document.head.removeChild(je.current),je.current=null)),()=>{document.body.removeAttribute("data-custom"),je.current&&(document.head.removeChild(je.current),je.current=null)}),[ve==null?void 0:ve.visible]);const Ct=()=>xe(void 0,null,function*(){ct(!0),pt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Re=yield(0,he.ZJ)(ve==null?void 0:ve.src);Ke.current.src="",Ke.current.src=Re,Ke.current.onload=function(){_e()},ct(!1),pt("")}),He=Re=>xe(void 0,null,function*(){ct(!0),pt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ot=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Re.dataUrl}});Ot!=null&&Ot.id&&!ke?(yield(0,Ue.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ot==null?void 0:Ot.id,settings:JSON.stringify(Re.state)}})).status===0&&Ce():Ot!=null&&Ot.id&&Ce(Ot),ct(!1),pt("")}),ht=()=>{const Re=document.querySelector('a[href="https://markerjs.com/"]');Re&&Re.parentNode&&(Re.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(it=>{const at=document.querySelector(it.name);at&&at.setAttribute("title",it.title)})},_e=()=>{Qe.current=new Ie.hP(Ke.current),Qe.current.targetRoot=Je.current,Qe.current.addEventListener("render",He),Qe.current.addEventListener("beforeclose",we),Ee&&(Qe.current.availableMarkerTypes=Qe.current.ALL_MARKER_TYPES,Qe.current.uiStyleSettings.redoButtonVisible=!0,Qe.current.uiStyleSettings.notesButtonVisible=!0,Qe.current.uiStyleSettings.zoomButtonVisible=!0,Qe.current.uiStyleSettings.zoomOutButtonVisible=!0,Qe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Qe.current.uiStyleSettings,Qe.current.show(),ve!=null&&ve.snapshotData&&Qe.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ht()},300)};return x.createElement(x.Fragment,null,(ve==null?void 0:ve.visible)&&x.createElement(ze.Z,{spinning:Ve,tip:ot,style:{position:"absolute",width:"100vw"}},x.createElement("div",{ref:Je,className:qe()(dt.imageDimensions,Me,Se?dt.fullWidth:""),style:Te},x.createElement("img",{className:dt.img,ref:Ke}))))}},80802:function(qn,Mt,ae){"use strict";var x=ae(59301),dt=ae(77019),Le=ae(5269),qe=ae(31691),ze=ae(7939),Ie=ae(94200),Ue=ae(2375),he=ae(48136),xe=ae(59301);const oe=(0,x.forwardRef)(({callback:Oe,showSaveButton:ve,value:Me=""},Se)=>{const Te=(0,x.useRef)(),we=[{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 "}]}]}],Ce=[{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}`}]}]}],Ee=Qe=>{Te.current.setValue(Te.current.getValue()+" "+Qe.value+" ")},ke=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:xe.createElement(dt.Z,{className:Ue.Z.lists,gutter:[10,10]},we.map((Qe,je)=>xe.createElement(Le.Z,{flex:"110px",className:Ue.Z.item},xe.createElement("div",null,xe.createElement(Ie.Z,{value:`$$${Qe.value}$$`}),Qe.name),xe.createElement("div",{className:Ue.Z.children},Qe.children.map((Je,Ve)=>xe.createElement("div",{key:Ve},xe.createElement("h1",null,Je.name),xe.createElement(dt.Z,{gutter:[10,10]},Je.data.map((ct,ot)=>xe.createElement(Le.Z,{key:ot,onClick:()=>Ee(ct),className:Ue.Z.diamond},xe.createElement(Ie.Z,{value:"`$$"+ct.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:xe.createElement(dt.Z,{className:Ue.Z.lists,gutter:[10,10]},Ce.map((Qe,je)=>xe.createElement(Le.Z,{flex:"110px",className:Ue.Z.item},xe.createElement("div",null,xe.createElement(Ie.Z,{value:"`$$"+Qe.value+"$$`"}),Qe.name),xe.createElement("div",{className:Ue.Z.children},Qe.children.map((Je,Ve)=>xe.createElement("div",{key:Ve},Je.name&&xe.createElement("h1",null,Je.name),xe.createElement(dt.Z,{gutter:[10,10]},Je.data.map((ct,ot)=>xe.createElement(Le.Z,{key:ot,onClick:()=>Ee(ct),className:Ue.Z.diamond},xe.createElement(Ie.Z,{value:"`$$"+ct.value+"$$`"}))))))))))}],Ke=()=>{var Qe=document.createElement("div");Qe.innerHTML=Te.current.getValue();var je=Qe.innerText;return Oe&&Oe(je),je};return(0,x.useImperativeHandle)(Se,()=>({getData:Ke})),xe.createElement("div",{className:Ue.Z.mathWrap},xe.createElement(qe.default,{defaultActiveKey:"1",items:ke}),xe.createElement("math-field",{locale:"zh_cn",className:Ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Te,style:{width:800,marginTop:30,fontSize:18}},Me||""),ve&&xe.createElement("div",{className:Ue.Z.button},xe.createElement(ze.ZP,{size:"large",onClick:Ke,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Mt.Z=oe},61648:function(qn,Mt,ae){"use strict";var x=ae(59301),dt=ae(4977),Le=ae(7939),qe=Object.defineProperty,ze=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,oe=(Se,Te,we)=>Te in Se?qe(Se,Te,{enumerable:!0,configurable:!0,writable:!0,value:we}):Se[Te]=we,Oe=(Se,Te)=>{for(var we in Te||(Te={}))he.call(Te,we)&&oe(Se,we,Te[we]);if(Ue)for(var we of Ue(Te))xe.call(Te,we)&&oe(Se,we,Te[we]);return Se},ve=(Se,Te)=>ze(Se,Ie(Te));const Me=({img:Se,buttonProps:Te={},styles:we={},customText:Ce,ButtonText:Ee,ButtonClick:ke,Buttonclass:Ke,ButtonTwo:Qe,imgStyles:je,loading:Je=!1,className:Ve=""})=>x.createElement("section",{className:`tc animated fadeIn ${Ve}`,style:Oe({color:"#999",margin:"100px auto",visibility:Je?"hidden":"visible"},we)},x.createElement("img",{src:Se||dt,style:ve(Oe({},je),{pointerEvents:"none",userSelect:"none"})}),x.createElement("p",{className:"mt20 font14"},Ce||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ee&&x.createElement(Le.ZP,Oe({className:Ke,onClick:ke},Te),Ee),Qe&&Qe);Mt.Z=Me},71169:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ke}});var x=ae(59301),dt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},Le=ae(7939),qe=ae(70557),ze=ae(84897),Ie=ae(25399),Ue=ae(85333),he=ae(51190),xe=ae(61648),oe=ae(42684),Oe=ae(71362),ve=ae(59301),Me=Object.defineProperty,Se=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ce=(Qe,je,Je)=>je in Qe?Me(Qe,je,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Qe[je]=Je,Ee=(Qe,je)=>{for(var Je in je||(je={}))Te.call(je,Je)&&Ce(Qe,Je,je[Je]);if(Se)for(var Je of Se(je))we.call(je,Je)&&Ce(Qe,Je,je[Je]);return Qe},ke=(Qe,je,Je)=>new Promise((Ve,ct)=>{var ot=He=>{try{Ct(Je.next(He))}catch(ht){ct(ht)}},pt=He=>{try{Ct(Je.throw(He))}catch(ht){ct(ht)}},Ct=He=>He.done?Ve(He.value):Promise.resolve(He.value).then(ot,pt);Ct((Je=Je.apply(Qe,je)).next())}),Ke=({editOffice:Qe="view",data:je,issaver:Je,onSaver:Ve,theme:ct,type:ot,filename:pt,monacoEditor:Ct,className:He,style:ht,close:_e,onClose:Re,hasMask:Ot,disabledDownload:it,onImgDimensions:at,showNodata:Et,recordInfo:Ze})=>{const[De,ut]=(0,x.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Zt,Kt]=(0,x.useState)(""),[tt,Dt]=(0,x.useState)(),jt=window.ENV==="build"?"/react/build":"",An=location.host.startsWith("localhost")?oe.Z.PROXY_SERVER:oe.Z.API_SERVER,pn=10*(1024*1024),Pt=(0,x.useRef)();je!=null&&je.startsWith("/api")&&ot!=="txt"&&(je=oe.Z.API_SERVER+je);const En=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();pt&&Ct&&(Ct.filename=pt),(0,x.useEffect)(()=>{var se,le;const Be=(le=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:le.split(";");Be==null||Be.map(We=>{let st=We.split("=");st[0]==="_educoder_session"&&Kt(st[1])})},[]),(0,x.useEffect)(()=>{ot==="office"&&(je.indexOf("bigfilescdn.")>-1||je.indexOf("bigfiles1")>-1?Dt({url:je,fileType:En(je),model:je.indexOf("model=edit")?"edit":"view"}):je.indexOf("coze")>-1?Dt({url:je,fileType:"doc",model:"view"}):de())},[ot,je]);function on(se){return ke(this,null,function*(){se.data.type==="pdfdata"&&(Ve(se.data.data),window.removeEventListener("message",on,!1)),console.log("mess---:",se.data)})}const de=()=>ke(void 0,null,function*(){console.log("data:",je);let se=je;je.startsWith("http")||(se=location.origin+se);let le=new URL(se).pathname.split("/").pop();const Be=yield(0,he.gJ)({attachment_id:le});Be.url=An+Be.url,Dt(Be)}),pe=()=>{if(je.startsWith("http")||je.startsWith("blob:")){ie();return}(0,Ue.Sv)(pt||"educoder",je,pt)},ie=()=>{Ze&&(0,Oe.fc)({id:Ze==null?void 0:Ze.id,watch_type:1,course_id:Ze==null?void 0:Ze.course_id}),(0,Ue.Nd)(pt||"educoder",decodeURIComponent(je))};(0,x.useEffect)(()=>(window.addEventListener("message",ee),()=>{window.removeEventListener("message",ee)}),[]);const ee=se=>{var le;((le=se==null?void 0:se.data)==null?void 0:le.type)==="closePop"&&Re()};return ve.createElement("div",{style:Ee({},ht||{}),className:`${Ot&&dt.bgBlack} ${ot?dt.wrp:"hide"}`},!!ot&&_e&&ve.createElement("div",{id:"closePop",className:dt.close,ref:Pt},!!at&&ve.createElement(Ie.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Pt.current},ve.createElement("span",{onClick:()=>{Re(),at()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!it&&window.parent===window&&ve.createElement(Ie.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Pt.current},ve.createElement("span",{onClick:ie},ve.createElement("i",{className:"icon-quxiaozhiding"}))),Je&&ve.createElement(Ie.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Pt.current},ve.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",on,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},ve.createElement("i",{className:"icon-baocun"}))),ve.createElement(Ie.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Pt.current},ve.createElement("span",{className:"",onClick:()=>{Re()}},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${dt[He]} ${He} ${dt.monaco} ${ot==="txt"?"show":"hide"}`},ot==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(ze.ZP,Ee({},Ct)))),ot==="audio"&&ve.createElement("audio",{controls:!0,src:`${(je==null?void 0:je.indexOf("http://"))>-1||(je==null?void 0:je.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${je}`,autoPlay:!0}),ot==="video"&&ve.createElement(ve.Fragment,null,(je==null?void 0:je.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${je}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${je}`,autoPlay:!0})),ot==="office"&&tt&&ve.createElement("iframe",{src:`${jt}/office.html?key=${tt.key}&url=${btoa(tt.url)}&callbackUrl=${An+(tt.callbackUrl||"")}&fileType=${tt.fileType}&title=${tt.title||""}&model=${Qe}&officeServer=${oe.Z.ONLYOFFICE}&disabledDownload=${!!it}`}),ot==="html"&&ve.createElement("iframe",{src:je+"&disposition=inline"}),ot==="pdf"&&ve.createElement("iframe",{id:"pdfiframe",src:`${jt}/js/pdf/index.html?filename=${pt||"educoder.pdf"}&url=${encodeURIComponent(je)}&disabledDownload=${!!it}&model=${Qe}`}),ot==="image"&&ve.createElement("img",{src:`${(je==null?void 0:je.indexOf("http://"))>-1||(je==null?void 0:je.indexOf("https://"))>-1?"":"data:image/png;base64,"}${je}`}),(ot==="other"||ot==="download")&&ve.createElement(ve.Fragment,null,Et?ve.createElement(xe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(Le.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:pe,disabled:it},"\u4E0B\u8F7D")}):ve.createElement(Le.ZP,{type:"primary",size:"middle",onClick:pe,disabled:it},ve.createElement(qe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ot==="flowChart"&&ve.createElement("div",{className:"embed"},ve.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${je||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},94200:function(qn,Mt,ae){"use strict";ae.d(Mt,{z:function(){return Ct},Z:function(){return He}});var x=ae(59301),dt=ae(63954),Le=ae(34813),qe=ae(64018),ze=ae(16471),Ie=ae(42684),Ue=ae(85333),he=ae(15342),xe=ae(44104),oe=ae(7939),Oe=ae(1012),ve=ae(71169),Me=ae(59301),Te=({html:ht})=>{const _e=(0,x.useRef)(null),Re=(0,x.useRef)(null),Ot=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,x.useEffect)(()=>{const it=_e.current.attachShadow({mode:"open"});Re.current=document.createElement("div"),Re.current.className="markdown-body",Re.current.innerHTML=ht,it.appendChild(Re.current);const at=document.createElement("style");return at.textContent=Ot,it.appendChild(at),()=>{it.innerHTML=""}},[]),(0,x.useEffect)(()=>{Re.current&&(Re.current.innerHTML=ht)},[ht]),Me.createElement("div",{ref:_e})};function we(ht){const _e=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],Re=new RegExp(`\\b(${_e.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ot=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return ht.replace(Re,"").replace(Ot,"").trim()}var Ce={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ee=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,je=(ht,_e,Re)=>_e in ht?Ee(ht,_e,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ht[_e]=Re,Je=(ht,_e)=>{for(var Re in _e||(_e={}))Ke.call(_e,Re)&&je(ht,Re,_e[Re]);if(ke)for(var Re of ke(_e))Qe.call(_e,Re)&&je(ht,Re,_e[Re]);return ht};const Ve="@\u2581\u2581@",ct="@\u2581@",ot=/<pre[^>]*>/g;function pt(ht){let _e=document.createElement("div");return _e.innerHTML=ht,_e.childNodes.length===0?"":_e.childNodes[0].nodeValue}const Ct=(ht,_e)=>{ht=ht||"";const Re=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ot=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,it=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,at=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return _e?ht.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Re,(Et,Ze,De,ut,Zt,Kt,tt)=>{const Dt=Ze||ut||Kt,jt=De||Zt||tt||"?";return Ie.Z.API_SERVER+"/api/attachments/"+Dt+jt+"&t="+(0,Ue.Jn)(Dt,Date.now())+(Et.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ht=ht.replace(at,(Et,Ze,De,ut,Zt,Kt,tt)=>{const Dt=Ze||ut||Kt,jt=De||Zt||tt||"?";return Ie.Z.API_SERVER+"/attachments/download/"+Dt+jt+"&t="+(0,Ue.Jn)(Dt,Date.now())+(Et.indexOf(")")>-1?")":"&")}).replace(Re,(Et,Ze,De,ut,Zt,Kt,tt)=>{const Dt=Ze||ut||Kt,jt=De||Zt||tt||"?";return Ie.Z.API_SERVER+"/api/attachments/"+Dt+jt+"&t="+(0,Ue.Jn)(Dt,Date.now())+(Et.indexOf(")")>-1?")":"&")}).replace(Ot,(Et,Ze,De,ut,Zt)=>{const Kt=Ze||ut,tt=De||Zt||"";return'"'+Ie.Z.API_SERVER+"/api/attachments/"+Kt+tt+Kt+tt+"&t="+(0,Ue.Jn)(Kt,Date.now())}).replace(it,(Et,Ze,De,ut,Zt)=>{const Kt=Ze||ut,tt=De||Zt||"";return"("+Ie.Z.API_SERVER+"/files/uploads/"+Kt+tt+Kt+tt+"&t="+(0,Ue.Jn)(Kt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),ht)};var He=({value:ht="",edit:_e=!1,className:Re,showTextOnly:Ot,showLines:it,style:at={},stylesPrev:Et={},highlightKeywords:Ze,showProgramFill:De,isProgramFill:ut,disabledFill:Zt=!1,programFillValue:Kt,openEditor:tt=()=>{},onFillChange:Dt=kt=>{},onFillBlur:jt=()=>{},onFillFocus:An=()=>{}})=>{let kt=we(String(ht||""));const pn=(0,x.useRef)(),Pt=(0,x.useRef)(),[En,on]=(0,x.useState)(""),[de,pe]=(0,x.useState)("office"),[ie,ee]=(0,x.useState)([]),se=(0,x.useRef)("a"+(0,Oe.Z)()),le={},Be=en=>/<style[\s\S]*?>/i.test(en||""),We=(en,zn,Fn)=>{const Rt=document.createElement(en===ct?"input":"textarea");Rt.style.width="100%",Rt.style.height=en===ct?"40px":"151px",Rt.rows=5,Rt.spellcheck=!1,Rt.name="edu-program-fill",Rt.placeholder="\u8BF7\u8F93\u5165",Rt.dataset.id=zn;const sn=Object.keys(le).length;return le[sn]=Rt,`<span class="edu-program-fill-wrap ${en===ct?"":"show"}" style="width:${en===ct?"600px":"100%"}" title=${Fn||""}><span>${Rt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function st(en){return en=en.replace(/!\[.*?\]\(.*?\)/g,""),en=en.replace(/\[.*?\]\(.*?\)/g,""),en=en.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),en=en.replace(/<embed.*?>/g,""),en=en.replace(/<img.*?>/g,""),en=en.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),en=en.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),en=en.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),en=en.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),en}const mt=en=>!Ot&&Be(kt)?en:en.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(zn,Fn){let Rt=Fn.replace(/(\n|\r)/g,"").split("}"),sn=[];return Rt.map(_n=>{_n!=""&&sn.push(`.${se.current} ${_n}`)}),`<style>${sn.join("}")}</style>`}),vt=(0,x.useMemo)(()=>{(0,Le.Iy)();try{const Rt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,sn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_n=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Wn=/\(\/attachments\/download\//g;kt=kt.replace(Wn,"("+Ie.Z.API_SERVER+"/attachments/download/").replace(Rt,"("+Ie.Z.API_SERVER+"/api/attachments/").replace(sn,'"'+Ie.Z.API_SERVER+"/api/attachments/").replace(_n,'"'+Ie.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),pn.current.style.display="none"}catch(Rt){}if(De){let Rt=-1;return kt=kt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(sn,_n,Wn){var Lt;return++Rt,We(sn,Rt,(Lt=Kt==null?void 0:Kt[Rt])==null?void 0:Lt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${mt(kt||"")}</pre>`}let en=mt(kt);en=(0,Le.ZP)(en);const zn=(0,Le.ez)();kt.match(/\[TOC\]/)&&(en=en.replace("<p>[TOC]</p>",(0,Le.Qv)()),(0,Le.Iy)()),en=en.replace(/(__special_katext_id_\d+__)/g,(Rt,sn)=>{const{type:_n,expression:Wn}=zn[sn];return(0,he.renderToString)(pt(Wn)||"",{displayMode:_n==="block",throwOnError:!1,output:"html"})}),en=en.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Le.AL)();const Fn=document.createElement("div");if(Fn.innerHTML=en,Ot)return Fn.innerText;if(Ze){const Rt=Ze.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return xt(Fn,Rt),Fn.innerHTML}return setTimeout(()=>Wt(),500),Fn.innerHTML},[kt,Ze]);(0,x.useEffect)(()=>{lt.current&<.current.querySelectorAll(["input","textarea"]).forEach(zn=>{zn.oninput=St,zn.onblur=_t,zn.onfocus=Qt})},[ie]),(0,x.useEffect)(()=>{var en,zn,Fn,Rt,sn;if(Kt!=null&&Kt.length)try{const _n=lt.current.querySelectorAll(".edu-program-fill-score"),Wn=lt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Lt,Gt]of Wn.entries())Gt.value=((en=Kt==null?void 0:Kt[Lt])==null?void 0:en.value)||"",((zn=Kt==null?void 0:Kt[Lt])==null?void 0:zn.type)==="warning"?Gt.className="program-fill-warning":((Fn=Kt==null?void 0:Kt[Lt])==null?void 0:Fn.type)==="success"?Gt.className="program-fill-success":Gt.className="";for(const[Lt,Gt]of _n.entries())Gt.innerHTML=(Rt=Kt==null?void 0:Kt[Lt])!=null&&Rt.score?`${(sn=Kt==null?void 0:Kt[Lt])==null?void 0:sn.score}\u5206`:"";ee(Kt)}catch(_n){console.log(_n,"error")}},[Kt]);const St=en=>{ie[en.target.dataset.id]=ie[en.target.dataset.id]||{},ie[en.target.dataset.id].value=en.target.value,ee([...ie]),Dt(ie,en.target.dataset.id)},_t=en=>{ie[en.target.dataset.id]=ie[en.target.dataset.id]||{},ie[en.target.dataset.id].value=en.target.value,ee([...ie]),jt(ie,en.target.dataset.id)},Qt=en=>{ie[en.target.dataset.id]=ie[en.target.dataset.id]||{},ie[en.target.dataset.id].value=en.target.value,ee([...ie]),An(ie,en.target.dataset.id)};function xt(en,zn){return en.childNodes.forEach(Fn=>{var Rt;if(Fn.childNodes.length>0)xt(Fn,zn);else if(Fn.nodeName!=="IMG")if(Fn.innerHTML)Fn.innerHTML=(Rt=Fn.innerHTML)==null?void 0:Rt.replace(new RegExp(zn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const sn=document.createElement("span");sn.innerHTML=Fn.textContent.replace(new RegExp(zn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Fn.replaceWith(sn)}})}const lt=(0,x.useRef)();Le.jb.WebkitLineClamp=it,it&&(at=Je(Je({},at),Le.jb));function Vt(en){let zn=en.target;if(zn.tagName.toUpperCase()==="A"){let Fn=zn.getAttribute("href");if(Fn.indexOf("office")>-1)en.preventDefault(),on(Fn),pe("office");else if(Fn.indexOf("application/pdf")>-1)en.preventDefault(),on(Fn),pe("pdf");else if(Fn.indexOf("text/html")>-1)en.preventDefault(),on(Fn),pe("html");else if(Fn.startsWith("#")){en.preventDefault();let Rt=document.getElementById(Fn.replace("#",""));Rt&&Rt.scrollIntoView(!0)}}}const Wt=()=>{var en;const zn=(en=lt.current)==null?void 0:en.querySelectorAll("video");zn==null||zn.forEach(Fn=>{if(Fn.oncontextmenu=()=>!1,Fn.src.indexOf(".m3u8")>-1&&!Fn.canPlayType("application/vnd.apple.mpegurl")){if(ze.ZP.isSupported()){var Rt=new ze.ZP;Rt.loadSource(Fn.src),Rt.attachMedia(Fn)}}})};(0,x.useEffect)(()=>{if(lt.current&&vt&&vt.match(ot)&&window.PR.prettyPrint(),lt.current)return lt.current.addEventListener("click",Vt),()=>{var en;(en=lt.current)==null||en.removeEventListener("click",Vt),(0,Le.AL)(),(0,Le.Iy)()}},[vt,lt.current,Vt]);const gn=en=>{en.target.nodeName==="IMG"&&en.target.className.indexOf("draw-flowchart")>-1?(pn.current.style.zIndex=1,pn.current.style.display="flex",pn.current.style.width=en.target.clientWidth+"px",pn.current.style.height=en.target.clientHeight+"px",pn.current.style.top=en.target.offsetTop+"px",pn.current.style.left=en.target.offsetLeft+"px",en.target.id&&(Pt.current=en.target.id)):pn.current.style.display="none"},an=()=>{pn.current.style.display="none"};return(0,x.useEffect)(()=>{var en;const zn=Fn=>{Fn.preventDefault(),Fn.clipboardData.setData("text",window.getSelection().toString())};return(en=lt.current)==null||en.addEventListener("copy",zn),()=>{var Fn;(Fn=lt.current)==null||Fn.removeEventListener("copy",zn)}},[lt.current]),x.createElement("div",{style:{position:"relative"},onMouseLeave:an},Ot&&x.createElement("div",{ref:lt,className:`${Ce.mdBody} `},vt),!Ot&&!Be(vt)&&x.createElement("div",{ref:lt,style:Je({},at),onMouseOver:gn,className:`${Re||""} ${Zt?"disabled-fill":""} markdown-body ${Ce.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:vt}}),!Ot&&Be(vt)&&x.createElement(Te,{html:vt}),x.createElement("div",{ref:pn,className:`${Ce.button} ${_e?"":Ce.previewFlowChart}`},x.createElement(xe.Z,null,x.createElement(oe.ZP,{onClick:()=>{_e?tt(Pt.current):(on(Pt.current),pe("flowChart"))}},_e?"\u7F16\u8F91":"\u9884\u89C8"))),x.createElement(ve.Z,{close:!0,data:En,type:En!=null&&En.length?de:"",style:Je({},Et),onClose:()=>on("")}))}},28849:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return ht}});var x=ae(59301),dt=ae(44225),Le=ae(62957),qe=ae(28284),ze=ae(6767),Ie=ae(29787),Ue=ae(18287),he=ae(77019),xe=ae(5269),oe=ae(25399),Oe=ae(37568),ve={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},Me=ae(78162),Se=ae(31914),Te=ae(61648),we=ae(22417),Ce=Object.defineProperty,Ee=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Je=(_e,Re,Ot)=>Re in _e?Ce(_e,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):_e[Re]=Ot,Ve=(_e,Re)=>{for(var Ot in Re||(Re={}))Qe.call(Re,Ot)&&Je(_e,Ot,Re[Ot]);if(Ke)for(var Ot of Ke(Re))je.call(Re,Ot)&&Je(_e,Ot,Re[Ot]);return _e},ct=(_e,Re)=>Ee(_e,ke(Re)),ot=(_e,Re)=>{var Ot={};for(var it in _e)Qe.call(_e,it)&&Re.indexOf(it)<0&&(Ot[it]=_e[it]);if(_e!=null&&Ke)for(var it of Ke(_e))Re.indexOf(it)<0&&je.call(_e,it)&&(Ot[it]=_e[it]);return Ot},pt=(_e,Re,Ot)=>new Promise((it,at)=>{var Et=ut=>{try{De(Ot.next(ut))}catch(Zt){at(Zt)}},Ze=ut=>{try{De(Ot.throw(ut))}catch(Zt){at(Zt)}},De=ut=>ut.done?it(ut.value):Promise.resolve(ut.value).then(Et,Ze);De((Ot=Ot.apply(_e,Re)).next())});const Ct=(_e=[])=>_e==null?void 0:_e.map(Re=>ct(Ve({},Re),{title:(Re==null?void 0:Re.value)||"",key:Re==null?void 0:Re.id,isLeaf:!0})),He=_e=>{var Re=_e,{user:Ot,children:it,isShowComponent:at=!0,ModalProps:Et={},onDataSelect:Ze}=Re,De=ot(Re,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[ut,Zt]=Le.default.useModal(),[Kt]=qe.default.useForm(),[tt,Dt]=(0,x.useState)([]),[jt,An]=(0,x.useState)(!1),[kt,pn]=(0,x.useState)(!1),[,Pt,En,on]=(0,Me.U)(Se.qE,{page:1,limit:9999}),[,,de]=(0,Me.U)(Se.V8,{}),[,,pe]=(0,Me.U)(Se.B$,{}),[,,ie]=(0,Me.U)(Se.DH,{}),[,,ee]=(0,Me.U)(Se.bJ,{}),se=()=>{An(!1),Kt.resetFields(),pn(!1)},le=We=>pt(void 0,null,function*(){const{node:st,dragNode:mt,event:vt}=We,St=We.node.pos.split("-"),_t=We.dropPosition-Number(St[St.length-1]);if(_t==0){ze.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(_t==1&&(mt==null?void 0:mt.item_index)==(st==null?void 0:st.item_index)+1){ze.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const Qt=yield ee({id:mt==null?void 0:mt.key,position:_t==-1?1:(mt==null?void 0:mt.item_index)>(st==null?void 0:st.item_index)?(st==null?void 0:st.item_index)+1:st==null?void 0:st.item_index});(Qt==null?void 0:Qt.status)===0&&(ze.ZP.success("\u79FB\u52A8\u6210\u529F"),En({},!0))}),Be=We=>pt(void 0,null,function*(){let st={};kt?st=yield pe(Ve({},We)):st=yield ie(Ve({},We)),(st==null?void 0:st.status)==0&&(ze.ZP.success((st==null?void 0:st.message)||(kt?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),En({},!0),se())});return(0,x.useEffect)(()=>{Et!=null&&Et.open&&En({},!0)},[Et==null?void 0:Et.open]),(0,x.useEffect)(()=>{var We;Dt(Ct((We=on==null?void 0:on.data)==null?void 0:We.list))},[on]),at?x.createElement(x.Fragment,null,Zt,it,x.createElement(Le.default,Ve({},Ve({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},Et)),x.createElement(Ie.Z,{spinning:Pt},(tt==null?void 0:tt.length)>0?x.createElement(x.Fragment,null,x.createElement(Ue.default.DirectoryTree,{height:500,className:ve.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:Ze,treeData:tt,onDrop:le,titleRender:We=>x.createElement(x.Fragment,null,x.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},We==null?void 0:We.title),x.createElement("div",{className:`${ve.EditDom}`},x.createElement(he.Z,{wrap:!1,align:"middle",gutter:16},x.createElement(xe.Z,null,x.createElement(oe.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},x.createElement("i",{className:`iconfont icon-tuodong1 font12 ${ve.currentPrimary}`}))),x.createElement(xe.Z,null,x.createElement(oe.Z,{title:"\u7F16\u8F91"},x.createElement("i",{className:`iconfont icon-bianji11 font12 ${ve.currentPrimary}`,onClick:st=>{st.stopPropagation(),Kt.setFieldsValue(Ve({},We)),An(!0)}}))),x.createElement(xe.Z,null,x.createElement(oe.Z,{title:"\u5220\u9664"},x.createElement("i",{className:`iconfont icon-shanchu14 font12 ${ve.currentDelete}`,onClick:st=>{st.stopPropagation(),ut.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>pt(void 0,null,function*(){const mt=yield de({id:We==null?void 0:We.key});(mt==null?void 0:mt.status)==0&&(ze.ZP.success((mt==null?void 0:mt.message)||"\u5220\u9664\u6210\u529F"),En({},!0))})})}}))))))}),x.createElement(we.op,{className:"ml20 mt20",icon:x.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{pn(!0),An(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):x.createElement(Te.Z,{styles:{margin:"30px auto"},customText:x.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",x.createElement("a",{onClick:()=>{pn(!0),An(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),x.createElement(Le.default,{title:kt?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:jt,okText:kt?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{se()},onOk:()=>{Kt.submit()}},x.createElement(qe.default,{form:Kt,onFinish:Be},kt&&x.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),x.createElement(qe.default.Item,{hidden:!0,name:"id"}),x.createElement(qe.default.Item,{className:"mt10",name:"value"},x.createElement(Oe.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var ht=(0,dt.connect)(({loading:_e,user:Re})=>({user:Re,loading:_e.effects}))(He)},11818:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return qe}});var x=ae(59301),dt=ae(1773),Le=ae(75786),qe=()=>{const[ze,Ie]=(0,x.useState)(""),[Ue,he]=(0,x.useState)(0);let[xe,oe]=(0,x.useState)(),[Oe,ve]=(0,x.useState)();const[Me,Se]=(0,x.useState)(!1),Te=(0,x.useRef)("");(0,x.useEffect)(()=>dt.Z.subscribe("preview-image",ot=>{Ie(ot),console.log(Je.current)}),[]),(0,x.useEffect)(()=>(document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}),[]),(0,x.useEffect)(()=>{Te.current=ze},[ze]);function we(ct){console.log("e====",ct),ct.keyCode==27&&Te.current&&Ce()}function Ce(){document.body.style.overflow="auto",oe(void 0),ve(void 0),he(0),Ie("")}function Ee(){he(Ue+90)}function ke(){xe=Je.current.width*1.1,Oe=Je.current.height*1.1,ve(Oe),oe(xe)}function Ke(){xe=Je.current.width/1.1,Oe=Je.current.height/1.1,ve(Oe),oe(xe)}const Qe=(0,x.useRef)(),je=(0,x.useRef)(),Je=(0,x.useRef)(),Ve=ct=>{(ct.nativeEvent.target===Qe.current||ct.nativeEvent.target===je.current)&&Ce()};return x.createElement(x.Fragment,null,ze?x.createElement("div",null,x.createElement("div",{className:"preview-wrp-group",ref:je},x.createElement(Le.Z,{className:"image-preview",src:ze,style:{display:"none"},preview:{visible:!0,src:ze,onVisibleChange:ct=>{Ie("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},67824:function(qn,Mt,ae){"use strict";ae.d(Mt,{h:function(){return Qe}});var x=ae(59301),dt=ae(82326),Le=ae(28284),qe=ae(7939),ze=ae(89780),Ie=ae.n(ze),Ue=ae(22054),he=ae(68305),xe=Object.defineProperty,oe=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Te=(je,Je,Ve)=>Je in je?xe(je,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):je[Je]=Ve,we=(je,Je)=>{for(var Ve in Je||(Je={}))Me.call(Je,Ve)&&Te(je,Ve,Je[Ve]);if(ve)for(var Ve of ve(Je))Se.call(Je,Ve)&&Te(je,Ve,Je[Ve]);return je},Ce=(je,Je)=>oe(je,Oe(Je));const Ee=dt.default.Option,ke={labelCol:{span:4},wrapperCol:{span:20}},Ke={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"]};Mt.Z=({callback:je,onCancel:Je})=>{const[Ve,ct]=(0,x.useState)("python");function ot(Ct){ct(Ke[Ct][1])}function pt(Ct){je(Ct)}return x.createElement(Le.default,Ce(we({},ke),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:pt,style:{width:500}}),x.createElement(Le.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},x.createElement(dt.default,{getPopupContainer:Ct=>Ct.parentNode,onChange:ot},Object.keys(Ke).map(Ct=>x.createElement(Ee,{key:Ct,value:Ct},Ke[Ct][0])))),x.createElement(Le.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},x.createElement(Qe,{mode:Ve})),x.createElement("div",{className:"flex-container flex-end"},x.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(qe.ZP,{type:"ghost",onClick:Je},"\u53D6\u6D88")))};function Qe({value:je,onChange:Je,mode:Ve,options:ct={}}){const ot=(0,x.useRef)(),[pt,Ct]=(0,x.useState)();return(0,x.useEffect)(()=>{if(pt){let He=function(ht){const _e=ht.getValue();Je&&Je(_e)};return pt.on("change",He),()=>{pt.off("change",He)}}},[pt,Je]),(0,x.useEffect)(()=>{pt&&pt.setOption("mode",Ve)},[pt,Ve]),(0,x.useEffect)(()=>{pt&&(je!==pt.getValue()||je==="")&&setTimeout(()=>{pt.setValue(je||"")},300)},[pt,je]),(0,x.useEffect)(()=>{if(ot.current&&!pt){const He=Ie().fromTextArea(ot.current,we({mode:Ve,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ct));Ct(He)}},[ot.current,pt]),x.createElement("div",{className:"my-codemirror-container"},x.createElement("textarea",{ref:ot}))}},74972:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return lr}});var x=ae(59301),dt=ae(44225),Le=ae(89780),qe=ae.n(Le),ze=ae(76374),Ie=ae(22054),Ue=ae(6313),he=ae(25717),xe=ae(99498),oe=ae(25419),Oe=ae(67549),ve=ae(94200),Me=({value:$n="",className:br,showTextOnly:Br,showLines:_r,style:mi={}})=>{const di=(0,x.useMemo)(()=>"",[$n]);return x.createElement(x.Fragment,null,x.createElement("div",{dangerouslySetInnerHTML:{__html:di}}))},Se=Object.defineProperty,Te=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ke=($n,br,Br)=>br in $n?Se($n,br,{enumerable:!0,configurable:!0,writable:!0,value:Br}):$n[br]=Br,Qe=($n,br)=>{for(var Br in br||(br={}))Ee.call(br,Br)&&Ke($n,Br,br[Br]);if(Ce)for(var Br of Ce(br))ke.call(br,Br)&&Ke($n,Br,br[Br]);return $n},je=($n,br)=>Te($n,we(br));let Je=[{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\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",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 Ve({onActionCallback:$n,title:br,icon:Br,actionName:_r,className:mi="",children:di}){function fi(){$n(_r)}return x.createElement("a",{title:br,className:mi,onClick:fi},x.createElement("i",{className:`${Br}`}),di)}var ct=({watch:$n,showNullButton:br,showNullProgramButton:Br,onActionCallback:_r,fullScreen:mi,insertTemp:di,hidetoolBar:fi,extraUse:Ti})=>{const xi=[...Je,{title:`${$n?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${$n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return x.createElement("ul",{className:"markdown-toolbar-container"},!fi&&xi.map((io,Xi)=>x.createElement("li",{key:Xi},io.actionName?x.createElement(Ve,je(Qe({},io),{onActionCallback:_r})):x.createElement("span",{className:"v-line"}))),br?x.createElement("li",null,x.createElement(Ve,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:_r},x.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Br?x.createElement(x.Fragment,null,x.createElement("li",null,x.createElement(Ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:_r},x.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),x.createElement("li",null,x.createElement(Ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:_r},x.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,di&&x.createElement("li",null,x.createElement(Ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${di}`,onActionCallback:_r},x.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ti&&x.createElement("li",null,Ti),x.createElement("li",{className:"btn-full-screen"},x.createElement(Ve,{icon:`${mi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:mi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_r})))},ot=ae(62488),pt=ae(28284),Ct=ae(37568),He=ae(7939),ht=Object.defineProperty,_e=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Et=($n,br,Br)=>br in $n?ht($n,br,{enumerable:!0,configurable:!0,writable:!0,value:Br}):$n[br]=Br,Ze=($n,br)=>{for(var Br in br||(br={}))it.call(br,Br)&&Et($n,Br,br[Br]);if(Ot)for(var Br of Ot(br))at.call(br,Br)&&Et($n,Br,br[Br]);return $n},De=($n,br)=>_e($n,Re(br));const ut={labelCol:{span:4},wrapperCol:{span:20}};var Zt=({callback:$n,onCancel:br})=>{function Br(_r){$n(_r)}return x.createElement(pt.default,De(Ze({},ut),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Br,style:{width:500}}),x.createElement(pt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},x.createElement(Ct.default,null)),x.createElement(pt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},x.createElement(Ct.default,null)),x.createElement("div",{className:"flex-container flex-end"},x.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(He.ZP,{type:"ghost",onClick:br},"\u53D6\u6D88")))},Kt=ae(67824),tt=ae(22477),Dt=ae(62957),jt=ae(77019),An=ae(18997),kt=ae(59301),pn=({callback:$n,onCancel:br})=>{const Br=document.createElement("canvas"),_r=Br.getContext("2d");Br.width=1e3,Br.height=800,_r.fillStyle="#ffffff",_r.fillRect(0,0,Br.width,Br.height);const mi=Br.toDataURL("image/png");return kt.createElement(Dt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kt.createElement(jt.Z,{style:{height:"100vh"}},kt.createElement(An.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:mi,visible:!0,title:String(Date.now())},onOk:di=>{$n({src:di.url})},onClose:br})))},Pt=ae(36207),En=ae(5269),on=ae(6767),de={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},pe=ae(59301),ee=(0,x.forwardRef)(({onCancel:$n,editImgId:br,callback:Br},_r)=>{let mi=(0,x.useRef)(),di=(0,x.useRef)(),fi=(0,x.useRef)(),Ti=(0,x.useRef)(!1);const xi=(0,x.useRef)(!1);console.log("ref:",_r);const[io,Xi]=(0,x.useState)(0),[ur,Tr]=(0,x.useState)("100vh");return(0,x.useEffect)(()=>{Xi(1)},[]),(0,x.useImperativeHandle)(_r,()=>({setHeight:Tr})),pe.createElement("div",{ref:xi,className:"body-overflow-initial"},pe.createElement(Pt.Z,{width:"100vw",height:ur,footer:null,closable:!0,placement:"bottom",open:!!io,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${de.drawerWrap}`,onClose:()=>{window.saveDrawData(gi=>{Br({src:`/api/attachments/${gi}`,id:gi})})},title:pe.createElement(jt.Z,{align:"middle"},pe.createElement(En.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(En.Z,{onClick:()=>{Tr(ur==="60px"?"100vh":"60px")}},pe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),pe.createElement(En.Z,{onClick:()=>{window.saveDrawData(gi=>{if(gi===null){on.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}on.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Br({src:`/api/attachments/${gi}`,id:gi,disabledClose:!0})})}},pe.createElement(He.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},pe.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${br||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:di})))}),se=ae(42684),le=ae(47889),Be=ae(4875);const We=le.ZP.Group,st={margin:"0 8px"};var mt=({callback:$n,onCancel:br})=>{function Br(_r){$n(_r)}return x.createElement(pt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Br},x.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},x.createElement("span",{style:st},"\u5355\u5143\u683C\u6570\uFF1A"),x.createElement("span",{style:st},"\u884C\u6570"),x.createElement(pt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},x.createElement(Be.Z,null)),x.createElement("span",{style:st},"\u5217\u6570"),x.createElement(pt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},x.createElement(Be.Z,null))),x.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},x.createElement("span",{style:st},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),x.createElement(pt.default.Item,{name:"align"},x.createElement(We,null,x.createElement(le.ZP,{value:"default"},x.createElement("i",{className:"fa fa-align-justify"})),x.createElement(le.ZP,{value:"left"},x.createElement("i",{className:"fa fa-align-left"})),x.createElement(le.ZP,{value:"center"},x.createElement("i",{className:"fa fa-align-center"})),x.createElement(le.ZP,{value:"right"},x.createElement("i",{className:"fa fa-align-right"}))))),x.createElement("div",{className:"flex-container flex-end"},x.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(He.ZP,{type:"ghost",onClick:br},"\u53D6\u6D88")))},vt=ae(58755),St=ae(75354),_t=ae.n(St),xt=(0,x.forwardRef)(({use3d:$n,width:br,height:Br,callback:_r,showSaveButton:mi},di)=>{const fi=(0,x.useRef)(),Ti=(0,x.useRef)(),[xi,io]=(0,x.useState)(!1),Xi=(0,x.useRef)({id:fi,appName:"graphing",width:br||1e3,height:Br||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,x.useEffect)(()=>{Ti.current=new(_t())(Xi.current,!0),window.onload=function(){Ti.current.inject("applet_container")}},[]);const ur=()=>{var Tr=window.ggbApplet.getPNGBase64(1,!0,72);return _r&&_r(Tr),Tr};return(0,x.useEffect)(()=>{Xi.current.appName=xi?"3D":"graphing",Ti.current.inject("applet_container")},[xi]),(0,x.useEffect)(()=>{io($n)},[$n]),(0,x.useImperativeHandle)(di,()=>({getImgData:ur})),x.createElement(x.Fragment,null,x.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:fi}),x.createElement(jt.Z,{align:"middle"},x.createElement(En.Z,{flex:1},x.createElement(vt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:xi,onChange:Tr=>io(Tr)})),x.createElement(En.Z,null,x.createElement(He.ZP,{size:"large",onClick:ur,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),lt=ae(80802);const Vt="link",Wt="upload-image",gn="add-flowchart",an="draw-image",en="add-flowchart",zn="code-block",Fn="add-table",Rt="------------",sn={default:Rt,left:`:${Rt}`,center:`:${Rt}:`,right:`${Rt}:`};var _n=ae(8204),Wn=ae(85333);function Lt(){}let Gt=0;const nn=1e4,wn="\u2581",Gn="@\u2581\u2581@",Er="@\u2581@",ti=`
|
|
|
**\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`,oi=["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 Ar($n){return/^\d+$/.test($n)?`${$n}px`:$n}const jn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Hn={[jn+"-B"]:"bold",[jn+"-I"]:"italic"},Jn={[Vt]:"\u6DFB\u52A0\u94FE\u63A5",[zn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Wt]:"\u6DFB\u52A0\u56FE\u7247",[an]:"\u6DFB\u52A0\u753B\u56FE",[gn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Fn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var lr=({defaultValue:$n="",onChange:br,width:Br="100%",height:_r=400,miniToolbar:mi=!1,isFocus:di=!1,watch:fi,insertTemp:Ti,mode:xi="markdown",id:io="markdown-editor-id",showResizeBar:Xi=!1,noStorage:ur=!1,showNullButton:Tr=!1,showNullProgramButton:gi=!1,hidetoolBar:ni=!1,fullScreen:gt=!1,onBlur:vn,onCMBeforeChange:Ut,onFullScreen:dn,className:$t="",disablePaste:hn=!1,disabled:Nn=!1,disabledFill:Hr=!1,placeholder:zr="",values:Ai="",extraUse:hr,onAddBlank:nr})=>{const[ir,Yr]=(0,x.useState)(null),[Mi,Yn]=(0,x.useState)($n),[Vn,Mr]=(0,x.useState)(fi),[Tn,mn]=(0,x.useState)(gt),[tr,or]=(0,x.useState)(""),[ar,kr]=(0,x.useState)(0),[vi,qr]=(0,x.useState)(_r),[Li,_i]=(0,x.useState)(!1),[ri,hi]=(0,x.useState)(0),[ro,ki]=(0,x.useState)(0),bi=(0,x.useRef)(),Ni=(0,x.useRef)(),oo=(0,x.useRef)(),Di=(0,x.useRef)(),yo=(0,x.useRef)(),Ji=(0,x.useRef)(),po=(0,dt.useDispatch)();(0,x.useEffect)(()=>{const Rr=window.scrollY||window.pageYOffset;Yn(Ai),ir==null||ir.setValue(Ai),window.scrollTo(0,Rr)},[Ai]),(0,x.useEffect)(()=>{dn==null||dn(Tn)},[Tn]),(0,x.useEffect)(()=>{if(bi.current){let Rr=function(Fi,Ri){var Mo;if(hn){Ri.preventDefault();return}const ui=Ri.clipboardData;if(ui){const Zi=ui.types.toString(),Wo=ui.items;if(Zi==="Files"||ui.types.indexOf("Files")>-1){if(Ri.preventDefault(),xi=="stex")return;try{let Xo=Wo[1];((Mo=Wo[0])==null?void 0:Mo.kind)==="file"&&(Xo=Wo[0]);const ra=Xo.getAsFile(),Qo=ra.name.split(".").pop();(0,tt.I)(ra,qo=>{var Yo,Ba,ls;qo.id?((Yo=ra==null?void 0:ra.type)==null?void 0:Yo.indexOf("image"))>-1?ai.replaceSelection(`<img width="100%" src="/api/attachments/${qo.id}?type=${qo.content_type})" alt="" />`):((Ba=ra==null?void 0:ra.type)==null?void 0:Ba.indexOf("video"))>-1?ai.replaceSelection(`<video width="100%" controls src="/api/attachments/${qo.id}"></video>`):((ls=ra==null?void 0:ra.type)==null?void 0:ls.indexOf("pdf"))>-1?ai.replaceSelection(`<a href="/api/attachments/${qo.id}?type=${ra.type}&disposition=inline" target="_blank">${ra.name}</a>`):oi.includes(Qo)?ai.replaceSelection(`<a href="/api/attachments/${qo.id}?type=office&disposition=inline" target="_blank">${ra.name}</a>`):ai.replaceSelection(`[${ra.name}](/api/attachments/${qo.id}?type=${qo.content_type})`):(qo==null?void 0:qo.status)===401&&(document.location.href="/user/login")})}catch(Xo){on.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ai=qe().fromTextArea(bi.current,{mode:xi,lineNumbers:!mi,lineWrapping:!0,value:$n,autoCloseTags:!0,autoCloseBrackets:!0});return ai.on("keyup",function(Fi,Ri){Ri.keyCode===8&&(Fi.getValue()==""?ai.setOption("placeholder",zr):ai.setOption("placeholder",null))}),ai.on("keydown",function(Fi,Ri){if(Ri.keyCode===8){var Mo=Jo(Fi);Mo&&Ri.preventDefault()}}),di&&ai.focus(),ai.on("paste",Rr),Nn&&ai.on("beforeChange",function(Fi,Ri){(Ri.origin==="paste"||Ri.origin==="+input")&&Ri.cancel()}),Yr(ai),()=>{ai.off("paste",Rr)}}},[]);const ho=(0,x.useCallback)(()=>{if(Ni.current)try{}catch(Rr){console.log(Rr,"---- to set md editor body height")}},[vi,Ni,Tn]);(0,x.useEffect)(()=>{function Rr(){let ai=new ze.Z(Fi=>{for(let Ri of Fi)(Ri.target.offsetHeight>0||Ri.target.offsetWidth>0)&&(ho(),ir.setSize("100%","100%"),ir.refresh())});return ai.observe(bi.current.parentElement),ai}if(ir){const ai=Rr();return()=>{var Fi,Ri;(Fi=bi.current)!=null&&Fi.parentElement&&ai.unobserve((Ri=bi.current)==null?void 0:Ri.parentElement)}}},[ir,ho]),(0,x.useEffect)(()=>{if(ir){let Rr=[];for(const[ai,Fi]of Object.entries(Hn)){let Ri={[ai]:()=>{xo(Fi)}};Rr.push(Ri),ir.addKeyMap(Ri)}return()=>{for(let ai of Rr)ir.removeKeyMap(ai)}}},[ir]),(0,x.useEffect)(()=>{gt!==Tn&&mn(gt)},[gt]),(0,_n.Z)(()=>{if(!ur&&ar>0){let Rr=new Date().getTime(),ai=window.sessionStorage.getItem(io);Rr>=ar+nn&&(!ai||ai!==Mi)&&(window.sessionStorage.setItem(io,Mi),_i(!0))}},nn),(0,x.useEffect)(()=>{Mr(fi)},[ir,fi]),(0,x.useEffect)(()=>{ir&&di&&ir.focus()},[ir,di]),(0,x.useEffect)(()=>{if(Vn&&ir){let Rr=function(Fi){let Ri=Fi.target;if(Di.current){let Mo=Ri.scrollTop/Ri.scrollHeight;Di.current.scrollTop=Di.current.scrollHeight*Mo}};const ai=ir.getScrollerElement();return ai.addEventListener("scroll",Rr),()=>{ai.removeEventListener("scroll",Rr)}}},[ir,Vn]),(0,x.useEffect)(()=>{if(ir&&Ut){let Rr=function(ai,Fi){Ut(ai,Fi)};return ir.on("beforeChange",Rr),()=>{ir.off("beforeChange",Rr)}}},[ir,Ut]),(0,x.useEffect)(()=>{if(ir&&vn){let Rr=function(){vn(ir.getValue())};return ir.on("blur",Rr),()=>{ir.off("blur",Rr)}}},[ir,vn]);function Jo(Rr,ai){var Fi=Rr.getDoc(),Ri=Fi.getCursor(),Mo=Fi.getLine(Ri.line),ui=Mo.charAt(Ri.ch-1),Zi=Mo.lastIndexOf("@\u2581@",Ri.ch),Wo=Mo.lastIndexOf("@\u2581\u2581@",Ri.ch),Xo=Zi>Wo?Zi:Wo,ra=Zi>Wo?3:4;if(Gn.indexOf(ui)===-1)return null;if(console.log("change1:",ai,Rr,Mo,Ri,Xo,Zi,Wo,ui),Xo>=0&&Ri.ch-Xo<5){var Qo=Xo+ra;return Fi.replaceRange("",{line:Ri.line,ch:Xo},{line:Ri.line,ch:Qo}),{line:Ri.line,ch:Qo}}return null}(0,x.useEffect)(()=>{if(ir){let Rr=function(ai,Fi){const Ri=ai.getValue();Yn(Ri),kr(new Date().getTime()),ai.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),br&&(gi?br(Ri,Vr(Ri)):br(Ri))};return ir.on("change",Rr),()=>{ir.off("change",Rr)}}},[ir,br]),(0,x.useEffect)(()=>{if(ir)if($n==null)ir.setValue(""),Yn("");else{const Rr=window.scrollY||window.pageYOffset;$n!==ir.getValue()&&(ir.setValue($n),Yn($n),ir.setCursor(Nn?1:ir.lineCount(),0),window.scrollTo(0,Rr))}},[ir,$n]);const xo=(0,x.useCallback)(Rr=>{const ai=ir.getCursor(),Fi=ir.getSelection();let Ri=Fi.split(`
|
|
|
`);switch(Rr){case"bold":return ir.replaceSelection("**"+Fi+"**"),Fi===""&&ir.setCursor(ai.line,ai.ch+2),ir.focus();case"italic":return ir.replaceSelection("*"+Fi+"*"),Fi===""&&ir.setCursor(ai.line,ai.ch+1),ir.focus();case"code":return ir.replaceSelection("`"+Fi+"`"),Fi===""&&ir.setCursor(ai.line,ai.ch+1),ir.focus();case"inline-latex":return(0,Wn.Ye)(po)?void 0:(or("inline-latex"),ir.focus());case"latex":return ir.replaceSelection("```latex\n"+Fi+"\n```"),ir.setCursor(ai.line+1,Fi.length+1),ir.focus();case"line-break":return ir.replaceSelection(`<br/>
|
|
|
`),ir.focus();case"list-ul":return Fi===""?ir.replaceSelection("- "+Fi):ir.replaceSelection(Ri.map(Mo=>Mo===""?"":`- ${Mo}`).join(`
|
|
|
`)),ir.focus();case"list-ol":return Fi===""?ir.replaceSelection("1. "+Fi):ir.replaceSelection(Ri.map((Mo,ui)=>Mo===""?"":`${ui+1}. ${Mo}`).join(`
|
|
|
`)),ir.focus();case"add-null-ch":nr==null||nr();return;case"add-signal":return Fi===""&&ir.setCursor(ai.line,ai.ch),ir.replaceSelection(Er),ir.focus();case"add-multiple":return Fi===""&&ir.setCursor(ai.line,ai.ch),ir.replaceSelection(Gn),ir.focus();case"inster-template-1":return Fi===""&&ir.setCursor(ai.line,ai.ch),ir.replaceSelection(ti),ir.focus();case"eraser":return ir.setValue(""),ir.focus();case"trigger-watch":return Mr(!Vn),ir.focus();case"trigger-full-screen":return mn(!Tn),ir.focus();case Vt:or(Vt);return;case zn:or(zn);return;case Wt:or(Wt);return;case an:or(an);return;case"maths-latex":if((0,Wn.Ye)(po))return;or("maths-latex");return;case gn:yo.current="",sessionStorage.removeItem("file_id"),or(gn);return;case Fn:or(Fn);return;default:throw new Error}},[ir,Vn,Tn]),no=(0,x.useCallback)((Rr,ai)=>{var Fi,Ri,Mo,ui,Zi,Wo;Rr!=null&&Rr.disabledClose||or("");const{src:Xo,alt:ra,id:Qo}=Rr||{};switch(tr){case Vt:const{title:Ma,link:Na}=Rr;return ir.replaceSelection(`[${Ma}](${Na})`),ir.focus();case zn:const{language:$a,content:_o}=Rr;return ir.replaceSelection(["```"+$a,_o,"```"].join(`
|
|
|
`)),ir.focus();case"maths-latex":for(var qo=atob(Rr),Yo=new Uint8Array(qo.length),Ba=0;Ba<qo.length;Ba++)Yo[Ba]=qo.charCodeAt(Ba);var ls=new Blob([Yo],{type:"image/png"});return(0,tt.I)(ls,su=>{su.id?ir.replaceSelection(``):(su==null?void 0:su.status)===401&&(document.location.href="/user/login")}),ir.focus();case"inline-latex":return(0,Wn.Ye)(po)?void 0:(ir.replaceSelection("`$$"+Rr+"$$`"),ir.focus());case en:return Qo?(ir.getValue().indexOf(Xo)===-1?ir.replaceSelection(`<center><img id="${Qo}" width="80%" src="${Xo}" class="draw-flowchart" alt="${ra||""}" /></center>`):document.getElementById(Qo).src=se.Z.API_SERVER+Xo+"?t="+Date.now(),ir.focus()):void 0;case Wt:case an:const Fo=ai,Ea=(Mo=(Ri=(Fi=Fo==null?void 0:Fo.name)==null?void 0:Fi.split("."))==null?void 0:Ri.pop)==null?void 0:Mo.call(Ri);return((ui=Fo==null?void 0:Fo.type)==null?void 0:ui.indexOf("image"))>-1||!(Fo!=null&&Fo.type)?Fo!=null&&Fo.align||Fo!=null&&Fo.width?ir.replaceSelection(`<p style="text-align:${Fo.align||"initial"}"><img width="${Fo.width?Fo.width+"%":"initial"}" src="${Xo}" alt="${ra||""}" /></p>`):ir.replaceSelection(`<img width="100%" src="${Xo}" alt="${ra||""}" />`):((Zi=Fo==null?void 0:Fo.type)==null?void 0:Zi.indexOf("video"))>-1?ir.replaceSelection(`<video width="100%" controls src="${Xo}"></video>`):((Wo=Fo==null?void 0:Fo.type)==null?void 0:Wo.indexOf("pdf"))>-1?ir.replaceSelection(`<a href="${Xo}?type=${Fo.type}&disposition=inline" target="_blank">${Fo.name}</a>`):oi.includes(Ea)?ir.replaceSelection(`<a href="${Xo}?type=office&disposition=inline" target="_blank">${Fo.name}</a>`):ir.replaceSelection(`[${Fo.name}](${Xo})`),ir.focus();case Fn:const{row:us,col:sl,align:qs}=Rr;let ll=`
|
|
|
`;for(let su=0;su<us;su++){let Bl=[],el=[];for(let Wl=0;Wl<sl;Wl++)su===1&&el.push(sn[qs]),Bl.push(" ");su===1&&(ll+=`| ${el.join(" | ")} |
|
|
|
`),ll+=`| ${Bl.join(sl===1?"":" | ")} |
|
|
|
`}return ir.replaceSelection(ll+`
|
|
|
`),ir.focus();default:throw new Error}},[ir,tr]),Do=(0,x.useMemo)(()=>{switch(tr){case Vt:return x.createElement(Zt,{callback:no,onCancel:Zo});case zn:return x.createElement(Kt.Z,{callback:no,onCancel:Zo});case Wt:return x.createElement(tt.Z,{callback:no,onCancel:Zo});case gn:return x.createElement(ee,{editImgId:yo.current,callback:no,onCancel:Zo});case Fn:return x.createElement(mt,{callback:no,onCancel:Zo});case"maths-latex":return x.createElement(xt,{showSaveButton:!0,callback:no});case"inline-latex":return x.createElement(lt.Z,{showSaveButton:!0,callback:no});default:return null}},[tr]);function Zo(){or("")}(0,x.useEffect)(()=>{if(oo.current){let Rr=function(Zi){Mo=!0,ui=Zi.pageY},ai=function(){Mo=!1},Fi=function(Zi){if(Mo){let Wo=Zi.pageY-ui;Wo<0&&(Wo=0),Wo>300&&(Wo=300);let Xo=_r+Wo+"px";qr(Xo)}},Ri=oo.current,Mo=!1,ui=0;return Ri.addEventListener("mousedown",Rr),document.addEventListener("mousemove",Fi),document.addEventListener("mouseup",ai),()=>{Ri.removeEventListener("mousedown",Rr),document.removeEventListener("mousemove",Fi),document.removeEventListener("mouseup",ai)}}},[ir,oo]),(0,x.useEffect)(()=>{qr(_r)},[_r]);const jo=Ar(Br),Cn=Ar(vi),Vi={width:jo,height:Cn},Ur=(0,x.useMemo)(()=>{if(ar){let Rr=new Date(ar),ai=Rr.getHours(),Fi=Rr.getMinutes(),Ri=Rr.getSeconds();return ai=ai<10?"0"+ai:ai,Fi=Fi<10?"0"+Fi:Fi,Ri=Ri<10?"0"+Ri:Ri,`${ai}:${Fi}:${Ri}`}return 0},[ar]),Vr=Rr=>{const ai=[];if(gi){let Fi=-1;Rr=Rr.replace(/(@▁▁@|@▁@)/g,function(Ri,Mo,ui){ai.push({multiLine:Ri!==Er})})}return ai};function ci(){window.sessionStorage.removeItem(io),_i(!1),kr(0)}function Zr(){_i(!1),kr(0),ir.setValue(window.sessionStorage.getItem(io))}(0,x.useEffect)(()=>{Jn[tr]&&tr!==an&&tr!==gn&&setTimeout(()=>{const Rr=document.getElementsByClassName("markdown-popup-form")[0],ai=window.innerWidth/2-Rr.offsetWidth/2,Fi=window.innerHeight/2-Rr.offsetHeight/2;hi(ai),ki(Fi)},0)},[tr]);const Qi=Rr=>{Rr.preventDefault();const ai=Rr.clientX-ri,Fi=Rr.clientY-ro;document.body.onmousemove=Ri=>{let Mo=Ri.clientX-ai,ui=Ri.clientY-Fi;const Zi=document.getElementsByClassName("markdown-popup-form")[0],Wo=window.innerWidth-Zi.offsetWidth,Xo=window.innerHeight-Zi.offsetHeight;Mo=Math.max(0,Math.min(Mo,Wo)),ui=Math.max(0,Math.min(ui,Xo)),eo(Ri.clientX,Ri.clientY,ai,Fi)&&(hi(Mo),ki(ui))},document.body.onmouseup=function(){document.body.onmousemove=null}},eo=(Rr,ai,Fi,Ri)=>{const Mo=document.body.clientHeight,ui=document.body.clientWidth;return Rr<20&&Fi>Rr||Rr>ui-20&&Fi<Rr||ai<20&&Ri>ai||ai>Mo-20&&Ri<ai?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return x.createElement(x.Fragment,null,x.createElement("div",{className:"markdown-editor-wrapper",ref:Ni},x.createElement("div",{className:`markdown-editor-container ${$t} ${Vn?"on-preview":""} ${mi?"mini":""} ${Tn?"full-screen":""}`,style:Vi},x.createElement(ct,{insertTemp:Ti,watch:Vn,fullScreen:Tn,showNullButton:Tr,showNullProgramButton:gi,onActionCallback:xo,hidetoolBar:ni,extraUse:hr}),x.createElement("div",{className:"markdown-editor-body"},x.createElement("div",{className:"codemirror-container"},x.createElement("textarea",{ref:bi,placeholder:zr})),Vn?x.createElement("div",{ref:Di,className:"preview-container"},xi==="stex"&&x.createElement(Me,{value:Mi}),xi!=="stex"&&x.createElement(ve.Z,{edit:!0,disabledFill:Hr,showProgramFill:gi,value:Mi,openEditor:Rr=>{var ai;yo.current=Rr,(ai=Ji.current)==null||ai.setHeight("100vh"),setTimeout(()=>{or("add-flowchart")},150)}})):null))),Xi?x.createElement("a",{ref:oo,className:"editor-resize"}):null,tr===an&&x.createElement(pn,{callback:no,onCancel:Zo}),tr===gn&&x.createElement(ee,{ref:Ji,editImgId:yo.current,callback:no,onCancel:Zo}),x.createElement(ot.Z,null,Jn[tr]&&tr!==an&&tr!==gn?x.createElement(Dt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ri,top:ro},title:x.createElement("div",{style:{cursor:"move"},onMouseDown:Qi},Jn[tr]),open:!0,onCancel:Zo,footer:null,destroyOnClose:!0,width:tr===gn?"1200px":null,height:tr===gn?"80vh":null,className:"markdown-popup-form"},Do):null))}},22477:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Je},I:function(){return ct}});var x=ae(28284),dt=ae(6767),Le=ae(37568),qe=ae(44104),ze=ae(4875),Ie=ae(47889),Ue=ae(7939),he=ae(32546),xe=ae(59301),oe=ae(59301),Oe=Object.defineProperty,ve=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ce=(ot,pt,Ct)=>pt in ot?Oe(ot,pt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):ot[pt]=Ct,Ee=(ot,pt)=>{for(var Ct in pt||(pt={}))Te.call(pt,Ct)&&Ce(ot,Ct,pt[Ct]);if(Se)for(var Ct of Se(pt))we.call(pt,Ct)&&Ce(ot,Ct,pt[Ct]);return ot},ke=(ot,pt)=>ve(ot,Me(pt));const{useForm:Ke}=x.default,Qe={width:280,marginRight:10},je={labelCol:{span:5},wrapperCol:{span:19}};var Je=({callback:ot,onCancel:pt})=>{const[Ct]=Ke();let He=(0,xe.useRef)();function ht(Ot){He.current.width=Ct.getFieldValue("width"),He.current.align=Ct.getFieldValue("align"),ot(Ot,He.current)}function _e(Ot,it){if(Ot.status===-1){dt.ZP.error(Ot.message);return}Ct.setFieldsValue({src:`/api/attachments/${Ot.id}`,type:it.type})}function Re(Ot){let it=Ot.target.files[0];He.current=it,ct(it,_e)}return oe.createElement(x.default,ke(Ee({form:Ct},je),{className:"upload-image-panel",onFinish:ht,style:{width:470,overflow:"hidden"}}),oe.createElement(x.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},oe.createElement("div",{className:"flex-container"},oe.createElement(x.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},oe.createElement(Le.default,{style:Qe})),oe.createElement(Ve,{onFileChange:Re}))),oe.createElement(x.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},oe.createElement(Le.default,{style:{width:264}})),oe.createElement(x.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},oe.createElement(qe.Z,null,oe.createElement(x.default.Item,{name:"width",style:{margin:0}},oe.createElement(ze.Z,{style:{width:264}})),oe.createElement("span",{className:"ml8"},"%"))),oe.createElement(x.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},oe.createElement(Ie.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"}]})),oe.createElement("aside",null,oe.createElement(x.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},oe.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Ue.ZP,{type:"default",onClick:pt},"\u53D6\u6D88"))))};function Ve({onFileChange:ot}){return oe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",oe.createElement("input",{type:"file",onChange:ot}))}function ct(ot,pt){if(!ot)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ct=new FormData;Ct.append("editormd-image-file",ot),Ct.append("file_param_name","editormd-image-file"),Ct.append("byxhr","true");var He=new window.XMLHttpRequest;He.withCredentials=!0,He.addEventListener("load",function(ht){pt(JSON.parse(ht.target.responseText),ot)},!1),He.addEventListener("error",function(ht){console.error(ht)},!1),He.open("POST",`${he.KI}/api/attachments.json`),He.send(Ct)}},62488:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Le}});var x=ae(59301),dt=ae(4676);class Le extends x.Component{constructor(ze){super(ze);const Ie=window.document;this.node=Ie.createElement("div"),Ie.body.appendChild(this.node)}render(){const{children:ze}=this.props;return(0,dt.createPortal)(ze,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},84897:function(qn,Mt,ae){"use strict";ae.d(Mt,{SV:function(){return pn},ZP:function(){return kt}});var x=ae(59301),dt=ae(76374);const Le={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},qe={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ze={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std",content:["using namespace std"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},Ie={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},Ue={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var he=ae(53184),xe=ae.n(he),oe=(Pt,En,on)=>new Promise((de,pe)=>{var ie=le=>{try{se(on.next(le))}catch(Be){pe(Be)}},ee=le=>{try{se(on.throw(le))}catch(Be){pe(Be)}},se=le=>le.done?de(le.value):Promise.resolve(le.value).then(ie,ee);se((on=on.apply(Pt,En)).next())});const Oe={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},ve=(Pt,En,on,de)=>{const pe=En.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:on.lineNumber,endColumn:on.column});return Array.from(new Set(pe.match(/\b\w{2,}\b/g)||[])).map(ee=>({label:ee,kind:Pt.languages.CompletionItemKind.Text,insertText:ee,range:de}))},Me=(Pt,En,on,de)=>{Pt.languages.registerCompletionItemProvider(En,{provideCompletionItems(pe,ie){const ee=pe.getWordUntilPosition(ie),se={startLineNumber:ie.lineNumber,endLineNumber:ie.lineNumber,startColumn:ee.startColumn,endColumn:ee.endColumn},le=pe.getLineContent(ie.lineNumber).substring(ee.startColumn-2,ee.endColumn);return{suggestions:[...ve(Pt,pe,ie,se),...on.map(We=>({label:We,kind:Pt.languages.CompletionItemKind.Keyword,documentation:We,insertText:We,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...de.map(We=>({label:We.label,kind:Pt.languages.CompletionItemKind.Snippet,documentation:We.content,insertText:le.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:Pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Se=Pt=>{Oe.languages.forEach(En=>{Pt.languages.registerDocumentFormattingEditProvider(En,{provideDocumentFormattingEdits(on){return oe(this,null,function*(){const de=xe()(on.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:on.getFullModelRange(),text:de}]})}})}),Me(Pt,"java",qe.keywords,qe.quickKey),Me(Pt,"cpp",ze.keywords,ze.quickKey),Me(Pt,"c",Le.keywords,[]),Me(Pt,"python",Ie.keywords,Ie.quickKey),Me(Pt,"scala",Ue.keywords,Ue.quickKey)};const Te="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var we=Object.defineProperty,Ce=(Pt,En,on)=>En in Pt?we(Pt,En,{enumerable:!0,configurable:!0,writable:!0,value:on}):Pt[En]=on,Ee=(Pt,En,on)=>Ce(Pt,typeof En!="symbol"?En+"":En,on);const ke=class Ov{constructor(En,on,de){this.placeholder=En,this.editor=on,this.monaco=de,on.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ov.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ee(ke,"ID","editor.widget.placeholderHint");var Qe=ke,je=ae(96236),Je=ae(6767),Ve=ae(25399),ct=ae(78267),ot=ae(1773),pt=ae(56102),Ct=Object.defineProperty,He=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,it=(Pt,En,on)=>En in Pt?Ct(Pt,En,{enumerable:!0,configurable:!0,writable:!0,value:on}):Pt[En]=on,at=(Pt,En)=>{for(var on in En||(En={}))Re.call(En,on)&&it(Pt,on,En[on]);if(_e)for(var on of _e(En))Ot.call(En,on)&&it(Pt,on,En[on]);return Pt},Et=(Pt,En)=>He(Pt,ht(En)),Ze=(Pt,En)=>{var on={};for(var de in Pt)Re.call(Pt,de)&&En.indexOf(de)<0&&(on[de]=Pt[de]);if(Pt!=null&&_e)for(var de of _e(Pt))En.indexOf(de)<0&&Ot.call(Pt,de)&&(on[de]=Pt[de]);return on},De=(Pt,En,on)=>new Promise((de,pe)=>{var ie=le=>{try{se(on.next(le))}catch(Be){pe(Be)}},ee=le=>{try{se(on.throw(le))}catch(Be){pe(Be)}},se=le=>le.done?de(le.value):Promise.resolve(le.value).then(ie,ee);se((on=on.apply(Pt,En)).next())});function ut(Pt){return/^\d+$/.test(Pt)?`${Pt}px`:Pt}function Zt(){}let Kt=!1;const tt={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Dt(Pt=[]){let En=Pt;if(Array.isArray(Pt)){for(let on=0;on<Pt.length;on++){let de=tt[Pt[on]];if(de)return de}return En[0]}return tt[En]||En}let jt=null;const An=()=>De(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Pt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Pt)}});var kt=Pt=>{var En=Pt,{width:on="100%",height:de="100%",value:pe,language:ie="javascript",style:ee={},options:se={},overrideServices:le={},theme:Be="vs-dark",onEditBlur:We,isCopy:st=!1,onSave:mt,autoHeight:vt=!1,forbidCopy:St=!1,forbidCopyTips:_t,onChange:Qt=Zt,editorDidMount:xt=Zt,onFocus:lt=Zt,onBreakPoint:Vt=Zt,breakPointValue:Wt=[],filename:gn="educoder.txt",errorLine:an,errorContent:en="",highlightLine:zn,openBreakPoint:Fn=!1,placeholder:Rt="",showMiniMap:sn=!0}=En,_n=Ze(En,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Wn=(0,x.useRef)(),Lt=(0,x.useRef)({}),Gt=(0,x.useRef)(),nn=(0,x.useRef)(),wn=(0,x.useRef)([]),Gn=(0,x.useRef)(!1),Er=(0,x.useRef)(),ti=(0,x.useRef)(),oi=(0,x.useRef)(!1),[Ar,Ir]=(0,x.useState)(!1);function jn(){let ur;return Wn.current&&(ur=new dt.Z(Tr=>{for(let gi of Tr)(gi.target.offsetHeight>0||gi.target.offsetWidth>0)&&Lt.current.instance.layout()}),ur.observe(Wn.current)),ur}function Hn(){Je.ZP.warning({content:decodeURIComponent(_t||Te),key:"monaco-editor-tip"})}const Jn=()=>{let ur=Lt.current.instance;if(pe!=null&&ur&&Ar){const Tr=ur.getModel();Tr&&pe!==Tr.getValue()&&(Kt=!0,Tr.setValue(pe),ur.layout(),Kt=!1)}};(0,x.useEffect)(()=>{const ur=ot.Z.subscribe("formatDocument",Tr=>{var gi;let ni=Lt.current.instance;(gi=ni==null?void 0:ni.getAction)==null||gi.call(ni,"editor.action.formatDocument").run()});return window.updateMonacoValue=Tr=>{Qt(Tr)},ur},[]),(0,x.useEffect)(()=>{var ur;let Tr=Lt.current.instance;nn.current&&clearTimeout(nn.current),nn.current=setTimeout(()=>{Jn()},500),pe&&(pe!=null&&pe.length)&&((ur=Tr==null?void 0:Tr.updateOptions)==null||ur.call(Tr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(pe.split(/\r\n|\r|\n/g).length))+3,5)}))},[pe,Ar,Lt.current]),(0,x.useEffect)(()=>{if(an&&Lt.current&&Lt.current.instance){let Tr=Lt.current.instance;Tr.changeViewZones(function(gi){var ni=document.createElement("div");ni.style.padding="10px 20px",ni.style.width="calc(100% - 20px)",ni.className="my-error-line-wrp",ni.innerHTML=en,gi.addZone({afterLineNumber:an||11,heightInLines:3,domNode:ni})});var ur={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Tr.addOverlayWidget(ur),Tr.revealPositionInCenter({lineNumber:20,column:1})}},[an,Lt.current,Ar]);const lr=(ur="",Tr)=>{if(!ur||ur.trim()==="")return!0;const ni=Lt.current.instance.getModel().getLineTokens(Tr);let gt=!1;for(let vn=0;vn<2;vn++)ni.getStandardTokenType(vn)===1&&(gt=!0);return gt};(0,x.useEffect)(()=>{var ur;const Tr=(ur=Lt.current)==null?void 0:ur.instance;if(Tr&&Ar&&St){const gi=Tr.onDidBlurEditorWidget(()=>{oi.current=!1}),ni=Tr.onDidFocusEditorText(()=>{oi.current=!0});return()=>{gi.dispose(),ni.dispose()}}},[Lt.current,Ar,St]),(0,x.useEffect)(()=>{var ur;if((ur=Lt.current)!=null&&ur.instance&&Ar&&Fn){let Tr=Lt.current.instance,gi=Tr.getModel();if(!gi)return;(()=>{var hr;let nr=[],ir=[];const Yr=gi.getAllDecorations();for(let Yn of Yr)Yn.options.className==="highlighted-line"&&(nr.push((hr=Yn==null?void 0:Yn.range)==null?void 0:hr.startLineNumber),ir.push(Yn==null?void 0:Yn.id));if(zn===nr[0])return;gi.deltaDecorations(ir,[]);const Mi=gi.getLineCount();zn&&zn<=Mi&&(Tr.deltaDecorations([],[{range:new jt.Range(zn,1,zn,gi.getLineMaxColumn(zn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Tr.revealLineInCenter(zn))})();const gt=(hr=!1)=>{var nr;let ir=[],Yr=[];const Mi=gi.getAllDecorations();for(let Yn of Mi)Yn.options.linesDecorationsClassName==="breakpoints-select"&&(ir.push((nr=Yn==null?void 0:Yn.range)==null?void 0:nr.startLineNumber),Yr.push(Yn==null?void 0:Yn.id));if(hr)return{lines:ir,ids:Yr};Vt(ir)},vn=hr=>De(void 0,null,function*(){let nr={range:new jt.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield gi.deltaDecorations([],[nr]),gt()}),Ut=hr=>De(void 0,null,function*(){let nr=[];const ir=Tr.getLineDecorations(hr);for(let Yr of ir)Yr.options.linesDecorationsClassName==="breakpoints-select"&&nr.push(Yr.id);yield gi.deltaDecorations(nr,[]),gt()}),dn=hr=>{let nr=Tr.getLineDecorations(hr);for(let ir of nr)if(ir.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ct.isEqual)(Wt,gt(!0).lines)){gi.deltaDecorations(gt(!0).ids,[]);const hr=Wt.map(nr=>({range:new jt.Range(nr,1,nr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));gi.deltaDecorations([],hr)}const $t=Tr.onDidChangeModelContent(hr=>{let nr=Tr.getPosition();if(nr){let ir=nr.lineNumber;clearTimeout(ti.current),ti.current=setTimeout(()=>{lr(gi.getLineContent(ir),ir)?Ut(ir):dn(ir)?(Ut(ir),vn(ir)):gt()},100)}}),hn=Tr.onMouseDown(hr=>{var nr,ir,Yr;if(hr.target.detail&&((Yr=(ir=(nr=hr.target)==null?void 0:nr.element)==null?void 0:ir.className)!=null&&Yr.includes("line-numbers"))){let Mi=hr.target.position.lineNumber;if(lr(gi.getLineContent(Mi),Mi))return;dn(Mi)?Ut(Mi):vn(Mi)}}),Nn=hr=>{let nr={range:new jt.Range(hr,1,hr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};wn.current=Tr.deltaDecorations(wn.current,[nr])},Hr=()=>{wn.current=Tr.deltaDecorations(wn.current,[])},zr=Tr.onMouseMove(hr=>{var nr,ir,Yr;if(Hr(),hr.target.detail&&((Yr=(ir=(nr=hr.target)==null?void 0:nr.element)==null?void 0:ir.className)!=null&&Yr.includes("line-numbers"))){let Mi=hr.target.position.lineNumber;if(lr(gi.getLineContent(Mi),Mi))return;Nn(Mi)}}),Ai=Tr.onMouseLeave(()=>{Hr()});return()=>{$t.dispose(),hn.dispose(),zr.dispose(),Ai.dispose()}}},[Lt.current,Ar,Wt,zn,Fn,ie]),(0,x.useEffect)(()=>{var ur;(ur=Lt.current)!=null&&ur.instance&&Fn&&Lt.current.instance.setPosition({lineNumber:0,column:0})},[zn]);function $n(){let ur=Lt.current.instance;if(ur){const Tr=ur.getSelection(),gi=Lt.current.pastePos||{},ni=new jt.Range(gi.startLineNumber||Tr.endLineNumber,gi.startColumn||Tr.endColumn,gi.endLineNumber||Tr.endLineNumber,gi.endColumn||Tr.endColumn);setTimeout(()=>{ur.executeEdits("",[{range:ni,text:""}])},300)}}function br(ur){(window.navigator.platform.match("Mac")?ur.metaKey:ur.ctrlKey)&&ur.keyCode==83&&(ur.preventDefault(),mt())}const Br=()=>{if(vt&&Lt.current.instance){const ur=Lt.current.instance.getContentHeight();io(ur<de?de:ur)}else io(de)};function _r(ur){var Tr=document.createEvent("MouseEvents");Tr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ur.dispatchEvent(Tr)}const mi=ur=>{if(!oi.current)return;const{keyCode:Tr,ctrlKey:gi,metaKey:ni,target:gt,type:vn}=ur;return(vn==="paste"||(Tr===67||Tr===86)&&(ni||gi))&>.nodeName==="TEXTAREA"&&(Hn(),ur.preventDefault()),!1};function di(ur,Tr){var gi=window.URL||window.webkitURL||window,ni=new Blob([Tr]),gt=document.createElementNS("http://www.w3.org/1999/xhtml","a");gt.href=gi.createObjectURL(ni),gt.download=ur,_r(gt)}(0,x.useEffect)(()=>{Br()},[Br]),(0,x.useEffect)(()=>{Wn.current&&!Ar&&Promise.all([ae.e(8909),ae.e(1865)]).then(ae.bind(ae,71448)).then(ur=>{try{jt=ur,Lt.current.instance=jt.editor.create(Wn.current,{value:pe,language:Dt(ie),theme:Be,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:sn||!1}},le);const Tr=Lt.current.instance;let gt=[...je.BH._menuItems].find($t=>$t[0]._debugName=="EditorContext")[1],vn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ut=($t,hn)=>{var Nn,Hr;let zr=$t._first;do hn.includes((Hr=(Nn=zr.element)==null?void 0:Nn.command)==null?void 0:Hr.id)&&$t._remove(zr);while(zr=zr.next)};if(xt(Tr,jt),setTimeout(()=>{Br(),Lt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{di(gn||"educoder.txt",Tr.getValue())}})},500),Lt.current.subscription=Tr.onDidChangeModelContent($t=>{Gn.current?clearTimeout(Er.current):(Br(),Qt(Tr.getValue(),$t)),Er.current=setTimeout(()=>{Gn.current=!1},500)}),window.Monaco||Se(jt,Dt(ie)),St&&(Ut(gt,vn),Wn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",mi),window.removeEventListener("paste",mi),window.addEventListener("keydown",mi),window.addEventListener("paste",mi)),window.Monaco=jt,We&&Tr.onDidBlurEditorWidget(()=>{We(Tr.getValue())}),lt&&Tr.onDidFocusEditorText(()=>{St&&An(),lt(Tr.getValue())}),St){An();try{Tr.onDidPaste($t=>{const hn=Tr.getSelection(),Nn=Lt.current.pastePos||{},Hr=new jt.Range(Nn.startLineNumber||hn.endLineNumber,Nn.startColumn||hn.endColumn,Nn.endLineNumber||hn.endLineNumber,Nn.endColumn||hn.endColumn);Tr.executeEdits("",[{range:$t.range,text:""}])})}catch($t){}}let dn=jn();return Rt&&typeof Rt=="string"&&new Qe(Rt,Tr,jt),Ir(!0),()=>{const $t=Lt.current.instance;$t.dispose();const hn=$t.getModel();hn&&hn.dispose(),Lt.current.subscription&&Lt.current.subscription.dispose(),dn.unobserve(Wn.current)}}catch(Tr){}})},[]),(0,x.useEffect)(()=>{if(Lt.current.instance&&Ar)return document.addEventListener("keydown",br,!1),()=>{document.removeEventListener("keydown",br)}},[mt,Ar]),(0,x.useEffect)(()=>{let ur=Lt.current.instance;if(ur&&Ar){let Tr=Dt(ie);jt.editor.setModelLanguage(ur.getModel(),Tr)}},[ie,Ar]),(0,x.useEffect)(()=>{Lt.current.instance&&Ar&&jt.editor.setTheme(Be)},[Be,Ar]),(0,x.useEffect)(()=>{let ur=Lt.current.instance;Gt.current=se,ur&&Ar&&(ur.updateOptions(at({},se)),setTimeout(()=>{ur.getModel().updateOptions(at({},se))},200))},[JSON.stringify(se),Ar]),(0,x.useEffect)(()=>{let ur=Lt.current.instance;ur&&Ar&&ur.layout()},[on,de,Ar]);const[fi,Ti]=(0,x.useState)(ut(on)),[xi,io]=(0,x.useState)(ut(de)),Xi=Et(at({},ee),{width:fi,height:xi,position:"relative"});return x.createElement("div",{className:"my-monaco-editor",ref:Wn,style:Xi,onFocus:()=>{St&&An()}},st&&x.createElement(pt.CopyToClipboard,{text:pe,onCopy:()=>Je.ZP.success("\u590D\u5236\u6210\u529F")},x.createElement(Ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},x.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},x.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function pn({width:Pt="100%",height:En="100%",original:on,modified:de,language:pe,options:ie={}}){const ee=(0,x.useRef)(),[se,le]=(0,x.useState)(null);function Be(vt){let St;return ee.current&&(St=new dt.Z(_t=>{for(let Qt of _t)(Qt.target.offsetHeight>0||Qt.target.offsetWidth>0)&&vt.layout()}),St.observe(ee.current)),St}(0,x.useEffect)(()=>(ee.current&&Promise.all([ae.e(8909),ae.e(9404)]).then(ae.bind(ae,2550)).then(vt=>{jt=vt;const St=jt.editor.createDiffEditor(ee.current,Et(at({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ie),{wordWrap:!0}));le(St);let _t=Be(St);return()=>{St.dispose();const Qt=St.getModel();Qt&&Qt.dispose(),_t.unobserve(ee.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,x.useEffect)(()=>{se&&se.setModel({original:jt.editor.createModel(on,pe),modified:jt.editor.createModel(de,pe)})},[on,de,pe,se]);const We=ut(Pt),st=ut(En),mt={width:We,height:st};return x.createElement("div",{className:"my-diff-editor",ref:ee,style:mt})}},88276:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Oe}});var x={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},dt=ae(29787),Le=ae(25399),qe=ae(89787),ze=ae(92310),Ie=ae.n(ze),Ue=ae(85333),he=ae(61648),xe=ae(59301),Oe=({className:ve,dataSource:Me=[],col:Se=4,right:Te,bottom:we=23,precision:Ce=0,wrapWidth:Ee=1200,trackEventItems:ke,loading:Ke,onRemove:Qe=()=>{},isCurrent:je=!0,showProgress:Je=!1,showAlias:Ve=!1,category:ct="notDisplay",hiddenClick:ot=()=>{}})=>{const pt=Math.floor((Ee-(Se-1)*Te)/Se),Ct=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return xe.createElement(dt.Z,{spinning:Ke},xe.createElement("div",{className:Ie()(x.list,ve)},!!(Me!=null&&Me.length)&&(Me==null?void 0:Me.map((He,ht)=>{var _e,Re,Ot,it,at,Et,Ze,De,ut,Zt,Kt,tt,Dt;const{name:jt,id:An,identifier:kt,featured:pn,school_name:Pt,image_url:En,excellent:on,is_plan:de}=He;return xe.createElement("div",{key:An,className:je&&Je?x.wrapisCurrent:x.wrap,style:{width:pt,marginRight:(1+ht)%Se===0?0:Te+Ce,marginBottom:we}},xe.createElement("a",{className:x.li,onClick:pe=>{pe.preventDefault(),pe.stopPropagation(),ke&&(0,Ue.L9)([ke]),(0,Ue.xg)(`/paths/${kt}`)}},xe.createElement("div",{className:x.img},xe.createElement("img",{className:x.cover,src:`${En}`}),(_e=He==null?void 0:He.subject_tags)==null?void 0:_e.map((pe,ie)=>{var ee,se;if(ie===0){const Be=(ee=Ct.find(We=>We.name==pe))==null?void 0:ee.swclass;return xe.createElement("span",{className:`sprite ${Be} ${x.sign}`,style:{left:"-4px"}})}const le=(se=Ct.find(Be=>Be.name==pe))==null?void 0:se.ptclass;return xe.createElement("span",{className:`sprite ${le} ${x.sign}`,style:{left:`${48+52*(ie-1)+2*ie}px`}})}),xe.createElement("div",{className:x.tagsDom},xe.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(He==null?void 0:He.excellent)&&xe.createElement("div",{className:x.bq},"\u5F00\u653E\u8BFE\u7A0B"),((Re=He==null?void 0:He.custom_tags)==null?void 0:Re.length)>0&&xe.createElement(Le.Z,{title:(at=(it=He==null?void 0:He.custom_tags)==null?void 0:it[((Ot=He==null?void 0:He.custom_tags)==null?void 0:Ot.length)-1])==null?void 0:at.tag_name},xe.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},xe.createElement("span",{className:"multi-llipsis1e text-10px"},(De=(Ze=He==null?void 0:He.custom_tags)==null?void 0:Ze[((Et=He==null?void 0:He.custom_tags)==null?void 0:Et.length)-1])==null?void 0:De.tag_name))))),ct=="hide"&&(He==null?void 0:He.studying)&&je&&xe.createElement("div",{className:`${x.movebq} user-path-items`,onClick:pe=>{pe.stopPropagation(),Qe(He)}},xe.createElement("i",{className:"iconfont icon-yichu1 font12"}),xe.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(ct)&&je&&xe.createElement("div",{className:`${x.hiddenbq} user-path-items`,onClick:pe=>{pe.stopPropagation(),ot(He)}},xe.createElement("i",{className:`iconfont ${ct=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),xe.createElement("span",null,ct=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),xe.createElement("div",{className:x.name},xe.createElement(Le.Z,{title:Ve&&(He!=null&&He.excellent_alias_name)?xe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${jt}`,xe.createElement("br",null),xe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${He==null?void 0:He.excellent_alias_name}`)):jt},xe.createElement("span",{className:x.e},Ve&&(He==null?void 0:He.excellent_alias_name)||jt))),je&&Je&&((ut=He==null?void 0:He.progress)==null?void 0:ut.all_score)!=0&&xe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},xe.createElement(qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Zt=He==null?void 0:He.progress)==null?void 0:Zt.my_score)/((Kt=He==null?void 0:He.progress)==null?void 0:Kt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(tt=He==null?void 0:He.progress)==null?void 0:tt.my_score,"/",(Dt=He==null?void 0:He.progress)==null?void 0:Dt.all_score),(!je||!Je)&&xe.createElement(Le.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Pt}`},xe.createElement("div",{className:x.unit},xe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Pt)),(!je||!Je)&&xe.createElement("div",{className:x.tags},xe.createElement("div",null,xe.createElement(Le.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},xe.createElement("span",null,xe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),xe.createElement("span",null,He.stages_count))),xe.createElement(Le.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},xe.createElement("span",null,xe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),xe.createElement("span",null,He.members_count)))))))})),!Me.length&&xe.createElement(he.Z,null)))}},22417:function(qn,Mt,ae){"use strict";ae.d(Mt,{jL:function(){return qe},w9:function(){return De},QD:function(){return Wt},cQ:function(){return ht.Z},op:function(){return St},O5:function(){return jn},_b:function(){return Rt},t7:function(){return Ce},Gi:function(){return jt},YG:function(){return tt},qp:function(){return oe},vr:function(){return en},qE:function(){return xt},Je:function(){return Ke},wb:function(){return He},cq:function(){return on},tp:function(){return Me}});var x=ae(59301),dt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},qe=({dataSource:Hn=[],img:Jn,imgWidth:lr=346,title:$n,sunTitle:br,bannerExtraContent:Br})=>x.createElement("div",{className:dt.banner},x.createElement("div",{className:dt.content},x.createElement("aside",null,x.createElement("p",null,x.createElement("b",null,$n),x.createElement("span",null,br)),Hn.length>0&&x.createElement("div",{className:dt.btns},Hn.map((_r,mi)=>x.createElement("div",{key:mi,onClick:_r.click},_r.name,_r.sign?x.createElement("span",{className:"sprite sprite-33"}):null))),Br),Jn&&x.createElement("img",{style:{marginTop:33,marginRight:38},src:Jn,width:lr}))),ze={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ie=ae(92310),Ue=ae.n(Ie),he=ae(78267),oe=({dataSource:Hn=[],value:Jn,onChange:lr,onTitleChange:$n,className:br,title:Br,titleWidth:_r=41,style:mi={},fontColor:di="#6A7283",showCount:fi})=>{const[Ti,xi]=(0,x.useState)(1),[io,Xi]=(0,x.useState)(!1),ur=(0,x.useRef)(null),Tr=(0,x.useRef)(null);return(0,x.useEffect)(()=>{var gi;Hn.length!==0&&(((gi=ur==null?void 0:ur.current)==null?void 0:gi.clientHeight)>97?xi(1):xi(0)),Hn.length===0&&xi(0),Xi(!1)},[Hn]),x.createElement("div",{className:Ue()(ze.row,br,"fadeIn","animated"),style:mi},x.createElement("div",{onClick:(0,he.throttle)(()=>$n==null?void 0:$n(),2e3),style:{width:_r,marginTop:io?12:4},className:`${ze.title} ${$n?"current":""}`},Br),x.createElement("div",{className:io?`${ze.tagsWrap} ${ze.tagsBorderWrap}`:ze.tagsWrap},x.createElement("div",{className:ze.bar,ref:Tr,style:Ti>0?{height:Ti===1?97:"auto",overflow:Ti===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},x.createElement("div",{className:ze.tag,ref:ur},Hn==null?void 0:Hn.map(gi=>x.createElement("span",{onClick:()=>lr(gi.id),key:gi.id,style:{color:di},className:Jn===gi.id?ze.active:""},x.createElement("span",{title:gi.name,className:ze.name},gi.name),!!fi&&x.createElement("span",{className:ze.num},gi.count))))),!!Ti&&x.createElement(x.Fragment,null,Ti===1?x.createElement("div",{onClick:()=>{var gi;xi(2),((gi=ur==null?void 0:ur.current)==null?void 0:gi.clientHeight)>245?Xi(!0):Xi(!1)},className:ze.action},"\u5C55\u5F00",x.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):x.createElement("div",{onClick:()=>{Tr.current.scrollTop=0,xi(1),Xi(!1)},className:ze.action},"\u6536\u8D77",x.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Oe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Me=({dataSource:Hn=[],value:Jn,onChange:lr,className:$n,style:br={}})=>x.createElement("div",{style:br,className:Ue()(Oe.tabs,$n)},Hn.map(Br=>x.createElement("span",{onClick:()=>lr(Br.id),className:Jn===Br.id?Oe.active:"",key:Br.id},Br.name))),Se={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Te=ae(37568),Ce=({dataSource:Hn=[],value:Jn="",onChange:lr,onInputChange:$n=()=>{},className:br,style:Br={},placeholder:_r,allowClear:mi=!1})=>{var di;const[fi,Ti]=(0,x.useState)(""),[xi,io]=(0,x.useState)("");(0,x.useEffect)(()=>{var Tr;let gi=Jn;(Tr=JSON.stringify(Jn))!=null&&Tr.includes("{")&&(Ti(Jn.id),gi=Jn.value||"");try{io(decodeURIComponent(gi||""))}catch(ni){io(decodeURIComponent(gi||""))}},[Jn]);const Xi=()=>{lr(encodeURIComponent(xi),fi||null)},ur=Tr=>{Tr!==fi&&(Ti(Tr),lr(encodeURIComponent(xi),Tr))};return x.createElement("div",{className:Ue()(Se.input,br),style:Br},!!Hn.length&&x.createElement("div",{className:Se.dropdown},x.createElement("div",{className:Se.text},(di=Hn.find(Tr=>Tr.id===fi))==null?void 0:di.name,x.createElement("i",{className:"iconfont icon-zhankai4"}),x.createElement("b",{className:Se.b1}),x.createElement("b",{className:Se.b2})),x.createElement("div",{className:Se.menu},Hn.map((Tr,gi)=>x.createElement("div",{key:gi,onClick:()=>ur(Tr.id)},Tr.name)))),x.createElement(Te.default,{onPressEnter:Xi,value:xi,onChange:Tr=>{io(Tr.target.value),$n(encodeURIComponent(Tr.target.value),fi||null)},placeholder:_r,variant:"borderless",allowClear:mi,onClear:()=>lr("",fi||null)}),x.createElement("i",{onClick:Xi,className:"iconfont icon-sousuo9 font14 current"}))},Ee={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ke=({value:Hn,onChange:Jn,className:lr,total:$n,pageSize:br,style:Br={}})=>{const _r=Hn<2,mi=Hn>=Math.ceil($n/br);return $n<=br?x.createElement(x.Fragment,null):x.createElement("div",{className:Ue()(Ee.quickPager,lr),style:Br},x.createElement("div",{onClick:()=>{_r||Jn(Hn-1,"prev")},className:_r?Ee.disabled:""},"\u4E0A\u4E00\u9875"),x.createElement("div",{onClick:()=>{mi||Jn(Hn+1,"next")},className:mi?Ee.disabled:""},"\u4E0B\u4E00\u9875"))},Qe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},je=ae(29787),Je=ae(25399),Ve=ae(63139),ct=ae(42684),ot=ae(85333),pt=ae(61648),He=({className:Hn,dataSource:Jn=[],col:lr=4,right:$n,bottom:br=23,precision:Br=0,wrapWidth:_r=1200,trackEventItems:mi,loading:di})=>{const fi=Math.floor((_r-(lr-1)*$n)/lr);return x.createElement(je.Z,{spinning:di},x.createElement("div",{className:Ue()(Qe.list,Hn)},!!Jn.length&&Jn.map((Ti,xi)=>{const{name:io,id:Xi,identifier:ur,power:Tr,cover_image_id:gi,pic:ni}=Ti;return x.createElement("div",{className:Qe.wrap,key:Xi,style:{width:fi,marginRight:(1+xi)%lr===0?0:$n+Br,marginBottom:br}},x.createElement("a",{target:"_blank",href:`/shixuns/${ur}/challenges`,className:Qe.li,onClick:gt=>{gt.preventDefault(),mi&&(0,ot.L9)([mi]),Tr&&(0,ot.xg)(`/shixuns/${ur}/challenges`)}},x.createElement("div",{className:Qe.img},x.createElement("img",{className:Qe.cover,src:`${ni}`}),Ti.is_jupyter&&x.createElement("span",{className:`sprite sprite-43 ${Qe.sign}`}),Ti.is_jupyter_lab&&x.createElement("span",{className:`sprite sprite-42 ${Qe.sign}`}),Ti.is_unity_3d&&x.createElement("span",{className:`sprite sprite-44 ${Qe.sign}`})),x.createElement("div",{className:Qe.name},x.createElement(Je.Z,{title:io||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},x.createElement("span",{className:Qe.e},io||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),x.createElement("div",{className:Qe.tags},x.createElement(Je.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),x.createElement("span",null,Ti.challenges_count))),!!Ti.myshixuns_count&&x.createElement(Je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),x.createElement("span",null,Ti.myshixuns_count))),x.createElement(Je.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},x.createElement("span",null,x.createElement("span",null,Ti.level))),x.createElement("div",{className:Qe.rate},x.createElement(Ve.Z,{allowHalf:!0,disabled:!0,defaultValue:Ti.score_info}),x.createElement("span",null,"\xA0",Ti.score_info?`${Ti.score_info}\u5206`:"5\u5206")))),!Tr&&x.createElement("div",{className:Qe.lockWrap},x.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),x.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Jn.length&&x.createElement(pt.Z,null)))},ht=ae(88276),_e={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Re=ae(62957),Ot=ae(96599),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",at=ae(59301),Et=(Hn,Jn,lr)=>new Promise(($n,br)=>{var Br=di=>{try{mi(lr.next(di))}catch(fi){br(fi)}},_r=di=>{try{mi(lr.throw(di))}catch(fi){br(fi)}},mi=di=>di.done?$n(di.value):Promise.resolve(di.value).then(Br,_r);mi((lr=lr.apply(Hn,Jn)).next())}),De=({className:Hn,dataSource:Jn=[],col:lr=4,right:$n,bottom:br=23,precision:Br=0,wrapWidth:_r=1200,trackEventItems:mi,loading:di,category:fi,hiddenClick:Ti,handleVery:xi=()=>!0,isCurrent:io})=>{const[Xi,ur]=Re.default.useModal(),Tr=Math.floor((_r-(lr-1)*$n)/lr),gi=ni=>Et(void 0,null,function*(){Xi.confirm({title:"\u7F6E\u9876",width:500,content:at.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",at.createElement("span",{className:"c-blue"},"\u201C",ni.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return at.createElement(je.Z,{spinning:di},ur,at.createElement("div",{className:Ue()(_e.list,Hn)},!!Jn.length&&Jn.map((ni,gt)=>{const{subject_identifier:vn,id:Ut,identifier:dn,power:$t}=ni,hn=ni.is_public!=0&&ni.is_public;return at.createElement("div",{className:_e.wrap,key:Ut,style:{width:Tr,marginRight:(1+gt)%lr===0?0:$n+Br,marginBottom:br}},ni.homepage_show&&at.createElement("div",{className:_e.btnsTop},at.createElement(Ot.default,{color:"red"},"\u7F6E\u9876")),at.createElement("a",{className:_e.li,onClick:Nn=>{Nn.preventDefault(),xi(ni==null?void 0:ni.first_category_url)&&(mi&&(0,ot.L9)([mi]),(0,ot.xg)(ni.first_category_url))}},at.createElement("div",{className:_e.top},at.createElement(Je.Z,{title:ni.name},at.createElement("div",{className:_e.name},ni.name)),at.createElement("img",{className:_e.img,src:ct.Z.IMG_SERVER+"/images/"+ni.avatar_url}),at.createElement("div",{className:_e.text,title:ni.creator},ni.creator),vn&&at.createElement("div",{className:_e.btns},at.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),at.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),hn&&at.createElement("div",{className:_e.sign},"\u516C\u5F00"),io&&at.createElement("div",{className:_e.hidden,onClick:Nn=>{Nn.stopPropagation(),Ti(ni)}},at.createElement("i",{className:`iconfont ${fi=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),fi=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),at.createElement("div",{className:_e.bottom},ni.visits>0&&at.createElement(Je.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},at.createElement("span",null,at.createElement("i",{className:"iconfont icon-liulanyan"}),at.createElement("span",null,ni.visits))),ni.course_members_count>0&&at.createElement(Je.Z,{title:"\u6210\u5458",placement:"bottom"},at.createElement("span",null,at.createElement("i",{className:"iconfont icon-chengyuan"}),ni.course_members_count)),ni.tasks_count>0&&at.createElement(Je.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},at.createElement("span",null,at.createElement("i",{className:"iconfont icon-zuoye"}),ni.tasks_count)),ni.is_end?at.createElement("div",{style:{color:"#6B758B"}}):at.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ni.is_accessible&&at.createElement("div",{className:_e.lockWrap},at.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),at.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Jn.length&&at.createElement(pt.Z,null)))},ut={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Zt=ae(44225),tt=({dataSource:Hn=[],value:Jn,onChange:lr,className:$n,style:br={},tabBarExtraContent:Br})=>x.createElement("div",{className:Ue()(ut.tabs,$n),style:br},x.createElement("div",{className:ut.tabsWrap},Hn.map((_r,mi)=>!(_r!=null&&_r.hide)&&x.createElement("aside",{className:ut.tab,onClick:()=>{lr(_r.id),_r.link&&Zt.history.push(_r.link)},key:mi},x.createElement("div",{className:Jn===_r.id?ut.active:""},_r.name),(_r==null?void 0:_r.resetCount)==null&&(_r==null?void 0:_r.total)!==void 0&&x.createElement("span",null,"\uFF08",_r==null?void 0:_r.total,"\uFF09"),(_r==null?void 0:_r.resetCount)!==void 0&&(_r==null?void 0:_r.total)!==void 0&&x.createElement(Je.Z,{title:(_r==null?void 0:_r.tip)!=null?_r==null?void 0:_r.tip:""},x.createElement("span",{style:{color:"#9096A3"}},"\uFF08",x.createElement("span",{style:{color:"#000"}},_r==null?void 0:_r.resetCount),"/",x.createElement("span",null,_r==null?void 0:_r.total),"\uFF09"))))),x.createElement("div",{className:ut.tabBar},Br)),jt=({className:Hn,style:Jn={},children:lr})=>x.createElement("div",{className:Ue()(Hn),style:Jn},lr),An={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},kt=ae(75727),pn=ae(93041);const Pt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var on=({sortValue:Hn,dropValue:Jn,className:lr,onSort:$n,onDrop:br,dataSource:Br=Pt})=>{var _r;return x.createElement("div",{className:Ue()(An.orderWrap,lr)},x.createElement(kt.Z,{dropdownRender:()=>x.createElement(pn.default,null,Br.map((mi,di)=>x.createElement(pn.default.Item,{key:di,onClick:()=>br(mi.id)},mi.name)))},x.createElement("span",{className:An.orderTextWrap},(_r=Br.find(mi=>Jn===mi.id))==null?void 0:_r.name)),x.createElement("span",{className:An.orderIconWrap},x.createElement("span",{className:An.orderAsc},x.createElement("i",{className:Hn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${An.cursorPointer} ${An.active}`:`iconfont icon-sanjiaoxing-up font12 ${An.cursorPointer}`,onClick:()=>$n(Hn==="asc"?"desc":"asc")})),x.createElement("span",{className:An.orderDesc},x.createElement("i",{className:Hn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${An.cursorPointer} ${An.active}`:`iconfont icon-sanjiaoxing-down font12 ${An.cursorPointer}`,onClick:()=>$n(Hn==="asc"?"desc":"asc")}))))},de={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},pe=ae(7939),ie=Object.defineProperty,ee=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,Be=(Hn,Jn,lr)=>Jn in Hn?ie(Hn,Jn,{enumerable:!0,configurable:!0,writable:!0,value:lr}):Hn[Jn]=lr,We=(Hn,Jn)=>{for(var lr in Jn||(Jn={}))se.call(Jn,lr)&&Be(Hn,lr,Jn[lr]);if(ee)for(var lr of ee(Jn))le.call(Jn,lr)&&Be(Hn,lr,Jn[lr]);return Hn},st=(Hn,Jn)=>{var lr={};for(var $n in Hn)se.call(Hn,$n)&&Jn.indexOf($n)<0&&(lr[$n]=Hn[$n]);if(Hn!=null&&ee)for(var $n of ee(Hn))Jn.indexOf($n)<0&&le.call(Hn,$n)&&(lr[$n]=Hn[$n]);return lr},mt=(Hn,Jn,lr)=>new Promise(($n,br)=>{var Br=di=>{try{mi(lr.next(di))}catch(fi){br(fi)}},_r=di=>{try{mi(lr.throw(di))}catch(fi){br(fi)}},mi=di=>di.done?$n(di.value):Promise.resolve(di.value).then(Br,_r);mi((lr=lr.apply(Hn,Jn)).next())}),St=Hn=>{var Jn=Hn,{className:lr,style:$n,children:br,loading:Br=!1,openLoading:_r,onClick:mi=()=>{},size:di="middle",shape:fi="round"}=Jn,Ti=st(Jn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[xi,io]=(0,x.useState)(!1);return x.createElement(pe.ZP,We({onClick:(0,he.throttle)(Xi=>mt(void 0,null,function*(){_r&&io(!0);try{yield mi(Xi)}catch(ur){console.log("error",ur)}_r&&io(!1)}),2e3,{leading:!0,trailing:!1}),className:Ue()(de.btn,de[`${di}-${fi}`],lr),style:$n,size:di,shape:fi,loading:xi||Br},Ti),br)},_t={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},xt=({className:Hn,style:Jn,children:lr=null,onClick:$n,title:br})=>x.createElement("div",{className:Ue()(_t.head,Hn),style:Jn},x.createElement("span",{className:"primary-hover",onClick:$n},x.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),x.createElement("b",{title:br},br),x.createElement("div",{className:_t.node},lr)),lt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Wt=({confirmShow:Hn=!0,confirmTitle:Jn,confirmClick:lr,cancelShow:$n=!0,cancelTitle:br,cancelClick:Br,className:_r,style:mi,confirmLoading:di=!1})=>x.createElement("div",{className:Ue()(lt.btns,_r),style:mi},Hn&&x.createElement(pe.ZP,{loading:di,onClick:lr,type:"primary",className:lt.confirm},Jn),$n&&x.createElement(pe.ZP,{onClick:Br,className:lt.cancel},br)),gn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},en=({className:Hn,style:Jn={},LeftContent:lr,children:$n,RightContent:br})=>x.createElement("div",{className:Ue()(gn.fixedBottom,Hn),style:Jn},x.createElement("div",{className:gn.wrap},x.createElement("div",{className:gn.left},lr),x.createElement("div",{className:gn.center},$n),x.createElement("div",{className:gn.right},br))),zn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Rt=({className:Hn,style:Jn={},dataSource:lr=[]})=>x.createElement("div",{className:Ue()(zn.crumbs,Hn),style:Jn},lr.map(($n,br)=>br<lr.length-1?x.createElement(x.Fragment,{key:br},$n.path||$n.onClick?x.createElement("span",{className:zn.hover,onClick:$n!=null&&$n.onClick?$n.onClick:()=>Zt.history.push($n.path)},$n.name):x.createElement("span",null,$n.name),x.createElement("span",null,"\xA0",">","\xA0")):x.createElement("span",{key:br,style:{color:"#5F6368"}},$n.name))),sn=ae(11938),_n=Object.defineProperty,Wn=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,Gn=(Hn,Jn,lr)=>Jn in Hn?_n(Hn,Jn,{enumerable:!0,configurable:!0,writable:!0,value:lr}):Hn[Jn]=lr,Er=(Hn,Jn)=>{for(var lr in Jn||(Jn={}))nn.call(Jn,lr)&&Gn(Hn,lr,Jn[lr]);if(Gt)for(var lr of Gt(Jn))wn.call(Jn,lr)&&Gn(Hn,lr,Jn[lr]);return Hn},ti=(Hn,Jn)=>Wn(Hn,Lt(Jn)),oi=(Hn,Jn)=>{var lr={};for(var $n in Hn)nn.call(Hn,$n)&&Jn.indexOf($n)<0&&(lr[$n]=Hn[$n]);if(Hn!=null&&Gt)for(var $n of Gt(Hn))Jn.indexOf($n)<0&&wn.call(Hn,$n)&&(lr[$n]=Hn[$n]);return lr};const{Countdown:Ar}=sn.default;var jn=Hn=>{var Jn=Hn,{onChange:lr}=Jn,$n=oi(Jn,["onChange"]);const[br,Br]=(0,x.useState)(null);(0,x.useEffect)(()=>{typeof br=="number"&&br>=0&&lr(br)},[br]);const _r=mi=>{const di=Math.floor(mi/1e3);Br(di)};return x.createElement(Ar,ti(Er({},$n),{onChange:_r}))}},8204:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return dt}});var x=ae(59301);function dt(Le,qe){const ze=(0,x.useRef)();(0,x.useEffect)(()=>{ze.current=Le}),(0,x.useEffect)(()=>{function Ie(){ze.current()}if(qe!==null){let Ue=setInterval(Ie,qe);return()=>clearInterval(Ue)}},[qe])}},45121:function(qn,Mt,ae){"use strict";ae.r(Mt),ae.d(Mt,{default:function(){return Mi}});var x=ae(59301),dt=ae(66649),Le=ae.n(dt),qe=ae(86129),ze=ae.n(qe),Ie=ae(58661),Ue=ae(44225),he=ae(62957),xe=ae(6767),oe=ae(458),Oe=ae(91882),ve=ae(77019),Me=ae(5269),Se=ae(7939),Te=ae(25399),we=ae(37285),Ce=ae(37568),Ee=ae(70858),ke=ae(82326),Ke=ae(31709),Qe=ae(27812),je=ae(95869),Je=ae(87169),Ve=ae(26227),ct=ae(42684),ot=ae(36466),pt=ae(85333),Ct=ae(42441),He={flex_box_center:"flex_box_center___KJUhi",flex_space_between:"flex_space_between____N4uH",flex_box_vertical_center:"flex_box_vertical_center___yOdsz",flex_box_center_end:"flex_box_center_end___seJB9",flex_box_column:"flex_box_column___ihHC5",title:"title___JSmnB",score:"score___ERcuI",export:"export___pgR1H",title1_right:"title1_right___MdWJo",userPic:"userPic___UeG3e",userInfo:"userInfo___TNu6l",listItem:"listItem___wdbM_",rightInfo:"rightInfo___Swqk5",shixunTitle:"shixunTitle___L2Tc4",shixunWrp:"shixunWrp___ZoaTc",footerBar:"footerBar___QW5rq",footerBarStatic:"footerBarStatic___CRq8b",exitComment:"exitComment___u4Rqt",nextComment:"nextComment___lvaID",modal:"modal___g3B3L",footer:"footer___eJCnt",pingjia:"pingjia___X_ooM",pj_close:"pj_close___PHP4h",pj_save:"pj_save___COfQy",fa:"fa____jywp"},ht={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const _e=({shixunHomeworks:Yn,data:Vn,globalSetting:Mr,loading:Tn,dispatch:mn})=>{var tr;const{shixunWorkReport:or}=Yn;let ar=((tr=Vn==null?void 0:Vn.efficiency_list)==null?void 0:tr.length)-parseInt(Vn==null?void 0:Vn.myself_eff[0]);const kr=()=>({title:{text:"\u5B66\u4E60\u6548\u7387",subtext:"\u5B66\u4E60\u6548\u7387=log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{left:"3%",right:"9%",bottom:"3%",containLabel:!0},tooltip:{showDelay:0,formatter:function(qr){return qr.name===or.username?"\u59D3\u540D\uFF1A"+or.username+"<br/>\u5B66\u53F7\uFF1A "+or.user_id+"<br/>\u6548\u7387\uFF1A"+(Vn==null?void 0:Vn.myself_eff[1]):qr.name+":"+qr.value+" "},axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}}},xAxis:[{type:"value",name:"\u5B66\u751F\u4F4D\u7F6E",nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:""},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"value",name:" ",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"",type:"scatter",data:Vn==null?void 0:Vn.efficiency_list,itemStyle:{normal:{color:"#2e65ad"}},markArea:{silent:!0,itemStyle:{normal:{color:"transparent",borderWidth:1,borderType:"dashed"}},data:[[{name:"\u5B66\u4E60\u6548\u7387\u5206\u5E03\u533A\u95F4",xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},markPoint:{data:[{name:or.username,xAxis:ar,yAxis:Vn==null?void 0:Vn.myself_eff[1],value:Vn==null?void 0:Vn.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),vi=()=>({title:{text:"\u80FD\u529B\u503C",subtext:"\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(qr){var Li=qr.value;if(qr.name===or.username)return"\u59D3\u540D\uFF1A"+or.username+"<br/>\u5B66\u53F7\uFF1A "+or.user_id+"<br/>\u5F97\u5206\uFF1A"+(Vn==null?void 0:Vn.myself_object[1])}},xAxis:{type:"value",name:"log(\u5B9E\u8BAD\u7684\u603B\u65F6\u95F4)",nameGap:16,nameTextStyle:{color:"#000",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#000"}}},yAxis:{type:"value",name:" ",nameLocation:"end",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},axisLine:{lineStyle:{color:"#000"}},splitLine:{show:!1}},series:[{name:"\u80FD\u529B",type:"scatter",itemStyle:ht,data:Vn==null?void 0:Vn.consume_list,symbolSize:function(qr){return Math.round(qr[2])},markPoint:{data:[{name:or.username,xAxis:Vn==null?void 0:Vn.myself_object[0],yAxis:Vn==null?void 0:Vn.myself_object[1],value:Vn==null?void 0:Vn.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return x.createElement(x.Fragment,null,x.createElement("aside",{className:"ml60 pr30"},x.createElement(ve.Z,null,x.createElement(Me.Z,{flex:"800px"},x.createElement(Ct.Z,{style:{width:750,height:580},option:kr()})),x.createElement(Me.Z,{flex:"1"},x.createElement("aside",{className:He.rightInfo},x.createElement("ul",null,x.createElement("li",null,x.createElement("span",null,"\u59D3\u540D")," ",x.createElement("span",{className:"ml30"},or.username)),x.createElement("li",null,x.createElement("span",null,"\u5B66\u53F7")," ",x.createElement("span",{className:"ml30"},or.student_id||"--")),x.createElement("li",null,x.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",x.createElement("span",{className:"ml30 c-orange"},Vn==null?void 0:Vn.myself_eff[1])),x.createElement("li",null,x.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",x.createElement("span",{className:"ml30 c-orange"},Vn==null?void 0:Vn.myself_eff[0]))),x.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",x.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",x.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",x.createElement("br",null),"\u6A59\u8272\u6A2A\u5411\u7BAD\u5934\uFF1A\u4E2D\u4F4D\u503C\uFF0C\u8868\u793A\u6574\u4E2A\u8BFE\u5802\u5B66\u751F\u8868\u73B0\u7684\u5E73\u5747\u503C"))))),x.createElement("aside",{className:"ml60 pr30"},x.createElement(ve.Z,null,x.createElement(Me.Z,{flex:"800px"},x.createElement(Ct.Z,{style:{width:750,height:580},option:vi()})),x.createElement(Me.Z,{flex:"1"},x.createElement("aside",{className:He.rightInfo},x.createElement("ul",null,x.createElement("li",null,x.createElement("span",null,"\u59D3\u540D")," ",x.createElement("span",{className:"ml30"},or.username)),x.createElement("li",null,x.createElement("span",null,"\u5B66\u53F7")," ",x.createElement("span",{className:"ml30"},or.student_id||"--")),x.createElement("li",null,x.createElement("span",null,"\u80FD\u529B")," ",x.createElement("span",{className:"ml30 c-orange"},Vn==null?void 0:Vn.myself_object[1]))),x.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",x.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",x.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",x.createElement("br",null)))))))};var Re=(0,Ue.connect)(({shixunHomeworks:Yn,loading:Vn,globalSetting:Mr})=>({shixunHomeworks:Yn,globalSetting:Mr,loading:Vn.effects}))(_e),Ot=ae(84897),it=ae(4875),at=({defaultValue:Yn,onBlur:Vn,max:Mr,className:Tn="game-score",style:mn,disabled:tr=!1})=>{const[or,ar]=(0,x.useState)(Yn);(0,x.useEffect)(()=>{ar(Yn)},[Yn]);function kr(qr){ar(qr)}function vi(){or!==Yn&&Vn(or>Mr?Mr:or)}return x.createElement(it.Z,{max:Mr,min:0,className:Tn,style:mn,value:or,disabled:tr,onChange:kr,onBlur:vi})},Et=ae(74972),Ze={md:"md___TEmcT"},De=ae(59301),ut=Object.defineProperty,Zt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,An=(Yn,Vn,Mr)=>Vn in Yn?ut(Yn,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):Yn[Vn]=Mr,kt=(Yn,Vn)=>{for(var Mr in Vn||(Vn={}))Dt.call(Vn,Mr)&&An(Yn,Mr,Vn[Mr]);if(tt)for(var Mr of tt(Vn))jt.call(Vn,Mr)&&An(Yn,Mr,Vn[Mr]);return Yn},pn=(Yn,Vn)=>Zt(Yn,Kt(Vn));const Pt=ke.default.Option,En={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var on=(Yn=>(Yn[Yn.SET_PATH=0]="SET_PATH",Yn[Yn.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",Yn))(on||{});function de(Yn,Vn){switch(Vn.type){case 0:return pn(kt({},Yn),{selectedPath:Vn.payload});case 1:return pn(kt({},Yn),{passedContent:Vn.payload});default:throw new Error}}var pe=({path:Yn,game_id:Vn,onPathChange:Mr,autoHeight:Tn,diff_code_count:mn,data:tr,game_codes_cn:or})=>{var ar,kr,vi,qr;const Li=Yn.split("\uFF1B").filter(Ni=>!!Ni),[_i,ri]=(0,x.useReducer)(de,{selectedPath:Li[0],passedContent:{language:"python",content:""}}),{selectedPath:hi,passedContent:ro}=_i;function ki(Ni){ri({type:0,payload:Ni})}const bi={\u6700\u540E\u901A\u5173\u4EE3\u7801:"\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801",\u6700\u65B0\u4EE3\u7801:"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5",\u622A\u6B62\u540E\u901A\u5173\u4EE3\u7801:"\u5728\u4F5C\u4E1A\u65F6\u95F4\u7ED3\u675F\u540E\u901A\u5173\u8BE5\u9898\u7684\u4EE3\u7801\u8BE6\u60C5"};return De.createElement(De.Fragment,null,De.createElement("h2",null," ",De.createElement("span",null,or,De.createElement(Te.Z,{title:De.createElement("div",null,De.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),De.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),De.createElement("div",null," 2.\u82E5\u6709\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u5C55\u793A\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u3002"),De.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},De.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),mn&&De.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",mn),De.createElement("span",null,De.createElement(ke.default,{style:{width:200},value:hi,onChange:ki}," ",Li.map(Ni=>De.createElement(Pt,{key:Ni,value:Ni},Ni))," "))," "),(hi==null?void 0:hi.split(".")[1])==="md"&&De.createElement(Et.Z,{height:300,autoHeight:Tn,defaultValue:((kr=(ar=tr==null?void 0:tr.filter(Ni=>Ni.path===hi))==null?void 0:ar[0])==null?void 0:kr.content)||"",className:Ze.md}),(hi==null?void 0:hi.split(".")[1])!=="md"&&De.createElement(Ot.ZP,{height:300,language:ro.language,value:((qr=(vi=tr==null?void 0:tr.filter(Ni=>Ni.path===hi))==null?void 0:vi[0])==null?void 0:qr.content)||"",autoHeight:Tn,theme:"default",isCopy:!0,options:En}))},ie=ae(30450),ee=ae(96249),se=ae.n(ee),le=Object.defineProperty,Be=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,mt=(Yn,Vn,Mr)=>Vn in Yn?le(Yn,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):Yn[Vn]=Mr,vt=(Yn,Vn)=>{for(var Mr in Vn||(Vn={}))We.call(Vn,Mr)&&mt(Yn,Mr,Vn[Mr]);if(Be)for(var Mr of Be(Vn))st.call(Vn,Mr)&&mt(Yn,Mr,Vn[Mr]);return Yn};const St=Yn=>React.createElement("svg",vt({className:"scai_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},Yn),React.createElement("path",{d:"M512 327.68c245.76 0 445.44 153.6 445.44 348.16C957.44 870.4 757.76 1024 512 1024c-245.76-5.12-445.44-153.6-445.44-348.16 0-194.56 199.68-348.16 445.44-348.16z",fill:"#DBDCFF"}),React.createElement("path",{d:"M645.12 947.2c117.76-10.24 158.72-143.36 163.84-266.24 0-128-128-174.08-291.84-174.08-163.84 0-291.84 46.08-291.84 174.08 0 112.64 35.84 240.64 143.36 261.12 30.72 5.12 261.12 10.24 276.48 5.12z",fill:"#111ACC"}),React.createElement("path",{d:"M404.48 686.08c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c-5.12-10.24 10.24-25.6 25.6-25.6zm220.16 0c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c0-10.24 10.24-25.6 25.6-25.6z",fill:"#FFF"}),React.createElement("path",{d:"M916.48 527.36c56.32 0 107.52 71.68 107.52 153.6 0 87.04-61.44 153.6-117.76 153.6 0 0 51.2-76.8 51.2-158.72s-40.96-148.48-40.96-148.48zm-808.96 5.12-5.12 5.12c-10.24 20.48-35.84 76.8-35.84 138.24 0 76.8 35.84 138.24 51.2 158.72C61.44 834.56 0 768 0 680.96c0-81.92 51.2-148.48 107.52-148.48z",fill:"#8187FF"}),React.createElement("path",{d:"M512 0c20.48 0 30.72 15.36 30.72 30.72v220.16c0 20.48-15.36 30.72-30.72 30.72s-30.72-10.24-30.72-30.72V30.72C481.28 15.36 496.64 0 512 0z",fill:"#701CDC"}),React.createElement("path",{d:"M384 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-35.84-15.36-35.84-30.72V76.8c0-20.48 15.36-30.72 35.84-30.72z",fill:"#371CDC"}),React.createElement("path",{d:"M645.12 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72V76.8c0-20.48 15.36-30.72 30.72-30.72z",fill:"#AB2FF0"}),React.createElement("path",{d:"M250.88 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-35.84-10.24-35.84-30.72v-40.96c0-20.48 15.36-35.84 35.84-35.84z",fill:"#6D57F2"}),React.createElement("path",{d:"M778.24 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72v-40.96c0-20.48 15.36-35.84 30.72-35.84z",fill:"#C86FFA"}));var _t="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI3LjY4YzI0NS43NiAwIDQ0NS40NCAxNTMuNiA0NDUuNDQgMzQ4LjE2Qzk1Ny40NCA4NzAuNCA3NTcuNzYgMTAyNCA1MTIgMTAyNGMtMjQ1Ljc2LTUuMTItNDQ1LjQ0LTE1My42LTQ0NS40NC0zNDguMTYgMC0xOTQuNTYgMTk5LjY4LTM0OC4xNiA0NDUuNDQtMzQ4LjE2eiIgZmlsbD0iI0RCRENGRiIvPjxwYXRoIGQ9Ik02NDUuMTIgOTQ3LjJjMTE3Ljc2LTEwLjI0IDE1OC43Mi0xNDMuMzYgMTYzLjg0LTI2Ni4yNCAwLTEyOC0xMjgtMTc0LjA4LTI5MS44NC0xNzQuMDgtMTYzLjg0IDAtMjkxLjg0IDQ2LjA4LTI5MS44NCAxNzQuMDggMCAxMTIuNjQgMzUuODQgMjQwLjY0IDE0My4zNiAyNjEuMTIgMzAuNzIgNS4xMiAyNjEuMTIgMTAuMjQgMjc2LjQ4IDUuMTJ6IiBmaWxsPSIjMTExQUNDIi8+PHBhdGggZD0iTTQwNC40OCA2ODYuMDhjMTUuMzYgMCAyNS42IDEwLjI0IDI1LjYgMjUuNnY2MS40NGMwIDE1LjM2LTEwLjI0IDI1LjYtMjUuNiAyNS42LTE1LjM2IDAtMjUuNi0xMC4yNC0yNS42LTI1LjZ2LTYxLjQ0Yy01LjEyLTEwLjI0IDEwLjI0LTI1LjYgMjUuNi0yNS42em0yMjAuMTYgMGMxNS4zNiAwIDI1LjYgMTAuMjQgMjUuNiAyNS42djYxLjQ0YzAgMTUuMzYtMTAuMjQgMjUuNi0yNS42IDI1LjYtMTUuMzYgMC0yNS42LTEwLjI0LTI1LjYtMjUuNnYtNjEuNDRjMC0xMC4yNCAxMC4yNC0yNS42IDI1LjYtMjUuNnoiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNOTE2LjQ4IDUyNy4zNmM1Ni4zMiAwIDEwNy41MiA3MS42OCAxMDcuNTIgMTUzLjYgMCA4Ny4wNC02MS40NCAxNTMuNi0xMTcuNzYgMTUzLjYgMCAwIDUxLjItNzYuOCA1MS4yLTE1OC43MnMtNDAuOTYtMTQ4LjQ4LTQwLjk2LTE0OC40OHptLTgwOC45NiA1LjEyLTUuMTIgNS4xMmMtMTAuMjQgMjAuNDgtMzUuODQgNzYuOC0zNS44NCAxMzguMjQgMCA3Ni44IDM1Ljg0IDEzOC4yNCA1MS4yIDE1OC43MkM2MS40NCA4MzQuNTYgMCA3NjggMCA2ODAuOTZjMC04MS45MiA1MS4yLTE0OC40OCAxMDcuNTItMTQ4LjQ4eiIgZmlsbD0iIzgxODdGRiIvPjxwYXRoIGQ9Ik01MTIgMGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjIyMC4xNmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xMC4yNC0zMC43Mi0zMC43MlYzMC43MkM0ODEuMjggMTUuMzYgNDk2LjY0IDAgNTEyIDB6IiBmaWxsPSIjNzAxQ0RDIi8+PHBhdGggZD0iTTM4NCA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zNS44NC0xNS4zNi0zNS44NC0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzUuODQtMzAuNzJ6IiBmaWxsPSIjMzcxQ0RDIi8+PHBhdGggZD0iTTY0NS4xMiA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzAuNzItMzAuNzJ6IiBmaWxsPSIjQUIyRkYwIi8+PHBhdGggZD0iTTI1MC44OCA4Ny4wNGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjQ2LjA4YzAgMjAuNDgtMTUuMzYgMzAuNzItMzAuNzIgMzAuNzJzLTM1Ljg0LTEwLjI0LTM1Ljg0LTMwLjcydi00MC45NmMwLTIwLjQ4IDE1LjM2LTM1Ljg0IDM1Ljg0LTM1Ljg0eiIgZmlsbD0iIzZENTdGMiIvPjxwYXRoIGQ9Ik03NzguMjQgODcuMDRjMjAuNDggMCAzMC43MiAxNS4zNiAzMC43MiAzMC43MnY0Ni4wOGMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MnYtNDAuOTZjMC0yMC40OCAxNS4zNi0zNS44NCAzMC43Mi0zNS44NHoiIGZpbGw9IiNDODZGRkEiLz48L3N2Zz4=",Qt=ae(98400),xt=ae(94200),lt=ae(11818),Vt=ae(1773),Wt=ae(32250),gn=ae(61648);const an=({shixunHomeworks:Yn,classroomList:Vn,items:Mr,dispatch:Tn})=>{var mn;const{shixunWorkReport:tr}=Yn,or=(0,x.useRef)(null),[ar,kr]=(0,x.useState)(!1),[vi,qr]=(0,x.useState)(!1);(0,x.useEffect)(()=>{if(or.current)return or.current.addEventListener("mousedown",Li),()=>{var _i;(_i=or.current)==null||_i.removeEventListener("mousedown",Li)}},[or.current]),(0,x.useEffect)(()=>{setTimeout(()=>{or.current&&or.current.clientHeight>=500&&kr(!0)},500)},[(mn=tr==null?void 0:tr.student_work_test_result_info)==null?void 0:mn.content,or.current]);function Li(_i){const ri=(ki,bi)=>{if(ki.localName===bi)return ki;for(let Ni=0,oo=ki;oo=oo.parentNode;Ni++){if(oo.localName===bi)return oo;if(oo==document.documentElement)return!1}},hi=_i.target,ro=ri(hi,"a");if(console.log([ro],ro==null?void 0:ro.href,44),!(ro!=null&&ro.href)&&hi.tagName.toUpperCase()==="IMG"){let ki=hi.src||hi.getAttribute("src");ki&&ki.indexOf("/images/avatars/User")===-1&&(_i.stopPropagation(),_i.preventDefault(),Vt.Z.publish("preview-image",ki))}}return x.createElement("div",null,(tr==null?void 0:tr.is_open_submit_test_result)&&x.createElement(x.Fragment,null,x.createElement(lt.Z,null),x.createElement("strong",{className:"c-black font14"},"\u5B9E\u9A8C\u7ED3\u679C"),Mr?x.createElement("div",{style:{marginTop:10},className:""},x.createElement("div",{className:"py-20px px-36px",style:{background:"#F6F7F9"}},x.createElement("div",{ref:or,style:{maxHeight:!vi&&"500px",overflow:"hidden"}},x.createElement(xt.Z,{value:Mr==null?void 0:Mr.content})),ar&&x.createElement("div",{className:"w-full current",onClick:()=>{qr(!vi)}},x.createElement(we.Z,{variant:"dashed",style:{borderColor:"#3061D0",marginBottom:"0px"},dashed:!0},x.createElement("span",{style:{color:"#3061D0"}},vi?"\u6536\u8D77":"\u5C55\u5F00")))),x.createElement(Wt.Z,{className:"px-36px",showDimensions:!1,dataSource:Mr==null?void 0:Mr.test_result_files,callback:()=>{}})):x.createElement(gn.Z,{customText:"\u5B66\u751F\u672A\u63D0\u4EA4\u5B9E\u9A8C\u7ED3\u679C"})))};var en=(0,Ue.connect)(({shixunHomeworks:Yn,loading:Vn,globalSetting:Mr,classroomList:Tn})=>({shixunHomeworks:Yn,globalSetting:Mr,loading:Vn.effects,classroomList:Tn}))(an),zn=ae(71169),Fn=Object.defineProperty,Rt=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,_n=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Gt=(Yn,Vn,Mr)=>Vn in Yn?Fn(Yn,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):Yn[Vn]=Mr,nn=(Yn,Vn)=>{for(var Mr in Vn||(Vn={}))Wn.call(Vn,Mr)&&Gt(Yn,Mr,Vn[Mr]);if(_n)for(var Mr of _n(Vn))Lt.call(Vn,Mr)&&Gt(Yn,Mr,Vn[Mr]);return Yn},wn=(Yn,Vn)=>Rt(Yn,sn(Vn)),Gn=(Yn,Vn,Mr)=>new Promise((Tn,mn)=>{var tr=kr=>{try{ar(Mr.next(kr))}catch(vi){mn(vi)}},or=kr=>{try{ar(Mr.throw(kr))}catch(vi){mn(vi)}},ar=kr=>kr.done?Tn(kr.value):Promise.resolve(kr.value).then(tr,or);ar((Mr=Mr.apply(Yn,Vn)).next())});const Er=({shixunHomeworks:Yn,autoHeight:Vn,classroomList:Mr,dispatch:Tn})=>{var mn,tr,or,ar,kr,vi,qr,Li;const{shixunWorkReport:_i}=Yn,{stage_list:ri,work_id:hi,ai_code_evaluation_promote:ro}=_i,[ki,bi]=(0,x.useState)(!1),[Ni,oo]=(0,x.useState)(!0),[Di,yo]=(0,x.useState)({left:0,top:0,bottom:0,right:0}),Ji=(0,x.useRef)(null),[po,ho]=(0,x.useState)(!1),[Jo,xo]=(0,x.useState)(""),[no,Do]=(0,x.useState)({}),Zo=(0,x.useRef)(null),jo=(ui,Zi)=>{var Wo;const{clientWidth:Xo,clientHeight:ra}=window.document.documentElement,Qo=(Wo=Ji.current)==null?void 0:Wo.getBoundingClientRect();Qo&&yo({left:-Qo.left+Zi.x,right:Xo-(Qo.right-Zi.x),top:-Qo.top+Zi.y,bottom:ra-(Qo.bottom-Zi.y)})},Cn=(0,Ue.useParams)(),Vi=(0,ot.GJ)(),Ur={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,x.useEffect)(()=>{console.log(Cn)},[]);const Vr=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(ui,Zi,Wo)=>x.createElement("div",null,ui,Zi.is_work_end_evaluate&&x.createElement(pt.vA,{status:5}))},{title:"\u8BC4\u6D4B\u8017\u65F6(S)",dataIndex:"ts_time",width:"130px"},{title:"\u5185\u5B58\u6D88\u8017(MB)",width:"150px",dataIndex:"ts_mem"},{title:"\u8BC4\u6D4B\u65F6\u95F4",width:"170px",dataIndex:"created_at",render:ui=>Le()(ui).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(ui,Zi)=>x.createElement("span",{className:"c-blue current",onClick:()=>Gn(void 0,null,function*(){var Wo,Xo;const ra=yield(0,ie.Lk)(Zi.game_identifier,{path:(Xo=(Wo=Zi.path)==null?void 0:Wo.replace(/\;/g,";"))==null?void 0:Xo.split(";")[0],query_index:Zi.query_index,homework_common_id:Cn.categoryId});(ra==null?void 0:ra.status)===0&&(ho(ra),bi(!0))})},Zi.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],ci=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(ui,Zi)=>{var Wo;return x.createElement("span",null,x.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:ct.Z.IMG_SERVER+"/images/"+((Wo=Zi==null?void 0:Zi.user)==null?void 0:Wo.image_url)}),ui)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:ui=>x.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",ui,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:ui=>x.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",ui,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:ui=>x.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",ui?Le()(ui).format("YYYY-MM-DD HH:mm"):"--")}];function Zr(ui,Zi){return Gn(this,null,function*(){const{challenge_id:Wo}=ri[ui],Xo=yield Tn({type:"shixunHomeworks/changeScore",payload:{categoryId:Cn.homeworkId,type:"report",score:Zi,challenge_id:Wo}});yield Tn({type:"shixunHomeworks/getShixunWorkReport",payload:nn({},Cn)}),Xo.status===0&&xe.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function Qi(ui,Zi){return(0,Ie.U2)(`student_works/${hi}/rep_passed_content.json`,{path:Zi,game_id:ui})}const[eo,Rr]=(0,x.useState)((mn=_i==null?void 0:_i.shixun_detail)==null?void 0:mn.map(ui=>wn(nn({},ui),{commentEdit:!1}))),ai=ui=>ui.replace(/\\\(([\s\S]*?)\\\)/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/\\\[([\s\S]*?)\\\]/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/`(\$\$.*?\$\$)`/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/_{2,}/g,"`$&`"),[Fi,Ri]=(0,x.useState)(!1),Mo=(ui,Zi)=>Gn(void 0,null,function*(){var Wo,Xo;Ri(!0),Zo.current=new Qt.Z(ct.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-plus-latest",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:ro,shixun_id:_i==null?void 0:_i.myshixun_identifier,game_id:ui==null?void 0:ui.id,source:"shixun",is_chat:!1,type:9,description:ui==null?void 0:ui.challenge_description,query:(Xo=(Wo=ui==null?void 0:ui.game_codes)==null?void 0:Wo[0])==null?void 0:Xo.content,homework_common_id:Cn.categoryId}),yield new Promise((ra,Qo)=>{Zo.current.on("data",qo=>{const Yo=[...eo];Yo[Zi].comment=ai(qo==null?void 0:qo.full),Rr(Yo)}),Zo.current.on("done",()=>Gn(void 0,null,function*(){var qo;Ri(!1);const Yo=[...eo],Ba=yield(0,Ie.ZP)(`/api/student_works/${Cn==null?void 0:Cn.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:ui==null?void 0:ui.challenge_id,comment:Yo[Zi].comment}});if((Ba==null?void 0:Ba.status)==0){xe.ZP.success("\u8BC4\u4EF7\u6210\u529F");const ls=[...eo];ls[Zi].comment_updated_at=(qo=Ba==null?void 0:Ba.data)==null?void 0:qo.comment_updated_at,Rr(ls)}})),Zo.current.startStream()})});return x.createElement(x.Fragment,null,eo==null?void 0:eo.map(function(ui,Zi){var Wo,Xo,ra,Qo,qo,Yo,Ba;const ls=!!((Wo=ui==null?void 0:ui.game_extension_attachments)!=null&&Wo.length);return x.createElement("div",{key:Zi},x.createElement("aside",{className:"pl30 pr30",key:Zi},x.createElement("div",{className:`${He.shixunTitle} mt10`},x.createElement("div",null,x.createElement("span",{className:"fa fa-code "}),x.createElement("strong",{className:"c-black"},"\u7B2C",Zi+1,"\u5173 ",x.createElement(Ue.Link,{className:"c-black",target:"_blank",to:`/tasks/${Cn.coursesId}/${Cn.categoryId}/${ui.game_identifier}`},ui.subject))),Vi?x.createElement("span",null,"\u8C03\u5206\uFF1A",x.createElement(at,{className:"game-score",max:ri[Zi].game_score_full,defaultValue:ri[Zi].game_score,disabled:!((Xo=ri==null?void 0:ri[Zi])!=null&&Xo.checked)&&((ra=ri==null?void 0:ri[Zi])==null?void 0:ra.is_show),onBlur:Ma=>{var Na;if((0,ot.Rm)()&&!((Na=Mr.AssistantObject.practice)!=null&&Na.can_appraise)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Zr(Zi,Ma)}})):null),ls&&x.createElement("div",{className:"font16 mt10 mb10"},x.createElement("div",null,"\u5B66\u5458\u97F3\u9891\u6587\u4EF6"),x.createElement("a",{className:"current",onClick:()=>{var Ma,Na,$a,_o;Do({url:ct.Z.API_SERVER+((Na=(Ma=ui==null?void 0:ui.game_extension_attachments)==null?void 0:Ma[0])==null?void 0:Na.url),file_type:(_o=($a=ui==null?void 0:ui.game_extension_attachments)==null?void 0:$a[0])==null?void 0:_o.file_type})}},(qo=(Qo=ui==null?void 0:ui.game_extension_attachments)==null?void 0:Qo[0])==null?void 0:qo.title)),!ls&&x.createElement(x.Fragment,null,x.createElement("div",{className:"font16 mt10"},ui.st===0&&(ui.path?typeof(ui==null?void 0:ui.game_codes_cn)=="string"?x.createElement("aside",{className:He.shixunWrp},x.createElement(pe,{game_codes_cn:ui==null?void 0:ui.game_codes_cn,autoHeight:Vn,path:ui.path,game_id:ui.id,data:ui.game_codes,diff_code_count:ui.diff_code_count,onPathChange:Qi})):x.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),ui.st===1&&(ui.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),x.createElement("aside",{className:"mt10 font16"},(Yo=ui.outputs)!=null&&Yo.length?x.createElement(Ee.default,{columns:Vr,pagination:{hideOnSinglePage:!0},dataSource:ui.outputs.map(Ma=>nn(nn({},ui),Ma))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55")),x.createElement(en,{items:ui==null?void 0:ui.student_work_test_result_info}),x.createElement("aside",{className:"mt10"},x.createElement("div",null,x.createElement("div",{style:{display:"flex",alignItems:"center"}},x.createElement("strong",{className:"c-black font14"},"\u4EE3\u7801\u8BC4\u4EF7"),!(ui!=null&&ui.commentEdit)&&!(0,ot.dE)()&&(ui!=null&&ui.comment?x.createElement(x.Fragment,null,x.createElement("div",{style:{color:"#666666",fontSize:"12px",marginLeft:"auto"}},"\u6700\u65B0\u8BC4\u4EF7\u65F6\u95F4\uFF1A",ui!=null&&ui.comment_updated_at?Le()(ui==null?void 0:ui.comment_updated_at).format("YYYY-MM-DD HH:mm:ss"):"--"),x.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"40px",cursor:"pointer"},onClick:()=>Gn(this,null,function*(){Fi?xe.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):he.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u662F\u5426\u91CD\u65B0\u751F\u6210\u8BC4\u8BBA\uFF1F",okText:"\u786E\u8BA4",icon:null,cancelText:"\u53D6\u6D88",onOk:()=>Gn(this,null,function*(){Mo(ui,Zi)})})})},x.createElement("i",{className:"iconfont icon-zhongxinshengcheng1 mr8 font14"}),"\u91CD\u65B0\u751F\u6210")):x.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"auto",cursor:"pointer"},onClick:()=>Gn(this,null,function*(){Fi?xe.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):Mo(ui,Zi)})},x.createElement("img",{src:_t,className:"mr8"}),"\u4E00\u952EAI\u751F\u6210")),!(ui!=null&&ui.commentEdit)&&!(0,ot.dE)()&&x.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"20px",cursor:"pointer"},onClick:()=>{const Ma=[...eo];Ma[Zi].commentEdit=!0,Rr(Ma),xo(ui==null?void 0:ui.comment)}},x.createElement("i",{className:"iconfont icon-bianji-moren mr8 font14"}),"\u7F16\u8F91"),(ui==null?void 0:ui.commentEdit)&&x.createElement(x.Fragment,null,x.createElement("div",{className:He.pj_close,onClick:()=>{const Ma=[...eo];Ma[Zi].commentEdit=!1,Rr(Ma)}},"\u53D6\u6D88"),x.createElement("div",{className:He.pj_save,onClick:()=>Gn(this,null,function*(){var Ma;const Na=yield(0,Ie.ZP)(`/api/student_works/${Cn==null?void 0:Cn.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:ui==null?void 0:ui.challenge_id,comment:Jo}});if((Na==null?void 0:Na.status)==0){xe.ZP.success("\u8BC4\u4EF7\u6210\u529F");const $a=[...eo];$a[Zi].commentEdit=!1,$a[Zi].comment=Jo,$a[Zi].comment_updated_at=(Ma=Na==null?void 0:Na.data)==null?void 0:Ma.comment_updated_at,Rr($a)}})},"\u4FDD\u5B58"))),!(ui!=null&&ui.commentEdit)&&x.createElement("div",{className:He.pingjia},ui!=null&&ui.comment?x.createElement(xt.Z,{value:ui==null?void 0:ui.comment,style:{fontSize:"14px"}}):"\u6682\u65E0\u8BC4\u4EF7~"),(ui==null?void 0:ui.commentEdit)&&x.createElement(Ce.default.TextArea,{defaultValue:Jo,style:{borderRadius:"5px",marginTop:"10px"},rows:5,onChange:Ma=>xo(Ma.target.value)}))),x.createElement("aside",{className:"mt10 font16"},((Ba=ui==null?void 0:ui.adjust_review_score_list)==null?void 0:Ba.length)>0&&(0,ot.GJ)()&&x.createElement("div",null,x.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),x.createElement(Ee.default,{columns:ci,pagination:{hideOnSinglePage:!0},dataSource:ui.adjust_review_score_list,showHeader:!1})))))}),x.createElement(he.default,{open:ki,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{ho({}),bi(!1)},onCancel:()=>{ho({}),bi(!1)},title:x.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{Ni&&oo(!1)},onMouseOut:()=>{oo(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:ui=>x.createElement(se(),{disabled:Ni,bounds:Di,nodeRef:Ji,onStart:(Zi,Wo)=>jo(Zi,Wo)},x.createElement("div",{ref:Ji},ui))},x.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},x.createElement("div",{style:{display:"flex",alignItems:"center"}},((tr=po==null?void 0:po.data)==null?void 0:tr.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?x.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):x.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),x.createElement("div",{style:{color:((or=po==null?void 0:po.data)==null?void 0:or.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(ar=po==null?void 0:po.data)==null?void 0:ar.output_detail)),x.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},Le()((kr=po==null?void 0:po.data)==null?void 0:kr.created_at).format("YYYY-MM-DD HH:mm:ss"))),x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(vi=po==null?void 0:po.data)==null?void 0:vi.ts_time,"s")),x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(qr=po==null?void 0:po.data)==null?void 0:qr.ts_mem,"mb")),x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((Li=po==null?void 0:po.data)==null?void 0:Li.test_set_passed_rate)*100,"%")))),x.createElement(Ot.ZP,{height:500,autoHeight:Vn,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((po==null?void 0:po.content)||""))),options:Ur})),x.createElement(zn.Z,{close:!0,hasMask:!0,style:{zIndex:9999},data:no==null?void 0:no.url,type:no==null?void 0:no.file_type,onClose:()=>Do({})}))};var ti=(0,Ue.connect)(({shixunHomeworks:Yn,loading:Vn,globalSetting:Mr,classroomList:Tn})=>({shixunHomeworks:Yn,globalSetting:Mr,loading:Vn.effects,classroomList:Tn}))(Er),oi=ae(28284),Ar={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},Ir=ae(28849),jn=ae(59301),Hn=Object.defineProperty,Jn=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,br=(Yn,Vn,Mr)=>Vn in Yn?Hn(Yn,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):Yn[Vn]=Mr,Br=(Yn,Vn)=>{for(var Mr in Vn||(Vn={}))lr.call(Vn,Mr)&&br(Yn,Mr,Vn[Mr]);if(Jn)for(var Mr of Jn(Vn))$n.call(Vn,Mr)&&br(Yn,Mr,Vn[Mr]);return Yn},_r=(Yn,Vn,Mr)=>new Promise((Tn,mn)=>{var tr=kr=>{try{ar(Mr.next(kr))}catch(vi){mn(vi)}},or=kr=>{try{ar(Mr.throw(kr))}catch(vi){mn(vi)}},ar=kr=>kr.done?Tn(kr.value):Promise.resolve(kr.value).then(tr,or);ar((Mr=Mr.apply(Yn,Vn)).next())});const mi=({shixunHomeworks:Yn,dispatch:Vn,classroomList:Mr})=>{const{shixunWorkReport:Tn}=Yn,mn=(0,Ue.useParams)(),[tr,or]=(0,x.useState)(!1),[ar]=oi.default.useForm(),[kr,vi]=he.default.useModal(),[qr,Li]=(0,x.useState)(!1),[_i,ri]=(0,x.useState)(!1),hi=[{label:"\u5FC5\u505A",value:"required",color:"#1B8565"},{label:"\u9009\u505A",value:"optional",color:"#1E96F4"},{label:"\u4E0D\u505A",value:"hidden",color:"#5F6368"}];(0,x.useEffect)(()=>{var bi,Ni,oo,Di;Yn.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&ar.setFieldsValue({comment:(Ni=(bi=Yn.actionTabs.selectArrs)==null?void 0:bi.data)==null?void 0:Ni.work_comment,hidden_comment:(Di=(oo=Yn.actionTabs.selectArrs)==null?void 0:oo.data)==null?void 0:Di.work_comment_hidden})},[Yn.actionTabs.key]);const ro=()=>_r(void 0,null,function*(){const bi=ar.getFieldsValue();(yield(0,Ie.ZP)(`/api/student_works/${mn.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:bi.hidden_comment,comment:bi.comment}})).status===0&&(xe.ZP.success("\u8BC4\u9605\u6210\u529F"),ar.resetFields(),Vn({type:"shixunHomeworks/setActionTabs",payload:{}}),Vn({type:"shixunHomeworks/getShixunWorkReport",payload:Br({},mn)}))}),ki=[{title:"\u5173\u5361",dataIndex:"name",render:(bi,Ni,oo)=>oo+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(bi,Ni,oo)=>jn.createElement("div",null,bi,Ni.complete_status===4&&jn.createElement(pt.vA,{status:Ni.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5173\u5361\u8981\u6C42",dataIndex:"checked",render:bi=>{var Ni,oo;return jn.createElement("span",{style:{color:(Ni=hi==null?void 0:hi.find(Di=>(Di==null?void 0:Di.value)==bi))==null?void 0:Ni.color}},(oo=hi==null?void 0:hi.find(Di=>(Di==null?void 0:Di.value)==bi))==null?void 0:oo.label)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:bi=>bi?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(bi,Ni)=>jn.createElement("div",null,jn.createElement("span",{style:{color:parseFloat(Ni.game_score_full)!==parseFloat(bi)?"#E30000":"#53C41B"}},bi),"/",Ni.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(bi,Ni)=>(0,ot.GJ)()?jn.createElement(at,{max:Ni.game_score_full,defaultValue:parseFloat(bi),onBlur:oo=>_r(void 0,null,function*(){var Di,yo;if((0,ot.Rm)()&&!((Di=Mr.AssistantObject.practice)!=null&&Di.can_appraise)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Ji=yield Vn({type:"shixunHomeworks/changeScore",payload:{categoryId:mn.homeworkId,type:"report",score:oo,challenge_id:Ni.challenge_id}});(yo=Yn==null?void 0:Yn.actionTabs)==null||yo.fn(),yield Vn({type:"shixunHomeworks/getShixunWorkReport",payload:Br({},mn)}),Ji.status===0&&xe.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):bi}];return jn.createElement(jn.Fragment,null,vi,jn.createElement(he.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:Yn.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>_r(void 0,null,function*(){var bi;if((0,ot.Rm)()&&!((bi=Mr.AssistantObject.practice)!=null&&bi.can_appraise)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Ni=ar.getFieldsValue();JSON.stringify(Ni)==="{}"||Ni.hidden_comment===""&&Ni.comment===""?or(!0):ro()}),onCancel:()=>{Vn({type:"shixunHomeworks/setActionTabs",payload:{}})}},jn.createElement(ve.Z,{justify:"space-between",className:Ar.info},jn.createElement(Me.Z,null,jn.createElement("span",{className:`${Ar.label} ${Ar.greyText}`},"\u59D3\u540D"),jn.createElement("span",{className:Ar.blackContent},Tn==null?void 0:Tn.username)),jn.createElement(Me.Z,null,jn.createElement("span",{className:`${Ar.label} ${Ar.greyText}`},"\u5B66\u53F7"),jn.createElement("span",{className:Ar.blackContent},(Tn==null?void 0:Tn.student_id)||"--")),jn.createElement(Me.Z,null,jn.createElement("span",{className:`${Ar.label} ${Ar.greyText}`},"\u73ED\u7EA7"),jn.createElement("span",{className:Ar.blackContent},(Tn==null?void 0:Tn.group_name)||"--")),jn.createElement(Me.Z,null,jn.createElement("span",{className:`${Ar.label} ${Ar.greyText}`},"\u5173\u5361\u5F97\u5206"),jn.createElement("span",{className:Ar.orangeContent},(Tn==null?void 0:Tn.challenge_score)||"--")),jn.createElement(Me.Z,null,jn.createElement("span",{className:`${Ar.label} ${Ar.greyText}`},"\u6548\u7387\u5206"),jn.createElement("span",{className:Ar.orangeContent},(Tn==null?void 0:Tn.eff_score)||"--")),jn.createElement(Me.Z,null,jn.createElement("span",{className:`${Ar.label} ${Ar.greyText}`},"\u8865\u4EA4\u6263\u5206"),jn.createElement("span",{className:Ar.orangeContent},(Tn==null?void 0:Tn.late_penalty)||"--")),jn.createElement(Me.Z,null,jn.createElement("span",{className:`${Ar.label} ${Ar.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),jn.createElement("span",{className:Ar.orangeContent},(Tn==null?void 0:Tn.work_score)||"--"))),jn.createElement(oi.default,{form:ar,onChange:()=>{tr&&or(!1)}},jn.createElement(ve.Z,{wrap:!1,align:"middle",justify:"space-between"},jn.createElement(Me.Z,null,jn.createElement("div",{className:`${Ar.inputLabel} ${Ar.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),jn.createElement(Me.Z,null,jn.createElement(Ir.Z,{isShowComponent:(0,ot.G5)(),ModalProps:{open:qr,onCancel:()=>{Li(!1)}},onDataSelect:(bi,Ni)=>_r(void 0,[bi,Ni],function*(oo,{node:Di}){const yo=()=>{ar.setFieldsValue({comment:Di==null?void 0:Di.value}),Li(!1)};if(ar.getFieldValue("comment")){kr.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:yo});return}yo()})},jn.createElement(Se.ZP,{style:{padding:0,height:"auto"},icon:jn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:bi=>{Li(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),jn.createElement(oi.default.Item,{name:"comment"},jn.createElement(Ce.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),jn.createElement(ve.Z,{wrap:!1,align:"middle",justify:"space-between"},jn.createElement(Me.Z,null,jn.createElement("div",{className:`${Ar.inputLabel} ${Ar.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),jn.createElement(Me.Z,null,jn.createElement(Ir.Z,{isShowComponent:(0,ot.G5)(),ModalProps:{open:_i,onCancel:()=>{ri(!1)}},onDataSelect:(bi,Ni)=>_r(void 0,[bi,Ni],function*(oo,{node:Di}){const yo=()=>{ar.setFieldsValue({hidden_comment:Di==null?void 0:Di.value}),ri(!1)};if(ar.getFieldValue("hidden_comment")){kr.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:yo});return}yo()})},jn.createElement(Se.ZP,{style:{padding:0,height:"auto"},icon:jn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:bi=>{ri(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),jn.createElement(oi.default.Item,{name:"hidden_comment"},jn.createElement(Ce.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),tr&&jn.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),jn.createElement("div",{className:Ar.tableTitle},"\u5173\u5361\u6210\u7EE9"),jn.createElement(Ee.default,{className:Ar.scoreTable,dataSource:Tn.stage_list,rowKey:"challenge_id",pagination:!1,columns:ki,scroll:{x:"max-content"}})))};var di=(0,Ue.connect)(({shixunHomeworks:Yn,classroomList:Vn})=>({shixunHomeworks:Yn,classroomList:Vn}))(mi),fi=ae(78912),Ti=ae(70973),xi=ae(44164),io=ae.n(xi),Xi={wrap:"wrap___LZOi9",line:"line___oju0L"},ur=ae(54772),gi=({detailData:Yn})=>{var Vn;return x.createElement("div",{className:Xi.wrap},x.createElement(ur.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,ur.Uf)(Yn),(Yn==null?void 0:Yn.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},x.createElement(ur.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,ur.Uf)(Yn)}),!!((Vn=Yn==null?void 0:Yn.photos)!=null&&Vn.length)&&x.createElement(x.Fragment,null,x.createElement("div",{className:Xi.line}),x.createElement(ur._s,{dataSource:Yn==null?void 0:Yn.photos,right:21,col:4,wrapWidth:1140}))))},ni=ae(94537),gt=ae(59301),vn=Object.defineProperty,Ut=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,Hr=(Yn,Vn,Mr)=>Vn in Yn?vn(Yn,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):Yn[Vn]=Mr,zr=(Yn,Vn)=>{for(var Mr in Vn||(Vn={}))hn.call(Vn,Mr)&&Hr(Yn,Mr,Vn[Mr]);if($t)for(var Mr of $t(Vn))Nn.call(Vn,Mr)&&Hr(Yn,Mr,Vn[Mr]);return Yn},Ai=(Yn,Vn)=>Ut(Yn,dn(Vn)),hr=(Yn,Vn)=>{var Mr={};for(var Tn in Yn)hn.call(Yn,Tn)&&Vn.indexOf(Tn)<0&&(Mr[Tn]=Yn[Tn]);if(Yn!=null&&$t)for(var Tn of $t(Yn))Vn.indexOf(Tn)<0&&Nn.call(Yn,Tn)&&(Mr[Tn]=Yn[Tn]);return Mr},nr=(Yn,Vn,Mr)=>new Promise((Tn,mn)=>{var tr=kr=>{try{ar(Mr.next(kr))}catch(vi){mn(vi)}},or=kr=>{try{ar(Mr.throw(kr))}catch(vi){mn(vi)}},ar=kr=>kr.done?Tn(kr.value):Promise.resolve(kr.value).then(tr,or);ar((Mr=Mr.apply(Yn,Vn)).next())});function ir(Yn){const Vn=(mn,tr)=>{if(mn.localName===tr)return mn;for(let or=0,ar=mn;ar=ar.parentNode;or++){if(ar.localName===tr)return ar;if(ar==document.documentElement)return!1}},Mr=Yn.target,Tn=Vn(Mr,"a");if(console.log([Tn],Tn==null?void 0:Tn.href,44),!(Tn!=null&&Tn.href)&&Mr.tagName.toUpperCase()==="IMG"){let mn=Mr.src||Mr.getAttribute("src");mn&&mn.indexOf("/images/avatars/User")===-1&&(Yn.stopPropagation(),Yn.preventDefault(),Vt.Z.publish("preview-image",mn))}}const Yr=Yn=>{var Vn=Yn,{shixunHomeworks:Mr,classroomList:Tn,globalSetting:mn,loading:tr,user:or,dispatch:ar}=Vn,kr=hr(Vn,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),vi,qr,Li,_i;const[ri,hi]=(0,x.useState)(zr({},(0,Ue.useParams)())),ro=(0,Ue.useParams)(),[ki,bi]=(0,x.useState)({page:1,page_size:10}),Ni=(0,Ue.useLocation)(),[]=(0,x.useState)([]),[oo,Di]=(0,x.useState)(),yo=(0,x.useRef)(),Ji=(0,x.useRef)(),[po,ho]=(0,x.useState)(!1),[Jo,xo]=(0,x.useState)(!0),[no,Do]=(0,x.useState)(!1),[Zo,jo]=(0,x.useState)(!1),{shixunWorkReport:Cn}=Mr,[Vi,Ur]=(0,x.useState)(),[Vr,ci]=(0,x.useState)([]),[Zr,Qi]=(0,x.useState)(),[eo,Rr]=(0,x.useState)("all"),ai=(0,ot.GJ)(),[Fi,Ri]=(0,x.useState)(new(ze())),[Mo,ui]=(0,x.useState)(0),[Zi,Wo]=(0,x.useState)(!1),[Xo,ra]=(0,x.useState)(!1),[Qo,qo]=(0,x.useState)(!1),[Yo,Ba]=(0,x.useState)(""),[ls,Ma]=(0,x.useState)(!1),[Na,$a]=(0,x.useState)(!0),[_o,Fo]=(0,x.useState)(0),Ea=(0,x.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),us=(0,x.useRef)(),[sl,qs]=(0,x.useState)(!1),[ll,su]=(0,x.useState)(!1),Bl=(0,x.useRef)(null),el={required:{tag:"\u5FC5\u505A",color:"#1B8565"},optional:{tag:"\u9009\u505A",color:"#1E96F4"},hidden:{tag:"\u4E0D\u505A",color:"#5F6368"}},Wl=()=>nr(void 0,null,function*(){(or.userInfo.is_teacher||or.userInfo.admin)&&(Ma(!0),$a(!1))});(0,x.useEffect)(()=>{var Hi;(0,ot.Rm)()&&Tn.AssistantObject.practice&&!((Hi=Tn.AssistantObject.practice)!=null&&Hi.can_view)&&Ue.history.replace("/403")},[(vi=Tn.AssistantObject.practice)==null?void 0:vi.can_view]),(0,x.useEffect)(()=>{Wl(),console.log("\u6253\u5370\u7684------",Cn),us.current=Cn==null?void 0:Cn.next_student_work_id,Ba(Cn.repeat_minus_score)},[Cn,or]),(0,x.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Cn.work_score),Fo(Cn.work_score)},[Cn.work_score,Yo]),(0,x.useEffect)(()=>(ar({type:"globalSetting/footerToggle",payload:!1}),()=>{ar({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,x.useEffect)(()=>{if(Bl.current)return Bl.current.addEventListener("mousedown",ir),()=>{var Hi;(Hi=Bl.current)==null||Hi.removeEventListener("mousedown",ir)}},[Bl.current]),(0,x.useEffect)(()=>{setTimeout(()=>{Bl.current&&Bl.current.clientHeight>=500&&su(!0)},500)},[(qr=Cn==null?void 0:Cn.student_work_test_result_info)==null?void 0:qr.content,Bl.current]),(0,x.useEffect)(()=>{var Hi;if(Cn){let ia=[];(Hi=Cn==null?void 0:Cn.target_test_sets)==null||Hi.map((Ta,ks)=>{var pu;(pu=Ta==null?void 0:Ta.targets)==null||pu.map((Hs,Kc)=>{var Vu;Hs.name=Ta==null?void 0:Ta.name,Hs.total_target_score=Ta==null?void 0:Ta.total_target_score,Hs.actual_target_score=Ta==null?void 0:Ta.actual_target_score,Hs.rowSpan=Kc===0?(Vu=Ta==null?void 0:Ta.targets)==null?void 0:Vu.length:0,Hs.order=ks+1,ia.push(Hs)})}),Ur(ia),(0,ot.Rm)()&&ar({type:"classroomList/getAssistantPermissions",payload:{course_id:ri.coursesId}})}},[Cn]),(0,x.useEffect)(()=>{Mr.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(Cn==null?void 0:Cn.students_count)>0&&!Jo&&setTimeout(()=>{ha("all")},800)},[Cn==null?void 0:Cn.homework_common_id,Jo]),(0,x.useEffect)(()=>{hi(zr({},ro))},[Ni.pathname]);const xu=()=>{document.body.scrollIntoView()},Nu=Hi=>{ki.page=Hi,bi(zr({},ki)),Gs(ki,eo)},Gs=(Hi,ia)=>nr(void 0,null,function*(){Do(!0);const Ta=yield(0,Ie.ZP)(`/api/student_works/${ri==null?void 0:ri.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:Ai(zr({},Hi),{challenge_id:ia=="all"?null:ia})});(Ta==null?void 0:Ta.status)===0&&(ci(Ta==null?void 0:Ta.list),Qi(Ta==null?void 0:Ta.count)),Do(!1)});function mc(){return nr(this,null,function*(){Ea.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const gc=()=>{document.querySelectorAll("canvas").forEach(Hi=>{(!Hi.clientWidth||!Hi.clientHeight)&&Hi.remove()})},ga=()=>{yo.current.offsetHeight>62e3?jo(!1):jo(!0)},La=Hi=>nr(void 0,null,function*(){const ia=yield(0,Ti.t1)({homeworkId:Hi||ri.homeworkId});Di(ia==null?void 0:ia.data)}),ha=Hi=>nr(void 0,null,function*(){var ia,Ta,ks,pu;qs(!0);let Hs=0,Kc;Kc=he.default.info({width:460,title:gt.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",gt.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:gt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",gt.createElement("span",{className:"c-blue"},Hs+1),"/",Hi!=="all"?1:Cn==null?void 0:Cn.students_count,gt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:He.modal,onOk:()=>{}});const Vu={margin:[0,0],filename:`${Cn!=null&&Cn.student_id&&(Cn==null?void 0:Cn.student_id)!="--"?Cn==null?void 0:Cn.student_id:""}${Cn.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},rc=Fi.folder(Cn==null?void 0:Cn.shixun_name);function vs(Bu){return nr(this,null,function*(){yield La(Bu||us.current);const Ms=yield ar({type:"shixunHomeworks/getShixunWorkReport",payload:zr({homeworkId:Bu||us.current},Ea.current||{})});us.current=Ms==null?void 0:Ms.next_student_work_id,xu(),Hs++,setTimeout(()=>nr(this,null,function*(){var _A,El,kl,Vl;gc();const vl=rc.folder(`${Ms==null?void 0:Ms.group_name}`).folder(`${Ms!=null&&Ms.student_id&&(Ms==null?void 0:Ms.student_id)!="--"?Ms.student_id+"+":""}${Ms==null?void 0:Ms.username}`),mu=document.querySelector("#export-all").children;let jl=io()();for(let Us=0;Us<mu.length;Us++)yield jl.set(Vu).from(mu[Us]).toContainer().toCanvas().toPdf().get("pdf").then(tl=>nr(this,null,function*(){Us<mu.length-1&&(yield tl.addPage())}));if(vl.file(`${Ms!=null&&Ms.student_id&&(Ms==null?void 0:Ms.student_id)!="--"?Ms.student_id+"+":""}${Ms==null?void 0:Ms.username}.pdf`,jl.output("blob")),((_A=Ms==null?void 0:Ms.shixun_detail)==null?void 0:_A.length)>0&&((kl=(El=Ms==null?void 0:Ms.shixun_detail)==null?void 0:El.filter(Us=>{var tl;return((tl=Us==null?void 0:Us.game_codes)==null?void 0:tl.length)>0}))==null?void 0:kl.length)>0){const Us=vl.folder("\u4EE3\u7801\u6587\u4EF6");(Vl=Ms==null?void 0:Ms.shixun_detail)==null||Vl.map((tl,KA)=>{var $A,Xl;if((($A=tl==null?void 0:tl.game_codes)==null?void 0:$A.length)>0){const Eu=Us.folder(`\u7B2C${KA+1}\u5173-${tl.subject}-${tl.id}`);(Xl=tl==null?void 0:tl.game_codes)==null||Xl.map(Sa=>{Eu.file(`${Sa.filename}.txt`,Sa==null?void 0:Sa.content)})}})}Kc.update({content:gt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",gt.createElement("span",{className:"c-blue"},Hs),"/",Ms==null?void 0:Ms.students_count,gt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Hs==(Ms==null?void 0:Ms.students_count)?(Kc.destroy(),va()):vs()}),2200)})}if(Hi!=="all"||(Cn==null?void 0:Cn.students_count)<2){gc(),xu();const Bu=Ji.current.children;let Ms=io()();const El=rc.folder(`${Cn==null?void 0:Cn.group_name}`).folder(`${Cn!=null&&Cn.student_id&&(Cn==null?void 0:Cn.student_id)!="--"?(Cn==null?void 0:Cn.student_id)+"+":""}${Cn==null?void 0:Cn.username}`);for(let kl=0;kl<Bu.length;kl++)yield Ms.set(Vu).from(Bu[kl]).toContainer().toCanvas().toPdf().get("pdf").then(Vl=>nr(void 0,null,function*(){kl<Bu.length-1&&(yield Vl.addPage())}));if(ho(!1),El.file(`${Cn!=null&&Cn.student_id&&(Cn==null?void 0:Cn.student_id)!="--"?(Cn==null?void 0:Cn.student_id)+"+":""}${Cn.username}.pdf`,Ms.output("blob"),{base64:!1}),((ia=Cn==null?void 0:Cn.shixun_detail)==null?void 0:ia.length)>0&&((ks=(Ta=Cn==null?void 0:Cn.shixun_detail)==null?void 0:Ta.filter(kl=>{var Vl;return((Vl=kl==null?void 0:kl.game_codes)==null?void 0:Vl.length)>0}))==null?void 0:ks.length)>0){const kl=El.folder("\u4EE3\u7801\u6587\u4EF6");(pu=Cn==null?void 0:Cn.shixun_detail)==null||pu.map((Vl,NA)=>{var vl,mu;if(((vl=Vl==null?void 0:Vl.game_codes)==null?void 0:vl.length)>0){const jl=kl.folder(`\u7B2C${NA+1}\u5173-${Vl.subject}-${Vl.id}`);(mu=Vl==null?void 0:Vl.game_codes)==null||mu.map(Us=>{jl.file(`${Us.filename}.txt`,Us==null?void 0:Us.content)})}})}Kc.destroy(),va();return}else vs(Cn==null?void 0:Cn.first_student_work_id)}),va=()=>{Fi.generateAsync({type:"blob"}).then(function(Hi){console.log(Cn,"shixunWorkReport");const ia=document.createElement("a");ia.href=window.URL.createObjectURL(Hi),ia.download=(Cn==null?void 0:Cn.shixun_name)+".zip",document.body.appendChild(ia);const Ta=document.createEvent("MouseEvents");Ta.initEvent("click",!1,!1),ia.dispatchEvent(Ta),document.body.removeChild(ia),Ri(new(ze()))}),jo(!1)};(0,x.useEffect)(()=>{ts()},[ri.homeworkId]);const ts=()=>nr(void 0,null,function*(){xo(!0),yield ar({type:"shixunHomeworks/getShixunWorkReport",payload:zr(zr({},ri),Ea.current||{})}),La(),(0,ot.GJ)()&&mc(),xo(!1)}),Ya=[{title:"\u5173\u5361",width:50,dataIndex:"name",render:(Hi,ia,Ta)=>Ta+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Hi,ia,Ta)=>gt.createElement("div",null,Hi,ia.complete_status===4&>.createElement(pt.vA,{status:ia.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(Hi,ia,Ta)=>Hi||"- -"},{title:"\u5173\u5361\u8981\u6C42",dataIndex:"status",render:Hi=>{var ia,Ta;return gt.createElement("span",{style:{color:(ia=el[Hi])==null?void 0:ia.color}},(Ta=el[Hi])==null?void 0:Ta.tag)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",render:Hi=>Hi?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(Hi,ia)=>gt.createElement("div",null,gt.createElement("span",{style:{color:parseFloat(ia.myself_experience)!==parseFloat(Hi)?"red":"green"}},ia.myself_experience),"/",Hi)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(Hi,ia)=>gt.createElement("div",null,gt.createElement("span",{style:{color:parseFloat(ia.game_score_full)!==parseFloat(Hi)?"red":"green"}},Hi),"/",ia.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(Hi,ia)=>ai?gt.createElement(at,{style:{width:80},max:ia.game_score_full,defaultValue:parseFloat(Hi),onBlur:Ta=>nr(void 0,null,function*(){var ks;if((0,ot.Rm)()&&!((ks=Tn.AssistantObject.practice)!=null&&ks.can_appraise)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const pu=yield ar({type:"shixunHomeworks/changeScore",payload:{categoryId:ri.homeworkId,type:"report",score:Ta,challenge_id:ia.challenge_id}});Gs({page:1,page_size:10},"all"),yield ar({type:"shixunHomeworks/getShixunWorkReport",payload:zr(zr({},ri),Ea.current||{})}),pu.status===0&&xe.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Hi}];let Ga=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(Hi,ia,Ta)=>({children:Hi,props:{rowSpan:ia.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(Hi,ia,Ta)=>({children:Hi,props:{rowSpan:ia.rowSpan}})},{title:"\u6307\u6807\u540D\u79F0",dataIndex:"target_name",key:"target_name"},{title:"\u6307\u6807\u9884\u671F\u7ED3\u679C",dataIndex:"output",key:"output"},{title:"\u6307\u6807\u5B9E\u9645\u7ED3\u679C",dataIndex:"actual_output",key:"actual_output"},{title:"\u6307\u6807\u5F97\u5206",dataIndex:"test_score",key:"test_score",render:(Hi,ia,Ta)=>gt.createElement("div",null,gt.createElement("span",{style:{color:parseFloat(ia.actual_test_score)!==parseFloat(Hi)?"red":"green"}},ia.actual_test_score),"/",Hi)},{title:"\u6307\u6807\u603B\u5206",render:(Hi,ia,Ta)=>({children:gt.createElement("div",null,gt.createElement("span",{style:{color:parseFloat(ia.actual_target_score)!==parseFloat(Hi)?"red":"green"}},ia.actual_target_score),"/",Hi),props:{rowSpan:ia.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Gl=[{title:"\u5173\u5361",dataIndex:"challenge_num",width:220},{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"]},{title:"\u8C03\u5206\u524D",dataIndex:"old_score"},{title:"\u8C03\u5206\u540E",dataIndex:"score"},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",render:Hi=>gt.createElement("span",null,Hi?Le()(Hi).format("YYYY-MM-DD HH:mm"):"--")}],lu=Hi=>{ar({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Hi==="next"?Ue.history.push(`/classrooms/${ri.coursesId}/shixun_homework/${ri.categoryId}/${Cn==null?void 0:Cn.next_student_work_id}/comment`):Ue.history.push(`/classrooms/${ri.coursesId}/shixun_homework/${ri.categoryId}/${Cn==null?void 0:Cn.pre_student_work_id}/comment`)},200)},Tl=Hi=>{Ba(""),Hi.target.value&&(console.log("\u8FDB\u6765",Cn),Hi.target.value=Hi.target.value>Cn.repeat_setting_score?Cn.repeat_setting_score:Hi.target.value,Ba(Hi.target.value))},Ou=()=>nr(void 0,null,function*(){const Hi=yield(0,Ie.ZP)(`/api/student_works/${Cn==null?void 0:Cn.work_id}/update_repeat_score`,{method:"put",body:{score:Yo}});yield ar({type:"shixunHomeworks/getShixunWorkReport",payload:zr(zr({},ri),Ea.current||{})}),Hi.status===0&&xe.ZP.info("\u64CD\u4F5C\u6210\u529F")});return gt.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},gt.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},gt.createElement(oe.Z,{loading:tr["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},gt.createElement("div",{className:"edu-container"},Cn.course_id&>.createElement("section",{className:"animated fadeIn"},gt.createElement("aside",{className:""},Cn.category&>.createElement(Oe.Z,{separator:">"},gt.createElement(Oe.Z.Item,null,gt.createElement(Ue.Link,{to:`/classrooms/${Cn.course_id}/shixun_homework`},Cn.course_name)),gt.createElement(Oe.Z.Item,null,gt.createElement(Ue.Link,{to:`/classrooms/${Cn.course_id}/shixun_homework/${Cn.category.main?"":Cn.category.category_id}`},Cn.category.category_name)),gt.createElement(Oe.Z.Item,null,gt.createElement(Ue.Link,{to:`/classrooms/${Cn.course_id}/shixun_homework/${Cn.homework_common_id}/detail${(0,ot.dE)()?"?tabs=1":""}`},"\u4F5C\u4E1A\u8BE6\u60C5")),gt.createElement(Oe.Z.Item,null,Cn.username))),gt.createElement("aside",{className:[He.title1,"mt20"].join(" ")},gt.createElement(ve.Z,{align:"middle"},gt.createElement(Me.Z,{flex:1},gt.createElement(Ue.Link,{to:`/classrooms/${Cn.course_id}/shixun_homework/${Cn.homework_common_id}/detail`},gt.createElement(Qe.Z,{className:"font16 c-black"})),gt.createElement("strong",{className:"font20 ml5"},Cn==null?void 0:Cn.homework_name),gt.createElement(pt.VV,{temporary:!0,status:Cn.homework_status})),gt.createElement(Me.Z,{className:He.title1_right},Cn.view_tpi&>.createElement(Se.ZP,{onClick:()=>{var Hi,ia;(0,pt.xg)(`/tasks/${Cn==null?void 0:Cn.course_id}/${Cn==null?void 0:Cn.homework_common_id}/${(ia=(Hi=Cn==null?void 0:Cn.shixun_detail)==null?void 0:Hi[0])==null?void 0:ia.game_identifier}`)}},gt.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,ot.GJ)()&&Cn.homework_end===!1&&!!Cn.myshixun_id&>.createElement(Se.ZP,{className:"ml10",onClick:()=>nr(void 0,null,function*(){yield ar({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:Cn.myshixun_identifier},homework_common_id:ro.categoryId}})})},gt.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),gt.createElement(Se.ZP,{className:"ml10",onClick:()=>{var Hi,ia;if(!(!(Cn!=null&&Cn.is_old_data_for_time)&&(Cn==null?void 0:Cn.user_id)!==((Hi=or==null?void 0:or.userInfo)==null?void 0:Hi.user_id)&&(0,pt.Ye)(ar))){if((0,ot.Rm)()&&!((ia=Tn.AssistantObject.practice)!=null&&ia.can_download)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ha("")}},loading:po},gt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,ot.GJ)()&&(Cn==null?void 0:Cn.students_count)>1&>.createElement(Se.ZP,{className:"ml10",onClick:()=>{var Hi;if(!(!(Cn!=null&&Cn.is_old_data_for_time)&&(0,pt.Ye)(ar))){if((0,ot.Rm)()&&!((Hi=Tn.AssistantObject.practice)!=null&&Hi.can_download)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}he.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:gt.createElement(Te.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:gt.createElement(Te.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{ha("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,ni.jj)({categoryId:ri.categoryId,coursesId:ri.coursesId},"shixun_report")}}})}}},gt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),gt.createElement("aside",{className:"mt30 relative"})),gt.createElement("aside",{className:"edu-container bg-white",ref:yo},gt.createElement("div",{id:"export-all",ref:Ji},gt.createElement("div",{id:"export-all-1"},gt.createElement("div",{className:He.title},gt.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),gt.createElement("div",null,(0,ot.GJ)()&>.createElement(Se.ZP,{className:"mr20",type:"primary",onClick:()=>{ar({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Cn.user_id,data:zr({},Cn)},fn:()=>Gs({page:1,page_size:10},"all")}})}},gt.createElement(je.Z,null),Cn.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),gt.createElement(we.Z,{style:{marginTop:0}}),gt.createElement(ve.Z,{className:"pl30 pr30"},gt.createElement(Me.Z,null,gt.createElement("img",{className:He.userPic,src:`${ct.Z.IMG_SERVER}/images/${Cn.image_url}`,alt:Cn.username})),gt.createElement(Me.Z,null,gt.createElement("span",{className:"font16 ml40"},Cn.username),gt.createElement(pt.vA,{status:Cn.compelete_status}),gt.createElement("ul",{className:He.userInfo},gt.createElement("li",null,"\u5B66\u53F7\uFF1A",Cn.student_id||"--"),gt.createElement("li",null,"\u5206\u73ED\uFF1A",Cn.group_name||"--"),gt.createElement("br",null),gt.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",gt.createElement("span",{className:"c-red"},Cn.complete_count),"/",gt.createElement("span",{className:"c-red"},Cn.checked_challenge_count)),gt.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",gt.createElement("span",{className:"c-red"},Cn.current_complete_count||"-"),"/",gt.createElement("span",{className:"c-red"},Cn.checked_challenge_count)),gt.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",Cn&&Cn.efficiency===null?"--":Cn&&Cn.efficiency),gt.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",Cn&&Cn.max_efficiency===null?"--":Cn&&Cn.max_efficiency))),gt.createElement("ul",{className:[He.listItem,"mt10"].join(" ")},gt.createElement("li",null,gt.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),gt.createElement("div",{className:"c-light-black mt20"},Cn&&Cn.passed_time===null||Cn&&Cn.passed_time==="--"?"--":Le()(Cn&&Cn.passed_time).format("YYYY-MM-DD HH:mm"))),gt.createElement("li",null,gt.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",gt.createElement("i",{onClick:Hi=>{Hi.stopPropagation(),Hi.preventDefault(),Wo(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),gt.createElement("div",{className:"c-light-black mt20"},Cn==null?void 0:Cn.human_training_time_rules)),gt.createElement("li",null,gt.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",gt.createElement("i",{onClick:Hi=>{Hi.stopPropagation(),Hi.preventDefault(),ra(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),gt.createElement("div",{className:"c-light-black mt20"},Cn.time_consuming)),gt.createElement("li",null,gt.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),gt.createElement("div",{className:"mt20"},Cn.evaluate_count)),(Cn==null?void 0:Cn.eff_score_full)&>.createElement(gt.Fragment,null,gt.createElement("li",null,gt.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),gt.createElement("div",{className:"mt20"},gt.createElement("span",{className:"c-orange"},Cn.challenge_score),"/",gt.createElement("span",{className:"c-light-black"},Cn.challenge_score_full))),gt.createElement("li",null,gt.createElement("strong",null,"\u6548\u7387\u5206"),gt.createElement("div",{className:"mt20"},gt.createElement("span",{className:"c-orange"},Cn.eff_score),"/",gt.createElement("span",{className:"c-light-black"},Cn.eff_score_full)))),(Cn==null?void 0:Cn.have_repeat)&&(Cn==null?void 0:Cn.repeat_minus_score)!==0&>.createElement("li",{style:{position:"relative"}},gt.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},gt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),gt.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},Cn!=null&&Cn.review_rate?gt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(Cn!=null&&Cn.review_id&&ls)localStorage.setItem("studentDetial",window.location.pathname),Ue.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${ri.categoryId}/review_detail/${Cn==null?void 0:Cn.review_id}`});else return}},Cn.review_rate.toFixed(1),"%"):gt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),ls?gt.createElement("div",{className:"mt20"},gt.createElement(Ce.default,{style:{width:"45px",height:"22px"},value:Yo,onChange:Hi=>{Tl(Hi)},onBlur:Ou,disabled:Na})," / ",Cn==null?void 0:Cn.repeat_setting_score):gt.createElement("div",{className:"mt20"},Cn==null?void 0:Cn.repeat_minus_score," / ",Cn==null?void 0:Cn.repeat_setting_score)),console.log("sssssssssssssssssssssss",Cn==null?void 0:Cn.have_repeat,Cn==null?void 0:Cn.repeat_minus_score),(Cn==null?void 0:Cn.have_repeat)&&(Cn==null?void 0:Cn.repeat_minus_score)===0&>.createElement("li",null,gt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),gt.createElement("div",{className:"mt20"}," - -")),!(Cn!=null&&Cn.have_repeat)&>.createElement("li",null,gt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),gt.createElement("div",{className:"mt20"}," - -")),gt.createElement("li",null,gt.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),gt.createElement("div",{className:"mt20"},gt.createElement("span",null,Cn.late_penalty||"- -"))),Cn.extra_score>0&>.createElement("li",null,gt.createElement("strong",null,"\u9644\u52A0\u5F97\u5206"),gt.createElement("div",{className:"mt20"},gt.createElement("span",null,Cn.extra_score||"- -"))),gt.createElement("li",null,gt.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),gt.createElement("div",{className:"mt20"},gt.createElement("span",{className:"c-orange"},_o),"/",gt.createElement("span",{className:"c-light-black"},Cn.all_work_score))),gt.createElement("li",null,gt.createElement("strong",null,"\u603B\u8BC4"),gt.createElement("div",{className:"mt20"},gt.createElement("span",{className:"c-orange"},Cn.overall_appraisal))))),gt.createElement(we.Z,{style:{margin:0}}),(Cn.work_comment_hidden||Cn.work_comment)&>.createElement("div",null,gt.createElement(ve.Z,{align:"middle"},gt.createElement(Me.Z,{flex:1},gt.createElement("h1",{className:He.title},"\u70B9\u8BC4\u5185\u5BB9")),gt.createElement(Me.Z,{className:"pr30"},(0,ot.GJ)()&>.createElement(Se.ZP,{onClick:()=>nr(void 0,null,function*(){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:gt.createElement(Je.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return nr(this,null,function*(){(yield(0,Ti.gZ)({comment_id:Cn.comment_id,homeworkId:ri.homeworkId})).status===0&&(xe.ZP.success("\u5220\u9664\u6210\u529F"),ar({type:"shixunHomeworks/getShixunWorkReport",payload:zr(zr({},ri),Ea.current||{})}))})}})})},gt.createElement(Ve.Z,null),"\u5220\u9664"))),gt.createElement(we.Z,{style:{margin:0}}),Cn.work_comment&>.createElement("aside",{className:"pl30 pr30 mt20"},gt.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),gt.createElement("br",null),gt.createElement(xt.Z,{value:Cn.work_comment})),Cn.work_comment_hidden&>.createElement("aside",{className:"pl30 pr30 mt20"},gt.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),gt.createElement("br",null),gt.createElement(xt.Z,{value:Cn.work_comment_hidden}))),(Cn==null?void 0:Cn.action_analysis)&>.createElement(gi,{detailData:Cn}),gt.createElement("div",{className:He.score},gt.createElement("h1",{className:He.title},"\u9636\u6BB5\u6210\u7EE9"),(Cn==null?void 0:Cn.adjust_review_score_count)>0&&(0,ot.GJ)()&>.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{qo(!0),Gs({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",Cn==null?void 0:Cn.adjust_review_score_count,"\u6B21\uFF09")),gt.createElement("aside",{className:"pl30 pr30"},gt.createElement(Ee.default,{dataSource:Cn.stage_list,rowKey:Hi=>Hi==null?void 0:Hi.challenge_id,pagination:!1,columns:Ya})),((Li=Cn==null?void 0:Cn.target_test_sets)==null?void 0:Li.length)>0&>.createElement("div",null,gt.createElement("h1",{className:He.title},"\u6307\u6807\u6210\u7EE9"),gt.createElement("aside",{className:"pl30 pr30"},gt.createElement(Ee.default,{dataSource:Vi,rowKey:Hi=>Hi==null?void 0:Hi.challenge_id,pagination:!1,bordered:!0,columns:Ga}))),(Cn==null?void 0:Cn.work_description)&>.createElement(gt.Fragment,null,gt.createElement("h1",{className:He.title},"\u4E2A\u4EBA\u603B\u7ED3"),gt.createElement("aside",{className:"pl30 pr30"},gt.createElement(xt.Z,{value:Cn==null?void 0:Cn.work_description}))),gt.createElement("h1",{className:He.title},"\u56FE\u5F62\u7EDF\u8BA1"),gt.createElement(Re,{data:oo}),(Cn==null?void 0:Cn.is_open_submit_test_result)&>.createElement(gt.Fragment,null),gt.createElement("h1",{className:He.title},"\u5B9E\u8BAD\u8BE6\u60C5")),gt.createElement(ti,{autoHeight:Zo}))),(0,ot.GJ)()&>.createElement("aside",{className:`${He.footerBar} ${po?He.footerBarStatic:""}`},gt.createElement("aside",{className:"edu-container"},gt.createElement(ve.Z,{align:"middle"},gt.createElement(Me.Z,{flex:"1"},gt.createElement(Ue.Link,{className:He.exitComment,to:`/classrooms/${ri.coursesId}/shixun_homework/${ri.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),gt.createElement(Me.Z,{flex:"1",className:"tr"},gt.createElement(Se.ZP,{type:"default",disabled:!(Cn!=null&&Cn.pre_student_work_id),onClick:()=>lu()},"\u4E0A\u4E00\u4E2A"),gt.createElement(Se.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(Cn!=null&&Cn.next_student_work_id),onClick:()=>lu("next")},"\u4E0B\u4E00\u4E2A"),(0,ot.GJ)()&>.createElement(Se.ZP,{type:"primary",onClick:()=>nr(void 0,null,function*(){ar({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Cn.user_id,data:zr({},Cn)},fn:()=>Gs({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),gt.createElement(di,null),gt.createElement(fi.Z,null),gt.createElement(he.default,{open:Zi,width:860,centered:!0,onCancel:()=>{Wo(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},gt.createElement("div",{style:{color:"#333333",fontWeight:400}},gt.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),gt.createElement("br",null),gt.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),gt.createElement("br",null),gt.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),gt.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),gt.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),gt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},gt.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),gt.createElement("br",null),gt.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),gt.createElement("br",null),gt.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),gt.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),gt.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),gt.createElement("br",null),gt.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),gt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},gt.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),gt.createElement("br",null),gt.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),gt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},gt.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),gt.createElement("br",null),gt.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),gt.createElement(he.default,{open:Xo,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{ra(!1)},width:600},gt.createElement("div",{style:{fontWeight:400,color:"#333333"}},gt.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",gt.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5FC5\u505A\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),gt.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",gt.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5FC5\u505A\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),gt.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",gt.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))),gt.createElement(he.default,{open:Qo,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{Rr("all"),qo(!1)},destroyOnClose:!0,width:900},gt.createElement("div",{style:{fontWeight:400,color:"#333333"}},gt.createElement("div",null,gt.createElement("span",null,"\u5173\u5361\uFF1A"),gt.createElement(ke.default,{style:{width:300},value:eo,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:Hi=>nr(void 0,null,function*(){Rr(Hi),Gs({page:1,page_size:10},Hi)})},gt.createElement(ke.default.Option,{value:"all"}," \u5168\u90E8 "),(_i=Cn==null?void 0:Cn.stage_list)==null?void 0:_i.map((Hi,ia)=>gt.createElement(ke.default.Option,{key:ia,value:Hi==null?void 0:Hi.challenge_id},"\u7B2C",(0,pt.EM)(ia+1),"\u5173")))),gt.createElement("div",{className:"mt20"},gt.createElement(Ee.default,{dataSource:Vr,rowKey:Hi=>Hi==null?void 0:Hi.id,pagination:!1,columns:Gl,loading:no})),gt.createElement("div",{className:He.footer},gt.createElement("div",null,gt.createElement("span",{style:{color:"#656F87"}},"\u5171",gt.createElement("span",{className:"c-light-primary"},Zr),"\u6761\u6570\u636E")),gt.createElement(Ke.Z,{defaultCurrent:1,defaultPageSize:10,current:(ki==null?void 0:ki.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:Zr,onChange:Nu})))))};var Mi=(0,Ue.connect)(({shixunHomeworks:Yn,classroomList:Vn,loading:Mr,globalSetting:Tn,user:mn})=>({shixunHomeworks:Yn,classroomList:Vn,globalSetting:Tn,loading:Mr.effects,user:mn}))(Yr)},78912:function(qn,Mt,ae){"use strict";var x=ae(62957),dt=ae(6767),Le=ae(58661),qe=ae(44225),ze=ae(36466),Ie=ae(59301),Ue=(xe,oe,Oe)=>new Promise((ve,Me)=>{var Se=Ce=>{try{we(Oe.next(Ce))}catch(Ee){Me(Ee)}},Te=Ce=>{try{we(Oe.throw(Ce))}catch(Ee){Me(Ee)}},we=Ce=>Ce.done?ve(Ce.value):Promise.resolve(Ce.value).then(Se,Te);we((Oe=Oe.apply(xe,oe)).next())});const he=({shixunHomeworks:xe,classroomList:oe,dispatch:Oe})=>{const ve=(0,qe.useParams)();return Ie.createElement(x.default,{centered:!0,title:"\u63D0\u793A",open:xe.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ue(void 0,null,function*(){var Me,Se,Te,we;if((0,ze.Rm)()&&!((Me=oe.AssistantObject.practice)!=null&&Me.can_redo)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Ce=yield(0,Le.ZP)(`/api/myshixuns/${xe.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:ve.coursesId,homework_common_id:xe.actionTabs.homework_common_id}});if(Ce.shixun_identifier){dt.ZP.success("\u64CD\u4F5C\u6210\u529F"),Oe({type:"shixunHomeworks/setActionTabs",payload:{}});const Ee=(Te=(Se=Ce==null?void 0:Ce.new_works)==null?void 0:Se.find(ke=>`${ke.homework_common_id}`===ve.categoryId))==null?void 0:Te.id;if((0,ze.Rm)()&&!((we=oe.AssistantObject.practice)!=null&&we.can_view))return;qe.history.replace(`/classrooms/${ve.coursesId}/shixun_homework/${ve.categoryId}/${Ee}/comment`)}}),onCancel:()=>{Oe({type:"shixunHomeworks/setActionTabs",payload:{}})}},Ie.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Ie.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};Mt.Z=(0,qe.connect)(({shixunHomeworks:xe,classroomList:oe})=>({shixunHomeworks:xe,classroomList:oe}))(he)},94537:function(qn,Mt,ae){"use strict";ae.d(Mt,{AD:function(){return Re},BA:function(){return ie},D9:function(){return ut},Hp:function(){return Je},IM:function(){return Kt},Iy:function(){return ct},KM:function(){return pe},KU:function(){return An},MJ:function(){return Ve},Ne:function(){return Zt},ON:function(){return pn},Uj:function(){return on},VY:function(){return jt},YO:function(){return En},YX:function(){return Pt},Zn:function(){return Te},_g:function(){return Ke},_k:function(){return Ze},c6:function(){return ht},cr:function(){return we},eV:function(){return _e},fi:function(){return Ce},gh:function(){return Ct},hS:function(){return tt},iA:function(){return Ee},j6:function(){return Qe},je:function(){return at},jj:function(){return je},kS:function(){return kt},lS:function(){return Et},o6:function(){return He},pO:function(){return de},rQ:function(){return Ot},sA:function(){return pt},xm:function(){return De},xo:function(){return Dt},y8:function(){return it},yd:function(){return ke}});var x=ae(30450),dt=ae(44225),Le=ae(85333),qe=ae(6767),ze=ae(42684),Ie=Object.defineProperty,Ue=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,oe=(ee,se,le)=>se in ee?Ie(ee,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ee[se]=le,Oe=(ee,se)=>{for(var le in se||(se={}))he.call(se,le)&&oe(ee,le,se[le]);if(Ue)for(var le of Ue(se))xe.call(se,le)&&oe(ee,le,se[le]);return ee},ve=(ee,se,le)=>new Promise((Be,We)=>{var st=St=>{try{vt(le.next(St))}catch(_t){We(_t)}},mt=St=>{try{vt(le.throw(St))}catch(_t){We(_t)}},vt=St=>St.done?Be(St.value):Promise.resolve(St.value).then(st,mt);vt((le=le.apply(ee,se)).next())});const Me=()=>{(0,dt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},Se=()=>{(0,dt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},Te=ee=>ve(void 0,null,function*(){Me(),(yield(0,x.YR)(Oe({},ee))).status===0&&(yield(0,Le.QH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/export_couser_info.json`,query:ee}))),Se()}),we=ee=>ve(void 0,null,function*(){const se=yield(0,x.yS)(Oe({},ee));if(se.status===0)qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_member_act_score`);else{if(se.status===-2)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_member_act_score`))}}),Ce=ee=>ve(void 0,null,function*(){const se=yield(0,x.W0)(Oe({},ee));if(se.status===0)qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_score`);else{if(se.status===-4)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_score`))}}),Ee=ee=>ve(void 0,null,function*(){const se=yield(0,x.Nl)(Oe({},ee));if(se.status===0)qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`);else{if(se.status===-4)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`))}}),ke=ee=>ve(void 0,null,function*(){const se=yield(0,x.IU)(Oe({},ee));if(se.status===0)qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/export_star_user`);else{if(se.status===-4)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/export_star_user`))}}),Ke=ee=>ve(void 0,null,function*(){const se=yield(0,x.td)(Oe({},ee));if(se.status===0)qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`);else{if(se.status===-2)return se;if(se.status===-3)(0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`);else if(se.status===-4)return se}}),Qe=ee=>ve(void 0,null,function*(){const se=yield(0,x.QX)(Oe({},ee));if(se.status===0)qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_homework`);else{if(se.status===-4)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_homework`))}}),je=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.o_)(Oe({},ee));le.status===0?(qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),Je=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.ZL)(Oe({},ee));le.status===0?(qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),Ve=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.vV)(Oe({},ee));le.status===0?(qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),ct=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.aP)(Oe({},ee));le.status===0?(qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),ot=ee=>ve(void 0,null,function*(){Me(),(yield exportCourseWorkListAppendix(Oe({},ee))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${ee.categoryId}/works_list.zip`,query:ee}))),Se()}),pt=ee=>ve(void 0,null,function*(){Me(),yield(0,Le.FH)("",ze.Z.API_SERVER+`/api/polls/${ee.categoryId}/commit_result.xlsx`),Se()}),Ct=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/attendances/export_xlsx_data.xlsx`,query:ee}))}),He=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/video_study_statics.xlsx`,query:ee}))}),ht=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/export_video_study.xlsx`,query:ee}))}),_e=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/export_course_students_info.xlsx`,query:ee}))}),Re=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/school_manages/students.xlsx",query:ee}))}),Ot=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/item_banks/export.xlsx",query:ee}))}),it=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:ee}))}),at=ee=>ve(void 0,null,function*(){const se=yield(0,x.Uy)(Oe({},ee));se.status===0?(qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_users`)):se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Et=ee=>ve(void 0,null,function*(){const se=yield(0,x.tg)(Oe({},ee));se.status===0?(qe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_report`)):se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_report`))}),Ze=ee=>ve(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/export_records/${ee.id}.xlsx`,query:ee}))}),De=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:ee}))}),ut=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee==null?void 0:ee.coursesId}/${ee.menuKey}_statistic.xlsx?${ee.checkedList.map(se=>`course_group_id[]=${se}`).join("&")}`,query:ee}))}),Zt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/ec_years/${ee==null?void 0:ee.ec_year_id}/ec_training_objectives.xlsx`,query:ee}))}),Kt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)(ee==null?void 0:ee.name,(0,Le.NY)({url:ze.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:ee}))}),tt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/ec_years/${ee==null?void 0:ee.ec_year_id}/ec_courses.xlsx`,query:ee}))}),Dt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/ec_years/${ee==null?void 0:ee.ec_year_id}/ec_graduation_requirements.xlsx`,query:ee}))}),jt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:ee}))}),An=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/exercises/${ee.categoryId}/rank_list.xlsx`,query:ee}))}),kt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:ee}))}),pn=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/examination_banks/${ee.id}.json`,query:ee}))}),Pt=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/exercises/${ee.categoryId}.json`,query:ee}))}),En=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/polls/${ee==null?void 0:ee.id}/commit_result.json`,query:ee}))}),on=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+"/api/paths/get_task_pass.json",query:ee}))}),de=(ee,se)=>ve(void 0,null,function*(){yield(0,Le.FH)(se||"",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/exercises/${ee==null?void 0:ee.exercise_id}/consult_exercise.json`,query:ee}))}),pe=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/competitions/${ee==null?void 0:ee.identifier}/competition_commit_records/member_works.xlsx`,query:ee}))}),ie=ee=>ve(void 0,null,function*(){yield(0,Le.FH)("",(0,Le.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee==null?void 0:ee.coursesId}/group_homeworks/import_group_template.xlsx`,query:ee}))})},78162:function(qn,Mt,ae){"use strict";ae.d(Mt,{U:function(){return xe}});var x=ae(59301),dt=Object.defineProperty,Le=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ie=(oe,Oe,ve)=>Oe in oe?dt(oe,Oe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):oe[Oe]=ve,Ue=(oe,Oe)=>{for(var ve in Oe||(Oe={}))qe.call(Oe,ve)&&Ie(oe,ve,Oe[ve]);if(Le)for(var ve of Le(Oe))ze.call(Oe,ve)&&Ie(oe,ve,Oe[ve]);return oe},he=(oe,Oe,ve)=>new Promise((Me,Se)=>{var Te=Ee=>{try{Ce(ve.next(Ee))}catch(ke){Se(ke)}},we=Ee=>{try{Ce(ve.throw(Ee))}catch(ke){Se(ke)}},Ce=Ee=>Ee.done?Me(Ee.value):Promise.resolve(Ee.value).then(Te,we);Ce((ve=ve.apply(oe,Oe)).next())});function xe(oe,Oe){const[ve,Me]=(0,x.useState)(Oe),[Se,Te]=(0,x.useState)(!1),[we,Ce]=(0,x.useState)();return[ve,Se,(ke,Ke=!1)=>he(this,null,function*(){const Qe=Ke?Oe:Ue(Ue({},ve),ke);Te(!0),Me(Qe);const je=yield oe(Qe);return Te(!1),Ce(je),je}),we,Ce]}},34813:function(qn,Mt,ae){"use strict";ae.d(Mt,{AL:function(){return Qe},Iy:function(){return Oe},Qv:function(){return Se},ez:function(){return Ke},jb:function(){return ve}});var x=ae(32834),dt=ae.n(x),Le=ae(11690),qe=ae.n(Le);let ze=1;function Ie(ot,pt){const Ct=ot.match(/^(\s+)(?:```)/);if(Ct===null)return pt;const He=Ct[1];return pt.split(`
|
|
|
`).map(ht=>{const _e=ht.match(/^\s+/);if(_e===null)return ht;const[Re]=_e;return Re.length>=He.length?ht.slice(He.length):ht}).join(`
|
|
|
`)}let Ue=[],he=["<ul>"];const xe=new(dt()).Renderer,oe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Oe(){Ue.length=0,he=["<ul>"]}const ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Me(ot,pt,Ct,He){if(pt>=ot.length||ot[pt].level<=Ct)return pt;var ht=ot[pt];He.push("<li><a href='#"+ze+ht.anchor+"'>"+ht.text+"</a>"),pt++;var _e=[];return pt=Me(ot,pt,ht.level,_e),_e.length>0&&(He.push("<ul>"),_e.forEach(function(Re){He.push(Re)}),He.push("</ul>")),He.push("</li>"),pt=Me(ot,pt,Ct,He),pt}function Se(){return Me(Ue,0,0,he),he.push("</ul>"),he.join("")}const Te={heading(ot){const pt=oe.exec(ot);if(ze+=1,pt)return{type:"heading",raw:pt[0],depth:pt[1].length,text:pt[2]}},fences(ot){const pt=this.rules.block.fences.exec(ot);if(pt){const Ct=pt[0];let He=Ie(Ct,pt[3]||"");const ht=pt[2]?pt[2].trim():pt[2];if(["latex","katex","math"].indexOf(ht)>=0){const _e=Ee(),Re=He;He=_e,ke[_e]={type:"block",expression:Re}}return{type:"code",raw:Ct,lang:ht,text:He}}}},we=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ce=0;const Ee=()=>`__special_katext_id_${Ce++}__`;let ke={};function Ke(){return ke}function Qe(){Ce=0,ke={}}function je(ot){return ot=ot.replace(we,(pt,Ct)=>{const He=Ee();return ke[He]={type:"inline",expression:Ct},He}),ot}const Je=xe.listitem;xe.listitem=function(ot){return Je(je(ot))};const Ve=xe.paragraph;xe.paragraph=function(ot){return Ve(je(ot))};const ct=xe.tablecell;xe.tablecell=function(ot,pt){return ct(je(ot),pt)},xe.code=function(ot,pt,Ct){const He=(pt||"").match(/\S*/)[0];return He?["latex","katex","math"].indexOf(He)>=0?`<p class='editormd-tex'>${ot}</p>`:`<pre class="prettyprint linenums"><code class="language-${pt}">${Ct?ot:(0,Le.escape)(ot,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Ct?ot:(0,Le.escape)(ot,!0))+"</code></pre>"},xe.heading=function(ot,pt,Ct){let He=this.options.headerPrefix+Ct.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ue.push({anchor:He,level:pt,text:ot}),"<h"+pt+' id="'+ze+He+'">'+ot+"</h"+pt+">"},dt().setOptions({silent:!0,gfm:!0,pedantic:!1}),dt().use({tokenizer:Te,renderer:xe}),Mt.ZP=dt()},9981:function(qn,Mt){"use strict";const ae=function(){const x=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let dt=1;dt<arguments.length;dt++){const Le=dt<0||arguments.length<=dt?void 0:arguments[dt];Le&&Object.keys(Le).forEach(qe=>{const ze=Le[qe];ze!==void 0&&(x[qe]=ze)})}return x};Mt.Z=ae},86013:function(qn,Mt,ae){"use strict";var x=ae(59301),dt=ae(19248);const Le=qe=>{let ze;return typeof qe=="object"&&(qe!=null&&qe.clearIcon)?ze=qe:qe&&(ze={clearIcon:x.createElement(dt.Z,null)}),ze};Mt.Z=Le},97224:function(qn,Mt,ae){"use strict";ae.d(Mt,{F:function(){return x}});function x(Le){return Le!=null&&Le===Le.window}const dt=Le=>{var qe,ze;if(typeof window=="undefined")return 0;let Ie=0;return x(Le)?Ie=Le.pageYOffset:Le instanceof Document?Ie=Le.documentElement.scrollTop:(Le instanceof HTMLElement||Le)&&(Ie=Le.scrollTop),Le&&!x(Le)&&typeof Ie!="number"&&(Ie=(ze=((qe=Le.ownerDocument)!==null&&qe!==void 0?qe:Le).documentElement)===null||ze===void 0?void 0:ze.scrollTop),Ie};Mt.Z=dt},83010:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return qe}});var x=ae(16089);function dt(ze,Ie,Ue,he){const xe=Ue-Ie;return ze/=he/2,ze<1?xe/2*ze*ze*ze+Ie:xe/2*((ze-=2)*ze*ze+2)+Ie}var Le=ae(97224);function qe(ze){let Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ue=()=>window,callback:he,duration:xe=450}=Ie,oe=Ue(),Oe=(0,Le.Z)(oe),ve=Date.now(),Me=()=>{const Te=Date.now()-ve,we=dt(Te>xe?xe:Te,Oe,ze,xe);(0,Le.F)(oe)?oe.scrollTo(window.pageXOffset,we):oe instanceof Document||oe.constructor.name==="HTMLDocument"?oe.documentElement.scrollTop=we:oe.scrollTop=we,Te<xe?(0,x.Z)(Me):typeof he=="function"&&he()};(0,x.Z)(Me)}},91882:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return it}});var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(11592),ze=ae(26112),Ie=ae(22703),Ue=ae(48755),he=ae(84105),xe=ae(19563);const oe=at=>{let{children:Et}=at;const{getPrefixCls:Ze}=x.useContext(Ue.E_),De=Ze("breadcrumb");return x.createElement("li",{className:`${De}-separator`,"aria-hidden":"true"},Et===""?Et:Et||"/")};oe.__ANT_BREADCRUMB_SEPARATOR=!0;var Oe=oe,ve=function(at,Et){var Ze={};for(var De in at)Object.prototype.hasOwnProperty.call(at,De)&&Et.indexOf(De)<0&&(Ze[De]=at[De]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,De=Object.getOwnPropertySymbols(at);ut<De.length;ut++)Et.indexOf(De[ut])<0&&Object.prototype.propertyIsEnumerable.call(at,De[ut])&&(Ze[De[ut]]=at[De[ut]]);return Ze};function Me(at,Et){if(at.title===void 0||at.title===null)return null;const Ze=Object.keys(Et).join("|");return typeof at.title=="object"?at.title:String(at.title).replace(new RegExp(`:(${Ze})`,"g"),(De,ut)=>Et[ut]||De)}function Se(at,Et,Ze,De){if(Ze==null)return null;const{className:ut,onClick:Zt}=Et,Kt=ve(Et,["className","onClick"]),tt=Object.assign(Object.assign({},(0,ze.Z)(Kt,{data:!0,aria:!0})),{onClick:Zt});return De!==void 0?x.createElement("a",Object.assign({},tt,{className:Le()(`${at}-link`,ut),href:De}),Ze):x.createElement("span",Object.assign({},tt,{className:Le()(`${at}-link`,ut)}),Ze)}function Te(at,Et){return(De,ut,Zt,Kt,tt)=>{if(Et)return Et(De,ut,Zt,Kt);const Dt=Me(De,ut);return Se(at,De,Dt,tt)}}var we=function(at,Et){var Ze={};for(var De in at)Object.prototype.hasOwnProperty.call(at,De)&&Et.indexOf(De)<0&&(Ze[De]=at[De]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,De=Object.getOwnPropertySymbols(at);ut<De.length;ut++)Et.indexOf(De[ut])<0&&Object.prototype.propertyIsEnumerable.call(at,De[ut])&&(Ze[De[ut]]=at[De[ut]]);return Ze};const Ce=at=>{const{prefixCls:Et,separator:Ze="/",children:De,menu:ut,overlay:Zt,dropdownProps:Kt,href:tt}=at,jt=(An=>{if(ut||Zt){const kt=Object.assign({},Kt);if(ut){const pn=ut||{},{items:Pt}=pn,En=we(pn,["items"]);kt.menu=Object.assign(Object.assign({},En),{items:Pt==null?void 0:Pt.map((on,de)=>{var{key:pe,title:ie,label:ee,path:se}=on,le=we(on,["key","title","label","path"]);let Be=ee!=null?ee:ie;return se&&(Be=x.createElement("a",{href:`${tt}${se}`},Be)),Object.assign(Object.assign({},le),{key:pe!=null?pe:de,label:Be})})})}else Zt&&(kt.overlay=Zt);return x.createElement(xe.Z,Object.assign({placement:"bottom"},kt),x.createElement("span",{className:`${Et}-overlay-link`},An,x.createElement(he.Z,null)))}return An})(De);return jt!=null?x.createElement(x.Fragment,null,x.createElement("li",null,jt),Ze&&x.createElement(Oe,null,Ze)):null},Ee=at=>{const{prefixCls:Et,children:Ze,href:De}=at,ut=we(at,["prefixCls","children","href"]),{getPrefixCls:Zt}=x.useContext(Ue.E_),Kt=Zt("breadcrumb",Et);return x.createElement(Ce,Object.assign({},ut,{prefixCls:Kt}),Se(Kt,ut,Ze,De))};Ee.__ANT_BREADCRUMB_ITEM=!0;var ke=Ee,Ke=ae(36237),Qe=ae(63356),je=ae(16931),Je=ae(51636);const Ve=at=>{const{componentCls:Et,iconCls:Ze,calc:De}=at;return{[Et]:Object.assign(Object.assign({},(0,Qe.Wf)(at)),{color:at.itemColor,fontSize:at.fontSize,[Ze]:{fontSize:at.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:at.linkColor,transition:`color ${at.motionDurationMid}`,padding:`0 ${(0,Ke.unit)(at.paddingXXS)}`,borderRadius:at.borderRadiusSM,height:at.fontHeight,display:"inline-block",marginInline:De(at.marginXXS).mul(-1).equal(),"&:hover":{color:at.linkHoverColor,backgroundColor:at.colorBgTextHover}},(0,Qe.Qy)(at)),"li:last-child":{color:at.lastItemColor},[`${Et}-separator`]:{marginInline:at.separatorMargin,color:at.separatorColor},[`${Et}-link`]:{[`
|
|
|
> ${Ze} + span,
|
|
|
> ${Ze} + a
|
|
|
`]:{marginInlineStart:at.marginXXS}},[`${Et}-overlay-link`]:{borderRadius:at.borderRadiusSM,height:at.fontHeight,display:"inline-block",padding:`0 ${(0,Ke.unit)(at.paddingXXS)}`,marginInline:De(at.marginXXS).mul(-1).equal(),[`> ${Ze}`]:{marginInlineStart:at.marginXXS,fontSize:at.fontSizeIcon},"&:hover":{color:at.linkHoverColor,backgroundColor:at.colorBgTextHover,a:{color:at.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${at.componentCls}-rtl`]:{direction:"rtl"}})}},ct=at=>({itemColor:at.colorTextDescription,lastItemColor:at.colorText,iconFontSize:at.fontSize,linkColor:at.colorTextDescription,linkHoverColor:at.colorText,separatorColor:at.colorTextDescription,separatorMargin:at.marginXS});var ot=(0,je.I$)("Breadcrumb",at=>{const Et=(0,Je.mergeToken)(at,{});return Ve(Et)},ct),pt=function(at,Et){var Ze={};for(var De in at)Object.prototype.hasOwnProperty.call(at,De)&&Et.indexOf(De)<0&&(Ze[De]=at[De]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,De=Object.getOwnPropertySymbols(at);ut<De.length;ut++)Et.indexOf(De[ut])<0&&Object.prototype.propertyIsEnumerable.call(at,De[ut])&&(Ze[De[ut]]=at[De[ut]]);return Ze};function Ct(at){const{breadcrumbName:Et,children:Ze}=at,De=pt(at,["breadcrumbName","children"]),ut=Object.assign({title:Et},De);return Ze&&(ut.menu={items:Ze.map(Zt=>{var{breadcrumbName:Kt}=Zt,tt=pt(Zt,["breadcrumbName"]);return Object.assign(Object.assign({},tt),{title:Kt})})}),ut}function He(at,Et){return(0,x.useMemo)(()=>at||(Et?Et.map(Ct):null),[at,Et])}var ht=function(at,Et){var Ze={};for(var De in at)Object.prototype.hasOwnProperty.call(at,De)&&Et.indexOf(De)<0&&(Ze[De]=at[De]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,De=Object.getOwnPropertySymbols(at);ut<De.length;ut++)Et.indexOf(De[ut])<0&&Object.prototype.propertyIsEnumerable.call(at,De[ut])&&(Ze[De[ut]]=at[De[ut]]);return Ze};const _e=(at,Et)=>{if(Et===void 0)return Et;let Ze=(Et||"").replace(/^\//,"");return Object.keys(at).forEach(De=>{Ze=Ze.replace(`:${De}`,at[De])}),Ze},Re=at=>{const{prefixCls:Et,separator:Ze="/",style:De,className:ut,rootClassName:Zt,routes:Kt,items:tt,children:Dt,itemRender:jt,params:An={}}=at,kt=ht(at,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:pn,direction:Pt,breadcrumb:En}=x.useContext(Ue.E_);let on;const de=pn("breadcrumb",Et),[pe,ie,ee]=ot(de),se=He(tt,Kt),le=Te(de,jt);if(se&&se.length>0){const st=[],mt=tt||Kt;on=se.map((vt,St)=>{const{path:_t,key:Qt,type:xt,menu:lt,overlay:Vt,onClick:Wt,className:gn,separator:an,dropdownProps:en}=vt,zn=_e(An,_t);zn!==void 0&&st.push(zn);const Fn=Qt!=null?Qt:St;if(xt==="separator")return x.createElement(Oe,{key:Fn},an);const Rt={},sn=St===se.length-1;lt?Rt.menu=lt:Vt&&(Rt.overlay=Vt);let{href:_n}=vt;return st.length&&zn!==void 0&&(_n=`#/${st.join("/")}`),x.createElement(Ce,Object.assign({key:Fn},Rt,(0,ze.Z)(vt,{data:!0,aria:!0}),{className:gn,dropdownProps:en,href:_n,separator:sn?"":Ze,onClick:Wt,prefixCls:de}),le(vt,An,mt,st,_n))})}else if(Dt){const st=(0,qe.Z)(Dt).length;on=(0,qe.Z)(Dt).map((mt,vt)=>{if(!mt)return mt;const St=vt===st-1;return(0,Ie.Tm)(mt,{separator:St?"":Ze,key:vt})})}const Be=Le()(de,En==null?void 0:En.className,{[`${de}-rtl`]:Pt==="rtl"},ut,Zt,ie,ee),We=Object.assign(Object.assign({},En==null?void 0:En.style),De);return pe(x.createElement("nav",Object.assign({className:Be,style:We},kt),x.createElement("ol",null,on)))};Re.Item=ke,Re.Separator=Oe;var Ot=Re,it=Ot},62673:function(qn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return ot}});var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(16632),ze=ae(8654),Ie=ae(12919),Ue=ae(63872),he=ae(48755),xe=ae(2171),oe=ae(83397),Oe=ae(56553),Me=x.createContext(null),Se=ae(36170),Te=ae(74632),we=function(pt,Ct){var He={};for(var ht in pt)Object.prototype.hasOwnProperty.call(pt,ht)&&Ct.indexOf(ht)<0&&(He[ht]=pt[ht]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ht=Object.getOwnPropertySymbols(pt);_e<ht.length;_e++)Ct.indexOf(ht[_e])<0&&Object.prototype.propertyIsEnumerable.call(pt,ht[_e])&&(He[ht[_e]]=pt[ht[_e]]);return He};const Ce=(pt,Ct)=>{var He;const{prefixCls:ht,className:_e,rootClassName:Re,children:Ot,indeterminate:it=!1,style:at,onMouseEnter:Et,onMouseLeave:Ze,skipGroup:De=!1,disabled:ut}=pt,Zt=we(pt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Kt,direction:tt,checkbox:Dt}=x.useContext(he.E_),jt=x.useContext(Me),{isFormItemInput:An}=x.useContext(Oe.aM),kt=x.useContext(xe.Z),pn=(He=(jt==null?void 0:jt.disabled)||ut)!==null&&He!==void 0?He:kt,Pt=x.useRef(Zt.value),En=x.useRef(null),on=(0,ze.sQ)(Ct,En);x.useEffect(()=>{jt==null||jt.registerValue(Zt.value)},[]),x.useEffect(()=>{if(!De)return Zt.value!==Pt.current&&(jt==null||jt.cancelValue(Pt.current),jt==null||jt.registerValue(Zt.value),Pt.current=Zt.value),()=>jt==null?void 0:jt.cancelValue(Zt.value)},[Zt.value]),x.useEffect(()=>{var vt;!((vt=En.current)===null||vt===void 0)&&vt.input&&(En.current.input.indeterminate=it)},[it]);const de=Kt("checkbox",ht),pe=(0,oe.Z)(de),[ie,ee,se]=(0,Se.ZP)(de,pe),le=Object.assign({},Zt);jt&&!De&&(le.onChange=function(){Zt.onChange&&Zt.onChange.apply(Zt,arguments),jt.toggleOption&&jt.toggleOption({label:Ot,value:Zt.value})},le.name=jt.name,le.checked=jt.value.includes(Zt.value));const Be=Le()(`${de}-wrapper`,{[`${de}-rtl`]:tt==="rtl",[`${de}-wrapper-checked`]:le.checked,[`${de}-wrapper-disabled`]:pn,[`${de}-wrapper-in-form-item`]:An},Dt==null?void 0:Dt.className,_e,Re,se,pe,ee),We=Le()({[`${de}-indeterminate`]:it},Ue.A,ee),[st,mt]=(0,Te.Z)(le.onClick);return ie(x.createElement(Ie.Z,{component:"Checkbox",disabled:pn},x.createElement("label",{className:Be,style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),at),onMouseEnter:Et,onMouseLeave:Ze,onClick:st},x.createElement(qe.Z,Object.assign({},le,{onClick:mt,prefixCls:de,className:We,disabled:pn,ref:on})),Ot!==void 0&&x.createElement("span",{className:`${de}-label`},Ot))))};var ke=x.forwardRef(Ce),Ke=ae(77654),Qe=ae(2738),je=function(pt,Ct){var He={};for(var ht in pt)Object.prototype.hasOwnProperty.call(pt,ht)&&Ct.indexOf(ht)<0&&(He[ht]=pt[ht]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ht=Object.getOwnPropertySymbols(pt);_e<ht.length;_e++)Ct.indexOf(ht[_e])<0&&Object.prototype.propertyIsEnumerable.call(pt,ht[_e])&&(He[ht[_e]]=pt[ht[_e]]);return He},Ve=x.forwardRef((pt,Ct)=>{const{defaultValue:He,children:ht,options:_e=[],prefixCls:Re,className:Ot,rootClassName:it,style:at,onChange:Et}=pt,Ze=je(pt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:De,direction:ut}=x.useContext(he.E_),[Zt,Kt]=x.useState(Ze.value||He||[]),[tt,Dt]=x.useState([]);x.useEffect(()=>{"value"in Ze&&Kt(Ze.value||[])},[Ze.value]);const jt=x.useMemo(()=>_e.map(We=>typeof We=="string"||typeof We=="number"?{label:We,value:We}:We),[_e]),An=We=>{Dt(st=>st.filter(mt=>mt!==We))},kt=We=>{Dt(st=>[].concat((0,Ke.Z)(st),[We]))},pn=We=>{const st=Zt.indexOf(We.value),mt=(0,Ke.Z)(Zt);st===-1?mt.push(We.value):mt.splice(st,1),"value"in Ze||Kt(mt),Et==null||Et(mt.filter(vt=>tt.includes(vt)).sort((vt,St)=>{const _t=jt.findIndex(xt=>xt.value===vt),Qt=jt.findIndex(xt=>xt.value===St);return _t-Qt}))},Pt=De("checkbox",Re),En=`${Pt}-group`,on=(0,oe.Z)(Pt),[de,pe,ie]=(0,Se.ZP)(Pt,on),ee=(0,Qe.Z)(Ze,["value","disabled"]),se=_e.length?jt.map(We=>x.createElement(ke,{prefixCls:Pt,key:We.value.toString(),disabled:"disabled"in We?We.disabled:Ze.disabled,value:We.value,checked:Zt.includes(We.value),onChange:We.onChange,className:`${En}-item`,style:We.style,title:We.title,id:We.id,required:We.required},We.label)):ht,le={toggleOption:pn,value:Zt,disabled:Ze.disabled,name:Ze.name,registerValue:kt,cancelValue:An},Be=Le()(En,{[`${En}-rtl`]:ut==="rtl"},Ot,it,ie,on,pe);return de(x.createElement("div",Object.assign({className:Be,style:at},ee,{ref:Ct}),x.createElement(Me.Provider,{value:le},se)))});const ct=ke;ct.Group=Ve,ct.__ANT_CHECKBOX=!0;var ot=ct},36170:function(qn,Mt,ae){"use strict";ae.d(Mt,{C2:function(){return Ie}});var x=ae(36237),dt=ae(63356),Le=ae(51636),qe=ae(16931);const ze=Ue=>{const{checkboxCls:he}=Ue,xe=`${he}-wrapper`;return[{[`${he}-group`]:Object.assign(Object.assign({},(0,dt.Wf)(Ue)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ue.marginXS,[`> ${Ue.antCls}-row`]:{flex:1}}),[xe]:Object.assign(Object.assign({},(0,dt.Wf)(Ue)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${xe}`]:{marginInlineStart:0},[`&${xe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[he]:Object.assign(Object.assign({},(0,dt.Wf)(Ue)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ue.borderRadiusSM,alignSelf:"center",[`${he}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${he}-inner`]:Object.assign({},(0,dt.oN)(Ue))},[`${he}-inner`]:{boxSizing:"border-box",display:"block",width:Ue.checkboxSize,height:Ue.checkboxSize,direction:"ltr",backgroundColor:Ue.colorBgContainer,border:`${(0,x.unit)(Ue.lineWidth)} ${Ue.lineType} ${Ue.colorBorder}`,borderRadius:Ue.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ue.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ue.calc(Ue.checkboxSize).div(14).mul(5).equal(),height:Ue.calc(Ue.checkboxSize).div(14).mul(8).equal(),border:`${(0,x.unit)(Ue.lineWidthBold)} solid ${Ue.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ue.motionDurationFast} ${Ue.motionEaseInBack}, opacity ${Ue.motionDurationFast}`}},"& + span":{paddingInlineStart:Ue.paddingXS,paddingInlineEnd:Ue.paddingXS}})},{[`
|
|
|
${xe}:not(${xe}-disabled),
|
|
|
${he}:not(${he}-disabled)
|
|
|
`]:{[`&:hover ${he}-inner`]:{borderColor:Ue.colorPrimary}},[`${xe}:not(${xe}-disabled)`]:{[`&:hover ${he}-checked:not(${he}-disabled) ${he}-inner`]:{backgroundColor:Ue.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${he}-checked:not(${he}-disabled):after`]:{borderColor:Ue.colorPrimaryHover}}},{[`${he}-checked`]:{[`${he}-inner`]:{backgroundColor:Ue.colorPrimary,borderColor:Ue.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ue.motionDurationMid} ${Ue.motionEaseOutBack} ${Ue.motionDurationFast}`}}},[`
|
|
|
${xe}-checked:not(${xe}-disabled),
|
|
|
${he}-checked:not(${he}-disabled)
|
|
|
`]:{[`&:hover ${he}-inner`]:{backgroundColor:Ue.colorPrimaryHover,borderColor:"transparent"}}},{[he]:{"&-indeterminate":{[`${he}-inner`]:{backgroundColor:`${Ue.colorBgContainer} !important`,borderColor:`${Ue.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ue.calc(Ue.fontSizeLG).div(2).equal(),height:Ue.calc(Ue.fontSizeLG).div(2).equal(),backgroundColor:Ue.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${he}-inner`]:{backgroundColor:`${Ue.colorBgContainer} !important`,borderColor:`${Ue.colorPrimary} !important`}}}},{[`${xe}-disabled`]:{cursor:"not-allowed"},[`${he}-disabled`]:{[`&, ${he}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${he}-inner`]:{background:Ue.colorBgContainerDisabled,borderColor:Ue.colorBorder,"&:after":{borderColor:Ue.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ue.colorTextDisabled},[`&${he}-indeterminate ${he}-inner::after`]:{background:Ue.colorTextDisabled}}}]};function Ie(Ue,he){const xe=(0,Le.mergeToken)(he,{checkboxCls:`.${Ue}`,checkboxSize:he.controlInteractiveSize});return[ze(xe)]}Mt.ZP=(0,qe.I$)("Checkbox",(Ue,he)=>{let{prefixCls:xe}=he;return[Ie(xe,Ue)]})},38406:function(qn,Mt,ae){"use strict";var x=ae(59301),dt=ae(48755),Le=ae(584);const qe=ze=>{const{componentName:Ie}=ze,{getPrefixCls:Ue}=(0,x.useContext)(dt.E_),he=Ue("empty");switch(Ie){case"Table":case"List":return x.createElement(Le.Z,{image:Le.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return x.createElement(Le.Z,{image:Le.Z.PRESENTED_IMAGE_SIMPLE,className:`${he}-small`});case"Table.filter":return null;default:return x.createElement(Le.Z,null)}};Mt.Z=qe},37285:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Se}});var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(48755),ze=ae(36237),Ie=ae(63356),Ue=ae(16931),he=ae(51636);const xe=Te=>{const{componentCls:we,sizePaddingEdgeHorizontal:Ce,colorSplit:Ee,lineWidth:ke,textPaddingInline:Ke,orientationMargin:Qe,verticalMarginInline:je}=Te;return{[we]:Object.assign(Object.assign({},(0,Ie.Wf)(Te)),{borderBlockStart:`${(0,ze.unit)(ke)} solid ${Ee}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:je,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,ze.unit)(ke)} solid ${Ee}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,ze.unit)(Te.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${we}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,ze.unit)(Te.dividerHorizontalWithTextGutterMargin)} 0`,color:Te.colorTextHeading,fontWeight:500,fontSize:Te.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ee}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,ze.unit)(ke)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${we}-with-text-start`]:{"&::before":{width:`calc(${Qe} * 100%)`},"&::after":{width:`calc(100% - ${Qe} * 100%)`}},[`&-horizontal${we}-with-text-end`]:{"&::before":{width:`calc(100% - ${Qe} * 100%)`},"&::after":{width:`calc(${Qe} * 100%)`}},[`${we}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Ke},"&-dashed":{background:"none",borderColor:Ee,borderStyle:"dashed",borderWidth:`${(0,ze.unit)(ke)} 0 0`},[`&-horizontal${we}-with-text${we}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${we}-dashed`]:{borderInlineStartWidth:ke,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Ee,borderStyle:"dotted",borderWidth:`${(0,ze.unit)(ke)} 0 0`},[`&-horizontal${we}-with-text${we}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${we}-dotted`]:{borderInlineStartWidth:ke,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${we}-with-text`]:{color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize},[`&-horizontal${we}-with-text-start${we}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${we}-inner-text`]:{paddingInlineStart:Ce}},[`&-horizontal${we}-with-text-end${we}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${we}-inner-text`]:{paddingInlineEnd:Ce}}})}},oe=Te=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Te.marginXS});var Oe=(0,Ue.I$)("Divider",Te=>{const we=(0,he.mergeToken)(Te,{dividerHorizontalWithTextGutterMargin:Te.margin,dividerHorizontalGutterMargin:Te.marginLG,sizePaddingEdgeHorizontal:0});return[xe(we)]},oe,{unitless:{orientationMargin:!0}}),ve=function(Te,we){var Ce={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&we.indexOf(Ee)<0&&(Ce[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ee=Object.getOwnPropertySymbols(Te);ke<Ee.length;ke++)we.indexOf(Ee[ke])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[ke])&&(Ce[Ee[ke]]=Te[Ee[ke]]);return Ce},Se=Te=>{const{getPrefixCls:we,direction:Ce,className:Ee,style:ke}=(0,qe.dj)("divider"),{prefixCls:Ke,type:Qe="horizontal",orientation:je="center",orientationMargin:Je,className:Ve,rootClassName:ct,children:ot,dashed:pt,variant:Ct="solid",plain:He,style:ht}=Te,_e=ve(Te,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),Re=we("divider",Ke),[Ot,it,at]=Oe(Re),Et=!!ot,Ze=x.useMemo(()=>je==="left"?Ce==="rtl"?"end":"start":je==="right"?Ce==="rtl"?"start":"end":je,[Ce,je]),De=Ze==="start"&&Je!=null,ut=Ze==="end"&&Je!=null,Zt=Le()(Re,Ee,it,at,`${Re}-${Qe}`,{[`${Re}-with-text`]:Et,[`${Re}-with-text-${Ze}`]:Et,[`${Re}-dashed`]:!!pt,[`${Re}-${Ct}`]:Ct!=="solid",[`${Re}-plain`]:!!He,[`${Re}-rtl`]:Ce==="rtl",[`${Re}-no-default-orientation-margin-start`]:De,[`${Re}-no-default-orientation-margin-end`]:ut},Ve,ct),Kt=x.useMemo(()=>typeof Je=="number"?Je:/^\d+$/.test(Je)?Number(Je):Je,[Je]),tt={marginInlineStart:De?Kt:void 0,marginInlineEnd:ut?Kt:void 0};return Ot(x.createElement("div",Object.assign({className:Zt,style:Object.assign(Object.assign({},ke),ht)},_e,{role:"separator"}),ot&&Qe!=="vertical"&&x.createElement("span",{className:`${Re}-inner-text`,style:tt},ot)))}},36207:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return st}});var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(85899),ze=ae(72190),Ie=ae(43403),Ue=ae(34280),he=x.createContext(null),xe=x.createContext({}),oe=he,Oe=ae(18642),ve=ae(60499),Me=ae(77900),Se=ae(10228),Te=ae(26112),we=ae(42244),Ce=ae(8654),Ee=["prefixCls","className","containerRef"],ke=function(vt){var St=vt.prefixCls,_t=vt.className,Qt=vt.containerRef,xt=(0,we.Z)(vt,Ee),lt=x.useContext(xe),Vt=lt.panel,Wt=(0,Ce.x1)(Vt,Qt);return x.createElement("div",(0,ve.Z)({className:Le()("".concat(St,"-content"),_t),role:"dialog",ref:Wt},(0,Te.Z)(vt,{aria:!0}),{"aria-modal":"true"},xt))},Ke=ke,Qe=ae(48736);function je(mt){return typeof mt=="string"&&String(Number(mt))===mt?((0,Qe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(mt)):mt}function Je(mt){warning(!("wrapperClassName"in mt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!mt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ve={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ct(mt,vt){var St,_t,Qt,xt=mt.prefixCls,lt=mt.open,Vt=mt.placement,Wt=mt.inline,gn=mt.push,an=mt.forceRender,en=mt.autoFocus,zn=mt.keyboard,Fn=mt.classNames,Rt=mt.rootClassName,sn=mt.rootStyle,_n=mt.zIndex,Wn=mt.className,Lt=mt.id,Gt=mt.style,nn=mt.motion,wn=mt.width,Gn=mt.height,Er=mt.children,ti=mt.mask,oi=mt.maskClosable,Ar=mt.maskMotion,Ir=mt.maskClassName,jn=mt.maskStyle,Hn=mt.afterOpenChange,Jn=mt.onClose,lr=mt.onMouseEnter,$n=mt.onMouseOver,br=mt.onMouseLeave,Br=mt.onClick,_r=mt.onKeyDown,mi=mt.onKeyUp,di=mt.styles,fi=mt.drawerRender,Ti=x.useRef(),xi=x.useRef(),io=x.useRef();x.useImperativeHandle(vt,function(){return Ti.current});var Xi=function(nr){var ir=nr.keyCode,Yr=nr.shiftKey;switch(ir){case Se.Z.TAB:{if(ir===Se.Z.TAB){if(!Yr&&document.activeElement===io.current){var Mi;(Mi=xi.current)===null||Mi===void 0||Mi.focus({preventScroll:!0})}else if(Yr&&document.activeElement===xi.current){var Yn;(Yn=io.current)===null||Yn===void 0||Yn.focus({preventScroll:!0})}}break}case Se.Z.ESC:{Jn&&zn&&(nr.stopPropagation(),Jn(nr));break}}};x.useEffect(function(){if(lt&&en){var hr;(hr=Ti.current)===null||hr===void 0||hr.focus({preventScroll:!0})}},[lt]);var ur=x.useState(!1),Tr=(0,ze.Z)(ur,2),gi=Tr[0],ni=Tr[1],gt=x.useContext(oe),vn;typeof gn=="boolean"?vn=gn?{}:{distance:0}:vn=gn||{};var Ut=(St=(_t=(Qt=vn)===null||Qt===void 0?void 0:Qt.distance)!==null&&_t!==void 0?_t:gt==null?void 0:gt.pushDistance)!==null&&St!==void 0?St:180,dn=x.useMemo(function(){return{pushDistance:Ut,push:function(){ni(!0)},pull:function(){ni(!1)}}},[Ut]);x.useEffect(function(){if(lt){var hr;gt==null||(hr=gt.push)===null||hr===void 0||hr.call(gt)}else{var nr;gt==null||(nr=gt.pull)===null||nr===void 0||nr.call(gt)}},[lt]),x.useEffect(function(){return function(){var hr;gt==null||(hr=gt.pull)===null||hr===void 0||hr.call(gt)}},[]);var $t=ti&&x.createElement(Me.default,(0,ve.Z)({key:"mask"},Ar,{visible:lt}),function(hr,nr){var ir=hr.className,Yr=hr.style;return x.createElement("div",{className:Le()("".concat(xt,"-mask"),ir,Fn==null?void 0:Fn.mask,Ir),style:(0,qe.Z)((0,qe.Z)((0,qe.Z)({},Yr),jn),di==null?void 0:di.mask),onClick:oi&<?Jn:void 0,ref:nr})}),hn=typeof nn=="function"?nn(Vt):nn,Nn={};if(gi&&Ut)switch(Vt){case"top":Nn.transform="translateY(".concat(Ut,"px)");break;case"bottom":Nn.transform="translateY(".concat(-Ut,"px)");break;case"left":Nn.transform="translateX(".concat(Ut,"px)");break;default:Nn.transform="translateX(".concat(-Ut,"px)");break}Vt==="left"||Vt==="right"?Nn.width=je(wn):Nn.height=je(Gn);var Hr={onMouseEnter:lr,onMouseOver:$n,onMouseLeave:br,onClick:Br,onKeyDown:_r,onKeyUp:mi},zr=x.createElement(Me.default,(0,ve.Z)({key:"panel"},hn,{visible:lt,forceRender:an,onVisibleChanged:function(nr){Hn==null||Hn(nr)},removeOnLeave:!1,leavedClassName:"".concat(xt,"-content-wrapper-hidden")}),function(hr,nr){var ir=hr.className,Yr=hr.style,Mi=x.createElement(Ke,(0,ve.Z)({id:Lt,containerRef:nr,prefixCls:xt,className:Le()(Wn,Fn==null?void 0:Fn.content),style:(0,qe.Z)((0,qe.Z)({},Gt),di==null?void 0:di.content)},(0,Te.Z)(mt,{aria:!0}),Hr),Er);return x.createElement("div",(0,ve.Z)({className:Le()("".concat(xt,"-content-wrapper"),Fn==null?void 0:Fn.wrapper,ir),style:(0,qe.Z)((0,qe.Z)((0,qe.Z)({},Nn),Yr),di==null?void 0:di.wrapper)},(0,Te.Z)(mt,{data:!0})),fi?fi(Mi):Mi)}),Ai=(0,qe.Z)({},sn);return _n&&(Ai.zIndex=_n),x.createElement(oe.Provider,{value:dn},x.createElement("div",{className:Le()(xt,"".concat(xt,"-").concat(Vt),Rt,(0,Oe.Z)((0,Oe.Z)({},"".concat(xt,"-open"),lt),"".concat(xt,"-inline"),Wt)),style:Ai,tabIndex:-1,ref:Ti,onKeyDown:Xi},$t,x.createElement("div",{tabIndex:0,ref:xi,style:Ve,"aria-hidden":"true","data-sentinel":"start"}),zr,x.createElement("div",{tabIndex:0,ref:io,style:Ve,"aria-hidden":"true","data-sentinel":"end"})))}var ot=x.forwardRef(ct),pt=ot,Ct=function(vt){var St=vt.open,_t=St===void 0?!1:St,Qt=vt.prefixCls,xt=Qt===void 0?"rc-drawer":Qt,lt=vt.placement,Vt=lt===void 0?"right":lt,Wt=vt.autoFocus,gn=Wt===void 0?!0:Wt,an=vt.keyboard,en=an===void 0?!0:an,zn=vt.width,Fn=zn===void 0?378:zn,Rt=vt.mask,sn=Rt===void 0?!0:Rt,_n=vt.maskClosable,Wn=_n===void 0?!0:_n,Lt=vt.getContainer,Gt=vt.forceRender,nn=vt.afterOpenChange,wn=vt.destroyOnClose,Gn=vt.onMouseEnter,Er=vt.onMouseOver,ti=vt.onMouseLeave,oi=vt.onClick,Ar=vt.onKeyDown,Ir=vt.onKeyUp,jn=vt.panelRef,Hn=x.useState(!1),Jn=(0,ze.Z)(Hn,2),lr=Jn[0],$n=Jn[1],br=x.useState(!1),Br=(0,ze.Z)(br,2),_r=Br[0],mi=Br[1];(0,Ue.Z)(function(){mi(!0)},[]);var di=_r?_t:!1,fi=x.useRef(),Ti=x.useRef();(0,Ue.Z)(function(){di&&(Ti.current=document.activeElement)},[di]);var xi=function(gi){var ni;if($n(gi),nn==null||nn(gi),!gi&&Ti.current&&!((ni=fi.current)!==null&&ni!==void 0&&ni.contains(Ti.current))){var gt;(gt=Ti.current)===null||gt===void 0||gt.focus({preventScroll:!0})}},io=x.useMemo(function(){return{panel:jn}},[jn]);if(!Gt&&!lr&&!di&&wn)return null;var Xi={onMouseEnter:Gn,onMouseOver:Er,onMouseLeave:ti,onClick:oi,onKeyDown:Ar,onKeyUp:Ir},ur=(0,qe.Z)((0,qe.Z)({},vt),{},{open:di,prefixCls:xt,placement:Vt,autoFocus:gn,keyboard:en,width:Fn,mask:sn,maskClosable:Wn,inline:Lt===!1,afterOpenChange:xi,ref:fi},Xi);return x.createElement(xe.Provider,{value:io},x.createElement(Ie.Z,{open:di||Gt||lr,autoDestroy:!1,getContainer:Lt,autoLock:sn&&(di||lr)},x.createElement(pt,ur)))},He=Ct,ht=He,_e=ae(62487),Re=ae(75030),Ot=ae(86641),it=ae(55743),at=ae(48755),Et=ae(91190),Ze=ae(78776),De=ae(458),Zt=mt=>{var vt,St;const{prefixCls:_t,title:Qt,footer:xt,extra:lt,loading:Vt,onClose:Wt,headerStyle:gn,bodyStyle:an,footerStyle:en,children:zn,classNames:Fn,styles:Rt}=mt,sn=(0,at.dj)("drawer"),_n=x.useCallback(wn=>x.createElement("button",{type:"button",onClick:Wt,"aria-label":"Close",className:`${_t}-close`},wn),[Wt]),[Wn,Lt]=(0,Ze.Z)((0,Ze.w)(mt),(0,Ze.w)(sn),{closable:!0,closeIconRender:_n}),Gt=x.useMemo(()=>{var wn,Gn;return!Qt&&!Wn?null:x.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(wn=sn.styles)===null||wn===void 0?void 0:wn.header),gn),Rt==null?void 0:Rt.header),className:Le()(`${_t}-header`,{[`${_t}-header-close-only`]:Wn&&!Qt&&!lt},(Gn=sn.classNames)===null||Gn===void 0?void 0:Gn.header,Fn==null?void 0:Fn.header)},x.createElement("div",{className:`${_t}-header-title`},Lt,Qt&&x.createElement("div",{className:`${_t}-title`},Qt)),lt&&x.createElement("div",{className:`${_t}-extra`},lt))},[Wn,Lt,lt,gn,_t,Qt]),nn=x.useMemo(()=>{var wn,Gn;if(!xt)return null;const Er=`${_t}-footer`;return x.createElement("div",{className:Le()(Er,(wn=sn.classNames)===null||wn===void 0?void 0:wn.footer,Fn==null?void 0:Fn.footer),style:Object.assign(Object.assign(Object.assign({},(Gn=sn.styles)===null||Gn===void 0?void 0:Gn.footer),en),Rt==null?void 0:Rt.footer)},xt)},[xt,en,_t]);return x.createElement(x.Fragment,null,Gt,x.createElement("div",{className:Le()(`${_t}-body`,Fn==null?void 0:Fn.body,(vt=sn.classNames)===null||vt===void 0?void 0:vt.body),style:Object.assign(Object.assign(Object.assign({},(St=sn.styles)===null||St===void 0?void 0:St.body),an),Rt==null?void 0:Rt.body)},Vt?x.createElement(De.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${_t}-body-skeleton`}):zn),nn)},Kt=ae(36237),tt=ae(63356),Dt=ae(16931),jt=ae(51636);const An=mt=>{const vt="100%";return{left:`translateX(-${vt})`,right:`translateX(${vt})`,top:`translateY(-${vt})`,bottom:`translateY(${vt})`}[mt]},kt=(mt,vt)=>({"&-enter, &-appear":Object.assign(Object.assign({},mt),{"&-active":vt}),"&-leave":Object.assign(Object.assign({},vt),{"&-active":mt})}),pn=(mt,vt)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${vt}`}}},kt({opacity:mt},{opacity:1})),Pt=(mt,vt)=>[pn(.7,vt),kt({transform:An(mt)},{transform:"none"})];var on=mt=>{const{componentCls:vt,motionDurationSlow:St}=mt;return{[vt]:{[`${vt}-mask-motion`]:pn(0,St),[`${vt}-panel-motion`]:["left","right","top","bottom"].reduce((_t,Qt)=>Object.assign(Object.assign({},_t),{[`&-${Qt}`]:Pt(Qt,St)}),{})}}};const de=mt=>{const{borderRadiusSM:vt,componentCls:St,zIndexPopup:_t,colorBgMask:Qt,colorBgElevated:xt,motionDurationSlow:lt,motionDurationMid:Vt,paddingXS:Wt,padding:gn,paddingLG:an,fontSizeLG:en,lineHeightLG:zn,lineWidth:Fn,lineType:Rt,colorSplit:sn,marginXS:_n,colorIcon:Wn,colorIconHover:Lt,colorBgTextHover:Gt,colorBgTextActive:nn,colorText:wn,fontWeightStrong:Gn,footerPaddingBlock:Er,footerPaddingInline:ti,calc:oi}=mt,Ar=`${St}-content-wrapper`;return{[St]:{position:"fixed",inset:0,zIndex:_t,pointerEvents:"none",color:wn,"&-pure":{position:"relative",background:xt,display:"flex",flexDirection:"column",[`&${St}-left`]:{boxShadow:mt.boxShadowDrawerLeft},[`&${St}-right`]:{boxShadow:mt.boxShadowDrawerRight},[`&${St}-top`]:{boxShadow:mt.boxShadowDrawerUp},[`&${St}-bottom`]:{boxShadow:mt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${St}-mask`]:{position:"absolute",inset:0,zIndex:_t,background:Qt,pointerEvents:"auto"},[Ar]:{position:"absolute",zIndex:_t,maxWidth:"100vw",transition:`all ${lt}`,"&-hidden":{display:"none"}},[`&-left > ${Ar}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:mt.boxShadowDrawerLeft},[`&-right > ${Ar}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:mt.boxShadowDrawerRight},[`&-top > ${Ar}`]:{top:0,insetInline:0,boxShadow:mt.boxShadowDrawerUp},[`&-bottom > ${Ar}`]:{bottom:0,insetInline:0,boxShadow:mt.boxShadowDrawerDown},[`${St}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:xt,pointerEvents:"auto"},[`${St}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Kt.unit)(gn)} ${(0,Kt.unit)(an)}`,fontSize:en,lineHeight:zn,borderBottom:`${(0,Kt.unit)(Fn)} ${Rt} ${sn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${St}-extra`]:{flex:"none"},[`${St}-close`]:Object.assign({display:"inline-flex",width:oi(en).add(Wt).equal(),height:oi(en).add(Wt).equal(),borderRadius:vt,justifyContent:"center",alignItems:"center",marginInlineEnd:_n,color:Wn,fontWeight:Gn,fontSize:en,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Vt}`,textRendering:"auto","&:hover":{color:Lt,backgroundColor:Gt,textDecoration:"none"},"&:active":{backgroundColor:nn}},(0,tt.Qy)(mt)),[`${St}-title`]:{flex:1,margin:0,fontWeight:mt.fontWeightStrong,fontSize:en,lineHeight:zn},[`${St}-body`]:{flex:1,minWidth:0,minHeight:0,padding:an,overflow:"auto",[`${St}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${St}-footer`]:{flexShrink:0,padding:`${(0,Kt.unit)(Er)} ${(0,Kt.unit)(ti)}`,borderTop:`${(0,Kt.unit)(Fn)} ${Rt} ${sn}`},"&-rtl":{direction:"rtl"}}}},pe=mt=>({zIndexPopup:mt.zIndexPopupBase,footerPaddingBlock:mt.paddingXS,footerPaddingInline:mt.padding});var ie=(0,Dt.I$)("Drawer",mt=>{const vt=(0,jt.mergeToken)(mt,{});return[de(vt),on(vt)]},pe),ee=function(mt,vt){var St={};for(var _t in mt)Object.prototype.hasOwnProperty.call(mt,_t)&&vt.indexOf(_t)<0&&(St[_t]=mt[_t]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,_t=Object.getOwnPropertySymbols(mt);Qt<_t.length;Qt++)vt.indexOf(_t[Qt])<0&&Object.prototype.propertyIsEnumerable.call(mt,_t[Qt])&&(St[_t[Qt]]=mt[_t[Qt]]);return St};const se=null,le={distance:180},Be=mt=>{var vt;const{rootClassName:St,width:_t,height:Qt,size:xt="default",mask:lt=!0,push:Vt=le,open:Wt,afterOpenChange:gn,onClose:an,prefixCls:en,getContainer:zn,style:Fn,className:Rt,visible:sn,afterVisibleChange:_n,maskStyle:Wn,drawerStyle:Lt,contentWrapperStyle:Gt}=mt,nn=ee(mt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:wn,getPrefixCls:Gn,direction:Er,className:ti,style:oi,classNames:Ar,styles:Ir}=(0,at.dj)("drawer"),jn=Gn("drawer",en),[Hn,Jn,lr]=ie(jn),$n=zn===void 0&&wn?()=>wn(document.body):zn,br=Le()({"no-mask":!lt,[`${jn}-rtl`]:Er==="rtl"},St,Jn,lr),Br=x.useMemo(()=>_t!=null?_t:xt==="large"?736:378,[_t,xt]),_r=x.useMemo(()=>Qt!=null?Qt:xt==="large"?736:378,[Qt,xt]),mi={motionName:(0,Ot.m)(jn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},di=ur=>({motionName:(0,Ot.m)(jn,`panel-motion-${ur}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),fi=(0,Et.H)(),[Ti,xi]=(0,Re.Cn)("Drawer",nn.zIndex),{classNames:io={},styles:Xi={}}=nn;return Hn(x.createElement(_e.Z,{form:!0,space:!0},x.createElement(it.Z.Provider,{value:xi},x.createElement(ht,Object.assign({prefixCls:jn,onClose:an,maskMotion:mi,motion:di},nn,{classNames:{mask:Le()(io.mask,Ar.mask),content:Le()(io.content,Ar.content),wrapper:Le()(io.wrapper,Ar.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Xi.mask),Wn),Ir.mask),content:Object.assign(Object.assign(Object.assign({},Xi.content),Lt),Ir.content),wrapper:Object.assign(Object.assign(Object.assign({},Xi.wrapper),Gt),Ir.wrapper)},open:Wt!=null?Wt:sn,mask:lt,push:Vt,width:Br,height:_r,style:Object.assign(Object.assign({},oi),Fn),className:Le()(ti,Rt),rootClassName:br,getContainer:$n,afterOpenChange:gn!=null?gn:_n,panelRef:fi,zIndex:Ti}),x.createElement(Zt,Object.assign({prefixCls:jn},nn,{onClose:an}))))))},We=mt=>{const{prefixCls:vt,style:St,className:_t,placement:Qt="right"}=mt,xt=ee(mt,["prefixCls","style","className","placement"]),{getPrefixCls:lt}=x.useContext(at.E_),Vt=lt("drawer",vt),[Wt,gn,an]=ie(Vt),en=Le()(Vt,`${Vt}-pure`,`${Vt}-${Qt}`,gn,an,_t);return Wt(x.createElement("div",{className:en,style:St},x.createElement(Zt,Object.assign({prefixCls:Vt},xt))))};Be._InternalPanelDoNotUseOrYouWillBeFired=We;var st=Be},19563:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Kt}});var x=ae(59301),dt=ae(33853),Le=ae(38819),qe=ae(92310),ze=ae.n(qe),Ie=ae(96478),Ue=ae(6089),he=ae(18929),xe=ae(2738),oe=ae(75030),ve=tt=>typeof tt!="object"&&typeof tt!="function"||tt===null,Me=ae(52838),Se=ae(45915),Te=ae(22703),we=ae(32383),Ce=ae(55743),Ee=ae(48755),ke=ae(83397),Ke=ae(93041),Qe=ae(78857),je=ae(57700),Je=ae(36237),Ve=ae(63356),ct=ae(46e3),ot=ae(93873),pt=ae(34925),Ct=ae(37645),He=ae(36305),ht=ae(16931),_e=ae(51636),Ot=tt=>{const{componentCls:Dt,menuCls:jt,colorError:An,colorTextLightSolid:kt}=tt,pn=`${jt}-item`;return{[`${Dt}, ${Dt}-menu-submenu`]:{[`${jt} ${pn}`]:{[`&${pn}-danger:not(${pn}-disabled)`]:{color:An,"&:hover":{color:kt,backgroundColor:An}}}}}};const it=tt=>{const{componentCls:Dt,menuCls:jt,zIndexPopup:An,dropdownArrowDistance:kt,sizePopupArrow:pn,antCls:Pt,iconCls:En,motionDurationMid:on,paddingBlock:de,fontSize:pe,dropdownEdgeChildPadding:ie,colorTextDisabled:ee,fontSizeIcon:se,controlPaddingHorizontal:le,colorBgElevated:Be}=tt;return[{[Dt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:An,display:"block","&::before":{position:"absolute",insetBlock:tt.calc(pn).div(2).sub(kt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Pt}-btn`]:{[`& > ${En}-down, & > ${Pt}-btn-icon > ${En}-down`]:{fontSize:se}},[`${Dt}-wrap`]:{position:"relative",[`${Pt}-btn > ${En}-down`]:{fontSize:se},[`${En}-down::before`]:{transition:`transform ${on}`}},[`${Dt}-wrap-open`]:{[`${En}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Pt}-slide-down-enter${Pt}-slide-down-enter-active${Dt}-placement-bottomLeft,
|
|
|
&${Pt}-slide-down-appear${Pt}-slide-down-appear-active${Dt}-placement-bottomLeft,
|
|
|
&${Pt}-slide-down-enter${Pt}-slide-down-enter-active${Dt}-placement-bottom,
|
|
|
&${Pt}-slide-down-appear${Pt}-slide-down-appear-active${Dt}-placement-bottom,
|
|
|
&${Pt}-slide-down-enter${Pt}-slide-down-enter-active${Dt}-placement-bottomRight,
|
|
|
&${Pt}-slide-down-appear${Pt}-slide-down-appear-active${Dt}-placement-bottomRight`]:{animationName:ct.fJ},[`&${Pt}-slide-up-enter${Pt}-slide-up-enter-active${Dt}-placement-topLeft,
|
|
|
&${Pt}-slide-up-appear${Pt}-slide-up-appear-active${Dt}-placement-topLeft,
|
|
|
&${Pt}-slide-up-enter${Pt}-slide-up-enter-active${Dt}-placement-top,
|
|
|
&${Pt}-slide-up-appear${Pt}-slide-up-appear-active${Dt}-placement-top,
|
|
|
&${Pt}-slide-up-enter${Pt}-slide-up-enter-active${Dt}-placement-topRight,
|
|
|
&${Pt}-slide-up-appear${Pt}-slide-up-appear-active${Dt}-placement-topRight`]:{animationName:ct.Qt},[`&${Pt}-slide-down-leave${Pt}-slide-down-leave-active${Dt}-placement-bottomLeft,
|
|
|
&${Pt}-slide-down-leave${Pt}-slide-down-leave-active${Dt}-placement-bottom,
|
|
|
&${Pt}-slide-down-leave${Pt}-slide-down-leave-active${Dt}-placement-bottomRight`]:{animationName:ct.Uw},[`&${Pt}-slide-up-leave${Pt}-slide-up-leave-active${Dt}-placement-topLeft,
|
|
|
&${Pt}-slide-up-leave${Pt}-slide-up-leave-active${Dt}-placement-top,
|
|
|
&${Pt}-slide-up-leave${Pt}-slide-up-leave-active${Dt}-placement-topRight`]:{animationName:ct.ly}}},(0,Ct.ZP)(tt,Be,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Dt} ${jt}`]:{position:"relative",margin:0},[`${jt}-submenu-popup`]:{position:"absolute",zIndex:An,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Dt}, ${Dt}-menu-submenu`]:Object.assign(Object.assign({},(0,Ve.Wf)(tt)),{[jt]:Object.assign(Object.assign({padding:ie,listStyleType:"none",backgroundColor:Be,backgroundClip:"padding-box",borderRadius:tt.borderRadiusLG,outline:"none",boxShadow:tt.boxShadowSecondary},(0,Ve.Qy)(tt)),{"&:empty":{padding:0,boxShadow:"none"},[`${jt}-item-group-title`]:{padding:`${(0,Je.unit)(de)} ${(0,Je.unit)(le)}`,color:tt.colorTextDescription,transition:`all ${on}`},[`${jt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${jt}-item-icon`]:{minWidth:pe,marginInlineEnd:tt.marginXS,fontSize:tt.fontSizeSM},[`${jt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${on}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${jt}-item-extra`]:{paddingInlineStart:tt.padding,marginInlineStart:"auto",fontSize:tt.fontSizeSM,color:tt.colorTextDescription}},[`${jt}-item, ${jt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Je.unit)(de)} ${(0,Je.unit)(le)}`,color:tt.colorText,fontWeight:"normal",fontSize:pe,lineHeight:tt.lineHeight,cursor:"pointer",transition:`all ${on}`,borderRadius:tt.borderRadiusSM,"&:hover, &-active":{backgroundColor:tt.controlItemBgHover}},(0,Ve.Qy)(tt)),{"&-selected":{color:tt.colorPrimary,backgroundColor:tt.controlItemBgActive,"&:hover, &-active":{backgroundColor:tt.controlItemBgActiveHover}},"&-disabled":{color:ee,cursor:"not-allowed","&:hover":{color:ee,backgroundColor:Be,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Je.unit)(tt.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:tt.colorSplit},[`${Dt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:tt.paddingXS,[`${Dt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:tt.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${jt}-item-group-list`]:{margin:`0 ${(0,Je.unit)(tt.marginXS)}`,padding:0,listStyle:"none"},[`${jt}-submenu-title`]:{paddingInlineEnd:tt.calc(le).add(tt.fontSizeSM).equal()},[`${jt}-submenu-vertical`]:{position:"relative"},[`${jt}-submenu${jt}-submenu-disabled ${Dt}-menu-submenu-title`]:{[`&, ${Dt}-menu-submenu-arrow-icon`]:{color:ee,backgroundColor:Be,cursor:"not-allowed"}},[`${jt}-submenu-selected ${Dt}-menu-submenu-title`]:{color:tt.colorPrimary}})})},[(0,ct.oN)(tt,"slide-up"),(0,ct.oN)(tt,"slide-down"),(0,ot.Fm)(tt,"move-up"),(0,ot.Fm)(tt,"move-down"),(0,pt._y)(tt,"zoom-big")]]},at=tt=>Object.assign(Object.assign({zIndexPopup:tt.zIndexPopupBase+50,paddingBlock:(tt.controlHeight-tt.fontSize*tt.lineHeight)/2},(0,Ct.wZ)({contentRadius:tt.borderRadiusLG,limitVerticalRadius:!0})),(0,He.w)(tt));var Et=(0,ht.I$)("Dropdown",tt=>{const{marginXXS:Dt,sizePopupArrow:jt,paddingXXS:An,componentCls:kt}=tt,pn=(0,_e.mergeToken)(tt,{menuCls:`${kt}-menu`,dropdownArrowDistance:tt.calc(jt).div(2).add(Dt).equal(),dropdownEdgeChildPadding:An});return[it(pn),Ot(pn)]},at,{resetStyle:!1});const Ze=null,De=tt=>{var Dt;const{menu:jt,arrow:An,prefixCls:kt,children:pn,trigger:Pt,disabled:En,dropdownRender:on,getPopupContainer:de,overlayClassName:pe,rootClassName:ie,overlayStyle:ee,open:se,onOpenChange:le,visible:Be,onVisibleChange:We,mouseEnterDelay:st=.15,mouseLeaveDelay:mt=.1,autoAdjustOverflow:vt=!0,placement:St="",overlay:_t,transitionName:Qt}=tt,{getPopupContainer:xt,getPrefixCls:lt,direction:Vt,dropdown:Wt}=x.useContext(Ee.E_),gn=(0,we.ln)("Dropdown"),an=x.useMemo(()=>{const $n=lt();return Qt!==void 0?Qt:St.includes("top")?`${$n}-slide-down`:`${$n}-slide-up`},[lt,St,Qt]),en=x.useMemo(()=>St?St.includes("Center")?St.slice(0,St.indexOf("Center")):St:Vt==="rtl"?"bottomRight":"bottomLeft",[St,Vt]),zn=lt("dropdown",kt),Fn=(0,ke.Z)(zn),[Rt,sn,_n]=Et(zn,Fn),[,Wn]=(0,je.ZP)(),Lt=x.Children.only(ve(pn)?x.createElement("span",null,pn):pn),Gt=(0,Te.Tm)(Lt,{className:ze()(`${zn}-trigger`,{[`${zn}-rtl`]:Vt==="rtl"},Lt.props.className),disabled:(Dt=Lt.props.disabled)!==null&&Dt!==void 0?Dt:En}),nn=En?[]:Pt,wn=!!(nn!=null&&nn.includes("contextMenu")),[Gn,Er]=(0,he.Z)(!1,{value:se!=null?se:Be}),ti=(0,Ue.Z)($n=>{le==null||le($n,{source:"trigger"}),We==null||We($n),Er($n)}),oi=ze()(pe,ie,sn,_n,Fn,Wt==null?void 0:Wt.className,{[`${zn}-rtl`]:Vt==="rtl"}),Ar=(0,Me.Z)({arrowPointAtCenter:typeof An=="object"&&An.pointAtCenter,autoAdjustOverflow:vt,offset:Wn.marginXXS,arrowWidth:An?Wn.sizePopupArrow:0,borderRadius:Wn.borderRadius}),Ir=x.useCallback(()=>{jt!=null&&jt.selectable&&(jt!=null&&jt.multiple)||(le==null||le(!1,{source:"menu"}),Er(!1))},[jt==null?void 0:jt.selectable,jt==null?void 0:jt.multiple]),jn=()=>{let $n;return jt!=null&&jt.items?$n=x.createElement(Ke.default,Object.assign({},jt)):typeof _t=="function"?$n=_t():$n=_t,on&&($n=on($n)),$n=x.Children.only(typeof $n=="string"?x.createElement("span",null,$n):$n),x.createElement(Qe.J,{prefixCls:`${zn}-menu`,rootClassName:ze()(_n,Fn),expandIcon:x.createElement("span",{className:`${zn}-menu-submenu-arrow`},Vt==="rtl"?x.createElement(dt.Z,{className:`${zn}-menu-submenu-arrow-icon`}):x.createElement(Le.Z,{className:`${zn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ir,validator:br=>{let{mode:Br}=br}},$n)},[Hn,Jn]=(0,oe.Cn)("Dropdown",ee==null?void 0:ee.zIndex);let lr=x.createElement(Ie.Z,Object.assign({alignPoint:wn},(0,xe.Z)(tt,["rootClassName"]),{mouseEnterDelay:st,mouseLeaveDelay:mt,visible:Gn,builtinPlacements:Ar,arrow:!!An,overlayClassName:oi,prefixCls:zn,getPopupContainer:de||xt,transitionName:an,trigger:nn,overlay:jn,placement:en,onVisibleChange:ti,overlayStyle:Object.assign(Object.assign(Object.assign({},Wt==null?void 0:Wt.style),ee),{zIndex:Hn})}),Gt);return Hn&&(lr=x.createElement(Ce.Z.Provider,{value:Jn},lr)),Rt(lr)},ut=(0,Se.Z)(De,"align",void 0,"dropdown",tt=>tt),Zt=tt=>x.createElement(ut,Object.assign({},tt),x.createElement("span",null));De._InternalPanelDoNotUseOrYouWillBeFired=Zt;var Kt=De},75727:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Se}});var x=ae(19563),dt=ae(59301),Le=ae(18785),qe=ae(92310),ze=ae.n(qe),Ie=ae(7939),Ue=ae(48755),he=ae(44104),xe=ae(70045),oe=function(Te,we){var Ce={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&we.indexOf(Ee)<0&&(Ce[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ee=Object.getOwnPropertySymbols(Te);ke<Ee.length;ke++)we.indexOf(Ee[ke])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[ke])&&(Ce[Ee[ke]]=Te[Ee[ke]]);return Ce};const Oe=Te=>{const{getPopupContainer:we,getPrefixCls:Ce,direction:Ee}=dt.useContext(Ue.E_),{prefixCls:ke,type:Ke="default",danger:Qe,disabled:je,loading:Je,onClick:Ve,htmlType:ct,children:ot,className:pt,menu:Ct,arrow:He,autoFocus:ht,overlay:_e,trigger:Re,align:Ot,open:it,onOpenChange:at,placement:Et,getPopupContainer:Ze,href:De,icon:ut=dt.createElement(Le.Z,null),title:Zt,buttonsRender:Kt=st=>st,mouseEnterDelay:tt,mouseLeaveDelay:Dt,overlayClassName:jt,overlayStyle:An,destroyPopupOnHide:kt,dropdownRender:pn}=Te,Pt=oe(Te,["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"]),En=Ce("dropdown",ke),on=`${En}-button`,de={menu:Ct,arrow:He,autoFocus:ht,align:Ot,disabled:je,trigger:je?[]:Re,onOpenChange:at,getPopupContainer:Ze||we,mouseEnterDelay:tt,mouseLeaveDelay:Dt,overlayClassName:jt,overlayStyle:An,destroyPopupOnHide:kt,dropdownRender:pn},{compactSize:pe,compactItemClassnames:ie}=(0,xe.ri)(En,Ee),ee=ze()(on,ie,pt);"overlay"in Te&&(de.overlay=_e),"open"in Te&&(de.open=it),"placement"in Te?de.placement=Et:de.placement=Ee==="rtl"?"bottomLeft":"bottomRight";const se=dt.createElement(Ie.ZP,{type:Ke,danger:Qe,disabled:je,loading:Je,onClick:Ve,htmlType:ct,href:De,title:Zt},ot),le=dt.createElement(Ie.ZP,{type:Ke,danger:Qe,icon:ut}),[Be,We]=Kt([se,le]);return dt.createElement(he.Z.Compact,Object.assign({className:ee,size:pe,block:!0},Pt),Be,dt.createElement(x.Z,Object.assign({},de),We))};Oe.__ANT_BUTTON=!0;var ve=Oe;const Me=x.Z;Me.Button=ve;var Se=Me},584:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ke}});var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(9017),ze=ae(17835),Ie=ae(57700),he=()=>{const[,Qe]=(0,Ie.ZP)(),[je]=(0,qe.Z)("Empty"),Ve=new ze.FastColor(Qe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return x.createElement("svg",{style:Ve,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(je==null?void 0:je.description)||"Empty"),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"}))))},oe=()=>{const[,Qe]=(0,Ie.ZP)(),[je]=(0,qe.Z)("Empty"),{colorFill:Je,colorFillTertiary:Ve,colorFillQuaternary:ct,colorBgContainer:ot}=Qe,{borderColor:pt,shadowColor:Ct,contentColor:He}=(0,x.useMemo)(()=>({borderColor:new ze.FastColor(Je).onBackground(ot).toHexString(),shadowColor:new ze.FastColor(Ve).onBackground(ot).toHexString(),contentColor:new ze.FastColor(ct).onBackground(ot).toHexString()}),[Je,Ve,ct,ot]);return x.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(je==null?void 0:je.description)||"Empty"),x.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},x.createElement("ellipse",{fill:Ct,cx:"32",cy:"33",rx:"32",ry:"7"}),x.createElement("g",{fillRule:"nonzero",stroke:pt},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:He}))))},Oe=ae(16931),ve=ae(51636);const Me=Qe=>{const{componentCls:je,margin:Je,marginXS:Ve,marginXL:ct,fontSize:ot,lineHeight:pt}=Qe;return{[je]:{marginInline:Ve,fontSize:ot,lineHeight:pt,textAlign:"center",[`${je}-image`]:{height:Qe.emptyImgHeight,marginBottom:Ve,opacity:Qe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${je}-description`]:{color:Qe.colorTextDescription},[`${je}-footer`]:{marginTop:Je},"&-normal":{marginBlock:ct,color:Qe.colorTextDescription,[`${je}-description`]:{color:Qe.colorTextDescription},[`${je}-image`]:{height:Qe.emptyImgHeightMD}},"&-small":{marginBlock:Ve,color:Qe.colorTextDescription,[`${je}-image`]:{height:Qe.emptyImgHeightSM}}}}};var Se=(0,Oe.I$)("Empty",Qe=>{const{componentCls:je,controlHeightLG:Je,calc:Ve}=Qe,ct=(0,ve.mergeToken)(Qe,{emptyImgCls:`${je}-img`,emptyImgHeight:Ve(Je).mul(2.5).equal(),emptyImgHeightMD:Je,emptyImgHeightSM:Ve(Je).mul(.875).equal()});return[Me(ct)]}),Te=ae(48755),we=function(Qe,je){var Je={};for(var Ve in Qe)Object.prototype.hasOwnProperty.call(Qe,Ve)&&je.indexOf(Ve)<0&&(Je[Ve]=Qe[Ve]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ve=Object.getOwnPropertySymbols(Qe);ct<Ve.length;ct++)je.indexOf(Ve[ct])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Ve[ct])&&(Je[Ve[ct]]=Qe[Ve[ct]]);return Je};const Ce=x.createElement(he,null),Ee=x.createElement(oe,null),ke=Qe=>{const{className:je,rootClassName:Je,prefixCls:Ve,image:ct=Ce,description:ot,children:pt,imageStyle:Ct,style:He,classNames:ht,styles:_e}=Qe,Re=we(Qe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ot,direction:it,className:at,style:Et,classNames:Ze,styles:De}=(0,Te.dj)("empty"),ut=Ot("empty",Ve),[Zt,Kt,tt]=Se(ut),[Dt]=(0,qe.Z)("Empty"),jt=typeof ot!="undefined"?ot:Dt==null?void 0:Dt.description,An=typeof jt=="string"?jt:"empty";let kt=null;return typeof ct=="string"?kt=x.createElement("img",{alt:An,src:ct}):kt=ct,Zt(x.createElement("div",Object.assign({className:Le()(Kt,tt,ut,at,{[`${ut}-normal`]:ct===Ee,[`${ut}-rtl`]:it==="rtl"},je,Je,Ze.root,ht==null?void 0:ht.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},De.root),Et),_e==null?void 0:_e.root),He)},Re),x.createElement("div",{className:Le()(`${ut}-image`,Ze.image,ht==null?void 0:ht.image),style:Object.assign(Object.assign(Object.assign({},Ct),De.image),_e==null?void 0:_e.image)},kt),jt&&x.createElement("div",{className:Le()(`${ut}-description`,Ze.description,ht==null?void 0:ht.description),style:Object.assign(Object.assign({},De.description),_e==null?void 0:_e.description)},jt),pt&&x.createElement("div",{className:Le()(`${ut}-footer`,Ze.footer,ht==null?void 0:ht.footer),style:Object.assign(Object.assign({},De.footer),_e==null?void 0:_e.footer)},pt)))};ke.PRESENTED_IMAGE_DEFAULT=Ce,ke.PRESENTED_IMAGE_SIMPLE=Ee;var Ke=ke},28284:function(qn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return vn}});var x=ae(56553),dt=ae(77654),Le=ae(59301),qe=ae(92310),ze=ae.n(qe),Ie=ae(77900),Ue=ae(86641),he=ae(83397);function xe(Ut){const[dn,$t]=Le.useState(Ut);return Le.useEffect(()=>{const hn=setTimeout(()=>{$t(Ut)},Ut.length?0:10);return()=>{clearTimeout(hn)}},[Ut]),dn}var oe=ae(36237),Oe=ae(63356),ve=ae(34925),Me=ae(34961),Se=ae(51636),Te=ae(16931),Ce=Ut=>{const{componentCls:dn}=Ut,$t=`${dn}-show-help`,hn=`${dn}-show-help-item`;return{[$t]:{transition:`opacity ${Ut.motionDurationFast} ${Ut.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[hn]:{overflow:"hidden",transition:`height ${Ut.motionDurationFast} ${Ut.motionEaseInOut},
|
|
|
opacity ${Ut.motionDurationFast} ${Ut.motionEaseInOut},
|
|
|
transform ${Ut.motionDurationFast} ${Ut.motionEaseInOut} !important`,[`&${hn}-appear, &${hn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${hn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ee=Ut=>({legend:{display:"block",width:"100%",marginBottom:Ut.marginLG,padding:0,color:Ut.colorTextDescription,fontSize:Ut.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,oe.unit)(Ut.lineWidth)} ${Ut.lineType} ${Ut.colorBorder}`},'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 ${(0,oe.unit)(Ut.controlOutlineWidth)} ${Ut.controlOutline}`},output:{display:"block",paddingTop:15,color:Ut.colorText,fontSize:Ut.fontSize,lineHeight:Ut.lineHeight}}),ke=(Ut,dn)=>{const{formItemCls:$t}=Ut;return{[$t]:{[`${$t}-label > label`]:{height:dn},[`${$t}-control-input`]:{minHeight:dn}}}},Ke=Ut=>{const{componentCls:dn}=Ut;return{[Ut.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Oe.Wf)(Ut)),Ee(Ut)),{[`${dn}-text`]:{display:"inline-block",paddingInlineEnd:Ut.paddingSM},"&-small":Object.assign({},ke(Ut,Ut.controlHeightSM)),"&-large":Object.assign({},ke(Ut,Ut.controlHeightLG))})}},Qe=Ut=>{const{formItemCls:dn,iconCls:$t,rootPrefixCls:hn,antCls:Nn,labelRequiredMarkColor:Hr,labelColor:zr,labelFontSize:Ai,labelHeight:hr,labelColonMarginInlineStart:nr,labelColonMarginInlineEnd:ir,itemMarginBottom:Yr}=Ut;return{[dn]:Object.assign(Object.assign({},(0,Oe.Wf)(Ut)),{marginBottom:Yr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Nn}-row`]:{display:"none"},"&-has-warning":{[`${dn}-split`]:{color:Ut.colorError}},"&-has-error":{[`${dn}-split`]:{color:Ut.colorWarning}},[`${dn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Ut.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:hr,color:zr,fontSize:Ai,[`> ${$t}`]:{fontSize:Ut.fontSize,verticalAlign:"top"},[`&${dn}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Ut.marginXXS,color:Hr,fontSize:Ut.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${dn}-required-mark-hidden, &${dn}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${dn}-optional`]:{display:"inline-block",marginInlineStart:Ut.marginXXS,color:Ut.colorTextDescription,[`&${dn}-required-mark-hidden`]:{display:"none"}},[`${dn}-tooltip`]:{color:Ut.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ut.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:nr,marginInlineEnd:ir},[`&${dn}-no-colon::after`]:{content:'"\\a0"'}}},[`${dn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${hn}-col-'"]):not([class*="' ${hn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ut.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[dn]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Ut.colorTextDescription,fontSize:Ut.fontSize,lineHeight:Ut.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ut.controlHeightSM,transition:`color ${Ut.motionDurationMid} ${Ut.motionEaseOut}`},"&-explain":{"&-error":{color:Ut.colorError},"&-warning":{color:Ut.colorWarning}}},[`&-with-help ${dn}-explain`]:{height:"auto",opacity:1},[`${dn}-feedback-icon`]:{fontSize:Ut.fontSize,textAlign:"center",visibility:"visible",animationName:ve.kr,animationDuration:Ut.motionDurationMid,animationTimingFunction:Ut.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ut.colorSuccess},"&-error":{color:Ut.colorError},"&-warning":{color:Ut.colorWarning},"&-validating":{color:Ut.colorPrimary}}})}},je=(Ut,dn)=>{const{formItemCls:$t}=Ut;return{[`${dn}-horizontal`]:{[`${$t}-label`]:{flexGrow:0},[`${$t}-control`]:{flex:"1 1 0",minWidth:0},[`${$t}-label[class$='-24'], ${$t}-label[class*='-24 ']`]:{[`& + ${$t}-control`]:{minWidth:"unset"}}}}},Je=Ut=>{const{componentCls:dn,formItemCls:$t,inlineItemMarginBottom:hn}=Ut;return{[`${dn}-inline`]:{display:"flex",flexWrap:"wrap",[$t]:{flex:"none",marginInlineEnd:Ut.margin,marginBottom:hn,"&-row":{flexWrap:"nowrap"},[`> ${$t}-label,
|
|
|
> ${$t}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${$t}-label`]:{flex:"none"},[`${dn}-text`]:{display:"inline-block"},[`${$t}-has-feedback`]:{display:"inline-block"}}}}},Ve=Ut=>({padding:Ut.verticalLabelPadding,margin:Ut.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ct=Ut=>{const{componentCls:dn,formItemCls:$t,rootPrefixCls:hn}=Ut;return{[`${$t} ${$t}-label`]:Ve(Ut),[`${dn}:not(${dn}-inline)`]:{[$t]:{flexWrap:"wrap",[`${$t}-label, ${$t}-control`]:{[`&:not([class*=" ${hn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ot=Ut=>{const{componentCls:dn,formItemCls:$t,antCls:hn}=Ut;return{[`${dn}-vertical`]:{[`${$t}:not(${$t}-horizontal)`]:{[`${$t}-row`]:{flexDirection:"column"},[`${$t}-label > label`]:{height:"auto"},[`${$t}-control`]:{width:"100%"},[`${$t}-label,
|
|
|
${hn}-col-24${$t}-label,
|
|
|
${hn}-col-xl-24${$t}-label`]:Ve(Ut)}},[`@media (max-width: ${(0,oe.unit)(Ut.screenXSMax)})`]:[ct(Ut),{[dn]:{[`${$t}:not(${$t}-horizontal)`]:{[`${hn}-col-xs-24${$t}-label`]:Ve(Ut)}}}],[`@media (max-width: ${(0,oe.unit)(Ut.screenSMMax)})`]:{[dn]:{[`${$t}:not(${$t}-horizontal)`]:{[`${hn}-col-sm-24${$t}-label`]:Ve(Ut)}}},[`@media (max-width: ${(0,oe.unit)(Ut.screenMDMax)})`]:{[dn]:{[`${$t}:not(${$t}-horizontal)`]:{[`${hn}-col-md-24${$t}-label`]:Ve(Ut)}}},[`@media (max-width: ${(0,oe.unit)(Ut.screenLGMax)})`]:{[dn]:{[`${$t}:not(${$t}-horizontal)`]:{[`${hn}-col-lg-24${$t}-label`]:Ve(Ut)}}}}},pt=Ut=>{const{formItemCls:dn,antCls:$t}=Ut;return{[`${dn}-vertical`]:{[`${dn}-row`]:{flexDirection:"column"},[`${dn}-label > label`]:{height:"auto"},[`${dn}-control`]:{width:"100%"}},[`${dn}-vertical ${dn}-label,
|
|
|
${$t}-col-24${dn}-label,
|
|
|
${$t}-col-xl-24${dn}-label`]:Ve(Ut),[`@media (max-width: ${(0,oe.unit)(Ut.screenXSMax)})`]:[ct(Ut),{[dn]:{[`${$t}-col-xs-24${dn}-label`]:Ve(Ut)}}],[`@media (max-width: ${(0,oe.unit)(Ut.screenSMMax)})`]:{[dn]:{[`${$t}-col-sm-24${dn}-label`]:Ve(Ut)}},[`@media (max-width: ${(0,oe.unit)(Ut.screenMDMax)})`]:{[dn]:{[`${$t}-col-md-24${dn}-label`]:Ve(Ut)}},[`@media (max-width: ${(0,oe.unit)(Ut.screenLGMax)})`]:{[dn]:{[`${$t}-col-lg-24${dn}-label`]:Ve(Ut)}}}},Ct=Ut=>({labelRequiredMarkColor:Ut.colorError,labelColor:Ut.colorTextHeading,labelFontSize:Ut.fontSize,labelHeight:Ut.controlHeight,labelColonMarginInlineStart:Ut.marginXXS/2,labelColonMarginInlineEnd:Ut.marginXS,itemMarginBottom:Ut.marginLG,verticalLabelPadding:`0 0 ${Ut.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),He=(Ut,dn)=>(0,Se.mergeToken)(Ut,{formItemCls:`${Ut.componentCls}-item`,rootPrefixCls:dn});var ht=(0,Te.I$)("Form",(Ut,dn)=>{let{rootPrefixCls:$t}=dn;const hn=He(Ut,$t);return[Ke(hn),Qe(hn),Ce(hn),je(hn,hn.componentCls),je(hn,hn.formItemCls),Je(hn),ot(hn),pt(hn),(0,Me.Z)(hn),ve.kr]},Ct,{order:-1e3});const _e=[];function Re(Ut,dn,$t){let hn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ut=="string"?Ut:`${dn}-${hn}`,error:Ut,errorStatus:$t}}var it=Ut=>{let{help:dn,helpStatus:$t,errors:hn=_e,warnings:Nn=_e,className:Hr,fieldId:zr,onVisibleChanged:Ai}=Ut;const{prefixCls:hr}=Le.useContext(x.Rk),nr=`${hr}-item-explain`,ir=(0,he.Z)(hr),[Yr,Mi,Yn]=ht(hr,ir),Vn=Le.useMemo(()=>(0,Ue.Z)(hr),[hr]),Mr=xe(hn),Tn=xe(Nn),mn=Le.useMemo(()=>dn!=null?[Re(dn,"help",$t)]:[].concat((0,dt.Z)(Mr.map((ar,kr)=>Re(ar,"error","error",kr))),(0,dt.Z)(Tn.map((ar,kr)=>Re(ar,"warning","warning",kr)))),[dn,$t,Mr,Tn]),tr=Le.useMemo(()=>{const ar={};return mn.forEach(kr=>{let{key:vi}=kr;ar[vi]=(ar[vi]||0)+1}),mn.map((kr,vi)=>Object.assign(Object.assign({},kr),{key:ar[kr.key]>1?`${kr.key}-fallback-${vi}`:kr.key}))},[mn]),or={};return zr&&(or.id=`${zr}_help`),Yr(Le.createElement(Ie.default,{motionDeadline:Vn.motionDeadline,motionName:`${hr}-show-help`,visible:!!tr.length,onVisibleChanged:Ai},ar=>{const{className:kr,style:vi}=ar;return Le.createElement("div",Object.assign({},or,{className:ze()(nr,kr,Yn,ir,Hr,Mi),style:vi}),Le.createElement(Ie.CSSMotionList,Object.assign({keys:tr},(0,Ue.Z)(hr),{motionName:`${hr}-show-help-item`,component:!1}),qr=>{const{key:Li,error:_i,errorStatus:ri,className:hi,style:ro}=qr;return Le.createElement("div",{key:Li,className:ze()(hi,{[`${nr}-${ri}`]:ri}),style:ro},_i)}))}))},at=ae(55372),Et=ae(48755),Ze=ae(2171),De=ae(31756),ut=ae(23069),Zt=ae(76846),Kt=ae(16722);const tt=["parentNode"],Dt="form_item";function jt(Ut){return Ut===void 0||Ut===!1?[]:Array.isArray(Ut)?Ut:[Ut]}function An(Ut,dn){if(!Ut.length)return;const $t=Ut.join("_");return dn?`${dn}_${$t}`:tt.includes($t)?`${Dt}_${$t}`:$t}function kt(Ut,dn,$t,hn,Nn,Hr){let zr=hn;return Hr!==void 0?zr=Hr:$t.validating?zr="validating":Ut.length?zr="error":dn.length?zr="warning":($t.touched||Nn&&$t.validated)&&(zr="success"),zr}var pn=function(Ut,dn){var $t={};for(var hn in Ut)Object.prototype.hasOwnProperty.call(Ut,hn)&&dn.indexOf(hn)<0&&($t[hn]=Ut[hn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,hn=Object.getOwnPropertySymbols(Ut);Nn<hn.length;Nn++)dn.indexOf(hn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Ut,hn[Nn])&&($t[hn[Nn]]=Ut[hn[Nn]]);return $t};function Pt(Ut){return jt(Ut).join("_")}function En(Ut,dn){const $t=dn.getFieldInstance(Ut),hn=(0,Zt.bn)($t);if(hn)return hn;const Nn=An(jt(Ut),dn.__INTERNAL__.name);if(Nn)return document.getElementById(Nn)}function on(Ut){const[dn]=(0,at.useForm)(),$t=Le.useRef({}),hn=Le.useMemo(()=>Ut!=null?Ut:Object.assign(Object.assign({},dn),{__INTERNAL__:{itemRef:Nn=>Hr=>{const zr=Pt(Nn);Hr?$t.current[zr]=Hr:delete $t.current[zr]}},scrollToField:function(Nn){let Hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:zr}=Hr,Ai=pn(Hr,["focus"]),hr=En(Nn,hn);hr&&((0,Kt.Z)(hr,Object.assign({scrollMode:"if-needed",block:"nearest"},Ai)),zr&&hn.focusField(Nn))},focusField:Nn=>{var Hr,zr;const Ai=hn.getFieldInstance(Nn);typeof(Ai==null?void 0:Ai.focus)=="function"?Ai.focus():(zr=(Hr=En(Nn,hn))===null||Hr===void 0?void 0:Hr.focus)===null||zr===void 0||zr.call(Hr)},getFieldInstance:Nn=>{const Hr=Pt(Nn);return $t.current[Hr]}}),[Ut,dn]);return[hn]}var de=ae(98350),pe=function(Ut,dn){var $t={};for(var hn in Ut)Object.prototype.hasOwnProperty.call(Ut,hn)&&dn.indexOf(hn)<0&&($t[hn]=Ut[hn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,hn=Object.getOwnPropertySymbols(Ut);Nn<hn.length;Nn++)dn.indexOf(hn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Ut,hn[Nn])&&($t[hn[Nn]]=Ut[hn[Nn]]);return $t};const ie=(Ut,dn)=>{const $t=Le.useContext(Ze.Z),{getPrefixCls:hn,direction:Nn,requiredMark:Hr,colon:zr,scrollToFirstError:Ai,className:hr,style:nr}=(0,Et.dj)("form"),{prefixCls:ir,className:Yr,rootClassName:Mi,size:Yn,disabled:Vn=$t,form:Mr,colon:Tn,labelAlign:mn,labelWrap:tr,labelCol:or,wrapperCol:ar,hideRequiredMark:kr,layout:vi="horizontal",scrollToFirstError:qr,requiredMark:Li,onFinishFailed:_i,name:ri,style:hi,feedbackIcons:ro,variant:ki}=Ut,bi=pe(Ut,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Ni=(0,De.Z)(Yn),oo=Le.useContext(de.Z),Di=Le.useMemo(()=>Li!==void 0?Li:kr?!1:Hr!==void 0?Hr:!0,[kr,Li,Hr]),yo=Tn!=null?Tn:zr,Ji=hn("form",ir),po=(0,he.Z)(Ji),[ho,Jo,xo]=ht(Ji,po),no=ze()(Ji,`${Ji}-${vi}`,{[`${Ji}-hide-required-mark`]:Di===!1,[`${Ji}-rtl`]:Nn==="rtl",[`${Ji}-${Ni}`]:Ni},xo,po,Jo,hr,Yr,Mi),[Do]=on(Mr),{__INTERNAL__:Zo}=Do;Zo.name=ri;const jo=Le.useMemo(()=>({name:ri,labelAlign:mn,labelCol:or,labelWrap:tr,wrapperCol:ar,vertical:vi==="vertical",colon:yo,requiredMark:Di,itemRef:Zo.itemRef,form:Do,feedbackIcons:ro}),[ri,mn,or,ar,vi,yo,Di,Do,ro]),Cn=Le.useRef(null);Le.useImperativeHandle(dn,()=>{var Vr;return Object.assign(Object.assign({},Do),{nativeElement:(Vr=Cn.current)===null||Vr===void 0?void 0:Vr.nativeElement})});const Vi=(Vr,ci)=>{if(Vr){let Zr={block:"nearest"};typeof Vr=="object"&&(Zr=Object.assign(Object.assign({},Zr),Vr)),Do.scrollToField(ci,Zr)}},Ur=Vr=>{if(_i==null||_i(Vr),Vr.errorFields.length){const ci=Vr.errorFields[0].name;if(qr!==void 0){Vi(qr,ci);return}Ai!==void 0&&Vi(Ai,ci)}};return ho(Le.createElement(x.pg.Provider,{value:ki},Le.createElement(Ze.n,{disabled:Vn},Le.createElement(ut.Z.Provider,{value:Ni},Le.createElement(x.RV,{validateMessages:oo},Le.createElement(x.q3.Provider,{value:jo},Le.createElement(at.default,Object.assign({id:ri},bi,{name:ri,onFinishFailed:Ur,form:Do,ref:Cn,style:Object.assign(Object.assign({},nr),hi),className:no}))))))))};var se=Le.forwardRef(ie),le=ae(41799),Be=ae(8654),We=ae(22703),st=ae(32383),mt=ae(11592);function vt(Ut){if(typeof Ut=="function")return Ut;const dn=(0,mt.Z)(Ut);return dn.length<=1?dn[0]:dn}const St=()=>{const{status:Ut,errors:dn=[],warnings:$t=[]}=Le.useContext(x.aM);return{status:Ut,errors:dn,warnings:$t}};St.Context=x.aM;var _t=St,Qt=ae(16089);function xt(Ut){const[dn,$t]=Le.useState(Ut),hn=Le.useRef(null),Nn=Le.useRef([]),Hr=Le.useRef(!1);Le.useEffect(()=>(Hr.current=!1,()=>{Hr.current=!0,Qt.Z.cancel(hn.current),hn.current=null}),[]);function zr(Ai){Hr.current||(hn.current===null&&(Nn.current=[],hn.current=(0,Qt.Z)(()=>{hn.current=null,$t(hr=>{let nr=hr;return Nn.current.forEach(ir=>{nr=ir(nr)}),nr})})),Nn.current.push(Ai))}return[dn,zr]}function lt(){const{itemRef:Ut}=Le.useContext(x.q3),dn=Le.useRef({});function $t(hn,Nn){const Hr=Nn&&typeof Nn=="object"&&(0,Be.C4)(Nn),zr=hn.join("_");return(dn.current.name!==zr||dn.current.originRef!==Hr)&&(dn.current.name=zr,dn.current.originRef=Hr,dn.current.ref=(0,Be.sQ)(Ut(hn),Hr)),dn.current.ref}return $t}var Vt=ae(29194),Wt=ae(34280),gn=ae(2738),an=ae(65970),en=ae(70425),zn=ae(5472);const Fn=Ut=>{const{formItemCls:dn}=Ut;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${dn}-control`]:{display:"flex"}}}};var Rt=(0,Te.bk)(["Form","item-item"],(Ut,dn)=>{let{rootPrefixCls:$t}=dn;const hn=He(Ut,$t);return[Fn(hn)]}),sn=function(Ut,dn){var $t={};for(var hn in Ut)Object.prototype.hasOwnProperty.call(Ut,hn)&&dn.indexOf(hn)<0&&($t[hn]=Ut[hn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,hn=Object.getOwnPropertySymbols(Ut);Nn<hn.length;Nn++)dn.indexOf(hn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Ut,hn[Nn])&&($t[hn[Nn]]=Ut[hn[Nn]]);return $t};const _n=24;var Lt=Ut=>{const{prefixCls:dn,status:$t,labelCol:hn,wrapperCol:Nn,children:Hr,errors:zr,warnings:Ai,_internalItemRender:hr,extra:nr,help:ir,fieldId:Yr,marginBottom:Mi,onErrorVisibleChanged:Yn,label:Vn}=Ut,Mr=`${dn}-item`,Tn=Le.useContext(x.q3),mn=Le.useMemo(()=>{let bi=Object.assign({},Nn||Tn.wrapperCol||{});return Vn===null&&!hn&&!Nn&&Tn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(oo=>{const Di=oo?[oo]:[],yo=(0,en.U2)(Tn.labelCol,Di),Ji=typeof yo=="object"?yo:{},po=(0,en.U2)(bi,Di),ho=typeof po=="object"?po:{};"span"in Ji&&!("offset"in ho)&&Ji.span<_n&&(bi=(0,en.t8)(bi,[].concat(Di,["offset"]),Ji.span))}),bi},[Nn,Tn]),tr=ze()(`${Mr}-control`,mn.className),or=Le.useMemo(()=>{const{labelCol:bi,wrapperCol:Ni}=Tn;return sn(Tn,["labelCol","wrapperCol"])},[Tn]),ar=Le.useRef(null),[kr,vi]=Le.useState(0);(0,Wt.Z)(()=>{nr&&ar.current?vi(ar.current.clientHeight):vi(0)},[nr]);const qr=Le.createElement("div",{className:`${Mr}-control-input`},Le.createElement("div",{className:`${Mr}-control-input-content`},Hr)),Li=Le.useMemo(()=>({prefixCls:dn,status:$t}),[dn,$t]),_i=Mi!==null||zr.length||Ai.length?Le.createElement(x.Rk.Provider,{value:Li},Le.createElement(it,{fieldId:Yr,errors:zr,warnings:Ai,help:ir,helpStatus:$t,className:`${Mr}-explain-connected`,onVisibleChanged:Yn})):null,ri={};Yr&&(ri.id=`${Yr}_extra`);const hi=nr?Le.createElement("div",Object.assign({},ri,{className:`${Mr}-extra`,ref:ar}),nr):null,ro=_i||hi?Le.createElement("div",{className:`${Mr}-additional`,style:Mi?{minHeight:Mi+kr}:{}},_i,hi):null,ki=hr&&hr.mark==="pro_table_render"&&hr.render?hr.render(Ut,{input:qr,errorList:_i,extra:hi}):Le.createElement(Le.Fragment,null,qr,ro);return Le.createElement(x.q3.Provider,{value:or},Le.createElement(zn.Z,Object.assign({},mn,{className:tr}),ki),Le.createElement(Rt,{prefixCls:dn}))},Gt=ae(61485),nn=ae(9017),wn=ae(85981),Gn=ae(25399),Er=function(Ut,dn){var $t={};for(var hn in Ut)Object.prototype.hasOwnProperty.call(Ut,hn)&&dn.indexOf(hn)<0&&($t[hn]=Ut[hn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,hn=Object.getOwnPropertySymbols(Ut);Nn<hn.length;Nn++)dn.indexOf(hn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Ut,hn[Nn])&&($t[hn[Nn]]=Ut[hn[Nn]]);return $t};function ti(Ut){return Ut?typeof Ut=="object"&&!Le.isValidElement(Ut)?Ut:{title:Ut}:null}var Ar=Ut=>{let{prefixCls:dn,label:$t,htmlFor:hn,labelCol:Nn,labelAlign:Hr,colon:zr,required:Ai,requiredMark:hr,tooltip:nr,vertical:ir}=Ut;var Yr;const[Mi]=(0,nn.Z)("Form"),{labelAlign:Yn,labelCol:Vn,labelWrap:Mr,colon:Tn}=Le.useContext(x.q3);if(!$t)return null;const mn=Nn||Vn||{},tr=Hr||Yn,or=`${dn}-item-label`,ar=ze()(or,tr==="left"&&`${or}-left`,mn.className,{[`${or}-wrap`]:!!Mr});let kr=$t;const vi=zr===!0||Tn!==!1&&zr!==!1;vi&&!ir&&typeof $t=="string"&&$t.trim()&&(kr=$t.replace(/[:|:]\s*$/,""));const Li=ti(nr);if(Li){const{icon:bi=Le.createElement(Gt.Z,null)}=Li,Ni=Er(Li,["icon"]),oo=Le.createElement(Gn.Z,Object.assign({},Ni),Le.cloneElement(bi,{className:`${dn}-item-tooltip`,title:"",onClick:Di=>{Di.preventDefault()},tabIndex:null}));kr=Le.createElement(Le.Fragment,null,kr,oo)}const _i=hr==="optional",ri=typeof hr=="function",hi=hr===!1;ri?kr=hr(kr,{required:!!Ai}):_i&&!Ai&&(kr=Le.createElement(Le.Fragment,null,kr,Le.createElement("span",{className:`${dn}-item-optional`,title:""},(Mi==null?void 0:Mi.optional)||((Yr=wn.Z.Form)===null||Yr===void 0?void 0:Yr.optional))));let ro;hi?ro="hidden":(_i||ri)&&(ro="optional");const ki=ze()({[`${dn}-item-required`]:Ai,[`${dn}-item-required-mark-${ro}`]:ro,[`${dn}-item-no-colon`]:!vi});return Le.createElement(zn.Z,Object.assign({},mn,{className:ar}),Le.createElement("label",{htmlFor:hn,className:ki,title:typeof $t=="string"?$t:""},kr))},Ir=ae(29679),jn=ae(19248),Hn=ae(96512),Jn=ae(58617);const lr={success:Ir.Z,warning:Hn.Z,error:jn.Z,validating:Jn.Z};function $n(Ut){let{children:dn,errors:$t,warnings:hn,hasFeedback:Nn,validateStatus:Hr,prefixCls:zr,meta:Ai,noStyle:hr}=Ut;const nr=`${zr}-item`,{feedbackIcons:ir}=Le.useContext(x.q3),Yr=kt($t,hn,Ai,null,!!Nn,Hr),{isFormItemInput:Mi,status:Yn,hasFeedback:Vn,feedbackIcon:Mr}=Le.useContext(x.aM),Tn=Le.useMemo(()=>{var mn;let tr;if(Nn){const ar=Nn!==!0&&Nn.icons||ir,kr=Yr&&((mn=ar==null?void 0:ar({status:Yr,errors:$t,warnings:hn}))===null||mn===void 0?void 0:mn[Yr]),vi=Yr&&lr[Yr];tr=kr!==!1&&vi?Le.createElement("span",{className:ze()(`${nr}-feedback-icon`,`${nr}-feedback-icon-${Yr}`)},kr||Le.createElement(vi,null)):null}const or={status:Yr||"",errors:$t,warnings:hn,hasFeedback:!!Nn,feedbackIcon:tr,isFormItemInput:!0};return hr&&(or.status=(Yr!=null?Yr:Yn)||"",or.isFormItemInput=Mi,or.hasFeedback=!!(Nn!=null?Nn:Vn),or.feedbackIcon=Nn!==void 0?or.feedbackIcon:Mr),or},[Yr,Nn,hr,Mi,Yn]);return Le.createElement(x.aM.Provider,{value:Tn},dn)}var br=function(Ut,dn){var $t={};for(var hn in Ut)Object.prototype.hasOwnProperty.call(Ut,hn)&&dn.indexOf(hn)<0&&($t[hn]=Ut[hn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,hn=Object.getOwnPropertySymbols(Ut);Nn<hn.length;Nn++)dn.indexOf(hn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Ut,hn[Nn])&&($t[hn[Nn]]=Ut[hn[Nn]]);return $t};function Br(Ut){const{prefixCls:dn,className:$t,rootClassName:hn,style:Nn,help:Hr,errors:zr,warnings:Ai,validateStatus:hr,meta:nr,hasFeedback:ir,hidden:Yr,children:Mi,fieldId:Yn,required:Vn,isRequired:Mr,onSubItemMetaChange:Tn,layout:mn}=Ut,tr=br(Ut,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),or=`${dn}-item`,{requiredMark:ar,vertical:kr}=Le.useContext(x.q3),vi=kr||mn==="vertical",qr=Le.useRef(null),Li=xe(zr),_i=xe(Ai),ri=Hr!=null,hi=!!(ri||zr.length||Ai.length),ro=!!qr.current&&(0,Vt.Z)(qr.current),[ki,bi]=Le.useState(null);(0,Wt.Z)(()=>{if(hi&&qr.current){const Ji=getComputedStyle(qr.current);bi(parseInt(Ji.marginBottom,10))}},[hi,ro]);const Ni=Ji=>{Ji||bi(null)},Di=function(){let Ji=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const po=Ji?Li:nr.errors,ho=Ji?_i:nr.warnings;return kt(po,ho,nr,"",!!ir,hr)}(),yo=ze()(or,$t,hn,{[`${or}-with-help`]:ri||Li.length||_i.length,[`${or}-has-feedback`]:Di&&ir,[`${or}-has-success`]:Di==="success",[`${or}-has-warning`]:Di==="warning",[`${or}-has-error`]:Di==="error",[`${or}-is-validating`]:Di==="validating",[`${or}-hidden`]:Yr,[`${or}-${mn}`]:mn});return Le.createElement("div",{className:yo,style:Nn,ref:qr},Le.createElement(an.Z,Object.assign({className:`${or}-row`},(0,gn.Z)(tr,["_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"])),Le.createElement(Ar,Object.assign({htmlFor:Yn},Ut,{requiredMark:ar,required:Vn!=null?Vn:Mr,prefixCls:dn,vertical:vi})),Le.createElement(Lt,Object.assign({},Ut,nr,{errors:Li,warnings:_i,prefixCls:dn,status:Di,help:Hr,marginBottom:ki,onErrorVisibleChanged:Ni}),Le.createElement(x.qI.Provider,{value:Tn},Le.createElement($n,{prefixCls:dn,meta:nr,errors:nr.errors,warnings:nr.warnings,hasFeedback:ir,validateStatus:Di},Mi)))),!!ki&&Le.createElement("div",{className:`${or}-margin-offset`,style:{marginBottom:-ki}}))}const _r="__SPLIT__",mi=null;function di(Ut,dn){const $t=Object.keys(Ut),hn=Object.keys(dn);return $t.length===hn.length&&$t.every(Nn=>{const Hr=Ut[Nn],zr=dn[Nn];return Hr===zr||typeof Hr=="function"||typeof zr=="function"})}const fi=Le.memo(Ut=>{let{children:dn}=Ut;return dn},(Ut,dn)=>di(Ut.control,dn.control)&&Ut.update===dn.update&&Ut.childProps.length===dn.childProps.length&&Ut.childProps.every(($t,hn)=>$t===dn.childProps[hn]));function Ti(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function xi(Ut){const{name:dn,noStyle:$t,className:hn,dependencies:Nn,prefixCls:Hr,shouldUpdate:zr,rules:Ai,children:hr,required:nr,label:ir,messageVariables:Yr,trigger:Mi="onChange",validateTrigger:Yn,hidden:Vn,help:Mr,layout:Tn}=Ut,{getPrefixCls:mn}=Le.useContext(Et.E_),{name:tr}=Le.useContext(x.q3),or=vt(hr),ar=typeof or=="function",kr=Le.useContext(x.qI),{validateTrigger:vi}=Le.useContext(at.FieldContext),qr=Yn!==void 0?Yn:vi,Li=dn!=null,_i=mn("form",Hr),ri=(0,he.Z)(_i),[hi,ro,ki]=ht(_i,ri),bi=(0,st.ln)("Form.Item"),Ni=Le.useContext(at.ListContext),oo=Le.useRef(null),[Di,yo]=xt({}),[Ji,po]=(0,le.Z)(()=>Ti()),ho=Cn=>{const Vi=Ni==null?void 0:Ni.getKey(Cn.name);if(po(Cn.destroy?Ti():Cn,!0),$t&&Mr!==!1&&kr){let Ur=Cn.name;if(Cn.destroy)Ur=oo.current||Ur;else if(Vi!==void 0){const[Vr,ci]=Vi;Ur=[Vr].concat((0,dt.Z)(ci)),oo.current=Ur}kr(Cn,Ur)}},Jo=(Cn,Vi)=>{yo(Ur=>{const Vr=Object.assign({},Ur),Zr=[].concat((0,dt.Z)(Cn.name.slice(0,-1)),(0,dt.Z)(Vi)).join(_r);return Cn.destroy?delete Vr[Zr]:Vr[Zr]=Cn,Vr})},[xo,no]=Le.useMemo(()=>{const Cn=(0,dt.Z)(Ji.errors),Vi=(0,dt.Z)(Ji.warnings);return Object.values(Di).forEach(Ur=>{Cn.push.apply(Cn,(0,dt.Z)(Ur.errors||[])),Vi.push.apply(Vi,(0,dt.Z)(Ur.warnings||[]))}),[Cn,Vi]},[Di,Ji.errors,Ji.warnings]),Do=lt();function Zo(Cn,Vi,Ur){return $t&&!Vn?Le.createElement($n,{prefixCls:_i,hasFeedback:Ut.hasFeedback,validateStatus:Ut.validateStatus,meta:Ji,errors:xo,warnings:no,noStyle:!0},Cn):Le.createElement(Br,Object.assign({key:"row"},Ut,{className:ze()(hn,ki,ri,ro),prefixCls:_i,fieldId:Vi,isRequired:Ur,errors:xo,warnings:no,meta:Ji,onSubItemMetaChange:Jo,layout:Tn}),Cn)}if(!Li&&!ar&&!Nn)return hi(Zo(or));let jo={};return typeof ir=="string"?jo.label=ir:dn&&(jo.label=String(dn)),Yr&&(jo=Object.assign(Object.assign({},jo),Yr)),hi(Le.createElement(at.Field,Object.assign({},Ut,{messageVariables:jo,trigger:Mi,validateTrigger:qr,onMetaChange:ho}),(Cn,Vi,Ur)=>{const Vr=jt(dn).length&&Vi?Vi.name:[],ci=An(Vr,tr),Zr=nr!==void 0?nr:!!(Ai!=null&&Ai.some(Rr=>{if(Rr&&typeof Rr=="object"&&Rr.required&&!Rr.warningOnly)return!0;if(typeof Rr=="function"){const ai=Rr(Ur);return(ai==null?void 0:ai.required)&&!(ai!=null&&ai.warningOnly)}return!1})),Qi=Object.assign({},Cn);let eo=null;if(Array.isArray(or)&&Li)eo=or;else if(!(ar&&(!(zr||Nn)||Li))){if(!(Nn&&!ar&&!Li))if(Le.isValidElement(or)){const Rr=Object.assign(Object.assign({},or.props),Qi);if(Rr.id||(Rr.id=ci),Mr||xo.length>0||no.length>0||Ut.extra){const Ri=[];(Mr||xo.length>0)&&Ri.push(`${ci}_help`),Ut.extra&&Ri.push(`${ci}_extra`),Rr["aria-describedby"]=Ri.join(" ")}xo.length>0&&(Rr["aria-invalid"]="true"),Zr&&(Rr["aria-required"]="true"),(0,Be.Yr)(or)&&(Rr.ref=Do(Vr,or)),new Set([].concat((0,dt.Z)(jt(Mi)),(0,dt.Z)(jt(qr)))).forEach(Ri=>{Rr[Ri]=function(){for(var Mo,ui,Zi,Wo,Xo,ra=arguments.length,Qo=new Array(ra),qo=0;qo<ra;qo++)Qo[qo]=arguments[qo];(Zi=Qi[Ri])===null||Zi===void 0||(Mo=Zi).call.apply(Mo,[Qi].concat(Qo)),(Xo=(Wo=or.props)[Ri])===null||Xo===void 0||(ui=Xo).call.apply(ui,[Wo].concat(Qo))}});const Fi=[Rr["aria-required"],Rr["aria-invalid"],Rr["aria-describedby"]];eo=Le.createElement(fi,{control:Qi,update:or,childProps:Fi},(0,We.Tm)(or,Rr))}else ar&&(zr||Nn)&&!Li?eo=or(Ur):eo=or}return Zo(eo,ci,Zr)}))}const io=xi;io.useStatus=_t;var Xi=io,ur=function(Ut,dn){var $t={};for(var hn in Ut)Object.prototype.hasOwnProperty.call(Ut,hn)&&dn.indexOf(hn)<0&&($t[hn]=Ut[hn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,hn=Object.getOwnPropertySymbols(Ut);Nn<hn.length;Nn++)dn.indexOf(hn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Ut,hn[Nn])&&($t[hn[Nn]]=Ut[hn[Nn]]);return $t},gi=Ut=>{var{prefixCls:dn,children:$t}=Ut,hn=ur(Ut,["prefixCls","children"]);const{getPrefixCls:Nn}=Le.useContext(Et.E_),Hr=Nn("form",dn),zr=Le.useMemo(()=>({prefixCls:Hr,status:"error"}),[Hr]);return Le.createElement(at.List,Object.assign({},hn),(Ai,hr,nr)=>Le.createElement(x.Rk.Provider,{value:zr},$t(Ai.map(ir=>Object.assign(Object.assign({},ir),{fieldKey:ir.key})),hr,{errors:nr.errors,warnings:nr.warnings})))};function ni(){const{form:Ut}=Le.useContext(x.q3);return Ut}const gt=se;gt.Item=Xi,gt.List=gi,gt.ErrorList=it,gt.useForm=on,gt.useFormInstance=ni,gt.useWatch=at.useWatch,gt.Provider=x.RV,gt.create=()=>{};var vn=gt},75786:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Mr}});var x=ae(59301),dt=ae(15277),Le=ae(92310),qe=ae.n(Le),ze=ae(60499),Ie=ae(85899),Ue=ae(18642),he=ae(72190),xe=ae(43749),oe=ae(42244),Oe=/margin|padding|width|height|max|min|offset/,ve={left:!0,top:!0},Me={cssFloat:1,styleFloat:1,float:1};function Se(Tn){return Tn.nodeType===1?Tn.ownerDocument.defaultView.getComputedStyle(Tn,null):{}}function Te(Tn,mn,tr){if(mn=mn.toLowerCase(),tr==="auto"){if(mn==="height")return Tn.offsetHeight;if(mn==="width")return Tn.offsetWidth}return mn in ve||(ve[mn]=Oe.test(mn)),ve[mn]?parseFloat(tr)||0:tr}function we(Tn,mn){var tr=arguments.length,or=Se(Tn);return mn=Me[mn]?"cssFloat"in Tn.style?"cssFloat":"styleFloat":mn,tr===1?or:Te(Tn,mn,or[mn]||Tn.style[mn])}function Ce(Tn,mn,tr){var or=arguments.length;if(mn=Me[mn]?"cssFloat"in Tn.style?"cssFloat":"styleFloat":mn,or===3)return typeof tr=="number"&&Oe.test(mn)&&(tr="".concat(tr,"px")),Tn.style[mn]=tr,tr;for(var ar in mn)mn.hasOwnProperty(ar)&&Ce(Tn,ar,mn[ar]);return Se(Tn)}function Ee(Tn){return Tn===document.body?document.documentElement.clientWidth:Tn.offsetWidth}function ke(Tn){return Tn===document.body?window.innerHeight||document.documentElement.clientHeight:Tn.offsetHeight}function Ke(){var Tn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),mn=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Tn,height:mn}}function Qe(){var Tn=document.documentElement.clientWidth,mn=window.innerHeight||document.documentElement.clientHeight;return{width:Tn,height:mn}}function je(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Je(Tn){var mn=Tn.getBoundingClientRect(),tr=document.documentElement;return{left:mn.left+(window.pageXOffset||tr.scrollLeft)-(tr.clientLeft||document.body.clientLeft||0),top:mn.top+(window.pageYOffset||tr.scrollTop)-(tr.clientTop||document.body.clientTop||0)}}var Ve=ae(18929),ct=ae(55311),ot=ae(8224),pt=ae(10228),Ct=ae(43403),He=ae(77900),ht=x.createContext(null),_e=function(mn){var tr=mn.visible,or=mn.maskTransitionName,ar=mn.getContainer,kr=mn.prefixCls,vi=mn.rootClassName,qr=mn.icons,Li=mn.countRender,_i=mn.showSwitch,ri=mn.showProgress,hi=mn.current,ro=mn.transform,ki=mn.count,bi=mn.scale,Ni=mn.minScale,oo=mn.maxScale,Di=mn.closeIcon,yo=mn.onActive,Ji=mn.onClose,po=mn.onZoomIn,ho=mn.onZoomOut,Jo=mn.onRotateRight,xo=mn.onRotateLeft,no=mn.onFlipX,Do=mn.onFlipY,Zo=mn.onReset,jo=mn.toolbarRender,Cn=mn.zIndex,Vi=mn.image,Ur=(0,x.useContext)(ht),Vr=qr.rotateLeft,ci=qr.rotateRight,Zr=qr.zoomIn,Qi=qr.zoomOut,eo=qr.close,Rr=qr.left,ai=qr.right,Fi=qr.flipX,Ri=qr.flipY,Mo="".concat(kr,"-operations-operation");x.useEffect(function(){var Na=function(_o){_o.keyCode===pt.Z.ESC&&Ji()};return tr&&window.addEventListener("keydown",Na),function(){window.removeEventListener("keydown",Na)}},[tr]);var ui=function($a,_o){$a.preventDefault(),$a.stopPropagation(),yo(_o)},Zi=x.useCallback(function(Na){var $a=Na.type,_o=Na.disabled,Fo=Na.onClick,Ea=Na.icon;return x.createElement("div",{key:$a,className:qe()(Mo,"".concat(kr,"-operations-operation-").concat($a),(0,Ue.Z)({},"".concat(kr,"-operations-operation-disabled"),!!_o)),onClick:Fo},Ea)},[Mo,kr]),Wo=_i?Zi({icon:Rr,onClick:function($a){return ui($a,-1)},type:"prev",disabled:hi===0}):void 0,Xo=_i?Zi({icon:ai,onClick:function($a){return ui($a,1)},type:"next",disabled:hi===ki-1}):void 0,ra=Zi({icon:Ri,onClick:Do,type:"flipY"}),Qo=Zi({icon:Fi,onClick:no,type:"flipX"}),qo=Zi({icon:Vr,onClick:xo,type:"rotateLeft"}),Yo=Zi({icon:ci,onClick:Jo,type:"rotateRight"}),Ba=Zi({icon:Qi,onClick:ho,type:"zoomOut",disabled:bi<=Ni}),ls=Zi({icon:Zr,onClick:po,type:"zoomIn",disabled:bi===oo}),Ma=x.createElement("div",{className:"".concat(kr,"-operations")},ra,Qo,qo,Yo,Ba,ls);return x.createElement(He.default,{visible:tr,motionName:or},function(Na){var $a=Na.className,_o=Na.style;return x.createElement(Ct.Z,{open:!0,getContainer:ar!=null?ar:document.body},x.createElement("div",{className:qe()("".concat(kr,"-operations-wrapper"),$a,vi),style:(0,Ie.Z)((0,Ie.Z)({},_o),{},{zIndex:Cn})},Di===null?null:x.createElement("button",{className:"".concat(kr,"-close"),onClick:Ji},Di||eo),_i&&x.createElement(x.Fragment,null,x.createElement("div",{className:qe()("".concat(kr,"-switch-left"),(0,Ue.Z)({},"".concat(kr,"-switch-left-disabled"),hi===0)),onClick:function(Ea){return ui(Ea,-1)}},Rr),x.createElement("div",{className:qe()("".concat(kr,"-switch-right"),(0,Ue.Z)({},"".concat(kr,"-switch-right-disabled"),hi===ki-1)),onClick:function(Ea){return ui(Ea,1)}},ai)),x.createElement("div",{className:"".concat(kr,"-footer")},ri&&x.createElement("div",{className:"".concat(kr,"-progress")},Li?Li(hi+1,ki):"".concat(hi+1," / ").concat(ki)),jo?jo(Ma,(0,Ie.Z)((0,Ie.Z)({icons:{prevIcon:Wo,nextIcon:Xo,flipYIcon:ra,flipXIcon:Qo,rotateLeftIcon:qo,rotateRightIcon:Yo,zoomOutIcon:Ba,zoomInIcon:ls},actions:{onActive:yo,onFlipY:Do,onFlipX:no,onRotateLeft:xo,onRotateRight:Jo,onZoomOut:ho,onZoomIn:po,onReset:Zo,onClose:Ji},transform:ro},Ur?{current:hi,total:ki}:{}),{},{image:Vi})):Ma)))})},Re=_e,Ot=ae(13697),it=ae(16089),at={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Et(Tn,mn,tr,or){var ar=(0,x.useRef)(null),kr=(0,x.useRef)([]),vi=(0,x.useState)(at),qr=(0,he.Z)(vi,2),Li=qr[0],_i=qr[1],ri=function(bi){_i(at),(0,Ot.Z)(at,Li)||or==null||or({transform:at,action:bi})},hi=function(bi,Ni){ar.current===null&&(kr.current=[],ar.current=(0,it.Z)(function(){_i(function(oo){var Di=oo;return kr.current.forEach(function(yo){Di=(0,Ie.Z)((0,Ie.Z)({},Di),yo)}),ar.current=null,or==null||or({transform:Di,action:Ni}),Di})})),kr.current.push((0,Ie.Z)((0,Ie.Z)({},Li),bi))},ro=function(bi,Ni,oo,Di,yo){var Ji=Tn.current,po=Ji.width,ho=Ji.height,Jo=Ji.offsetWidth,xo=Ji.offsetHeight,no=Ji.offsetLeft,Do=Ji.offsetTop,Zo=bi,jo=Li.scale*bi;jo>tr?(jo=tr,Zo=tr/Li.scale):jo<mn&&(jo=yo?jo:mn,Zo=jo/Li.scale);var Cn=oo!=null?oo:innerWidth/2,Vi=Di!=null?Di:innerHeight/2,Ur=Zo-1,Vr=Ur*po*.5,ci=Ur*ho*.5,Zr=Ur*(Cn-Li.x-no),Qi=Ur*(Vi-Li.y-Do),eo=Li.x-(Zr-Vr),Rr=Li.y-(Qi-ci);if(bi<1&&jo===1){var ai=Jo*jo,Fi=xo*jo,Ri=Qe(),Mo=Ri.width,ui=Ri.height;ai<=Mo&&Fi<=ui&&(eo=0,Rr=0)}hi({x:eo,y:Rr,scale:jo},Ni)};return{transform:Li,resetTransform:ri,updateTransform:hi,dispatchZoomChange:ro}}var Ze=ae(48736);function De(Tn,mn,tr,or){var ar=mn+tr,kr=(tr-or)/2;if(tr>or){if(mn>0)return(0,Ue.Z)({},Tn,kr);if(mn<0&&ar<or)return(0,Ue.Z)({},Tn,-kr)}else if(mn<0||ar>or)return(0,Ue.Z)({},Tn,mn<0?kr:-kr);return{}}function ut(Tn,mn,tr,or){var ar=Qe(),kr=ar.width,vi=ar.height,qr=null;return Tn<=kr&&mn<=vi?qr={x:0,y:0}:(Tn>kr||mn>vi)&&(qr=(0,Ie.Z)((0,Ie.Z)({},De("x",tr,Tn,kr)),De("y",or,mn,vi))),qr}var Zt=1,Kt=1;function tt(Tn,mn,tr,or,ar,kr,vi){var qr=ar.rotate,Li=ar.scale,_i=ar.x,ri=ar.y,hi=(0,x.useState)(!1),ro=(0,he.Z)(hi,2),ki=ro[0],bi=ro[1],Ni=(0,x.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),oo=function(ho){!mn||ho.button!==0||(ho.preventDefault(),ho.stopPropagation(),Ni.current={diffX:ho.pageX-_i,diffY:ho.pageY-ri,transformX:_i,transformY:ri},bi(!0))},Di=function(ho){tr&&ki&&kr({x:ho.pageX-Ni.current.diffX,y:ho.pageY-Ni.current.diffY},"move")},yo=function(){if(tr&&ki){bi(!1);var ho=Ni.current,Jo=ho.transformX,xo=ho.transformY,no=_i!==Jo&&ri!==xo;if(!no)return;var Do=Tn.current.offsetWidth*Li,Zo=Tn.current.offsetHeight*Li,jo=Tn.current.getBoundingClientRect(),Cn=jo.left,Vi=jo.top,Ur=qr%180!==0,Vr=ut(Ur?Zo:Do,Ur?Do:Zo,Cn,Vi);Vr&&kr((0,Ie.Z)({},Vr),"dragRebound")}},Ji=function(ho){if(!(!tr||ho.deltaY==0)){var Jo=Math.abs(ho.deltaY/100),xo=Math.min(Jo,Kt),no=Zt+xo*or;ho.deltaY>0&&(no=Zt/no),vi(no,"wheel",ho.clientX,ho.clientY)}};return(0,x.useEffect)(function(){var po,ho,Jo,xo;if(mn){Jo=(0,ot.Z)(window,"mouseup",yo,!1),xo=(0,ot.Z)(window,"mousemove",Di,!1);try{window.top!==window.self&&(po=(0,ot.Z)(window.top,"mouseup",yo,!1),ho=(0,ot.Z)(window.top,"mousemove",Di,!1))}catch(no){(0,Ze.Kp)(!1,"[rc-image] ".concat(no))}}return function(){var no,Do,Zo,jo;(no=Jo)===null||no===void 0||no.remove(),(Do=xo)===null||Do===void 0||Do.remove(),(Zo=po)===null||Zo===void 0||Zo.remove(),(jo=ho)===null||jo===void 0||jo.remove()}},[tr,ki,_i,ri,qr,mn]),{isMoving:ki,onMouseDown:oo,onMouseMove:Di,onMouseUp:yo,onWheel:Ji}}function Dt(Tn){return new Promise(function(mn){if(!Tn){mn(!1);return}var tr=document.createElement("img");tr.onerror=function(){return mn(!1)},tr.onload=function(){return mn(!0)},tr.src=Tn})}function jt(Tn){var mn=Tn.src,tr=Tn.isCustomPlaceholder,or=Tn.fallback,ar=(0,x.useState)(tr?"loading":"normal"),kr=(0,he.Z)(ar,2),vi=kr[0],qr=kr[1],Li=(0,x.useRef)(!1),_i=vi==="error";(0,x.useEffect)(function(){var ki=!0;return Dt(mn).then(function(bi){!bi&&ki&&qr("error")}),function(){ki=!1}},[mn]),(0,x.useEffect)(function(){tr&&!Li.current?qr("loading"):_i&&qr("normal")},[mn]);var ri=function(){qr("normal")},hi=function(bi){Li.current=!1,vi==="loading"&&bi!==null&&bi!==void 0&&bi.complete&&(bi.naturalWidth||bi.naturalHeight)&&(Li.current=!0,ri())},ro=_i&&or?{src:or}:{onLoad:ri,src:mn};return[hi,ro,vi]}function An(Tn,mn){var tr=Tn.x-mn.x,or=Tn.y-mn.y;return Math.hypot(tr,or)}function kt(Tn,mn,tr,or){var ar=An(Tn,tr),kr=An(mn,or);if(ar===0&&kr===0)return[Tn.x,Tn.y];var vi=ar/(ar+kr),qr=Tn.x+vi*(mn.x-Tn.x),Li=Tn.y+vi*(mn.y-Tn.y);return[qr,Li]}function pn(Tn,mn,tr,or,ar,kr,vi){var qr=ar.rotate,Li=ar.scale,_i=ar.x,ri=ar.y,hi=(0,x.useState)(!1),ro=(0,he.Z)(hi,2),ki=ro[0],bi=ro[1],Ni=(0,x.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),oo=function(ho){Ni.current=(0,Ie.Z)((0,Ie.Z)({},Ni.current),ho)},Di=function(ho){if(mn){ho.stopPropagation(),bi(!0);var Jo=ho.touches,xo=Jo===void 0?[]:Jo;xo.length>1?oo({point1:{x:xo[0].clientX,y:xo[0].clientY},point2:{x:xo[1].clientX,y:xo[1].clientY},eventType:"touchZoom"}):oo({point1:{x:xo[0].clientX-_i,y:xo[0].clientY-ri},eventType:"move"})}},yo=function(ho){var Jo=ho.touches,xo=Jo===void 0?[]:Jo,no=Ni.current,Do=no.point1,Zo=no.point2,jo=no.eventType;if(xo.length>1&&jo==="touchZoom"){var Cn={x:xo[0].clientX,y:xo[0].clientY},Vi={x:xo[1].clientX,y:xo[1].clientY},Ur=kt(Do,Zo,Cn,Vi),Vr=(0,he.Z)(Ur,2),ci=Vr[0],Zr=Vr[1],Qi=An(Cn,Vi)/An(Do,Zo);vi(Qi,"touchZoom",ci,Zr,!0),oo({point1:Cn,point2:Vi,eventType:"touchZoom"})}else jo==="move"&&(kr({x:xo[0].clientX-Do.x,y:xo[0].clientY-Do.y},"move"),oo({eventType:"move"}))},Ji=function(){if(tr){if(ki&&bi(!1),oo({eventType:"none"}),or>Li)return kr({x:0,y:0,scale:or},"touchZoom");var ho=Tn.current.offsetWidth*Li,Jo=Tn.current.offsetHeight*Li,xo=Tn.current.getBoundingClientRect(),no=xo.left,Do=xo.top,Zo=qr%180!==0,jo=ut(Zo?Jo:ho,Zo?ho:Jo,no,Do);jo&&kr((0,Ie.Z)({},jo),"dragRebound")}};return(0,x.useEffect)(function(){var po;return tr&&mn&&(po=(0,ot.Z)(window,"touchmove",function(ho){return ho.preventDefault()},{passive:!1})),function(){var ho;(ho=po)===null||ho===void 0||ho.remove()}},[tr,mn]),{isTouching:ki,onTouchStart:Di,onTouchMove:yo,onTouchEnd:Ji}}var Pt=["fallback","src","imgRef"],En=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],on=function(mn){var tr=mn.fallback,or=mn.src,ar=mn.imgRef,kr=(0,oe.Z)(mn,Pt),vi=jt({src:or,fallback:tr}),qr=(0,he.Z)(vi,2),Li=qr[0],_i=qr[1];return x.createElement("img",(0,ze.Z)({ref:function(hi){ar.current=hi,Li(hi)}},kr,_i))},de=function(mn){var tr=mn.prefixCls,or=mn.src,ar=mn.alt,kr=mn.imageInfo,vi=mn.fallback,qr=mn.movable,Li=qr===void 0?!0:qr,_i=mn.onClose,ri=mn.visible,hi=mn.icons,ro=hi===void 0?{}:hi,ki=mn.rootClassName,bi=mn.closeIcon,Ni=mn.getContainer,oo=mn.current,Di=oo===void 0?0:oo,yo=mn.count,Ji=yo===void 0?1:yo,po=mn.countRender,ho=mn.scaleStep,Jo=ho===void 0?.5:ho,xo=mn.minScale,no=xo===void 0?1:xo,Do=mn.maxScale,Zo=Do===void 0?50:Do,jo=mn.transitionName,Cn=jo===void 0?"zoom":jo,Vi=mn.maskTransitionName,Ur=Vi===void 0?"fade":Vi,Vr=mn.imageRender,ci=mn.imgCommonProps,Zr=mn.toolbarRender,Qi=mn.onTransform,eo=mn.onChange,Rr=(0,oe.Z)(mn,En),ai=(0,x.useRef)(),Fi=(0,x.useContext)(ht),Ri=Fi&&Ji>1,Mo=Fi&&Ji>=1,ui=(0,x.useState)(!0),Zi=(0,he.Z)(ui,2),Wo=Zi[0],Xo=Zi[1],ra=Et(ai,no,Zo,Qi),Qo=ra.transform,qo=ra.resetTransform,Yo=ra.updateTransform,Ba=ra.dispatchZoomChange,ls=tt(ai,Li,ri,Jo,Qo,Yo,Ba),Ma=ls.isMoving,Na=ls.onMouseDown,$a=ls.onWheel,_o=pn(ai,Li,ri,no,Qo,Yo,Ba),Fo=_o.isTouching,Ea=_o.onTouchStart,us=_o.onTouchMove,sl=_o.onTouchEnd,qs=Qo.rotate,ll=Qo.scale,su=qe()((0,Ue.Z)({},"".concat(tr,"-moving"),Ma));(0,x.useEffect)(function(){Wo||Xo(!0)},[Wo]);var Bl=function(){qo("close")},el=function(){Ba(Zt+Jo,"zoomIn")},Wl=function(){Ba(Zt/(Zt+Jo),"zoomOut")},xu=function(){Yo({rotate:qs+90},"rotateRight")},Nu=function(){Yo({rotate:qs-90},"rotateLeft")},Gs=function(){Yo({flipX:!Qo.flipX},"flipX")},mc=function(){Yo({flipY:!Qo.flipY},"flipY")},gc=function(){qo("reset")},ga=function(Ga){var Gl=Di+Ga;!Number.isInteger(Gl)||Gl<0||Gl>Ji-1||(Xo(!1),qo(Ga<0?"prev":"next"),eo==null||eo(Gl,Di))},La=function(Ga){!ri||!Ri||(Ga.keyCode===pt.Z.LEFT?ga(-1):Ga.keyCode===pt.Z.RIGHT&&ga(1))},ha=function(Ga){ri&&(ll!==1?Yo({x:0,y:0,scale:1},"doubleClick"):Ba(Zt+Jo,"doubleClick",Ga.clientX,Ga.clientY))};(0,x.useEffect)(function(){var Ya=(0,ot.Z)(window,"keydown",La,!1);return function(){Ya.remove()}},[ri,Ri,Di]);var va=x.createElement(on,(0,ze.Z)({},ci,{width:mn.width,height:mn.height,imgRef:ai,className:"".concat(tr,"-img"),alt:ar,style:{transform:"translate3d(".concat(Qo.x,"px, ").concat(Qo.y,"px, 0) scale3d(").concat(Qo.flipX?"-":"").concat(ll,", ").concat(Qo.flipY?"-":"").concat(ll,", 1) rotate(").concat(qs,"deg)"),transitionDuration:(!Wo||Fo)&&"0s"},fallback:vi,src:or,onWheel:$a,onMouseDown:Na,onDoubleClick:ha,onTouchStart:Ea,onTouchMove:us,onTouchEnd:sl,onTouchCancel:sl})),ts=(0,Ie.Z)({url:or,alt:ar},kr);return x.createElement(x.Fragment,null,x.createElement(ct.Z,(0,ze.Z)({transitionName:Cn,maskTransitionName:Ur,closable:!1,keyboard:!0,prefixCls:tr,onClose:_i,visible:ri,classNames:{wrapper:su},rootClassName:ki,getContainer:Ni},Rr,{afterClose:Bl}),x.createElement("div",{className:"".concat(tr,"-img-wrapper")},Vr?Vr(va,(0,Ie.Z)({transform:Qo,image:ts},Fi?{current:Di}:{})):va)),x.createElement(Re,{visible:ri,transform:Qo,maskTransitionName:Ur,closeIcon:bi,getContainer:Ni,prefixCls:tr,rootClassName:ki,icons:ro,countRender:po,showSwitch:Ri,showProgress:Mo,current:Di,count:Ji,scale:ll,minScale:no,maxScale:Zo,toolbarRender:Zr,onActive:ga,onZoomIn:el,onZoomOut:Wl,onRotateRight:xu,onRotateLeft:Nu,onFlipX:Gs,onFlipY:mc,onClose:_i,onReset:gc,zIndex:Rr.zIndex!==void 0?Rr.zIndex+1:void 0,image:ts}))},pe=de,ie=ae(77654),ee=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function se(Tn){var mn=x.useState({}),tr=(0,he.Z)(mn,2),or=tr[0],ar=tr[1],kr=x.useCallback(function(qr,Li){return ar(function(_i){return(0,Ie.Z)((0,Ie.Z)({},_i),{},(0,Ue.Z)({},qr,Li))}),function(){ar(function(_i){var ri=(0,Ie.Z)({},_i);return delete ri[qr],ri})}},[]),vi=x.useMemo(function(){return Tn?Tn.map(function(qr){if(typeof qr=="string")return{data:{src:qr}};var Li={};return Object.keys(qr).forEach(function(_i){["src"].concat((0,ie.Z)(ee)).includes(_i)&&(Li[_i]=qr[_i])}),{data:Li}}):Object.keys(or).reduce(function(qr,Li){var _i=or[Li],ri=_i.canPreview,hi=_i.data;return ri&&qr.push({data:hi,id:Li}),qr},[])},[Tn,or]);return[vi,kr,!!Tn]}var le=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Be=["src"],We=function(mn){var tr,or=mn.previewPrefixCls,ar=or===void 0?"rc-image-preview":or,kr=mn.children,vi=mn.icons,qr=vi===void 0?{}:vi,Li=mn.items,_i=mn.preview,ri=mn.fallback,hi=(0,xe.Z)(_i)==="object"?_i:{},ro=hi.visible,ki=hi.onVisibleChange,bi=hi.getContainer,Ni=hi.current,oo=hi.movable,Di=hi.minScale,yo=hi.maxScale,Ji=hi.countRender,po=hi.closeIcon,ho=hi.onChange,Jo=hi.onTransform,xo=hi.toolbarRender,no=hi.imageRender,Do=(0,oe.Z)(hi,le),Zo=se(Li),jo=(0,he.Z)(Zo,3),Cn=jo[0],Vi=jo[1],Ur=jo[2],Vr=(0,Ve.Z)(0,{value:Ni}),ci=(0,he.Z)(Vr,2),Zr=ci[0],Qi=ci[1],eo=(0,x.useState)(!1),Rr=(0,he.Z)(eo,2),ai=Rr[0],Fi=Rr[1],Ri=((tr=Cn[Zr])===null||tr===void 0?void 0:tr.data)||{},Mo=Ri.src,ui=(0,oe.Z)(Ri,Be),Zi=(0,Ve.Z)(!!ro,{value:ro,onChange:function(Fo,Ea){ki==null||ki(Fo,Ea,Zr)}}),Wo=(0,he.Z)(Zi,2),Xo=Wo[0],ra=Wo[1],Qo=(0,x.useState)(null),qo=(0,he.Z)(Qo,2),Yo=qo[0],Ba=qo[1],ls=x.useCallback(function(_o,Fo,Ea,us){var sl=Ur?Cn.findIndex(function(qs){return qs.data.src===Fo}):Cn.findIndex(function(qs){return qs.id===_o});Qi(sl<0?0:sl),ra(!0),Ba({x:Ea,y:us}),Fi(!0)},[Cn,Ur]);x.useEffect(function(){Xo?ai||Qi(0):Fi(!1)},[Xo]);var Ma=function(Fo,Ea){Qi(Fo),ho==null||ho(Fo,Ea)},Na=function(){ra(!1),Ba(null)},$a=x.useMemo(function(){return{register:Vi,onPreview:ls}},[Vi,ls]);return x.createElement(ht.Provider,{value:$a},kr,x.createElement(pe,(0,ze.Z)({"aria-hidden":!Xo,movable:oo,visible:Xo,prefixCls:ar,closeIcon:po,onClose:Na,mousePosition:Yo,imgCommonProps:ui,src:Mo,fallback:ri,icons:qr,minScale:Di,maxScale:yo,getContainer:bi,current:Zr,count:Cn.length,countRender:Ji,onTransform:Jo,toolbarRender:xo,imageRender:no,onChange:Ma},Do)))},st=We,mt=0;function vt(Tn,mn){var tr=x.useState(function(){return mt+=1,String(mt)}),or=(0,he.Z)(tr,1),ar=or[0],kr=x.useContext(ht),vi={data:mn,canPreview:Tn};return x.useEffect(function(){if(kr)return kr.register(ar,vi)},[]),x.useEffect(function(){kr&&kr.register(ar,vi)},[Tn,mn]),ar}var St=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],_t=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Qt=function(mn){var tr=mn.src,or=mn.alt,ar=mn.onPreviewClose,kr=mn.prefixCls,vi=kr===void 0?"rc-image":kr,qr=mn.previewPrefixCls,Li=qr===void 0?"".concat(vi,"-preview"):qr,_i=mn.placeholder,ri=mn.fallback,hi=mn.width,ro=mn.height,ki=mn.style,bi=mn.preview,Ni=bi===void 0?!0:bi,oo=mn.className,Di=mn.onClick,yo=mn.onError,Ji=mn.wrapperClassName,po=mn.wrapperStyle,ho=mn.rootClassName,Jo=(0,oe.Z)(mn,St),xo=_i&&_i!==!0,no=(0,xe.Z)(Ni)==="object"?Ni:{},Do=no.src,Zo=no.visible,jo=Zo===void 0?void 0:Zo,Cn=no.onVisibleChange,Vi=Cn===void 0?ar:Cn,Ur=no.getContainer,Vr=Ur===void 0?void 0:Ur,ci=no.mask,Zr=no.maskClassName,Qi=no.movable,eo=no.icons,Rr=no.scaleStep,ai=no.minScale,Fi=no.maxScale,Ri=no.imageRender,Mo=no.toolbarRender,ui=(0,oe.Z)(no,_t),Zi=Do!=null?Do:tr,Wo=(0,Ve.Z)(!!jo,{value:jo,onChange:Vi}),Xo=(0,he.Z)(Wo,2),ra=Xo[0],Qo=Xo[1],qo=jt({src:tr,isCustomPlaceholder:xo,fallback:ri}),Yo=(0,he.Z)(qo,3),Ba=Yo[0],ls=Yo[1],Ma=Yo[2],Na=(0,x.useState)(null),$a=(0,he.Z)(Na,2),_o=$a[0],Fo=$a[1],Ea=(0,x.useContext)(ht),us=!!Ni,sl=function(){Qo(!1),Fo(null)},qs=qe()(vi,Ji,ho,(0,Ue.Z)({},"".concat(vi,"-error"),Ma==="error")),ll=(0,x.useMemo)(function(){var Wl={};return ee.forEach(function(xu){mn[xu]!==void 0&&(Wl[xu]=mn[xu])}),Wl},ee.map(function(Wl){return mn[Wl]})),su=(0,x.useMemo)(function(){return(0,Ie.Z)((0,Ie.Z)({},ll),{},{src:Zi})},[Zi,ll]),Bl=vt(us,su),el=function(xu){var Nu=Je(xu.target),Gs=Nu.left,mc=Nu.top;Ea?Ea.onPreview(Bl,Zi,Gs,mc):(Fo({x:Gs,y:mc}),Qo(!0)),Di==null||Di(xu)};return x.createElement(x.Fragment,null,x.createElement("div",(0,ze.Z)({},Jo,{className:qs,onClick:us?el:Di,style:(0,Ie.Z)({width:hi,height:ro},po)}),x.createElement("img",(0,ze.Z)({},ll,{className:qe()("".concat(vi,"-img"),(0,Ue.Z)({},"".concat(vi,"-img-placeholder"),_i===!0),oo),style:(0,Ie.Z)({height:ro},ki),ref:Ba},ls,{width:hi,height:ro,onError:yo})),Ma==="loading"&&x.createElement("div",{"aria-hidden":"true",className:"".concat(vi,"-placeholder")},_i),ci&&us&&x.createElement("div",{className:qe()("".concat(vi,"-mask"),Zr),style:{display:(ki==null?void 0:ki.display)==="none"?"none":void 0}},ci)),!Ea&&us&&x.createElement(pe,(0,ze.Z)({"aria-hidden":!ra,visible:ra,prefixCls:Li,onClose:sl,mousePosition:_o,src:Zi,alt:or,imageInfo:{width:hi,height:ro},fallback:ri,getContainer:Vr,icons:eo,movable:Qi,scaleStep:Rr,minScale:ai,maxScale:Fi,rootClassName:ho,imageRender:Ri,imgCommonProps:ll,toolbarRender:Mo},ui)))};Qt.PreviewGroup=st;var xt=Qt,lt=xt,Vt=ae(75030),Wt=ae(86641),gn=ae(48755),an=ae(83397),en=ae(9017),zn=ae(99267),Fn=ae(33853),Rt=ae(38819),sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},_n=sn,Wn=ae(7657),Lt=function(mn,tr){return x.createElement(Wn.Z,(0,ze.Z)({},mn,{ref:tr,icon:_n}))},Gt=x.forwardRef(Lt),nn=Gt,wn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Gn=wn,Er=function(mn,tr){return x.createElement(Wn.Z,(0,ze.Z)({},mn,{ref:tr,icon:Gn}))},ti=x.forwardRef(Er),oi=ti,Ar={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Ir=Ar,jn=function(mn,tr){return x.createElement(Wn.Z,(0,ze.Z)({},mn,{ref:tr,icon:Ir}))},Hn=x.forwardRef(jn),Jn=Hn,lr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},$n=lr,br=function(mn,tr){return x.createElement(Wn.Z,(0,ze.Z)({},mn,{ref:tr,icon:$n}))},Br=x.forwardRef(br),_r=Br,mi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},di=mi,fi=function(mn,tr){return x.createElement(Wn.Z,(0,ze.Z)({},mn,{ref:tr,icon:di}))},Ti=x.forwardRef(fi),xi=Ti,io=ae(36237),Xi=ae(17835),ur=ae(64427),Tr=ae(63356),gi=ae(34925),ni=ae(99495),gt=ae(16931),vn=ae(51636);const Ut=Tn=>({position:Tn||"absolute",inset:0}),dn=Tn=>{const{iconCls:mn,motionDurationSlow:tr,paddingXXS:or,marginXXS:ar,prefixCls:kr,colorTextLightSolid:vi}=Tn;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:vi,background:new Xi.FastColor("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${tr}`,[`.${kr}-mask-info`]:Object.assign(Object.assign({},Tr.vS),{padding:`0 ${(0,io.unit)(or)}`,[mn]:{marginInlineEnd:ar,svg:{verticalAlign:"baseline"}}})}},$t=Tn=>{const{previewCls:mn,modalMaskBg:tr,paddingSM:or,marginXL:ar,margin:kr,paddingLG:vi,previewOperationColorDisabled:qr,previewOperationHoverColor:Li,motionDurationSlow:_i,iconCls:ri,colorTextLightSolid:hi}=Tn,ro=new Xi.FastColor(tr).setA(.1),ki=ro.clone().setA(.2);return{[`${mn}-footer`]:{position:"fixed",bottom:ar,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:Tn.previewOperationColor,transform:"translateX(-50%)"},[`${mn}-progress`]:{marginBottom:kr},[`${mn}-close`]:{position:"fixed",top:ar,right:{_skip_check_:!0,value:ar},display:"flex",color:hi,backgroundColor:ro.toRgbString(),borderRadius:"50%",padding:or,outline:0,border:0,cursor:"pointer",transition:`all ${_i}`,"&:hover":{backgroundColor:ki.toRgbString()},[`& > ${ri}`]:{fontSize:Tn.previewOperationSize}},[`${mn}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,io.unit)(vi)}`,backgroundColor:ro.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:or,padding:or,cursor:"pointer",transition:`all ${_i}`,userSelect:"none",[`&:not(${mn}-operations-operation-disabled):hover > ${ri}`]:{color:Li},"&-disabled":{color:qr,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${ri}`]:{fontSize:Tn.previewOperationSize}}}}},hn=Tn=>{const{modalMaskBg:mn,iconCls:tr,previewOperationColorDisabled:or,previewCls:ar,zIndexPopup:kr,motionDurationSlow:vi}=Tn,qr=new Xi.FastColor(mn).setA(.1),Li=qr.clone().setA(.2);return{[`${ar}-switch-left, ${ar}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Tn.calc(kr).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:Tn.imagePreviewSwitchSize,height:Tn.imagePreviewSwitchSize,marginTop:Tn.calc(Tn.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:Tn.previewOperationColor,background:qr.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${vi}`,userSelect:"none","&:hover":{background:Li.toRgbString()},"&-disabled":{"&, &:hover":{color:or,background:"transparent",cursor:"not-allowed",[`> ${tr}`]:{cursor:"not-allowed"}}},[`> ${tr}`]:{fontSize:Tn.previewOperationSize}},[`${ar}-switch-left`]:{insetInlineStart:Tn.marginSM},[`${ar}-switch-right`]:{insetInlineEnd:Tn.marginSM}}},Nn=Tn=>{const{motionEaseOut:mn,previewCls:tr,motionDurationSlow:or,componentCls:ar}=Tn;return[{[`${ar}-preview-root`]:{[tr]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${tr}-body`]:Object.assign(Object.assign({},Ut()),{overflow:"hidden"}),[`${tr}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${or} ${mn} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Ut()),{transition:`transform ${or} ${mn} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${tr}-moving`]:{[`${tr}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${ar}-preview-root`]:{[`${tr}-wrap`]:{zIndex:Tn.zIndexPopup}}},{[`${ar}-preview-operations-wrapper`]:{position:"fixed",zIndex:Tn.calc(Tn.zIndexPopup).add(1).equal()},"&":[$t(Tn),hn(Tn)]}]},Hr=Tn=>{const{componentCls:mn}=Tn;return{[mn]:{position:"relative",display:"inline-block",[`${mn}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${mn}-img-placeholder`]:{backgroundColor:Tn.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${mn}-mask`]:Object.assign({},dn(Tn)),[`${mn}-mask:hover`]:{opacity:1},[`${mn}-placeholder`]:Object.assign({},Ut())}}},zr=Tn=>{const{previewCls:mn}=Tn;return{[`${mn}-root`]:(0,gi._y)(Tn,"zoom"),"&":(0,ni.J$)(Tn,!0)}},Ai=Tn=>({zIndexPopup:Tn.zIndexPopupBase+80,previewOperationColor:new Xi.FastColor(Tn.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Xi.FastColor(Tn.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Xi.FastColor(Tn.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:Tn.fontSizeIcon*1.5});var hr=(0,gt.I$)("Image",Tn=>{const mn=`${Tn.componentCls}-preview`,tr=(0,vn.mergeToken)(Tn,{previewCls:mn,modalMaskBg:new Xi.FastColor("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:Tn.controlHeightLG});return[Hr(tr),Nn(tr),(0,ur.QA)((0,vn.mergeToken)(tr,{componentCls:mn})),zr(tr)]},Ai),nr=function(Tn,mn){var tr={};for(var or in Tn)Object.prototype.hasOwnProperty.call(Tn,or)&&mn.indexOf(or)<0&&(tr[or]=Tn[or]);if(Tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ar=0,or=Object.getOwnPropertySymbols(Tn);ar<or.length;ar++)mn.indexOf(or[ar])<0&&Object.prototype.propertyIsEnumerable.call(Tn,or[ar])&&(tr[or[ar]]=Tn[or[ar]]);return tr};const ir={rotateLeft:x.createElement(nn,null),rotateRight:x.createElement(oi,null),zoomIn:x.createElement(_r,null),zoomOut:x.createElement(xi,null),close:x.createElement(zn.Z,null),left:x.createElement(Fn.Z,null),right:x.createElement(Rt.Z,null),flipX:x.createElement(Jn,null),flipY:x.createElement(Jn,{rotate:90})};var Mi=Tn=>{var{previewPrefixCls:mn,preview:tr}=Tn,or=nr(Tn,["previewPrefixCls","preview"]);const{getPrefixCls:ar}=x.useContext(gn.E_),kr=ar("image",mn),vi=`${kr}-preview`,qr=ar(),Li=(0,an.Z)(kr),[_i,ri,hi]=hr(kr,Li),[ro]=(0,Vt.Cn)("ImagePreview",typeof tr=="object"?tr.zIndex:void 0),ki=x.useMemo(()=>{var bi;if(tr===!1)return tr;const Ni=typeof tr=="object"?tr:{},oo=qe()(ri,hi,Li,(bi=Ni.rootClassName)!==null&&bi!==void 0?bi:"");return Object.assign(Object.assign({},Ni),{transitionName:(0,Wt.m)(qr,"zoom",Ni.transitionName),maskTransitionName:(0,Wt.m)(qr,"fade",Ni.maskTransitionName),rootClassName:oo,zIndex:ro})},[tr]);return _i(x.createElement(lt.PreviewGroup,Object.assign({preview:ki,previewPrefixCls:vi,icons:ir},or)))},Yn=function(Tn,mn){var tr={};for(var or in Tn)Object.prototype.hasOwnProperty.call(Tn,or)&&mn.indexOf(or)<0&&(tr[or]=Tn[or]);if(Tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ar=0,or=Object.getOwnPropertySymbols(Tn);ar<or.length;ar++)mn.indexOf(or[ar])<0&&Object.prototype.propertyIsEnumerable.call(Tn,or[ar])&&(tr[or[ar]]=Tn[or[ar]]);return tr};const Vn=Tn=>{const{prefixCls:mn,preview:tr,className:or,rootClassName:ar,style:kr}=Tn,vi=Yn(Tn,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:qr,getPopupContainer:Li,className:_i,style:ri,preview:hi}=(0,gn.dj)("image"),[ro]=(0,en.Z)("Image"),ki=qr("image",mn),bi=qr(),Ni=(0,an.Z)(ki),[oo,Di,yo]=hr(ki,Ni),Ji=qe()(ar,Di,yo,Ni),po=qe()(or,Di,_i),[ho]=(0,Vt.Cn)("ImagePreview",typeof tr=="object"?tr.zIndex:void 0),Jo=x.useMemo(()=>{if(tr===!1)return tr;const no=typeof tr=="object"?tr:{},{getContainer:Do,closeIcon:Zo,rootClassName:jo}=no,Cn=Yn(no,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:x.createElement("div",{className:`${ki}-mask-info`},x.createElement(dt.Z,null),ro==null?void 0:ro.preview),icons:ir},Cn),{rootClassName:qe()(Ji,jo),getContainer:Do!=null?Do:Li,transitionName:(0,Wt.m)(bi,"zoom",no.transitionName),maskTransitionName:(0,Wt.m)(bi,"fade",no.maskTransitionName),zIndex:ho,closeIcon:Zo!=null?Zo:hi==null?void 0:hi.closeIcon})},[tr,ro,hi==null?void 0:hi.closeIcon]),xo=Object.assign(Object.assign({},ri),kr);return oo(x.createElement(lt,Object.assign({prefixCls:ki,preview:Jo,rootClassName:Ji,className:po,style:xo},vi)))};Vn.PreviewGroup=Mi;var Mr=Vn},4875:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Wn}});var x=ae(59301),dt=ae(84105),Le=ae(87395),qe=ae(92310),ze=ae.n(qe),Ie=ae(60499),Ue=ae(18642),he=ae(43749),xe=ae(72190),oe=ae(42244),Oe=ae(38705),ve=ae(17212);function Me(){return typeof BigInt=="function"}function Se(Lt){return!Lt&&Lt!==0&&!Number.isNaN(Lt)||!String(Lt).trim()}function Te(Lt){var Gt=Lt.trim(),nn=Gt.startsWith("-");nn&&(Gt=Gt.slice(1)),Gt=Gt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Gt.startsWith(".")&&(Gt="0".concat(Gt));var wn=Gt||"0",Gn=wn.split("."),Er=Gn[0]||"0",ti=Gn[1]||"0";Er==="0"&&ti==="0"&&(nn=!1);var oi=nn?"-":"";return{negative:nn,negativeStr:oi,trimStr:wn,integerStr:Er,decimalStr:ti,fullStr:"".concat(oi).concat(wn)}}function we(Lt){var Gt=String(Lt);return!Number.isNaN(Number(Gt))&&Gt.includes("e")}function Ce(Lt){var Gt=String(Lt);if(we(Lt)){var nn=Number(Gt.slice(Gt.indexOf("e-")+2)),wn=Gt.match(/\.(\d+)/);return wn!=null&&wn[1]&&(nn+=wn[1].length),nn}return Gt.includes(".")&&ke(Gt)?Gt.length-Gt.indexOf(".")-1:0}function Ee(Lt){var Gt=String(Lt);if(we(Lt)){if(Lt>Number.MAX_SAFE_INTEGER)return String(Me()?BigInt(Lt).toString():Number.MAX_SAFE_INTEGER);if(Lt<Number.MIN_SAFE_INTEGER)return String(Me()?BigInt(Lt).toString():Number.MIN_SAFE_INTEGER);Gt=Lt.toFixed(Ce(Gt))}return Te(Gt).fullStr}function ke(Lt){return typeof Lt=="number"?!Number.isNaN(Lt):Lt?/^\s*-?\d+(\.\d+)?\s*$/.test(Lt)||/^\s*-?\d+\.\s*$/.test(Lt)||/^\s*-?\.\d+\s*$/.test(Lt):!1}var Ke=function(){function Lt(Gt){if((0,Oe.Z)(this,Lt),(0,Ue.Z)(this,"origin",""),(0,Ue.Z)(this,"negative",void 0),(0,Ue.Z)(this,"integer",void 0),(0,Ue.Z)(this,"decimal",void 0),(0,Ue.Z)(this,"decimalLen",void 0),(0,Ue.Z)(this,"empty",void 0),(0,Ue.Z)(this,"nan",void 0),Se(Gt)){this.empty=!0;return}if(this.origin=String(Gt),Gt==="-"||Number.isNaN(Gt)){this.nan=!0;return}var nn=Gt;if(we(nn)&&(nn=Number(nn)),nn=typeof nn=="string"?nn:Ee(nn),ke(nn)){var wn=Te(nn);this.negative=wn.negative;var Gn=wn.trimStr.split(".");this.integer=BigInt(Gn[0]);var Er=Gn[1]||"0";this.decimal=BigInt(Er),this.decimalLen=Er.length}else this.nan=!0}return(0,ve.Z)(Lt,[{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(nn){var wn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(nn,"0"));return BigInt(wn)}},{key:"negate",value:function(){var nn=new Lt(this.toString());return nn.negative=!nn.negative,nn}},{key:"cal",value:function(nn,wn,Gn){var Er=Math.max(this.getDecimalStr().length,nn.getDecimalStr().length),ti=this.alignDecimal(Er),oi=nn.alignDecimal(Er),Ar=wn(ti,oi).toString(),Ir=Gn(Er),jn=Te(Ar),Hn=jn.negativeStr,Jn=jn.trimStr,lr="".concat(Hn).concat(Jn.padStart(Ir+1,"0"));return new Lt("".concat(lr.slice(0,-Ir),".").concat(lr.slice(-Ir)))}},{key:"add",value:function(nn){if(this.isInvalidate())return new Lt(nn);var wn=new Lt(nn);return wn.isInvalidate()?this:this.cal(wn,function(Gn,Er){return Gn+Er},function(Gn){return Gn})}},{key:"multi",value:function(nn){var wn=new Lt(nn);return this.isInvalidate()||wn.isInvalidate()?new Lt(NaN):this.cal(wn,function(Gn,Er){return Gn*Er},function(Gn){return Gn*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(nn){return this.toString()===(nn==null?void 0:nn.toString())}},{key:"lessEquals",value:function(nn){return this.add(nn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return nn?this.isInvalidate()?"":Te("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Lt}(),Qe=function(){function Lt(Gt){if((0,Oe.Z)(this,Lt),(0,Ue.Z)(this,"origin",""),(0,Ue.Z)(this,"number",void 0),(0,Ue.Z)(this,"empty",void 0),Se(Gt)){this.empty=!0;return}this.origin=String(Gt),this.number=Number(Gt)}return(0,ve.Z)(Lt,[{key:"negate",value:function(){return new Lt(-this.toNumber())}},{key:"add",value:function(nn){if(this.isInvalidate())return new Lt(nn);var wn=Number(nn);if(Number.isNaN(wn))return this;var Gn=this.number+wn;if(Gn>Number.MAX_SAFE_INTEGER)return new Lt(Number.MAX_SAFE_INTEGER);if(Gn<Number.MIN_SAFE_INTEGER)return new Lt(Number.MIN_SAFE_INTEGER);var Er=Math.max(Ce(this.number),Ce(wn));return new Lt(Gn.toFixed(Er))}},{key:"multi",value:function(nn){var wn=Number(nn);if(this.isInvalidate()||Number.isNaN(wn))return new Lt(NaN);var Gn=this.number*wn;if(Gn>Number.MAX_SAFE_INTEGER)return new Lt(Number.MAX_SAFE_INTEGER);if(Gn<Number.MIN_SAFE_INTEGER)return new Lt(Number.MIN_SAFE_INTEGER);var Er=Math.max(Ce(this.number),Ce(wn));return new Lt(Gn.toFixed(Er))}},{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(nn){return this.toNumber()===(nn==null?void 0:nn.toNumber())}},{key:"lessEquals",value:function(nn){return this.add(nn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return nn?this.isInvalidate()?"":Ee(this.number):this.origin}}]),Lt}();function je(Lt){return Me()?new Ke(Lt):new Qe(Lt)}function Je(Lt,Gt,nn){var wn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Lt==="")return"";var Gn=Te(Lt),Er=Gn.negativeStr,ti=Gn.integerStr,oi=Gn.decimalStr,Ar="".concat(Gt).concat(oi),Ir="".concat(Er).concat(ti);if(nn>=0){var jn=Number(oi[nn]);if(jn>=5&&!wn){var Hn=je(Lt).add("".concat(Er,"0.").concat("0".repeat(nn)).concat(10-jn));return Je(Hn.toString(),Gt,nn,wn)}return nn===0?Ir:"".concat(Ir).concat(Gt).concat(oi.padEnd(nn,"0").slice(0,nn))}return Ar===".0"?Ir:"".concat(Ir).concat(Ar)}var Ve=je,ct=ae(36901),ot=ae(34280);function pt(Lt,Gt){return typeof Proxy!="undefined"&&Lt?new Proxy(Lt,{get:function(wn,Gn){if(Gt[Gn])return Gt[Gn];var Er=wn[Gn];return typeof Er=="function"?Er.bind(wn):Er}}):Lt}var Ct=ae(8654),He=ae(48736);function ht(Lt,Gt){var nn=(0,x.useRef)(null);function wn(){try{var Er=Lt.selectionStart,ti=Lt.selectionEnd,oi=Lt.value,Ar=oi.substring(0,Er),Ir=oi.substring(ti);nn.current={start:Er,end:ti,value:oi,beforeTxt:Ar,afterTxt:Ir}}catch(jn){}}function Gn(){if(Lt&&nn.current&&Gt)try{var Er=Lt.value,ti=nn.current,oi=ti.beforeTxt,Ar=ti.afterTxt,Ir=ti.start,jn=Er.length;if(Er.startsWith(oi))jn=oi.length;else if(Er.endsWith(Ar))jn=Er.length-nn.current.afterTxt.length;else{var Hn=oi[Ir-1],Jn=Er.indexOf(Hn,Ir-1);Jn!==-1&&(jn=Jn+1)}Lt.setSelectionRange(jn,jn)}catch(lr){(0,He.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(lr.message))}}return[wn,Gn]}var _e=ae(49658),Re=function(){var Gt=(0,x.useState)(!1),nn=(0,xe.Z)(Gt,2),wn=nn[0],Gn=nn[1];return(0,ot.Z)(function(){Gn((0,_e.Z)())},[]),wn},Ot=Re,it=ae(16089),at=200,Et=600;function Ze(Lt){var Gt=Lt.prefixCls,nn=Lt.upNode,wn=Lt.downNode,Gn=Lt.upDisabled,Er=Lt.downDisabled,ti=Lt.onStep,oi=x.useRef(),Ar=x.useRef([]),Ir=x.useRef();Ir.current=ti;var jn=function(){clearTimeout(oi.current)},Hn=function(di,fi){di.preventDefault(),jn(),Ir.current(fi);function Ti(){Ir.current(fi),oi.current=setTimeout(Ti,at)}oi.current=setTimeout(Ti,Et)};x.useEffect(function(){return function(){jn(),Ar.current.forEach(function(mi){return it.Z.cancel(mi)})}},[]);var Jn=Ot();if(Jn)return null;var lr="".concat(Gt,"-handler"),$n=ze()(lr,"".concat(lr,"-up"),(0,Ue.Z)({},"".concat(lr,"-up-disabled"),Gn)),br=ze()(lr,"".concat(lr,"-down"),(0,Ue.Z)({},"".concat(lr,"-down-disabled"),Er)),Br=function(){return Ar.current.push((0,it.Z)(jn))},_r={unselectable:"on",role:"button",onMouseUp:Br,onMouseLeave:Br};return x.createElement("div",{className:"".concat(lr,"-wrap")},x.createElement("span",(0,Ie.Z)({},_r,{onMouseDown:function(di){Hn(di,!0)},"aria-label":"Increase Value","aria-disabled":Gn,className:$n}),nn||x.createElement("span",{unselectable:"on",className:"".concat(Gt,"-handler-up-inner")})),x.createElement("span",(0,Ie.Z)({},_r,{onMouseDown:function(di){Hn(di,!1)},"aria-label":"Decrease Value","aria-disabled":Er,className:br}),wn||x.createElement("span",{unselectable:"on",className:"".concat(Gt,"-handler-down-inner")})))}function De(Lt){var Gt=typeof Lt=="number"?Ee(Lt):Te(Lt).fullStr,nn=Gt.includes(".");return nn?Te(Gt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Lt+"0"}var ut=ae(30292),Zt=function(){var Lt=(0,x.useRef)(0),Gt=function(){it.Z.cancel(Lt.current)};return(0,x.useEffect)(function(){return Gt},[]),function(nn){Gt(),Lt.current=(0,it.Z)(function(){nn()})}},Kt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],tt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Dt=function(Gt,nn){return Gt||nn.isEmpty()?nn.toString():nn.toNumber()},jt=function(Gt){var nn=Ve(Gt);return nn.isInvalidate()?null:nn},An=x.forwardRef(function(Lt,Gt){var nn=Lt.prefixCls,wn=Lt.className,Gn=Lt.style,Er=Lt.min,ti=Lt.max,oi=Lt.step,Ar=oi===void 0?1:oi,Ir=Lt.defaultValue,jn=Lt.value,Hn=Lt.disabled,Jn=Lt.readOnly,lr=Lt.upHandler,$n=Lt.downHandler,br=Lt.keyboard,Br=Lt.changeOnWheel,_r=Br===void 0?!1:Br,mi=Lt.controls,di=mi===void 0?!0:mi,fi=Lt.classNames,Ti=Lt.stringMode,xi=Lt.parser,io=Lt.formatter,Xi=Lt.precision,ur=Lt.decimalSeparator,Tr=Lt.onChange,gi=Lt.onInput,ni=Lt.onPressEnter,gt=Lt.onStep,vn=Lt.changeOnBlur,Ut=vn===void 0?!0:vn,dn=Lt.domRef,$t=(0,oe.Z)(Lt,Kt),hn="".concat(nn,"-input"),Nn=x.useRef(null),Hr=x.useState(!1),zr=(0,xe.Z)(Hr,2),Ai=zr[0],hr=zr[1],nr=x.useRef(!1),ir=x.useRef(!1),Yr=x.useRef(!1),Mi=x.useState(function(){return Ve(jn!=null?jn:Ir)}),Yn=(0,xe.Z)(Mi,2),Vn=Yn[0],Mr=Yn[1];function Tn(ci){jn===void 0&&Mr(ci)}var mn=x.useCallback(function(ci,Zr){if(!Zr)return Xi>=0?Xi:Math.max(Ce(ci),Ce(Ar))},[Xi,Ar]),tr=x.useCallback(function(ci){var Zr=String(ci);if(xi)return xi(Zr);var Qi=Zr;return ur&&(Qi=Qi.replace(ur,".")),Qi.replace(/[^\w.-]+/g,"")},[xi,ur]),or=x.useRef(""),ar=x.useCallback(function(ci,Zr){if(io)return io(ci,{userTyping:Zr,input:String(or.current)});var Qi=typeof ci=="number"?Ee(ci):ci;if(!Zr){var eo=mn(Qi,Zr);if(ke(Qi)&&(ur||eo>=0)){var Rr=ur||".";Qi=Je(Qi,Rr,eo)}}return Qi},[io,mn,ur]),kr=x.useState(function(){var ci=Ir!=null?Ir:jn;return Vn.isInvalidate()&&["string","number"].includes((0,he.Z)(ci))?Number.isNaN(ci)?"":ci:ar(Vn.toString(),!1)}),vi=(0,xe.Z)(kr,2),qr=vi[0],Li=vi[1];or.current=qr;function _i(ci,Zr){Li(ar(ci.isInvalidate()?ci.toString(!1):ci.toString(!Zr),Zr))}var ri=x.useMemo(function(){return jt(ti)},[ti,Xi]),hi=x.useMemo(function(){return jt(Er)},[Er,Xi]),ro=x.useMemo(function(){return!ri||!Vn||Vn.isInvalidate()?!1:ri.lessEquals(Vn)},[ri,Vn]),ki=x.useMemo(function(){return!hi||!Vn||Vn.isInvalidate()?!1:Vn.lessEquals(hi)},[hi,Vn]),bi=ht(Nn.current,Ai),Ni=(0,xe.Z)(bi,2),oo=Ni[0],Di=Ni[1],yo=function(Zr){return ri&&!Zr.lessEquals(ri)?ri:hi&&!hi.lessEquals(Zr)?hi:null},Ji=function(Zr){return!yo(Zr)},po=function(Zr,Qi){var eo=Zr,Rr=Ji(eo)||eo.isEmpty();if(!eo.isEmpty()&&!Qi&&(eo=yo(eo)||eo,Rr=!0),!Jn&&!Hn&&Rr){var ai=eo.toString(),Fi=mn(ai,Qi);return Fi>=0&&(eo=Ve(Je(ai,".",Fi)),Ji(eo)||(eo=Ve(Je(ai,".",Fi,!0)))),eo.equals(Vn)||(Tn(eo),Tr==null||Tr(eo.isEmpty()?null:Dt(Ti,eo)),jn===void 0&&_i(eo,Qi)),eo}return Vn},ho=Zt(),Jo=function ci(Zr){if(oo(),or.current=Zr,Li(Zr),!ir.current){var Qi=tr(Zr),eo=Ve(Qi);eo.isNaN()||po(eo,!0)}gi==null||gi(Zr),ho(function(){var Rr=Zr;xi||(Rr=Zr.replace(/。/g,".")),Rr!==Zr&&ci(Rr)})},xo=function(){ir.current=!0},no=function(){ir.current=!1,Jo(Nn.current.value)},Do=function(Zr){Jo(Zr.target.value)},Zo=function(Zr){var Qi;if(!(Zr&&ro||!Zr&&ki)){nr.current=!1;var eo=Ve(Yr.current?De(Ar):Ar);Zr||(eo=eo.negate());var Rr=(Vn||Ve(0)).add(eo.toString()),ai=po(Rr,!1);gt==null||gt(Dt(Ti,ai),{offset:Yr.current?De(Ar):Ar,type:Zr?"up":"down"}),(Qi=Nn.current)===null||Qi===void 0||Qi.focus()}},jo=function(Zr){var Qi=Ve(tr(qr)),eo;Qi.isNaN()?eo=po(Vn,Zr):eo=po(Qi,Zr),jn!==void 0?_i(Vn,!1):eo.isNaN()||_i(eo,!1)},Cn=function(){nr.current=!0},Vi=function(Zr){var Qi=Zr.key,eo=Zr.shiftKey;nr.current=!0,Yr.current=eo,Qi==="Enter"&&(ir.current||(nr.current=!1),jo(!1),ni==null||ni(Zr)),br!==!1&&!ir.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qi)&&(Zo(Qi==="Up"||Qi==="ArrowUp"),Zr.preventDefault())},Ur=function(){nr.current=!1,Yr.current=!1};x.useEffect(function(){if(_r&&Ai){var ci=function(eo){Zo(eo.deltaY<0),eo.preventDefault()},Zr=Nn.current;if(Zr)return Zr.addEventListener("wheel",ci,{passive:!1}),function(){return Zr.removeEventListener("wheel",ci)}}});var Vr=function(){Ut&&jo(!1),hr(!1),nr.current=!1};return(0,ot.o)(function(){Vn.isInvalidate()||_i(Vn,!1)},[Xi,io]),(0,ot.o)(function(){var ci=Ve(jn);Mr(ci);var Zr=Ve(tr(qr));(!ci.equals(Zr)||!nr.current||io)&&_i(ci,nr.current)},[jn]),(0,ot.o)(function(){io&&Di()},[qr]),x.createElement("div",{ref:dn,className:ze()(nn,wn,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(nn,"-focused"),Ai),"".concat(nn,"-disabled"),Hn),"".concat(nn,"-readonly"),Jn),"".concat(nn,"-not-a-number"),Vn.isNaN()),"".concat(nn,"-out-of-range"),!Vn.isInvalidate()&&!Ji(Vn))),style:Gn,onFocus:function(){hr(!0)},onBlur:Vr,onKeyDown:Vi,onKeyUp:Ur,onCompositionStart:xo,onCompositionEnd:no,onBeforeInput:Cn},di&&x.createElement(Ze,{prefixCls:nn,upNode:lr,downNode:$n,upDisabled:ro,downDisabled:ki,onStep:Zo}),x.createElement("div",{className:"".concat(hn,"-wrap")},x.createElement("input",(0,Ie.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Er,"aria-valuemax":ti,"aria-valuenow":Vn.isInvalidate()?null:Vn.toString(),step:Ar},$t,{ref:(0,Ct.sQ)(Nn,Gt),className:hn,value:qr,onChange:Do,disabled:Hn,readOnly:Jn}))))}),kt=x.forwardRef(function(Lt,Gt){var nn=Lt.disabled,wn=Lt.style,Gn=Lt.prefixCls,Er=Gn===void 0?"rc-input-number":Gn,ti=Lt.value,oi=Lt.prefix,Ar=Lt.suffix,Ir=Lt.addonBefore,jn=Lt.addonAfter,Hn=Lt.className,Jn=Lt.classNames,lr=(0,oe.Z)(Lt,tt),$n=x.useRef(null),br=x.useRef(null),Br=x.useRef(null),_r=function(di){Br.current&&(0,ut.nH)(Br.current,di)};return x.useImperativeHandle(Gt,function(){return pt(Br.current,{focus:_r,nativeElement:$n.current.nativeElement||br.current})}),x.createElement(ct.BaseInput,{className:Hn,triggerFocus:_r,prefixCls:Er,value:ti,disabled:nn,style:wn,prefix:oi,suffix:Ar,addonAfter:jn,addonBefore:Ir,classNames:Jn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:$n},x.createElement(An,(0,Ie.Z)({prefixCls:Er,disabled:nn,ref:Br,domRef:br,className:Jn==null?void 0:Jn.input},lr)))}),pn=kt,Pt=pn,En=ae(62487),on=ae(82855),de=ae(48755),pe=ae(60840),ie=ae(2171),ee=ae(83397),se=ae(31756),le=ae(56553),Be=ae(24971),We=ae(70045),st=ae(36237),mt=ae(53075),vt=ae(64910),St=ae(39082),_t=ae(63356),Qt=ae(56119),xt=ae(16931),lt=ae(51636),Vt=ae(17835);const Wt=Lt=>{var Gt;const nn=(Gt=Lt.handleVisible)!==null&&Gt!==void 0?Gt:"auto",wn=Lt.controlHeightSM-Lt.lineWidth*2;return Object.assign(Object.assign({},(0,vt.T)(Lt)),{controlWidth:90,handleWidth:wn,handleFontSize:Lt.fontSize/2,handleVisible:nn,handleActiveBg:Lt.colorFillAlter,handleBg:Lt.colorBgContainer,filledHandleBg:new Vt.FastColor(Lt.colorFillSecondary).onBackground(Lt.colorBgContainer).toHexString(),handleHoverColor:Lt.colorPrimary,handleBorderColor:Lt.colorBorder,handleOpacity:nn===!0?1:0,handleVisibleWidth:nn===!0?wn:0})},gn=(Lt,Gt)=>{let{componentCls:nn,borderRadiusSM:wn,borderRadiusLG:Gn}=Lt;const Er=Gt==="lg"?Gn:wn;return{[`&-${Gt}`]:{[`${nn}-handler-wrap`]:{borderStartEndRadius:Er,borderEndEndRadius:Er},[`${nn}-handler-up`]:{borderStartEndRadius:Er},[`${nn}-handler-down`]:{borderEndEndRadius:Er}}}},an=Lt=>{const{componentCls:Gt,lineWidth:nn,lineType:wn,borderRadius:Gn,inputFontSizeSM:Er,inputFontSizeLG:ti,controlHeightLG:oi,controlHeightSM:Ar,colorError:Ir,paddingInlineSM:jn,paddingBlockSM:Hn,paddingBlockLG:Jn,paddingInlineLG:lr,colorTextDescription:$n,motionDurationMid:br,handleHoverColor:Br,handleOpacity:_r,paddingInline:mi,paddingBlock:di,handleBg:fi,handleActiveBg:Ti,colorTextDisabled:xi,borderRadiusSM:io,borderRadiusLG:Xi,controlWidth:ur,handleBorderColor:Tr,filledHandleBg:gi,lineHeightLG:ni,calc:gt}=Lt;return[{[Gt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_t.Wf)(Lt)),(0,mt.ik)(Lt)),{display:"inline-block",width:ur,margin:0,padding:0,borderRadius:Gn}),(0,St.qG)(Lt,{[`${Gt}-handler-wrap`]:{background:fi,[`${Gt}-handler-down`]:{borderBlockStart:`${(0,st.unit)(nn)} ${wn} ${Tr}`}}})),(0,St.H8)(Lt,{[`${Gt}-handler-wrap`]:{background:gi,[`${Gt}-handler-down`]:{borderBlockStart:`${(0,st.unit)(nn)} ${wn} ${Tr}`}},"&:focus-within":{[`${Gt}-handler-wrap`]:{background:fi}}})),(0,St.vc)(Lt,{[`${Gt}-handler-wrap`]:{background:fi,[`${Gt}-handler-down`]:{borderBlockStart:`${(0,st.unit)(nn)} ${wn} ${Tr}`}}})),(0,St.Mu)(Lt)),{"&-rtl":{direction:"rtl",[`${Gt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ti,lineHeight:ni,borderRadius:Xi,[`input${Gt}-input`]:{height:gt(oi).sub(gt(nn).mul(2)).equal(),padding:`${(0,st.unit)(Jn)} ${(0,st.unit)(lr)}`}},"&-sm":{padding:0,fontSize:Er,borderRadius:io,[`input${Gt}-input`]:{height:gt(Ar).sub(gt(nn).mul(2)).equal(),padding:`${(0,st.unit)(Hn)} ${(0,st.unit)(jn)}`}},"&-out-of-range":{[`${Gt}-input-wrap`]:{input:{color:Ir}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,_t.Wf)(Lt)),(0,mt.s7)(Lt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Gt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Gt}-group-addon`]:{borderRadius:Xi,fontSize:Lt.fontSizeLG}},"&-sm":{[`${Gt}-group-addon`]:{borderRadius:io}}},(0,St.ir)(Lt)),(0,St.S5)(Lt)),{[`&:not(${Gt}-compact-first-item):not(${Gt}-compact-last-item)${Gt}-compact-item`]:{[`${Gt}, ${Gt}-group-addon`]:{borderRadius:0}},[`&:not(${Gt}-compact-last-item)${Gt}-compact-first-item`]:{[`${Gt}, ${Gt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Gt}-compact-first-item)${Gt}-compact-last-item`]:{[`${Gt}, ${Gt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Gt}-input`]:{cursor:"not-allowed"},[Gt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,_t.Wf)(Lt)),{width:"100%",padding:`${(0,st.unit)(di)} ${(0,st.unit)(mi)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Gn,outline:0,transition:`all ${br} linear`,appearance:"textfield",fontSize:"inherit"}),(0,mt.nz)(Lt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Gt}-handler-wrap, &-focused ${Gt}-handler-wrap`]:{width:Lt.handleWidth,opacity:1}})},{[Gt]:Object.assign(Object.assign(Object.assign({[`${Gt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Lt.handleVisibleWidth,opacity:_r,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Gn,borderEndEndRadius:Gn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${br}`,overflow:"hidden",[`${Gt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Gt}-handler-up-inner,
|
|
|
${Gt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Lt.handleFontSize}}},[`${Gt}-handler`]:{height:"50%",overflow:"hidden",color:$n,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,st.unit)(nn)} ${wn} ${Tr}`,transition:`all ${br} linear`,"&:active":{background:Ti},"&:hover":{height:"60%",[`
|
|
|
${Gt}-handler-up-inner,
|
|
|
${Gt}-handler-down-inner
|
|
|
`]:{color:Br}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,_t.Ro)()),{color:$n,transition:`all ${br} linear`,userSelect:"none"})},[`${Gt}-handler-up`]:{borderStartEndRadius:Gn},[`${Gt}-handler-down`]:{borderEndEndRadius:Gn}},gn(Lt,"lg")),gn(Lt,"sm")),{"&-disabled, &-readonly":{[`${Gt}-handler-wrap`]:{display:"none"},[`${Gt}-input`]:{color:"inherit"}},[`
|
|
|
${Gt}-handler-up-disabled,
|
|
|
${Gt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Gt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Gt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:xi}})}]},en=Lt=>{const{componentCls:Gt,paddingBlock:nn,paddingInline:wn,inputAffixPadding:Gn,controlWidth:Er,borderRadiusLG:ti,borderRadiusSM:oi,paddingInlineLG:Ar,paddingInlineSM:Ir,paddingBlockLG:jn,paddingBlockSM:Hn,motionDurationMid:Jn}=Lt;return{[`${Gt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Gt}-input`]:{padding:`${(0,st.unit)(nn)} 0`}},(0,mt.ik)(Lt)),{position:"relative",display:"inline-flex",alignItems:"center",width:Er,padding:0,paddingInlineStart:wn,"&-lg":{borderRadius:ti,paddingInlineStart:Ar,[`input${Gt}-input`]:{padding:`${(0,st.unit)(jn)} 0`}},"&-sm":{borderRadius:oi,paddingInlineStart:Ir,[`input${Gt}-input`]:{padding:`${(0,st.unit)(Hn)} 0`}},[`&:not(${Gt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Gt}-disabled`]:{background:"transparent"},[`> div${Gt}`]:{width:"100%",border:"none",outline:"none",[`&${Gt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Gt}-handler-wrap`]:{zIndex:2},[Gt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Gn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:wn,marginInlineStart:Gn,transition:`margin ${Jn}`}},[`&:hover ${Gt}-handler-wrap, &-focused ${Gt}-handler-wrap`]:{width:Lt.handleWidth,opacity:1},[`&:not(${Gt}-affix-wrapper-without-controls):hover ${Gt}-suffix`]:{marginInlineEnd:Lt.calc(Lt.handleWidth).add(wn).equal()}})}};var zn=(0,xt.I$)("InputNumber",Lt=>{const Gt=(0,lt.mergeToken)(Lt,(0,vt.e)(Lt));return[an(Gt),en(Gt),(0,Qt.c)(Gt)]},Wt,{unitless:{handleOpacity:!0}}),Fn=function(Lt,Gt){var nn={};for(var wn in Lt)Object.prototype.hasOwnProperty.call(Lt,wn)&&Gt.indexOf(wn)<0&&(nn[wn]=Lt[wn]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gn=0,wn=Object.getOwnPropertySymbols(Lt);Gn<wn.length;Gn++)Gt.indexOf(wn[Gn])<0&&Object.prototype.propertyIsEnumerable.call(Lt,wn[Gn])&&(nn[wn[Gn]]=Lt[wn[Gn]]);return nn};const Rt=x.forwardRef((Lt,Gt)=>{const{getPrefixCls:nn,direction:wn}=x.useContext(de.E_),Gn=x.useRef(null);x.useImperativeHandle(Gt,()=>Gn.current);const{className:Er,rootClassName:ti,size:oi,disabled:Ar,prefixCls:Ir,addonBefore:jn,addonAfter:Hn,prefix:Jn,suffix:lr,bordered:$n,readOnly:br,status:Br,controls:_r,variant:mi}=Lt,di=Fn(Lt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),fi=nn("input-number",Ir),Ti=(0,ee.Z)(fi),[xi,io,Xi]=zn(fi,Ti),{compactSize:ur,compactItemClassnames:Tr}=(0,We.ri)(fi,wn);let gi=x.createElement(Le.Z,{className:`${fi}-handler-up-inner`}),ni=x.createElement(dt.Z,{className:`${fi}-handler-down-inner`});const gt=typeof _r=="boolean"?_r:void 0;typeof _r=="object"&&(gi=typeof _r.upIcon=="undefined"?gi:x.createElement("span",{className:`${fi}-handler-up-inner`},_r.upIcon),ni=typeof _r.downIcon=="undefined"?ni:x.createElement("span",{className:`${fi}-handler-down-inner`},_r.downIcon));const{hasFeedback:vn,status:Ut,isFormItemInput:dn,feedbackIcon:$t}=x.useContext(le.aM),hn=(0,on.F)(Ut,Br),Nn=(0,se.Z)(Yn=>{var Vn;return(Vn=oi!=null?oi:ur)!==null&&Vn!==void 0?Vn:Yn}),Hr=x.useContext(ie.Z),zr=Ar!=null?Ar:Hr,[Ai,hr]=(0,Be.Z)("inputNumber",mi,$n),nr=vn&&x.createElement(x.Fragment,null,$t),ir=ze()({[`${fi}-lg`]:Nn==="large",[`${fi}-sm`]:Nn==="small",[`${fi}-rtl`]:wn==="rtl",[`${fi}-in-form-item`]:dn},io),Yr=`${fi}-group`,Mi=x.createElement(Pt,Object.assign({ref:Gn,disabled:zr,className:ze()(Xi,Ti,Er,ti,Tr),upHandler:gi,downHandler:ni,prefixCls:fi,readOnly:br,controls:gt,prefix:Jn,suffix:nr||lr,addonBefore:jn&&x.createElement(En.Z,{form:!0,space:!0},jn),addonAfter:Hn&&x.createElement(En.Z,{form:!0,space:!0},Hn),classNames:{input:ir,variant:ze()({[`${fi}-${Ai}`]:hr},(0,on.Z)(fi,hn,vn)),affixWrapper:ze()({[`${fi}-affix-wrapper-sm`]:Nn==="small",[`${fi}-affix-wrapper-lg`]:Nn==="large",[`${fi}-affix-wrapper-rtl`]:wn==="rtl",[`${fi}-affix-wrapper-without-controls`]:_r===!1||zr},io),wrapper:ze()({[`${Yr}-rtl`]:wn==="rtl"},io),groupWrapper:ze()({[`${fi}-group-wrapper-sm`]:Nn==="small",[`${fi}-group-wrapper-lg`]:Nn==="large",[`${fi}-group-wrapper-rtl`]:wn==="rtl",[`${fi}-group-wrapper-${Ai}`]:hr},(0,on.Z)(`${fi}-group-wrapper`,hn,vn),io)}},di));return xi(Mi)}),sn=Rt,_n=Lt=>x.createElement(pe.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},x.createElement(Rt,Object.assign({},Lt)));sn._InternalPanelDoNotUseOrYouWillBeFired=_n;var Wn=sn},49397:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Qe}});var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(36901),ze=ae(8654),Ie=ae(62487),Ue=ae(86013),he=ae(82855),xe=ae(48755),oe=ae(2171),Oe=ae(83397),ve=ae(31756),Me=ae(56553),Se=ae(24971),Te=ae(70045),we=ae(23826),Ce=ae(53075);function Ee(je){return!!(je.prefix||je.suffix||je.allowClear||je.showCount)}var ke=function(je,Je){var Ve={};for(var ct in je)Object.prototype.hasOwnProperty.call(je,ct)&&Je.indexOf(ct)<0&&(Ve[ct]=je[ct]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,ct=Object.getOwnPropertySymbols(je);ot<ct.length;ot++)Je.indexOf(ct[ot])<0&&Object.prototype.propertyIsEnumerable.call(je,ct[ot])&&(Ve[ct[ot]]=je[ct[ot]]);return Ve},Qe=(0,x.forwardRef)((je,Je)=>{const{prefixCls:Ve,bordered:ct=!0,status:ot,size:pt,disabled:Ct,onBlur:He,onFocus:ht,suffix:_e,allowClear:Re,addonAfter:Ot,addonBefore:it,className:at,style:Et,styles:Ze,rootClassName:De,onChange:ut,classNames:Zt,variant:Kt}=je,tt=ke(je,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Dt,direction:jt,allowClear:An,autoComplete:kt,className:pn,style:Pt,classNames:En,styles:on}=(0,xe.dj)("input"),de=Dt("input",Ve),pe=(0,x.useRef)(null),ie=(0,Oe.Z)(de),[ee,se,le]=(0,Ce.TI)(de,De),[Be]=(0,Ce.ZP)(de,ie),{compactSize:We,compactItemClassnames:st}=(0,Te.ri)(de,jt),mt=(0,ve.Z)(Wn=>{var Lt;return(Lt=pt!=null?pt:We)!==null&&Lt!==void 0?Lt:Wn}),vt=x.useContext(oe.Z),St=Ct!=null?Ct:vt,{status:_t,hasFeedback:Qt,feedbackIcon:xt}=(0,x.useContext)(Me.aM),lt=(0,he.F)(_t,ot),Vt=Ee(je)||!!Qt,Wt=(0,x.useRef)(Vt),gn=(0,we.Z)(pe,!0),an=Wn=>{gn(),He==null||He(Wn)},en=Wn=>{gn(),ht==null||ht(Wn)},zn=Wn=>{gn(),ut==null||ut(Wn)},Fn=(Qt||_e)&&x.createElement(x.Fragment,null,_e,Qt&&xt),Rt=(0,Ue.Z)(Re!=null?Re:An),[sn,_n]=(0,Se.Z)("input",Kt,ct);return ee(Be(x.createElement(qe.default,Object.assign({ref:(0,ze.sQ)(Je,pe),prefixCls:de,autoComplete:kt},tt,{disabled:St,onBlur:an,onFocus:en,style:Object.assign(Object.assign({},Pt),Et),styles:Object.assign(Object.assign({},on),Ze),suffix:Fn,allowClear:Rt,className:Le()(at,De,le,ie,st,pn),onChange:zn,addonBefore:it&&x.createElement(Ie.Z,{form:!0,space:!0},it),addonAfter:Ot&&x.createElement(Ie.Z,{form:!0,space:!0},Ot),classNames:Object.assign(Object.assign(Object.assign({},Zt),En),{input:Le()({[`${de}-sm`]:mt==="small",[`${de}-lg`]:mt==="large",[`${de}-rtl`]:jt==="rtl"},Zt==null?void 0:Zt.input,En.input,se),variant:Le()({[`${de}-${sn}`]:_n},(0,he.Z)(de,lt)),affixWrapper:Le()({[`${de}-affix-wrapper-sm`]:mt==="small",[`${de}-affix-wrapper-lg`]:mt==="large",[`${de}-affix-wrapper-rtl`]:jt==="rtl"},se),wrapper:Le()({[`${de}-group-rtl`]:jt==="rtl"},se),groupWrapper:Le()({[`${de}-group-wrapper-sm`]:mt==="small",[`${de}-group-wrapper-lg`]:mt==="large",[`${de}-group-wrapper-rtl`]:jt==="rtl",[`${de}-group-wrapper-${sn}`]:_n},(0,he.Z)(`${de}-group-wrapper`,lt,Qt),se)})}))))})},79809:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Je}});var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(22711),ze=ae(86013),Ie=ae(82855),Ue=ae(48755),he=ae(2171),xe=ae(83397),oe=ae(31756),Oe=ae(56553),ve=ae(24971),Me=ae(70045),Se=ae(30292),Te=ae(53075),we=ae(16931),Ce=ae(51636),Ee=ae(64910);const ke=Ve=>{const{componentCls:ct,paddingLG:ot}=Ve,pt=`${ct}-textarea`;return{[`textarea${ct}`]:{maxWidth:"100%",height:"auto",minHeight:Ve.controlHeight,lineHeight:Ve.lineHeight,verticalAlign:"bottom",transition:`all ${Ve.motionDurationSlow}`,resize:"vertical",[`&${ct}-mouse-active`]:{transition:`all ${Ve.motionDurationSlow}, height 0s, width 0s`}},[`${ct}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[pt]:{position:"relative","&-show-count":{[`> ${ct}`]:{height:"100%"},[`${ct}-data-count`]:{position:"absolute",bottom:Ve.calc(Ve.fontSize).mul(Ve.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ve.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${ct},
|
|
|
&-affix-wrapper${pt}-has-feedback ${ct}
|
|
|
`]:{paddingInlineEnd:ot},[`&-affix-wrapper${ct}-affix-wrapper`]:{padding:0,[`> textarea${ct}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ve.calc(Ve.controlHeight).sub(Ve.calc(Ve.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ct}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ct}-clear-icon`]:{position:"absolute",insetInlineEnd:Ve.paddingInline,insetBlockStart:Ve.paddingXS},[`${pt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ve.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ct}-affix-wrapper-sm`]:{[`${ct}-suffix`]:{[`${ct}-clear-icon`]:{insetInlineEnd:Ve.paddingInlineSM}}}}}};var Ke=(0,we.I$)(["Input","TextArea"],Ve=>{const ct=(0,Ce.mergeToken)(Ve,(0,Ee.e)(Ve));return[ke(ct)]},Ee.T,{resetFont:!1}),Qe=function(Ve,ct){var ot={};for(var pt in Ve)Object.prototype.hasOwnProperty.call(Ve,pt)&&ct.indexOf(pt)<0&&(ot[pt]=Ve[pt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,pt=Object.getOwnPropertySymbols(Ve);Ct<pt.length;Ct++)ct.indexOf(pt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ve,pt[Ct])&&(ot[pt[Ct]]=Ve[pt[Ct]]);return ot},Je=(0,x.forwardRef)((Ve,ct)=>{var ot;const{prefixCls:pt,bordered:Ct=!0,size:He,disabled:ht,status:_e,allowClear:Re,classNames:Ot,rootClassName:it,className:at,style:Et,styles:Ze,variant:De,showCount:ut,onMouseDown:Zt,onResize:Kt}=Ve,tt=Qe(Ve,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Dt,direction:jt,allowClear:An,autoComplete:kt,className:pn,style:Pt,classNames:En,styles:on}=(0,Ue.dj)("textArea"),de=x.useContext(he.Z),pe=ht!=null?ht:de,{status:ie,hasFeedback:ee,feedbackIcon:se}=x.useContext(Oe.aM),le=(0,Ie.F)(ie,_e),Be=x.useRef(null);x.useImperativeHandle(ct,()=>{var _n;return{resizableTextArea:(_n=Be.current)===null||_n===void 0?void 0:_n.resizableTextArea,focus:Wn=>{var Lt,Gt;(0,Se.nH)((Gt=(Lt=Be.current)===null||Lt===void 0?void 0:Lt.resizableTextArea)===null||Gt===void 0?void 0:Gt.textArea,Wn)},blur:()=>{var Wn;return(Wn=Be.current)===null||Wn===void 0?void 0:Wn.blur()}}});const We=Dt("input",pt),st=(0,xe.Z)(We),[mt,vt,St]=(0,Te.TI)(We,it),[_t]=Ke(We,st),{compactSize:Qt,compactItemClassnames:xt}=(0,Me.ri)(We,jt),lt=(0,oe.Z)(_n=>{var Wn;return(Wn=He!=null?He:Qt)!==null&&Wn!==void 0?Wn:_n}),[Vt,Wt]=(0,ve.Z)("textArea",De,Ct),gn=(0,ze.Z)(Re!=null?Re:An),[an,en]=x.useState(!1),[zn,Fn]=x.useState(!1),Rt=_n=>{en(!0),Zt==null||Zt(_n);const Wn=()=>{en(!1),document.removeEventListener("mouseup",Wn)};document.addEventListener("mouseup",Wn)},sn=_n=>{var Wn,Lt;if(Kt==null||Kt(_n),an&&typeof getComputedStyle=="function"){const Gt=(Lt=(Wn=Be.current)===null||Wn===void 0?void 0:Wn.nativeElement)===null||Lt===void 0?void 0:Lt.querySelector("textarea");Gt&&getComputedStyle(Gt).resize==="both"&&Fn(!0)}};return mt(_t(x.createElement(qe.default,Object.assign({autoComplete:kt},tt,{style:Object.assign(Object.assign({},Pt),Et),styles:Object.assign(Object.assign({},on),Ze),disabled:pe,allowClear:gn,className:Le()(St,st,at,it,xt,pn,zn&&`${We}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ot),En),{textarea:Le()({[`${We}-sm`]:lt==="small",[`${We}-lg`]:lt==="large"},vt,Ot==null?void 0:Ot.textarea,En.textarea,an&&`${We}-mouse-active`),variant:Le()({[`${We}-${Vt}`]:Wt},(0,Ie.Z)(We,le)),affixWrapper:Le()(`${We}-textarea-affix-wrapper`,{[`${We}-affix-wrapper-rtl`]:jt==="rtl",[`${We}-affix-wrapper-sm`]:lt==="small",[`${We}-affix-wrapper-lg`]:lt==="large",[`${We}-textarea-show-count`]:ut||((ot=Ve.count)===null||ot===void 0?void 0:ot.show)},vt)}),prefixCls:We,suffix:ee&&x.createElement("span",{className:`${We}-textarea-suffix`},se),showCount:ut,ref:Be,onResize:sn,onMouseDown:Rt}))))})},23826:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return dt}});var x=ae(59301);function dt(Le,qe){const ze=(0,x.useRef)([]),Ie=()=>{ze.current.push(setTimeout(()=>{var Ue,he,xe,oe;!((Ue=Le.current)===null||Ue===void 0)&&Ue.input&&((he=Le.current)===null||he===void 0?void 0:he.input.getAttribute("type"))==="password"&&(!((xe=Le.current)===null||xe===void 0)&&xe.input.hasAttribute("value"))&&((oe=Le.current)===null||oe===void 0||oe.input.removeAttribute("value"))}))};return(0,x.useEffect)(()=>(qe&&Ie(),()=>ze.current.forEach(Ue=>{Ue&&clearTimeout(Ue)})),[]),Ie}},37568:function(qn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return En}});var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(48755),ze=ae(56553),Ie=ae(53075),he=on=>{const{getPrefixCls:de,direction:pe}=(0,x.useContext)(qe.E_),{prefixCls:ie,className:ee}=on,se=de("input-group",ie),le=de("input"),[Be,We,st]=(0,Ie.ZP)(le),mt=Le()(se,st,{[`${se}-lg`]:on.size==="large",[`${se}-sm`]:on.size==="small",[`${se}-compact`]:on.compact,[`${se}-rtl`]:pe==="rtl"},We,ee),vt=(0,x.useContext)(ze.aM),St=(0,x.useMemo)(()=>Object.assign(Object.assign({},vt),{isFormItemInput:!1}),[vt]);return Be(x.createElement("span",{className:mt,style:on.style,onMouseEnter:on.onMouseEnter,onMouseLeave:on.onMouseLeave,onFocus:on.onFocus,onBlur:on.onBlur},x.createElement(ze.aM.Provider,{value:St},on.children)))},xe=ae(49397),oe=ae(77654),Oe=ae(6089),ve=ae(26112),Me=ae(82855),Se=ae(31756),Te=ae(16931),we=ae(51636),Ce=ae(64910);const Ee=on=>{const{componentCls:de,paddingXS:pe}=on;return{[de]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:pe,"&-rtl":{direction:"rtl"},[`${de}-input`]:{textAlign:"center",paddingInline:on.paddingXXS},[`&${de}-sm ${de}-input`]:{paddingInline:on.calc(on.paddingXXS).div(2).equal()},[`&${de}-lg ${de}-input`]:{paddingInline:on.paddingXS}}}};var ke=(0,Te.I$)(["Input","OTP"],on=>{const de=(0,we.mergeToken)(on,(0,Ce.e)(on));return[Ee(de)]},Ce.T),Ke=ae(16089),Qe=function(on,de){var pe={};for(var ie in on)Object.prototype.hasOwnProperty.call(on,ie)&&de.indexOf(ie)<0&&(pe[ie]=on[ie]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(on);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(on,ie[ee])&&(pe[ie[ee]]=on[ie[ee]]);return pe},Je=x.forwardRef((on,de)=>{const{value:pe,onChange:ie,onActiveChange:ee,index:se,mask:le}=on,Be=Qe(on,["value","onChange","onActiveChange","index","mask"]),We=pe&&typeof le=="string"?le:pe,st=Qt=>{ie(se,Qt.target.value)},mt=x.useRef(null);x.useImperativeHandle(de,()=>mt.current);const vt=()=>{(0,Ke.Z)(()=>{var Qt;const xt=(Qt=mt.current)===null||Qt===void 0?void 0:Qt.input;document.activeElement===xt&&xt&&xt.select()})},St=Qt=>{const{key:xt,ctrlKey:lt,metaKey:Vt}=Qt;xt==="ArrowLeft"?ee(se-1):xt==="ArrowRight"?ee(se+1):xt==="z"&&(lt||Vt)&&Qt.preventDefault(),vt()},_t=Qt=>{Qt.key==="Backspace"&&!pe&&ee(se-1),vt()};return x.createElement(xe.Z,Object.assign({type:le===!0?"password":"text"},Be,{ref:mt,value:We,onInput:st,onFocus:vt,onKeyDown:St,onKeyUp:_t,onMouseDown:vt,onMouseUp:vt}))}),Ve=function(on,de){var pe={};for(var ie in on)Object.prototype.hasOwnProperty.call(on,ie)&&de.indexOf(ie)<0&&(pe[ie]=on[ie]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(on);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(on,ie[ee])&&(pe[ie[ee]]=on[ie[ee]]);return pe};function ct(on){return(on||"").split("")}const ot=on=>{const{index:de,prefixCls:pe,separator:ie}=on,ee=typeof ie=="function"?ie(de):ie;return ee?x.createElement("span",{className:`${pe}-separator`},ee):null};var Ct=x.forwardRef((on,de)=>{const{prefixCls:pe,length:ie=6,size:ee,defaultValue:se,value:le,onChange:Be,formatter:We,separator:st,variant:mt,disabled:vt,status:St,autoFocus:_t,mask:Qt,type:xt,onInput:lt,inputMode:Vt}=on,Wt=Ve(on,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:gn,direction:an}=x.useContext(qe.E_),en=gn("otp",pe),zn=(0,ve.Z)(Wt,{aria:!0,data:!0,attr:!0}),[Fn,Rt,sn]=ke(en),_n=(0,Se.Z)(Jn=>ee!=null?ee:Jn),Wn=x.useContext(ze.aM),Lt=(0,Me.F)(Wn.status,St),Gt=x.useMemo(()=>Object.assign(Object.assign({},Wn),{status:Lt,hasFeedback:!1,feedbackIcon:null}),[Wn,Lt]),nn=x.useRef(null),wn=x.useRef({});x.useImperativeHandle(de,()=>({focus:()=>{var Jn;(Jn=wn.current[0])===null||Jn===void 0||Jn.focus()},blur:()=>{var Jn;for(let lr=0;lr<ie;lr+=1)(Jn=wn.current[lr])===null||Jn===void 0||Jn.blur()},nativeElement:nn.current}));const Gn=Jn=>We?We(Jn):Jn,[Er,ti]=x.useState(()=>ct(Gn(se||"")));x.useEffect(()=>{le!==void 0&&ti(ct(le))},[le]);const oi=(0,Oe.Z)(Jn=>{ti(Jn),lt&<(Jn),Be&&Jn.length===ie&&Jn.every(lr=>lr)&&Jn.some((lr,$n)=>Er[$n]!==lr)&&Be(Jn.join(""))}),Ar=(0,Oe.Z)((Jn,lr)=>{let $n=(0,oe.Z)(Er);for(let Br=0;Br<Jn;Br+=1)$n[Br]||($n[Br]="");lr.length<=1?$n[Jn]=lr:$n=$n.slice(0,Jn).concat(ct(lr)),$n=$n.slice(0,ie);for(let Br=$n.length-1;Br>=0&&!$n[Br];Br-=1)$n.pop();const br=Gn($n.map(Br=>Br||" ").join(""));return $n=ct(br).map((Br,_r)=>Br===" "&&!$n[_r]?$n[_r]:Br),$n}),Ir=(Jn,lr)=>{var $n;const br=Ar(Jn,lr),Br=Math.min(Jn+lr.length,ie-1);Br!==Jn&&br[Jn]!==void 0&&(($n=wn.current[Br])===null||$n===void 0||$n.focus()),oi(br)},jn=Jn=>{var lr;(lr=wn.current[Jn])===null||lr===void 0||lr.focus()},Hn={variant:mt,disabled:vt,status:Lt,mask:Qt,type:xt,inputMode:Vt};return Fn(x.createElement("div",Object.assign({},zn,{ref:nn,className:Le()(en,{[`${en}-sm`]:_n==="small",[`${en}-lg`]:_n==="large",[`${en}-rtl`]:an==="rtl"},sn,Rt)}),x.createElement(ze.aM.Provider,{value:Gt},Array.from({length:ie}).map((Jn,lr)=>{const $n=`otp-${lr}`,br=Er[lr]||"";return x.createElement(x.Fragment,{key:$n},x.createElement(Je,Object.assign({ref:Br=>{wn.current[lr]=Br},index:lr,size:_n,htmlSize:1,className:`${en}-input`,onChange:Ir,value:br,onActiveChange:jn,autoFocus:lr===0&&_t},Hn)),lr<ie-1&&x.createElement(ot,{separator:st,index:lr,prefixCls:en}))}))))}),He=ae(73331),ht=ae(15277),_e=ae(2738),Re=ae(8654),Ot=ae(2171),it=ae(23826),at=function(on,de){var pe={};for(var ie in on)Object.prototype.hasOwnProperty.call(on,ie)&&de.indexOf(ie)<0&&(pe[ie]=on[ie]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(on);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(on,ie[ee])&&(pe[ie[ee]]=on[ie[ee]]);return pe};const Et=on=>on?x.createElement(ht.Z,null):x.createElement(He.Z,null),Ze={click:"onClick",hover:"onMouseOver"};var ut=x.forwardRef((on,de)=>{const{disabled:pe,action:ie="click",visibilityToggle:ee=!0,iconRender:se=Et}=on,le=x.useContext(Ot.Z),Be=pe!=null?pe:le,We=typeof ee=="object"&&ee.visible!==void 0,[st,mt]=(0,x.useState)(()=>We?ee.visible:!1),vt=(0,x.useRef)(null);x.useEffect(()=>{We&&mt(ee.visible)},[We,ee]);const St=(0,it.Z)(vt),_t=()=>{var _n;if(Be)return;st&&St();const Wn=!st;mt(Wn),typeof ee=="object"&&((_n=ee.onVisibleChange)===null||_n===void 0||_n.call(ee,Wn))},Qt=_n=>{const Wn=Ze[ie]||"",Lt=se(st),Gt={[Wn]:_t,className:`${_n}-icon`,key:"passwordIcon",onMouseDown:nn=>{nn.preventDefault()},onMouseUp:nn=>{nn.preventDefault()}};return x.cloneElement(x.isValidElement(Lt)?Lt:x.createElement("span",null,Lt),Gt)},{className:xt,prefixCls:lt,inputPrefixCls:Vt,size:Wt}=on,gn=at(on,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:an}=x.useContext(qe.E_),en=an("input",Vt),zn=an("input-password",lt),Fn=ee&&Qt(zn),Rt=Le()(zn,xt,{[`${zn}-${Wt}`]:!!Wt}),sn=Object.assign(Object.assign({},(0,_e.Z)(gn,["suffix","iconRender","visibilityToggle"])),{type:st?"text":"password",className:Rt,prefixCls:en,suffix:Fn});return Wt&&(sn.size=Wt),x.createElement(xe.Z,Object.assign({ref:(0,Re.sQ)(de,vt)},sn))}),Zt=ae(47472),Kt=ae(22703),tt=ae(7939),Dt=ae(70045),jt=function(on,de){var pe={};for(var ie in on)Object.prototype.hasOwnProperty.call(on,ie)&&de.indexOf(ie)<0&&(pe[ie]=on[ie]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(on);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(on,ie[ee])&&(pe[ie[ee]]=on[ie[ee]]);return pe},kt=x.forwardRef((on,de)=>{const{prefixCls:pe,inputPrefixCls:ie,className:ee,size:se,suffix:le,enterButton:Be=!1,addonAfter:We,loading:st,disabled:mt,onSearch:vt,onChange:St,onCompositionStart:_t,onCompositionEnd:Qt}=on,xt=jt(on,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:lt,direction:Vt}=x.useContext(qe.E_),Wt=x.useRef(!1),gn=lt("input-search",pe),an=lt("input",ie),{compactSize:en}=(0,Dt.ri)(gn,Vt),zn=(0,Se.Z)(Ir=>{var jn;return(jn=se!=null?se:en)!==null&&jn!==void 0?jn:Ir}),Fn=x.useRef(null),Rt=Ir=>{Ir!=null&&Ir.target&&Ir.type==="click"&&vt&&vt(Ir.target.value,Ir,{source:"clear"}),St==null||St(Ir)},sn=Ir=>{var jn;document.activeElement===((jn=Fn.current)===null||jn===void 0?void 0:jn.input)&&Ir.preventDefault()},_n=Ir=>{var jn,Hn;vt&&vt((Hn=(jn=Fn.current)===null||jn===void 0?void 0:jn.input)===null||Hn===void 0?void 0:Hn.value,Ir,{source:"input"})},Wn=Ir=>{Wt.current||st||_n(Ir)},Lt=typeof Be=="boolean"?x.createElement(Zt.Z,null):null,Gt=`${gn}-button`;let nn;const wn=Be||{},Gn=wn.type&&wn.type.__ANT_BUTTON===!0;Gn||wn.type==="button"?nn=(0,Kt.Tm)(wn,Object.assign({onMouseDown:sn,onClick:Ir=>{var jn,Hn;(Hn=(jn=wn==null?void 0:wn.props)===null||jn===void 0?void 0:jn.onClick)===null||Hn===void 0||Hn.call(jn,Ir),_n(Ir)},key:"enterButton"},Gn?{className:Gt,size:zn}:{})):nn=x.createElement(tt.ZP,{className:Gt,type:Be?"primary":void 0,size:zn,disabled:mt,key:"enterButton",onMouseDown:sn,onClick:_n,loading:st,icon:Lt},Be),We&&(nn=[nn,(0,Kt.Tm)(We,{key:"addonAfter"})]);const Er=Le()(gn,{[`${gn}-rtl`]:Vt==="rtl",[`${gn}-${zn}`]:!!zn,[`${gn}-with-button`]:!!Be},ee),ti=Object.assign(Object.assign({},xt),{className:Er,prefixCls:an,type:"search"}),oi=Ir=>{Wt.current=!0,_t==null||_t(Ir)},Ar=Ir=>{Wt.current=!1,Qt==null||Qt(Ir)};return x.createElement(xe.Z,Object.assign({ref:(0,Re.sQ)(Fn,de),onPressEnter:Wn},ti,{size:zn,onCompositionStart:oi,onCompositionEnd:Ar,addonAfter:nn,suffix:le,onChange:Rt,disabled:mt}))}),pn=ae(79809);const Pt=xe.Z;Pt.Group=he,Pt.Search=kt,Pt.TextArea=pn.Z,Pt.Password=ut,Pt.OTP=Ct;var En=Pt},24303:function(qn,Mt,ae){"use strict";ae.d(Mt,{D:function(){return Ve},Z:function(){return pt}});var x=ae(59301),dt=ae(60499),Le={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"},qe=Le,ze=ae(7657),Ie=function(He,ht){return x.createElement(ze.Z,(0,dt.Z)({},He,{ref:ht,icon:qe}))},Ue=x.forwardRef(Ie),he=Ue,xe=ae(33853),oe=ae(38819),Oe=ae(92310),ve=ae.n(Oe),Me=ae(2738),Se=ae(48755),Te=ae(6989),we=ae(36237),Ce=ae(48923),Ee=ae(16931);const ke=Ct=>{const{componentCls:He,siderBg:ht,motionDurationMid:_e,motionDurationSlow:Re,antCls:Ot,triggerHeight:it,triggerColor:at,triggerBg:Et,headerHeight:Ze,zeroTriggerWidth:De,zeroTriggerHeight:ut,borderRadiusLG:Zt,lightSiderBg:Kt,lightTriggerColor:tt,lightTriggerBg:Dt,bodyBg:jt}=Ct;return{[He]:{position:"relative",minWidth:0,background:ht,transition:`all ${_e}, background 0s`,"&-has-trigger":{paddingBottom:it},"&-right":{order:1},[`${He}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ot}-menu${Ot}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${He}-children`]:{overflow:"hidden"},[`${He}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:it,color:at,lineHeight:(0,we.unit)(it),textAlign:"center",background:Et,cursor:"pointer",transition:`all ${_e}`},[`${He}-zero-width-trigger`]:{position:"absolute",top:Ze,insetInlineEnd:Ct.calc(De).mul(-1).equal(),zIndex:1,width:De,height:ut,color:at,fontSize:Ct.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ht,borderRadius:`0 ${(0,we.unit)(Zt)} ${(0,we.unit)(Zt)} 0`,cursor:"pointer",transition:`background ${Re} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Re}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Ct.calc(De).mul(-1).equal(),borderRadius:`${(0,we.unit)(Zt)} 0 0 ${(0,we.unit)(Zt)}`}},"&-light":{background:Kt,[`${He}-trigger`]:{color:tt,background:Dt},[`${He}-zero-width-trigger`]:{color:tt,background:Dt,border:`1px solid ${jt}`,borderInlineStart:0}}}}};var Ke=(0,Ee.I$)(["Layout","Sider"],Ct=>[ke(Ct)],Ce.eh,{deprecatedTokens:Ce.jn}),Qe=function(Ct,He){var ht={};for(var _e in Ct)Object.prototype.hasOwnProperty.call(Ct,_e)&&He.indexOf(_e)<0&&(ht[_e]=Ct[_e]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,_e=Object.getOwnPropertySymbols(Ct);Re<_e.length;Re++)He.indexOf(_e[Re])<0&&Object.prototype.propertyIsEnumerable.call(Ct,_e[Re])&&(ht[_e[Re]]=Ct[_e[Re]]);return ht};const je={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Je=Ct=>!Number.isNaN(Number.parseFloat(Ct))&&isFinite(Ct),Ve=x.createContext({}),ct=(()=>{let Ct=0;return function(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ct+=1,`${He}${Ct}`}})();var pt=x.forwardRef((Ct,He)=>{const{prefixCls:ht,className:_e,trigger:Re,children:Ot,defaultCollapsed:it=!1,theme:at="dark",style:Et={},collapsible:Ze=!1,reverseArrow:De=!1,width:ut=200,collapsedWidth:Zt=80,zeroWidthTriggerStyle:Kt,breakpoint:tt,onCollapse:Dt,onBreakpoint:jt}=Ct,An=Qe(Ct,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:kt}=(0,x.useContext)(Te.V),[pn,Pt]=(0,x.useState)("collapsed"in Ct?Ct.collapsed:it),[En,on]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in Ct&&Pt(Ct.collapsed)},[Ct.collapsed]);const de=(zn,Fn)=>{"collapsed"in Ct||Pt(zn),Dt==null||Dt(zn,Fn)},{getPrefixCls:pe,direction:ie}=(0,x.useContext)(Se.E_),ee=pe("layout-sider",ht),[se,le,Be]=Ke(ee),We=(0,x.useRef)(null);We.current=zn=>{on(zn.matches),jt==null||jt(zn.matches),pn!==zn.matches&&de(zn.matches,"responsive")},(0,x.useEffect)(()=>{function zn(Rt){return We.current(Rt)}let Fn;if(typeof window!="undefined"){const{matchMedia:Rt}=window;if(Rt&&tt&&tt in je){Fn=Rt(`screen and (max-width: ${je[tt]})`);try{Fn.addEventListener("change",zn)}catch(sn){Fn.addListener(zn)}zn(Fn)}}return()=>{try{Fn==null||Fn.removeEventListener("change",zn)}catch(Rt){Fn==null||Fn.removeListener(zn)}}},[tt]),(0,x.useEffect)(()=>{const zn=ct("ant-sider-");return kt.addSider(zn),()=>kt.removeSider(zn)},[]);const st=()=>{de(!pn,"clickTrigger")},mt=(0,Me.Z)(An,["collapsed"]),vt=pn?Zt:ut,St=Je(vt)?`${vt}px`:String(vt),_t=parseFloat(String(Zt||0))===0?x.createElement("span",{onClick:st,className:ve()(`${ee}-zero-width-trigger`,`${ee}-zero-width-trigger-${De?"right":"left"}`),style:Kt},Re||x.createElement(he,null)):null,Qt=ie==="rtl"==!De,Vt={expanded:Qt?x.createElement(oe.Z,null):x.createElement(xe.Z,null),collapsed:Qt?x.createElement(xe.Z,null):x.createElement(oe.Z,null)}[pn?"collapsed":"expanded"],Wt=Re!==null?_t||x.createElement("div",{className:`${ee}-trigger`,onClick:st,style:{width:St}},Re||Vt):null,gn=Object.assign(Object.assign({},Et),{flex:`0 0 ${St}`,maxWidth:St,minWidth:St,width:St}),an=ve()(ee,`${ee}-${at}`,{[`${ee}-collapsed`]:!!pn,[`${ee}-has-trigger`]:Ze&&Re!==null&&!_t,[`${ee}-below`]:!!En,[`${ee}-zero-width`]:parseFloat(St)===0},_e,le,Be),en=x.useMemo(()=>({siderCollapsed:pn}),[pn]);return se(x.createElement(Ve.Provider,{value:en},x.createElement("aside",Object.assign({className:an},mt,{style:gn,ref:He}),x.createElement("div",{className:`${ee}-children`},Ot),Ze||En&&_t?Wt:null)))})},6989:function(qn,Mt,ae){"use strict";ae.d(Mt,{V:function(){return dt}});var x=ae(59301);const dt=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(qn,Mt,ae){"use strict";ae.d(Mt,{eh:function(){return qe},jn:function(){return ze}});var x=ae(36237),dt=ae(16931);const Le=Ie=>{const{antCls:Ue,componentCls:he,colorText:xe,footerBg:oe,headerHeight:Oe,headerPadding:ve,headerColor:Me,footerPadding:Se,fontSize:Te,bodyBg:we,headerBg:Ce}=Ie;return{[he]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:we,"&, *":{boxSizing:"border-box"},[`&${he}-has-sider`]:{flexDirection:"row",[`> ${he}, > ${he}-content`]:{width:0}},[`${he}-header, &${he}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${he}-header`]:{height:Oe,padding:ve,color:Me,lineHeight:(0,x.unit)(Oe),background:Ce,[`${Ue}-menu`]:{lineHeight:"inherit"}},[`${he}-footer`]:{padding:Se,color:xe,fontSize:Te,background:oe},[`${he}-content`]:{flex:"auto",color:xe,minHeight:0}}},qe=Ie=>{const{colorBgLayout:Ue,controlHeight:he,controlHeightLG:xe,colorText:oe,controlHeightSM:Oe,marginXXS:ve,colorTextLightSolid:Me,colorBgContainer:Se}=Ie,Te=xe*1.25;return{colorBgHeader:"#001529",colorBgBody:Ue,colorBgTrigger:"#002140",bodyBg:Ue,headerBg:"#001529",headerHeight:he*2,headerPadding:`0 ${Te}px`,headerColor:oe,footerPadding:`${Oe}px ${Te}px`,footerBg:Ue,siderBg:"#001529",triggerHeight:xe+ve*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:xe,zeroTriggerHeight:xe,lightSiderBg:Se,lightTriggerBg:Se,lightTriggerColor:oe}},ze=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Mt.ZP=(0,dt.I$)("Layout",Ie=>[Le(Ie)],qe,{deprecatedTokens:ze})},78857:function(qn,Mt,ae){"use strict";ae.d(Mt,{J:function(){return Ie}});var x=ae(59301),dt=ae(8654),Le=ae(62487),qe=function(Ue,he){var xe={};for(var oe in Ue)Object.prototype.hasOwnProperty.call(Ue,oe)&&he.indexOf(oe)<0&&(xe[oe]=Ue[oe]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,oe=Object.getOwnPropertySymbols(Ue);Oe<oe.length;Oe++)he.indexOf(oe[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Ue,oe[Oe])&&(xe[oe[Oe]]=Ue[oe[Oe]]);return xe};const ze=x.createContext(null),Ie=x.forwardRef((Ue,he)=>{const{children:xe}=Ue,oe=qe(Ue,["children"]),Oe=x.useContext(ze),ve=x.useMemo(()=>Object.assign(Object.assign({},Oe),oe),[Oe,oe.prefixCls,oe.mode,oe.selectable,oe.rootClassName]),Me=(0,dt.t4)(xe),Se=(0,dt.x1)(he,Me?(0,dt.C4)(xe):null);return x.createElement(ze.Provider,{value:ve},x.createElement(Le.Z,{space:!0},Me?x.cloneElement(xe,{ref:Se}):xe))});Mt.Z=ze},93041:function(qn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return se}});var x=ae(59301),dt=ae(28321),Le=ae(24303),qe=ae(18785),ze=ae(92310),Ie=ae.n(ze),Ue=ae(6089),he=ae(2738),xe=ae(86641),oe=ae(22703),Oe=ae(48755),ve=ae(83397),Se=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Te=function(le,Be){var We={};for(var st in le)Object.prototype.hasOwnProperty.call(le,st)&&Be.indexOf(st)<0&&(We[st]=le[st]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,st=Object.getOwnPropertySymbols(le);mt<st.length;mt++)Be.indexOf(st[mt])<0&&Object.prototype.propertyIsEnumerable.call(le,st[mt])&&(We[st[mt]]=le[st[mt]]);return We},Ce=le=>{const{prefixCls:Be,className:We,dashed:st}=le,mt=Te(le,["prefixCls","className","dashed"]),{getPrefixCls:vt}=x.useContext(Oe.E_),St=vt("menu",Be),_t=Ie()({[`${St}-item-divider-dashed`]:!!st},We);return x.createElement(dt.iz,Object.assign({className:_t},mt))},Ee=ae(11592),ke=ae(25399),Qe=le=>{var Be;const{className:We,children:st,icon:mt,title:vt,danger:St,extra:_t}=le,{prefixCls:Qt,firstLevel:xt,direction:lt,disableMenuItemTitleTooltip:Vt,inlineCollapsed:Wt}=x.useContext(Se),gn=sn=>{const _n=st==null?void 0:st[0],Wn=x.createElement("span",{className:Ie()(`${Qt}-title-content`,{[`${Qt}-title-content-with-extra`]:!!_t||_t===0})},st);return(!mt||x.isValidElement(st)&&st.type==="span")&&st&&sn&&xt&&typeof _n=="string"?x.createElement("div",{className:`${Qt}-inline-collapsed-noicon`},_n.charAt(0)):Wn},{siderCollapsed:an}=x.useContext(Le.D);let en=vt;typeof vt=="undefined"?en=xt?st:"":vt===!1&&(en="");const zn={title:en};!an&&!Wt&&(zn.title=null,zn.open=!1);const Fn=(0,Ee.Z)(st).length;let Rt=x.createElement(dt.ck,Object.assign({},(0,he.Z)(le,["title","icon","danger"]),{className:Ie()({[`${Qt}-item-danger`]:St,[`${Qt}-item-only-child`]:(mt?Fn+1:Fn)===1},We),title:typeof vt=="string"?vt:void 0}),(0,oe.Tm)(mt,{className:Ie()(x.isValidElement(mt)?(Be=mt.props)===null||Be===void 0?void 0:Be.className:"",`${Qt}-item-icon`)}),gn(Wt));return Vt||(Rt=x.createElement(ke.Z,Object.assign({},zn,{placement:lt==="rtl"?"left":"right",classNames:{root:`${Qt}-inline-collapsed-tooltip`}}),Rt)),Rt},je=ae(78857),Je=ae(36237),Ve=ae(17835),ct=ae(63356),ot=ae(34961),pt=ae(46e3),Ct=ae(34925),He=ae(16931),ht=ae(51636),Re=le=>{const{componentCls:Be,motionDurationSlow:We,horizontalLineHeight:st,colorSplit:mt,lineWidth:vt,lineType:St,itemPaddingInline:_t}=le;return{[`${Be}-horizontal`]:{lineHeight:st,border:0,borderBottom:`${(0,Je.unit)(vt)} ${St} ${mt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Be}-item, ${Be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:_t},[`> ${Be}-item:hover,
|
|
|
> ${Be}-item-active,
|
|
|
> ${Be}-submenu ${Be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Be}-item, ${Be}-submenu-title`]:{transition:[`border-color ${We}`,`background ${We}`].join(",")},[`${Be}-submenu-arrow`]:{display:"none"}}}},it=le=>{let{componentCls:Be,menuArrowOffset:We,calc:st}=le;return{[`${Be}-rtl`]:{direction:"rtl"},[`${Be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Be}-rtl${Be}-vertical,
|
|
|
${Be}-submenu-rtl ${Be}-vertical`]:{[`${Be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Je.unit)(st(We).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Je.unit)(We)})`}}}}};const at=le=>Object.assign({},(0,ct.oN)(le));var Ze=(le,Be)=>{const{componentCls:We,itemColor:st,itemSelectedColor:mt,subMenuItemSelectedColor:vt,groupTitleColor:St,itemBg:_t,subMenuItemBg:Qt,itemSelectedBg:xt,activeBarHeight:lt,activeBarWidth:Vt,activeBarBorderWidth:Wt,motionDurationSlow:gn,motionEaseInOut:an,motionEaseOut:en,itemPaddingInline:zn,motionDurationMid:Fn,itemHoverColor:Rt,lineType:sn,colorSplit:_n,itemDisabledColor:Wn,dangerItemColor:Lt,dangerItemHoverColor:Gt,dangerItemSelectedColor:nn,dangerItemActiveBg:wn,dangerItemSelectedBg:Gn,popupBg:Er,itemHoverBg:ti,itemActiveBg:oi,menuSubMenuBg:Ar,horizontalItemSelectedColor:Ir,horizontalItemSelectedBg:jn,horizontalItemBorderRadius:Hn,horizontalItemHoverBg:Jn}=le;return{[`${We}-${Be}, ${We}-${Be} > ${We}`]:{color:st,background:_t,[`&${We}-root:focus-visible`]:Object.assign({},at(le)),[`${We}-item`]:{"&-group-title, &-extra":{color:St}},[`${We}-submenu-selected > ${We}-submenu-title`]:{color:vt},[`${We}-item, ${We}-submenu-title`]:{color:st,[`&:not(${We}-item-disabled):focus-visible`]:Object.assign({},at(le))},[`${We}-item-disabled, ${We}-submenu-disabled`]:{color:`${Wn} !important`},[`${We}-item:not(${We}-item-selected):not(${We}-submenu-selected)`]:{[`&:hover, > ${We}-submenu-title:hover`]:{color:Rt}},[`&:not(${We}-horizontal)`]:{[`${We}-item:not(${We}-item-selected)`]:{"&:hover":{backgroundColor:ti},"&:active":{backgroundColor:oi}},[`${We}-submenu-title`]:{"&:hover":{backgroundColor:ti},"&:active":{backgroundColor:oi}}},[`${We}-item-danger`]:{color:Lt,[`&${We}-item:hover`]:{[`&:not(${We}-item-selected):not(${We}-submenu-selected)`]:{color:Gt}},[`&${We}-item:active`]:{background:wn}},[`${We}-item a`]:{"&, &:hover":{color:"inherit"}},[`${We}-item-selected`]:{color:mt,[`&${We}-item-danger`]:{color:nn},"a, a:hover":{color:"inherit"}},[`& ${We}-item-selected`]:{backgroundColor:xt,[`&${We}-item-danger`]:{backgroundColor:Gn}},[`&${We}-submenu > ${We}`]:{backgroundColor:Ar},[`&${We}-popup > ${We}`]:{backgroundColor:Er},[`&${We}-submenu-popup > ${We}`]:{backgroundColor:Er},[`&${We}-horizontal`]:Object.assign(Object.assign({},Be==="dark"?{borderBottom:0}:{}),{[`> ${We}-item, > ${We}-submenu`]:{top:Wt,marginTop:le.calc(Wt).mul(-1).equal(),marginBottom:0,borderRadius:Hn,"&::after":{position:"absolute",insetInline:zn,bottom:0,borderBottom:`${(0,Je.unit)(lt)} solid transparent`,transition:`border-color ${gn} ${an}`,content:'""'},"&:hover, &-active, &-open":{background:Jn,"&::after":{borderBottomWidth:lt,borderBottomColor:Ir}},"&-selected":{color:Ir,backgroundColor:jn,"&:hover":{backgroundColor:jn},"&::after":{borderBottomWidth:lt,borderBottomColor:Ir}}}}),[`&${We}-root`]:{[`&${We}-inline, &${We}-vertical`]:{borderInlineEnd:`${(0,Je.unit)(Wt)} ${sn} ${_n}`}},[`&${We}-inline`]:{[`${We}-sub${We}-inline`]:{background:Qt},[`${We}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Je.unit)(Vt)} solid ${mt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Fn} ${en}`,`opacity ${Fn} ${en}`].join(","),content:'""'},[`&${We}-item-danger`]:{"&::after":{borderInlineEndColor:nn}}},[`${We}-selected, ${We}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Fn} ${an}`,`opacity ${Fn} ${an}`].join(",")}}}}}};const De=le=>{const{componentCls:Be,itemHeight:We,itemMarginInline:st,padding:mt,menuArrowSize:vt,marginXS:St,itemMarginBlock:_t,itemWidth:Qt,itemPaddingInline:xt}=le,lt=le.calc(vt).add(mt).add(St).equal();return{[`${Be}-item`]:{position:"relative",overflow:"hidden"},[`${Be}-item, ${Be}-submenu-title`]:{height:We,lineHeight:(0,Je.unit)(We),paddingInline:xt,overflow:"hidden",textOverflow:"ellipsis",marginInline:st,marginBlock:_t,width:Qt},[`> ${Be}-item,
|
|
|
> ${Be}-submenu > ${Be}-submenu-title`]:{height:We,lineHeight:(0,Je.unit)(We)},[`${Be}-item-group-list ${Be}-submenu-title,
|
|
|
${Be}-submenu-title`]:{paddingInlineEnd:lt}}};var Zt=le=>{const{componentCls:Be,iconCls:We,itemHeight:st,colorTextLightSolid:mt,dropdownWidth:vt,controlHeightLG:St,motionEaseOut:_t,paddingXL:Qt,itemMarginInline:xt,fontSizeLG:lt,motionDurationFast:Vt,motionDurationSlow:Wt,paddingXS:gn,boxShadowSecondary:an,collapsedWidth:en,collapsedIconSize:zn}=le,Fn={height:st,lineHeight:(0,Je.unit)(st),listStylePosition:"inside",listStyleType:"disc"};return[{[Be]:{"&-inline, &-vertical":Object.assign({[`&${Be}-root`]:{boxShadow:"none"}},De(le))},[`${Be}-submenu-popup`]:{[`${Be}-vertical`]:Object.assign(Object.assign({},De(le)),{boxShadow:an})}},{[`${Be}-submenu-popup ${Be}-vertical${Be}-sub`]:{minWidth:vt,maxHeight:`calc(100vh - ${(0,Je.unit)(le.calc(St).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Be}-inline`]:{width:"100%",[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Wt}`,`background ${Wt}`,`padding ${Vt} ${_t}`].join(","),[`> ${Be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Be}-sub${Be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Be}-submenu > ${Be}-submenu-title`]:Fn,[`& ${Be}-item-group-title`]:{paddingInlineStart:Qt}},[`${Be}-item`]:Fn}},{[`${Be}-inline-collapsed`]:{width:en,[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu ${Be}-submenu-title`]:{[`> ${Be}-inline-collapsed-noicon`]:{fontSize:lt,textAlign:"center"}}},[`> ${Be}-item,
|
|
|
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-item,
|
|
|
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-submenu > ${Be}-submenu-title,
|
|
|
> ${Be}-submenu > ${Be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Je.unit)(le.calc(zn).div(2).equal())} - ${(0,Je.unit)(xt)})`,textOverflow:"clip",[`
|
|
|
${Be}-submenu-arrow,
|
|
|
${Be}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Be}-item-icon, ${We}`]:{margin:0,fontSize:zn,lineHeight:(0,Je.unit)(st),"+ span":{display:"inline-block",opacity:0}}},[`${Be}-item-icon, ${We}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Be}-item-icon, ${We}`]:{display:"none"},"a, a:hover":{color:mt}},[`${Be}-item-group-title`]:Object.assign(Object.assign({},ct.vS),{paddingInline:gn})}}]};const Kt=le=>{const{componentCls:Be,motionDurationSlow:We,motionDurationMid:st,motionEaseInOut:mt,motionEaseOut:vt,iconCls:St,iconSize:_t,iconMarginInlineEnd:Qt}=le;return{[`${Be}-item, ${Be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${We}`,`background ${We}`,`padding calc(${We} + 0.1s) ${mt}`].join(","),[`${Be}-item-icon, ${St}`]:{minWidth:_t,fontSize:_t,transition:[`font-size ${st} ${vt}`,`margin ${We} ${mt}`,`color ${We}`].join(","),"+ span":{marginInlineStart:Qt,opacity:1,transition:[`opacity ${We} ${mt}`,`margin ${We}`,`color ${We}`].join(",")}},[`${Be}-item-icon`]:Object.assign({},(0,ct.Ro)()),[`&${Be}-item-only-child`]:{[`> ${St}, > ${Be}-item-icon`]:{marginInlineEnd:0}}},[`${Be}-item-disabled, ${Be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${Be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tt=le=>{const{componentCls:Be,motionDurationSlow:We,motionEaseInOut:st,borderRadius:mt,menuArrowSize:vt,menuArrowOffset:St}=le;return{[`${Be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:le.margin,width:vt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${We} ${st}, opacity ${We}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:le.calc(vt).mul(.6).equal(),height:le.calc(vt).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:mt,transition:[`background ${We} ${st}`,`transform ${We} ${st}`,`top ${We} ${st}`,`color ${We} ${st}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Je.unit)(le.calc(St).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Je.unit)(St)})`}}}}},Dt=le=>{const{antCls:Be,componentCls:We,fontSize:st,motionDurationSlow:mt,motionDurationMid:vt,motionEaseInOut:St,paddingXS:_t,padding:Qt,colorSplit:xt,lineWidth:lt,zIndexPopup:Vt,borderRadiusLG:Wt,subMenuItemBorderRadius:gn,menuArrowSize:an,menuArrowOffset:en,lineType:zn,groupTitleLineHeight:Fn,groupTitleFontSize:Rt}=le;return[{"":{[We]:Object.assign(Object.assign({},(0,ct.dF)()),{"&-hidden":{display:"none"}})},[`${We}-submenu-hidden`]:{display:"none"}},{[We]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(le)),(0,ct.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:st,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${mt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${We}-item`]:{flex:"none"}},[`${We}-item, ${We}-submenu, ${We}-submenu-title`]:{borderRadius:le.itemBorderRadius},[`${We}-item-group-title`]:{padding:`${(0,Je.unit)(_t)} ${(0,Je.unit)(Qt)}`,fontSize:Rt,lineHeight:Fn,transition:`all ${mt}`},[`&-horizontal ${We}-submenu`]:{transition:[`border-color ${mt} ${St}`,`background ${mt} ${St}`].join(",")},[`${We}-submenu, ${We}-submenu-inline`]:{transition:[`border-color ${mt} ${St}`,`background ${mt} ${St}`,`padding ${vt} ${St}`].join(",")},[`${We}-submenu ${We}-sub`]:{cursor:"initial",transition:[`background ${mt} ${St}`,`padding ${mt} ${St}`].join(",")},[`${We}-title-content`]:{transition:`color ${mt}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${Be}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${We}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:le.padding}},[`${We}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${We}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xt,borderStyle:zn,borderWidth:0,borderTopWidth:lt,marginBlock:lt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Kt(le)),{[`${We}-item-group`]:{[`${We}-item-group-list`]:{margin:0,padding:0,[`${We}-item, ${We}-submenu-title`]:{paddingInline:`${(0,Je.unit)(le.calc(st).mul(2).equal())} ${(0,Je.unit)(Qt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Vt,borderRadius:Wt,boxShadow:"none",transformOrigin:"0 0",[`&${We}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${We}`]:Object.assign(Object.assign(Object.assign({borderRadius:Wt},Kt(le)),tt(le)),{[`${We}-item, ${We}-submenu > ${We}-submenu-title`]:{borderRadius:gn},[`${We}-submenu-title::after`]:{transition:`transform ${mt} ${St}`}})},"\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:le.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:le.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:le.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:le.paddingXS}}}),tt(le)),{[`&-inline-collapsed ${We}-submenu-arrow,
|
|
|
&-inline ${We}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Je.unit)(en)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Je.unit)(le.calc(en).mul(-1).equal())})`}},[`${We}-submenu-open${We}-submenu-inline > ${We}-submenu-title > ${We}-submenu-arrow`]:{transform:`translateY(${(0,Je.unit)(le.calc(an).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Je.unit)(le.calc(en).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Je.unit)(en)})`}}})},{[`${Be}-layout-header`]:{[We]:{lineHeight:"inherit"}}}]},jt=le=>{var Be,We,st;const{colorPrimary:mt,colorError:vt,colorTextDisabled:St,colorErrorBg:_t,colorText:Qt,colorTextDescription:xt,colorBgContainer:lt,colorFillAlter:Vt,colorFillContent:Wt,lineWidth:gn,lineWidthBold:an,controlItemBgActive:en,colorBgTextHover:zn,controlHeightLG:Fn,lineHeight:Rt,colorBgElevated:sn,marginXXS:_n,padding:Wn,fontSize:Lt,controlHeightSM:Gt,fontSizeLG:nn,colorTextLightSolid:wn,colorErrorHover:Gn}=le,Er=(Be=le.activeBarWidth)!==null&&Be!==void 0?Be:0,ti=(We=le.activeBarBorderWidth)!==null&&We!==void 0?We:gn,oi=(st=le.itemMarginInline)!==null&&st!==void 0?st:le.marginXXS,Ar=new Ve.FastColor(wn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:Qt,itemColor:Qt,colorItemTextHover:Qt,itemHoverColor:Qt,colorItemTextHoverHorizontal:mt,horizontalItemHoverColor:mt,colorGroupTitle:xt,groupTitleColor:xt,colorItemTextSelected:mt,itemSelectedColor:mt,subMenuItemSelectedColor:mt,colorItemTextSelectedHorizontal:mt,horizontalItemSelectedColor:mt,colorItemBg:lt,itemBg:lt,colorItemBgHover:zn,itemHoverBg:zn,colorItemBgActive:Wt,itemActiveBg:en,colorSubItemBg:Vt,subMenuItemBg:Vt,colorItemBgSelected:en,itemSelectedBg:en,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Er,colorActiveBarHeight:an,activeBarHeight:an,colorActiveBarBorderSize:gn,activeBarBorderWidth:ti,colorItemTextDisabled:St,itemDisabledColor:St,colorDangerItemText:vt,dangerItemColor:vt,colorDangerItemTextHover:vt,dangerItemHoverColor:vt,colorDangerItemTextSelected:vt,dangerItemSelectedColor:vt,colorDangerItemBgActive:_t,dangerItemActiveBg:_t,colorDangerItemBgSelected:_t,dangerItemSelectedBg:_t,itemMarginInline:oi,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Fn,groupTitleLineHeight:Rt,collapsedWidth:Fn*2,popupBg:sn,itemMarginBlock:_n,itemPaddingInline:Wn,horizontalLineHeight:`${Fn*1.15}px`,iconSize:Lt,iconMarginInlineEnd:Gt-Lt,collapsedIconSize:nn,groupTitleFontSize:Lt,darkItemDisabledColor:new Ve.FastColor(wn).setA(.25).toRgbString(),darkItemColor:Ar,darkDangerItemColor:vt,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:wn,darkItemSelectedBg:mt,darkDangerItemSelectedBg:vt,darkItemHoverBg:"transparent",darkGroupTitleColor:Ar,darkItemHoverColor:wn,darkDangerItemHoverColor:Gn,darkDangerItemSelectedColor:wn,darkDangerItemActiveBg:vt,itemWidth:Er?`calc(100% + ${ti}px)`:`calc(100% - ${oi*2}px)`}};var An=function(le){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le,We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,He.I$)("Menu",mt=>{const{colorBgElevated:vt,controlHeightLG:St,fontSize:_t,darkItemColor:Qt,darkDangerItemColor:xt,darkItemBg:lt,darkSubMenuItemBg:Vt,darkItemSelectedColor:Wt,darkItemSelectedBg:gn,darkDangerItemSelectedBg:an,darkItemHoverBg:en,darkGroupTitleColor:zn,darkItemHoverColor:Fn,darkItemDisabledColor:Rt,darkDangerItemHoverColor:sn,darkDangerItemSelectedColor:_n,darkDangerItemActiveBg:Wn,popupBg:Lt,darkPopupBg:Gt}=mt,nn=mt.calc(_t).div(7).mul(5).equal(),wn=(0,ht.mergeToken)(mt,{menuArrowSize:nn,menuHorizontalHeight:mt.calc(St).mul(1.15).equal(),menuArrowOffset:mt.calc(nn).mul(.25).equal(),menuSubMenuBg:vt,calc:mt.calc,popupBg:Lt}),Gn=(0,ht.mergeToken)(wn,{itemColor:Qt,itemHoverColor:Fn,groupTitleColor:zn,itemSelectedColor:Wt,subMenuItemSelectedColor:Wt,itemBg:lt,popupBg:Gt,subMenuItemBg:Vt,itemActiveBg:"transparent",itemSelectedBg:gn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:en,itemDisabledColor:Rt,dangerItemColor:xt,dangerItemHoverColor:sn,dangerItemSelectedColor:_n,dangerItemActiveBg:Wn,dangerItemSelectedBg:an,menuSubMenuBg:Vt,horizontalItemSelectedColor:Wt,horizontalItemSelectedBg:gn});return[Dt(wn),Re(wn),Zt(wn),Ze(wn,"light"),Ze(Gn,"dark"),it(wn),(0,ot.Z)(wn),(0,pt.oN)(wn,"slide-up"),(0,pt.oN)(wn,"slide-down"),(0,Ct._y)(wn,"zoom-big")]},jt,{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"]],injectStyle:We,unitless:{groupTitleLineHeight:!0}})(le,Be)},kt=ae(75030),Pt=le=>{var Be;const{popupClassName:We,icon:st,title:mt,theme:vt}=le,St=x.useContext(Se),{prefixCls:_t,inlineCollapsed:Qt,theme:xt}=St,lt=(0,dt.Xl)();let Vt;if(!st)Vt=Qt&&!lt.length&&mt&&typeof mt=="string"?x.createElement("div",{className:`${_t}-inline-collapsed-noicon`},mt.charAt(0)):x.createElement("span",{className:`${_t}-title-content`},mt);else{const an=x.isValidElement(mt)&&mt.type==="span";Vt=x.createElement(x.Fragment,null,(0,oe.Tm)(st,{className:Ie()(x.isValidElement(st)?(Be=st.props)===null||Be===void 0?void 0:Be.className:"",`${_t}-item-icon`)}),an?mt:x.createElement("span",{className:`${_t}-title-content`},mt))}const Wt=x.useMemo(()=>Object.assign(Object.assign({},St),{firstLevel:!1}),[St]),[gn]=(0,kt.Cn)("Menu");return x.createElement(Se.Provider,{value:Wt},x.createElement(dt.Wd,Object.assign({},(0,he.Z)(le,["icon"]),{title:Vt,popupClassName:Ie()(_t,We,`${_t}-${vt||xt}`),popupStyle:Object.assign({zIndex:gn},le.popupStyle)})))},En=function(le,Be){var We={};for(var st in le)Object.prototype.hasOwnProperty.call(le,st)&&Be.indexOf(st)<0&&(We[st]=le[st]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,st=Object.getOwnPropertySymbols(le);mt<st.length;mt++)Be.indexOf(st[mt])<0&&Object.prototype.propertyIsEnumerable.call(le,st[mt])&&(We[st[mt]]=le[st[mt]]);return We};function on(le){return le===null||le===!1}const de={item:Qe,submenu:Pt,divider:Ce};var ie=(0,x.forwardRef)((le,Be)=>{var We;const st=x.useContext(je.Z),mt=st||{},{getPrefixCls:vt,getPopupContainer:St,direction:_t,menu:Qt}=x.useContext(Oe.E_),xt=vt(),{prefixCls:lt,className:Vt,style:Wt,theme:gn="light",expandIcon:an,_internalDisableMenuItemTitleTooltip:en,inlineCollapsed:zn,siderCollapsed:Fn,rootClassName:Rt,mode:sn,selectable:_n,onClick:Wn,overflowedIndicatorPopupClassName:Lt}=le,Gt=En(le,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),nn=(0,he.Z)(Gt,["collapsedWidth"]);(We=mt.validator)===null||We===void 0||We.call(mt,{mode:sn});const wn=(0,Ue.Z)(function(){var Br;Wn==null||Wn.apply(void 0,arguments),(Br=mt.onClick)===null||Br===void 0||Br.call(mt)}),Gn=mt.mode||sn,Er=_n!=null?_n:mt.selectable,ti=zn!=null?zn:Fn,oi={horizontal:{motionName:`${xt}-slide-up`},inline:(0,xe.Z)(xt),other:{motionName:`${xt}-zoom-big`}},Ar=vt("menu",lt||mt.prefixCls),Ir=(0,ve.Z)(Ar),[jn,Hn,Jn]=An(Ar,Ir,!st),lr=Ie()(`${Ar}-${gn}`,Qt==null?void 0:Qt.className,Vt),$n=x.useMemo(()=>{var Br,_r;if(typeof an=="function"||on(an))return an||null;if(typeof mt.expandIcon=="function"||on(mt.expandIcon))return mt.expandIcon||null;if(typeof(Qt==null?void 0:Qt.expandIcon)=="function"||on(Qt==null?void 0:Qt.expandIcon))return(Qt==null?void 0:Qt.expandIcon)||null;const mi=(Br=an!=null?an:mt==null?void 0:mt.expandIcon)!==null&&Br!==void 0?Br:Qt==null?void 0:Qt.expandIcon;return(0,oe.Tm)(mi,{className:Ie()(`${Ar}-submenu-expand-icon`,x.isValidElement(mi)?(_r=mi.props)===null||_r===void 0?void 0:_r.className:void 0)})},[an,mt==null?void 0:mt.expandIcon,Qt==null?void 0:Qt.expandIcon,Ar]),br=x.useMemo(()=>({prefixCls:Ar,inlineCollapsed:ti||!1,direction:_t,firstLevel:!0,theme:gn,mode:Gn,disableMenuItemTitleTooltip:en}),[Ar,ti,_t,en,gn]);return jn(x.createElement(je.Z.Provider,{value:null},x.createElement(Se.Provider,{value:br},x.createElement(dt.ZP,Object.assign({getPopupContainer:St,overflowedIndicator:x.createElement(qe.Z,null),overflowedIndicatorPopupClassName:Ie()(Ar,`${Ar}-${gn}`,Lt),mode:Gn,selectable:Er,onClick:wn},nn,{inlineCollapsed:ti,style:Object.assign(Object.assign({},Qt==null?void 0:Qt.style),Wt),className:lr,prefixCls:Ar,direction:_t,defaultMotions:oi,expandIcon:$n,ref:Be,rootClassName:Ie()(Rt,Hn,mt.rootClassName,Jn,Ir),_internalComponents:de})))))});const ee=(0,x.forwardRef)((le,Be)=>{const We=(0,x.useRef)(null),st=x.useContext(Le.D);return(0,x.useImperativeHandle)(Be,()=>({menu:We.current,focus:mt=>{var vt;(vt=We.current)===null||vt===void 0||vt.focus(mt)}})),x.createElement(ie,Object.assign({ref:We},le,st))});ee.Item=Qe,ee.SubMenu=Pt,ee.Divider=Ce,ee.ItemGroup=dt.BW;var se=ee},31709:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Qt}});var x=ae(59301),dt=ae(60499),Le={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"},qe=Le,ze=ae(7657),Ie=function(lt,Vt){return x.createElement(ze.Z,(0,dt.Z)({},lt,{ref:Vt,icon:qe}))},Ue=x.forwardRef(Ie),he=Ue,xe=ae(49198),oe=ae(33853),Oe=ae(38819),ve=ae(92310),Me=ae.n(ve),Se=ae(18642),Te=ae(43749),we=ae(85899),Ce=ae(72190),Ee=ae(18929),ke=ae(10228),Ke=ae(26112),Qe=ae(48736),je=ae(17119),Je=[10,20,50,100],Ve=function(lt){var Vt=lt.pageSizeOptions,Wt=Vt===void 0?Je:Vt,gn=lt.locale,an=lt.changeSize,en=lt.pageSize,zn=lt.goButton,Fn=lt.quickGo,Rt=lt.rootPrefixCls,sn=lt.disabled,_n=lt.buildOptionText,Wn=lt.showSizeChanger,Lt=lt.sizeChangerRender,Gt=x.useState(""),nn=(0,Ce.Z)(Gt,2),wn=nn[0],Gn=nn[1],Er=function(){return!wn||Number.isNaN(wn)?void 0:Number(wn)},ti=typeof _n=="function"?_n:function(br){return"".concat(br," ").concat(gn.items_per_page)},oi=function(Br){Gn(Br.target.value)},Ar=function(Br){zn||wn===""||(Gn(""),!(Br.relatedTarget&&(Br.relatedTarget.className.indexOf("".concat(Rt,"-item-link"))>=0||Br.relatedTarget.className.indexOf("".concat(Rt,"-item"))>=0))&&(Fn==null||Fn(Er())))},Ir=function(Br){wn!==""&&(Br.keyCode===ke.Z.ENTER||Br.type==="click")&&(Gn(""),Fn==null||Fn(Er()))},jn=function(){return Wt.some(function(Br){return Br.toString()===en.toString()})?Wt:Wt.concat([en]).sort(function(Br,_r){var mi=Number.isNaN(Number(Br))?0:Number(Br),di=Number.isNaN(Number(_r))?0:Number(_r);return mi-di})},Hn="".concat(Rt,"-options");if(!Wn&&!Fn)return null;var Jn=null,lr=null,$n=null;return Wn&&Lt&&(Jn=Lt({disabled:sn,size:en,onSizeChange:function(Br){an==null||an(Number(Br))},"aria-label":gn.page_size,className:"".concat(Hn,"-size-changer"),options:jn().map(function(br){return{label:ti(br),value:br}})})),Fn&&(zn&&($n=typeof zn=="boolean"?x.createElement("button",{type:"button",onClick:Ir,onKeyUp:Ir,disabled:sn,className:"".concat(Hn,"-quick-jumper-button")},gn.jump_to_confirm):x.createElement("span",{onClick:Ir,onKeyUp:Ir},zn)),lr=x.createElement("div",{className:"".concat(Hn,"-quick-jumper")},gn.jump_to,x.createElement("input",{disabled:sn,type:"text",value:wn,onChange:oi,onKeyUp:Ir,onBlur:Ar,"aria-label":gn.page}),gn.page,$n)),x.createElement("li",{className:Hn},Jn,lr)},ct=Ve,ot=function(lt){var Vt=lt.rootPrefixCls,Wt=lt.page,gn=lt.active,an=lt.className,en=lt.showTitle,zn=lt.onClick,Fn=lt.onKeyPress,Rt=lt.itemRender,sn="".concat(Vt,"-item"),_n=Me()(sn,"".concat(sn,"-").concat(Wt),(0,Se.Z)((0,Se.Z)({},"".concat(sn,"-active"),gn),"".concat(sn,"-disabled"),!Wt),an),Wn=function(){zn(Wt)},Lt=function(wn){Fn(wn,zn,Wt)},Gt=Rt(Wt,"page",x.createElement("a",{rel:"nofollow"},Wt));return Gt?x.createElement("li",{title:en?String(Wt):null,className:_n,onClick:Wn,onKeyDown:Lt,tabIndex:0},Gt):null},pt=ot,Ct=function(lt,Vt,Wt){return Wt};function He(){}function ht(xt){var lt=Number(xt);return typeof lt=="number"&&!Number.isNaN(lt)&&isFinite(lt)&&Math.floor(lt)===lt}function _e(xt,lt,Vt){var Wt=typeof xt=="undefined"?lt:xt;return Math.floor((Vt-1)/Wt)+1}var Re=function(lt){var Vt=lt.prefixCls,Wt=Vt===void 0?"rc-pagination":Vt,gn=lt.selectPrefixCls,an=gn===void 0?"rc-select":gn,en=lt.className,zn=lt.current,Fn=lt.defaultCurrent,Rt=Fn===void 0?1:Fn,sn=lt.total,_n=sn===void 0?0:sn,Wn=lt.pageSize,Lt=lt.defaultPageSize,Gt=Lt===void 0?10:Lt,nn=lt.onChange,wn=nn===void 0?He:nn,Gn=lt.hideOnSinglePage,Er=lt.align,ti=lt.showPrevNextJumpers,oi=ti===void 0?!0:ti,Ar=lt.showQuickJumper,Ir=lt.showLessItems,jn=lt.showTitle,Hn=jn===void 0?!0:jn,Jn=lt.onShowSizeChange,lr=Jn===void 0?He:Jn,$n=lt.locale,br=$n===void 0?je.Z:$n,Br=lt.style,_r=lt.totalBoundaryShowSizeChanger,mi=_r===void 0?50:_r,di=lt.disabled,fi=lt.simple,Ti=lt.showTotal,xi=lt.showSizeChanger,io=xi===void 0?_n>mi:xi,Xi=lt.sizeChangerRender,ur=lt.pageSizeOptions,Tr=lt.itemRender,gi=Tr===void 0?Ct:Tr,ni=lt.jumpPrevIcon,gt=lt.jumpNextIcon,vn=lt.prevIcon,Ut=lt.nextIcon,dn=x.useRef(null),$t=(0,Ee.Z)(10,{value:Wn,defaultValue:Gt}),hn=(0,Ce.Z)($t,2),Nn=hn[0],Hr=hn[1],zr=(0,Ee.Z)(1,{value:zn,defaultValue:Rt,postState:function(Fo){return Math.max(1,Math.min(Fo,_e(void 0,Nn,_n)))}}),Ai=(0,Ce.Z)(zr,2),hr=Ai[0],nr=Ai[1],ir=x.useState(hr),Yr=(0,Ce.Z)(ir,2),Mi=Yr[0],Yn=Yr[1];(0,x.useEffect)(function(){Yn(hr)},[hr]);var Vn=wn!==He,Mr="current"in lt,Tn=Math.max(1,hr-(Ir?3:5)),mn=Math.min(_e(void 0,Nn,_n),hr+(Ir?3:5));function tr(_o,Fo){var Ea=_o||x.createElement("button",{type:"button","aria-label":Fo,className:"".concat(Wt,"-item-link")});return typeof _o=="function"&&(Ea=x.createElement(_o,(0,we.Z)({},lt))),Ea}function or(_o){var Fo=_o.target.value,Ea=_e(void 0,Nn,_n),us;return Fo===""?us=Fo:Number.isNaN(Number(Fo))?us=Mi:Fo>=Ea?us=Ea:us=Number(Fo),us}function ar(_o){return ht(_o)&&_o!==hr&&ht(_n)&&_n>0}var kr=_n>Nn?Ar:!1;function vi(_o){(_o.keyCode===ke.Z.UP||_o.keyCode===ke.Z.DOWN)&&_o.preventDefault()}function qr(_o){var Fo=or(_o);switch(Fo!==Mi&&Yn(Fo),_o.keyCode){case ke.Z.ENTER:ri(Fo);break;case ke.Z.UP:ri(Fo-1);break;case ke.Z.DOWN:ri(Fo+1);break;default:break}}function Li(_o){ri(or(_o))}function _i(_o){var Fo=_e(_o,Nn,_n),Ea=hr>Fo&&Fo!==0?Fo:hr;Hr(_o),Yn(Ea),lr==null||lr(hr,_o),nr(Ea),wn==null||wn(Ea,_o)}function ri(_o){if(ar(_o)&&!di){var Fo=_e(void 0,Nn,_n),Ea=_o;return _o>Fo?Ea=Fo:_o<1&&(Ea=1),Ea!==Mi&&Yn(Ea),nr(Ea),wn==null||wn(Ea,Nn),Ea}return hr}var hi=hr>1,ro=hr<_e(void 0,Nn,_n);function ki(){hi&&ri(hr-1)}function bi(){ro&&ri(hr+1)}function Ni(){ri(Tn)}function oo(){ri(mn)}function Di(_o,Fo){if(_o.key==="Enter"||_o.charCode===ke.Z.ENTER||_o.keyCode===ke.Z.ENTER){for(var Ea=arguments.length,us=new Array(Ea>2?Ea-2:0),sl=2;sl<Ea;sl++)us[sl-2]=arguments[sl];Fo.apply(void 0,us)}}function yo(_o){Di(_o,ki)}function Ji(_o){Di(_o,bi)}function po(_o){Di(_o,Ni)}function ho(_o){Di(_o,oo)}function Jo(_o){var Fo=gi(_o,"prev",tr(vn,"prev page"));return x.isValidElement(Fo)?x.cloneElement(Fo,{disabled:!hi}):Fo}function xo(_o){var Fo=gi(_o,"next",tr(Ut,"next page"));return x.isValidElement(Fo)?x.cloneElement(Fo,{disabled:!ro}):Fo}function no(_o){(_o.type==="click"||_o.keyCode===ke.Z.ENTER)&&ri(Mi)}var Do=null,Zo=(0,Ke.Z)(lt,{aria:!0,data:!0}),jo=Ti&&x.createElement("li",{className:"".concat(Wt,"-total-text")},Ti(_n,[_n===0?0:(hr-1)*Nn+1,hr*Nn>_n?_n:hr*Nn])),Cn=null,Vi=_e(void 0,Nn,_n);if(Gn&&_n<=Nn)return null;var Ur=[],Vr={rootPrefixCls:Wt,onClick:ri,onKeyPress:Di,showTitle:Hn,itemRender:gi,page:-1},ci=hr-1>0?hr-1:0,Zr=hr+1<Vi?hr+1:Vi,Qi=Ar&&Ar.goButton,eo=(0,Te.Z)(fi)==="object"?fi.readOnly:!fi,Rr=Qi,ai=null;fi&&(Qi&&(typeof Qi=="boolean"?Rr=x.createElement("button",{type:"button",onClick:no,onKeyUp:no},br.jump_to_confirm):Rr=x.createElement("span",{onClick:no,onKeyUp:no},Qi),Rr=x.createElement("li",{title:Hn?"".concat(br.jump_to).concat(hr,"/").concat(Vi):null,className:"".concat(Wt,"-simple-pager")},Rr)),ai=x.createElement("li",{title:Hn?"".concat(hr,"/").concat(Vi):null,className:"".concat(Wt,"-simple-pager")},eo?Mi:x.createElement("input",{type:"text","aria-label":br.jump_to,value:Mi,disabled:di,onKeyDown:vi,onKeyUp:qr,onChange:qr,onBlur:Li,size:3}),x.createElement("span",{className:"".concat(Wt,"-slash")},"/"),Vi));var Fi=Ir?1:2;if(Vi<=3+Fi*2){Vi||Ur.push(x.createElement(pt,(0,dt.Z)({},Vr,{key:"noPager",page:1,className:"".concat(Wt,"-item-disabled")})));for(var Ri=1;Ri<=Vi;Ri+=1)Ur.push(x.createElement(pt,(0,dt.Z)({},Vr,{key:Ri,page:Ri,active:hr===Ri})))}else{var Mo=Ir?br.prev_3:br.prev_5,ui=Ir?br.next_3:br.next_5,Zi=gi(Tn,"jump-prev",tr(ni,"prev page")),Wo=gi(mn,"jump-next",tr(gt,"next page"));oi&&(Do=Zi?x.createElement("li",{title:Hn?Mo:null,key:"prev",onClick:Ni,tabIndex:0,onKeyDown:po,className:Me()("".concat(Wt,"-jump-prev"),(0,Se.Z)({},"".concat(Wt,"-jump-prev-custom-icon"),!!ni))},Zi):null,Cn=Wo?x.createElement("li",{title:Hn?ui:null,key:"next",onClick:oo,tabIndex:0,onKeyDown:ho,className:Me()("".concat(Wt,"-jump-next"),(0,Se.Z)({},"".concat(Wt,"-jump-next-custom-icon"),!!gt))},Wo):null);var Xo=Math.max(1,hr-Fi),ra=Math.min(hr+Fi,Vi);hr-1<=Fi&&(ra=1+Fi*2),Vi-hr<=Fi&&(Xo=Vi-Fi*2);for(var Qo=Xo;Qo<=ra;Qo+=1)Ur.push(x.createElement(pt,(0,dt.Z)({},Vr,{key:Qo,page:Qo,active:hr===Qo})));if(hr-1>=Fi*2&&hr!==3&&(Ur[0]=x.cloneElement(Ur[0],{className:Me()("".concat(Wt,"-item-after-jump-prev"),Ur[0].props.className)}),Ur.unshift(Do)),Vi-hr>=Fi*2&&hr!==Vi-2){var qo=Ur[Ur.length-1];Ur[Ur.length-1]=x.cloneElement(qo,{className:Me()("".concat(Wt,"-item-before-jump-next"),qo.props.className)}),Ur.push(Cn)}Xo!==1&&Ur.unshift(x.createElement(pt,(0,dt.Z)({},Vr,{key:1,page:1}))),ra!==Vi&&Ur.push(x.createElement(pt,(0,dt.Z)({},Vr,{key:Vi,page:Vi})))}var Yo=Jo(ci);if(Yo){var Ba=!hi||!Vi;Yo=x.createElement("li",{title:Hn?br.prev_page:null,onClick:ki,tabIndex:Ba?null:0,onKeyDown:yo,className:Me()("".concat(Wt,"-prev"),(0,Se.Z)({},"".concat(Wt,"-disabled"),Ba)),"aria-disabled":Ba},Yo)}var ls=xo(Zr);if(ls){var Ma,Na;fi?(Ma=!ro,Na=hi?0:null):(Ma=!ro||!Vi,Na=Ma?null:0),ls=x.createElement("li",{title:Hn?br.next_page:null,onClick:bi,tabIndex:Na,onKeyDown:Ji,className:Me()("".concat(Wt,"-next"),(0,Se.Z)({},"".concat(Wt,"-disabled"),Ma)),"aria-disabled":Ma},ls)}var $a=Me()(Wt,en,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(Wt,"-start"),Er==="start"),"".concat(Wt,"-center"),Er==="center"),"".concat(Wt,"-end"),Er==="end"),"".concat(Wt,"-simple"),fi),"".concat(Wt,"-disabled"),di));return x.createElement("ul",(0,dt.Z)({className:$a,style:Br,ref:dn},Zo),jo,Yo,fi?ai:Ur,ls,x.createElement(ct,{locale:br,rootPrefixCls:Wt,disabled:di,selectPrefixCls:an,changeSize:_i,pageSize:Nn,pageSizeOptions:ur,quickGo:kr?ri:null,goButton:Rr,showSizeChanger:io,sizeChangerRender:Xi}))},Ot=Re,it=ae(61852),at=ae(48755),Et=ae(31756),Ze=ae(13783),De=ae(9017),ut=ae(82326),Zt=ae(57700),Kt=ae(36237),tt=ae(53075),Dt=ae(64910),jt=ae(39082),An=ae(63356),kt=ae(51636),pn=ae(16931);const Pt=xt=>{const{componentCls:lt}=xt;return{[`${lt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${lt}-item-link`]:{color:xt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${lt}-item-link`]:{color:xt.colorTextDisabled,cursor:"not-allowed"}}},[`&${lt}-disabled`]:{cursor:"not-allowed",[`${lt}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:xt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:xt.colorBorder,backgroundColor:xt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:xt.itemActiveBgDisabled},a:{color:xt.itemActiveColorDisabled}}},[`${lt}-item-link`]:{color:xt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${lt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${lt}-simple-pager`]:{color:xt.colorTextDisabled},[`${lt}-jump-prev, ${lt}-jump-next`]:{[`${lt}-item-link-icon`]:{opacity:0},[`${lt}-item-ellipsis`]:{opacity:1}}},[`&${lt}-simple`]:{[`${lt}-prev, ${lt}-next`]:{[`&${lt}-disabled ${lt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},En=xt=>{const{componentCls:lt}=xt;return{[`&${lt}-mini ${lt}-total-text, &${lt}-mini ${lt}-simple-pager`]:{height:xt.itemSizeSM,lineHeight:(0,Kt.unit)(xt.itemSizeSM)},[`&${lt}-mini ${lt}-item`]:{minWidth:xt.itemSizeSM,height:xt.itemSizeSM,margin:0,lineHeight:(0,Kt.unit)(xt.calc(xt.itemSizeSM).sub(2).equal())},[`&${lt}-mini ${lt}-prev, &${lt}-mini ${lt}-next`]:{minWidth:xt.itemSizeSM,height:xt.itemSizeSM,margin:0,lineHeight:(0,Kt.unit)(xt.itemSizeSM)},[`&${lt}-mini:not(${lt}-disabled)`]:{[`${lt}-prev, ${lt}-next`]:{[`&:hover ${lt}-item-link`]:{backgroundColor:xt.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:xt.colorBgTextActive},[`&${lt}-disabled:hover ${lt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${lt}-mini ${lt}-prev ${lt}-item-link,
|
|
|
&${lt}-mini ${lt}-next ${lt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:xt.itemSizeSM,lineHeight:(0,Kt.unit)(xt.itemSizeSM)}},[`&${lt}-mini ${lt}-jump-prev, &${lt}-mini ${lt}-jump-next`]:{height:xt.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Kt.unit)(xt.itemSizeSM)},[`&${lt}-mini ${lt}-options`]:{marginInlineStart:xt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:xt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:xt.itemSizeSM,lineHeight:(0,Kt.unit)(xt.itemSizeSM),input:Object.assign(Object.assign({},(0,tt.x0)(xt)),{width:xt.paginationMiniQuickJumperInputWidth,height:xt.controlHeightSM})}}}},on=xt=>{const{componentCls:lt}=xt;return{[`
|
|
|
&${lt}-simple ${lt}-prev,
|
|
|
&${lt}-simple ${lt}-next
|
|
|
`]:{height:xt.itemSizeSM,lineHeight:(0,Kt.unit)(xt.itemSizeSM),verticalAlign:"top",[`${lt}-item-link`]:{height:xt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:xt.colorBgTextHover},"&:active":{backgroundColor:xt.colorBgTextActive},"&::after":{height:xt.itemSizeSM,lineHeight:(0,Kt.unit)(xt.itemSizeSM)}}},[`&${lt}-simple ${lt}-simple-pager`]:{display:"inline-block",height:xt.itemSizeSM,marginInlineEnd:xt.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Kt.unit)(xt.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:xt.itemInputBg,border:`${(0,Kt.unit)(xt.lineWidth)} ${xt.lineType} ${xt.colorBorder}`,borderRadius:xt.borderRadius,outline:"none",transition:`border-color ${xt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:xt.colorPrimary},"&:focus":{borderColor:xt.colorPrimaryHover,boxShadow:`${(0,Kt.unit)(xt.inputOutlineOffset)} 0 ${(0,Kt.unit)(xt.controlOutlineWidth)} ${xt.controlOutline}`},"&[disabled]":{color:xt.colorTextDisabled,backgroundColor:xt.colorBgContainerDisabled,borderColor:xt.colorBorder,cursor:"not-allowed"}}}}},de=xt=>{const{componentCls:lt}=xt;return{[`${lt}-jump-prev, ${lt}-jump-next`]:{outline:0,[`${lt}-item-container`]:{position:"relative",[`${lt}-item-link-icon`]:{color:xt.colorPrimary,fontSize:xt.fontSizeSM,opacity:0,transition:`all ${xt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${lt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:xt.colorTextDisabled,letterSpacing:xt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:xt.paginationEllipsisTextIndent,opacity:1,transition:`all ${xt.motionDurationMid}`}},"&:hover":{[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${lt}-prev,
|
|
|
${lt}-jump-prev,
|
|
|
${lt}-jump-next
|
|
|
`]:{marginInlineEnd:xt.marginXS},[`
|
|
|
${lt}-prev,
|
|
|
${lt}-next,
|
|
|
${lt}-jump-prev,
|
|
|
${lt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:xt.itemSize,height:xt.itemSize,color:xt.colorText,fontFamily:xt.fontFamily,lineHeight:(0,Kt.unit)(xt.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:xt.borderRadius,cursor:"pointer",transition:`all ${xt.motionDurationMid}`},[`${lt}-prev, ${lt}-next`]:{outline:0,button:{color:xt.colorText,cursor:"pointer",userSelect:"none"},[`${lt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:xt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Kt.unit)(xt.lineWidth)} ${xt.lineType} transparent`,borderRadius:xt.borderRadius,outline:"none",transition:`all ${xt.motionDurationMid}`},[`&:hover ${lt}-item-link`]:{backgroundColor:xt.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:xt.colorBgTextActive},[`&${lt}-disabled:hover`]:{[`${lt}-item-link`]:{backgroundColor:"transparent"}}},[`${lt}-slash`]:{marginInlineEnd:xt.paginationSlashMarginInlineEnd,marginInlineStart:xt.paginationSlashMarginInlineStart},[`${lt}-options`]:{display:"inline-block",marginInlineStart:xt.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:xt.controlHeight,marginInlineStart:xt.marginXS,lineHeight:(0,Kt.unit)(xt.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,tt.ik)(xt)),(0,jt.$U)(xt,{borderColor:xt.colorBorder,hoverBorderColor:xt.colorPrimaryHover,activeBorderColor:xt.colorPrimary,activeShadow:xt.activeShadow})),{"&[disabled]":Object.assign({},(0,jt.Xy)(xt)),width:xt.calc(xt.controlHeightLG).mul(1.25).equal(),height:xt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:xt.marginXS,marginInlineEnd:xt.marginXS})}}}},pe=xt=>{const{componentCls:lt}=xt;return{[`${lt}-item`]:{display:"inline-block",minWidth:xt.itemSize,height:xt.itemSize,marginInlineEnd:xt.marginXS,fontFamily:xt.fontFamily,lineHeight:(0,Kt.unit)(xt.calc(xt.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:xt.itemBg,border:`${(0,Kt.unit)(xt.lineWidth)} ${xt.lineType} transparent`,borderRadius:xt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Kt.unit)(xt.paginationItemPaddingInline)}`,color:xt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${lt}-item-active)`]:{"&:hover":{transition:`all ${xt.motionDurationMid}`,backgroundColor:xt.colorBgTextHover},"&:active":{backgroundColor:xt.colorBgTextActive}},"&-active":{fontWeight:xt.fontWeightStrong,backgroundColor:xt.itemActiveBg,borderColor:xt.colorPrimary,a:{color:xt.colorPrimary},"&:hover":{borderColor:xt.colorPrimaryHover},"&:hover a":{color:xt.colorPrimaryHover}}}}},ie=xt=>{const{componentCls:lt}=xt;return{[lt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,An.Wf)(xt)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${lt}-total-text`]:{display:"inline-block",height:xt.itemSize,marginInlineEnd:xt.marginXS,lineHeight:(0,Kt.unit)(xt.calc(xt.itemSize).sub(2).equal()),verticalAlign:"middle"}}),pe(xt)),de(xt)),on(xt)),En(xt)),Pt(xt)),{[`@media only screen and (max-width: ${xt.screenLG}px)`]:{[`${lt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${xt.screenSM}px)`]:{[`${lt}-options`]:{display:"none"}}}),[`&${xt.componentCls}-rtl`]:{direction:"rtl"}}},ee=xt=>{const{componentCls:lt}=xt;return{[`${lt}:not(${lt}-disabled)`]:{[`${lt}-item`]:Object.assign({},(0,An.Qy)(xt)),[`${lt}-jump-prev, ${lt}-jump-next`]:{"&:focus-visible":Object.assign({[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}},(0,An.oN)(xt))},[`${lt}-prev, ${lt}-next`]:{[`&:focus-visible ${lt}-item-link`]:Object.assign({},(0,An.oN)(xt))}}}},se=xt=>Object.assign({itemBg:xt.colorBgContainer,itemSize:xt.controlHeight,itemSizeSM:xt.controlHeightSM,itemActiveBg:xt.colorBgContainer,itemLinkBg:xt.colorBgContainer,itemActiveColorDisabled:xt.colorTextDisabled,itemActiveBgDisabled:xt.controlItemBgActiveDisabled,itemInputBg:xt.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Dt.T)(xt)),le=xt=>(0,kt.mergeToken)(xt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:xt.calc(xt.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:xt.calc(xt.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:xt.calc(xt.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:xt.calc(xt.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:xt.marginSM,paginationSlashMarginInlineEnd:xt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Dt.e)(xt));var Be=(0,pn.I$)("Pagination",xt=>{const lt=le(xt);return[ie(lt),ee(lt)]},se);const We=xt=>{const{componentCls:lt}=xt;return{[`${lt}${lt}-bordered${lt}-disabled:not(${lt}-mini)`]:{"&, &:hover":{[`${lt}-item-link`]:{borderColor:xt.colorBorder}},"&:focus-visible":{[`${lt}-item-link`]:{borderColor:xt.colorBorder}},[`${lt}-item, ${lt}-item-link`]:{backgroundColor:xt.colorBgContainerDisabled,borderColor:xt.colorBorder,[`&:hover:not(${lt}-item-active)`]:{backgroundColor:xt.colorBgContainerDisabled,borderColor:xt.colorBorder,a:{color:xt.colorTextDisabled}},[`&${lt}-item-active`]:{backgroundColor:xt.itemActiveBgDisabled}},[`${lt}-prev, ${lt}-next`]:{"&:hover button":{backgroundColor:xt.colorBgContainerDisabled,borderColor:xt.colorBorder,color:xt.colorTextDisabled},[`${lt}-item-link`]:{backgroundColor:xt.colorBgContainerDisabled,borderColor:xt.colorBorder}}},[`${lt}${lt}-bordered:not(${lt}-mini)`]:{[`${lt}-prev, ${lt}-next`]:{"&:hover button":{borderColor:xt.colorPrimaryHover,backgroundColor:xt.itemBg},[`${lt}-item-link`]:{backgroundColor:xt.itemLinkBg,borderColor:xt.colorBorder},[`&:hover ${lt}-item-link`]:{borderColor:xt.colorPrimary,backgroundColor:xt.itemBg,color:xt.colorPrimary},[`&${lt}-disabled`]:{[`${lt}-item-link`]:{borderColor:xt.colorBorder,color:xt.colorTextDisabled}}},[`${lt}-item`]:{backgroundColor:xt.itemBg,border:`${(0,Kt.unit)(xt.lineWidth)} ${xt.lineType} ${xt.colorBorder}`,[`&:hover:not(${lt}-item-active)`]:{borderColor:xt.colorPrimary,backgroundColor:xt.itemBg,a:{color:xt.colorPrimary}},"&-active":{borderColor:xt.colorPrimary}}}}};var st=(0,pn.bk)(["Pagination","bordered"],xt=>{const lt=le(xt);return[We(lt)]},se);function mt(xt){return(0,x.useMemo)(()=>typeof xt=="boolean"?[xt,{}]:xt&&typeof xt=="object"?[!0,xt]:[void 0,void 0],[xt])}var vt=function(xt,lt){var Vt={};for(var Wt in xt)Object.prototype.hasOwnProperty.call(xt,Wt)&<.indexOf(Wt)<0&&(Vt[Wt]=xt[Wt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,Wt=Object.getOwnPropertySymbols(xt);gn<Wt.length;gn++)lt.indexOf(Wt[gn])<0&&Object.prototype.propertyIsEnumerable.call(xt,Wt[gn])&&(Vt[Wt[gn]]=xt[Wt[gn]]);return Vt},_t=xt=>{const{align:lt,prefixCls:Vt,selectPrefixCls:Wt,className:gn,rootClassName:an,style:en,size:zn,locale:Fn,responsive:Rt,showSizeChanger:sn,selectComponentClass:_n,pageSizeOptions:Wn}=xt,Lt=vt(xt,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Gt}=(0,Ze.Z)(Rt),[,nn]=(0,Zt.ZP)(),{getPrefixCls:wn,direction:Gn,showSizeChanger:Er,className:ti,style:oi}=(0,at.dj)("pagination"),Ar=wn("pagination",Vt),[Ir,jn,Hn]=Be(Ar),Jn=(0,Et.Z)(zn),lr=Jn==="small"||!!(Gt&&!Jn&&Rt),[$n]=(0,De.Z)("Pagination",it.Z),br=Object.assign(Object.assign({},$n),Fn),[Br,_r]=mt(sn),[mi,di]=mt(Er),fi=Br!=null?Br:mi,Ti=_r!=null?_r:di,xi=_n||ut.default,io=x.useMemo(()=>Wn?Wn.map(gt=>Number(gt)):void 0,[Wn]),Xi=gt=>{var vn;const{disabled:Ut,size:dn,onSizeChange:$t,"aria-label":hn,className:Nn,options:Hr}=gt,{className:zr,onChange:Ai}=Ti||{},hr=(vn=Hr.find(nr=>String(nr.value)===String(dn)))===null||vn===void 0?void 0:vn.value;return x.createElement(xi,Object.assign({disabled:Ut,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:nr=>nr.parentNode,"aria-label":hn,options:Hr},Ti,{value:hr,onChange:(nr,ir)=>{$t==null||$t(nr),Ai==null||Ai(nr,ir)},size:lr?"small":"middle",className:Me()(Nn,zr)}))},ur=x.useMemo(()=>{const gt=x.createElement("span",{className:`${Ar}-item-ellipsis`},"\u2022\u2022\u2022"),vn=x.createElement("button",{className:`${Ar}-item-link`,type:"button",tabIndex:-1},Gn==="rtl"?x.createElement(Oe.Z,null):x.createElement(oe.Z,null)),Ut=x.createElement("button",{className:`${Ar}-item-link`,type:"button",tabIndex:-1},Gn==="rtl"?x.createElement(oe.Z,null):x.createElement(Oe.Z,null)),dn=x.createElement("a",{className:`${Ar}-item-link`},x.createElement("div",{className:`${Ar}-item-container`},Gn==="rtl"?x.createElement(xe.Z,{className:`${Ar}-item-link-icon`}):x.createElement(he,{className:`${Ar}-item-link-icon`}),gt)),$t=x.createElement("a",{className:`${Ar}-item-link`},x.createElement("div",{className:`${Ar}-item-container`},Gn==="rtl"?x.createElement(he,{className:`${Ar}-item-link-icon`}):x.createElement(xe.Z,{className:`${Ar}-item-link-icon`}),gt));return{prevIcon:vn,nextIcon:Ut,jumpPrevIcon:dn,jumpNextIcon:$t}},[Gn,Ar]),Tr=wn("select",Wt),gi=Me()({[`${Ar}-${lt}`]:!!lt,[`${Ar}-mini`]:lr,[`${Ar}-rtl`]:Gn==="rtl",[`${Ar}-bordered`]:nn.wireframe},ti,gn,an,jn,Hn),ni=Object.assign(Object.assign({},oi),en);return Ir(x.createElement(x.Fragment,null,nn.wireframe&&x.createElement(st,{prefixCls:Ar}),x.createElement(Ot,Object.assign({},ur,Lt,{style:ni,prefixCls:Ar,selectPrefixCls:Tr,className:gi,locale:br,pageSizeOptions:io,showSizeChanger:fi,sizeChangerRender:Xi}))))},Qt=_t},89787:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Fn}});var x=ae(59301),dt=ae(17835),Le=ae(29679),qe=ae(40001),ze=ae(19248),Ie=ae(99267),Ue=ae(92310),he=ae.n(Ue),xe=ae(2738),oe=ae(48755),Oe=ae(60499),ve=ae(85899),Me=ae(42244),Se={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Te=function(){var sn=(0,x.useRef)([]),_n=(0,x.useRef)(null);return(0,x.useEffect)(function(){var Wn=Date.now(),Lt=!1;sn.current.forEach(function(Gt){if(Gt){Lt=!0;var nn=Gt.style;nn.transitionDuration=".3s, .3s, .3s, .06s",_n.current&&Wn-_n.current<100&&(nn.transitionDuration="0s, 0s")}}),Lt&&(_n.current=Date.now())}),sn.current},we=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ce=function(sn){var _n=(0,ve.Z)((0,ve.Z)({},Se),sn),Wn=_n.className,Lt=_n.percent,Gt=_n.prefixCls,nn=_n.strokeColor,wn=_n.strokeLinecap,Gn=_n.strokeWidth,Er=_n.style,ti=_n.trailColor,oi=_n.trailWidth,Ar=_n.transition,Ir=(0,Me.Z)(_n,we);delete Ir.gapPosition;var jn=Array.isArray(Lt)?Lt:[Lt],Hn=Array.isArray(nn)?nn:[nn],Jn=Te(),lr=Gn/2,$n=100-Gn/2,br="M ".concat(wn==="round"?lr:0,",").concat(lr,`
|
|
|
L `).concat(wn==="round"?$n:100,",").concat(lr),Br="0 0 100 ".concat(Gn),_r=0;return x.createElement("svg",(0,Oe.Z)({className:he()("".concat(Gt,"-line"),Wn),viewBox:Br,preserveAspectRatio:"none",style:Er},Ir),x.createElement("path",{className:"".concat(Gt,"-line-trail"),d:br,strokeLinecap:wn,stroke:ti,strokeWidth:oi||Gn,fillOpacity:"0"}),jn.map(function(mi,di){var fi=1;switch(wn){case"round":fi=1-Gn/100;break;case"square":fi=1-Gn/2/100;break;default:fi=1;break}var Ti={strokeDasharray:"".concat(mi*fi,"px, 100px"),strokeDashoffset:"-".concat(_r,"px"),transition:Ar||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},xi=Hn[di]||Hn[Hn.length-1];return _r+=mi,x.createElement("path",{key:di,className:"".concat(Gt,"-line-path"),d:br,strokeLinecap:wn,stroke:xi,strokeWidth:Gn,fillOpacity:"0",ref:function(Xi){Jn[di]=Xi},style:Ti})}))},Ee=Ce,ke=ae(43749),Ke=ae(72190),Qe=ae(47273),je=0,Je=(0,Qe.Z)();function Ve(){var Rt;return Je?(Rt=je,je+=1):Rt="TEST_OR_SSR",Rt}var ct=function(Rt){var sn=x.useState(),_n=(0,Ke.Z)(sn,2),Wn=_n[0],Lt=_n[1];return x.useEffect(function(){Lt("rc_progress_".concat(Ve()))},[]),Rt||Wn},ot=function(sn){var _n=sn.bg,Wn=sn.children;return x.createElement("div",{style:{width:"100%",height:"100%",background:_n}},Wn)};function pt(Rt,sn){return Object.keys(Rt).map(function(_n){var Wn=parseFloat(_n),Lt="".concat(Math.floor(Wn*sn),"%");return"".concat(Rt[_n]," ").concat(Lt)})}var Ct=x.forwardRef(function(Rt,sn){var _n=Rt.prefixCls,Wn=Rt.color,Lt=Rt.gradientId,Gt=Rt.radius,nn=Rt.style,wn=Rt.ptg,Gn=Rt.strokeLinecap,Er=Rt.strokeWidth,ti=Rt.size,oi=Rt.gapDegree,Ar=Wn&&(0,ke.Z)(Wn)==="object",Ir=Ar?"#FFF":void 0,jn=ti/2,Hn=x.createElement("circle",{className:"".concat(_n,"-circle-path"),r:Gt,cx:jn,cy:jn,stroke:Ir,strokeLinecap:Gn,strokeWidth:Er,opacity:wn===0?0:1,style:nn,ref:sn});if(!Ar)return Hn;var Jn="".concat(Lt,"-conic"),lr=oi?"".concat(180+oi/2,"deg"):"0deg",$n=pt(Wn,(360-oi)/360),br=pt(Wn,1),Br="conic-gradient(from ".concat(lr,", ").concat($n.join(", "),")"),_r="linear-gradient(to ".concat(oi?"bottom":"top",", ").concat(br.join(", "),")");return x.createElement(x.Fragment,null,x.createElement("mask",{id:Jn},Hn),x.createElement("foreignObject",{x:0,y:0,width:ti,height:ti,mask:"url(#".concat(Jn,")")},x.createElement(ot,{bg:_r},x.createElement(ot,{bg:Br}))))}),He=Ct,ht=100,_e=function(sn,_n,Wn,Lt,Gt,nn,wn,Gn,Er,ti){var oi=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ar=Wn/100*360*((360-nn)/360),Ir=nn===0?0:{bottom:0,top:180,left:90,right:-90}[wn],jn=(100-Lt)/100*_n;Er==="round"&&Lt!==100&&(jn+=ti/2,jn>=_n&&(jn=_n-.01));var Hn=ht/2;return{stroke:typeof Gn=="string"?Gn:void 0,strokeDasharray:"".concat(_n,"px ").concat(sn),strokeDashoffset:jn+oi,transform:"rotate(".concat(Gt+Ar+Ir,"deg)"),transformOrigin:"".concat(Hn,"px ").concat(Hn,"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}},Re=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ot(Rt){var sn=Rt!=null?Rt:[];return Array.isArray(sn)?sn:[sn]}var it=function(sn){var _n=(0,ve.Z)((0,ve.Z)({},Se),sn),Wn=_n.id,Lt=_n.prefixCls,Gt=_n.steps,nn=_n.strokeWidth,wn=_n.trailWidth,Gn=_n.gapDegree,Er=Gn===void 0?0:Gn,ti=_n.gapPosition,oi=_n.trailColor,Ar=_n.strokeLinecap,Ir=_n.style,jn=_n.className,Hn=_n.strokeColor,Jn=_n.percent,lr=(0,Me.Z)(_n,Re),$n=ht/2,br=ct(Wn),Br="".concat(br,"-gradient"),_r=$n-nn/2,mi=Math.PI*2*_r,di=Er>0?90+Er/2:-90,fi=mi*((360-Er)/360),Ti=(0,ke.Z)(Gt)==="object"?Gt:{count:Gt,gap:2},xi=Ti.count,io=Ti.gap,Xi=Ot(Jn),ur=Ot(Hn),Tr=ur.find(function($t){return $t&&(0,ke.Z)($t)==="object"}),gi=Tr&&(0,ke.Z)(Tr)==="object",ni=gi?"butt":Ar,gt=_e(mi,fi,0,100,di,Er,ti,oi,ni,nn),vn=Te(),Ut=function(){var hn=0;return Xi.map(function(Nn,Hr){var zr=ur[Hr]||ur[ur.length-1],Ai=_e(mi,fi,hn,Nn,di,Er,ti,zr,ni,nn);return hn+=Nn,x.createElement(He,{key:Hr,color:zr,ptg:Nn,radius:_r,prefixCls:Lt,gradientId:Br,style:Ai,strokeLinecap:ni,strokeWidth:nn,gapDegree:Er,ref:function(nr){vn[Hr]=nr},size:ht})}).reverse()},dn=function(){var hn=Math.round(xi*(Xi[0]/100)),Nn=100/xi,Hr=0;return new Array(xi).fill(null).map(function(zr,Ai){var hr=Ai<=hn-1?ur[0]:oi,nr=hr&&(0,ke.Z)(hr)==="object"?"url(#".concat(Br,")"):void 0,ir=_e(mi,fi,Hr,Nn,di,Er,ti,hr,"butt",nn,io);return Hr+=(fi-ir.strokeDashoffset+io)*100/fi,x.createElement("circle",{key:Ai,className:"".concat(Lt,"-circle-path"),r:_r,cx:$n,cy:$n,stroke:nr,strokeWidth:nn,opacity:1,style:ir,ref:function(Mi){vn[Ai]=Mi}})})};return x.createElement("svg",(0,Oe.Z)({className:he()("".concat(Lt,"-circle"),jn),viewBox:"0 0 ".concat(ht," ").concat(ht),style:Ir,id:Wn,role:"presentation"},lr),!xi&&x.createElement("circle",{className:"".concat(Lt,"-circle-trail"),r:_r,cx:$n,cy:$n,stroke:oi,strokeLinecap:ni,strokeWidth:wn||nn,style:gt}),xi?dn():Ut())},at=it,Et={Line:Ee,Circle:at},Ze=ae(25399),De=ae(68361);function ut(Rt){return!Rt||Rt<0?0:Rt>100?100:Rt}function Zt(Rt){let{success:sn,successPercent:_n}=Rt,Wn=_n;return sn&&"progress"in sn&&(Wn=sn.progress),sn&&"percent"in sn&&(Wn=sn.percent),Wn}const Kt=Rt=>{let{percent:sn,success:_n,successPercent:Wn}=Rt;const Lt=ut(Zt({success:_n,successPercent:Wn}));return[Lt,ut(ut(sn)-Lt)]},tt=Rt=>{let{success:sn={},strokeColor:_n}=Rt;const{strokeColor:Wn}=sn;return[Wn||De.presetPrimaryColors.green,_n||null]},Dt=(Rt,sn,_n)=>{var Wn,Lt,Gt,nn;let wn=-1,Gn=-1;if(sn==="step"){const Er=_n.steps,ti=_n.strokeWidth;typeof Rt=="string"||typeof Rt=="undefined"?(wn=Rt==="small"?2:14,Gn=ti!=null?ti:8):typeof Rt=="number"?[wn,Gn]=[Rt,Rt]:[wn=14,Gn=8]=Array.isArray(Rt)?Rt:[Rt.width,Rt.height],wn*=Er}else if(sn==="line"){const Er=_n==null?void 0:_n.strokeWidth;typeof Rt=="string"||typeof Rt=="undefined"?Gn=Er||(Rt==="small"?6:8):typeof Rt=="number"?[wn,Gn]=[Rt,Rt]:[wn=-1,Gn=8]=Array.isArray(Rt)?Rt:[Rt.width,Rt.height]}else(sn==="circle"||sn==="dashboard")&&(typeof Rt=="string"||typeof Rt=="undefined"?[wn,Gn]=Rt==="small"?[60,60]:[120,120]:typeof Rt=="number"?[wn,Gn]=[Rt,Rt]:Array.isArray(Rt)&&(wn=(Lt=(Wn=Rt[0])!==null&&Wn!==void 0?Wn:Rt[1])!==null&&Lt!==void 0?Lt:120,Gn=(nn=(Gt=Rt[0])!==null&&Gt!==void 0?Gt:Rt[1])!==null&&nn!==void 0?nn:120));return[wn,Gn]},jt=3,An=Rt=>jt/Rt*100;var pn=Rt=>{const{prefixCls:sn,trailColor:_n=null,strokeLinecap:Wn="round",gapPosition:Lt,gapDegree:Gt,width:nn=120,type:wn,children:Gn,success:Er,size:ti=nn,steps:oi}=Rt,[Ar,Ir]=Dt(ti,"circle");let{strokeWidth:jn}=Rt;jn===void 0&&(jn=Math.max(An(Ar),6));const Hn={width:Ar,height:Ir,fontSize:Ar*.15+6},Jn=x.useMemo(()=>{if(Gt||Gt===0)return Gt;if(wn==="dashboard")return 75},[Gt,wn]),lr=Kt(Rt),$n=Lt||wn==="dashboard"&&"bottom"||void 0,br=Object.prototype.toString.call(Rt.strokeColor)==="[object Object]",Br=tt({success:Er,strokeColor:Rt.strokeColor}),_r=he()(`${sn}-inner`,{[`${sn}-circle-gradient`]:br}),mi=x.createElement(at,{steps:oi,percent:oi?lr[1]:lr,strokeWidth:jn,trailWidth:jn,strokeColor:oi?Br[1]:Br,strokeLinecap:Wn,trailColor:_n,prefixCls:sn,gapDegree:Jn,gapPosition:$n}),di=Ar<=20,fi=x.createElement("div",{className:_r,style:Hn},mi,!di&&Gn);return di?x.createElement(Ze.Z,{title:Gn},fi):fi},Pt=ae(36237),En=ae(63356),on=ae(16931),de=ae(51636);const pe="--progress-line-stroke-color",ie="--progress-percent",ee=Rt=>{const sn=Rt?"100%":"-100%";return new Pt.Keyframes(`antProgress${Rt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${sn}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${sn}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Rt=>{const{componentCls:sn,iconCls:_n}=Rt;return{[sn]:Object.assign(Object.assign({},(0,En.Wf)(Rt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Rt.fontSize},[`${sn}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${sn}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Rt.remainingColor,borderRadius:Rt.lineBorderRadius},[`${sn}-inner:not(${sn}-circle-gradient)`]:{[`${sn}-circle-path`]:{stroke:Rt.defaultColor}},[`${sn}-success-bg, ${sn}-bg`]:{position:"relative",background:Rt.defaultColor,borderRadius:Rt.lineBorderRadius,transition:`all ${Rt.motionDurationSlow} ${Rt.motionEaseInOutCirc}`},[`${sn}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${sn}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Rt.marginXXS}},[`${sn}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${pe})`]},height:"100%",width:`calc(1 / var(${ie}) * 100%)`,display:"block"},[`&${sn}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${sn}-text-inner`]:{color:Rt.colorWhite,[`&${sn}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${sn}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Rt.colorSuccess},[`${sn}-text`]:{display:"inline-block",marginInlineStart:Rt.marginXS,color:Rt.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[_n]:{fontSize:Rt.fontSize},[`&${sn}-text-outer`]:{width:"max-content"},[`&${sn}-text-outer${sn}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Rt.marginXS}},[`${sn}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Pt.unit)(Rt.paddingXXS)}`,[`&${sn}-text-start`]:{justifyContent:"start"},[`&${sn}-text-end`]:{justifyContent:"end"}},[`&${sn}-status-active`]:{[`${sn}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Rt.colorBgContainer,borderRadius:Rt.lineBorderRadius,opacity:0,animationName:ee(),animationDuration:Rt.progressActiveMotionDuration,animationTimingFunction:Rt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${sn}-rtl${sn}-status-active`]:{[`${sn}-bg::before`]:{animationName:ee(!0)}},[`&${sn}-status-exception`]:{[`${sn}-bg`]:{backgroundColor:Rt.colorError},[`${sn}-text`]:{color:Rt.colorError}},[`&${sn}-status-exception ${sn}-inner:not(${sn}-circle-gradient)`]:{[`${sn}-circle-path`]:{stroke:Rt.colorError}},[`&${sn}-status-success`]:{[`${sn}-bg`]:{backgroundColor:Rt.colorSuccess},[`${sn}-text`]:{color:Rt.colorSuccess}},[`&${sn}-status-success ${sn}-inner:not(${sn}-circle-gradient)`]:{[`${sn}-circle-path`]:{stroke:Rt.colorSuccess}}})}},le=Rt=>{const{componentCls:sn,iconCls:_n}=Rt;return{[sn]:{[`${sn}-circle-trail`]:{stroke:Rt.remainingColor},[`&${sn}-circle ${sn}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${sn}-circle ${sn}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Rt.circleTextColor,fontSize:Rt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[_n]:{fontSize:Rt.circleIconFontSize}},[`${sn}-circle&-status-exception`]:{[`${sn}-text`]:{color:Rt.colorError}},[`${sn}-circle&-status-success`]:{[`${sn}-text`]:{color:Rt.colorSuccess}}},[`${sn}-inline-circle`]:{lineHeight:1,[`${sn}-inner`]:{verticalAlign:"bottom"}}}},Be=Rt=>{const{componentCls:sn}=Rt;return{[sn]:{[`${sn}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Rt.progressStepMinWidth,marginInlineEnd:Rt.progressStepMarginInlineEnd,backgroundColor:Rt.remainingColor,transition:`all ${Rt.motionDurationSlow}`,"&-active":{backgroundColor:Rt.defaultColor}}}}}},We=Rt=>{const{componentCls:sn,iconCls:_n}=Rt;return{[sn]:{[`${sn}-small&-line, ${sn}-small&-line ${sn}-text ${_n}`]:{fontSize:Rt.fontSizeSM}}}},st=Rt=>({circleTextColor:Rt.colorText,defaultColor:Rt.colorInfo,remainingColor:Rt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Rt.fontSize/Rt.fontSizeSM}em`});var mt=(0,on.I$)("Progress",Rt=>{const sn=Rt.calc(Rt.marginXXS).div(2).equal(),_n=(0,de.mergeToken)(Rt,{progressStepMarginInlineEnd:sn,progressStepMinWidth:sn,progressActiveMotionDuration:"2.4s"});return[se(_n),le(_n),Be(_n),We(_n)]},st),vt=function(Rt,sn){var _n={};for(var Wn in Rt)Object.prototype.hasOwnProperty.call(Rt,Wn)&&sn.indexOf(Wn)<0&&(_n[Wn]=Rt[Wn]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Wn=Object.getOwnPropertySymbols(Rt);Lt<Wn.length;Lt++)sn.indexOf(Wn[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Wn[Lt])&&(_n[Wn[Lt]]=Rt[Wn[Lt]]);return _n};const St=Rt=>{let sn=[];return Object.keys(Rt).forEach(_n=>{const Wn=parseFloat(_n.replace(/%/g,""));Number.isNaN(Wn)||sn.push({key:Wn,value:Rt[_n]})}),sn=sn.sort((_n,Wn)=>_n.key-Wn.key),sn.map(_n=>{let{key:Wn,value:Lt}=_n;return`${Lt} ${Wn}%`}).join(", ")},_t=(Rt,sn)=>{const{from:_n=De.presetPrimaryColors.blue,to:Wn=De.presetPrimaryColors.blue,direction:Lt=sn==="rtl"?"to left":"to right"}=Rt,Gt=vt(Rt,["from","to","direction"]);if(Object.keys(Gt).length!==0){const wn=St(Gt),Gn=`linear-gradient(${Lt}, ${wn})`;return{background:Gn,[pe]:Gn}}const nn=`linear-gradient(${Lt}, ${_n}, ${Wn})`;return{background:nn,[pe]:nn}};var xt=Rt=>{const{prefixCls:sn,direction:_n,percent:Wn,size:Lt,strokeWidth:Gt,strokeColor:nn,strokeLinecap:wn="round",children:Gn,trailColor:Er=null,percentPosition:ti,success:oi}=Rt,{align:Ar,type:Ir}=ti,jn=nn&&typeof nn!="string"?_t(nn,_n):{[pe]:nn,background:nn},Hn=wn==="square"||wn==="butt"?0:void 0,Jn=Lt!=null?Lt:[-1,Gt||(Lt==="small"?6:8)],[lr,$n]=Dt(Jn,"line",{strokeWidth:Gt}),br={backgroundColor:Er||void 0,borderRadius:Hn},Br=Object.assign(Object.assign({width:`${ut(Wn)}%`,height:$n,borderRadius:Hn},jn),{[ie]:ut(Wn)/100}),_r=Zt(Rt),mi={width:`${ut(_r)}%`,height:$n,borderRadius:Hn,backgroundColor:oi==null?void 0:oi.strokeColor},di={width:lr<0?"100%":lr},fi=x.createElement("div",{className:`${sn}-inner`,style:br},x.createElement("div",{className:he()(`${sn}-bg`,`${sn}-bg-${Ir}`),style:Br},Ir==="inner"&&Gn),_r!==void 0&&x.createElement("div",{className:`${sn}-success-bg`,style:mi})),Ti=Ir==="outer"&&Ar==="start",xi=Ir==="outer"&&Ar==="end";return Ir==="outer"&&Ar==="center"?x.createElement("div",{className:`${sn}-layout-bottom`},fi,Gn):x.createElement("div",{className:`${sn}-outer`,style:di},Ti&&Gn,fi,xi&&Gn)},Vt=Rt=>{const{size:sn,steps:_n,rounding:Wn=Math.round,percent:Lt=0,strokeWidth:Gt=8,strokeColor:nn,trailColor:wn=null,prefixCls:Gn,children:Er}=Rt,ti=Wn(_n*(Lt/100)),oi=sn==="small"?2:14,Ar=sn!=null?sn:[oi,Gt],[Ir,jn]=Dt(Ar,"step",{steps:_n,strokeWidth:Gt}),Hn=Ir/_n,Jn=Array.from({length:_n});for(let lr=0;lr<_n;lr++){const $n=Array.isArray(nn)?nn[lr]:nn;Jn[lr]=x.createElement("div",{key:lr,className:he()(`${Gn}-steps-item`,{[`${Gn}-steps-item-active`]:lr<=ti-1}),style:{backgroundColor:lr<=ti-1?$n:wn,width:Hn,height:jn}})}return x.createElement("div",{className:`${Gn}-steps-outer`},Jn,Er)},Wt=function(Rt,sn){var _n={};for(var Wn in Rt)Object.prototype.hasOwnProperty.call(Rt,Wn)&&sn.indexOf(Wn)<0&&(_n[Wn]=Rt[Wn]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Wn=Object.getOwnPropertySymbols(Rt);Lt<Wn.length;Lt++)sn.indexOf(Wn[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Wn[Lt])&&(_n[Wn[Lt]]=Rt[Wn[Lt]]);return _n};const gn=null,an=["normal","exception","active","success"];var zn=x.forwardRef((Rt,sn)=>{const{prefixCls:_n,className:Wn,rootClassName:Lt,steps:Gt,strokeColor:nn,percent:wn=0,size:Gn="default",showInfo:Er=!0,type:ti="line",status:oi,format:Ar,style:Ir,percentPosition:jn={}}=Rt,Hn=Wt(Rt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Jn="end",type:lr="outer"}=jn,$n=Array.isArray(nn)?nn[0]:nn,br=typeof nn=="string"||Array.isArray(nn)?nn:void 0,Br=x.useMemo(()=>{if($n){const Ut=typeof $n=="string"?$n:Object.values($n)[0];return new dt.FastColor(Ut).isLight()}return!1},[nn]),_r=x.useMemo(()=>{var Ut,dn;const $t=Zt(Rt);return parseInt($t!==void 0?(Ut=$t!=null?$t:0)===null||Ut===void 0?void 0:Ut.toString():(dn=wn!=null?wn:0)===null||dn===void 0?void 0:dn.toString(),10)},[wn,Rt.success,Rt.successPercent]),mi=x.useMemo(()=>!an.includes(oi)&&_r>=100?"success":oi||"normal",[oi,_r]),{getPrefixCls:di,direction:fi,progress:Ti}=x.useContext(oe.E_),xi=di("progress",_n),[io,Xi,ur]=mt(xi),Tr=ti==="line",gi=Tr&&!Gt,ni=x.useMemo(()=>{if(!Er)return null;const Ut=Zt(Rt);let dn;const $t=Ar||(Nn=>`${Nn}%`),hn=Tr&&Br&&lr==="inner";return lr==="inner"||Ar||mi!=="exception"&&mi!=="success"?dn=$t(ut(wn),ut(Ut)):mi==="exception"?dn=Tr?x.createElement(ze.Z,null):x.createElement(Ie.Z,null):mi==="success"&&(dn=Tr?x.createElement(Le.Z,null):x.createElement(qe.Z,null)),x.createElement("span",{className:he()(`${xi}-text`,{[`${xi}-text-bright`]:hn,[`${xi}-text-${Jn}`]:gi,[`${xi}-text-${lr}`]:gi}),title:typeof dn=="string"?dn:void 0},dn)},[Er,wn,_r,mi,ti,xi,Ar]);let gt;ti==="line"?gt=Gt?x.createElement(Vt,Object.assign({},Rt,{strokeColor:br,prefixCls:xi,steps:typeof Gt=="object"?Gt.count:Gt}),ni):x.createElement(xt,Object.assign({},Rt,{strokeColor:$n,prefixCls:xi,direction:fi,percentPosition:{align:Jn,type:lr}}),ni):(ti==="circle"||ti==="dashboard")&&(gt=x.createElement(pn,Object.assign({},Rt,{strokeColor:$n,prefixCls:xi,progressStatus:mi}),ni));const vn=he()(xi,`${xi}-status-${mi}`,{[`${xi}-${ti==="dashboard"&&"circle"||ti}`]:ti!=="line",[`${xi}-inline-circle`]:ti==="circle"&&Dt(Gn,"circle")[0]<=20,[`${xi}-line`]:gi,[`${xi}-line-align-${Jn}`]:gi,[`${xi}-line-position-${lr}`]:gi,[`${xi}-steps`]:Gt,[`${xi}-show-info`]:Er,[`${xi}-${Gn}`]:typeof Gn=="string",[`${xi}-rtl`]:fi==="rtl"},Ti==null?void 0:Ti.className,Wn,Lt,Xi,ur);return io(x.createElement("div",Object.assign({ref:sn,style:Object.assign(Object.assign({},Ti==null?void 0:Ti.style),Ir),className:vn,role:"progressbar","aria-valuenow":_r,"aria-valuemin":0,"aria-valuemax":100},(0,xe.Z)(Hn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),gt))}),Fn=zn},63139:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Kt}});var x=ae(59301),dt=ae(60499),Le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},qe=Le,ze=ae(7657),Ie=function(Dt,jt){return x.createElement(ze.Z,(0,dt.Z)({},Dt,{ref:jt,icon:qe}))},Ue=x.forwardRef(Ie),he=Ue,xe=ae(92310),oe=ae.n(xe),Oe=ae(18642),ve=ae(72190),Me=ae(42244),Se=ae(18929),Te=ae(10228),we=ae(26112);function Ce(tt,Dt){var jt=tt.disabled,An=tt.prefixCls,kt=tt.character,pn=tt.characterRender,Pt=tt.index,En=tt.count,on=tt.value,de=tt.allowHalf,pe=tt.focused,ie=tt.onHover,ee=tt.onClick,se=function(_t){ie(_t,Pt)},le=function(_t){ee(_t,Pt)},Be=function(_t){_t.keyCode===Te.Z.ENTER&&ee(_t,Pt)},We=Pt+1,st=new Set([An]);on===0&&Pt===0&&pe?st.add("".concat(An,"-focused")):de&&on+.5>=We&&on<We?(st.add("".concat(An,"-half")),st.add("".concat(An,"-active")),pe&&st.add("".concat(An,"-focused"))):(We<=on?st.add("".concat(An,"-full")):st.add("".concat(An,"-zero")),We===on&&pe&&st.add("".concat(An,"-focused")));var mt=typeof kt=="function"?kt(tt):kt,vt=x.createElement("li",{className:oe()(Array.from(st)),ref:Dt},x.createElement("div",{onClick:jt?null:le,onKeyDown:jt?null:Be,onMouseMove:jt?null:se,role:"radio","aria-checked":on>Pt?"true":"false","aria-posinset":Pt+1,"aria-setsize":En,tabIndex:jt?-1:0},x.createElement("div",{className:"".concat(An,"-first")},mt),x.createElement("div",{className:"".concat(An,"-second")},mt)));return pn&&(vt=pn(vt,tt)),vt}var Ee=x.forwardRef(Ce);function ke(){var tt=x.useRef({});function Dt(An){return tt.current[An]}function jt(An){return function(kt){tt.current[An]=kt}}return[Dt,jt]}function Ke(tt){var Dt=tt.pageXOffset,jt="scrollLeft";if(typeof Dt!="number"){var An=tt.document;Dt=An.documentElement[jt],typeof Dt!="number"&&(Dt=An.body[jt])}return Dt}function Qe(tt){var Dt,jt,An=tt.ownerDocument,kt=An.body,pn=An&&An.documentElement,Pt=tt.getBoundingClientRect();return Dt=Pt.left,jt=Pt.top,Dt-=pn.clientLeft||kt.clientLeft||0,jt-=pn.clientTop||kt.clientTop||0,{left:Dt,top:jt}}function je(tt){var Dt=Qe(tt),jt=tt.ownerDocument,An=jt.defaultView||jt.parentWindow;return Dt.left+=Ke(An),Dt.left}var Je=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ve(tt,Dt){var jt=tt.prefixCls,An=jt===void 0?"rc-rate":jt,kt=tt.className,pn=tt.defaultValue,Pt=tt.value,En=tt.count,on=En===void 0?5:En,de=tt.allowHalf,pe=de===void 0?!1:de,ie=tt.allowClear,ee=ie===void 0?!0:ie,se=tt.keyboard,le=se===void 0?!0:se,Be=tt.character,We=Be===void 0?"\u2605":Be,st=tt.characterRender,mt=tt.disabled,vt=tt.direction,St=vt===void 0?"ltr":vt,_t=tt.tabIndex,Qt=_t===void 0?0:_t,xt=tt.autoFocus,lt=tt.onHoverChange,Vt=tt.onChange,Wt=tt.onFocus,gn=tt.onBlur,an=tt.onKeyDown,en=tt.onMouseLeave,zn=(0,Me.Z)(tt,Je),Fn=ke(),Rt=(0,ve.Z)(Fn,2),sn=Rt[0],_n=Rt[1],Wn=x.useRef(null),Lt=function(){if(!mt){var ni;(ni=Wn.current)===null||ni===void 0||ni.focus()}};x.useImperativeHandle(Dt,function(){return{focus:Lt,blur:function(){if(!mt){var ni;(ni=Wn.current)===null||ni===void 0||ni.blur()}}}});var Gt=(0,Se.Z)(pn||0,{value:Pt}),nn=(0,ve.Z)(Gt,2),wn=nn[0],Gn=nn[1],Er=(0,Se.Z)(null),ti=(0,ve.Z)(Er,2),oi=ti[0],Ar=ti[1],Ir=function(ni,gt){var vn=St==="rtl",Ut=ni+1;if(pe){var dn=sn(ni),$t=je(dn),hn=dn.clientWidth;(vn&>-$t>hn/2||!vn&>-$t<hn/2)&&(Ut-=.5)}return Ut},jn=function(ni){Gn(ni),Vt==null||Vt(ni)},Hn=x.useState(!1),Jn=(0,ve.Z)(Hn,2),lr=Jn[0],$n=Jn[1],br=function(){$n(!0),Wt==null||Wt()},Br=function(){$n(!1),gn==null||gn()},_r=x.useState(null),mi=(0,ve.Z)(_r,2),di=mi[0],fi=mi[1],Ti=function(ni,gt){var vn=Ir(gt,ni.pageX);vn!==oi&&(fi(vn),Ar(null)),lt==null||lt(vn)},xi=function(ni){mt||(fi(null),Ar(null),lt==null||lt(void 0)),ni&&(en==null||en(ni))},io=function(ni,gt){var vn=Ir(gt,ni.pageX),Ut=!1;ee&&(Ut=vn===wn),xi(),jn(Ut?0:vn),Ar(Ut?vn:null)},Xi=function(ni){var gt=ni.keyCode,vn=St==="rtl",Ut=pe?.5:1;le&&(gt===Te.Z.RIGHT&&wn<on&&!vn?(jn(wn+Ut),ni.preventDefault()):gt===Te.Z.LEFT&&wn>0&&!vn||gt===Te.Z.RIGHT&&wn>0&&vn?(jn(wn-Ut),ni.preventDefault()):gt===Te.Z.LEFT&&wn<on&&vn&&(jn(wn+Ut),ni.preventDefault())),an==null||an(ni)};x.useEffect(function(){xt&&!mt&&Lt()},[]);var ur=new Array(on).fill(0).map(function(gi,ni){return x.createElement(Ee,{ref:_n(ni),index:ni,count:on,disabled:mt,prefixCls:"".concat(An,"-star"),allowHalf:pe,value:di===null?wn:di,onClick:io,onHover:Ti,key:gi||ni,character:We,characterRender:st,focused:lr})}),Tr=oe()(An,kt,(0,Oe.Z)((0,Oe.Z)({},"".concat(An,"-disabled"),mt),"".concat(An,"-rtl"),St==="rtl"));return x.createElement("ul",(0,dt.Z)({className:Tr,onMouseLeave:xi,tabIndex:mt?-1:Qt,onFocus:mt?null:br,onBlur:mt?null:Br,onKeyDown:mt?null:Xi,ref:Wn},(0,we.Z)(zn,{aria:!0,data:!0,attr:!0})),ur)}var ct=x.forwardRef(Ve),ot=ct,pt=ae(48755),Ct=ae(25399),He=ae(36237),ht=ae(63356),_e=ae(16931),Re=ae(51636);const Ot=tt=>{const{componentCls:Dt}=tt;return{[`${Dt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:tt.marginXS},"> div":{transition:`all ${tt.motionDurationMid}, outline 0s`,"&:hover":{transform:tt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,He.unit)(tt.lineWidth)} dashed ${tt.starColor}`,transform:tt.starHoverScale}},"&-first, &-second":{color:tt.starBg,transition:`all ${tt.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Dt}-star-first, &-half ${Dt}-star-second`]:{opacity:1},[`&-half ${Dt}-star-first, &-full ${Dt}-star-second`]:{color:"inherit"}}}},it=tt=>({[`&-rtl${tt.componentCls}`]:{direction:"rtl"}}),at=tt=>{const{componentCls:Dt}=tt;return{[Dt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(tt)),{display:"inline-block",margin:0,padding:0,color:tt.starColor,fontSize:tt.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Dt} ${Dt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ot(tt)),it(tt))}},Et=tt=>({starColor:tt.yellow6,starSize:tt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:tt.colorFillContent});var Ze=(0,_e.I$)("Rate",tt=>{const Dt=(0,Re.mergeToken)(tt,{});return[at(Dt)]},Et),De=ae(2171),ut=function(tt,Dt){var jt={};for(var An in tt)Object.prototype.hasOwnProperty.call(tt,An)&&Dt.indexOf(An)<0&&(jt[An]=tt[An]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,An=Object.getOwnPropertySymbols(tt);kt<An.length;kt++)Dt.indexOf(An[kt])<0&&Object.prototype.propertyIsEnumerable.call(tt,An[kt])&&(jt[An[kt]]=tt[An[kt]]);return jt},Kt=x.forwardRef((tt,Dt)=>{const{prefixCls:jt,className:An,rootClassName:kt,style:pn,tooltips:Pt,character:En=x.createElement(he,null),disabled:on}=tt,de=ut(tt,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),pe=(_t,Qt)=>{let{index:xt}=Qt;return Pt?x.createElement(Ct.Z,{title:Pt[xt]},_t):_t},{getPrefixCls:ie,direction:ee,rate:se}=x.useContext(pt.E_),le=ie("rate",jt),[Be,We,st]=Ze(le),mt=Object.assign(Object.assign({},se==null?void 0:se.style),pn),vt=x.useContext(De.Z),St=on!=null?on:vt;return Be(x.createElement(ot,Object.assign({ref:Dt,character:En,characterRender:pe,disabled:St},de,{className:oe()(An,kt,We,st,se==null?void 0:se.className),style:mt,prefixCls:le,direction:ee})))})},82326:function(qn,Mt,ae){"use strict";var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(37463),ze=ae(2738),Ie=ae(75030),Ue=ae(86641),he=ae(45915),xe=ae(82855),oe=ae(48755),Oe=ae(38406),ve=ae(2171),Me=ae(83397),Se=ae(31756),Te=ae(56553),we=ae(24971),Ce=ae(70045),Ee=ae(57700),ke=ae(1722),Ke=ae(90376),Qe=ae(68525),je=ae(90005),Je=function(Ct,He){var ht={};for(var _e in Ct)Object.prototype.hasOwnProperty.call(Ct,_e)&&He.indexOf(_e)<0&&(ht[_e]=Ct[_e]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,_e=Object.getOwnPropertySymbols(Ct);Re<_e.length;Re++)He.indexOf(_e[Re])<0&&Object.prototype.propertyIsEnumerable.call(Ct,_e[Re])&&(ht[_e[Re]]=Ct[_e[Re]]);return ht};const Ve="SECRET_COMBOBOX_MODE_DO_NOT_USE",ct=(Ct,He)=>{var ht;const{prefixCls:_e,bordered:Re,className:Ot,rootClassName:it,getPopupContainer:at,popupClassName:Et,dropdownClassName:Ze,listHeight:De=256,placement:ut,listItemHeight:Zt,size:Kt,disabled:tt,notFoundContent:Dt,status:jt,builtinPlacements:An,dropdownMatchSelectWidth:kt,popupMatchSelectWidth:pn,direction:Pt,style:En,allowClear:on,variant:de,dropdownStyle:pe,transitionName:ie,tagRender:ee,maxCount:se,prefix:le}=Ct,Be=Je(Ct,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:We,getPrefixCls:st,renderEmpty:mt,direction:vt,virtual:St,popupMatchSelectWidth:_t,popupOverflow:Qt}=x.useContext(oe.E_),xt=(0,oe.dj)("select"),[,lt]=(0,Ee.ZP)(),Vt=Zt!=null?Zt:lt==null?void 0:lt.controlHeight,Wt=st("select",_e),gn=st(),an=Pt!=null?Pt:vt,{compactSize:en,compactItemClassnames:zn}=(0,Ce.ri)(Wt,an),[Fn,Rt]=(0,we.Z)("select",de,Re),sn=(0,Me.Z)(Wt),[_n,Wn,Lt]=(0,Ke.Z)(Wt,sn),Gt=x.useMemo(()=>{const{mode:Xi}=Ct;if(Xi!=="combobox")return Xi===Ve?"combobox":Xi},[Ct.mode]),nn=Gt==="multiple"||Gt==="tags",wn=(0,je.Z)(Ct.suffixIcon,Ct.showArrow),Gn=(ht=pn!=null?pn:kt)!==null&&ht!==void 0?ht:_t,{status:Er,hasFeedback:ti,isFormItemInput:oi,feedbackIcon:Ar}=x.useContext(Te.aM),Ir=(0,xe.F)(Er,jt);let jn;Dt!==void 0?jn=Dt:Gt==="combobox"?jn=null:jn=(mt==null?void 0:mt("Select"))||x.createElement(Oe.Z,{componentName:"Select"});const{suffixIcon:Hn,itemIcon:Jn,removeIcon:lr,clearIcon:$n}=(0,Qe.Z)(Object.assign(Object.assign({},Be),{multiple:nn,hasFeedback:ti,feedbackIcon:Ar,showSuffixIcon:wn,prefixCls:Wt,componentName:"Select"})),br=on===!0?{clearIcon:$n}:on,Br=(0,ze.Z)(Be,["suffixIcon","itemIcon"]),_r=Le()(Et||Ze,{[`${Wt}-dropdown-${an}`]:an==="rtl"},it,Lt,sn,Wn),mi=(0,Se.Z)(Xi=>{var ur;return(ur=Kt!=null?Kt:en)!==null&&ur!==void 0?ur:Xi}),di=x.useContext(ve.Z),fi=tt!=null?tt:di,Ti=Le()({[`${Wt}-lg`]:mi==="large",[`${Wt}-sm`]:mi==="small",[`${Wt}-rtl`]:an==="rtl",[`${Wt}-${Fn}`]:Rt,[`${Wt}-in-form-item`]:oi},(0,xe.Z)(Wt,Ir,ti),zn,xt.className,Ot,it,Lt,sn,Wn),xi=x.useMemo(()=>ut!==void 0?ut:an==="rtl"?"bottomRight":"bottomLeft",[ut,an]),[io]=(0,Ie.Cn)("SelectLike",pe==null?void 0:pe.zIndex);return _n(x.createElement(qe.ZP,Object.assign({ref:He,virtual:St,showSearch:xt.showSearch},Br,{style:Object.assign(Object.assign({},xt.style),En),dropdownMatchSelectWidth:Gn,transitionName:(0,Ue.m)(gn,"slide-up",ie),builtinPlacements:(0,ke.Z)(An,Qt),listHeight:De,listItemHeight:Vt,mode:Gt,prefixCls:Wt,placement:xi,direction:an,prefix:le,suffixIcon:Hn,menuItemSelectedIcon:Jn,removeIcon:lr,allowClear:br,notFoundContent:jn,className:Ti,getPopupContainer:at||We,dropdownClassName:_r,disabled:fi,dropdownStyle:Object.assign(Object.assign({},pe),{zIndex:io}),maxCount:nn?se:void 0,tagRender:nn?ee:void 0})))},ot=x.forwardRef(ct),pt=(0,he.Z)(ot,"dropdownAlign");ot.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ve,ot.Option=qe.Wx,ot.OptGroup=qe.Xo,ot._InternalPanelDoNotUseOrYouWillBeFired=pt,Mt.default=ot},1722:function(qn,Mt){"use strict";const ae=dt=>{const qe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:dt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},qe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},qe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},qe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},qe),{points:["br","tr"],offset:[0,-4]})}};function x(dt,Le){return dt||ae(Le)}Mt.Z=x},90376:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return _e}});var x=ae(63356),dt=ae(56119),Le=ae(16931),qe=ae(51636),ze=ae(46e3),Ie=ae(93873);const Ue=Re=>{const{optionHeight:Ot,optionFontSize:it,optionLineHeight:at,optionPadding:Et}=Re;return{position:"relative",display:"block",minHeight:Ot,padding:Et,color:Re.colorText,fontWeight:"normal",fontSize:it,lineHeight:at,boxSizing:"border-box"}};var xe=Re=>{const{antCls:Ot,componentCls:it}=Re,at=`${it}-item`,Et=`&${Ot}-slide-up-enter${Ot}-slide-up-enter-active`,Ze=`&${Ot}-slide-up-appear${Ot}-slide-up-appear-active`,De=`&${Ot}-slide-up-leave${Ot}-slide-up-leave-active`,ut=`${it}-dropdown-placement-`,Zt=`${at}-option-selected`;return[{[`${it}-dropdown`]:Object.assign(Object.assign({},(0,x.Wf)(Re)),{position:"absolute",top:-9999,zIndex:Re.zIndexPopup,boxSizing:"border-box",padding:Re.paddingXXS,overflow:"hidden",fontSize:Re.fontSize,fontVariant:"initial",backgroundColor:Re.colorBgElevated,borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary,[`
|
|
|
${Et}${ut}bottomLeft,
|
|
|
${Ze}${ut}bottomLeft
|
|
|
`]:{animationName:ze.fJ},[`
|
|
|
${Et}${ut}topLeft,
|
|
|
${Ze}${ut}topLeft,
|
|
|
${Et}${ut}topRight,
|
|
|
${Ze}${ut}topRight
|
|
|
`]:{animationName:ze.Qt},[`${De}${ut}bottomLeft`]:{animationName:ze.Uw},[`
|
|
|
${De}${ut}topLeft,
|
|
|
${De}${ut}topRight
|
|
|
`]:{animationName:ze.ly},"&-hidden":{display:"none"},[at]:Object.assign(Object.assign({},Ue(Re)),{cursor:"pointer",transition:`background ${Re.motionDurationSlow} ease`,borderRadius:Re.borderRadiusSM,"&-group":{color:Re.colorTextDescription,fontSize:Re.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},x.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${at}-option-disabled)`]:{backgroundColor:Re.optionActiveBg},[`&-selected:not(${at}-option-disabled)`]:{color:Re.optionSelectedColor,fontWeight:Re.optionSelectedFontWeight,backgroundColor:Re.optionSelectedBg,[`${at}-option-state`]:{color:Re.colorPrimary}},"&-disabled":{[`&${at}-option-selected`]:{backgroundColor:Re.colorBgContainerDisabled},color:Re.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Re.calc(Re.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ue(Re)),{color:Re.colorTextDisabled})}),[`${Zt}:has(+ ${Zt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Zt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ze.oN)(Re,"slide-up"),(0,ze.oN)(Re,"slide-down"),(0,Ie.Fm)(Re,"move-up"),(0,Ie.Fm)(Re,"move-down")]},oe=ae(26743),Oe=ae(36237);function ve(Re,Ot){const{componentCls:it,inputPaddingHorizontalBase:at,borderRadius:Et}=Re,Ze=Re.calc(Re.controlHeight).sub(Re.calc(Re.lineWidth).mul(2)).equal(),De=Ot?`${it}-${Ot}`:"";return{[`${it}-single${De}`]:{fontSize:Re.fontSize,height:Re.controlHeight,[`${it}-selector`]:Object.assign(Object.assign({},(0,x.Wf)(Re,!0)),{display:"flex",borderRadius:Et,flex:"1 1 auto",[`${it}-selection-wrap:after`]:{lineHeight:(0,Oe.unit)(Ze)},[`${it}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${it}-selection-item,
|
|
|
${it}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,Oe.unit)(Ze),transition:`all ${Re.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${it}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${it}-selection-item:empty:after`,`${it}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${it}-show-arrow ${it}-selection-item,
|
|
|
&${it}-show-arrow ${it}-selection-search,
|
|
|
&${it}-show-arrow ${it}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Re.showArrowPaddingInlineEnd},[`&${it}-open ${it}-selection-item`]:{color:Re.colorTextPlaceholder},[`&:not(${it}-customize-input)`]:{[`${it}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Oe.unit)(at)}`,[`${it}-selection-search-input`]:{height:Ze,fontSize:Re.fontSize},"&:after":{lineHeight:(0,Oe.unit)(Ze)}}},[`&${it}-customize-input`]:{[`${it}-selector`]:{"&:after":{display:"none"},[`${it}-selection-search`]:{position:"static",width:"100%"},[`${it}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Oe.unit)(at)}`,"&:after":{display:"none"}}}}}}}function Me(Re){const{componentCls:Ot}=Re,it=Re.calc(Re.controlPaddingHorizontalSM).sub(Re.lineWidth).equal();return[ve(Re),ve((0,qe.mergeToken)(Re,{controlHeight:Re.controlHeightSM,borderRadius:Re.borderRadiusSM}),"sm"),{[`${Ot}-single${Ot}-sm`]:{[`&:not(${Ot}-customize-input)`]:{[`${Ot}-selector`]:{padding:`0 ${(0,Oe.unit)(it)}`},[`&${Ot}-show-arrow ${Ot}-selection-search`]:{insetInlineEnd:Re.calc(it).add(Re.calc(Re.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Ot}-show-arrow ${Ot}-selection-item,
|
|
|
&${Ot}-show-arrow ${Ot}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Re.calc(Re.fontSize).mul(1.5).equal()}}}},ve((0,qe.mergeToken)(Re,{controlHeight:Re.singleItemHeightLG,fontSize:Re.fontSizeLG,borderRadius:Re.borderRadiusLG}),"lg")]}const Se=Re=>{const{fontSize:Ot,lineHeight:it,lineWidth:at,controlHeight:Et,controlHeightSM:Ze,controlHeightLG:De,paddingXXS:ut,controlPaddingHorizontal:Zt,zIndexPopupBase:Kt,colorText:tt,fontWeightStrong:Dt,controlItemBgActive:jt,controlItemBgHover:An,colorBgContainer:kt,colorFillSecondary:pn,colorBgContainerDisabled:Pt,colorTextDisabled:En,colorPrimaryHover:on,colorPrimary:de,controlOutline:pe}=Re,ie=ut*2,ee=at*2,se=Math.min(Et-ie,Et-ee),le=Math.min(Ze-ie,Ze-ee),Be=Math.min(De-ie,De-ee);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ut/2),zIndexPopup:Kt+50,optionSelectedColor:tt,optionSelectedFontWeight:Dt,optionSelectedBg:jt,optionActiveBg:An,optionPadding:`${(Et-Ot*it)/2}px ${Zt}px`,optionFontSize:Ot,optionLineHeight:it,optionHeight:Et,selectorBg:kt,clearBg:kt,singleItemHeightLG:De,multipleItemBg:pn,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:le,multipleItemHeightLG:Be,multipleSelectorBgDisabled:Pt,multipleItemColorDisabled:En,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(Re.fontSize*1.25),hoverBorderColor:on,activeBorderColor:de,activeOutlineColor:pe,selectAffixPadding:ut}},Te=(Re,Ot)=>{const{componentCls:it,antCls:at,controlOutlineWidth:Et}=Re;return{[`&:not(${it}-customize-input) ${it}-selector`]:{border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Ot.borderColor}`,background:Re.selectorBg},[`&:not(${it}-disabled):not(${it}-customize-input):not(${at}-pagination-size-changer)`]:{[`&:hover ${it}-selector`]:{borderColor:Ot.hoverBorderHover},[`${it}-focused& ${it}-selector`]:{borderColor:Ot.activeBorderColor,boxShadow:`0 0 0 ${(0,Oe.unit)(Et)} ${Ot.activeOutlineColor}`,outline:0},[`${it}-prefix`]:{color:Ot.color}}}},we=(Re,Ot)=>({[`&${Re.componentCls}-status-${Ot.status}`]:Object.assign({},Te(Re,Ot))}),Ce=Re=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Te(Re,{borderColor:Re.colorBorder,hoverBorderHover:Re.hoverBorderColor,activeBorderColor:Re.activeBorderColor,activeOutlineColor:Re.activeOutlineColor,color:Re.colorText})),we(Re,{status:"error",borderColor:Re.colorError,hoverBorderHover:Re.colorErrorHover,activeBorderColor:Re.colorError,activeOutlineColor:Re.colorErrorOutline,color:Re.colorError})),we(Re,{status:"warning",borderColor:Re.colorWarning,hoverBorderHover:Re.colorWarningHover,activeBorderColor:Re.colorWarning,activeOutlineColor:Re.colorWarningOutline,color:Re.colorWarning})),{[`&${Re.componentCls}-disabled`]:{[`&:not(${Re.componentCls}-customize-input) ${Re.componentCls}-selector`]:{background:Re.colorBgContainerDisabled,color:Re.colorTextDisabled}},[`&${Re.componentCls}-multiple ${Re.componentCls}-selection-item`]:{background:Re.multipleItemBg,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.multipleItemBorderColor}`}})}),Ee=(Re,Ot)=>{const{componentCls:it,antCls:at}=Re;return{[`&:not(${it}-customize-input) ${it}-selector`]:{background:Ot.bg,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} transparent`,color:Ot.color},[`&:not(${it}-disabled):not(${it}-customize-input):not(${at}-pagination-size-changer)`]:{[`&:hover ${it}-selector`]:{background:Ot.hoverBg},[`${it}-focused& ${it}-selector`]:{background:Re.selectorBg,borderColor:Ot.activeBorderColor,outline:0}}}},ke=(Re,Ot)=>({[`&${Re.componentCls}-status-${Ot.status}`]:Object.assign({},Ee(Re,Ot))}),Ke=Re=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ee(Re,{bg:Re.colorFillTertiary,hoverBg:Re.colorFillSecondary,activeBorderColor:Re.activeBorderColor,color:Re.colorText})),ke(Re,{status:"error",bg:Re.colorErrorBg,hoverBg:Re.colorErrorBgHover,activeBorderColor:Re.colorError,color:Re.colorError})),ke(Re,{status:"warning",bg:Re.colorWarningBg,hoverBg:Re.colorWarningBgHover,activeBorderColor:Re.colorWarning,color:Re.colorWarning})),{[`&${Re.componentCls}-disabled`]:{[`&:not(${Re.componentCls}-customize-input) ${Re.componentCls}-selector`]:{borderColor:Re.colorBorder,background:Re.colorBgContainerDisabled,color:Re.colorTextDisabled}},[`&${Re.componentCls}-multiple ${Re.componentCls}-selection-item`]:{background:Re.colorBgContainer,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.colorSplit}`}})}),Qe=Re=>({"&-borderless":{[`${Re.componentCls}-selector`]:{background:"transparent",border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} transparent`},[`&${Re.componentCls}-disabled`]:{[`&:not(${Re.componentCls}-customize-input) ${Re.componentCls}-selector`]:{color:Re.colorTextDisabled}},[`&${Re.componentCls}-multiple ${Re.componentCls}-selection-item`]:{background:Re.multipleItemBg,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.multipleItemBorderColor}`},[`&${Re.componentCls}-status-error`]:{[`${Re.componentCls}-prefix, ${Re.componentCls}-selection-item`]:{color:Re.colorError}},[`&${Re.componentCls}-status-warning`]:{[`${Re.componentCls}-prefix, ${Re.componentCls}-selection-item`]:{color:Re.colorWarning}}}}),je=(Re,Ot)=>{const{componentCls:it,antCls:at}=Re;return{[`&:not(${it}-customize-input) ${it}-selector`]:{borderWidth:`0 0 ${(0,Oe.unit)(Re.lineWidth)} 0`,borderStyle:`none none ${Re.lineType} none`,borderColor:Ot.borderColor,background:Re.selectorBg,borderRadius:0},[`&:not(${it}-disabled):not(${it}-customize-input):not(${at}-pagination-size-changer)`]:{[`&:hover ${it}-selector`]:{borderColor:Ot.hoverBorderHover},[`${it}-focused& ${it}-selector`]:{borderColor:Ot.activeBorderColor,outline:0},[`${it}-prefix`]:{color:Ot.color}}}},Je=(Re,Ot)=>({[`&${Re.componentCls}-status-${Ot.status}`]:Object.assign({},je(Re,Ot))}),Ve=Re=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},je(Re,{borderColor:Re.colorBorder,hoverBorderHover:Re.hoverBorderColor,activeBorderColor:Re.activeBorderColor,activeOutlineColor:Re.activeOutlineColor,color:Re.colorText})),Je(Re,{status:"error",borderColor:Re.colorError,hoverBorderHover:Re.colorErrorHover,activeBorderColor:Re.colorError,activeOutlineColor:Re.colorErrorOutline,color:Re.colorError})),Je(Re,{status:"warning",borderColor:Re.colorWarning,hoverBorderHover:Re.colorWarningHover,activeBorderColor:Re.colorWarning,activeOutlineColor:Re.colorWarningOutline,color:Re.colorWarning})),{[`&${Re.componentCls}-disabled`]:{[`&:not(${Re.componentCls}-customize-input) ${Re.componentCls}-selector`]:{color:Re.colorTextDisabled}},[`&${Re.componentCls}-multiple ${Re.componentCls}-selection-item`]:{background:Re.multipleItemBg,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.multipleItemBorderColor}`}})});var ot=Re=>({[Re.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ce(Re)),Ke(Re)),Qe(Re)),Ve(Re))});const pt=Re=>{const{componentCls:Ot}=Re;return{position:"relative",transition:`all ${Re.motionDurationMid} ${Re.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ot}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ot}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ct=Re=>{const{componentCls:Ot}=Re;return{[`${Ot}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},He=Re=>{const{antCls:Ot,componentCls:it,inputPaddingHorizontalBase:at,iconCls:Et}=Re;return{[it]:Object.assign(Object.assign({},(0,x.Wf)(Re)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${it}-customize-input) ${it}-selector`]:Object.assign(Object.assign({},pt(Re)),Ct(Re)),[`${it}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},x.vS),{[`> ${Ot}-typography`]:{display:"inline"}}),[`${it}-selection-placeholder`]:Object.assign(Object.assign({},x.vS),{flex:1,color:Re.colorTextPlaceholder,pointerEvents:"none"}),[`${it}-arrow`]:Object.assign(Object.assign({},(0,x.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:at,height:Re.fontSizeIcon,marginTop:Re.calc(Re.fontSizeIcon).mul(-1).div(2).equal(),color:Re.colorTextQuaternary,fontSize:Re.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${Re.motionDurationSlow} ease`,[Et]:{verticalAlign:"top",transition:`transform ${Re.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${it}-suffix)`]:{pointerEvents:"auto"}},[`${it}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${it}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${it}-prefix`]:{flex:"none",marginInlineEnd:Re.selectAffixPadding},[`${it}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:at,zIndex:1,display:"inline-block",width:Re.fontSizeIcon,height:Re.fontSizeIcon,marginTop:Re.calc(Re.fontSizeIcon).mul(-1).div(2).equal(),color:Re.colorTextQuaternary,fontSize:Re.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${Re.motionDurationMid} ease, opacity ${Re.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Re.colorTextTertiary}},[`&:hover ${it}-clear`]:{opacity:1,background:Re.colorBgBase,borderRadius:"50%"}}),[`${it}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${it}-has-feedback`]:{[`${it}-clear`]:{insetInlineEnd:Re.calc(at).add(Re.fontSize).add(Re.paddingXS).equal()}}}}}},ht=Re=>{const{componentCls:Ot}=Re;return[{[Ot]:{[`&${Ot}-in-form-item`]:{width:"100%"}}},He(Re),Me(Re),(0,oe.ZP)(Re),xe(Re),{[`${Ot}-rtl`]:{direction:"rtl"}},(0,dt.c)(Re,{borderElCls:`${Ot}-selector`,focusElCls:`${Ot}-focused`})]};var _e=(0,Le.I$)("Select",(Re,Ot)=>{let{rootPrefixCls:it}=Ot;const at=(0,qe.mergeToken)(Re,{rootPrefixCls:it,inputPaddingHorizontalBase:Re.calc(Re.paddingSM).sub(1).equal(),multipleSelectItemHeight:Re.multipleItemHeight,selectHeight:Re.controlHeight});return[ht(at),ot(at)]},Se,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(qn,Mt,ae){"use strict";ae.d(Mt,{_z:function(){return Ie},gp:function(){return qe}});var x=ae(36237),dt=ae(63356),Le=ae(51636);const qe=oe=>{const{multipleSelectItemHeight:Oe,paddingXXS:ve,lineWidth:Me,INTERNAL_FIXED_ITEM_MARGIN:Se}=oe,Te=oe.max(oe.calc(ve).sub(Me).equal(),0),we=oe.max(oe.calc(Te).sub(Se).equal(),0);return{basePadding:Te,containerPadding:we,itemHeight:(0,x.unit)(Oe),itemLineHeight:(0,x.unit)(oe.calc(Oe).sub(oe.calc(oe.lineWidth).mul(2)).equal())}},ze=oe=>{const{multipleSelectItemHeight:Oe,selectHeight:ve,lineWidth:Me}=oe;return oe.calc(ve).sub(Oe).div(2).sub(Me).equal()},Ie=oe=>{const{componentCls:Oe,iconCls:ve,borderRadiusSM:Me,motionDurationSlow:Se,paddingXS:Te,multipleItemColorDisabled:we,multipleItemBorderColorDisabled:Ce,colorIcon:Ee,colorIconHover:ke,INTERNAL_FIXED_ITEM_MARGIN:Ke}=oe;return{[`${Oe}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Oe}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Ke,borderRadius:Me,cursor:"default",transition:`font-size ${Se}, line-height ${Se}, height ${Se}`,marginInlineEnd:oe.calc(Ke).mul(2).equal(),paddingInlineStart:Te,paddingInlineEnd:oe.calc(Te).div(2).equal(),[`${Oe}-disabled&`]:{color:we,borderColor:Ce,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:oe.calc(Te).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,dt.Ro)()),{display:"inline-flex",alignItems:"center",color:Ee,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ve}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ke}})}}}},Ue=(oe,Oe)=>{const{componentCls:ve,INTERNAL_FIXED_ITEM_MARGIN:Me}=oe,Se=`${ve}-selection-overflow`,Te=oe.multipleSelectItemHeight,we=ze(oe),Ce=Oe?`${ve}-${Oe}`:"",Ee=qe(oe);return{[`${ve}-multiple${Ce}`]:Object.assign(Object.assign({},Ie(oe)),{[`${ve}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Ee.basePadding,paddingBlock:Ee.containerPadding,borderRadius:oe.borderRadius,[`${ve}-disabled&`]:{background:oe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,x.unit)(Me)} 0`,lineHeight:(0,x.unit)(Te),visibility:"hidden",content:'"\\a0"'}},[`${ve}-selection-item`]:{height:Ee.itemHeight,lineHeight:(0,x.unit)(Ee.itemLineHeight)},[`${ve}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,x.unit)(Te),marginBlock:Me}},[`${ve}-prefix`]:{marginInlineStart:oe.calc(oe.inputPaddingHorizontalBase).sub(Ee.basePadding).equal()},[`${Se}-item + ${Se}-item,
|
|
|
${ve}-prefix + ${ve}-selection-wrap
|
|
|
`]:{[`${ve}-selection-search`]:{marginInlineStart:0},[`${ve}-selection-placeholder`]:{insetInlineStart:0}},[`${Se}-item-suffix`]:{minHeight:Ee.itemHeight,marginBlock:Me},[`${ve}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:oe.calc(oe.inputPaddingHorizontalBase).sub(we).equal(),"\n &-input,\n &-mirror\n ":{height:Te,fontFamily:oe.fontFamily,lineHeight:(0,x.unit)(Te),transition:`all ${oe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ve}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:oe.calc(oe.inputPaddingHorizontalBase).sub(Ee.basePadding).equal(),insetInlineEnd:oe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${oe.motionDurationSlow}`}})}};function he(oe,Oe){const{componentCls:ve}=oe,Me=Oe?`${ve}-${Oe}`:"",Se={[`${ve}-multiple${Me}`]:{fontSize:oe.fontSize,[`${ve}-selector`]:{[`${ve}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${ve}-show-arrow ${ve}-selector,
|
|
|
&${ve}-allow-clear ${ve}-selector
|
|
|
`]:{paddingInlineEnd:oe.calc(oe.fontSizeIcon).add(oe.controlPaddingHorizontal).equal()}}};return[Ue(oe,Oe),Se]}const xe=oe=>{const{componentCls:Oe}=oe,ve=(0,Le.mergeToken)(oe,{selectHeight:oe.controlHeightSM,multipleSelectItemHeight:oe.multipleItemHeightSM,borderRadius:oe.borderRadiusSM,borderRadiusSM:oe.borderRadiusXS}),Me=(0,Le.mergeToken)(oe,{fontSize:oe.fontSizeLG,selectHeight:oe.controlHeightLG,multipleSelectItemHeight:oe.multipleItemHeightLG,borderRadius:oe.borderRadiusLG,borderRadiusSM:oe.borderRadius});return[he(oe),he(ve,"sm"),{[`${Oe}-multiple${Oe}-sm`]:{[`${Oe}-selection-placeholder`]:{insetInline:oe.calc(oe.controlPaddingHorizontalSM).sub(oe.lineWidth).equal()},[`${Oe}-selection-search`]:{marginInlineStart:2}}},he(Me,"lg")]};Mt.ZP=xe},68525:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});var x=ae(59301),dt=ae(40001),Le=ae(19248),qe=ae(99267),ze=ae(84105),Ie=ae(58617),Ue=ae(47472);function he(xe){let{suffixIcon:oe,clearIcon:Oe,menuItemSelectedIcon:ve,removeIcon:Me,loading:Se,multiple:Te,hasFeedback:we,prefixCls:Ce,showSuffixIcon:Ee,feedbackIcon:ke,showArrow:Ke,componentName:Qe}=xe;const je=Oe!=null?Oe:x.createElement(Le.Z,null),Je=pt=>oe===null&&!we&&!Ke?null:x.createElement(x.Fragment,null,Ee!==!1&&pt,we&&ke);let Ve=null;if(oe!==void 0)Ve=Je(oe);else if(Se)Ve=Je(x.createElement(Ie.Z,{spin:!0}));else{const pt=`${Ce}-suffix`;Ve=Ct=>{let{open:He,showSearch:ht}=Ct;return Je(He&&ht?x.createElement(Ue.Z,{className:pt}):x.createElement(ze.Z,{className:pt}))}}let ct=null;ve!==void 0?ct=ve:Te?ct=x.createElement(dt.Z,null):ct=null;let ot=null;return Me!==void 0?ot=Me:ot=x.createElement(qe.Z,null),{clearIcon:je,suffixIcon:Ve,itemIcon:ct,removeIcon:ot}}},90005:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return x}});function x(dt,Le){return Le!==void 0?Le:dt!==null}},11938:function(qn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return Ct}});var x=ae(59301),dt=ae(40192),Le=ae(22703),qe=ae(92310),ze=ae.n(qe),Ie=ae(26112),Ue=ae(48755),he=ae(458),oe=He=>{const{value:ht,formatter:_e,precision:Re,decimalSeparator:Ot,groupSeparator:it="",prefixCls:at}=He;let Et;if(typeof _e=="function")Et=_e(ht);else{const Ze=String(ht),De=Ze.match(/^(-?)(\d*)(\.(\d+))?$/);if(!De||Ze==="-")Et=Ze;else{const ut=De[1];let Zt=De[2]||"0",Kt=De[4]||"";Zt=Zt.replace(/\B(?=(\d{3})+(?!\d))/g,it),typeof Re=="number"&&(Kt=Kt.padEnd(Re,"0").slice(0,Re>0?Re:0)),Kt&&(Kt=`${Ot}${Kt}`),Et=[x.createElement("span",{key:"int",className:`${at}-content-value-int`},ut,Zt),Kt&&x.createElement("span",{key:"decimal",className:`${at}-content-value-decimal`},Kt)]}}return x.createElement("span",{className:`${at}-content-value`},Et)},Oe=ae(63356),ve=ae(16931),Me=ae(51636);const Se=He=>{const{componentCls:ht,marginXXS:_e,padding:Re,colorTextDescription:Ot,titleFontSize:it,colorTextHeading:at,contentFontSize:Et,fontFamily:Ze}=He;return{[ht]:Object.assign(Object.assign({},(0,Oe.Wf)(He)),{[`${ht}-title`]:{marginBottom:_e,color:Ot,fontSize:it},[`${ht}-skeleton`]:{paddingTop:Re},[`${ht}-content`]:{color:at,fontSize:Et,fontFamily:Ze,[`${ht}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ht}-content-prefix, ${ht}-content-suffix`]:{display:"inline-block"},[`${ht}-content-prefix`]:{marginInlineEnd:_e},[`${ht}-content-suffix`]:{marginInlineStart:_e}}})}},Te=He=>{const{fontSizeHeading3:ht,fontSize:_e}=He;return{titleFontSize:_e,contentFontSize:ht}};var we=(0,ve.I$)("Statistic",He=>{const ht=(0,Me.mergeToken)(He,{});return[Se(ht)]},Te),Ce=function(He,ht){var _e={};for(var Re in He)Object.prototype.hasOwnProperty.call(He,Re)&&ht.indexOf(Re)<0&&(_e[Re]=He[Re]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Re=Object.getOwnPropertySymbols(He);Ot<Re.length;Ot++)ht.indexOf(Re[Ot])<0&&Object.prototype.propertyIsEnumerable.call(He,Re[Ot])&&(_e[Re[Ot]]=He[Re[Ot]]);return _e},ke=He=>{const{prefixCls:ht,className:_e,rootClassName:Re,style:Ot,valueStyle:it,value:at=0,title:Et,valueRender:Ze,prefix:De,suffix:ut,loading:Zt=!1,formatter:Kt,precision:tt,decimalSeparator:Dt=".",groupSeparator:jt=",",onMouseEnter:An,onMouseLeave:kt}=He,pn=Ce(He,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Pt,direction:En,className:on,style:de}=(0,Ue.dj)("statistic"),pe=Pt("statistic",ht),[ie,ee,se]=we(pe),le=x.createElement(oe,{decimalSeparator:Dt,groupSeparator:jt,prefixCls:pe,formatter:Kt,precision:tt,value:at}),Be=ze()(pe,{[`${pe}-rtl`]:En==="rtl"},on,_e,Re,ee,se),We=(0,Ie.Z)(pn,{aria:!0,data:!0});return ie(x.createElement("div",Object.assign({},We,{className:Be,style:Object.assign(Object.assign({},de),Ot),onMouseEnter:An,onMouseLeave:kt}),Et&&x.createElement("div",{className:`${pe}-title`},Et),x.createElement(he.Z,{paragraph:!1,loading:Zt,className:`${pe}-skeleton`},x.createElement("div",{style:it,className:`${pe}-content`},De&&x.createElement("span",{className:`${pe}-content-prefix`},De),Ze?Ze(le):le,ut&&x.createElement("span",{className:`${pe}-content-suffix`},ut)))))};const Ke=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Qe(He,ht){let _e=He;const Re=/\[[^\]]*]/g,Ot=(ht.match(Re)||[]).map(Ze=>Ze.slice(1,-1)),it=ht.replace(Re,"[]"),at=Ke.reduce((Ze,De)=>{let[ut,Zt]=De;if(Ze.includes(ut)){const Kt=Math.floor(_e/Zt);return _e-=Kt*Zt,Ze.replace(new RegExp(`${ut}+`,"g"),tt=>{const Dt=tt.length;return Kt.toString().padStart(Dt,"0")})}return Ze},it);let Et=0;return at.replace(Re,()=>{const Ze=Ot[Et];return Et+=1,Ze})}function je(He,ht){const{format:_e=""}=ht,Re=new Date(He).getTime(),Ot=Date.now(),it=Math.max(Re-Ot,0);return Qe(it,_e)}var Je=function(He,ht){var _e={};for(var Re in He)Object.prototype.hasOwnProperty.call(He,Re)&&ht.indexOf(Re)<0&&(_e[Re]=He[Re]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Re=Object.getOwnPropertySymbols(He);Ot<Re.length;Ot++)ht.indexOf(Re[Ot])<0&&Object.prototype.propertyIsEnumerable.call(He,Re[Ot])&&(_e[Re[Ot]]=He[Re[Ot]]);return _e};const Ve=1e3/30;function ct(He){return new Date(He).getTime()}const ot=He=>{const{value:ht,format:_e="HH:mm:ss",onChange:Re,onFinish:Ot}=He,it=Je(He,["value","format","onChange","onFinish"]),at=(0,dt.Z)(),Et=x.useRef(null),Ze=()=>{Ot==null||Ot(),Et.current&&(clearInterval(Et.current),Et.current=null)},De=()=>{const Kt=ct(ht);Kt>=Date.now()&&(Et.current=setInterval(()=>{at(),Re==null||Re(Kt-Date.now()),Kt<Date.now()&&Ze()},Ve))};x.useEffect(()=>(De(),()=>{Et.current&&(clearInterval(Et.current),Et.current=null)}),[ht]);const ut=(Kt,tt)=>je(Kt,Object.assign(Object.assign({},tt),{format:_e})),Zt=Kt=>(0,Le.Tm)(Kt,{title:void 0});return x.createElement(ke,Object.assign({},it,{value:ht,valueRender:Zt,formatter:ut}))};var pt=x.memo(ot);ke.Countdown=pt;var Ct=ke},58755:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ot}});var x=ae(59301),dt=ae(58617),Le=ae(92310),qe=ae.n(Le),ze=ae(60499),Ie=ae(18642),Ue=ae(72190),he=ae(42244),xe=ae(18929),oe=ae(10228),Oe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ve=x.forwardRef(function(it,at){var Et,Ze=it.prefixCls,De=Ze===void 0?"rc-switch":Ze,ut=it.className,Zt=it.checked,Kt=it.defaultChecked,tt=it.disabled,Dt=it.loadingIcon,jt=it.checkedChildren,An=it.unCheckedChildren,kt=it.onClick,pn=it.onChange,Pt=it.onKeyDown,En=(0,he.Z)(it,Oe),on=(0,xe.Z)(!1,{value:Zt,defaultValue:Kt}),de=(0,Ue.Z)(on,2),pe=de[0],ie=de[1];function ee(We,st){var mt=pe;return tt||(mt=We,ie(mt),pn==null||pn(mt,st)),mt}function se(We){We.which===oe.Z.LEFT?ee(!1,We):We.which===oe.Z.RIGHT&&ee(!0,We),Pt==null||Pt(We)}function le(We){var st=ee(!pe,We);kt==null||kt(st,We)}var Be=qe()(De,ut,(Et={},(0,Ie.Z)(Et,"".concat(De,"-checked"),pe),(0,Ie.Z)(Et,"".concat(De,"-disabled"),tt),Et));return x.createElement("button",(0,ze.Z)({},En,{type:"button",role:"switch","aria-checked":pe,disabled:tt,className:Be,ref:at,onKeyDown:se,onClick:le}),Dt,x.createElement("span",{className:"".concat(De,"-inner")},x.createElement("span",{className:"".concat(De,"-inner-checked")},jt),x.createElement("span",{className:"".concat(De,"-inner-unchecked")},An)))});ve.displayName="Switch";var Me=ve,Se=ae(12919),Te=ae(48755),we=ae(2171),Ce=ae(31756),Ee=ae(36237),ke=ae(17835),Ke=ae(63356),Qe=ae(16931),je=ae(51636);const Je=it=>{const{componentCls:at,trackHeightSM:Et,trackPadding:Ze,trackMinWidthSM:De,innerMinMarginSM:ut,innerMaxMarginSM:Zt,handleSizeSM:Kt,calc:tt}=it,Dt=`${at}-inner`,jt=(0,Ee.unit)(tt(Kt).add(tt(Ze).mul(2)).equal()),An=(0,Ee.unit)(tt(Zt).mul(2).equal());return{[at]:{[`&${at}-small`]:{minWidth:De,height:Et,lineHeight:(0,Ee.unit)(Et),[`${at}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:ut,[`${Dt}-checked, ${Dt}-unchecked`]:{minHeight:Et},[`${Dt}-checked`]:{marginInlineStart:`calc(-100% + ${jt} - ${An})`,marginInlineEnd:`calc(100% - ${jt} + ${An})`},[`${Dt}-unchecked`]:{marginTop:tt(Et).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${at}-handle`]:{width:Kt,height:Kt},[`${at}-loading-icon`]:{top:tt(tt(Kt).sub(it.switchLoadingIconSize)).div(2).equal(),fontSize:it.switchLoadingIconSize},[`&${at}-checked`]:{[`${at}-inner`]:{paddingInlineStart:ut,paddingInlineEnd:Zt,[`${Dt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Dt}-unchecked`]:{marginInlineStart:`calc(100% - ${jt} + ${An})`,marginInlineEnd:`calc(-100% + ${jt} - ${An})`}},[`${at}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ee.unit)(tt(Kt).add(Ze).equal())})`}},[`&:not(${at}-disabled):active`]:{[`&:not(${at}-checked) ${Dt}`]:{[`${Dt}-unchecked`]:{marginInlineStart:tt(it.marginXXS).div(2).equal(),marginInlineEnd:tt(it.marginXXS).mul(-1).div(2).equal()}},[`&${at}-checked ${Dt}`]:{[`${Dt}-checked`]:{marginInlineStart:tt(it.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:tt(it.marginXXS).div(2).equal()}}}}}}},Ve=it=>{const{componentCls:at,handleSize:Et,calc:Ze}=it;return{[at]:{[`${at}-loading-icon${it.iconCls}`]:{position:"relative",top:Ze(Ze(Et).sub(it.fontSize)).div(2).equal(),color:it.switchLoadingIconColor,verticalAlign:"top"},[`&${at}-checked ${at}-loading-icon`]:{color:it.switchColor}}}},ct=it=>{const{componentCls:at,trackPadding:Et,handleBg:Ze,handleShadow:De,handleSize:ut,calc:Zt}=it,Kt=`${at}-handle`;return{[at]:{[Kt]:{position:"absolute",top:Et,insetInlineStart:Et,width:ut,height:ut,transition:`all ${it.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ze,borderRadius:Zt(ut).div(2).equal(),boxShadow:De,transition:`all ${it.switchDuration} ease-in-out`,content:'""'}},[`&${at}-checked ${Kt}`]:{insetInlineStart:`calc(100% - ${(0,Ee.unit)(Zt(ut).add(Et).equal())})`},[`&:not(${at}-disabled):active`]:{[`${Kt}::before`]:{insetInlineEnd:it.switchHandleActiveInset,insetInlineStart:0},[`&${at}-checked ${Kt}::before`]:{insetInlineEnd:0,insetInlineStart:it.switchHandleActiveInset}}}}},ot=it=>{const{componentCls:at,trackHeight:Et,trackPadding:Ze,innerMinMargin:De,innerMaxMargin:ut,handleSize:Zt,calc:Kt}=it,tt=`${at}-inner`,Dt=(0,Ee.unit)(Kt(Zt).add(Kt(Ze).mul(2)).equal()),jt=(0,Ee.unit)(Kt(ut).mul(2).equal());return{[at]:{[tt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ut,paddingInlineEnd:De,transition:`padding-inline-start ${it.switchDuration} ease-in-out, padding-inline-end ${it.switchDuration} ease-in-out`,[`${tt}-checked, ${tt}-unchecked`]:{display:"block",color:it.colorTextLightSolid,fontSize:it.fontSizeSM,transition:`margin-inline-start ${it.switchDuration} ease-in-out, margin-inline-end ${it.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Et},[`${tt}-checked`]:{marginInlineStart:`calc(-100% + ${Dt} - ${jt})`,marginInlineEnd:`calc(100% - ${Dt} + ${jt})`},[`${tt}-unchecked`]:{marginTop:Kt(Et).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${at}-checked ${tt}`]:{paddingInlineStart:De,paddingInlineEnd:ut,[`${tt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${tt}-unchecked`]:{marginInlineStart:`calc(100% - ${Dt} + ${jt})`,marginInlineEnd:`calc(-100% + ${Dt} - ${jt})`}},[`&:not(${at}-disabled):active`]:{[`&:not(${at}-checked) ${tt}`]:{[`${tt}-unchecked`]:{marginInlineStart:Kt(Ze).mul(2).equal(),marginInlineEnd:Kt(Ze).mul(-1).mul(2).equal()}},[`&${at}-checked ${tt}`]:{[`${tt}-checked`]:{marginInlineStart:Kt(Ze).mul(-1).mul(2).equal(),marginInlineEnd:Kt(Ze).mul(2).equal()}}}}}},pt=it=>{const{componentCls:at,trackHeight:Et,trackMinWidth:Ze}=it;return{[at]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(it)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ze,height:Et,lineHeight:(0,Ee.unit)(Et),verticalAlign:"middle",background:it.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${it.motionDurationMid}`,userSelect:"none",[`&:hover:not(${at}-disabled)`]:{background:it.colorTextTertiary}}),(0,Ke.Qy)(it)),{[`&${at}-checked`]:{background:it.switchColor,[`&:hover:not(${at}-disabled)`]:{background:it.colorPrimaryHover}},[`&${at}-loading, &${at}-disabled`]:{cursor:"not-allowed",opacity:it.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${at}-rtl`]:{direction:"rtl"}})}},Ct=it=>{const{fontSize:at,lineHeight:Et,controlHeight:Ze,colorWhite:De}=it,ut=at*Et,Zt=Ze/2,Kt=2,tt=ut-Kt*2,Dt=Zt-Kt*2;return{trackHeight:ut,trackHeightSM:Zt,trackMinWidth:tt*2+Kt*4,trackMinWidthSM:Dt*2+Kt*2,trackPadding:Kt,handleBg:De,handleSize:tt,handleSizeSM:Dt,handleShadow:`0 2px 4px 0 ${new ke.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:tt/2,innerMaxMargin:tt+Kt+Kt*2,innerMinMarginSM:Dt/2,innerMaxMarginSM:Dt+Kt+Kt*2}};var He=(0,Qe.I$)("Switch",it=>{const at=(0,je.mergeToken)(it,{switchDuration:it.motionDurationMid,switchColor:it.colorPrimary,switchDisabledOpacity:it.opacityLoading,switchLoadingIconSize:it.calc(it.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${it.opacityLoading})`,switchHandleActiveInset:"-30%"});return[pt(at),ot(at),ct(at),Ve(at),Je(at)]},Ct),ht=function(it,at){var Et={};for(var Ze in it)Object.prototype.hasOwnProperty.call(it,Ze)&&at.indexOf(Ze)<0&&(Et[Ze]=it[Ze]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ze=Object.getOwnPropertySymbols(it);De<Ze.length;De++)at.indexOf(Ze[De])<0&&Object.prototype.propertyIsEnumerable.call(it,Ze[De])&&(Et[Ze[De]]=it[Ze[De]]);return Et};const Re=x.forwardRef((it,at)=>{const{prefixCls:Et,size:Ze,disabled:De,loading:ut,className:Zt,rootClassName:Kt,style:tt,checked:Dt,value:jt,defaultChecked:An,defaultValue:kt,onChange:pn}=it,Pt=ht(it,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[En,on]=(0,xe.Z)(!1,{value:Dt!=null?Dt:jt,defaultValue:An!=null?An:kt}),{getPrefixCls:de,direction:pe,switch:ie}=x.useContext(Te.E_),ee=x.useContext(we.Z),se=(De!=null?De:ee)||ut,le=de("switch",Et),Be=x.createElement("div",{className:`${le}-handle`},ut&&x.createElement(dt.Z,{className:`${le}-loading-icon`})),[We,st,mt]=He(le),vt=(0,Ce.Z)(Ze),St=qe()(ie==null?void 0:ie.className,{[`${le}-small`]:vt==="small",[`${le}-loading`]:ut,[`${le}-rtl`]:pe==="rtl"},Zt,Kt,st,mt),_t=Object.assign(Object.assign({},ie==null?void 0:ie.style),tt),Qt=function(){on(arguments.length<=0?void 0:arguments[0]),pn==null||pn.apply(void 0,arguments)};return We(x.createElement(Se.Z,{component:"Switch"},x.createElement(Me,Object.assign({},Pt,{checked:En,onChange:Qt,prefixCls:le,className:St,style:_t,disabled:se,ref:at,loadingIcon:Be}))))});Re.__ANT_SWITCH=!0;var Ot=Re},70858:function(qn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return hp}});var x=ae(59301),dt={},Le="rc-table-internal-hook",qe=ae(72190),ze=ae(6089),Ie=ae(34280),Ue=ae(13697),he=ae(4676);function xe(bt){var wt=x.createContext(void 0),Xt=function(Sn){var kn=Sn.value,sr=Sn.children,er=x.useRef(kn);er.current=kn;var vr=x.useState(function(){return{getValue:function(){return er.current},listeners:new Set}}),fr=(0,qe.Z)(vr,1),si=fr[0];return(0,Ie.Z)(function(){(0,he.unstable_batchedUpdates)(function(){si.listeners.forEach(function(jr){jr(kn)})})},[kn]),x.createElement(wt.Provider,{value:si},sr)};return{Context:wt,Provider:Xt,defaultValue:bt}}function oe(bt,wt){var Xt=(0,ze.Z)(typeof wt=="function"?wt:function(jr){if(wt===void 0)return jr;if(!Array.isArray(wt))return jr[wt];var Qr={};return wt.forEach(function(Lr){Qr[Lr]=jr[Lr]}),Qr}),un=x.useContext(bt==null?void 0:bt.Context),Sn=un||{},kn=Sn.listeners,sr=Sn.getValue,er=x.useRef();er.current=Xt(un?sr():bt==null?void 0:bt.defaultValue);var vr=x.useState({}),fr=(0,qe.Z)(vr,2),si=fr[1];return(0,Ie.Z)(function(){if(!un)return;function jr(Qr){var Lr=Xt(Qr);(0,Ue.Z)(er.current,Lr,!0)||si({})}return kn.add(jr),function(){kn.delete(jr)}},[un]),er.current}var Oe=ae(60499),ve=ae(8654);function Me(){var bt=x.createContext(null);function wt(){return x.useContext(bt)}function Xt(Sn,kn){var sr=(0,ve.Yr)(Sn),er=function(fr,si){var jr=sr?{ref:si}:{},Qr=x.useRef(0),Lr=x.useRef(fr),Sr=wt();return Sr!==null?x.createElement(Sn,(0,Oe.Z)({},fr,jr)):((!kn||kn(Lr.current,fr))&&(Qr.current+=1),Lr.current=fr,x.createElement(bt.Provider,{value:Qr.current},x.createElement(Sn,(0,Oe.Z)({},fr,jr))))};return sr?x.forwardRef(er):er}function un(Sn,kn){var sr=(0,ve.Yr)(Sn),er=function(fr,si){var jr=sr?{ref:si}:{};return wt(),x.createElement(Sn,(0,Oe.Z)({},fr,jr))};return sr?x.memo(x.forwardRef(er),kn):x.memo(er,kn)}return{makeImmutable:Xt,responseImmutable:un,useImmutableMark:wt}}var Se=Me(),Te=Se.makeImmutable,we=Se.responseImmutable,Ce=Se.useImmutableMark,Ee=Me(),ke=Ee.makeImmutable,Ke=Ee.responseImmutable,Qe=Ee.useImmutableMark,je=xe(),Je=je;function Ve(bt,wt){var Xt=React.useRef(0);Xt.current+=1;var un=React.useRef(bt),Sn=[];Object.keys(bt||{}).map(function(sr){var er;(bt==null?void 0:bt[sr])!==((er=un.current)===null||er===void 0?void 0:er[sr])&&Sn.push(sr)}),un.current=bt;var kn=React.useRef([]);return Sn.length&&(kn.current=Sn),React.useDebugValue(Xt.current),React.useDebugValue(kn.current.join(", ")),wt&&console.log("".concat(wt,":"),Xt.current,kn.current),Xt.current}var ct=null,ot=null,pt=ae(43749),Ct=ae(85899),He=ae(18642),ht=ae(92310),_e=ae.n(ht),Re=ae(80547),Ot=ae(97938),it=ae(48736),at=x.createContext({renderWithProps:!1}),Et=at,Ze="RC_TABLE_KEY";function De(bt){return bt==null?[]:Array.isArray(bt)?bt:[bt]}function ut(bt){var wt=[],Xt={};return bt.forEach(function(un){for(var Sn=un||{},kn=Sn.key,sr=Sn.dataIndex,er=kn||De(sr).join("-")||Ze;Xt[er];)er="".concat(er,"_next");Xt[er]=!0,wt.push(er)}),wt}function Zt(bt){return bt!=null}function Kt(bt){return typeof bt=="number"&&!Number.isNaN(bt)}function tt(bt){return bt&&(0,pt.Z)(bt)==="object"&&!Array.isArray(bt)&&!x.isValidElement(bt)}function Dt(bt,wt,Xt,un,Sn,kn){var sr=x.useContext(Et),er=Qe(),vr=(0,Re.Z)(function(){if(Zt(un))return[un];var fr=wt==null||wt===""?[]:Array.isArray(wt)?wt:[wt],si=(0,Ot.Z)(bt,fr),jr=si,Qr=void 0;if(Sn){var Lr=Sn(si,bt,Xt);tt(Lr)?(jr=Lr.children,Qr=Lr.props,sr.renderWithProps=!0):jr=Lr}return[jr,Qr]},[er,bt,un,wt,Sn,Xt],function(fr,si){if(kn){var jr=(0,qe.Z)(fr,2),Qr=jr[1],Lr=(0,qe.Z)(si,2),Sr=Lr[1];return kn(Sr,Qr)}return sr.renderWithProps?!0:!(0,Ue.Z)(fr,si,!0)});return vr}function jt(bt,wt,Xt,un){var Sn=bt+wt-1;return bt<=un&&Sn>=Xt}function An(bt,wt){return oe(Je,function(Xt){var un=jt(bt,wt||1,Xt.hoverStartRow,Xt.hoverEndRow);return[un,Xt.onHover]})}var kt=ae(70425),pn=function(wt){var Xt=wt.ellipsis,un=wt.rowType,Sn=wt.children,kn,sr=Xt===!0?{showTitle:!0}:Xt;return sr&&(sr.showTitle||un==="header")&&(typeof Sn=="string"||typeof Sn=="number"?kn=Sn.toString():x.isValidElement(Sn)&&typeof Sn.props.children=="string"&&(kn=Sn.props.children)),kn};function Pt(bt){var wt,Xt,un,Sn,kn,sr,er,vr,fr=bt.component,si=bt.children,jr=bt.ellipsis,Qr=bt.scope,Lr=bt.prefixCls,Sr=bt.className,Wi=bt.align,yi=bt.record,to=bt.render,uo=bt.dataIndex,qi=bt.renderIndex,mo=bt.shouldCellUpdate,Eo=bt.index,Uo=bt.rowType,Po=bt.colSpan,_a=bt.rowSpan,la=bt.fixLeft,na=bt.fixRight,zo=bt.firstFixLeft,Ro=bt.lastFixLeft,Ho=bt.firstFixRight,wo=bt.lastFixRight,fo=bt.appendNode,To=bt.additionalProps,Go=To===void 0?{}:To,oa=bt.isSticky,Co="".concat(Lr,"-cell"),qa=oe(Je,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Za=qa.supportSticky,Ml=qa.allColumnsFixedLeft,Sl=qa.rowHoverable,ul=Dt(yi,uo,qi,si,to,mo),co=(0,qe.Z)(ul,2),ql=co[0],cs=co[1],os={},ol=typeof la=="number"&&Za,fu=typeof na=="number"&&Za;ol&&(os.position="sticky",os.left=la),fu&&(os.position="sticky",os.right=na);var aa=(wt=(Xt=(un=cs==null?void 0:cs.colSpan)!==null&&un!==void 0?un:Go.colSpan)!==null&&Xt!==void 0?Xt:Po)!==null&&wt!==void 0?wt:1,ba=(Sn=(kn=(sr=cs==null?void 0:cs.rowSpan)!==null&&sr!==void 0?sr:Go.rowSpan)!==null&&kn!==void 0?kn:_a)!==null&&Sn!==void 0?Sn:1,Vo=An(Eo,ba),No=(0,qe.Z)(Vo,2),ps=No[0],Fs=No[1],Vs=(0,kt.zX)(function(nl){var Xs;yi&&Fs(Eo,Eo+ba-1),Go==null||(Xs=Go.onMouseEnter)===null||Xs===void 0||Xs.call(Go,nl)}),Ks=(0,kt.zX)(function(nl){var Xs;yi&&Fs(-1,-1),Go==null||(Xs=Go.onMouseLeave)===null||Xs===void 0||Xs.call(Go,nl)});if(aa===0||ba===0)return null;var cl=(er=Go.title)!==null&&er!==void 0?er:pn({rowType:Uo,ellipsis:jr,children:ql}),gu=_e()(Co,Sr,(vr={},(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)(vr,"".concat(Co,"-fix-left"),ol&&Za),"".concat(Co,"-fix-left-first"),zo&&Za),"".concat(Co,"-fix-left-last"),Ro&&Za),"".concat(Co,"-fix-left-all"),Ro&&Ml&&Za),"".concat(Co,"-fix-right"),fu&&Za),"".concat(Co,"-fix-right-first"),Ho&&Za),"".concat(Co,"-fix-right-last"),wo&&Za),"".concat(Co,"-ellipsis"),jr),"".concat(Co,"-with-append"),fo),"".concat(Co,"-fix-sticky"),(ol||fu)&&oa&&Za),(0,He.Z)(vr,"".concat(Co,"-row-hover"),!cs&&ps)),Go.className,cs==null?void 0:cs.className),ua={};Wi&&(ua.textAlign=Wi);var ta=(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},cs==null?void 0:cs.style),os),ua),Go.style),Bs=ql;return(0,pt.Z)(Bs)==="object"&&!Array.isArray(Bs)&&!x.isValidElement(Bs)&&(Bs=null),jr&&(Ro||Ho)&&(Bs=x.createElement("span",{className:"".concat(Co,"-content")},Bs)),x.createElement(fr,(0,Oe.Z)({},cs,Go,{className:gu,style:ta,title:cl,scope:Qr,onMouseEnter:Sl?Vs:void 0,onMouseLeave:Sl?Ks:void 0,colSpan:aa!==1?aa:null,rowSpan:ba!==1?ba:null}),fo,Bs)}var En=x.memo(Pt);function on(bt,wt,Xt,un,Sn){var kn=Xt[bt]||{},sr=Xt[wt]||{},er,vr;kn.fixed==="left"?er=un.left[Sn==="rtl"?wt:bt]:sr.fixed==="right"&&(vr=un.right[Sn==="rtl"?bt:wt]);var fr=!1,si=!1,jr=!1,Qr=!1,Lr=Xt[wt+1],Sr=Xt[bt-1],Wi=Lr&&!Lr.fixed||Sr&&!Sr.fixed||Xt.every(function(mo){return mo.fixed==="left"});if(Sn==="rtl"){if(er!==void 0){var yi=Sr&&Sr.fixed==="left";Qr=!yi&&Wi}else if(vr!==void 0){var to=Lr&&Lr.fixed==="right";jr=!to&&Wi}}else if(er!==void 0){var uo=Lr&&Lr.fixed==="left";fr=!uo&&Wi}else if(vr!==void 0){var qi=Sr&&Sr.fixed==="right";si=!qi&&Wi}return{fixLeft:er,fixRight:vr,lastFixLeft:fr,firstFixRight:si,lastFixRight:jr,firstFixLeft:Qr,isSticky:un.isSticky}}var de=x.createContext({}),pe=de;function ie(bt){var wt=bt.className,Xt=bt.index,un=bt.children,Sn=bt.colSpan,kn=Sn===void 0?1:Sn,sr=bt.rowSpan,er=bt.align,vr=oe(Je,["prefixCls","direction"]),fr=vr.prefixCls,si=vr.direction,jr=x.useContext(pe),Qr=jr.scrollColumnIndex,Lr=jr.stickyOffsets,Sr=jr.flattenColumns,Wi=Xt+kn-1,yi=Wi+1===Qr?kn+1:kn,to=on(Xt,Xt+yi-1,Sr,Lr,si);return x.createElement(En,(0,Oe.Z)({className:wt,index:Xt,component:"td",prefixCls:fr,record:null,dataIndex:null,align:er,colSpan:yi,rowSpan:sr,render:function(){return un}},to))}var ee=ae(42244),se=["children"];function le(bt){var wt=bt.children,Xt=(0,ee.Z)(bt,se);return x.createElement("tr",Xt,wt)}function Be(bt){var wt=bt.children;return wt}Be.Row=le,Be.Cell=ie;var We=Be;function st(bt){var wt=bt.children,Xt=bt.stickyOffsets,un=bt.flattenColumns,Sn=oe(Je,"prefixCls"),kn=un.length-1,sr=un[kn],er=x.useMemo(function(){return{stickyOffsets:Xt,flattenColumns:un,scrollColumnIndex:sr!=null&&sr.scrollbar?kn:null}},[sr,un,kn,Xt]);return x.createElement(pe.Provider,{value:er},x.createElement("tfoot",{className:"".concat(Sn,"-summary")},wt))}var mt=Ke(st),vt=We,St=ae(29301),_t=ae(24514),Qt=ae(75152),xt=ae(26112);function lt(bt,wt,Xt,un,Sn,kn,sr){bt.push({record:wt,indent:Xt,index:sr});var er=kn(wt),vr=Sn==null?void 0:Sn.has(er);if(wt&&Array.isArray(wt[un])&&vr)for(var fr=0;fr<wt[un].length;fr+=1)lt(bt,wt[un][fr],Xt+1,un,Sn,kn,fr)}function Vt(bt,wt,Xt,un){var Sn=x.useMemo(function(){if(Xt!=null&&Xt.size){for(var kn=[],sr=0;sr<(bt==null?void 0:bt.length);sr+=1){var er=bt[sr];lt(kn,er,0,wt,Xt,un,sr)}return kn}return bt==null?void 0:bt.map(function(vr,fr){return{record:vr,indent:0,index:fr}})},[bt,wt,Xt,un]);return Sn}function Wt(bt,wt,Xt,un){var Sn=oe(Je,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),kn=Sn.flattenColumns,sr=Sn.expandableType,er=Sn.expandedKeys,vr=Sn.childrenColumnName,fr=Sn.onTriggerExpand,si=Sn.rowExpandable,jr=Sn.onRow,Qr=Sn.expandRowByClick,Lr=Sn.rowClassName,Sr=sr==="nest",Wi=sr==="row"&&(!si||si(bt)),yi=Wi||Sr,to=er&&er.has(wt),uo=vr&&bt&&bt[vr],qi=(0,kt.zX)(fr),mo=jr==null?void 0:jr(bt,Xt),Eo=mo==null?void 0:mo.onClick,Uo=function(na){Qr&&yi&&fr(bt,na);for(var zo=arguments.length,Ro=new Array(zo>1?zo-1:0),Ho=1;Ho<zo;Ho++)Ro[Ho-1]=arguments[Ho];Eo==null||Eo.apply(void 0,[na].concat(Ro))},Po;typeof Lr=="string"?Po=Lr:typeof Lr=="function"&&(Po=Lr(bt,Xt,un));var _a=ut(kn);return(0,Ct.Z)((0,Ct.Z)({},Sn),{},{columnsKey:_a,nestExpandable:Sr,expanded:to,hasNestChildren:uo,record:bt,onTriggerExpand:qi,rowSupportExpand:Wi,expandable:yi,rowProps:(0,Ct.Z)((0,Ct.Z)({},mo),{},{className:_e()(Po,mo==null?void 0:mo.className),onClick:Uo})})}function gn(bt){var wt=bt.prefixCls,Xt=bt.children,un=bt.component,Sn=bt.cellComponent,kn=bt.className,sr=bt.expanded,er=bt.colSpan,vr=bt.isEmpty,fr=oe(Je,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),si=fr.scrollbarSize,jr=fr.fixHeader,Qr=fr.fixColumn,Lr=fr.componentWidth,Sr=fr.horizonScroll,Wi=Xt;return(vr?Sr&&Lr:Qr)&&(Wi=x.createElement("div",{style:{width:Lr-(jr&&!vr?si:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(wt,"-expanded-row-fixed")},Wi)),x.createElement(un,{className:kn,style:{display:sr?null:"none"}},x.createElement(En,{component:Sn,prefixCls:wt,colSpan:er},Wi))}var an=gn;function en(bt){var wt=bt.prefixCls,Xt=bt.record,un=bt.onExpand,Sn=bt.expanded,kn=bt.expandable,sr="".concat(wt,"-row-expand-icon");if(!kn)return x.createElement("span",{className:_e()(sr,"".concat(wt,"-row-spaced"))});var er=function(fr){un(Xt,fr),fr.stopPropagation()};return x.createElement("span",{className:_e()(sr,(0,He.Z)((0,He.Z)({},"".concat(wt,"-row-expanded"),Sn),"".concat(wt,"-row-collapsed"),!Sn)),onClick:er})}function zn(bt,wt,Xt){var un=[];function Sn(kn){(kn||[]).forEach(function(sr,er){un.push(wt(sr,er)),Sn(sr[Xt])})}return Sn(bt),un}function Fn(bt,wt,Xt,un){return typeof bt=="string"?bt:typeof bt=="function"?bt(wt,Xt,un):""}function Rt(bt,wt,Xt,un,Sn){var kn=bt.record,sr=bt.prefixCls,er=bt.columnsKey,vr=bt.fixedInfoList,fr=bt.expandIconColumnIndex,si=bt.nestExpandable,jr=bt.indentSize,Qr=bt.expandIcon,Lr=bt.expanded,Sr=bt.hasNestChildren,Wi=bt.onTriggerExpand,yi=er[Xt],to=vr[Xt],uo;Xt===(fr||0)&&si&&(uo=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(jr*un,"px")},className:"".concat(sr,"-row-indent indent-level-").concat(un)}),Qr({prefixCls:sr,expanded:Lr,expandable:Sr,record:kn,onExpand:Wi})));var qi;return wt.onCell&&(qi=wt.onCell(kn,Sn)),{key:yi,fixedInfo:to,appendCellNode:uo,additionalCellProps:qi||{}}}function sn(bt){var wt=bt.className,Xt=bt.style,un=bt.record,Sn=bt.index,kn=bt.renderIndex,sr=bt.rowKey,er=bt.indent,vr=er===void 0?0:er,fr=bt.rowComponent,si=bt.cellComponent,jr=bt.scopeCellComponent,Qr=Wt(un,sr,Sn,vr),Lr=Qr.prefixCls,Sr=Qr.flattenColumns,Wi=Qr.expandedRowClassName,yi=Qr.expandedRowRender,to=Qr.rowProps,uo=Qr.expanded,qi=Qr.rowSupportExpand,mo=x.useRef(!1);mo.current||(mo.current=uo);var Eo=Fn(Wi,un,Sn,vr),Uo=x.createElement(fr,(0,Oe.Z)({},to,{"data-row-key":sr,className:_e()(wt,"".concat(Lr,"-row"),"".concat(Lr,"-row-level-").concat(vr),to==null?void 0:to.className,(0,He.Z)({},Eo,vr>=1)),style:(0,Ct.Z)((0,Ct.Z)({},Xt),to==null?void 0:to.style)}),Sr.map(function(la,na){var zo=la.render,Ro=la.dataIndex,Ho=la.className,wo=Rt(Qr,la,na,vr,Sn),fo=wo.key,To=wo.fixedInfo,Go=wo.appendCellNode,oa=wo.additionalCellProps;return x.createElement(En,(0,Oe.Z)({className:Ho,ellipsis:la.ellipsis,align:la.align,scope:la.rowScope,component:la.rowScope?jr:si,prefixCls:Lr,key:fo,record:un,index:Sn,renderIndex:kn,dataIndex:Ro,render:zo,shouldCellUpdate:la.shouldCellUpdate},To,{appendNode:Go,additionalProps:oa}))})),Po;if(qi&&(mo.current||uo)){var _a=yi(un,Sn,vr+1,uo);Po=x.createElement(an,{expanded:uo,className:_e()("".concat(Lr,"-expanded-row"),"".concat(Lr,"-expanded-row-level-").concat(vr+1),Eo),prefixCls:Lr,component:fr,cellComponent:si,colSpan:Sr.length,isEmpty:!1},_a)}return x.createElement(x.Fragment,null,Uo,Po)}var _n=Ke(sn);function Wn(bt){var wt=bt.columnKey,Xt=bt.onColumnResize,un=x.useRef();return(0,Ie.Z)(function(){un.current&&Xt(wt,un.current.offsetWidth)},[]),x.createElement(St.Z,{data:wt},x.createElement("td",{ref:un,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Lt=ae(29194);function Gt(bt){var wt=bt.prefixCls,Xt=bt.columnsKey,un=bt.onColumnResize,Sn=x.useRef(null);return x.createElement("tr",{"aria-hidden":"true",className:"".concat(wt,"-measure-row"),style:{height:0,fontSize:0},ref:Sn},x.createElement(St.Z.Collection,{onBatchResize:function(sr){(0,Lt.Z)(Sn.current)&&sr.forEach(function(er){var vr=er.data,fr=er.size;un(vr,fr.offsetWidth)})}},Xt.map(function(kn){return x.createElement(Wn,{key:kn,columnKey:kn,onColumnResize:un})})))}function nn(bt){var wt=bt.data,Xt=bt.measureColumnWidth,un=oe(Je,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Sn=un.prefixCls,kn=un.getComponent,sr=un.onColumnResize,er=un.flattenColumns,vr=un.getRowKey,fr=un.expandedKeys,si=un.childrenColumnName,jr=un.emptyNode,Qr=Vt(wt,si,fr,vr),Lr=x.useRef({renderWithProps:!1}),Sr=kn(["body","wrapper"],"tbody"),Wi=kn(["body","row"],"tr"),yi=kn(["body","cell"],"td"),to=kn(["body","cell"],"th"),uo;wt.length?uo=Qr.map(function(mo,Eo){var Uo=mo.record,Po=mo.indent,_a=mo.index,la=vr(Uo,Eo);return x.createElement(_n,{key:la,rowKey:la,record:Uo,index:Eo,renderIndex:_a,rowComponent:Wi,cellComponent:yi,scopeCellComponent:to,indent:Po})}):uo=x.createElement(an,{expanded:!0,className:"".concat(Sn,"-placeholder"),prefixCls:Sn,component:Wi,cellComponent:yi,colSpan:er.length,isEmpty:!0},jr);var qi=ut(er);return x.createElement(Et.Provider,{value:Lr.current},x.createElement(Sr,{className:"".concat(Sn,"-tbody")},Xt&&x.createElement(Gt,{prefixCls:Sn,columnsKey:qi,onColumnResize:sr}),uo))}var wn=Ke(nn),Gn=["expandable"],Er="RC_TABLE_INTERNAL_COL_DEFINE";function ti(bt){var wt=bt.expandable,Xt=(0,ee.Z)(bt,Gn),un;return"expandable"in bt?un=(0,Ct.Z)((0,Ct.Z)({},Xt),wt):un=Xt,un.showExpandColumn===!1&&(un.expandIconColumnIndex=-1),un}var oi=["columnType"];function Ar(bt){for(var wt=bt.colWidths,Xt=bt.columns,un=bt.columCount,Sn=oe(Je,["tableLayout"]),kn=Sn.tableLayout,sr=[],er=un||Xt.length,vr=!1,fr=er-1;fr>=0;fr-=1){var si=wt[fr],jr=Xt&&Xt[fr],Qr=void 0,Lr=void 0;if(jr&&(Qr=jr[Er],kn==="auto"&&(Lr=jr.minWidth)),si||Lr||Qr||vr){var Sr=Qr||{},Wi=Sr.columnType,yi=(0,ee.Z)(Sr,oi);sr.unshift(x.createElement("col",(0,Oe.Z)({key:fr,style:{width:si,minWidth:Lr}},yi))),vr=!0}}return x.createElement("colgroup",null,sr)}var Ir=Ar,jn=ae(77654),Hn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Jn(bt,wt){return(0,x.useMemo)(function(){for(var Xt=[],un=0;un<wt;un+=1){var Sn=bt[un];if(Sn!==void 0)Xt[un]=Sn;else return null}return Xt},[bt.join("_"),wt])}var lr=x.forwardRef(function(bt,wt){var Xt=bt.className,un=bt.noData,Sn=bt.columns,kn=bt.flattenColumns,sr=bt.colWidths,er=bt.columCount,vr=bt.stickyOffsets,fr=bt.direction,si=bt.fixHeader,jr=bt.stickyTopOffset,Qr=bt.stickyBottomOffset,Lr=bt.stickyClassName,Sr=bt.onScroll,Wi=bt.maxContentScroll,yi=bt.children,to=(0,ee.Z)(bt,Hn),uo=oe(Je,["prefixCls","scrollbarSize","isSticky","getComponent"]),qi=uo.prefixCls,mo=uo.scrollbarSize,Eo=uo.isSticky,Uo=uo.getComponent,Po=Uo(["header","table"],"table"),_a=Eo&&!si?0:mo,la=x.useRef(null),na=x.useCallback(function(oa){(0,ve.mH)(wt,oa),(0,ve.mH)(la,oa)},[]);x.useEffect(function(){var oa;function Co(qa){var Za=qa,Ml=Za.currentTarget,Sl=Za.deltaX;Sl&&(Sr({currentTarget:Ml,scrollLeft:Ml.scrollLeft+Sl}),qa.preventDefault())}return(oa=la.current)===null||oa===void 0||oa.addEventListener("wheel",Co,{passive:!1}),function(){var qa;(qa=la.current)===null||qa===void 0||qa.removeEventListener("wheel",Co)}},[]);var zo=x.useMemo(function(){return kn.every(function(oa){return oa.width})},[kn]),Ro=kn[kn.length-1],Ho={fixed:Ro?Ro.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(qi,"-cell-scrollbar")}}},wo=(0,x.useMemo)(function(){return _a?[].concat((0,jn.Z)(Sn),[Ho]):Sn},[_a,Sn]),fo=(0,x.useMemo)(function(){return _a?[].concat((0,jn.Z)(kn),[Ho]):kn},[_a,kn]),To=(0,x.useMemo)(function(){var oa=vr.right,Co=vr.left;return(0,Ct.Z)((0,Ct.Z)({},vr),{},{left:fr==="rtl"?[].concat((0,jn.Z)(Co.map(function(qa){return qa+_a})),[0]):Co,right:fr==="rtl"?oa:[].concat((0,jn.Z)(oa.map(function(qa){return qa+_a})),[0]),isSticky:Eo})},[_a,vr,Eo]),Go=Jn(sr,er);return x.createElement("div",{style:(0,Ct.Z)({overflow:"hidden"},Eo?{top:jr,bottom:Qr}:{}),ref:na,className:_e()(Xt,(0,He.Z)({},Lr,!!Lr))},x.createElement(Po,{style:{tableLayout:"fixed",visibility:un||Go?null:"hidden"}},(!un||!Wi||zo)&&x.createElement(Ir,{colWidths:Go?[].concat((0,jn.Z)(Go),[_a]):[],columCount:er+1,columns:fo}),yi((0,Ct.Z)((0,Ct.Z)({},to),{},{stickyOffsets:To,columns:wo,flattenColumns:fo}))))}),$n=x.memo(lr),br=function(wt){var Xt=wt.cells,un=wt.stickyOffsets,Sn=wt.flattenColumns,kn=wt.rowComponent,sr=wt.cellComponent,er=wt.onHeaderRow,vr=wt.index,fr=oe(Je,["prefixCls","direction"]),si=fr.prefixCls,jr=fr.direction,Qr;er&&(Qr=er(Xt.map(function(Sr){return Sr.column}),vr));var Lr=ut(Xt.map(function(Sr){return Sr.column}));return x.createElement(kn,Qr,Xt.map(function(Sr,Wi){var yi=Sr.column,to=on(Sr.colStart,Sr.colEnd,Sn,un,jr),uo;return yi&&yi.onHeaderCell&&(uo=Sr.column.onHeaderCell(yi)),x.createElement(En,(0,Oe.Z)({},Sr,{scope:yi.title?Sr.colSpan>1?"colgroup":"col":null,ellipsis:yi.ellipsis,align:yi.align,component:sr,prefixCls:si,key:Lr[Wi]},to,{additionalProps:uo,rowType:"header"}))}))},Br=br;function _r(bt){var wt=[];function Xt(sr,er){var vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;wt[vr]=wt[vr]||[];var fr=er,si=sr.filter(Boolean).map(function(jr){var Qr={key:jr.key,className:jr.className||"",children:jr.title,column:jr,colStart:fr},Lr=1,Sr=jr.children;return Sr&&Sr.length>0&&(Lr=Xt(Sr,fr,vr+1).reduce(function(Wi,yi){return Wi+yi},0),Qr.hasSubColumns=!0),"colSpan"in jr&&(Lr=jr.colSpan),"rowSpan"in jr&&(Qr.rowSpan=jr.rowSpan),Qr.colSpan=Lr,Qr.colEnd=Qr.colStart+Lr-1,wt[vr].push(Qr),fr+=Lr,Lr});return si}Xt(bt,0);for(var un=wt.length,Sn=function(er){wt[er].forEach(function(vr){!("rowSpan"in vr)&&!vr.hasSubColumns&&(vr.rowSpan=un-er)})},kn=0;kn<un;kn+=1)Sn(kn);return wt}var mi=function(wt){var Xt=wt.stickyOffsets,un=wt.columns,Sn=wt.flattenColumns,kn=wt.onHeaderRow,sr=oe(Je,["prefixCls","getComponent"]),er=sr.prefixCls,vr=sr.getComponent,fr=x.useMemo(function(){return _r(un)},[un]),si=vr(["header","wrapper"],"thead"),jr=vr(["header","row"],"tr"),Qr=vr(["header","cell"],"th");return x.createElement(si,{className:"".concat(er,"-thead")},fr.map(function(Lr,Sr){var Wi=x.createElement(Br,{key:Sr,flattenColumns:Sn,cells:Lr,stickyOffsets:Xt,rowComponent:jr,cellComponent:Qr,onHeaderRow:kn,index:Sr});return Wi}))},di=Ke(mi),fi=ae(11592);function Ti(bt){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof wt=="number"?wt:wt.endsWith("%")?bt*parseFloat(wt)/100:null}function xi(bt,wt,Xt){return x.useMemo(function(){if(wt&&wt>0){var un=0,Sn=0;bt.forEach(function(Qr){var Lr=Ti(wt,Qr.width);Lr?un+=Lr:Sn+=1});var kn=Math.max(wt,Xt),sr=Math.max(kn-un,Sn),er=Sn,vr=sr/Sn,fr=0,si=bt.map(function(Qr){var Lr=(0,Ct.Z)({},Qr),Sr=Ti(wt,Lr.width);if(Sr)Lr.width=Sr;else{var Wi=Math.floor(vr);Lr.width=er===1?sr:Wi,sr-=Wi,er-=1}return fr+=Lr.width,Lr});if(fr<kn){var jr=kn/fr;sr=kn,si.forEach(function(Qr,Lr){var Sr=Math.floor(Qr.width*jr);Qr.width=Lr===si.length-1?sr:Sr,sr-=Sr})}return[si,Math.max(fr,kn)]}return[bt,wt]},[bt,wt,Xt])}var io=["children"],Xi=["fixed"];function ur(bt){return(0,fi.Z)(bt).filter(function(wt){return x.isValidElement(wt)}).map(function(wt){var Xt=wt.key,un=wt.props,Sn=un.children,kn=(0,ee.Z)(un,io),sr=(0,Ct.Z)({key:Xt},kn);return Sn&&(sr.children=ur(Sn)),sr})}function Tr(bt){return bt.filter(function(wt){return wt&&(0,pt.Z)(wt)==="object"&&!wt.hidden}).map(function(wt){var Xt=wt.children;return Xt&&Xt.length>0?(0,Ct.Z)((0,Ct.Z)({},wt),{},{children:Tr(Xt)}):wt})}function gi(bt){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return bt.filter(function(Xt){return Xt&&(0,pt.Z)(Xt)==="object"}).reduce(function(Xt,un,Sn){var kn=un.fixed,sr=kn===!0?"left":kn,er="".concat(wt,"-").concat(Sn),vr=un.children;return vr&&vr.length>0?[].concat((0,jn.Z)(Xt),(0,jn.Z)(gi(vr,er).map(function(fr){return(0,Ct.Z)({fixed:sr},fr)}))):[].concat((0,jn.Z)(Xt),[(0,Ct.Z)((0,Ct.Z)({key:er},un),{},{fixed:sr})])},[])}function ni(bt){return bt.map(function(wt){var Xt=wt.fixed,un=(0,ee.Z)(wt,Xi),Sn=Xt;return Xt==="left"?Sn="right":Xt==="right"&&(Sn="left"),(0,Ct.Z)({fixed:Sn},un)})}function gt(bt,wt){var Xt=bt.prefixCls,un=bt.columns,Sn=bt.children,kn=bt.expandable,sr=bt.expandedKeys,er=bt.columnTitle,vr=bt.getRowKey,fr=bt.onTriggerExpand,si=bt.expandIcon,jr=bt.rowExpandable,Qr=bt.expandIconColumnIndex,Lr=bt.direction,Sr=bt.expandRowByClick,Wi=bt.columnWidth,yi=bt.fixed,to=bt.scrollWidth,uo=bt.clientWidth,qi=x.useMemo(function(){var Ro=un||ur(Sn)||[];return Tr(Ro.slice())},[un,Sn]),mo=x.useMemo(function(){if(kn){var Ro=qi.slice();if(!Ro.includes(dt)){var Ho=Qr||0;Ho>=0&&(Ho||yi==="left"||!yi)&&Ro.splice(Ho,0,dt),yi==="right"&&Ro.splice(qi.length,0,dt)}var wo=Ro.indexOf(dt);Ro=Ro.filter(function(oa,Co){return oa!==dt||Co===wo});var fo=qi[wo],To;yi?To=yi:To=fo?fo.fixed:null;var Go=(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},Er,{className:"".concat(Xt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",er),"fixed",To),"className","".concat(Xt,"-row-expand-icon-cell")),"width",Wi),"render",function(Co,qa,Za){var Ml=vr(qa,Za),Sl=sr.has(Ml),ul=jr?jr(qa):!0,co=si({prefixCls:Xt,expanded:Sl,expandable:ul,record:qa,onExpand:fr});return Sr?x.createElement("span",{onClick:function(cs){return cs.stopPropagation()}},co):co});return Ro.map(function(oa){return oa===dt?Go:oa})}return qi.filter(function(oa){return oa!==dt})},[kn,qi,vr,sr,si,Lr]),Eo=x.useMemo(function(){var Ro=mo;return wt&&(Ro=wt(Ro)),Ro.length||(Ro=[{render:function(){return null}}]),Ro},[wt,mo,Lr]),Uo=x.useMemo(function(){return Lr==="rtl"?ni(gi(Eo)):gi(Eo)},[Eo,Lr,to]),Po=x.useMemo(function(){for(var Ro=-1,Ho=Uo.length-1;Ho>=0;Ho-=1){var wo=Uo[Ho].fixed;if(wo==="left"||wo===!0){Ro=Ho;break}}if(Ro>=0)for(var fo=0;fo<=Ro;fo+=1){var To=Uo[fo].fixed;if(To!=="left"&&To!==!0)return!0}var Go=Uo.findIndex(function(qa){var Za=qa.fixed;return Za==="right"});if(Go>=0)for(var oa=Go;oa<Uo.length;oa+=1){var Co=Uo[oa].fixed;if(Co!=="right")return!0}return!1},[Uo]),_a=xi(Uo,to,uo),la=(0,qe.Z)(_a,2),na=la[0],zo=la[1];return[Eo,na,zo,Po]}var vn=gt;function Ut(bt,wt,Xt){var un=ti(bt),Sn=un.expandIcon,kn=un.expandedRowKeys,sr=un.defaultExpandedRowKeys,er=un.defaultExpandAllRows,vr=un.expandedRowRender,fr=un.onExpand,si=un.onExpandedRowsChange,jr=un.childrenColumnName,Qr=Sn||en,Lr=jr||"children",Sr=x.useMemo(function(){return vr?"row":bt.expandable&&bt.internalHooks===Le&&bt.expandable.__PARENT_RENDER_ICON__||wt.some(function(Eo){return Eo&&(0,pt.Z)(Eo)==="object"&&Eo[Lr]})?"nest":!1},[!!vr,wt]),Wi=x.useState(function(){return sr||(er?zn(wt,Xt,Lr):[])}),yi=(0,qe.Z)(Wi,2),to=yi[0],uo=yi[1],qi=x.useMemo(function(){return new Set(kn||to||[])},[kn,to]),mo=x.useCallback(function(Eo){var Uo=Xt(Eo,wt.indexOf(Eo)),Po,_a=qi.has(Uo);_a?(qi.delete(Uo),Po=(0,jn.Z)(qi)):Po=[].concat((0,jn.Z)(qi),[Uo]),uo(Po),fr&&fr(!_a,Eo),si&&si(Po)},[Xt,qi,wt,fr,si]);return[un,Sr,qi,Qr,Lr,mo]}function dn(bt,wt,Xt){var un=bt.map(function(Sn,kn){return on(kn,kn,bt,wt,Xt)});return(0,Re.Z)(function(){return un},[un],function(Sn,kn){return!(0,Ue.Z)(Sn,kn)})}function $t(bt){var wt=(0,x.useRef)(bt),Xt=(0,x.useState)({}),un=(0,qe.Z)(Xt,2),Sn=un[1],kn=(0,x.useRef)(null),sr=(0,x.useRef)([]);function er(vr){sr.current.push(vr);var fr=Promise.resolve();kn.current=fr,fr.then(function(){if(kn.current===fr){var si=sr.current,jr=wt.current;sr.current=[],si.forEach(function(Qr){wt.current=Qr(wt.current)}),kn.current=null,jr!==wt.current&&Sn({})}})}return(0,x.useEffect)(function(){return function(){kn.current=null}},[]),[wt.current,er]}function hn(bt){var wt=(0,x.useRef)(bt||null),Xt=(0,x.useRef)();function un(){window.clearTimeout(Xt.current)}function Sn(sr){wt.current=sr,un(),Xt.current=window.setTimeout(function(){wt.current=null,Xt.current=void 0},100)}function kn(){return wt.current}return(0,x.useEffect)(function(){return un},[]),[Sn,kn]}function Nn(){var bt=x.useState(-1),wt=(0,qe.Z)(bt,2),Xt=wt[0],un=wt[1],Sn=x.useState(-1),kn=(0,qe.Z)(Sn,2),sr=kn[0],er=kn[1],vr=x.useCallback(function(fr,si){un(fr),er(si)},[]);return[Xt,sr,vr]}var Hr=ae(47273),zr=(0,Hr.Z)()?window:null;function Ai(bt,wt){var Xt=(0,pt.Z)(bt)==="object"?bt:{},un=Xt.offsetHeader,Sn=un===void 0?0:un,kn=Xt.offsetSummary,sr=kn===void 0?0:kn,er=Xt.offsetScroll,vr=er===void 0?0:er,fr=Xt.getContainer,si=fr===void 0?function(){return zr}:fr,jr=si()||zr,Qr=!!bt;return x.useMemo(function(){return{isSticky:Qr,stickyClassName:Qr?"".concat(wt,"-sticky-holder"):"",offsetHeader:Sn,offsetSummary:sr,offsetScroll:vr,container:jr}},[Qr,vr,Sn,sr,wt,jr])}function hr(bt,wt,Xt){var un=(0,x.useMemo)(function(){var Sn=wt.length,kn=function(fr,si,jr){for(var Qr=[],Lr=0,Sr=fr;Sr!==si;Sr+=jr)Qr.push(Lr),wt[Sr].fixed&&(Lr+=bt[Sr]||0);return Qr},sr=kn(0,Sn,1),er=kn(Sn-1,-1,-1).reverse();return Xt==="rtl"?{left:er,right:sr}:{left:sr,right:er}},[bt,wt,Xt]);return un}var nr=hr;function ir(bt){var wt=bt.className,Xt=bt.children;return x.createElement("div",{className:wt},Xt)}var Yr=ir,Mi=ae(8224),Yn=ae(16089),Vn=ae(76846);function Mr(bt){var wt=(0,Vn.bn)(bt),Xt=wt.getBoundingClientRect(),un=document.documentElement;return{left:Xt.left+(window.pageXOffset||un.scrollLeft)-(un.clientLeft||document.body.clientLeft||0),top:Xt.top+(window.pageYOffset||un.scrollTop)-(un.clientTop||document.body.clientTop||0)}}var Tn=function(wt,Xt){var un,Sn,kn=wt.scrollBodyRef,sr=wt.onScroll,er=wt.offsetScroll,vr=wt.container,fr=wt.direction,si=oe(Je,"prefixCls"),jr=((un=kn.current)===null||un===void 0?void 0:un.scrollWidth)||0,Qr=((Sn=kn.current)===null||Sn===void 0?void 0:Sn.clientWidth)||0,Lr=jr&&Qr*(Qr/jr),Sr=x.useRef(),Wi=$t({scrollLeft:0,isHiddenScrollBar:!0}),yi=(0,qe.Z)(Wi,2),to=yi[0],uo=yi[1],qi=x.useRef({delta:0,x:0}),mo=x.useState(!1),Eo=(0,qe.Z)(mo,2),Uo=Eo[0],Po=Eo[1],_a=x.useRef(null);x.useEffect(function(){return function(){Yn.Z.cancel(_a.current)}},[]);var la=function(){Po(!1)},na=function(fo){fo.persist(),qi.current.delta=fo.pageX-to.scrollLeft,qi.current.x=0,Po(!0),fo.preventDefault()},zo=function(fo){var To,Go=fo||((To=window)===null||To===void 0?void 0:To.event),oa=Go.buttons;if(!Uo||oa===0){Uo&&Po(!1);return}var Co=qi.current.x+fo.pageX-qi.current.x-qi.current.delta,qa=fr==="rtl";Co=Math.max(qa?Lr-Qr:0,Math.min(qa?0:Qr-Lr,Co));var Za=!qa||Math.abs(Co)+Math.abs(Lr)<Qr;Za&&(sr({scrollLeft:Co/Qr*(jr+2)}),qi.current.x=fo.pageX)},Ro=function(){Yn.Z.cancel(_a.current),_a.current=(0,Yn.Z)(function(){if(kn.current){var fo=Mr(kn.current).top,To=fo+kn.current.offsetHeight,Go=vr===window?document.documentElement.scrollTop+window.innerHeight:Mr(vr).top+vr.clientHeight;To-(0,Qt.Z)()<=Go||fo>=Go-er?uo(function(oa){return(0,Ct.Z)((0,Ct.Z)({},oa),{},{isHiddenScrollBar:!0})}):uo(function(oa){return(0,Ct.Z)((0,Ct.Z)({},oa),{},{isHiddenScrollBar:!1})})}})},Ho=function(fo){uo(function(To){return(0,Ct.Z)((0,Ct.Z)({},To),{},{scrollLeft:fo/jr*Qr||0})})};return x.useImperativeHandle(Xt,function(){return{setScrollLeft:Ho,checkScrollBarVisible:Ro}}),x.useEffect(function(){var wo=(0,Mi.Z)(document.body,"mouseup",la,!1),fo=(0,Mi.Z)(document.body,"mousemove",zo,!1);return Ro(),function(){wo.remove(),fo.remove()}},[Lr,Uo]),x.useEffect(function(){if(kn.current){for(var wo=[],fo=(0,Vn.bn)(kn.current);fo;)wo.push(fo),fo=fo.parentElement;return wo.forEach(function(To){return To.addEventListener("scroll",Ro,!1)}),window.addEventListener("resize",Ro,!1),window.addEventListener("scroll",Ro,!1),vr.addEventListener("scroll",Ro,!1),function(){wo.forEach(function(To){return To.removeEventListener("scroll",Ro)}),window.removeEventListener("resize",Ro),window.removeEventListener("scroll",Ro),vr.removeEventListener("scroll",Ro)}}},[vr]),x.useEffect(function(){to.isHiddenScrollBar||uo(function(wo){var fo=kn.current;return fo?(0,Ct.Z)((0,Ct.Z)({},wo),{},{scrollLeft:fo.scrollLeft/fo.scrollWidth*fo.clientWidth}):wo})},[to.isHiddenScrollBar]),jr<=Qr||!Lr||to.isHiddenScrollBar?null:x.createElement("div",{style:{height:(0,Qt.Z)(),width:Qr,bottom:er},className:"".concat(si,"-sticky-scroll")},x.createElement("div",{onMouseDown:na,ref:Sr,className:_e()("".concat(si,"-sticky-scroll-bar"),(0,He.Z)({},"".concat(si,"-sticky-scroll-bar-active"),Uo)),style:{width:"".concat(Lr,"px"),transform:"translate3d(".concat(to.scrollLeft,"px, 0, 0)")}}))},mn=x.forwardRef(Tn);function tr(bt){return null}var or=tr;function ar(bt){return null}var kr=ar,vi="rc-table",qr=[],Li={};function _i(){return"No Data"}function ri(bt,wt){var Xt=(0,Ct.Z)({rowKey:"key",prefixCls:vi,emptyText:_i},bt),un=Xt.prefixCls,Sn=Xt.className,kn=Xt.rowClassName,sr=Xt.style,er=Xt.data,vr=Xt.rowKey,fr=Xt.scroll,si=Xt.tableLayout,jr=Xt.direction,Qr=Xt.title,Lr=Xt.footer,Sr=Xt.summary,Wi=Xt.caption,yi=Xt.id,to=Xt.showHeader,uo=Xt.components,qi=Xt.emptyText,mo=Xt.onRow,Eo=Xt.onHeaderRow,Uo=Xt.onScroll,Po=Xt.internalHooks,_a=Xt.transformColumns,la=Xt.internalRefs,na=Xt.tailor,zo=Xt.getContainerWidth,Ro=Xt.sticky,Ho=Xt.rowHoverable,wo=Ho===void 0?!0:Ho,fo=er||qr,To=!!fo.length,Go=Po===Le,oa=x.useCallback(function(gs,_s){return(0,Ot.Z)(uo,gs)||_s},[uo]),Co=x.useMemo(function(){return typeof vr=="function"?vr:function(gs){var _s=gs&&gs[vr];return _s}},[vr]),qa=oa(["body"]),Za=Nn(),Ml=(0,qe.Z)(Za,3),Sl=Ml[0],ul=Ml[1],co=Ml[2],ql=Ut(Xt,fo,Co),cs=(0,qe.Z)(ql,6),os=cs[0],ol=cs[1],fu=cs[2],aa=cs[3],ba=cs[4],Vo=cs[5],No=fr==null?void 0:fr.x,ps=x.useState(0),Fs=(0,qe.Z)(ps,2),Vs=Fs[0],Ks=Fs[1],cl=vn((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},Xt),os),{},{expandable:!!os.expandedRowRender,columnTitle:os.columnTitle,expandedKeys:fu,getRowKey:Co,onTriggerExpand:Vo,expandIcon:aa,expandIconColumnIndex:os.expandIconColumnIndex,direction:jr,scrollWidth:Go&&na&&typeof No=="number"?No:null,clientWidth:Vs}),Go?_a:null),gu=(0,qe.Z)(cl,4),ua=gu[0],ta=gu[1],Bs=gu[2],nl=gu[3],Xs=Bs!=null?Bs:No,vu=x.useMemo(function(){return{columns:ua,flattenColumns:ta}},[ua,ta]),Ul=x.useRef(),uc=x.useRef(),Fl=x.useRef(),ys=x.useRef();x.useImperativeHandle(wt,function(){return{nativeElement:Ul.current,scrollTo:function(_s){var wu;if(Fl.current instanceof HTMLElement){var zu=_s.index,Ku=_s.top,Ad=_s.key;if(Kt(Ku)){var XA;(XA=Fl.current)===null||XA===void 0||XA.scrollTo({top:Ku})}else{var MA,dd=Ad!=null?Ad:Co(fo[zu]);(MA=Fl.current.querySelector('[data-row-key="'.concat(dd,'"]')))===null||MA===void 0||MA.scrollIntoView()}}else(wu=Fl.current)!==null&&wu!==void 0&&wu.scrollTo&&Fl.current.scrollTo(_s)}}});var Al=x.useRef(),dl=x.useState(!1),hu=(0,qe.Z)(dl,2),Rl=hu[0],ws=hu[1],yl=x.useState(!1),Is=(0,qe.Z)(yl,2),wl=Is[0],eu=Is[1],ku=x.useState(new Map),Mu=(0,qe.Z)(ku,2),Gc=Mu[0],fl=Mu[1],_d=ut(ta),ju=_d.map(function(gs){return Gc.get(gs)}),Yu=x.useMemo(function(){return ju},[ju.join("_")]),Qu=nr(Yu,ta,jr),Ju=fr&&Zt(fr.y),hl=fr&&Zt(Xs)||!!os.fixed,wc=hl&&ta.some(function(gs){var _s=gs.fixed;return _s}),wA=x.useRef(),Tc=Ai(Ro,un),Vc=Tc.isSticky,Jd=Tc.offsetHeader,qd=Tc.offsetSummary,Ls=Tc.offsetScroll,ld=Tc.stickyClassName,Ef=Tc.container,Wa=x.useMemo(function(){return Sr==null?void 0:Sr(fo)},[Sr,fo]),ms=(Ju||Vc)&&x.isValidElement(Wa)&&Wa.type===We&&Wa.props.fixed,Hl,uu,Su;Ju&&(uu={overflowY:To?"scroll":"auto",maxHeight:fr.y}),hl&&(Hl={overflowX:"auto"},Ju||(uu={overflowY:"hidden"}),Su={width:Xs===!0?"auto":Xs,minWidth:"100%"});var Fu=x.useCallback(function(gs,_s){fl(function(wu){if(wu.get(gs)!==_s){var zu=new Map(wu);return zu.set(gs,_s),zu}return wu})},[]),qu=hn(null),Hu=(0,qe.Z)(qu,2),ZA=Hu[0],Sf=Hu[1];function WA(gs,_s){_s&&(typeof _s=="function"?_s(gs):_s.scrollLeft!==gs&&(_s.scrollLeft=gs,_s.scrollLeft!==gs&&setTimeout(function(){_s.scrollLeft=gs},0)))}var GA=(0,ze.Z)(function(gs){var _s=gs.currentTarget,wu=gs.scrollLeft,zu=jr==="rtl",Ku=typeof wu=="number"?wu:_s.scrollLeft,Ad=_s||Li;if(!Sf()||Sf()===Ad){var XA;ZA(Ad),WA(Ku,uc.current),WA(Ku,Fl.current),WA(Ku,Al.current),WA(Ku,(XA=wA.current)===null||XA===void 0?void 0:XA.setScrollLeft)}var MA=_s||uc.current;if(MA){var dd=Go&&na&&typeof Xs=="number"?Xs:MA.scrollWidth,YA=MA.clientWidth;if(dd===YA){ws(!1),eu(!1);return}zu?(ws(-Ku<dd-YA),eu(-Ku>0)):(ws(Ku>0),eu(Ku<dd-YA))}}),yu=(0,ze.Z)(function(gs){GA(gs),Uo==null||Uo(gs)}),kc=function(){if(hl&&Fl.current){var _s;GA({currentTarget:(0,Vn.bn)(Fl.current),scrollLeft:(_s=Fl.current)===null||_s===void 0?void 0:_s.scrollLeft})}else ws(!1),eu(!1)},ef=function(_s){var wu,zu=_s.width;(wu=wA.current)===null||wu===void 0||wu.checkScrollBarVisible();var Ku=Ul.current?Ul.current.offsetWidth:zu;Go&&zo&&Ul.current&&(Ku=zo(Ul.current,Ku)||Ku),Ku!==Vs&&(kc(),Ks(Ku))},Ff=x.useRef(!1);x.useEffect(function(){Ff.current&&kc()},[hl,er,ua.length]),x.useEffect(function(){Ff.current=!0},[]);var tf=x.useState(0),If=(0,qe.Z)(tf,2),VA=If[0],rh=If[1],pp=x.useState(!0),ih=(0,qe.Z)(pp,2),nf=ih[0],mp=ih[1];(0,Ie.Z)(function(){(!na||!Go)&&(Fl.current instanceof Element?rh((0,Qt.o)(Fl.current).width):rh((0,Qt.o)(ys.current).width)),mp((0,_t.G)("position","sticky"))},[]),x.useEffect(function(){Go&&la&&(la.body.current=Fl.current)});var gp=x.useCallback(function(gs){return x.createElement(x.Fragment,null,x.createElement(di,gs),ms==="top"&&x.createElement(mt,gs,Wa))},[ms,Wa]),rf=x.useCallback(function(gs){return x.createElement(mt,gs,Wa)},[Wa]),Lf=oa(["table"],"table"),Nd=x.useMemo(function(){return si||(wc?Xs==="max-content"?"auto":"fixed":Ju||Vc||ta.some(function(gs){var _s=gs.ellipsis;return _s})?"fixed":"auto")},[Ju,wc,ta,si,Vc]),_f,Od={colWidths:Yu,columCount:ta.length,stickyOffsets:Qu,onHeaderRow:Eo,fixHeader:Ju,scroll:fr},of=x.useMemo(function(){return To?null:typeof qi=="function"?qi():qi},[To,qi]),bA=x.createElement(wn,{data:fo,measureColumnWidth:Ju||hl||Vc}),oh=x.createElement(Ir,{colWidths:ta.map(function(gs){var _s=gs.width;return _s}),columns:ta}),ah=Wi!=null?x.createElement("caption",{className:"".concat(un,"-caption")},Wi):void 0,Mh=(0,xt.Z)(Xt,{data:!0}),ud=(0,xt.Z)(Xt,{aria:!0});if(Ju||Vc){var CA;typeof qa=="function"?(CA=qa(fo,{scrollbarSize:VA,ref:Fl,onScroll:GA}),Od.colWidths=ta.map(function(gs,_s){var wu=gs.width,zu=_s===ta.length-1?wu-VA:wu;return typeof zu=="number"&&!Number.isNaN(zu)?zu:0})):CA=x.createElement("div",{style:(0,Ct.Z)((0,Ct.Z)({},Hl),uu),onScroll:yu,ref:Fl,className:_e()("".concat(un,"-body"))},x.createElement(Lf,(0,Oe.Z)({style:(0,Ct.Z)((0,Ct.Z)({},Su),{},{tableLayout:Nd})},ud),ah,oh,bA,!ms&&Wa&&x.createElement(mt,{stickyOffsets:Qu,flattenColumns:ta},Wa)));var xA=(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({noData:!fo.length,maxContentScroll:hl&&Xs==="max-content"},Od),vu),{},{direction:jr,stickyClassName:ld,onScroll:GA});_f=x.createElement(x.Fragment,null,to!==!1&&x.createElement($n,(0,Oe.Z)({},xA,{stickyTopOffset:Jd,className:"".concat(un,"-header"),ref:uc}),gp),CA,ms&&ms!=="top"&&x.createElement($n,(0,Oe.Z)({},xA,{stickyBottomOffset:qd,className:"".concat(un,"-summary"),ref:Al}),rf),Vc&&Fl.current&&Fl.current instanceof Element&&x.createElement(mn,{ref:wA,offsetScroll:Ls,scrollBodyRef:Fl,onScroll:GA,container:Ef,direction:jr}))}else _f=x.createElement("div",{style:(0,Ct.Z)((0,Ct.Z)({},Hl),uu),className:_e()("".concat(un,"-content")),onScroll:GA,ref:Fl},x.createElement(Lf,(0,Oe.Z)({style:(0,Ct.Z)((0,Ct.Z)({},Su),{},{tableLayout:Nd})},ud),ah,oh,to!==!1&&x.createElement(di,(0,Oe.Z)({},Od,vu)),bA,Wa&&x.createElement(mt,{stickyOffsets:Qu,flattenColumns:ta},Wa)));var Dd=x.createElement("div",(0,Oe.Z)({className:_e()(un,Sn,(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(un,"-rtl"),jr==="rtl"),"".concat(un,"-ping-left"),Rl),"".concat(un,"-ping-right"),wl),"".concat(un,"-layout-fixed"),si==="fixed"),"".concat(un,"-fixed-header"),Ju),"".concat(un,"-fixed-column"),wc),"".concat(un,"-fixed-column-gapped"),wc&&nl),"".concat(un,"-scroll-horizontal"),hl),"".concat(un,"-has-fix-left"),ta[0]&&ta[0].fixed),"".concat(un,"-has-fix-right"),ta[ta.length-1]&&ta[ta.length-1].fixed==="right")),style:sr,id:yi,ref:Ul},Mh),Qr&&x.createElement(Yr,{className:"".concat(un,"-title")},Qr(fo)),x.createElement("div",{ref:ys,className:"".concat(un,"-container")},_f),Lr&&x.createElement(Yr,{className:"".concat(un,"-footer")},Lr(fo)));hl&&(Dd=x.createElement(St.Z,{onResize:ef},Dd));var cd=dn(ta,Qu,jr),Uh=x.useMemo(function(){return{scrollX:Xs,prefixCls:un,getComponent:oa,scrollbarSize:VA,direction:jr,fixedInfoList:cd,isSticky:Vc,supportSticky:nf,componentWidth:Vs,fixHeader:Ju,fixColumn:wc,horizonScroll:hl,tableLayout:Nd,rowClassName:kn,expandedRowClassName:os.expandedRowClassName,expandIcon:aa,expandableType:ol,expandRowByClick:os.expandRowByClick,expandedRowRender:os.expandedRowRender,onTriggerExpand:Vo,expandIconColumnIndex:os.expandIconColumnIndex,indentSize:os.indentSize,allColumnsFixedLeft:ta.every(function(gs){return gs.fixed==="left"}),emptyNode:of,columns:ua,flattenColumns:ta,onColumnResize:Fu,hoverStartRow:Sl,hoverEndRow:ul,onHover:co,rowExpandable:os.rowExpandable,onRow:mo,getRowKey:Co,expandedKeys:fu,childrenColumnName:ba,rowHoverable:wo}},[Xs,un,oa,VA,jr,cd,Vc,nf,Vs,Ju,wc,hl,Nd,kn,os.expandedRowClassName,aa,ol,os.expandRowByClick,os.expandedRowRender,Vo,os.expandIconColumnIndex,os.indentSize,of,ua,ta,Fu,Sl,ul,co,os.rowExpandable,mo,Co,fu,ba,wo]);return x.createElement(Je.Provider,{value:Uh},Dd)}var hi=x.forwardRef(ri);function ro(bt){return ke(hi,bt)}var ki=ro();ki.EXPAND_COLUMN=dt,ki.INTERNAL_HOOKS=Le,ki.Column=or,ki.ColumnGroup=kr,ki.Summary=vt;var bi=ki,Ni=ae(48911),oo=xe(null),Di=xe(null);function yo(bt,wt,Xt){var un=wt||1;return Xt[bt+un]-(Xt[bt]||0)}function Ji(bt){var wt=bt.rowInfo,Xt=bt.column,un=bt.colIndex,Sn=bt.indent,kn=bt.index,sr=bt.component,er=bt.renderIndex,vr=bt.record,fr=bt.style,si=bt.className,jr=bt.inverse,Qr=bt.getHeight,Lr=Xt.render,Sr=Xt.dataIndex,Wi=Xt.className,yi=Xt.width,to=oe(Di,["columnsOffset"]),uo=to.columnsOffset,qi=Rt(wt,Xt,un,Sn,kn),mo=qi.key,Eo=qi.fixedInfo,Uo=qi.appendCellNode,Po=qi.additionalCellProps,_a=Po.style,la=Po.colSpan,na=la===void 0?1:la,zo=Po.rowSpan,Ro=zo===void 0?1:zo,Ho=un-1,wo=yo(Ho,na,uo),fo=na>1?yi-wo:0,To=(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},_a),fr),{},{flex:"0 0 ".concat(wo,"px"),width:"".concat(wo,"px"),marginRight:fo,pointerEvents:"auto"}),Go=x.useMemo(function(){return jr?Ro<=1:na===0||Ro===0||Ro>1},[Ro,na,jr]);Go?To.visibility="hidden":jr&&(To.height=Qr==null?void 0:Qr(Ro));var oa=Go?function(){return null}:Lr,Co={};return(Ro===0||na===0)&&(Co.rowSpan=1,Co.colSpan=1),x.createElement(En,(0,Oe.Z)({className:_e()(Wi,si),ellipsis:Xt.ellipsis,align:Xt.align,scope:Xt.rowScope,component:sr,prefixCls:wt.prefixCls,key:mo,record:vr,index:kn,renderIndex:er,dataIndex:Sr,render:oa,shouldCellUpdate:Xt.shouldCellUpdate},Eo,{appendNode:Uo,additionalProps:(0,Ct.Z)((0,Ct.Z)({},Po),{},{style:To},Co)}))}var po=Ji,ho=["data","index","className","rowKey","style","extra","getHeight"],Jo=x.forwardRef(function(bt,wt){var Xt=bt.data,un=bt.index,Sn=bt.className,kn=bt.rowKey,sr=bt.style,er=bt.extra,vr=bt.getHeight,fr=(0,ee.Z)(bt,ho),si=Xt.record,jr=Xt.indent,Qr=Xt.index,Lr=oe(Je,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Sr=Lr.scrollX,Wi=Lr.flattenColumns,yi=Lr.prefixCls,to=Lr.fixColumn,uo=Lr.componentWidth,qi=oe(oo,["getComponent"]),mo=qi.getComponent,Eo=Wt(si,kn,un,jr),Uo=mo(["body","row"],"div"),Po=mo(["body","cell"],"div"),_a=Eo.rowSupportExpand,la=Eo.expanded,na=Eo.rowProps,zo=Eo.expandedRowRender,Ro=Eo.expandedRowClassName,Ho;if(_a&&la){var wo=zo(si,un,jr+1,la),fo=Fn(Ro,si,un,jr),To={};to&&(To={style:(0,He.Z)({},"--virtual-width","".concat(uo,"px"))});var Go="".concat(yi,"-expanded-row-cell");Ho=x.createElement(Uo,{className:_e()("".concat(yi,"-expanded-row"),"".concat(yi,"-expanded-row-level-").concat(jr+1),fo)},x.createElement(En,{component:Po,prefixCls:yi,className:_e()(Go,(0,He.Z)({},"".concat(Go,"-fixed"),to)),additionalProps:To},wo))}var oa=(0,Ct.Z)((0,Ct.Z)({},sr),{},{width:Sr});er&&(oa.position="absolute",oa.pointerEvents="none");var Co=x.createElement(Uo,(0,Oe.Z)({},na,fr,{"data-row-key":kn,ref:_a?null:wt,className:_e()(Sn,"".concat(yi,"-row"),na==null?void 0:na.className,(0,He.Z)({},"".concat(yi,"-row-extra"),er)),style:(0,Ct.Z)((0,Ct.Z)({},oa),na==null?void 0:na.style)}),Wi.map(function(qa,Za){return x.createElement(po,{key:Za,component:Po,rowInfo:Eo,column:qa,colIndex:Za,indent:jr,index:un,renderIndex:Qr,record:si,inverse:er,getHeight:vr})}));return _a?x.createElement("div",{ref:wt},Co,Ho):Co}),xo=Ke(Jo),no=xo,Do=x.forwardRef(function(bt,wt){var Xt=bt.data,un=bt.onScroll,Sn=oe(Je,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),kn=Sn.flattenColumns,sr=Sn.onColumnResize,er=Sn.getRowKey,vr=Sn.expandedKeys,fr=Sn.prefixCls,si=Sn.childrenColumnName,jr=Sn.scrollX,Qr=Sn.direction,Lr=oe(oo),Sr=Lr.sticky,Wi=Lr.scrollY,yi=Lr.listItemHeight,to=Lr.getComponent,uo=Lr.onScroll,qi=x.useRef(),mo=Vt(Xt,si,vr,er),Eo=x.useMemo(function(){var Ho=0;return kn.map(function(wo){var fo=wo.width,To=wo.key;return Ho+=fo,[To,fo,Ho]})},[kn]),Uo=x.useMemo(function(){return Eo.map(function(Ho){return Ho[2]})},[Eo]);x.useEffect(function(){Eo.forEach(function(Ho){var wo=(0,qe.Z)(Ho,2),fo=wo[0],To=wo[1];sr(fo,To)})},[Eo]),x.useImperativeHandle(wt,function(){var Ho,wo={scrollTo:function(To){var Go;(Go=qi.current)===null||Go===void 0||Go.scrollTo(To)},nativeElement:(Ho=qi.current)===null||Ho===void 0?void 0:Ho.nativeElement};return Object.defineProperty(wo,"scrollLeft",{get:function(){var To;return((To=qi.current)===null||To===void 0?void 0:To.getScrollInfo().x)||0},set:function(To){var Go;(Go=qi.current)===null||Go===void 0||Go.scrollTo({left:To})}}),wo});var Po=function(wo,fo){var To,Go=(To=mo[fo])===null||To===void 0?void 0:To.record,oa=wo.onCell;if(oa){var Co,qa=oa(Go,fo);return(Co=qa==null?void 0:qa.rowSpan)!==null&&Co!==void 0?Co:1}return 1},_a=function(wo){var fo=wo.start,To=wo.end,Go=wo.getSize,oa=wo.offsetY;if(To<0)return null;for(var Co=kn.filter(function(aa){return Po(aa,fo)===0}),qa=fo,Za=function(ba){if(Co=Co.filter(function(Vo){return Po(Vo,ba)===0}),!Co.length)return qa=ba,1},Ml=fo;Ml>=0&&!Za(Ml);Ml-=1);for(var Sl=kn.filter(function(aa){return Po(aa,To)!==1}),ul=To,co=function(ba){if(Sl=Sl.filter(function(Vo){return Po(Vo,ba)!==1}),!Sl.length)return ul=Math.max(ba-1,To),1},ql=To;ql<mo.length&&!co(ql);ql+=1);for(var cs=[],os=function(ba){var Vo=mo[ba];if(!Vo)return 1;kn.some(function(No){return Po(No,ba)>1})&&cs.push(ba)},ol=qa;ol<=ul;ol+=1)os(ol);var fu=cs.map(function(aa){var ba=mo[aa],Vo=er(ba.record,aa),No=function(Vs){var Ks=aa+Vs-1,cl=er(mo[Ks].record,Ks),gu=Go(Vo,cl);return gu.bottom-gu.top},ps=Go(Vo);return x.createElement(no,{key:aa,data:ba,rowKey:Vo,index:aa,style:{top:-oa+ps.top},extra:!0,getHeight:No})});return fu},la=x.useMemo(function(){return{columnsOffset:Uo}},[Uo]),na="".concat(fr,"-tbody"),zo=to(["body","wrapper"]),Ro={};return Sr&&(Ro.position="sticky",Ro.bottom=0,(0,pt.Z)(Sr)==="object"&&Sr.offsetScroll&&(Ro.bottom=Sr.offsetScroll)),x.createElement(Di.Provider,{value:la},x.createElement(Ni.Z,{fullHeight:!1,ref:qi,prefixCls:"".concat(na,"-virtual"),styles:{horizontalScrollBar:Ro},className:na,height:Wi,itemHeight:yi||24,data:mo,itemKey:function(wo){return er(wo.record)},component:zo,scrollWidth:jr,direction:Qr,onVirtualScroll:function(wo){var fo,To=wo.x;un({currentTarget:(fo=qi.current)===null||fo===void 0?void 0:fo.nativeElement,scrollLeft:To})},onScroll:uo,extraRender:_a},function(Ho,wo,fo){var To=er(Ho.record,wo);return x.createElement(no,{data:Ho,rowKey:To,index:wo,style:fo.style})}))}),Zo=Ke(Do),jo=Zo,Cn=function(wt,Xt){var un=Xt.ref,Sn=Xt.onScroll;return x.createElement(jo,{ref:un,data:wt,onScroll:Sn})};function Vi(bt,wt){var Xt=bt.data,un=bt.columns,Sn=bt.scroll,kn=bt.sticky,sr=bt.prefixCls,er=sr===void 0?vi:sr,vr=bt.className,fr=bt.listItemHeight,si=bt.components,jr=bt.onScroll,Qr=Sn||{},Lr=Qr.x,Sr=Qr.y;typeof Lr!="number"&&(Lr=1),typeof Sr!="number"&&(Sr=500);var Wi=(0,kt.zX)(function(uo,qi){return(0,Ot.Z)(si,uo)||qi}),yi=(0,kt.zX)(jr),to=x.useMemo(function(){return{sticky:kn,scrollY:Sr,listItemHeight:fr,getComponent:Wi,onScroll:yi}},[kn,Sr,fr,Wi,yi]);return x.createElement(oo.Provider,{value:to},x.createElement(bi,(0,Oe.Z)({},bt,{className:_e()(vr,"".concat(er,"-virtual")),scroll:(0,Ct.Z)((0,Ct.Z)({},Sn),{},{x:Lr}),components:(0,Ct.Z)((0,Ct.Z)({},si),{},{body:Xt!=null&&Xt.length?Cn:void 0}),columns:un,internalHooks:Le,tailor:!0,ref:wt})))}var Ur=x.forwardRef(Vi);function Vr(bt){return ke(Ur,bt)}var ci=Vr(),Zr=null,eo=bt=>null,ai=bt=>null,Fi=ae(84105),Ri=ae(82661),Mo=ae(34643),ui=ae(34061),Zi=ae(18929);function Wo(bt){const[wt,Xt]=(0,x.useState)(null);return[(0,x.useCallback)((kn,sr,er)=>{const vr=wt!=null?wt:kn,fr=Math.min(vr||0,kn),si=Math.max(vr||0,kn),jr=sr.slice(fr,si+1).map(Sr=>bt(Sr)),Qr=jr.some(Sr=>!er.has(Sr)),Lr=[];return jr.forEach(Sr=>{Qr?(er.has(Sr)||Lr.push(Sr),er.add(Sr)):(er.delete(Sr),Lr.push(Sr))}),Xt(Qr?si:null),Lr},[wt]),kn=>{Xt(kn)}]}var Xo=ae(32383),ra=ae(62673),Qo=ae(75727),qo=ae(47889);const Yo={},Ba="SELECT_ALL",ls="SELECT_INVERT",Ma="SELECT_NONE",Na=[],$a=(bt,wt)=>{let Xt=[];return(wt||[]).forEach(un=>{Xt.push(un),un&&typeof un=="object"&&bt in un&&(Xt=[].concat((0,jn.Z)(Xt),(0,jn.Z)($a(bt,un[bt]))))}),Xt};var Fo=(bt,wt)=>{const{preserveSelectedRowKeys:Xt,selectedRowKeys:un,defaultSelectedRowKeys:Sn,getCheckboxProps:kn,onChange:sr,onSelect:er,onSelectAll:vr,onSelectInvert:fr,onSelectNone:si,onSelectMultiple:jr,columnWidth:Qr,type:Lr,selections:Sr,fixed:Wi,renderCell:yi,hideSelectAll:to,checkStrictly:uo=!0}=wt||{},{prefixCls:qi,data:mo,pageData:Eo,getRecordByKey:Uo,getRowKey:Po,expandType:_a,childrenColumnName:la,locale:na,getPopupContainer:zo}=bt,Ro=(0,Xo.ln)("Table"),[Ho,wo]=Wo(aa=>aa),[fo,To]=(0,Zi.Z)(un||Sn||Na,{value:un}),Go=x.useRef(new Map),oa=(0,x.useCallback)(aa=>{if(Xt){const ba=new Map;aa.forEach(Vo=>{let No=Uo(Vo);!No&&Go.current.has(Vo)&&(No=Go.current.get(Vo)),ba.set(Vo,No)}),Go.current=ba}},[Uo,Xt]);x.useEffect(()=>{oa(fo)},[fo]);const Co=(0,x.useMemo)(()=>$a(la,Eo),[la,Eo]),{keyEntities:qa}=(0,x.useMemo)(()=>{if(uo)return{keyEntities:null};let aa=mo;if(Xt){const ba=new Set(Co.map((No,ps)=>Po(No,ps))),Vo=Array.from(Go.current).reduce((No,ps)=>{let[Fs,Vs]=ps;return ba.has(Fs)?No:No.concat(Vs)},[]);aa=[].concat((0,jn.Z)(aa),(0,jn.Z)(Vo))}return(0,ui.I8)(aa,{externalGetKey:Po,childrenPropName:la})},[mo,Po,uo,la,Xt,Co]),Za=(0,x.useMemo)(()=>{const aa=new Map;return Co.forEach((ba,Vo)=>{const No=Po(ba,Vo),ps=(kn?kn(ba):null)||{};aa.set(No,ps)}),aa},[Co,Po,kn]),Ml=(0,x.useCallback)(aa=>{const ba=Po(aa);let Vo;return Za.has(ba)?Vo=Za.get(Po(aa)):Vo=kn?kn(aa):void 0,!!(Vo!=null&&Vo.disabled)},[Za,Po]),[Sl,ul]=(0,x.useMemo)(()=>{if(uo)return[fo||[],[]];const{checkedKeys:aa,halfCheckedKeys:ba}=(0,Mo.S)(fo,!0,qa,Ml);return[aa||[],ba]},[fo,uo,qa,Ml]),co=(0,x.useMemo)(()=>{const aa=Lr==="radio"?Sl.slice(0,1):Sl;return new Set(aa)},[Sl,Lr]),ql=(0,x.useMemo)(()=>Lr==="radio"?new Set:new Set(ul),[ul,Lr]);x.useEffect(()=>{wt||To(Na)},[!!wt]);const cs=(0,x.useCallback)((aa,ba)=>{let Vo,No;oa(aa),Xt?(Vo=aa,No=aa.map(ps=>Go.current.get(ps))):(Vo=[],No=[],aa.forEach(ps=>{const Fs=Uo(ps);Fs!==void 0&&(Vo.push(ps),No.push(Fs))})),To(Vo),sr==null||sr(Vo,No,{type:ba})},[To,Uo,sr,Xt]),os=(0,x.useCallback)((aa,ba,Vo,No)=>{if(er){const ps=Vo.map(Fs=>Uo(Fs));er(Uo(aa),ba,ps,No)}cs(Vo,"single")},[er,Uo,cs]),ol=(0,x.useMemo)(()=>!Sr||to?null:(Sr===!0?[Ba,ls,Ma]:Sr).map(ba=>ba===Ba?{key:"all",text:na.selectionAll,onSelect(){cs(mo.map((Vo,No)=>Po(Vo,No)).filter(Vo=>{const No=Za.get(Vo);return!(No!=null&&No.disabled)||co.has(Vo)}),"all")}}:ba===ls?{key:"invert",text:na.selectInvert,onSelect(){const Vo=new Set(co);Eo.forEach((ps,Fs)=>{const Vs=Po(ps,Fs),Ks=Za.get(Vs);Ks!=null&&Ks.disabled||(Vo.has(Vs)?Vo.delete(Vs):Vo.add(Vs))});const No=Array.from(Vo);fr&&(Ro.deprecated(!1,"onSelectInvert","onChange"),fr(No)),cs(No,"invert")}}:ba===Ma?{key:"none",text:na.selectNone,onSelect(){si==null||si(),cs(Array.from(co).filter(Vo=>{const No=Za.get(Vo);return No==null?void 0:No.disabled}),"none")}}:ba).map(ba=>Object.assign(Object.assign({},ba),{onSelect:function(){for(var Vo,No,ps=arguments.length,Fs=new Array(ps),Vs=0;Vs<ps;Vs++)Fs[Vs]=arguments[Vs];(No=ba.onSelect)===null||No===void 0||(Vo=No).call.apply(Vo,[ba].concat(Fs)),wo(null)}})),[Sr,co,Eo,Po,fr,cs]);return[(0,x.useCallback)(aa=>{var ba;if(!wt)return aa.filter(ys=>ys!==Yo);let Vo=(0,jn.Z)(aa);const No=new Set(co),ps=Co.map(Po).filter(ys=>!Za.get(ys).disabled),Fs=ps.every(ys=>No.has(ys)),Vs=ps.some(ys=>No.has(ys)),Ks=()=>{const ys=[];Fs?ps.forEach(dl=>{No.delete(dl),ys.push(dl)}):ps.forEach(dl=>{No.has(dl)||(No.add(dl),ys.push(dl))});const Al=Array.from(No);vr==null||vr(!Fs,Al.map(dl=>Uo(dl)),ys.map(dl=>Uo(dl))),cs(Al,"all"),wo(null)};let cl,gu;if(Lr!=="radio"){let ys;if(ol){const ws={getPopupContainer:zo,items:ol.map((yl,Is)=>{const{key:wl,text:eu,onSelect:ku}=yl;return{key:wl!=null?wl:Is,onClick:()=>{ku==null||ku(ps)},label:eu}})};ys=x.createElement("div",{className:`${qi}-selection-extra`},x.createElement(Qo.Z,{menu:ws,getPopupContainer:zo},x.createElement("span",null,x.createElement(Fi.Z,null))))}const Al=Co.map((ws,yl)=>{const Is=Po(ws,yl),wl=Za.get(Is)||{};return Object.assign({checked:No.has(Is)},wl)}).filter(ws=>{let{disabled:yl}=ws;return yl}),dl=!!Al.length&&Al.length===Co.length,hu=dl&&Al.every(ws=>{let{checked:yl}=ws;return yl}),Rl=dl&&Al.some(ws=>{let{checked:yl}=ws;return yl});gu=x.createElement(ra.default,{checked:dl?hu:!!Co.length&&Fs,indeterminate:dl?!hu&&Rl:!Fs&&Vs,onChange:Ks,disabled:Co.length===0||dl,"aria-label":ys?"Custom selection":"Select all",skipGroup:!0}),cl=!to&&x.createElement("div",{className:`${qi}-selection`},gu,ys)}let ua;Lr==="radio"?ua=(ys,Al,dl)=>{const hu=Po(Al,dl),Rl=No.has(hu),ws=Za.get(hu);return{node:x.createElement(qo.ZP,Object.assign({},ws,{checked:Rl,onClick:yl=>{var Is;yl.stopPropagation(),(Is=ws==null?void 0:ws.onClick)===null||Is===void 0||Is.call(ws,yl)},onChange:yl=>{var Is;No.has(hu)||os(hu,!0,[hu],yl.nativeEvent),(Is=ws==null?void 0:ws.onChange)===null||Is===void 0||Is.call(ws,yl)}})),checked:Rl}}:ua=(ys,Al,dl)=>{var hu;const Rl=Po(Al,dl),ws=No.has(Rl),yl=ql.has(Rl),Is=Za.get(Rl);let wl;return _a==="nest"?wl=yl:wl=(hu=Is==null?void 0:Is.indeterminate)!==null&&hu!==void 0?hu:yl,{node:x.createElement(ra.default,Object.assign({},Is,{indeterminate:wl,checked:ws,skipGroup:!0,onClick:eu=>{var ku;eu.stopPropagation(),(ku=Is==null?void 0:Is.onClick)===null||ku===void 0||ku.call(Is,eu)},onChange:eu=>{var ku;const{nativeEvent:Mu}=eu,{shiftKey:Gc}=Mu,fl=ps.findIndex(ju=>ju===Rl),_d=Sl.some(ju=>ps.includes(ju));if(Gc&&uo&&_d){const ju=Ho(fl,ps,No),Yu=Array.from(No);jr==null||jr(!ws,Yu.map(Qu=>Uo(Qu)),ju.map(Qu=>Uo(Qu))),cs(Yu,"multiple")}else{const ju=Sl;if(uo){const Yu=ws?(0,Ri._5)(ju,Rl):(0,Ri.L0)(ju,Rl);os(Rl,!ws,Yu,Mu)}else{const Yu=(0,Mo.S)([].concat((0,jn.Z)(ju),[Rl]),!0,qa,Ml),{checkedKeys:Qu,halfCheckedKeys:Ju}=Yu;let hl=Qu;if(ws){const wc=new Set(Qu);wc.delete(Rl),hl=(0,Mo.S)(Array.from(wc),{checked:!1,halfCheckedKeys:Ju},qa,Ml).checkedKeys}os(Rl,!ws,hl,Mu)}}wo(ws?null:fl),(ku=Is==null?void 0:Is.onChange)===null||ku===void 0||ku.call(Is,eu)}})),checked:ws}};const ta=(ys,Al,dl)=>{const{node:hu,checked:Rl}=ua(ys,Al,dl);return yi?yi(Rl,Al,dl,hu):hu};if(!Vo.includes(Yo))if(Vo.findIndex(ys=>{var Al;return((Al=ys[Er])===null||Al===void 0?void 0:Al.columnType)==="EXPAND_COLUMN"})===0){const[ys,...Al]=Vo;Vo=[ys,Yo].concat((0,jn.Z)(Al))}else Vo=[Yo].concat((0,jn.Z)(Vo));const Bs=Vo.indexOf(Yo);Vo=Vo.filter((ys,Al)=>ys!==Yo||Al===Bs);const nl=Vo[Bs-1],Xs=Vo[Bs+1];let vu=Wi;vu===void 0&&((Xs==null?void 0:Xs.fixed)!==void 0?vu=Xs.fixed:(nl==null?void 0:nl.fixed)!==void 0&&(vu=nl.fixed)),vu&&nl&&((ba=nl[Er])===null||ba===void 0?void 0:ba.columnType)==="EXPAND_COLUMN"&&nl.fixed===void 0&&(nl.fixed=vu);const Ul=_e()(`${qi}-selection-col`,{[`${qi}-selection-col-with-dropdown`]:Sr&&Lr==="checkbox"}),uc=()=>wt!=null&&wt.columnTitle?typeof wt.columnTitle=="function"?wt.columnTitle(gu):wt.columnTitle:cl,Fl={fixed:vu,width:Qr,className:`${qi}-selection-column`,title:uc(),render:ta,onCell:wt.onCell,[Er]:{className:Ul}};return Vo.map(ys=>ys===Yo?Fl:ys)},[Po,Co,wt,Sl,co,ql,Qr,ol,_a,Za,jr,os,Ml]),co]},Ea=ae(2738);function us(bt,wt){return bt._antProxy=bt._antProxy||{},Object.keys(wt).forEach(Xt=>{if(!(Xt in bt._antProxy)){const un=bt[Xt];bt._antProxy[Xt]=un,bt[Xt]=wt[Xt]}}),bt}function sl(bt,wt){return(0,x.useImperativeHandle)(bt,()=>{const Xt=wt(),{nativeElement:un}=Xt;return typeof Proxy!="undefined"?new Proxy(un,{get(Sn,kn){return Xt[kn]?Xt[kn]:Reflect.get(Sn,kn)}}):us(un,Xt)})}var qs=ae(83010),ll=ae(48755),su=ae(38406),Bl=ae(83397),el=ae(31756),Wl=ae(13783),xu=ae(85981),Nu=ae(31709),Gs=ae(29787),mc=ae(57700);function gc(bt){return wt=>{const{prefixCls:Xt,onExpand:un,record:Sn,expanded:kn,expandable:sr}=wt,er=`${Xt}-row-expand-icon`;return x.createElement("button",{type:"button",onClick:vr=>{un(Sn,vr),vr.stopPropagation()},className:_e()(er,{[`${er}-spaced`]:!sr,[`${er}-expanded`]:sr&&kn,[`${er}-collapsed`]:sr&&!kn}),"aria-label":kn?bt.collapse:bt.expand,"aria-expanded":kn})}}var ga=gc;function La(bt){return(Xt,un)=>{const Sn=Xt.querySelector(`.${bt}-container`);let kn=un;if(Sn){const sr=getComputedStyle(Sn),er=parseInt(sr.borderLeftWidth,10),vr=parseInt(sr.borderRightWidth,10);kn=un-er-vr}return kn}}const ha=(bt,wt)=>"key"in bt&&bt.key!==void 0&&bt.key!==null?bt.key:bt.dataIndex?Array.isArray(bt.dataIndex)?bt.dataIndex.join("."):bt.dataIndex:wt;function va(bt,wt){return wt?`${wt}-${bt}`:`${bt}`}const ts=(bt,wt)=>typeof bt=="function"?bt(wt):bt,Ya=(bt,wt)=>{const Xt=ts(bt,wt);return Object.prototype.toString.call(Xt)==="[object Object]"?"":Xt};var Ga={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"},Gl=Ga,lu=ae(7657),Tl=function(wt,Xt){return x.createElement(lu.Z,(0,Oe.Z)({},wt,{ref:Xt,icon:Gl}))},Ou=x.forwardRef(Tl),Hi=Ou,ia=ae(9981),Ta=ae(40192);function ks(bt){const wt=x.useRef(bt),Xt=(0,Ta.Z)();return[()=>wt.current,un=>{wt.current=un,Xt()}]}var pu=ae(7939),Hs=ae(584),Kc=ae(93041),Vu=ae(78857),rc=ae(18287),vs=ae(47472),Bu=ae(49397),_A=bt=>{const{value:wt,filterSearch:Xt,tablePrefixCls:un,locale:Sn,onChange:kn}=bt;return Xt?x.createElement("div",{className:`${un}-filter-dropdown-search`},x.createElement(Bu.Z,{prefix:x.createElement(vs.Z,null),placeholder:Sn.filterSearchPlaceholder,onChange:kn,value:wt,htmlSize:1,className:`${un}-filter-dropdown-search-input`})):null},El=ae(10228);const kl=bt=>{const{keyCode:wt}=bt;wt===El.Z.ENTER&&bt.stopPropagation()};var NA=x.forwardRef((bt,wt)=>x.createElement("div",{className:bt.className,onClick:Xt=>Xt.stopPropagation(),onKeyDown:kl,ref:wt},bt.children));function vl(bt){let wt=[];return(bt||[]).forEach(Xt=>{let{value:un,children:Sn}=Xt;wt.push(un),Sn&&(wt=[].concat((0,jn.Z)(wt),(0,jn.Z)(vl(Sn))))}),wt}function mu(bt){return bt.some(wt=>{let{children:Xt}=wt;return Xt})}function jl(bt,wt){return typeof wt=="string"||typeof wt=="number"?wt==null?void 0:wt.toString().toLowerCase().includes(bt.trim().toLowerCase()):!1}function Us(bt){let{filters:wt,prefixCls:Xt,filteredKeys:un,filterMultiple:Sn,searchValue:kn,filterSearch:sr}=bt;return wt.map((er,vr)=>{const fr=String(er.value);if(er.children)return{key:fr||vr,label:er.text,popupClassName:`${Xt}-dropdown-submenu`,children:Us({filters:er.children,prefixCls:Xt,filteredKeys:un,filterMultiple:Sn,searchValue:kn,filterSearch:sr})};const si=Sn?ra.default:qo.ZP,jr={key:er.value!==void 0?fr:vr,label:x.createElement(x.Fragment,null,x.createElement(si,{checked:un.includes(fr)}),x.createElement("span",null,er.text))};return kn.trim()?typeof sr=="function"?sr(kn,er)?jr:null:jl(kn,er.text)?jr:null:jr})}function tl(bt){return bt||[]}var $A=bt=>{var wt,Xt,un,Sn;const{tablePrefixCls:kn,prefixCls:sr,column:er,dropdownPrefixCls:vr,columnKey:fr,filterOnClose:si,filterMultiple:jr,filterMode:Qr="menu",filterSearch:Lr=!1,filterState:Sr,triggerFilter:Wi,locale:yi,children:to,getPopupContainer:uo,rootClassName:qi}=bt,{filterResetToDefaultFilteredValue:mo,defaultFilteredValue:Eo,filterDropdownProps:Uo={},filterDropdownOpen:Po,filterDropdownVisible:_a,onFilterDropdownVisibleChange:la,onFilterDropdownOpenChange:na}=er,[zo,Ro]=x.useState(!1),Ho=!!(Sr&&(!((wt=Sr.filteredKeys)===null||wt===void 0)&&wt.length||Sr.forceFiltered)),wo=ua=>{var ta;Ro(ua),(ta=Uo.onOpenChange)===null||ta===void 0||ta.call(Uo,ua),na==null||na(ua),la==null||la(ua)},fo=(Sn=(un=(Xt=Uo.open)!==null&&Xt!==void 0?Xt:Po)!==null&&un!==void 0?un:_a)!==null&&Sn!==void 0?Sn:zo,To=Sr==null?void 0:Sr.filteredKeys,[Go,oa]=ks(tl(To)),Co=ua=>{let{selectedKeys:ta}=ua;oa(ta)},qa=(ua,ta)=>{let{node:Bs,checked:nl}=ta;Co(jr?{selectedKeys:ua}:{selectedKeys:nl&&Bs.key?[Bs.key]:[]})};x.useEffect(()=>{zo&&Co({selectedKeys:tl(To)})},[To]);const[Za,Ml]=x.useState([]),Sl=ua=>{Ml(ua)},[ul,co]=x.useState(""),ql=ua=>{const{value:ta}=ua.target;co(ta)};x.useEffect(()=>{zo||co("")},[zo]);const cs=ua=>{const ta=ua!=null&&ua.length?ua:null;if(ta===null&&(!Sr||!Sr.filteredKeys)||(0,Ue.Z)(ta,Sr==null?void 0:Sr.filteredKeys,!0))return null;Wi({column:er,key:fr,filteredKeys:ta})},os=()=>{wo(!1),cs(Go())},ol=function(){let{confirm:ua,closeDropdown:ta}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ua&&cs([]),ta&&wo(!1),co(""),oa(mo?(Eo||[]).map(Bs=>String(Bs)):[])},fu=function(){let{closeDropdown:ua}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ua&&wo(!1),cs(Go())},aa=(ua,ta)=>{ta.source==="trigger"&&(ua&&To!==void 0&&oa(tl(To)),wo(ua),!ua&&!er.filterDropdown&&si&&os())},ba=_e()({[`${vr}-menu-without-submenu`]:!mu(er.filters||[])}),Vo=ua=>{if(ua.target.checked){const ta=vl(er==null?void 0:er.filters).map(Bs=>String(Bs));oa(ta)}else oa([])},No=ua=>{let{filters:ta}=ua;return(ta||[]).map((Bs,nl)=>{const Xs=String(Bs.value),vu={title:Bs.text,key:Bs.value!==void 0?Xs:String(nl)};return Bs.children&&(vu.children=No({filters:Bs.children})),vu})},ps=ua=>{var ta;return Object.assign(Object.assign({},ua),{text:ua.title,value:ua.key,children:((ta=ua.children)===null||ta===void 0?void 0:ta.map(Bs=>ps(Bs)))||[]})};let Fs;const{direction:Vs,renderEmpty:Ks}=x.useContext(ll.E_);if(typeof er.filterDropdown=="function")Fs=er.filterDropdown({prefixCls:`${vr}-custom`,setSelectedKeys:ua=>Co({selectedKeys:ua}),selectedKeys:Go(),confirm:fu,clearFilters:ol,filters:er.filters,visible:fo,close:()=>{wo(!1)}});else if(er.filterDropdown)Fs=er.filterDropdown;else{const ua=Go()||[],ta=()=>{var nl,Xs;const vu=(nl=Ks==null?void 0:Ks("Table.filter"))!==null&&nl!==void 0?nl:x.createElement(Hs.Z,{image:Hs.Z.PRESENTED_IMAGE_SIMPLE,description:yi.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((er.filters||[]).length===0)return vu;if(Qr==="tree")return x.createElement(x.Fragment,null,x.createElement(_A,{filterSearch:Lr,value:ul,onChange:ql,tablePrefixCls:kn,locale:yi}),x.createElement("div",{className:`${kn}-filter-dropdown-tree`},jr?x.createElement(ra.default,{checked:ua.length===vl(er.filters).length,indeterminate:ua.length>0&&ua.length<vl(er.filters).length,className:`${kn}-filter-dropdown-checkall`,onChange:Vo},(Xs=yi==null?void 0:yi.filterCheckall)!==null&&Xs!==void 0?Xs:yi==null?void 0:yi.filterCheckAll):null,x.createElement(rc.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:jr,checkStrictly:!jr,className:`${vr}-menu`,onCheck:qa,checkedKeys:ua,selectedKeys:ua,showIcon:!1,treeData:No({filters:er.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ul.trim()?Fl=>typeof Lr=="function"?Lr(ul,ps(Fl)):jl(ul,Fl.title):void 0})));const Ul=Us({filters:er.filters||[],filterSearch:Lr,prefixCls:sr,filteredKeys:Go(),filterMultiple:jr,searchValue:ul}),uc=Ul.every(Fl=>Fl===null);return x.createElement(x.Fragment,null,x.createElement(_A,{filterSearch:Lr,value:ul,onChange:ql,tablePrefixCls:kn,locale:yi}),uc?vu:x.createElement(Kc.default,{selectable:!0,multiple:jr,prefixCls:`${vr}-menu`,className:ba,onSelect:Co,onDeselect:Co,selectedKeys:ua,getPopupContainer:uo,openKeys:Za,onOpenChange:Sl,items:Ul}))},Bs=()=>mo?(0,Ue.Z)((Eo||[]).map(nl=>String(nl)),ua,!0):ua.length===0;Fs=x.createElement(x.Fragment,null,ta(),x.createElement("div",{className:`${sr}-dropdown-btns`},x.createElement(pu.ZP,{type:"link",size:"small",disabled:Bs(),onClick:()=>ol()},yi.filterReset),x.createElement(pu.ZP,{type:"primary",size:"small",onClick:os},yi.filterConfirm)))}er.filterDropdown&&(Fs=x.createElement(Vu.J,{selectable:void 0},Fs)),Fs=x.createElement(NA,{className:`${sr}-dropdown`},Fs);const cl=()=>{let ua;return typeof er.filterIcon=="function"?ua=er.filterIcon(Ho):er.filterIcon?ua=er.filterIcon:ua=x.createElement(Hi,null),x.createElement("span",{role:"button",tabIndex:-1,className:_e()(`${sr}-trigger`,{active:Ho}),onClick:ta=>{ta.stopPropagation()}},ua)},gu=(0,ia.Z)({trigger:["click"],placement:Vs==="rtl"?"bottomLeft":"bottomRight",children:cl(),getPopupContainer:uo},Object.assign(Object.assign({},Uo),{rootClassName:_e()(qi,Uo.rootClassName),open:fo,onOpenChange:aa,dropdownRender:()=>typeof(Uo==null?void 0:Uo.dropdownRender)=="function"?Uo.dropdownRender(Fs):Fs}));return x.createElement("div",{className:`${sr}-column`},x.createElement("span",{className:`${kn}-column-title`},to),x.createElement(Qo.Z,Object.assign({},gu)))};const Xl=(bt,wt,Xt)=>{let un=[];return(bt||[]).forEach((Sn,kn)=>{var sr;const er=va(kn,Xt);if(Sn.filters||"filterDropdown"in Sn||"onFilter"in Sn)if("filteredValue"in Sn){let vr=Sn.filteredValue;"filterDropdown"in Sn||(vr=(sr=vr==null?void 0:vr.map(String))!==null&&sr!==void 0?sr:vr),un.push({column:Sn,key:ha(Sn,er),filteredKeys:vr,forceFiltered:Sn.filtered})}else un.push({column:Sn,key:ha(Sn,er),filteredKeys:wt&&Sn.defaultFilteredValue?Sn.defaultFilteredValue:void 0,forceFiltered:Sn.filtered});"children"in Sn&&(un=[].concat((0,jn.Z)(un),(0,jn.Z)(Xl(Sn.children,wt,er))))}),un};function Eu(bt,wt,Xt,un,Sn,kn,sr,er,vr){return Xt.map((fr,si)=>{const jr=va(si,er),{filterOnClose:Qr=!0,filterMultiple:Lr=!0,filterMode:Sr,filterSearch:Wi}=fr;let yi=fr;if(yi.filters||yi.filterDropdown){const to=ha(yi,jr),uo=un.find(qi=>{let{key:mo}=qi;return to===mo});yi=Object.assign(Object.assign({},yi),{title:qi=>x.createElement($A,{tablePrefixCls:bt,prefixCls:`${bt}-filter`,dropdownPrefixCls:wt,column:yi,columnKey:to,filterState:uo,filterOnClose:Qr,filterMultiple:Lr,filterMode:Sr,filterSearch:Wi,triggerFilter:kn,locale:Sn,getPopupContainer:sr,rootClassName:vr},ts(fr.title,qi))})}return"children"in yi&&(yi=Object.assign(Object.assign({},yi),{children:Eu(bt,wt,yi.children,un,Sn,kn,sr,jr,vr)})),yi})}const Sa=bt=>{const wt={};return bt.forEach(Xt=>{let{key:un,filteredKeys:Sn,column:kn}=Xt;const sr=un,{filters:er,filterDropdown:vr}=kn;if(vr)wt[sr]=Sn||null;else if(Array.isArray(Sn)){const fr=vl(er);wt[sr]=fr.filter(si=>Sn.includes(String(si)))}else wt[sr]=null}),wt},Qa=(bt,wt,Xt)=>wt.reduce((Sn,kn)=>{const{column:{onFilter:sr,filters:er},filteredKeys:vr}=kn;return sr&&vr&&vr.length?Sn.map(fr=>Object.assign({},fr)).filter(fr=>vr.some(si=>{const jr=vl(er),Qr=jr.findIndex(Sr=>String(Sr)===String(si)),Lr=Qr!==-1?jr[Qr]:si;return fr[Xt]&&(fr[Xt]=Qa(fr[Xt],wt,Xt)),sr(Lr,fr)})):Sn},bt),Rs=bt=>bt.flatMap(wt=>"children"in wt?[wt].concat((0,jn.Z)(Rs(wt.children||[]))):[wt]);var Yl=bt=>{const{prefixCls:wt,dropdownPrefixCls:Xt,mergedColumns:un,onFilterChange:Sn,getPopupContainer:kn,locale:sr,rootClassName:er}=bt,vr=(0,Xo.ln)("Table"),fr=x.useMemo(()=>Rs(un||[]),[un]),[si,jr]=x.useState(()=>Xl(fr,!0)),Qr=x.useMemo(()=>{const yi=Xl(fr,!1);if(yi.length===0)return yi;let to=!0,uo=!0;if(yi.forEach(qi=>{let{filteredKeys:mo}=qi;mo!==void 0?to=!1:uo=!1}),to){const qi=(fr||[]).map((mo,Eo)=>ha(mo,va(Eo)));return si.filter(mo=>{let{key:Eo}=mo;return qi.includes(Eo)}).map(mo=>{const Eo=fr[qi.findIndex(Uo=>Uo===mo.key)];return Object.assign(Object.assign({},mo),{column:Object.assign(Object.assign({},mo.column),Eo),forceFiltered:Eo.filtered})})}return yi},[fr,si]),Lr=x.useMemo(()=>Sa(Qr),[Qr]),Sr=yi=>{const to=Qr.filter(uo=>{let{key:qi}=uo;return qi!==yi.key});to.push(yi),jr(to),Sn(Sa(to),to)};return[yi=>Eu(wt,Xt,yi,Qr,sr,Sr,kn,void 0,er),Qr,Lr]},$c=(bt,wt,Xt)=>{const un=x.useRef({});function Sn(kn){var sr;if(!un.current||un.current.data!==bt||un.current.childrenColumnName!==wt||un.current.getRowKey!==Xt){let vr=function(fr){fr.forEach((si,jr)=>{const Qr=Xt(si,jr);er.set(Qr,si),si&&typeof si=="object"&&wt in si&&vr(si[wt]||[])})};const er=new Map;vr(bt),un.current={data:bt,childrenColumnName:wt,kvMap:er,getRowKey:Xt}}return(sr=un.current.kvMap)===null||sr===void 0?void 0:sr.get(kn)}return[Sn]},vc=function(bt,wt){var Xt={};for(var un in bt)Object.prototype.hasOwnProperty.call(bt,un)&&wt.indexOf(un)<0&&(Xt[un]=bt[un]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,un=Object.getOwnPropertySymbols(bt);Sn<un.length;Sn++)wt.indexOf(un[Sn])<0&&Object.prototype.propertyIsEnumerable.call(bt,un[Sn])&&(Xt[un[Sn]]=bt[un[Sn]]);return Xt};const dA=10;function Jl(bt,wt){const Xt={current:bt.current,pageSize:bt.pageSize};return Object.keys(wt&&typeof wt=="object"?wt:{}).forEach(Sn=>{const kn=bt[Sn];typeof kn!="function"&&(Xt[Sn]=kn)}),Xt}function yc(bt,wt,Xt){const un=Xt&&typeof Xt=="object"?Xt:{},{total:Sn=0}=un,kn=vc(un,["total"]),[sr,er]=(0,x.useState)(()=>({current:"defaultCurrent"in kn?kn.defaultCurrent:1,pageSize:"defaultPageSize"in kn?kn.defaultPageSize:dA})),vr=(0,ia.Z)(sr,kn,{total:Sn>0?Sn:bt}),fr=Math.ceil((Sn||bt)/vr.pageSize);vr.current>fr&&(vr.current=fr||1);const si=(Qr,Lr)=>{er({current:Qr!=null?Qr:1,pageSize:Lr||vr.pageSize})},jr=(Qr,Lr)=>{var Sr;Xt&&((Sr=Xt.onChange)===null||Sr===void 0||Sr.call(Xt,Qr,Lr)),si(Qr,Lr),wt(Qr,Lr||(vr==null?void 0:vr.pageSize))};return Xt===!1?[{},()=>{}]:[Object.assign(Object.assign({},vr),{onChange:jr}),si]}var tA=yc,nA=ae(89489),Ed=ae(59477),Jf=ae(25399);const nd="ascend",OA="descend",fA=bt=>typeof bt.sorter=="object"&&typeof bt.sorter.multiple=="number"?bt.sorter.multiple:!1,Du=bt=>typeof bt=="function"?bt:bt&&typeof bt=="object"&&bt.compare?bt.compare:!1,DA=(bt,wt)=>wt?bt[bt.indexOf(wt)+1]:bt[0],rA=(bt,wt,Xt)=>{let un=[];const Sn=(kn,sr)=>{un.push({column:kn,key:ha(kn,sr),multiplePriority:fA(kn),sortOrder:kn.sortOrder})};return(bt||[]).forEach((kn,sr)=>{const er=va(sr,Xt);kn.children?("sortOrder"in kn&&Sn(kn,er),un=[].concat((0,jn.Z)(un),(0,jn.Z)(rA(kn.children,wt,er)))):kn.sorter&&("sortOrder"in kn?Sn(kn,er):wt&&kn.defaultSortOrder&&un.push({column:kn,key:ha(kn,er),multiplePriority:fA(kn),sortOrder:kn.defaultSortOrder}))}),un},Sd=(bt,wt,Xt,un,Sn,kn,sr,er)=>(wt||[]).map((fr,si)=>{const jr=va(si,er);let Qr=fr;if(Qr.sorter){const Lr=Qr.sortDirections||Sn,Sr=Qr.showSorterTooltip===void 0?sr:Qr.showSorterTooltip,Wi=ha(Qr,jr),yi=Xt.find(la=>{let{key:na}=la;return na===Wi}),to=yi?yi.sortOrder:null,uo=DA(Lr,to);let qi;if(fr.sortIcon)qi=fr.sortIcon({sortOrder:to});else{const la=Lr.includes(nd)&&x.createElement(Ed.Z,{className:_e()(`${bt}-column-sorter-up`,{active:to===nd})}),na=Lr.includes(OA)&&x.createElement(nA.Z,{className:_e()(`${bt}-column-sorter-down`,{active:to===OA})});qi=x.createElement("span",{className:_e()(`${bt}-column-sorter`,{[`${bt}-column-sorter-full`]:!!(la&&na)})},x.createElement("span",{className:`${bt}-column-sorter-inner`,"aria-hidden":"true"},la,na))}const{cancelSort:mo,triggerAsc:Eo,triggerDesc:Uo}=kn||{};let Po=mo;uo===OA?Po=Uo:uo===nd&&(Po=Eo);const _a=typeof Sr=="object"?Object.assign({title:Po},Sr):{title:Po};Qr=Object.assign(Object.assign({},Qr),{className:_e()(Qr.className,{[`${bt}-column-sort`]:to}),title:la=>{const na=`${bt}-column-sorters`,zo=x.createElement("span",{className:`${bt}-column-title`},ts(fr.title,la)),Ro=x.createElement("div",{className:na},zo,qi);return Sr?typeof Sr!="boolean"&&(Sr==null?void 0:Sr.target)==="sorter-icon"?x.createElement("div",{className:`${na} ${bt}-column-sorters-tooltip-target-sorter`},zo,x.createElement(Jf.Z,Object.assign({},_a),qi)):x.createElement(Jf.Z,Object.assign({},_a),Ro):Ro},onHeaderCell:la=>{var na;const zo=((na=fr.onHeaderCell)===null||na===void 0?void 0:na.call(fr,la))||{},Ro=zo.onClick,Ho=zo.onKeyDown;zo.onClick=To=>{un({column:fr,key:Wi,sortOrder:uo,multiplePriority:fA(fr)}),Ro==null||Ro(To)},zo.onKeyDown=To=>{To.keyCode===El.Z.ENTER&&(un({column:fr,key:Wi,sortOrder:uo,multiplePriority:fA(fr)}),Ho==null||Ho(To))};const wo=Ya(fr.title,{}),fo=wo==null?void 0:wo.toString();return to&&(zo["aria-sort"]=to==="ascend"?"ascending":"descending"),zo["aria-label"]=fo||"",zo.className=_e()(zo.className,`${bt}-column-has-sorters`),zo.tabIndex=0,fr.ellipsis&&(zo.title=(wo!=null?wo:"").toString()),zo}})}return"children"in Qr&&(Qr=Object.assign(Object.assign({},Qr),{children:Sd(bt,Qr.children,Xt,un,Sn,kn,sr,jr)})),Qr}),qf=bt=>{const{column:wt,sortOrder:Xt}=bt;return{column:wt,order:Xt,field:wt.dataIndex,columnKey:wt.key}},Ns=bt=>{const wt=bt.filter(Xt=>{let{sortOrder:un}=Xt;return un}).map(qf);if(wt.length===0&&bt.length){const Xt=bt.length-1;return Object.assign(Object.assign({},qf(bt[Xt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return wt.length<=1?wt[0]||{}:wt},Xu=(bt,wt,Xt)=>{const un=wt.slice().sort((sr,er)=>er.multiplePriority-sr.multiplePriority),Sn=bt.slice(),kn=un.filter(sr=>{let{column:{sorter:er},sortOrder:vr}=sr;return Du(er)&&vr});return kn.length?Sn.sort((sr,er)=>{for(let vr=0;vr<kn.length;vr+=1){const fr=kn[vr],{column:{sorter:si},sortOrder:jr}=fr,Qr=Du(si);if(Qr&&jr){const Lr=Qr(sr,er,jr);if(Lr!==0)return jr===nd?Lr:-Lr}}return 0}).map(sr=>{const er=sr[Xt];return er?Object.assign(Object.assign({},sr),{[Xt]:Xu(er,wt,Xt)}):sr}):Sn};var Ph=bt=>{const{prefixCls:wt,mergedColumns:Xt,sortDirections:un,tableLocale:Sn,showSorterTooltip:kn,onSorterChange:sr}=bt,[er,vr]=x.useState(rA(Xt,!0)),fr=(Wi,yi)=>{const to=[];return Wi.forEach((uo,qi)=>{const mo=va(qi,yi);if(to.push(ha(uo,mo)),Array.isArray(uo.children)){const Eo=fr(uo.children,mo);to.push.apply(to,(0,jn.Z)(Eo))}}),to},si=x.useMemo(()=>{let Wi=!0;const yi=rA(Xt,!1);if(!yi.length){const mo=fr(Xt);return er.filter(Eo=>{let{key:Uo}=Eo;return mo.includes(Uo)})}const to=[];function uo(mo){Wi?to.push(mo):to.push(Object.assign(Object.assign({},mo),{sortOrder:null}))}let qi=null;return yi.forEach(mo=>{qi===null?(uo(mo),mo.sortOrder&&(mo.multiplePriority===!1?Wi=!1:qi=!0)):(qi&&mo.multiplePriority!==!1||(Wi=!1),uo(mo))}),to},[Xt,er]),jr=x.useMemo(()=>{var Wi,yi;const to=si.map(uo=>{let{column:qi,sortOrder:mo}=uo;return{column:qi,order:mo}});return{sortColumns:to,sortColumn:(Wi=to[0])===null||Wi===void 0?void 0:Wi.column,sortOrder:(yi=to[0])===null||yi===void 0?void 0:yi.order}},[si]),Qr=Wi=>{let yi;Wi.multiplePriority===!1||!si.length||si[0].multiplePriority===!1?yi=[Wi]:yi=[].concat((0,jn.Z)(si.filter(to=>{let{key:uo}=to;return uo!==Wi.key})),[Wi]),vr(yi),sr(Ns(yi),yi)};return[Wi=>Sd(wt,Wi,si,Qr,un,Sn,kn),si,jr,()=>Ns(si)]};const Zc=(bt,wt)=>bt.map(un=>{const Sn=Object.assign({},un);return Sn.title=ts(un.title,wt),"children"in Sn&&(Sn.children=Zc(Sn.children,wt)),Sn});var Fd=bt=>[x.useCallback(Xt=>Zc(Xt,bt),[bt])],bf=ro((bt,wt)=>{const{_renderTimes:Xt}=bt,{_renderTimes:un}=wt;return Xt!==un}),Wc=Vr((bt,wt)=>{const{_renderTimes:Xt}=bt,{_renderTimes:un}=wt;return Xt!==un}),ya=ae(36237),Ql=ae(17835),Dc=ae(63356),rd=ae(16931),PA=ae(51636),TA=bt=>{const{componentCls:wt,lineWidth:Xt,lineType:un,tableBorderColor:Sn,tableHeaderBg:kn,tablePaddingVertical:sr,tablePaddingHorizontal:er,calc:vr}=bt,fr=`${(0,ya.unit)(Xt)} ${un} ${Sn}`,si=(jr,Qr,Lr)=>({[`&${wt}-${jr}`]:{[`> ${wt}-container`]:{[`> ${wt}-content, > ${wt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${wt}-expanded-row-fixed`]:{margin:`${(0,ya.unit)(vr(Qr).mul(-1).equal())}
|
|
|
${(0,ya.unit)(vr(vr(Lr).add(Xt)).mul(-1).equal())}`}}}}}});return{[`${wt}-wrapper`]:{[`${wt}${wt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${wt}-title`]:{border:fr,borderBottom:0},[`> ${wt}-container`]:{borderInlineStart:fr,borderTop:fr,[`
|
|
|
> ${wt}-content,
|
|
|
> ${wt}-header,
|
|
|
> ${wt}-body,
|
|
|
> ${wt}-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:fr},"> thead":{"> tr:not(:last-child) > th":{borderBottom:fr},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${wt}-cell-fix-right-first::after`]:{borderInlineEnd:fr}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${wt}-expanded-row-fixed`]:{margin:`${(0,ya.unit)(vr(sr).mul(-1).equal())} ${(0,ya.unit)(vr(vr(er).add(Xt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Xt,bottom:0,borderInlineEnd:fr,content:'""'}}}}}},[`&${wt}-scroll-horizontal`]:{[`> ${wt}-container > ${wt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${wt}-expanded-row,
|
|
|
> tr${wt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},si("middle",bt.tablePaddingVerticalMiddle,bt.tablePaddingHorizontalMiddle)),si("small",bt.tablePaddingVerticalSmall,bt.tablePaddingHorizontalSmall)),{[`> ${wt}-footer`]:{border:fr,borderTop:0}}),[`${wt}-cell`]:{[`${wt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ya.unit)(Xt)} 0 ${(0,ya.unit)(Xt)} ${kn}`}},[`${wt}-bordered ${wt}-cell-scrollbar`]:{borderInlineEnd:fr}}}},Pc=bt=>{const{componentCls:wt}=bt;return{[`${wt}-wrapper`]:{[`${wt}-cell-ellipsis`]:Object.assign(Object.assign({},Dc.vS),{wordBreak:"keep-all",[`
|
|
|
&${wt}-cell-fix-left-last,
|
|
|
&${wt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${wt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${wt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},$p=bt=>{const{componentCls:wt}=bt;return{[`${wt}-wrapper`]:{[`${wt}-tbody > tr${wt}-placeholder`]:{textAlign:"center",color:bt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:bt.colorBgContainer}}}}},Ic=bt=>{const{componentCls:wt,antCls:Xt,motionDurationSlow:un,lineWidth:Sn,paddingXS:kn,lineType:sr,tableBorderColor:er,tableExpandIconBg:vr,tableExpandColumnWidth:fr,borderRadius:si,tablePaddingVertical:jr,tablePaddingHorizontal:Qr,tableExpandedRowBg:Lr,paddingXXS:Sr,expandIconMarginTop:Wi,expandIconSize:yi,expandIconHalfInner:to,expandIconScale:uo,calc:qi}=bt,mo=`${(0,ya.unit)(Sn)} ${sr} ${er}`,Eo=qi(Sr).sub(Sn).equal();return{[`${wt}-wrapper`]:{[`${wt}-expand-icon-col`]:{width:fr},[`${wt}-row-expand-icon-cell`]:{textAlign:"center",[`${wt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${wt}-row-indent`]:{height:1,float:"left"},[`${wt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Dc.Nd)(bt)),{position:"relative",float:"left",width:yi,height:yi,color:"inherit",lineHeight:(0,ya.unit)(yi),background:vr,border:mo,borderRadius:si,transform:`scale(${uo})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${un} ease-out`,content:'""'},"&::before":{top:to,insetInlineEnd:Eo,insetInlineStart:Eo,height:Sn},"&::after":{top:Eo,bottom:Eo,insetInlineStart:to,width:Sn,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"}}),[`${wt}-row-indent + ${wt}-row-expand-icon`]:{marginTop:Wi,marginInlineEnd:kn},[`tr${wt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Lr}},[`${Xt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${wt}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ya.unit)(qi(jr).mul(-1).equal())} ${(0,ya.unit)(qi(Qr).mul(-1).equal())}`,padding:`${(0,ya.unit)(jr)} ${(0,ya.unit)(Qr)}`}}}},zs=bt=>{const{componentCls:wt,antCls:Xt,iconCls:un,tableFilterDropdownWidth:Sn,tableFilterDropdownSearchWidth:kn,paddingXXS:sr,paddingXS:er,colorText:vr,lineWidth:fr,lineType:si,tableBorderColor:jr,headerIconColor:Qr,fontSizeSM:Lr,tablePaddingHorizontal:Sr,borderRadius:Wi,motionDurationSlow:yi,colorTextDescription:to,colorPrimary:uo,tableHeaderFilterActiveBg:qi,colorTextDisabled:mo,tableFilterDropdownBg:Eo,tableFilterDropdownHeight:Uo,controlItemBgHover:Po,controlItemBgActive:_a,boxShadowSecondary:la,filterDropdownMenuBg:na,calc:zo}=bt,Ro=`${Xt}-dropdown`,Ho=`${wt}-filter-dropdown`,wo=`${Xt}-tree`,fo=`${(0,ya.unit)(fr)} ${si} ${jr}`;return[{[`${wt}-wrapper`]:{[`${wt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${wt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:zo(sr).mul(-1).equal(),marginInline:`${(0,ya.unit)(sr)} ${(0,ya.unit)(zo(Sr).div(2).mul(-1).equal())}`,padding:`0 ${(0,ya.unit)(sr)}`,color:Qr,fontSize:Lr,borderRadius:Wi,cursor:"pointer",transition:`all ${yi}`,"&:hover":{color:to,background:qi},"&.active":{color:uo}}}},{[`${Xt}-dropdown`]:{[Ho]:Object.assign(Object.assign({},(0,Dc.Wf)(bt)),{minWidth:Sn,backgroundColor:Eo,borderRadius:Wi,boxShadow:la,overflow:"hidden",[`${Ro}-menu`]:{maxHeight:Uo,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:na,"&:empty::after":{display:"block",padding:`${(0,ya.unit)(er)} 0`,color:mo,fontSize:Lr,textAlign:"center",content:'"Not Found"'}},[`${Ho}-tree`]:{paddingBlock:`${(0,ya.unit)(er)} 0`,paddingInline:er,[wo]:{padding:0},[`${wo}-treenode ${wo}-node-content-wrapper:hover`]:{backgroundColor:Po},[`${wo}-treenode-checkbox-checked ${wo}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_a}}},[`${Ho}-search`]:{padding:er,borderBottom:fo,"&-input":{input:{minWidth:kn},[un]:{color:mo}}},[`${Ho}-checkall`]:{width:"100%",marginBottom:sr,marginInlineStart:sr},[`${Ho}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ya.unit)(zo(er).sub(fr).equal())} ${(0,ya.unit)(er)}`,overflow:"hidden",borderTop:fo}})}},{[`${Xt}-dropdown ${Ho}, ${Ho}-submenu`]:{[`${Xt}-checkbox-wrapper + span`]:{paddingInlineStart:er,color:vr},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},od=bt=>{const{componentCls:wt,lineWidth:Xt,colorSplit:un,motionDurationSlow:Sn,zIndexTableFixed:kn,tableBg:sr,zIndexTableSticky:er,calc:vr}=bt,fr=un;return{[`${wt}-wrapper`]:{[`
|
|
|
${wt}-cell-fix-left,
|
|
|
${wt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:kn,background:sr},[`
|
|
|
${wt}-cell-fix-left-first::after,
|
|
|
${wt}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:vr(Xt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},[`${wt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${wt}-cell-fix-right-first::after,
|
|
|
${wt}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:vr(Xt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},[`${wt}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:vr(er).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${wt}-ping-left`]:{[`&:not(${wt}-has-fix-left) ${wt}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${fr}`},[`
|
|
|
${wt}-cell-fix-left-first::after,
|
|
|
${wt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${fr}`},[`${wt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${wt}-ping-right`]:{[`&:not(${wt}-has-fix-right) ${wt}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${fr}`},[`
|
|
|
${wt}-cell-fix-right-first::after,
|
|
|
${wt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${fr}`}},[`${wt}-fixed-column-gapped`]:{[`
|
|
|
${wt}-cell-fix-left-first::after,
|
|
|
${wt}-cell-fix-left-last::after,
|
|
|
${wt}-cell-fix-right-first::after,
|
|
|
${wt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},gA=bt=>{const{componentCls:wt,antCls:Xt,margin:un}=bt;return{[`${wt}-wrapper`]:{[`${wt}-pagination${Xt}-pagination`]:{margin:`${(0,ya.unit)(un)} 0`},[`${wt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:bt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},xf=bt=>{const{componentCls:wt,tableRadius:Xt}=bt;return{[`${wt}-wrapper`]:{[wt]:{[`${wt}-title, ${wt}-header`]:{borderRadius:`${(0,ya.unit)(Xt)} ${(0,ya.unit)(Xt)} 0 0`},[`${wt}-title + ${wt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${wt}-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:Xt,borderStartEndRadius:Xt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Xt},"> *:last-child":{borderStartEndRadius:Xt}}},"&-footer":{borderRadius:`0 0 ${(0,ya.unit)(Xt)} ${(0,ya.unit)(Xt)}`}}}}},kh=bt=>{const{componentCls:wt}=bt;return{[`${wt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${wt}-pagination-left`]:{justifyContent:"flex-end"},[`${wt}-pagination-right`]:{justifyContent:"flex-start"},[`${wt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${wt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${wt}-row-indent`]:{float:"right"}}}}},ac=bt=>{const{componentCls:wt,antCls:Xt,iconCls:un,fontSizeIcon:Sn,padding:kn,paddingXS:sr,headerIconColor:er,headerIconHoverColor:vr,tableSelectionColumnWidth:fr,tableSelectedRowBg:si,tableSelectedRowHoverBg:jr,tableRowHoverBg:Qr,tablePaddingHorizontal:Lr,calc:Sr}=bt;return{[`${wt}-wrapper`]:{[`${wt}-selection-col`]:{width:fr,[`&${wt}-selection-col-with-dropdown`]:{width:Sr(fr).add(Sn).add(Sr(kn).div(4)).equal()}},[`${wt}-bordered ${wt}-selection-col`]:{width:Sr(fr).add(Sr(sr).mul(2)).equal(),[`&${wt}-selection-col-with-dropdown`]:{width:Sr(fr).add(Sn).add(Sr(kn).div(4)).add(Sr(sr).mul(2)).equal()}},[`
|
|
|
table tr th${wt}-selection-column,
|
|
|
table tr td${wt}-selection-column,
|
|
|
${wt}-selection-column
|
|
|
`]:{paddingInlineEnd:bt.paddingXS,paddingInlineStart:bt.paddingXS,textAlign:"center",[`${Xt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${wt}-selection-column${wt}-cell-fix-left`]:{zIndex:Sr(bt.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${wt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${wt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${wt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${bt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ya.unit)(Sr(Lr).div(4).equal()),[un]:{color:er,fontSize:Sn,verticalAlign:"baseline","&:hover":{color:vr}}},[`${wt}-tbody`]:{[`${wt}-row`]:{[`&${wt}-row-selected`]:{[`> ${wt}-cell`]:{background:si,"&-row-hover":{background:jr}}},[`> ${wt}-cell-row-hover`]:{background:Qr}}}}}},up=bt=>{const{componentCls:wt,tableExpandColumnWidth:Xt,calc:un}=bt,Sn=(kn,sr,er,vr)=>({[`${wt}${wt}-${kn}`]:{fontSize:vr,[`
|
|
|
${wt}-title,
|
|
|
${wt}-footer,
|
|
|
${wt}-cell,
|
|
|
${wt}-thead > tr > th,
|
|
|
${wt}-tbody > tr > th,
|
|
|
${wt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,ya.unit)(sr)} ${(0,ya.unit)(er)}`},[`${wt}-filter-trigger`]:{marginInlineEnd:(0,ya.unit)(un(er).div(2).mul(-1).equal())},[`${wt}-expanded-row-fixed`]:{margin:`${(0,ya.unit)(un(sr).mul(-1).equal())} ${(0,ya.unit)(un(er).mul(-1).equal())}`},[`${wt}-tbody`]:{[`${wt}-wrapper:only-child ${wt}`]:{marginBlock:(0,ya.unit)(un(sr).mul(-1).equal()),marginInline:`${(0,ya.unit)(un(Xt).sub(er).equal())} ${(0,ya.unit)(un(er).mul(-1).equal())}`}},[`${wt}-selection-extra`]:{paddingInlineStart:(0,ya.unit)(un(er).div(4).equal())}}});return{[`${wt}-wrapper`]:Object.assign(Object.assign({},Sn("middle",bt.tablePaddingVerticalMiddle,bt.tablePaddingHorizontalMiddle,bt.tableFontSizeMiddle)),Sn("small",bt.tablePaddingVerticalSmall,bt.tablePaddingHorizontalSmall,bt.tableFontSizeSmall))}},Vd=bt=>{const{componentCls:wt,marginXXS:Xt,fontSizeIcon:un,headerIconColor:Sn,headerIconHoverColor:kn}=bt;return{[`${wt}-wrapper`]:{[`${wt}-thead th${wt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${bt.motionDurationSlow}, left 0s`,"&:hover":{background:bt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:bt.colorPrimary},[`
|
|
|
&${wt}-cell-fix-left:hover,
|
|
|
&${wt}-cell-fix-right:hover
|
|
|
`]:{background:bt.tableFixedHeaderSortActiveBg}},[`${wt}-thead th${wt}-column-sort`]:{background:bt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${wt}-column-sort`]:{background:bt.tableBodySortBg},[`${wt}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${wt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${wt}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${wt}-column-sorter`]:{marginInlineStart:Xt,color:Sn,fontSize:0,transition:`color ${bt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:un,"&.active":{color:bt.colorPrimary}},[`${wt}-column-sorter-up + ${wt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${wt}-column-sorters:hover ${wt}-column-sorter`]:{color:kn}}}},Xd=bt=>{const{componentCls:wt,opacityLoading:Xt,tableScrollThumbBg:un,tableScrollThumbBgHover:Sn,tableScrollThumbSize:kn,tableScrollBg:sr,zIndexTableSticky:er,stickyScrollBarBorderRadius:vr,lineWidth:fr,lineType:si,tableBorderColor:jr}=bt,Qr=`${(0,ya.unit)(fr)} ${si} ${jr}`;return{[`${wt}-wrapper`]:{[`${wt}-sticky`]:{"&-holder":{position:"sticky",zIndex:er,background:bt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ya.unit)(kn)} !important`,zIndex:er,display:"flex",alignItems:"center",background:sr,borderTop:Qr,opacity:Xt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:kn,backgroundColor:un,borderRadius:vr,transition:`all ${bt.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Sn}}}}}}},sc=bt=>{const{componentCls:wt,lineWidth:Xt,tableBorderColor:un,calc:Sn}=bt,kn=`${(0,ya.unit)(Xt)} ${bt.lineType} ${un}`;return{[`${wt}-wrapper`]:{[`${wt}-summary`]:{position:"relative",zIndex:bt.zIndexTableFixed,background:bt.tableBg,"> tr":{"> th, > td":{borderBottom:kn}}},[`div${wt}-summary`]:{boxShadow:`0 ${(0,ya.unit)(Sn(Xt).mul(-1).equal())} 0 ${un}`}}}},lc=bt=>{const{componentCls:wt,motionDurationMid:Xt,lineWidth:un,lineType:Sn,tableBorderColor:kn,calc:sr}=bt,er=`${(0,ya.unit)(un)} ${Sn} ${kn}`,vr=`${wt}-expanded-row-cell`;return{[`${wt}-wrapper`]:{[`${wt}-tbody-virtual`]:{[`${wt}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${wt}-row,
|
|
|
& > div:not(${wt}-row) > ${wt}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${wt}-cell`]:{borderBottom:er,transition:`background ${Xt}`},[`${wt}-expanded-row`]:{[`${vr}${vr}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ya.unit)(un)})`,borderInlineEnd:"none"}}},[`${wt}-bordered`]:{[`${wt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:er,position:"absolute"},[`${wt}-cell`]:{borderInlineEnd:er,[`&${wt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:sr(un).mul(-1).equal(),borderInlineStart:er}}},[`&${wt}-virtual`]:{[`${wt}-placeholder ${wt}-cell`]:{borderInlineEnd:er,borderBottom:er}}}}}};const Tu=bt=>{const{componentCls:wt,fontWeightStrong:Xt,tablePaddingVertical:un,tablePaddingHorizontal:Sn,tableExpandColumnWidth:kn,lineWidth:sr,lineType:er,tableBorderColor:vr,tableFontSize:fr,tableBg:si,tableRadius:jr,tableHeaderTextColor:Qr,motionDurationMid:Lr,tableHeaderBg:Sr,tableHeaderCellSplitColor:Wi,tableFooterTextColor:yi,tableFooterBg:to,calc:uo}=bt,qi=`${(0,ya.unit)(sr)} ${er} ${vr}`;return{[`${wt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Dc.dF)()),{[wt]:Object.assign(Object.assign({},(0,Dc.Wf)(bt)),{fontSize:fr,background:si,borderRadius:`${(0,ya.unit)(jr)} ${(0,ya.unit)(jr)} 0 0`,scrollbarColor:`${bt.tableScrollThumbBg} ${bt.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ya.unit)(jr)} ${(0,ya.unit)(jr)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${wt}-cell,
|
|
|
${wt}-thead > tr > th,
|
|
|
${wt}-tbody > tr > th,
|
|
|
${wt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,ya.unit)(un)} ${(0,ya.unit)(Sn)}`,overflowWrap:"break-word"},[`${wt}-title`]:{padding:`${(0,ya.unit)(un)} ${(0,ya.unit)(Sn)}`},[`${wt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Qr,fontWeight:Xt,textAlign:"start",background:Sr,borderBottom:qi,transition:`background ${Lr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${wt}-selection-column):not(${wt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Wi,transform:"translateY(-50%)",transition:`background-color ${Lr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${wt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Lr}, border-color ${Lr}`,borderBottom:qi,[`
|
|
|
> ${wt}-wrapper:only-child,
|
|
|
> ${wt}-expanded-row-fixed > ${wt}-wrapper:only-child
|
|
|
`]:{[wt]:{marginBlock:(0,ya.unit)(uo(un).mul(-1).equal()),marginInline:`${(0,ya.unit)(uo(kn).sub(Sn).equal())}
|
|
|
${(0,ya.unit)(uo(Sn).mul(-1).equal())}`,[`${wt}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Qr,fontWeight:Xt,textAlign:"start",background:Sr,borderBottom:qi,transition:`background ${Lr} ease`}}},[`${wt}-footer`]:{padding:`${(0,ya.unit)(un)} ${(0,ya.unit)(Sn)}`,color:yi,background:to}})}},sd=bt=>{const{colorFillAlter:wt,colorBgContainer:Xt,colorTextHeading:un,colorFillSecondary:Sn,colorFillContent:kn,controlItemBgActive:sr,controlItemBgActiveHover:er,padding:vr,paddingSM:fr,paddingXS:si,colorBorderSecondary:jr,borderRadiusLG:Qr,controlHeight:Lr,colorTextPlaceholder:Sr,fontSize:Wi,fontSizeSM:yi,lineHeight:to,lineWidth:uo,colorIcon:qi,colorIconHover:mo,opacityLoading:Eo,controlInteractiveSize:Uo}=bt,Po=new Ql.FastColor(Sn).onBackground(Xt).toHexString(),_a=new Ql.FastColor(kn).onBackground(Xt).toHexString(),la=new Ql.FastColor(wt).onBackground(Xt).toHexString(),na=new Ql.FastColor(qi),zo=new Ql.FastColor(mo),Ro=Uo/2-uo,Ho=Ro*2+uo*3;return{headerBg:la,headerColor:un,headerSortActiveBg:Po,headerSortHoverBg:_a,bodySortBg:la,rowHoverBg:la,rowSelectedBg:sr,rowSelectedHoverBg:er,rowExpandedBg:wt,cellPaddingBlock:vr,cellPaddingInline:vr,cellPaddingBlockMD:fr,cellPaddingInlineMD:si,cellPaddingBlockSM:si,cellPaddingInlineSM:si,borderColor:jr,headerBorderRadius:Qr,footerBg:la,footerColor:un,cellFontSize:Wi,cellFontSizeMD:Wi,cellFontSizeSM:Wi,headerSplitColor:jr,fixedHeaderSortActiveBg:Po,headerFilterHoverBg:kn,filterDropdownMenuBg:Xt,filterDropdownBg:Xt,expandIconBg:Xt,selectionColumnWidth:Lr,stickyScrollBarBg:Sr,stickyScrollBarBorderRadius:100,expandIconMarginTop:(Wi*to-uo*3)/2-Math.ceil((yi*1.4-uo*3)/2),headerIconColor:na.clone().setA(na.a*Eo).toRgbString(),headerIconHoverColor:zo.clone().setA(zo.a*Eo).toRgbString(),expandIconHalfInner:Ro,expandIconSize:Ho,expandIconScale:Uo/Ho}},Yd=2;var Bf=(0,rd.I$)("Table",bt=>{const{colorTextHeading:wt,colorSplit:Xt,colorBgContainer:un,controlInteractiveSize:Sn,headerBg:kn,headerColor:sr,headerSortActiveBg:er,headerSortHoverBg:vr,bodySortBg:fr,rowHoverBg:si,rowSelectedBg:jr,rowSelectedHoverBg:Qr,rowExpandedBg:Lr,cellPaddingBlock:Sr,cellPaddingInline:Wi,cellPaddingBlockMD:yi,cellPaddingInlineMD:to,cellPaddingBlockSM:uo,cellPaddingInlineSM:qi,borderColor:mo,footerBg:Eo,footerColor:Uo,headerBorderRadius:Po,cellFontSize:_a,cellFontSizeMD:la,cellFontSizeSM:na,headerSplitColor:zo,fixedHeaderSortActiveBg:Ro,headerFilterHoverBg:Ho,filterDropdownBg:wo,expandIconBg:fo,selectionColumnWidth:To,stickyScrollBarBg:Go,calc:oa}=bt,Co=(0,PA.mergeToken)(bt,{tableFontSize:_a,tableBg:un,tableRadius:Po,tablePaddingVertical:Sr,tablePaddingHorizontal:Wi,tablePaddingVerticalMiddle:yi,tablePaddingHorizontalMiddle:to,tablePaddingVerticalSmall:uo,tablePaddingHorizontalSmall:qi,tableBorderColor:mo,tableHeaderTextColor:sr,tableHeaderBg:kn,tableFooterTextColor:Uo,tableFooterBg:Eo,tableHeaderCellSplitColor:zo,tableHeaderSortBg:er,tableHeaderSortHoverBg:vr,tableBodySortBg:fr,tableFixedHeaderSortActiveBg:Ro,tableHeaderFilterActiveBg:Ho,tableFilterDropdownBg:wo,tableRowHoverBg:si,tableSelectedRowBg:jr,tableSelectedRowHoverBg:Qr,zIndexTableFixed:Yd,zIndexTableSticky:oa(Yd).add(1).equal({unit:!1}),tableFontSizeMiddle:la,tableFontSizeSmall:na,tableSelectionColumnWidth:To,tableExpandIconBg:fo,tableExpandColumnWidth:oa(Sn).add(oa(bt.padding).mul(2)).equal(),tableExpandedRowBg:Lr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Go,tableScrollThumbBgHover:wt,tableScrollBg:Xt});return[Tu(Co),gA(Co),sc(Co),Vd(Co),zs(Co),TA(Co),xf(Co),Ic(Co),sc(Co),$p(Co),ac(Co),od(Co),Xd(Co),Pc(Co),up(Co),kh(Co),lc(Co)]},sd,{unitless:{expandIconScale:!0}});const Ap=[],dp=(bt,wt)=>{var Xt,un;const{prefixCls:Sn,className:kn,rootClassName:sr,style:er,size:vr,bordered:fr,dropdownPrefixCls:si,dataSource:jr,pagination:Qr,rowSelection:Lr,rowKey:Sr="key",rowClassName:Wi,columns:yi,children:to,childrenColumnName:uo,onChange:qi,getPopupContainer:mo,loading:Eo,expandIcon:Uo,expandable:Po,expandedRowRender:_a,expandIconColumnIndex:la,indentSize:na,scroll:zo,sortDirections:Ro,locale:Ho,showSorterTooltip:wo={target:"full-header"},virtual:fo}=bt,To=(0,Xo.ln)("Table"),Go=x.useMemo(()=>yi||ur(to),[yi,to]),oa=x.useMemo(()=>Go.some(Wa=>Wa.responsive),[Go]),Co=(0,Wl.Z)(oa),qa=x.useMemo(()=>{const Wa=new Set(Object.keys(Co).filter(ms=>Co[ms]));return Go.filter(ms=>!ms.responsive||ms.responsive.some(Hl=>Wa.has(Hl)))},[Go,Co]),Za=(0,Ea.Z)(bt,["className","style","columns"]),{locale:Ml=xu.Z,direction:Sl,table:ul,renderEmpty:co,getPrefixCls:ql,getPopupContainer:cs}=x.useContext(ll.E_),os=(0,el.Z)(vr),ol=Object.assign(Object.assign({},Ml.Table),Ho),fu=jr||Ap,aa=ql("table",Sn),ba=ql("dropdown",si),[,Vo]=(0,mc.ZP)(),No=(0,Bl.Z)(aa),[ps,Fs,Vs]=Bf(aa,No),Ks=Object.assign(Object.assign({childrenColumnName:uo,expandIconColumnIndex:la},Po),{expandIcon:(Xt=Po==null?void 0:Po.expandIcon)!==null&&Xt!==void 0?Xt:(un=ul==null?void 0:ul.expandable)===null||un===void 0?void 0:un.expandIcon}),{childrenColumnName:cl="children"}=Ks,gu=x.useMemo(()=>fu.some(Wa=>Wa==null?void 0:Wa[cl])?"nest":_a||Po!=null&&Po.expandedRowRender?"row":null,[fu]),ua={body:x.useRef(null)},ta=La(aa),Bs=x.useRef(null),nl=x.useRef(null);sl(wt,()=>Object.assign(Object.assign({},nl.current),{nativeElement:Bs.current}));const Xs=x.useMemo(()=>typeof Sr=="function"?Sr:Wa=>Wa==null?void 0:Wa[Sr],[Sr]),[vu]=$c(fu,cl,Xs),Ul={},uc=function(Wa,ms){let Hl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var uu,Su,Fu,qu;const Hu=Object.assign(Object.assign({},Ul),Wa);Hl&&((uu=Ul.resetPagination)===null||uu===void 0||uu.call(Ul),!((Su=Hu.pagination)===null||Su===void 0)&&Su.current&&(Hu.pagination.current=1),Qr&&((Fu=Qr.onChange)===null||Fu===void 0||Fu.call(Qr,1,(qu=Hu.pagination)===null||qu===void 0?void 0:qu.pageSize))),zo&&zo.scrollToFirstRowOnChange!==!1&&ua.body.current&&(0,qs.Z)(0,{getContainer:()=>ua.body.current}),qi==null||qi(Hu.pagination,Hu.filters,Hu.sorter,{currentDataSource:Qa(Xu(fu,Hu.sorterStates,cl),Hu.filterStates,cl),action:ms})},Fl=(Wa,ms)=>{uc({sorter:Wa,sorterStates:ms},"sort",!1)},[ys,Al,dl,hu]=Ph({prefixCls:aa,mergedColumns:qa,onSorterChange:Fl,sortDirections:Ro||["ascend","descend"],tableLocale:ol,showSorterTooltip:wo}),Rl=x.useMemo(()=>Xu(fu,Al,cl),[fu,Al]);Ul.sorter=hu(),Ul.sorterStates=Al;const ws=(Wa,ms)=>{uc({filters:Wa,filterStates:ms},"filter",!0)},[yl,Is,wl]=Yl({prefixCls:aa,locale:ol,dropdownPrefixCls:ba,mergedColumns:qa,onFilterChange:ws,getPopupContainer:mo||cs,rootClassName:_e()(sr,No)}),eu=Qa(Rl,Is,cl);Ul.filters=wl,Ul.filterStates=Is;const ku=x.useMemo(()=>{const Wa={};return Object.keys(wl).forEach(ms=>{wl[ms]!==null&&(Wa[ms]=wl[ms])}),Object.assign(Object.assign({},dl),{filters:Wa})},[dl,wl]),[Mu]=Fd(ku),Gc=(Wa,ms)=>{uc({pagination:Object.assign(Object.assign({},Ul.pagination),{current:Wa,pageSize:ms})},"paginate")},[fl,_d]=tA(eu.length,Gc,Qr);Ul.pagination=Qr===!1?{}:Jl(fl,Qr),Ul.resetPagination=_d;const ju=x.useMemo(()=>{if(Qr===!1||!fl.pageSize)return eu;const{current:Wa=1,total:ms,pageSize:Hl=dA}=fl;return eu.length<ms?eu.length>Hl?eu.slice((Wa-1)*Hl,Wa*Hl):eu:eu.slice((Wa-1)*Hl,Wa*Hl)},[!!Qr,eu,fl==null?void 0:fl.current,fl==null?void 0:fl.pageSize,fl==null?void 0:fl.total]),[Yu,Qu]=Fo({prefixCls:aa,data:eu,pageData:ju,getRowKey:Xs,getRecordByKey:vu,expandType:gu,childrenColumnName:cl,locale:ol,getPopupContainer:mo||cs},Lr),Ju=(Wa,ms,Hl)=>{let uu;return typeof Wi=="function"?uu=_e()(Wi(Wa,ms,Hl)):uu=_e()(Wi),_e()({[`${aa}-row-selected`]:Qu.has(Xs(Wa,ms))},uu)};Ks.__PARENT_RENDER_ICON__=Ks.expandIcon,Ks.expandIcon=Ks.expandIcon||Uo||ga(ol),gu==="nest"&&Ks.expandIconColumnIndex===void 0?Ks.expandIconColumnIndex=Lr?1:0:Ks.expandIconColumnIndex>0&&Lr&&(Ks.expandIconColumnIndex-=1),typeof Ks.indentSize!="number"&&(Ks.indentSize=typeof na=="number"?na:15);const hl=x.useCallback(Wa=>Mu(Yu(yl(ys(Wa)))),[ys,yl,Yu]);let wc,wA;if(Qr!==!1&&(fl!=null&&fl.total)){let Wa;fl.size?Wa=fl.size:Wa=os==="small"||os==="middle"?"small":void 0;const ms=Su=>x.createElement(Nu.Z,Object.assign({},fl,{className:_e()(`${aa}-pagination ${aa}-pagination-${Su}`,fl.className),size:Wa})),Hl=Sl==="rtl"?"left":"right",{position:uu}=fl;if(uu!==null&&Array.isArray(uu)){const Su=uu.find(Hu=>Hu.includes("top")),Fu=uu.find(Hu=>Hu.includes("bottom")),qu=uu.every(Hu=>`${Hu}`=="none");!Su&&!Fu&&!qu&&(wA=ms(Hl)),Su&&(wc=ms(Su.toLowerCase().replace("top",""))),Fu&&(wA=ms(Fu.toLowerCase().replace("bottom","")))}else wA=ms(Hl)}let Tc;typeof Eo=="boolean"?Tc={spinning:Eo}:typeof Eo=="object"&&(Tc=Object.assign({spinning:!0},Eo));const Vc=_e()(Vs,No,`${aa}-wrapper`,ul==null?void 0:ul.className,{[`${aa}-wrapper-rtl`]:Sl==="rtl"},kn,sr,Fs),Jd=Object.assign(Object.assign({},ul==null?void 0:ul.style),er),qd=typeof(Ho==null?void 0:Ho.emptyText)!="undefined"?Ho.emptyText:(co==null?void 0:co("Table"))||x.createElement(su.Z,{componentName:"Table"}),Ls=fo?Wc:bf,ld={},Ef=x.useMemo(()=>{const{fontSize:Wa,lineHeight:ms,lineWidth:Hl,padding:uu,paddingXS:Su,paddingSM:Fu}=Vo,qu=Math.floor(Wa*ms);switch(os){case"middle":return Fu*2+qu+Hl;case"small":return Su*2+qu+Hl;default:return uu*2+qu+Hl}},[Vo,os]);return fo&&(ld.listItemHeight=Ef),ps(x.createElement("div",{ref:Bs,className:Vc,style:Jd},x.createElement(Gs.Z,Object.assign({spinning:!1},Tc),wc,x.createElement(Ls,Object.assign({},ld,Za,{ref:nl,columns:qa,direction:Sl,expandable:Ks,prefixCls:aa,className:_e()({[`${aa}-middle`]:os==="middle",[`${aa}-small`]:os==="small",[`${aa}-bordered`]:fr,[`${aa}-empty`]:fu.length===0},Vs,No,Fs),data:ju,rowKey:Xs,rowClassName:Ju,emptyText:qd,internalHooks:Le,internalRefs:ua,transformColumns:hl,getContainerWidth:ta})),wA)))};var fp=x.forwardRef(dp);const nh=(bt,wt)=>{const Xt=x.useRef(0);return Xt.current+=1,x.createElement(fp,Object.assign({},bt,{ref:wt,_renderTimes:Xt.current}))},yA=x.forwardRef(nh);yA.SELECTION_COLUMN=Yo,yA.EXPAND_COLUMN=dt,yA.SELECTION_ALL=Ba,yA.SELECTION_INVERT=ls,yA.SELECTION_NONE=Ma,yA.Column=eo,yA.ColumnGroup=ai,yA.Summary=vt;var Ld=yA,hp=Ld},96599:function(qn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return _e}});var x=ae(59301),dt=ae(92310),Le=ae.n(dt),qe=ae(2738),ze=ae(29509),Ie=ae(78776),Ue=ae(22703),he=ae(12919),xe=ae(48755),oe=ae(36237),Oe=ae(17835),ve=ae(63356),Me=ae(51636),Se=ae(16931);const Te=Re=>{const{paddingXXS:Ot,lineWidth:it,tagPaddingHorizontal:at,componentCls:Et,calc:Ze}=Re,De=Ze(at).sub(it).equal(),ut=Ze(Ot).sub(it).equal();return{[Et]:Object.assign(Object.assign({},(0,ve.Wf)(Re)),{display:"inline-block",height:"auto",marginInlineEnd:Re.marginXS,paddingInline:De,fontSize:Re.tagFontSize,lineHeight:Re.tagLineHeight,whiteSpace:"nowrap",background:Re.defaultBg,border:`${(0,oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.colorBorder}`,borderRadius:Re.borderRadiusSM,opacity:1,transition:`all ${Re.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Et}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Re.defaultColor},[`${Et}-close-icon`]:{marginInlineStart:ut,fontSize:Re.tagIconSize,color:Re.colorTextDescription,cursor:"pointer",transition:`all ${Re.motionDurationMid}`,"&:hover":{color:Re.colorTextHeading}},[`&${Et}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Re.iconCls}-close, ${Re.iconCls}-close:hover`]:{color:Re.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Et}-checkable-checked):hover`]:{color:Re.colorPrimary,backgroundColor:Re.colorFillSecondary},"&:active, &-checked":{color:Re.colorTextLightSolid},"&-checked":{backgroundColor:Re.colorPrimary,"&:hover":{backgroundColor:Re.colorPrimaryHover}},"&:active":{backgroundColor:Re.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Re.iconCls} + span, > span + ${Re.iconCls}`]:{marginInlineStart:De}}),[`${Et}-borderless`]:{borderColor:"transparent",background:Re.tagBorderlessBg}}},we=Re=>{const{lineWidth:Ot,fontSizeIcon:it,calc:at}=Re,Et=Re.fontSizeSM;return(0,Me.mergeToken)(Re,{tagFontSize:Et,tagLineHeight:(0,oe.unit)(at(Re.lineHeightSM).mul(Et).equal()),tagIconSize:at(it).sub(at(Ot).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:Re.defaultBg})},Ce=Re=>({defaultBg:new Oe.FastColor(Re.colorFillQuaternary).onBackground(Re.colorBgContainer).toHexString(),defaultColor:Re.colorText});var Ee=(0,Se.I$)("Tag",Re=>{const Ot=we(Re);return Te(Ot)},Ce),ke=function(Re,Ot){var it={};for(var at in Re)Object.prototype.hasOwnProperty.call(Re,at)&&Ot.indexOf(at)<0&&(it[at]=Re[at]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,at=Object.getOwnPropertySymbols(Re);Et<at.length;Et++)Ot.indexOf(at[Et])<0&&Object.prototype.propertyIsEnumerable.call(Re,at[Et])&&(it[at[Et]]=Re[at[Et]]);return it},Qe=x.forwardRef((Re,Ot)=>{const{prefixCls:it,style:at,className:Et,checked:Ze,onChange:De,onClick:ut}=Re,Zt=ke(Re,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Kt,tag:tt}=x.useContext(xe.E_),Dt=En=>{De==null||De(!Ze),ut==null||ut(En)},jt=Kt("tag",it),[An,kt,pn]=Ee(jt),Pt=Le()(jt,`${jt}-checkable`,{[`${jt}-checkable-checked`]:Ze},tt==null?void 0:tt.className,Et,kt,pn);return An(x.createElement("span",Object.assign({},Zt,{ref:Ot,style:Object.assign(Object.assign({},at),tt==null?void 0:tt.style),className:Pt,onClick:Dt})))}),je=ae(93427);const Je=Re=>(0,je.Z)(Re,(Ot,it)=>{let{textColor:at,lightBorderColor:Et,lightColor:Ze,darkColor:De}=it;return{[`${Re.componentCls}${Re.componentCls}-${Ot}`]:{color:at,background:Ze,borderColor:Et,"&-inverse":{color:Re.colorTextLightSolid,background:De,borderColor:De},[`&${Re.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ve=(0,Se.bk)(["Tag","preset"],Re=>{const Ot=we(Re);return Je(Ot)},Ce);function ct(Re){return typeof Re!="string"?Re:Re.charAt(0).toUpperCase()+Re.slice(1)}const ot=(Re,Ot,it)=>{const at=ct(it);return{[`${Re.componentCls}${Re.componentCls}-${Ot}`]:{color:Re[`color${it}`],background:Re[`color${at}Bg`],borderColor:Re[`color${at}Border`],[`&${Re.componentCls}-borderless`]:{borderColor:"transparent"}}}};var pt=(0,Se.bk)(["Tag","status"],Re=>{const Ot=we(Re);return[ot(Ot,"success","Success"),ot(Ot,"processing","Info"),ot(Ot,"error","Error"),ot(Ot,"warning","Warning")]},Ce),Ct=function(Re,Ot){var it={};for(var at in Re)Object.prototype.hasOwnProperty.call(Re,at)&&Ot.indexOf(at)<0&&(it[at]=Re[at]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,at=Object.getOwnPropertySymbols(Re);Et<at.length;Et++)Ot.indexOf(at[Et])<0&&Object.prototype.propertyIsEnumerable.call(Re,at[Et])&&(it[at[Et]]=Re[at[Et]]);return it};const ht=x.forwardRef((Re,Ot)=>{const{prefixCls:it,className:at,rootClassName:Et,style:Ze,children:De,icon:ut,color:Zt,onClose:Kt,bordered:tt=!0,visible:Dt}=Re,jt=Ct(Re,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:An,direction:kt,tag:pn}=x.useContext(xe.E_),[Pt,En]=x.useState(!0),on=(0,qe.Z)(jt,["closeIcon","closable"]);x.useEffect(()=>{Dt!==void 0&&En(Dt)},[Dt]);const de=(0,ze.o2)(Zt),pe=(0,ze.yT)(Zt),ie=de||pe,ee=Object.assign(Object.assign({backgroundColor:Zt&&!ie?Zt:void 0},pn==null?void 0:pn.style),Ze),se=An("tag",it),[le,Be,We]=Ee(se),st=Le()(se,pn==null?void 0:pn.className,{[`${se}-${Zt}`]:ie,[`${se}-has-color`]:Zt&&!ie,[`${se}-hidden`]:!Pt,[`${se}-rtl`]:kt==="rtl",[`${se}-borderless`]:!tt},at,Et,Be,We),mt=lt=>{lt.stopPropagation(),Kt==null||Kt(lt),!lt.defaultPrevented&&En(!1)},[,vt]=(0,Ie.Z)((0,Ie.w)(Re),(0,Ie.w)(pn),{closable:!1,closeIconRender:lt=>{const Vt=x.createElement("span",{className:`${se}-close-icon`,onClick:mt},lt);return(0,Ue.wm)(lt,Vt,Wt=>({onClick:gn=>{var an;(an=Wt==null?void 0:Wt.onClick)===null||an===void 0||an.call(Wt,gn),mt(gn)},className:Le()(Wt==null?void 0:Wt.className,`${se}-close-icon`)}))}}),St=typeof jt.onClick=="function"||De&&De.type==="a",_t=ut||null,Qt=_t?x.createElement(x.Fragment,null,_t,De&&x.createElement("span",null,De)):De,xt=x.createElement("span",Object.assign({},on,{ref:Ot,className:st,style:ee}),Qt,vt,de&&x.createElement(Ve,{key:"preset",prefixCls:se}),pe&&x.createElement(pt,{key:"status",prefixCls:se}));return le(St?x.createElement(he.Z,{component:"Tag"},xt):xt)});ht.CheckableTag=Qe;var _e=ht},18287:function(qn,Mt,ae){"use strict";ae.d(Mt,{default:function(){return Kt}});var x=ae(87632),dt=ae(77654),Le=ae(59301),qe=ae(52671),ze=ae(8657),Ie=ae(60499),Ue={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"},he=Ue,xe=ae(7657),oe=function(Dt,jt){return Le.createElement(xe.Z,(0,Ie.Z)({},Dt,{ref:jt,icon:he}))},Oe=Le.forwardRef(oe),ve=Oe,Me=ae(92310),Se=ae.n(Me),Te=ae(82661),we=ae(34061),Ce=ae(48755),Ee=ae(56082),ke=ae(86641),Ke=ae(57700),Qe=ae(12425);const je=4;function Je(tt){const{dropPosition:Dt,dropLevelOffset:jt,prefixCls:An,indent:kt,direction:pn="ltr"}=tt,Pt=pn==="ltr"?"left":"right",En=pn==="ltr"?"right":"left",on={[Pt]:-jt*kt+je,[En]:0};switch(Dt){case-1:on.top=-3;break;case 1:on.bottom=-3;break;default:on.bottom=-3,on[Pt]=kt+je;break}return Le.createElement("div",{style:on,className:`${An}-drop-indicator`})}var Ve=Je,ct=ae(85278),pt=Le.forwardRef((tt,Dt)=>{var jt;const{getPrefixCls:An,direction:kt,virtual:pn,tree:Pt}=Le.useContext(Ce.E_),{prefixCls:En,className:on,showIcon:de=!1,showLine:pe,switcherIcon:ie,switcherLoadingIcon:ee,blockNode:se=!1,children:le,checkable:Be=!1,selectable:We=!0,draggable:st,motion:mt,style:vt}=tt,St=An("tree",En),_t=An(),Qt=mt!=null?mt:Object.assign(Object.assign({},(0,ke.Z)(_t)),{motionAppear:!1}),xt=Object.assign(Object.assign({},tt),{checkable:Be,selectable:We,showIcon:de,motion:Qt,blockNode:se,showLine:!!pe,dropIndicatorRender:Ve}),[lt,Vt,Wt]=(0,Qe.ZP)(St),[,gn]=(0,Ke.ZP)(),an=gn.paddingXS/2+(((jt=gn.Tree)===null||jt===void 0?void 0:jt.titleHeight)||gn.controlHeightSM),en=Le.useMemo(()=>{if(!st)return!1;let Fn={};switch(typeof st){case"function":Fn.nodeDraggable=st;break;case"object":Fn=Object.assign({},st);break;default:break}return Fn.icon!==!1&&(Fn.icon=Fn.icon||Le.createElement(Ee.Z,null)),Fn},[st]),zn=Fn=>Le.createElement(ct.Z,{prefixCls:St,switcherIcon:ie,switcherLoadingIcon:ee,treeNodeProps:Fn,showLine:pe});return lt(Le.createElement(x.ZP,Object.assign({itemHeight:an,ref:Dt,virtual:pn},xt,{style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),vt),prefixCls:St,className:Se()({[`${St}-icon-hide`]:!de,[`${St}-block-node`]:se,[`${St}-unselectable`]:!We,[`${St}-rtl`]:kt==="rtl"},Pt==null?void 0:Pt.className,on,Vt,Wt),direction:kt,checkable:Be&&Le.createElement("span",{className:`${St}-checkbox-inner`}),selectable:We,switcherIcon:zn,draggable:en}),le))});const Ct=0,He=1,ht=2;function _e(tt,Dt,jt){const{key:An,children:kt}=jt;function pn(Pt){const En=Pt[An],on=Pt[kt];Dt(En,Pt)!==!1&&_e(on||[],Dt,jt)}tt.forEach(pn)}function Re(tt){let{treeData:Dt,expandedKeys:jt,startKey:An,endKey:kt,fieldNames:pn}=tt;const Pt=[];let En=Ct;if(An&&An===kt)return[An];if(!An||!kt)return[];function on(de){return de===An||de===kt}return _e(Dt,de=>{if(En===ht)return!1;if(on(de)){if(Pt.push(de),En===Ct)En=He;else if(En===He)return En=ht,!1}else En===He&&Pt.push(de);return jt.includes(de)},(0,we.w$)(pn)),Pt}function Ot(tt,Dt,jt){const An=(0,dt.Z)(Dt),kt=[];return _e(tt,(pn,Pt)=>{const En=An.indexOf(pn);return En!==-1&&(kt.push(Pt),An.splice(En,1)),!!An.length},(0,we.w$)(jt)),kt}var it=function(tt,Dt){var jt={};for(var An in tt)Object.prototype.hasOwnProperty.call(tt,An)&&Dt.indexOf(An)<0&&(jt[An]=tt[An]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,An=Object.getOwnPropertySymbols(tt);kt<An.length;kt++)Dt.indexOf(An[kt])<0&&Object.prototype.propertyIsEnumerable.call(tt,An[kt])&&(jt[An[kt]]=tt[An[kt]]);return jt};function at(tt){const{isLeaf:Dt,expanded:jt}=tt;return Dt?Le.createElement(qe.Z,null):jt?Le.createElement(ze.Z,null):Le.createElement(ve,null)}function Et(tt){let{treeData:Dt,children:jt}=tt;return Dt||(0,we.zn)(jt)}const Ze=(tt,Dt)=>{var{defaultExpandAll:jt,defaultExpandParent:An,defaultExpandedKeys:kt}=tt,pn=it(tt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Pt=Le.useRef(null),En=Le.useRef(null),on=()=>{const{keyEntities:lt}=(0,we.I8)(Et(pn));let Vt;return jt?Vt=Object.keys(lt):An?Vt=(0,Te.r7)(pn.expandedKeys||kt||[],lt):Vt=pn.expandedKeys||kt||[],Vt},[de,pe]=Le.useState(pn.selectedKeys||pn.defaultSelectedKeys||[]),[ie,ee]=Le.useState(()=>on());Le.useEffect(()=>{"selectedKeys"in pn&&pe(pn.selectedKeys)},[pn.selectedKeys]),Le.useEffect(()=>{"expandedKeys"in pn&&ee(pn.expandedKeys)},[pn.expandedKeys]);const se=(lt,Vt)=>{var Wt;return"expandedKeys"in pn||ee(lt),(Wt=pn.onExpand)===null||Wt===void 0?void 0:Wt.call(pn,lt,Vt)},le=(lt,Vt)=>{var Wt;const{multiple:gn,fieldNames:an}=pn,{node:en,nativeEvent:zn}=Vt,{key:Fn=""}=en,Rt=Et(pn),sn=Object.assign(Object.assign({},Vt),{selected:!0}),_n=(zn==null?void 0:zn.ctrlKey)||(zn==null?void 0:zn.metaKey),Wn=zn==null?void 0:zn.shiftKey;let Lt;gn&&_n?(Lt=lt,Pt.current=Fn,En.current=Lt,sn.selectedNodes=Ot(Rt,Lt,an)):gn&&Wn?(Lt=Array.from(new Set([].concat((0,dt.Z)(En.current||[]),(0,dt.Z)(Re({treeData:Rt,expandedKeys:ie,startKey:Fn,endKey:Pt.current,fieldNames:an}))))),sn.selectedNodes=Ot(Rt,Lt,an)):(Lt=[Fn],Pt.current=Fn,En.current=Lt,sn.selectedNodes=Ot(Rt,Lt,an)),(Wt=pn.onSelect)===null||Wt===void 0||Wt.call(pn,Lt,sn),"selectedKeys"in pn||pe(Lt)},{getPrefixCls:Be,direction:We}=Le.useContext(Ce.E_),{prefixCls:st,className:mt,showIcon:vt=!0,expandAction:St="click"}=pn,_t=it(pn,["prefixCls","className","showIcon","expandAction"]),Qt=Be("tree",st),xt=Se()(`${Qt}-directory`,{[`${Qt}-directory-rtl`]:We==="rtl"},mt);return Le.createElement(pt,Object.assign({icon:at,ref:Dt,blockNode:!0},_t,{showIcon:vt,expandAction:St,prefixCls:Qt,className:xt,expandedKeys:ie,selectedKeys:de,onSelect:le,onExpand:se}))};var ut=Le.forwardRef(Ze);const Zt=pt;Zt.DirectoryTree=ut,Zt.TreeNode=x.OF;var Kt=Zt},12425:function(qn,Mt,ae){"use strict";ae.d(Mt,{ZP:function(){return Te},Yk:function(){return ve},TM:function(){return Me}});var x=ae(36237),dt=ae(36170),Le=ae(63356),qe=ae(34961),ze=ae(51636),Ie=ae(16931);const Ue=we=>{let{treeCls:Ce,treeNodeCls:Ee,directoryNodeSelectedBg:ke,directoryNodeSelectedColor:Ke,motionDurationMid:Qe,borderRadius:je,controlItemBgHover:Je}=we;return{[`${Ce}${Ce}-directory ${Ee}`]:{[`${Ce}-node-content-wrapper`]:{position:"static",[`> *:not(${Ce}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Qe}`,content:'""',borderRadius:je},"&:hover:before":{background:Je}},[`${Ce}-switcher, ${Ce}-checkbox, ${Ce}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Ce}-switcher, ${Ce}-draggable-icon`]:{color:Ke},[`${Ce}-node-content-wrapper`]:{color:Ke,background:"transparent","&:before, &:hover:before":{background:ke}}}}}},he=new x.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),xe=(we,Ce)=>({[`.${we}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ce.motionDurationSlow}`}}}),oe=(we,Ce)=>({[`.${we}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ce.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,x.unit)(Ce.lineWidthBold)} solid ${Ce.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Oe=(we,Ce)=>{const{treeCls:Ee,treeNodeCls:ke,treeNodePadding:Ke,titleHeight:Qe,indentSize:je,nodeSelectedBg:Je,nodeHoverBg:Ve,colorTextQuaternary:ct,controlItemBgActiveDisabled:ot}=Ce;return{[Ee]:Object.assign(Object.assign({},(0,Le.Wf)(Ce)),{background:Ce.colorBgContainer,borderRadius:Ce.borderRadius,transition:`background-color ${Ce.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Ee}-rtl ${Ee}-switcher_close ${Ee}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Ee}-active-focused)`]:Object.assign({},(0,Le.oN)(Ce)),[`${Ee}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ee}-block-node`]:{[`${Ee}-list-holder-inner`]:{alignItems:"stretch",[`${Ee}-node-content-wrapper`]:{flex:"auto"},[`${ke}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Ce.colorPrimary}`,opacity:0,animationName:he,animationDuration:Ce.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Ce.borderRadius}}},[ke]:{display:"flex",alignItems:"flex-start",marginBottom:Ke,lineHeight:(0,x.unit)(Qe),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Ke},[`&-disabled ${Ee}-node-content-wrapper`]:{color:Ce.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Ee}-checkbox-disabled + ${Ee}-node-selected,&${ke}-disabled${ke}-selected ${Ee}-node-content-wrapper`]:{backgroundColor:ot},[`${Ee}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${ke}-disabled)`]:{[`${Ee}-node-content-wrapper`]:{"&:hover":{color:Ce.nodeHoverColor}}},[`&-active ${Ee}-node-content-wrapper`]:{background:Ce.controlItemBgHover},[`&:not(${ke}-disabled).filter-node ${Ee}-title`]:{color:Ce.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Ee}-draggable-icon`]:{flexShrink:0,width:Qe,textAlign:"center",visibility:"visible",color:ct},[`&${ke}-disabled ${Ee}-draggable-icon`]:{visibility:"hidden"}}},[`${Ee}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:je}},[`${Ee}-draggable-icon`]:{visibility:"hidden"},[`${Ee}-switcher, ${Ee}-checkbox`]:{marginInlineEnd:Ce.calc(Ce.calc(Qe).sub(Ce.controlInteractiveSize)).div(2).equal()},[`${Ee}-switcher`]:Object.assign(Object.assign({},xe(we,Ce)),{position:"relative",flex:"none",alignSelf:"stretch",width:Qe,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Ce.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Qe,height:Qe,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Ce.borderRadius,transition:`all ${Ce.motionDurationSlow}`},[`&:not(${Ee}-switcher-noop):hover:before`]:{backgroundColor:Ce.colorBgTextHover},[`&_close ${Ee}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Ce.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ce.calc(Qe).div(2).equal(),bottom:Ce.calc(Ke).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Ce.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Ce.calc(Ce.calc(Qe).div(2).equal()).mul(.8).equal(),height:Ce.calc(Qe).div(2).equal(),borderBottom:`1px solid ${Ce.colorBorder}`,content:'""'}}}),[`${Ee}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Qe,paddingBlock:0,paddingInline:Ce.paddingXS,background:"transparent",borderRadius:Ce.borderRadius,cursor:"pointer",transition:`all ${Ce.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},oe(we,Ce)),{"&:hover":{backgroundColor:Ve},[`&${Ee}-node-selected`]:{color:Ce.nodeSelectedColor,backgroundColor:Je},[`${Ee}-iconEle`]:{display:"inline-block",width:Qe,height:Qe,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Ee}-unselectable ${Ee}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ke}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Ce.colorPrimary}`},"&-show-line":{[`${Ee}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ce.calc(Qe).div(2).equal(),bottom:Ce.calc(Ke).mul(-1).equal(),borderInlineEnd:`1px solid ${Ce.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Ee}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ke}-leaf-last ${Ee}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,x.unit)(Ce.calc(Qe).div(2).equal())} !important`}})}},ve=function(we,Ce){let Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const ke=`.${we}`,Ke=`${ke}-treenode`,Qe=Ce.calc(Ce.paddingXS).div(2).equal(),je=(0,ze.mergeToken)(Ce,{treeCls:ke,treeNodeCls:Ke,treeNodePadding:Qe});return[Oe(we,je),Ee&&Ue(je)].filter(Boolean)},Me=we=>{const{controlHeightSM:Ce,controlItemBgHover:Ee,controlItemBgActive:ke}=we,Ke=Ce;return{titleHeight:Ke,indentSize:Ke,nodeHoverBg:Ee,nodeHoverColor:we.colorText,nodeSelectedBg:ke,nodeSelectedColor:we.colorText}},Se=we=>{const{colorTextLightSolid:Ce,colorPrimary:Ee}=we;return Object.assign(Object.assign({},Me(we)),{directoryNodeSelectedColor:Ce,directoryNodeSelectedBg:Ee})};var Te=(0,Ie.I$)("Tree",(we,Ce)=>{let{prefixCls:Ee}=Ce;return[{[we.componentCls]:(0,dt.C2)(`${Ee}-checkbox`,we)},ve(Ee,we),(0,qe.Z)(we)]},Se)},85278:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ce}});var x=ae(59301),dt=ae(60499),Le={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"},qe=Le,ze=ae(7657),Ie=function(ke,Ke){return x.createElement(ze.Z,(0,dt.Z)({},ke,{ref:Ke,icon:qe}))},Ue=x.forwardRef(Ie),he=Ue,xe=ae(52671),oe=ae(58617),Oe=ae(15075),ve=ae(43531),Me=ae(92310),Se=ae.n(Me),Te=ae(22703),Ce=Ee=>{const{prefixCls:ke,switcherIcon:Ke,treeNodeProps:Qe,showLine:je,switcherLoadingIcon:Je}=Ee,{isLeaf:Ve,expanded:ct,loading:ot}=Qe;if(ot)return x.isValidElement(Je)?Je:x.createElement(oe.Z,{className:`${ke}-switcher-loading-icon`});let pt;if(je&&typeof je=="object"&&(pt=je.showLeafIcon),Ve){if(!je)return null;if(typeof pt!="boolean"&&pt){const ht=typeof pt=="function"?pt(Qe):pt,_e=`${ke}-switcher-line-custom-icon`;return x.isValidElement(ht)?(0,Te.Tm)(ht,{className:Se()(ht.props.className||"",_e)}):ht}return pt?x.createElement(xe.Z,{className:`${ke}-switcher-line-icon`}):x.createElement("span",{className:`${ke}-switcher-leaf-line`})}const Ct=`${ke}-switcher-icon`,He=typeof Ke=="function"?Ke(Qe):Ke;return x.isValidElement(He)?(0,Te.Tm)(He,{className:Se()(He.props.className||"",Ct)}):He!==void 0?He:je?ct?x.createElement(Oe.Z,{className:`${ke}-switcher-line-icon`}):x.createElement(ve.Z,{className:`${ke}-switcher-line-icon`}):x.createElement(he,{className:Ct})}},86251:function(qn,Mt){"use strict";Mt.byteLength=Ue,Mt.toByteArray=xe,Mt.fromByteArray=ve;for(var ae=[],x=[],dt=typeof Uint8Array!="undefined"?Uint8Array:Array,Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe=0,ze=Le.length;qe<ze;++qe)ae[qe]=Le[qe],x[Le.charCodeAt(qe)]=qe;x[45]=62,x[95]=63;function Ie(Me){var Se=Me.length;if(Se%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Te=Me.indexOf("=");Te===-1&&(Te=Se);var we=Te===Se?0:4-Te%4;return[Te,we]}function Ue(Me){var Se=Ie(Me),Te=Se[0],we=Se[1];return(Te+we)*3/4-we}function he(Me,Se,Te){return(Se+Te)*3/4-Te}function xe(Me){var Se,Te=Ie(Me),we=Te[0],Ce=Te[1],Ee=new dt(he(Me,we,Ce)),ke=0,Ke=Ce>0?we-4:we,Qe;for(Qe=0;Qe<Ke;Qe+=4)Se=x[Me.charCodeAt(Qe)]<<18|x[Me.charCodeAt(Qe+1)]<<12|x[Me.charCodeAt(Qe+2)]<<6|x[Me.charCodeAt(Qe+3)],Ee[ke++]=Se>>16&255,Ee[ke++]=Se>>8&255,Ee[ke++]=Se&255;return Ce===2&&(Se=x[Me.charCodeAt(Qe)]<<2|x[Me.charCodeAt(Qe+1)]>>4,Ee[ke++]=Se&255),Ce===1&&(Se=x[Me.charCodeAt(Qe)]<<10|x[Me.charCodeAt(Qe+1)]<<4|x[Me.charCodeAt(Qe+2)]>>2,Ee[ke++]=Se>>8&255,Ee[ke++]=Se&255),Ee}function oe(Me){return ae[Me>>18&63]+ae[Me>>12&63]+ae[Me>>6&63]+ae[Me&63]}function Oe(Me,Se,Te){for(var we,Ce=[],Ee=Se;Ee<Te;Ee+=3)we=(Me[Ee]<<16&16711680)+(Me[Ee+1]<<8&65280)+(Me[Ee+2]&255),Ce.push(oe(we));return Ce.join("")}function ve(Me){for(var Se,Te=Me.length,we=Te%3,Ce=[],Ee=16383,ke=0,Ke=Te-we;ke<Ke;ke+=Ee)Ce.push(Oe(Me,ke,ke+Ee>Ke?Ke:ke+Ee));return we===1?(Se=Me[Te-1],Ce.push(ae[Se>>2]+ae[Se<<4&63]+"==")):we===2&&(Se=(Me[Te-2]<<8)+Me[Te-1],Ce.push(ae[Se>>10]+ae[Se>>4&63]+ae[Se<<2&63]+"=")),Ce.join("")}},19208:function(qn,Mt,ae){"use strict";var x;var dt=ae(86251),Le=ae(67467),qe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Mt.lW=he,x=ke,Mt.h2=50;var ze=2147483647;x=ze,he.TYPED_ARRAY_SUPPORT=Ie(),!he.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 Ie(){try{var ie=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(ie,ee),ie.foo()===42}catch(se){return!1}}Object.defineProperty(he.prototype,"parent",{enumerable:!0,get:function(){if(he.isBuffer(this))return this.buffer}}),Object.defineProperty(he.prototype,"offset",{enumerable:!0,get:function(){if(he.isBuffer(this))return this.byteOffset}});function Ue(ie){if(ie>ze)throw new RangeError('The value "'+ie+'" is invalid for option "size"');var ee=new Uint8Array(ie);return Object.setPrototypeOf(ee,he.prototype),ee}function he(ie,ee,se){if(typeof ie=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ve(ie)}return xe(ie,ee,se)}he.poolSize=8192;function xe(ie,ee,se){if(typeof ie=="string")return Me(ie,ee);if(ArrayBuffer.isView(ie))return Te(ie);if(ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie);if(on(ie,ArrayBuffer)||ie&&on(ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(on(ie,SharedArrayBuffer)||ie&&on(ie.buffer,SharedArrayBuffer)))return we(ie,ee,se);if(typeof ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var le=ie.valueOf&&ie.valueOf();if(le!=null&&le!==ie)return he.from(le,ee,se);var Be=Ce(ie);if(Be)return Be;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ie[Symbol.toPrimitive]=="function")return he.from(ie[Symbol.toPrimitive]("string"),ee,se);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie)}he.from=function(ie,ee,se){return xe(ie,ee,se)},Object.setPrototypeOf(he.prototype,Uint8Array.prototype),Object.setPrototypeOf(he,Uint8Array);function oe(ie){if(typeof ie!="number")throw new TypeError('"size" argument must be of type number');if(ie<0)throw new RangeError('The value "'+ie+'" is invalid for option "size"')}function Oe(ie,ee,se){return oe(ie),ie<=0?Ue(ie):ee!==void 0?typeof se=="string"?Ue(ie).fill(ee,se):Ue(ie).fill(ee):Ue(ie)}he.alloc=function(ie,ee,se){return Oe(ie,ee,se)};function ve(ie){return oe(ie),Ue(ie<0?0:Ee(ie)|0)}he.allocUnsafe=function(ie){return ve(ie)},he.allocUnsafeSlow=function(ie){return ve(ie)};function Me(ie,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!he.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);var se=Ke(ie,ee)|0,le=Ue(se),Be=le.write(ie,ee);return Be!==se&&(le=le.slice(0,Be)),le}function Se(ie){for(var ee=ie.length<0?0:Ee(ie.length)|0,se=Ue(ee),le=0;le<ee;le+=1)se[le]=ie[le]&255;return se}function Te(ie){if(on(ie,Uint8Array)){var ee=new Uint8Array(ie);return we(ee.buffer,ee.byteOffset,ee.byteLength)}return Se(ie)}function we(ie,ee,se){if(ee<0||ie.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(ie.byteLength<ee+(se||0))throw new RangeError('"length" is outside of buffer bounds');var le;return ee===void 0&&se===void 0?le=new Uint8Array(ie):se===void 0?le=new Uint8Array(ie,ee):le=new Uint8Array(ie,ee,se),Object.setPrototypeOf(le,he.prototype),le}function Ce(ie){if(he.isBuffer(ie)){var ee=Ee(ie.length)|0,se=Ue(ee);return se.length===0||ie.copy(se,0,0,ee),se}if(ie.length!==void 0)return typeof ie.length!="number"||de(ie.length)?Ue(0):Se(ie);if(ie.type==="Buffer"&&Array.isArray(ie.data))return Se(ie.data)}function Ee(ie){if(ie>=ze)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ze.toString(16)+" bytes");return ie|0}function ke(ie){return+ie!=ie&&(ie=0),he.alloc(+ie)}he.isBuffer=function(ee){return ee!=null&&ee._isBuffer===!0&&ee!==he.prototype},he.compare=function(ee,se){if(on(ee,Uint8Array)&&(ee=he.from(ee,ee.offset,ee.byteLength)),on(se,Uint8Array)&&(se=he.from(se,se.offset,se.byteLength)),!he.isBuffer(ee)||!he.isBuffer(se))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ee===se)return 0;for(var le=ee.length,Be=se.length,We=0,st=Math.min(le,Be);We<st;++We)if(ee[We]!==se[We]){le=ee[We],Be=se[We];break}return le<Be?-1:Be<le?1:0},he.isEncoding=function(ee){switch(String(ee).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}},he.concat=function(ee,se){if(!Array.isArray(ee))throw new TypeError('"list" argument must be an Array of Buffers');if(ee.length===0)return he.alloc(0);var le;if(se===void 0)for(se=0,le=0;le<ee.length;++le)se+=ee[le].length;var Be=he.allocUnsafe(se),We=0;for(le=0;le<ee.length;++le){var st=ee[le];if(on(st,Uint8Array))We+st.length>Be.length?he.from(st).copy(Be,We):Uint8Array.prototype.set.call(Be,st,We);else if(he.isBuffer(st))st.copy(Be,We);else throw new TypeError('"list" argument must be an Array of Buffers');We+=st.length}return Be};function Ke(ie,ee){if(he.isBuffer(ie))return ie.length;if(ArrayBuffer.isView(ie)||on(ie,ArrayBuffer))return ie.byteLength;if(typeof ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ie);var se=ie.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&se===0)return 0;for(var Be=!1;;)switch(ee){case"ascii":case"latin1":case"binary":return se;case"utf8":case"utf-8":return An(ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se*2;case"hex":return se>>>1;case"base64":return Pt(ie).length;default:if(Be)return le?-1:An(ie).length;ee=(""+ee).toLowerCase(),Be=!0}}he.byteLength=Ke;function Qe(ie,ee,se){var le=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((se===void 0||se>this.length)&&(se=this.length),se<=0)||(se>>>=0,ee>>>=0,se<=ee))return"";for(ie||(ie="utf8");;)switch(ie){case"hex":return Et(this,ee,se);case"utf8":case"utf-8":return _e(this,ee,se);case"ascii":return it(this,ee,se);case"latin1":case"binary":return at(this,ee,se);case"base64":return ht(this,ee,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,ee,se);default:if(le)throw new TypeError("Unknown encoding: "+ie);ie=(ie+"").toLowerCase(),le=!0}}he.prototype._isBuffer=!0;function je(ie,ee,se){var le=ie[ee];ie[ee]=ie[se],ie[se]=le}he.prototype.swap16=function(){var ee=this.length;if(ee%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var se=0;se<ee;se+=2)je(this,se,se+1);return this},he.prototype.swap32=function(){var ee=this.length;if(ee%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var se=0;se<ee;se+=4)je(this,se,se+3),je(this,se+1,se+2);return this},he.prototype.swap64=function(){var ee=this.length;if(ee%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var se=0;se<ee;se+=8)je(this,se,se+7),je(this,se+1,se+6),je(this,se+2,se+5),je(this,se+3,se+4);return this},he.prototype.toString=function(){var ee=this.length;return ee===0?"":arguments.length===0?_e(this,0,ee):Qe.apply(this,arguments)},he.prototype.toLocaleString=he.prototype.toString,he.prototype.equals=function(ee){if(!he.isBuffer(ee))throw new TypeError("Argument must be a Buffer");return this===ee?!0:he.compare(this,ee)===0},he.prototype.inspect=function(){var ee="",se=Mt.h2;return ee=this.toString("hex",0,se).replace(/(.{2})/g,"$1 ").trim(),this.length>se&&(ee+=" ... "),"<Buffer "+ee+">"},qe&&(he.prototype[qe]=he.prototype.inspect),he.prototype.compare=function(ee,se,le,Be,We){if(on(ee,Uint8Array)&&(ee=he.from(ee,ee.offset,ee.byteLength)),!he.isBuffer(ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ee);if(se===void 0&&(se=0),le===void 0&&(le=ee?ee.length:0),Be===void 0&&(Be=0),We===void 0&&(We=this.length),se<0||le>ee.length||Be<0||We>this.length)throw new RangeError("out of range index");if(Be>=We&&se>=le)return 0;if(Be>=We)return-1;if(se>=le)return 1;if(se>>>=0,le>>>=0,Be>>>=0,We>>>=0,this===ee)return 0;for(var st=We-Be,mt=le-se,vt=Math.min(st,mt),St=this.slice(Be,We),_t=ee.slice(se,le),Qt=0;Qt<vt;++Qt)if(St[Qt]!==_t[Qt]){st=St[Qt],mt=_t[Qt];break}return st<mt?-1:mt<st?1:0};function Je(ie,ee,se,le,Be){if(ie.length===0)return-1;if(typeof se=="string"?(le=se,se=0):se>2147483647?se=2147483647:se<-2147483648&&(se=-2147483648),se=+se,de(se)&&(se=Be?0:ie.length-1),se<0&&(se=ie.length+se),se>=ie.length){if(Be)return-1;se=ie.length-1}else if(se<0)if(Be)se=0;else return-1;if(typeof ee=="string"&&(ee=he.from(ee,le)),he.isBuffer(ee))return ee.length===0?-1:Ve(ie,ee,se,le,Be);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?Be?Uint8Array.prototype.indexOf.call(ie,ee,se):Uint8Array.prototype.lastIndexOf.call(ie,ee,se):Ve(ie,[ee],se,le,Be);throw new TypeError("val must be string, number or Buffer")}function Ve(ie,ee,se,le,Be){var We=1,st=ie.length,mt=ee.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(ie.length<2||ee.length<2)return-1;We=2,st/=2,mt/=2,se/=2}function vt(lt,Vt){return We===1?lt[Vt]:lt.readUInt16BE(Vt*We)}var St;if(Be){var _t=-1;for(St=se;St<st;St++)if(vt(ie,St)===vt(ee,_t===-1?0:St-_t)){if(_t===-1&&(_t=St),St-_t+1===mt)return _t*We}else _t!==-1&&(St-=St-_t),_t=-1}else for(se+mt>st&&(se=st-mt),St=se;St>=0;St--){for(var Qt=!0,xt=0;xt<mt;xt++)if(vt(ie,St+xt)!==vt(ee,xt)){Qt=!1;break}if(Qt)return St}return-1}he.prototype.includes=function(ee,se,le){return this.indexOf(ee,se,le)!==-1},he.prototype.indexOf=function(ee,se,le){return Je(this,ee,se,le,!0)},he.prototype.lastIndexOf=function(ee,se,le){return Je(this,ee,se,le,!1)};function ct(ie,ee,se,le){se=Number(se)||0;var Be=ie.length-se;le?(le=Number(le),le>Be&&(le=Be)):le=Be;var We=ee.length;le>We/2&&(le=We/2);for(var st=0;st<le;++st){var mt=parseInt(ee.substr(st*2,2),16);if(de(mt))return st;ie[se+st]=mt}return st}function ot(ie,ee,se,le){return En(An(ee,ie.length-se),ie,se,le)}function pt(ie,ee,se,le){return En(kt(ee),ie,se,le)}function Ct(ie,ee,se,le){return En(Pt(ee),ie,se,le)}function He(ie,ee,se,le){return En(pn(ee,ie.length-se),ie,se,le)}he.prototype.write=function(ee,se,le,Be){if(se===void 0)Be="utf8",le=this.length,se=0;else if(le===void 0&&typeof se=="string")Be=se,le=this.length,se=0;else if(isFinite(se))se=se>>>0,isFinite(le)?(le=le>>>0,Be===void 0&&(Be="utf8")):(Be=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var We=this.length-se;if((le===void 0||le>We)&&(le=We),ee.length>0&&(le<0||se<0)||se>this.length)throw new RangeError("Attempt to write outside buffer bounds");Be||(Be="utf8");for(var st=!1;;)switch(Be){case"hex":return ct(this,ee,se,le);case"utf8":case"utf-8":return ot(this,ee,se,le);case"ascii":case"latin1":case"binary":return pt(this,ee,se,le);case"base64":return Ct(this,ee,se,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,ee,se,le);default:if(st)throw new TypeError("Unknown encoding: "+Be);Be=(""+Be).toLowerCase(),st=!0}},he.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ht(ie,ee,se){return ee===0&&se===ie.length?dt.fromByteArray(ie):dt.fromByteArray(ie.slice(ee,se))}function _e(ie,ee,se){se=Math.min(ie.length,se);for(var le=[],Be=ee;Be<se;){var We=ie[Be],st=null,mt=We>239?4:We>223?3:We>191?2:1;if(Be+mt<=se){var vt,St,_t,Qt;switch(mt){case 1:We<128&&(st=We);break;case 2:vt=ie[Be+1],(vt&192)===128&&(Qt=(We&31)<<6|vt&63,Qt>127&&(st=Qt));break;case 3:vt=ie[Be+1],St=ie[Be+2],(vt&192)===128&&(St&192)===128&&(Qt=(We&15)<<12|(vt&63)<<6|St&63,Qt>2047&&(Qt<55296||Qt>57343)&&(st=Qt));break;case 4:vt=ie[Be+1],St=ie[Be+2],_t=ie[Be+3],(vt&192)===128&&(St&192)===128&&(_t&192)===128&&(Qt=(We&15)<<18|(vt&63)<<12|(St&63)<<6|_t&63,Qt>65535&&Qt<1114112&&(st=Qt))}}st===null?(st=65533,mt=1):st>65535&&(st-=65536,le.push(st>>>10&1023|55296),st=56320|st&1023),le.push(st),Be+=mt}return Ot(le)}var Re=4096;function Ot(ie){var ee=ie.length;if(ee<=Re)return String.fromCharCode.apply(String,ie);for(var se="",le=0;le<ee;)se+=String.fromCharCode.apply(String,ie.slice(le,le+=Re));return se}function it(ie,ee,se){var le="";se=Math.min(ie.length,se);for(var Be=ee;Be<se;++Be)le+=String.fromCharCode(ie[Be]&127);return le}function at(ie,ee,se){var le="";se=Math.min(ie.length,se);for(var Be=ee;Be<se;++Be)le+=String.fromCharCode(ie[Be]);return le}function Et(ie,ee,se){var le=ie.length;(!ee||ee<0)&&(ee=0),(!se||se<0||se>le)&&(se=le);for(var Be="",We=ee;We<se;++We)Be+=pe[ie[We]];return Be}function Ze(ie,ee,se){for(var le=ie.slice(ee,se),Be="",We=0;We<le.length-1;We+=2)Be+=String.fromCharCode(le[We]+le[We+1]*256);return Be}he.prototype.slice=function(ee,se){var le=this.length;ee=~~ee,se=se===void 0?le:~~se,ee<0?(ee+=le,ee<0&&(ee=0)):ee>le&&(ee=le),se<0?(se+=le,se<0&&(se=0)):se>le&&(se=le),se<ee&&(se=ee);var Be=this.subarray(ee,se);return Object.setPrototypeOf(Be,he.prototype),Be};function De(ie,ee,se){if(ie%1!==0||ie<0)throw new RangeError("offset is not uint");if(ie+ee>se)throw new RangeError("Trying to access beyond buffer length")}he.prototype.readUintLE=he.prototype.readUIntLE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||De(ee,se,this.length);for(var Be=this[ee],We=1,st=0;++st<se&&(We*=256);)Be+=this[ee+st]*We;return Be},he.prototype.readUintBE=he.prototype.readUIntBE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||De(ee,se,this.length);for(var Be=this[ee+--se],We=1;se>0&&(We*=256);)Be+=this[ee+--se]*We;return Be},he.prototype.readUint8=he.prototype.readUInt8=function(ee,se){return ee=ee>>>0,se||De(ee,1,this.length),this[ee]},he.prototype.readUint16LE=he.prototype.readUInt16LE=function(ee,se){return ee=ee>>>0,se||De(ee,2,this.length),this[ee]|this[ee+1]<<8},he.prototype.readUint16BE=he.prototype.readUInt16BE=function(ee,se){return ee=ee>>>0,se||De(ee,2,this.length),this[ee]<<8|this[ee+1]},he.prototype.readUint32LE=he.prototype.readUInt32LE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),(this[ee]|this[ee+1]<<8|this[ee+2]<<16)+this[ee+3]*16777216},he.prototype.readUint32BE=he.prototype.readUInt32BE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),this[ee]*16777216+(this[ee+1]<<16|this[ee+2]<<8|this[ee+3])},he.prototype.readIntLE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||De(ee,se,this.length);for(var Be=this[ee],We=1,st=0;++st<se&&(We*=256);)Be+=this[ee+st]*We;return We*=128,Be>=We&&(Be-=Math.pow(2,8*se)),Be},he.prototype.readIntBE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||De(ee,se,this.length);for(var Be=se,We=1,st=this[ee+--Be];Be>0&&(We*=256);)st+=this[ee+--Be]*We;return We*=128,st>=We&&(st-=Math.pow(2,8*se)),st},he.prototype.readInt8=function(ee,se){return ee=ee>>>0,se||De(ee,1,this.length),this[ee]&128?(255-this[ee]+1)*-1:this[ee]},he.prototype.readInt16LE=function(ee,se){ee=ee>>>0,se||De(ee,2,this.length);var le=this[ee]|this[ee+1]<<8;return le&32768?le|4294901760:le},he.prototype.readInt16BE=function(ee,se){ee=ee>>>0,se||De(ee,2,this.length);var le=this[ee+1]|this[ee]<<8;return le&32768?le|4294901760:le},he.prototype.readInt32LE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),this[ee]|this[ee+1]<<8|this[ee+2]<<16|this[ee+3]<<24},he.prototype.readInt32BE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),this[ee]<<24|this[ee+1]<<16|this[ee+2]<<8|this[ee+3]},he.prototype.readFloatLE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),Le.read(this,ee,!0,23,4)},he.prototype.readFloatBE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),Le.read(this,ee,!1,23,4)},he.prototype.readDoubleLE=function(ee,se){return ee=ee>>>0,se||De(ee,8,this.length),Le.read(this,ee,!0,52,8)},he.prototype.readDoubleBE=function(ee,se){return ee=ee>>>0,se||De(ee,8,this.length),Le.read(this,ee,!1,52,8)};function ut(ie,ee,se,le,Be,We){if(!he.isBuffer(ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>Be||ee<We)throw new RangeError('"value" argument is out of bounds');if(se+le>ie.length)throw new RangeError("Index out of range")}he.prototype.writeUintLE=he.prototype.writeUIntLE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,le=le>>>0,!Be){var We=Math.pow(2,8*le)-1;ut(this,ee,se,le,We,0)}var st=1,mt=0;for(this[se]=ee&255;++mt<le&&(st*=256);)this[se+mt]=ee/st&255;return se+le},he.prototype.writeUintBE=he.prototype.writeUIntBE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,le=le>>>0,!Be){var We=Math.pow(2,8*le)-1;ut(this,ee,se,le,We,0)}var st=le-1,mt=1;for(this[se+st]=ee&255;--st>=0&&(mt*=256);)this[se+st]=ee/mt&255;return se+le},he.prototype.writeUint8=he.prototype.writeUInt8=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,1,255,0),this[se]=ee&255,se+1},he.prototype.writeUint16LE=he.prototype.writeUInt16LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,2,65535,0),this[se]=ee&255,this[se+1]=ee>>>8,se+2},he.prototype.writeUint16BE=he.prototype.writeUInt16BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,2,65535,0),this[se]=ee>>>8,this[se+1]=ee&255,se+2},he.prototype.writeUint32LE=he.prototype.writeUInt32LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,4,4294967295,0),this[se+3]=ee>>>24,this[se+2]=ee>>>16,this[se+1]=ee>>>8,this[se]=ee&255,se+4},he.prototype.writeUint32BE=he.prototype.writeUInt32BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,4,4294967295,0),this[se]=ee>>>24,this[se+1]=ee>>>16,this[se+2]=ee>>>8,this[se+3]=ee&255,se+4},he.prototype.writeIntLE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,!Be){var We=Math.pow(2,8*le-1);ut(this,ee,se,le,We-1,-We)}var st=0,mt=1,vt=0;for(this[se]=ee&255;++st<le&&(mt*=256);)ee<0&&vt===0&&this[se+st-1]!==0&&(vt=1),this[se+st]=(ee/mt>>0)-vt&255;return se+le},he.prototype.writeIntBE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,!Be){var We=Math.pow(2,8*le-1);ut(this,ee,se,le,We-1,-We)}var st=le-1,mt=1,vt=0;for(this[se+st]=ee&255;--st>=0&&(mt*=256);)ee<0&&vt===0&&this[se+st+1]!==0&&(vt=1),this[se+st]=(ee/mt>>0)-vt&255;return se+le},he.prototype.writeInt8=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,1,127,-128),ee<0&&(ee=255+ee+1),this[se]=ee&255,se+1},he.prototype.writeInt16LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,2,32767,-32768),this[se]=ee&255,this[se+1]=ee>>>8,se+2},he.prototype.writeInt16BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,2,32767,-32768),this[se]=ee>>>8,this[se+1]=ee&255,se+2},he.prototype.writeInt32LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,4,2147483647,-2147483648),this[se]=ee&255,this[se+1]=ee>>>8,this[se+2]=ee>>>16,this[se+3]=ee>>>24,se+4},he.prototype.writeInt32BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,4,2147483647,-2147483648),ee<0&&(ee=4294967295+ee+1),this[se]=ee>>>24,this[se+1]=ee>>>16,this[se+2]=ee>>>8,this[se+3]=ee&255,se+4};function Zt(ie,ee,se,le,Be,We){if(se+le>ie.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("Index out of range")}function Kt(ie,ee,se,le,Be){return ee=+ee,se=se>>>0,Be||Zt(ie,ee,se,4,34028234663852886e22,-34028234663852886e22),Le.write(ie,ee,se,le,23,4),se+4}he.prototype.writeFloatLE=function(ee,se,le){return Kt(this,ee,se,!0,le)},he.prototype.writeFloatBE=function(ee,se,le){return Kt(this,ee,se,!1,le)};function tt(ie,ee,se,le,Be){return ee=+ee,se=se>>>0,Be||Zt(ie,ee,se,8,17976931348623157e292,-17976931348623157e292),Le.write(ie,ee,se,le,52,8),se+8}he.prototype.writeDoubleLE=function(ee,se,le){return tt(this,ee,se,!0,le)},he.prototype.writeDoubleBE=function(ee,se,le){return tt(this,ee,se,!1,le)},he.prototype.copy=function(ee,se,le,Be){if(!he.isBuffer(ee))throw new TypeError("argument should be a Buffer");if(le||(le=0),!Be&&Be!==0&&(Be=this.length),se>=ee.length&&(se=ee.length),se||(se=0),Be>0&&Be<le&&(Be=le),Be===le||ee.length===0||this.length===0)return 0;if(se<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(Be<0)throw new RangeError("sourceEnd out of bounds");Be>this.length&&(Be=this.length),ee.length-se<Be-le&&(Be=ee.length-se+le);var We=Be-le;return this===ee&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(se,le,Be):Uint8Array.prototype.set.call(ee,this.subarray(le,Be),se),We},he.prototype.fill=function(ee,se,le,Be){if(typeof ee=="string"){if(typeof se=="string"?(Be=se,se=0,le=this.length):typeof le=="string"&&(Be=le,le=this.length),Be!==void 0&&typeof Be!="string")throw new TypeError("encoding must be a string");if(typeof Be=="string"&&!he.isEncoding(Be))throw new TypeError("Unknown encoding: "+Be);if(ee.length===1){var We=ee.charCodeAt(0);(Be==="utf8"&&We<128||Be==="latin1")&&(ee=We)}}else typeof ee=="number"?ee=ee&255:typeof ee=="boolean"&&(ee=Number(ee));if(se<0||this.length<se||this.length<le)throw new RangeError("Out of range index");if(le<=se)return this;se=se>>>0,le=le===void 0?this.length:le>>>0,ee||(ee=0);var st;if(typeof ee=="number")for(st=se;st<le;++st)this[st]=ee;else{var mt=he.isBuffer(ee)?ee:he.from(ee,Be),vt=mt.length;if(vt===0)throw new TypeError('The value "'+ee+'" is invalid for argument "value"');for(st=0;st<le-se;++st)this[st+se]=mt[st%vt]}return this};var Dt=/[^+/0-9A-Za-z-_]/g;function jt(ie){if(ie=ie.split("=")[0],ie=ie.trim().replace(Dt,""),ie.length<2)return"";for(;ie.length%4!==0;)ie=ie+"=";return ie}function An(ie,ee){ee=ee||1/0;for(var se,le=ie.length,Be=null,We=[],st=0;st<le;++st){if(se=ie.charCodeAt(st),se>55295&&se<57344){if(!Be){if(se>56319){(ee-=3)>-1&&We.push(239,191,189);continue}else if(st+1===le){(ee-=3)>-1&&We.push(239,191,189);continue}Be=se;continue}if(se<56320){(ee-=3)>-1&&We.push(239,191,189),Be=se;continue}se=(Be-55296<<10|se-56320)+65536}else Be&&(ee-=3)>-1&&We.push(239,191,189);if(Be=null,se<128){if((ee-=1)<0)break;We.push(se)}else if(se<2048){if((ee-=2)<0)break;We.push(se>>6|192,se&63|128)}else if(se<65536){if((ee-=3)<0)break;We.push(se>>12|224,se>>6&63|128,se&63|128)}else if(se<1114112){if((ee-=4)<0)break;We.push(se>>18|240,se>>12&63|128,se>>6&63|128,se&63|128)}else throw new Error("Invalid code point")}return We}function kt(ie){for(var ee=[],se=0;se<ie.length;++se)ee.push(ie.charCodeAt(se)&255);return ee}function pn(ie,ee){for(var se,le,Be,We=[],st=0;st<ie.length&&!((ee-=2)<0);++st)se=ie.charCodeAt(st),le=se>>8,Be=se%256,We.push(Be),We.push(le);return We}function Pt(ie){return dt.toByteArray(jt(ie))}function En(ie,ee,se,le){for(var Be=0;Be<le&&!(Be+se>=ee.length||Be>=ie.length);++Be)ee[Be+se]=ie[Be];return Be}function on(ie,ee){return ie instanceof ee||ie!=null&&ie.constructor!=null&&ie.constructor.name!=null&&ie.constructor.name===ee.name}function de(ie){return ie!==ie}var pe=function(){for(var ie="0123456789abcdef",ee=new Array(256),se=0;se<16;++se)for(var le=se*16,Be=0;Be<16;++Be)ee[le+Be]=ie[se]+ie[Be];return ee}()},14625:function(qn){function Mt(x){var dt,Le,qe="";if(typeof x=="string"||typeof x=="number")qe+=x;else if(typeof x=="object")if(Array.isArray(x)){var ze=x.length;for(dt=0;dt<ze;dt++)x[dt]&&(Le=Mt(x[dt]))&&(qe&&(qe+=" "),qe+=Le)}else for(Le in x)x[Le]&&(qe&&(qe+=" "),qe+=Le);return qe}function ae(){for(var x,dt,Le=0,qe="",ze=arguments.length;Le<ze;Le++)(x=arguments[Le])&&(dt=Mt(x))&&(qe&&(qe+=" "),qe+=dt);return qe}qn.exports=ae,qn.exports.clsx=ae},99498:function(qn,Mt,ae){(function(x){x(ae(89780))})(function(x){x.defineOption("placeholder","",function(he,xe,oe){var Oe=oe&&oe!=x.Init;if(xe&&!Oe)he.on("blur",ze),he.on("change",Ie),he.on("swapDoc",Ie),x.on(he.getInputField(),"compositionupdate",he.state.placeholderCompose=function(){qe(he)}),Ie(he);else if(!xe&&Oe){he.off("blur",ze),he.off("change",Ie),he.off("swapDoc",Ie),x.off(he.getInputField(),"compositionupdate",he.state.placeholderCompose),dt(he);var ve=he.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}xe&&!he.hasFocus()&&ze(he)});function dt(he){he.state.placeholder&&(he.state.placeholder.parentNode.removeChild(he.state.placeholder),he.state.placeholder=null)}function Le(he){dt(he);var xe=he.state.placeholder=document.createElement("pre");xe.style.cssText="height: 0; overflow: visible",xe.style.direction=he.getOption("direction"),xe.className="CodeMirror-placeholder CodeMirror-line-like";var oe=he.getOption("placeholder");typeof oe=="string"&&(oe=document.createTextNode(oe)),xe.appendChild(oe),he.display.lineSpace.insertBefore(xe,he.display.lineSpace.firstChild)}function qe(he){setTimeout(function(){var xe=!1,oe=he.getInputField();oe.nodeName=="TEXTAREA"?xe=!oe.value:he.lineCount()==1&&(xe=!/[^\u200b]/.test(oe.querySelector(".CodeMirror-line").textContent)),xe?Le(he):dt(he)},20)}function ze(he){Ue(he)&&Le(he)}function Ie(he){var xe=he.getWrapperElement(),oe=Ue(he);xe.className=xe.className.replace(" CodeMirror-empty","")+(oe?" CodeMirror-empty":""),oe?Le(he):dt(he)}function Ue(he){return he.lineCount()===1&&he.getLine(0)===""}})},25717:function(qn,Mt,ae){(function(x){x(ae(89780))})(function(x){var dt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Le=x.Pos;x.defineOption("autoCloseBrackets",!1,function(Te,we,Ce){Ce&&Ce!=x.Init&&(Te.removeKeyMap(ze),Te.state.closeBrackets=null),we&&(Ie(qe(we,"pairs")),Te.state.closeBrackets=we,Te.addKeyMap(ze))});function qe(Te,we){return we=="pairs"&&typeof Te=="string"?Te:typeof Te=="object"&&Te[we]!=null?Te[we]:dt[we]}var ze={Backspace:xe,Enter:oe};function Ie(Te){for(var we=0;we<Te.length;we++){var Ce=Te.charAt(we),Ee="'"+Ce+"'";ze[Ee]||(ze[Ee]=Ue(Ce))}}Ie(dt.pairs+"`");function Ue(Te){return function(we){return ve(we,Te)}}function he(Te){var we=Te.state.closeBrackets;if(!we||we.override)return we;var Ce=Te.getModeAt(Te.getCursor());return Ce.closeBrackets||we}function xe(Te){var we=he(Te);if(!we||Te.getOption("disableInput"))return x.Pass;for(var Ce=qe(we,"pairs"),Ee=Te.listSelections(),ke=0;ke<Ee.length;ke++){if(!Ee[ke].empty())return x.Pass;var Ke=Me(Te,Ee[ke].head);if(!Ke||Ce.indexOf(Ke)%2!=0)return x.Pass}for(var ke=Ee.length-1;ke>=0;ke--){var Qe=Ee[ke].head;Te.replaceRange("",Le(Qe.line,Qe.ch-1),Le(Qe.line,Qe.ch+1),"+delete")}}function oe(Te){var we=he(Te),Ce=we&&qe(we,"explode");if(!Ce||Te.getOption("disableInput"))return x.Pass;for(var Ee=Te.listSelections(),ke=0;ke<Ee.length;ke++){if(!Ee[ke].empty())return x.Pass;var Ke=Me(Te,Ee[ke].head);if(!Ke||Ce.indexOf(Ke)%2!=0)return x.Pass}Te.operation(function(){var Qe=Te.lineSeparator()||`
|
|
|
`;Te.replaceSelection(Qe+Qe,null),Te.execCommand("goCharLeft"),Ee=Te.listSelections();for(var je=0;je<Ee.length;je++){var Je=Ee[je].head.line;Te.indentLine(Je,null,!0),Te.indentLine(Je+1,null,!0)}})}function Oe(Te){var we=x.cmpPos(Te.anchor,Te.head)>0;return{anchor:new Le(Te.anchor.line,Te.anchor.ch+(we?-1:1)),head:new Le(Te.head.line,Te.head.ch+(we?1:-1))}}function ve(Te,we){var Ce=he(Te);if(!Ce||Te.getOption("disableInput"))return x.Pass;var Ee=qe(Ce,"pairs"),ke=Ee.indexOf(we);if(ke==-1)return x.Pass;for(var Ke=qe(Ce,"closeBefore"),Qe=qe(Ce,"triples"),je=Ee.charAt(ke+1)==we,Je=Te.listSelections(),Ve=ke%2==0,ct,ot=0;ot<Je.length;ot++){var pt=Je[ot],Ct=pt.head,He,ht=Te.getRange(Ct,Le(Ct.line,Ct.ch+1));if(Ve&&!pt.empty())He="surround";else if((je||!Ve)&&ht==we)je&&Se(Te,Ct)?He="both":Qe.indexOf(we)>=0&&Te.getRange(Ct,Le(Ct.line,Ct.ch+3))==we+we+we?He="skipThree":He="skip";else if(je&&Ct.ch>1&&Qe.indexOf(we)>=0&&Te.getRange(Le(Ct.line,Ct.ch-2),Ct)==we+we){if(Ct.ch>2&&/\bstring/.test(Te.getTokenTypeAt(Le(Ct.line,Ct.ch-2))))return x.Pass;He="addFour"}else if(je){var _e=Ct.ch==0?" ":Te.getRange(Le(Ct.line,Ct.ch-1),Ct);if(!x.isWordChar(ht)&&_e!=we&&!x.isWordChar(_e))He="both";else return x.Pass}else if(Ve&&(ht.length===0||/\s/.test(ht)||Ke.indexOf(ht)>-1))He="both";else return x.Pass;if(!ct)ct=He;else if(ct!=He)return x.Pass}var Re=ke%2?Ee.charAt(ke-1):we,Ot=ke%2?we:Ee.charAt(ke+1);Te.operation(function(){if(ct=="skip")Te.execCommand("goCharRight");else if(ct=="skipThree")for(var it=0;it<3;it++)Te.execCommand("goCharRight");else if(ct=="surround"){for(var at=Te.getSelections(),it=0;it<at.length;it++)at[it]=Re+at[it]+Ot;Te.replaceSelections(at,"around"),at=Te.listSelections().slice();for(var it=0;it<at.length;it++)at[it]=Oe(at[it]);Te.setSelections(at)}else ct=="both"?(Te.replaceSelection(Re+Ot,null),Te.triggerElectric(Re+Ot),Te.execCommand("goCharLeft")):ct=="addFour"&&(Te.replaceSelection(Re+Re+Re+Re,"before"),Te.execCommand("goCharRight"))})}function Me(Te,we){var Ce=Te.getRange(Le(we.line,we.ch-1),Le(we.line,we.ch+1));return Ce.length==2?Ce:null}function Se(Te,we){var Ce=Te.getTokenAt(Le(we.line,we.ch+1));return/\bstring/.test(Ce.type)&&Ce.start==we.ch&&(we.ch==0||!/\bstring/.test(Te.getTokenTypeAt(we)))}})},6313:function(qn,Mt,ae){(function(x){x(ae(89780),ae(32855))})(function(x){x.defineOption("autoCloseTags",!1,function(xe,oe,Oe){if(Oe!=x.Init&&Oe&&xe.removeKeyMap("autoCloseTags"),!!oe){var ve={name:"autoCloseTags"};(typeof oe!="object"||oe.whenClosing!==!1)&&(ve["'/'"]=function(Me){return Ie(Me)}),(typeof oe!="object"||oe.whenOpening!==!1)&&(ve["'>'"]=function(Me){return qe(Me)}),xe.addKeyMap(ve)}});var dt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Le=["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 qe(xe){if(xe.getOption("disableInput"))return x.Pass;for(var oe=xe.listSelections(),Oe=[],ve=xe.getOption("autoCloseTags"),Me=0;Me<oe.length;Me++){if(!oe[Me].empty())return x.Pass;var Se=oe[Me].head,Te=xe.getTokenAt(Se),we=x.innerMode(xe.getMode(),Te.state),Ce=we.state,Ee=we.mode.xmlCurrentTag&&we.mode.xmlCurrentTag(Ce),ke=Ee&&Ee.name;if(!ke)return x.Pass;var Ke=we.mode.configuration=="html",Qe=typeof ve=="object"&&ve.dontCloseTags||Ke&&dt,je=typeof ve=="object"&&ve.indentTags||Ke&&Le;Te.end>Se.ch&&(ke=ke.slice(0,ke.length-Te.end+Se.ch));var Je=ke.toLowerCase();if(!ke||Te.type=="string"&&(Te.end!=Se.ch||!/[\"\']/.test(Te.string.charAt(Te.string.length-1))||Te.string.length==1)||Te.type=="tag"&&Ee.close||Te.string.indexOf("/")==Se.ch-Te.start-1||Qe&&Ue(Qe,Je)>-1||he(xe,we.mode.xmlCurrentContext&&we.mode.xmlCurrentContext(Ce)||[],ke,Se,!0))return x.Pass;var Ve=typeof ve=="object"&&ve.emptyTags;if(Ve&&Ue(Ve,ke)>-1){Oe[Me]={text:"/>",newPos:x.Pos(Se.line,Se.ch+2)};continue}var ct=je&&Ue(je,Je)>-1;Oe[Me]={indent:ct,text:">"+(ct?`
|
|
|
|
|
|
`:"")+"</"+ke+">",newPos:ct?x.Pos(Se.line+1,0):x.Pos(Se.line,Se.ch+1)}}for(var ot=typeof ve=="object"&&ve.dontIndentOnAutoClose,Me=oe.length-1;Me>=0;Me--){var pt=Oe[Me];xe.replaceRange(pt.text,oe[Me].head,oe[Me].anchor,"+insert");var Ct=xe.listSelections().slice(0);Ct[Me]={head:pt.newPos,anchor:pt.newPos},xe.setSelections(Ct),!ot&&pt.indent&&(xe.indentLine(pt.newPos.line,null,!0),xe.indentLine(pt.newPos.line+1,null,!0))}}function ze(xe,oe){for(var Oe=xe.listSelections(),ve=[],Me=oe?"/":"</",Se=xe.getOption("autoCloseTags"),Te=typeof Se=="object"&&Se.dontIndentOnSlash,we=0;we<Oe.length;we++){if(!Oe[we].empty())return x.Pass;var Ce=Oe[we].head,Ee=xe.getTokenAt(Ce),ke=x.innerMode(xe.getMode(),Ee.state),Ke=ke.state;if(oe&&(Ee.type=="string"||Ee.string.charAt(0)!="<"||Ee.start!=Ce.ch-1))return x.Pass;var Qe,je=ke.mode.name!="xml"&&xe.getMode().name=="htmlmixed";if(je&&ke.mode.name=="javascript")Qe=Me+"script";else if(je&&ke.mode.name=="css")Qe=Me+"style";else{var Je=ke.mode.xmlCurrentContext&&ke.mode.xmlCurrentContext(Ke);if(!Je||Je.length&&he(xe,Je,Je[Je.length-1],Ce))return x.Pass;Qe=Me+Je[Je.length-1]}xe.getLine(Ce.line).charAt(Ee.end)!=">"&&(Qe+=">"),ve[we]=Qe}if(xe.replaceSelections(ve),Oe=xe.listSelections(),!Te)for(var we=0;we<Oe.length;we++)(we==Oe.length-1||Oe[we].head.line<Oe[we+1].head.line)&&xe.indentLine(Oe[we].head.line)}function Ie(xe){return xe.getOption("disableInput")?x.Pass:ze(xe,!0)}x.commands.closeTag=function(xe){return ze(xe)};function Ue(xe,oe){if(xe.indexOf)return xe.indexOf(oe);for(var Oe=0,ve=xe.length;Oe<ve;++Oe)if(xe[Oe]==oe)return Oe;return-1}function he(xe,oe,Oe,ve,Me){if(!x.scanForClosingTag)return!1;var Se=Math.min(xe.lastLine()+1,ve.line+500),Te=x.scanForClosingTag(xe,ve,null,Se);if(!Te||Te.tag!=Oe)return!1;for(var we=Me?1:0,Ce=oe.length-1;Ce>=0&&oe[Ce]==Oe;Ce--)++we;ve=Te.to;for(var Ce=1;Ce<we;Ce++){var Ee=x.scanForClosingTag(xe,ve,null,Se);if(!Ee||Ee.tag!=Oe)return!1;ve=Ee.to}return!0}})},32855:function(qn,Mt,ae){(function(x){x(ae(89780))})(function(x){"use strict";var dt=x.Pos;function Le(Ce,Ee){return Ce.line-Ee.line||Ce.ch-Ee.ch}var qe="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",ze=qe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ie=new RegExp("<(/?)(["+qe+"]["+ze+"]*)","g");function Ue(Ce,Ee,ke,Ke){this.line=Ee,this.ch=ke,this.cm=Ce,this.text=Ce.getLine(Ee),this.min=Ke?Math.max(Ke.from,Ce.firstLine()):Ce.firstLine(),this.max=Ke?Math.min(Ke.to-1,Ce.lastLine()):Ce.lastLine()}function he(Ce,Ee){var ke=Ce.cm.getTokenTypeAt(dt(Ce.line,Ee));return ke&&/\btag\b/.test(ke)}function xe(Ce){if(!(Ce.line>=Ce.max))return Ce.ch=0,Ce.text=Ce.cm.getLine(++Ce.line),!0}function oe(Ce){if(!(Ce.line<=Ce.min))return Ce.text=Ce.cm.getLine(--Ce.line),Ce.ch=Ce.text.length,!0}function Oe(Ce){for(;;){var Ee=Ce.text.indexOf(">",Ce.ch);if(Ee==-1){if(xe(Ce))continue;return}if(!he(Ce,Ee+1)){Ce.ch=Ee+1;continue}var ke=Ce.text.lastIndexOf("/",Ee),Ke=ke>-1&&!/\S/.test(Ce.text.slice(ke+1,Ee));return Ce.ch=Ee+1,Ke?"selfClose":"regular"}}function ve(Ce){for(;;){var Ee=Ce.ch?Ce.text.lastIndexOf("<",Ce.ch-1):-1;if(Ee==-1){if(oe(Ce))continue;return}if(!he(Ce,Ee+1)){Ce.ch=Ee;continue}Ie.lastIndex=Ee,Ce.ch=Ee;var ke=Ie.exec(Ce.text);if(ke&&ke.index==Ee)return ke}}function Me(Ce){for(;;){Ie.lastIndex=Ce.ch;var Ee=Ie.exec(Ce.text);if(!Ee){if(xe(Ce))continue;return}if(!he(Ce,Ee.index+1)){Ce.ch=Ee.index+1;continue}return Ce.ch=Ee.index+Ee[0].length,Ee}}function Se(Ce){for(;;){var Ee=Ce.ch?Ce.text.lastIndexOf(">",Ce.ch-1):-1;if(Ee==-1){if(oe(Ce))continue;return}if(!he(Ce,Ee+1)){Ce.ch=Ee;continue}var ke=Ce.text.lastIndexOf("/",Ee),Ke=ke>-1&&!/\S/.test(Ce.text.slice(ke+1,Ee));return Ce.ch=Ee+1,Ke?"selfClose":"regular"}}function Te(Ce,Ee){for(var ke=[];;){var Ke=Me(Ce),Qe,je=Ce.line,Je=Ce.ch-(Ke?Ke[0].length:0);if(!Ke||!(Qe=Oe(Ce)))return;if(Qe!="selfClose")if(Ke[1]){for(var Ve=ke.length-1;Ve>=0;--Ve)if(ke[Ve]==Ke[2]){ke.length=Ve;break}if(Ve<0&&(!Ee||Ee==Ke[2]))return{tag:Ke[2],from:dt(je,Je),to:dt(Ce.line,Ce.ch)}}else ke.push(Ke[2])}}function we(Ce,Ee){for(var ke=[];;){var Ke=Se(Ce);if(!Ke)return;if(Ke=="selfClose"){ve(Ce);continue}var Qe=Ce.line,je=Ce.ch,Je=ve(Ce);if(!Je)return;if(Je[1])ke.push(Je[2]);else{for(var Ve=ke.length-1;Ve>=0;--Ve)if(ke[Ve]==Je[2]){ke.length=Ve;break}if(Ve<0&&(!Ee||Ee==Je[2]))return{tag:Je[2],from:dt(Ce.line,Ce.ch),to:dt(Qe,je)}}}}x.registerHelper("fold","xml",function(Ce,Ee){for(var ke=new Ue(Ce,Ee.line,0);;){var Ke=Me(ke);if(!Ke||ke.line!=Ee.line)return;var Qe=Oe(ke);if(!Qe)return;if(!Ke[1]&&Qe!="selfClose"){var je=dt(ke.line,ke.ch),Je=Te(ke,Ke[2]);return Je&&Le(Je.from,je)>0?{from:je,to:Je.from}:null}}}),x.findMatchingTag=function(Ce,Ee,ke){var Ke=new Ue(Ce,Ee.line,Ee.ch,ke);if(!(Ke.text.indexOf(">")==-1&&Ke.text.indexOf("<")==-1)){var Qe=Oe(Ke),je=Qe&&dt(Ke.line,Ke.ch),Je=Qe&&ve(Ke);if(!(!Qe||!Je||Le(Ke,Ee)>0)){var Ve={from:dt(Ke.line,Ke.ch),to:je,tag:Je[2]};return Qe=="selfClose"?{open:Ve,close:null,at:"open"}:Je[1]?{open:we(Ke,Je[2]),close:Ve,at:"close"}:(Ke=new Ue(Ce,je.line,je.ch,ke),{open:Ve,close:Te(Ke,Je[2]),at:"open"})}}},x.findEnclosingTag=function(Ce,Ee,ke,Ke){for(var Qe=new Ue(Ce,Ee.line,Ee.ch,ke);;){var je=we(Qe,Ke);if(!je)break;var Je=new Ue(Ce,Ee.line,Ee.ch,ke),Ve=Te(Je,je.tag);if(Ve)return{open:je,close:Ve}}},x.scanForClosingTag=function(Ce,Ee,ke,Ke){var Qe=new Ue(Ce,Ee.line,Ee.ch,Ke?{from:0,to:Ke}:null);return Te(Qe,ke)}})},89780:function(qn){(function(Mt,ae){qn.exports=ae()})(this,function(){"use strict";var Mt=navigator.userAgent,ae=navigator.platform,x=/gecko\/\d/i.test(Mt),dt=/MSIE \d/.test(Mt),Le=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Mt),qe=/Edge\/(\d+)/.exec(Mt),ze=dt||Le||qe,Ie=ze&&(dt?document.documentMode||6:+(qe||Le)[1]),Ue=!qe&&/WebKit\//.test(Mt),he=Ue&&/Qt\/\d+\.\d+/.test(Mt),xe=!qe&&/Chrome\//.test(Mt),oe=/Opera\//.test(Mt),Oe=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Mt),Me=/PhantomJS/.test(Mt),Se=!qe&&/AppleWebKit/.test(Mt)&&/Mobile\/\w+/.test(Mt),Te=/Android/.test(Mt),we=Se||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Mt),Ce=Se||/Mac/.test(ae),Ee=/\bCrOS\b/.test(Mt),ke=/win/i.test(ae),Ke=oe&&Mt.match(/Version\/(\d*\.\d*)/);Ke&&(Ke=Number(Ke[1])),Ke&&Ke>=15&&(oe=!1,Ue=!0);var Qe=Ce&&(he||oe&&(Ke==null||Ke<12.11)),je=x||ze&&Ie>=9;function Je(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ve=function(a,b){var ne=a.className,te=Je(b).exec(ne);if(te){var ue=ne.slice(te.index+te[0].length);a.className=ne.slice(0,te.index)+(ue?te[1]+ue:"")}};function ct(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function ot(a,b){return ct(a).appendChild(b)}function pt(a,b,ne,te){var ue=document.createElement(a);if(ne&&(ue.className=ne),te&&(ue.style.cssText=te),typeof b=="string")ue.appendChild(document.createTextNode(b));else if(b)for(var Ne=0;Ne<b.length;++Ne)ue.appendChild(b[Ne]);return ue}function Ct(a,b,ne,te){var ue=pt(a,b,ne,te);return ue.setAttribute("role","presentation"),ue}var He;document.createRange?He=function(a,b,ne,te){var ue=document.createRange();return ue.setEnd(te||a,ne),ue.setStart(a,b),ue}:He=function(a,b,ne){var te=document.body.createTextRange();try{te.moveToElementText(a.parentNode)}catch(ue){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",b),te};function ht(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function _e(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Re(a,b){var ne=a.className;Je(b).test(ne)||(a.className+=(ne?" ":"")+b)}function Ot(a,b){for(var ne=a.split(" "),te=0;te<ne.length;te++)ne[te]&&!Je(ne[te]).test(b)&&(b+=" "+ne[te]);return b}var it=function(a){a.select()};Se?it=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ze&&(it=function(a){try{a.select()}catch(b){}});function at(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function Et(a,b,ne){b||(b={});for(var te in a)a.hasOwnProperty(te)&&(ne!==!1||!b.hasOwnProperty(te))&&(b[te]=a[te]);return b}function Ze(a,b,ne,te,ue){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var Ne=te||0,et=ue||0;;){var yt=a.indexOf(" ",Ne);if(yt<0||yt>=b)return et+(b-Ne);et+=yt-Ne,et+=ne-et%ne,Ne=yt+1}}var De=function(){this.id=null,this.f=null,this.time=0,this.handler=at(this.onTimeout,this)};De.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},De.prototype.set=function(a,b){this.f=b;var ne=+new Date+a;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ne)};function ut(a,b){for(var ne=0;ne<a.length;++ne)if(a[ne]==b)return ne;return-1}var Zt=50,Kt={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},Dt={origin:"*mouse"},jt={origin:"+move"};function An(a,b,ne){for(var te=0,ue=0;;){var Ne=a.indexOf(" ",te);Ne==-1&&(Ne=a.length);var et=Ne-te;if(Ne==a.length||ue+et>=b)return te+Math.min(et,b-ue);if(ue+=Ne-te,ue+=ne-ue%ne,te=Ne+1,ue>=b)return te}}var kt=[""];function pn(a){for(;kt.length<=a;)kt.push(Pt(kt)+" ");return kt[a]}function Pt(a){return a[a.length-1]}function En(a,b){for(var ne=[],te=0;te<a.length;te++)ne[te]=b(a[te],te);return ne}function on(a,b,ne){for(var te=0,ue=ne(b);te<a.length&&ne(a[te])<=ue;)te++;a.splice(te,0,b)}function de(){}function pe(a,b){var ne;return Object.create?ne=Object.create(a):(de.prototype=a,ne=new de),b&&Et(b,ne),ne}var ie=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ie.test(a))}function se(a,b){return b?b.source.indexOf("\\w")>-1&&ee(a)?!0:b.test(a):ee(a)}function le(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var Be=/[\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 We(a){return a.charCodeAt(0)>=768&&Be.test(a)}function st(a,b,ne){for(;(ne<0?b>0:b<a.length)&&We(a.charAt(b));)b+=ne;return b}function mt(a,b,ne){for(var te=b>ne?-1:1;;){if(b==ne)return b;var ue=(b+ne)/2,Ne=te<0?Math.ceil(ue):Math.floor(ue);if(Ne==b)return a(Ne)?b:ne;a(Ne)?ne=Ne:b=Ne+te}}function vt(a,b,ne,te){if(!a)return te(b,ne,"ltr",0);for(var ue=!1,Ne=0;Ne<a.length;++Ne){var et=a[Ne];(et.from<ne&&et.to>b||b==ne&&et.to==b)&&(te(Math.max(et.from,b),Math.min(et.to,ne),et.level==1?"rtl":"ltr",Ne),ue=!0)}ue||te(b,ne,"ltr")}var St=null;function _t(a,b,ne){var te;St=null;for(var ue=0;ue<a.length;++ue){var Ne=a[ue];if(Ne.from<b&&Ne.to>b)return ue;Ne.to==b&&(Ne.from!=Ne.to&&ne=="before"?te=ue:St=ue),Ne.from==b&&(Ne.from!=Ne.to&&ne!="before"?te=ue:St=ue)}return te!=null?te:St}var Qt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(Nt){return Nt<=247?a.charAt(Nt):1424<=Nt&&Nt<=1524?"R":1536<=Nt&&Nt<=1785?b.charAt(Nt-1536):1774<=Nt&&Nt<=2220?"r":8192<=Nt&&Nt<=8203?"w":Nt==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ue=/[stwN]/,Ne=/[LRr]/,et=/[Lb1n]/,yt=/[1n]/;function Ft(Nt,Ln,Qn){this.level=Nt,this.from=Ln,this.to=Qn}return function(Nt,Ln){var Qn=Ln=="ltr"?"L":"R";if(Nt.length==0||Ln=="ltr"&&!te.test(Nt))return!1;for(var Or=Nt.length,Cr=[],wi=0;wi<Or;++wi)Cr.push(ne(Nt.charCodeAt(wi)));for(var Ki=0,Ao=Qn;Ki<Or;++Ki){var Io=Cr[Ki];Io=="m"?Cr[Ki]=Ao:Ao=Io}for(var Ko=0,Lo=Qn;Ko<Or;++Ko){var Aa=Cr[Ko];Aa=="1"&&Lo=="r"?Cr[Ko]="n":Ne.test(Aa)&&(Lo=Aa,Aa=="r"&&(Cr[Ko]="R"))}for(var ka=1,Ca=Cr[0];ka<Or-1;++ka){var Ha=Cr[ka];Ha=="+"&&Ca=="1"&&Cr[ka+1]=="1"?Cr[ka]="1":Ha==","&&Ca==Cr[ka+1]&&(Ca=="1"||Ca=="n")&&(Cr[ka]=Ca),Ca=Ha}for(var Ll=0;Ll<Or;++Ll){var $u=Cr[Ll];if($u==",")Cr[Ll]="N";else if($u=="%"){var tu=void 0;for(tu=Ll+1;tu<Or&&Cr[tu]=="%";++tu);for(var bc=Ll&&Cr[Ll-1]=="!"||tu<Or&&Cr[tu]=="1"?"1":"N",ec=Ll;ec<tu;++ec)Cr[ec]=bc;Ll=tu-1}}for(var Uu=0,Cc=Qn;Uu<Or;++Uu){var cc=Cr[Uu];Cc=="L"&&cc=="1"?Cr[Uu]="L":Ne.test(cc)&&(Cc=cc)}for(var So=0;So<Or;++So)if(ue.test(Cr[So])){var $l=void 0;for($l=So+1;$l<Or&&ue.test(Cr[$l]);++$l);for(var nu=(So?Cr[So-1]:Qn)=="L",ru=($l<Or?Cr[$l]:Qn)=="L",Of=nu==ru?nu?"L":"R":Qn,$s=So;$s<$l;++$s)Cr[$s]=Of;So=$l-1}for(var Es=[],iA,Ac=0;Ac<Or;)if(et.test(Cr[Ac])){var dh=Ac;for(++Ac;Ac<Or&&et.test(Cr[Ac]);++Ac);Es.push(new Ft(0,dh,Ac))}else{var Ua=Ac,EA=Es.length,pl=Ln=="rtl"?1:0;for(++Ac;Ac<Or&&Cr[Ac]!="L";++Ac);for(var dc=Ua;dc<Ac;)if(yt.test(Cr[dc])){Ua<dc&&(Es.splice(EA,0,new Ft(1,Ua,dc)),EA+=pl);var kd=dc;for(++dc;dc<Ac&&yt.test(Cr[dc]);++dc);Es.splice(EA,0,new Ft(2,kd,dc)),EA+=pl,Ua=dc}else++dc;Ua<Ac&&Es.splice(EA,0,new Ft(1,Ua,Ac))}return Ln=="ltr"&&(Es[0].level==1&&(iA=Nt.match(/^\s+/))&&(Es[0].from=iA[0].length,Es.unshift(new Ft(0,0,iA[0].length))),Pt(Es).level==1&&(iA=Nt.match(/\s+$/))&&(Pt(Es).to-=iA[0].length,Es.push(new Ft(0,Or-iA[0].length,Or)))),Ln=="rtl"?Es.reverse():Es}}();function xt(a,b){var ne=a.order;return ne==null&&(ne=a.order=Qt(a.text,b)),ne}var lt=[],Vt=function(a,b,ne){if(a.addEventListener)a.addEventListener(b,ne,!1);else if(a.attachEvent)a.attachEvent("on"+b,ne);else{var te=a._handlers||(a._handlers={});te[b]=(te[b]||lt).concat(ne)}};function Wt(a,b){return a._handlers&&a._handlers[b]||lt}function gn(a,b,ne){if(a.removeEventListener)a.removeEventListener(b,ne,!1);else if(a.detachEvent)a.detachEvent("on"+b,ne);else{var te=a._handlers,ue=te&&te[b];if(ue){var Ne=ut(ue,ne);Ne>-1&&(te[b]=ue.slice(0,Ne).concat(ue.slice(Ne+1)))}}}function an(a,b){var ne=Wt(a,b);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ue=0;ue<ne.length;++ue)ne[ue].apply(null,te)}function en(a,b,ne){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),an(a,ne||b.type,a,b),Wn(b)||b.codemirrorIgnore}function zn(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var ne=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),te=0;te<b.length;++te)ut(ne,b[te])==-1&&ne.push(b[te])}function Fn(a,b){return Wt(a,b).length>0}function Rt(a){a.prototype.on=function(b,ne){Vt(this,b,ne)},a.prototype.off=function(b,ne){gn(this,b,ne)}}function sn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function _n(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Wn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Lt(a){sn(a),_n(a)}function Gt(a){return a.target||a.srcElement}function nn(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),Ce&&a.ctrlKey&&b==1&&(b=3),b}var wn=function(){if(ze&&Ie<9)return!1;var a=pt("div");return"draggable"in a||"dragDrop"in a}(),Gn;function Er(a){if(Gn==null){var b=pt("span","\u200B");ot(a,pt("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Gn=b.offsetWidth<=1&&b.offsetHeight>2&&!(ze&&Ie<8))}var ne=Gn?pt("span","\u200B"):pt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var ti;function oi(a){if(ti!=null)return ti;var b=ot(a,document.createTextNode("A\u062EA")),ne=He(b,0,1).getBoundingClientRect(),te=He(b,1,2).getBoundingClientRect();return ct(a),!ne||ne.left==ne.right?!1:ti=te.right-ne.right<3}var Ar=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var b=0,ne=[],te=a.length;b<=te;){var ue=a.indexOf(`
|
|
|
`,b);ue==-1&&(ue=a.length);var Ne=a.slice(b,a.charAt(ue-1)=="\r"?ue-1:ue),et=Ne.indexOf("\r");et!=-1?(ne.push(Ne.slice(0,et)),b+=et+1):(ne.push(Ne),b=ue+1)}return ne}:function(a){return a.split(/\r\n?|\n/)},Ir=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(ne){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},jn=function(){var a=pt("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Hn=null;function Jn(a){if(Hn!=null)return Hn;var b=ot(a,pt("span","x")),ne=b.getBoundingClientRect(),te=He(b,0,1).getBoundingClientRect();return Hn=Math.abs(ne.left-te.left)>1}var lr={},$n={};function br(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),lr[a]=b}function Br(a,b){$n[a]=b}function _r(a){if(typeof a=="string"&&$n.hasOwnProperty(a))a=$n[a];else if(a&&typeof a.name=="string"&&$n.hasOwnProperty(a.name)){var b=$n[a.name];typeof b=="string"&&(b={name:b}),a=pe(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return _r("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return _r("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function mi(a,b){b=_r(b);var ne=lr[b.name];if(!ne)return mi(a,"text/plain");var te=ne(a,b);if(di.hasOwnProperty(b.name)){var ue=di[b.name];for(var Ne in ue)ue.hasOwnProperty(Ne)&&(te.hasOwnProperty(Ne)&&(te["_"+Ne]=te[Ne]),te[Ne]=ue[Ne])}if(te.name=b.name,b.helperType&&(te.helperType=b.helperType),b.modeProps)for(var et in b.modeProps)te[et]=b.modeProps[et];return te}var di={};function fi(a,b){var ne=di.hasOwnProperty(a)?di[a]:di[a]={};Et(b,ne)}function Ti(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var ne={};for(var te in b){var ue=b[te];ue instanceof Array&&(ue=ue.concat([])),ne[te]=ue}return ne}function xi(a,b){for(var ne;a.innerMode&&(ne=a.innerMode(b),!(!ne||ne.mode==a));)b=ne.state,a=ne.mode;return ne||{mode:a,state:b}}function io(a,b,ne){return a.startState?a.startState(b,ne):!0}var Xi=function(a,b,ne){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};Xi.prototype.eol=function(){return this.pos>=this.string.length},Xi.prototype.sol=function(){return this.pos==this.lineStart},Xi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xi.prototype.eat=function(a){var b=this.string.charAt(this.pos),ne;if(typeof a=="string"?ne=b==a:ne=b&&(a.test?a.test(b):a(b)),ne)return++this.pos,b},Xi.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},Xi.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Xi.prototype.skipToEnd=function(){this.pos=this.string.length},Xi.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},Xi.prototype.backUp=function(a){this.pos-=a},Xi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ze(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ze(this.string,this.lineStart,this.tabSize):0)},Xi.prototype.indentation=function(){return Ze(this.string,null,this.tabSize)-(this.lineStart?Ze(this.string,this.lineStart,this.tabSize):0)},Xi.prototype.match=function(a,b,ne){if(typeof a=="string"){var te=function(et){return ne?et.toLowerCase():et},ue=this.string.substr(this.pos,a.length);if(te(ue)==te(a))return b!==!1&&(this.pos+=a.length),!0}else{var Ne=this.string.slice(this.pos).match(a);return Ne&&Ne.index>0?null:(Ne&&b!==!1&&(this.pos+=Ne[0].length),Ne)}},Xi.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xi.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},Xi.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},Xi.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function ur(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var ne=a;!ne.lines;)for(var te=0;;++te){var ue=ne.children[te],Ne=ue.chunkSize();if(b<Ne){ne=ue;break}b-=Ne}return ne.lines[b]}function Tr(a,b,ne){var te=[],ue=b.line;return a.iter(b.line,ne.line+1,function(Ne){var et=Ne.text;ue==ne.line&&(et=et.slice(0,ne.ch)),ue==b.line&&(et=et.slice(b.ch)),te.push(et),++ue}),te}function gi(a,b,ne){var te=[];return a.iter(b,ne,function(ue){te.push(ue.text)}),te}function ni(a,b){var ne=b-a.height;if(ne)for(var te=a;te;te=te.parent)te.height+=ne}function gt(a){if(a.parent==null)return null;for(var b=a.parent,ne=ut(b.lines,a),te=b.parent;te;b=te,te=te.parent)for(var ue=0;te.children[ue]!=b;++ue)ne+=te.children[ue].chunkSize();return ne+b.first}function vn(a,b){var ne=a.first;e:do{for(var te=0;te<a.children.length;++te){var ue=a.children[te],Ne=ue.height;if(b<Ne){a=ue;continue e}b-=Ne,ne+=ue.chunkSize()}return ne}while(!a.lines);for(var et=0;et<a.lines.length;++et){var yt=a.lines[et],Ft=yt.height;if(b<Ft)break;b-=Ft}return ne+et}function Ut(a,b){return b>=a.first&&b<a.first+a.size}function dn(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function $t(a,b,ne){if(ne===void 0&&(ne=null),!(this instanceof $t))return new $t(a,b,ne);this.line=a,this.ch=b,this.sticky=ne}function hn(a,b){return a.line-b.line||a.ch-b.ch}function Nn(a,b){return a.sticky==b.sticky&&hn(a,b)==0}function Hr(a){return $t(a.line,a.ch)}function zr(a,b){return hn(a,b)<0?b:a}function Ai(a,b){return hn(a,b)<0?a:b}function hr(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function nr(a,b){if(b.line<a.first)return $t(a.first,0);var ne=a.first+a.size-1;return b.line>ne?$t(ne,ur(a,ne).text.length):ir(b,ur(a,b.line).text.length)}function ir(a,b){var ne=a.ch;return ne==null||ne>b?$t(a.line,b):ne<0?$t(a.line,0):a}function Yr(a,b){for(var ne=[],te=0;te<b.length;te++)ne[te]=nr(a,b[te]);return ne}var Mi=function(a,b){this.state=a,this.lookAhead=b},Yn=function(a,b,ne,te){this.state=b,this.doc=a,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};Yn.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Yn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(a,b,ne){return b instanceof Mi?new Yn(a,Ti(a.mode,b.state),ne,b.lookAhead):new Yn(a,Ti(a.mode,b),ne)},Yn.prototype.save=function(a){var b=a!==!1?Ti(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Mi(b,this.maxLookAhead):b};function Vn(a,b,ne,te){var ue=[a.state.modeGen],Ne={};qr(a,b.text,a.doc.mode,ne,function(Nt,Ln){return ue.push(Nt,Ln)},Ne,te);for(var et=ne.state,yt=function(Nt){ne.baseTokens=ue;var Ln=a.state.overlays[Nt],Qn=1,Or=0;ne.state=!0,qr(a,b.text,Ln.mode,ne,function(Cr,wi){for(var Ki=Qn;Or<Cr;){var Ao=ue[Qn];Ao>Cr&&ue.splice(Qn,1,Cr,ue[Qn+1],Ao),Qn+=2,Or=Math.min(Cr,Ao)}if(wi)if(Ln.opaque)ue.splice(Ki,Qn-Ki,Cr,"overlay "+wi),Qn=Ki+2;else for(;Ki<Qn;Ki+=2){var Io=ue[Ki+1];ue[Ki+1]=(Io?Io+" ":"")+"overlay "+wi}},Ne),ne.state=et,ne.baseTokens=null,ne.baseTokenPos=1},Ft=0;Ft<a.state.overlays.length;++Ft)yt(Ft);return{styles:ue,classes:Ne.bgClass||Ne.textClass?Ne:null}}function Mr(a,b,ne){if(!b.styles||b.styles[0]!=a.state.modeGen){var te=Tn(a,gt(b)),ue=b.text.length>a.options.maxHighlightLength&&Ti(a.doc.mode,te.state),Ne=Vn(a,b,te);ue&&(te.state=ue),b.stateAfter=te.save(!ue),b.styles=Ne.styles,Ne.classes?b.styleClasses=Ne.classes:b.styleClasses&&(b.styleClasses=null),ne===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function Tn(a,b,ne){var te=a.doc,ue=a.display;if(!te.mode.startState)return new Yn(te,!0,b);var Ne=Li(a,b,ne),et=Ne>te.first&&ur(te,Ne-1).stateAfter,yt=et?Yn.fromSaved(te,et,Ne):new Yn(te,io(te.mode),Ne);return te.iter(Ne,b,function(Ft){mn(a,Ft.text,yt);var Nt=yt.line;Ft.stateAfter=Nt==b-1||Nt%5==0||Nt>=ue.viewFrom&&Nt<ue.viewTo?yt.save():null,yt.nextLine()}),ne&&(te.modeFrontier=yt.line),yt}function mn(a,b,ne,te){var ue=a.doc.mode,Ne=new Xi(b,a.options.tabSize,ne);for(Ne.start=Ne.pos=te||0,b==""&&tr(ue,ne.state);!Ne.eol();)or(ue,Ne,ne.state),Ne.start=Ne.pos}function tr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var ne=xi(a,b);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function or(a,b,ne,te){for(var ue=0;ue<10;ue++){te&&(te[0]=xi(a,ne).mode);var Ne=a.token(b,ne);if(b.pos>b.start)return Ne}throw new Error("Mode "+a.name+" failed to advance stream.")}var ar=function(a,b,ne){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=ne};function kr(a,b,ne,te){var ue=a.doc,Ne=ue.mode,et;b=nr(ue,b);var yt=ur(ue,b.line),Ft=Tn(a,b.line,ne),Nt=new Xi(yt.text,a.options.tabSize,Ft),Ln;for(te&&(Ln=[]);(te||Nt.pos<b.ch)&&!Nt.eol();)Nt.start=Nt.pos,et=or(Ne,Nt,Ft.state),te&&Ln.push(new ar(Nt,et,Ti(ue.mode,Ft.state)));return te?Ln:new ar(Nt,et,Ft.state)}function vi(a,b){if(a)for(;;){var ne=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;a=a.slice(0,ne.index)+a.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";b[te]==null?b[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(b[te])||(b[te]+=" "+ne[2])}return a}function qr(a,b,ne,te,ue,Ne,et){var yt=ne.flattenSpans;yt==null&&(yt=a.options.flattenSpans);var Ft=0,Nt=null,Ln=new Xi(b,a.options.tabSize,te),Qn,Or=a.options.addModeClass&&[null];for(b==""&&vi(tr(ne,te.state),Ne);!Ln.eol();){if(Ln.pos>a.options.maxHighlightLength?(yt=!1,et&&mn(a,b,te,Ln.pos),Ln.pos=b.length,Qn=null):Qn=vi(or(ne,Ln,te.state,Or),Ne),Or){var Cr=Or[0].name;Cr&&(Qn="m-"+(Qn?Cr+" "+Qn:Cr))}if(!yt||Nt!=Qn){for(;Ft<Ln.start;)Ft=Math.min(Ln.start,Ft+5e3),ue(Ft,Nt);Nt=Qn}Ln.start=Ln.pos}for(;Ft<Ln.pos;){var wi=Math.min(Ln.pos,Ft+5e3);ue(wi,Nt),Ft=wi}}function Li(a,b,ne){for(var te,ue,Ne=a.doc,et=ne?-1:b-(a.doc.mode.innerMode?1e3:100),yt=b;yt>et;--yt){if(yt<=Ne.first)return Ne.first;var Ft=ur(Ne,yt-1),Nt=Ft.stateAfter;if(Nt&&(!ne||yt+(Nt instanceof Mi?Nt.lookAhead:0)<=Ne.modeFrontier))return yt;var Ln=Ze(Ft.text,null,a.options.tabSize);(ue==null||te>Ln)&&(ue=yt-1,te=Ln)}return ue}function _i(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var ne=a.first,te=b-1;te>ne;te--){var ue=ur(a,te).stateAfter;if(ue&&(!(ue instanceof Mi)||te+ue.lookAhead<b)){ne=te+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ne)}}var ri=!1,hi=!1;function ro(){ri=!0}function ki(){hi=!0}function bi(a,b,ne){this.marker=a,this.from=b,this.to=ne}function Ni(a,b){if(a)for(var ne=0;ne<a.length;++ne){var te=a[ne];if(te.marker==b)return te}}function oo(a,b){for(var ne,te=0;te<a.length;++te)a[te]!=b&&(ne||(ne=[])).push(a[te]);return ne}function Di(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function yo(a,b,ne){var te;if(a)for(var ue=0;ue<a.length;++ue){var Ne=a[ue],et=Ne.marker,yt=Ne.from==null||(et.inclusiveLeft?Ne.from<=b:Ne.from<b);if(yt||Ne.from==b&&et.type=="bookmark"&&(!ne||!Ne.marker.insertLeft)){var Ft=Ne.to==null||(et.inclusiveRight?Ne.to>=b:Ne.to>b);(te||(te=[])).push(new bi(et,Ne.from,Ft?null:Ne.to))}}return te}function Ji(a,b,ne){var te;if(a)for(var ue=0;ue<a.length;++ue){var Ne=a[ue],et=Ne.marker,yt=Ne.to==null||(et.inclusiveRight?Ne.to>=b:Ne.to>b);if(yt||Ne.from==b&&et.type=="bookmark"&&(!ne||Ne.marker.insertLeft)){var Ft=Ne.from==null||(et.inclusiveLeft?Ne.from<=b:Ne.from<b);(te||(te=[])).push(new bi(et,Ft?null:Ne.from-b,Ne.to==null?null:Ne.to-b))}}return te}function po(a,b){if(b.full)return null;var ne=Ut(a,b.from.line)&&ur(a,b.from.line).markedSpans,te=Ut(a,b.to.line)&&ur(a,b.to.line).markedSpans;if(!ne&&!te)return null;var ue=b.from.ch,Ne=b.to.ch,et=hn(b.from,b.to)==0,yt=yo(ne,ue,et),Ft=Ji(te,Ne,et),Nt=b.text.length==1,Ln=Pt(b.text).length+(Nt?ue:0);if(yt)for(var Qn=0;Qn<yt.length;++Qn){var Or=yt[Qn];if(Or.to==null){var Cr=Ni(Ft,Or.marker);Cr?Nt&&(Or.to=Cr.to==null?null:Cr.to+Ln):Or.to=ue}}if(Ft)for(var wi=0;wi<Ft.length;++wi){var Ki=Ft[wi];if(Ki.to!=null&&(Ki.to+=Ln),Ki.from==null){var Ao=Ni(yt,Ki.marker);Ao||(Ki.from=Ln,Nt&&(yt||(yt=[])).push(Ki))}else Ki.from+=Ln,Nt&&(yt||(yt=[])).push(Ki)}yt&&(yt=ho(yt)),Ft&&Ft!=yt&&(Ft=ho(Ft));var Io=[yt];if(!Nt){var Ko=b.text.length-2,Lo;if(Ko>0&&yt)for(var Aa=0;Aa<yt.length;++Aa)yt[Aa].to==null&&(Lo||(Lo=[])).push(new bi(yt[Aa].marker,null,null));for(var ka=0;ka<Ko;++ka)Io.push(Lo);Io.push(Ft)}return Io}function ho(a){for(var b=0;b<a.length;++b){var ne=a[b];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Jo(a,b,ne){var te=null;if(a.iter(b.line,ne.line+1,function(Cr){if(Cr.markedSpans)for(var wi=0;wi<Cr.markedSpans.length;++wi){var Ki=Cr.markedSpans[wi].marker;Ki.readOnly&&(!te||ut(te,Ki)==-1)&&(te||(te=[])).push(Ki)}}),!te)return null;for(var ue=[{from:b,to:ne}],Ne=0;Ne<te.length;++Ne)for(var et=te[Ne],yt=et.find(0),Ft=0;Ft<ue.length;++Ft){var Nt=ue[Ft];if(!(hn(Nt.to,yt.from)<0||hn(Nt.from,yt.to)>0)){var Ln=[Ft,1],Qn=hn(Nt.from,yt.from),Or=hn(Nt.to,yt.to);(Qn<0||!et.inclusiveLeft&&!Qn)&&Ln.push({from:Nt.from,to:yt.from}),(Or>0||!et.inclusiveRight&&!Or)&&Ln.push({from:yt.to,to:Nt.to}),ue.splice.apply(ue,Ln),Ft+=Ln.length-3}}return ue}function xo(a){var b=a.markedSpans;if(b){for(var ne=0;ne<b.length;++ne)b[ne].marker.detachLine(a);a.markedSpans=null}}function no(a,b){if(b){for(var ne=0;ne<b.length;++ne)b[ne].marker.attachLine(a);a.markedSpans=b}}function Do(a){return a.inclusiveLeft?-1:0}function Zo(a){return a.inclusiveRight?1:0}function jo(a,b){var ne=a.lines.length-b.lines.length;if(ne!=0)return ne;var te=a.find(),ue=b.find(),Ne=hn(te.from,ue.from)||Do(a)-Do(b);if(Ne)return-Ne;var et=hn(te.to,ue.to)||Zo(a)-Zo(b);return et||b.id-a.id}function Cn(a,b){var ne=hi&&a.markedSpans,te;if(ne)for(var ue=void 0,Ne=0;Ne<ne.length;++Ne)ue=ne[Ne],ue.marker.collapsed&&(b?ue.from:ue.to)==null&&(!te||jo(te,ue.marker)<0)&&(te=ue.marker);return te}function Vi(a){return Cn(a,!0)}function Ur(a){return Cn(a,!1)}function Vr(a,b){var ne=hi&&a.markedSpans,te;if(ne)for(var ue=0;ue<ne.length;++ue){var Ne=ne[ue];Ne.marker.collapsed&&(Ne.from==null||Ne.from<b)&&(Ne.to==null||Ne.to>b)&&(!te||jo(te,Ne.marker)<0)&&(te=Ne.marker)}return te}function ci(a,b,ne,te,ue){var Ne=ur(a,b),et=hi&&Ne.markedSpans;if(et)for(var yt=0;yt<et.length;++yt){var Ft=et[yt];if(Ft.marker.collapsed){var Nt=Ft.marker.find(0),Ln=hn(Nt.from,ne)||Do(Ft.marker)-Do(ue),Qn=hn(Nt.to,te)||Zo(Ft.marker)-Zo(ue);if(!(Ln>=0&&Qn<=0||Ln<=0&&Qn>=0)&&(Ln<=0&&(Ft.marker.inclusiveRight&&ue.inclusiveLeft?hn(Nt.to,ne)>=0:hn(Nt.to,ne)>0)||Ln>=0&&(Ft.marker.inclusiveRight&&ue.inclusiveLeft?hn(Nt.from,te)<=0:hn(Nt.from,te)<0)))return!0}}}function Zr(a){for(var b;b=Vi(a);)a=b.find(-1,!0).line;return a}function Qi(a){for(var b;b=Ur(a);)a=b.find(1,!0).line;return a}function eo(a){for(var b,ne;b=Ur(a);)a=b.find(1,!0).line,(ne||(ne=[])).push(a);return ne}function Rr(a,b){var ne=ur(a,b),te=Zr(ne);return ne==te?b:gt(te)}function ai(a,b){if(b>a.lastLine())return b;var ne=ur(a,b),te;if(!Fi(a,ne))return b;for(;te=Ur(ne);)ne=te.find(1,!0).line;return gt(ne)+1}function Fi(a,b){var ne=hi&&b.markedSpans;if(ne){for(var te=void 0,ue=0;ue<ne.length;++ue)if(te=ne[ue],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&Ri(a,b,te))return!0}}}function Ri(a,b,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return Ri(a,te.line,Ni(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==b.text.length)return!0;for(var ue=void 0,Ne=0;Ne<b.markedSpans.length;++Ne)if(ue=b.markedSpans[Ne],ue.marker.collapsed&&!ue.marker.widgetNode&&ue.from==ne.to&&(ue.to==null||ue.to!=ne.from)&&(ue.marker.inclusiveLeft||ne.marker.inclusiveRight)&&Ri(a,b,ue))return!0}function Mo(a){a=Zr(a);for(var b=0,ne=a.parent,te=0;te<ne.lines.length;++te){var ue=ne.lines[te];if(ue==a)break;b+=ue.height}for(var Ne=ne.parent;Ne;ne=Ne,Ne=ne.parent)for(var et=0;et<Ne.children.length;++et){var yt=Ne.children[et];if(yt==ne)break;b+=yt.height}return b}function ui(a){if(a.height==0)return 0;for(var b=a.text.length,ne,te=a;ne=Vi(te);){var ue=ne.find(0,!0);te=ue.from.line,b+=ue.from.ch-ue.to.ch}for(te=a;ne=Ur(te);){var Ne=ne.find(0,!0);b-=te.text.length-Ne.from.ch,te=Ne.to.line,b+=te.text.length-Ne.to.ch}return b}function Zi(a){var b=a.display,ne=a.doc;b.maxLine=ur(ne,ne.first),b.maxLineLength=ui(b.maxLine),b.maxLineChanged=!0,ne.iter(function(te){var ue=ui(te);ue>b.maxLineLength&&(b.maxLineLength=ue,b.maxLine=te)})}var Wo=function(a,b,ne){this.text=a,no(this,b),this.height=ne?ne(this):1};Wo.prototype.lineNo=function(){return gt(this)},Rt(Wo);function Xo(a,b,ne,te){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),xo(a),no(a,ne);var ue=te?te(a):1;ue!=a.height&&ni(a,ue)}function ra(a){a.parent=null,xo(a)}var Qo={},qo={};function Yo(a,b){if(!a||/^\s*$/.test(a))return null;var ne=b.addModeClass?qo:Qo;return ne[a]||(ne[a]=a.replace(/\S+/g,"cm-$&"))}function Ba(a,b){var ne=Ct("span",null,null,Ue?"padding-right: .1px":null),te={pre:Ct("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var ue=0;ue<=(b.rest?b.rest.length:0);ue++){var Ne=ue?b.rest[ue-1]:b.line,et=void 0;te.pos=0,te.addToken=Ma,oi(a.display.measure)&&(et=xt(Ne,a.doc.direction))&&(te.addToken=$a(te.addToken,et)),te.map=[];var yt=b!=a.display.externalMeasured&>(Ne);Fo(Ne,te,Mr(a,Ne,yt)),Ne.styleClasses&&(Ne.styleClasses.bgClass&&(te.bgClass=Ot(Ne.styleClasses.bgClass,te.bgClass||"")),Ne.styleClasses.textClass&&(te.textClass=Ot(Ne.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Er(a.display.measure))),ue==0?(b.measure.map=te.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(te.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(Ue){var Ft=te.content.lastChild;(/\bcm-tab\b/.test(Ft.className)||Ft.querySelector&&Ft.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return an(a,"renderLine",a,b.line,te.pre),te.pre.className&&(te.textClass=Ot(te.pre.className,te.textClass||"")),te}function ls(a){var b=pt("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Ma(a,b,ne,te,ue,Ne,et){if(b){var yt=a.splitSpaces?Na(b,a.trailingSpace):b,Ft=a.cm.state.specialChars,Nt=!1,Ln;if(!Ft.test(b))a.col+=b.length,Ln=document.createTextNode(yt),a.map.push(a.pos,a.pos+b.length,Ln),ze&&Ie<9&&(Nt=!0),a.pos+=b.length;else{Ln=document.createDocumentFragment();for(var Qn=0;;){Ft.lastIndex=Qn;var Or=Ft.exec(b),Cr=Or?Or.index-Qn:b.length-Qn;if(Cr){var wi=document.createTextNode(yt.slice(Qn,Qn+Cr));ze&&Ie<9?Ln.appendChild(pt("span",[wi])):Ln.appendChild(wi),a.map.push(a.pos,a.pos+Cr,wi),a.col+=Cr,a.pos+=Cr}if(!Or)break;Qn+=Cr+1;var Ki=void 0;if(Or[0]==" "){var Ao=a.cm.options.tabSize,Io=Ao-a.col%Ao;Ki=Ln.appendChild(pt("span",pn(Io),"cm-tab")),Ki.setAttribute("role","presentation"),Ki.setAttribute("cm-text"," "),a.col+=Io}else Or[0]=="\r"||Or[0]==`
|
|
|
`?(Ki=Ln.appendChild(pt("span",Or[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ki.setAttribute("cm-text",Or[0]),a.col+=1):(Ki=a.cm.options.specialCharPlaceholder(Or[0]),Ki.setAttribute("cm-text",Or[0]),ze&&Ie<9?Ln.appendChild(pt("span",[Ki])):Ln.appendChild(Ki),a.col+=1);a.map.push(a.pos,a.pos+1,Ki),a.pos++}}if(a.trailingSpace=yt.charCodeAt(b.length-1)==32,ne||te||ue||Nt||Ne||et){var Ko=ne||"";te&&(Ko+=te),ue&&(Ko+=ue);var Lo=pt("span",[Ln],Ko,Ne);if(et)for(var Aa in et)et.hasOwnProperty(Aa)&&Aa!="style"&&Aa!="class"&&Lo.setAttribute(Aa,et[Aa]);return a.content.appendChild(Lo)}a.content.appendChild(Ln)}}function Na(a,b){if(a.length>1&&!/ /.test(a))return a;for(var ne=b,te="",ue=0;ue<a.length;ue++){var Ne=a.charAt(ue);Ne==" "&&ne&&(ue==a.length-1||a.charCodeAt(ue+1)==32)&&(Ne="\xA0"),te+=Ne,ne=Ne==" "}return te}function $a(a,b){return function(ne,te,ue,Ne,et,yt,Ft){ue=ue?ue+" cm-force-border":"cm-force-border";for(var Nt=ne.pos,Ln=Nt+te.length;;){for(var Qn=void 0,Or=0;Or<b.length&&(Qn=b[Or],!(Qn.to>Nt&&Qn.from<=Nt));Or++);if(Qn.to>=Ln)return a(ne,te,ue,Ne,et,yt,Ft);a(ne,te.slice(0,Qn.to-Nt),ue,Ne,null,yt,Ft),Ne=null,te=te.slice(Qn.to-Nt),Nt=Qn.to}}}function _o(a,b,ne,te){var ue=!te&&ne.widgetNode;ue&&a.map.push(a.pos,a.pos+b,ue),!te&&a.cm.display.input.needsContentAttribute&&(ue||(ue=a.content.appendChild(document.createElement("span"))),ue.setAttribute("cm-marker",ne.id)),ue&&(a.cm.display.input.setUneditable(ue),a.content.appendChild(ue)),a.pos+=b,a.trailingSpace=!1}function Fo(a,b,ne){var te=a.markedSpans,ue=a.text,Ne=0;if(!te){for(var et=1;et<ne.length;et+=2)b.addToken(b,ue.slice(Ne,Ne=ne[et]),Yo(ne[et+1],b.cm.options));return}for(var yt=ue.length,Ft=0,Nt=1,Ln="",Qn,Or,Cr=0,wi,Ki,Ao,Io,Ko;;){if(Cr==Ft){wi=Ki=Ao=Or="",Ko=null,Io=null,Cr=1/0;for(var Lo=[],Aa=void 0,ka=0;ka<te.length;++ka){var Ca=te[ka],Ha=Ca.marker;if(Ha.type=="bookmark"&&Ca.from==Ft&&Ha.widgetNode)Lo.push(Ha);else if(Ca.from<=Ft&&(Ca.to==null||Ca.to>Ft||Ha.collapsed&&Ca.to==Ft&&Ca.from==Ft)){if(Ca.to!=null&&Ca.to!=Ft&&Cr>Ca.to&&(Cr=Ca.to,Ki=""),Ha.className&&(wi+=" "+Ha.className),Ha.css&&(Or=(Or?Or+";":"")+Ha.css),Ha.startStyle&&Ca.from==Ft&&(Ao+=" "+Ha.startStyle),Ha.endStyle&&Ca.to==Cr&&(Aa||(Aa=[])).push(Ha.endStyle,Ca.to),Ha.title&&((Ko||(Ko={})).title=Ha.title),Ha.attributes)for(var Ll in Ha.attributes)(Ko||(Ko={}))[Ll]=Ha.attributes[Ll];Ha.collapsed&&(!Io||jo(Io.marker,Ha)<0)&&(Io=Ca)}else Ca.from>Ft&&Cr>Ca.from&&(Cr=Ca.from)}if(Aa)for(var $u=0;$u<Aa.length;$u+=2)Aa[$u+1]==Cr&&(Ki+=" "+Aa[$u]);if(!Io||Io.from==Ft)for(var tu=0;tu<Lo.length;++tu)_o(b,0,Lo[tu]);if(Io&&(Io.from||0)==Ft){if(_o(b,(Io.to==null?yt+1:Io.to)-Ft,Io.marker,Io.from==null),Io.to==null)return;Io.to==Ft&&(Io=!1)}}if(Ft>=yt)break;for(var bc=Math.min(yt,Cr);;){if(Ln){var ec=Ft+Ln.length;if(!Io){var Uu=ec>bc?Ln.slice(0,bc-Ft):Ln;b.addToken(b,Uu,Qn?Qn+wi:wi,Ao,Ft+Uu.length==Cr?Ki:"",Or,Ko)}if(ec>=bc){Ln=Ln.slice(bc-Ft),Ft=bc;break}Ft=ec,Ao=""}Ln=ue.slice(Ne,Ne=ne[Nt++]),Qn=Yo(ne[Nt++],b.cm.options)}}}function Ea(a,b,ne){this.line=b,this.rest=eo(b),this.size=this.rest?gt(Pt(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Fi(a,b)}function us(a,b,ne){for(var te=[],ue,Ne=b;Ne<ne;Ne=ue){var et=new Ea(a.doc,ur(a.doc,Ne),Ne);ue=Ne+et.size,te.push(et)}return te}var sl=null;function qs(a){sl?sl.ops.push(a):a.ownsGroup=sl={ops:[a],delayedCallbacks:[]}}function ll(a){var b=a.delayedCallbacks,ne=0;do{for(;ne<b.length;ne++)b[ne].call(null);for(var te=0;te<a.ops.length;te++){var ue=a.ops[te];if(ue.cursorActivityHandlers)for(;ue.cursorActivityCalled<ue.cursorActivityHandlers.length;)ue.cursorActivityHandlers[ue.cursorActivityCalled++].call(null,ue.cm)}}while(ne<b.length)}function su(a,b){var ne=a.ownsGroup;if(ne)try{ll(ne)}finally{sl=null,b(ne)}}var Bl=null;function el(a,b){var ne=Wt(a,b);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ue;sl?ue=sl.delayedCallbacks:Bl?ue=Bl:(ue=Bl=[],setTimeout(Wl,0));for(var Ne=function(yt){ue.push(function(){return ne[yt].apply(null,te)})},et=0;et<ne.length;++et)Ne(et)}}function Wl(){var a=Bl;Bl=null;for(var b=0;b<a.length;++b)a[b]()}function xu(a,b,ne,te){for(var ue=0;ue<b.changes.length;ue++){var Ne=b.changes[ue];Ne=="text"?gc(a,b):Ne=="gutter"?La(a,b,ne,te):Ne=="class"?ga(a,b):Ne=="widget"&&ha(a,b,te)}b.changes=null}function Nu(a){return a.node==a.text&&(a.node=pt("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ze&&Ie<8&&(a.node.style.zIndex=2)),a.node}function Gs(a,b){var ne=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),b.background)ne?b.background.className=ne:(b.background.parentNode.removeChild(b.background),b.background=null);else if(ne){var te=Nu(b);b.background=te.insertBefore(pt("div",null,ne),te.firstChild),a.display.input.setUneditable(b.background)}}function mc(a,b){var ne=a.display.externalMeasured;return ne&&ne.line==b.line?(a.display.externalMeasured=null,b.measure=ne.measure,ne.built):Ba(a,b)}function gc(a,b){var ne=b.text.className,te=mc(a,b);b.text==b.node&&(b.node=te.pre),b.text.parentNode.replaceChild(te.pre,b.text),b.text=te.pre,te.bgClass!=b.bgClass||te.textClass!=b.textClass?(b.bgClass=te.bgClass,b.textClass=te.textClass,ga(a,b)):ne&&(b.text.className=ne)}function ga(a,b){Gs(a,b),b.line.wrapClass?Nu(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var ne=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=ne||""}function La(a,b,ne,te){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var ue=Nu(b);b.gutterBackground=pt("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ue.insertBefore(b.gutterBackground,b.text)}var Ne=b.line.gutterMarkers;if(a.options.lineNumbers||Ne){var et=Nu(b),yt=b.gutter=pt("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(a.display.input.setUneditable(yt),et.insertBefore(yt,b.text),b.line.gutterClass&&(yt.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!Ne||!Ne["CodeMirror-linenumbers"])&&(b.lineNumber=yt.appendChild(pt("div",dn(a.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Ne)for(var Ft=0;Ft<a.display.gutterSpecs.length;++Ft){var Nt=a.display.gutterSpecs[Ft].className,Ln=Ne.hasOwnProperty(Nt)&&Ne[Nt];Ln&&yt.appendChild(pt("div",[Ln],"CodeMirror-gutter-elt","left: "+te.gutterLeft[Nt]+"px; width: "+te.gutterWidth[Nt]+"px"))}}}function ha(a,b,ne){b.alignable&&(b.alignable=null);for(var te=Je("CodeMirror-linewidget"),ue=b.node.firstChild,Ne=void 0;ue;ue=Ne)Ne=ue.nextSibling,te.test(ue.className)&&b.node.removeChild(ue);ts(a,b,ne)}function va(a,b,ne,te){var ue=mc(a,b);return b.text=b.node=ue.pre,ue.bgClass&&(b.bgClass=ue.bgClass),ue.textClass&&(b.textClass=ue.textClass),ga(a,b),La(a,b,ne,te),ts(a,b,te),b.node}function ts(a,b,ne){if(Ya(a,b.line,b,ne,!0),b.rest)for(var te=0;te<b.rest.length;te++)Ya(a,b.rest[te],b,ne,!1)}function Ya(a,b,ne,te,ue){if(b.widgets)for(var Ne=Nu(ne),et=0,yt=b.widgets;et<yt.length;++et){var Ft=yt[et],Nt=pt("div",[Ft.node],"CodeMirror-linewidget"+(Ft.className?" "+Ft.className:""));Ft.handleMouseEvents||Nt.setAttribute("cm-ignore-events","true"),Ga(Ft,Nt,ne,te),a.display.input.setUneditable(Nt),ue&&Ft.above?Ne.insertBefore(Nt,ne.gutter||ne.text):Ne.appendChild(Nt),el(Ft,"redraw")}}function Ga(a,b,ne,te){if(a.noHScroll){(ne.alignable||(ne.alignable=[])).push(b);var ue=te.wrapperWidth;b.style.left=te.fixedPos+"px",a.coverGutter||(ue-=te.gutterTotalWidth,b.style.paddingLeft=te.gutterTotalWidth+"px"),b.style.width=ue+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-te.gutterTotalWidth+"px"))}function Gl(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!ht(document.body,a.node)){var ne="position: relative;";a.coverGutter&&(ne+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(ne+="width: "+b.display.wrapper.clientWidth+"px;"),ot(b.display.measure,pt("div",[a.node],null,ne))}return a.height=a.node.parentNode.offsetHeight}function lu(a,b){for(var ne=Gt(b);ne!=a.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==a.sizer&&ne!=a.mover)return!0}function Tl(a){return a.lineSpace.offsetTop}function Ou(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Hi(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=ot(a.measure,pt("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(a.cachedPaddingH=te),te}function ia(a){return Zt-a.display.nativeBarWidth}function Ta(a){return a.display.scroller.clientWidth-ia(a)-a.display.barWidth}function ks(a){return a.display.scroller.clientHeight-ia(a)-a.display.barHeight}function pu(a,b,ne){var te=a.options.lineWrapping,ue=te&&Ta(a);if(!b.measure.heights||te&&b.measure.width!=ue){var Ne=b.measure.heights=[];if(te){b.measure.width=ue;for(var et=b.text.firstChild.getClientRects(),yt=0;yt<et.length-1;yt++){var Ft=et[yt],Nt=et[yt+1];Math.abs(Ft.bottom-Nt.bottom)>2&&Ne.push((Ft.bottom+Nt.top)/2-ne.top)}}Ne.push(ne.bottom-ne.top)}}function Hs(a,b,ne){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var te=0;te<a.rest.length;te++)if(a.rest[te]==b)return{map:a.measure.maps[te],cache:a.measure.caches[te]};for(var ue=0;ue<a.rest.length;ue++)if(gt(a.rest[ue])>ne)return{map:a.measure.maps[ue],cache:a.measure.caches[ue],before:!0}}function Kc(a,b){b=Zr(b);var ne=gt(b),te=a.display.externalMeasured=new Ea(a.doc,b,ne);te.lineN=ne;var ue=te.built=Ba(a,te);return te.text=ue.pre,ot(a.display.lineMeasure,ue.pre),te}function Vu(a,b,ne,te){return Bu(a,vs(a,b),ne,te)}function rc(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[fA(a,b)];var ne=a.display.externalMeasured;if(ne&&b>=ne.lineN&&b<ne.lineN+ne.size)return ne}function vs(a,b){var ne=gt(b),te=rc(a,ne);te&&!te.text?te=null:te&&te.changes&&(xu(a,te,ne,nA(a)),a.curOp.forceUpdate=!0),te||(te=Kc(a,b));var ue=Hs(te,b,ne);return{line:b,view:te,rect:null,map:ue.map,cache:ue.cache,before:ue.before,hasHeights:!1}}function Bu(a,b,ne,te,ue){b.before&&(ne=-1);var Ne=ne+(te||""),et;return b.cache.hasOwnProperty(Ne)?et=b.cache[Ne]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(pu(a,b.view,b.rect),b.hasHeights=!0),et=kl(a,b,ne,te),et.bogus||(b.cache[Ne]=et)),{left:et.left,right:et.right,top:ue?et.rtop:et.top,bottom:ue?et.rbottom:et.bottom}}var Ms={left:0,right:0,top:0,bottom:0};function _A(a,b,ne){for(var te,ue,Ne,et,yt,Ft,Nt=0;Nt<a.length;Nt+=3)if(yt=a[Nt],Ft=a[Nt+1],b<yt?(ue=0,Ne=1,et="left"):b<Ft?(ue=b-yt,Ne=ue+1):(Nt==a.length-3||b==Ft&&a[Nt+3]>b)&&(Ne=Ft-yt,ue=Ne-1,b>=Ft&&(et="right")),ue!=null){if(te=a[Nt+2],yt==Ft&&ne==(te.insertLeft?"left":"right")&&(et=ne),ne=="left"&&ue==0)for(;Nt&&a[Nt-2]==a[Nt-3]&&a[Nt-1].insertLeft;)te=a[(Nt-=3)+2],et="left";if(ne=="right"&&ue==Ft-yt)for(;Nt<a.length-3&&a[Nt+3]==a[Nt+4]&&!a[Nt+5].insertLeft;)te=a[(Nt+=3)+2],et="right";break}return{node:te,start:ue,end:Ne,collapse:et,coverStart:yt,coverEnd:Ft}}function El(a,b){var ne=Ms;if(b=="left")for(var te=0;te<a.length&&(ne=a[te]).left==ne.right;te++);else for(var ue=a.length-1;ue>=0&&(ne=a[ue]).left==ne.right;ue--);return ne}function kl(a,b,ne,te){var ue=_A(b.map,ne,te),Ne=ue.node,et=ue.start,yt=ue.end,Ft=ue.collapse,Nt;if(Ne.nodeType==3){for(var Ln=0;Ln<4;Ln++){for(;et&&We(b.line.text.charAt(ue.coverStart+et));)--et;for(;ue.coverStart+yt<ue.coverEnd&&We(b.line.text.charAt(ue.coverStart+yt));)++yt;if(ze&&Ie<9&&et==0&&yt==ue.coverEnd-ue.coverStart?Nt=Ne.parentNode.getBoundingClientRect():Nt=El(He(Ne,et,yt).getClientRects(),te),Nt.left||Nt.right||et==0)break;yt=et,et=et-1,Ft="right"}ze&&Ie<11&&(Nt=Vl(a.display.measure,Nt))}else{et>0&&(Ft=te="right");var Qn;a.options.lineWrapping&&(Qn=Ne.getClientRects()).length>1?Nt=Qn[te=="right"?Qn.length-1:0]:Nt=Ne.getBoundingClientRect()}if(ze&&Ie<9&&!et&&(!Nt||!Nt.left&&!Nt.right)){var Or=Ne.parentNode.getClientRects()[0];Or?Nt={left:Or.left,right:Or.left+tA(a.display),top:Or.top,bottom:Or.bottom}:Nt=Ms}for(var Cr=Nt.top-b.rect.top,wi=Nt.bottom-b.rect.top,Ki=(Cr+wi)/2,Ao=b.view.measure.heights,Io=0;Io<Ao.length-1&&!(Ki<Ao[Io]);Io++);var Ko=Io?Ao[Io-1]:0,Lo=Ao[Io],Aa={left:(Ft=="right"?Nt.right:Nt.left)-b.rect.left,right:(Ft=="left"?Nt.left:Nt.right)-b.rect.left,top:Ko,bottom:Lo};return!Nt.left&&!Nt.right&&(Aa.bogus=!0),a.options.singleCursorHeightPerLine||(Aa.rtop=Cr,Aa.rbottom=wi),Aa}function Vl(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Jn(a))return b;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*ne,right:b.right*ne,top:b.top*te,bottom:b.bottom*te}}function NA(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function vl(a){a.display.externalMeasure=null,ct(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)NA(a.display.view[b])}function mu(a){vl(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function jl(){return xe&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Us(){return xe&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function tl(a){var b=0;if(a.widgets)for(var ne=0;ne<a.widgets.length;++ne)a.widgets[ne].above&&(b+=Gl(a.widgets[ne]));return b}function KA(a,b,ne,te,ue){if(!ue){var Ne=tl(b);ne.top+=Ne,ne.bottom+=Ne}if(te=="line")return ne;te||(te="local");var et=Mo(b);if(te=="local"?et+=Tl(a.display):et-=a.display.viewOffset,te=="page"||te=="window"){var yt=a.display.lineSpace.getBoundingClientRect();et+=yt.top+(te=="window"?0:Us());var Ft=yt.left+(te=="window"?0:jl());ne.left+=Ft,ne.right+=Ft}return ne.top+=et,ne.bottom+=et,ne}function $A(a,b,ne){if(ne=="div")return b;var te=b.left,ue=b.top;if(ne=="page")te-=jl(),ue-=Us();else if(ne=="local"||!ne){var Ne=a.display.sizer.getBoundingClientRect();te+=Ne.left,ue+=Ne.top}var et=a.display.lineSpace.getBoundingClientRect();return{left:te-et.left,top:ue-et.top}}function Xl(a,b,ne,te,ue){return te||(te=ur(a.doc,b.line)),KA(a,te,Vu(a,te,b.ch,ue),ne)}function Eu(a,b,ne,te,ue,Ne){te=te||ur(a.doc,b.line),ue||(ue=vs(a,te));function et(wi,Ki){var Ao=Bu(a,ue,wi,Ki?"right":"left",Ne);return Ki?Ao.left=Ao.right:Ao.right=Ao.left,KA(a,te,Ao,ne)}var yt=xt(te,a.doc.direction),Ft=b.ch,Nt=b.sticky;if(Ft>=te.text.length?(Ft=te.text.length,Nt="before"):Ft<=0&&(Ft=0,Nt="after"),!yt)return et(Nt=="before"?Ft-1:Ft,Nt=="before");function Ln(wi,Ki,Ao){var Io=yt[Ki],Ko=Io.level==1;return et(Ao?wi-1:wi,Ko!=Ao)}var Qn=_t(yt,Ft,Nt),Or=St,Cr=Ln(Ft,Qn,Nt=="before");return Or!=null&&(Cr.other=Ln(Ft,Or,Nt!="before")),Cr}function Sa(a,b){var ne=0;b=nr(a.doc,b),a.options.lineWrapping||(ne=tA(a.display)*b.ch);var te=ur(a.doc,b.line),ue=Mo(te)+Tl(a.display);return{left:ne,right:ne,top:ue,bottom:ue+te.height}}function Qa(a,b,ne,te,ue){var Ne=$t(a,b,ne);return Ne.xRel=ue,te&&(Ne.outside=te),Ne}function Rs(a,b,ne){var te=a.doc;if(ne+=a.display.viewOffset,ne<0)return Qa(te.first,0,null,-1,-1);var ue=vn(te,ne),Ne=te.first+te.size-1;if(ue>Ne)return Qa(te.first+te.size-1,ur(te,Ne).text.length,null,1,1);b<0&&(b=0);for(var et=ur(te,ue);;){var yt=$c(a,et,ue,b,ne),Ft=Vr(et,yt.ch+(yt.xRel>0||yt.outside>0?1:0));if(!Ft)return yt;var Nt=Ft.find(1);if(Nt.line==ue)return Nt;et=ur(te,ue=Nt.line)}}function ic(a,b,ne,te){te-=tl(b);var ue=b.text.length,Ne=mt(function(et){return Bu(a,ne,et-1).bottom<=te},ue,0);return ue=mt(function(et){return Bu(a,ne,et).top>te},Ne,ue),{begin:Ne,end:ue}}function Yl(a,b,ne,te){ne||(ne=vs(a,b));var ue=KA(a,b,Bu(a,ne,te),"line").top;return ic(a,b,ne,ue)}function du(a,b,ne,te){return a.bottom<=ne?!1:a.top>ne?!0:(te?a.left:a.right)>b}function $c(a,b,ne,te,ue){ue-=Mo(b);var Ne=vs(a,b),et=tl(b),yt=0,Ft=b.text.length,Nt=!0,Ln=xt(b,a.doc.direction);if(Ln){var Qn=(a.options.lineWrapping?dA:vc)(a,b,ne,Ne,Ln,te,ue);Nt=Qn.level!=1,yt=Nt?Qn.from:Qn.to-1,Ft=Nt?Qn.to:Qn.from-1}var Or=null,Cr=null,wi=mt(function(ka){var Ca=Bu(a,Ne,ka);return Ca.top+=et,Ca.bottom+=et,du(Ca,te,ue,!1)?(Ca.top<=ue&&Ca.left<=te&&(Or=ka,Cr=Ca),!0):!1},yt,Ft),Ki,Ao,Io=!1;if(Cr){var Ko=te-Cr.left<Cr.right-te,Lo=Ko==Nt;wi=Or+(Lo?0:1),Ao=Lo?"after":"before",Ki=Ko?Cr.left:Cr.right}else{!Nt&&(wi==Ft||wi==yt)&&wi++,Ao=wi==0?"after":wi==b.text.length?"before":Bu(a,Ne,wi-(Nt?1:0)).bottom+et<=ue==Nt?"after":"before";var Aa=Eu(a,$t(ne,wi,Ao),"line",b,Ne);Ki=Aa.left,Io=ue<Aa.top?-1:ue>=Aa.bottom?1:0}return wi=st(b.text,wi,1),Qa(ne,wi,Ao,Io,te-Ki)}function vc(a,b,ne,te,ue,Ne,et){var yt=mt(function(Qn){var Or=ue[Qn],Cr=Or.level!=1;return du(Eu(a,$t(ne,Cr?Or.to:Or.from,Cr?"before":"after"),"line",b,te),Ne,et,!0)},0,ue.length-1),Ft=ue[yt];if(yt>0){var Nt=Ft.level!=1,Ln=Eu(a,$t(ne,Nt?Ft.from:Ft.to,Nt?"after":"before"),"line",b,te);du(Ln,Ne,et,!0)&&Ln.top>et&&(Ft=ue[yt-1])}return Ft}function dA(a,b,ne,te,ue,Ne,et){var yt=ic(a,b,te,et),Ft=yt.begin,Nt=yt.end;/\s/.test(b.text.charAt(Nt-1))&&Nt--;for(var Ln=null,Qn=null,Or=0;Or<ue.length;Or++){var Cr=ue[Or];if(!(Cr.from>=Nt||Cr.to<=Ft)){var wi=Cr.level!=1,Ki=Bu(a,te,wi?Math.min(Nt,Cr.to)-1:Math.max(Ft,Cr.from)).right,Ao=Ki<Ne?Ne-Ki+1e9:Ki-Ne;(!Ln||Qn>Ao)&&(Ln=Cr,Qn=Ao)}}return Ln||(Ln=ue[ue.length-1]),Ln.from<Ft&&(Ln={from:Ft,to:Ln.to,level:Ln.level}),Ln.to>Nt&&(Ln={from:Ln.from,to:Nt,level:Ln.level}),Ln}var Jl;function yc(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Jl==null){Jl=pt("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)Jl.appendChild(document.createTextNode("x")),Jl.appendChild(pt("br"));Jl.appendChild(document.createTextNode("x"))}ot(a.measure,Jl);var ne=Jl.offsetHeight/50;return ne>3&&(a.cachedTextHeight=ne),ct(a.measure),ne||1}function tA(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=pt("span","xxxxxxxxxx"),ne=pt("pre",[b],"CodeMirror-line-like");ot(a.measure,ne);var te=b.getBoundingClientRect(),ue=(te.right-te.left)/10;return ue>2&&(a.cachedCharWidth=ue),ue||10}function nA(a){for(var b=a.display,ne={},te={},ue=b.gutters.clientLeft,Ne=b.gutters.firstChild,et=0;Ne;Ne=Ne.nextSibling,++et){var yt=a.display.gutterSpecs[et].className;ne[yt]=Ne.offsetLeft+Ne.clientLeft+ue,te[yt]=Ne.clientWidth}return{fixedPos:Ed(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:b.wrapper.clientWidth}}function Ed(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Jf(a){var b=yc(a.display),ne=a.options.lineWrapping,te=ne&&Math.max(5,a.display.scroller.clientWidth/tA(a.display)-3);return function(ue){if(Fi(a.doc,ue))return 0;var Ne=0;if(ue.widgets)for(var et=0;et<ue.widgets.length;et++)ue.widgets[et].height&&(Ne+=ue.widgets[et].height);return ne?Ne+(Math.ceil(ue.text.length/te)||1)*b:Ne+b}}function nd(a){var b=a.doc,ne=Jf(a);b.iter(function(te){var ue=ne(te);ue!=te.height&&ni(te,ue)})}function OA(a,b,ne,te){var ue=a.display;if(!ne&&Gt(b).getAttribute("cm-not-content")=="true")return null;var Ne,et,yt=ue.lineSpace.getBoundingClientRect();try{Ne=b.clientX-yt.left,et=b.clientY-yt.top}catch(Qn){return null}var Ft=Rs(a,Ne,et),Nt;if(te&&Ft.xRel>0&&(Nt=ur(a.doc,Ft.line).text).length==Ft.ch){var Ln=Ze(Nt,Nt.length,a.options.tabSize)-Nt.length;Ft=$t(Ft.line,Math.max(0,Math.round((Ne-Hi(a.display).left)/tA(a.display))-Ln))}return Ft}function fA(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var ne=a.display.view,te=0;te<ne.length;te++)if(b-=ne[te].size,b<0)return te}function Du(a,b,ne,te){b==null&&(b=a.doc.first),ne==null&&(ne=a.doc.first+a.doc.size),te||(te=0);var ue=a.display;if(te&&ne<ue.viewTo&&(ue.updateLineNumbers==null||ue.updateLineNumbers>b)&&(ue.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ue.viewTo)hi&&Rr(a.doc,b)<ue.viewTo&&rA(a);else if(ne<=ue.viewFrom)hi&&ai(a.doc,ne+te)>ue.viewFrom?rA(a):(ue.viewFrom+=te,ue.viewTo+=te);else if(b<=ue.viewFrom&&ne>=ue.viewTo)rA(a);else if(b<=ue.viewFrom){var Ne=Sd(a,ne,ne+te,1);Ne?(ue.view=ue.view.slice(Ne.index),ue.viewFrom=Ne.lineN,ue.viewTo+=te):rA(a)}else if(ne>=ue.viewTo){var et=Sd(a,b,b,-1);et?(ue.view=ue.view.slice(0,et.index),ue.viewTo=et.lineN):rA(a)}else{var yt=Sd(a,b,b,-1),Ft=Sd(a,ne,ne+te,1);yt&&Ft?(ue.view=ue.view.slice(0,yt.index).concat(us(a,yt.lineN,Ft.lineN)).concat(ue.view.slice(Ft.index)),ue.viewTo+=te):rA(a)}var Nt=ue.externalMeasured;Nt&&(ne<Nt.lineN?Nt.lineN+=te:b<Nt.lineN+Nt.size&&(ue.externalMeasured=null))}function DA(a,b,ne){a.curOp.viewChanged=!0;var te=a.display,ue=a.display.externalMeasured;if(ue&&b>=ue.lineN&&b<ue.lineN+ue.size&&(te.externalMeasured=null),!(b<te.viewFrom||b>=te.viewTo)){var Ne=te.view[fA(a,b)];if(Ne.node!=null){var et=Ne.changes||(Ne.changes=[]);ut(et,ne)==-1&&et.push(ne)}}}function rA(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Sd(a,b,ne,te){var ue=fA(a,b),Ne,et=a.display.view;if(!hi||ne==a.doc.first+a.doc.size)return{index:ue,lineN:ne};for(var yt=a.display.viewFrom,Ft=0;Ft<ue;Ft++)yt+=et[Ft].size;if(yt!=b){if(te>0){if(ue==et.length-1)return null;Ne=yt+et[ue].size-b,ue++}else Ne=yt-b;b+=Ne,ne+=Ne}for(;Rr(a.doc,ne)!=ne;){if(ue==(te<0?0:et.length-1))return null;ne+=te*et[ue-(te<0?1:0)].size,ue+=te}return{index:ue,lineN:ne}}function qf(a,b,ne){var te=a.display,ue=te.view;ue.length==0||b>=te.viewTo||ne<=te.viewFrom?(te.view=us(a,b,ne),te.viewFrom=b):(te.viewFrom>b?te.view=us(a,b,te.viewFrom).concat(te.view):te.viewFrom<b&&(te.view=te.view.slice(fA(a,b))),te.viewFrom=b,te.viewTo<ne?te.view=te.view.concat(us(a,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,fA(a,ne)))),te.viewTo=ne}function Ns(a){for(var b=a.display.view,ne=0,te=0;te<b.length;te++){var ue=b[te];!ue.hidden&&(!ue.node||ue.changes)&&++ne}return ne}function Xu(a){a.display.input.showSelection(a.display.input.prepareSelection())}function hA(a,b){b===void 0&&(b=!0);for(var ne=a.doc,te={},ue=te.cursors=document.createDocumentFragment(),Ne=te.selection=document.createDocumentFragment(),et=0;et<ne.sel.ranges.length;et++)if(!(!b&&et==ne.sel.primIndex)){var yt=ne.sel.ranges[et];if(!(yt.from().line>=a.display.viewTo||yt.to().line<a.display.viewFrom)){var Ft=yt.empty();(Ft||a.options.showCursorWhenSelecting)&&Ph(a,yt.head,ue),Ft||Th(a,yt,Ne)}}return te}function Ph(a,b,ne){var te=Eu(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ue=ne.appendChild(pt("div","\xA0","CodeMirror-cursor"));if(ue.style.left=te.left+"px",ue.style.top=te.top+"px",ue.style.height=Math.max(0,te.bottom-te.top)*a.options.cursorHeight+"px",te.other){var Ne=ne.appendChild(pt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ne.style.display="",Ne.style.left=te.other.left+"px",Ne.style.top=te.other.top+"px",Ne.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function Zc(a,b){return a.top-b.top||a.left-b.left}function Th(a,b,ne){var te=a.display,ue=a.doc,Ne=document.createDocumentFragment(),et=Hi(a.display),yt=et.left,Ft=Math.max(te.sizerWidth,Ta(a)-te.sizer.offsetLeft)-et.right,Nt=ue.direction=="ltr";function Ln(Lo,Aa,ka,Ca){Aa<0&&(Aa=0),Aa=Math.round(Aa),Ca=Math.round(Ca),Ne.appendChild(pt("div",null,"CodeMirror-selected","position: absolute; left: "+Lo+`px;
|
|
|
top: `+Aa+"px; width: "+(ka==null?Ft-Lo:ka)+`px;
|
|
|
height: `+(Ca-Aa)+"px"))}function Qn(Lo,Aa,ka){var Ca=ur(ue,Lo),Ha=Ca.text.length,Ll,$u;function tu(Uu,Cc){return Xl(a,$t(Lo,Uu),"div",Ca,Cc)}function bc(Uu,Cc,cc){var So=Yl(a,Ca,null,Uu),$l=Cc=="ltr"==(cc=="after")?"left":"right",nu=cc=="after"?So.begin:So.end-(/\s/.test(Ca.text.charAt(So.end-1))?2:1);return tu(nu,$l)[$l]}var ec=xt(Ca,ue.direction);return vt(ec,Aa||0,ka==null?Ha:ka,function(Uu,Cc,cc,So){var $l=cc=="ltr",nu=tu(Uu,$l?"left":"right"),ru=tu(Cc-1,$l?"right":"left"),Of=Aa==null&&Uu==0,$s=ka==null&&Cc==Ha,Es=So==0,iA=!ec||So==ec.length-1;if(ru.top-nu.top<=3){var Ac=(Nt?Of:$s)&&Es,dh=(Nt?$s:Of)&&iA,Ua=Ac?yt:($l?nu:ru).left,EA=dh?Ft:($l?ru:nu).right;Ln(Ua,nu.top,EA-Ua,nu.bottom)}else{var pl,dc,kd,Df;$l?(pl=Nt&&Of&&Es?yt:nu.left,dc=Nt?Ft:bc(Uu,cc,"before"),kd=Nt?yt:bc(Cc,cc,"after"),Df=Nt&&$s&&iA?Ft:ru.right):(pl=Nt?bc(Uu,cc,"before"):yt,dc=!Nt&&Of&&Es?Ft:nu.right,kd=!Nt&&$s&&iA?yt:ru.left,Df=Nt?bc(Cc,cc,"after"):Ft),Ln(pl,nu.top,dc-pl,nu.bottom),nu.bottom<ru.top&&Ln(yt,nu.bottom,null,ru.top),Ln(kd,ru.top,Df-kd,ru.bottom)}(!Ll||Zc(nu,Ll)<0)&&(Ll=nu),Zc(ru,Ll)<0&&(Ll=ru),(!$u||Zc(nu,$u)<0)&&($u=nu),Zc(ru,$u)<0&&($u=ru)}),{start:Ll,end:$u}}var Or=b.from(),Cr=b.to();if(Or.line==Cr.line)Qn(Or.line,Or.ch,Cr.ch);else{var wi=ur(ue,Or.line),Ki=ur(ue,Cr.line),Ao=Zr(wi)==Zr(Ki),Io=Qn(Or.line,Or.ch,Ao?wi.text.length+1:null).end,Ko=Qn(Cr.line,Ao?0:null,Cr.ch).start;Ao&&(Io.top<Ko.top-2?(Ln(Io.right,Io.top,null,Io.bottom),Ln(yt,Ko.top,Ko.left,Ko.bottom)):Ln(Io.right,Io.top,Ko.left-Io.right,Io.bottom)),Io.bottom<Ko.top&&Ln(yt,Io.bottom,null,Ko.top)}ne.appendChild(Ne)}function Fd(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var ne=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Wc(a),b.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function eh(a){a.state.focused||(a.display.input.focus(),Cf(a))}function bf(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Wc(a))},100)}function Cf(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(an(a,"focus",a,b),a.state.focused=!0,Re(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ue&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Fd(a))}function Wc(a,b){a.state.delayingBlurEvent||(a.state.focused&&(an(a,"blur",a,b),a.state.focused=!1,Ve(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function ya(a){for(var b=a.display,ne=b.lineDiv.offsetTop,te=0;te<b.view.length;te++){var ue=b.view[te],Ne=a.options.lineWrapping,et=void 0,yt=0;if(!ue.hidden){if(ze&&Ie<8){var Ft=ue.node.offsetTop+ue.node.offsetHeight;et=Ft-ne,ne=Ft}else{var Nt=ue.node.getBoundingClientRect();et=Nt.bottom-Nt.top,!Ne&&ue.text.firstChild&&(yt=ue.text.firstChild.getBoundingClientRect().right-Nt.left-1)}var Ln=ue.line.height-et;if((Ln>.005||Ln<-.005)&&(ni(ue.line,et),Ql(ue.line),ue.rest))for(var Qn=0;Qn<ue.rest.length;Qn++)Ql(ue.rest[Qn]);if(yt>a.display.sizerWidth){var Or=Math.ceil(yt/tA(a.display));Or>a.display.maxLineLength&&(a.display.maxLineLength=Or,a.display.maxLine=ue.line,a.display.maxLineChanged=!0)}}}}function Ql(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var ne=a.widgets[b],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function Dc(a,b,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):a.scroller.scrollTop;te=Math.floor(te-Tl(a));var ue=ne&&ne.bottom!=null?ne.bottom:te+a.wrapper.clientHeight,Ne=vn(b,te),et=vn(b,ue);if(ne&&ne.ensure){var yt=ne.ensure.from.line,Ft=ne.ensure.to.line;yt<Ne?(Ne=yt,et=vn(b,Mo(ur(b,yt))+a.wrapper.clientHeight)):Math.min(Ft,b.lastLine())>=et&&(Ne=vn(b,Mo(ur(b,Ft))-a.wrapper.clientHeight),et=Ft)}return{from:Ne,to:Math.max(et,Ne+1)}}function rd(a,b){if(!en(a,"scrollCursorIntoView")){var ne=a.display,te=ne.sizer.getBoundingClientRect(),ue=null;if(b.top+te.top<0?ue=!0:b.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ue=!1),ue!=null&&!Me){var Ne=pt("div","\u200B",null,`position: absolute;
|
|
|
top: `+(b.top-ne.viewOffset-Tl(a.display))+`px;
|
|
|
height: `+(b.bottom-b.top+ia(a)+ne.barHeight)+`px;
|
|
|
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(Ne),Ne.scrollIntoView(ue),a.display.lineSpace.removeChild(Ne)}}}function PA(a,b,ne,te){te==null&&(te=0);var ue;!a.options.lineWrapping&&b==ne&&(b=b.ch?$t(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,ne=b.sticky=="before"?$t(b.line,b.ch+1,"before"):b);for(var Ne=0;Ne<5;Ne++){var et=!1,yt=Eu(a,b),Ft=!ne||ne==b?yt:Eu(a,ne);ue={left:Math.min(yt.left,Ft.left),top:Math.min(yt.top,Ft.top)-te,right:Math.max(yt.left,Ft.left),bottom:Math.max(yt.bottom,Ft.bottom)+te};var Nt=TA(a,ue),Ln=a.doc.scrollTop,Qn=a.doc.scrollLeft;if(Nt.scrollTop!=null&&(oc(a,Nt.scrollTop),Math.abs(a.doc.scrollTop-Ln)>1&&(et=!0)),Nt.scrollLeft!=null&&(mA(a,Nt.scrollLeft),Math.abs(a.doc.scrollLeft-Qn)>1&&(et=!0)),!et)break}return ue}function Kp(a,b){var ne=TA(a,b);ne.scrollTop!=null&&oc(a,ne.scrollTop),ne.scrollLeft!=null&&mA(a,ne.scrollLeft)}function TA(a,b){var ne=a.display,te=yc(a.display);b.top<0&&(b.top=0);var ue=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ne.scroller.scrollTop,Ne=ks(a),et={};b.bottom-b.top>Ne&&(b.bottom=b.top+Ne);var yt=a.doc.height+Ou(ne),Ft=b.top<te,Nt=b.bottom>yt-te;if(b.top<ue)et.scrollTop=Ft?0:b.top;else if(b.bottom>ue+Ne){var Ln=Math.min(b.top,(Nt?yt:b.bottom)-Ne);Ln!=ue&&(et.scrollTop=Ln)}var Qn=a.options.fixedGutter?0:ne.gutters.offsetWidth,Or=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ne.scroller.scrollLeft-Qn,Cr=Ta(a)-ne.gutters.offsetWidth,wi=b.right-b.left>Cr;return wi&&(b.right=b.left+Cr),b.left<10?et.scrollLeft=0:b.left<Or?et.scrollLeft=Math.max(0,b.left+Qn-(wi?0:10)):b.right>Cr+Or-3&&(et.scrollLeft=b.right+(wi?0:10)-Cr),et}function th(a,b){b!=null&&(pA(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Pc(a){pA(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function id(a,b,ne){(b!=null||ne!=null)&&pA(a),b!=null&&(a.curOp.scrollLeft=b),ne!=null&&(a.curOp.scrollTop=ne)}function $p(a,b){pA(a),a.curOp.scrollToPos=b}function pA(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var ne=Sa(a,b.from),te=Sa(a,b.to);Ic(a,ne,te,b.margin)}}function Ic(a,b,ne,te){var ue=TA(a,{left:Math.min(b.left,ne.left),top:Math.min(b.top,ne.top)-te,right:Math.max(b.right,ne.right),bottom:Math.max(b.bottom,ne.bottom)+te});id(a,ue.scrollLeft,ue.scrollTop)}function oc(a,b){Math.abs(a.doc.scrollTop-b)<2||(x||Ld(a,{top:b}),zs(a,b,!0),x&&Ld(a),sd(a,100))}function zs(a,b,ne){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!ne)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function mA(a,b,ne,te){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((ne?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!te)&&(a.doc.scrollLeft=b,Xt(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function od(a){var b=a.display,ne=b.gutters.offsetWidth,te=Math.round(a.doc.height+Ou(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+ia(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:ne}}var ad=function(a,b,ne){this.cm=ne;var te=this.vert=pt("div",[pt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ue=this.horiz=pt("div",[pt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ue.tabIndex=-1,a(te),a(ue),Vt(te,"scroll",function(){te.clientHeight&&b(te.scrollTop,"vertical")}),Vt(ue,"scroll",function(){ue.clientWidth&&b(ue.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ze&&Ie<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ad.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,ne=a.scrollHeight>a.clientHeight+1,te=a.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=b?te+"px":"0";var ue=a.viewHeight-(b?te:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ue)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=a.barLeft+"px";var Ne=a.viewWidth-a.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:b?te:0}},ad.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ad.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ad.prototype.zeroWidthHack=function(){var a=Ce&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new De,this.disableVert=new De},ad.prototype.enableZeroWidthBar=function(a,b,ne){a.style.pointerEvents="auto";function te(){var ue=a.getBoundingClientRect(),Ne=ne=="vert"?document.elementFromPoint(ue.right-1,(ue.top+ue.bottom)/2):document.elementFromPoint((ue.right+ue.left)/2,ue.bottom-1);Ne!=a?a.style.pointerEvents="none":b.set(1e3,te)}b.set(1e3,te)},ad.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var gA=function(){};gA.prototype.update=function(){return{bottom:0,right:0}},gA.prototype.setScrollLeft=function(){},gA.prototype.setScrollTop=function(){},gA.prototype.clear=function(){};function kA(a,b){b||(b=od(a));var ne=a.display.barWidth,te=a.display.barHeight;xf(a,b);for(var ue=0;ue<4&&ne!=a.display.barWidth||te!=a.display.barHeight;ue++)ne!=a.display.barWidth&&a.options.lineWrapping&&ya(a),xf(a,od(a)),ne=a.display.barWidth,te=a.display.barHeight}function xf(a,b){var ne=a.display,te=ne.scrollbars.update(b);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=b.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Id={native:ad,null:gA};function kh(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ve(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Id[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Vt(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,ne){ne=="horizontal"?mA(a,b):oc(a,b)},a),a.display.scrollbars.addClass&&Re(a.display.wrapper,a.display.scrollbars.addClass)}var Zp=0;function ac(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++Zp},qs(a.curOp)}function vA(a){var b=a.curOp;b&&su(b,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;up(ne)})}function up(a){for(var b=a.ops,ne=0;ne<b.length;ne++)Wp(b[ne]);for(var te=0;te<b.length;te++)Vd(b[te]);for(var ue=0;ue<b.length;ue++)cp(b[ue]);for(var Ne=0;Ne<b.length;Ne++)Xd(b[Ne]);for(var et=0;et<b.length;et++)Gp(b[et])}function Wp(a){var b=a.cm,ne=b.display;Ap(b),a.updateMaxLine&&Zi(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<ne.viewFrom||a.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new Bf(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Vd(a){a.updatedDisplay=a.mustUpdate&&nh(a.cm,a.update)}function cp(a){var b=a.cm,ne=b.display;a.updatedDisplay&&ya(b),a.barMeasure=od(b),ne.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Vu(b,ne.maxLine,ne.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+a.adjustWidthTo+ia(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+a.adjustWidthTo-Ta(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=ne.input.prepareSelection())}function Xd(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&mA(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var ne=a.focus&&a.focus==_e();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,ne),(a.updatedDisplay||a.startHeight!=b.doc.height)&&kA(b,a.barMeasure),a.updatedDisplay&&wt(b,a.barMeasure),a.selectionChanged&&Fd(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),ne&&eh(a.cm)}function Gp(a){var b=a.cm,ne=b.display,te=b.doc;if(a.updatedDisplay&&yA(b,a.update),ne.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),a.scrollTop!=null&&zs(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&mA(b,a.scrollLeft,!0,!0),a.scrollToPos){var ue=PA(b,nr(te,a.scrollToPos.from),nr(te,a.scrollToPos.to),a.scrollToPos.margin);rd(b,ue)}var Ne=a.maybeHiddenMarkers,et=a.maybeUnhiddenMarkers;if(Ne)for(var yt=0;yt<Ne.length;++yt)Ne[yt].lines.length||an(Ne[yt],"hide");if(et)for(var Ft=0;Ft<et.length;++Ft)et[Ft].lines.length&&an(et[Ft],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&an(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function sc(a,b){if(a.curOp)return b();ac(a);try{return b()}finally{vA(a)}}function Pu(a,b){return function(){if(a.curOp)return b.apply(a,arguments);ac(a);try{return b.apply(a,arguments)}finally{vA(a)}}}function lc(a){return function(){if(this.curOp)return a.apply(this,arguments);ac(this);try{return a.apply(this,arguments)}finally{vA(this)}}}function Tu(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);ac(b);try{return a.apply(this,arguments)}finally{vA(b)}}}function sd(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,at(Yd,a))}function Yd(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var ne=+new Date+a.options.workTime,te=Tn(a,b.highlightFrontier),ue=[];b.iter(te.line,Math.min(b.first+b.size,a.display.viewTo+500),function(Ne){if(te.line>=a.display.viewFrom){var et=Ne.styles,yt=Ne.text.length>a.options.maxHighlightLength?Ti(b.mode,te.state):null,Ft=Vn(a,Ne,te,!0);yt&&(te.state=yt),Ne.styles=Ft.styles;var Nt=Ne.styleClasses,Ln=Ft.classes;Ln?Ne.styleClasses=Ln:Nt&&(Ne.styleClasses=null);for(var Qn=!et||et.length!=Ne.styles.length||Nt!=Ln&&(!Nt||!Ln||Nt.bgClass!=Ln.bgClass||Nt.textClass!=Ln.textClass),Or=0;!Qn&&Or<et.length;++Or)Qn=et[Or]!=Ne.styles[Or];Qn&&ue.push(te.line),Ne.stateAfter=te.save(),te.nextLine()}else Ne.text.length<=a.options.maxHighlightLength&&mn(a,Ne.text,te),Ne.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return sd(a,a.options.workDelay),!0}),b.highlightFrontier=te.line,b.modeFrontier=Math.max(b.modeFrontier,te.line),ue.length&&sc(a,function(){for(var Ne=0;Ne<ue.length;Ne++)DA(a,ue[Ne],"text")})}}var Bf=function(a,b,ne){var te=a.display;this.viewport=b,this.visible=Dc(te,a.doc,b),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=Ta(a),this.force=ne,this.dims=nA(a),this.events=[]};Bf.prototype.signal=function(a,b){Fn(a,b)&&this.events.push(arguments)},Bf.prototype.finish=function(){for(var a=0;a<this.events.length;a++)an.apply(null,this.events[a])};function Ap(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=ia(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=ia(a)+"px",b.scrollbarsClipped=!0)}function dp(a){if(a.hasFocus())return null;var b=_e();if(!b||!ht(a.display.lineDiv,b))return null;var ne={activeElt:b};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&ht(a.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function fp(a){if(!(!a||!a.activeElt||a.activeElt==_e())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&ht(document.body,a.anchorNode)&&ht(document.body,a.focusNode))){var b=window.getSelection(),ne=document.createRange();ne.setEnd(a.anchorNode,a.anchorOffset),ne.collapse(!1),b.removeAllRanges(),b.addRange(ne),b.extend(a.focusNode,a.focusOffset)}}function nh(a,b){var ne=a.display,te=a.doc;if(b.editorIsHidden)return rA(a),!1;if(!b.force&&b.visible.from>=ne.viewFrom&&b.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&Ns(a)==0)return!1;un(a)&&(rA(a),b.dims=nA(a));var ue=te.first+te.size,Ne=Math.max(b.visible.from-a.options.viewportMargin,te.first),et=Math.min(ue,b.visible.to+a.options.viewportMargin);ne.viewFrom<Ne&&Ne-ne.viewFrom<20&&(Ne=Math.max(te.first,ne.viewFrom)),ne.viewTo>et&&ne.viewTo-et<20&&(et=Math.min(ue,ne.viewTo)),hi&&(Ne=Rr(a.doc,Ne),et=ai(a.doc,et));var yt=Ne!=ne.viewFrom||et!=ne.viewTo||ne.lastWrapHeight!=b.wrapperHeight||ne.lastWrapWidth!=b.wrapperWidth;qf(a,Ne,et),ne.viewOffset=Mo(ur(a.doc,ne.viewFrom)),a.display.mover.style.top=ne.viewOffset+"px";var Ft=Ns(a);if(!yt&&Ft==0&&!b.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var Nt=dp(a);return Ft>4&&(ne.lineDiv.style.display="none"),hp(a,ne.updateLineNumbers,b.dims),Ft>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,fp(Nt),ct(ne.cursorDiv),ct(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,yt&&(ne.lastWrapHeight=b.wrapperHeight,ne.lastWrapWidth=b.wrapperWidth,sd(a,400)),ne.updateLineNumbers=null,!0}function yA(a,b){for(var ne=b.viewport,te=!0;;te=!1){if(!te||!a.options.lineWrapping||b.oldDisplayWidth==Ta(a)){if(ne&&ne.top!=null&&(ne={top:Math.min(a.doc.height+Ou(a.display)-ks(a),ne.top)}),b.visible=Dc(a.display,a.doc,ne),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else te&&(b.visible=Dc(a.display,a.doc,ne));if(!nh(a,b))break;ya(a);var ue=od(a);Xu(a),kA(a,ue),wt(a,ue),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Ld(a,b){var ne=new Bf(a,b);if(nh(a,ne)){ya(a),yA(a,ne);var te=od(a);Xu(a),kA(a,te),wt(a,te),ne.finish()}}function hp(a,b,ne){var te=a.display,ue=a.options.lineNumbers,Ne=te.lineDiv,et=Ne.firstChild;function yt(wi){var Ki=wi.nextSibling;return Ue&&Ce&&a.display.currentWheelTarget==wi?wi.style.display="none":wi.parentNode.removeChild(wi),Ki}for(var Ft=te.view,Nt=te.viewFrom,Ln=0;Ln<Ft.length;Ln++){var Qn=Ft[Ln];if(!Qn.hidden)if(!Qn.node||Qn.node.parentNode!=Ne){var Or=va(a,Qn,Nt,ne);Ne.insertBefore(Or,et)}else{for(;et!=Qn.node;)et=yt(et);var Cr=ue&&b!=null&&b<=Nt&&Qn.lineNumber;Qn.changes&&(ut(Qn.changes,"gutter")>-1&&(Cr=!1),xu(a,Qn,Nt,ne)),Cr&&(ct(Qn.lineNumber),Qn.lineNumber.appendChild(document.createTextNode(dn(a.options,Nt)))),et=Qn.node.nextSibling}Nt+=Qn.size}for(;et;)et=yt(et)}function bt(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function wt(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+ia(a)+"px"}function Xt(a){var b=a.display,ne=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var te=Ed(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ue=b.gutters.offsetWidth,Ne=te+"px",et=0;et<ne.length;et++)if(!ne[et].hidden){a.options.fixedGutter&&(ne[et].gutter&&(ne[et].gutter.style.left=Ne),ne[et].gutterBackground&&(ne[et].gutterBackground.style.left=Ne));var yt=ne[et].alignable;if(yt)for(var Ft=0;Ft<yt.length;Ft++)yt[Ft].style.left=Ne}a.options.fixedGutter&&(b.gutters.style.left=te+ue+"px")}}function un(a){if(!a.options.lineNumbers)return!1;var b=a.doc,ne=dn(a.options,b.first+b.size-1),te=a.display;if(ne.length!=te.lineNumChars){var ue=te.measure.appendChild(pt("div",[pt("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ne=ue.firstChild.offsetWidth,et=ue.offsetWidth-Ne;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(Ne,te.lineGutter.offsetWidth-et)+1,te.lineNumWidth=te.lineNumInnerWidth+et,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",bt(a.display),!0}return!1}function Sn(a,b){for(var ne=[],te=!1,ue=0;ue<a.length;ue++){var Ne=a[ue],et=null;if(typeof Ne!="string"&&(et=Ne.style,Ne=Ne.className),Ne=="CodeMirror-linenumbers")if(b)te=!0;else continue;ne.push({className:Ne,style:et})}return b&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function kn(a){var b=a.gutters,ne=a.gutterSpecs;ct(b),a.lineGutter=null;for(var te=0;te<ne.length;++te){var ue=ne[te],Ne=ue.className,et=ue.style,yt=b.appendChild(pt("div",null,"CodeMirror-gutter "+Ne));et&&(yt.style.cssText=et),Ne=="CodeMirror-linenumbers"&&(a.lineGutter=yt,yt.style.width=(a.lineNumWidth||1)+"px")}b.style.display=ne.length?"":"none",bt(a)}function sr(a){kn(a.display),Du(a),Xt(a)}function er(a,b,ne,te){var ue=this;this.input=ne,ue.scrollbarFiller=pt("div",null,"CodeMirror-scrollbar-filler"),ue.scrollbarFiller.setAttribute("cm-not-content","true"),ue.gutterFiller=pt("div",null,"CodeMirror-gutter-filler"),ue.gutterFiller.setAttribute("cm-not-content","true"),ue.lineDiv=Ct("div",null,"CodeMirror-code"),ue.selectionDiv=pt("div",null,null,"position: relative; z-index: 1"),ue.cursorDiv=pt("div",null,"CodeMirror-cursors"),ue.measure=pt("div",null,"CodeMirror-measure"),ue.lineMeasure=pt("div",null,"CodeMirror-measure"),ue.lineSpace=Ct("div",[ue.measure,ue.lineMeasure,ue.selectionDiv,ue.cursorDiv,ue.lineDiv],null,"position: relative; outline: none");var Ne=Ct("div",[ue.lineSpace],"CodeMirror-lines");ue.mover=pt("div",[Ne],null,"position: relative"),ue.sizer=pt("div",[ue.mover],"CodeMirror-sizer"),ue.sizerWidth=null,ue.heightForcer=pt("div",null,null,"position: absolute; height: "+Zt+"px; width: 1px;"),ue.gutters=pt("div",null,"CodeMirror-gutters"),ue.lineGutter=null,ue.scroller=pt("div",[ue.sizer,ue.heightForcer,ue.gutters],"CodeMirror-scroll"),ue.scroller.setAttribute("tabIndex","-1"),ue.wrapper=pt("div",[ue.scrollbarFiller,ue.gutterFiller,ue.scroller],"CodeMirror"),ze&&Ie<8&&(ue.gutters.style.zIndex=-1,ue.scroller.style.paddingRight=0),!Ue&&!(x&&we)&&(ue.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ue.wrapper):a(ue.wrapper)),ue.viewFrom=ue.viewTo=b.first,ue.reportedViewFrom=ue.reportedViewTo=b.first,ue.view=[],ue.renderedView=null,ue.externalMeasured=null,ue.viewOffset=0,ue.lastWrapHeight=ue.lastWrapWidth=0,ue.updateLineNumbers=null,ue.nativeBarWidth=ue.barHeight=ue.barWidth=0,ue.scrollbarsClipped=!1,ue.lineNumWidth=ue.lineNumInnerWidth=ue.lineNumChars=null,ue.alignWidgets=!1,ue.cachedCharWidth=ue.cachedTextHeight=ue.cachedPaddingH=null,ue.maxLine=null,ue.maxLineLength=0,ue.maxLineChanged=!1,ue.wheelDX=ue.wheelDY=ue.wheelStartX=ue.wheelStartY=null,ue.shift=!1,ue.selForContextMenu=null,ue.activeTouch=null,ue.gutterSpecs=Sn(te.gutters,te.lineNumbers),kn(ue),ne.init(ue)}var vr=0,fr=null;ze?fr=-.53:x?fr=15:xe?fr=-.7:Oe&&(fr=-1/3);function si(a){var b=a.wheelDeltaX,ne=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),ne==null&&a.detail&&a.axis==a.VERTICAL_AXIS?ne=a.detail:ne==null&&(ne=a.wheelDelta),{x:b,y:ne}}function jr(a){var b=si(a);return b.x*=fr,b.y*=fr,b}function Qr(a,b){var ne=si(b),te=ne.x,ue=ne.y,Ne=a.display,et=Ne.scroller,yt=et.scrollWidth>et.clientWidth,Ft=et.scrollHeight>et.clientHeight;if(te&&yt||ue&&Ft){if(ue&&Ce&&Ue){e:for(var Nt=b.target,Ln=Ne.view;Nt!=et;Nt=Nt.parentNode)for(var Qn=0;Qn<Ln.length;Qn++)if(Ln[Qn].node==Nt){a.display.currentWheelTarget=Nt;break e}}if(te&&!x&&!oe&&fr!=null){ue&&Ft&&oc(a,Math.max(0,et.scrollTop+ue*fr)),mA(a,Math.max(0,et.scrollLeft+te*fr)),(!ue||ue&&Ft)&&sn(b),Ne.wheelStartX=null;return}if(ue&&fr!=null){var Or=ue*fr,Cr=a.doc.scrollTop,wi=Cr+Ne.wrapper.clientHeight;Or<0?Cr=Math.max(0,Cr+Or-50):wi=Math.min(a.doc.height,wi+Or+50),Ld(a,{top:Cr,bottom:wi})}vr<20&&(Ne.wheelStartX==null?(Ne.wheelStartX=et.scrollLeft,Ne.wheelStartY=et.scrollTop,Ne.wheelDX=te,Ne.wheelDY=ue,setTimeout(function(){if(Ne.wheelStartX!=null){var Ki=et.scrollLeft-Ne.wheelStartX,Ao=et.scrollTop-Ne.wheelStartY,Io=Ao&&Ne.wheelDY&&Ao/Ne.wheelDY||Ki&&Ne.wheelDX&&Ki/Ne.wheelDX;Ne.wheelStartX=Ne.wheelStartY=null,Io&&(fr=(fr*vr+Io)/(vr+1),++vr)}},200)):(Ne.wheelDX+=te,Ne.wheelDY+=ue))}}var Lr=function(a,b){this.ranges=a,this.primIndex=b};Lr.prototype.primary=function(){return this.ranges[this.primIndex]},Lr.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var ne=this.ranges[b],te=a.ranges[b];if(!Nn(ne.anchor,te.anchor)||!Nn(ne.head,te.head))return!1}return!0},Lr.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Sr(Hr(this.ranges[b].anchor),Hr(this.ranges[b].head));return new Lr(a,this.primIndex)},Lr.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Lr.prototype.contains=function(a,b){b||(b=a);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(hn(b,te.from())>=0&&hn(a,te.to())<=0)return ne}return-1};var Sr=function(a,b){this.anchor=a,this.head=b};Sr.prototype.from=function(){return Ai(this.anchor,this.head)},Sr.prototype.to=function(){return zr(this.anchor,this.head)},Sr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Wi(a,b,ne){var te=a&&a.options.selectionsMayTouch,ue=b[ne];b.sort(function(Or,Cr){return hn(Or.from(),Cr.from())}),ne=ut(b,ue);for(var Ne=1;Ne<b.length;Ne++){var et=b[Ne],yt=b[Ne-1],Ft=hn(yt.to(),et.from());if(te&&!et.empty()?Ft>0:Ft>=0){var Nt=Ai(yt.from(),et.from()),Ln=zr(yt.to(),et.to()),Qn=yt.empty()?et.from()==et.head:yt.from()==yt.head;Ne<=ne&&--ne,b.splice(--Ne,2,new Sr(Qn?Ln:Nt,Qn?Nt:Ln))}}return new Lr(b,ne)}function yi(a,b){return new Lr([new Sr(a,b||a)],0)}function to(a){return a.text?$t(a.from.line+a.text.length-1,Pt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function uo(a,b){if(hn(a,b.from)<0)return a;if(hn(a,b.to)<=0)return to(b);var ne=a.line+b.text.length-(b.to.line-b.from.line)-1,te=a.ch;return a.line==b.to.line&&(te+=to(b).ch-b.to.ch),$t(ne,te)}function qi(a,b){for(var ne=[],te=0;te<a.sel.ranges.length;te++){var ue=a.sel.ranges[te];ne.push(new Sr(uo(ue.anchor,b),uo(ue.head,b)))}return Wi(a.cm,ne,a.sel.primIndex)}function mo(a,b,ne){return a.line==b.line?$t(ne.line,a.ch-b.ch+ne.ch):$t(ne.line+(a.line-b.line),a.ch)}function Eo(a,b,ne){for(var te=[],ue=$t(a.first,0),Ne=ue,et=0;et<b.length;et++){var yt=b[et],Ft=mo(yt.from,ue,Ne),Nt=mo(to(yt),ue,Ne);if(ue=yt.to,Ne=Nt,ne=="around"){var Ln=a.sel.ranges[et],Qn=hn(Ln.head,Ln.anchor)<0;te[et]=new Sr(Qn?Nt:Ft,Qn?Ft:Nt)}else te[et]=new Sr(Ft,Ft)}return new Lr(te,a.sel.primIndex)}function Uo(a){a.doc.mode=mi(a.options,a.doc.modeOption),Po(a)}function Po(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,sd(a,100),a.state.modeGen++,a.curOp&&Du(a)}function _a(a,b){return b.from.ch==0&&b.to.ch==0&&Pt(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function la(a,b,ne,te){function ue(Ko){return ne?ne[Ko]:null}function Ne(Ko,Lo,Aa){Xo(Ko,Lo,Aa,te),el(Ko,"change",Ko,b)}function et(Ko,Lo){for(var Aa=[],ka=Ko;ka<Lo;++ka)Aa.push(new Wo(Nt[ka],ue(ka),te));return Aa}var yt=b.from,Ft=b.to,Nt=b.text,Ln=ur(a,yt.line),Qn=ur(a,Ft.line),Or=Pt(Nt),Cr=ue(Nt.length-1),wi=Ft.line-yt.line;if(b.full)a.insert(0,et(0,Nt.length)),a.remove(Nt.length,a.size-Nt.length);else if(_a(a,b)){var Ki=et(0,Nt.length-1);Ne(Qn,Qn.text,Cr),wi&&a.remove(yt.line,wi),Ki.length&&a.insert(yt.line,Ki)}else if(Ln==Qn)if(Nt.length==1)Ne(Ln,Ln.text.slice(0,yt.ch)+Or+Ln.text.slice(Ft.ch),Cr);else{var Ao=et(1,Nt.length-1);Ao.push(new Wo(Or+Ln.text.slice(Ft.ch),Cr,te)),Ne(Ln,Ln.text.slice(0,yt.ch)+Nt[0],ue(0)),a.insert(yt.line+1,Ao)}else if(Nt.length==1)Ne(Ln,Ln.text.slice(0,yt.ch)+Nt[0]+Qn.text.slice(Ft.ch),ue(0)),a.remove(yt.line+1,wi);else{Ne(Ln,Ln.text.slice(0,yt.ch)+Nt[0],ue(0)),Ne(Qn,Or+Qn.text.slice(Ft.ch),Cr);var Io=et(1,Nt.length-1);wi>1&&a.remove(yt.line+1,wi-1),a.insert(yt.line+1,Io)}el(a,"change",a,b)}function na(a,b,ne){function te(ue,Ne,et){if(ue.linked)for(var yt=0;yt<ue.linked.length;++yt){var Ft=ue.linked[yt];if(Ft.doc!=Ne){var Nt=et&&Ft.sharedHist;ne&&!Nt||(b(Ft.doc,Nt),te(Ft.doc,ue,Nt))}}}te(a,null,!0)}function zo(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,nd(a),Uo(a),Ro(a),a.options.lineWrapping||Zi(a),a.options.mode=b.modeOption,Du(a)}function Ro(a){(a.doc.direction=="rtl"?Re:Ve)(a.display.lineDiv,"CodeMirror-rtl")}function Ho(a){sc(a,function(){Ro(a),Du(a)})}function wo(a){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=a||1}function fo(a,b){var ne={from:Hr(b.from),to:to(b),text:Tr(a,b.from,b.to)};return Ml(a,ne,b.from.line,b.to.line+1),na(a,function(te){return Ml(te,ne,b.from.line,b.to.line+1)},!0),ne}function To(a){for(;a.length;){var b=Pt(a);if(b.ranges)a.pop();else break}}function Go(a,b){if(b)return To(a.done),Pt(a.done);if(a.done.length&&!Pt(a.done).ranges)return Pt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Pt(a.done)}function oa(a,b,ne,te){var ue=a.history;ue.undone.length=0;var Ne=+new Date,et,yt;if((ue.lastOp==te||ue.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ue.lastModTime>Ne-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(et=Go(ue,ue.lastOp==te)))yt=Pt(et.changes),hn(b.from,b.to)==0&&hn(b.from,yt.to)==0?yt.to=to(b):et.changes.push(fo(a,b));else{var Ft=Pt(ue.done);for((!Ft||!Ft.ranges)&&Za(a.sel,ue.done),et={changes:[fo(a,b)],generation:ue.generation},ue.done.push(et);ue.done.length>ue.undoDepth;)ue.done.shift(),ue.done[0].ranges||ue.done.shift()}ue.done.push(ne),ue.generation=++ue.maxGeneration,ue.lastModTime=ue.lastSelTime=Ne,ue.lastOp=ue.lastSelOp=te,ue.lastOrigin=ue.lastSelOrigin=b.origin,yt||an(a,"historyAdded")}function Co(a,b,ne,te){var ue=b.charAt(0);return ue=="*"||ue=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function qa(a,b,ne,te){var ue=a.history,Ne=te&&te.origin;ne==ue.lastSelOp||Ne&&ue.lastSelOrigin==Ne&&(ue.lastModTime==ue.lastSelTime&&ue.lastOrigin==Ne||Co(a,Ne,Pt(ue.done),b))?ue.done[ue.done.length-1]=b:Za(b,ue.done),ue.lastSelTime=+new Date,ue.lastSelOrigin=Ne,ue.lastSelOp=ne,te&&te.clearRedo!==!1&&To(ue.undone)}function Za(a,b){var ne=Pt(b);ne&&ne.ranges&&ne.equals(a)||b.push(a)}function Ml(a,b,ne,te){var ue=b["spans_"+a.id],Ne=0;a.iter(Math.max(a.first,ne),Math.min(a.first+a.size,te),function(et){et.markedSpans&&((ue||(ue=b["spans_"+a.id]={}))[Ne]=et.markedSpans),++Ne})}function Sl(a){if(!a)return null;for(var b,ne=0;ne<a.length;++ne)a[ne].marker.explicitlyCleared?b||(b=a.slice(0,ne)):b&&b.push(a[ne]);return b?b.length?b:null:a}function ul(a,b){var ne=b["spans_"+a.id];if(!ne)return null;for(var te=[],ue=0;ue<b.text.length;++ue)te.push(Sl(ne[ue]));return te}function co(a,b){var ne=ul(a,b),te=po(a,b);if(!ne)return te;if(!te)return ne;for(var ue=0;ue<ne.length;++ue){var Ne=ne[ue],et=te[ue];if(Ne&&et)e:for(var yt=0;yt<et.length;++yt){for(var Ft=et[yt],Nt=0;Nt<Ne.length;++Nt)if(Ne[Nt].marker==Ft.marker)continue e;Ne.push(Ft)}else et&&(ne[ue]=et)}return ne}function ql(a,b,ne){for(var te=[],ue=0;ue<a.length;++ue){var Ne=a[ue];if(Ne.ranges){te.push(ne?Lr.prototype.deepCopy.call(Ne):Ne);continue}var et=Ne.changes,yt=[];te.push({changes:yt});for(var Ft=0;Ft<et.length;++Ft){var Nt=et[Ft],Ln=void 0;if(yt.push({from:Nt.from,to:Nt.to,text:Nt.text}),b)for(var Qn in Nt)(Ln=Qn.match(/^spans_(\d+)$/))&&ut(b,Number(Ln[1]))>-1&&(Pt(yt)[Qn]=Nt[Qn],delete Nt[Qn])}}return te}function cs(a,b,ne,te){if(te){var ue=a.anchor;if(ne){var Ne=hn(b,ue)<0;Ne!=hn(ne,ue)<0?(ue=b,b=ne):Ne!=hn(b,ne)<0&&(b=ne)}return new Sr(ue,b)}else return new Sr(ne||b,b)}function os(a,b,ne,te,ue){ue==null&&(ue=a.cm&&(a.cm.display.shift||a.extend)),No(a,new Lr([cs(a.sel.primary(),b,ne,ue)],0),te)}function ol(a,b,ne){for(var te=[],ue=a.cm&&(a.cm.display.shift||a.extend),Ne=0;Ne<a.sel.ranges.length;Ne++)te[Ne]=cs(a.sel.ranges[Ne],b[Ne],null,ue);var et=Wi(a.cm,te,a.sel.primIndex);No(a,et,ne)}function fu(a,b,ne,te){var ue=a.sel.ranges.slice(0);ue[b]=ne,No(a,Wi(a.cm,ue,a.sel.primIndex),te)}function aa(a,b,ne,te){No(a,yi(b,ne),te)}function ba(a,b,ne){var te={ranges:b.ranges,update:function(ue){this.ranges=[];for(var Ne=0;Ne<ue.length;Ne++)this.ranges[Ne]=new Sr(nr(a,ue[Ne].anchor),nr(a,ue[Ne].head))},origin:ne&&ne.origin};return an(a,"beforeSelectionChange",a,te),a.cm&&an(a.cm,"beforeSelectionChange",a.cm,te),te.ranges!=b.ranges?Wi(a.cm,te.ranges,te.ranges.length-1):b}function Vo(a,b,ne){var te=a.history.done,ue=Pt(te);ue&&ue.ranges?(te[te.length-1]=b,ps(a,b,ne)):No(a,b,ne)}function No(a,b,ne){ps(a,b,ne),qa(a,a.sel,a.cm?a.cm.curOp.id:NaN,ne)}function ps(a,b,ne){(Fn(a,"beforeSelectionChange")||a.cm&&Fn(a.cm,"beforeSelectionChange"))&&(b=ba(a,b,ne));var te=ne&&ne.bias||(hn(b.primary().head,a.sel.primary().head)<0?-1:1);Fs(a,Ks(a,b,te,!0)),!(ne&&ne.scroll===!1)&&a.cm&&Pc(a.cm)}function Fs(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,zn(a.cm)),el(a,"cursorActivity",a))}function Vs(a){Fs(a,Ks(a,a.sel,null,!1))}function Ks(a,b,ne,te){for(var ue,Ne=0;Ne<b.ranges.length;Ne++){var et=b.ranges[Ne],yt=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[Ne],Ft=gu(a,et.anchor,yt&&yt.anchor,ne,te),Nt=gu(a,et.head,yt&&yt.head,ne,te);(ue||Ft!=et.anchor||Nt!=et.head)&&(ue||(ue=b.ranges.slice(0,Ne)),ue[Ne]=new Sr(Ft,Nt))}return ue?Wi(a.cm,ue,b.primIndex):b}function cl(a,b,ne,te,ue){var Ne=ur(a,b.line);if(Ne.markedSpans)for(var et=0;et<Ne.markedSpans.length;++et){var yt=Ne.markedSpans[et],Ft=yt.marker,Nt="selectLeft"in Ft?!Ft.selectLeft:Ft.inclusiveLeft,Ln="selectRight"in Ft?!Ft.selectRight:Ft.inclusiveRight;if((yt.from==null||(Nt?yt.from<=b.ch:yt.from<b.ch))&&(yt.to==null||(Ln?yt.to>=b.ch:yt.to>b.ch))){if(ue&&(an(Ft,"beforeCursorEnter"),Ft.explicitlyCleared))if(Ne.markedSpans){--et;continue}else break;if(!Ft.atomic)continue;if(ne){var Qn=Ft.find(te<0?1:-1),Or=void 0;if((te<0?Ln:Nt)&&(Qn=ua(a,Qn,-te,Qn&&Qn.line==b.line?Ne:null)),Qn&&Qn.line==b.line&&(Or=hn(Qn,ne))&&(te<0?Or<0:Or>0))return cl(a,Qn,b,te,ue)}var Cr=Ft.find(te<0?-1:1);return(te<0?Nt:Ln)&&(Cr=ua(a,Cr,te,Cr.line==b.line?Ne:null)),Cr?cl(a,Cr,b,te,ue):null}}return b}function gu(a,b,ne,te,ue){var Ne=te||1,et=cl(a,b,ne,Ne,ue)||!ue&&cl(a,b,ne,Ne,!0)||cl(a,b,ne,-Ne,ue)||!ue&&cl(a,b,ne,-Ne,!0);return et||(a.cantEdit=!0,$t(a.first,0))}function ua(a,b,ne,te){return ne<0&&b.ch==0?b.line>a.first?nr(a,$t(b.line-1)):null:ne>0&&b.ch==(te||ur(a,b.line)).text.length?b.line<a.first+a.size-1?$t(b.line+1,0):null:new $t(b.line,b.ch+ne)}function ta(a){a.setSelection($t(a.firstLine(),0),$t(a.lastLine()),tt)}function Bs(a,b,ne){var te={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ue,Ne,et,yt){ue&&(te.from=nr(a,ue)),Ne&&(te.to=nr(a,Ne)),et&&(te.text=et),yt!==void 0&&(te.origin=yt)}),an(a,"beforeChange",a,te),a.cm&&an(a.cm,"beforeChange",a.cm,te),te.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function nl(a,b,ne){if(a.cm){if(!a.cm.curOp)return Pu(a.cm,nl)(a,b,ne);if(a.cm.state.suppressEdits)return}if(!((Fn(a,"beforeChange")||a.cm&&Fn(a.cm,"beforeChange"))&&(b=Bs(a,b,!0),!b))){var te=ri&&!ne&&Jo(a,b.from,b.to);if(te)for(var ue=te.length-1;ue>=0;--ue)Xs(a,{from:te[ue].from,to:te[ue].to,text:ue?[""]:b.text,origin:b.origin});else Xs(a,b)}}function Xs(a,b){if(!(b.text.length==1&&b.text[0]==""&&hn(b.from,b.to)==0)){var ne=qi(a,b);oa(a,b,ne,a.cm?a.cm.curOp.id:NaN),uc(a,b,ne,po(a,b));var te=[];na(a,function(ue,Ne){!Ne&&ut(te,ue.history)==-1&&(hu(ue.history,b),te.push(ue.history)),uc(ue,b,null,po(ue,b))})}}function vu(a,b,ne){var te=a.cm&&a.cm.state.suppressEdits;if(!(te&&!ne)){for(var ue=a.history,Ne,et=a.sel,yt=b=="undo"?ue.done:ue.undone,Ft=b=="undo"?ue.undone:ue.done,Nt=0;Nt<yt.length&&(Ne=yt[Nt],!(ne?Ne.ranges&&!Ne.equals(a.sel):!Ne.ranges));Nt++);if(Nt!=yt.length){for(ue.lastOrigin=ue.lastSelOrigin=null;;)if(Ne=yt.pop(),Ne.ranges){if(Za(Ne,Ft),ne&&!Ne.equals(a.sel)){No(a,Ne,{clearRedo:!1});return}et=Ne}else if(te){yt.push(Ne);return}else break;var Ln=[];Za(et,Ft),Ft.push({changes:Ln,generation:ue.generation}),ue.generation=Ne.generation||++ue.maxGeneration;for(var Qn=Fn(a,"beforeChange")||a.cm&&Fn(a.cm,"beforeChange"),Or=function(Ki){var Ao=Ne.changes[Ki];if(Ao.origin=b,Qn&&!Bs(a,Ao,!1))return yt.length=0,{};Ln.push(fo(a,Ao));var Io=Ki?qi(a,Ao):Pt(yt);uc(a,Ao,Io,co(a,Ao)),!Ki&&a.cm&&a.cm.scrollIntoView({from:Ao.from,to:to(Ao)});var Ko=[];na(a,function(Lo,Aa){!Aa&&ut(Ko,Lo.history)==-1&&(hu(Lo.history,Ao),Ko.push(Lo.history)),uc(Lo,Ao,null,co(Lo,Ao))})},Cr=Ne.changes.length-1;Cr>=0;--Cr){var wi=Or(Cr);if(wi)return wi.v}}}}function Ul(a,b){if(b!=0&&(a.first+=b,a.sel=new Lr(En(a.sel.ranges,function(ue){return new Sr($t(ue.anchor.line+b,ue.anchor.ch),$t(ue.head.line+b,ue.head.ch))}),a.sel.primIndex),a.cm)){Du(a.cm,a.first,a.first-b,b);for(var ne=a.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)DA(a.cm,te,"gutter")}}function uc(a,b,ne,te){if(a.cm&&!a.cm.curOp)return Pu(a.cm,uc)(a,b,ne,te);if(b.to.line<a.first){Ul(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var ue=b.text.length-1-(a.first-b.from.line);Ul(a,ue),b={from:$t(a.first,0),to:$t(b.to.line+ue,b.to.ch),text:[Pt(b.text)],origin:b.origin}}var Ne=a.lastLine();b.to.line>Ne&&(b={from:b.from,to:$t(Ne,ur(a,Ne).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Tr(a,b.from,b.to),ne||(ne=qi(a,b)),a.cm?Fl(a.cm,b,te):la(a,b,te),ps(a,ne,tt),a.cantEdit&&gu(a,$t(a.firstLine(),0))&&(a.cantEdit=!1)}}function Fl(a,b,ne){var te=a.doc,ue=a.display,Ne=b.from,et=b.to,yt=!1,Ft=Ne.line;a.options.lineWrapping||(Ft=gt(Zr(ur(te,Ne.line))),te.iter(Ft,et.line+1,function(Cr){if(Cr==ue.maxLine)return yt=!0,!0})),te.sel.contains(b.from,b.to)>-1&&zn(a),la(te,b,ne,Jf(a)),a.options.lineWrapping||(te.iter(Ft,Ne.line+b.text.length,function(Cr){var wi=ui(Cr);wi>ue.maxLineLength&&(ue.maxLine=Cr,ue.maxLineLength=wi,ue.maxLineChanged=!0,yt=!1)}),yt&&(a.curOp.updateMaxLine=!0)),_i(te,Ne.line),sd(a,400);var Nt=b.text.length-(et.line-Ne.line)-1;b.full?Du(a):Ne.line==et.line&&b.text.length==1&&!_a(a.doc,b)?DA(a,Ne.line,"text"):Du(a,Ne.line,et.line+1,Nt);var Ln=Fn(a,"changes"),Qn=Fn(a,"change");if(Qn||Ln){var Or={from:Ne,to:et,text:b.text,removed:b.removed,origin:b.origin};Qn&&el(a,"change",a,Or),Ln&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Or)}a.display.selForContextMenu=null}function ys(a,b,ne,te,ue){var Ne;te||(te=ne),hn(te,ne)<0&&(Ne=[te,ne],ne=Ne[0],te=Ne[1]),typeof b=="string"&&(b=a.splitLines(b)),nl(a,{from:ne,to:te,text:b,origin:ue})}function Al(a,b,ne,te){ne<a.line?a.line+=te:b<a.line&&(a.line=b,a.ch=0)}function dl(a,b,ne,te){for(var ue=0;ue<a.length;++ue){var Ne=a[ue],et=!0;if(Ne.ranges){Ne.copied||(Ne=a[ue]=Ne.deepCopy(),Ne.copied=!0);for(var yt=0;yt<Ne.ranges.length;yt++)Al(Ne.ranges[yt].anchor,b,ne,te),Al(Ne.ranges[yt].head,b,ne,te);continue}for(var Ft=0;Ft<Ne.changes.length;++Ft){var Nt=Ne.changes[Ft];if(ne<Nt.from.line)Nt.from=$t(Nt.from.line+te,Nt.from.ch),Nt.to=$t(Nt.to.line+te,Nt.to.ch);else if(b<=Nt.to.line){et=!1;break}}et||(a.splice(0,ue+1),ue=0)}}function hu(a,b){var ne=b.from.line,te=b.to.line,ue=b.text.length-(te-ne)-1;dl(a.done,ne,te,ue),dl(a.undone,ne,te,ue)}function Rl(a,b,ne,te){var ue=b,Ne=b;return typeof b=="number"?Ne=ur(a,hr(a,b)):ue=gt(b),ue==null?null:(te(Ne,ue)&&a.cm&&DA(a.cm,ue,ne),Ne)}function ws(a){this.lines=a,this.parent=null;for(var b=0,ne=0;ne<a.length;++ne)a[ne].parent=this,b+=a[ne].height;this.height=b}ws.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var ne=a,te=a+b;ne<te;++ne){var ue=this.lines[ne];this.height-=ue.height,ra(ue),el(ue,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,ne){this.height+=ne,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var te=0;te<b.length;++te)b[te].parent=this},iterN:function(a,b,ne){for(var te=a+b;a<te;++a)if(ne(this.lines[a]))return!0}};function yl(a){this.children=a;for(var b=0,ne=0,te=0;te<a.length;++te){var ue=a[te];b+=ue.chunkSize(),ne+=ue.height,ue.parent=this}this.size=b,this.height=ne,this.parent=null}yl.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ue=te.chunkSize();if(a<ue){var Ne=Math.min(b,ue-a),et=te.height;if(te.removeInner(a,Ne),this.height-=et-te.height,ue==Ne&&(this.children.splice(ne--,1),te.parent=null),(b-=Ne)==0)break;a=0}else a-=ue}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof ws))){var yt=[];this.collapse(yt),this.children=[new ws(yt)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,ne){this.size+=b.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ue=this.children[te],Ne=ue.chunkSize();if(a<=Ne){if(ue.insertInner(a,b,ne),ue.lines&&ue.lines.length>50){for(var et=ue.lines.length%25+25,yt=et;yt<ue.lines.length;){var Ft=new ws(ue.lines.slice(yt,yt+=25));ue.height-=Ft.height,this.children.splice(++te,0,Ft),Ft.parent=this}ue.lines=ue.lines.slice(0,et),this.maybeSpill()}break}a-=Ne}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),ne=new yl(b);if(a.parent){a.size-=ne.size,a.height-=ne.height;var ue=ut(a.parent.children,a);a.parent.children.splice(ue+1,0,ne)}else{var te=new yl(a.children);te.parent=a,a.children=[te,ne],a=te}ne.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,ne){for(var te=0;te<this.children.length;++te){var ue=this.children[te],Ne=ue.chunkSize();if(a<Ne){var et=Math.min(b,Ne-a);if(ue.iterN(a,et,ne))return!0;if((b-=et)==0)break;a=0}else a-=Ne}}};var Is=function(a,b,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=a,this.node=b};Is.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,ne=this.line,te=gt(ne);if(!(te==null||!b)){for(var ue=0;ue<b.length;++ue)b[ue]==this&&b.splice(ue--,1);b.length||(ne.widgets=null);var Ne=Gl(this);ni(ne,Math.max(0,ne.height-Ne)),a&&(sc(a,function(){wl(a,ne,-Ne),DA(a,te,"widget")}),el(a,"lineWidgetCleared",a,this,te))}},Is.prototype.changed=function(){var a=this,b=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ue=Gl(this)-b;ue&&(Fi(this.doc,te)||ni(te,te.height+ue),ne&&sc(ne,function(){ne.curOp.forceUpdate=!0,wl(ne,te,ue),el(ne,"lineWidgetChanged",ne,a,gt(te))}))},Rt(Is);function wl(a,b,ne){Mo(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&th(a,ne)}function eu(a,b,ne,te){var ue=new Is(a,ne,te),Ne=a.cm;return Ne&&ue.noHScroll&&(Ne.display.alignWidgets=!0),Rl(a,b,"widget",function(et){var yt=et.widgets||(et.widgets=[]);if(ue.insertAt==null?yt.push(ue):yt.splice(Math.min(yt.length-1,Math.max(0,ue.insertAt)),0,ue),ue.line=et,Ne&&!Fi(a,et)){var Ft=Mo(et)<a.scrollTop;ni(et,et.height+Gl(ue)),Ft&&th(Ne,ue.height),Ne.curOp.forceUpdate=!0}return!0}),Ne&&el(Ne,"lineWidgetAdded",Ne,ue,typeof b=="number"?b:gt(b)),ue}var ku=0,Mu=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++ku};Mu.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&ac(a),Fn(this,"clear")){var ne=this.find();ne&&el(this,"clear",ne.from,ne.to)}for(var te=null,ue=null,Ne=0;Ne<this.lines.length;++Ne){var et=this.lines[Ne],yt=Ni(et.markedSpans,this);a&&!this.collapsed?DA(a,gt(et),"text"):a&&(yt.to!=null&&(ue=gt(et)),yt.from!=null&&(te=gt(et))),et.markedSpans=oo(et.markedSpans,yt),yt.from==null&&this.collapsed&&!Fi(this.doc,et)&&a&&ni(et,yc(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var Ft=0;Ft<this.lines.length;++Ft){var Nt=Zr(this.lines[Ft]),Ln=ui(Nt);Ln>a.display.maxLineLength&&(a.display.maxLine=Nt,a.display.maxLineLength=Ln,a.display.maxLineChanged=!0)}te!=null&&a&&this.collapsed&&Du(a,te,ue+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Vs(a.doc)),a&&el(a,"markerCleared",a,this,te,ue),b&&vA(a),this.parent&&this.parent.clear()}},Mu.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var ne,te,ue=0;ue<this.lines.length;++ue){var Ne=this.lines[ue],et=Ni(Ne.markedSpans,this);if(et.from!=null&&(ne=$t(b?Ne:gt(Ne),et.from),a==-1))return ne;if(et.to!=null&&(te=$t(b?Ne:gt(Ne),et.to),a==1))return te}return ne&&{from:ne,to:te}},Mu.prototype.changed=function(){var a=this,b=this.find(-1,!0),ne=this,te=this.doc.cm;!b||!te||sc(te,function(){var ue=b.line,Ne=gt(b.line),et=rc(te,Ne);if(et&&(NA(et),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!Fi(ne.doc,ue)&&ne.height!=null){var yt=ne.height;ne.height=null;var Ft=Gl(ne)-yt;Ft&&ni(ue,ue.height+Ft)}el(te,"markerChanged",te,a)})},Mu.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||ut(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Mu.prototype.detachLine=function(a){if(this.lines.splice(ut(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Rt(Mu);function Gc(a,b,ne,te,ue){if(te&&te.shared)return _d(a,b,ne,te,ue);if(a.cm&&!a.cm.curOp)return Pu(a.cm,Gc)(a,b,ne,te,ue);var Ne=new Mu(a,ue),et=hn(b,ne);if(te&&Et(te,Ne,!1),et>0||et==0&&Ne.clearWhenEmpty!==!1)return Ne;if(Ne.replacedWith&&(Ne.collapsed=!0,Ne.widgetNode=Ct("span",[Ne.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||Ne.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(Ne.widgetNode.insertLeft=!0)),Ne.collapsed){if(ci(a,b.line,b,ne,Ne)||b.line!=ne.line&&ci(a,ne.line,b,ne,Ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");ki()}Ne.addToHistory&&oa(a,{from:b,to:ne,origin:"markText"},a.sel,NaN);var yt=b.line,Ft=a.cm,Nt;if(a.iter(yt,ne.line+1,function(Qn){Ft&&Ne.collapsed&&!Ft.options.lineWrapping&&Zr(Qn)==Ft.display.maxLine&&(Nt=!0),Ne.collapsed&&yt!=b.line&&ni(Qn,0),Di(Qn,new bi(Ne,yt==b.line?b.ch:null,yt==ne.line?ne.ch:null)),++yt}),Ne.collapsed&&a.iter(b.line,ne.line+1,function(Qn){Fi(a,Qn)&&ni(Qn,0)}),Ne.clearOnEnter&&Vt(Ne,"beforeCursorEnter",function(){return Ne.clear()}),Ne.readOnly&&(ro(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Ne.collapsed&&(Ne.id=++ku,Ne.atomic=!0),Ft){if(Nt&&(Ft.curOp.updateMaxLine=!0),Ne.collapsed)Du(Ft,b.line,ne.line+1);else if(Ne.className||Ne.startStyle||Ne.endStyle||Ne.css||Ne.attributes||Ne.title)for(var Ln=b.line;Ln<=ne.line;Ln++)DA(Ft,Ln,"text");Ne.atomic&&Vs(Ft.doc),el(Ft,"markerAdded",Ft,Ne)}return Ne}var fl=function(a,b){this.markers=a,this.primary=b;for(var ne=0;ne<a.length;++ne)a[ne].parent=this};fl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();el(this,"clear")}},fl.prototype.find=function(a,b){return this.primary.find(a,b)},Rt(fl);function _d(a,b,ne,te,ue){te=Et(te),te.shared=!1;var Ne=[Gc(a,b,ne,te,ue)],et=Ne[0],yt=te.widgetNode;return na(a,function(Ft){yt&&(te.widgetNode=yt.cloneNode(!0)),Ne.push(Gc(Ft,nr(Ft,b),nr(Ft,ne),te,ue));for(var Nt=0;Nt<Ft.linked.length;++Nt)if(Ft.linked[Nt].isParent)return;et=Pt(Ne)}),new fl(Ne,et)}function ju(a){return a.findMarks($t(a.first,0),a.clipPos($t(a.lastLine())),function(b){return b.parent})}function Yu(a,b){for(var ne=0;ne<b.length;ne++){var te=b[ne],ue=te.find(),Ne=a.clipPos(ue.from),et=a.clipPos(ue.to);if(hn(Ne,et)){var yt=Gc(a,Ne,et,te.primary,te.primary.type);te.markers.push(yt),yt.parent=te}}}function Qu(a){for(var b=function(te){var ue=a[te],Ne=[ue.primary.doc];na(ue.primary.doc,function(Ft){return Ne.push(Ft)});for(var et=0;et<ue.markers.length;et++){var yt=ue.markers[et];ut(Ne,yt.doc)==-1&&(yt.parent=null,ue.markers.splice(et--,1))}},ne=0;ne<a.length;ne++)b(ne)}var Ju=0,hl=function(a,b,ne,te,ue){if(!(this instanceof hl))return new hl(a,b,ne,te,ue);ne==null&&(ne=0),yl.call(this,[new ws([new Wo("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var Ne=$t(ne,0);this.sel=yi(Ne),this.history=new wo(null),this.id=++Ju,this.modeOption=b,this.lineSep=te,this.direction=ue=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),la(this,{from:Ne,to:Ne,text:a}),No(this,yi(Ne),tt)};hl.prototype=pe(yl.prototype,{constructor:hl,iter:function(a,b,ne){ne?this.iterN(a-this.first,b-a,ne):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var ne=0,te=0;te<b.length;++te)ne+=b[te].height;this.insertInner(a-this.first,b,ne)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=gi(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Tu(function(a){var b=$t(this.first,0),ne=this.first+this.size-1;nl(this,{from:b,to:$t(ne,ur(this,ne).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&id(this.cm,0,0),No(this,yi(b),tt)}),replaceRange:function(a,b,ne,te){b=nr(this,b),ne=ne?nr(this,ne):b,ys(this,a,b,ne,te)},getRange:function(a,b,ne){var te=Tr(this,nr(this,a),nr(this,b));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(Ut(this,a))return ur(this,a)},getLineNumber:function(a){return gt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=ur(this,a)),Zr(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return nr(this,a)},getCursor:function(a){var b=this.sel.primary(),ne;return a==null||a=="head"?ne=b.head:a=="anchor"?ne=b.anchor:a=="end"||a=="to"||a===!1?ne=b.to():ne=b.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Tu(function(a,b,ne){aa(this,nr(this,typeof a=="number"?$t(a,b||0):a),null,ne)}),setSelection:Tu(function(a,b,ne){aa(this,nr(this,a),nr(this,b||a),ne)}),extendSelection:Tu(function(a,b,ne){os(this,nr(this,a),b&&nr(this,b),ne)}),extendSelections:Tu(function(a,b){ol(this,Yr(this,a),b)}),extendSelectionsBy:Tu(function(a,b){var ne=En(this.sel.ranges,a);ol(this,Yr(this,ne),b)}),setSelections:Tu(function(a,b,ne){if(a.length){for(var te=[],ue=0;ue<a.length;ue++)te[ue]=new Sr(nr(this,a[ue].anchor),nr(this,a[ue].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),No(this,Wi(this.cm,te,b),ne)}}),addSelection:Tu(function(a,b,ne){var te=this.sel.ranges.slice(0);te.push(new Sr(nr(this,a),nr(this,b||a))),No(this,Wi(this.cm,te,te.length-1),ne)}),getSelection:function(a){for(var b=this.sel.ranges,ne,te=0;te<b.length;te++){var ue=Tr(this,b[te].from(),b[te].to());ne=ne?ne.concat(ue):ue}return a===!1?ne:ne.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ue=Tr(this,ne[te].from(),ne[te].to());a!==!1&&(ue=ue.join(a||this.lineSeparator())),b[te]=ue}return b},replaceSelection:function(a,b,ne){for(var te=[],ue=0;ue<this.sel.ranges.length;ue++)te[ue]=a;this.replaceSelections(te,b,ne||"+input")},replaceSelections:Tu(function(a,b,ne){for(var te=[],ue=this.sel,Ne=0;Ne<ue.ranges.length;Ne++){var et=ue.ranges[Ne];te[Ne]={from:et.from(),to:et.to(),text:this.splitLines(a[Ne]),origin:ne}}for(var yt=b&&b!="end"&&Eo(this,te,b),Ft=te.length-1;Ft>=0;Ft--)nl(this,te[Ft]);yt?Vo(this,yt):this.cm&&Pc(this.cm)}),undo:Tu(function(){vu(this,"undo")}),redo:Tu(function(){vu(this,"redo")}),undoSelection:Tu(function(){vu(this,"undo",!0)}),redoSelection:Tu(function(){vu(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,ne=0,te=0;te<a.done.length;te++)a.done[te].ranges||++b;for(var ue=0;ue<a.undone.length;ue++)a.undone[ue].ranges||++ne;return{undo:b,redo:ne}},clearHistory:function(){var a=this;this.history=new wo(this.history.maxGeneration),na(this,function(b){return b.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:ql(this.history.done),undone:ql(this.history.undone)}},setHistory:function(a){var b=this.history=new wo(this.history.maxGeneration);b.done=ql(a.done.slice(0),null,!0),b.undone=ql(a.undone.slice(0),null,!0)},setGutterMarker:Tu(function(a,b,ne){return Rl(this,a,"gutter",function(te){var ue=te.gutterMarkers||(te.gutterMarkers={});return ue[b]=ne,!ne&&le(ue)&&(te.gutterMarkers=null),!0})}),clearGutter:Tu(function(a){var b=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[a]&&Rl(b,ne,"gutter",function(){return ne.gutterMarkers[a]=null,le(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!Ut(this,a)||(b=a,a=ur(this,a),!a))return null}else if(b=gt(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Tu(function(a,b,ne){return Rl(this,a,b=="gutter"?"gutter":"class",function(te){var ue=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!te[ue])te[ue]=ne;else{if(Je(ne).test(te[ue]))return!1;te[ue]+=" "+ne}return!0})}),removeLineClass:Tu(function(a,b,ne){return Rl(this,a,b=="gutter"?"gutter":"class",function(te){var ue=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",Ne=te[ue];if(Ne)if(ne==null)te[ue]=null;else{var et=Ne.match(Je(ne));if(!et)return!1;var yt=et.index+et[0].length;te[ue]=Ne.slice(0,et.index)+(!et.index||yt==Ne.length?"":" ")+Ne.slice(yt)||null}else return!1;return!0})}),addLineWidget:Tu(function(a,b,ne){return eu(this,a,b,ne)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,ne){return Gc(this,nr(this,a),nr(this,b),ne,ne&&ne.type||"range")},setBookmark:function(a,b){var ne={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=nr(this,a),Gc(this,a,a,ne,"bookmark")},findMarksAt:function(a){a=nr(this,a);var b=[],ne=ur(this,a.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ue=ne[te];(ue.from==null||ue.from<=a.ch)&&(ue.to==null||ue.to>=a.ch)&&b.push(ue.marker.parent||ue.marker)}return b},findMarks:function(a,b,ne){a=nr(this,a),b=nr(this,b);var te=[],ue=a.line;return this.iter(a.line,b.line+1,function(Ne){var et=Ne.markedSpans;if(et)for(var yt=0;yt<et.length;yt++){var Ft=et[yt];!(Ft.to!=null&&ue==a.line&&a.ch>=Ft.to||Ft.from==null&&ue!=a.line||Ft.from!=null&&ue==b.line&&Ft.from>=b.ch)&&(!ne||ne(Ft.marker))&&te.push(Ft.marker.parent||Ft.marker)}++ue}),te},getAllMarks:function(){var a=[];return this.iter(function(b){var ne=b.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&a.push(ne[te].marker)}),a},posFromIndex:function(a){var b,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ue){var Ne=ue.text.length+te;if(Ne>a)return b=a,!0;a-=Ne,++ne}),nr(this,$t(ne,b))},indexFromPos:function(a){a=nr(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,a.line,function(te){b+=te.text.length+ne}),b},copy:function(a){var b=new hl(gi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,ne=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<ne&&(ne=a.to);var te=new hl(gi(this,b,ne),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:a.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Yu(te,ju(this)),te},unlinkDoc:function(a){if(a instanceof zl&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var ne=this.linked[b];if(ne.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),Qu(ju(this));break}}if(a.history==this.history){var te=[a.id];na(a,function(ue){return te.push(ue.id)},!0),a.history=new wo(null),a.history.done=ql(this.history.done,te),a.history.undone=ql(this.history.undone,te)}},iterLinkedDocs:function(a){na(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Ar(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Tu(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&Ho(this.cm))})}),hl.prototype.eachLine=hl.prototype.iter;var wc=0;function wA(a){var b=this;if(Jd(b),!(en(b,a)||lu(b.display,a))){sn(a),ze&&(wc=+new Date);var ne=OA(b,a,!0),te=a.dataTransfer.files;if(!(!ne||b.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ue=te.length,Ne=Array(ue),et=0,yt=function(){++et==ue&&Pu(b,function(){ne=nr(b.doc,ne);var Cr={from:ne,to:ne,text:b.doc.splitLines(Ne.filter(function(wi){return wi!=null}).join(b.doc.lineSeparator())),origin:"paste"};nl(b.doc,Cr),Vo(b.doc,yi(nr(b.doc,ne),nr(b.doc,to(Cr))))})()},Ft=function(Cr,wi){if(b.options.allowDropFileTypes&&ut(b.options.allowDropFileTypes,Cr.type)==-1){yt();return}var Ki=new FileReader;Ki.onerror=function(){return yt()},Ki.onload=function(){var Ao=Ki.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ao)){yt();return}Ne[wi]=Ao,yt()},Ki.readAsText(Cr)},Nt=0;Nt<te.length;Nt++)Ft(te[Nt],Nt);else{if(b.state.draggingText&&b.doc.sel.contains(ne)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var Ln=a.dataTransfer.getData("Text");if(Ln){var Qn;if(b.state.draggingText&&!b.state.draggingText.copy&&(Qn=b.listSelections()),ps(b.doc,yi(ne,ne)),Qn)for(var Or=0;Or<Qn.length;++Or)ys(b.doc,"",Qn[Or].anchor,Qn[Or].head,"drag");b.replaceSelection(Ln,"around","paste"),b.display.input.focus()}}catch(Cr){}}}}function Tc(a,b){if(ze&&(!a.state.draggingText||+new Date-wc<100)){Lt(b);return}if(!(en(a,b)||lu(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!Oe)){var ne=pt("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",oe&&(ne.width=ne.height=1,a.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),b.dataTransfer.setDragImage(ne,0,0),oe&&ne.parentNode.removeChild(ne)}}function Vc(a,b){var ne=OA(a,b);if(ne){var te=document.createDocumentFragment();Ph(a,ne,te),a.display.dragCursor||(a.display.dragCursor=pt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ot(a.display.dragCursor,te)}}function Jd(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function qd(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<b.length;te++){var ue=b[te].CodeMirror;ue&&ne.push(ue)}ne.length&&ne[0].operation(function(){for(var Ne=0;Ne<ne.length;Ne++)a(ne[Ne])})}}var Ls=!1;function ld(){Ls||(Ef(),Ls=!0)}function Ef(){var a;Vt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,qd(Wa)},100))}),Vt(window,"blur",function(){return qd(Wc)})}function Wa(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var ms={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"},Hl=0;Hl<10;Hl++)ms[Hl+48]=ms[Hl+96]=String(Hl);for(var uu=65;uu<=90;uu++)ms[uu]=String.fromCharCode(uu);for(var Su=1;Su<=12;Su++)ms[Su+111]=ms[Su+63235]="F"+Su;var Fu={};Fu.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"},Fu.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"},Fu.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"},Fu.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"]},Fu.default=Ce?Fu.macDefault:Fu.pcDefault;function qu(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var ne,te,ue,Ne,et=0;et<b.length-1;et++){var yt=b[et];if(/^(cmd|meta|m)$/i.test(yt))Ne=!0;else if(/^a(lt)?$/i.test(yt))ne=!0;else if(/^(c|ctrl|control)$/i.test(yt))te=!0;else if(/^s(hift)?$/i.test(yt))ue=!0;else throw new Error("Unrecognized modifier name: "+yt)}return ne&&(a="Alt-"+a),te&&(a="Ctrl-"+a),Ne&&(a="Cmd-"+a),ue&&(a="Shift-"+a),a}function Hu(a){var b={};for(var ne in a)if(a.hasOwnProperty(ne)){var te=a[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete a[ne];continue}for(var ue=En(ne.split(" "),qu),Ne=0;Ne<ue.length;Ne++){var et=void 0,yt=void 0;Ne==ue.length-1?(yt=ue.join(" "),et=te):(yt=ue.slice(0,Ne+1).join(" "),et="...");var Ft=b[yt];if(!Ft)b[yt]=et;else if(Ft!=et)throw new Error("Inconsistent bindings for "+yt)}delete a[ne]}for(var Nt in b)a[Nt]=b[Nt];return a}function ZA(a,b,ne,te){b=yu(b);var ue=b.call?b.call(a,te):b[a];if(ue===!1)return"nothing";if(ue==="...")return"multi";if(ue!=null&&ne(ue))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return ZA(a,b.fallthrough,ne,te);for(var Ne=0;Ne<b.fallthrough.length;Ne++){var et=ZA(a,b.fallthrough[Ne],ne,te);if(et)return et}}}function Sf(a){var b=typeof a=="string"?a:ms[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function WA(a,b,ne){var te=a;return b.altKey&&te!="Alt"&&(a="Alt-"+a),(Qe?b.metaKey:b.ctrlKey)&&te!="Ctrl"&&(a="Ctrl-"+a),(Qe?b.ctrlKey:b.metaKey)&&te!="Mod"&&(a="Cmd-"+a),!ne&&b.shiftKey&&te!="Shift"&&(a="Shift-"+a),a}function GA(a,b){if(oe&&a.keyCode==34&&a.char)return!1;var ne=ms[a.keyCode];return ne==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(ne=a.code),WA(ne,a,b))}function yu(a){return typeof a=="string"?Fu[a]:a}function kc(a,b){for(var ne=a.doc.sel.ranges,te=[],ue=0;ue<ne.length;ue++){for(var Ne=b(ne[ue]);te.length&&hn(Ne.from,Pt(te).to)<=0;){var et=te.pop();if(hn(et.from,Ne.from)<0){Ne.from=et.from;break}}te.push(Ne)}sc(a,function(){for(var yt=te.length-1;yt>=0;yt--)ys(a.doc,"",te[yt].from,te[yt].to,"+delete");Pc(a)})}function ef(a,b,ne){var te=st(a.text,b+ne,ne);return te<0||te>a.text.length?null:te}function Ff(a,b,ne){var te=ef(a,b.ch,ne);return te==null?null:new $t(b.line,te,ne<0?"after":"before")}function tf(a,b,ne,te,ue){if(a){b.doc.direction=="rtl"&&(ue=-ue);var Ne=xt(ne,b.doc.direction);if(Ne){var et=ue<0?Pt(Ne):Ne[0],yt=ue<0==(et.level==1),Ft=yt?"after":"before",Nt;if(et.level>0||b.doc.direction=="rtl"){var Ln=vs(b,ne);Nt=ue<0?ne.text.length-1:0;var Qn=Bu(b,Ln,Nt).top;Nt=mt(function(Or){return Bu(b,Ln,Or).top==Qn},ue<0==(et.level==1)?et.from:et.to-1,Nt),Ft=="before"&&(Nt=ef(ne,Nt,1))}else Nt=ue<0?et.to:et.from;return new $t(te,Nt,Ft)}}return new $t(te,ue<0?ne.text.length:0,ue<0?"before":"after")}function If(a,b,ne,te){var ue=xt(b,a.doc.direction);if(!ue)return Ff(b,ne,te);ne.ch>=b.text.length?(ne.ch=b.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var Ne=_t(ue,ne.ch,ne.sticky),et=ue[Ne];if(a.doc.direction=="ltr"&&et.level%2==0&&(te>0?et.to>ne.ch:et.from<ne.ch))return Ff(b,ne,te);var yt=function(Io,Ko){return ef(b,Io instanceof $t?Io.ch:Io,Ko)},Ft,Nt=function(Io){return a.options.lineWrapping?(Ft=Ft||vs(a,b),Yl(a,b,Ft,Io)):{begin:0,end:b.text.length}},Ln=Nt(ne.sticky=="before"?yt(ne,-1):ne.ch);if(a.doc.direction=="rtl"||et.level==1){var Qn=et.level==1==te<0,Or=yt(ne,Qn?1:-1);if(Or!=null&&(Qn?Or<=et.to&&Or<=Ln.end:Or>=et.from&&Or>=Ln.begin)){var Cr=Qn?"before":"after";return new $t(ne.line,Or,Cr)}}var wi=function(Io,Ko,Lo){for(var Aa=function(Ll,$u){return $u?new $t(ne.line,yt(Ll,1),"before"):new $t(ne.line,Ll,"after")};Io>=0&&Io<ue.length;Io+=Ko){var ka=ue[Io],Ca=Ko>0==(ka.level!=1),Ha=Ca?Lo.begin:yt(Lo.end,-1);if(ka.from<=Ha&&Ha<ka.to||(Ha=Ca?ka.from:yt(ka.to,-1),Lo.begin<=Ha&&Ha<Lo.end))return Aa(Ha,Ca)}},Ki=wi(Ne+te,te,Ln);if(Ki)return Ki;var Ao=te>0?Ln.end:yt(Ln.begin,-1);return Ao!=null&&!(te>0&&Ao==b.text.length)&&(Ki=wi(te>0?0:ue.length-1,te,Nt(Ao)),Ki)?Ki:null}var VA={selectAll:ta,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),tt)},killLine:function(a){return kc(a,function(b){if(b.empty()){var ne=ur(a.doc,b.head.line).text.length;return b.head.ch==ne&&b.head.line<a.lastLine()?{from:b.head,to:$t(b.head.line+1,0)}:{from:b.head,to:$t(b.head.line,ne)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return kc(a,function(b){return{from:$t(b.from().line,0),to:nr(a.doc,$t(b.to().line+1,0))}})},delLineLeft:function(a){return kc(a,function(b){return{from:$t(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return kc(a,function(b){var ne=a.charCoords(b.head,"div").top+5,te=a.coordsChar({left:0,top:ne},"div");return{from:te,to:b.from()}})},delWrappedLineRight:function(a){return kc(a,function(b){var ne=a.charCoords(b.head,"div").top+5,te=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:b.from(),to:te}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection($t(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection($t(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return rh(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return ih(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return pp(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var ne=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ne},"div")},jt)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var ne=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:ne},"div")},jt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var ne=a.cursorCoords(b.head,"div").top+5,te=a.coordsChar({left:0,top:ne},"div");return te.ch<a.getLine(te.line).search(/\S/)?ih(a,b.head):te},jt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var b=[],ne=a.listSelections(),te=a.options.tabSize,ue=0;ue<ne.length;ue++){var Ne=ne[ue].from(),et=Ze(a.getLine(Ne.line),Ne.ch,te);b.push(pn(te-et%te))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return sc(a,function(){for(var b=a.listSelections(),ne=[],te=0;te<b.length;te++)if(b[te].empty()){var ue=b[te].head,Ne=ur(a.doc,ue.line).text;if(Ne){if(ue.ch==Ne.length&&(ue=new $t(ue.line,ue.ch-1)),ue.ch>0)ue=new $t(ue.line,ue.ch+1),a.replaceRange(Ne.charAt(ue.ch-1)+Ne.charAt(ue.ch-2),$t(ue.line,ue.ch-2),ue,"+transpose");else if(ue.line>a.doc.first){var et=ur(a.doc,ue.line-1).text;et&&(ue=new $t(ue.line,1),a.replaceRange(Ne.charAt(0)+a.doc.lineSeparator()+et.charAt(et.length-1),$t(ue.line-1,et.length-1),ue,"+transpose"))}}ne.push(new Sr(ue,ue))}a.setSelections(ne)})},newlineAndIndent:function(a){return sc(a,function(){for(var b=a.listSelections(),ne=b.length-1;ne>=0;ne--)a.replaceRange(a.doc.lineSeparator(),b[ne].anchor,b[ne].head,"+input");b=a.listSelections();for(var te=0;te<b.length;te++)a.indentLine(b[te].from().line,null,!0);Pc(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function rh(a,b){var ne=ur(a.doc,b),te=Zr(ne);return te!=ne&&(b=gt(te)),tf(!0,a,te,b,1)}function pp(a,b){var ne=ur(a.doc,b),te=Qi(ne);return te!=ne&&(b=gt(te)),tf(!0,a,ne,b,-1)}function ih(a,b){var ne=rh(a,b.line),te=ur(a.doc,ne.line),ue=xt(te,a.doc.direction);if(!ue||ue[0].level==0){var Ne=Math.max(ne.ch,te.text.search(/\S/)),et=b.line==ne.line&&b.ch<=Ne&&b.ch;return $t(ne.line,et?0:Ne,ne.sticky)}return ne}function nf(a,b,ne){if(typeof b=="string"&&(b=VA[b],!b))return!1;a.display.input.ensurePolled();var te=a.display.shift,ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ne&&(a.display.shift=!1),ue=b(a)!=Kt}finally{a.display.shift=te,a.state.suppressEdits=!1}return ue}function mp(a,b,ne){for(var te=0;te<a.state.keyMaps.length;te++){var ue=ZA(b,a.state.keyMaps[te],ne,a);if(ue)return ue}return a.options.extraKeys&&ZA(b,a.options.extraKeys,ne,a)||ZA(b,a.options.keyMap,ne,a)}var gp=new De;function rf(a,b,ne,te){var ue=a.state.keySeq;if(ue){if(Sf(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:gp.set(50,function(){a.state.keySeq==ue&&(a.state.keySeq=null,a.display.input.reset())}),Lf(a,ue+" "+b,ne,te))return!0}return Lf(a,b,ne,te)}function Lf(a,b,ne,te){var ue=mp(a,b,te);return ue=="multi"&&(a.state.keySeq=b),ue=="handled"&&el(a,"keyHandled",a,b,ne),(ue=="handled"||ue=="multi")&&(sn(ne),Fd(a)),!!ue}function Nd(a,b){var ne=GA(b,!0);return ne?b.shiftKey&&!a.state.keySeq?rf(a,"Shift-"+ne,b,function(te){return nf(a,te,!0)})||rf(a,ne,b,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return nf(a,te)}):rf(a,ne,b,function(te){return nf(a,te)}):!1}function _f(a,b,ne){return rf(a,"'"+ne+"'",b,function(te){return nf(a,te,!0)})}var Od=null;function of(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=_e(),!en(b,a))){ze&&Ie<11&&a.keyCode==27&&(a.returnValue=!1);var ne=a.keyCode;b.display.shift=ne==16||a.shiftKey;var te=Nd(b,a);oe&&(Od=te?ne:null,!te&&ne==88&&!jn&&(Ce?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),x&&!Ce&&!te&&ne==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&bA(b)}}function bA(a){var b=a.display.lineDiv;Re(b,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Ve(b,"CodeMirror-crosshair"),gn(document,"keyup",ne),gn(document,"mouseover",ne))}Vt(document,"keyup",ne),Vt(document,"mouseover",ne)}function oh(a){a.keyCode==16&&(this.doc.sel.shift=!1),en(this,a)}function ah(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(lu(b.display,a)||en(b,a)||a.ctrlKey&&!a.altKey||Ce&&a.metaKey)){var ne=a.keyCode,te=a.charCode;if(oe&&ne==Od){Od=null,sn(a);return}if(!(oe&&(!a.which||a.which<10)&&Nd(b,a))){var ue=String.fromCharCode(te==null?ne:te);ue!="\b"&&(_f(b,a,ue)||b.display.input.onKeyPress(a))}}}var Mh=400,ud=function(a,b,ne){this.time=a,this.pos=b,this.button=ne};ud.prototype.compare=function(a,b,ne){return this.time+Mh>a&&hn(b,this.pos)==0&&ne==this.button};var CA,xA;function Dd(a,b){var ne=+new Date;return xA&&xA.compare(ne,a,b)?(CA=xA=null,"triple"):CA&&CA.compare(ne,a,b)?(xA=new ud(ne,a,b),CA=null,"double"):(CA=new ud(ne,a,b),xA=null,"single")}function cd(a){var b=this,ne=b.display;if(!(en(b,a)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=a.shiftKey,lu(ne,a)){Ue||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!MA(b,a)){var te=OA(b,a),ue=nn(a),Ne=te?Dd(te,ue):"single";window.focus(),ue==1&&b.state.selectingText&&b.state.selectingText(a),!(te&&Uh(b,ue,te,Ne,a))&&(ue==1?te?_s(b,te,Ne,a):Gt(a)==ne.scroller&&sn(a):ue==2?(te&&os(b.doc,te),setTimeout(function(){return ne.input.focus()},20)):ue==3&&(je?b.display.input.onContextMenu(a):bf(b)))}}}function Uh(a,b,ne,te,ue){var Ne="Click";return te=="double"?Ne="Double"+Ne:te=="triple"&&(Ne="Triple"+Ne),Ne=(b==1?"Left":b==2?"Middle":"Right")+Ne,rf(a,WA(Ne,ue),ue,function(et){if(typeof et=="string"&&(et=VA[et]),!et)return!1;var yt=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),yt=et(a,ne)!=Kt}finally{a.state.suppressEdits=!1}return yt})}function gs(a,b,ne){var te=a.getOption("configureMouse"),ue=te?te(a,b,ne):{};if(ue.unit==null){var Ne=Ee?ne.shiftKey&&ne.metaKey:ne.altKey;ue.unit=Ne?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ue.extend==null||a.doc.extend)&&(ue.extend=a.doc.extend||ne.shiftKey),ue.addNew==null&&(ue.addNew=Ce?ne.metaKey:ne.ctrlKey),ue.moveOnDrag==null&&(ue.moveOnDrag=!(Ce?ne.altKey:ne.ctrlKey)),ue}function _s(a,b,ne,te){ze?setTimeout(at(eh,a),0):a.curOp.focus=_e();var ue=gs(a,ne,te),Ne=a.doc.sel,et;a.options.dragDrop&&wn&&!a.isReadOnly()&&ne=="single"&&(et=Ne.contains(b))>-1&&(hn((et=Ne.ranges[et]).from(),b)<0||b.xRel>0)&&(hn(et.to(),b)>0||b.xRel<0)?wu(a,te,b,ue):Ku(a,te,b,ue)}function wu(a,b,ne,te){var ue=a.display,Ne=!1,et=Pu(a,function(Nt){Ue&&(ue.scroller.draggable=!1),a.state.draggingText=!1,gn(ue.wrapper.ownerDocument,"mouseup",et),gn(ue.wrapper.ownerDocument,"mousemove",yt),gn(ue.scroller,"dragstart",Ft),gn(ue.scroller,"drop",et),Ne||(sn(Nt),te.addNew||os(a.doc,ne,null,null,te.extend),Ue&&!Oe||ze&&Ie==9?setTimeout(function(){ue.wrapper.ownerDocument.body.focus({preventScroll:!0}),ue.input.focus()},20):ue.input.focus())}),yt=function(Nt){Ne=Ne||Math.abs(b.clientX-Nt.clientX)+Math.abs(b.clientY-Nt.clientY)>=10},Ft=function(){return Ne=!0};Ue&&(ue.scroller.draggable=!0),a.state.draggingText=et,et.copy=!te.moveOnDrag,ue.scroller.dragDrop&&ue.scroller.dragDrop(),Vt(ue.wrapper.ownerDocument,"mouseup",et),Vt(ue.wrapper.ownerDocument,"mousemove",yt),Vt(ue.scroller,"dragstart",Ft),Vt(ue.scroller,"drop",et),bf(a),setTimeout(function(){return ue.input.focus()},20)}function zu(a,b,ne){if(ne=="char")return new Sr(b,b);if(ne=="word")return a.findWordAt(b);if(ne=="line")return new Sr($t(b.line,0),nr(a.doc,$t(b.line+1,0)));var te=ne(a,b);return new Sr(te.from,te.to)}function Ku(a,b,ne,te){var ue=a.display,Ne=a.doc;sn(b);var et,yt,Ft=Ne.sel,Nt=Ft.ranges;if(te.addNew&&!te.extend?(yt=Ne.sel.contains(ne),yt>-1?et=Nt[yt]:et=new Sr(ne,ne)):(et=Ne.sel.primary(),yt=Ne.sel.primIndex),te.unit=="rectangle")te.addNew||(et=new Sr(ne,ne)),ne=OA(a,b,!0,!0),yt=-1;else{var Ln=zu(a,ne,te.unit);te.extend?et=cs(et,Ln.anchor,Ln.head,te.extend):et=Ln}te.addNew?yt==-1?(yt=Nt.length,No(Ne,Wi(a,Nt.concat([et]),yt),{scroll:!1,origin:"*mouse"})):Nt.length>1&&Nt[yt].empty()&&te.unit=="char"&&!te.extend?(No(Ne,Wi(a,Nt.slice(0,yt).concat(Nt.slice(yt+1)),0),{scroll:!1,origin:"*mouse"}),Ft=Ne.sel):fu(Ne,yt,et,Dt):(yt=0,No(Ne,new Lr([et],0),Dt),Ft=Ne.sel);var Qn=ne;function Or(Lo){if(hn(Qn,Lo)!=0)if(Qn=Lo,te.unit=="rectangle"){for(var Aa=[],ka=a.options.tabSize,Ca=Ze(ur(Ne,ne.line).text,ne.ch,ka),Ha=Ze(ur(Ne,Lo.line).text,Lo.ch,ka),Ll=Math.min(Ca,Ha),$u=Math.max(Ca,Ha),tu=Math.min(ne.line,Lo.line),bc=Math.min(a.lastLine(),Math.max(ne.line,Lo.line));tu<=bc;tu++){var ec=ur(Ne,tu).text,Uu=An(ec,Ll,ka);Ll==$u?Aa.push(new Sr($t(tu,Uu),$t(tu,Uu))):ec.length>Uu&&Aa.push(new Sr($t(tu,Uu),$t(tu,An(ec,$u,ka))))}Aa.length||Aa.push(new Sr(ne,ne)),No(Ne,Wi(a,Ft.ranges.slice(0,yt).concat(Aa),yt),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Lo)}else{var Cc=et,cc=zu(a,Lo,te.unit),So=Cc.anchor,$l;hn(cc.anchor,So)>0?($l=cc.head,So=Ai(Cc.from(),cc.anchor)):($l=cc.anchor,So=zr(Cc.to(),cc.head));var nu=Ft.ranges.slice(0);nu[yt]=Ad(a,new Sr(nr(Ne,So),$l)),No(Ne,Wi(a,nu,yt),Dt)}}var Cr=ue.wrapper.getBoundingClientRect(),wi=0;function Ki(Lo){var Aa=++wi,ka=OA(a,Lo,!0,te.unit=="rectangle");if(ka)if(hn(ka,Qn)!=0){a.curOp.focus=_e(),Or(ka);var Ca=Dc(ue,Ne);(ka.line>=Ca.to||ka.line<Ca.from)&&setTimeout(Pu(a,function(){wi==Aa&&Ki(Lo)}),150)}else{var Ha=Lo.clientY<Cr.top?-20:Lo.clientY>Cr.bottom?20:0;Ha&&setTimeout(Pu(a,function(){wi==Aa&&(ue.scroller.scrollTop+=Ha,Ki(Lo))}),50)}}function Ao(Lo){a.state.selectingText=!1,wi=1/0,Lo&&(sn(Lo),ue.input.focus()),gn(ue.wrapper.ownerDocument,"mousemove",Io),gn(ue.wrapper.ownerDocument,"mouseup",Ko),Ne.history.lastSelOrigin=null}var Io=Pu(a,function(Lo){Lo.buttons===0||!nn(Lo)?Ao(Lo):Ki(Lo)}),Ko=Pu(a,Ao);a.state.selectingText=Ko,Vt(ue.wrapper.ownerDocument,"mousemove",Io),Vt(ue.wrapper.ownerDocument,"mouseup",Ko)}function Ad(a,b){var ne=b.anchor,te=b.head,ue=ur(a.doc,ne.line);if(hn(ne,te)==0&&ne.sticky==te.sticky)return b;var Ne=xt(ue);if(!Ne)return b;var et=_t(Ne,ne.ch,ne.sticky),yt=Ne[et];if(yt.from!=ne.ch&&yt.to!=ne.ch)return b;var Ft=et+(yt.from==ne.ch==(yt.level!=1)?0:1);if(Ft==0||Ft==Ne.length)return b;var Nt;if(te.line!=ne.line)Nt=(te.line-ne.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ln=_t(Ne,te.ch,te.sticky),Qn=Ln-et||(te.ch-ne.ch)*(yt.level==1?-1:1);Ln==Ft-1||Ln==Ft?Nt=Qn<0:Nt=Qn>0}var Or=Ne[Ft+(Nt?-1:0)],Cr=Nt==(Or.level==1),wi=Cr?Or.from:Or.to,Ki=Cr?"after":"before";return ne.ch==wi&&ne.sticky==Ki?b:new Sr(new $t(ne.line,wi,Ki),te)}function XA(a,b,ne,te){var ue,Ne;if(b.touches)ue=b.touches[0].clientX,Ne=b.touches[0].clientY;else try{ue=b.clientX,Ne=b.clientY}catch(Or){return!1}if(ue>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;te&&sn(b);var et=a.display,yt=et.lineDiv.getBoundingClientRect();if(Ne>yt.bottom||!Fn(a,ne))return Wn(b);Ne-=yt.top-et.viewOffset;for(var Ft=0;Ft<a.display.gutterSpecs.length;++Ft){var Nt=et.gutters.childNodes[Ft];if(Nt&&Nt.getBoundingClientRect().right>=ue){var Ln=vn(a.doc,Ne),Qn=a.display.gutterSpecs[Ft];return an(a,ne,a,Ln,Qn.className,b),Wn(b)}}}function MA(a,b){return XA(a,b,"gutterClick",!0)}function dd(a,b){lu(a.display,b)||YA(a,b)||en(a,b,"contextmenu")||je||a.display.input.onContextMenu(b)}function YA(a,b){return Fn(a,"gutterContextMenu")?XA(a,b,"gutterContextMenu",!1):!1}function Rh(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mu(a)}var fd={toString:function(){return"CodeMirror.Init"}},Vp={},jh={};function mm(a){var b=a.optionHandlers;function ne(te,ue,Ne,et){a.defaults[te]=ue,Ne&&(b[te]=et?function(yt,Ft,Nt){Nt!=fd&&Ne(yt,Ft,Nt)}:Ne)}a.defineOption=ne,a.Init=fd,ne("value","",function(te,ue){return te.setValue(ue)},!0),ne("mode",null,function(te,ue){te.doc.modeOption=ue,Uo(te)},!0),ne("indentUnit",2,Uo,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Po(te),mu(te),Du(te)},!0),ne("lineSeparator",null,function(te,ue){if(te.doc.lineSep=ue,!!ue){var Ne=[],et=te.doc.first;te.doc.iter(function(Ft){for(var Nt=0;;){var Ln=Ft.text.indexOf(ue,Nt);if(Ln==-1)break;Nt=Ln+ue.length,Ne.push($t(et,Ln))}et++});for(var yt=Ne.length-1;yt>=0;yt--)ys(te.doc,ue,Ne[yt],$t(Ne[yt].line,Ne[yt].ch+ue.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ue,Ne){te.state.specialChars=new RegExp(ue.source+(ue.test(" ")?"":"| "),"g"),Ne!=fd&&te.refresh()}),ne("specialCharPlaceholder",ls,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",we?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ue){return te.getInputField().spellcheck=ue},!0),ne("autocorrect",!1,function(te,ue){return te.getInputField().autocorrect=ue},!0),ne("autocapitalize",!1,function(te,ue){return te.getInputField().autocapitalize=ue},!0),ne("rtlMoveVisually",!ke),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){Rh(te),sr(te)},!0),ne("keyMap","default",function(te,ue,Ne){var et=yu(ue),yt=Ne!=fd&&yu(Ne);yt&&yt.detach&&yt.detach(te,et),et.attach&&et.attach(te,yt||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,Xp,!0),ne("gutters",[],function(te,ue){te.display.gutterSpecs=Sn(ue,te.options.lineNumbers),sr(te)},!0),ne("fixedGutter",!0,function(te,ue){te.display.gutters.style.left=ue?Ed(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return kA(te)},!0),ne("scrollbarStyle","native",function(te){kh(te),kA(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ue){te.display.gutterSpecs=Sn(te.options.gutters,ue),sr(te)},!0),ne("firstLineNumber",1,sr,!0),ne("lineNumberFormatter",function(te){return te},sr,!0),ne("showCursorWhenSelecting",!1,Xu,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ue){ue=="nocursor"&&(Wc(te),te.display.input.blur()),te.display.input.readOnlyChanged(ue)}),ne("screenReaderLabel",null,function(te,ue){ue=ue===""?null:ue,te.display.input.screenReaderLabelChanged(ue)}),ne("disableInput",!1,function(te,ue){ue||te.display.input.reset()},!0),ne("dragDrop",!0,gm),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,Xu,!0),ne("singleCursorHeightPerLine",!0,Xu,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Po,!0),ne("addModeClass",!1,Po,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ue){return te.doc.history.undoDepth=ue}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Po,!0),ne("moveInputWithCursor",!0,function(te,ue){ue||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ue){return te.display.input.getField().tabIndex=ue||""}),ne("autofocus",null),ne("direction","ltr",function(te,ue){return te.doc.setDirection(ue)},!0),ne("phrases",null)}function gm(a,b,ne){var te=ne&&ne!=fd;if(!b!=!te){var ue=a.display.dragFunctions,Ne=b?Vt:gn;Ne(a.display.scroller,"dragstart",ue.start),Ne(a.display.scroller,"dragenter",ue.enter),Ne(a.display.scroller,"dragover",ue.over),Ne(a.display.scroller,"dragleave",ue.leave),Ne(a.display.scroller,"drop",ue.drop)}}function Xp(a){a.options.lineWrapping?(Re(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ve(a.display.wrapper,"CodeMirror-wrap"),Zi(a)),nd(a),Du(a),mu(a),setTimeout(function(){return kA(a)},100)}function zl(a,b){var ne=this;if(!(this instanceof zl))return new zl(a,b);this.options=b=b?Et(b):{},Et(Vp,b,!1);var te=b.value;typeof te=="string"?te=new hl(te,b.mode,null,b.lineSeparator,b.direction):b.mode&&(te.modeOption=b.mode),this.doc=te;var ue=new zl.inputStyles[b.inputStyle](this),Ne=this.display=new er(a,te,ue,b);Ne.wrapper.CodeMirror=this,Rh(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),kh(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 De,keySeq:null,specialChars:null},b.autofocus&&!we&&Ne.input.focus(),ze&&Ie<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),Yp(this),ld(),ac(this),this.curOp.forceUpdate=!0,zo(this,te),b.autofocus&&!we||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Cf(ne)},20):Wc(this);for(var et in jh)jh.hasOwnProperty(et)&&jh[et](this,b[et],fd);un(this),b.finishInit&&b.finishInit(this);for(var yt=0;yt<Qh.length;++yt)Qh[yt](this);vA(this),Ue&&b.lineWrapping&&getComputedStyle(Ne.lineDiv).textRendering=="optimizelegibility"&&(Ne.lineDiv.style.textRendering="auto")}zl.defaults=Vp,zl.optionHandlers=jh;function Yp(a){var b=a.display;Vt(b.scroller,"mousedown",Pu(a,cd)),ze&&Ie<11?Vt(b.scroller,"dblclick",Pu(a,function(Ft){if(!en(a,Ft)){var Nt=OA(a,Ft);if(!(!Nt||MA(a,Ft)||lu(a.display,Ft))){sn(Ft);var Ln=a.findWordAt(Nt);os(a.doc,Ln.anchor,Ln.head)}}})):Vt(b.scroller,"dblclick",function(Ft){return en(a,Ft)||sn(Ft)}),Vt(b.scroller,"contextmenu",function(Ft){return dd(a,Ft)}),Vt(b.input.getField(),"contextmenu",function(Ft){b.scroller.contains(Ft.target)||dd(a,Ft)});var ne,te={end:0};function ue(){b.activeTouch&&(ne=setTimeout(function(){return b.activeTouch=null},1e3),te=b.activeTouch,te.end=+new Date)}function Ne(Ft){if(Ft.touches.length!=1)return!1;var Nt=Ft.touches[0];return Nt.radiusX<=1&&Nt.radiusY<=1}function et(Ft,Nt){if(Nt.left==null)return!0;var Ln=Nt.left-Ft.left,Qn=Nt.top-Ft.top;return Ln*Ln+Qn*Qn>20*20}Vt(b.scroller,"touchstart",function(Ft){if(!en(a,Ft)&&!Ne(Ft)&&!MA(a,Ft)){b.input.ensurePolled(),clearTimeout(ne);var Nt=+new Date;b.activeTouch={start:Nt,moved:!1,prev:Nt-te.end<=300?te:null},Ft.touches.length==1&&(b.activeTouch.left=Ft.touches[0].pageX,b.activeTouch.top=Ft.touches[0].pageY)}}),Vt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Vt(b.scroller,"touchend",function(Ft){var Nt=b.activeTouch;if(Nt&&!lu(b,Ft)&&Nt.left!=null&&!Nt.moved&&new Date-Nt.start<300){var Ln=a.coordsChar(b.activeTouch,"page"),Qn;!Nt.prev||et(Nt,Nt.prev)?Qn=new Sr(Ln,Ln):!Nt.prev.prev||et(Nt,Nt.prev.prev)?Qn=a.findWordAt(Ln):Qn=new Sr($t(Ln.line,0),nr(a.doc,$t(Ln.line+1,0))),a.setSelection(Qn.anchor,Qn.head),a.focus(),sn(Ft)}ue()}),Vt(b.scroller,"touchcancel",ue),Vt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(oc(a,b.scroller.scrollTop),mA(a,b.scroller.scrollLeft,!0),an(a,"scroll",a))}),Vt(b.scroller,"mousewheel",function(Ft){return Qr(a,Ft)}),Vt(b.scroller,"DOMMouseScroll",function(Ft){return Qr(a,Ft)}),Vt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(Ft){en(a,Ft)||Lt(Ft)},over:function(Ft){en(a,Ft)||(Vc(a,Ft),Lt(Ft))},start:function(Ft){return Tc(a,Ft)},drop:Pu(a,wA),leave:function(Ft){en(a,Ft)||Jd(a)}};var yt=b.input.getField();Vt(yt,"keyup",function(Ft){return oh.call(a,Ft)}),Vt(yt,"keydown",Pu(a,of)),Vt(yt,"keypress",Pu(a,ah)),Vt(yt,"focus",function(Ft){return Cf(a,Ft)}),Vt(yt,"blur",function(Ft){return Wc(a,Ft)})}var Qh=[];zl.defineInitHook=function(a){return Qh.push(a)};function af(a,b,ne,te){var ue=a.doc,Ne;ne==null&&(ne="add"),ne=="smart"&&(ue.mode.indent?Ne=Tn(a,b).state:ne="prev");var et=a.options.tabSize,yt=ur(ue,b),Ft=Ze(yt.text,null,et);yt.stateAfter&&(yt.stateAfter=null);var Nt=yt.text.match(/^\s*/)[0],Ln;if(!te&&!/\S/.test(yt.text))Ln=0,ne="not";else if(ne=="smart"&&(Ln=ue.mode.indent(Ne,yt.text.slice(Nt.length),yt.text),Ln==Kt||Ln>150)){if(!te)return;ne="prev"}ne=="prev"?b>ue.first?Ln=Ze(ur(ue,b-1).text,null,et):Ln=0:ne=="add"?Ln=Ft+a.options.indentUnit:ne=="subtract"?Ln=Ft-a.options.indentUnit:typeof ne=="number"&&(Ln=Ft+ne),Ln=Math.max(0,Ln);var Qn="",Or=0;if(a.options.indentWithTabs)for(var Cr=Math.floor(Ln/et);Cr;--Cr)Or+=et,Qn+=" ";if(Or<Ln&&(Qn+=pn(Ln-Or)),Qn!=Nt)return ys(ue,Qn,$t(b,0),$t(b,Nt.length),"+input"),yt.stateAfter=null,!0;for(var wi=0;wi<ue.sel.ranges.length;wi++){var Ki=ue.sel.ranges[wi];if(Ki.head.line==b&&Ki.head.ch<Nt.length){var Ao=$t(b,Nt.length);fu(ue,wi,new Sr(Ao,Ao));break}}}var BA=null;function sh(a){BA=a}function lh(a,b,ne,te,ue){var Ne=a.doc;a.display.shift=!1,te||(te=Ne.sel);var et=+new Date-200,yt=ue=="paste"||a.state.pasteIncoming>et,Ft=Ar(b),Nt=null;if(yt&&te.ranges.length>1)if(BA&&BA.text.join(`
|
|
|
`)==b){if(te.ranges.length%BA.text.length==0){Nt=[];for(var Ln=0;Ln<BA.text.length;Ln++)Nt.push(Ne.splitLines(BA.text[Ln]))}}else Ft.length==te.ranges.length&&a.options.pasteLinesPerSelection&&(Nt=En(Ft,function(Io){return[Io]}));for(var Qn=a.curOp.updateInput,Or=te.ranges.length-1;Or>=0;Or--){var Cr=te.ranges[Or],wi=Cr.from(),Ki=Cr.to();Cr.empty()&&(ne&&ne>0?wi=$t(wi.line,wi.ch-ne):a.state.overwrite&&!yt?Ki=$t(Ki.line,Math.min(ur(Ne,Ki.line).text.length,Ki.ch+Pt(Ft).length)):yt&&BA&&BA.lineWise&&BA.text.join(`
|
|
|
`)==Ft.join(`
|
|
|
`)&&(wi=Ki=$t(wi.line,0)));var Ao={from:wi,to:Ki,text:Nt?Nt[Or%Nt.length]:Ft,origin:ue||(yt?"paste":a.state.cutIncoming>et?"cut":"+input")};nl(a.doc,Ao),el(a,"inputRead",a,Ao)}b&&!yt&&uh(a,b),Pc(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Qn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Nf(a,b){var ne=a.clipboardData&&a.clipboardData.getData("Text");if(ne)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&sc(b,function(){return lh(b,ne,0,null,"paste")}),!0}function uh(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ne=a.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ue=ne.ranges[te];if(!(ue.head.ch>100||te&&ne.ranges[te-1].head.line==ue.head.line)){var Ne=a.getModeAt(ue.head),et=!1;if(Ne.electricChars){for(var yt=0;yt<Ne.electricChars.length;yt++)if(b.indexOf(Ne.electricChars.charAt(yt))>-1){et=af(a,ue.head.line,"smart");break}}else Ne.electricInput&&Ne.electricInput.test(ur(a.doc,ue.head.line).text.slice(0,ue.head.ch))&&(et=af(a,ue.head.line,"smart"));et&&el(a,"electricInput",a,ue.head.line)}}}function vp(a){for(var b=[],ne=[],te=0;te<a.doc.sel.ranges.length;te++){var ue=a.doc.sel.ranges[te].head.line,Ne={anchor:$t(ue,0),head:$t(ue+1,0)};ne.push(Ne),b.push(a.getRange(Ne.anchor,Ne.head))}return{text:b,ranges:ne}}function yp(a,b,ne,te){a.setAttribute("autocorrect",ne?"":"off"),a.setAttribute("autocapitalize",te?"":"off"),a.setAttribute("spellcheck",!!b)}function vm(){var a=pt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=pt("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ue?a.style.width="1000px":a.setAttribute("wrap","off"),Se&&(a.style.border="1px solid black"),yp(a),b}function wp(a){var b=a.optionHandlers,ne=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ue){var Ne=this.options,et=Ne[te];Ne[te]==ue&&te!="mode"||(Ne[te]=ue,b.hasOwnProperty(te)&&Pu(this,b[te])(this,ue,et),an(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ue){this.state.keyMaps[ue?"push":"unshift"](yu(te))},removeKeyMap:function(te){for(var ue=this.state.keyMaps,Ne=0;Ne<ue.length;++Ne)if(ue[Ne]==te||ue[Ne].name==te)return ue.splice(Ne,1),!0},addOverlay:lc(function(te,ue){var Ne=te.token?te:a.getMode(this.options,te);if(Ne.startState)throw new Error("Overlays may not be stateful.");on(this.state.overlays,{mode:Ne,modeSpec:te,opaque:ue&&ue.opaque,priority:ue&&ue.priority||0},function(et){return et.priority}),this.state.modeGen++,Du(this)}),removeOverlay:lc(function(te){for(var ue=this.state.overlays,Ne=0;Ne<ue.length;++Ne){var et=ue[Ne].modeSpec;if(et==te||typeof te=="string"&&et.name==te){ue.splice(Ne,1),this.state.modeGen++,Du(this);return}}}),indentLine:lc(function(te,ue,Ne){typeof ue!="string"&&typeof ue!="number"&&(ue==null?ue=this.options.smartIndent?"smart":"prev":ue=ue?"add":"subtract"),Ut(this.doc,te)&&af(this,te,ue,Ne)}),indentSelection:lc(function(te){for(var ue=this.doc.sel.ranges,Ne=-1,et=0;et<ue.length;et++){var yt=ue[et];if(yt.empty())yt.head.line>Ne&&(af(this,yt.head.line,te,!0),Ne=yt.head.line,et==this.doc.sel.primIndex&&Pc(this));else{var Ft=yt.from(),Nt=yt.to(),Ln=Math.max(Ne,Ft.line);Ne=Math.min(this.lastLine(),Nt.line-(Nt.ch?0:1))+1;for(var Qn=Ln;Qn<Ne;++Qn)af(this,Qn,te);var Or=this.doc.sel.ranges;Ft.ch==0&&ue.length==Or.length&&Or[et].from().ch>0&&fu(this.doc,et,new Sr(Ft,Or[et].to()),tt)}}}),getTokenAt:function(te,ue){return kr(this,te,ue)},getLineTokens:function(te,ue){return kr(this,$t(te),ue,!0)},getTokenTypeAt:function(te){te=nr(this.doc,te);var ue=Mr(this,ur(this.doc,te.line)),Ne=0,et=(ue.length-1)/2,yt=te.ch,Ft;if(yt==0)Ft=ue[2];else for(;;){var Nt=Ne+et>>1;if((Nt?ue[Nt*2-1]:0)>=yt)et=Nt;else if(ue[Nt*2+1]<yt)Ne=Nt+1;else{Ft=ue[Nt*2+2];break}}var Ln=Ft?Ft.indexOf("overlay "):-1;return Ln<0?Ft:Ln==0?null:Ft.slice(0,Ln-1)},getModeAt:function(te){var ue=this.doc.mode;return ue.innerMode?a.innerMode(ue,this.getTokenAt(te).state).mode:ue},getHelper:function(te,ue){return this.getHelpers(te,ue)[0]},getHelpers:function(te,ue){var Ne=[];if(!ne.hasOwnProperty(ue))return Ne;var et=ne[ue],yt=this.getModeAt(te);if(typeof yt[ue]=="string")et[yt[ue]]&&Ne.push(et[yt[ue]]);else if(yt[ue])for(var Ft=0;Ft<yt[ue].length;Ft++){var Nt=et[yt[ue][Ft]];Nt&&Ne.push(Nt)}else yt.helperType&&et[yt.helperType]?Ne.push(et[yt.helperType]):et[yt.name]&&Ne.push(et[yt.name]);for(var Ln=0;Ln<et._global.length;Ln++){var Qn=et._global[Ln];Qn.pred(yt,this)&&ut(Ne,Qn.val)==-1&&Ne.push(Qn.val)}return Ne},getStateAfter:function(te,ue){var Ne=this.doc;return te=hr(Ne,te==null?Ne.first+Ne.size-1:te),Tn(this,te+1,ue).state},cursorCoords:function(te,ue){var Ne,et=this.doc.sel.primary();return te==null?Ne=et.head:typeof te=="object"?Ne=nr(this.doc,te):Ne=te?et.from():et.to(),Eu(this,Ne,ue||"page")},charCoords:function(te,ue){return Xl(this,nr(this.doc,te),ue||"page")},coordsChar:function(te,ue){return te=$A(this,te,ue||"page"),Rs(this,te.left,te.top)},lineAtHeight:function(te,ue){return te=$A(this,{top:te,left:0},ue||"page").top,vn(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ue,Ne){var et=!1,yt;if(typeof te=="number"){var Ft=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>Ft&&(te=Ft,et=!0),yt=ur(this.doc,te)}else yt=te;return KA(this,yt,{top:0,left:0},ue||"page",Ne||et).top+(et?this.doc.height-Mo(yt):0)},defaultTextHeight:function(){return yc(this.display)},defaultCharWidth:function(){return tA(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ue,Ne,et,yt){var Ft=this.display;te=Eu(this,nr(this.doc,te));var Nt=te.bottom,Ln=te.left;if(ue.style.position="absolute",ue.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ue),Ft.sizer.appendChild(ue),et=="over")Nt=te.top;else if(et=="above"||et=="near"){var Qn=Math.max(Ft.wrapper.clientHeight,this.doc.height),Or=Math.max(Ft.sizer.clientWidth,Ft.lineSpace.clientWidth);(et=="above"||te.bottom+ue.offsetHeight>Qn)&&te.top>ue.offsetHeight?Nt=te.top-ue.offsetHeight:te.bottom+ue.offsetHeight<=Qn&&(Nt=te.bottom),Ln+ue.offsetWidth>Or&&(Ln=Or-ue.offsetWidth)}ue.style.top=Nt+"px",ue.style.left=ue.style.right="",yt=="right"?(Ln=Ft.sizer.clientWidth-ue.offsetWidth,ue.style.right="0px"):(yt=="left"?Ln=0:yt=="middle"&&(Ln=(Ft.sizer.clientWidth-ue.offsetWidth)/2),ue.style.left=Ln+"px"),Ne&&Kp(this,{left:Ln,top:Nt,right:Ln+ue.offsetWidth,bottom:Nt+ue.offsetHeight})},triggerOnKeyDown:lc(of),triggerOnKeyPress:lc(ah),triggerOnKeyUp:oh,triggerOnMouseDown:lc(cd),execCommand:function(te){if(VA.hasOwnProperty(te))return VA[te].call(null,this)},triggerElectric:lc(function(te){uh(this,te)}),findPosH:function(te,ue,Ne,et){var yt=1;ue<0&&(yt=-1,ue=-ue);for(var Ft=nr(this.doc,te),Nt=0;Nt<ue&&(Ft=ch(this.doc,Ft,yt,Ne,et),!Ft.hitSide);++Nt);return Ft},moveH:lc(function(te,ue){var Ne=this;this.extendSelectionsBy(function(et){return Ne.display.shift||Ne.doc.extend||et.empty()?ch(Ne.doc,et.head,te,ue,Ne.options.rtlMoveVisually):te<0?et.from():et.to()},jt)}),deleteH:lc(function(te,ue){var Ne=this.doc.sel,et=this.doc;Ne.somethingSelected()?et.replaceSelection("",null,"+delete"):kc(this,function(yt){var Ft=ch(et,yt.head,te,ue,!1);return te<0?{from:Ft,to:yt.head}:{from:yt.head,to:Ft}})}),findPosV:function(te,ue,Ne,et){var yt=1,Ft=et;ue<0&&(yt=-1,ue=-ue);for(var Nt=nr(this.doc,te),Ln=0;Ln<ue;++Ln){var Qn=Eu(this,Nt,"div");if(Ft==null?Ft=Qn.left:Qn.left=Ft,Nt=Jp(this,Qn,yt,Ne),Nt.hitSide)break}return Nt},moveV:lc(function(te,ue){var Ne=this,et=this.doc,yt=[],Ft=!this.display.shift&&!et.extend&&et.sel.somethingSelected();if(et.extendSelectionsBy(function(Ln){if(Ft)return te<0?Ln.from():Ln.to();var Qn=Eu(Ne,Ln.head,"div");Ln.goalColumn!=null&&(Qn.left=Ln.goalColumn),yt.push(Qn.left);var Or=Jp(Ne,Qn,te,ue);return ue=="page"&&Ln==et.sel.primary()&&th(Ne,Xl(Ne,Or,"div").top-Qn.top),Or},jt),yt.length)for(var Nt=0;Nt<et.sel.ranges.length;Nt++)et.sel.ranges[Nt].goalColumn=yt[Nt]}),findWordAt:function(te){var ue=this.doc,Ne=ur(ue,te.line).text,et=te.ch,yt=te.ch;if(Ne){var Ft=this.getHelper(te,"wordChars");(te.sticky=="before"||yt==Ne.length)&&et?--et:++yt;for(var Nt=Ne.charAt(et),Ln=se(Nt,Ft)?function(Qn){return se(Qn,Ft)}:/\s/.test(Nt)?function(Qn){return/\s/.test(Qn)}:function(Qn){return!/\s/.test(Qn)&&!se(Qn)};et>0&&Ln(Ne.charAt(et-1));)--et;for(;yt<Ne.length&&Ln(Ne.charAt(yt));)++yt}return new Sr($t(te.line,et),$t(te.line,yt))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Re(this.display.cursorDiv,"CodeMirror-overwrite"):Ve(this.display.cursorDiv,"CodeMirror-overwrite"),an(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:lc(function(te,ue){id(this,te,ue)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-ia(this)-this.display.barHeight,width:te.scrollWidth-ia(this)-this.display.barWidth,clientHeight:ks(this),clientWidth:Ta(this)}},scrollIntoView:lc(function(te,ue){te==null?(te={from:this.doc.sel.primary().head,to:null},ue==null&&(ue=this.options.cursorScrollMargin)):typeof te=="number"?te={from:$t(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ue||0,te.from.line!=null?$p(this,te):Ic(this,te.from,te.to,te.margin)}),setSize:lc(function(te,ue){var Ne=this,et=function(Ft){return typeof Ft=="number"||/^\d+$/.test(String(Ft))?Ft+"px":Ft};te!=null&&(this.display.wrapper.style.width=et(te)),ue!=null&&(this.display.wrapper.style.height=et(ue)),this.options.lineWrapping&&vl(this);var yt=this.display.viewFrom;this.doc.iter(yt,this.display.viewTo,function(Ft){if(Ft.widgets){for(var Nt=0;Nt<Ft.widgets.length;Nt++)if(Ft.widgets[Nt].noHScroll){DA(Ne,yt,"widget");break}}++yt}),this.curOp.forceUpdate=!0,an(this,"refresh",this)}),operation:function(te){return sc(this,te)},startOperation:function(){return ac(this)},endOperation:function(){return vA(this)},refresh:lc(function(){var te=this.display.cachedTextHeight;Du(this),this.curOp.forceUpdate=!0,mu(this),id(this,this.doc.scrollLeft,this.doc.scrollTop),bt(this.display),(te==null||Math.abs(te-yc(this.display))>.5||this.options.lineWrapping)&&nd(this),an(this,"refresh",this)}),swapDoc:lc(function(te){var ue=this.doc;return ue.cm=null,this.state.selectingText&&this.state.selectingText(),zo(this,te),mu(this),this.display.input.reset(),id(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,el(this,"swapDoc",this,ue),ue}),phrase:function(te){var ue=this.options.phrases;return ue&&Object.prototype.hasOwnProperty.call(ue,te)?ue[te]:te},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}},Rt(a),a.registerHelper=function(te,ue,Ne){ne.hasOwnProperty(te)||(ne[te]=a[te]={_global:[]}),ne[te][ue]=Ne},a.registerGlobalHelper=function(te,ue,Ne,et){a.registerHelper(te,ue,et),ne[te]._global.push({pred:Ne,val:et})}}function ch(a,b,ne,te,ue){var Ne=b,et=ne,yt=ur(a,b.line),Ft=ue&&a.direction=="rtl"?-ne:ne;function Nt(){var Ko=b.line+Ft;return Ko<a.first||Ko>=a.first+a.size?!1:(b=new $t(Ko,b.ch,b.sticky),yt=ur(a,Ko))}function Ln(Ko){var Lo;if(te=="codepoint"){var Aa=yt.text.charCodeAt(b.ch+(te>0?0:-1));isNaN(Aa)?Lo=null:Lo=new $t(b.line,Math.max(0,Math.min(yt.text.length,b.ch+ne*(Aa>=55296&&Aa<56320?2:1))),-ne)}else ue?Lo=If(a.cm,yt,b,ne):Lo=Ff(yt,b,ne);if(Lo==null)if(!Ko&&Nt())b=tf(ue,a.cm,yt,b.line,Ft);else return!1;else b=Lo;return!0}if(te=="char"||te=="codepoint")Ln();else if(te=="column")Ln(!0);else if(te=="word"||te=="group")for(var Qn=null,Or=te=="group",Cr=a.cm&&a.cm.getHelper(b,"wordChars"),wi=!0;!(ne<0&&!Ln(!wi));wi=!1){var Ki=yt.text.charAt(b.ch)||`
|
|
|
`,Ao=se(Ki,Cr)?"w":Or&&Ki==`
|
|
|
`?"n":!Or||/\s/.test(Ki)?null:"p";if(Or&&!wi&&!Ao&&(Ao="s"),Qn&&Qn!=Ao){ne<0&&(ne=1,Ln(),b.sticky="after");break}if(Ao&&(Qn=Ao),ne>0&&!Ln(!wi))break}var Io=gu(a,b,Ne,et,!0);return Nn(Ne,Io)&&(Io.hitSide=!0),Io}function Jp(a,b,ne,te){var ue=a.doc,Ne=b.left,et;if(te=="page"){var yt=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ft=Math.max(yt-.5*yc(a.display),3);et=(ne>0?b.bottom:b.top)+ne*Ft}else te=="line"&&(et=ne>0?b.bottom+3:b.top-3);for(var Nt;Nt=Rs(a,Ne,et),!!Nt.outside;){if(ne<0?et<=0:et>=ue.height){Nt.hitSide=!0;break}et+=ne*5}return Nt}var bl=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new De,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bl.prototype.init=function(a){var b=this,ne=this,te=ne.cm,ue=ne.div=a.lineDiv;yp(ue,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function Ne(yt){for(var Ft=yt.target;Ft;Ft=Ft.parentNode){if(Ft==ue)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ft.className))break}return!1}Vt(ue,"paste",function(yt){!Ne(yt)||en(te,yt)||Nf(yt,te)||Ie<=11&&setTimeout(Pu(te,function(){return b.updateFromDOM()}),20)}),Vt(ue,"compositionstart",function(yt){b.composing={data:yt.data,done:!1}}),Vt(ue,"compositionupdate",function(yt){b.composing||(b.composing={data:yt.data,done:!1})}),Vt(ue,"compositionend",function(yt){b.composing&&(yt.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Vt(ue,"touchstart",function(){return ne.forceCompositionEnd()}),Vt(ue,"input",function(){b.composing||b.readFromDOMSoon()});function et(yt){if(!(!Ne(yt)||en(te,yt))){if(te.somethingSelected())sh({lineWise:!1,text:te.getSelections()}),yt.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Ft=vp(te);sh({lineWise:!0,text:Ft.text}),yt.type=="cut"&&te.operation(function(){te.setSelections(Ft.ranges,0,tt),te.replaceSelection("",null,"cut")})}else return;if(yt.clipboardData){yt.clipboardData.clearData();var Nt=BA.text.join(`
|
|
|
`);if(yt.clipboardData.setData("Text",Nt),yt.clipboardData.getData("Text")==Nt){yt.preventDefault();return}}var Ln=vm(),Qn=Ln.firstChild;te.display.lineSpace.insertBefore(Ln,te.display.lineSpace.firstChild),Qn.value=BA.text.join(`
|
|
|
`);var Or=document.activeElement;it(Qn),setTimeout(function(){te.display.lineSpace.removeChild(Ln),Or.focus(),Or==ue&&ne.showPrimarySelection()},50)}}Vt(ue,"copy",et),Vt(ue,"cut",et)},bl.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},bl.prototype.prepareSelection=function(){var a=hA(this.cm,!1);return a.focus=document.activeElement==this.div,a},bl.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},bl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bl.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,ne=b.doc.sel.primary(),te=ne.from(),ue=ne.to();if(b.display.viewTo==b.display.viewFrom||te.line>=b.display.viewTo||ue.line<b.display.viewFrom){a.removeAllRanges();return}var Ne=JA(b,a.anchorNode,a.anchorOffset),et=JA(b,a.focusNode,a.focusOffset);if(!(Ne&&!Ne.bad&&et&&!et.bad&&hn(Ai(Ne,et),te)==0&&hn(zr(Ne,et),ue)==0)){var yt=b.display.view,Ft=te.line>=b.display.viewFrom&&Pd(b,te)||{node:yt[0].measure.map[2],offset:0},Nt=ue.line<b.display.viewTo&&Pd(b,ue);if(!Nt){var Ln=yt[yt.length-1].measure,Qn=Ln.maps?Ln.maps[Ln.maps.length-1]:Ln.map;Nt={node:Qn[Qn.length-1],offset:Qn[Qn.length-2]-Qn[Qn.length-3]}}if(!Ft||!Nt){a.removeAllRanges();return}var Or=a.rangeCount&&a.getRangeAt(0),Cr;try{Cr=He(Ft.node,Ft.offset,Nt.offset,Nt.node)}catch(wi){}Cr&&(!x&&b.state.focused?(a.collapse(Ft.node,Ft.offset),Cr.collapsed||(a.removeAllRanges(),a.addRange(Cr))):(a.removeAllRanges(),a.addRange(Cr)),Or&&a.anchorNode==null?a.addRange(Or):x&&this.startGracePeriod()),this.rememberSelection()}},bl.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},bl.prototype.showMultipleSelections=function(a){ot(this.cm.display.cursorDiv,a.cursors),ot(this.cm.display.selectionDiv,a.selection)},bl.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},bl.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return ht(this.div,b)},bl.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bl.prototype.blur=function(){this.div.blur()},bl.prototype.getField=function(){return this.div},bl.prototype.supportsTouch=function(){return!0},bl.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():sc(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},bl.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},bl.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(Te&&xe&&this.cm.display.gutterSpecs.length&&ym(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=JA(b,a.anchorNode,a.anchorOffset),te=JA(b,a.focusNode,a.focusOffset);ne&&te&&sc(b,function(){No(b.doc,yi(ne,te),tt),(ne.bad||te.bad)&&(b.curOp.selectionChanged=!0)})}}},bl.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,ne=a.doc.sel.primary(),te=ne.from(),ue=ne.to();if(te.ch==0&&te.line>a.firstLine()&&(te=$t(te.line-1,ur(a.doc,te.line-1).length)),ue.ch==ur(a.doc,ue.line).text.length&&ue.line<a.lastLine()&&(ue=$t(ue.line+1,0)),te.line<b.viewFrom||ue.line>b.viewTo-1)return!1;var Ne,et,yt;te.line==b.viewFrom||(Ne=fA(a,te.line))==0?(et=gt(b.view[0].line),yt=b.view[0].node):(et=gt(b.view[Ne].line),yt=b.view[Ne-1].node.nextSibling);var Ft=fA(a,ue.line),Nt,Ln;if(Ft==b.view.length-1?(Nt=b.viewTo-1,Ln=b.lineDiv.lastChild):(Nt=gt(b.view[Ft+1].line)-1,Ln=b.view[Ft+1].node.previousSibling),!yt)return!1;for(var Qn=a.doc.splitLines(Td(a,yt,Ln,et,Nt)),Or=Tr(a.doc,$t(et,0),$t(Nt,ur(a.doc,Nt).text.length));Qn.length>1&&Or.length>1;)if(Pt(Qn)==Pt(Or))Qn.pop(),Or.pop(),Nt--;else if(Qn[0]==Or[0])Qn.shift(),Or.shift(),et++;else break;for(var Cr=0,wi=0,Ki=Qn[0],Ao=Or[0],Io=Math.min(Ki.length,Ao.length);Cr<Io&&Ki.charCodeAt(Cr)==Ao.charCodeAt(Cr);)++Cr;for(var Ko=Pt(Qn),Lo=Pt(Or),Aa=Math.min(Ko.length-(Qn.length==1?Cr:0),Lo.length-(Or.length==1?Cr:0));wi<Aa&&Ko.charCodeAt(Ko.length-wi-1)==Lo.charCodeAt(Lo.length-wi-1);)++wi;if(Qn.length==1&&Or.length==1&&et==te.line)for(;Cr&&Cr>te.ch&&Ko.charCodeAt(Ko.length-wi-1)==Lo.charCodeAt(Lo.length-wi-1);)Cr--,wi++;Qn[Qn.length-1]=Ko.slice(0,Ko.length-wi).replace(/^\u200b+/,""),Qn[0]=Qn[0].slice(Cr).replace(/\u200b+$/,"");var ka=$t(et,Cr),Ca=$t(Nt,Or.length?Pt(Or).length-wi:0);if(Qn.length>1||Qn[0]||hn(ka,Ca))return ys(a.doc,Qn,ka,Ca,"+input"),!0},bl.prototype.ensurePolled=function(){this.forceCompositionEnd()},bl.prototype.reset=function(){this.forceCompositionEnd()},bl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},bl.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},bl.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&sc(this.cm,function(){return Du(a.cm)})},bl.prototype.setUneditable=function(a){a.contentEditable="false"},bl.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Pu(this.cm,lh)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},bl.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},bl.prototype.onContextMenu=function(){},bl.prototype.resetPosition=function(){},bl.prototype.needsContentAttribute=!0;function Pd(a,b){var ne=rc(a,b.line);if(!ne||ne.hidden)return null;var te=ur(a.doc,b.line),ue=Hs(ne,te,b.line),Ne=xt(te,a.doc.direction),et="left";if(Ne){var yt=_t(Ne,b.ch);et=yt%2?"right":"left"}var Ft=_A(ue.map,b.ch,et);return Ft.offset=Ft.collapse=="right"?Ft.end:Ft.start,Ft}function ym(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function Kl(a,b){return b&&(a.bad=!0),a}function Td(a,b,ne,te,ue){var Ne="",et=!1,yt=a.doc.lineSeparator(),Ft=!1;function Nt(Cr){return function(wi){return wi.id==Cr}}function Ln(){et&&(Ne+=yt,Ft&&(Ne+=yt),et=Ft=!1)}function Qn(Cr){Cr&&(Ln(),Ne+=Cr)}function Or(Cr){if(Cr.nodeType==1){var wi=Cr.getAttribute("cm-text");if(wi){Qn(wi);return}var Ki=Cr.getAttribute("cm-marker"),Ao;if(Ki){var Io=a.findMarks($t(te,0),$t(ue+1,0),Nt(+Ki));Io.length&&(Ao=Io[0].find(0))&&Qn(Tr(a.doc,Ao.from,Ao.to).join(yt));return}if(Cr.getAttribute("contenteditable")=="false")return;var Ko=/^(pre|div|p|li|table|br)$/i.test(Cr.nodeName);if(!/^br$/i.test(Cr.nodeName)&&Cr.textContent.length==0)return;Ko&&Ln();for(var Lo=0;Lo<Cr.childNodes.length;Lo++)Or(Cr.childNodes[Lo]);/^(pre|p)$/i.test(Cr.nodeName)&&(Ft=!0),Ko&&(et=!0)}else Cr.nodeType==3&&Qn(Cr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Or(b),b!=ne;)b=b.nextSibling,Ft=!1;return Ne}function JA(a,b,ne){var te;if(b==a.display.lineDiv){if(te=a.display.lineDiv.childNodes[ne],!te)return Kl(a.clipPos($t(a.display.viewTo-1)),!0);b=null,ne=0}else for(te=b;;te=te.parentNode){if(!te||te==a.display.lineDiv)return null;if(te.parentNode&&te.parentNode==a.display.lineDiv)break}for(var ue=0;ue<a.display.view.length;ue++){var Ne=a.display.view[ue];if(Ne.node==te)return hd(Ne,b,ne)}}function hd(a,b,ne){var te=a.text.firstChild,ue=!1;if(!b||!ht(te,b))return Kl($t(gt(a.line),0),!0);if(b==te&&(ue=!0,b=te.childNodes[ne],ne=0,!b)){var Ne=a.rest?Pt(a.rest):a.line;return Kl($t(gt(Ne),Ne.text.length),ue)}var et=b.nodeType==3?b:null,yt=b;for(!et&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(et=b.firstChild,ne&&(ne=et.nodeValue.length));yt.parentNode!=te;)yt=yt.parentNode;var Ft=a.measure,Nt=Ft.maps;function Ln(Ao,Io,Ko){for(var Lo=-1;Lo<(Nt?Nt.length:0);Lo++)for(var Aa=Lo<0?Ft.map:Nt[Lo],ka=0;ka<Aa.length;ka+=3){var Ca=Aa[ka+2];if(Ca==Ao||Ca==Io){var Ha=gt(Lo<0?a.line:a.rest[Lo]),Ll=Aa[ka]+Ko;return(Ko<0||Ca!=Ao)&&(Ll=Aa[ka+(Ko?1:0)]),$t(Ha,Ll)}}}var Qn=Ln(et,yt,ne);if(Qn)return Kl(Qn,ue);for(var Or=yt.nextSibling,Cr=et?et.nodeValue.length-ne:0;Or;Or=Or.nextSibling){if(Qn=Ln(Or,Or.firstChild,0),Qn)return Kl($t(Qn.line,Qn.ch-Cr),ue);Cr+=Or.textContent.length}for(var wi=yt.previousSibling,Ki=ne;wi;wi=wi.previousSibling){if(Qn=Ln(wi,wi.firstChild,-1),Qn)return Kl($t(Qn.line,Qn.ch+Ki),ue);Ki+=wi.textContent.length}}var Il=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new De,this.hasSelection=!1,this.composing=null};Il.prototype.init=function(a){var b=this,ne=this,te=this.cm;this.createField(a);var ue=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Se&&(ue.style.width="0px"),Vt(ue,"input",function(){ze&&Ie>=9&&b.hasSelection&&(b.hasSelection=null),ne.poll()}),Vt(ue,"paste",function(et){en(te,et)||Nf(et,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function Ne(et){if(!en(te,et)){if(te.somethingSelected())sh({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var yt=vp(te);sh({lineWise:!0,text:yt.text}),et.type=="cut"?te.setSelections(yt.ranges,null,tt):(ne.prevInput="",ue.value=yt.text.join(`
|
|
|
`),it(ue))}else return;et.type=="cut"&&(te.state.cutIncoming=+new Date)}}Vt(ue,"cut",Ne),Vt(ue,"copy",Ne),Vt(a.scroller,"paste",function(et){if(!(lu(a,et)||en(te,et))){if(!ue.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var yt=new Event("paste");yt.clipboardData=et.clipboardData,ue.dispatchEvent(yt)}}),Vt(a.lineSpace,"selectstart",function(et){lu(a,et)||sn(et)}),Vt(ue,"compositionstart",function(){var et=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:et,range:te.markText(et,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Vt(ue,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},Il.prototype.createField=function(a){this.wrapper=vm(),this.textarea=this.wrapper.firstChild},Il.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Il.prototype.prepareSelection=function(){var a=this.cm,b=a.display,ne=a.doc,te=hA(a);if(a.options.moveInputWithCursor){var ue=Eu(a,ne.sel.primary().head,"div"),Ne=b.wrapper.getBoundingClientRect(),et=b.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ue.top+et.top-Ne.top)),te.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ue.left+et.left-Ne.left))}return te},Il.prototype.showSelection=function(a){var b=this.cm,ne=b.display;ot(ne.cursorDiv,a.cursors),ot(ne.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Il.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var ne=b.getSelection();this.textarea.value=ne,b.state.focused&&it(this.textarea),ze&&Ie>=9&&(this.hasSelection=ne)}else a||(this.prevInput=this.textarea.value="",ze&&Ie>=9&&(this.hasSelection=null))}},Il.prototype.getField=function(){return this.textarea},Il.prototype.supportsTouch=function(){return!1},Il.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!we||_e()!=this.textarea))try{this.textarea.focus()}catch(a){}},Il.prototype.blur=function(){this.textarea.blur()},Il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Il.prototype.receivedFocus=function(){this.slowPoll()},Il.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Il.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function ne(){var te=b.poll();!te&&!a?(a=!0,b.polling.set(60,ne)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,ne)},Il.prototype.poll=function(){var a=this,b=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!b.state.focused||Ir(ne)&&!te&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ue=ne.value;if(ue==te&&!b.somethingSelected())return!1;if(ze&&Ie>=9&&this.hasSelection===ue||Ce&&/[\uf700-\uf7ff]/.test(ue))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var Ne=ue.charCodeAt(0);if(Ne==8203&&!te&&(te="\u200B"),Ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var et=0,yt=Math.min(te.length,ue.length);et<yt&&te.charCodeAt(et)==ue.charCodeAt(et);)++et;return sc(b,function(){lh(b,ue.slice(et),te.length-et,null,a.composing?"*compose":null),ue.length>1e3||ue.indexOf(`
|
|
|
`)>-1?ne.value=a.prevInput="":a.prevInput=ue,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Il.prototype.onKeyPress=function(){ze&&Ie>=9&&(this.hasSelection=null),this.fastPoll()},Il.prototype.onContextMenu=function(a){var b=this,ne=b.cm,te=ne.display,ue=b.textarea;b.contextMenuPending&&b.contextMenuPending();var Ne=OA(ne,a),et=te.scroller.scrollTop;if(!Ne||oe)return;var yt=ne.options.resetSelectionOnContextMenu;yt&&ne.doc.sel.contains(Ne)==-1&&Pu(ne,No)(ne.doc,yi(Ne),tt);var Ft=ue.style.cssText,Nt=b.wrapper.style.cssText,Ln=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ue.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-Ln.top-5)+"px; left: "+(a.clientX-Ln.left-5)+`px;
|
|
|
z-index: 1000; background: `+(ze?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Qn;Ue&&(Qn=window.scrollY),te.input.focus(),Ue&&window.scrollTo(null,Qn),te.input.reset(),ne.somethingSelected()||(ue.value=b.prevInput=" "),b.contextMenuPending=Cr,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function Or(){if(ue.selectionStart!=null){var Ki=ne.somethingSelected(),Ao="\u200B"+(Ki?ue.value:"");ue.value="\u21DA",ue.value=Ao,b.prevInput=Ki?"":"\u200B",ue.selectionStart=1,ue.selectionEnd=Ao.length,te.selForContextMenu=ne.doc.sel}}function Cr(){if(b.contextMenuPending==Cr&&(b.contextMenuPending=!1,b.wrapper.style.cssText=Nt,ue.style.cssText=Ft,ze&&Ie<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=et),ue.selectionStart!=null)){(!ze||ze&&Ie<9)&&Or();var Ki=0,Ao=function(){te.selForContextMenu==ne.doc.sel&&ue.selectionStart==0&&ue.selectionEnd>0&&b.prevInput=="\u200B"?Pu(ne,ta)(ne):Ki++<10?te.detectingSelectAll=setTimeout(Ao,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Ao,200)}}if(ze&&Ie>=9&&Or(),je){Lt(a);var wi=function(){gn(window,"mouseup",wi),setTimeout(Cr,20)};Vt(window,"mouseup",wi)}else setTimeout(Cr,50)},Il.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Il.prototype.setUneditable=function(){},Il.prototype.needsContentAttribute=!1;function Ah(a,b){if(b=b?Et(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var ne=_e();b.autofocus=ne==a||a.getAttribute("autofocus")!=null&&ne==document.body}function te(){a.value=yt.getValue()}var ue;if(a.form&&(Vt(a.form,"submit",te),!b.leaveSubmitMethodAlone)){var Ne=a.form;ue=Ne.submit;try{var et=Ne.submit=function(){te(),Ne.submit=ue,Ne.submit(),Ne.submit=et}}catch(Ft){}}b.finishInit=function(Ft){Ft.save=te,Ft.getTextArea=function(){return a},Ft.toTextArea=function(){Ft.toTextArea=isNaN,te(),a.parentNode.removeChild(Ft.getWrapperElement()),a.style.display="",a.form&&(gn(a.form,"submit",te),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ue))}},a.style.display="none";var yt=zl(function(Ft){return a.parentNode.insertBefore(Ft,a.nextSibling)},b);return yt}function pd(a){a.off=gn,a.on=Vt,a.wheelEventPixels=jr,a.Doc=hl,a.splitLines=Ar,a.countColumn=Ze,a.findColumn=An,a.isWordChar=ee,a.Pass=Kt,a.signal=an,a.Line=Wo,a.changeEnd=to,a.scrollbarModel=Id,a.Pos=$t,a.cmpPos=hn,a.modes=lr,a.mimeModes=$n,a.resolveMode=_r,a.getMode=mi,a.modeExtensions=di,a.extendMode=fi,a.copyState=Ti,a.startState=io,a.innerMode=xi,a.commands=VA,a.keyMap=Fu,a.keyName=GA,a.isModifierKey=Sf,a.lookupKey=ZA,a.normalizeKeyMap=Hu,a.StringStream=Xi,a.SharedTextMarker=fl,a.TextMarker=Mu,a.LineWidget=Is,a.e_preventDefault=sn,a.e_stopPropagation=_n,a.e_stop=Lt,a.addClass=Re,a.contains=ht,a.rmClass=Ve,a.keyNames=ms}mm(zl),wp(zl);var qp="iter insert remove copy getEditor constructor".split(" ");for(var Hh in hl.prototype)hl.prototype.hasOwnProperty(Hh)&&ut(qp,Hh)<0&&(zl.prototype[Hh]=function(a){return function(){return a.apply(this.doc,arguments)}}(hl.prototype[Hh]));return Rt(hl),zl.inputStyles={textarea:Il,contenteditable:bl},zl.defineMode=function(a){!zl.defaults.mode&&a!="null"&&(zl.defaults.mode=a),br.apply(this,arguments)},zl.defineMIME=Br,zl.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),zl.defineMIME("text/plain","null"),zl.defineExtension=function(a,b){zl.prototype[a]=b},zl.defineDocExtension=function(a,b){hl.prototype[a]=b},zl.fromTextArea=Ah,pd(zl),zl.version="5.58.2",zl})},25419:function(qn,Mt,ae){(function(x){x(ae(89780),ae(15525),ae(98101))})(function(x){"use strict";x.defineMode("markdown",function(dt,Le){var qe=x.getMode(dt,"text/html"),ze=qe.name=="null";function Ie(Ze){if(x.findModeByName){var De=x.findModeByName(Ze);De&&(Ze=De.mime||De.mimes[0])}var ut=x.getMode(dt,Ze);return ut.name=="null"?null:ut}Le.highlightFormatting===void 0&&(Le.highlightFormatting=!1),Le.maxBlockquoteDepth===void 0&&(Le.maxBlockquoteDepth=0),Le.taskLists===void 0&&(Le.taskLists=!1),Le.strikethrough===void 0&&(Le.strikethrough=!1),Le.emoji===void 0&&(Le.emoji=!1),Le.fencedCodeBlockHighlighting===void 0&&(Le.fencedCodeBlockHighlighting=!0),Le.fencedCodeBlockDefaultMode===void 0&&(Le.fencedCodeBlockDefaultMode="text/plain"),Le.xml===void 0&&(Le.xml=!0),Le.tokenTypeOverrides===void 0&&(Le.tokenTypeOverrides={});var Ue={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 he in Ue)Ue.hasOwnProperty(he)&&Le.tokenTypeOverrides[he]&&(Ue[he]=Le.tokenTypeOverrides[he]);var xe=/^([*\-_])(?:\s*\1){2,}\s*$/,oe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Oe=/^\[(x| )\](?=\s)/i,ve=Le.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Me=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Se=/^[^#!\[\]*_\\<>` "'(~:]+/,Te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,we=/^\s*\[[^\]]+?\]:.*$/,Ce=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Ee=" ";function ke(Ze,De,ut){return De.f=De.inline=ut,ut(Ze,De)}function Ke(Ze,De,ut){return De.f=De.block=ut,ut(Ze,De)}function Qe(Ze){return!Ze||!/\S/.test(Ze.string)}function je(Ze){if(Ze.linkTitle=!1,Ze.linkHref=!1,Ze.linkText=!1,Ze.em=!1,Ze.strong=!1,Ze.strikethrough=!1,Ze.quote=0,Ze.indentedCode=!1,Ze.f==Ve){var De=ze;if(!De){var ut=x.innerMode(qe,Ze.htmlState);De=ut.mode.name=="xml"&&ut.state.tagStart===null&&!ut.state.context&&ut.state.tokenize.isInText}De&&(Ze.f=Ct,Ze.block=Je,Ze.htmlState=null)}return Ze.trailingSpace=0,Ze.trailingSpaceNewLine=!1,Ze.prevLine=Ze.thisLine,Ze.thisLine={stream:null},null}function Je(Ze,De){var ut=Ze.column()===De.indentation,Zt=Qe(De.prevLine.stream),Kt=De.indentedCode,tt=De.prevLine.hr,Dt=De.list!==!1,jt=(De.listStack[De.listStack.length-1]||0)+3;De.indentedCode=!1;var An=De.indentation;if(De.indentationDiff===null&&(De.indentationDiff=De.indentation,Dt)){for(De.list=null;An<De.listStack[De.listStack.length-1];)De.listStack.pop(),De.listStack.length?De.indentation=De.listStack[De.listStack.length-1]:De.list=!1;De.list!==!1&&(De.indentationDiff=An-De.listStack[De.listStack.length-1])}var kt=!Zt&&!tt&&!De.prevLine.header&&(!Dt||!Kt)&&!De.prevLine.fencedCodeEnd,pn=(De.list===!1||tt||Zt)&&De.indentation<=jt&&Ze.match(xe),Pt=null;if(De.indentationDiff>=4&&(Kt||De.prevLine.fencedCodeEnd||De.prevLine.header||Zt))return Ze.skipToEnd(),De.indentedCode=!0,Ue.code;if(Ze.eatSpace())return null;if(ut&&De.indentation<=jt&&(Pt=Ze.match(ve))&&Pt[1].length<=6)return De.quote=0,De.header=Pt[1].length,De.thisLine.header=!0,Le.highlightFormatting&&(De.formatting="header"),De.f=De.inline,ot(De);if(De.indentation<=jt&&Ze.eat(">"))return De.quote=ut?1:De.quote+1,Le.highlightFormatting&&(De.formatting="quote"),Ze.eatSpace(),ot(De);if(!pn&&!De.setext&&ut&&De.indentation<=jt&&(Pt=Ze.match(oe))){var En=Pt[1]?"ol":"ul";return De.indentation=An+Ze.current().length,De.list=!0,De.quote=0,De.listStack.push(De.indentation),De.em=!1,De.strong=!1,De.code=!1,De.strikethrough=!1,Le.taskLists&&Ze.match(Oe,!1)&&(De.taskList=!0),De.f=De.inline,Le.highlightFormatting&&(De.formatting=["list","list-"+En]),ot(De)}else{if(ut&&De.indentation<=jt&&(Pt=Ze.match(Te,!0)))return De.quote=0,De.fencedEndRE=new RegExp(Pt[1]+"+ *$"),De.localMode=Le.fencedCodeBlockHighlighting&&Ie(Pt[2]||Le.fencedCodeBlockDefaultMode),De.localMode&&(De.localState=x.startState(De.localMode)),De.f=De.block=ct,Le.highlightFormatting&&(De.formatting="code-block"),De.code=-1,ot(De);if(De.setext||(!kt||!Dt)&&!De.quote&&De.list===!1&&!De.code&&!pn&&!we.test(Ze.string)&&(Pt=Ze.lookAhead(1))&&(Pt=Pt.match(Me)))return De.setext?(De.header=De.setext,De.setext=0,Ze.skipToEnd(),Le.highlightFormatting&&(De.formatting="header")):(De.header=Pt[0].charAt(0)=="="?1:2,De.setext=De.header),De.thisLine.header=!0,De.f=De.inline,ot(De);if(pn)return Ze.skipToEnd(),De.hr=!0,De.thisLine.hr=!0,Ue.hr;if(Ze.peek()==="[")return ke(Ze,De,Ot)}return ke(Ze,De,De.inline)}function Ve(Ze,De){var ut=qe.token(Ze,De.htmlState);if(!ze){var Zt=x.innerMode(qe,De.htmlState);(Zt.mode.name=="xml"&&Zt.state.tagStart===null&&!Zt.state.context&&Zt.state.tokenize.isInText||De.md_inside&&Ze.current().indexOf(">")>-1)&&(De.f=Ct,De.block=Je,De.htmlState=null)}return ut}function ct(Ze,De){var ut=De.listStack[De.listStack.length-1]||0,Zt=De.indentation<ut,Kt=ut+3;if(De.fencedEndRE&&De.indentation<=Kt&&(Zt||Ze.match(De.fencedEndRE))){Le.highlightFormatting&&(De.formatting="code-block");var tt;return Zt||(tt=ot(De)),De.localMode=De.localState=null,De.block=Je,De.f=Ct,De.fencedEndRE=null,De.code=0,De.thisLine.fencedCodeEnd=!0,Zt?Ke(Ze,De,De.block):tt}else return De.localMode?De.localMode.token(Ze,De.localState):(Ze.skipToEnd(),Ue.code)}function ot(Ze){var De=[];if(Ze.formatting){De.push(Ue.formatting),typeof Ze.formatting=="string"&&(Ze.formatting=[Ze.formatting]);for(var ut=0;ut<Ze.formatting.length;ut++)De.push(Ue.formatting+"-"+Ze.formatting[ut]),Ze.formatting[ut]==="header"&&De.push(Ue.formatting+"-"+Ze.formatting[ut]+"-"+Ze.header),Ze.formatting[ut]==="quote"&&(!Le.maxBlockquoteDepth||Le.maxBlockquoteDepth>=Ze.quote?De.push(Ue.formatting+"-"+Ze.formatting[ut]+"-"+Ze.quote):De.push("error"))}if(Ze.taskOpen)return De.push("meta"),De.length?De.join(" "):null;if(Ze.taskClosed)return De.push("property"),De.length?De.join(" "):null;if(Ze.linkHref?De.push(Ue.linkHref,"url"):(Ze.strong&&De.push(Ue.strong),Ze.em&&De.push(Ue.em),Ze.strikethrough&&De.push(Ue.strikethrough),Ze.emoji&&De.push(Ue.emoji),Ze.linkText&&De.push(Ue.linkText),Ze.code&&De.push(Ue.code),Ze.image&&De.push(Ue.image),Ze.imageAltText&&De.push(Ue.imageAltText,"link"),Ze.imageMarker&&De.push(Ue.imageMarker)),Ze.header&&De.push(Ue.header,Ue.header+"-"+Ze.header),Ze.quote&&(De.push(Ue.quote),!Le.maxBlockquoteDepth||Le.maxBlockquoteDepth>=Ze.quote?De.push(Ue.quote+"-"+Ze.quote):De.push(Ue.quote+"-"+Le.maxBlockquoteDepth)),Ze.list!==!1){var Zt=(Ze.listStack.length-1)%3;Zt?Zt===1?De.push(Ue.list2):De.push(Ue.list3):De.push(Ue.list1)}return Ze.trailingSpaceNewLine?De.push("trailing-space-new-line"):Ze.trailingSpace&&De.push("trailing-space-"+(Ze.trailingSpace%2?"a":"b")),De.length?De.join(" "):null}function pt(Ze,De){if(Ze.match(Se,!0))return ot(De)}function Ct(Ze,De){var ut=De.text(Ze,De);if(typeof ut!="undefined")return ut;if(De.list)return De.list=null,ot(De);if(De.taskList){var Zt=Ze.match(Oe,!0)[1]===" ";return Zt?De.taskOpen=!0:De.taskClosed=!0,Le.highlightFormatting&&(De.formatting="task"),De.taskList=!1,ot(De)}if(De.taskOpen=!1,De.taskClosed=!1,De.header&&Ze.match(/^#+$/,!0))return Le.highlightFormatting&&(De.formatting="header"),ot(De);var Kt=Ze.next();if(De.linkTitle){De.linkTitle=!1;var tt=Kt;Kt==="("&&(tt=")"),tt=(tt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Dt="^\\s*(?:[^"+tt+"\\\\]+|\\\\\\\\|\\\\.)"+tt;if(Ze.match(new RegExp(Dt),!0))return Ue.linkHref}if(Kt==="`"){var jt=De.formatting;Le.highlightFormatting&&(De.formatting="code"),Ze.eatWhile("`");var An=Ze.current().length;if(De.code==0&&(!De.quote||An==1))return De.code=An,ot(De);if(An==De.code){var kt=ot(De);return De.code=0,kt}else return De.formatting=jt,ot(De)}else if(De.code)return ot(De);if(Kt==="\\"&&(Ze.next(),Le.highlightFormatting)){var pn=ot(De),Pt=Ue.formatting+"-escape";return pn?pn+" "+Pt:Pt}if(Kt==="!"&&Ze.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return De.imageMarker=!0,De.image=!0,Le.highlightFormatting&&(De.formatting="image"),ot(De);if(Kt==="["&&De.imageMarker&&Ze.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return De.imageMarker=!1,De.imageAltText=!0,Le.highlightFormatting&&(De.formatting="image"),ot(De);if(Kt==="]"&&De.imageAltText){Le.highlightFormatting&&(De.formatting="image");var pn=ot(De);return De.imageAltText=!1,De.image=!1,De.inline=De.f=ht,pn}if(Kt==="["&&!De.image)return De.linkText&&Ze.match(/^.*?\]/)||(De.linkText=!0,Le.highlightFormatting&&(De.formatting="link")),ot(De);if(Kt==="]"&&De.linkText){Le.highlightFormatting&&(De.formatting="link");var pn=ot(De);return De.linkText=!1,De.inline=De.f=Ze.match(/\(.*?\)| ?\[.*?\]/,!1)?ht:Ct,pn}if(Kt==="<"&&Ze.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){De.f=De.inline=He,Le.highlightFormatting&&(De.formatting="link");var pn=ot(De);return pn?pn+=" ":pn="",pn+Ue.linkInline}if(Kt==="<"&&Ze.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){De.f=De.inline=He,Le.highlightFormatting&&(De.formatting="link");var pn=ot(De);return pn?pn+=" ":pn="",pn+Ue.linkEmail}if(Le.xml&&Kt==="<"&&Ze.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var En=Ze.string.indexOf(">",Ze.pos);if(En!=-1){var on=Ze.string.substring(Ze.start,En);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(on)&&(De.md_inside=!0)}return Ze.backUp(1),De.htmlState=x.startState(qe),Ke(Ze,De,Ve)}if(Le.xml&&Kt==="<"&&Ze.match(/^\/\w*?>/))return De.md_inside=!1,"tag";if(Kt==="*"||Kt==="_"){for(var de=1,pe=Ze.pos==1?" ":Ze.string.charAt(Ze.pos-2);de<3&&Ze.eat(Kt);)de++;var ie=Ze.peek()||" ",ee=!/\s/.test(ie)&&(!Ce.test(ie)||/\s/.test(pe)||Ce.test(pe)),se=!/\s/.test(pe)&&(!Ce.test(pe)||/\s/.test(ie)||Ce.test(ie)),le=null,Be=null;if(de%2&&(!De.em&&ee&&(Kt==="*"||!se||Ce.test(pe))?le=!0:De.em==Kt&&se&&(Kt==="*"||!ee||Ce.test(ie))&&(le=!1)),de>1&&(!De.strong&&ee&&(Kt==="*"||!se||Ce.test(pe))?Be=!0:De.strong==Kt&&se&&(Kt==="*"||!ee||Ce.test(ie))&&(Be=!1)),Be!=null||le!=null){Le.highlightFormatting&&(De.formatting=le==null?"strong":Be==null?"em":"strong em"),le===!0&&(De.em=Kt),Be===!0&&(De.strong=Kt);var kt=ot(De);return le===!1&&(De.em=!1),Be===!1&&(De.strong=!1),kt}}else if(Kt===" "&&(Ze.eat("*")||Ze.eat("_"))){if(Ze.peek()===" ")return ot(De);Ze.backUp(1)}if(Le.strikethrough){if(Kt==="~"&&Ze.eatWhile(Kt)){if(De.strikethrough){Le.highlightFormatting&&(De.formatting="strikethrough");var kt=ot(De);return De.strikethrough=!1,kt}else if(Ze.match(/^[^\s]/,!1))return De.strikethrough=!0,Le.highlightFormatting&&(De.formatting="strikethrough"),ot(De)}else if(Kt===" "&&Ze.match(/^~~/,!0)){if(Ze.peek()===" ")return ot(De);Ze.backUp(2)}}if(Le.emoji&&Kt===":"&&Ze.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){De.emoji=!0,Le.highlightFormatting&&(De.formatting="emoji");var We=ot(De);return De.emoji=!1,We}return Kt===" "&&(Ze.match(/^ +$/,!1)?De.trailingSpace++:De.trailingSpace&&(De.trailingSpaceNewLine=!0)),ot(De)}function He(Ze,De){var ut=Ze.next();if(ut===">"){De.f=De.inline=Ct,Le.highlightFormatting&&(De.formatting="link");var Zt=ot(De);return Zt?Zt+=" ":Zt="",Zt+Ue.linkInline}return Ze.match(/^[^>]+/,!0),Ue.linkInline}function ht(Ze,De){if(Ze.eatSpace())return null;var ut=Ze.next();return ut==="("||ut==="["?(De.f=De.inline=Re(ut==="("?")":"]"),Le.highlightFormatting&&(De.formatting="link-string"),De.linkHref=!0,ot(De)):"error"}var _e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Re(Ze){return function(De,ut){var Zt=De.next();if(Zt===Ze){ut.f=ut.inline=Ct,Le.highlightFormatting&&(ut.formatting="link-string");var Kt=ot(ut);return ut.linkHref=!1,Kt}return De.match(_e[Ze]),ut.linkHref=!0,ot(ut)}}function Ot(Ze,De){return Ze.match(/^([^\]\\]|\\.)*\]:/,!1)?(De.f=it,Ze.next(),Le.highlightFormatting&&(De.formatting="link"),De.linkText=!0,ot(De)):ke(Ze,De,Ct)}function it(Ze,De){if(Ze.match(/^\]:/,!0)){De.f=De.inline=at,Le.highlightFormatting&&(De.formatting="link");var ut=ot(De);return De.linkText=!1,ut}return Ze.match(/^([^\]\\]|\\.)+/,!0),Ue.linkText}function at(Ze,De){return Ze.eatSpace()?null:(Ze.match(/^[^\s]+/,!0),Ze.peek()===void 0?De.linkTitle=!0:Ze.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),De.f=De.inline=Ct,Ue.linkHref+" url")}var Et={startState:function(){return{f:Je,prevLine:{stream:null},thisLine:{stream:null},block:Je,htmlState:null,indentation:0,inline:Ct,text:pt,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(Ze){return{f:Ze.f,prevLine:Ze.prevLine,thisLine:Ze.thisLine,block:Ze.block,htmlState:Ze.htmlState&&x.copyState(qe,Ze.htmlState),indentation:Ze.indentation,localMode:Ze.localMode,localState:Ze.localMode?x.copyState(Ze.localMode,Ze.localState):null,inline:Ze.inline,text:Ze.text,formatting:!1,linkText:Ze.linkText,linkTitle:Ze.linkTitle,linkHref:Ze.linkHref,code:Ze.code,em:Ze.em,strong:Ze.strong,strikethrough:Ze.strikethrough,emoji:Ze.emoji,header:Ze.header,setext:Ze.setext,hr:Ze.hr,taskList:Ze.taskList,list:Ze.list,listStack:Ze.listStack.slice(0),quote:Ze.quote,indentedCode:Ze.indentedCode,trailingSpace:Ze.trailingSpace,trailingSpaceNewLine:Ze.trailingSpaceNewLine,md_inside:Ze.md_inside,fencedEndRE:Ze.fencedEndRE}},token:function(Ze,De){if(De.formatting=!1,Ze!=De.thisLine.stream){if(De.header=0,De.hr=!1,Ze.match(/^\s*$/,!0))return je(De),null;if(De.prevLine=De.thisLine,De.thisLine={stream:Ze},De.taskList=!1,De.trailingSpace=0,De.trailingSpaceNewLine=!1,!De.localState&&(De.f=De.block,De.f!=Ve)){var ut=Ze.match(/^\s*/,!0)[0].replace(/\t/g,Ee).length;if(De.indentation=ut,De.indentationDiff=null,ut>0)return null}}return De.f(Ze,De)},innerMode:function(Ze){return Ze.block==Ve?{state:Ze.htmlState,mode:qe}:Ze.localState?{state:Ze.localState,mode:Ze.localMode}:{state:Ze,mode:Et}},indent:function(Ze,De,ut){return Ze.block==Ve&&qe.indent?qe.indent(Ze.htmlState,De,ut):Ze.localState&&Ze.localMode.indent?Ze.localMode.indent(Ze.localState,De,ut):x.Pass},blankLine:je,getType:ot,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Et},"xml"),x.defineMIME("text/markdown","markdown"),x.defineMIME("text/x-markdown","markdown")})},98101:function(qn,Mt,ae){(function(x){x(ae(89780))})(function(x){"use strict";x.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 dt=0;dt<x.modeInfo.length;dt++){var Le=x.modeInfo[dt];Le.mimes&&(Le.mime=Le.mimes[0])}x.findModeByMIME=function(qe){qe=qe.toLowerCase();for(var ze=0;ze<x.modeInfo.length;ze++){var Ie=x.modeInfo[ze];if(Ie.mime==qe)return Ie;if(Ie.mimes){for(var Ue=0;Ue<Ie.mimes.length;Ue++)if(Ie.mimes[Ue]==qe)return Ie}}if(/\+xml$/.test(qe))return x.findModeByMIME("application/xml");if(/\+json$/.test(qe))return x.findModeByMIME("application/json")},x.findModeByExtension=function(qe){qe=qe.toLowerCase();for(var ze=0;ze<x.modeInfo.length;ze++){var Ie=x.modeInfo[ze];if(Ie.ext){for(var Ue=0;Ue<Ie.ext.length;Ue++)if(Ie.ext[Ue]==qe)return Ie}}},x.findModeByFileName=function(qe){for(var ze=0;ze<x.modeInfo.length;ze++){var Ie=x.modeInfo[ze];if(Ie.file&&Ie.file.test(qe))return Ie}var Ue=qe.lastIndexOf("."),he=Ue>-1&&qe.substring(Ue+1,qe.length);if(he)return x.findModeByExtension(he)},x.findModeByName=function(qe){qe=qe.toLowerCase();for(var ze=0;ze<x.modeInfo.length;ze++){var Ie=x.modeInfo[ze];if(Ie.name.toLowerCase()==qe)return Ie;if(Ie.alias){for(var Ue=0;Ue<Ie.alias.length;Ue++)if(Ie.alias[Ue].toLowerCase()==qe)return Ie}}}})},67549:function(qn,Mt,ae){(function(x){x(ae(89780))})(function(x){"use strict";x.defineMode("stex",function(dt,Le){"use strict";function qe(Se,Te){Se.cmdState.push(Te)}function ze(Se){return Se.cmdState.length>0?Se.cmdState[Se.cmdState.length-1]:null}function Ie(Se){var Te=Se.cmdState.pop();Te&&Te.closeBracket()}function Ue(Se){for(var Te=Se.cmdState,we=Te.length-1;we>=0;we--){var Ce=Te[we];if(Ce.name!="DEFAULT")return Ce}return{styleIdentifier:function(){return null}}}function he(Se,Te,we){return function(){this.name=Se,this.bracketNo=0,this.style=Te,this.styles=we,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var xe={};xe.importmodule=he("importmodule","tag",["string","builtin"]),xe.documentclass=he("documentclass","tag",["","atom"]),xe.usepackage=he("usepackage","tag",["atom"]),xe.begin=he("begin","tag",["atom"]),xe.end=he("end","tag",["atom"]),xe.label=he("label","tag",["atom"]),xe.ref=he("ref","tag",["atom"]),xe.eqref=he("eqref","tag",["atom"]),xe.cite=he("cite","tag",["atom"]),xe.bibitem=he("bibitem","tag",["atom"]),xe.Bibitem=he("Bibitem","tag",["atom"]),xe.RBibitem=he("RBibitem","tag",["atom"]),xe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function oe(Se,Te){Se.f=Te}function Oe(Se,Te){var we;if(Se.match(/^\\[a-zA-Z@]+/)){var Ce=Se.current().slice(1);return we=xe.hasOwnProperty(Ce)?xe[Ce]:xe.DEFAULT,we=new we,qe(Te,we),oe(Te,Me),we.style}if(Se.match(/^\\[$&%#{}_]/)||Se.match(/^\\[,;!\/\\]/))return"tag";if(Se.match("\\["))return oe(Te,function(ke,Ke){return ve(ke,Ke,"\\]")}),"keyword";if(Se.match("\\("))return oe(Te,function(ke,Ke){return ve(ke,Ke,"\\)")}),"keyword";if(Se.match("$$"))return oe(Te,function(ke,Ke){return ve(ke,Ke,"$$")}),"keyword";if(Se.match("$"))return oe(Te,function(ke,Ke){return ve(ke,Ke,"$")}),"keyword";var Ee=Se.next();if(Ee=="%")return Se.skipToEnd(),"comment";if(Ee=="}"||Ee=="]"){if(we=ze(Te),we)we.closeBracket(Ee),oe(Te,Me);else return"error";return"bracket"}else return Ee=="{"||Ee=="["?(we=xe.DEFAULT,we=new we,qe(Te,we),"bracket"):/\d/.test(Ee)?(Se.eatWhile(/[\w.%]/),"atom"):(Se.eatWhile(/[\w\-_]/),we=Ue(Te),we.name=="begin"&&(we.argument=Se.current()),we.styleIdentifier())}function ve(Se,Te,we){if(Se.eatSpace())return null;if(we&&Se.match(we))return oe(Te,Oe),"keyword";if(Se.match(/^\\[a-zA-Z@]+/))return"tag";if(Se.match(/^[a-zA-Z]+/))return"variable-2";if(Se.match(/^\\[$&%#{}_]/)||Se.match(/^\\[,;!\/]/)||Se.match(/^[\^_&]/))return"tag";if(Se.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Se.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ce=Se.next();return Ce=="{"||Ce=="}"||Ce=="["||Ce=="]"||Ce=="("||Ce==")"?"bracket":Ce=="%"?(Se.skipToEnd(),"comment"):"error"}function Me(Se,Te){var we=Se.peek(),Ce;return we=="{"||we=="["?(Ce=ze(Te),Ce.openBracket(we),Se.eat(we),oe(Te,Oe),"bracket"):/[ \t\r]/.test(we)?(Se.eat(we),null):(oe(Te,Oe),Ie(Te),Oe(Se,Te))}return{startState:function(){var Se=Le.inMathMode?function(Te,we){return ve(Te,we)}:Oe;return{cmdState:[],f:Se}},copyState:function(Se){return{cmdState:Se.cmdState.slice(),f:Se.f}},token:function(Se,Te){return Te.f(Se,Te)},blankLine:function(Se){Se.f=Oe,Se.cmdState.length=0},lineComment:"%"}}),x.defineMIME("text/x-stex","stex"),x.defineMIME("text/x-latex","stex")})},15525:function(qn,Mt,ae){(function(x){x(ae(89780))})(function(x){"use strict";var dt={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},Le={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};x.defineMode("xml",function(qe,ze){var Ie=qe.indentUnit,Ue={},he=ze.htmlMode?dt:Le;for(var xe in he)Ue[xe]=he[xe];for(var xe in ze)Ue[xe]=ze[xe];var oe,Oe;function ve(He,ht){function _e(it){return ht.tokenize=it,it(He,ht)}var Re=He.next();if(Re=="<")return He.eat("!")?He.eat("[")?He.match("CDATA[")?_e(Te("atom","]]>")):null:He.match("--")?_e(Te("comment","-->")):He.match("DOCTYPE",!0,!0)?(He.eatWhile(/[\w\._\-]/),_e(we(1))):null:He.eat("?")?(He.eatWhile(/[\w\._\-]/),ht.tokenize=Te("meta","?>"),"meta"):(oe=He.eat("/")?"closeTag":"openTag",ht.tokenize=Me,"tag bracket");if(Re=="&"){var Ot;return He.eat("#")?He.eat("x")?Ot=He.eatWhile(/[a-fA-F\d]/)&&He.eat(";"):Ot=He.eatWhile(/[\d]/)&&He.eat(";"):Ot=He.eatWhile(/[\w\.\-:]/)&&He.eat(";"),Ot?"atom":"error"}else return He.eatWhile(/[^&<]/),null}ve.isInText=!0;function Me(He,ht){var _e=He.next();if(_e==">"||_e=="/"&&He.eat(">"))return ht.tokenize=ve,oe=_e==">"?"endTag":"selfcloseTag","tag bracket";if(_e=="=")return oe="equals",null;if(_e=="<"){ht.tokenize=ve,ht.state=Ke,ht.tagName=ht.tagStart=null;var Re=ht.tokenize(He,ht);return Re?Re+" tag error":"tag error"}else return/[\'\"]/.test(_e)?(ht.tokenize=Se(_e),ht.stringStartCol=He.column(),ht.tokenize(He,ht)):(He.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Se(He){var ht=function(_e,Re){for(;!_e.eol();)if(_e.next()==He){Re.tokenize=Me;break}return"string"};return ht.isInAttribute=!0,ht}function Te(He,ht){return function(_e,Re){for(;!_e.eol();){if(_e.match(ht)){Re.tokenize=ve;break}_e.next()}return He}}function we(He){return function(ht,_e){for(var Re;(Re=ht.next())!=null;){if(Re=="<")return _e.tokenize=we(He+1),_e.tokenize(ht,_e);if(Re==">")if(He==1){_e.tokenize=ve;break}else return _e.tokenize=we(He-1),_e.tokenize(ht,_e)}return"meta"}}function Ce(He,ht,_e){this.prev=He.context,this.tagName=ht,this.indent=He.indented,this.startOfLine=_e,(Ue.doNotIndent.hasOwnProperty(ht)||He.context&&He.context.noIndent)&&(this.noIndent=!0)}function Ee(He){He.context&&(He.context=He.context.prev)}function ke(He,ht){for(var _e;;){if(!He.context||(_e=He.context.tagName,!Ue.contextGrabbers.hasOwnProperty(_e)||!Ue.contextGrabbers[_e].hasOwnProperty(ht)))return;Ee(He)}}function Ke(He,ht,_e){return He=="openTag"?(_e.tagStart=ht.column(),Qe):He=="closeTag"?je:Ke}function Qe(He,ht,_e){return He=="word"?(_e.tagName=ht.current(),Oe="tag",ct):Ue.allowMissingTagName&&He=="endTag"?(Oe="tag bracket",ct(He,ht,_e)):(Oe="error",Qe)}function je(He,ht,_e){if(He=="word"){var Re=ht.current();return _e.context&&_e.context.tagName!=Re&&Ue.implicitlyClosed.hasOwnProperty(_e.context.tagName)&&Ee(_e),_e.context&&_e.context.tagName==Re||Ue.matchClosing===!1?(Oe="tag",Je):(Oe="tag error",Ve)}else return Ue.allowMissingTagName&&He=="endTag"?(Oe="tag bracket",Je(He,ht,_e)):(Oe="error",Ve)}function Je(He,ht,_e){return He!="endTag"?(Oe="error",Je):(Ee(_e),Ke)}function Ve(He,ht,_e){return Oe="error",Je(He,ht,_e)}function ct(He,ht,_e){if(He=="word")return Oe="attribute",ot;if(He=="endTag"||He=="selfcloseTag"){var Re=_e.tagName,Ot=_e.tagStart;return _e.tagName=_e.tagStart=null,He=="selfcloseTag"||Ue.autoSelfClosers.hasOwnProperty(Re)?ke(_e,Re):(ke(_e,Re),_e.context=new Ce(_e,Re,Ot==_e.indented)),Ke}return Oe="error",ct}function ot(He,ht,_e){return He=="equals"?pt:(Ue.allowMissing||(Oe="error"),ct(He,ht,_e))}function pt(He,ht,_e){return He=="string"?Ct:He=="word"&&Ue.allowUnquoted?(Oe="string",ct):(Oe="error",ct(He,ht,_e))}function Ct(He,ht,_e){return He=="string"?Ct:ct(He,ht,_e)}return{startState:function(He){var ht={tokenize:ve,state:Ke,indented:He||0,tagName:null,tagStart:null,context:null};return He!=null&&(ht.baseIndent=He),ht},token:function(He,ht){if(!ht.tagName&&He.sol()&&(ht.indented=He.indentation()),He.eatSpace())return null;oe=null;var _e=ht.tokenize(He,ht);return(_e||oe)&&_e!="comment"&&(Oe=null,ht.state=ht.state(oe||_e,He,ht),Oe&&(_e=Oe=="error"?_e+" error":Oe)),_e},indent:function(He,ht,_e){var Re=He.context;if(He.tokenize.isInAttribute)return He.tagStart==He.indented?He.stringStartCol+1:He.indented+Ie;if(Re&&Re.noIndent)return x.Pass;if(He.tokenize!=Me&&He.tokenize!=ve)return _e?_e.match(/^(\s*)/)[0].length:0;if(He.tagName)return Ue.multilineTagIndentPastTag!==!1?He.tagStart+He.tagName.length+2:He.tagStart+Ie*(Ue.multilineTagIndentFactor||1);if(Ue.alignCDATA&&/<!\[CDATA\[/.test(ht))return 0;var Ot=ht&&/^<(\/)?([\w_:\.-]*)/.exec(ht);if(Ot&&Ot[1])for(;Re;)if(Re.tagName==Ot[2]){Re=Re.prev;break}else if(Ue.implicitlyClosed.hasOwnProperty(Re.tagName))Re=Re.prev;else break;else if(Ot)for(;Re;){var it=Ue.contextGrabbers[Re.tagName];if(it&&it.hasOwnProperty(Ot[2]))Re=Re.prev;else break}for(;Re&&Re.prev&&!Re.startOfLine;)Re=Re.prev;return Re?Re.indent+Ie:He.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ue.htmlMode?"html":"xml",helperType:Ue.htmlMode?"html":"xml",skipAttribute:function(He){He.state==pt&&(He.state=ct)},xmlCurrentTag:function(He){return He.tagName?{name:He.tagName,close:He.type=="closeTag"}:null},xmlCurrentContext:function(He){for(var ht=[],_e=He.context;_e;_e=_e.prev)_e.tagName&&ht.push(_e.tagName);return ht.reverse()}}}),x.defineMIME("text/xml","xml"),x.defineMIME("application/xml","xml"),x.mimeModes.hasOwnProperty("text/html")||x.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=void 0;var x=Object.assign||function(we){for(var Ce=1;Ce<arguments.length;Ce++){var Ee=arguments[Ce];for(var ke in Ee)Object.prototype.hasOwnProperty.call(Ee,ke)&&(we[ke]=Ee[ke])}return we},dt=function(){function we(Ce,Ee){for(var ke=0;ke<Ee.length;ke++){var Ke=Ee[ke];Ke.enumerable=Ke.enumerable||!1,Ke.configurable=!0,"value"in Ke&&(Ke.writable=!0),Object.defineProperty(Ce,Ke.key,Ke)}}return function(Ce,Ee,ke){return Ee&&we(Ce.prototype,Ee),ke&&we(Ce,ke),Ce}}(),Le=ae(59301),qe=Oe(Le),ze=ae(12708),Ie=Oe(ze),Ue=ae(53291),he=Oe(Ue),xe=ae(10413),oe=ae(65429);function Oe(we){return we&&we.__esModule?we:{default:we}}function ve(we,Ce){if(!(we instanceof Ce))throw new TypeError("Cannot call a class as a function")}function Me(we,Ce){if(!we)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ce&&(typeof Ce=="object"||typeof Ce=="function")?Ce:we}function Se(we,Ce){if(typeof Ce!="function"&&Ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ce);we.prototype=Object.create(Ce&&Ce.prototype,{constructor:{value:we,enumerable:!1,writable:!0,configurable:!0}}),Ce&&(Object.setPrototypeOf?Object.setPrototypeOf(we,Ce):we.__proto__=Ce)}var Te=function(we){Se(Ce,we);function Ce(Ee){ve(this,Ce);var ke=Me(this,(Ce.__proto__||Object.getPrototypeOf(Ce)).call(this,Ee));return ke.getEchartsInstance=function(){return ke.echartsLib.getInstanceByDom(ke.echartsElement)||ke.echartsLib.init(ke.echartsElement,ke.props.theme,ke.props.opts)},ke.dispose=function(){if(ke.echartsElement){try{(0,xe.clear)(ke.echartsElement)}catch(Ke){console.warn(Ke)}ke.echartsLib.dispose(ke.echartsElement)}},ke.rerender=function(){var Ke=ke.props,Qe=Ke.onEvents,je=Ke.onChartReady,Je=ke.renderEchartDom();ke.bindEvents(Je,Qe||{}),typeof je=="function"&&ke.props.onChartReady(Je),ke.echartsElement&&(0,xe.bind)(ke.echartsElement,function(){try{Je.resize()}catch(Ve){console.warn(Ve)}})},ke.bindEvents=function(Ke,Qe){var je=function(ct,ot){typeof ct=="string"&&typeof ot=="function"&&Ke.on(ct,function(pt){ot(pt,Ke)})};for(var Je in Qe)Object.prototype.hasOwnProperty.call(Qe,Je)&&je(Je,Qe[Je])},ke.renderEchartDom=function(){var Ke=ke.getEchartsInstance();return Ke.setOption(ke.props.option,ke.props.notMerge||!1,ke.props.lazyUpdate||!1),ke.props.showLoading?Ke.showLoading(ke.props.loadingOption||null):Ke.hideLoading(),Ke},ke.echartsLib=Ee.echarts,ke.echartsElement=null,ke}return dt(Ce,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(ke){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(ke,this.props))){if(!(0,he.default)(ke.theme,this.props.theme)||!(0,he.default)(ke.opts,this.props.opts)||!(0,he.default)(ke.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var Ke=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,he.default)((0,oe.pick)(this.props,Ke),(0,oe.pick)(ke,Ke))){var Qe=this.renderEchartDom();if(!(0,he.default)(ke.style,this.props.style)||!(0,he.default)(ke.className,this.props.className))try{Qe.resize()}catch(je){console.warn(je)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var ke=this,Ke=this.props,Qe=Ke.style,je=Ke.className,Je=x({height:300},Qe);return qe.default.createElement("div",{ref:function(ct){ke.echartsElement=ct},style:Je,className:"echarts-for-react "+je})}}]),Ce}(Le.Component);Mt.default=Te,Te.propTypes={option:Ie.default.object.isRequired,echarts:Ie.default.object,notMerge:Ie.default.bool,lazyUpdate:Ie.default.bool,style:Ie.default.object,className:Ie.default.string,theme:Ie.default.oneOfType([Ie.default.string,Ie.default.object]),onChartReady:Ie.default.func,showLoading:Ie.default.bool,loadingOption:Ie.default.object,onEvents:Ie.default.object,opts:Ie.default.shape({devicePixelRatio:Ie.default.number,renderer:Ie.default.oneOf(["canvas","svg"]),width:Ie.default.oneOfType([Ie.default.number,Ie.default.oneOf([null,void 0,"auto"])]),height:Ie.default.oneOfType([Ie.default.number,Ie.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:Ie.default.func},Te.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(qn,Mt,ae){"use strict";var x;x={value:!0},Mt.Z=void 0;var dt=ae(76411),Le=Ie(dt),qe=ae(97774),ze=Ie(qe);function Ie(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function Ue(Oe,ve){if(!(Oe instanceof ve))throw new TypeError("Cannot call a class as a function")}function he(Oe,ve){if(!Oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:Oe}function xe(Oe,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);Oe.prototype=Object.create(ve&&ve.prototype,{constructor:{value:Oe,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(Oe,ve):Oe.__proto__=ve)}var oe=function(Oe){xe(ve,Oe);function ve(Me){Ue(this,ve);var Se=he(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,Me));return Se.echartsLib=Le.default,Se}return ve}(ze.default);Mt.Z=oe},65429:function(qn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});var ae=Mt.pick=function(dt,Le){var qe={};return Le.forEach(function(ze){qe[ze]=dt[ze]}),qe}},86204:function(qn){"use strict";var Mt=typeof Reflect=="object"?Reflect:null,ae=Mt&&typeof Mt.apply=="function"?Mt.apply:function(Ke,Qe,je){return Function.prototype.apply.call(Ke,Qe,je)},x;Mt&&typeof Mt.ownKeys=="function"?x=Mt.ownKeys:Object.getOwnPropertySymbols?x=function(Ke){return Object.getOwnPropertyNames(Ke).concat(Object.getOwnPropertySymbols(Ke))}:x=function(Ke){return Object.getOwnPropertyNames(Ke)};function dt(ke){console&&console.warn&&console.warn(ke)}var Le=Number.isNaN||function(Ke){return Ke!==Ke};function qe(){qe.init.call(this)}qn.exports=qe,qn.exports.once=we,qe.EventEmitter=qe,qe.prototype._events=void 0,qe.prototype._eventsCount=0,qe.prototype._maxListeners=void 0;var ze=10;function Ie(ke){if(typeof ke!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ke)}Object.defineProperty(qe,"defaultMaxListeners",{enumerable:!0,get:function(){return ze},set:function(ke){if(typeof ke!="number"||ke<0||Le(ke))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ke+".");ze=ke}}),qe.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},qe.prototype.setMaxListeners=function(Ke){if(typeof Ke!="number"||Ke<0||Le(Ke))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ke+".");return this._maxListeners=Ke,this};function Ue(ke){return ke._maxListeners===void 0?qe.defaultMaxListeners:ke._maxListeners}qe.prototype.getMaxListeners=function(){return Ue(this)},qe.prototype.emit=function(Ke){for(var Qe=[],je=1;je<arguments.length;je++)Qe.push(arguments[je]);var Je=Ke==="error",Ve=this._events;if(Ve!==void 0)Je=Je&&Ve.error===void 0;else if(!Je)return!1;if(Je){var ct;if(Qe.length>0&&(ct=Qe[0]),ct instanceof Error)throw ct;var ot=new Error("Unhandled error."+(ct?" ("+ct.message+")":""));throw ot.context=ct,ot}var pt=Ve[Ke];if(pt===void 0)return!1;if(typeof pt=="function")ae(pt,this,Qe);else for(var Ct=pt.length,He=Me(pt,Ct),je=0;je<Ct;++je)ae(He[je],this,Qe);return!0};function he(ke,Ke,Qe,je){var Je,Ve,ct;if(Ie(Qe),Ve=ke._events,Ve===void 0?(Ve=ke._events=Object.create(null),ke._eventsCount=0):(Ve.newListener!==void 0&&(ke.emit("newListener",Ke,Qe.listener?Qe.listener:Qe),Ve=ke._events),ct=Ve[Ke]),ct===void 0)ct=Ve[Ke]=Qe,++ke._eventsCount;else if(typeof ct=="function"?ct=Ve[Ke]=je?[Qe,ct]:[ct,Qe]:je?ct.unshift(Qe):ct.push(Qe),Je=Ue(ke),Je>0&&ct.length>Je&&!ct.warned){ct.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+ct.length+" "+String(Ke)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=ke,ot.type=Ke,ot.count=ct.length,dt(ot)}return ke}qe.prototype.addListener=function(Ke,Qe){return he(this,Ke,Qe,!1)},qe.prototype.on=qe.prototype.addListener,qe.prototype.prependListener=function(Ke,Qe){return he(this,Ke,Qe,!0)};function xe(){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(ke,Ke,Qe){var je={fired:!1,wrapFn:void 0,target:ke,type:Ke,listener:Qe},Je=xe.bind(je);return Je.listener=Qe,je.wrapFn=Je,Je}qe.prototype.once=function(Ke,Qe){return Ie(Qe),this.on(Ke,oe(this,Ke,Qe)),this},qe.prototype.prependOnceListener=function(Ke,Qe){return Ie(Qe),this.prependListener(Ke,oe(this,Ke,Qe)),this},qe.prototype.removeListener=function(Ke,Qe){var je,Je,Ve,ct,ot;if(Ie(Qe),Je=this._events,Je===void 0)return this;if(je=Je[Ke],je===void 0)return this;if(je===Qe||je.listener===Qe)--this._eventsCount===0?this._events=Object.create(null):(delete Je[Ke],Je.removeListener&&this.emit("removeListener",Ke,je.listener||Qe));else if(typeof je!="function"){for(Ve=-1,ct=je.length-1;ct>=0;ct--)if(je[ct]===Qe||je[ct].listener===Qe){ot=je[ct].listener,Ve=ct;break}if(Ve<0)return this;Ve===0?je.shift():Se(je,Ve),je.length===1&&(Je[Ke]=je[0]),Je.removeListener!==void 0&&this.emit("removeListener",Ke,ot||Qe)}return this},qe.prototype.off=qe.prototype.removeListener,qe.prototype.removeAllListeners=function(Ke){var Qe,je,Je;if(je=this._events,je===void 0)return this;if(je.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):je[Ke]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete je[Ke]),this;if(arguments.length===0){var Ve=Object.keys(je),ct;for(Je=0;Je<Ve.length;++Je)ct=Ve[Je],ct!=="removeListener"&&this.removeAllListeners(ct);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Qe=je[Ke],typeof Qe=="function")this.removeListener(Ke,Qe);else if(Qe!==void 0)for(Je=Qe.length-1;Je>=0;Je--)this.removeListener(Ke,Qe[Je]);return this};function Oe(ke,Ke,Qe){var je=ke._events;if(je===void 0)return[];var Je=je[Ke];return Je===void 0?[]:typeof Je=="function"?Qe?[Je.listener||Je]:[Je]:Qe?Te(Je):Me(Je,Je.length)}qe.prototype.listeners=function(Ke){return Oe(this,Ke,!0)},qe.prototype.rawListeners=function(Ke){return Oe(this,Ke,!1)},qe.listenerCount=function(ke,Ke){return typeof ke.listenerCount=="function"?ke.listenerCount(Ke):ve.call(ke,Ke)},qe.prototype.listenerCount=ve;function ve(ke){var Ke=this._events;if(Ke!==void 0){var Qe=Ke[ke];if(typeof Qe=="function")return 1;if(Qe!==void 0)return Qe.length}return 0}qe.prototype.eventNames=function(){return this._eventsCount>0?x(this._events):[]};function Me(ke,Ke){for(var Qe=new Array(Ke),je=0;je<Ke;++je)Qe[je]=ke[je];return Qe}function Se(ke,Ke){for(;Ke+1<ke.length;Ke++)ke[Ke]=ke[Ke+1];ke.pop()}function Te(ke){for(var Ke=new Array(ke.length),Qe=0;Qe<Ke.length;++Qe)Ke[Qe]=ke[Qe].listener||ke[Qe];return Ke}function we(ke,Ke){return new Promise(function(Qe,je){function Je(ct){ke.removeListener(Ke,Ve),je(ct)}function Ve(){typeof ke.removeListener=="function"&&ke.removeListener("error",Je),Qe([].slice.call(arguments))}Ee(ke,Ke,Ve,{once:!0}),Ke!=="error"&&Ce(ke,Je,{once:!0})})}function Ce(ke,Ke,Qe){typeof ke.on=="function"&&Ee(ke,"error",Ke,Qe)}function Ee(ke,Ke,Qe,je){if(typeof ke.on=="function")je.once?ke.once(Ke,Qe):ke.on(Ke,Qe);else if(typeof ke.addEventListener=="function")ke.addEventListener(Ke,function Je(Ve){je.once&&ke.removeEventListener(Ke,Je),Qe(Ve)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ke)}},53291:function(qn){"use strict";var Mt=Array.isArray,ae=Object.keys,x=Object.prototype.hasOwnProperty;qn.exports=function dt(Le,qe){if(Le===qe)return!0;if(Le&&qe&&typeof Le=="object"&&typeof qe=="object"){var ze=Mt(Le),Ie=Mt(qe),Ue,he,xe;if(ze&&Ie){if(he=Le.length,he!=qe.length)return!1;for(Ue=he;Ue--!==0;)if(!dt(Le[Ue],qe[Ue]))return!1;return!0}if(ze!=Ie)return!1;var oe=Le instanceof Date,Oe=qe instanceof Date;if(oe!=Oe)return!1;if(oe&&Oe)return Le.getTime()==qe.getTime();var ve=Le instanceof RegExp,Me=qe instanceof RegExp;if(ve!=Me)return!1;if(ve&&Me)return Le.toString()==qe.toString();var Se=ae(Le);if(he=Se.length,he!==ae(qe).length)return!1;for(Ue=he;Ue--!==0;)if(!x.call(qe,Se[Ue]))return!1;for(Ue=he;Ue--!==0;)if(xe=Se[Ue],!dt(Le[xe],qe[xe]))return!1;return!0}return Le!==Le&&qe!==qe}},64270:function(qn){(function(Mt,ae){qn.exports=ae()})(this,function(){"use strict";var Mt=function(ge,Ae){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,ye){be.__proto__=ye}||function(be,ye){for(var nt in ye)Object.prototype.hasOwnProperty.call(ye,nt)&&(be[nt]=ye[nt])},Mt(ge,Ae)};function ae(ge,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Class extends value "+String(Ae)+" is not a constructor or null");Mt(ge,Ae);function be(){this.constructor=ge}ge.prototype=Ae===null?Object.create(Ae):(be.prototype=Ae.prototype,new be)}var x=function(){return x=Object.assign||function(Ae){for(var be,ye=1,nt=arguments.length;ye<nt;ye++){be=arguments[ye];for(var It in be)Object.prototype.hasOwnProperty.call(be,It)&&(Ae[It]=be[It])}return Ae},x.apply(this,arguments)};function dt(ge,Ae,be,ye){function nt(It){return It instanceof be?It:new be(function(Yt){Yt(It)})}return new(be||(be=Promise))(function(It,Yt){function Bn(Nr){try{wr(ye.next(Nr))}catch(Kr){Yt(Kr)}}function xn(Nr){try{wr(ye.throw(Nr))}catch(Kr){Yt(Kr)}}function wr(Nr){Nr.done?It(Nr.value):nt(Nr.value).then(Bn,xn)}wr((ye=ye.apply(ge,Ae||[])).next())})}function Le(ge,Ae){var be={label:0,sent:function(){if(It[0]&1)throw It[1];return It[1]},trys:[],ops:[]},ye,nt,It,Yt;return Yt={next:Bn(0),throw:Bn(1),return:Bn(2)},typeof Symbol=="function"&&(Yt[Symbol.iterator]=function(){return this}),Yt;function Bn(wr){return function(Nr){return xn([wr,Nr])}}function xn(wr){if(ye)throw new TypeError("Generator is already executing.");for(;be;)try{if(ye=1,nt&&(It=wr[0]&2?nt.return:wr[0]?nt.throw||((It=nt.return)&&It.call(nt),0):nt.next)&&!(It=It.call(nt,wr[1])).done)return It;switch(nt=0,It&&(wr=[wr[0]&2,It.value]),wr[0]){case 0:case 1:It=wr;break;case 4:return be.label++,{value:wr[1],done:!1};case 5:be.label++,nt=wr[1],wr=[0];continue;case 7:wr=be.ops.pop(),be.trys.pop();continue;default:if(It=be.trys,!(It=It.length>0&&It[It.length-1])&&(wr[0]===6||wr[0]===2)){be=0;continue}if(wr[0]===3&&(!It||wr[1]>It[0]&&wr[1]<It[3])){be.label=wr[1];break}if(wr[0]===6&&be.label<It[1]){be.label=It[1],It=wr;break}if(It&&be.label<It[2]){be.label=It[2],be.ops.push(wr);break}It[2]&&be.ops.pop(),be.trys.pop();continue}wr=Ae.call(ge,be)}catch(Nr){wr=[6,Nr],nt=0}finally{ye=It=0}if(wr[0]&5)throw wr[1];return{value:wr[0]?wr[1]:void 0,done:!0}}}function qe(ge,Ae,be){if(be||arguments.length===2)for(var ye=0,nt=Ae.length,It;ye<nt;ye++)(It||!(ye in Ae))&&(It||(It=Array.prototype.slice.call(Ae,0,ye)),It[ye]=Ae[ye]);return ge.concat(It||Ae)}for(var ze=function(){function ge(Ae,be,ye,nt){this.left=Ae,this.top=be,this.width=ye,this.height=nt}return ge.prototype.add=function(Ae,be,ye,nt){return new ge(this.left+Ae,this.top+be,this.width+ye,this.height+nt)},ge.fromClientRect=function(Ae,be){return new ge(be.left+Ae.windowBounds.left,be.top+Ae.windowBounds.top,be.width,be.height)},ge.fromDOMRectList=function(Ae,be){var ye=Array.from(be).find(function(nt){return nt.width!==0});return ye?new ge(ye.left+Ae.windowBounds.left,ye.top+Ae.windowBounds.top,ye.width,ye.height):ge.EMPTY},ge.EMPTY=new ge(0,0,0,0),ge}(),Ie=function(ge,Ae){return ze.fromClientRect(ge,Ae.getBoundingClientRect())},Ue=function(ge){var Ae=ge.body,be=ge.documentElement;if(!Ae||!be)throw new Error("Unable to get document size");var ye=Math.max(Math.max(Ae.scrollWidth,be.scrollWidth),Math.max(Ae.offsetWidth,be.offsetWidth),Math.max(Ae.clientWidth,be.clientWidth)),nt=Math.max(Math.max(Ae.scrollHeight,be.scrollHeight),Math.max(Ae.offsetHeight,be.offsetHeight),Math.max(Ae.clientHeight,be.clientHeight));return new ze(0,0,ye,nt)},he=function(ge){for(var Ae=[],be=0,ye=ge.length;be<ye;){var nt=ge.charCodeAt(be++);if(nt>=55296&&nt<=56319&&be<ye){var It=ge.charCodeAt(be++);(It&64512)===56320?Ae.push(((nt&1023)<<10)+(It&1023)+65536):(Ae.push(nt),be--)}else Ae.push(nt)}return Ae},xe=function(){for(var ge=[],Ae=0;Ae<arguments.length;Ae++)ge[Ae]=arguments[Ae];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ge);var be=ge.length;if(!be)return"";for(var ye=[],nt=-1,It="";++nt<be;){var Yt=ge[nt];Yt<=65535?ye.push(Yt):(Yt-=65536,ye.push((Yt>>10)+55296,Yt%1024+56320)),(nt+1===be||ye.length>16384)&&(It+=String.fromCharCode.apply(String,ye),ye.length=0)}return It},oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ve=0;ve<oe.length;ve++)Oe[oe.charCodeAt(ve)]=ve;for(var Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Te=0;Te<Me.length;Te++)Se[Me.charCodeAt(Te)]=Te;for(var we=function(ge){var Ae=ge.length*.75,be=ge.length,ye,nt=0,It,Yt,Bn,xn;ge[ge.length-1]==="="&&(Ae--,ge[ge.length-2]==="="&&Ae--);var wr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ae):new Array(Ae),Nr=Array.isArray(wr)?wr:new Uint8Array(wr);for(ye=0;ye<be;ye+=4)It=Se[ge.charCodeAt(ye)],Yt=Se[ge.charCodeAt(ye+1)],Bn=Se[ge.charCodeAt(ye+2)],xn=Se[ge.charCodeAt(ye+3)],Nr[nt++]=It<<2|Yt>>4,Nr[nt++]=(Yt&15)<<4|Bn>>2,Nr[nt++]=(Bn&3)<<6|xn&63;return wr},Ce=function(ge){for(var Ae=ge.length,be=[],ye=0;ye<Ae;ye+=2)be.push(ge[ye+1]<<8|ge[ye]);return be},Ee=function(ge){for(var Ae=ge.length,be=[],ye=0;ye<Ae;ye+=4)be.push(ge[ye+3]<<24|ge[ye+2]<<16|ge[ye+1]<<8|ge[ye]);return be},ke=5,Ke=11,Qe=2,je=Ke-ke,Je=65536>>ke,Ve=1<<ke,ct=Ve-1,ot=1024>>ke,pt=Je+ot,Ct=pt,He=32,ht=Ct+He,_e=65536>>Ke,Re=1<<je,Ot=Re-1,it=function(ge,Ae,be){return ge.slice?ge.slice(Ae,be):new Uint16Array(Array.prototype.slice.call(ge,Ae,be))},at=function(ge,Ae,be){return ge.slice?ge.slice(Ae,be):new Uint32Array(Array.prototype.slice.call(ge,Ae,be))},Et=function(ge,Ae){var be=we(ge),ye=Array.isArray(be)?Ee(be):new Uint32Array(be),nt=Array.isArray(be)?Ce(be):new Uint16Array(be),It=24,Yt=it(nt,It/2,ye[4]/2),Bn=ye[5]===2?it(nt,(It+ye[4])/2):at(ye,Math.ceil((It+ye[4])/4));return new Ze(ye[0],ye[1],ye[2],ye[3],Yt,Bn)},Ze=function(){function ge(Ae,be,ye,nt,It,Yt){this.initialValue=Ae,this.errorValue=be,this.highStart=ye,this.highValueIndex=nt,this.index=It,this.data=Yt}return ge.prototype.get=function(Ae){var be;if(Ae>=0){if(Ae<55296||Ae>56319&&Ae<=65535)return be=this.index[Ae>>ke],be=(be<<Qe)+(Ae&ct),this.data[be];if(Ae<=65535)return be=this.index[Je+(Ae-55296>>ke)],be=(be<<Qe)+(Ae&ct),this.data[be];if(Ae<this.highStart)return be=ht-_e+(Ae>>Ke),be=this.index[be],be+=Ae>>ke&Ot,be=this.index[be],be=(be<<Qe)+(Ae&ct),this.data[be];if(Ae<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ge}(),De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ut=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Zt=0;Zt<De.length;Zt++)ut[De.charCodeAt(Zt)]=Zt;var Kt="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",tt=50,Dt=1,jt=2,An=3,kt=4,pn=5,Pt=7,En=8,on=9,de=10,pe=11,ie=12,ee=13,se=14,le=15,Be=16,We=17,st=18,mt=19,vt=20,St=21,_t=22,Qt=23,xt=24,lt=25,Vt=26,Wt=27,gn=28,an=29,en=30,zn=31,Fn=32,Rt=33,sn=34,_n=35,Wn=36,Lt=37,Gt=38,nn=39,wn=40,Gn=41,Er=42,ti=43,oi=[9001,65288],Ar="!",Ir="\xD7",jn="\xF7",Hn=Et(Kt),Jn=[en,Wn],lr=[Dt,jt,An,pn],$n=[de,En],br=[Wt,Vt],Br=lr.concat($n),_r=[Gt,nn,wn,sn,_n],mi=[le,ee],di=function(ge,Ae){Ae===void 0&&(Ae="strict");var be=[],ye=[],nt=[];return ge.forEach(function(It,Yt){var Bn=Hn.get(It);if(Bn>tt?(nt.push(!0),Bn-=tt):nt.push(!1),["normal","auto","loose"].indexOf(Ae)!==-1&&[8208,8211,12316,12448].indexOf(It)!==-1)return ye.push(Yt),be.push(Be);if(Bn===kt||Bn===pe){if(Yt===0)return ye.push(Yt),be.push(en);var xn=be[Yt-1];return Br.indexOf(xn)===-1?(ye.push(ye[Yt-1]),be.push(xn)):(ye.push(Yt),be.push(en))}if(ye.push(Yt),Bn===zn)return be.push(Ae==="strict"?St:Lt);if(Bn===Er||Bn===an)return be.push(en);if(Bn===ti)return It>=131072&&It<=196605||It>=196608&&It<=262141?be.push(Lt):be.push(en);be.push(Bn)}),[ye,be,nt]},fi=function(ge,Ae,be,ye){var nt=ye[be];if(Array.isArray(ge)?ge.indexOf(nt)!==-1:ge===nt)for(var It=be;It<=ye.length;){It++;var Yt=ye[It];if(Yt===Ae)return!0;if(Yt!==de)break}if(nt===de)for(var It=be;It>0;){It--;var Bn=ye[It];if(Array.isArray(ge)?ge.indexOf(Bn)!==-1:ge===Bn)for(var xn=be;xn<=ye.length;){xn++;var Yt=ye[xn];if(Yt===Ae)return!0;if(Yt!==de)break}if(Bn!==de)break}return!1},Ti=function(ge,Ae){for(var be=ge;be>=0;){var ye=Ae[be];if(ye===de)be--;else return ye}return 0},xi=function(ge,Ae,be,ye,nt){if(be[ye]===0)return Ir;var It=ye-1;if(Array.isArray(nt)&&nt[It]===!0)return Ir;var Yt=It-1,Bn=It+1,xn=Ae[It],wr=Yt>=0?Ae[Yt]:0,Nr=Ae[Bn];if(xn===jt&&Nr===An)return Ir;if(lr.indexOf(xn)!==-1)return Ar;if(lr.indexOf(Nr)!==-1||$n.indexOf(Nr)!==-1)return Ir;if(Ti(It,Ae)===En)return jn;if(Hn.get(ge[It])===pe||(xn===Fn||xn===Rt)&&Hn.get(ge[Bn])===pe||xn===Pt||Nr===Pt||xn===on||[de,ee,le].indexOf(xn)===-1&&Nr===on||[We,st,mt,xt,gn].indexOf(Nr)!==-1||Ti(It,Ae)===_t||fi(Qt,_t,It,Ae)||fi([We,st],St,It,Ae)||fi(ie,ie,It,Ae))return Ir;if(xn===de)return jn;if(xn===Qt||Nr===Qt)return Ir;if(Nr===Be||xn===Be)return jn;if([ee,le,St].indexOf(Nr)!==-1||xn===se||wr===Wn&&mi.indexOf(xn)!==-1||xn===gn&&Nr===Wn||Nr===vt||Jn.indexOf(Nr)!==-1&&xn===lt||Jn.indexOf(xn)!==-1&&Nr===lt||xn===Wt&&[Lt,Fn,Rt].indexOf(Nr)!==-1||[Lt,Fn,Rt].indexOf(xn)!==-1&&Nr===Vt||Jn.indexOf(xn)!==-1&&br.indexOf(Nr)!==-1||br.indexOf(xn)!==-1&&Jn.indexOf(Nr)!==-1||[Wt,Vt].indexOf(xn)!==-1&&(Nr===lt||[_t,le].indexOf(Nr)!==-1&&Ae[Bn+1]===lt)||[_t,le].indexOf(xn)!==-1&&Nr===lt||xn===lt&&[lt,gn,xt].indexOf(Nr)!==-1)return Ir;if([lt,gn,xt,We,st].indexOf(Nr)!==-1)for(var Kr=It;Kr>=0;){var Pi=Ae[Kr];if(Pi===lt)return Ir;if([gn,xt].indexOf(Pi)!==-1)Kr--;else break}if([Wt,Vt].indexOf(Nr)!==-1)for(var Kr=[We,st].indexOf(xn)!==-1?Yt:It;Kr>=0;){var Pi=Ae[Kr];if(Pi===lt)return Ir;if([gn,xt].indexOf(Pi)!==-1)Kr--;else break}if(Gt===xn&&[Gt,nn,sn,_n].indexOf(Nr)!==-1||[nn,sn].indexOf(xn)!==-1&&[nn,wn].indexOf(Nr)!==-1||[wn,_n].indexOf(xn)!==-1&&Nr===wn||_r.indexOf(xn)!==-1&&[vt,Vt].indexOf(Nr)!==-1||_r.indexOf(Nr)!==-1&&xn===Wt||Jn.indexOf(xn)!==-1&&Jn.indexOf(Nr)!==-1||xn===xt&&Jn.indexOf(Nr)!==-1||Jn.concat(lt).indexOf(xn)!==-1&&Nr===_t&&oi.indexOf(ge[Bn])===-1||Jn.concat(lt).indexOf(Nr)!==-1&&xn===st)return Ir;if(xn===Gn&&Nr===Gn){for(var pa=be[It],go=1;pa>0&&(pa--,Ae[pa]===Gn);)go++;if(go%2!==0)return Ir}return xn===Fn&&Nr===Rt?Ir:jn},io=function(ge,Ae){Ae||(Ae={lineBreak:"normal",wordBreak:"normal"});var be=di(ge,Ae.lineBreak),ye=be[0],nt=be[1],It=be[2];(Ae.wordBreak==="break-all"||Ae.wordBreak==="break-word")&&(nt=nt.map(function(Bn){return[lt,en,Er].indexOf(Bn)!==-1?Lt:Bn}));var Yt=Ae.wordBreak==="keep-all"?It.map(function(Bn,xn){return Bn&&ge[xn]>=19968&&ge[xn]<=40959}):void 0;return[ye,nt,Yt]},Xi=function(){function ge(Ae,be,ye,nt){this.codePoints=Ae,this.required=be===Ar,this.start=ye,this.end=nt}return ge.prototype.slice=function(){return xe.apply(void 0,this.codePoints.slice(this.start,this.end))},ge}(),ur=function(ge,Ae){var be=he(ge),ye=io(be,Ae),nt=ye[0],It=ye[1],Yt=ye[2],Bn=be.length,xn=0,wr=0;return{next:function(){if(wr>=Bn)return{done:!0,value:null};for(var Nr=Ir;wr<Bn&&(Nr=xi(be,It,nt,++wr,Yt))===Ir;);if(Nr!==Ir||wr===Bn){var Kr=new Xi(be,Nr,xn,wr);return xn=wr,{value:Kr,done:!1}}return{done:!0,value:null}}}},Tr=1,gi=2,ni=4,gt=8,vn=10,Ut=47,dn=92,$t=9,hn=32,Nn=34,Hr=61,zr=35,Ai=36,hr=37,nr=39,ir=40,Yr=41,Mi=95,Yn=45,Vn=33,Mr=60,Tn=62,mn=64,tr=91,or=93,ar=61,kr=123,vi=63,qr=125,Li=124,_i=126,ri=128,hi=65533,ro=42,ki=43,bi=44,Ni=58,oo=59,Di=46,yo=0,Ji=8,po=11,ho=14,Jo=31,xo=127,no=-1,Do=48,Zo=97,jo=101,Cn=102,Vi=117,Ur=122,Vr=65,ci=69,Zr=70,Qi=85,eo=90,Rr=function(ge){return ge>=Do&&ge<=57},ai=function(ge){return ge>=55296&&ge<=57343},Fi=function(ge){return Rr(ge)||ge>=Vr&&ge<=Zr||ge>=Zo&&ge<=Cn},Ri=function(ge){return ge>=Zo&&ge<=Ur},Mo=function(ge){return ge>=Vr&&ge<=eo},ui=function(ge){return Ri(ge)||Mo(ge)},Zi=function(ge){return ge>=ri},Wo=function(ge){return ge===vn||ge===$t||ge===hn},Xo=function(ge){return ui(ge)||Zi(ge)||ge===Mi},ra=function(ge){return Xo(ge)||Rr(ge)||ge===Yn},Qo=function(ge){return ge>=yo&&ge<=Ji||ge===po||ge>=ho&&ge<=Jo||ge===xo},qo=function(ge,Ae){return ge!==dn?!1:Ae!==vn},Yo=function(ge,Ae,be){return ge===Yn?Xo(Ae)||qo(Ae,be):Xo(ge)?!0:!!(ge===dn&&qo(ge,Ae))},Ba=function(ge,Ae,be){return ge===ki||ge===Yn?Rr(Ae)?!0:Ae===Di&&Rr(be):Rr(ge===Di?Ae:ge)},ls=function(ge){var Ae=0,be=1;(ge[Ae]===ki||ge[Ae]===Yn)&&(ge[Ae]===Yn&&(be=-1),Ae++);for(var ye=[];Rr(ge[Ae]);)ye.push(ge[Ae++]);var nt=ye.length?parseInt(xe.apply(void 0,ye),10):0;ge[Ae]===Di&&Ae++;for(var It=[];Rr(ge[Ae]);)It.push(ge[Ae++]);var Yt=It.length,Bn=Yt?parseInt(xe.apply(void 0,It),10):0;(ge[Ae]===ci||ge[Ae]===jo)&&Ae++;var xn=1;(ge[Ae]===ki||ge[Ae]===Yn)&&(ge[Ae]===Yn&&(xn=-1),Ae++);for(var wr=[];Rr(ge[Ae]);)wr.push(ge[Ae++]);var Nr=wr.length?parseInt(xe.apply(void 0,wr),10):0;return be*(nt+Bn*Math.pow(10,-Yt))*Math.pow(10,xn*Nr)},Ma={type:2},Na={type:3},$a={type:4},_o={type:13},Fo={type:8},Ea={type:21},us={type:9},sl={type:10},qs={type:11},ll={type:12},su={type:14},Bl={type:23},el={type:1},Wl={type:25},xu={type:24},Nu={type:26},Gs={type:27},mc={type:28},gc={type:29},ga={type:31},La={type:32},ha=function(){function ge(){this._value=[]}return ge.prototype.write=function(Ae){this._value=this._value.concat(he(Ae))},ge.prototype.read=function(){for(var Ae=[],be=this.consumeToken();be!==La;)Ae.push(be),be=this.consumeToken();return Ae},ge.prototype.consumeToken=function(){var Ae=this.consumeCodePoint();switch(Ae){case Nn:return this.consumeStringToken(Nn);case zr:var be=this.peekCodePoint(0),ye=this.peekCodePoint(1),nt=this.peekCodePoint(2);if(ra(be)||qo(ye,nt)){var It=Yo(be,ye,nt)?gi:Tr,Yt=this.consumeName();return{type:5,value:Yt,flags:It}}break;case Ai:if(this.peekCodePoint(0)===Hr)return this.consumeCodePoint(),_o;break;case nr:return this.consumeStringToken(nr);case ir:return Ma;case Yr:return Na;case ro:if(this.peekCodePoint(0)===Hr)return this.consumeCodePoint(),su;break;case ki:if(Ba(Ae,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Ae),this.consumeNumericToken();break;case bi:return $a;case Yn:var Bn=Ae,xn=this.peekCodePoint(0),wr=this.peekCodePoint(1);if(Ba(Bn,xn,wr))return this.reconsumeCodePoint(Ae),this.consumeNumericToken();if(Yo(Bn,xn,wr))return this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken();if(xn===Yn&&wr===Tn)return this.consumeCodePoint(),this.consumeCodePoint(),xu;break;case Di:if(Ba(Ae,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Ae),this.consumeNumericToken();break;case Ut:if(this.peekCodePoint(0)===ro)for(this.consumeCodePoint();;){var Nr=this.consumeCodePoint();if(Nr===ro&&(Nr=this.consumeCodePoint(),Nr===Ut))return this.consumeToken();if(Nr===no)return this.consumeToken()}break;case Ni:return Nu;case oo:return Gs;case Mr:if(this.peekCodePoint(0)===Vn&&this.peekCodePoint(1)===Yn&&this.peekCodePoint(2)===Yn)return this.consumeCodePoint(),this.consumeCodePoint(),Wl;break;case mn:var Kr=this.peekCodePoint(0),Pi=this.peekCodePoint(1),pa=this.peekCodePoint(2);if(Yo(Kr,Pi,pa)){var Yt=this.consumeName();return{type:7,value:Yt}}break;case tr:return mc;case dn:if(qo(Ae,this.peekCodePoint(0)))return this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken();break;case or:return gc;case ar:if(this.peekCodePoint(0)===Hr)return this.consumeCodePoint(),Fo;break;case kr:return qs;case qr:return ll;case Vi:case Qi:var go=this.peekCodePoint(0),$o=this.peekCodePoint(1);return go===ki&&(Fi($o)||$o===vi)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken();case Li:if(this.peekCodePoint(0)===Hr)return this.consumeCodePoint(),us;if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Ea;break;case _i:if(this.peekCodePoint(0)===Hr)return this.consumeCodePoint(),sl;break;case no:return La}return Wo(Ae)?(this.consumeWhiteSpace(),ga):Rr(Ae)?(this.reconsumeCodePoint(Ae),this.consumeNumericToken()):Xo(Ae)?(this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken()):{type:6,value:xe(Ae)}},ge.prototype.consumeCodePoint=function(){var Ae=this._value.shift();return typeof Ae=="undefined"?-1:Ae},ge.prototype.reconsumeCodePoint=function(Ae){this._value.unshift(Ae)},ge.prototype.peekCodePoint=function(Ae){return Ae>=this._value.length?-1:this._value[Ae]},ge.prototype.consumeUnicodeRangeToken=function(){for(var Ae=[],be=this.consumeCodePoint();Fi(be)&&Ae.length<6;)Ae.push(be),be=this.consumeCodePoint();for(var ye=!1;be===vi&&Ae.length<6;)Ae.push(be),be=this.consumeCodePoint(),ye=!0;if(ye){var nt=parseInt(xe.apply(void 0,Ae.map(function(xn){return xn===vi?Do:xn})),16),It=parseInt(xe.apply(void 0,Ae.map(function(xn){return xn===vi?Zr:xn})),16);return{type:30,start:nt,end:It}}var Yt=parseInt(xe.apply(void 0,Ae),16);if(this.peekCodePoint(0)===Yn&&Fi(this.peekCodePoint(1))){this.consumeCodePoint(),be=this.consumeCodePoint();for(var Bn=[];Fi(be)&&Bn.length<6;)Bn.push(be),be=this.consumeCodePoint();var It=parseInt(xe.apply(void 0,Bn),16);return{type:30,start:Yt,end:It}}else return{type:30,start:Yt,end:Yt}},ge.prototype.consumeIdentLikeToken=function(){var Ae=this.consumeName();return Ae.toLowerCase()==="url"&&this.peekCodePoint(0)===ir?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ir?(this.consumeCodePoint(),{type:19,value:Ae}):{type:20,value:Ae}},ge.prototype.consumeUrlToken=function(){var Ae=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===no)return{type:22,value:""};var be=this.peekCodePoint(0);if(be===nr||be===Nn){var ye=this.consumeStringToken(this.consumeCodePoint());return ye.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===no||this.peekCodePoint(0)===Yr)?(this.consumeCodePoint(),{type:22,value:ye.value}):(this.consumeBadUrlRemnants(),Bl)}for(;;){var nt=this.consumeCodePoint();if(nt===no||nt===Yr)return{type:22,value:xe.apply(void 0,Ae)};if(Wo(nt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===no||this.peekCodePoint(0)===Yr?(this.consumeCodePoint(),{type:22,value:xe.apply(void 0,Ae)}):(this.consumeBadUrlRemnants(),Bl);if(nt===Nn||nt===nr||nt===ir||Qo(nt))return this.consumeBadUrlRemnants(),Bl;if(nt===dn)if(qo(nt,this.peekCodePoint(0)))Ae.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Bl;else Ae.push(nt)}},ge.prototype.consumeWhiteSpace=function(){for(;Wo(this.peekCodePoint(0));)this.consumeCodePoint()},ge.prototype.consumeBadUrlRemnants=function(){for(;;){var Ae=this.consumeCodePoint();if(Ae===Yr||Ae===no)return;qo(Ae,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},ge.prototype.consumeStringSlice=function(Ae){for(var be=5e4,ye="";Ae>0;){var nt=Math.min(be,Ae);ye+=xe.apply(void 0,this._value.splice(0,nt)),Ae-=nt}return this._value.shift(),ye},ge.prototype.consumeStringToken=function(Ae){var be="",ye=0;do{var nt=this._value[ye];if(nt===no||nt===void 0||nt===Ae)return be+=this.consumeStringSlice(ye),{type:0,value:be};if(nt===vn)return this._value.splice(0,ye),el;if(nt===dn){var It=this._value[ye+1];It!==no&&It!==void 0&&(It===vn?(be+=this.consumeStringSlice(ye),ye=-1,this._value.shift()):qo(nt,It)&&(be+=this.consumeStringSlice(ye),be+=xe(this.consumeEscapedCodePoint()),ye=-1))}ye++}while(!0)},ge.prototype.consumeNumber=function(){var Ae=[],be=ni,ye=this.peekCodePoint(0);for((ye===ki||ye===Yn)&&Ae.push(this.consumeCodePoint());Rr(this.peekCodePoint(0));)Ae.push(this.consumeCodePoint());ye=this.peekCodePoint(0);var nt=this.peekCodePoint(1);if(ye===Di&&Rr(nt))for(Ae.push(this.consumeCodePoint(),this.consumeCodePoint()),be=gt;Rr(this.peekCodePoint(0));)Ae.push(this.consumeCodePoint());ye=this.peekCodePoint(0),nt=this.peekCodePoint(1);var It=this.peekCodePoint(2);if((ye===ci||ye===jo)&&((nt===ki||nt===Yn)&&Rr(It)||Rr(nt)))for(Ae.push(this.consumeCodePoint(),this.consumeCodePoint()),be=gt;Rr(this.peekCodePoint(0));)Ae.push(this.consumeCodePoint());return[ls(Ae),be]},ge.prototype.consumeNumericToken=function(){var Ae=this.consumeNumber(),be=Ae[0],ye=Ae[1],nt=this.peekCodePoint(0),It=this.peekCodePoint(1),Yt=this.peekCodePoint(2);if(Yo(nt,It,Yt)){var Bn=this.consumeName();return{type:15,number:be,flags:ye,unit:Bn}}return nt===hr?(this.consumeCodePoint(),{type:16,number:be,flags:ye}):{type:17,number:be,flags:ye}},ge.prototype.consumeEscapedCodePoint=function(){var Ae=this.consumeCodePoint();if(Fi(Ae)){for(var be=xe(Ae);Fi(this.peekCodePoint(0))&&be.length<6;)be+=xe(this.consumeCodePoint());Wo(this.peekCodePoint(0))&&this.consumeCodePoint();var ye=parseInt(be,16);return ye===0||ai(ye)||ye>1114111?hi:ye}return Ae===no?hi:Ae},ge.prototype.consumeName=function(){for(var Ae="";;){var be=this.consumeCodePoint();if(ra(be))Ae+=xe(be);else if(qo(be,this.peekCodePoint(0)))Ae+=xe(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(be),Ae}},ge}(),va=function(){function ge(Ae){this._tokens=Ae}return ge.create=function(Ae){var be=new ha;return be.write(Ae),new ge(be.read())},ge.parseValue=function(Ae){return ge.create(Ae).parseComponentValue()},ge.parseValues=function(Ae){return ge.create(Ae).parseComponentValues()},ge.prototype.parseComponentValue=function(){for(var Ae=this.consumeToken();Ae.type===31;)Ae=this.consumeToken();if(Ae.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(Ae);var be=this.consumeComponentValue();do Ae=this.consumeToken();while(Ae.type===31);if(Ae.type===32)return be;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},ge.prototype.parseComponentValues=function(){for(var Ae=[];;){var be=this.consumeComponentValue();if(be.type===32)return Ae;Ae.push(be),Ae.push()}},ge.prototype.consumeComponentValue=function(){var Ae=this.consumeToken();switch(Ae.type){case 11:case 28:case 2:return this.consumeSimpleBlock(Ae.type);case 19:return this.consumeFunction(Ae)}return Ae},ge.prototype.consumeSimpleBlock=function(Ae){for(var be={type:Ae,values:[]},ye=this.consumeToken();;){if(ye.type===32||ia(ye,Ae))return be;this.reconsumeToken(ye),be.values.push(this.consumeComponentValue()),ye=this.consumeToken()}},ge.prototype.consumeFunction=function(Ae){for(var be={name:Ae.value,values:[],type:18};;){var ye=this.consumeToken();if(ye.type===32||ye.type===3)return be;this.reconsumeToken(ye),be.values.push(this.consumeComponentValue())}},ge.prototype.consumeToken=function(){var Ae=this._tokens.shift();return typeof Ae=="undefined"?La:Ae},ge.prototype.reconsumeToken=function(Ae){this._tokens.unshift(Ae)},ge}(),ts=function(ge){return ge.type===15},Ya=function(ge){return ge.type===17},Ga=function(ge){return ge.type===20},Gl=function(ge){return ge.type===0},lu=function(ge,Ae){return Ga(ge)&&ge.value===Ae},Tl=function(ge){return ge.type!==31},Ou=function(ge){return ge.type!==31&&ge.type!==4},Hi=function(ge){var Ae=[],be=[];return ge.forEach(function(ye){if(ye.type===4){if(be.length===0)throw new Error("Error parsing function args, zero tokens for arg");Ae.push(be),be=[];return}ye.type!==31&&be.push(ye)}),be.length&&Ae.push(be),Ae},ia=function(ge,Ae){return Ae===11&&ge.type===12||Ae===28&&ge.type===29?!0:Ae===2&&ge.type===3},Ta=function(ge){return ge.type===17||ge.type===15},ks=function(ge){return ge.type===16||Ta(ge)},pu=function(ge){return ge.length>1?[ge[0],ge[1]]:[ge[0]]},Hs={type:17,number:0,flags:ni},Kc={type:16,number:50,flags:ni},Vu={type:16,number:100,flags:ni},rc=function(ge,Ae,be){var ye=ge[0],nt=ge[1];return[vs(ye,Ae),vs(typeof nt!="undefined"?nt:ye,be)]},vs=function(ge,Ae){if(ge.type===16)return ge.number/100*Ae;if(ts(ge))switch(ge.unit){case"rem":case"em":return 16*ge.number;case"px":default:return ge.number}return ge.number},Bu="deg",Ms="grad",_A="rad",El="turn",kl={name:"angle",parse:function(ge,Ae){if(Ae.type===15)switch(Ae.unit){case Bu:return Math.PI*Ae.number/180;case Ms:return Math.PI/200*Ae.number;case _A:return Ae.number;case El:return Math.PI*2*Ae.number}throw new Error("Unsupported angle type")}},Vl=function(ge){return ge.type===15&&(ge.unit===Bu||ge.unit===Ms||ge.unit===_A||ge.unit===El)},NA=function(ge){var Ae=ge.filter(Ga).map(function(be){return be.value}).join(" ");switch(Ae){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Hs,Hs];case"to top":case"bottom":return vl(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Hs,Vu];case"to right":case"left":return vl(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Vu,Vu];case"to bottom":case"top":return vl(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Vu,Hs];case"to left":case"right":return vl(270)}return 0},vl=function(ge){return Math.PI*ge/180},mu={name:"color",parse:function(ge,Ae){if(Ae.type===18){var be=Sa[Ae.name];if(typeof be=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Ae.name+'"');return be(ge,Ae.values)}if(Ae.type===5){if(Ae.value.length===3){var ye=Ae.value.substring(0,1),nt=Ae.value.substring(1,2),It=Ae.value.substring(2,3);return tl(parseInt(ye+ye,16),parseInt(nt+nt,16),parseInt(It+It,16),1)}if(Ae.value.length===4){var ye=Ae.value.substring(0,1),nt=Ae.value.substring(1,2),It=Ae.value.substring(2,3),Yt=Ae.value.substring(3,4);return tl(parseInt(ye+ye,16),parseInt(nt+nt,16),parseInt(It+It,16),parseInt(Yt+Yt,16)/255)}if(Ae.value.length===6){var ye=Ae.value.substring(0,2),nt=Ae.value.substring(2,4),It=Ae.value.substring(4,6);return tl(parseInt(ye,16),parseInt(nt,16),parseInt(It,16),1)}if(Ae.value.length===8){var ye=Ae.value.substring(0,2),nt=Ae.value.substring(2,4),It=Ae.value.substring(4,6),Yt=Ae.value.substring(6,8);return tl(parseInt(ye,16),parseInt(nt,16),parseInt(It,16),parseInt(Yt,16)/255)}}if(Ae.type===20){var Bn=Rs[Ae.value.toUpperCase()];if(typeof Bn!="undefined")return Bn}return Rs.TRANSPARENT}},jl=function(ge){return(255&ge)===0},Us=function(ge){var Ae=255&ge,be=255&ge>>8,ye=255&ge>>16,nt=255&ge>>24;return Ae<255?"rgba("+nt+","+ye+","+be+","+Ae/255+")":"rgb("+nt+","+ye+","+be+")"},tl=function(ge,Ae,be,ye){return(ge<<24|Ae<<16|be<<8|Math.round(ye*255)<<0)>>>0},KA=function(ge,Ae){if(ge.type===17)return ge.number;if(ge.type===16){var be=Ae===3?1:255;return Ae===3?ge.number/100*be:Math.round(ge.number/100*be)}return 0},$A=function(ge,Ae){var be=Ae.filter(Ou);if(be.length===3){var ye=be.map(KA),nt=ye[0],It=ye[1],Yt=ye[2];return tl(nt,It,Yt,1)}if(be.length===4){var Bn=be.map(KA),nt=Bn[0],It=Bn[1],Yt=Bn[2],xn=Bn[3];return tl(nt,It,Yt,xn)}return 0};function Xl(ge,Ae,be){return be<0&&(be+=1),be>=1&&(be-=1),be<1/6?(Ae-ge)*be*6+ge:be<1/2?Ae:be<2/3?(Ae-ge)*6*(2/3-be)+ge:ge}var Eu=function(ge,Ae){var be=Ae.filter(Ou),ye=be[0],nt=be[1],It=be[2],Yt=be[3],Bn=(ye.type===17?vl(ye.number):kl.parse(ge,ye))/(Math.PI*2),xn=ks(nt)?nt.number/100:0,wr=ks(It)?It.number/100:0,Nr=typeof Yt!="undefined"&&ks(Yt)?vs(Yt,1):1;if(xn===0)return tl(wr*255,wr*255,wr*255,1);var Kr=wr<=.5?wr*(xn+1):wr+xn-wr*xn,Pi=wr*2-Kr,pa=Xl(Pi,Kr,Bn+1/3),go=Xl(Pi,Kr,Bn),$o=Xl(Pi,Kr,Bn-1/3);return tl(pa*255,go*255,$o*255,Nr)},Sa={hsl:Eu,hsla:Eu,rgb:$A,rgba:$A},Qa=function(ge,Ae){return mu.parse(ge,va.create(Ae).parseComponentValue())},Rs={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ic={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ge,Ae){return Ae.map(function(be){if(Ga(be))switch(be.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Yl={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},du=function(ge,Ae){var be=mu.parse(ge,Ae[0]),ye=Ae[1];return ye&&ks(ye)?{color:be,stop:ye}:{color:be,stop:null}},$c=function(ge,Ae){var be=ge[0],ye=ge[ge.length-1];be.stop===null&&(be.stop=Hs),ye.stop===null&&(ye.stop=Vu);for(var nt=[],It=0,Yt=0;Yt<ge.length;Yt++){var Bn=ge[Yt].stop;if(Bn!==null){var xn=vs(Bn,Ae);xn>It?nt.push(xn):nt.push(It),It=xn}else nt.push(null)}for(var wr=null,Yt=0;Yt<nt.length;Yt++){var Nr=nt[Yt];if(Nr===null)wr===null&&(wr=Yt);else if(wr!==null){for(var Kr=Yt-wr,Pi=nt[wr-1],pa=(Nr-Pi)/(Kr+1),go=1;go<=Kr;go++)nt[wr+go-1]=pa*go;wr=null}}return ge.map(function($o,fs){var wa=$o.color;return{color:wa,stop:Math.max(Math.min(1,nt[fs]/Ae),0)}})},vc=function(ge,Ae,be){var ye=Ae/2,nt=be/2,It=vs(ge[0],Ae)-ye,Yt=nt-vs(ge[1],be);return(Math.atan2(Yt,It)+Math.PI*2)%(Math.PI*2)},dA=function(ge,Ae,be){var ye=typeof ge=="number"?ge:vc(ge,Ae,be),nt=Math.abs(Ae*Math.sin(ye))+Math.abs(be*Math.cos(ye)),It=Ae/2,Yt=be/2,Bn=nt/2,xn=Math.sin(ye-Math.PI/2)*Bn,wr=Math.cos(ye-Math.PI/2)*Bn;return[nt,It-wr,It+wr,Yt-xn,Yt+xn]},Jl=function(ge,Ae){return Math.sqrt(ge*ge+Ae*Ae)},yc=function(ge,Ae,be,ye,nt){var It=[[0,0],[0,Ae],[ge,0],[ge,Ae]];return It.reduce(function(Yt,Bn){var xn=Bn[0],wr=Bn[1],Nr=Jl(be-xn,ye-wr);return(nt?Nr<Yt.optimumDistance:Nr>Yt.optimumDistance)?{optimumCorner:Bn,optimumDistance:Nr}:Yt},{optimumDistance:nt?1/0:-1/0,optimumCorner:null}).optimumCorner},tA=function(ge,Ae,be,ye,nt){var It=0,Yt=0;switch(ge.size){case 0:ge.shape===0?It=Yt=Math.min(Math.abs(Ae),Math.abs(Ae-ye),Math.abs(be),Math.abs(be-nt)):ge.shape===1&&(It=Math.min(Math.abs(Ae),Math.abs(Ae-ye)),Yt=Math.min(Math.abs(be),Math.abs(be-nt)));break;case 2:if(ge.shape===0)It=Yt=Math.min(Jl(Ae,be),Jl(Ae,be-nt),Jl(Ae-ye,be),Jl(Ae-ye,be-nt));else if(ge.shape===1){var Bn=Math.min(Math.abs(be),Math.abs(be-nt))/Math.min(Math.abs(Ae),Math.abs(Ae-ye)),xn=yc(ye,nt,Ae,be,!0),wr=xn[0],Nr=xn[1];It=Jl(wr-Ae,(Nr-be)/Bn),Yt=Bn*It}break;case 1:ge.shape===0?It=Yt=Math.max(Math.abs(Ae),Math.abs(Ae-ye),Math.abs(be),Math.abs(be-nt)):ge.shape===1&&(It=Math.max(Math.abs(Ae),Math.abs(Ae-ye)),Yt=Math.max(Math.abs(be),Math.abs(be-nt)));break;case 3:if(ge.shape===0)It=Yt=Math.max(Jl(Ae,be),Jl(Ae,be-nt),Jl(Ae-ye,be),Jl(Ae-ye,be-nt));else if(ge.shape===1){var Bn=Math.max(Math.abs(be),Math.abs(be-nt))/Math.max(Math.abs(Ae),Math.abs(Ae-ye)),Kr=yc(ye,nt,Ae,be,!1),wr=Kr[0],Nr=Kr[1];It=Jl(wr-Ae,(Nr-be)/Bn),Yt=Bn*It}break}return Array.isArray(ge.size)&&(It=vs(ge.size[0],ye),Yt=ge.size.length===2?vs(ge.size[1],nt):It),[It,Yt]},nA=function(ge,Ae){var be=vl(180),ye=[];return Hi(Ae).forEach(function(nt,It){if(It===0){var Yt=nt[0];if(Yt.type===20&&Yt.value==="to"){be=NA(nt);return}else if(Vl(Yt)){be=kl.parse(ge,Yt);return}}var Bn=du(ge,nt);ye.push(Bn)}),{angle:be,stops:ye,type:1}},Ed=function(ge,Ae){var be=vl(180),ye=[];return Hi(Ae).forEach(function(nt,It){if(It===0){var Yt=nt[0];if(Yt.type===20&&["top","left","right","bottom"].indexOf(Yt.value)!==-1){be=NA(nt);return}else if(Vl(Yt)){be=(kl.parse(ge,Yt)+vl(270))%vl(360);return}}var Bn=du(ge,nt);ye.push(Bn)}),{angle:be,stops:ye,type:1}},Jf=function(ge,Ae){var be=vl(180),ye=[],nt=1,It=0,Yt=3,Bn=[];return Hi(Ae).forEach(function(xn,wr){var Nr=xn[0];if(wr===0){if(Ga(Nr)&&Nr.value==="linear"){nt=1;return}else if(Ga(Nr)&&Nr.value==="radial"){nt=2;return}}if(Nr.type===18){if(Nr.name==="from"){var Kr=mu.parse(ge,Nr.values[0]);ye.push({stop:Hs,color:Kr})}else if(Nr.name==="to"){var Kr=mu.parse(ge,Nr.values[0]);ye.push({stop:Vu,color:Kr})}else if(Nr.name==="color-stop"){var Pi=Nr.values.filter(Ou);if(Pi.length===2){var Kr=mu.parse(ge,Pi[1]),pa=Pi[0];Ya(pa)&&ye.push({stop:{type:16,number:pa.number*100,flags:pa.flags},color:Kr})}}}}),nt===1?{angle:(be+vl(180))%vl(360),stops:ye,type:nt}:{size:Yt,shape:It,stops:ye,position:Bn,type:nt}},nd="closest-side",OA="farthest-side",fA="closest-corner",Du="farthest-corner",DA="circle",rA="ellipse",Sd="cover",qf="contain",Ns=function(ge,Ae){var be=0,ye=3,nt=[],It=[];return Hi(Ae).forEach(function(Yt,Bn){var xn=!0;if(Bn===0){var wr=!1;xn=Yt.reduce(function(Kr,Pi){if(wr)if(Ga(Pi))switch(Pi.value){case"center":return It.push(Kc),Kr;case"top":case"left":return It.push(Hs),Kr;case"right":case"bottom":return It.push(Vu),Kr}else(ks(Pi)||Ta(Pi))&&It.push(Pi);else if(Ga(Pi))switch(Pi.value){case DA:return be=0,!1;case rA:return be=1,!1;case"at":return wr=!0,!1;case nd:return ye=0,!1;case Sd:case OA:return ye=1,!1;case qf:case fA:return ye=2,!1;case Du:return ye=3,!1}else if(Ta(Pi)||ks(Pi))return Array.isArray(ye)||(ye=[]),ye.push(Pi),!1;return Kr},xn)}if(xn){var Nr=du(ge,Yt);nt.push(Nr)}}),{size:ye,shape:be,stops:nt,position:It,type:2}},Xu=function(ge,Ae){var be=0,ye=3,nt=[],It=[];return Hi(Ae).forEach(function(Yt,Bn){var xn=!0;if(Bn===0?xn=Yt.reduce(function(Nr,Kr){if(Ga(Kr))switch(Kr.value){case"center":return It.push(Kc),!1;case"top":case"left":return It.push(Hs),!1;case"right":case"bottom":return It.push(Vu),!1}else if(ks(Kr)||Ta(Kr))return It.push(Kr),!1;return Nr},xn):Bn===1&&(xn=Yt.reduce(function(Nr,Kr){if(Ga(Kr))switch(Kr.value){case DA:return be=0,!1;case rA:return be=1,!1;case qf:case nd:return ye=0,!1;case OA:return ye=1,!1;case fA:return ye=2,!1;case Sd:case Du:return ye=3,!1}else if(Ta(Kr)||ks(Kr))return Array.isArray(ye)||(ye=[]),ye.push(Kr),!1;return Nr},xn)),xn){var wr=du(ge,Yt);nt.push(wr)}}),{size:ye,shape:be,stops:nt,position:It,type:2}},hA=function(ge){return ge.type===1},Ph=function(ge){return ge.type===2},Zc={name:"image",parse:function(ge,Ae){if(Ae.type===22){var be={url:Ae.value,type:0};return ge.cache.addImage(Ae.value),be}if(Ae.type===18){var ye=Fd[Ae.name];if(typeof ye=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Ae.name+'"');return ye(ge,Ae.values)}throw new Error("Unsupported image type "+Ae.type)}};function Th(ge){return!(ge.type===20&&ge.value==="none")&&(ge.type!==18||!!Fd[ge.name])}var Fd={"linear-gradient":nA,"-moz-linear-gradient":Ed,"-ms-linear-gradient":Ed,"-o-linear-gradient":Ed,"-webkit-linear-gradient":Ed,"radial-gradient":Ns,"-moz-radial-gradient":Xu,"-ms-radial-gradient":Xu,"-o-radial-gradient":Xu,"-webkit-radial-gradient":Xu,"-webkit-gradient":Jf},eh={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){if(Ae.length===0)return[];var be=Ae[0];return be.type===20&&be.value==="none"?[]:Ae.filter(function(ye){return Ou(ye)&&Th(ye)}).map(function(ye){return Zc.parse(ge,ye)})}},bf={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ge,Ae){return Ae.map(function(be){if(Ga(be))switch(be.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Cf={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ge,Ae){return Hi(Ae).map(function(be){return be.filter(ks)}).map(pu)}},Wc={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ge,Ae){return Hi(Ae).map(function(be){return be.filter(Ga).map(function(ye){return ye.value}).join(" ")}).map(ya)}},ya=function(ge){switch(ge){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ql;(function(ge){ge.AUTO="auto",ge.CONTAIN="contain",ge.COVER="cover"})(Ql||(Ql={}));var Dc={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ge,Ae){return Hi(Ae).map(function(be){return be.filter(rd)})}},rd=function(ge){return Ga(ge)||ks(ge)},PA=function(ge){return{name:"border-"+ge+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Kp=PA("top"),TA=PA("right"),th=PA("bottom"),Pc=PA("left"),id=function(ge){return{name:"border-radius-"+ge,initialValue:"0 0",prefix:!1,type:1,parse:function(Ae,be){return pu(be.filter(ks))}}},$p=id("top-left"),pA=id("top-right"),Ic=id("bottom-right"),oc=id("bottom-left"),zs=function(ge){return{name:"border-"+ge+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(Ae,be){switch(be){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},mA=zs("top"),od=zs("right"),ad=zs("bottom"),gA=zs("left"),kA=function(ge){return{name:"border-"+ge+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Ae,be){return ts(be)?be.number:0}}},xf=kA("top"),Id=kA("right"),kh=kA("bottom"),Zp=kA("left"),ac={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},vA={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"rtl":return 1;case"ltr":default:return 0}}},up={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ge,Ae){return Ae.filter(Ga).reduce(function(be,ye){return be|Wp(ye.value)},0)}},Wp=function(ge){switch(ge){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Vd={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},cp={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ge,Ae){return Ae.type===20&&Ae.value==="normal"?0:Ae.type===17||Ae.type===15?Ae.number:0}},Xd;(function(ge){ge.NORMAL="normal",ge.STRICT="strict"})(Xd||(Xd={}));var Gp={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"strict":return Xd.STRICT;case"normal":default:return Xd.NORMAL}}},sc={name:"line-height",initialValue:"normal",prefix:!1,type:4},Pu=function(ge,Ae){return Ga(ge)&&ge.value==="normal"?1.2*Ae:ge.type===17?Ae*ge.number:ks(ge)?vs(ge,Ae):Ae},lc={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ge,Ae){return Ae.type===20&&Ae.value==="none"?null:Zc.parse(ge,Ae)}},Tu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"inside":return 0;case"outside":default:return 1}}},sd={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Yd=function(ge){return{name:"margin-"+ge,initialValue:"0",prefix:!1,type:4}},Bf=Yd("top"),Ap=Yd("right"),dp=Yd("bottom"),fp=Yd("left"),nh={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ge,Ae){return Ae.filter(Ga).map(function(be){switch(be.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},yA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ld=function(ge){return{name:"padding-"+ge,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},hp=Ld("top"),bt=Ld("right"),wt=Ld("bottom"),Xt=Ld("left"),un={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Sn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},kn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){return Ae.length===1&&lu(Ae[0],"none")?[]:Hi(Ae).map(function(be){for(var ye={color:Rs.TRANSPARENT,offsetX:Hs,offsetY:Hs,blur:Hs},nt=0,It=0;It<be.length;It++){var Yt=be[It];Ta(Yt)?(nt===0?ye.offsetX=Yt:nt===1?ye.offsetY=Yt:ye.blur=Yt,nt++):ye.color=mu.parse(ge,Yt)}return ye})}},sr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},er={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(ge,Ae){if(Ae.type===20&&Ae.value==="none")return null;if(Ae.type===18){var be=si[Ae.name];if(typeof be=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Ae.name+'"');return be(Ae.values)}return null}},vr=function(ge){var Ae=ge.filter(function(be){return be.type===17}).map(function(be){return be.number});return Ae.length===6?Ae:null},fr=function(ge){var Ae=ge.filter(function(xn){return xn.type===17}).map(function(xn){return xn.number}),be=Ae[0],ye=Ae[1];Ae[2],Ae[3];var nt=Ae[4],It=Ae[5];Ae[6],Ae[7],Ae[8],Ae[9],Ae[10],Ae[11];var Yt=Ae[12],Bn=Ae[13];return Ae[14],Ae[15],Ae.length===16?[be,ye,nt,It,Yt,Bn]:null},si={matrix:vr,matrix3d:fr},jr={type:16,number:50,flags:ni},Qr=[jr,jr],Lr={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(ge,Ae){var be=Ae.filter(ks);return be.length!==2?Qr:[be[0],be[1]]}},Sr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Wi;(function(ge){ge.NORMAL="normal",ge.BREAK_ALL="break-all",ge.KEEP_ALL="keep-all"})(Wi||(Wi={}));for(var yi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"break-all":return Wi.BREAK_ALL;case"keep-all":return Wi.KEEP_ALL;case"normal":default:return Wi.NORMAL}}},to={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(ge,Ae){if(Ae.type===20)return{auto:!0,order:0};if(Ya(Ae))return{auto:!1,order:Ae.number};throw new Error("Invalid z-index number parsed")}},uo={name:"time",parse:function(ge,Ae){if(Ae.type===15)switch(Ae.unit.toLowerCase()){case"s":return 1e3*Ae.number;case"ms":return Ae.number}throw new Error("Unsupported time type")}},qi={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(ge,Ae){return Ya(Ae)?Ae.number:1}},mo={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Eo={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(ge,Ae){return Ae.filter(Ga).map(function(be){switch(be.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(be){return be!==0})}},Uo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(ge,Ae){var be=[],ye=[];return Ae.forEach(function(nt){switch(nt.type){case 20:case 0:be.push(nt.value);break;case 17:be.push(nt.number.toString());break;case 4:ye.push(be.join(" ")),be.length=0;break}}),be.length&&ye.push(be.join(" ")),ye.map(function(nt){return nt.indexOf(" ")===-1?nt:"'"+nt+"'"})}},Po={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},_a={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(ge,Ae){if(Ya(Ae))return Ae.number;if(Ga(Ae))switch(Ae.value){case"bold":return 700;case"normal":default:return 400}return 400}},la={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){return Ae.filter(Ga).map(function(be){return be.value})}},na={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},zo=function(ge,Ae){return(ge&Ae)!==0},Ro={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){if(Ae.length===0)return[];var be=Ae[0];return be.type===20&&be.value==="none"?[]:Ae}},Ho={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(ge,Ae){if(Ae.length===0)return null;var be=Ae[0];if(be.type===20&&be.value==="none")return null;for(var ye=[],nt=Ae.filter(Tl),It=0;It<nt.length;It++){var Yt=nt[It],Bn=nt[It+1];if(Yt.type===20){var xn=Bn&&Ya(Bn)?Bn.number:1;ye.push({counter:Yt.value,increment:xn})}}return ye}},wo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(ge,Ae){if(Ae.length===0)return[];for(var be=[],ye=Ae.filter(Tl),nt=0;nt<ye.length;nt++){var It=ye[nt],Yt=ye[nt+1];if(Ga(It)&&It.value!=="none"){var Bn=Yt&&Ya(Yt)?Yt.number:0;be.push({counter:It.value,reset:Bn})}}return be}},fo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(ge,Ae){return Ae.filter(ts).map(function(be){return uo.parse(ge,be)})}},To={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(ge,Ae){if(Ae.length===0)return null;var be=Ae[0];if(be.type===20&&be.value==="none")return null;var ye=[],nt=Ae.filter(Gl);if(nt.length%2!==0)return null;for(var It=0;It<nt.length;It+=2){var Yt=nt[It].value,Bn=nt[It+1].value;ye.push({open:Yt,close:Bn})}return ye}},Go=function(ge,Ae,be){if(!ge)return"";var ye=ge[Math.min(Ae,ge.length-1)];return ye?be?ye.open:ye.close:""},oa={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){return Ae.length===1&&lu(Ae[0],"none")?[]:Hi(Ae).map(function(be){for(var ye={color:255,offsetX:Hs,offsetY:Hs,blur:Hs,spread:Hs,inset:!1},nt=0,It=0;It<be.length;It++){var Yt=be[It];lu(Yt,"inset")?ye.inset=!0:Ta(Yt)?(nt===0?ye.offsetX=Yt:nt===1?ye.offsetY=Yt:nt===2?ye.blur=Yt:ye.spread=Yt,nt++):ye.color=mu.parse(ge,Yt)}return ye})}},Co={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(ge,Ae){var be=[0,1,2],ye=[];return Ae.filter(Ga).forEach(function(nt){switch(nt.value){case"stroke":ye.push(1);break;case"fill":ye.push(0);break;case"markers":ye.push(2);break}}),be.forEach(function(nt){ye.indexOf(nt)===-1&&ye.push(nt)}),ye}},qa={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Za={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(ge,Ae){return ts(Ae)?Ae.number:0}},Ml=function(){function ge(Ae,be){var ye,nt;this.animationDuration=co(Ae,fo,be.animationDuration),this.backgroundClip=co(Ae,ic,be.backgroundClip),this.backgroundColor=co(Ae,Yl,be.backgroundColor),this.backgroundImage=co(Ae,eh,be.backgroundImage),this.backgroundOrigin=co(Ae,bf,be.backgroundOrigin),this.backgroundPosition=co(Ae,Cf,be.backgroundPosition),this.backgroundRepeat=co(Ae,Wc,be.backgroundRepeat),this.backgroundSize=co(Ae,Dc,be.backgroundSize),this.borderTopColor=co(Ae,Kp,be.borderTopColor),this.borderRightColor=co(Ae,TA,be.borderRightColor),this.borderBottomColor=co(Ae,th,be.borderBottomColor),this.borderLeftColor=co(Ae,Pc,be.borderLeftColor),this.borderTopLeftRadius=co(Ae,$p,be.borderTopLeftRadius),this.borderTopRightRadius=co(Ae,pA,be.borderTopRightRadius),this.borderBottomRightRadius=co(Ae,Ic,be.borderBottomRightRadius),this.borderBottomLeftRadius=co(Ae,oc,be.borderBottomLeftRadius),this.borderTopStyle=co(Ae,mA,be.borderTopStyle),this.borderRightStyle=co(Ae,od,be.borderRightStyle),this.borderBottomStyle=co(Ae,ad,be.borderBottomStyle),this.borderLeftStyle=co(Ae,gA,be.borderLeftStyle),this.borderTopWidth=co(Ae,xf,be.borderTopWidth),this.borderRightWidth=co(Ae,Id,be.borderRightWidth),this.borderBottomWidth=co(Ae,kh,be.borderBottomWidth),this.borderLeftWidth=co(Ae,Zp,be.borderLeftWidth),this.boxShadow=co(Ae,oa,be.boxShadow),this.color=co(Ae,ac,be.color),this.direction=co(Ae,vA,be.direction),this.display=co(Ae,up,be.display),this.float=co(Ae,Vd,be.cssFloat),this.fontFamily=co(Ae,Uo,be.fontFamily),this.fontSize=co(Ae,Po,be.fontSize),this.fontStyle=co(Ae,na,be.fontStyle),this.fontVariant=co(Ae,la,be.fontVariant),this.fontWeight=co(Ae,_a,be.fontWeight),this.letterSpacing=co(Ae,cp,be.letterSpacing),this.lineBreak=co(Ae,Gp,be.lineBreak),this.lineHeight=co(Ae,sc,be.lineHeight),this.listStyleImage=co(Ae,lc,be.listStyleImage),this.listStylePosition=co(Ae,Tu,be.listStylePosition),this.listStyleType=co(Ae,sd,be.listStyleType),this.marginTop=co(Ae,Bf,be.marginTop),this.marginRight=co(Ae,Ap,be.marginRight),this.marginBottom=co(Ae,dp,be.marginBottom),this.marginLeft=co(Ae,fp,be.marginLeft),this.opacity=co(Ae,qi,be.opacity);var It=co(Ae,nh,be.overflow);this.overflowX=It[0],this.overflowY=It[It.length>1?1:0],this.overflowWrap=co(Ae,yA,be.overflowWrap),this.paddingTop=co(Ae,hp,be.paddingTop),this.paddingRight=co(Ae,bt,be.paddingRight),this.paddingBottom=co(Ae,wt,be.paddingBottom),this.paddingLeft=co(Ae,Xt,be.paddingLeft),this.paintOrder=co(Ae,Co,be.paintOrder),this.position=co(Ae,Sn,be.position),this.textAlign=co(Ae,un,be.textAlign),this.textDecorationColor=co(Ae,mo,(ye=be.textDecorationColor)!==null&&ye!==void 0?ye:be.color),this.textDecorationLine=co(Ae,Eo,(nt=be.textDecorationLine)!==null&&nt!==void 0?nt:be.textDecoration),this.textShadow=co(Ae,kn,be.textShadow),this.textTransform=co(Ae,sr,be.textTransform),this.transform=co(Ae,er,be.transform),this.transformOrigin=co(Ae,Lr,be.transformOrigin),this.visibility=co(Ae,Sr,be.visibility),this.webkitTextStrokeColor=co(Ae,qa,be.webkitTextStrokeColor),this.webkitTextStrokeWidth=co(Ae,Za,be.webkitTextStrokeWidth),this.wordBreak=co(Ae,yi,be.wordBreak),this.zIndex=co(Ae,to,be.zIndex)}return ge.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},ge.prototype.isTransparent=function(){return jl(this.backgroundColor)},ge.prototype.isTransformed=function(){return this.transform!==null},ge.prototype.isPositioned=function(){return this.position!==0},ge.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},ge.prototype.isFloating=function(){return this.float!==0},ge.prototype.isInlineLevel=function(){return zo(this.display,4)||zo(this.display,33554432)||zo(this.display,268435456)||zo(this.display,536870912)||zo(this.display,67108864)||zo(this.display,134217728)},ge}(),Sl=function(){function ge(Ae,be){this.content=co(Ae,Ro,be.content),this.quotes=co(Ae,To,be.quotes)}return ge}(),ul=function(){function ge(Ae,be){this.counterIncrement=co(Ae,Ho,be.counterIncrement),this.counterReset=co(Ae,wo,be.counterReset)}return ge}(),co=function(ge,Ae,be){var ye=new ha,nt=be!==null&&typeof be!="undefined"?be.toString():Ae.initialValue;ye.write(nt);var It=new va(ye.read());switch(Ae.type){case 2:var Yt=It.parseComponentValue();return Ae.parse(ge,Ga(Yt)?Yt.value:Ae.initialValue);case 0:return Ae.parse(ge,It.parseComponentValue());case 1:return Ae.parse(ge,It.parseComponentValues());case 4:return It.parseComponentValue();case 3:switch(Ae.format){case"angle":return kl.parse(ge,It.parseComponentValue());case"color":return mu.parse(ge,It.parseComponentValue());case"image":return Zc.parse(ge,It.parseComponentValue());case"length":var Bn=It.parseComponentValue();return Ta(Bn)?Bn:Hs;case"length-percentage":var xn=It.parseComponentValue();return ks(xn)?xn:Hs;case"time":return uo.parse(ge,It.parseComponentValue())}break}},ql="data-html2canvas-debug",cs=function(ge){var Ae=ge.getAttribute(ql);switch(Ae){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},os=function(ge,Ae){var be=cs(ge);return be===1||Ae===be},ol=function(){function ge(Ae,be){if(this.context=Ae,this.textNodes=[],this.elements=[],this.flags=0,os(be,3))debugger;this.styles=new Ml(Ae,window.getComputedStyle(be,null)),Rh(be)&&(this.styles.animationDuration.some(function(ye){return ye>0})&&(be.style.animationDuration="0s"),this.styles.transform!==null&&(be.style.transform="none")),this.bounds=Ie(this.context,be),os(be,4)&&(this.flags|=16)}return ge}(),fu="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ba=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Vo=0;Vo<aa.length;Vo++)ba[aa.charCodeAt(Vo)]=Vo;for(var No=function(ge){var Ae=ge.length*.75,be=ge.length,ye,nt=0,It,Yt,Bn,xn;ge[ge.length-1]==="="&&(Ae--,ge[ge.length-2]==="="&&Ae--);var wr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ae):new Array(Ae),Nr=Array.isArray(wr)?wr:new Uint8Array(wr);for(ye=0;ye<be;ye+=4)It=ba[ge.charCodeAt(ye)],Yt=ba[ge.charCodeAt(ye+1)],Bn=ba[ge.charCodeAt(ye+2)],xn=ba[ge.charCodeAt(ye+3)],Nr[nt++]=It<<2|Yt>>4,Nr[nt++]=(Yt&15)<<4|Bn>>2,Nr[nt++]=(Bn&3)<<6|xn&63;return wr},ps=function(ge){for(var Ae=ge.length,be=[],ye=0;ye<Ae;ye+=2)be.push(ge[ye+1]<<8|ge[ye]);return be},Fs=function(ge){for(var Ae=ge.length,be=[],ye=0;ye<Ae;ye+=4)be.push(ge[ye+3]<<24|ge[ye+2]<<16|ge[ye+1]<<8|ge[ye]);return be},Vs=5,Ks=11,cl=2,gu=Ks-Vs,ua=65536>>Vs,ta=1<<Vs,Bs=ta-1,nl=1024>>Vs,Xs=ua+nl,vu=Xs,Ul=32,uc=vu+Ul,Fl=65536>>Ks,ys=1<<gu,Al=ys-1,dl=function(ge,Ae,be){return ge.slice?ge.slice(Ae,be):new Uint16Array(Array.prototype.slice.call(ge,Ae,be))},hu=function(ge,Ae,be){return ge.slice?ge.slice(Ae,be):new Uint32Array(Array.prototype.slice.call(ge,Ae,be))},Rl=function(ge,Ae){var be=No(ge),ye=Array.isArray(be)?Fs(be):new Uint32Array(be),nt=Array.isArray(be)?ps(be):new Uint16Array(be),It=24,Yt=dl(nt,It/2,ye[4]/2),Bn=ye[5]===2?dl(nt,(It+ye[4])/2):hu(ye,Math.ceil((It+ye[4])/4));return new ws(ye[0],ye[1],ye[2],ye[3],Yt,Bn)},ws=function(){function ge(Ae,be,ye,nt,It,Yt){this.initialValue=Ae,this.errorValue=be,this.highStart=ye,this.highValueIndex=nt,this.index=It,this.data=Yt}return ge.prototype.get=function(Ae){var be;if(Ae>=0){if(Ae<55296||Ae>56319&&Ae<=65535)return be=this.index[Ae>>Vs],be=(be<<cl)+(Ae&Bs),this.data[be];if(Ae<=65535)return be=this.index[ua+(Ae-55296>>Vs)],be=(be<<cl)+(Ae&Bs),this.data[be];if(Ae<this.highStart)return be=uc-Fl+(Ae>>Ks),be=this.index[be],be+=Ae>>Vs&Al,be=this.index[be],be=(be<<cl)+(Ae&Bs),this.data[be];if(Ae<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ge}(),yl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Is=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),wl=0;wl<yl.length;wl++)Is[yl.charCodeAt(wl)]=wl;var eu=1,ku=2,Mu=3,Gc=4,fl=5,_d=7,ju=8,Yu=9,Qu=10,Ju=11,hl=12,wc=13,wA=14,Tc=15,Vc=function(ge){for(var Ae=[],be=0,ye=ge.length;be<ye;){var nt=ge.charCodeAt(be++);if(nt>=55296&&nt<=56319&&be<ye){var It=ge.charCodeAt(be++);(It&64512)===56320?Ae.push(((nt&1023)<<10)+(It&1023)+65536):(Ae.push(nt),be--)}else Ae.push(nt)}return Ae},Jd=function(){for(var ge=[],Ae=0;Ae<arguments.length;Ae++)ge[Ae]=arguments[Ae];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ge);var be=ge.length;if(!be)return"";for(var ye=[],nt=-1,It="";++nt<be;){var Yt=ge[nt];Yt<=65535?ye.push(Yt):(Yt-=65536,ye.push((Yt>>10)+55296,Yt%1024+56320)),(nt+1===be||ye.length>16384)&&(It+=String.fromCharCode.apply(String,ye),ye.length=0)}return It},qd=Rl(fu),Ls="\xD7",ld="\xF7",Ef=function(ge){return qd.get(ge)},Wa=function(ge,Ae,be){var ye=be-2,nt=Ae[ye],It=Ae[be-1],Yt=Ae[be];if(It===ku&&Yt===Mu)return Ls;if(It===ku||It===Mu||It===Gc||Yt===ku||Yt===Mu||Yt===Gc)return ld;if(It===ju&&[ju,Yu,Ju,hl].indexOf(Yt)!==-1||(It===Ju||It===Yu)&&(Yt===Yu||Yt===Qu)||(It===hl||It===Qu)&&Yt===Qu||Yt===wc||Yt===fl||Yt===_d||It===eu)return Ls;if(It===wc&&Yt===wA){for(;nt===fl;)nt=Ae[--ye];if(nt===wA)return Ls}if(It===Tc&&Yt===Tc){for(var Bn=0;nt===Tc;)Bn++,nt=Ae[--ye];if(Bn%2===0)return Ls}return ld},ms=function(ge){var Ae=Vc(ge),be=Ae.length,ye=0,nt=0,It=Ae.map(Ef);return{next:function(){if(ye>=be)return{done:!0,value:null};for(var Yt=Ls;ye<be&&(Yt=Wa(Ae,It,++ye))===Ls;);if(Yt!==Ls||ye===be){var Bn=Jd.apply(null,Ae.slice(nt,ye));return nt=ye,{value:Bn,done:!1}}return{done:!0,value:null}}}},Hl=function(ge){for(var Ae=ms(ge),be=[],ye;!(ye=Ae.next()).done;)ye.value&&be.push(ye.value.slice());return be},uu=function(ge){var Ae=123;if(ge.createRange){var be=ge.createRange();if(be.getBoundingClientRect){var ye=ge.createElement("boundtest");ye.style.height=Ae+"px",ye.style.display="block",ge.body.appendChild(ye),be.selectNode(ye);var nt=be.getBoundingClientRect(),It=Math.round(nt.height);if(ge.body.removeChild(ye),It===Ae)return!0}}return!1},Su=function(ge){var Ae=ge.createElement("boundtest");Ae.style.width="50px",Ae.style.display="block",Ae.style.fontSize="12px",Ae.style.letterSpacing="0px",Ae.style.wordSpacing="0px",ge.body.appendChild(Ae);var be=ge.createRange();Ae.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var ye=Ae.firstChild,nt=he(ye.data).map(function(xn){return xe(xn)}),It=0,Yt={},Bn=nt.every(function(xn,wr){be.setStart(ye,It),be.setEnd(ye,It+xn.length);var Nr=be.getBoundingClientRect();It+=xn.length;var Kr=Nr.x>Yt.x||Nr.y>Yt.y;return Yt=Nr,wr===0?!0:Kr});return ge.body.removeChild(Ae),Bn},Fu=function(){return typeof new Image().crossOrigin!="undefined"},qu=function(){return typeof new XMLHttpRequest().responseType=="string"},Hu=function(ge){var Ae=new Image,be=ge.createElement("canvas"),ye=be.getContext("2d");if(!ye)return!1;Ae.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{ye.drawImage(Ae,0,0),be.toDataURL()}catch(nt){return!1}return!0},ZA=function(ge){return ge[0]===0&&ge[1]===255&&ge[2]===0&&ge[3]===255},Sf=function(ge){var Ae=ge.createElement("canvas"),be=100;Ae.width=be,Ae.height=be;var ye=Ae.getContext("2d");if(!ye)return Promise.reject(!1);ye.fillStyle="rgb(0, 255, 0)",ye.fillRect(0,0,be,be);var nt=new Image,It=Ae.toDataURL();nt.src=It;var Yt=WA(be,be,0,0,nt);return ye.fillStyle="red",ye.fillRect(0,0,be,be),GA(Yt).then(function(Bn){ye.drawImage(Bn,0,0);var xn=ye.getImageData(0,0,be,be).data;ye.fillStyle="red",ye.fillRect(0,0,be,be);var wr=ge.createElement("div");return wr.style.backgroundImage="url("+It+")",wr.style.height=be+"px",ZA(xn)?GA(WA(be,be,0,0,wr)):Promise.reject(!1)}).then(function(Bn){return ye.drawImage(Bn,0,0),ZA(ye.getImageData(0,0,be,be).data)}).catch(function(){return!1})},WA=function(ge,Ae,be,ye,nt){var It="http://www.w3.org/2000/svg",Yt=document.createElementNS(It,"svg"),Bn=document.createElementNS(It,"foreignObject");return Yt.setAttributeNS(null,"width",ge.toString()),Yt.setAttributeNS(null,"height",Ae.toString()),Bn.setAttributeNS(null,"width","100%"),Bn.setAttributeNS(null,"height","100%"),Bn.setAttributeNS(null,"x",be.toString()),Bn.setAttributeNS(null,"y",ye.toString()),Bn.setAttributeNS(null,"externalResourcesRequired","true"),Yt.appendChild(Bn),Bn.appendChild(nt),Yt},GA=function(ge){return new Promise(function(Ae,be){var ye=new Image;ye.onload=function(){return Ae(ye)},ye.onerror=be,ye.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ge))})},yu={get SUPPORT_RANGE_BOUNDS(){var ge=uu(document);return Object.defineProperty(yu,"SUPPORT_RANGE_BOUNDS",{value:ge}),ge},get SUPPORT_WORD_BREAKING(){var ge=yu.SUPPORT_RANGE_BOUNDS&&Su(document);return Object.defineProperty(yu,"SUPPORT_WORD_BREAKING",{value:ge}),ge},get SUPPORT_SVG_DRAWING(){var ge=Hu(document);return Object.defineProperty(yu,"SUPPORT_SVG_DRAWING",{value:ge}),ge},get SUPPORT_FOREIGNOBJECT_DRAWING(){var ge=typeof Array.from=="function"&&typeof window.fetch=="function"?Sf(document):Promise.resolve(!1);return Object.defineProperty(yu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:ge}),ge},get SUPPORT_CORS_IMAGES(){var ge=Fu();return Object.defineProperty(yu,"SUPPORT_CORS_IMAGES",{value:ge}),ge},get SUPPORT_RESPONSE_TYPE(){var ge=qu();return Object.defineProperty(yu,"SUPPORT_RESPONSE_TYPE",{value:ge}),ge},get SUPPORT_CORS_XHR(){var ge="withCredentials"in new XMLHttpRequest;return Object.defineProperty(yu,"SUPPORT_CORS_XHR",{value:ge}),ge},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var ge=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(yu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:ge}),ge}},kc=function(){function ge(Ae,be){this.text=Ae,this.bounds=be}return ge}(),ef=function(ge,Ae,be,ye){var nt=rh(Ae,be),It=[],Yt=0;return nt.forEach(function(Bn){if(be.textDecorationLine.length||Bn.trim().length>0)if(yu.SUPPORT_RANGE_BOUNDS){var xn=tf(ye,Yt,Bn.length).getClientRects();if(xn.length>1){var wr=If(Bn),Nr=0;wr.forEach(function(Pi){It.push(new kc(Pi,ze.fromDOMRectList(ge,tf(ye,Nr+Yt,Pi.length).getClientRects()))),Nr+=Pi.length})}else It.push(new kc(Bn,ze.fromDOMRectList(ge,xn)))}else{var Kr=ye.splitText(Bn.length);It.push(new kc(Bn,Ff(ge,ye))),ye=Kr}else yu.SUPPORT_RANGE_BOUNDS||(ye=ye.splitText(Bn.length));Yt+=Bn.length}),It},Ff=function(ge,Ae){var be=Ae.ownerDocument;if(be){var ye=be.createElement("html2canvaswrapper");ye.appendChild(Ae.cloneNode(!0));var nt=Ae.parentNode;if(nt){nt.replaceChild(ye,Ae);var It=Ie(ge,ye);return ye.firstChild&&nt.replaceChild(ye.firstChild,ye),It}}return ze.EMPTY},tf=function(ge,Ae,be){var ye=ge.ownerDocument;if(!ye)throw new Error("Node has no owner document");var nt=ye.createRange();return nt.setStart(ge,Ae),nt.setEnd(ge,Ae+be),nt},If=function(ge){if(yu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Ae.segment(ge)).map(function(be){return be.segment})}return Hl(ge)},VA=function(ge,Ae){if(yu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var be=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(be.segment(ge)).map(function(ye){return ye.segment})}return ih(ge,Ae)},rh=function(ge,Ae){return Ae.letterSpacing!==0?If(ge):VA(ge,Ae)},pp=[32,160,4961,65792,65793,4153,4241],ih=function(ge,Ae){for(var be=ur(ge,{lineBreak:Ae.lineBreak,wordBreak:Ae.overflowWrap==="break-word"?"break-word":Ae.wordBreak}),ye=[],nt,It=function(){if(nt.value){var Yt=nt.value.slice(),Bn=he(Yt),xn="";Bn.forEach(function(wr){pp.indexOf(wr)===-1?xn+=xe(wr):(xn.length&&ye.push(xn),ye.push(xe(wr)),xn="")}),xn.length&&ye.push(xn)}};!(nt=be.next()).done;)It();return ye},nf=function(){function ge(Ae,be,ye){this.text=mp(be.data,ye.textTransform),this.textBounds=ef(Ae,this.text,ye,be)}return ge}(),mp=function(ge,Ae){switch(Ae){case 1:return ge.toLowerCase();case 3:return ge.replace(gp,rf);case 2:return ge.toUpperCase();default:return ge}},gp=/(^|\s|:|-|\(|\))([a-z])/g,rf=function(ge,Ae,be){return ge.length>0?Ae+be.toUpperCase():ge},Lf=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.src=ye.currentSrc||ye.src,nt.intrinsicWidth=ye.naturalWidth,nt.intrinsicHeight=ye.naturalHeight,nt.context.cache.addImage(nt.src),nt}return Ae}(ol),Nd=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.canvas=ye,nt.intrinsicWidth=ye.width,nt.intrinsicHeight=ye.height,nt}return Ae}(ol),_f=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this,It=new XMLSerializer,Yt=Ie(be,ye);return ye.setAttribute("width",Yt.width+"px"),ye.setAttribute("height",Yt.height+"px"),nt.svg="data:image/svg+xml,"+encodeURIComponent(It.serializeToString(ye)),nt.intrinsicWidth=ye.width.baseVal.value,nt.intrinsicHeight=ye.height.baseVal.value,nt.context.cache.addImage(nt.svg),nt}return Ae}(ol),Od=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.value=ye.value,nt}return Ae}(ol),of=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.start=ye.start,nt.reversed=typeof ye.reversed=="boolean"&&ye.reversed===!0,nt}return Ae}(ol),bA=[{type:15,flags:0,unit:"px",number:3}],oh=[{type:16,flags:0,number:50}],ah=function(ge){return ge.width>ge.height?new ze(ge.left+(ge.width-ge.height)/2,ge.top,ge.height,ge.height):ge.width<ge.height?new ze(ge.left,ge.top+(ge.height-ge.width)/2,ge.width,ge.width):ge},Mh=function(ge){var Ae=ge.type===xA?new Array(ge.value.length+1).join("\u2022"):ge.value;return Ae.length===0?ge.placeholder||"":Ae},ud="checkbox",CA="radio",xA="password",Dd=707406591,cd=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;switch(nt.type=ye.type.toLowerCase(),nt.checked=ye.checked,nt.value=Mh(ye),(nt.type===ud||nt.type===CA)&&(nt.styles.backgroundColor=3739148031,nt.styles.borderTopColor=nt.styles.borderRightColor=nt.styles.borderBottomColor=nt.styles.borderLeftColor=2779096575,nt.styles.borderTopWidth=nt.styles.borderRightWidth=nt.styles.borderBottomWidth=nt.styles.borderLeftWidth=1,nt.styles.borderTopStyle=nt.styles.borderRightStyle=nt.styles.borderBottomStyle=nt.styles.borderLeftStyle=1,nt.styles.backgroundClip=[0],nt.styles.backgroundOrigin=[0],nt.bounds=ah(nt.bounds)),nt.type){case ud:nt.styles.borderTopRightRadius=nt.styles.borderTopLeftRadius=nt.styles.borderBottomRightRadius=nt.styles.borderBottomLeftRadius=bA;break;case CA:nt.styles.borderTopRightRadius=nt.styles.borderTopLeftRadius=nt.styles.borderBottomRightRadius=nt.styles.borderBottomLeftRadius=oh;break}return nt}return Ae}(ol),Uh=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this,It=ye.options[ye.selectedIndex||0];return nt.value=It&&It.text||"",nt}return Ae}(ol),gs=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.value=ye.value,nt}return Ae}(ol),_s=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;nt.src=ye.src,nt.width=parseInt(ye.width,10)||0,nt.height=parseInt(ye.height,10)||0,nt.backgroundColor=nt.styles.backgroundColor;try{if(ye.contentWindow&&ye.contentWindow.document&&ye.contentWindow.document.documentElement){nt.tree=Ad(be,ye.contentWindow.document.documentElement);var It=ye.contentWindow.document.documentElement?Qa(be,getComputedStyle(ye.contentWindow.document.documentElement).backgroundColor):Rs.TRANSPARENT,Yt=ye.contentWindow.document.body?Qa(be,getComputedStyle(ye.contentWindow.document.body).backgroundColor):Rs.TRANSPARENT;nt.backgroundColor=jl(It)?jl(Yt)?nt.styles.backgroundColor:Yt:It}}catch(Bn){}return nt}return Ae}(ol),wu=["OL","UL","MENU"],zu=function(ge,Ae,be,ye){for(var nt=Ae.firstChild,It=void 0;nt;nt=It)if(It=nt.nextSibling,dd(nt)&&nt.data.trim().length>0)be.textNodes.push(new nf(ge,nt,be.styles));else if(YA(nt))if(vp(nt)&&nt.assignedNodes)nt.assignedNodes().forEach(function(Bn){return zu(ge,Bn,be,ye)});else{var Yt=Ku(ge,nt);Yt.styles.isVisible()&&(XA(nt,Yt,ye)?Yt.flags|=4:MA(Yt.styles)&&(Yt.flags|=2),wu.indexOf(nt.tagName)!==-1&&(Yt.flags|=8),be.elements.push(Yt),nt.slot,nt.shadowRoot?zu(ge,nt.shadowRoot,Yt,ye):!Nf(nt)&&!Xp(nt)&&!uh(nt)&&zu(ge,nt,Yt,ye))}},Ku=function(ge,Ae){return af(Ae)?new Lf(ge,Ae):Yp(Ae)?new Nd(ge,Ae):Xp(Ae)?new _f(ge,Ae):Vp(Ae)?new Od(ge,Ae):jh(Ae)?new of(ge,Ae):mm(Ae)?new cd(ge,Ae):uh(Ae)?new Uh(ge,Ae):Nf(Ae)?new gs(ge,Ae):BA(Ae)?new _s(ge,Ae):new ol(ge,Ae)},Ad=function(ge,Ae){var be=Ku(ge,Ae);return be.flags|=4,zu(ge,Ae,be,be),be},XA=function(ge,Ae,be){return Ae.styles.isPositionedWithZIndex()||Ae.styles.opacity<1||Ae.styles.isTransformed()||zl(ge)&&be.styles.isTransparent()},MA=function(ge){return ge.isPositioned()||ge.isFloating()},dd=function(ge){return ge.nodeType===Node.TEXT_NODE},YA=function(ge){return ge.nodeType===Node.ELEMENT_NODE},Rh=function(ge){return YA(ge)&&typeof ge.style!="undefined"&&!fd(ge)},fd=function(ge){return typeof ge.className=="object"},Vp=function(ge){return ge.tagName==="LI"},jh=function(ge){return ge.tagName==="OL"},mm=function(ge){return ge.tagName==="INPUT"},gm=function(ge){return ge.tagName==="HTML"},Xp=function(ge){return ge.tagName==="svg"},zl=function(ge){return ge.tagName==="BODY"},Yp=function(ge){return ge.tagName==="CANVAS"},Qh=function(ge){return ge.tagName==="VIDEO"},af=function(ge){return ge.tagName==="IMG"},BA=function(ge){return ge.tagName==="IFRAME"},sh=function(ge){return ge.tagName==="STYLE"},lh=function(ge){return ge.tagName==="SCRIPT"},Nf=function(ge){return ge.tagName==="TEXTAREA"},uh=function(ge){return ge.tagName==="SELECT"},vp=function(ge){return ge.tagName==="SLOT"},yp=function(ge){return ge.tagName.indexOf("-")>0},vm=function(){function ge(){this.counters={}}return ge.prototype.getCounterValue=function(Ae){var be=this.counters[Ae];return be&&be.length?be[be.length-1]:1},ge.prototype.getCounterValues=function(Ae){var be=this.counters[Ae];return be||[]},ge.prototype.pop=function(Ae){var be=this;Ae.forEach(function(ye){return be.counters[ye].pop()})},ge.prototype.parse=function(Ae){var be=this,ye=Ae.counterIncrement,nt=Ae.counterReset,It=!0;ye!==null&&ye.forEach(function(Bn){var xn=be.counters[Bn.counter];xn&&Bn.increment!==0&&(It=!1,xn.length||xn.push(1),xn[Math.max(0,xn.length-1)]+=Bn.increment)});var Yt=[];return It&&nt.forEach(function(Bn){var xn=be.counters[Bn.counter];Yt.push(Bn.counter),xn||(xn=be.counters[Bn.counter]=[]),xn.push(Bn.reset)}),Yt},ge}(),wp={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ch={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Jp={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},bl={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Pd=function(ge,Ae,be,ye,nt,It){return ge<Ae||ge>be?ne(ge,nt,It.length>0):ye.integers.reduce(function(Yt,Bn,xn){for(;ge>=Bn;)ge-=Bn,Yt+=ye.values[xn];return Yt},"")+It},ym=function(ge,Ae,be,ye){var nt="";do be||ge--,nt=ye(ge)+nt,ge/=Ae;while(ge*Ae>=Ae);return nt},Kl=function(ge,Ae,be,ye,nt){var It=be-Ae+1;return(ge<0?"-":"")+(ym(Math.abs(ge),It,ye,function(Yt){return xe(Math.floor(Yt%It)+Ae)})+nt)},Td=function(ge,Ae,be){be===void 0&&(be=". ");var ye=Ae.length;return ym(Math.abs(ge),ye,!1,function(nt){return Ae[Math.floor(nt%ye)]})+be},JA=1,hd=2,Il=4,Ah=8,pd=function(ge,Ae,be,ye,nt,It){if(ge<-9999||ge>9999)return ne(ge,4,nt.length>0);var Yt=Math.abs(ge),Bn=nt;if(Yt===0)return Ae[0]+Bn;for(var xn=0;Yt>0&&xn<=4;xn++){var wr=Yt%10;wr===0&&zo(It,JA)&&Bn!==""?Bn=Ae[wr]+Bn:wr>1||wr===1&&xn===0||wr===1&&xn===1&&zo(It,hd)||wr===1&&xn===1&&zo(It,Il)&&ge>100||wr===1&&xn>1&&zo(It,Ah)?Bn=Ae[wr]+(xn>0?be[xn-1]:"")+Bn:wr===1&&xn>0&&(Bn=be[xn-1]+Bn),Yt=Math.floor(Yt/10)}return(ge<0?ye:"")+Bn},qp="\u5341\u767E\u5343\u842C",Hh="\u62FE\u4F70\u4EDF\u842C",a="\u30DE\u30A4\u30CA\u30B9",b="\uB9C8\uC774\uB108\uC2A4",ne=function(ge,Ae,be){var ye=be?". ":"",nt=be?"\u3001":"",It=be?", ":"",Yt=be?" ":"";switch(Ae){case 0:return"\u2022"+Yt;case 1:return"\u25E6"+Yt;case 2:return"\u25FE"+Yt;case 5:var Bn=Kl(ge,48,57,!0,ye);return Bn.length<4?"0"+Bn:Bn;case 4:return Td(ge,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",nt);case 6:return Pd(ge,1,3999,wp,3,ye).toLowerCase();case 7:return Pd(ge,1,3999,wp,3,ye);case 8:return Kl(ge,945,969,!1,ye);case 9:return Kl(ge,97,122,!1,ye);case 10:return Kl(ge,65,90,!1,ye);case 11:return Kl(ge,1632,1641,!0,ye);case 12:case 49:return Pd(ge,1,9999,ch,3,ye);case 35:return Pd(ge,1,9999,ch,3,ye).toLowerCase();case 13:return Kl(ge,2534,2543,!0,ye);case 14:case 30:return Kl(ge,6112,6121,!0,ye);case 15:return Td(ge,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",nt);case 16:return Td(ge,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",nt);case 17:case 48:return pd(ge,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",qp,"\u8CA0",nt,hd|Il|Ah);case 47:return pd(ge,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Hh,"\u8CA0",nt,JA|hd|Il|Ah);case 42:return pd(ge,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",qp,"\u8D1F",nt,hd|Il|Ah);case 41:return pd(ge,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Hh,"\u8D1F",nt,JA|hd|Il|Ah);case 26:return pd(ge,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",a,nt,0);case 25:return pd(ge,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",a,nt,JA|hd|Il);case 31:return pd(ge,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",b,It,JA|hd|Il);case 33:return pd(ge,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",b,It,0);case 32:return pd(ge,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",b,It,JA|hd|Il);case 18:return Kl(ge,2406,2415,!0,ye);case 20:return Pd(ge,1,19999,bl,3,ye);case 21:return Kl(ge,2790,2799,!0,ye);case 22:return Kl(ge,2662,2671,!0,ye);case 22:return Pd(ge,1,10999,Jp,3,ye);case 23:return Td(ge,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Td(ge,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Kl(ge,3302,3311,!0,ye);case 28:return Td(ge,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",nt);case 29:return Td(ge,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",nt);case 34:return Kl(ge,3792,3801,!0,ye);case 37:return Kl(ge,6160,6169,!0,ye);case 38:return Kl(ge,4160,4169,!0,ye);case 39:return Kl(ge,2918,2927,!0,ye);case 40:return Kl(ge,1776,1785,!0,ye);case 43:return Kl(ge,3046,3055,!0,ye);case 44:return Kl(ge,3174,3183,!0,ye);case 45:return Kl(ge,3664,3673,!0,ye);case 46:return Kl(ge,3872,3881,!0,ye);case 3:default:return Kl(ge,48,57,!0,ye)}},te="data-html2canvas-ignore",ue=function(){function ge(Ae,be,ye){if(this.context=Ae,this.options=ye,this.scrolledElements=[],this.referenceElement=be,this.counters=new vm,this.quoteDepth=0,!be.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(be.ownerDocument.documentElement,!1)}return ge.prototype.toIFrame=function(Ae,be){var ye=this,nt=et(Ae,be);if(!nt.contentWindow)return Promise.reject("Unable to find iframe window");var It=Ae.defaultView.pageXOffset,Yt=Ae.defaultView.pageYOffset,Bn=nt.contentWindow,xn=Bn.document,wr=Nt(nt).then(function(){return dt(ye,void 0,void 0,function(){var Nr,Kr;return Le(this,function(Pi){switch(Pi.label){case 0:return this.scrolledElements.forEach(wi),Bn&&(Bn.scrollTo(be.left,be.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Bn.scrollY!==be.top||Bn.scrollX!==be.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Bn.scrollX-be.left,Bn.scrollY-be.top,0,0))),Nr=this.options.onclone,Kr=this.clonedReferenceElement,typeof Kr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:xn.fonts&&xn.fonts.ready?[4,xn.fonts.ready]:[3,2];case 1:Pi.sent(),Pi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ft(xn)]:[3,4];case 3:Pi.sent(),Pi.label=4;case 4:return typeof Nr=="function"?[2,Promise.resolve().then(function(){return Nr(xn,Kr)}).then(function(){return nt})]:[2,nt]}})})});return xn.open(),xn.write(Or(document.doctype)+"<html></html>"),Cr(this.referenceElement.ownerDocument,It,Yt),xn.replaceChild(xn.adoptNode(this.documentElement),xn.documentElement),xn.close(),wr},ge.prototype.createElementClone=function(Ae){if(os(Ae,2))debugger;if(Yp(Ae))return this.createCanvasClone(Ae);if(Qh(Ae))return this.createVideoClone(Ae);if(sh(Ae))return this.createStyleClone(Ae);var be=Ae.cloneNode(!1);return af(be)&&(af(Ae)&&Ae.currentSrc&&Ae.currentSrc!==Ae.src&&(be.src=Ae.currentSrc,be.srcset=""),be.loading==="lazy"&&(be.loading="eager")),yp(be)?this.createCustomElementClone(be):be},ge.prototype.createCustomElementClone=function(Ae){var be=document.createElement("html2canvascustomelement");return Qn(Ae.style,be),be},ge.prototype.createStyleClone=function(Ae){try{var be=Ae.sheet;if(be&&be.cssRules){var ye=[].slice.call(be.cssRules,0).reduce(function(It,Yt){return Yt&&typeof Yt.cssText=="string"?It+Yt.cssText:It},""),nt=Ae.cloneNode(!1);return nt.textContent=ye,nt}}catch(It){if(this.context.logger.error("Unable to access cssRules property",It),It.name!=="SecurityError")throw It}return Ae.cloneNode(!1)},ge.prototype.createCanvasClone=function(Ae){var be;if(this.options.inlineImages&&Ae.ownerDocument){var ye=Ae.ownerDocument.createElement("img");try{return ye.src=Ae.toDataURL(),ye}catch(wr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",Ae)}}var nt=Ae.cloneNode(!1);try{nt.width=Ae.width,nt.height=Ae.height;var It=Ae.getContext("2d"),Yt=nt.getContext("2d");if(Yt)if(!this.options.allowTaint&&It)Yt.putImageData(It.getImageData(0,0,Ae.width,Ae.height),0,0);else{var Bn=(be=Ae.getContext("webgl2"))!==null&&be!==void 0?be:Ae.getContext("webgl");if(Bn){var xn=Bn.getContextAttributes();(xn==null?void 0:xn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",Ae)}Yt.drawImage(Ae,0,0)}return nt}catch(wr){this.context.logger.info("Unable to clone canvas as it is tainted",Ae)}return nt},ge.prototype.createVideoClone=function(Ae){var be=Ae.ownerDocument.createElement("canvas");be.width=Ae.offsetWidth,be.height=Ae.offsetHeight;var ye=be.getContext("2d");try{return ye&&(ye.drawImage(Ae,0,0,be.width,be.height),this.options.allowTaint||ye.getImageData(0,0,be.width,be.height)),be}catch(It){this.context.logger.info("Unable to clone video as it is tainted",Ae)}var nt=Ae.ownerDocument.createElement("canvas");return nt.width=Ae.offsetWidth,nt.height=Ae.offsetHeight,nt},ge.prototype.appendChildNode=function(Ae,be,ye){(!YA(be)||!lh(be)&&!be.hasAttribute(te)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(be)))&&(!this.options.copyStyles||!YA(be)||!sh(be))&&Ae.appendChild(this.cloneNode(be,ye))},ge.prototype.cloneChildNodes=function(Ae,be,ye){for(var nt=this,It=Ae.shadowRoot?Ae.shadowRoot.firstChild:Ae.firstChild;It;It=It.nextSibling)if(YA(It)&&vp(It)&&typeof It.assignedNodes=="function"){var Yt=It.assignedNodes();Yt.length&&Yt.forEach(function(Bn){return nt.appendChildNode(be,Bn,ye)})}else this.appendChildNode(be,It,ye)},ge.prototype.cloneNode=function(Ae,be){if(dd(Ae))return document.createTextNode(Ae.data);if(!Ae.ownerDocument)return Ae.cloneNode(!1);var ye=Ae.ownerDocument.defaultView;if(ye&&YA(Ae)&&(Rh(Ae)||fd(Ae))){var nt=this.createElementClone(Ae);nt.style.transitionProperty="none";var It=ye.getComputedStyle(Ae),Yt=ye.getComputedStyle(Ae,":before"),Bn=ye.getComputedStyle(Ae,":after");this.referenceElement===Ae&&Rh(nt)&&(this.clonedReferenceElement=nt),zl(nt)&&Aa(nt);var xn=this.counters.parse(new ul(this.context,It)),wr=this.resolvePseudoContent(Ae,nt,Yt,Ne.BEFORE);yp(Ae)&&(be=!0),Qh(Ae)||this.cloneChildNodes(Ae,nt,be),wr&&nt.insertBefore(wr,nt.firstChild);var Nr=this.resolvePseudoContent(Ae,nt,Bn,Ne.AFTER);return Nr&&nt.appendChild(Nr),this.counters.pop(xn),(It&&(this.options.copyStyles||fd(Ae))&&!BA(Ae)||be)&&Qn(It,nt),(Ae.scrollTop!==0||Ae.scrollLeft!==0)&&this.scrolledElements.push([nt,Ae.scrollLeft,Ae.scrollTop]),(Nf(Ae)||uh(Ae))&&(Nf(nt)||uh(nt))&&(nt.value=Ae.value),nt}return Ae.cloneNode(!1)},ge.prototype.resolvePseudoContent=function(Ae,be,ye,nt){var It=this;if(ye){var Yt=ye.content,Bn=be.ownerDocument;if(!(!Bn||!Yt||Yt==="none"||Yt==="-moz-alt-content"||ye.display==="none")){this.counters.parse(new ul(this.context,ye));var xn=new Sl(this.context,ye),wr=Bn.createElement("html2canvaspseudoelement");Qn(ye,wr),xn.content.forEach(function(Kr){if(Kr.type===0)wr.appendChild(Bn.createTextNode(Kr.value));else if(Kr.type===22){var Pi=Bn.createElement("img");Pi.src=Kr.value,Pi.style.opacity="1",wr.appendChild(Pi)}else if(Kr.type===18){if(Kr.name==="attr"){var pa=Kr.values.filter(Ga);pa.length&&wr.appendChild(Bn.createTextNode(Ae.getAttribute(pa[0].value)||""))}else if(Kr.name==="counter"){var go=Kr.values.filter(Ou),$o=go[0],fs=go[1];if($o&&Ga($o)){var wa=It.counters.getCounterValue($o.value),ma=fs&&Ga(fs)?sd.parse(It.context,fs.value):3;wr.appendChild(Bn.createTextNode(ne(wa,ma,!1)))}}else if(Kr.name==="counters"){var ns=Kr.values.filter(Ou),$o=ns[0],Cs=ns[1],fs=ns[2];if($o&&Ga($o)){var Va=It.counters.getCounterValues($o.value),sa=fs&&Ga(fs)?sd.parse(It.context,fs.value):3,Ys=Cs&&Cs.type===0?Cs.value:"",Os=Va.map(function(FA){return ne(FA,sa,!1)}).join(Ys);wr.appendChild(Bn.createTextNode(Os))}}}else if(Kr.type===20)switch(Kr.value){case"open-quote":wr.appendChild(Bn.createTextNode(Go(xn.quotes,It.quoteDepth++,!0)));break;case"close-quote":wr.appendChild(Bn.createTextNode(Go(xn.quotes,--It.quoteDepth,!1)));break;default:wr.appendChild(Bn.createTextNode(Kr.value))}}),wr.className=Io+" "+Ko;var Nr=nt===Ne.BEFORE?" "+Io:" "+Ko;return fd(be)?be.className.baseValue+=Nr:be.className+=Nr,wr}}},ge.destroy=function(Ae){return Ae.parentNode?(Ae.parentNode.removeChild(Ae),!0):!1},ge}(),Ne;(function(ge){ge[ge.BEFORE=0]="BEFORE",ge[ge.AFTER=1]="AFTER"})(Ne||(Ne={}));var et=function(ge,Ae){var be=ge.createElement("iframe");return be.className="html2canvas-container",be.style.visibility="hidden",be.style.position="fixed",be.style.left="-10000px",be.style.top="0px",be.style.border="0",be.width=Ae.width.toString(),be.height=Ae.height.toString(),be.scrolling="no",be.setAttribute(te,"true"),ge.body.appendChild(be),be},yt=function(ge){return new Promise(function(Ae){if(ge.complete){Ae();return}if(!ge.src){Ae();return}ge.onload=Ae,ge.onerror=Ae})},Ft=function(ge){return Promise.all([].slice.call(ge.images,0).map(yt))},Nt=function(ge){return new Promise(function(Ae,be){var ye=ge.contentWindow;if(!ye)return be("No window assigned for iframe");var nt=ye.document;ye.onload=ge.onload=function(){ye.onload=ge.onload=null;var It=setInterval(function(){nt.body.childNodes.length>0&&nt.readyState==="complete"&&(clearInterval(It),Ae(ge))},50)}})},Ln=["all","d","content"],Qn=function(ge,Ae){for(var be=ge.length-1;be>=0;be--){var ye=ge.item(be);Ln.indexOf(ye)===-1&&Ae.style.setProperty(ye,ge.getPropertyValue(ye))}return Ae},Or=function(ge){var Ae="";return ge&&(Ae+="<!DOCTYPE ",ge.name&&(Ae+=ge.name),ge.internalSubset&&(Ae+=ge.internalSubset),ge.publicId&&(Ae+='"'+ge.publicId+'"'),ge.systemId&&(Ae+='"'+ge.systemId+'"'),Ae+=">"),Ae},Cr=function(ge,Ae,be){ge&&ge.defaultView&&(Ae!==ge.defaultView.pageXOffset||be!==ge.defaultView.pageYOffset)&&ge.defaultView.scrollTo(Ae,be)},wi=function(ge){var Ae=ge[0],be=ge[1],ye=ge[2];Ae.scrollLeft=be,Ae.scrollTop=ye},Ki=":before",Ao=":after",Io="___html2canvas___pseudoelement_before",Ko="___html2canvas___pseudoelement_after",Lo=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,Aa=function(ge){ka(ge,"."+Io+Ki+Lo+`
|
|
|
.`+Ko+Ao+Lo)},ka=function(ge,Ae){var be=ge.ownerDocument;if(be){var ye=be.createElement("style");ye.textContent=Ae,ge.appendChild(ye)}},Ca=function(){function ge(){}return ge.getOrigin=function(Ae){var be=ge._link;return be?(be.href=Ae,be.href=be.href,be.protocol+be.hostname+be.port):"about:blank"},ge.isSameOrigin=function(Ae){return ge.getOrigin(Ae)===ge._origin},ge.setContext=function(Ae){ge._link=Ae.document.createElement("a"),ge._origin=ge.getOrigin(Ae.location.href)},ge._origin="about:blank",ge}(),Ha=function(){function ge(Ae,be){this.context=Ae,this._options=be,this._cache={}}return ge.prototype.addImage=function(Ae){var be=Promise.resolve();return this.has(Ae)||(Cc(Ae)||bc(Ae))&&(this._cache[Ae]=this.loadImage(Ae)).catch(function(){}),be},ge.prototype.match=function(Ae){return this._cache[Ae]},ge.prototype.loadImage=function(Ae){return dt(this,void 0,void 0,function(){var be,ye,nt,It,Yt=this;return Le(this,function(Bn){switch(Bn.label){case 0:return be=Ca.isSameOrigin(Ae),ye=!ec(Ae)&&this._options.useCORS===!0&&yu.SUPPORT_CORS_IMAGES&&!be,nt=!ec(Ae)&&!be&&!Cc(Ae)&&typeof this._options.proxy=="string"&&yu.SUPPORT_CORS_XHR&&!ye,!be&&this._options.allowTaint===!1&&!ec(Ae)&&!Cc(Ae)&&!nt&&!ye?[2]:(It=Ae,nt?[4,this.proxy(It)]:[3,2]);case 1:It=Bn.sent(),Bn.label=2;case 2:return this.context.logger.debug("Added image "+Ae.substring(0,256)),[4,new Promise(function(xn,wr){var Nr=new Image;Nr.onload=function(){return xn(Nr)},Nr.onerror=wr,(Uu(It)||ye)&&(Nr.crossOrigin="anonymous"),Nr.src=It,Nr.complete===!0&&setTimeout(function(){return xn(Nr)},500),Yt._options.imageTimeout>0&&setTimeout(function(){return wr("Timed out ("+Yt._options.imageTimeout+"ms) loading image")},Yt._options.imageTimeout)})];case 3:return[2,Bn.sent()]}})})},ge.prototype.has=function(Ae){return typeof this._cache[Ae]!="undefined"},ge.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},ge.prototype.proxy=function(Ae){var be=this,ye=this._options.proxy;if(!ye)throw new Error("No proxy defined");var nt=Ae.substring(0,256);return new Promise(function(It,Yt){var Bn=yu.SUPPORT_RESPONSE_TYPE?"blob":"text",xn=new XMLHttpRequest;xn.onload=function(){if(xn.status===200)if(Bn==="text")It(xn.response);else{var Kr=new FileReader;Kr.addEventListener("load",function(){return It(Kr.result)},!1),Kr.addEventListener("error",function(Pi){return Yt(Pi)},!1),Kr.readAsDataURL(xn.response)}else Yt("Failed to proxy resource "+nt+" with status code "+xn.status)},xn.onerror=Yt;var wr=ye.indexOf("?")>-1?"&":"?";if(xn.open("GET",""+ye+wr+"url="+encodeURIComponent(Ae)+"&responseType="+Bn),Bn!=="text"&&xn instanceof XMLHttpRequest&&(xn.responseType=Bn),be._options.imageTimeout){var Nr=be._options.imageTimeout;xn.timeout=Nr,xn.ontimeout=function(){return Yt("Timed out ("+Nr+"ms) proxying "+nt)}}xn.send()})},ge}(),Ll=/^data:image\/svg\+xml/i,$u=/^data:image\/.*;base64,/i,tu=/^data:image\/.*/i,bc=function(ge){return yu.SUPPORT_SVG_DRAWING||!cc(ge)},ec=function(ge){return tu.test(ge)},Uu=function(ge){return $u.test(ge)},Cc=function(ge){return ge.substr(0,4)==="blob"},cc=function(ge){return ge.substr(-3).toLowerCase()==="svg"||Ll.test(ge)},So=function(){function ge(Ae,be){this.type=0,this.x=Ae,this.y=be}return ge.prototype.add=function(Ae,be){return new ge(this.x+Ae,this.y+be)},ge}(),$l=function(ge,Ae,be){return new So(ge.x+(Ae.x-ge.x)*be,ge.y+(Ae.y-ge.y)*be)},nu=function(){function ge(Ae,be,ye,nt){this.type=1,this.start=Ae,this.startControl=be,this.endControl=ye,this.end=nt}return ge.prototype.subdivide=function(Ae,be){var ye=$l(this.start,this.startControl,Ae),nt=$l(this.startControl,this.endControl,Ae),It=$l(this.endControl,this.end,Ae),Yt=$l(ye,nt,Ae),Bn=$l(nt,It,Ae),xn=$l(Yt,Bn,Ae);return be?new ge(this.start,ye,Yt,xn):new ge(xn,Bn,It,this.end)},ge.prototype.add=function(Ae,be){return new ge(this.start.add(Ae,be),this.startControl.add(Ae,be),this.endControl.add(Ae,be),this.end.add(Ae,be))},ge.prototype.reverse=function(){return new ge(this.end,this.endControl,this.startControl,this.start)},ge}(),ru=function(ge){return ge.type===1},Of=function(){function ge(Ae){var be=Ae.styles,ye=Ae.bounds,nt=rc(be.borderTopLeftRadius,ye.width,ye.height),It=nt[0],Yt=nt[1],Bn=rc(be.borderTopRightRadius,ye.width,ye.height),xn=Bn[0],wr=Bn[1],Nr=rc(be.borderBottomRightRadius,ye.width,ye.height),Kr=Nr[0],Pi=Nr[1],pa=rc(be.borderBottomLeftRadius,ye.width,ye.height),go=pa[0],$o=pa[1],fs=[];fs.push((It+xn)/ye.width),fs.push((go+Kr)/ye.width),fs.push((Yt+$o)/ye.height),fs.push((wr+Pi)/ye.height);var wa=Math.max.apply(Math,fs);wa>1&&(It/=wa,Yt/=wa,xn/=wa,wr/=wa,Kr/=wa,Pi/=wa,go/=wa,$o/=wa);var ma=ye.width-xn,ns=ye.height-Pi,Cs=ye.width-Kr,Va=ye.height-$o,sa=be.borderTopWidth,Ys=be.borderRightWidth,Os=be.borderBottomWidth,rs=be.borderLeftWidth,ko=vs(be.paddingTop,Ae.bounds.width),FA=vs(be.paddingRight,Ae.bounds.width),RA=vs(be.paddingBottom,Ae.bounds.width),Zl=vs(be.paddingLeft,Ae.bounds.width);this.topLeftBorderDoubleOuterBox=It>0||Yt>0?Es(ye.left+rs/3,ye.top+sa/3,It-rs/3,Yt-sa/3,$s.TOP_LEFT):new So(ye.left+rs/3,ye.top+sa/3),this.topRightBorderDoubleOuterBox=It>0||Yt>0?Es(ye.left+ma,ye.top+sa/3,xn-Ys/3,wr-sa/3,$s.TOP_RIGHT):new So(ye.left+ye.width-Ys/3,ye.top+sa/3),this.bottomRightBorderDoubleOuterBox=Kr>0||Pi>0?Es(ye.left+Cs,ye.top+ns,Kr-Ys/3,Pi-Os/3,$s.BOTTOM_RIGHT):new So(ye.left+ye.width-Ys/3,ye.top+ye.height-Os/3),this.bottomLeftBorderDoubleOuterBox=go>0||$o>0?Es(ye.left+rs/3,ye.top+Va,go-rs/3,$o-Os/3,$s.BOTTOM_LEFT):new So(ye.left+rs/3,ye.top+ye.height-Os/3),this.topLeftBorderDoubleInnerBox=It>0||Yt>0?Es(ye.left+rs*2/3,ye.top+sa*2/3,It-rs*2/3,Yt-sa*2/3,$s.TOP_LEFT):new So(ye.left+rs*2/3,ye.top+sa*2/3),this.topRightBorderDoubleInnerBox=It>0||Yt>0?Es(ye.left+ma,ye.top+sa*2/3,xn-Ys*2/3,wr-sa*2/3,$s.TOP_RIGHT):new So(ye.left+ye.width-Ys*2/3,ye.top+sa*2/3),this.bottomRightBorderDoubleInnerBox=Kr>0||Pi>0?Es(ye.left+Cs,ye.top+ns,Kr-Ys*2/3,Pi-Os*2/3,$s.BOTTOM_RIGHT):new So(ye.left+ye.width-Ys*2/3,ye.top+ye.height-Os*2/3),this.bottomLeftBorderDoubleInnerBox=go>0||$o>0?Es(ye.left+rs*2/3,ye.top+Va,go-rs*2/3,$o-Os*2/3,$s.BOTTOM_LEFT):new So(ye.left+rs*2/3,ye.top+ye.height-Os*2/3),this.topLeftBorderStroke=It>0||Yt>0?Es(ye.left+rs/2,ye.top+sa/2,It-rs/2,Yt-sa/2,$s.TOP_LEFT):new So(ye.left+rs/2,ye.top+sa/2),this.topRightBorderStroke=It>0||Yt>0?Es(ye.left+ma,ye.top+sa/2,xn-Ys/2,wr-sa/2,$s.TOP_RIGHT):new So(ye.left+ye.width-Ys/2,ye.top+sa/2),this.bottomRightBorderStroke=Kr>0||Pi>0?Es(ye.left+Cs,ye.top+ns,Kr-Ys/2,Pi-Os/2,$s.BOTTOM_RIGHT):new So(ye.left+ye.width-Ys/2,ye.top+ye.height-Os/2),this.bottomLeftBorderStroke=go>0||$o>0?Es(ye.left+rs/2,ye.top+Va,go-rs/2,$o-Os/2,$s.BOTTOM_LEFT):new So(ye.left+rs/2,ye.top+ye.height-Os/2),this.topLeftBorderBox=It>0||Yt>0?Es(ye.left,ye.top,It,Yt,$s.TOP_LEFT):new So(ye.left,ye.top),this.topRightBorderBox=xn>0||wr>0?Es(ye.left+ma,ye.top,xn,wr,$s.TOP_RIGHT):new So(ye.left+ye.width,ye.top),this.bottomRightBorderBox=Kr>0||Pi>0?Es(ye.left+Cs,ye.top+ns,Kr,Pi,$s.BOTTOM_RIGHT):new So(ye.left+ye.width,ye.top+ye.height),this.bottomLeftBorderBox=go>0||$o>0?Es(ye.left,ye.top+Va,go,$o,$s.BOTTOM_LEFT):new So(ye.left,ye.top+ye.height),this.topLeftPaddingBox=It>0||Yt>0?Es(ye.left+rs,ye.top+sa,Math.max(0,It-rs),Math.max(0,Yt-sa),$s.TOP_LEFT):new So(ye.left+rs,ye.top+sa),this.topRightPaddingBox=xn>0||wr>0?Es(ye.left+Math.min(ma,ye.width-Ys),ye.top+sa,ma>ye.width+Ys?0:Math.max(0,xn-Ys),Math.max(0,wr-sa),$s.TOP_RIGHT):new So(ye.left+ye.width-Ys,ye.top+sa),this.bottomRightPaddingBox=Kr>0||Pi>0?Es(ye.left+Math.min(Cs,ye.width-rs),ye.top+Math.min(ns,ye.height-Os),Math.max(0,Kr-Ys),Math.max(0,Pi-Os),$s.BOTTOM_RIGHT):new So(ye.left+ye.width-Ys,ye.top+ye.height-Os),this.bottomLeftPaddingBox=go>0||$o>0?Es(ye.left+rs,ye.top+Math.min(Va,ye.height-Os),Math.max(0,go-rs),Math.max(0,$o-Os),$s.BOTTOM_LEFT):new So(ye.left+rs,ye.top+ye.height-Os),this.topLeftContentBox=It>0||Yt>0?Es(ye.left+rs+Zl,ye.top+sa+ko,Math.max(0,It-(rs+Zl)),Math.max(0,Yt-(sa+ko)),$s.TOP_LEFT):new So(ye.left+rs+Zl,ye.top+sa+ko),this.topRightContentBox=xn>0||wr>0?Es(ye.left+Math.min(ma,ye.width+rs+Zl),ye.top+sa+ko,ma>ye.width+rs+Zl?0:xn-rs+Zl,wr-(sa+ko),$s.TOP_RIGHT):new So(ye.left+ye.width-(Ys+FA),ye.top+sa+ko),this.bottomRightContentBox=Kr>0||Pi>0?Es(ye.left+Math.min(Cs,ye.width-(rs+Zl)),ye.top+Math.min(ns,ye.height+sa+ko),Math.max(0,Kr-(Ys+FA)),Pi-(Os+RA),$s.BOTTOM_RIGHT):new So(ye.left+ye.width-(Ys+FA),ye.top+ye.height-(Os+RA)),this.bottomLeftContentBox=go>0||$o>0?Es(ye.left+rs+Zl,ye.top+Va,Math.max(0,go-(rs+Zl)),$o-(Os+RA),$s.BOTTOM_LEFT):new So(ye.left+rs+Zl,ye.top+ye.height-(Os+RA))}return ge}(),$s;(function(ge){ge[ge.TOP_LEFT=0]="TOP_LEFT",ge[ge.TOP_RIGHT=1]="TOP_RIGHT",ge[ge.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",ge[ge.BOTTOM_LEFT=3]="BOTTOM_LEFT"})($s||($s={}));var Es=function(ge,Ae,be,ye,nt){var It=4*((Math.sqrt(2)-1)/3),Yt=be*It,Bn=ye*It,xn=ge+be,wr=Ae+ye;switch(nt){case $s.TOP_LEFT:return new nu(new So(ge,wr),new So(ge,wr-Bn),new So(xn-Yt,Ae),new So(xn,Ae));case $s.TOP_RIGHT:return new nu(new So(ge,Ae),new So(ge+Yt,Ae),new So(xn,wr-Bn),new So(xn,wr));case $s.BOTTOM_RIGHT:return new nu(new So(xn,Ae),new So(xn,Ae+Bn),new So(ge+Yt,wr),new So(ge,wr));case $s.BOTTOM_LEFT:default:return new nu(new So(xn,wr),new So(xn-Yt,wr),new So(ge,Ae+Bn),new So(ge,Ae))}},iA=function(ge){return[ge.topLeftBorderBox,ge.topRightBorderBox,ge.bottomRightBorderBox,ge.bottomLeftBorderBox]},Ac=function(ge){return[ge.topLeftContentBox,ge.topRightContentBox,ge.bottomRightContentBox,ge.bottomLeftContentBox]},dh=function(ge){return[ge.topLeftPaddingBox,ge.topRightPaddingBox,ge.bottomRightPaddingBox,ge.bottomLeftPaddingBox]},Ua=function(){function ge(Ae,be,ye){this.offsetX=Ae,this.offsetY=be,this.matrix=ye,this.type=0,this.target=6}return ge}(),EA=function(){function ge(Ae,be){this.path=Ae,this.target=be,this.type=1}return ge}(),pl=function(){function ge(Ae){this.opacity=Ae,this.type=2,this.target=6}return ge}(),dc=function(ge){return ge.type===0},kd=function(ge){return ge.type===1},Df=function(ge){return ge.type===2},Pf=function(ge,Ae){return ge.length===Ae.length?ge.some(function(be,ye){return be===Ae[ye]}):!1},Jm=function(ge,Ae,be,ye,nt){return ge.map(function(It,Yt){switch(Yt){case 0:return It.add(Ae,be);case 1:return It.add(Ae+ye,be);case 2:return It.add(Ae+ye,be+nt);case 3:return It.add(Ae,be+nt)}return It})},bp=function(){function ge(Ae){this.element=Ae,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return ge}(),wm=function(){function ge(Ae,be){if(this.container=Ae,this.parent=be,this.effects=[],this.curves=new Of(this.container),this.container.styles.opacity<1&&this.effects.push(new pl(this.container.styles.opacity)),this.container.styles.transform!==null){var ye=this.container.bounds.left+this.container.styles.transformOrigin[0].number,nt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,It=this.container.styles.transform;this.effects.push(new Ua(ye,nt,It))}if(this.container.styles.overflowX!==0){var Yt=iA(this.curves),Bn=dh(this.curves);Pf(Yt,Bn)?this.effects.push(new EA(Yt,6)):(this.effects.push(new EA(Yt,2)),this.effects.push(new EA(Bn,4)))}}return ge.prototype.getEffects=function(Ae){for(var be=[2,3].indexOf(this.container.styles.position)===-1,ye=this.parent,nt=this.effects.slice(0);ye;){var It=ye.effects.filter(function(xn){return!kd(xn)});if(be||ye.container.styles.position!==0||!ye.parent){if(nt.unshift.apply(nt,It),be=[2,3].indexOf(ye.container.styles.position)===-1,ye.container.styles.overflowX!==0){var Yt=iA(ye.curves),Bn=dh(ye.curves);Pf(Yt,Bn)||nt.unshift(new EA(Bn,6))}}else nt.unshift.apply(nt,It);ye=ye.parent}return nt.filter(function(xn){return zo(xn.target,Ae)})},ge}(),Cp=function(ge,Ae,be,ye){ge.container.elements.forEach(function(nt){var It=zo(nt.flags,4),Yt=zo(nt.flags,2),Bn=new wm(nt,ge);zo(nt.styles.display,2048)&&ye.push(Bn);var xn=zo(nt.flags,8)?[]:ye;if(It||Yt){var wr=It||nt.styles.isPositioned()?be:Ae,Nr=new bp(Bn);if(nt.styles.isPositioned()||nt.styles.opacity<1||nt.styles.isTransformed()){var Kr=nt.styles.zIndex.order;if(Kr<0){var Pi=0;wr.negativeZIndex.some(function(go,$o){return Kr>go.element.container.styles.zIndex.order?(Pi=$o,!1):Pi>0}),wr.negativeZIndex.splice(Pi,0,Nr)}else if(Kr>0){var pa=0;wr.positiveZIndex.some(function(go,$o){return Kr>=go.element.container.styles.zIndex.order?(pa=$o+1,!1):pa>0}),wr.positiveZIndex.splice(pa,0,Nr)}else wr.zeroOrAutoZIndexOrTransformedOrOpacity.push(Nr)}else nt.styles.isFloating()?wr.nonPositionedFloats.push(Nr):wr.nonPositionedInlineLevel.push(Nr);Cp(Bn,Nr,It?Nr:be,xn)}else nt.styles.isInlineLevel()?Ae.inlineLevel.push(Bn):Ae.nonInlineLevel.push(Bn),Cp(Bn,Ae,be,xn);zo(nt.flags,8)&&xp(nt,xn)})},xp=function(ge,Ae){for(var be=ge instanceof of?ge.start:1,ye=ge instanceof of?ge.reversed:!1,nt=0;nt<Ae.length;nt++){var It=Ae[nt];It.container instanceof Od&&typeof It.container.value=="number"&&It.container.value!==0&&(be=It.container.value),It.listValue=ne(be,It.container.styles.listStyleType,!0),be+=ye?-1:1}},Xc=function(ge){var Ae=new wm(ge,null),be=new bp(Ae),ye=[];return Cp(Ae,be,be,ye),xp(Ae.container,ye),be},Mc=function(ge,Ae){switch(Ae){case 0:return UA(ge.topLeftBorderBox,ge.topLeftPaddingBox,ge.topRightBorderBox,ge.topRightPaddingBox);case 1:return UA(ge.topRightBorderBox,ge.topRightPaddingBox,ge.bottomRightBorderBox,ge.bottomRightPaddingBox);case 2:return UA(ge.bottomRightBorderBox,ge.bottomRightPaddingBox,ge.bottomLeftBorderBox,ge.bottomLeftPaddingBox);case 3:default:return UA(ge.bottomLeftBorderBox,ge.bottomLeftPaddingBox,ge.topLeftBorderBox,ge.topLeftPaddingBox)}},Yc=function(ge,Ae){switch(Ae){case 0:return UA(ge.topLeftBorderBox,ge.topLeftBorderDoubleOuterBox,ge.topRightBorderBox,ge.topRightBorderDoubleOuterBox);case 1:return UA(ge.topRightBorderBox,ge.topRightBorderDoubleOuterBox,ge.bottomRightBorderBox,ge.bottomRightBorderDoubleOuterBox);case 2:return UA(ge.bottomRightBorderBox,ge.bottomRightBorderDoubleOuterBox,ge.bottomLeftBorderBox,ge.bottomLeftBorderDoubleOuterBox);case 3:default:return UA(ge.bottomLeftBorderBox,ge.bottomLeftBorderDoubleOuterBox,ge.topLeftBorderBox,ge.topLeftBorderDoubleOuterBox)}},Jc=function(ge,Ae){switch(Ae){case 0:return UA(ge.topLeftBorderDoubleInnerBox,ge.topLeftPaddingBox,ge.topRightBorderDoubleInnerBox,ge.topRightPaddingBox);case 1:return UA(ge.topRightBorderDoubleInnerBox,ge.topRightPaddingBox,ge.bottomRightBorderDoubleInnerBox,ge.bottomRightPaddingBox);case 2:return UA(ge.bottomRightBorderDoubleInnerBox,ge.bottomRightPaddingBox,ge.bottomLeftBorderDoubleInnerBox,ge.bottomLeftPaddingBox);case 3:default:return UA(ge.bottomLeftBorderDoubleInnerBox,ge.bottomLeftPaddingBox,ge.topLeftBorderDoubleInnerBox,ge.topLeftPaddingBox)}},qm=function(ge,Ae){switch(Ae){case 0:return em(ge.topLeftBorderStroke,ge.topRightBorderStroke);case 1:return em(ge.topRightBorderStroke,ge.bottomRightBorderStroke);case 2:return em(ge.bottomRightBorderStroke,ge.bottomLeftBorderStroke);case 3:default:return em(ge.bottomLeftBorderStroke,ge.topLeftBorderStroke)}},em=function(ge,Ae){var be=[];return ru(ge)?be.push(ge.subdivide(.5,!1)):be.push(ge),ru(Ae)?be.push(Ae.subdivide(.5,!0)):be.push(Ae),be},UA=function(ge,Ae,be,ye){var nt=[];return ru(ge)?nt.push(ge.subdivide(.5,!1)):nt.push(ge),ru(be)?nt.push(be.subdivide(.5,!0)):nt.push(be),ru(ye)?nt.push(ye.subdivide(.5,!0).reverse()):nt.push(ye),ru(Ae)?nt.push(Ae.subdivide(.5,!1).reverse()):nt.push(Ae),nt},eg=function(ge){var Ae=ge.bounds,be=ge.styles;return Ae.add(be.borderLeftWidth,be.borderTopWidth,-(be.borderRightWidth+be.borderLeftWidth),-(be.borderTopWidth+be.borderBottomWidth))},tm=function(ge){var Ae=ge.styles,be=ge.bounds,ye=vs(Ae.paddingLeft,be.width),nt=vs(Ae.paddingRight,be.width),It=vs(Ae.paddingTop,be.width),Yt=vs(Ae.paddingBottom,be.width);return be.add(ye+Ae.borderLeftWidth,It+Ae.borderTopWidth,-(Ae.borderRightWidth+Ae.borderLeftWidth+ye+nt),-(Ae.borderTopWidth+Ae.borderBottomWidth+It+Yt))},bm=function(ge,Ae){return ge===0?Ae.bounds:ge===2?tm(Ae):eg(Ae)},Qg=function(ge,Ae){return ge===0?Ae.bounds:ge===2?tm(Ae):eg(Ae)},Md=function(ge,Ae,be){var ye=bm(md(ge.styles.backgroundOrigin,Ae),ge),nt=Qg(md(ge.styles.backgroundClip,Ae),ge),It=zh(md(ge.styles.backgroundSize,Ae),be,ye),Yt=It[0],Bn=It[1],xn=rc(md(ge.styles.backgroundPosition,Ae),ye.width-Yt,ye.height-Bn),wr=tg(md(ge.styles.backgroundRepeat,Ae),xn,It,ye,nt),Nr=Math.round(ye.left+xn[0]),Kr=Math.round(ye.top+xn[1]);return[wr,Nr,Kr,Yt,Bn]},Tf=function(ge){return Ga(ge)&&ge.value===Ql.AUTO},Bp=function(ge){return typeof ge=="number"},zh=function(ge,Ae,be){var ye=Ae[0],nt=Ae[1],It=Ae[2],Yt=ge[0],Bn=ge[1];if(!Yt)return[0,0];if(ks(Yt)&&Bn&&ks(Bn))return[vs(Yt,be.width),vs(Bn,be.height)];var xn=Bp(It);if(Ga(Yt)&&(Yt.value===Ql.CONTAIN||Yt.value===Ql.COVER)){if(Bp(It)){var wr=be.width/be.height;return wr<It!=(Yt.value===Ql.COVER)?[be.width,be.width/It]:[be.height*It,be.height]}return[be.width,be.height]}var Nr=Bp(ye),Kr=Bp(nt),Pi=Nr||Kr;if(Tf(Yt)&&(!Bn||Tf(Bn))){if(Nr&&Kr)return[ye,nt];if(!xn&&!Pi)return[be.width,be.height];if(Pi&&xn){var pa=Nr?ye:nt*It,go=Kr?nt:ye/It;return[pa,go]}var $o=Nr?ye:be.width,fs=Kr?nt:be.height;return[$o,fs]}if(xn){var wa=0,ma=0;return ks(Yt)?wa=vs(Yt,be.width):ks(Bn)&&(ma=vs(Bn,be.height)),Tf(Yt)?wa=ma*It:(!Bn||Tf(Bn))&&(ma=wa/It),[wa,ma]}var ns=null,Cs=null;if(ks(Yt)?ns=vs(Yt,be.width):Bn&&ks(Bn)&&(Cs=vs(Bn,be.height)),ns!==null&&(!Bn||Tf(Bn))&&(Cs=Nr&&Kr?ns/ye*nt:be.height),Cs!==null&&Tf(Yt)&&(ns=Nr&&Kr?Cs/nt*ye:be.width),ns!==null&&Cs!==null)return[ns,Cs];throw new Error("Unable to calculate background-size for element")},md=function(ge,Ae){var be=ge[Ae];return typeof be=="undefined"?ge[0]:be},tg=function(ge,Ae,be,ye,nt){var It=Ae[0],Yt=Ae[1],Bn=be[0],xn=be[1];switch(ge){case 2:return[new So(Math.round(ye.left),Math.round(ye.top+Yt)),new So(Math.round(ye.left+ye.width),Math.round(ye.top+Yt)),new So(Math.round(ye.left+ye.width),Math.round(xn+ye.top+Yt)),new So(Math.round(ye.left),Math.round(xn+ye.top+Yt))];case 3:return[new So(Math.round(ye.left+It),Math.round(ye.top)),new So(Math.round(ye.left+It+Bn),Math.round(ye.top)),new So(Math.round(ye.left+It+Bn),Math.round(ye.height+ye.top)),new So(Math.round(ye.left+It),Math.round(ye.height+ye.top))];case 1:return[new So(Math.round(ye.left+It),Math.round(ye.top+Yt)),new So(Math.round(ye.left+It+Bn),Math.round(ye.top+Yt)),new So(Math.round(ye.left+It+Bn),Math.round(ye.top+Yt+xn)),new So(Math.round(ye.left+It),Math.round(ye.top+Yt+xn))];default:return[new So(Math.round(nt.left),Math.round(nt.top)),new So(Math.round(nt.left+nt.width),Math.round(nt.top)),new So(Math.round(nt.left+nt.width),Math.round(nt.height+nt.top)),new So(Math.round(nt.left),Math.round(nt.height+nt.top))]}},Ep="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Cm="Hidden Text",kf=function(){function ge(Ae){this._data={},this._document=Ae}return ge.prototype.parseMetrics=function(Ae,be){var ye=this._document.createElement("div"),nt=this._document.createElement("img"),It=this._document.createElement("span"),Yt=this._document.body;ye.style.visibility="hidden",ye.style.fontFamily=Ae,ye.style.fontSize=be,ye.style.margin="0",ye.style.padding="0",ye.style.whiteSpace="nowrap",Yt.appendChild(ye),nt.src=Ep,nt.width=1,nt.height=1,nt.style.margin="0",nt.style.padding="0",nt.style.verticalAlign="baseline",It.style.fontFamily=Ae,It.style.fontSize=be,It.style.margin="0",It.style.padding="0",It.appendChild(this._document.createTextNode(Cm)),ye.appendChild(It),ye.appendChild(nt);var Bn=nt.offsetTop-It.offsetTop+2;ye.removeChild(It),ye.appendChild(this._document.createTextNode(Cm)),ye.style.lineHeight="normal",nt.style.verticalAlign="super";var xn=nt.offsetTop-ye.offsetTop+2;return Yt.removeChild(ye),{baseline:Bn,middle:xn}},ge.prototype.getMetrics=function(Ae,be){var ye=Ae+" "+be;return typeof this._data[ye]=="undefined"&&(this._data[ye]=this.parseMetrics(Ae,be)),this._data[ye]},ge}(),Mf=function(){function ge(Ae,be){this.context=Ae,this.options=be}return ge}(),Oa=1e4,Zu=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt._activeEffects=[],nt.canvas=ye.canvas?ye.canvas:document.createElement("canvas"),nt.ctx=nt.canvas.getContext("2d"),ye.canvas||(nt.canvas.width=Math.floor(ye.width*ye.scale),nt.canvas.height=Math.floor(ye.height*ye.scale),nt.canvas.style.width=ye.width+"px",nt.canvas.style.height=ye.height+"px"),nt.fontMetrics=new kf(document),nt.ctx.scale(nt.options.scale,nt.options.scale),nt.ctx.translate(-ye.x,-ye.y),nt.ctx.textBaseline="bottom",nt._activeEffects=[],nt.context.logger.debug("Canvas renderer initialized ("+ye.width+"x"+ye.height+") with scale "+ye.scale),nt}return Ae.prototype.applyEffects=function(be){for(var ye=this;this._activeEffects.length;)this.popEffect();be.forEach(function(nt){return ye.applyEffect(nt)})},Ae.prototype.applyEffect=function(be){this.ctx.save(),Df(be)&&(this.ctx.globalAlpha=be.opacity),dc(be)&&(this.ctx.translate(be.offsetX,be.offsetY),this.ctx.transform(be.matrix[0],be.matrix[1],be.matrix[2],be.matrix[3],be.matrix[4],be.matrix[5]),this.ctx.translate(-be.offsetX,-be.offsetY)),kd(be)&&(this.path(be.path),this.ctx.clip()),this._activeEffects.push(be)},Ae.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Ae.prototype.renderStack=function(be){return dt(this,void 0,void 0,function(){var ye;return Le(this,function(nt){switch(nt.label){case 0:return ye=be.element.container.styles,ye.isVisible()?[4,this.renderStackContent(be)]:[3,2];case 1:nt.sent(),nt.label=2;case 2:return[2]}})})},Ae.prototype.renderNode=function(be){return dt(this,void 0,void 0,function(){return Le(this,function(ye){switch(ye.label){case 0:if(zo(be.container.flags,16))debugger;return be.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(be)]:[3,3];case 1:return ye.sent(),[4,this.renderNodeContent(be)];case 2:ye.sent(),ye.label=3;case 3:return[2]}})})},Ae.prototype.renderTextWithLetterSpacing=function(be,ye,nt){var It=this;if(ye===0)this.ctx.fillText(be.text,be.bounds.left,be.bounds.top+nt);else{var Yt=If(be.text);Yt.reduce(function(Bn,xn){return It.ctx.fillText(xn,Bn,be.bounds.top+nt),Bn+It.ctx.measureText(xn).width},be.bounds.left)}},Ae.prototype.createFontStyle=function(be){var ye=be.fontVariant.filter(function(Yt){return Yt==="normal"||Yt==="small-caps"}).join(""),nt=Uf(be.fontFamily).join(", "),It=ts(be.fontSize)?""+be.fontSize.number+be.fontSize.unit:be.fontSize.number+"px";return[[be.fontStyle,ye,be.fontWeight,It,nt].join(" "),nt,It]},Ae.prototype.renderTextNode=function(be,ye){return dt(this,void 0,void 0,function(){var nt,It,Yt,Bn,xn,wr,Nr,Kr,Pi=this;return Le(this,function(pa){return nt=this.createFontStyle(ye),It=nt[0],Yt=nt[1],Bn=nt[2],this.ctx.font=It,this.ctx.direction=ye.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",xn=this.fontMetrics.getMetrics(Yt,Bn),wr=xn.baseline,Nr=xn.middle,Kr=ye.paintOrder,be.textBounds.forEach(function(go){Kr.forEach(function($o){switch($o){case 0:Pi.ctx.fillStyle=Us(ye.color),Pi.renderTextWithLetterSpacing(go,ye.letterSpacing,wr);var fs=ye.textShadow;fs.length&&go.text.trim().length&&(fs.slice(0).reverse().forEach(function(wa){Pi.ctx.shadowColor=Us(wa.color),Pi.ctx.shadowOffsetX=wa.offsetX.number*Pi.options.scale,Pi.ctx.shadowOffsetY=wa.offsetY.number*Pi.options.scale,Pi.ctx.shadowBlur=wa.blur.number,Pi.renderTextWithLetterSpacing(go,ye.letterSpacing,wr)}),Pi.ctx.shadowColor="",Pi.ctx.shadowOffsetX=0,Pi.ctx.shadowOffsetY=0,Pi.ctx.shadowBlur=0),ye.textDecorationLine.length&&(Pi.ctx.fillStyle=Us(ye.textDecorationColor||ye.color),ye.textDecorationLine.forEach(function(wa){switch(wa){case 1:Pi.ctx.fillRect(go.bounds.left,Math.round(go.bounds.top+wr),go.bounds.width,1);break;case 2:Pi.ctx.fillRect(go.bounds.left,Math.round(go.bounds.top),go.bounds.width,1);break;case 3:Pi.ctx.fillRect(go.bounds.left,Math.ceil(go.bounds.top+Nr),go.bounds.width,1);break}}));break;case 1:ye.webkitTextStrokeWidth&&go.text.trim().length&&(Pi.ctx.strokeStyle=Us(ye.webkitTextStrokeColor),Pi.ctx.lineWidth=ye.webkitTextStrokeWidth,Pi.ctx.lineJoin=window.chrome?"miter":"round",Pi.ctx.strokeText(go.text,go.bounds.left,go.bounds.top+wr)),Pi.ctx.strokeStyle="",Pi.ctx.lineWidth=0,Pi.ctx.lineJoin="miter";break}})}),[2]})})},Ae.prototype.renderReplacedElement=function(be,ye,nt){if(nt&&be.intrinsicWidth>0&&be.intrinsicHeight>0){var It=tm(be),Yt=dh(ye);this.path(Yt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(nt,0,0,be.intrinsicWidth,be.intrinsicHeight,It.left,It.top,It.width,It.height),this.ctx.restore()}},Ae.prototype.renderNodeContent=function(be){return dt(this,void 0,void 0,function(){var ye,nt,It,Yt,Bn,xn,ma,ma,wr,Nr,Kr,Pi,Cs,pa,go,Va,$o,fs,wa,ma,ns,Cs,Va;return Le(this,function(sa){switch(sa.label){case 0:this.applyEffects(be.getEffects(4)),ye=be.container,nt=be.curves,It=ye.styles,Yt=0,Bn=ye.textNodes,sa.label=1;case 1:return Yt<Bn.length?(xn=Bn[Yt],[4,this.renderTextNode(xn,It)]):[3,4];case 2:sa.sent(),sa.label=3;case 3:return Yt++,[3,1];case 4:if(!(ye instanceof Lf))return[3,8];sa.label=5;case 5:return sa.trys.push([5,7,,8]),[4,this.context.cache.match(ye.src)];case 6:return ma=sa.sent(),this.renderReplacedElement(ye,nt,ma),[3,8];case 7:return sa.sent(),this.context.logger.error("Error loading image "+ye.src),[3,8];case 8:if(ye instanceof Nd&&this.renderReplacedElement(ye,nt,ye.canvas),!(ye instanceof _f))return[3,12];sa.label=9;case 9:return sa.trys.push([9,11,,12]),[4,this.context.cache.match(ye.svg)];case 10:return ma=sa.sent(),this.renderReplacedElement(ye,nt,ma),[3,12];case 11:return sa.sent(),this.context.logger.error("Error loading svg "+ye.svg.substring(0,255)),[3,12];case 12:return ye instanceof _s&&ye.tree?(wr=new Ae(this.context,{scale:this.options.scale,backgroundColor:ye.backgroundColor,x:0,y:0,width:ye.width,height:ye.height}),[4,wr.render(ye.tree)]):[3,14];case 13:Nr=sa.sent(),ye.width&&ye.height&&this.ctx.drawImage(Nr,0,0,ye.width,ye.height,ye.bounds.left,ye.bounds.top,ye.bounds.width,ye.bounds.height),sa.label=14;case 14:if(ye instanceof cd&&(Kr=Math.min(ye.bounds.width,ye.bounds.height),ye.type===ud?ye.checked&&(this.ctx.save(),this.path([new So(ye.bounds.left+Kr*.39363,ye.bounds.top+Kr*.79),new So(ye.bounds.left+Kr*.16,ye.bounds.top+Kr*.5549),new So(ye.bounds.left+Kr*.27347,ye.bounds.top+Kr*.44071),new So(ye.bounds.left+Kr*.39694,ye.bounds.top+Kr*.5649),new So(ye.bounds.left+Kr*.72983,ye.bounds.top+Kr*.23),new So(ye.bounds.left+Kr*.84,ye.bounds.top+Kr*.34085),new So(ye.bounds.left+Kr*.39363,ye.bounds.top+Kr*.79)]),this.ctx.fillStyle=Us(Dd),this.ctx.fill(),this.ctx.restore()):ye.type===CA&&ye.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(ye.bounds.left+Kr/2,ye.bounds.top+Kr/2,Kr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Us(Dd),this.ctx.fill(),this.ctx.restore())),xm(ye)&&ye.value.length){switch(Pi=this.createFontStyle(It),Cs=Pi[0],pa=Pi[1],go=this.fontMetrics.getMetrics(Cs,pa).baseline,this.ctx.font=Cs,this.ctx.fillStyle=Us(It.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Kh(ye.styles.textAlign),Va=tm(ye),$o=0,ye.styles.textAlign){case 1:$o+=Va.width/2;break;case 2:$o+=Va.width;break}fs=Va.add($o,0,0,-Va.height/2+1),this.ctx.save(),this.path([new So(Va.left,Va.top),new So(Va.left+Va.width,Va.top),new So(Va.left+Va.width,Va.top+Va.height),new So(Va.left,Va.top+Va.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new kc(ye.value,fs),It.letterSpacing,go),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!zo(ye.styles.display,2048))return[3,20];if(ye.styles.listStyleImage===null)return[3,19];if(wa=ye.styles.listStyleImage,wa.type!==0)return[3,18];ma=void 0,ns=wa.url,sa.label=15;case 15:return sa.trys.push([15,17,,18]),[4,this.context.cache.match(ns)];case 16:return ma=sa.sent(),this.ctx.drawImage(ma,ye.bounds.left-(ma.width+10),ye.bounds.top),[3,18];case 17:return sa.sent(),this.context.logger.error("Error loading list-style-image "+ns),[3,18];case 18:return[3,20];case 19:be.listValue&&ye.styles.listStyleType!==-1&&(Cs=this.createFontStyle(It)[0],this.ctx.font=Cs,this.ctx.fillStyle=Us(It.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Va=new ze(ye.bounds.left,ye.bounds.top+vs(ye.styles.paddingTop,ye.bounds.width),ye.bounds.width,Pu(It.lineHeight,It.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new kc(be.listValue,Va),It.letterSpacing,Pu(It.lineHeight,It.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),sa.label=20;case 20:return[2]}})})},Ae.prototype.renderStackContent=function(be){return dt(this,void 0,void 0,function(){var ye,nt,wa,It,Yt,wa,Bn,xn,wa,wr,Nr,wa,Kr,Pi,wa,pa,go,wa,$o,fs,wa;return Le(this,function(ma){switch(ma.label){case 0:if(zo(be.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(be.element)];case 1:ma.sent(),ye=0,nt=be.negativeZIndex,ma.label=2;case 2:return ye<nt.length?(wa=nt[ye],[4,this.renderStack(wa)]):[3,5];case 3:ma.sent(),ma.label=4;case 4:return ye++,[3,2];case 5:return[4,this.renderNodeContent(be.element)];case 6:ma.sent(),It=0,Yt=be.nonInlineLevel,ma.label=7;case 7:return It<Yt.length?(wa=Yt[It],[4,this.renderNode(wa)]):[3,10];case 8:ma.sent(),ma.label=9;case 9:return It++,[3,7];case 10:Bn=0,xn=be.nonPositionedFloats,ma.label=11;case 11:return Bn<xn.length?(wa=xn[Bn],[4,this.renderStack(wa)]):[3,14];case 12:ma.sent(),ma.label=13;case 13:return Bn++,[3,11];case 14:wr=0,Nr=be.nonPositionedInlineLevel,ma.label=15;case 15:return wr<Nr.length?(wa=Nr[wr],[4,this.renderStack(wa)]):[3,18];case 16:ma.sent(),ma.label=17;case 17:return wr++,[3,15];case 18:Kr=0,Pi=be.inlineLevel,ma.label=19;case 19:return Kr<Pi.length?(wa=Pi[Kr],[4,this.renderNode(wa)]):[3,22];case 20:ma.sent(),ma.label=21;case 21:return Kr++,[3,19];case 22:pa=0,go=be.zeroOrAutoZIndexOrTransformedOrOpacity,ma.label=23;case 23:return pa<go.length?(wa=go[pa],[4,this.renderStack(wa)]):[3,26];case 24:ma.sent(),ma.label=25;case 25:return pa++,[3,23];case 26:$o=0,fs=be.positiveZIndex,ma.label=27;case 27:return $o<fs.length?(wa=fs[$o],[4,this.renderStack(wa)]):[3,30];case 28:ma.sent(),ma.label=29;case 29:return $o++,[3,27];case 30:return[2]}})})},Ae.prototype.mask=function(be){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(be.slice(0).reverse()),this.ctx.closePath()},Ae.prototype.path=function(be){this.ctx.beginPath(),this.formatPath(be),this.ctx.closePath()},Ae.prototype.formatPath=function(be){var ye=this;be.forEach(function(nt,It){var Yt=ru(nt)?nt.start:nt;It===0?ye.ctx.moveTo(Yt.x,Yt.y):ye.ctx.lineTo(Yt.x,Yt.y),ru(nt)&&ye.ctx.bezierCurveTo(nt.startControl.x,nt.startControl.y,nt.endControl.x,nt.endControl.y,nt.end.x,nt.end.y)})},Ae.prototype.renderRepeat=function(be,ye,nt,It){this.path(be),this.ctx.fillStyle=ye,this.ctx.translate(nt,It),this.ctx.fill(),this.ctx.translate(-nt,-It)},Ae.prototype.resizeImage=function(be,ye,nt){var It;if(be.width===ye&&be.height===nt)return be;var Yt=(It=this.canvas.ownerDocument)!==null&&It!==void 0?It:document,Bn=Yt.createElement("canvas");Bn.width=Math.max(1,ye),Bn.height=Math.max(1,nt);var xn=Bn.getContext("2d");return xn.drawImage(be,0,0,be.width,be.height,0,0,ye,nt),Bn},Ae.prototype.renderBackgroundImage=function(be){return dt(this,void 0,void 0,function(){var ye,nt,It,Yt,Bn,xn;return Le(this,function(wr){switch(wr.label){case 0:ye=be.styles.backgroundImage.length-1,nt=function(Nr){var Kr,Pi,pa,ko,qc,oA,Zl,Lc,Os,go,ko,qc,oA,Zl,Lc,$o,fs,wa,ma,ns,Cs,Va,sa,Ys,Os,rs,ko,FA,RA,Zl,Lc,sf,qc,oA,hh,qA,lf,ph,Rf,Rd,jf,uf;return Le(this,function($h){switch($h.label){case 0:if(Nr.type!==0)return[3,5];Kr=void 0,Pi=Nr.url,$h.label=1;case 1:return $h.trys.push([1,3,,4]),[4,It.context.cache.match(Pi)];case 2:return Kr=$h.sent(),[3,4];case 3:return $h.sent(),It.context.logger.error("Error loading background-image "+Pi),[3,4];case 4:return Kr&&(pa=Md(be,ye,[Kr.width,Kr.height,Kr.width/Kr.height]),ko=pa[0],qc=pa[1],oA=pa[2],Zl=pa[3],Lc=pa[4],Os=It.ctx.createPattern(It.resizeImage(Kr,Zl,Lc),"repeat"),It.renderRepeat(ko,Os,qc,oA)),[3,6];case 5:hA(Nr)?(go=Md(be,ye,[null,null,null]),ko=go[0],qc=go[1],oA=go[2],Zl=go[3],Lc=go[4],$o=dA(Nr.angle,Zl,Lc),fs=$o[0],wa=$o[1],ma=$o[2],ns=$o[3],Cs=$o[4],Va=document.createElement("canvas"),Va.width=Zl,Va.height=Lc,sa=Va.getContext("2d"),Ys=sa.createLinearGradient(wa,ns,ma,Cs),$c(Nr.stops,fs).forEach(function(Qf){return Ys.addColorStop(Qf.stop,Us(Qf.color))}),sa.fillStyle=Ys,sa.fillRect(0,0,Zl,Lc),Zl>0&&Lc>0&&(Os=It.ctx.createPattern(Va,"repeat"),It.renderRepeat(ko,Os,qc,oA))):Ph(Nr)&&(rs=Md(be,ye,[null,null,null]),ko=rs[0],FA=rs[1],RA=rs[2],Zl=rs[3],Lc=rs[4],sf=Nr.position.length===0?[Kc]:Nr.position,qc=vs(sf[0],Zl),oA=vs(sf[sf.length-1],Lc),hh=tA(Nr,qc,oA,Zl,Lc),qA=hh[0],lf=hh[1],qA>0&&lf>0&&(ph=It.ctx.createRadialGradient(FA+qc,RA+oA,0,FA+qc,RA+oA,qA),$c(Nr.stops,qA*2).forEach(function(Qf){return ph.addColorStop(Qf.stop,Us(Qf.color))}),It.path(ko),It.ctx.fillStyle=ph,qA!==lf?(Rf=be.bounds.left+.5*be.bounds.width,Rd=be.bounds.top+.5*be.bounds.height,jf=lf/qA,uf=1/jf,It.ctx.save(),It.ctx.translate(Rf,Rd),It.ctx.transform(1,0,0,jf,0,0),It.ctx.translate(-Rf,-Rd),It.ctx.fillRect(FA,uf*(RA-Rd)+Rd,Zl,Lc*uf),It.ctx.restore()):It.ctx.fill())),$h.label=6;case 6:return ye--,[2]}})},It=this,Yt=0,Bn=be.styles.backgroundImage.slice(0).reverse(),wr.label=1;case 1:return Yt<Bn.length?(xn=Bn[Yt],[5,nt(xn)]):[3,4];case 2:wr.sent(),wr.label=3;case 3:return Yt++,[3,1];case 4:return[2]}})})},Ae.prototype.renderSolidBorder=function(be,ye,nt){return dt(this,void 0,void 0,function(){return Le(this,function(It){return this.path(Mc(nt,ye)),this.ctx.fillStyle=Us(be),this.ctx.fill(),[2]})})},Ae.prototype.renderDoubleBorder=function(be,ye,nt,It){return dt(this,void 0,void 0,function(){var Yt,Bn;return Le(this,function(xn){switch(xn.label){case 0:return ye<3?[4,this.renderSolidBorder(be,nt,It)]:[3,2];case 1:return xn.sent(),[2];case 2:return Yt=Yc(It,nt),this.path(Yt),this.ctx.fillStyle=Us(be),this.ctx.fill(),Bn=Jc(It,nt),this.path(Bn),this.ctx.fill(),[2]}})})},Ae.prototype.renderNodeBackgroundAndBorders=function(be){return dt(this,void 0,void 0,function(){var ye,nt,It,Yt,Bn,xn,wr,Nr,Kr=this;return Le(this,function(Pi){switch(Pi.label){case 0:return this.applyEffects(be.getEffects(2)),ye=be.container.styles,nt=!jl(ye.backgroundColor)||ye.backgroundImage.length,It=[{style:ye.borderTopStyle,color:ye.borderTopColor,width:ye.borderTopWidth},{style:ye.borderRightStyle,color:ye.borderRightColor,width:ye.borderRightWidth},{style:ye.borderBottomStyle,color:ye.borderBottomColor,width:ye.borderBottomWidth},{style:ye.borderLeftStyle,color:ye.borderLeftColor,width:ye.borderLeftWidth}],Yt=fh(md(ye.backgroundClip,0),be.curves),nt||ye.boxShadow.length?(this.ctx.save(),this.path(Yt),this.ctx.clip(),jl(ye.backgroundColor)||(this.ctx.fillStyle=Us(ye.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(be.container)]):[3,2];case 1:Pi.sent(),this.ctx.restore(),ye.boxShadow.slice(0).reverse().forEach(function(pa){Kr.ctx.save();var go=iA(be.curves),$o=pa.inset?0:Oa,fs=Jm(go,-$o+(pa.inset?1:-1)*pa.spread.number,(pa.inset?1:-1)*pa.spread.number,pa.spread.number*(pa.inset?-2:2),pa.spread.number*(pa.inset?-2:2));pa.inset?(Kr.path(go),Kr.ctx.clip(),Kr.mask(fs)):(Kr.mask(go),Kr.ctx.clip(),Kr.path(fs)),Kr.ctx.shadowOffsetX=pa.offsetX.number+$o,Kr.ctx.shadowOffsetY=pa.offsetY.number,Kr.ctx.shadowColor=Us(pa.color),Kr.ctx.shadowBlur=pa.blur.number,Kr.ctx.fillStyle=pa.inset?Us(pa.color):"rgba(0,0,0,1)",Kr.ctx.fill(),Kr.ctx.restore()}),Pi.label=2;case 2:Bn=0,xn=0,wr=It,Pi.label=3;case 3:return xn<wr.length?(Nr=wr[xn],Nr.style!==0&&!jl(Nr.color)&&Nr.width>0?Nr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Nr.color,Nr.width,Bn,be.curves,2)]:[3,11]):[3,13];case 4:return Pi.sent(),[3,11];case 5:return Nr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Nr.color,Nr.width,Bn,be.curves,3)];case 6:return Pi.sent(),[3,11];case 7:return Nr.style!==4?[3,9]:[4,this.renderDoubleBorder(Nr.color,Nr.width,Bn,be.curves)];case 8:return Pi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Nr.color,Bn,be.curves)];case 10:Pi.sent(),Pi.label=11;case 11:Bn++,Pi.label=12;case 12:return xn++,[3,3];case 13:return[2]}})})},Ae.prototype.renderDashedDottedBorder=function(be,ye,nt,It,Yt){return dt(this,void 0,void 0,function(){var Bn,xn,wr,Nr,Kr,Pi,pa,go,$o,fs,wa,ma,ns,Cs,Va,sa,Va,sa;return Le(this,function(Ys){return this.ctx.save(),Bn=qm(It,nt),xn=Mc(It,nt),Yt===2&&(this.path(xn),this.ctx.clip()),ru(xn[0])?(wr=xn[0].start.x,Nr=xn[0].start.y):(wr=xn[0].x,Nr=xn[0].y),ru(xn[1])?(Kr=xn[1].end.x,Pi=xn[1].end.y):(Kr=xn[1].x,Pi=xn[1].y),nt===0||nt===2?pa=Math.abs(wr-Kr):pa=Math.abs(Nr-Pi),this.ctx.beginPath(),Yt===3?this.formatPath(Bn):this.formatPath(xn.slice(0,2)),go=ye<3?ye*3:ye*2,$o=ye<3?ye*2:ye,Yt===3&&(go=ye,$o=ye),fs=!0,pa<=go*2?fs=!1:pa<=go*2+$o?(wa=pa/(2*go+$o),go*=wa,$o*=wa):(ma=Math.floor((pa+$o)/(go+$o)),ns=(pa-ma*go)/(ma-1),Cs=(pa-(ma+1)*go)/ma,$o=Cs<=0||Math.abs($o-ns)<Math.abs($o-Cs)?ns:Cs),fs&&(Yt===3?this.ctx.setLineDash([0,go+$o]):this.ctx.setLineDash([go,$o])),Yt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=ye):this.ctx.lineWidth=ye*2+1.1,this.ctx.strokeStyle=Us(be),this.ctx.stroke(),this.ctx.setLineDash([]),Yt===2&&(ru(xn[0])&&(Va=xn[3],sa=xn[0],this.ctx.beginPath(),this.formatPath([new So(Va.end.x,Va.end.y),new So(sa.start.x,sa.start.y)]),this.ctx.stroke()),ru(xn[1])&&(Va=xn[1],sa=xn[2],this.ctx.beginPath(),this.formatPath([new So(Va.end.x,Va.end.y),new So(sa.start.x,sa.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Ae.prototype.render=function(be){return dt(this,void 0,void 0,function(){var ye;return Le(this,function(nt){switch(nt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Us(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),ye=Xc(be),[4,this.renderStack(ye)];case 1:return nt.sent(),this.applyEffects([]),[2,this.canvas]}})})},Ae}(Mf),xm=function(ge){return ge instanceof gs||ge instanceof Uh?!0:ge instanceof cd&&ge.type!==CA&&ge.type!==ud},fh=function(ge,Ae){switch(ge){case 0:return iA(Ae);case 2:return Ac(Ae);case 1:default:return dh(Ae)}},Kh=function(ge){switch(ge){case 1:return"center";case 2:return"right";case 0:default:return"left"}},bs=["-apple-system","system-ui"],Uf=function(ge){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?ge.filter(function(Ae){return bs.indexOf(Ae)===-1}):ge},SA=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.canvas=ye.canvas?ye.canvas:document.createElement("canvas"),nt.ctx=nt.canvas.getContext("2d"),nt.options=ye,nt.canvas.width=Math.floor(ye.width*ye.scale),nt.canvas.height=Math.floor(ye.height*ye.scale),nt.canvas.style.width=ye.width+"px",nt.canvas.style.height=ye.height+"px",nt.ctx.scale(nt.options.scale,nt.options.scale),nt.ctx.translate(-ye.x,-ye.y),nt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+ye.width+"x"+ye.height+" at "+ye.x+","+ye.y+") with scale "+ye.scale),nt}return Ae.prototype.render=function(be){return dt(this,void 0,void 0,function(){var ye,nt;return Le(this,function(It){switch(It.label){case 0:return ye=WA(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,be),[4,ng(ye)];case 1:return nt=It.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Us(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(nt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Ae}(Mf),ng=function(ge){return new Promise(function(Ae,be){var ye=new Image;ye.onload=function(){Ae(ye)},ye.onerror=be,ye.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ge))})},Ud=function(){function ge(Ae){var be=Ae.id,ye=Ae.enabled;this.id=be,this.enabled=ye,this.start=Date.now()}return ge.prototype.debug=function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,qe([this.id,this.getTime()+"ms"],Ae)):this.info.apply(this,Ae))},ge.prototype.getTime=function(){return Date.now()-this.start},ge.prototype.info=function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,qe([this.id,this.getTime()+"ms"],Ae))},ge.prototype.warn=function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,qe([this.id,this.getTime()+"ms"],Ae)):this.info.apply(this,Ae))},ge.prototype.error=function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,qe([this.id,this.getTime()+"ms"],Ae)):this.info.apply(this,Ae))},ge.instances={},ge}(),Hg=function(){function ge(Ae,be){var ye;this.windowBounds=be,this.instanceName="#"+ge.instanceCount++,this.logger=new Ud({id:this.instanceName,enabled:Ae.logging}),this.cache=(ye=Ae.cache)!==null&&ye!==void 0?ye:new Ha(this,Ae)}return ge.instanceCount=1,ge}(),zg=function(ge,Ae){return Ae===void 0&&(Ae={}),Kg(ge,Ae)};typeof window!="undefined"&&Ca.setContext(window);var Kg=function(ge,Ae){return dt(void 0,void 0,void 0,function(){var be,ye,nt,It,Yt,Bn,xn,wr,Nr,Kr,Pi,pa,go,$o,fs,wa,ma,ns,Cs,Va,Ys,sa,Ys,Os,rs,ko,FA,RA,Zl,Lc,sf,qc,oA,hh,qA,lf,ph,Rf,Rd,jf;return Le(this,function(uf){switch(uf.label){case 0:if(!ge||typeof ge!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(be=ge.ownerDocument,!be)throw new Error("Element is not attached to a Document");if(ye=be.defaultView,!ye)throw new Error("Document is not attached to a Window");return nt={allowTaint:(Os=Ae.allowTaint)!==null&&Os!==void 0?Os:!1,imageTimeout:(rs=Ae.imageTimeout)!==null&&rs!==void 0?rs:15e3,proxy:Ae.proxy,useCORS:(ko=Ae.useCORS)!==null&&ko!==void 0?ko:!1},It=x({logging:(FA=Ae.logging)!==null&&FA!==void 0?FA:!0,cache:Ae.cache},nt),Yt={windowWidth:(RA=Ae.windowWidth)!==null&&RA!==void 0?RA:ye.innerWidth,windowHeight:(Zl=Ae.windowHeight)!==null&&Zl!==void 0?Zl:ye.innerHeight,scrollX:(Lc=Ae.scrollX)!==null&&Lc!==void 0?Lc:ye.pageXOffset,scrollY:(sf=Ae.scrollY)!==null&&sf!==void 0?sf:ye.pageYOffset},Bn=new ze(Yt.scrollX,Yt.scrollY,Yt.windowWidth,Yt.windowHeight),xn=new Hg(It,Bn),wr=(qc=Ae.foreignObjectRendering)!==null&&qc!==void 0?qc:!1,Nr={allowTaint:(oA=Ae.allowTaint)!==null&&oA!==void 0?oA:!1,onclone:Ae.onclone,ignoreElements:Ae.ignoreElements,inlineImages:wr,copyStyles:wr},xn.logger.debug("Starting document clone with size "+Bn.width+"x"+Bn.height+" scrolled to "+-Bn.left+","+-Bn.top),Kr=new ue(xn,ge,Nr),Pi=Kr.clonedReferenceElement,Pi?[4,Kr.toIFrame(be,Bn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return pa=uf.sent(),go=zl(Pi)||gm(Pi)?Ue(Pi.ownerDocument):Ie(xn,Pi),$o=go.width,fs=go.height,wa=go.left,ma=go.top,ns=tc(xn,Pi,Ae.backgroundColor),Cs={canvas:Ae.canvas,backgroundColor:ns,scale:(qA=(hh=Ae.scale)!==null&&hh!==void 0?hh:ye.devicePixelRatio)!==null&&qA!==void 0?qA:1,x:((lf=Ae.x)!==null&&lf!==void 0?lf:0)+wa,y:((ph=Ae.y)!==null&&ph!==void 0?ph:0)+ma,width:(Rf=Ae.width)!==null&&Rf!==void 0?Rf:Math.ceil($o),height:(Rd=Ae.height)!==null&&Rd!==void 0?Rd:Math.ceil(fs)},wr?(xn.logger.debug("Document cloned, using foreign object rendering"),Ys=new SA(xn,Cs),[4,Ys.render(Pi)]):[3,3];case 2:return Va=uf.sent(),[3,5];case 3:return xn.logger.debug("Document cloned, element located at "+wa+","+ma+" with size "+$o+"x"+fs+" using computed rendering"),xn.logger.debug("Starting DOM parsing"),sa=Ad(xn,Pi),ns===sa.styles.backgroundColor&&(sa.styles.backgroundColor=Rs.TRANSPARENT),xn.logger.debug("Starting renderer for element at "+Cs.x+","+Cs.y+" with size "+Cs.width+"x"+Cs.height),Ys=new Zu(xn,Cs),[4,Ys.render(sa)];case 4:Va=uf.sent(),uf.label=5;case 5:return(!((jf=Ae.removeContainer)!==null&&jf!==void 0)||jf)&&(ue.destroy(pa)||xn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),xn.logger.debug("Finished rendering"),[2,Va]}})})},tc=function(ge,Ae,be){var ye=Ae.ownerDocument,nt=ye.documentElement?Qa(ge,getComputedStyle(ye.documentElement).backgroundColor):Rs.TRANSPARENT,It=ye.body?Qa(ge,getComputedStyle(ye.body).backgroundColor):Rs.TRANSPARENT,Yt=typeof be=="string"?Qa(ge,be):be===null?Rs.TRANSPARENT:4294967295;return Ae===ye.documentElement?jl(nt)?jl(It)?Yt:It:nt:Yt};return zg})},44164:function(qn,Mt,ae){var x=ae(97671);(function(Le,qe){qn.exports=qe(ae(53307),ae(64270))})(self,function(dt,Le){return function(){var qe={"./src/plugin/hyperlinks.js":function(he,xe,oe){"use strict";oe.r(xe);var Oe=oe("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.string.link.js"),Se=oe.n(Me),Te=oe("./src/worker.js"),we=oe("./src/utils.js"),Ce=[],Ee={toContainer:Te.default.prototype.toContainer,toPdf:Te.default.prototype.toPdf};Te.default.prototype.toContainer=function(){return Ee.toContainer.call(this).then(function(){if(this.opt.enableLinks){var Qe=this.prop.container,je=Qe.querySelectorAll("a"),Je=(0,we.unitConvert)(Qe.getBoundingClientRect(),this.prop.pageSize.k);Ce=[],Array.prototype.forEach.call(je,function(Ve){for(var ct=Ve.getClientRects(),ot=0;ot<ct.length;ot++){var pt=(0,we.unitConvert)(ct[ot],this.prop.pageSize.k);pt.left-=Je.left,pt.top-=Je.top;var Ct=Math.floor(pt.top/this.prop.pageSize.inner.height)+1,He=this.opt.margin[0]+pt.top%this.prop.pageSize.inner.height,ht=this.opt.margin[1]+pt.left;Ce.push({page:Ct,top:He,left:ht,clientRect:pt,link:Ve})}},this)}})},Te.default.prototype.toPdf=function(){return Ee.toPdf.call(this).then(function(){if(this.opt.enableLinks){Ce.forEach(function(je){this.prop.pdf.setPage(je.page),this.prop.pdf.link(je.left,je.top,je.clientRect.width,je.clientRect.height,{url:je.link.href})},this);var Qe=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(Qe)}})}},"./src/plugin/jspdf-plugin.js":function(he,xe,oe){"use strict";oe.r(xe);var Oe=oe("./node_modules/core-js/modules/es.symbol.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.symbol.description.js"),Se=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.object.to-string.js"),we=oe.n(Te),Ce=oe("./node_modules/core-js/modules/es.symbol.iterator.js"),Ee=oe.n(Ce),ke=oe("./node_modules/core-js/modules/es.array.iterator.js"),Ke=oe.n(ke),Qe=oe("./node_modules/core-js/modules/es.string.iterator.js"),je=oe.n(Qe),Je=oe("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ve=oe.n(Je),ct=oe("jspdf"),ot=oe.n(ct);function pt(Ct){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pt=function(ht){return typeof ht}:pt=function(ht){return ht&&typeof Symbol=="function"&&ht.constructor===Symbol&&ht!==Symbol.prototype?"symbol":typeof ht},pt(Ct)}ct.jsPDF.getPageSize=function(Ct,He,ht){if(pt(Ct)==="object"){var _e=Ct;Ct=_e.orientation,He=_e.unit||He,ht=_e.format||ht}He=He||"mm",ht=ht||"a4",Ct=(""+(Ct||"P")).toLowerCase();var Re=(""+ht).toLowerCase(),Ot={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(He){case"pt":var it=1;break;case"mm":var it=72/25.4;break;case"cm":var it=72/2.54;break;case"in":var it=72;break;case"px":var it=72/96;break;case"pc":var it=12;break;case"em":var it=12;break;case"ex":var it=6;break;default:throw"Invalid unit: "+He}if(Ot.hasOwnProperty(Re))var at=Ot[Re][1]/it,Et=Ot[Re][0]/it;else try{var at=ht[1],Et=ht[0]}catch(ut){throw new Error("Invalid format: "+ht)}if(Ct==="p"||Ct==="portrait"){if(Ct="p",Et>at){var Ze=Et;Et=at,at=Ze}}else if(Ct==="l"||Ct==="landscape"){if(Ct="l",at>Et){var Ze=Et;Et=at,at=Ze}}else throw"Invalid orientation: "+Ct;var De={width:Et,height:at,unit:He,k:it};return De},xe.default=ct.jsPDF},"./src/plugin/pagebreaks.js":function(he,xe,oe){"use strict";oe.r(xe);var Oe=oe("./node_modules/core-js/modules/es.array.concat.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.array.slice.js"),Se=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.array.join.js"),we=oe.n(Te),Ce=oe("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Ee=oe.n(Ce),ke=oe("./node_modules/core-js/modules/es.object.keys.js"),Ke=oe.n(ke),Qe=oe("./src/worker.js"),je=oe("./src/utils.js"),Je={toContainer:Qe.default.prototype.toContainer};Qe.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},Qe.default.prototype.toContainer=function(){return Je.toContainer.call(this).then(function(){var ot=this.prop.container,pt=this.prop.pageSize.inner.px.height,Ct=[].concat(this.opt.pagebreak.mode),He={avoidAll:Ct.indexOf("avoid-all")!==-1,css:Ct.indexOf("css")!==-1,legacy:Ct.indexOf("legacy")!==-1},ht={},_e=this;["before","after","avoid"].forEach(function(it){var at=He.avoidAll&&it==="avoid";ht[it]=at?[]:[].concat(_e.opt.pagebreak[it]||[]),ht[it].length>0&&(ht[it]=Array.prototype.slice.call(ot.querySelectorAll(ht[it].join(", "))))});var Re=ot.querySelectorAll(".html2pdf__page-break");Re=Array.prototype.slice.call(Re);var Ot=ot.querySelectorAll("*");Array.prototype.forEach.call(Ot,function(at){var Et={before:!1,after:He.legacy&&Re.indexOf(at)!==-1,avoid:He.avoidAll};if(He.css){var Ze=window.getComputedStyle(at),De=["always","page","left","right"],ut=["avoid","avoid-page"];Et={before:Et.before||De.indexOf(Ze.breakBefore||Ze.pageBreakBefore)!==-1,after:Et.after||De.indexOf(Ze.breakAfter||Ze.pageBreakAfter)!==-1,avoid:Et.avoid||ut.indexOf(Ze.breakInside||Ze.pageBreakInside)!==-1}}Object.keys(Et).forEach(function(An){Et[An]=Et[An]||ht[An].indexOf(at)!==-1});var Zt=at.getBoundingClientRect();if(Et.avoid&&!Et.before){var Kt=Math.floor(Zt.top/pt),tt=Math.floor(Zt.bottom/pt),Dt=Math.abs(Zt.bottom-Zt.top)/pt;tt!==Kt&&Dt<=1&&(Et.before=!0)}if(Et.before){var jt=(0,je.createElement)("div",{style:{display:"block",height:pt-Zt.top%pt+"px"}});at.parentNode.insertBefore(jt,at)}if(Et.after){var jt=(0,je.createElement)("div",{style:{display:"block",height:pt-Zt.bottom%pt+"px"}});at.parentNode.insertBefore(jt,at.nextSibling)}})})}},"./src/utils.js":function(he,xe,oe){"use strict";oe.r(xe),oe.d(xe,{objType:function(){return Ct},createElement:function(){return He},cloneNode:function(){return ht},unitConvert:function(){return _e},toPx:function(){return Re}});var Oe=oe("./node_modules/core-js/modules/es.number.constructor.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.symbol.js"),Se=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.symbol.description.js"),we=oe.n(Te),Ce=oe("./node_modules/core-js/modules/es.object.to-string.js"),Ee=oe.n(Ce),ke=oe("./node_modules/core-js/modules/es.symbol.iterator.js"),Ke=oe.n(ke),Qe=oe("./node_modules/core-js/modules/es.array.iterator.js"),je=oe.n(Qe),Je=oe("./node_modules/core-js/modules/es.string.iterator.js"),Ve=oe.n(Je),ct=oe("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ot=oe.n(ct);function pt(Ot){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pt=function(at){return typeof at}:pt=function(at){return at&&typeof Symbol=="function"&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at},pt(Ot)}var Ct=function(it){var at=pt(it);return at==="undefined"?"undefined":at==="string"||it instanceof String?"string":at==="number"||it instanceof Number?"number":at==="function"||it instanceof Function?"function":it&&it.constructor===Array?"array":it&&it.nodeType===1?"element":at==="object"?"object":"unknown"},He=function(it,at){var Et=document.createElement(it);if(at.className&&(Et.className=at.className),at.innerHTML){Et.innerHTML=at.innerHTML;for(var Ze=Et.getElementsByTagName("script"),De=Ze.length;De-- >0;null)Ze[De].parentNode.removeChild(Ze[De])}for(var ut in at.style)Et.style[ut]=at.style[ut];return Et},ht=function Ot(it,at){for(var Et=it.nodeType===3?document.createTextNode(it.nodeValue):it.cloneNode(!1),Ze=it.firstChild;Ze;Ze=Ze.nextSibling)(at===!0||Ze.nodeType!==1||Ze.nodeName!=="SCRIPT")&&Et.appendChild(Ot(Ze,at));return it.nodeType===1&&(it.nodeName==="CANVAS"?(Et.width=it.width,Et.height=it.height,Et.getContext("2d").drawImage(it,0,0)):(it.nodeName==="TEXTAREA"||it.nodeName==="SELECT")&&(Et.value=it.value),Et.addEventListener("load",function(){Et.scrollTop=it.scrollTop,Et.scrollLeft=it.scrollLeft},!0)),Et},_e=function(it,at){if(Ct(it)==="number")return it*72/96/at;var Et={};for(var Ze in it)Et[Ze]=it[Ze]*72/96/at;return Et},Re=function(it,at){return Math.floor(it*at/72*96)}},"./src/worker.js":function(he,xe,oe){"use strict";oe.r(xe);var Oe=oe("./node_modules/core-js/modules/es.object.assign.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.array.map.js"),Se=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.object.keys.js"),we=oe.n(Te),Ce=oe("./node_modules/core-js/modules/es.array.concat.js"),Ee=oe.n(Ce),ke=oe("./node_modules/core-js/modules/es.object.to-string.js"),Ke=oe.n(ke),Qe=oe("./node_modules/core-js/modules/es.regexp.to-string.js"),je=oe.n(Qe),Je=oe("./node_modules/core-js/modules/es.function.name.js"),Ve=oe.n(Je),ct=oe("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ot=oe.n(ct),pt=oe("jspdf"),Ct=oe.n(pt),He=oe("html2canvas"),ht=oe.n(He),_e=oe("./src/utils.js"),Re=oe("./node_modules/es6-promise/dist/es6-promise.js"),Ot=oe.n(Re),it=Ot().Promise,at=function Et(Ze){var De=Object.assign(Et.convert(it.resolve()),JSON.parse(JSON.stringify(Et.template))),ut=Et.convert(it.resolve(),De);return ut=ut.setProgress(1,Et,1,[Et]),ut=ut.set(Ze),ut};at.prototype=Object.create(it.prototype),at.prototype.constructor=at,at.convert=function(Ze,De){return Ze.__proto__=De||at.prototype,Ze},at.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},at.prototype.from=function(Ze,De){function ut(Zt){switch((0,_e.objType)(Zt)){case"string":return"string";case"element":return Zt.nodeName.toLowerCase&&Zt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(De=De||ut(Ze),De){case"string":return this.set({src:(0,_e.createElement)("div",{innerHTML:Ze})});case"element":return this.set({src:Ze});case"canvas":return this.set({canvas:Ze});case"img":return this.set({img:Ze});default:return this.error("Unknown source type.")}})},at.prototype.to=function(Ze){switch(Ze){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},at.prototype.toContainer=function(){var Ze=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Ze).then(function(){var ut={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Zt={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};ut.opacity=0;var Kt=(0,_e.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,_e.createElement)("div",{className:"html2pdf__overlay",style:ut}),this.prop.container=(0,_e.createElement)("div",{className:"html2pdf__container",style:Zt}),this.prop.container.appendChild(Kt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},at.prototype.toCanvas=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(function(){var ut=Object.assign({},this.opt.html2canvas);return delete ut.onrendered,He(this.prop.container,ut)}).then(function(ut){var Zt=this.opt.html2canvas.onrendered||function(){};Zt(ut),this.prop.canvas=ut,document.body.removeChild(this.prop.overlay)})},at.prototype.toImg=function(){var Ze=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(Ze).then(function(){var ut=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ut})},at.prototype.toPdf=function(){var Ze=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Ze).then(function(){var ut=this.prop.canvas,Zt=this.opt,Kt=ut.height,tt=Math.floor(ut.width*this.prop.pageSize.inner.ratio),Dt=Math.ceil(Kt/tt),jt=this.prop.pageSize.inner.height,An=document.createElement("canvas"),kt=An.getContext("2d");An.width=ut.width,An.height=tt,this.prop.pdf=this.prop.pdf||new pt.jsPDF(Zt.jsPDF);for(var pn=0;pn<Dt;pn++){pn===Dt-1&&Kt%tt!==0&&(An.height=Kt%tt,jt=An.height*this.prop.pageSize.inner.width/An.width);var Pt=An.width,En=An.height;kt.fillStyle="white",kt.fillRect(0,0,Pt,En),kt.drawImage(ut,0,pn*tt,Pt,En,0,0,Pt,En),pn&&this.prop.pdf.addPage();var on=An.toDataURL("image/"+Zt.image.type,Zt.image.quality);this.prop.pdf.addImage(on,Zt.image.type,Zt.margin[1],Zt.margin[0],this.prop.pageSize.inner.width,jt)}})},at.prototype.output=function(Ze,De,ut){return ut=ut||"pdf",ut.toLowerCase()==="img"||ut.toLowerCase()==="image"?this.outputImg(Ze,De):this.outputPdf(Ze,De)},at.prototype.outputPdf=function(Ze,De){var ut=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ut).then(function(){return this.prop.pdf.output(Ze,De)})},at.prototype.outputImg=function(Ze,De){var ut=[function(){return this.prop.img||this.toImg()}];return this.thenList(ut).then(function(){switch(Ze){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Ze+'" is not supported.'}})},at.prototype.save=function(Ze){var De=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(De).set(Ze?{filename:Ze}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},at.prototype.set=function(Ze){if((0,_e.objType)(Ze)!=="object")return this;var De=Object.keys(Ze||{}).map(function(ut){switch(ut){case"margin":return this.setMargin.bind(this,Ze.margin);case"jsPDF":return function(){return this.opt.jsPDF=Ze.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Ze.pageSize);default:return ut in at.template.prop?function(){this.prop[ut]=Ze[ut]}:function(){this.opt[ut]=Ze[ut]}}},this);return this.then(function(){return this.thenList(De)})},at.prototype.get=function(Ze,De){return this.then(function(){var Zt=Ze in at.template.prop?this.prop[Ze]:this.opt[Ze];return De?De(Zt):Zt})},at.prototype.setMargin=function(Ze){return this.then(function(){switch((0,_e.objType)(Ze)){case"number":Ze=[Ze,Ze,Ze,Ze];case"array":if(Ze.length===2&&(Ze=[Ze[0],Ze[1],Ze[0],Ze[1]]),Ze.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Ze}).then(this.setPageSize)},at.prototype.setPageSize=function(Ze){return this.then(function(){Ze=Ze||pt.jsPDF.getPageSize(this.opt.jsPDF),Ze.hasOwnProperty("inner")||(Ze.inner={width:Ze.width-this.opt.margin[1]-this.opt.margin[3],height:Ze.height-this.opt.margin[0]-this.opt.margin[2]},Ze.inner.px={width:(0,_e.toPx)(Ze.inner.width,Ze.k),height:(0,_e.toPx)(Ze.inner.height,Ze.k)},Ze.inner.ratio=Ze.inner.height/Ze.inner.width),this.prop.pageSize=Ze})},at.prototype.setProgress=function(Ze,De,ut,Zt){return Ze!=null&&(this.progress.val=Ze),De!=null&&(this.progress.state=De),ut!=null&&(this.progress.n=ut),Zt!=null&&(this.progress.stack=Zt),this.progress.ratio=this.progress.val/this.progress.state,this},at.prototype.updateProgress=function(Ze,De,ut,Zt){return this.setProgress(Ze?this.progress.val+Ze:null,De||null,ut?this.progress.n+ut:null,Zt?this.progress.stack.concat(Zt):null)},at.prototype.then=function(Ze,De){var ut=this;return this.thenCore(Ze,De,function(Kt,tt){return ut.updateProgress(null,null,1,[Kt]),it.prototype.then.call(this,function(jt){return ut.updateProgress(null,Kt),jt}).then(Kt,tt).then(function(jt){return ut.updateProgress(1),jt})})},at.prototype.thenCore=function(Ze,De,ut){ut=ut||it.prototype.then;var Zt=this;Ze&&(Ze=Ze.bind(Zt)),De&&(De=De.bind(Zt));var Kt=it.toString().indexOf("[native code]")!==-1&&it.name==="Promise",tt=Kt?Zt:at.convert(Object.assign({},Zt),it.prototype),Dt=ut.call(tt,Ze,De);return at.convert(Dt,Zt.__proto__)},at.prototype.thenExternal=function(Ze,De){return it.prototype.then.call(this,Ze,De)},at.prototype.thenList=function(Ze){var De=this;return Ze.forEach(function(Zt){De=De.thenCore(Zt)}),De},at.prototype.catch=function(Et){Et&&(Et=Et.bind(this));var Ze=it.prototype.catch.call(this,Et);return at.convert(Ze,this)},at.prototype.catchExternal=function(Ze){return it.prototype.catch.call(this,Ze)},at.prototype.error=function(Ze){return this.then(function(){throw new Error(Ze)})},at.prototype.using=at.prototype.set,at.prototype.saveAs=at.prototype.save,at.prototype.export=at.prototype.output,at.prototype.run=at.prototype.then,xe.default=at},"./node_modules/core-js/internals/a-function.js":function(he){he.exports=function(xe){if(typeof xe!="function")throw TypeError(String(xe)+" is not a function");return xe}},"./node_modules/core-js/internals/a-possible-prototype.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js");he.exports=function(ve){if(!Oe(ve)&&ve!==null)throw TypeError("Can't set "+String(ve)+" as a prototype");return ve}},"./node_modules/core-js/internals/add-to-unscopables.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/well-known-symbol.js"),ve=oe("./node_modules/core-js/internals/object-create.js"),Me=oe("./node_modules/core-js/internals/object-define-property.js"),Se=Oe("unscopables"),Te=Array.prototype;Te[Se]==null&&Me.f(Te,Se,{configurable:!0,value:ve(null)}),he.exports=function(we){Te[Se][we]=!0}},"./node_modules/core-js/internals/an-object.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js");he.exports=function(ve){if(!Oe(ve))throw TypeError(String(ve)+" is not an object");return ve}},"./node_modules/core-js/internals/array-for-each.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/array-iteration.js").forEach,ve=oe("./node_modules/core-js/internals/array-method-is-strict.js"),Me=ve("forEach");he.exports=Me?[].forEach:function(Te){return Oe(this,Te,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-indexed-object.js"),ve=oe("./node_modules/core-js/internals/to-length.js"),Me=oe("./node_modules/core-js/internals/to-absolute-index.js"),Se=function(Te){return function(we,Ce,Ee){var ke=Oe(we),Ke=ve(ke.length),Qe=Me(Ee,Ke),je;if(Te&&Ce!=Ce){for(;Ke>Qe;)if(je=ke[Qe++],je!=je)return!0}else for(;Ke>Qe;Qe++)if((Te||Qe in ke)&&ke[Qe]===Ce)return Te||Qe||0;return!Te&&-1}};he.exports={includes:Se(!0),indexOf:Se(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/function-bind-context.js"),ve=oe("./node_modules/core-js/internals/indexed-object.js"),Me=oe("./node_modules/core-js/internals/to-object.js"),Se=oe("./node_modules/core-js/internals/to-length.js"),Te=oe("./node_modules/core-js/internals/array-species-create.js"),we=[].push,Ce=function(Ee){var ke=Ee==1,Ke=Ee==2,Qe=Ee==3,je=Ee==4,Je=Ee==6,Ve=Ee==7,ct=Ee==5||Je;return function(ot,pt,Ct,He){for(var ht=Me(ot),_e=ve(ht),Re=Oe(pt,Ct,3),Ot=Se(_e.length),it=0,at=He||Te,Et=ke?at(ot,Ot):Ke||Ve?at(ot,0):void 0,Ze,De;Ot>it;it++)if((ct||it in _e)&&(Ze=_e[it],De=Re(Ze,it,ht),Ee))if(ke)Et[it]=De;else if(De)switch(Ee){case 3:return!0;case 5:return Ze;case 6:return it;case 2:we.call(Et,Ze)}else switch(Ee){case 4:return!1;case 7:we.call(Et,Ze)}return Je?-1:Qe||je?je:Et}};he.exports={forEach:Ce(0),map:Ce(1),filter:Ce(2),some:Ce(3),every:Ce(4),find:Ce(5),findIndex:Ce(6),filterReject:Ce(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=oe("./node_modules/core-js/internals/well-known-symbol.js"),Me=oe("./node_modules/core-js/internals/engine-v8-version.js"),Se=ve("species");he.exports=function(Te){return Me>=51||!Oe(function(){var we=[],Ce=we.constructor={};return Ce[Se]=function(){return{foo:1}},we[Te](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/fails.js");he.exports=function(ve,Me){var Se=[][ve];return!!Se&&Oe(function(){Se.call(null,Me||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js"),ve=oe("./node_modules/core-js/internals/is-array.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol.js"),Se=Me("species");he.exports=function(Te){var we;return ve(Te)&&(we=Te.constructor,typeof we=="function"&&(we===Array||ve(we.prototype))?we=void 0:Oe(we)&&(we=we[Se],we===null&&(we=void 0))),we===void 0?Array:we}},"./node_modules/core-js/internals/array-species-create.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/array-species-constructor.js");he.exports=function(ve,Me){return new(Oe(ve))(Me===0?0:Me)}},"./node_modules/core-js/internals/classof-raw.js":function(he){var xe={}.toString;he.exports=function(oe){return xe.call(oe).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-string-tag-support.js"),ve=oe("./node_modules/core-js/internals/classof-raw.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol.js"),Se=Me("toStringTag"),Te=ve(function(){return arguments}())=="Arguments",we=function(Ce,Ee){try{return Ce[Ee]}catch(ke){}};he.exports=Oe?ve:function(Ce){var Ee,ke,Ke;return Ce===void 0?"Undefined":Ce===null?"Null":typeof(ke=we(Ee=Object(Ce),Se))=="string"?ke:Te?ve(Ee):(Ke=ve(Ee))=="Object"&&typeof Ee.callee=="function"?"Arguments":Ke}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/has.js"),ve=oe("./node_modules/core-js/internals/own-keys.js"),Me=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Se=oe("./node_modules/core-js/internals/object-define-property.js");he.exports=function(Te,we){for(var Ce=ve(we),Ee=Se.f,ke=Me.f,Ke=0;Ke<Ce.length;Ke++){var Qe=Ce[Ke];Oe(Te,Qe)||Ee(Te,Qe,ke(we,Qe))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js");he.exports=!Oe(function(){function ve(){}return ve.prototype.constructor=null,Object.getPrototypeOf(new ve)!==ve.prototype})},"./node_modules/core-js/internals/create-html.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/require-object-coercible.js"),ve=oe("./node_modules/core-js/internals/to-string.js"),Me=/"/g;he.exports=function(Se,Te,we,Ce){var Ee=ve(Oe(Se)),ke="<"+Te;return we!==""&&(ke+=" "+we+'="'+ve(Ce).replace(Me,""")+'"'),ke+">"+Ee+"</"+Te+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,ve=oe("./node_modules/core-js/internals/object-create.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js"),Se=oe("./node_modules/core-js/internals/set-to-string-tag.js"),Te=oe("./node_modules/core-js/internals/iterators.js"),we=function(){return this};he.exports=function(Ce,Ee,ke){var Ke=Ee+" Iterator";return Ce.prototype=ve(Oe,{next:Me(1,ke)}),Se(Ce,Ke,!1,!0),Te[Ke]=we,Ce}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js");he.exports=Oe?function(Se,Te,we){return ve.f(Se,Te,Me(1,we))}:function(Se,Te,we){return Se[Te]=we,Se}},"./node_modules/core-js/internals/create-property-descriptor.js":function(he){he.exports=function(xe,oe){return{enumerable:!(xe&1),configurable:!(xe&2),writable:!(xe&4),value:oe}}},"./node_modules/core-js/internals/create-property.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/to-property-key.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js");he.exports=function(Se,Te,we){var Ce=Oe(Te);Ce in Se?ve.f(Se,Ce,Me(0,we)):Se[Ce]=we}},"./node_modules/core-js/internals/define-iterator.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/create-iterator-constructor.js"),Me=oe("./node_modules/core-js/internals/object-get-prototype-of.js"),Se=oe("./node_modules/core-js/internals/object-set-prototype-of.js"),Te=oe("./node_modules/core-js/internals/set-to-string-tag.js"),we=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ce=oe("./node_modules/core-js/internals/redefine.js"),Ee=oe("./node_modules/core-js/internals/well-known-symbol.js"),ke=oe("./node_modules/core-js/internals/is-pure.js"),Ke=oe("./node_modules/core-js/internals/iterators.js"),Qe=oe("./node_modules/core-js/internals/iterators-core.js"),je=Qe.IteratorPrototype,Je=Qe.BUGGY_SAFARI_ITERATORS,Ve=Ee("iterator"),ct="keys",ot="values",pt="entries",Ct=function(){return this};he.exports=function(He,ht,_e,Re,Ot,it,at){ve(_e,ht,Re);var Et=function(kt){if(kt===Ot&&Kt)return Kt;if(!Je&&kt in ut)return ut[kt];switch(kt){case ct:return function(){return new _e(this,kt)};case ot:return function(){return new _e(this,kt)};case pt:return function(){return new _e(this,kt)}}return function(){return new _e(this)}},Ze=ht+" Iterator",De=!1,ut=He.prototype,Zt=ut[Ve]||ut["@@iterator"]||Ot&&ut[Ot],Kt=!Je&&Zt||Et(Ot),tt=ht=="Array"&&ut.entries||Zt,Dt,jt,An;if(tt&&(Dt=Me(tt.call(new He)),je!==Object.prototype&&Dt.next&&(!ke&&Me(Dt)!==je&&(Se?Se(Dt,je):typeof Dt[Ve]!="function"&&we(Dt,Ve,Ct)),Te(Dt,Ze,!0,!0),ke&&(Ke[Ze]=Ct))),Ot==ot&&Zt&&Zt.name!==ot&&(De=!0,Kt=function(){return Zt.call(this)}),(!ke||at)&&ut[Ve]!==Kt&&we(ut,Ve,Kt),Ke[ht]=Kt,Ot)if(jt={values:Et(ot),keys:it?Kt:Et(ct),entries:Et(pt)},at)for(An in jt)(Je||De||!(An in ut))&&Ce(ut,An,jt[An]);else Oe({target:ht,proto:!0,forced:Je||De},jt);return jt}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/path.js"),ve=oe("./node_modules/core-js/internals/has.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Se=oe("./node_modules/core-js/internals/object-define-property.js").f;he.exports=function(Te){var we=Oe.Symbol||(Oe.Symbol={});ve(we,Te)||Se(we,Te,{value:Me.f(Te)})}},"./node_modules/core-js/internals/descriptors.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js");he.exports=!Oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/is-object.js"),Me=Oe.document,Se=ve(Me)&&ve(Me.createElement);he.exports=function(Te){return Se?Me.createElement(Te):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(he){he.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js");he.exports=Oe("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/engine-user-agent.js"),Me=Oe.process,Se=Oe.Deno,Te=Me&&Me.versions||Se&&Se.version,we=Te&&Te.v8,Ce,Ee;we?(Ce=we.split("."),Ee=Ce[0]<4?1:Ce[0]+Ce[1]):ve&&(Ce=ve.match(/Edge\/(\d+)/),(!Ce||Ce[1]>=74)&&(Ce=ve.match(/Chrome\/(\d+)/),Ce&&(Ee=Ce[1]))),he.exports=Ee&&+Ee},"./node_modules/core-js/internals/enum-bug-keys.js":function(he){he.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Me=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Se=oe("./node_modules/core-js/internals/redefine.js"),Te=oe("./node_modules/core-js/internals/set-global.js"),we=oe("./node_modules/core-js/internals/copy-constructor-properties.js"),Ce=oe("./node_modules/core-js/internals/is-forced.js");he.exports=function(Ee,ke){var Ke=Ee.target,Qe=Ee.global,je=Ee.stat,Je,Ve,ct,ot,pt,Ct;if(Qe?Ve=Oe:je?Ve=Oe[Ke]||Te(Ke,{}):Ve=(Oe[Ke]||{}).prototype,Ve)for(ct in ke){if(pt=ke[ct],Ee.noTargetGet?(Ct=ve(Ve,ct),ot=Ct&&Ct.value):ot=Ve[ct],Je=Ce(Qe?ct:Ke+(je?".":"#")+ct,Ee.forced),!Je&&ot!==void 0){if(typeof pt==typeof ot)continue;we(pt,ot)}(Ee.sham||ot&&ot.sham)&&Me(pt,"sham",!0),Se(Ve,ct,pt,Ee)}}},"./node_modules/core-js/internals/fails.js":function(he){he.exports=function(xe){try{return!!xe()}catch(oe){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/a-function.js");he.exports=function(ve,Me,Se){if(Oe(ve),Me===void 0)return ve;switch(Se){case 0:return function(){return ve.call(Me)};case 1:return function(Te){return ve.call(Me,Te)};case 2:return function(Te,we){return ve.call(Me,Te,we)};case 3:return function(Te,we,Ce){return ve.call(Me,Te,we,Ce)}}return function(){return ve.apply(Me,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=function(Me){return typeof Me=="function"?Me:void 0};he.exports=function(Me,Se){return arguments.length<2?ve(Oe[Me]):Oe[Me]&&Oe[Me][Se]}},"./node_modules/core-js/internals/global.js":function(he){var xe=function(oe){return oe&&oe.Math==Math&&oe};he.exports=xe(typeof globalThis=="object"&&globalThis)||xe(typeof window=="object"&&window)||xe(typeof self=="object"&&self)||xe(typeof ae.g=="object"&&ae.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-object.js"),ve={}.hasOwnProperty;he.exports=Object.hasOwn||function(Se,Te){return ve.call(Oe(Se),Te)}},"./node_modules/core-js/internals/hidden-keys.js":function(he){he.exports={}},"./node_modules/core-js/internals/html.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js");he.exports=Oe("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/fails.js"),Me=oe("./node_modules/core-js/internals/document-create-element.js");he.exports=!Oe&&!ve(function(){return Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=oe("./node_modules/core-js/internals/classof-raw.js"),Me="".split;he.exports=Oe(function(){return!Object("z").propertyIsEnumerable(0)})?function(Se){return ve(Se)=="String"?Me.call(Se,""):Object(Se)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js"),ve=oe("./node_modules/core-js/internals/object-set-prototype-of.js");he.exports=function(Me,Se,Te){var we,Ce;return ve&&typeof(we=Se.constructor)=="function"&&we!==Te&&Oe(Ce=we.prototype)&&Ce!==Te.prototype&&ve(Me,Ce),Me}},"./node_modules/core-js/internals/inspect-source.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/shared-store.js"),ve=Function.toString;typeof Oe.inspectSource!="function"&&(Oe.inspectSource=function(Me){return ve.call(Me)}),he.exports=Oe.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/native-weak-map.js"),ve=oe("./node_modules/core-js/internals/global.js"),Me=oe("./node_modules/core-js/internals/is-object.js"),Se=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Te=oe("./node_modules/core-js/internals/has.js"),we=oe("./node_modules/core-js/internals/shared-store.js"),Ce=oe("./node_modules/core-js/internals/shared-key.js"),Ee=oe("./node_modules/core-js/internals/hidden-keys.js"),ke="Object already initialized",Ke=ve.WeakMap,Qe,je,Je,Ve=function(_e){return Je(_e)?je(_e):Qe(_e,{})},ct=function(_e){return function(Re){var Ot;if(!Me(Re)||(Ot=je(Re)).type!==_e)throw TypeError("Incompatible receiver, "+_e+" required");return Ot}};if(Oe||we.state){var ot=we.state||(we.state=new Ke),pt=ot.get,Ct=ot.has,He=ot.set;Qe=function(_e,Re){if(Ct.call(ot,_e))throw new TypeError(ke);return Re.facade=_e,He.call(ot,_e,Re),Re},je=function(_e){return pt.call(ot,_e)||{}},Je=function(_e){return Ct.call(ot,_e)}}else{var ht=Ce("state");Ee[ht]=!0,Qe=function(_e,Re){if(Te(_e,ht))throw new TypeError(ke);return Re.facade=_e,Se(_e,ht,Re),Re},je=function(_e){return Te(_e,ht)?_e[ht]:{}},Je=function(_e){return Te(_e,ht)}}he.exports={set:Qe,get:je,has:Je,enforce:Ve,getterFor:ct}},"./node_modules/core-js/internals/is-array.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/classof-raw.js");he.exports=Array.isArray||function(Me){return Oe(Me)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=/#|\.prototype\./,Me=function(Ee,ke){var Ke=Te[Se(Ee)];return Ke==Ce?!0:Ke==we?!1:typeof ke=="function"?Oe(ke):!!ke},Se=Me.normalize=function(Ee){return String(Ee).replace(ve,".").toLowerCase()},Te=Me.data={},we=Me.NATIVE="N",Ce=Me.POLYFILL="P";he.exports=Me},"./node_modules/core-js/internals/is-object.js":function(he){he.exports=function(xe){return typeof xe=="object"?xe!==null:typeof xe=="function"}},"./node_modules/core-js/internals/is-pure.js":function(he){he.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js"),ve=oe("./node_modules/core-js/internals/use-symbol-as-uid.js");he.exports=ve?function(Me){return typeof Me=="symbol"}:function(Me){var Se=Oe("Symbol");return typeof Se=="function"&&Object(Me)instanceof Se}},"./node_modules/core-js/internals/iterators-core.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=oe("./node_modules/core-js/internals/object-get-prototype-of.js"),Me=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Se=oe("./node_modules/core-js/internals/has.js"),Te=oe("./node_modules/core-js/internals/well-known-symbol.js"),we=oe("./node_modules/core-js/internals/is-pure.js"),Ce=Te("iterator"),Ee=!1,ke=function(){return this},Ke,Qe,je;[].keys&&(je=[].keys(),"next"in je?(Qe=ve(ve(je)),Qe!==Object.prototype&&(Ke=Qe)):Ee=!0);var Je=Ke==null||Oe(function(){var Ve={};return Ke[Ce].call(Ve)!==Ve});Je&&(Ke={}),(!we||Je)&&!Se(Ke,Ce)&&Me(Ke,Ce,ke),he.exports={IteratorPrototype:Ke,BUGGY_SAFARI_ITERATORS:Ee}},"./node_modules/core-js/internals/iterators.js":function(he){he.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/engine-v8-version.js"),ve=oe("./node_modules/core-js/internals/fails.js");he.exports=!!Object.getOwnPropertySymbols&&!ve(function(){var Me=Symbol();return!String(Me)||!(Object(Me)instanceof Symbol)||!Symbol.sham&&Oe&&Oe<41})},"./node_modules/core-js/internals/native-weak-map.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/inspect-source.js"),Me=Oe.WeakMap;he.exports=typeof Me=="function"&&/native code/.test(ve(Me))},"./node_modules/core-js/internals/object-assign.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/fails.js"),Me=oe("./node_modules/core-js/internals/object-keys.js"),Se=oe("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Te=oe("./node_modules/core-js/internals/object-property-is-enumerable.js"),we=oe("./node_modules/core-js/internals/to-object.js"),Ce=oe("./node_modules/core-js/internals/indexed-object.js"),Ee=Object.assign,ke=Object.defineProperty;he.exports=!Ee||ve(function(){if(Oe&&Ee({b:1},Ee(ke({},"a",{enumerable:!0,get:function(){ke(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Ke={},Qe={},je=Symbol(),Je="abcdefghijklmnopqrst";return Ke[je]=7,Je.split("").forEach(function(Ve){Qe[Ve]=Ve}),Ee({},Ke)[je]!=7||Me(Ee({},Qe)).join("")!=Je})?function(Qe,je){for(var Je=we(Qe),Ve=arguments.length,ct=1,ot=Se.f,pt=Te.f;Ve>ct;)for(var Ct=Ce(arguments[ct++]),He=ot?Me(Ct).concat(ot(Ct)):Me(Ct),ht=He.length,_e=0,Re;ht>_e;)Re=He[_e++],(!Oe||pt.call(Ct,Re))&&(Je[Re]=Ct[Re]);return Je}:Ee},"./node_modules/core-js/internals/object-create.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/an-object.js"),ve=oe("./node_modules/core-js/internals/object-define-properties.js"),Me=oe("./node_modules/core-js/internals/enum-bug-keys.js"),Se=oe("./node_modules/core-js/internals/hidden-keys.js"),Te=oe("./node_modules/core-js/internals/html.js"),we=oe("./node_modules/core-js/internals/document-create-element.js"),Ce=oe("./node_modules/core-js/internals/shared-key.js"),Ee=">",ke="<",Ke="prototype",Qe="script",je=Ce("IE_PROTO"),Je=function(){},Ve=function(He){return ke+Qe+Ee+He+ke+"/"+Qe+Ee},ct=function(He){He.write(Ve("")),He.close();var ht=He.parentWindow.Object;return He=null,ht},ot=function(){var He=we("iframe"),ht="java"+Qe+":",_e;if(He.style)return He.style.display="none",Te.appendChild(He),He.src=String(ht),_e=He.contentWindow.document,_e.open(),_e.write(Ve("document.F=Object")),_e.close(),_e.F},pt,Ct=function(){try{pt=new ActiveXObject("htmlfile")}catch(ht){}Ct=document.domain&&pt?ct(pt):ot()||ct(pt);for(var He=Me.length;He--;)delete Ct[Ke][Me[He]];return Ct()};Se[je]=!0,he.exports=Object.create||function(ht,_e){var Re;return ht!==null?(Je[Ke]=Oe(ht),Re=new Je,Je[Ke]=null,Re[je]=ht):Re=Ct(),_e===void 0?Re:ve(Re,_e)}},"./node_modules/core-js/internals/object-define-properties.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js"),Me=oe("./node_modules/core-js/internals/an-object.js"),Se=oe("./node_modules/core-js/internals/object-keys.js");he.exports=Oe?Object.defineProperties:function(we,Ce){Me(we);for(var Ee=Se(Ce),ke=Ee.length,Ke=0,Qe;ke>Ke;)ve.f(we,Qe=Ee[Ke++],Ce[Qe]);return we}},"./node_modules/core-js/internals/object-define-property.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/ie8-dom-define.js"),Me=oe("./node_modules/core-js/internals/an-object.js"),Se=oe("./node_modules/core-js/internals/to-property-key.js"),Te=Object.defineProperty;xe.f=Oe?Te:function(Ce,Ee,ke){if(Me(Ce),Ee=Se(Ee),Me(ke),ve)try{return Te(Ce,Ee,ke)}catch(Ke){}if("get"in ke||"set"in ke)throw TypeError("Accessors not supported");return"value"in ke&&(Ce[Ee]=ke.value),Ce}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-property-is-enumerable.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js"),Se=oe("./node_modules/core-js/internals/to-indexed-object.js"),Te=oe("./node_modules/core-js/internals/to-property-key.js"),we=oe("./node_modules/core-js/internals/has.js"),Ce=oe("./node_modules/core-js/internals/ie8-dom-define.js"),Ee=Object.getOwnPropertyDescriptor;xe.f=Oe?Ee:function(Ke,Qe){if(Ke=Se(Ke),Qe=Te(Qe),Ce)try{return Ee(Ke,Qe)}catch(je){}if(we(Ke,Qe))return Me(!ve.f.call(Ke,Qe),Ke[Qe])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-indexed-object.js"),ve=oe("./node_modules/core-js/internals/object-get-own-property-names.js").f,Me={}.toString,Se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Te=function(we){try{return ve(we)}catch(Ce){return Se.slice()}};he.exports.f=function(Ce){return Se&&Me.call(Ce)=="[object Window]"?Te(Ce):ve(Oe(Ce))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/object-keys-internal.js"),ve=oe("./node_modules/core-js/internals/enum-bug-keys.js"),Me=ve.concat("length","prototype");xe.f=Object.getOwnPropertyNames||function(Te){return Oe(Te,Me)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(he,xe){xe.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/has.js"),ve=oe("./node_modules/core-js/internals/to-object.js"),Me=oe("./node_modules/core-js/internals/shared-key.js"),Se=oe("./node_modules/core-js/internals/correct-prototype-getter.js"),Te=Me("IE_PROTO"),we=Object.prototype;he.exports=Se?Object.getPrototypeOf:function(Ce){return Ce=ve(Ce),Oe(Ce,Te)?Ce[Te]:typeof Ce.constructor=="function"&&Ce instanceof Ce.constructor?Ce.constructor.prototype:Ce instanceof Object?we:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/has.js"),ve=oe("./node_modules/core-js/internals/to-indexed-object.js"),Me=oe("./node_modules/core-js/internals/array-includes.js").indexOf,Se=oe("./node_modules/core-js/internals/hidden-keys.js");he.exports=function(Te,we){var Ce=ve(Te),Ee=0,ke=[],Ke;for(Ke in Ce)!Oe(Se,Ke)&&Oe(Ce,Ke)&&ke.push(Ke);for(;we.length>Ee;)Oe(Ce,Ke=we[Ee++])&&(~Me(ke,Ke)||ke.push(Ke));return ke}},"./node_modules/core-js/internals/object-keys.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/object-keys-internal.js"),ve=oe("./node_modules/core-js/internals/enum-bug-keys.js");he.exports=Object.keys||function(Se){return Oe(Se,ve)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(he,xe){"use strict";var oe={}.propertyIsEnumerable,Oe=Object.getOwnPropertyDescriptor,ve=Oe&&!oe.call({1:2},1);xe.f=ve?function(Se){var Te=Oe(this,Se);return!!Te&&Te.enumerable}:oe},"./node_modules/core-js/internals/object-set-prototype-of.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/an-object.js"),ve=oe("./node_modules/core-js/internals/a-possible-prototype.js");he.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Me=!1,Se={},Te;try{Te=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,Te.call(Se,[]),Me=Se instanceof Array}catch(we){}return function(Ce,Ee){return Oe(Ce),ve(Ee),Me?Te.call(Ce,Ee):Ce.__proto__=Ee,Ce}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/to-string-tag-support.js"),ve=oe("./node_modules/core-js/internals/classof.js");he.exports=Oe?{}.toString:function(){return"[object "+ve(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js");he.exports=function(ve,Me){var Se,Te;if(Me==="string"&&typeof(Se=ve.toString)=="function"&&!Oe(Te=Se.call(ve))||typeof(Se=ve.valueOf)=="function"&&!Oe(Te=Se.call(ve))||Me!=="string"&&typeof(Se=ve.toString)=="function"&&!Oe(Te=Se.call(ve)))return Te;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js"),ve=oe("./node_modules/core-js/internals/object-get-own-property-names.js"),Me=oe("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Se=oe("./node_modules/core-js/internals/an-object.js");he.exports=Oe("Reflect","ownKeys")||function(we){var Ce=ve.f(Se(we)),Ee=Me.f;return Ee?Ce.concat(Ee(we)):Ce}},"./node_modules/core-js/internals/path.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js");he.exports=Oe},"./node_modules/core-js/internals/redefine.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Me=oe("./node_modules/core-js/internals/has.js"),Se=oe("./node_modules/core-js/internals/set-global.js"),Te=oe("./node_modules/core-js/internals/inspect-source.js"),we=oe("./node_modules/core-js/internals/internal-state.js"),Ce=we.get,Ee=we.enforce,ke=String(String).split("String");(he.exports=function(Ke,Qe,je,Je){var Ve=Je?!!Je.unsafe:!1,ct=Je?!!Je.enumerable:!1,ot=Je?!!Je.noTargetGet:!1,pt;if(typeof je=="function"&&(typeof Qe=="string"&&!Me(je,"name")&&ve(je,"name",Qe),pt=Ee(je),pt.source||(pt.source=ke.join(typeof Qe=="string"?Qe:""))),Ke===Oe){ct?Ke[Qe]=je:Se(Qe,je);return}else Ve?!ot&&Ke[Qe]&&(ct=!0):delete Ke[Qe];ct?Ke[Qe]=je:ve(Ke,Qe,je)})(Function.prototype,"toString",function(){return typeof this=="function"&&Ce(this).source||Te(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/an-object.js");he.exports=function(){var ve=Oe(this),Me="";return ve.global&&(Me+="g"),ve.ignoreCase&&(Me+="i"),ve.multiline&&(Me+="m"),ve.dotAll&&(Me+="s"),ve.unicode&&(Me+="u"),ve.sticky&&(Me+="y"),Me}},"./node_modules/core-js/internals/require-object-coercible.js":function(he){he.exports=function(xe){if(xe==null)throw TypeError("Can't call method on "+xe);return xe}},"./node_modules/core-js/internals/set-global.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js");he.exports=function(ve,Me){try{Object.defineProperty(Oe,ve,{value:Me,configurable:!0,writable:!0})}catch(Se){Oe[ve]=Me}return Me}},"./node_modules/core-js/internals/set-to-string-tag.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/object-define-property.js").f,ve=oe("./node_modules/core-js/internals/has.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol.js"),Se=Me("toStringTag");he.exports=function(Te,we,Ce){Te&&!ve(Te=Ce?Te:Te.prototype,Se)&&Oe(Te,Se,{configurable:!0,value:we})}},"./node_modules/core-js/internals/shared-key.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/shared.js"),ve=oe("./node_modules/core-js/internals/uid.js"),Me=Oe("keys");he.exports=function(Se){return Me[Se]||(Me[Se]=ve(Se))}},"./node_modules/core-js/internals/shared-store.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/set-global.js"),Me="__core-js_shared__",Se=Oe[Me]||ve(Me,{});he.exports=Se},"./node_modules/core-js/internals/shared.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-pure.js"),ve=oe("./node_modules/core-js/internals/shared-store.js");(he.exports=function(Me,Se){return ve[Me]||(ve[Me]=Se!==void 0?Se:{})})("versions",[]).push({version:"3.16.0",mode:Oe?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js");he.exports=function(ve){return Oe(function(){var Me=""[ve]('"');return Me!==Me.toLowerCase()||Me.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-integer.js"),ve=oe("./node_modules/core-js/internals/to-string.js"),Me=oe("./node_modules/core-js/internals/require-object-coercible.js"),Se=function(Te){return function(we,Ce){var Ee=ve(Me(we)),ke=Oe(Ce),Ke=Ee.length,Qe,je;return ke<0||ke>=Ke?Te?"":void 0:(Qe=Ee.charCodeAt(ke),Qe<55296||Qe>56319||ke+1===Ke||(je=Ee.charCodeAt(ke+1))<56320||je>57343?Te?Ee.charAt(ke):Qe:Te?Ee.slice(ke,ke+2):(Qe-55296<<10)+(je-56320)+65536)}};he.exports={codeAt:Se(!1),charAt:Se(!0)}},"./node_modules/core-js/internals/string-trim.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/require-object-coercible.js"),ve=oe("./node_modules/core-js/internals/to-string.js"),Me=oe("./node_modules/core-js/internals/whitespaces.js"),Se="["+Me+"]",Te=RegExp("^"+Se+Se+"*"),we=RegExp(Se+Se+"*$"),Ce=function(Ee){return function(ke){var Ke=ve(Oe(ke));return Ee&1&&(Ke=Ke.replace(Te,"")),Ee&2&&(Ke=Ke.replace(we,"")),Ke}};he.exports={start:Ce(1),end:Ce(2),trim:Ce(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-integer.js"),ve=Math.max,Me=Math.min;he.exports=function(Se,Te){var we=Oe(Se);return we<0?ve(we+Te,0):Me(we,Te)}},"./node_modules/core-js/internals/to-indexed-object.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/indexed-object.js"),ve=oe("./node_modules/core-js/internals/require-object-coercible.js");he.exports=function(Me){return Oe(ve(Me))}},"./node_modules/core-js/internals/to-integer.js":function(he){var xe=Math.ceil,oe=Math.floor;he.exports=function(Oe){return isNaN(Oe=+Oe)?0:(Oe>0?oe:xe)(Oe)}},"./node_modules/core-js/internals/to-length.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-integer.js"),ve=Math.min;he.exports=function(Me){return Me>0?ve(Oe(Me),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/require-object-coercible.js");he.exports=function(ve){return Object(Oe(ve))}},"./node_modules/core-js/internals/to-primitive.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js"),ve=oe("./node_modules/core-js/internals/is-symbol.js"),Me=oe("./node_modules/core-js/internals/ordinary-to-primitive.js"),Se=oe("./node_modules/core-js/internals/well-known-symbol.js"),Te=Se("toPrimitive");he.exports=function(we,Ce){if(!Oe(we)||ve(we))return we;var Ee=we[Te],ke;if(Ee!==void 0){if(Ce===void 0&&(Ce="default"),ke=Ee.call(we,Ce),!Oe(ke)||ve(ke))return ke;throw TypeError("Can't convert object to primitive value")}return Ce===void 0&&(Ce="number"),Me(we,Ce)}},"./node_modules/core-js/internals/to-property-key.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-primitive.js"),ve=oe("./node_modules/core-js/internals/is-symbol.js");he.exports=function(Me){var Se=Oe(Me,"string");return ve(Se)?Se:String(Se)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/well-known-symbol.js"),ve=Oe("toStringTag"),Me={};Me[ve]="z",he.exports=String(Me)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-symbol.js");he.exports=function(ve){if(Oe(ve))throw TypeError("Cannot convert a Symbol value to a string");return String(ve)}},"./node_modules/core-js/internals/uid.js":function(he){var xe=0,oe=Math.random();he.exports=function(Oe){return"Symbol("+String(Oe===void 0?"":Oe)+")_"+(++xe+oe).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/native-symbol.js");he.exports=Oe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/well-known-symbol.js");xe.f=Oe},"./node_modules/core-js/internals/well-known-symbol.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/shared.js"),Me=oe("./node_modules/core-js/internals/has.js"),Se=oe("./node_modules/core-js/internals/uid.js"),Te=oe("./node_modules/core-js/internals/native-symbol.js"),we=oe("./node_modules/core-js/internals/use-symbol-as-uid.js"),Ce=ve("wks"),Ee=Oe.Symbol,ke=we?Ee:Ee&&Ee.withoutSetter||Se;he.exports=function(Ke){return(!Me(Ce,Ke)||!(Te||typeof Ce[Ke]=="string"))&&(Te&&Me(Ee,Ke)?Ce[Ke]=Ee[Ke]:Ce[Ke]=ke("Symbol."+Ke)),Ce[Ke]}},"./node_modules/core-js/internals/whitespaces.js":function(he){he.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/fails.js"),Me=oe("./node_modules/core-js/internals/is-array.js"),Se=oe("./node_modules/core-js/internals/is-object.js"),Te=oe("./node_modules/core-js/internals/to-object.js"),we=oe("./node_modules/core-js/internals/to-length.js"),Ce=oe("./node_modules/core-js/internals/create-property.js"),Ee=oe("./node_modules/core-js/internals/array-species-create.js"),ke=oe("./node_modules/core-js/internals/array-method-has-species-support.js"),Ke=oe("./node_modules/core-js/internals/well-known-symbol.js"),Qe=oe("./node_modules/core-js/internals/engine-v8-version.js"),je=Ke("isConcatSpreadable"),Je=9007199254740991,Ve="Maximum allowed index exceeded",ct=Qe>=51||!ve(function(){var He=[];return He[je]=!1,He.concat()[0]!==He}),ot=ke("concat"),pt=function(He){if(!Se(He))return!1;var ht=He[je];return ht!==void 0?!!ht:Me(He)},Ct=!ct||!ot;Oe({target:"Array",proto:!0,forced:Ct},{concat:function(ht){var _e=Te(this),Re=Ee(_e,0),Ot=0,it,at,Et,Ze,De;for(it=-1,Et=arguments.length;it<Et;it++)if(De=it===-1?_e:arguments[it],pt(De)){if(Ze=we(De.length),Ot+Ze>Je)throw TypeError(Ve);for(at=0;at<Ze;at++,Ot++)at in De&&Ce(Re,Ot,De[at])}else{if(Ot>=Je)throw TypeError(Ve);Ce(Re,Ot++,De)}return Re.length=Ot,Re}})},"./node_modules/core-js/modules/es.array.iterator.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/to-indexed-object.js"),ve=oe("./node_modules/core-js/internals/add-to-unscopables.js"),Me=oe("./node_modules/core-js/internals/iterators.js"),Se=oe("./node_modules/core-js/internals/internal-state.js"),Te=oe("./node_modules/core-js/internals/define-iterator.js"),we="Array Iterator",Ce=Se.set,Ee=Se.getterFor(we);he.exports=Te(Array,"Array",function(ke,Ke){Ce(this,{type:we,target:Oe(ke),index:0,kind:Ke})},function(){var ke=Ee(this),Ke=ke.target,Qe=ke.kind,je=ke.index++;return!Ke||je>=Ke.length?(ke.target=void 0,{value:void 0,done:!0}):Qe=="keys"?{value:je,done:!1}:Qe=="values"?{value:Ke[je],done:!1}:{value:[je,Ke[je]],done:!1}},"values"),Me.Arguments=Me.Array,ve("keys"),ve("values"),ve("entries")},"./node_modules/core-js/modules/es.array.join.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/indexed-object.js"),Me=oe("./node_modules/core-js/internals/to-indexed-object.js"),Se=oe("./node_modules/core-js/internals/array-method-is-strict.js"),Te=[].join,we=ve!=Object,Ce=Se("join",",");Oe({target:"Array",proto:!0,forced:we||!Ce},{join:function(ke){return Te.call(Me(this),ke===void 0?",":ke)}})},"./node_modules/core-js/modules/es.array.map.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/array-iteration.js").map,Me=oe("./node_modules/core-js/internals/array-method-has-species-support.js"),Se=Me("map");Oe({target:"Array",proto:!0,forced:!Se},{map:function(we){return ve(this,we,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/is-object.js"),Me=oe("./node_modules/core-js/internals/is-array.js"),Se=oe("./node_modules/core-js/internals/to-absolute-index.js"),Te=oe("./node_modules/core-js/internals/to-length.js"),we=oe("./node_modules/core-js/internals/to-indexed-object.js"),Ce=oe("./node_modules/core-js/internals/create-property.js"),Ee=oe("./node_modules/core-js/internals/well-known-symbol.js"),ke=oe("./node_modules/core-js/internals/array-method-has-species-support.js"),Ke=ke("slice"),Qe=Ee("species"),je=[].slice,Je=Math.max;Oe({target:"Array",proto:!0,forced:!Ke},{slice:function(ct,ot){var pt=we(this),Ct=Te(pt.length),He=Se(ct,Ct),ht=Se(ot===void 0?Ct:ot,Ct),_e,Re,Ot;if(Me(pt)&&(_e=pt.constructor,typeof _e=="function"&&(_e===Array||Me(_e.prototype))?_e=void 0:ve(_e)&&(_e=_e[Qe],_e===null&&(_e=void 0)),_e===Array||_e===void 0))return je.call(pt,He,ht);for(Re=new(_e===void 0?Array:_e)(Je(ht-He,0)),Ot=0;He<ht;He++,Ot++)He in pt&&Ce(Re,Ot,pt[He]);return Re.length=Ot,Re}})},"./node_modules/core-js/modules/es.function.name.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js").f,Me=Function.prototype,Se=Me.toString,Te=/^\s*function ([^ (]*)/,we="name";Oe&&!(we in Me)&&ve(Me,we,{configurable:!0,get:function(){try{return Se.call(this).match(Te)[1]}catch(Ce){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/global.js"),Me=oe("./node_modules/core-js/internals/is-forced.js"),Se=oe("./node_modules/core-js/internals/redefine.js"),Te=oe("./node_modules/core-js/internals/has.js"),we=oe("./node_modules/core-js/internals/classof-raw.js"),Ce=oe("./node_modules/core-js/internals/inherit-if-required.js"),Ee=oe("./node_modules/core-js/internals/is-symbol.js"),ke=oe("./node_modules/core-js/internals/to-primitive.js"),Ke=oe("./node_modules/core-js/internals/fails.js"),Qe=oe("./node_modules/core-js/internals/object-create.js"),je=oe("./node_modules/core-js/internals/object-get-own-property-names.js").f,Je=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Ve=oe("./node_modules/core-js/internals/object-define-property.js").f,ct=oe("./node_modules/core-js/internals/string-trim.js").trim,ot="Number",pt=ve[ot],Ct=pt.prototype,He=we(Qe(Ct))==ot,ht=function(at){if(Ee(at))throw TypeError("Cannot convert a Symbol value to a number");var Et=ke(at,"number"),Ze,De,ut,Zt,Kt,tt,Dt,jt;if(typeof Et=="string"&&Et.length>2){if(Et=ct(Et),Ze=Et.charCodeAt(0),Ze===43||Ze===45){if(De=Et.charCodeAt(2),De===88||De===120)return NaN}else if(Ze===48){switch(Et.charCodeAt(1)){case 66:case 98:ut=2,Zt=49;break;case 79:case 111:ut=8,Zt=55;break;default:return+Et}for(Kt=Et.slice(2),tt=Kt.length,Dt=0;Dt<tt;Dt++)if(jt=Kt.charCodeAt(Dt),jt<48||jt>Zt)return NaN;return parseInt(Kt,ut)}}return+Et};if(Me(ot,!pt(" 0o1")||!pt("0b1")||pt("+0x1"))){for(var _e=function(Et){var Ze=arguments.length<1?0:Et,De=this;return De instanceof _e&&(He?Ke(function(){Ct.valueOf.call(De)}):we(De)!=ot)?Ce(new pt(ht(Ze)),De,_e):ht(Ze)},Re=Oe?je(pt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Ot=0,it;Re.length>Ot;Ot++)Te(pt,it=Re[Ot])&&!Te(_e,it)&&Ve(_e,it,Je(pt,it));_e.prototype=Ct,Ct.constructor=_e,Se(ve,ot,_e)}},"./node_modules/core-js/modules/es.object.assign.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/object-assign.js");Oe({target:"Object",stat:!0,forced:Object.assign!==ve},{assign:ve})},"./node_modules/core-js/modules/es.object.keys.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/to-object.js"),Me=oe("./node_modules/core-js/internals/object-keys.js"),Se=oe("./node_modules/core-js/internals/fails.js"),Te=Se(function(){Me(1)});Oe({target:"Object",stat:!0,forced:Te},{keys:function(Ce){return Me(ve(Ce))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-string-tag-support.js"),ve=oe("./node_modules/core-js/internals/redefine.js"),Me=oe("./node_modules/core-js/internals/object-to-string.js");Oe||ve(Object.prototype,"toString",Me,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/redefine.js"),ve=oe("./node_modules/core-js/internals/an-object.js"),Me=oe("./node_modules/core-js/internals/to-string.js"),Se=oe("./node_modules/core-js/internals/fails.js"),Te=oe("./node_modules/core-js/internals/regexp-flags.js"),we="toString",Ce=RegExp.prototype,Ee=Ce[we],ke=Se(function(){return Ee.call({source:"a",flags:"b"})!="/a/b"}),Ke=Ee.name!=we;(ke||Ke)&&Oe(RegExp.prototype,we,function(){var je=ve(this),Je=Me(je.source),Ve=je.flags,ct=Me(Ve===void 0&&je instanceof RegExp&&!("flags"in Ce)?Te.call(je):Ve);return"/"+Je+"/"+ct},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/string-multibyte.js").charAt,ve=oe("./node_modules/core-js/internals/to-string.js"),Me=oe("./node_modules/core-js/internals/internal-state.js"),Se=oe("./node_modules/core-js/internals/define-iterator.js"),Te="String Iterator",we=Me.set,Ce=Me.getterFor(Te);Se(String,"String",function(Ee){we(this,{type:Te,string:ve(Ee),index:0})},function(){var ke=Ce(this),Ke=ke.string,Qe=ke.index,je;return Qe>=Ke.length?{value:void 0,done:!0}:(je=Oe(Ke,Qe),ke.index+=je.length,{value:je,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/create-html.js"),Me=oe("./node_modules/core-js/internals/string-html-forced.js");Oe({target:"String",proto:!0,forced:Me("link")},{link:function(Te){return ve(this,"a","href",Te)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/descriptors.js"),Me=oe("./node_modules/core-js/internals/global.js"),Se=oe("./node_modules/core-js/internals/has.js"),Te=oe("./node_modules/core-js/internals/is-object.js"),we=oe("./node_modules/core-js/internals/object-define-property.js").f,Ce=oe("./node_modules/core-js/internals/copy-constructor-properties.js"),Ee=Me.Symbol;if(ve&&typeof Ee=="function"&&(!("description"in Ee.prototype)||Ee().description!==void 0)){var ke={},Ke=function(){var ot=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),pt=this instanceof Ke?new Ee(ot):ot===void 0?Ee():Ee(ot);return ot===""&&(ke[pt]=!0),pt};Ce(Ke,Ee);var Qe=Ke.prototype=Ee.prototype;Qe.constructor=Ke;var je=Qe.toString,Je=String(Ee("test"))=="Symbol(test)",Ve=/^Symbol\((.*)\)[^)]+$/;we(Qe,"description",{configurable:!0,get:function(){var ot=Te(this)?this.valueOf():this,pt=je.call(ot);if(Se(ke,ot))return"";var Ct=Je?pt.slice(7,-1):pt.replace(Ve,"$1");return Ct===""?void 0:Ct}}),Oe({global:!0,forced:!0},{Symbol:Ke})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/define-well-known-symbol.js");Oe("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/global.js"),Me=oe("./node_modules/core-js/internals/get-built-in.js"),Se=oe("./node_modules/core-js/internals/is-pure.js"),Te=oe("./node_modules/core-js/internals/descriptors.js"),we=oe("./node_modules/core-js/internals/native-symbol.js"),Ce=oe("./node_modules/core-js/internals/fails.js"),Ee=oe("./node_modules/core-js/internals/has.js"),ke=oe("./node_modules/core-js/internals/is-array.js"),Ke=oe("./node_modules/core-js/internals/is-object.js"),Qe=oe("./node_modules/core-js/internals/is-symbol.js"),je=oe("./node_modules/core-js/internals/an-object.js"),Je=oe("./node_modules/core-js/internals/to-object.js"),Ve=oe("./node_modules/core-js/internals/to-indexed-object.js"),ct=oe("./node_modules/core-js/internals/to-property-key.js"),ot=oe("./node_modules/core-js/internals/to-string.js"),pt=oe("./node_modules/core-js/internals/create-property-descriptor.js"),Ct=oe("./node_modules/core-js/internals/object-create.js"),He=oe("./node_modules/core-js/internals/object-keys.js"),ht=oe("./node_modules/core-js/internals/object-get-own-property-names.js"),_e=oe("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Re=oe("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ot=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),it=oe("./node_modules/core-js/internals/object-define-property.js"),at=oe("./node_modules/core-js/internals/object-property-is-enumerable.js"),Et=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ze=oe("./node_modules/core-js/internals/redefine.js"),De=oe("./node_modules/core-js/internals/shared.js"),ut=oe("./node_modules/core-js/internals/shared-key.js"),Zt=oe("./node_modules/core-js/internals/hidden-keys.js"),Kt=oe("./node_modules/core-js/internals/uid.js"),tt=oe("./node_modules/core-js/internals/well-known-symbol.js"),Dt=oe("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),jt=oe("./node_modules/core-js/internals/define-well-known-symbol.js"),An=oe("./node_modules/core-js/internals/set-to-string-tag.js"),kt=oe("./node_modules/core-js/internals/internal-state.js"),pn=oe("./node_modules/core-js/internals/array-iteration.js").forEach,Pt=ut("hidden"),En="Symbol",on="prototype",de=tt("toPrimitive"),pe=kt.set,ie=kt.getterFor(En),ee=Object[on],se=ve.Symbol,le=Me("JSON","stringify"),Be=Ot.f,We=it.f,st=_e.f,mt=at.f,vt=De("symbols"),St=De("op-symbols"),_t=De("string-to-symbol-registry"),Qt=De("symbol-to-string-registry"),xt=De("wks"),lt=ve.QObject,Vt=!lt||!lt[on]||!lt[on].findChild,Wt=Te&&Ce(function(){return Ct(We({},"a",{get:function(){return We(this,"a",{value:7}).a}})).a!=7})?function(Lt,Gt,nn){var wn=Be(ee,Gt);wn&&delete ee[Gt],We(Lt,Gt,nn),wn&&Lt!==ee&&We(ee,Gt,wn)}:We,gn=function(Lt,Gt){var nn=vt[Lt]=Ct(se[on]);return pe(nn,{type:En,tag:Lt,description:Gt}),Te||(nn.description=Gt),nn},an=function(Gt,nn,wn){Gt===ee&&an(St,nn,wn),je(Gt);var Gn=ct(nn);return je(wn),Ee(vt,Gn)?(wn.enumerable?(Ee(Gt,Pt)&&Gt[Pt][Gn]&&(Gt[Pt][Gn]=!1),wn=Ct(wn,{enumerable:pt(0,!1)})):(Ee(Gt,Pt)||We(Gt,Pt,pt(1,{})),Gt[Pt][Gn]=!0),Wt(Gt,Gn,wn)):We(Gt,Gn,wn)},en=function(Gt,nn){je(Gt);var wn=Ve(nn),Gn=He(wn).concat(_n(wn));return pn(Gn,function(Er){(!Te||Fn.call(wn,Er))&&an(Gt,Er,wn[Er])}),Gt},zn=function(Gt,nn){return nn===void 0?Ct(Gt):en(Ct(Gt),nn)},Fn=function(Gt){var nn=ct(Gt),wn=mt.call(this,nn);return this===ee&&Ee(vt,nn)&&!Ee(St,nn)?!1:wn||!Ee(this,nn)||!Ee(vt,nn)||Ee(this,Pt)&&this[Pt][nn]?wn:!0},Rt=function(Gt,nn){var wn=Ve(Gt),Gn=ct(nn);if(!(wn===ee&&Ee(vt,Gn)&&!Ee(St,Gn))){var Er=Be(wn,Gn);return Er&&Ee(vt,Gn)&&!(Ee(wn,Pt)&&wn[Pt][Gn])&&(Er.enumerable=!0),Er}},sn=function(Gt){var nn=st(Ve(Gt)),wn=[];return pn(nn,function(Gn){!Ee(vt,Gn)&&!Ee(Zt,Gn)&&wn.push(Gn)}),wn},_n=function(Gt){var nn=Gt===ee,wn=st(nn?St:Ve(Gt)),Gn=[];return pn(wn,function(Er){Ee(vt,Er)&&(!nn||Ee(ee,Er))&&Gn.push(vt[Er])}),Gn};if(we||(se=function(){if(this instanceof se)throw TypeError("Symbol is not a constructor");var Gt=!arguments.length||arguments[0]===void 0?void 0:ot(arguments[0]),nn=Kt(Gt),wn=function(Gn){this===ee&&wn.call(St,Gn),Ee(this,Pt)&&Ee(this[Pt],nn)&&(this[Pt][nn]=!1),Wt(this,nn,pt(1,Gn))};return Te&&Vt&&Wt(ee,nn,{configurable:!0,set:wn}),gn(nn,Gt)},Ze(se[on],"toString",function(){return ie(this).tag}),Ze(se,"withoutSetter",function(Lt){return gn(Kt(Lt),Lt)}),at.f=Fn,it.f=an,Ot.f=Rt,ht.f=_e.f=sn,Re.f=_n,Dt.f=function(Lt){return gn(tt(Lt),Lt)},Te&&(We(se[on],"description",{configurable:!0,get:function(){return ie(this).description}}),Se||Ze(ee,"propertyIsEnumerable",Fn,{unsafe:!0}))),Oe({global:!0,wrap:!0,forced:!we,sham:!we},{Symbol:se}),pn(He(xt),function(Lt){jt(Lt)}),Oe({target:En,stat:!0,forced:!we},{for:function(Lt){var Gt=ot(Lt);if(Ee(_t,Gt))return _t[Gt];var nn=se(Gt);return _t[Gt]=nn,Qt[nn]=Gt,nn},keyFor:function(Gt){if(!Qe(Gt))throw TypeError(Gt+" is not a symbol");if(Ee(Qt,Gt))return Qt[Gt]},useSetter:function(){Vt=!0},useSimple:function(){Vt=!1}}),Oe({target:"Object",stat:!0,forced:!we,sham:!Te},{create:zn,defineProperty:an,defineProperties:en,getOwnPropertyDescriptor:Rt}),Oe({target:"Object",stat:!0,forced:!we},{getOwnPropertyNames:sn,getOwnPropertySymbols:_n}),Oe({target:"Object",stat:!0,forced:Ce(function(){Re.f(1)})},{getOwnPropertySymbols:function(Gt){return Re.f(Je(Gt))}}),le){var Wn=!we||Ce(function(){var Lt=se();return le([Lt])!="[null]"||le({a:Lt})!="{}"||le(Object(Lt))!="{}"});Oe({target:"JSON",stat:!0,forced:Wn},{stringify:function(Gt,nn,wn){for(var Gn=[Gt],Er=1,ti;arguments.length>Er;)Gn.push(arguments[Er++]);if(ti=nn,!(!Ke(nn)&&Gt===void 0||Qe(Gt)))return ke(nn)||(nn=function(oi,Ar){if(typeof ti=="function"&&(Ar=ti.call(this,oi,Ar)),!Qe(Ar))return Ar}),Gn[1]=nn,le.apply(null,Gn)}})}se[on][de]||Et(se[on],de,se[on].valueOf),An(se,En),Zt[Pt]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/dom-iterables.js"),Me=oe("./node_modules/core-js/internals/array-for-each.js"),Se=oe("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var Te in ve){var we=Oe[Te],Ce=we&&we.prototype;if(Ce&&Ce.forEach!==Me)try{Se(Ce,"forEach",Me)}catch(Ee){Ce.forEach=Me}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/dom-iterables.js"),Me=oe("./node_modules/core-js/modules/es.array.iterator.js"),Se=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Te=oe("./node_modules/core-js/internals/well-known-symbol.js"),we=Te("iterator"),Ce=Te("toStringTag"),Ee=Me.values;for(var ke in ve){var Ke=Oe[ke],Qe=Ke&&Ke.prototype;if(Qe){if(Qe[we]!==Ee)try{Se(Qe,we,Ee)}catch(Je){Qe[we]=Ee}if(Qe[Ce]||Se(Qe,Ce,ke),ve[ke]){for(var je in Me)if(Qe[je]!==Me[je])try{Se(Qe,je,Me[je])}catch(Je){Qe[je]=Me[je]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(he){(function(xe,oe){he.exports=oe()})(this,function(){"use strict";function xe(lt){var Vt=typeof lt;return lt!==null&&(Vt==="object"||Vt==="function")}function oe(lt){return typeof lt=="function"}var Oe=void 0;Array.isArray?Oe=Array.isArray:Oe=function(lt){return Object.prototype.toString.call(lt)==="[object Array]"};var ve=Oe,Me=0,Se=void 0,Te=void 0,we=function(Vt,Wt){He[Me]=Vt,He[Me+1]=Wt,Me+=2,Me===2&&(Te?Te(ht):Re())};function Ce(lt){Te=lt}function Ee(lt){we=lt}var ke=typeof window!="undefined"?window:void 0,Ke=ke||{},Qe=Ke.MutationObserver||Ke.WebKitMutationObserver,je=typeof self=="undefined"&&typeof x!="undefined"&&{}.toString.call(x)==="[object process]",Je=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Ve(){return function(){return x.nextTick(ht)}}function ct(){return typeof Se!="undefined"?function(){Se(ht)}:Ct()}function ot(){var lt=0,Vt=new Qe(ht),Wt=document.createTextNode("");return Vt.observe(Wt,{characterData:!0}),function(){Wt.data=lt=++lt%2}}function pt(){var lt=new MessageChannel;return lt.port1.onmessage=ht,function(){return lt.port2.postMessage(0)}}function Ct(){var lt=setTimeout;return function(){return lt(ht,1)}}var He=new Array(1e3);function ht(){for(var lt=0;lt<Me;lt+=2){var Vt=He[lt],Wt=He[lt+1];Vt(Wt),He[lt]=void 0,He[lt+1]=void 0}Me=0}function _e(){try{var lt=Function("return this")().require("vertx");return Se=lt.runOnLoop||lt.runOnContext,ct()}catch(Vt){return Ct()}}var Re=void 0;je?Re=Ve():Qe?Re=ot():Je?Re=pt():ke===void 0?Re=_e():Re=Ct();function Ot(lt,Vt){var Wt=this,gn=new this.constructor(Et);gn[at]===void 0&&le(gn);var an=Wt._state;if(an){var en=arguments[an-1];we(function(){return pe(an,gn,en,Wt._result)})}else on(Wt,gn,lt,Vt);return gn}function it(lt){var Vt=this;if(lt&&typeof lt=="object"&<.constructor===Vt)return lt;var Wt=new Vt(Et);return kt(Wt,lt),Wt}var at=Math.random().toString(36).substring(2);function Et(){}var Ze=void 0,De=1,ut=2;function Zt(){return new TypeError("You cannot resolve a promise with itself")}function Kt(){return new TypeError("A promises callback cannot return that same promise.")}function tt(lt,Vt,Wt,gn){try{lt.call(Vt,Wt,gn)}catch(an){return an}}function Dt(lt,Vt,Wt){we(function(gn){var an=!1,en=tt(Wt,Vt,function(zn){an||(an=!0,Vt!==zn?kt(gn,zn):Pt(gn,zn))},function(zn){an||(an=!0,En(gn,zn))},"Settle: "+(gn._label||" unknown promise"));!an&&en&&(an=!0,En(gn,en))},lt)}function jt(lt,Vt){Vt._state===De?Pt(lt,Vt._result):Vt._state===ut?En(lt,Vt._result):on(Vt,void 0,function(Wt){return kt(lt,Wt)},function(Wt){return En(lt,Wt)})}function An(lt,Vt,Wt){Vt.constructor===lt.constructor&&Wt===Ot&&Vt.constructor.resolve===it?jt(lt,Vt):Wt===void 0?Pt(lt,Vt):oe(Wt)?Dt(lt,Vt,Wt):Pt(lt,Vt)}function kt(lt,Vt){if(lt===Vt)En(lt,Zt());else if(xe(Vt)){var Wt=void 0;try{Wt=Vt.then}catch(gn){En(lt,gn);return}An(lt,Vt,Wt)}else Pt(lt,Vt)}function pn(lt){lt._onerror&<._onerror(lt._result),de(lt)}function Pt(lt,Vt){lt._state===Ze&&(lt._result=Vt,lt._state=De,lt._subscribers.length!==0&&we(de,lt))}function En(lt,Vt){lt._state===Ze&&(lt._state=ut,lt._result=Vt,we(pn,lt))}function on(lt,Vt,Wt,gn){var an=lt._subscribers,en=an.length;lt._onerror=null,an[en]=Vt,an[en+De]=Wt,an[en+ut]=gn,en===0&<._state&&we(de,lt)}function de(lt){var Vt=lt._subscribers,Wt=lt._state;if(Vt.length!==0){for(var gn=void 0,an=void 0,en=lt._result,zn=0;zn<Vt.length;zn+=3)gn=Vt[zn],an=Vt[zn+Wt],gn?pe(Wt,gn,an,en):an(en);lt._subscribers.length=0}}function pe(lt,Vt,Wt,gn){var an=oe(Wt),en=void 0,zn=void 0,Fn=!0;if(an){try{en=Wt(gn)}catch(Rt){Fn=!1,zn=Rt}if(Vt===en){En(Vt,Kt());return}}else en=gn;Vt._state!==Ze||(an&&Fn?kt(Vt,en):Fn===!1?En(Vt,zn):lt===De?Pt(Vt,en):lt===ut&&En(Vt,en))}function ie(lt,Vt){try{Vt(function(gn){kt(lt,gn)},function(gn){En(lt,gn)})}catch(Wt){En(lt,Wt)}}var ee=0;function se(){return ee++}function le(lt){lt[at]=ee++,lt._state=void 0,lt._result=void 0,lt._subscribers=[]}function Be(){return new Error("Array Methods must be provided an Array")}var We=function(){function lt(Vt,Wt){this._instanceConstructor=Vt,this.promise=new Vt(Et),this.promise[at]||le(this.promise),ve(Wt)?(this.length=Wt.length,this._remaining=Wt.length,this._result=new Array(this.length),this.length===0?Pt(this.promise,this._result):(this.length=this.length||0,this._enumerate(Wt),this._remaining===0&&Pt(this.promise,this._result))):En(this.promise,Be())}return lt.prototype._enumerate=function(Wt){for(var gn=0;this._state===Ze&&gn<Wt.length;gn++)this._eachEntry(Wt[gn],gn)},lt.prototype._eachEntry=function(Wt,gn){var an=this._instanceConstructor,en=an.resolve;if(en===it){var zn=void 0,Fn=void 0,Rt=!1;try{zn=Wt.then}catch(_n){Rt=!0,Fn=_n}if(zn===Ot&&Wt._state!==Ze)this._settledAt(Wt._state,gn,Wt._result);else if(typeof zn!="function")this._remaining--,this._result[gn]=Wt;else if(an===Qt){var sn=new an(Et);Rt?En(sn,Fn):An(sn,Wt,zn),this._willSettleAt(sn,gn)}else this._willSettleAt(new an(function(_n){return _n(Wt)}),gn)}else this._willSettleAt(en(Wt),gn)},lt.prototype._settledAt=function(Wt,gn,an){var en=this.promise;en._state===Ze&&(this._remaining--,Wt===ut?En(en,an):this._result[gn]=an),this._remaining===0&&Pt(en,this._result)},lt.prototype._willSettleAt=function(Wt,gn){var an=this;on(Wt,void 0,function(en){return an._settledAt(De,gn,en)},function(en){return an._settledAt(ut,gn,en)})},lt}();function st(lt){return new We(this,lt).promise}function mt(lt){var Vt=this;return ve(lt)?new Vt(function(Wt,gn){for(var an=lt.length,en=0;en<an;en++)Vt.resolve(lt[en]).then(Wt,gn)}):new Vt(function(Wt,gn){return gn(new TypeError("You must pass an array to race."))})}function vt(lt){var Vt=this,Wt=new Vt(Et);return En(Wt,lt),Wt}function St(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function _t(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Qt=function(){function lt(Vt){this[at]=se(),this._result=this._state=void 0,this._subscribers=[],Et!==Vt&&(typeof Vt!="function"&&St(),this instanceof lt?ie(this,Vt):_t())}return lt.prototype.catch=function(Wt){return this.then(null,Wt)},lt.prototype.finally=function(Wt){var gn=this,an=gn.constructor;return oe(Wt)?gn.then(function(en){return an.resolve(Wt()).then(function(){return en})},function(en){return an.resolve(Wt()).then(function(){throw en})}):gn.then(Wt,Wt)},lt}();Qt.prototype.then=Ot,Qt.all=st,Qt.race=mt,Qt.resolve=it,Qt.reject=vt,Qt._setScheduler=Ce,Qt._setAsap=Ee,Qt._asap=we;function xt(){var lt=void 0;if(typeof ae.g!="undefined")lt=ae.g;else if(typeof self!="undefined")lt=self;else try{lt=Function("return this")()}catch(gn){throw new Error("polyfill failed because global object is unavailable in this environment")}var Vt=lt.Promise;if(Vt){var Wt=null;try{Wt=Object.prototype.toString.call(Vt.resolve())}catch(gn){}if(Wt==="[object Promise]"&&!Vt.cast)return}lt.Promise=Qt}return Qt.polyfill=xt,Qt.Promise=Qt,Qt})},html2canvas:function(he){"use strict";he.exports=Le},jspdf:function(he){"use strict";he.exports=dt}},ze={};function Ie(he){var xe=ze[he];if(xe!==void 0)return xe.exports;var oe=ze[he]={exports:{}};return qe[he].call(oe.exports,oe,oe.exports,Ie),oe.exports}(function(){Ie.n=function(he){var xe=he&&he.__esModule?function(){return he.default}:function(){return he};return Ie.d(xe,{a:xe}),xe}})(),function(){Ie.d=function(he,xe){for(var oe in xe)Ie.o(xe,oe)&&!Ie.o(he,oe)&&Object.defineProperty(he,oe,{enumerable:!0,get:xe[oe]})}}(),function(){Ie.o=function(he,xe){return Object.prototype.hasOwnProperty.call(he,xe)}}(),function(){Ie.r=function(he){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(he,"__esModule",{value:!0})}}();var Ue={};return function(){"use strict";Ie.r(Ue);var he=Ie("./src/worker.js"),xe=Ie("./src/plugin/jspdf-plugin.js"),oe=Ie("./src/plugin/pagebreaks.js"),Oe=Ie("./src/plugin/hyperlinks.js"),ve=function Me(Se,Te){var we=new Me.Worker(Te);return Se?we.from(Se).save():we};ve.Worker=he.default,Ue.default=ve}(),Ue=Ue.default,Ue}()})},67467:function(qn,Mt){Mt.read=function(ae,x,dt,Le,qe){var ze,Ie,Ue=qe*8-Le-1,he=(1<<Ue)-1,xe=he>>1,oe=-7,Oe=dt?qe-1:0,ve=dt?-1:1,Me=ae[x+Oe];for(Oe+=ve,ze=Me&(1<<-oe)-1,Me>>=-oe,oe+=Ue;oe>0;ze=ze*256+ae[x+Oe],Oe+=ve,oe-=8);for(Ie=ze&(1<<-oe)-1,ze>>=-oe,oe+=Le;oe>0;Ie=Ie*256+ae[x+Oe],Oe+=ve,oe-=8);if(ze===0)ze=1-xe;else{if(ze===he)return Ie?NaN:(Me?-1:1)*(1/0);Ie=Ie+Math.pow(2,Le),ze=ze-xe}return(Me?-1:1)*Ie*Math.pow(2,ze-Le)},Mt.write=function(ae,x,dt,Le,qe,ze){var Ie,Ue,he,xe=ze*8-qe-1,oe=(1<<xe)-1,Oe=oe>>1,ve=qe===23?Math.pow(2,-24)-Math.pow(2,-77):0,Me=Le?0:ze-1,Se=Le?1:-1,Te=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===1/0?(Ue=isNaN(x)?1:0,Ie=oe):(Ie=Math.floor(Math.log(x)/Math.LN2),x*(he=Math.pow(2,-Ie))<1&&(Ie--,he*=2),Ie+Oe>=1?x+=ve/he:x+=ve*Math.pow(2,1-Oe),x*he>=2&&(Ie++,he/=2),Ie+Oe>=oe?(Ue=0,Ie=oe):Ie+Oe>=1?(Ue=(x*he-1)*Math.pow(2,qe),Ie=Ie+Oe):(Ue=x*Math.pow(2,Oe-1)*Math.pow(2,qe),Ie=0));qe>=8;ae[dt+Me]=Ue&255,Me+=Se,Ue/=256,qe-=8);for(Ie=Ie<<qe|Ue,xe+=qe;xe>0;ae[dt+Me]=Ie&255,Me+=Se,Ie/=256,xe-=8);ae[dt+Me-Se]|=Te*128}},53307:function(qn,Mt,ae){"use strict";ae.r(Mt),ae.d(Mt,{AcroForm:function(){return RA},AcroFormAppearance:function(){return ko},AcroFormButton:function(){return ns},AcroFormCheckBox:function(){return Ys},AcroFormChoiceField:function(){return $o},AcroFormComboBox:function(){return wa},AcroFormEditBox:function(){return ma},AcroFormListBox:function(){return fs},AcroFormPasswordField:function(){return rs},AcroFormPushButton:function(){return Cs},AcroFormRadioButton:function(){return Va},AcroFormTextField:function(){return Os},GState:function(){return Ep},ShadingPattern:function(){return kf},TilingPattern:function(){return Mf},default:function(){return Oa},jsPDF:function(){return Oa}});var x=ae(43749),dt={},Le=function(y,z,E,re,ce){var fe=new Worker(dt[z]||(dt[z]=URL.createObjectURL(new Blob([y+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return fe.onmessage=function($e){var Pe=$e.data,Ge=Pe.$e$;if(Ge){var Ye=new Error(Ge[0]);Ye.code=Ge[1],Ye.stack=Ge[2],ce(Ye,null)}else ce(null,Pe)},fe.postMessage(E,re),fe},qe=Uint8Array,ze=Uint16Array,Ie=Int32Array,Ue=new qe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),he=new qe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),xe=new qe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oe=function(y,z){for(var E=new ze(31),re=0;re<31;++re)E[re]=z+=1<<y[re-1];for(var ce=new Ie(E[30]),re=1;re<30;++re)for(var fe=E[re];fe<E[re+1];++fe)ce[fe]=fe-E[re]<<5|re;return{b:E,r:ce}},Oe=oe(Ue,2),ve=Oe.b,Me=Oe.r;ve[28]=258,Me[258]=28;for(var Se=oe(he,0),Te=Se.b,we=Se.r,Ce=new ze(32768),Ee=0;Ee<32768;++Ee){var ke=(Ee&43690)>>1|(Ee&21845)<<1;ke=(ke&52428)>>2|(ke&13107)<<2,ke=(ke&61680)>>4|(ke&3855)<<4,Ce[Ee]=((ke&65280)>>8|(ke&255)<<8)>>1}for(var Ke=function(y,z,E){for(var re=y.length,ce=0,fe=new ze(z);ce<re;++ce)y[ce]&&++fe[y[ce]-1];var $e=new ze(z);for(ce=1;ce<z;++ce)$e[ce]=$e[ce-1]+fe[ce-1]<<1;var Pe;if(E){Pe=new ze(1<<z);var Ge=15-z;for(ce=0;ce<re;++ce)if(y[ce])for(var Ye=ce<<4|y[ce],ft=z-y[ce],Tt=$e[y[ce]-1]++<<ft,Jt=Tt|(1<<ft)-1;Tt<=Jt;++Tt)Pe[Ce[Tt]>>Ge]=Ye}else for(Pe=new ze(re),ce=0;ce<re;++ce)y[ce]&&(Pe[ce]=Ce[$e[y[ce]-1]++]>>15-y[ce]);return Pe},Qe=new qe(288),Ee=0;Ee<144;++Ee)Qe[Ee]=8;for(var Ee=144;Ee<256;++Ee)Qe[Ee]=9;for(var Ee=256;Ee<280;++Ee)Qe[Ee]=7;for(var Ee=280;Ee<288;++Ee)Qe[Ee]=8;for(var je=new qe(32),Ee=0;Ee<32;++Ee)je[Ee]=5;var Je=Ke(Qe,9,0),Ve=null,ct=Ke(je,5,0),ot=null,pt=function(y){for(var z=y[0],E=1;E<y.length;++E)y[E]>z&&(z=y[E]);return z},Ct=function(y,z,E){var re=z/8|0;return(y[re]|y[re+1]<<8)>>(z&7)&E},He=function(y,z){var E=z/8|0;return(y[E]|y[E+1]<<8|y[E+2]<<16)>>(z&7)},ht=function(y){return(y+7)/8|0},_e=function(y,z,E){return(z==null||z<0)&&(z=0),(E==null||E>y.length)&&(E=y.length),new qe(y.subarray(z,E))},Re={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Ot=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],it=function(y,z,E){var re=new Error(z||Ot[y]);if(re.code=y,Error.captureStackTrace&&Error.captureStackTrace(re,it),!E)throw re;return re},at=function(y,z,E,re){var ce=y.length,fe=re?re.length:0;if(!ce||z.f&&!z.l)return E||new qe(0);var $e=!E,Pe=$e||z.i!=2,Ge=z.i;$e&&(E=new qe(ce*3));var Ye=function(Bo){var da=E.length;if(Bo>da){var ca=new qe(Math.max(da*2,Bo));ca.set(E),E=ca}},ft=z.f||0,Tt=z.p||0,Jt=z.b||0,At=z.l,In=z.d,bn=z.m,On=z.n,cn=ce*8;do{if(!At){ft=Ct(y,Tt,1);var gr=Ct(y,Tt+1,3);if(Tt+=3,gr)if(gr==1)At=Ve,In=ot,bn=9,On=5;else if(gr==2){var ji=Ct(y,Tt,31)+257,Bi=Ct(y,Tt+10,15)+4,Fr=ji+Ct(y,Tt+5,31)+1;Tt+=14;for(var Xn=new qe(Fr),Wr=new qe(19),ln=0;ln<Bi;++ln)Wr[xe[ln]]=Ct(y,Tt+ln*3,7);Tt+=Bi*3;for(var Dn=pt(Wr),mr=(1<<Dn)-1,dr=Ke(Wr,Dn,1),ln=0;ln<Fr;){var pi=dr[Ct(y,Tt,mr)];Tt+=pi&15;var cr=pi>>4;if(cr<16)Xn[ln++]=cr;else{var Ci=0,Si=0;for(cr==16?(Si=3+Ct(y,Tt,3),Tt+=2,Ci=Xn[ln-1]):cr==17?(Si=3+Ct(y,Tt,7),Tt+=3):cr==18&&(Si=11+Ct(y,Tt,127),Tt+=7);Si--;)Xn[ln++]=Ci}}var ei=Xn.subarray(0,ji),Oi=Xn.subarray(ji);bn=pt(ei),On=pt(Oi),At=Ke(ei,bn,1),In=Ke(Oi,On,1)}else it(1);else{var cr=ht(Tt)+4,Zn=y[cr-4]|y[cr-3]<<8,li=cr+Zn;if(li>ce){Ge&&it(0);break}Pe&&Ye(Jt+Zn),E.set(y.subarray(cr,li),Jt),z.b=Jt+=Zn,z.p=Tt=li*8,z.f=ft;continue}if(Tt>cn){Ge&&it(0);break}}Pe&&Ye(Jt+131072);for(var Oo=(1<<bn)-1,ao=(1<<On)-1,rn=Tt;;rn=Tt){var Ci=At[He(y,Tt)&Oo],Kn=Ci>>4;if(Tt+=Ci&15,Tt>cn){Ge&&it(0);break}if(Ci||it(2),Kn<256)E[Jt++]=Kn;else if(Kn==256){rn=Tt,At=null;break}else{var rr=Kn-254;if(Kn>264){var ln=Kn-257,yr=Ue[ln];rr=Ct(y,Tt,(1<<yr)-1)+ve[ln],Tt+=yr}var Pr=In[He(y,Tt)&ao],Xr=Pr>>4;Pr||it(3),Tt+=Pr&15;var Oi=Te[Xr];if(Xr>3){var yr=he[Xr];Oi+=He(y,Tt)&(1<<yr)-1,Tt+=yr}if(Tt>cn){Ge&&it(0);break}Pe&&Ye(Jt+131072);var Ei=Jt+rr;if(Jt<Oi){var Ii=fe-Oi,Yi=Math.min(Oi,Ei);for(Ii+Jt<0&&it(3);Jt<Yi;++Jt)E[Jt]=re[Ii+Jt]}for(;Jt<Ei;++Jt)E[Jt]=E[Jt-Oi]}}z.l=At,z.p=rn,z.b=Jt,z.f=ft,At&&(ft=1,z.m=bn,z.d=In,z.n=On)}while(!ft);return Jt!=E.length&&$e?_e(E,0,Jt):E.subarray(0,Jt)},Et=function(y,z,E){E<<=z&7;var re=z/8|0;y[re]|=E,y[re+1]|=E>>8},Ze=function(y,z,E){E<<=z&7;var re=z/8|0;y[re]|=E,y[re+1]|=E>>8,y[re+2]|=E>>16},De=function(y,z){for(var E=[],re=0;re<y.length;++re)y[re]&&E.push({s:re,f:y[re]});var ce=E.length,fe=E.slice();if(!ce)return{t:An,l:0};if(ce==1){var $e=new qe(E[0].s+1);return $e[E[0].s]=1,{t:$e,l:1}}E.sort(function(li,ji){return li.f-ji.f}),E.push({s:-1,f:25001});var Pe=E[0],Ge=E[1],Ye=0,ft=1,Tt=2;for(E[0]={s:-1,f:Pe.f+Ge.f,l:Pe,r:Ge};ft!=ce-1;)Pe=E[E[Ye].f<E[Tt].f?Ye++:Tt++],Ge=E[Ye!=ft&&E[Ye].f<E[Tt].f?Ye++:Tt++],E[ft++]={s:-1,f:Pe.f+Ge.f,l:Pe,r:Ge};for(var Jt=fe[0].s,re=1;re<ce;++re)fe[re].s>Jt&&(Jt=fe[re].s);var At=new ze(Jt+1),In=ut(E[ft-1],At,0);if(In>z){var re=0,bn=0,On=In-z,cn=1<<On;for(fe.sort(function(ji,Bi){return At[Bi.s]-At[ji.s]||ji.f-Bi.f});re<ce;++re){var gr=fe[re].s;if(At[gr]>z)bn+=cn-(1<<In-At[gr]),At[gr]=z;else break}for(bn>>=On;bn>0;){var cr=fe[re].s;At[cr]<z?bn-=1<<z-At[cr]++-1:++re}for(;re>=0&&bn;--re){var Zn=fe[re].s;At[Zn]==z&&(--At[Zn],++bn)}In=z}return{t:new qe(At),l:In}},ut=function(y,z,E){return y.s==-1?Math.max(ut(y.l,z,E+1),ut(y.r,z,E+1)):z[y.s]=E},Zt=function(y){for(var z=y.length;z&&!y[--z];);for(var E=new ze(++z),re=0,ce=y[0],fe=1,$e=function(Ge){E[re++]=Ge},Pe=1;Pe<=z;++Pe)if(y[Pe]==ce&&Pe!=z)++fe;else{if(!ce&&fe>2){for(;fe>138;fe-=138)$e(32754);fe>2&&($e(fe>10?fe-11<<5|28690:fe-3<<5|12305),fe=0)}else if(fe>3){for($e(ce),--fe;fe>6;fe-=6)$e(8304);fe>2&&($e(fe-3<<5|8208),fe=0)}for(;fe--;)$e(ce);fe=1,ce=y[Pe]}return{c:E.subarray(0,re),n:z}},Kt=function(y,z){for(var E=0,re=0;re<z.length;++re)E+=y[re]*z[re];return E},tt=function(y,z,E){var re=E.length,ce=ht(z+2);y[ce]=re&255,y[ce+1]=re>>8,y[ce+2]=y[ce]^255,y[ce+3]=y[ce+1]^255;for(var fe=0;fe<re;++fe)y[ce+fe+4]=E[fe];return(ce+4+re)*8},Dt=function(y,z,E,re,ce,fe,$e,Pe,Ge,Ye,ft){Et(z,ft++,E),++ce[256];for(var Tt=De(ce,15),Jt=Tt.t,At=Tt.l,In=De(fe,15),bn=In.t,On=In.l,cn=Zt(Jt),gr=cn.c,cr=cn.n,Zn=Zt(bn),li=Zn.c,ji=Zn.n,Bi=new ze(19),Fr=0;Fr<gr.length;++Fr)++Bi[gr[Fr]&31];for(var Fr=0;Fr<li.length;++Fr)++Bi[li[Fr]&31];for(var Xn=De(Bi,7),Wr=Xn.t,ln=Xn.l,Dn=19;Dn>4&&!Wr[xe[Dn-1]];--Dn);var mr=Ye+5<<3,dr=Kt(ce,Qe)+Kt(fe,je)+$e,pi=Kt(ce,Jt)+Kt(fe,bn)+$e+14+3*Dn+Kt(Bi,Wr)+2*Bi[16]+3*Bi[17]+7*Bi[18];if(Ge>=0&&mr<=dr&&mr<=pi)return tt(z,ft,y.subarray(Ge,Ge+Ye));var Ci,Si,ei,Oi;if(Et(z,ft,1+(pi<dr)),ft+=2,pi<dr){Ci=Ke(Jt,At,0),Si=Jt,ei=Ke(bn,On,0),Oi=bn;var Oo=Ke(Wr,ln,0);Et(z,ft,cr-257),Et(z,ft+5,ji-1),Et(z,ft+10,Dn-4),ft+=14;for(var Fr=0;Fr<Dn;++Fr)Et(z,ft+3*Fr,Wr[xe[Fr]]);ft+=3*Dn;for(var ao=[gr,li],rn=0;rn<2;++rn)for(var Kn=ao[rn],Fr=0;Fr<Kn.length;++Fr){var rr=Kn[Fr]&31;Et(z,ft,Oo[rr]),ft+=Wr[rr],rr>15&&(Et(z,ft,Kn[Fr]>>5&127),ft+=Kn[Fr]>>12)}}else Ci=Je,Si=Qe,ei=ct,Oi=je;for(var Fr=0;Fr<Pe;++Fr){var yr=re[Fr];if(yr>255){var rr=yr>>18&31;Ze(z,ft,Ci[rr+257]),ft+=Si[rr+257],rr>7&&(Et(z,ft,yr>>23&31),ft+=Ue[rr]);var Pr=yr&31;Ze(z,ft,ei[Pr]),ft+=Oi[Pr],Pr>3&&(Ze(z,ft,yr>>5&8191),ft+=he[Pr])}else Ze(z,ft,Ci[yr]),ft+=Si[yr]}return Ze(z,ft,Ci[256]),ft+Si[256]},jt=new Ie([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),An=new qe(0),kt=function(y,z,E,re,ce,fe){var $e=fe.z||y.length,Pe=new qe(re+$e+5*(1+Math.ceil($e/7e3))+ce),Ge=Pe.subarray(re,Pe.length-ce),Ye=fe.l,ft=(fe.r||0)&7;if(z){ft&&(Ge[0]=fe.r>>3);for(var Tt=jt[z-1],Jt=Tt>>13,At=Tt&8191,In=(1<<E)-1,bn=fe.p||new ze(32768),On=fe.h||new ze(In+1),cn=Math.ceil(E/3),gr=2*cn,cr=function(Xa){return(y[Xa]^y[Xa+1]<<cn^y[Xa+2]<<gr)&In},Zn=new Ie(25e3),li=new ze(288),ji=new ze(32),Bi=0,Fr=0,Xn=fe.i||0,Wr=0,ln=fe.w||0,Dn=0;Xn+2<$e;++Xn){var mr=cr(Xn),dr=Xn&32767,pi=On[mr];if(bn[dr]=pi,On[mr]=dr,ln<=Xn){var Ci=$e-Xn;if((Bi>7e3||Wr>24576)&&(Ci>423||!Ye)){ft=Dt(y,Ge,0,Zn,li,ji,Fr,Wr,Dn,Xn-Dn,ft),Wr=Bi=Fr=0,Dn=Xn;for(var Si=0;Si<286;++Si)li[Si]=0;for(var Si=0;Si<30;++Si)ji[Si]=0}var ei=2,Oi=0,Oo=At,ao=dr-pi&32767;if(Ci>2&&mr==cr(Xn-ao))for(var rn=Math.min(Jt,Ci)-1,Kn=Math.min(32767,Xn),rr=Math.min(258,Ci);ao<=Kn&&--Oo&&dr!=pi;){if(y[Xn+ei]==y[Xn+ei-ao]){for(var yr=0;yr<rr&&y[Xn+yr]==y[Xn+yr-ao];++yr);if(yr>ei){if(ei=yr,Oi=ao,yr>rn)break;for(var Pr=Math.min(ao,yr-2),Xr=0,Si=0;Si<Pr;++Si){var Ei=Xn-ao+Si&32767,Ii=bn[Ei],Yi=Ei-Ii&32767;Yi>Xr&&(Xr=Yi,pi=Ei)}}}dr=pi,pi=bn[dr],ao+=dr-pi&32767}if(Oi){Zn[Wr++]=268435456|Me[ei]<<18|we[Oi];var Bo=Me[ei]&31,da=we[Oi]&31;Fr+=Ue[Bo]+he[da],++li[257+Bo],++ji[da],ln=Xn+ei,++Bi}else Zn[Wr++]=y[Xn],++li[y[Xn]]}}for(Xn=Math.max(Xn,ln);Xn<$e;++Xn)Zn[Wr++]=y[Xn],++li[y[Xn]];ft=Dt(y,Ge,Ye,Zn,li,ji,Fr,Wr,Dn,Xn-Dn,ft),Ye||(fe.r=ft&7|Ge[ft/8|0]<<3,ft-=7,fe.h=On,fe.p=bn,fe.i=Xn,fe.w=ln)}else{for(var Xn=fe.w||0;Xn<$e+Ye;Xn+=65535){var ca=Xn+65535;ca>=$e&&(Ge[ft/8|0]=Ye,ca=$e),ft=tt(Ge,ft+1,y.subarray(Xn,ca))}fe.i=$e}return _e(Pe,0,re+ht(ft)+ce)},pn=null,Pt=function(){var y=-1;return{p:function(z){for(var E=y,re=0;re<z.length;++re)E=pn[E&255^z[re]]^E>>>8;y=E},d:function(){return~y}}},En=function(){var y=1,z=0;return{p:function(E){for(var re=y,ce=z,fe=E.length|0,$e=0;$e!=fe;){for(var Pe=Math.min($e+2655,fe);$e<Pe;++$e)ce+=re+=E[$e];re=(re&65535)+15*(re>>16),ce=(ce&65535)+15*(ce>>16)}y=re,z=ce},d:function(){return y%=65521,z%=65521,(y&255)<<24|(y&65280)<<8|(z&255)<<8|z>>8}}},on=function(y,z,E,re,ce){if(!ce&&(ce={l:1},z.dictionary)){var fe=z.dictionary.subarray(-32768),$e=new qe(fe.length+y.length);$e.set(fe),$e.set(y,fe.length),y=$e,ce.w=fe.length}return kt(y,z.level==null?6:z.level,z.mem==null?ce.l?Math.ceil(Math.max(8,Math.min(13,Math.log(y.length)))*1.5):20:12+z.mem,E,re,ce)},de=function(y,z){var E={};for(var re in y)E[re]=y[re];for(var re in z)E[re]=z[re];return E},pe=function(y,z,E){for(var re=y(),ce=y.toString(),fe=ce.slice(ce.indexOf("[")+1,ce.lastIndexOf("]")).replace(/\s+/g,"").split(","),$e=0;$e<re.length;++$e){var Pe=re[$e],Ge=fe[$e];if(typeof Pe=="function"){z+=";"+Ge+"=";var Ye=Pe.toString();if(Pe.prototype)if(Ye.indexOf("[native code]")!=-1){var ft=Ye.indexOf(" ",8)+1;z+=Ye.slice(ft,Ye.indexOf("(",ft))}else{z+=Ye;for(var Tt in Pe.prototype)z+=";"+Ge+".prototype."+Tt+"="+Pe.prototype[Tt].toString()}else z+=Ye}else E[Ge]=Pe}return z},ie=null,ee=function(y){var z=[];for(var E in y)y[E].buffer&&z.push((y[E]=new y[E].constructor(y[E])).buffer);return z},se=function(y,z,E,re){if(!ie[E]){for(var ce="",fe={},$e=y.length-1,Pe=0;Pe<$e;++Pe)ce=pe(y[Pe],ce,fe);ie[E]={c:pe(y[$e],ce,fe),e:fe}}var Ge=de({},ie[E].e);return Le(ie[E].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+z.toString()+"}",E,Ge,ee(Ge),re)},le=function(){return[qe,ze,Ie,Ue,he,xe,ve,Te,Ve,ot,Ce,Ot,Ke,pt,Ct,He,ht,_e,it,at,oi,St,_t]},Be=function(){return[qe,ze,Ie,Ue,he,xe,Me,we,Je,Qe,ct,je,Ce,jt,An,Ke,Et,Ze,De,ut,Zt,Kt,tt,Dt,ht,_e,kt,on,wn,St]},We=function(){return[en,Rt,an,Pt,pn]},st=function(){return[zn,Fn]},mt=function(){return[sn,an,En]},vt=function(){return[_n]},St=function(y){return postMessage(y,[y.buffer])},_t=function(y){return y&&{out:y.size&&new qe(y.size),dictionary:y.dictionary}},Qt=function(y,z,E,re,ce,fe){var $e=se(E,re,ce,function(Pe,Ge){$e.terminate(),fe(Pe,Ge)});return $e.postMessage([y,z],z.consume?[y.buffer]:[]),function(){$e.terminate()}},xt=function(y){return y.ondata=function(z,E){return postMessage([z,E],[z.buffer])},function(z){z.data.length?(y.push(z.data[0],z.data[1]),postMessage([z.data[0].length])):y.flush()}},lt=function(y,z,E,re,ce,fe,$e){var Pe,Ge=se(y,re,ce,function(Ye,ft){Ye?(Ge.terminate(),z.ondata.call(z,Ye)):Array.isArray(ft)?ft.length==1?(z.queuedSize-=ft[0],z.ondrain&&z.ondrain(ft[0])):(ft[1]&&Ge.terminate(),z.ondata.call(z,Ye,ft[0],ft[1])):$e(ft)});Ge.postMessage(E),z.queuedSize=0,z.push=function(Ye,ft){z.ondata||it(5),Pe&&z.ondata(it(4,0,1),null,!!ft),z.queuedSize+=Ye.length,Ge.postMessage([Ye,Pe=ft],[Ye.buffer])},z.terminate=function(){Ge.terminate()},fe&&(z.flush=function(){Ge.postMessage([])})},Vt=function(y,z){return y[z]|y[z+1]<<8},Wt=function(y,z){return(y[z]|y[z+1]<<8|y[z+2]<<16|y[z+3]<<24)>>>0},gn=function(y,z){return Wt(y,z)+Wt(y,z+4)*4294967296},an=function(y,z,E){for(;E;++z)y[z]=E,E>>>=8},en=function(y,z){var E=z.filename;if(y[0]=31,y[1]=139,y[2]=8,y[8]=z.level<2?4:z.level==9?2:0,y[9]=3,z.mtime!=0&&an(y,4,Math.floor(new Date(z.mtime||Date.now())/1e3)),E){y[3]=8;for(var re=0;re<=E.length;++re)y[re+10]=E.charCodeAt(re)}},zn=function(y){(y[0]!=31||y[1]!=139||y[2]!=8)&&it(6,"invalid gzip data");var z=y[3],E=10;z&4&&(E+=(y[10]|y[11]<<8)+2);for(var re=(z>>3&1)+(z>>4&1);re>0;re-=!y[E++]);return E+(z&2)},Fn=function(y){var z=y.length;return(y[z-4]|y[z-3]<<8|y[z-2]<<16|y[z-1]<<24)>>>0},Rt=function(y){return 10+(y.filename?y.filename.length+1:0)},sn=function(y,z){var E=z.level,re=E==0?0:E<6?1:E==9?3:2;if(y[0]=120,y[1]=re<<6|(z.dictionary&&32),y[1]|=31-(y[0]<<8|y[1])%31,z.dictionary){var ce=En();ce.p(z.dictionary),an(y,2,ce.d())}},_n=function(y,z){return((y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31)&&it(6,"invalid zlib data"),(y[1]>>5&1)==+!z&&it(6,"invalid zlib data: "+(y[1]&32?"need":"unexpected")+" dictionary"),(y[1]>>3&4)+2};function Wn(y,z){return typeof y=="function"&&(z=y,y={}),this.ondata=z,y}var Lt=null,Gt=null;function nn(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),Qt(y,z,[Be],function(re){return St(wn(re.data[0],re.data[1]))},0,E)}function wn(y,z){return on(y,z||{},0,0)}var Gn=null,Er=null;function ti(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),Qt(y,z,[le],function(re){return St(oi(re.data[0],_t(re.data[1])))},1,E)}function oi(y,z){return at(y,{i:2},z&&z.out,z&&z.dictionary)}var Ar=null,Ir=null;function jn(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),Qt(y,z,[Be,We,function(){return[Hn]}],function(re){return St(Hn(re.data[0],re.data[1]))},2,E)}function Hn(y,z){z||(z={});var E=Pt(),re=y.length;E.p(y);var ce=on(y,z,Rt(z),8),fe=ce.length;return en(ce,z),an(ce,fe-8,E.d()),an(ce,fe-4,re),ce}var Jn=null,lr=null;function $n(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),Qt(y,z,[le,st,function(){return[br]}],function(re){return St(br(re.data[0],re.data[1]))},3,E)}function br(y,z){var E=zn(y);return E+8>y.length&&it(6,"invalid gzip data"),at(y.subarray(E,-8),{i:2},z&&z.out||new qe(Fn(y)),z&&z.dictionary)}var Br=null,_r=null;function mi(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),Qt(y,z,[Be,mt,function(){return[di]}],function(re){return St(di(re.data[0],re.data[1]))},4,E)}function di(y,z){z||(z={});var E=En();E.p(y);var re=on(y,z,z.dictionary?6:2,4);return sn(re,z),an(re,re.length-4,E.d()),re}var fi=null,Ti=null;function xi(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),Qt(y,z,[le,vt,function(){return[io]}],function(re){return St(io(re.data[0],_t(re.data[1])))},5,E)}function io(y,z){return at(y.subarray(_n(y,z&&z.dictionary),-4),{i:2},z&&z.out,z&&z.dictionary)}var Xi=null,ur=null;function Tr(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),y[0]==31&&y[1]==139&&y[2]==8?$n(y,z,E):(y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31?ti(y,z,E):xi(y,z,E)}function gi(y,z){return y[0]==31&&y[1]==139&&y[2]==8?br(y,z):(y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31?oi(y,z):io(y,z)}var ni=function(y,z,E,re){for(var ce in y){var fe=y[ce],$e=z+ce,Pe=re;Array.isArray(fe)&&(Pe=de(re,fe[1]),fe=fe[0]),fe instanceof qe?E[$e]=[fe,Pe]:(E[$e+="/"]=[new qe(0),Pe],ni(fe,$e,E,re))}},gt=typeof TextEncoder!="undefined"&&new TextEncoder,vn=typeof TextDecoder!="undefined"&&new TextDecoder,Ut=0;try{vn.decode(An,{stream:!0}),Ut=1}catch(y){}var dn=function(y){for(var z="",E=0;;){var re=y[E++],ce=(re>127)+(re>223)+(re>239);if(E+ce>y.length)return{s:z,r:_e(y,E-1)};ce?ce==3?(re=((re&15)<<18|(y[E++]&63)<<12|(y[E++]&63)<<6|y[E++]&63)-65536,z+=String.fromCharCode(55296|re>>10,56320|re&1023)):ce&1?z+=String.fromCharCode((re&31)<<6|y[E++]&63):z+=String.fromCharCode((re&15)<<12|(y[E++]&63)<<6|y[E++]&63):z+=String.fromCharCode(re)}},$t=null,hn=null;function Nn(y,z){if(z){for(var E=new qe(y.length),re=0;re<y.length;++re)E[re]=y.charCodeAt(re);return E}if(gt)return gt.encode(y);for(var ce=y.length,fe=new qe(y.length+(y.length>>1)),$e=0,Pe=function(ft){fe[$e++]=ft},re=0;re<ce;++re){if($e+5>fe.length){var Ge=new qe($e+8+(ce-re<<1));Ge.set(fe),fe=Ge}var Ye=y.charCodeAt(re);Ye<128||z?Pe(Ye):Ye<2048?(Pe(192|Ye>>6),Pe(128|Ye&63)):Ye>55295&&Ye<57344?(Ye=65536+(Ye&1047552)|y.charCodeAt(++re)&1023,Pe(240|Ye>>18),Pe(128|Ye>>12&63),Pe(128|Ye>>6&63),Pe(128|Ye&63)):(Pe(224|Ye>>12),Pe(128|Ye>>6&63),Pe(128|Ye&63))}return _e(fe,0,$e)}function Hr(y,z){if(z){for(var E="",re=0;re<y.length;re+=16384)E+=String.fromCharCode.apply(null,y.subarray(re,re+16384));return E}else{if(vn)return vn.decode(y);var ce=dn(y),fe=ce.s,E=ce.r;return E.length&&it(8),fe}}var zr=function(y){return y==1?3:y<6?2:y==9?1:0},Ai=function(y,z){return z+30+Vt(y,z+26)+Vt(y,z+28)},hr=function(y,z,E){var re=Vt(y,z+28),ce=Hr(y.subarray(z+46,z+46+re),!(Vt(y,z+8)&2048)),fe=z+46+re,$e=Wt(y,z+20),Pe=E&&$e==4294967295?nr(y,fe):[$e,Wt(y,z+24),Wt(y,z+42)],Ge=Pe[0],Ye=Pe[1],ft=Pe[2];return[Vt(y,z+10),Ge,Ye,ce,fe+Vt(y,z+30)+Vt(y,z+32),ft]},nr=function(y,z){for(;Vt(y,z)!=1;z+=4+Vt(y,z+2));return[gn(y,z+12),gn(y,z+4),gn(y,z+20)]},ir=function(y){var z=0;if(y)for(var E in y){var re=y[E].length;re>65535&&it(9),z+=re+4}return z},Yr=function(y,z,E,re,ce,fe,$e,Pe){var Ge=re.length,Ye=E.extra,ft=Pe&&Pe.length,Tt=ir(Ye);an(y,z,$e!=null?33639248:67324752),z+=4,$e!=null&&(y[z++]=20,y[z++]=E.os),y[z]=20,z+=2,y[z++]=E.flag<<1|(fe<0&&8),y[z++]=ce&&8,y[z++]=E.compression&255,y[z++]=E.compression>>8;var Jt=new Date(E.mtime==null?Date.now():E.mtime),At=Jt.getFullYear()-1980;if((At<0||At>119)&&it(10),an(y,z,At<<25|Jt.getMonth()+1<<21|Jt.getDate()<<16|Jt.getHours()<<11|Jt.getMinutes()<<5|Jt.getSeconds()>>1),z+=4,fe!=-1&&(an(y,z,E.crc),an(y,z+4,fe<0?-fe-2:fe),an(y,z+8,E.size)),an(y,z+12,Ge),an(y,z+14,Tt),z+=16,$e!=null&&(an(y,z,ft),an(y,z+6,E.attrs),an(y,z+10,$e),z+=14),y.set(re,z),z+=Ge,Tt)for(var In in Ye){var bn=Ye[In],On=bn.length;an(y,z,+In),an(y,z+2,On),y.set(bn,z+4),z+=4+On}return ft&&(y.set(Pe,z),z+=ft),z},Mi=function(y,z,E,re,ce){an(y,z,101010256),an(y,z+8,E),an(y,z+10,E),an(y,z+12,re),an(y,z+16,ce)},Yn=null,Vn=null,Mr=null,Tn=null;function mn(y,z,E){E||(E=z,z={}),typeof E!="function"&&it(7);var re={};ni(y,"",re,z);var ce=Object.keys(re),fe=ce.length,$e=0,Pe=0,Ge=fe,Ye=new Array(fe),ft=[],Tt=function(){for(var On=0;On<ft.length;++On)ft[On]()},Jt=function(On,cn){qr(function(){E(On,cn)})};qr(function(){Jt=E});var At=function(){var On=new qe(Pe+22),cn=$e,gr=Pe-$e;Pe=0;for(var cr=0;cr<Ge;++cr){var Zn=Ye[cr];try{var li=Zn.c.length;Yr(On,Pe,Zn,Zn.f,Zn.u,li);var ji=30+Zn.f.length+ir(Zn.extra),Bi=Pe+ji;On.set(Zn.c,Bi),Yr(On,$e,Zn,Zn.f,Zn.u,li,Pe,Zn.m),$e+=16+ji+(Zn.m?Zn.m.length:0),Pe=Bi+li}catch(Fr){return Jt(Fr,null)}}Mi(On,$e,Ye.length,gr,cn),Jt(null,On)};fe||At();for(var In=function(On){var cn=ce[On],gr=re[cn],cr=gr[0],Zn=gr[1],li=Pt(),ji=cr.length;li.p(cr);var Bi=Nn(cn),Fr=Bi.length,Xn=Zn.comment,Wr=Xn&&Nn(Xn),ln=Wr&&Wr.length,Dn=ir(Zn.extra),mr=Zn.level==0?0:8,dr=function(pi,Ci){if(pi)Tt(),Jt(pi,null);else{var Si=Ci.length;Ye[On]=de(Zn,{size:ji,crc:li.d(),c:Ci,f:Bi,m:Wr,u:Fr!=cn.length||Wr&&Xn.length!=ln,compression:mr}),$e+=30+Fr+Dn+Si,Pe+=76+2*(Fr+Dn)+(ln||0)+Si,--fe||At()}};if(Fr>65535&&dr(it(11,0,1),null),!mr)dr(null,cr);else if(ji<16e4)try{dr(null,wn(cr,Zn))}catch(pi){dr(pi,null)}else ft.push(nn(cr,Zn,dr))},bn=0;bn<Ge;++bn)In(bn);return Tt}function tr(y,z){z||(z={});var E={},re=[];ni(y,"",E,z);var ce=0,fe=0;for(var $e in E){var Pe=E[$e],Ge=Pe[0],Ye=Pe[1],ft=Ye.level==0?0:8,Tt=Nn($e),Jt=Tt.length,At=Ye.comment,In=At&&Nn(At),bn=In&&In.length,On=ir(Ye.extra);Jt>65535&&it(11);var cn=ft?wn(Ge,Ye):Ge,gr=cn.length,cr=Pt();cr.p(Ge),re.push(de(Ye,{size:Ge.length,crc:cr.d(),c:cn,f:Tt,m:In,u:Jt!=$e.length||In&&At.length!=bn,o:ce,compression:ft})),ce+=30+Jt+On+gr,fe+=76+2*(Jt+On)+(bn||0)+gr}for(var Zn=new qe(fe+22),li=ce,ji=fe-ce,Bi=0;Bi<re.length;++Bi){var Tt=re[Bi];Yr(Zn,Tt.o,Tt,Tt.f,Tt.u,Tt.c.length);var Fr=30+Tt.f.length+ir(Tt.extra);Zn.set(Tt.c,Tt.o+Fr),Yr(Zn,ce,Tt,Tt.f,Tt.u,Tt.c.length,Tt.o,Tt.m),ce+=16+Fr+(Tt.m?Tt.m.length:0)}return Mi(Zn,ce,re.length,ji,li),Zn}var or=null,ar=null,kr=null,vi=null,qr=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(y){y()};function Li(y,z,E){E||(E=z,z={}),typeof E!="function"&&it(7);var re=[],ce=function(){for(var On=0;On<re.length;++On)re[On]()},fe={},$e=function(On,cn){qr(function(){E(On,cn)})};qr(function(){$e=E});for(var Pe=y.length-22;Wt(y,Pe)!=101010256;--Pe)if(!Pe||y.length-Pe>65558)return $e(it(13,0,1),null),ce;var Ge=Vt(y,Pe+8);if(Ge){var Ye=Ge,ft=Wt(y,Pe+16),Tt=ft==4294967295||Ye==65535;if(Tt){var Jt=Wt(y,Pe-12);Tt=Wt(y,Jt)==101075792,Tt&&(Ye=Ge=Wt(y,Jt+32),ft=Wt(y,Jt+48))}for(var At=z&&z.filter,In=function(On){var cn=hr(y,ft,Tt),gr=cn[0],cr=cn[1],Zn=cn[2],li=cn[3],ji=cn[4],Bi=cn[5],Fr=Ai(y,Bi);ft=ji;var Xn=function(ln,Dn){ln?(ce(),$e(ln,null)):(Dn&&(fe[li]=Dn),--Ge||$e(null,fe))};if(!At||At({name:li,size:cr,originalSize:Zn,compression:gr}))if(!gr)Xn(null,_e(y,Fr,Fr+cr));else if(gr==8){var Wr=y.subarray(Fr,Fr+cr);if(Zn<524288||cr>.8*Zn)try{Xn(null,oi(Wr,{out:new qe(Zn)}))}catch(ln){Xn(ln,null)}else re.push(ti(Wr,{size:Zn},Xn))}else Xn(it(14,"unknown compression type "+gr,1),null);else Xn(null,null)},bn=0;bn<Ye;++bn)In(bn)}else $e(null,{});return ce}function _i(y,z){for(var E={},re=y.length-22;Wt(y,re)!=101010256;--re)(!re||y.length-re>65558)&&it(13);var ce=Vt(y,re+8);if(!ce)return{};var fe=Wt(y,re+16),$e=fe==4294967295||ce==65535;if($e){var Pe=Wt(y,re-12);$e=Wt(y,Pe)==101075792,$e&&(ce=Wt(y,Pe+32),fe=Wt(y,Pe+48))}for(var Ge=z&&z.filter,Ye=0;Ye<ce;++Ye){var ft=hr(y,fe,$e),Tt=ft[0],Jt=ft[1],At=ft[2],In=ft[3],bn=ft[4],On=ft[5],cn=Ai(y,On);fe=bn,(!Ge||Ge({name:In,size:Jt,originalSize:At,compression:Tt}))&&(Tt?Tt==8?E[In]=oi(y.subarray(cn,cn+Jt),{out:new qe(At)}):it(14,"unknown compression type "+Tt):E[In]=_e(y,cn,cn+Jt))}return E}var ri=ae(72190);function hi(y,z="utf8"){return new TextDecoder(z).decode(y)}const ro=new TextEncoder;function ki(y){return ro.encode(y)}const bi=1024*8,Ni=(()=>{const y=new Uint8Array(4),z=new Uint32Array(y.buffer);return!((z[0]=1)&y[0])})(),oo={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Di{constructor(z=bi,E={}){Pl(this,"buffer");Pl(this,"byteLength");Pl(this,"byteOffset");Pl(this,"length");Pl(this,"offset");Pl(this,"lastWrittenByte");Pl(this,"littleEndian");Pl(this,"_data");Pl(this,"_mark");Pl(this,"_marks");let re=!1;typeof z=="number"?z=new ArrayBuffer(z):(re=!0,this.lastWrittenByte=z.byteLength);const ce=E.offset?E.offset>>>0:0,fe=z.byteLength-ce;let $e=ce;(ArrayBuffer.isView(z)||z instanceof Di)&&(z.byteLength!==z.buffer.byteLength&&($e=z.byteOffset+ce),z=z.buffer),re?this.lastWrittenByte=fe:this.lastWrittenByte=0,this.buffer=z,this.length=fe,this.byteLength=fe,this.byteOffset=$e,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,$e,fe),this._mark=0,this._marks=[]}available(z=1){return this.offset+z<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(z=1){return this.offset+=z,this}back(z=1){return this.offset-=z,this}seek(z){return this.offset=z,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const z=this._marks.pop();if(z===void 0)throw new Error("Mark stack empty");return this.seek(z),this}rewind(){return this.offset=0,this}ensureAvailable(z=1){if(!this.available(z)){const re=(this.offset+z)*2,ce=new Uint8Array(re);ce.set(new Uint8Array(this.buffer)),this.buffer=ce.buffer,this.length=re,this.byteLength=re,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(z=1){return this.readArray(z,"uint8")}readArray(z,E){const re=oo[E].BYTES_PER_ELEMENT*z,ce=this.byteOffset+this.offset,fe=this.buffer.slice(ce,ce+re);if(this.littleEndian===Ni&&E!=="uint8"&&E!=="int8"){const Pe=new Uint8Array(this.buffer.slice(ce,ce+re));Pe.reverse();const Ge=new oo[E](Pe.buffer);return this.offset+=re,Ge.reverse(),Ge}const $e=new oo[E](fe);return this.offset+=re,$e}readInt16(){const z=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,z}readUint16(){const z=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,z}readInt32(){const z=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,z}readUint32(){const z=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,z}readFloat32(){const z=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,z}readFloat64(){const z=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,z}readBigInt64(){const z=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,z}readBigUint64(){const z=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,z}readChar(){return String.fromCharCode(this.readInt8())}readChars(z=1){let E="";for(let re=0;re<z;re++)E+=this.readChar();return E}readUtf8(z=1){return hi(this.readBytes(z))}decodeText(z=1,E="utf8"){return hi(this.readBytes(z),E)}writeBoolean(z){return this.writeUint8(z?255:0),this}writeInt8(z){return this.ensureAvailable(1),this._data.setInt8(this.offset++,z),this._updateLastWrittenByte(),this}writeUint8(z){return this.ensureAvailable(1),this._data.setUint8(this.offset++,z),this._updateLastWrittenByte(),this}writeByte(z){return this.writeUint8(z)}writeBytes(z){this.ensureAvailable(z.length);for(let E=0;E<z.length;E++)this._data.setUint8(this.offset++,z[E]);return this._updateLastWrittenByte(),this}writeInt16(z){return this.ensureAvailable(2),this._data.setInt16(this.offset,z,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(z){return this.ensureAvailable(2),this._data.setUint16(this.offset,z,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(z){return this.ensureAvailable(4),this._data.setInt32(this.offset,z,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(z){return this.ensureAvailable(4),this._data.setUint32(this.offset,z,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(z){return this.ensureAvailable(4),this._data.setFloat32(this.offset,z,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(z){return this.ensureAvailable(8),this._data.setFloat64(this.offset,z,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(z){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,z,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(z){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,z,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(z){return this.writeUint8(z.charCodeAt(0))}writeChars(z){for(let E=0;E<z.length;E++)this.writeUint8(z.charCodeAt(E));return this}writeUtf8(z){return this.writeBytes(ki(z))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const yo=4,Ji=0,po=1,ho=2;function Jo(y){let z=y.length;for(;--z>=0;)y[z]=0}const xo=0,no=1,Do=2,Zo=3,jo=258,Cn=29,Vi=256,Ur=Vi+1+Cn,Vr=30,ci=19,Zr=2*Ur+1,Qi=15,eo=16,Rr=7,ai=256,Fi=16,Ri=17,Mo=18,ui=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Zi=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Wo=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Xo=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ra=512,Qo=new Array((Ur+2)*2);Jo(Qo);const qo=new Array(Vr*2);Jo(qo);const Yo=new Array(ra);Jo(Yo);const Ba=new Array(jo-Zo+1);Jo(Ba);const ls=new Array(Cn);Jo(ls);const Ma=new Array(Vr);Jo(Ma);function Na(y,z,E,re,ce){this.static_tree=y,this.extra_bits=z,this.extra_base=E,this.elems=re,this.max_length=ce,this.has_stree=y&&y.length}let $a,_o,Fo;function Ea(y,z){this.dyn_tree=y,this.max_code=0,this.stat_desc=z}const us=y=>y<256?Yo[y]:Yo[256+(y>>>7)],sl=(y,z)=>{y.pending_buf[y.pending++]=z&255,y.pending_buf[y.pending++]=z>>>8&255},qs=(y,z,E)=>{y.bi_valid>eo-E?(y.bi_buf|=z<<y.bi_valid&65535,sl(y,y.bi_buf),y.bi_buf=z>>eo-y.bi_valid,y.bi_valid+=E-eo):(y.bi_buf|=z<<y.bi_valid&65535,y.bi_valid+=E)},ll=(y,z,E)=>{qs(y,E[z*2],E[z*2+1])},su=(y,z)=>{let E=0;do E|=y&1,y>>>=1,E<<=1;while(--z>0);return E>>>1},Bl=y=>{y.bi_valid===16?(sl(y,y.bi_buf),y.bi_buf=0,y.bi_valid=0):y.bi_valid>=8&&(y.pending_buf[y.pending++]=y.bi_buf&255,y.bi_buf>>=8,y.bi_valid-=8)},el=(y,z)=>{const E=z.dyn_tree,re=z.max_code,ce=z.stat_desc.static_tree,fe=z.stat_desc.has_stree,$e=z.stat_desc.extra_bits,Pe=z.stat_desc.extra_base,Ge=z.stat_desc.max_length;let Ye,ft,Tt,Jt,At,In,bn=0;for(Jt=0;Jt<=Qi;Jt++)y.bl_count[Jt]=0;for(E[y.heap[y.heap_max]*2+1]=0,Ye=y.heap_max+1;Ye<Zr;Ye++)ft=y.heap[Ye],Jt=E[E[ft*2+1]*2+1]+1,Jt>Ge&&(Jt=Ge,bn++),E[ft*2+1]=Jt,!(ft>re)&&(y.bl_count[Jt]++,At=0,ft>=Pe&&(At=$e[ft-Pe]),In=E[ft*2],y.opt_len+=In*(Jt+At),fe&&(y.static_len+=In*(ce[ft*2+1]+At)));if(bn!==0){do{for(Jt=Ge-1;y.bl_count[Jt]===0;)Jt--;y.bl_count[Jt]--,y.bl_count[Jt+1]+=2,y.bl_count[Ge]--,bn-=2}while(bn>0);for(Jt=Ge;Jt!==0;Jt--)for(ft=y.bl_count[Jt];ft!==0;)Tt=y.heap[--Ye],!(Tt>re)&&(E[Tt*2+1]!==Jt&&(y.opt_len+=(Jt-E[Tt*2+1])*E[Tt*2],E[Tt*2+1]=Jt),ft--)}},Wl=(y,z,E)=>{const re=new Array(Qi+1);let ce=0,fe,$e;for(fe=1;fe<=Qi;fe++)ce=ce+E[fe-1]<<1,re[fe]=ce;for($e=0;$e<=z;$e++){let Pe=y[$e*2+1];Pe!==0&&(y[$e*2]=su(re[Pe]++,Pe))}},xu=()=>{let y,z,E,re,ce;const fe=new Array(Qi+1);for(E=0,re=0;re<Cn-1;re++)for(ls[re]=E,y=0;y<1<<ui[re];y++)Ba[E++]=re;for(Ba[E-1]=re,ce=0,re=0;re<16;re++)for(Ma[re]=ce,y=0;y<1<<Zi[re];y++)Yo[ce++]=re;for(ce>>=7;re<Vr;re++)for(Ma[re]=ce<<7,y=0;y<1<<Zi[re]-7;y++)Yo[256+ce++]=re;for(z=0;z<=Qi;z++)fe[z]=0;for(y=0;y<=143;)Qo[y*2+1]=8,y++,fe[8]++;for(;y<=255;)Qo[y*2+1]=9,y++,fe[9]++;for(;y<=279;)Qo[y*2+1]=7,y++,fe[7]++;for(;y<=287;)Qo[y*2+1]=8,y++,fe[8]++;for(Wl(Qo,Ur+1,fe),y=0;y<Vr;y++)qo[y*2+1]=5,qo[y*2]=su(y,5);$a=new Na(Qo,ui,Vi+1,Ur,Qi),_o=new Na(qo,Zi,0,Vr,Qi),Fo=new Na(new Array(0),Wo,0,ci,Rr)},Nu=y=>{let z;for(z=0;z<Ur;z++)y.dyn_ltree[z*2]=0;for(z=0;z<Vr;z++)y.dyn_dtree[z*2]=0;for(z=0;z<ci;z++)y.bl_tree[z*2]=0;y.dyn_ltree[ai*2]=1,y.opt_len=y.static_len=0,y.sym_next=y.matches=0},Gs=y=>{y.bi_valid>8?sl(y,y.bi_buf):y.bi_valid>0&&(y.pending_buf[y.pending++]=y.bi_buf),y.bi_buf=0,y.bi_valid=0},mc=(y,z,E,re)=>{const ce=z*2,fe=E*2;return y[ce]<y[fe]||y[ce]===y[fe]&&re[z]<=re[E]},gc=(y,z,E)=>{const re=y.heap[E];let ce=E<<1;for(;ce<=y.heap_len&&(ce<y.heap_len&&mc(z,y.heap[ce+1],y.heap[ce],y.depth)&&ce++,!mc(z,re,y.heap[ce],y.depth));)y.heap[E]=y.heap[ce],E=ce,ce<<=1;y.heap[E]=re},ga=(y,z,E)=>{let re,ce,fe=0,$e,Pe;if(y.sym_next!==0)do re=y.pending_buf[y.sym_buf+fe++]&255,re+=(y.pending_buf[y.sym_buf+fe++]&255)<<8,ce=y.pending_buf[y.sym_buf+fe++],re===0?ll(y,ce,z):($e=Ba[ce],ll(y,$e+Vi+1,z),Pe=ui[$e],Pe!==0&&(ce-=ls[$e],qs(y,ce,Pe)),re--,$e=us(re),ll(y,$e,E),Pe=Zi[$e],Pe!==0&&(re-=Ma[$e],qs(y,re,Pe)));while(fe<y.sym_next);ll(y,ai,z)},La=(y,z)=>{const E=z.dyn_tree,re=z.stat_desc.static_tree,ce=z.stat_desc.has_stree,fe=z.stat_desc.elems;let $e,Pe,Ge=-1,Ye;for(y.heap_len=0,y.heap_max=Zr,$e=0;$e<fe;$e++)E[$e*2]!==0?(y.heap[++y.heap_len]=Ge=$e,y.depth[$e]=0):E[$e*2+1]=0;for(;y.heap_len<2;)Ye=y.heap[++y.heap_len]=Ge<2?++Ge:0,E[Ye*2]=1,y.depth[Ye]=0,y.opt_len--,ce&&(y.static_len-=re[Ye*2+1]);for(z.max_code=Ge,$e=y.heap_len>>1;$e>=1;$e--)gc(y,E,$e);Ye=fe;do $e=y.heap[1],y.heap[1]=y.heap[y.heap_len--],gc(y,E,1),Pe=y.heap[1],y.heap[--y.heap_max]=$e,y.heap[--y.heap_max]=Pe,E[Ye*2]=E[$e*2]+E[Pe*2],y.depth[Ye]=(y.depth[$e]>=y.depth[Pe]?y.depth[$e]:y.depth[Pe])+1,E[$e*2+1]=E[Pe*2+1]=Ye,y.heap[1]=Ye++,gc(y,E,1);while(y.heap_len>=2);y.heap[--y.heap_max]=y.heap[1],el(y,z),Wl(E,Ge,y.bl_count)},ha=(y,z,E)=>{let re,ce=-1,fe,$e=z[0*2+1],Pe=0,Ge=7,Ye=4;for($e===0&&(Ge=138,Ye=3),z[(E+1)*2+1]=65535,re=0;re<=E;re++)fe=$e,$e=z[(re+1)*2+1],!(++Pe<Ge&&fe===$e)&&(Pe<Ye?y.bl_tree[fe*2]+=Pe:fe!==0?(fe!==ce&&y.bl_tree[fe*2]++,y.bl_tree[Fi*2]++):Pe<=10?y.bl_tree[Ri*2]++:y.bl_tree[Mo*2]++,Pe=0,ce=fe,$e===0?(Ge=138,Ye=3):fe===$e?(Ge=6,Ye=3):(Ge=7,Ye=4))},va=(y,z,E)=>{let re,ce=-1,fe,$e=z[0*2+1],Pe=0,Ge=7,Ye=4;for($e===0&&(Ge=138,Ye=3),re=0;re<=E;re++)if(fe=$e,$e=z[(re+1)*2+1],!(++Pe<Ge&&fe===$e)){if(Pe<Ye)do ll(y,fe,y.bl_tree);while(--Pe!==0);else fe!==0?(fe!==ce&&(ll(y,fe,y.bl_tree),Pe--),ll(y,Fi,y.bl_tree),qs(y,Pe-3,2)):Pe<=10?(ll(y,Ri,y.bl_tree),qs(y,Pe-3,3)):(ll(y,Mo,y.bl_tree),qs(y,Pe-11,7));Pe=0,ce=fe,$e===0?(Ge=138,Ye=3):fe===$e?(Ge=6,Ye=3):(Ge=7,Ye=4)}},ts=y=>{let z;for(ha(y,y.dyn_ltree,y.l_desc.max_code),ha(y,y.dyn_dtree,y.d_desc.max_code),La(y,y.bl_desc),z=ci-1;z>=3&&y.bl_tree[Xo[z]*2+1]===0;z--);return y.opt_len+=3*(z+1)+5+5+4,z},Ya=(y,z,E,re)=>{let ce;for(qs(y,z-257,5),qs(y,E-1,5),qs(y,re-4,4),ce=0;ce<re;ce++)qs(y,y.bl_tree[Xo[ce]*2+1],3);va(y,y.dyn_ltree,z-1),va(y,y.dyn_dtree,E-1)},Ga=y=>{let z=4093624447,E;for(E=0;E<=31;E++,z>>>=1)if(z&1&&y.dyn_ltree[E*2]!==0)return Ji;if(y.dyn_ltree[9*2]!==0||y.dyn_ltree[10*2]!==0||y.dyn_ltree[13*2]!==0)return po;for(E=32;E<Vi;E++)if(y.dyn_ltree[E*2]!==0)return po;return Ji};let Gl=!1;const lu=y=>{Gl||(xu(),Gl=!0),y.l_desc=new Ea(y.dyn_ltree,$a),y.d_desc=new Ea(y.dyn_dtree,_o),y.bl_desc=new Ea(y.bl_tree,Fo),y.bi_buf=0,y.bi_valid=0,Nu(y)},Tl=(y,z,E,re)=>{qs(y,(xo<<1)+(re?1:0),3),Gs(y),sl(y,E),sl(y,~E),E&&y.pending_buf.set(y.window.subarray(z,z+E),y.pending),y.pending+=E},Ou=y=>{qs(y,no<<1,3),ll(y,ai,Qo),Bl(y)},Hi=(y,z,E,re)=>{let ce,fe,$e=0;y.level>0?(y.strm.data_type===ho&&(y.strm.data_type=Ga(y)),La(y,y.l_desc),La(y,y.d_desc),$e=ts(y),ce=y.opt_len+3+7>>>3,fe=y.static_len+3+7>>>3,fe<=ce&&(ce=fe)):ce=fe=E+5,E+4<=ce&&z!==-1?Tl(y,z,E,re):y.strategy===yo||fe===ce?(qs(y,(no<<1)+(re?1:0),3),ga(y,Qo,qo)):(qs(y,(Do<<1)+(re?1:0),3),Ya(y,y.l_desc.max_code+1,y.d_desc.max_code+1,$e+1),ga(y,y.dyn_ltree,y.dyn_dtree)),Nu(y),re&&Gs(y)},ia=(y,z,E)=>(y.pending_buf[y.sym_buf+y.sym_next++]=z,y.pending_buf[y.sym_buf+y.sym_next++]=z>>8,y.pending_buf[y.sym_buf+y.sym_next++]=E,z===0?y.dyn_ltree[E*2]++:(y.matches++,z--,y.dyn_ltree[(Ba[E]+Vi+1)*2]++,y.dyn_dtree[us(z)*2]++),y.sym_next===y.sym_end);var Ta=lu,ks=Tl,pu=Hi,Hs=ia,Kc=Ou,Vu={_tr_init:Ta,_tr_stored_block:ks,_tr_flush_block:pu,_tr_tally:Hs,_tr_align:Kc},vs=(y,z,E,re)=>{let ce=y&65535|0,fe=y>>>16&65535|0,$e=0;for(;E!==0;){$e=E>2e3?2e3:E,E-=$e;do ce=ce+z[re++]|0,fe=fe+ce|0;while(--$e);ce%=65521,fe%=65521}return ce|fe<<16|0};const Bu=()=>{let y,z=[];for(var E=0;E<256;E++){y=E;for(var re=0;re<8;re++)y=y&1?3988292384^y>>>1:y>>>1;z[E]=y}return z},Ms=new Uint32Array(Bu());var El=(y,z,E,re)=>{const ce=Ms,fe=re+E;y^=-1;for(let $e=re;$e<fe;$e++)y=y>>>8^ce[(y^z[$e])&255];return y^-1},kl={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Vl={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:NA,_tr_stored_block:vl,_tr_flush_block:mu,_tr_tally:jl,_tr_align:Us}=Vu,{Z_NO_FLUSH:tl,Z_PARTIAL_FLUSH:KA,Z_FULL_FLUSH:$A,Z_FINISH:Xl,Z_BLOCK:Eu,Z_OK:Sa,Z_STREAM_END:Qa,Z_STREAM_ERROR:Rs,Z_DATA_ERROR:ic,Z_BUF_ERROR:Yl,Z_DEFAULT_COMPRESSION:du,Z_FILTERED:$c,Z_HUFFMAN_ONLY:vc,Z_RLE:dA,Z_FIXED:Jl,Z_DEFAULT_STRATEGY:yc,Z_UNKNOWN:tA,Z_DEFLATED:nA}=Vl,Ed=9,Jf=15,nd=8,Du=256+1+29,DA=30,rA=19,Sd=2*Du+1,qf=15,Ns=3,Xu=258,hA=Xu+Ns+1,Ph=32,Zc=42,Th=57,Fd=69,eh=73,bf=91,Cf=103,Wc=113,ya=666,Ql=1,Dc=2,rd=3,PA=4,Kp=3,TA=(y,z)=>(y.msg=kl[z],z),th=y=>y*2-(y>4?9:0),Pc=y=>{let z=y.length;for(;--z>=0;)y[z]=0},id=y=>{let z,E,re,ce=y.w_size;z=y.hash_size,re=z;do E=y.head[--re],y.head[re]=E>=ce?E-ce:0;while(--z);z=ce,re=z;do E=y.prev[--re],y.prev[re]=E>=ce?E-ce:0;while(--z)};let pA=(y,z,E)=>(z<<y.hash_shift^E)&y.hash_mask;const Ic=y=>{const z=y.state;let E=z.pending;E>y.avail_out&&(E=y.avail_out),E!==0&&(y.output.set(z.pending_buf.subarray(z.pending_out,z.pending_out+E),y.next_out),y.next_out+=E,z.pending_out+=E,y.total_out+=E,y.avail_out-=E,z.pending-=E,z.pending===0&&(z.pending_out=0))},oc=(y,z)=>{mu(y,y.block_start>=0?y.block_start:-1,y.strstart-y.block_start,z),y.block_start=y.strstart,Ic(y.strm)},zs=(y,z)=>{y.pending_buf[y.pending++]=z},mA=(y,z)=>{y.pending_buf[y.pending++]=z>>>8&255,y.pending_buf[y.pending++]=z&255},od=(y,z,E,re)=>{let ce=y.avail_in;return ce>re&&(ce=re),ce===0?0:(y.avail_in-=ce,z.set(y.input.subarray(y.next_in,y.next_in+ce),E),y.state.wrap===1?y.adler=vs(y.adler,z,ce,E):y.state.wrap===2&&(y.adler=El(y.adler,z,ce,E)),y.next_in+=ce,y.total_in+=ce,ce)},ad=(y,z)=>{let E=y.max_chain_length,re=y.strstart,ce,fe,$e=y.prev_length,Pe=y.nice_match;const Ge=y.strstart>y.w_size-hA?y.strstart-(y.w_size-hA):0,Ye=y.window,ft=y.w_mask,Tt=y.prev,Jt=y.strstart+Xu;let At=Ye[re+$e-1],In=Ye[re+$e];y.prev_length>=y.good_match&&(E>>=2),Pe>y.lookahead&&(Pe=y.lookahead);do if(ce=z,!(Ye[ce+$e]!==In||Ye[ce+$e-1]!==At||Ye[ce]!==Ye[re]||Ye[++ce]!==Ye[re+1])){re+=2,ce++;do;while(Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&re<Jt);if(fe=Xu-(Jt-re),re=Jt-Xu,fe>$e){if(y.match_start=z,$e=fe,fe>=Pe)break;At=Ye[re+$e-1],In=Ye[re+$e]}}while((z=Tt[z&ft])>Ge&&--E!==0);return $e<=y.lookahead?$e:y.lookahead},gA=y=>{const z=y.w_size;let E,re,ce;do{if(re=y.window_size-y.lookahead-y.strstart,y.strstart>=z+(z-hA)&&(y.window.set(y.window.subarray(z,z+z-re),0),y.match_start-=z,y.strstart-=z,y.block_start-=z,y.insert>y.strstart&&(y.insert=y.strstart),id(y),re+=z),y.strm.avail_in===0)break;if(E=od(y.strm,y.window,y.strstart+y.lookahead,re),y.lookahead+=E,y.lookahead+y.insert>=Ns)for(ce=y.strstart-y.insert,y.ins_h=y.window[ce],y.ins_h=pA(y,y.ins_h,y.window[ce+1]);y.insert&&(y.ins_h=pA(y,y.ins_h,y.window[ce+Ns-1]),y.prev[ce&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=ce,ce++,y.insert--,!(y.lookahead+y.insert<Ns)););}while(y.lookahead<hA&&y.strm.avail_in!==0)},kA=(y,z)=>{let E=y.pending_buf_size-5>y.w_size?y.w_size:y.pending_buf_size-5,re,ce,fe,$e=0,Pe=y.strm.avail_in;do{if(re=65535,fe=y.bi_valid+42>>3,y.strm.avail_out<fe||(fe=y.strm.avail_out-fe,ce=y.strstart-y.block_start,re>ce+y.strm.avail_in&&(re=ce+y.strm.avail_in),re>fe&&(re=fe),re<E&&(re===0&&z!==Xl||z===tl||re!==ce+y.strm.avail_in)))break;$e=z===Xl&&re===ce+y.strm.avail_in?1:0,vl(y,0,0,$e),y.pending_buf[y.pending-4]=re,y.pending_buf[y.pending-3]=re>>8,y.pending_buf[y.pending-2]=~re,y.pending_buf[y.pending-1]=~re>>8,Ic(y.strm),ce&&(ce>re&&(ce=re),y.strm.output.set(y.window.subarray(y.block_start,y.block_start+ce),y.strm.next_out),y.strm.next_out+=ce,y.strm.avail_out-=ce,y.strm.total_out+=ce,y.block_start+=ce,re-=ce),re&&(od(y.strm,y.strm.output,y.strm.next_out,re),y.strm.next_out+=re,y.strm.avail_out-=re,y.strm.total_out+=re)}while($e===0);return Pe-=y.strm.avail_in,Pe&&(Pe>=y.w_size?(y.matches=2,y.window.set(y.strm.input.subarray(y.strm.next_in-y.w_size,y.strm.next_in),0),y.strstart=y.w_size,y.insert=y.strstart):(y.window_size-y.strstart<=Pe&&(y.strstart-=y.w_size,y.window.set(y.window.subarray(y.w_size,y.w_size+y.strstart),0),y.matches<2&&y.matches++,y.insert>y.strstart&&(y.insert=y.strstart)),y.window.set(y.strm.input.subarray(y.strm.next_in-Pe,y.strm.next_in),y.strstart),y.strstart+=Pe,y.insert+=Pe>y.w_size-y.insert?y.w_size-y.insert:Pe),y.block_start=y.strstart),y.high_water<y.strstart&&(y.high_water=y.strstart),$e?PA:z!==tl&&z!==Xl&&y.strm.avail_in===0&&y.strstart===y.block_start?Dc:(fe=y.window_size-y.strstart,y.strm.avail_in>fe&&y.block_start>=y.w_size&&(y.block_start-=y.w_size,y.strstart-=y.w_size,y.window.set(y.window.subarray(y.w_size,y.w_size+y.strstart),0),y.matches<2&&y.matches++,fe+=y.w_size,y.insert>y.strstart&&(y.insert=y.strstart)),fe>y.strm.avail_in&&(fe=y.strm.avail_in),fe&&(od(y.strm,y.window,y.strstart,fe),y.strstart+=fe,y.insert+=fe>y.w_size-y.insert?y.w_size-y.insert:fe),y.high_water<y.strstart&&(y.high_water=y.strstart),fe=y.bi_valid+42>>3,fe=y.pending_buf_size-fe>65535?65535:y.pending_buf_size-fe,E=fe>y.w_size?y.w_size:fe,ce=y.strstart-y.block_start,(ce>=E||(ce||z===Xl)&&z!==tl&&y.strm.avail_in===0&&ce<=fe)&&(re=ce>fe?fe:ce,$e=z===Xl&&y.strm.avail_in===0&&re===ce?1:0,vl(y,y.block_start,re,$e),y.block_start+=re,Ic(y.strm)),$e?rd:Ql)},xf=(y,z)=>{let E,re;for(;;){if(y.lookahead<hA){if(gA(y),y.lookahead<hA&&z===tl)return Ql;if(y.lookahead===0)break}if(E=0,y.lookahead>=Ns&&(y.ins_h=pA(y,y.ins_h,y.window[y.strstart+Ns-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),E!==0&&y.strstart-E<=y.w_size-hA&&(y.match_length=ad(y,E)),y.match_length>=Ns)if(re=jl(y,y.strstart-y.match_start,y.match_length-Ns),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=Ns){y.match_length--;do y.strstart++,y.ins_h=pA(y,y.ins_h,y.window[y.strstart+Ns-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart;while(--y.match_length!==0);y.strstart++}else y.strstart+=y.match_length,y.match_length=0,y.ins_h=y.window[y.strstart],y.ins_h=pA(y,y.ins_h,y.window[y.strstart+1]);else re=jl(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++;if(re&&(oc(y,!1),y.strm.avail_out===0))return Ql}return y.insert=y.strstart<Ns-1?y.strstart:Ns-1,z===Xl?(oc(y,!0),y.strm.avail_out===0?rd:PA):y.sym_next&&(oc(y,!1),y.strm.avail_out===0)?Ql:Dc},Id=(y,z)=>{let E,re,ce;for(;;){if(y.lookahead<hA){if(gA(y),y.lookahead<hA&&z===tl)return Ql;if(y.lookahead===0)break}if(E=0,y.lookahead>=Ns&&(y.ins_h=pA(y,y.ins_h,y.window[y.strstart+Ns-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),y.prev_length=y.match_length,y.prev_match=y.match_start,y.match_length=Ns-1,E!==0&&y.prev_length<y.max_lazy_match&&y.strstart-E<=y.w_size-hA&&(y.match_length=ad(y,E),y.match_length<=5&&(y.strategy===$c||y.match_length===Ns&&y.strstart-y.match_start>4096)&&(y.match_length=Ns-1)),y.prev_length>=Ns&&y.match_length<=y.prev_length){ce=y.strstart+y.lookahead-Ns,re=jl(y,y.strstart-1-y.prev_match,y.prev_length-Ns),y.lookahead-=y.prev_length-1,y.prev_length-=2;do++y.strstart<=ce&&(y.ins_h=pA(y,y.ins_h,y.window[y.strstart+Ns-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);while(--y.prev_length!==0);if(y.match_available=0,y.match_length=Ns-1,y.strstart++,re&&(oc(y,!1),y.strm.avail_out===0))return Ql}else if(y.match_available){if(re=jl(y,0,y.window[y.strstart-1]),re&&oc(y,!1),y.strstart++,y.lookahead--,y.strm.avail_out===0)return Ql}else y.match_available=1,y.strstart++,y.lookahead--}return y.match_available&&(re=jl(y,0,y.window[y.strstart-1]),y.match_available=0),y.insert=y.strstart<Ns-1?y.strstart:Ns-1,z===Xl?(oc(y,!0),y.strm.avail_out===0?rd:PA):y.sym_next&&(oc(y,!1),y.strm.avail_out===0)?Ql:Dc},kh=(y,z)=>{let E,re,ce,fe;const $e=y.window;for(;;){if(y.lookahead<=Xu){if(gA(y),y.lookahead<=Xu&&z===tl)return Ql;if(y.lookahead===0)break}if(y.match_length=0,y.lookahead>=Ns&&y.strstart>0&&(ce=y.strstart-1,re=$e[ce],re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce])){fe=y.strstart+Xu;do;while(re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&ce<fe);y.match_length=Xu-(fe-ce),y.match_length>y.lookahead&&(y.match_length=y.lookahead)}if(y.match_length>=Ns?(E=jl(y,1,y.match_length-Ns),y.lookahead-=y.match_length,y.strstart+=y.match_length,y.match_length=0):(E=jl(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++),E&&(oc(y,!1),y.strm.avail_out===0))return Ql}return y.insert=0,z===Xl?(oc(y,!0),y.strm.avail_out===0?rd:PA):y.sym_next&&(oc(y,!1),y.strm.avail_out===0)?Ql:Dc},Zp=(y,z)=>{let E;for(;;){if(y.lookahead===0&&(gA(y),y.lookahead===0)){if(z===tl)return Ql;break}if(y.match_length=0,E=jl(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++,E&&(oc(y,!1),y.strm.avail_out===0))return Ql}return y.insert=0,z===Xl?(oc(y,!0),y.strm.avail_out===0?rd:PA):y.sym_next&&(oc(y,!1),y.strm.avail_out===0)?Ql:Dc};function ac(y,z,E,re,ce){this.good_length=y,this.max_lazy=z,this.nice_length=E,this.max_chain=re,this.func=ce}const vA=[new ac(0,0,0,0,kA),new ac(4,4,8,4,xf),new ac(4,5,16,8,xf),new ac(4,6,32,32,xf),new ac(4,4,16,16,Id),new ac(8,16,32,32,Id),new ac(8,16,128,128,Id),new ac(8,32,128,256,Id),new ac(32,128,258,1024,Id),new ac(32,258,258,4096,Id)],up=y=>{y.window_size=2*y.w_size,Pc(y.head),y.max_lazy_match=vA[y.level].max_lazy,y.good_match=vA[y.level].good_length,y.nice_match=vA[y.level].nice_length,y.max_chain_length=vA[y.level].max_chain,y.strstart=0,y.block_start=0,y.lookahead=0,y.insert=0,y.match_length=y.prev_length=Ns-1,y.match_available=0,y.ins_h=0};function Wp(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=nA,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Sd*2),this.dyn_dtree=new Uint16Array((2*DA+1)*2),this.bl_tree=new Uint16Array((2*rA+1)*2),Pc(this.dyn_ltree),Pc(this.dyn_dtree),Pc(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(qf+1),this.heap=new Uint16Array(2*Du+1),Pc(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Du+1),Pc(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Vd=y=>{if(!y)return 1;const z=y.state;return!z||z.strm!==y||z.status!==Zc&&z.status!==Th&&z.status!==Fd&&z.status!==eh&&z.status!==bf&&z.status!==Cf&&z.status!==Wc&&z.status!==ya?1:0},cp=y=>{if(Vd(y))return TA(y,Rs);y.total_in=y.total_out=0,y.data_type=tA;const z=y.state;return z.pending=0,z.pending_out=0,z.wrap<0&&(z.wrap=-z.wrap),z.status=z.wrap===2?Th:z.wrap?Zc:Wc,y.adler=z.wrap===2?0:1,z.last_flush=-2,NA(z),Sa},Xd=y=>{const z=cp(y);return z===Sa&&up(y.state),z},Gp=(y,z)=>Vd(y)||y.state.wrap!==2?Rs:(y.state.gzhead=z,Sa),sc=(y,z,E,re,ce,fe)=>{if(!y)return Rs;let $e=1;if(z===du&&(z=6),re<0?($e=0,re=-re):re>15&&($e=2,re-=16),ce<1||ce>Ed||E!==nA||re<8||re>15||z<0||z>9||fe<0||fe>Jl||re===8&&$e!==1)return TA(y,Rs);re===8&&(re=9);const Pe=new Wp;return y.state=Pe,Pe.strm=y,Pe.status=Zc,Pe.wrap=$e,Pe.gzhead=null,Pe.w_bits=re,Pe.w_size=1<<Pe.w_bits,Pe.w_mask=Pe.w_size-1,Pe.hash_bits=ce+7,Pe.hash_size=1<<Pe.hash_bits,Pe.hash_mask=Pe.hash_size-1,Pe.hash_shift=~~((Pe.hash_bits+Ns-1)/Ns),Pe.window=new Uint8Array(Pe.w_size*2),Pe.head=new Uint16Array(Pe.hash_size),Pe.prev=new Uint16Array(Pe.w_size),Pe.lit_bufsize=1<<ce+6,Pe.pending_buf_size=Pe.lit_bufsize*4,Pe.pending_buf=new Uint8Array(Pe.pending_buf_size),Pe.sym_buf=Pe.lit_bufsize,Pe.sym_end=(Pe.lit_bufsize-1)*3,Pe.level=z,Pe.strategy=fe,Pe.method=E,Xd(y)},Pu=(y,z)=>sc(y,z,nA,Jf,nd,yc),lc=(y,z)=>{if(Vd(y)||z>Eu||z<0)return y?TA(y,Rs):Rs;const E=y.state;if(!y.output||y.avail_in!==0&&!y.input||E.status===ya&&z!==Xl)return TA(y,y.avail_out===0?Yl:Rs);const re=E.last_flush;if(E.last_flush=z,E.pending!==0){if(Ic(y),y.avail_out===0)return E.last_flush=-1,Sa}else if(y.avail_in===0&&th(z)<=th(re)&&z!==Xl)return TA(y,Yl);if(E.status===ya&&y.avail_in!==0)return TA(y,Yl);if(E.status===Zc&&E.wrap===0&&(E.status=Wc),E.status===Zc){let ce=nA+(E.w_bits-8<<4)<<8,fe=-1;if(E.strategy>=vc||E.level<2?fe=0:E.level<6?fe=1:E.level===6?fe=2:fe=3,ce|=fe<<6,E.strstart!==0&&(ce|=Ph),ce+=31-ce%31,mA(E,ce),E.strstart!==0&&(mA(E,y.adler>>>16),mA(E,y.adler&65535)),y.adler=1,E.status=Wc,Ic(y),E.pending!==0)return E.last_flush=-1,Sa}if(E.status===Th){if(y.adler=0,zs(E,31),zs(E,139),zs(E,8),E.gzhead)zs(E,(E.gzhead.text?1:0)+(E.gzhead.hcrc?2:0)+(E.gzhead.extra?4:0)+(E.gzhead.name?8:0)+(E.gzhead.comment?16:0)),zs(E,E.gzhead.time&255),zs(E,E.gzhead.time>>8&255),zs(E,E.gzhead.time>>16&255),zs(E,E.gzhead.time>>24&255),zs(E,E.level===9?2:E.strategy>=vc||E.level<2?4:0),zs(E,E.gzhead.os&255),E.gzhead.extra&&E.gzhead.extra.length&&(zs(E,E.gzhead.extra.length&255),zs(E,E.gzhead.extra.length>>8&255)),E.gzhead.hcrc&&(y.adler=El(y.adler,E.pending_buf,E.pending,0)),E.gzindex=0,E.status=Fd;else if(zs(E,0),zs(E,0),zs(E,0),zs(E,0),zs(E,0),zs(E,E.level===9?2:E.strategy>=vc||E.level<2?4:0),zs(E,Kp),E.status=Wc,Ic(y),E.pending!==0)return E.last_flush=-1,Sa}if(E.status===Fd){if(E.gzhead.extra){let ce=E.pending,fe=(E.gzhead.extra.length&65535)-E.gzindex;for(;E.pending+fe>E.pending_buf_size;){let Pe=E.pending_buf_size-E.pending;if(E.pending_buf.set(E.gzhead.extra.subarray(E.gzindex,E.gzindex+Pe),E.pending),E.pending=E.pending_buf_size,E.gzhead.hcrc&&E.pending>ce&&(y.adler=El(y.adler,E.pending_buf,E.pending-ce,ce)),E.gzindex+=Pe,Ic(y),E.pending!==0)return E.last_flush=-1,Sa;ce=0,fe-=Pe}let $e=new Uint8Array(E.gzhead.extra);E.pending_buf.set($e.subarray(E.gzindex,E.gzindex+fe),E.pending),E.pending+=fe,E.gzhead.hcrc&&E.pending>ce&&(y.adler=El(y.adler,E.pending_buf,E.pending-ce,ce)),E.gzindex=0}E.status=eh}if(E.status===eh){if(E.gzhead.name){let ce=E.pending,fe;do{if(E.pending===E.pending_buf_size){if(E.gzhead.hcrc&&E.pending>ce&&(y.adler=El(y.adler,E.pending_buf,E.pending-ce,ce)),Ic(y),E.pending!==0)return E.last_flush=-1,Sa;ce=0}E.gzindex<E.gzhead.name.length?fe=E.gzhead.name.charCodeAt(E.gzindex++)&255:fe=0,zs(E,fe)}while(fe!==0);E.gzhead.hcrc&&E.pending>ce&&(y.adler=El(y.adler,E.pending_buf,E.pending-ce,ce)),E.gzindex=0}E.status=bf}if(E.status===bf){if(E.gzhead.comment){let ce=E.pending,fe;do{if(E.pending===E.pending_buf_size){if(E.gzhead.hcrc&&E.pending>ce&&(y.adler=El(y.adler,E.pending_buf,E.pending-ce,ce)),Ic(y),E.pending!==0)return E.last_flush=-1,Sa;ce=0}E.gzindex<E.gzhead.comment.length?fe=E.gzhead.comment.charCodeAt(E.gzindex++)&255:fe=0,zs(E,fe)}while(fe!==0);E.gzhead.hcrc&&E.pending>ce&&(y.adler=El(y.adler,E.pending_buf,E.pending-ce,ce))}E.status=Cf}if(E.status===Cf){if(E.gzhead.hcrc){if(E.pending+2>E.pending_buf_size&&(Ic(y),E.pending!==0))return E.last_flush=-1,Sa;zs(E,y.adler&255),zs(E,y.adler>>8&255),y.adler=0}if(E.status=Wc,Ic(y),E.pending!==0)return E.last_flush=-1,Sa}if(y.avail_in!==0||E.lookahead!==0||z!==tl&&E.status!==ya){let ce=E.level===0?kA(E,z):E.strategy===vc?Zp(E,z):E.strategy===dA?kh(E,z):vA[E.level].func(E,z);if((ce===rd||ce===PA)&&(E.status=ya),ce===Ql||ce===rd)return y.avail_out===0&&(E.last_flush=-1),Sa;if(ce===Dc&&(z===KA?Us(E):z!==Eu&&(vl(E,0,0,!1),z===$A&&(Pc(E.head),E.lookahead===0&&(E.strstart=0,E.block_start=0,E.insert=0))),Ic(y),y.avail_out===0))return E.last_flush=-1,Sa}return z!==Xl?Sa:E.wrap<=0?Qa:(E.wrap===2?(zs(E,y.adler&255),zs(E,y.adler>>8&255),zs(E,y.adler>>16&255),zs(E,y.adler>>24&255),zs(E,y.total_in&255),zs(E,y.total_in>>8&255),zs(E,y.total_in>>16&255),zs(E,y.total_in>>24&255)):(mA(E,y.adler>>>16),mA(E,y.adler&65535)),Ic(y),E.wrap>0&&(E.wrap=-E.wrap),E.pending!==0?Sa:Qa)},Tu=y=>{if(Vd(y))return Rs;const z=y.state.status;return y.state=null,z===Wc?TA(y,ic):Sa},sd=(y,z)=>{let E=z.length;if(Vd(y))return Rs;const re=y.state,ce=re.wrap;if(ce===2||ce===1&&re.status!==Zc||re.lookahead)return Rs;if(ce===1&&(y.adler=vs(y.adler,z,E,0)),re.wrap=0,E>=re.w_size){ce===0&&(Pc(re.head),re.strstart=0,re.block_start=0,re.insert=0);let Ge=new Uint8Array(re.w_size);Ge.set(z.subarray(E-re.w_size,E),0),z=Ge,E=re.w_size}const fe=y.avail_in,$e=y.next_in,Pe=y.input;for(y.avail_in=E,y.next_in=0,y.input=z,gA(re);re.lookahead>=Ns;){let Ge=re.strstart,Ye=re.lookahead-(Ns-1);do re.ins_h=pA(re,re.ins_h,re.window[Ge+Ns-1]),re.prev[Ge&re.w_mask]=re.head[re.ins_h],re.head[re.ins_h]=Ge,Ge++;while(--Ye);re.strstart=Ge,re.lookahead=Ns-1,gA(re)}return re.strstart+=re.lookahead,re.block_start=re.strstart,re.insert=re.lookahead,re.lookahead=0,re.match_length=re.prev_length=Ns-1,re.match_available=0,y.next_in=$e,y.input=Pe,y.avail_in=fe,re.wrap=ce,Sa};var Yd=Pu,Bf=sc,Ap=Xd,dp=cp,fp=Gp,nh=lc,yA=Tu,Ld=sd,hp="pako deflate (from Nodeca project)",bt={deflateInit:Yd,deflateInit2:Bf,deflateReset:Ap,deflateResetKeep:dp,deflateSetHeader:fp,deflate:nh,deflateEnd:yA,deflateSetDictionary:Ld,deflateInfo:hp};const wt=(y,z)=>Object.prototype.hasOwnProperty.call(y,z);var Xt=function(y){const z=Array.prototype.slice.call(arguments,1);for(;z.length;){const E=z.shift();if(E){if(typeof E!="object")throw new TypeError(E+"must be non-object");for(const re in E)wt(E,re)&&(y[re]=E[re])}}return y},un=y=>{let z=0;for(let re=0,ce=y.length;re<ce;re++)z+=y[re].length;const E=new Uint8Array(z);for(let re=0,ce=0,fe=y.length;re<fe;re++){let $e=y[re];E.set($e,ce),ce+=$e.length}return E},Sn={assign:Xt,flattenChunks:un};let kn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(y){kn=!1}const sr=new Uint8Array(256);for(let y=0;y<256;y++)sr[y]=y>=252?6:y>=248?5:y>=240?4:y>=224?3:y>=192?2:1;sr[254]=sr[254]=1;var er=y=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(y);let z,E,re,ce,fe,$e=y.length,Pe=0;for(ce=0;ce<$e;ce++)E=y.charCodeAt(ce),(E&64512)===55296&&ce+1<$e&&(re=y.charCodeAt(ce+1),(re&64512)===56320&&(E=65536+(E-55296<<10)+(re-56320),ce++)),Pe+=E<128?1:E<2048?2:E<65536?3:4;for(z=new Uint8Array(Pe),fe=0,ce=0;fe<Pe;ce++)E=y.charCodeAt(ce),(E&64512)===55296&&ce+1<$e&&(re=y.charCodeAt(ce+1),(re&64512)===56320&&(E=65536+(E-55296<<10)+(re-56320),ce++)),E<128?z[fe++]=E:E<2048?(z[fe++]=192|E>>>6,z[fe++]=128|E&63):E<65536?(z[fe++]=224|E>>>12,z[fe++]=128|E>>>6&63,z[fe++]=128|E&63):(z[fe++]=240|E>>>18,z[fe++]=128|E>>>12&63,z[fe++]=128|E>>>6&63,z[fe++]=128|E&63);return z};const vr=(y,z)=>{if(z<65534&&y.subarray&&kn)return String.fromCharCode.apply(null,y.length===z?y:y.subarray(0,z));let E="";for(let re=0;re<z;re++)E+=String.fromCharCode(y[re]);return E};var fr=(y,z)=>{const E=z||y.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(y.subarray(0,z));let re,ce;const fe=new Array(E*2);for(ce=0,re=0;re<E;){let $e=y[re++];if($e<128){fe[ce++]=$e;continue}let Pe=sr[$e];if(Pe>4){fe[ce++]=65533,re+=Pe-1;continue}for($e&=Pe===2?31:Pe===3?15:7;Pe>1&&re<E;)$e=$e<<6|y[re++]&63,Pe--;if(Pe>1){fe[ce++]=65533;continue}$e<65536?fe[ce++]=$e:($e-=65536,fe[ce++]=55296|$e>>10&1023,fe[ce++]=56320|$e&1023)}return vr(fe,ce)},si=(y,z)=>{z=z||y.length,z>y.length&&(z=y.length);let E=z-1;for(;E>=0&&(y[E]&192)===128;)E--;return E<0||E===0?z:E+sr[y[E]]>z?E:z},jr={string2buf:er,buf2string:fr,utf8border:si};function Qr(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Lr=Qr;const Sr=Object.prototype.toString,{Z_NO_FLUSH:Wi,Z_SYNC_FLUSH:yi,Z_FULL_FLUSH:to,Z_FINISH:uo,Z_OK:qi,Z_STREAM_END:mo,Z_DEFAULT_COMPRESSION:Eo,Z_DEFAULT_STRATEGY:Uo,Z_DEFLATED:Po}=Vl;function _a(y){this.options=Sn.assign({level:Eo,method:Po,chunkSize:16384,windowBits:15,memLevel:8,strategy:Uo},y||{});let z=this.options;z.raw&&z.windowBits>0?z.windowBits=-z.windowBits:z.gzip&&z.windowBits>0&&z.windowBits<16&&(z.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Lr,this.strm.avail_out=0;let E=bt.deflateInit2(this.strm,z.level,z.method,z.windowBits,z.memLevel,z.strategy);if(E!==qi)throw new Error(kl[E]);if(z.header&&bt.deflateSetHeader(this.strm,z.header),z.dictionary){let re;if(typeof z.dictionary=="string"?re=jr.string2buf(z.dictionary):Sr.call(z.dictionary)==="[object ArrayBuffer]"?re=new Uint8Array(z.dictionary):re=z.dictionary,E=bt.deflateSetDictionary(this.strm,re),E!==qi)throw new Error(kl[E]);this._dict_set=!0}}_a.prototype.push=function(y,z){const E=this.strm,re=this.options.chunkSize;let ce,fe;if(this.ended)return!1;for(z===~~z?fe=z:fe=z===!0?uo:Wi,typeof y=="string"?E.input=jr.string2buf(y):Sr.call(y)==="[object ArrayBuffer]"?E.input=new Uint8Array(y):E.input=y,E.next_in=0,E.avail_in=E.input.length;;){if(E.avail_out===0&&(E.output=new Uint8Array(re),E.next_out=0,E.avail_out=re),(fe===yi||fe===to)&&E.avail_out<=6){this.onData(E.output.subarray(0,E.next_out)),E.avail_out=0;continue}if(ce=bt.deflate(E,fe),ce===mo)return E.next_out>0&&this.onData(E.output.subarray(0,E.next_out)),ce=bt.deflateEnd(this.strm),this.onEnd(ce),this.ended=!0,ce===qi;if(E.avail_out===0){this.onData(E.output);continue}if(fe>0&&E.next_out>0){this.onData(E.output.subarray(0,E.next_out)),E.avail_out=0;continue}if(E.avail_in===0)break}return!0},_a.prototype.onData=function(y){this.chunks.push(y)},_a.prototype.onEnd=function(y){y===qi&&(this.result=Sn.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function la(y,z){const E=new _a(z);if(E.push(y,!0),E.err)throw E.msg||kl[E.err];return E.result}function na(y,z){return z=z||{},z.raw=!0,la(y,z)}function zo(y,z){return z=z||{},z.gzip=!0,la(y,z)}var Ro=_a,Ho=la,wo=na,fo=zo,To=Vl,Go={Deflate:Ro,deflate:Ho,deflateRaw:wo,gzip:fo,constants:To};const oa=16209,Co=16191;var qa=function(z,E){let re,ce,fe,$e,Pe,Ge,Ye,ft,Tt,Jt,At,In,bn,On,cn,gr,cr,Zn,li,ji,Bi,Fr,Xn,Wr;const ln=z.state;re=z.next_in,Xn=z.input,ce=re+(z.avail_in-5),fe=z.next_out,Wr=z.output,$e=fe-(E-z.avail_out),Pe=fe+(z.avail_out-257),Ge=ln.dmax,Ye=ln.wsize,ft=ln.whave,Tt=ln.wnext,Jt=ln.window,At=ln.hold,In=ln.bits,bn=ln.lencode,On=ln.distcode,cn=(1<<ln.lenbits)-1,gr=(1<<ln.distbits)-1;e:do{In<15&&(At+=Xn[re++]<<In,In+=8,At+=Xn[re++]<<In,In+=8),cr=bn[At&cn];t:for(;;){if(Zn=cr>>>24,At>>>=Zn,In-=Zn,Zn=cr>>>16&255,Zn===0)Wr[fe++]=cr&65535;else if(Zn&16){li=cr&65535,Zn&=15,Zn&&(In<Zn&&(At+=Xn[re++]<<In,In+=8),li+=At&(1<<Zn)-1,At>>>=Zn,In-=Zn),In<15&&(At+=Xn[re++]<<In,In+=8,At+=Xn[re++]<<In,In+=8),cr=On[At&gr];n:for(;;){if(Zn=cr>>>24,At>>>=Zn,In-=Zn,Zn=cr>>>16&255,Zn&16){if(ji=cr&65535,Zn&=15,In<Zn&&(At+=Xn[re++]<<In,In+=8,In<Zn&&(At+=Xn[re++]<<In,In+=8)),ji+=At&(1<<Zn)-1,ji>Ge){z.msg="invalid distance too far back",ln.mode=oa;break e}if(At>>>=Zn,In-=Zn,Zn=fe-$e,ji>Zn){if(Zn=ji-Zn,Zn>ft&&ln.sane){z.msg="invalid distance too far back",ln.mode=oa;break e}if(Bi=0,Fr=Jt,Tt===0){if(Bi+=Ye-Zn,Zn<li){li-=Zn;do Wr[fe++]=Jt[Bi++];while(--Zn);Bi=fe-ji,Fr=Wr}}else if(Tt<Zn){if(Bi+=Ye+Tt-Zn,Zn-=Tt,Zn<li){li-=Zn;do Wr[fe++]=Jt[Bi++];while(--Zn);if(Bi=0,Tt<li){Zn=Tt,li-=Zn;do Wr[fe++]=Jt[Bi++];while(--Zn);Bi=fe-ji,Fr=Wr}}}else if(Bi+=Tt-Zn,Zn<li){li-=Zn;do Wr[fe++]=Jt[Bi++];while(--Zn);Bi=fe-ji,Fr=Wr}for(;li>2;)Wr[fe++]=Fr[Bi++],Wr[fe++]=Fr[Bi++],Wr[fe++]=Fr[Bi++],li-=3;li&&(Wr[fe++]=Fr[Bi++],li>1&&(Wr[fe++]=Fr[Bi++]))}else{Bi=fe-ji;do Wr[fe++]=Wr[Bi++],Wr[fe++]=Wr[Bi++],Wr[fe++]=Wr[Bi++],li-=3;while(li>2);li&&(Wr[fe++]=Wr[Bi++],li>1&&(Wr[fe++]=Wr[Bi++]))}}else if(Zn&64){z.msg="invalid distance code",ln.mode=oa;break e}else{cr=On[(cr&65535)+(At&(1<<Zn)-1)];continue n}break}}else if(Zn&64)if(Zn&32){ln.mode=Co;break e}else{z.msg="invalid literal/length code",ln.mode=oa;break e}else{cr=bn[(cr&65535)+(At&(1<<Zn)-1)];continue t}break}}while(re<ce&&fe<Pe);li=In>>3,re-=li,In-=li<<3,At&=(1<<In)-1,z.next_in=re,z.next_out=fe,z.avail_in=re<ce?5+(ce-re):5-(re-ce),z.avail_out=fe<Pe?257+(Pe-fe):257-(fe-Pe),ln.hold=At,ln.bits=In};const Za=15,Ml=852,Sl=592,ul=0,co=1,ql=2,cs=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),os=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ol=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),fu=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ba=(y,z,E,re,ce,fe,$e,Pe)=>{const Ge=Pe.bits;let Ye=0,ft=0,Tt=0,Jt=0,At=0,In=0,bn=0,On=0,cn=0,gr=0,cr,Zn,li,ji,Bi,Fr=null,Xn;const Wr=new Uint16Array(Za+1),ln=new Uint16Array(Za+1);let Dn=null,mr,dr,pi;for(Ye=0;Ye<=Za;Ye++)Wr[Ye]=0;for(ft=0;ft<re;ft++)Wr[z[E+ft]]++;for(At=Ge,Jt=Za;Jt>=1&&Wr[Jt]===0;Jt--);if(At>Jt&&(At=Jt),Jt===0)return ce[fe++]=1<<24|64<<16|0,ce[fe++]=1<<24|64<<16|0,Pe.bits=1,0;for(Tt=1;Tt<Jt&&Wr[Tt]===0;Tt++);for(At<Tt&&(At=Tt),On=1,Ye=1;Ye<=Za;Ye++)if(On<<=1,On-=Wr[Ye],On<0)return-1;if(On>0&&(y===ul||Jt!==1))return-1;for(ln[1]=0,Ye=1;Ye<Za;Ye++)ln[Ye+1]=ln[Ye]+Wr[Ye];for(ft=0;ft<re;ft++)z[E+ft]!==0&&($e[ln[z[E+ft]]++]=ft);if(y===ul?(Fr=Dn=$e,Xn=20):y===co?(Fr=cs,Dn=os,Xn=257):(Fr=ol,Dn=fu,Xn=0),gr=0,ft=0,Ye=Tt,Bi=fe,In=At,bn=0,li=-1,cn=1<<At,ji=cn-1,y===co&&cn>Ml||y===ql&&cn>Sl)return 1;for(;;){mr=Ye-bn,$e[ft]+1<Xn?(dr=0,pi=$e[ft]):$e[ft]>=Xn?(dr=Dn[$e[ft]-Xn],pi=Fr[$e[ft]-Xn]):(dr=96,pi=0),cr=1<<Ye-bn,Zn=1<<In,Tt=Zn;do Zn-=cr,ce[Bi+(gr>>bn)+Zn]=mr<<24|dr<<16|pi|0;while(Zn!==0);for(cr=1<<Ye-1;gr&cr;)cr>>=1;if(cr!==0?(gr&=cr-1,gr+=cr):gr=0,ft++,--Wr[Ye]===0){if(Ye===Jt)break;Ye=z[E+$e[ft]]}if(Ye>At&&(gr&ji)!==li){for(bn===0&&(bn=At),Bi+=Tt,In=Ye-bn,On=1<<In;In+bn<Jt&&(On-=Wr[In+bn],!(On<=0));)In++,On<<=1;if(cn+=1<<In,y===co&&cn>Ml||y===ql&&cn>Sl)return 1;li=gr&ji,ce[li]=At<<24|In<<16|Bi-fe|0}}return gr!==0&&(ce[Bi+gr]=Ye-bn<<24|64<<16|0),Pe.bits=At,0};const Vo=0,No=1,ps=2,{Z_FINISH:Fs,Z_BLOCK:Vs,Z_TREES:Ks,Z_OK:cl,Z_STREAM_END:gu,Z_NEED_DICT:ua,Z_STREAM_ERROR:ta,Z_DATA_ERROR:Bs,Z_MEM_ERROR:nl,Z_BUF_ERROR:Xs,Z_DEFLATED:vu}=Vl,Ul=16180,uc=16181,Fl=16182,ys=16183,Al=16184,dl=16185,hu=16186,Rl=16187,ws=16188,yl=16189,Is=16190,wl=16191,eu=16192,ku=16193,Mu=16194,Gc=16195,fl=16196,_d=16197,ju=16198,Yu=16199,Qu=16200,Ju=16201,hl=16202,wc=16203,wA=16204,Tc=16205,Vc=16206,Jd=16207,qd=16208,Ls=16209,ld=16210,Ef=16211,Wa=852,ms=592,uu=15,Su=y=>(y>>>24&255)+(y>>>8&65280)+((y&65280)<<8)+((y&255)<<24);function Fu(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const qu=y=>{if(!y)return 1;const z=y.state;return!z||z.strm!==y||z.mode<Ul||z.mode>Ef?1:0},Hu=y=>{if(qu(y))return ta;const z=y.state;return y.total_in=y.total_out=z.total=0,y.msg="",z.wrap&&(y.adler=z.wrap&1),z.mode=Ul,z.last=0,z.havedict=0,z.flags=-1,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new Int32Array(Wa),z.distcode=z.distdyn=new Int32Array(ms),z.sane=1,z.back=-1,cl},ZA=y=>{if(qu(y))return ta;const z=y.state;return z.wsize=0,z.whave=0,z.wnext=0,Hu(y)},Sf=(y,z)=>{let E;if(qu(y))return ta;const re=y.state;return z<0?(E=0,z=-z):(E=(z>>4)+5,z<48&&(z&=15)),z&&(z<8||z>15)?ta:(re.window!==null&&re.wbits!==z&&(re.window=null),re.wrap=E,re.wbits=z,ZA(y))},WA=(y,z)=>{if(!y)return ta;const E=new Fu;y.state=E,E.strm=y,E.window=null,E.mode=Ul;const re=Sf(y,z);return re!==cl&&(y.state=null),re},GA=y=>WA(y,uu);let yu=!0,kc,ef;const Ff=y=>{if(yu){kc=new Int32Array(512),ef=new Int32Array(32);let z=0;for(;z<144;)y.lens[z++]=8;for(;z<256;)y.lens[z++]=9;for(;z<280;)y.lens[z++]=7;for(;z<288;)y.lens[z++]=8;for(ba(No,y.lens,0,288,kc,0,y.work,{bits:9}),z=0;z<32;)y.lens[z++]=5;ba(ps,y.lens,0,32,ef,0,y.work,{bits:5}),yu=!1}y.lencode=kc,y.lenbits=9,y.distcode=ef,y.distbits=5},tf=(y,z,E,re)=>{let ce;const fe=y.state;return fe.window===null&&(fe.wsize=1<<fe.wbits,fe.wnext=0,fe.whave=0,fe.window=new Uint8Array(fe.wsize)),re>=fe.wsize?(fe.window.set(z.subarray(E-fe.wsize,E),0),fe.wnext=0,fe.whave=fe.wsize):(ce=fe.wsize-fe.wnext,ce>re&&(ce=re),fe.window.set(z.subarray(E-re,E-re+ce),fe.wnext),re-=ce,re?(fe.window.set(z.subarray(E-re,E),0),fe.wnext=re,fe.whave=fe.wsize):(fe.wnext+=ce,fe.wnext===fe.wsize&&(fe.wnext=0),fe.whave<fe.wsize&&(fe.whave+=ce))),0},If=(y,z)=>{let E,re,ce,fe,$e,Pe,Ge,Ye,ft,Tt,Jt,At,In,bn,On=0,cn,gr,cr,Zn,li,ji,Bi,Fr;const Xn=new Uint8Array(4);let Wr,ln;const Dn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(qu(y)||!y.output||!y.input&&y.avail_in!==0)return ta;E=y.state,E.mode===wl&&(E.mode=eu),$e=y.next_out,ce=y.output,Ge=y.avail_out,fe=y.next_in,re=y.input,Pe=y.avail_in,Ye=E.hold,ft=E.bits,Tt=Pe,Jt=Ge,Fr=cl;e:for(;;)switch(E.mode){case Ul:if(E.wrap===0){E.mode=eu;break}for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.wrap&2&&Ye===35615){E.wbits===0&&(E.wbits=15),E.check=0,Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,E.check=El(E.check,Xn,2,0),Ye=0,ft=0,E.mode=uc;break}if(E.head&&(E.head.done=!1),!(E.wrap&1)||(((Ye&255)<<8)+(Ye>>8))%31){y.msg="incorrect header check",E.mode=Ls;break}if((Ye&15)!==vu){y.msg="unknown compression method",E.mode=Ls;break}if(Ye>>>=4,ft-=4,Bi=(Ye&15)+8,E.wbits===0&&(E.wbits=Bi),Bi>15||Bi>E.wbits){y.msg="invalid window size",E.mode=Ls;break}E.dmax=1<<E.wbits,E.flags=0,y.adler=E.check=1,E.mode=Ye&512?yl:wl,Ye=0,ft=0;break;case uc:for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.flags=Ye,(E.flags&255)!==vu){y.msg="unknown compression method",E.mode=Ls;break}if(E.flags&57344){y.msg="unknown header flags set",E.mode=Ls;break}E.head&&(E.head.text=Ye>>8&1),E.flags&512&&E.wrap&4&&(Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,E.check=El(E.check,Xn,2,0)),Ye=0,ft=0,E.mode=Fl;case Fl:for(;ft<32;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.head&&(E.head.time=Ye),E.flags&512&&E.wrap&4&&(Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,Xn[2]=Ye>>>16&255,Xn[3]=Ye>>>24&255,E.check=El(E.check,Xn,4,0)),Ye=0,ft=0,E.mode=ys;case ys:for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.head&&(E.head.xflags=Ye&255,E.head.os=Ye>>8),E.flags&512&&E.wrap&4&&(Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,E.check=El(E.check,Xn,2,0)),Ye=0,ft=0,E.mode=Al;case Al:if(E.flags&1024){for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.length=Ye,E.head&&(E.head.extra_len=Ye),E.flags&512&&E.wrap&4&&(Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,E.check=El(E.check,Xn,2,0)),Ye=0,ft=0}else E.head&&(E.head.extra=null);E.mode=dl;case dl:if(E.flags&1024&&(At=E.length,At>Pe&&(At=Pe),At&&(E.head&&(Bi=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Uint8Array(E.head.extra_len)),E.head.extra.set(re.subarray(fe,fe+At),Bi)),E.flags&512&&E.wrap&4&&(E.check=El(E.check,re,At,fe)),Pe-=At,fe+=At,E.length-=At),E.length))break e;E.length=0,E.mode=hu;case hu:if(E.flags&2048){if(Pe===0)break e;At=0;do Bi=re[fe+At++],E.head&&Bi&&E.length<65536&&(E.head.name+=String.fromCharCode(Bi));while(Bi&&At<Pe);if(E.flags&512&&E.wrap&4&&(E.check=El(E.check,re,At,fe)),Pe-=At,fe+=At,Bi)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=Rl;case Rl:if(E.flags&4096){if(Pe===0)break e;At=0;do Bi=re[fe+At++],E.head&&Bi&&E.length<65536&&(E.head.comment+=String.fromCharCode(Bi));while(Bi&&At<Pe);if(E.flags&512&&E.wrap&4&&(E.check=El(E.check,re,At,fe)),Pe-=At,fe+=At,Bi)break e}else E.head&&(E.head.comment=null);E.mode=ws;case ws:if(E.flags&512){for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.wrap&4&&Ye!==(E.check&65535)){y.msg="header crc mismatch",E.mode=Ls;break}Ye=0,ft=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),y.adler=E.check=0,E.mode=wl;break;case yl:for(;ft<32;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}y.adler=E.check=Su(Ye),Ye=0,ft=0,E.mode=Is;case Is:if(E.havedict===0)return y.next_out=$e,y.avail_out=Ge,y.next_in=fe,y.avail_in=Pe,E.hold=Ye,E.bits=ft,ua;y.adler=E.check=1,E.mode=wl;case wl:if(z===Vs||z===Ks)break e;case eu:if(E.last){Ye>>>=ft&7,ft-=ft&7,E.mode=Vc;break}for(;ft<3;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}switch(E.last=Ye&1,Ye>>>=1,ft-=1,Ye&3){case 0:E.mode=ku;break;case 1:if(Ff(E),E.mode=Yu,z===Ks){Ye>>>=2,ft-=2;break e}break;case 2:E.mode=fl;break;case 3:y.msg="invalid block type",E.mode=Ls}Ye>>>=2,ft-=2;break;case ku:for(Ye>>>=ft&7,ft-=ft&7;ft<32;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if((Ye&65535)!==(Ye>>>16^65535)){y.msg="invalid stored block lengths",E.mode=Ls;break}if(E.length=Ye&65535,Ye=0,ft=0,E.mode=Mu,z===Ks)break e;case Mu:E.mode=Gc;case Gc:if(At=E.length,At){if(At>Pe&&(At=Pe),At>Ge&&(At=Ge),At===0)break e;ce.set(re.subarray(fe,fe+At),$e),Pe-=At,fe+=At,Ge-=At,$e+=At,E.length-=At;break}E.mode=wl;break;case fl:for(;ft<14;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.nlen=(Ye&31)+257,Ye>>>=5,ft-=5,E.ndist=(Ye&31)+1,Ye>>>=5,ft-=5,E.ncode=(Ye&15)+4,Ye>>>=4,ft-=4,E.nlen>286||E.ndist>30){y.msg="too many length or distance symbols",E.mode=Ls;break}E.have=0,E.mode=_d;case _d:for(;E.have<E.ncode;){for(;ft<3;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.lens[Dn[E.have++]]=Ye&7,Ye>>>=3,ft-=3}for(;E.have<19;)E.lens[Dn[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,Wr={bits:E.lenbits},Fr=ba(Vo,E.lens,0,19,E.lencode,0,E.work,Wr),E.lenbits=Wr.bits,Fr){y.msg="invalid code lengths set",E.mode=Ls;break}E.have=0,E.mode=ju;case ju:for(;E.have<E.nlen+E.ndist;){for(;On=E.lencode[Ye&(1<<E.lenbits)-1],cn=On>>>24,gr=On>>>16&255,cr=On&65535,!(cn<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(cr<16)Ye>>>=cn,ft-=cn,E.lens[E.have++]=cr;else{if(cr===16){for(ln=cn+2;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(Ye>>>=cn,ft-=cn,E.have===0){y.msg="invalid bit length repeat",E.mode=Ls;break}Bi=E.lens[E.have-1],At=3+(Ye&3),Ye>>>=2,ft-=2}else if(cr===17){for(ln=cn+3;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}Ye>>>=cn,ft-=cn,Bi=0,At=3+(Ye&7),Ye>>>=3,ft-=3}else{for(ln=cn+7;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}Ye>>>=cn,ft-=cn,Bi=0,At=11+(Ye&127),Ye>>>=7,ft-=7}if(E.have+At>E.nlen+E.ndist){y.msg="invalid bit length repeat",E.mode=Ls;break}for(;At--;)E.lens[E.have++]=Bi}}if(E.mode===Ls)break;if(E.lens[256]===0){y.msg="invalid code -- missing end-of-block",E.mode=Ls;break}if(E.lenbits=9,Wr={bits:E.lenbits},Fr=ba(No,E.lens,0,E.nlen,E.lencode,0,E.work,Wr),E.lenbits=Wr.bits,Fr){y.msg="invalid literal/lengths set",E.mode=Ls;break}if(E.distbits=6,E.distcode=E.distdyn,Wr={bits:E.distbits},Fr=ba(ps,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,Wr),E.distbits=Wr.bits,Fr){y.msg="invalid distances set",E.mode=Ls;break}if(E.mode=Yu,z===Ks)break e;case Yu:E.mode=Qu;case Qu:if(Pe>=6&&Ge>=258){y.next_out=$e,y.avail_out=Ge,y.next_in=fe,y.avail_in=Pe,E.hold=Ye,E.bits=ft,qa(y,Jt),$e=y.next_out,ce=y.output,Ge=y.avail_out,fe=y.next_in,re=y.input,Pe=y.avail_in,Ye=E.hold,ft=E.bits,E.mode===wl&&(E.back=-1);break}for(E.back=0;On=E.lencode[Ye&(1<<E.lenbits)-1],cn=On>>>24,gr=On>>>16&255,cr=On&65535,!(cn<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(gr&&!(gr&240)){for(Zn=cn,li=gr,ji=cr;On=E.lencode[ji+((Ye&(1<<Zn+li)-1)>>Zn)],cn=On>>>24,gr=On>>>16&255,cr=On&65535,!(Zn+cn<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}Ye>>>=Zn,ft-=Zn,E.back+=Zn}if(Ye>>>=cn,ft-=cn,E.back+=cn,E.length=cr,gr===0){E.mode=Tc;break}if(gr&32){E.back=-1,E.mode=wl;break}if(gr&64){y.msg="invalid literal/length code",E.mode=Ls;break}E.extra=gr&15,E.mode=Ju;case Ju:if(E.extra){for(ln=E.extra;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.length+=Ye&(1<<E.extra)-1,Ye>>>=E.extra,ft-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=hl;case hl:for(;On=E.distcode[Ye&(1<<E.distbits)-1],cn=On>>>24,gr=On>>>16&255,cr=On&65535,!(cn<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(!(gr&240)){for(Zn=cn,li=gr,ji=cr;On=E.distcode[ji+((Ye&(1<<Zn+li)-1)>>Zn)],cn=On>>>24,gr=On>>>16&255,cr=On&65535,!(Zn+cn<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}Ye>>>=Zn,ft-=Zn,E.back+=Zn}if(Ye>>>=cn,ft-=cn,E.back+=cn,gr&64){y.msg="invalid distance code",E.mode=Ls;break}E.offset=cr,E.extra=gr&15,E.mode=wc;case wc:if(E.extra){for(ln=E.extra;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.offset+=Ye&(1<<E.extra)-1,Ye>>>=E.extra,ft-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){y.msg="invalid distance too far back",E.mode=Ls;break}E.mode=wA;case wA:if(Ge===0)break e;if(At=Jt-Ge,E.offset>At){if(At=E.offset-At,At>E.whave&&E.sane){y.msg="invalid distance too far back",E.mode=Ls;break}At>E.wnext?(At-=E.wnext,In=E.wsize-At):In=E.wnext-At,At>E.length&&(At=E.length),bn=E.window}else bn=ce,In=$e-E.offset,At=E.length;At>Ge&&(At=Ge),Ge-=At,E.length-=At;do ce[$e++]=bn[In++];while(--At);E.length===0&&(E.mode=Qu);break;case Tc:if(Ge===0)break e;ce[$e++]=E.length,Ge--,E.mode=Qu;break;case Vc:if(E.wrap){for(;ft<32;){if(Pe===0)break e;Pe--,Ye|=re[fe++]<<ft,ft+=8}if(Jt-=Ge,y.total_out+=Jt,E.total+=Jt,E.wrap&4&&Jt&&(y.adler=E.check=E.flags?El(E.check,ce,Jt,$e-Jt):vs(E.check,ce,Jt,$e-Jt)),Jt=Ge,E.wrap&4&&(E.flags?Ye:Su(Ye))!==E.check){y.msg="incorrect data check",E.mode=Ls;break}Ye=0,ft=0}E.mode=Jd;case Jd:if(E.wrap&&E.flags){for(;ft<32;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.wrap&4&&Ye!==(E.total&4294967295)){y.msg="incorrect length check",E.mode=Ls;break}Ye=0,ft=0}E.mode=qd;case qd:Fr=gu;break e;case Ls:Fr=Bs;break e;case ld:return nl;case Ef:default:return ta}return y.next_out=$e,y.avail_out=Ge,y.next_in=fe,y.avail_in=Pe,E.hold=Ye,E.bits=ft,(E.wsize||Jt!==y.avail_out&&E.mode<Ls&&(E.mode<Vc||z!==Fs))&&tf(y,y.output,y.next_out,Jt-y.avail_out),Tt-=y.avail_in,Jt-=y.avail_out,y.total_in+=Tt,y.total_out+=Jt,E.total+=Jt,E.wrap&4&&Jt&&(y.adler=E.check=E.flags?El(E.check,ce,Jt,y.next_out-Jt):vs(E.check,ce,Jt,y.next_out-Jt)),y.data_type=E.bits+(E.last?64:0)+(E.mode===wl?128:0)+(E.mode===Yu||E.mode===Mu?256:0),(Tt===0&&Jt===0||z===Fs)&&Fr===cl&&(Fr=Xs),Fr},VA=y=>{if(qu(y))return ta;let z=y.state;return z.window&&(z.window=null),y.state=null,cl},rh=(y,z)=>{if(qu(y))return ta;const E=y.state;return E.wrap&2?(E.head=z,z.done=!1,cl):ta},pp=(y,z)=>{const E=z.length;let re,ce,fe;return qu(y)||(re=y.state,re.wrap!==0&&re.mode!==Is)?ta:re.mode===Is&&(ce=1,ce=vs(ce,z,E,0),ce!==re.check)?Bs:(fe=tf(y,z,E,E),fe?(re.mode=ld,nl):(re.havedict=1,cl))};var ih=ZA,nf=Sf,mp=Hu,gp=GA,rf=WA,Lf=If,Nd=VA,_f=rh,Od=pp,of="pako inflate (from Nodeca project)",bA={inflateReset:ih,inflateReset2:nf,inflateResetKeep:mp,inflateInit:gp,inflateInit2:rf,inflate:Lf,inflateEnd:Nd,inflateGetHeader:_f,inflateSetDictionary:Od,inflateInfo:of};function oh(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var ah=oh;const Mh=Object.prototype.toString,{Z_NO_FLUSH:ud,Z_FINISH:CA,Z_OK:xA,Z_STREAM_END:Dd,Z_NEED_DICT:cd,Z_STREAM_ERROR:Uh,Z_DATA_ERROR:gs,Z_MEM_ERROR:_s}=Vl;function wu(y){this.options=Sn.assign({chunkSize:1024*64,windowBits:15,to:""},y||{});const z=this.options;z.raw&&z.windowBits>=0&&z.windowBits<16&&(z.windowBits=-z.windowBits,z.windowBits===0&&(z.windowBits=-15)),z.windowBits>=0&&z.windowBits<16&&!(y&&y.windowBits)&&(z.windowBits+=32),z.windowBits>15&&z.windowBits<48&&(z.windowBits&15||(z.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Lr,this.strm.avail_out=0;let E=bA.inflateInit2(this.strm,z.windowBits);if(E!==xA)throw new Error(kl[E]);if(this.header=new ah,bA.inflateGetHeader(this.strm,this.header),z.dictionary&&(typeof z.dictionary=="string"?z.dictionary=jr.string2buf(z.dictionary):Mh.call(z.dictionary)==="[object ArrayBuffer]"&&(z.dictionary=new Uint8Array(z.dictionary)),z.raw&&(E=bA.inflateSetDictionary(this.strm,z.dictionary),E!==xA)))throw new Error(kl[E])}wu.prototype.push=function(y,z){const E=this.strm,re=this.options.chunkSize,ce=this.options.dictionary;let fe,$e,Pe;if(this.ended)return!1;for(z===~~z?$e=z:$e=z===!0?CA:ud,Mh.call(y)==="[object ArrayBuffer]"?E.input=new Uint8Array(y):E.input=y,E.next_in=0,E.avail_in=E.input.length;;){for(E.avail_out===0&&(E.output=new Uint8Array(re),E.next_out=0,E.avail_out=re),fe=bA.inflate(E,$e),fe===cd&&ce&&(fe=bA.inflateSetDictionary(E,ce),fe===xA?fe=bA.inflate(E,$e):fe===gs&&(fe=cd));E.avail_in>0&&fe===Dd&&E.state.wrap>0&&y[E.next_in]!==0;)bA.inflateReset(E),fe=bA.inflate(E,$e);switch(fe){case Uh:case gs:case cd:case _s:return this.onEnd(fe),this.ended=!0,!1}if(Pe=E.avail_out,E.next_out&&(E.avail_out===0||fe===Dd))if(this.options.to==="string"){let Ge=jr.utf8border(E.output,E.next_out),Ye=E.next_out-Ge,ft=jr.buf2string(E.output,Ge);E.next_out=Ye,E.avail_out=re-Ye,Ye&&E.output.set(E.output.subarray(Ge,Ge+Ye),0),this.onData(ft)}else this.onData(E.output.length===E.next_out?E.output:E.output.subarray(0,E.next_out));if(!(fe===xA&&Pe===0)){if(fe===Dd)return fe=bA.inflateEnd(this.strm),this.onEnd(fe),this.ended=!0,!0;if(E.avail_in===0)break}}return!0},wu.prototype.onData=function(y){this.chunks.push(y)},wu.prototype.onEnd=function(y){y===xA&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Sn.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function zu(y,z){const E=new wu(z);if(E.push(y),E.err)throw E.msg||kl[E.err];return E.result}function Ku(y,z){return z=z||{},z.raw=!0,zu(y,z)}var Ad=wu,XA=zu,MA=Ku,dd=zu,YA=Vl,Rh={Inflate:Ad,inflate:XA,inflateRaw:MA,ungzip:dd,constants:YA};const{Deflate:fd,deflate:Vp,deflateRaw:jh,gzip:mm}=Go,{Inflate:gm,inflate:Xp,inflateRaw:zl,ungzip:Yp}=Rh;var Qh=fd,af=Vp,BA=jh,sh=mm,lh=gm,Nf=Xp,uh=zl,vp=Yp,yp=Vl,vm={Deflate:Qh,deflate:af,deflateRaw:BA,gzip:sh,Inflate:lh,inflate:Nf,inflateRaw:uh,ungzip:vp,constants:yp};const wp=[];for(let y=0;y<256;y++){let z=y;for(let E=0;E<8;E++)z&1?z=3988292384^z>>>1:z=z>>>1;wp[y]=z}const ch=4294967295;function Jp(y,z,E){let re=y;for(let ce=0;ce<E;ce++)re=wp[(re^z[ce])&255]^re>>>8;return re}function bl(y,z){return(Jp(ch,y,z)^ch)>>>0}function Pd(y,z,E){const re=y.readUint32(),ce=bl(new Uint8Array(y.buffer,y.byteOffset+y.offset-z-4,z),z);if(ce!==re)throw new Error(`CRC mismatch for chunk ${E}. Expected ${re}, found ${ce}`)}function ym(y,z){y.writeUint32(bl(new Uint8Array(y.buffer,y.byteOffset+y.offset-z,z),z))}function Kl(y,z,E){for(let re=0;re<E;re++)z[re]=y[re]}function Td(y,z,E,re){let ce=0;for(;ce<re;ce++)z[ce]=y[ce];for(;ce<E;ce++)z[ce]=y[ce]+z[ce-re]&255}function JA(y,z,E,re){let ce=0;if(E.length===0)for(;ce<re;ce++)z[ce]=y[ce];else for(;ce<re;ce++)z[ce]=y[ce]+E[ce]&255}function hd(y,z,E,re,ce){let fe=0;if(E.length===0){for(;fe<ce;fe++)z[fe]=y[fe];for(;fe<re;fe++)z[fe]=y[fe]+(z[fe-ce]>>1)&255}else{for(;fe<ce;fe++)z[fe]=y[fe]+(E[fe]>>1)&255;for(;fe<re;fe++)z[fe]=y[fe]+(z[fe-ce]+E[fe]>>1)&255}}function Il(y,z,E,re,ce){let fe=0;if(E.length===0){for(;fe<ce;fe++)z[fe]=y[fe];for(;fe<re;fe++)z[fe]=y[fe]+z[fe-ce]&255}else{for(;fe<ce;fe++)z[fe]=y[fe]+E[fe]&255;for(;fe<re;fe++)z[fe]=y[fe]+Ah(z[fe-ce],E[fe],E[fe-ce])&255}}function Ah(y,z,E){const re=y+z-E,ce=Math.abs(re-y),fe=Math.abs(re-z),$e=Math.abs(re-E);return ce<=fe&&ce<=$e?y:fe<=$e?z:E}function pd(y,z,E,re,ce,fe){switch(y){case 0:Kl(z,E,ce);break;case 1:Td(z,E,ce,fe);break;case 2:JA(z,E,re,ce);break;case 3:hd(z,E,re,ce,fe);break;case 4:Il(z,E,re,ce,fe);break;default:throw new Error(`Unsupported filter: ${y}`)}}const qp=new Uint16Array([255]),a=new Uint8Array(qp.buffer)[0]===255;function b(y){const{data:z,width:E,height:re,channels:ce,depth:fe}=y,$e=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],Pe=Math.ceil(fe/8)*ce,Ge=new Uint8Array(re*E*Pe);let Ye=0;for(let ft=0;ft<7;ft++){const Tt=$e[ft],Jt=Math.ceil((E-Tt.x)/Tt.xStep),At=Math.ceil((re-Tt.y)/Tt.yStep);if(Jt<=0||At<=0)continue;const In=Jt*Pe,bn=new Uint8Array(In);for(let On=0;On<At;On++){const cn=z[Ye++],gr=z.subarray(Ye,Ye+In);Ye+=In;const cr=new Uint8Array(In);pd(cn,gr,cr,bn,In,Pe),bn.set(cr);for(let Zn=0;Zn<Jt;Zn++){const li=Tt.x+Zn*Tt.xStep,ji=Tt.y+On*Tt.yStep;if(!(li>=E||ji>=re))for(let Bi=0;Bi<Pe;Bi++)Ge[(ji*E+li)*Pe+Bi]=cr[Zn*Pe+Bi]}}}if(fe===16){const ft=new Uint16Array(Ge.buffer);if(a)for(let Tt=0;Tt<ft.length;Tt++)ft[Tt]=ne(ft[Tt]);return ft}else return Ge}function ne(y){return(y&255)<<8|y>>8&255}const te=new Uint16Array([255]),Ne=new Uint8Array(te.buffer)[0]===255,et=new Uint8Array(0);function yt(y){const{data:z,width:E,height:re,channels:ce,depth:fe}=y,$e=Math.ceil(fe/8)*ce,Pe=Math.ceil(fe/8*ce*E),Ge=new Uint8Array(re*Pe);let Ye=et,ft=0,Tt,Jt;for(let At=0;At<re;At++){switch(Tt=z.subarray(ft+1,ft+1+Pe),Jt=Ge.subarray(At*Pe,(At+1)*Pe),z[ft]){case 0:Kl(Tt,Jt,Pe);break;case 1:Td(Tt,Jt,Pe,$e);break;case 2:JA(Tt,Jt,Ye,Pe);break;case 3:hd(Tt,Jt,Ye,Pe,$e);break;case 4:Il(Tt,Jt,Ye,Pe,$e);break;default:throw new Error(`Unsupported filter: ${z[ft]}`)}Ye=Jt,ft+=Pe+1}if(fe===16){const At=new Uint16Array(Ge.buffer);if(Ne)for(let In=0;In<At.length;In++)At[In]=Ft(At[In]);return At}else return Ge}function Ft(y){return(y&255)<<8|y>>8&255}const Nt=Uint8Array.of(137,80,78,71,13,10,26,10);function Ln(y){y.writeBytes(Nt)}function Qn(y){if(!Or(y.readBytes(Nt.length)))throw new Error("wrong PNG signature")}function Or(y){if(y.length<Nt.length)return!1;for(let z=0;z<Nt.length;z++)if(y[z]!==Nt[z])return!1;return!0}const Cr="tEXt",wi=0,Ki=new TextDecoder("latin1");function Ao(y){if(Ko(y),y.length===0||y.length>79)throw new Error("keyword length must be between 1 and 79")}const Io=/^[\u0000-\u00FF]*$/;function Ko(y){if(!Io.test(y))throw new Error("invalid latin1 text")}function Lo(y,z,E){const re=ka(z);y[re]=Ca(z,E-re.length-1)}function Aa(y,z,E){Ao(z),Ko(E);const re=z.length+1+E.length;y.writeUint32(re),y.writeChars(Cr),y.writeChars(z),y.writeByte(wi),y.writeChars(E),writeCrc(y,re+4)}function ka(y){for(y.mark();y.readByte()!==wi;);const z=y.offset;y.reset();const E=Ki.decode(y.readBytes(z-y.offset-1));return y.skip(1),Ao(E),E}function Ca(y,z){return Ki.decode(y.readBytes(z))}const Ha={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Ll={UNKNOWN:-1,DEFLATE:0},$u={UNKNOWN:-1,ADAPTIVE:0},tu={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},bc={NONE:0,BACKGROUND:1,PREVIOUS:2},ec={SOURCE:0,OVER:1};class Uu extends Di{constructor(E,re={}){super(E);Pl(this,"_checkCrc");Pl(this,"_inflator");Pl(this,"_png");Pl(this,"_apng");Pl(this,"_end");Pl(this,"_hasPalette");Pl(this,"_palette");Pl(this,"_hasTransparency");Pl(this,"_transparency");Pl(this,"_compressionMethod");Pl(this,"_filterMethod");Pl(this,"_interlaceMethod");Pl(this,"_colorType");Pl(this,"_isAnimated");Pl(this,"_numberOfFrames");Pl(this,"_numberOfPlays");Pl(this,"_frames");Pl(this,"_writingDataChunks");const{checkCrc:ce=!1}=re;this._checkCrc=ce,this._inflator=new lh,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Ll.UNKNOWN,this._filterMethod=$u.UNKNOWN,this._interlaceMethod=tu.UNKNOWN,this._colorType=Ha.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Qn(this);!this._end;){const E=this.readUint32(),re=this.readChars(4);this.decodeChunk(E,re)}return this.decodeImage(),this._png}decodeApng(){for(Qn(this);!this._end;){const E=this.readUint32(),re=this.readChars(4);this.decodeApngChunk(E,re)}return this.decodeApngImage(),this._apng}decodeChunk(E,re){const ce=this.offset;switch(re){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(E);break;case"IDAT":this.decodeIDAT(E);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(E);break;case"iCCP":this.decodeiCCP(E);break;case Cr:Lo(this._png.text,this,E);break;case"pHYs":this.decodepHYs();break;default:this.skip(E);break}if(this.offset-ce!==E)throw new Error(`Length mismatch while decoding chunk ${re}`);this._checkCrc?Pd(this,E+4,re):this.skip(4)}decodeApngChunk(E,re){const ce=this.offset;switch(re!=="fdAT"&&re!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),re){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(E);break;default:this.decodeChunk(E,re),this.offset=ce+E;break}if(this.offset-ce!==E)throw new Error(`Length mismatch while decoding chunk ${re}`);this._checkCrc?Pd(this,E+4,re):this.skip(4)}decodeIHDR(){const E=this._png;E.width=this.readUint32(),E.height=this.readUint32(),E.depth=Cc(this.readUint8());const re=this.readUint8();this._colorType=re;let ce;switch(re){case Ha.GREYSCALE:ce=1;break;case Ha.TRUECOLOUR:ce=3;break;case Ha.INDEXED_COLOUR:ce=1;break;case Ha.GREYSCALE_ALPHA:ce=2;break;case Ha.TRUECOLOUR_ALPHA:ce=4;break;case Ha.UNKNOWN:default:throw new Error(`Unknown color type: ${re}`)}if(this._png.channels=ce,this._compressionMethod=this.readUint8(),this._compressionMethod!==Ll.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const E={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(E)}decodePLTE(E){if(E%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${E}`);const re=E/3;this._hasPalette=!0;const ce=[];this._palette=ce;for(let fe=0;fe<re;fe++)ce.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(E){this._writingDataChunks=!0;const re=E,ce=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,ce,re)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(E)}decodeFDAT(E){this._writingDataChunks=!0;let re=E,ce=this.offset+this.byteOffset;if(ce+=4,re-=4,this._inflator.push(new Uint8Array(this.buffer,ce,re)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(E)}decodetRNS(E){switch(this._colorType){case Ha.GREYSCALE:case Ha.TRUECOLOUR:{if(E%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${E}`);if(E/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${E/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(E/2);for(let re=0;re<E/2;re++)this._transparency[re]=this.readUint16();break}case Ha.INDEXED_COLOUR:{if(E>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${E} vs ${this._palette.length})`);let re=0;for(;re<E;re++){const ce=this.readByte();this._palette[re].push(ce)}for(;re<this._palette.length;re++)this._palette[re].push(255);break}case Ha.UNKNOWN:case Ha.GREYSCALE_ALPHA:case Ha.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(E){const re=ka(this),ce=this.readUint8();if(ce!==Ll.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${ce}`);const fe=this.readBytes(E-re.length-2);this._png.iccEmbeddedProfile={name:re,profile:Nf(fe)}}decodepHYs(){const E=this.readUint32(),re=this.readUint32(),ce=this.readByte();this._png.resolution={x:E,y:re,unit:ce}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let E=0;E<this._numberOfFrames;E++){const re={sequenceNumber:this._frames[E].sequenceNumber,delayNumber:this._frames[E].delayNumber,delayDenominator:this._frames[E].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},ce=this._frames.at(E);if(ce){if(ce.data=yt({data:ce.data,width:ce.width,height:ce.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),E===0||ce.xOffset===0&&ce.yOffset===0&&ce.width===this._png.width&&ce.height===this._png.height)re.data=ce.data;else{const fe=this._apng.frames.at(E-1);this.disposeFrame(ce,fe,re),this.addFrameDataToCanvas(re,ce)}this._apng.frames.push(re)}}return this._apng}disposeFrame(E,re,ce){switch(E.disposeOp){case bc.NONE:break;case bc.BACKGROUND:for(let fe=0;fe<this._png.height;fe++)for(let $e=0;$e<this._png.width;$e++){const Pe=(fe*E.width+$e)*this._png.channels;for(let Ge=0;Ge<this._png.channels;Ge++)ce.data[Pe+Ge]=0}break;case bc.PREVIOUS:ce.data.set(re.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(E,re){const ce=1<<this._png.depth,fe=($e,Pe)=>{const Ge=(($e+re.yOffset)*this._png.width+re.xOffset+Pe)*this._png.channels,Ye=($e*re.width+Pe)*this._png.channels;return{index:Ge,frameIndex:Ye}};switch(re.blendOp){case ec.SOURCE:for(let $e=0;$e<re.height;$e++)for(let Pe=0;Pe<re.width;Pe++){const{index:Ge,frameIndex:Ye}=fe($e,Pe);for(let ft=0;ft<this._png.channels;ft++)E.data[Ge+ft]=re.data[Ye+ft]}break;case ec.OVER:for(let $e=0;$e<re.height;$e++)for(let Pe=0;Pe<re.width;Pe++){const{index:Ge,frameIndex:Ye}=fe($e,Pe);for(let ft=0;ft<this._png.channels;ft++){const Tt=re.data[Ye+this._png.channels-1]/ce,Jt=ft%(this._png.channels-1)===0?1:re.data[Ye+ft],At=Math.floor(Tt*Jt+(1-Tt)*E.data[Ge+ft]);E.data[Ge+ft]+=At}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var re;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const E=this._isAnimated?((re=this._frames)==null?void 0:re.at(0)).data:this._inflator.result;if(this._filterMethod!==$u.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===tu.NO_INTERLACE)this._png.data=yt({data:E,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===tu.ADAM7)this._png.data=b({data:E,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const E=this._inflator.result,re=this._frames.at(-1);re?re.data=E:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:bc.NONE,blendOp:ec.SOURCE,data:E}),this._inflator=new lh,this._writingDataChunks=!1}}function Cc(y){if(y!==1&&y!==2&&y!==4&&y!==8&&y!==16)throw new Error(`invalid bit depth: ${y}`);return y}const cc={level:3};class So extends null{constructor(E,re={}){var ce;super();Pl(this,"_png");Pl(this,"_zlibOptions");Pl(this,"_colorType");Pl(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=wf(wf({},cc),re.zlib),this._png=this._checkData(E),this._interlaceMethod=(ce=re.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?ce:InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if(writeSignature(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[E,re]of Object.entries(this._png.text))encodetEXt(this,E,re);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(CompressionMethod.DEFLATE),this.writeByte(FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),writeCrc(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),writeCrc(this,4)}encodePLTE(){var re;const E=((re=this._png.palette)==null?void 0:re.length)*3;this.writeUint32(E),this.writeChars("PLTE");for(const ce of this._png.palette)this.writeByte(ce[0]),this.writeByte(ce[1]),this.writeByte(ce[2]);writeCrc(this,4+E)}encodeTRNS(){const E=this._png.palette.filter(re=>re.at(-1)!==255);this.writeUint32(E.length),this.writeChars("tRNS");for(const re of E)this.writeByte(re.at(-1));writeCrc(this,4+E.length)}encodeIDAT(E){this.writeUint32(E.length),this.writeChars("IDAT"),this.writeBytes(E),writeCrc(this,E.length+4)}encodeData(){const{width:E,height:re,channels:ce,depth:fe,data:$e}=this._png,Pe=fe<=8?Math.ceil(E*fe/8)*ce:Math.ceil(E*fe/8*ce/2),Ge=new IOBuffer().setBigEndian();let Ye=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Jt=0;Jt<re;Jt++)Ge.writeByte(0),fe===16?Ye=$s($e,Ge,Pe,Ye):Ye=ru($e,Ge,Pe,Ye);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Ye=Of(this._png,$e,Ge,Ye));const ft=Ge.toArray(),Tt=deflate(ft,this._zlibOptions);this.encodeIDAT(Tt)}_checkData(E){const{colorType:re,channels:ce,depth:fe}=nu(E,E.palette),$e={width:$l(E.width,"width"),height:$l(E.height,"height"),channels:ce,data:E.data,depth:fe,text:E.text,palette:E.palette};this._colorType=re;const Pe=fe<8?Math.ceil($e.width*fe/8)*$e.height*ce:$e.width*$e.height*ce;if($e.data.length!==Pe)throw new RangeError(`wrong data size. Found ${$e.data.length}, expected ${Pe}`);return $e}}function $l(y,z){if(Number.isInteger(y)&&y>0)return y;throw new TypeError(`${z} must be a positive integer`)}function nu(y,z){const{channels:E=4,depth:re=8}=y;if(E!==4&&E!==3&&E!==2&&E!==1)throw new RangeError(`unsupported number of channels: ${E}`);const ce={channels:E,depth:re,colorType:ColorType.UNKNOWN};switch(E){case 4:ce.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:ce.colorType=ColorType.TRUECOLOUR;break;case 1:z?ce.colorType=ColorType.INDEXED_COLOUR:ce.colorType=ColorType.GREYSCALE;break;case 2:ce.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return ce}function ru(y,z,E,re){for(let ce=0;ce<E;ce++)z.writeByte(y[re++]);return re}function Of(y,z,E,re){const ce=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:fe,height:$e,channels:Pe,depth:Ge}=y;let Ye=0;Ge===16?Ye=Pe*Ge/8/2:Ye=Pe*Ge/8;for(let ft=0;ft<7;ft++){const Tt=ce[ft],Jt=Math.floor((fe-Tt.x+Tt.xStep-1)/Tt.xStep),At=Math.floor(($e-Tt.y+Tt.yStep-1)/Tt.yStep);if(Jt<=0||At<=0)continue;const In=Jt*Ye;for(let bn=0;bn<At;bn++){const On=Tt.y+bn*Tt.yStep,cn=Ge<=8?new Uint8Array(In):new Uint16Array(In);let gr=0;for(let cr=0;cr<Jt;cr++){const Zn=Tt.x+cr*Tt.xStep;if(Zn<fe&&On<$e){const li=(On*fe+Zn)*Ye;for(let ji=0;ji<Ye;ji++)cn[gr++]=z[li+ji]}}if(E.writeByte(0),Ge===8)E.writeBytes(cn);else if(Ge===16)for(const cr of cn)E.writeByte(cr>>8&255),E.writeByte(cr&255)}}return re}function $s(y,z,E,re){for(let ce=0;ce<E;ce++)z.writeUint16(y[re++]);return re}var Es;(function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.METRE=1]="METRE"})(Es||(Es={}));function iA(y,z){return new Uu(y,z).decode()}function Ac(y,z){return new PngEncoder(y,z).encode()}function dh(y,z){return new PngDecoder(y,z).decodeApng()}var Ua=function(){return typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:this}();function EA(){Ua.console&&typeof Ua.console.log=="function"&&Ua.console.log.apply(Ua.console,arguments)}var pl={log:EA,warn:function(y){Ua.console&&(typeof Ua.console.warn=="function"?Ua.console.warn.apply(Ua.console,arguments):EA.call(null,arguments))},error:function(y){Ua.console&&(typeof Ua.console.error=="function"?Ua.console.error.apply(Ua.console,arguments):EA(y))}};function dc(y,z,E){var re=new XMLHttpRequest;re.open("GET",y),re.responseType="blob",re.onload=function(){Pf(re.response,z,E)},re.onerror=function(){pl.error("could not download file")},re.send()}function kd(y){var z=new XMLHttpRequest;z.open("HEAD",y,!1);try{z.send()}catch(E){}return z.status>=200&&z.status<=299}function Df(y){try{y.dispatchEvent(new MouseEvent("click"))}catch(E){var z=document.createEvent("MouseEvents");z.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(z)}}var Pf=Ua.saveAs||((typeof window=="undefined"?"undefined":(0,x.Z)(window))!=="object"||window!==Ua?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(y,z,E){var re=Ua.URL||Ua.webkitURL,ce=document.createElement("a");z=z||y.name||"download",ce.download=z,ce.rel="noopener",typeof y=="string"?(ce.href=y,ce.origin!==location.origin?kd(ce.href)?dc(y,z,E):Df(ce,ce.target="_blank"):Df(ce)):(ce.href=re.createObjectURL(y),setTimeout(function(){re.revokeObjectURL(ce.href)},4e4),setTimeout(function(){Df(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(y,z,E){if(z=z||y.name||"download",typeof y=="string")if(kd(y))dc(y,z,E);else{var re=document.createElement("a");re.href=y,re.target="_blank",setTimeout(function(){Df(re)})}else navigator.msSaveOrOpenBlob(function(ce,fe){return fe===void 0?fe={autoBom:!1}:(0,x.Z)(fe)!=="object"&&(pl.warn("Deprecated: Expected third argument to be a object"),fe={autoBom:!fe}),fe.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ce.type)?new Blob(["\uFEFF",ce],{type:ce.type}):ce}(y,E),z)}:function(y,z,E,re){if((re=re||open("","_blank"))&&(re.document.title=re.document.body.innerText="downloading..."),typeof y=="string")return dc(y,z,E);var ce=y.type==="application/octet-stream",fe=/constructor/i.test(Ua.HTMLElement)||Ua.safari,$e=/CriOS\/[\d]+/.test(navigator.userAgent);if(($e||ce&&fe)&&(typeof FileReader=="undefined"?"undefined":(0,x.Z)(FileReader))==="object"){var Pe=new FileReader;Pe.onloadend=function(){var ft=Pe.result;ft=$e?ft:ft.replace(/^data:[^;]*;/,"data:attachment/file;"),re?re.location.href=ft:location=ft,re=null},Pe.readAsDataURL(y)}else{var Ge=Ua.URL||Ua.webkitURL,Ye=Ge.createObjectURL(y);re?re.location=Ye:location.href=Ye,re=null,setTimeout(function(){Ge.revokeObjectURL(Ye)},4e4)}});function Jm(y){var z;y=y||"",this.ok=!1,y.charAt(0)=="#"&&(y=y.substr(1,6)),y={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[y=(y=y.replace(/ /g,"")).toLowerCase()]||y;for(var E=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Pe){return[parseInt(Pe[1]),parseInt(Pe[2]),parseInt(Pe[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Pe){return[parseInt(Pe[1],16),parseInt(Pe[2],16),parseInt(Pe[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Pe){return[parseInt(Pe[1]+Pe[1],16),parseInt(Pe[2]+Pe[2],16),parseInt(Pe[3]+Pe[3],16)]}}],re=0;re<E.length;re++){var ce=E[re].re,fe=E[re].process,$e=ce.exec(y);$e&&(z=fe($e),this.r=z[0],this.g=z[1],this.b=z[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Pe=this.r.toString(16),Ge=this.g.toString(16),Ye=this.b.toString(16);return Pe.length==1&&(Pe="0"+Pe),Ge.length==1&&(Ge="0"+Ge),Ye.length==1&&(Ye="0"+Ye),"#"+Pe+Ge+Ye}}var bp=Ua.atob.bind(Ua),wm=Ua.btoa.bind(Ua);function Cp(y,z){var E=y[0],re=y[1],ce=y[2],fe=y[3];E=Xc(E,re,ce,fe,z[0],7,-680876936),fe=Xc(fe,E,re,ce,z[1],12,-389564586),ce=Xc(ce,fe,E,re,z[2],17,606105819),re=Xc(re,ce,fe,E,z[3],22,-1044525330),E=Xc(E,re,ce,fe,z[4],7,-176418897),fe=Xc(fe,E,re,ce,z[5],12,1200080426),ce=Xc(ce,fe,E,re,z[6],17,-1473231341),re=Xc(re,ce,fe,E,z[7],22,-45705983),E=Xc(E,re,ce,fe,z[8],7,1770035416),fe=Xc(fe,E,re,ce,z[9],12,-1958414417),ce=Xc(ce,fe,E,re,z[10],17,-42063),re=Xc(re,ce,fe,E,z[11],22,-1990404162),E=Xc(E,re,ce,fe,z[12],7,1804603682),fe=Xc(fe,E,re,ce,z[13],12,-40341101),ce=Xc(ce,fe,E,re,z[14],17,-1502002290),E=Mc(E,re=Xc(re,ce,fe,E,z[15],22,1236535329),ce,fe,z[1],5,-165796510),fe=Mc(fe,E,re,ce,z[6],9,-1069501632),ce=Mc(ce,fe,E,re,z[11],14,643717713),re=Mc(re,ce,fe,E,z[0],20,-373897302),E=Mc(E,re,ce,fe,z[5],5,-701558691),fe=Mc(fe,E,re,ce,z[10],9,38016083),ce=Mc(ce,fe,E,re,z[15],14,-660478335),re=Mc(re,ce,fe,E,z[4],20,-405537848),E=Mc(E,re,ce,fe,z[9],5,568446438),fe=Mc(fe,E,re,ce,z[14],9,-1019803690),ce=Mc(ce,fe,E,re,z[3],14,-187363961),re=Mc(re,ce,fe,E,z[8],20,1163531501),E=Mc(E,re,ce,fe,z[13],5,-1444681467),fe=Mc(fe,E,re,ce,z[2],9,-51403784),ce=Mc(ce,fe,E,re,z[7],14,1735328473),E=Yc(E,re=Mc(re,ce,fe,E,z[12],20,-1926607734),ce,fe,z[5],4,-378558),fe=Yc(fe,E,re,ce,z[8],11,-2022574463),ce=Yc(ce,fe,E,re,z[11],16,1839030562),re=Yc(re,ce,fe,E,z[14],23,-35309556),E=Yc(E,re,ce,fe,z[1],4,-1530992060),fe=Yc(fe,E,re,ce,z[4],11,1272893353),ce=Yc(ce,fe,E,re,z[7],16,-155497632),re=Yc(re,ce,fe,E,z[10],23,-1094730640),E=Yc(E,re,ce,fe,z[13],4,681279174),fe=Yc(fe,E,re,ce,z[0],11,-358537222),ce=Yc(ce,fe,E,re,z[3],16,-722521979),re=Yc(re,ce,fe,E,z[6],23,76029189),E=Yc(E,re,ce,fe,z[9],4,-640364487),fe=Yc(fe,E,re,ce,z[12],11,-421815835),ce=Yc(ce,fe,E,re,z[15],16,530742520),E=Jc(E,re=Yc(re,ce,fe,E,z[2],23,-995338651),ce,fe,z[0],6,-198630844),fe=Jc(fe,E,re,ce,z[7],10,1126891415),ce=Jc(ce,fe,E,re,z[14],15,-1416354905),re=Jc(re,ce,fe,E,z[5],21,-57434055),E=Jc(E,re,ce,fe,z[12],6,1700485571),fe=Jc(fe,E,re,ce,z[3],10,-1894986606),ce=Jc(ce,fe,E,re,z[10],15,-1051523),re=Jc(re,ce,fe,E,z[1],21,-2054922799),E=Jc(E,re,ce,fe,z[8],6,1873313359),fe=Jc(fe,E,re,ce,z[15],10,-30611744),ce=Jc(ce,fe,E,re,z[6],15,-1560198380),re=Jc(re,ce,fe,E,z[13],21,1309151649),E=Jc(E,re,ce,fe,z[4],6,-145523070),fe=Jc(fe,E,re,ce,z[11],10,-1120210379),ce=Jc(ce,fe,E,re,z[2],15,718787259),re=Jc(re,ce,fe,E,z[9],21,-343485551),y[0]=Md(E,y[0]),y[1]=Md(re,y[1]),y[2]=Md(ce,y[2]),y[3]=Md(fe,y[3])}function xp(y,z,E,re,ce,fe){return z=Md(Md(z,y),Md(re,fe)),Md(z<<ce|z>>>32-ce,E)}function Xc(y,z,E,re,ce,fe,$e){return xp(z&E|~z&re,y,z,ce,fe,$e)}function Mc(y,z,E,re,ce,fe,$e){return xp(z&re|E&~re,y,z,ce,fe,$e)}function Yc(y,z,E,re,ce,fe,$e){return xp(z^E^re,y,z,ce,fe,$e)}function Jc(y,z,E,re,ce,fe,$e){return xp(E^(z|~re),y,z,ce,fe,$e)}function qm(y){var z,E=y.length,re=[1732584193,-271733879,-1732584194,271733878];for(z=64;z<=y.length;z+=64)Cp(re,em(y.substring(z-64,z)));y=y.substring(z-64);var ce=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(z=0;z<y.length;z++)ce[z>>2]|=y.charCodeAt(z)<<(z%4<<3);if(ce[z>>2]|=128<<(z%4<<3),z>55)for(Cp(re,ce),z=0;z<16;z++)ce[z]=0;return ce[14]=8*E,Cp(re,ce),re}function em(y){var z,E=[];for(z=0;z<64;z+=4)E[z>>2]=y.charCodeAt(z)+(y.charCodeAt(z+1)<<8)+(y.charCodeAt(z+2)<<16)+(y.charCodeAt(z+3)<<24);return E}var UA="0123456789abcdef".split("");function eg(y){for(var z="",E=0;E<4;E++)z+=UA[y>>8*E+4&15]+UA[y>>8*E&15];return z}function tm(y){return String.fromCharCode(255&y,(65280&y)>>8,(16711680&y)>>16,(4278190080&y)>>24)}function bm(y){return qm(y).map(tm).join("")}var Qg=function(y){for(var z=0;z<y.length;z++)y[z]=eg(y[z]);return y.join("")}(qm("hello"))!="5d41402abc4b2a76b9719d911017c592";function Md(y,z){if(Qg){var E=(65535&y)+(65535&z);return(y>>16)+(z>>16)+(E>>16)<<16|65535&E}return y+z&4294967295}function Tf(y,z){var E,re,ce,fe;if(y!==E){for(var $e=(ce=y,fe=1+(256/y.length|0),new Array(fe+1).join(ce)),Pe=[],Ge=0;Ge<256;Ge++)Pe[Ge]=Ge;var Ye=0;for(Ge=0;Ge<256;Ge++){var ft=Pe[Ge];Ye=(Ye+ft+$e.charCodeAt(Ge))%256,Pe[Ge]=Pe[Ye],Pe[Ye]=ft}E=y,re=Pe}else Pe=re;var Tt=z.length,Jt=0,At=0,In="";for(Ge=0;Ge<Tt;Ge++)At=(At+(ft=Pe[Jt=(Jt+1)%256]))%256,Pe[Jt]=Pe[At],Pe[At]=ft,$e=Pe[(Pe[Jt]+Pe[At])%256],In+=String.fromCharCode(z.charCodeAt(Ge)^$e);return In}var Bp={print:4,modify:8,copy:16,"annot-forms":32};function zh(y,z,E,re){this.v=1,this.r=2;var ce=192;y.forEach(function(Pe){if(Bp.perm!==void 0)throw new Error("Invalid permission: "+Pe);ce+=Bp[Pe]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var fe=(z+this.padding).substr(0,32),$e=(E+this.padding).substr(0,32);this.O=this.processOwnerPassword(fe,$e),this.P=-(1+(255^ce)),this.encryptionKey=bm(fe+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(re)).substr(0,5),this.U=Tf(this.encryptionKey,this.padding)}function md(y){if(/[^\u0000-\u00ff]/.test(y))throw new Error("Invalid PDF Name Object: "+y+", Only accept ASCII characters.");for(var z="",E=y.length,re=0;re<E;re++){var ce=y.charCodeAt(re);z+=ce<33||ce===35||ce===37||ce===40||ce===41||ce===47||ce===60||ce===62||ce===91||ce===93||ce===123||ce===125||ce>126?"#"+("0"+ce.toString(16)).slice(-2):y[re]}return z}function tg(y){if((0,x.Z)(y)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var z={};this.subscribe=function(E,re,ce){if(ce=ce||!1,typeof E!="string"||typeof re!="function"||typeof ce!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");z.hasOwnProperty(E)||(z[E]={});var fe=Math.random().toString(35);return z[E][fe]=[re,!!ce],fe},this.unsubscribe=function(E){for(var re in z)if(z[re][E])return delete z[re][E],Object.keys(z[re]).length===0&&delete z[re],!0;return!1},this.publish=function(E){if(z.hasOwnProperty(E)){var re=Array.prototype.slice.call(arguments,1),ce=[];for(var fe in z[E]){var $e=z[E][fe];try{$e[0].apply(y,re)}catch(Pe){Ua.console&&pl.error("jsPDF PubSub Error",Pe.message,Pe)}$e[1]&&ce.push(fe)}ce.length&&ce.forEach(this.unsubscribe)}},this.getTopics=function(){return z}}function Ep(y){if(!(this instanceof Ep))return new Ep(y);var z="opacity,stroke-opacity".split(",");for(var E in y)y.hasOwnProperty(E)&&z.indexOf(E)>=0&&(this[E]=y[E]);this.id="",this.objectNumber=-1}function Cm(y,z){this.gState=y,this.matrix=z,this.id="",this.objectNumber=-1}function kf(y,z,E,re,ce){if(!(this instanceof kf))return new kf(y,z,E,re,ce);this.type=y==="axial"?2:3,this.coords=z,this.colors=E,Cm.call(this,re,ce)}function Mf(y,z,E,re,ce){if(!(this instanceof Mf))return new Mf(y,z,E,re,ce);this.boundingBox=y,this.xStep=z,this.yStep=E,this.stream="",this.cloneIndex=0,Cm.call(this,re,ce)}function Oa(y){var z,E=typeof arguments[0]=="string"?arguments[0]:"p",re=arguments[1],ce=arguments[2],fe=arguments[3],$e=[],Pe=1,Ge=16,Ye="S",ft=null;(0,x.Z)(y=y||{})==="object"&&(E=y.orientation,re=y.unit||re,ce=y.format||ce,fe=y.compress||y.compressPdf||fe,(ft=y.encryption||null)!==null&&(ft.userPassword=ft.userPassword||"",ft.ownerPassword=ft.ownerPassword||"",ft.userPermissions=ft.userPermissions||[]),Pe=typeof y.userUnit=="number"?Math.abs(y.userUnit):1,y.precision!==void 0&&(z=y.precision),y.floatPrecision!==void 0&&(Ge=y.floatPrecision),Ye=y.defaultPathOperation||"S"),$e=y.filters||(fe===!0?["FlateEncode"]:$e),re=re||"mm",E=(""+(E||"P")).toLowerCase();var Tt=y.putOnlyUsedFonts||!1,Jt={},At={internal:{},__private__:{}};At.__private__.PubSub=tg;var In="1.3",bn=At.__private__.getPdfVersion=function(){return In};At.__private__.setPdfVersion=function(Xe){In=Xe};var On={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};At.__private__.getPageFormats=function(){return On};var cn=At.__private__.getPageFormat=function(Xe){return On[Xe]};ce=ce||"a4";var gr="compat",cr="advanced",Zn=gr;function li(){this.saveGraphicsState(),Pn(new ds(js,0,0,-js,0,Pp()*js).toString()+" cm"),this.setFontSize(this.getFontSize()/js),Ye="n",Zn=cr}function ji(){this.restoreGraphicsState(),Ye="S",Zn=gr}var Bi=At.__private__.combineFontStyleAndFontWeight=function(Xe,Ht){if(Xe=="bold"&&Ht=="normal"||Xe=="bold"&&Ht==400||Xe=="normal"&&Ht=="italic"||Xe=="bold"&&Ht=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Ht&&(Xe=Ht==400||Ht==="normal"?Xe==="italic"?"italic":"normal":Ht!=700&&Ht!=="bold"||Xe!=="normal"?(Ht==700?"bold":Ht)+""+Xe:"bold"),Xe};At.advancedAPI=function(Xe){var Ht=Zn===gr;return Ht&&li.call(this),typeof Xe!="function"||(Xe(this),Ht&&ji.call(this)),this},At.compatAPI=function(Xe){var Ht=Zn===cr;return Ht&&ji.call(this),typeof Xe!="function"||(Xe(this),Ht&&li.call(this)),this},At.isAdvancedAPI=function(){return Zn===cr};var Fr,Xn=function(Xe){if(Zn!==cr)throw new Error(Xe+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Wr=At.roundToPrecision=At.__private__.roundToPrecision=function(Xe,Ht){var Rn=z||Ht;if(isNaN(Xe)||isNaN(Rn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Xe.toFixed(Rn).replace(/0+$/,"")};Fr=At.hpf=At.__private__.hpf=typeof Ge=="number"?function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return Wr(Xe,Ge)}:Ge==="smart"?function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return Wr(Xe,Xe>-1&&Xe<1?16:5)}:function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return Wr(Xe,16)};var ln=At.f2=At.__private__.f2=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.f2");return Wr(Xe,2)},Dn=At.__private__.f3=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.f3");return Wr(Xe,3)},mr=At.scale=At.__private__.scale=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.scale");return Zn===gr?Xe*js:Zn===cr?Xe:void 0},dr=function(Xe){return mr(function(Ht){return Zn===gr?Pp()-Ht:Zn===cr?Ht:void 0}(Xe))};At.__private__.setPrecision=At.setPrecision=function(Xe){typeof parseInt(Xe,10)=="number"&&(z=parseInt(Xe,10))};var pi,Ci="00000000000000000000000000000000",Si=At.__private__.getFileId=function(){return Ci},ei=At.__private__.setFileId=function(Xe){return Ci=Xe!==void 0&&/^[a-fA-F0-9]{32}$/.test(Xe)?Xe.toUpperCase():Ci.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),ft!==null&&(Uc=new zh(ft.userPermissions,ft.userPassword,ft.ownerPassword,Ci)),Ci};At.setFileId=function(Xe){return ei(Xe),this},At.getFileId=function(){return Si()};var Oi=At.__private__.convertDateToPDFDate=function(Xe){var Ht=Xe.getTimezoneOffset(),Rn=Ht<0?"+":"-",pr=Math.floor(Math.abs(Ht/60)),$r=Math.abs(Ht%60),$i=[Rn,rr(pr),"'",rr($r),"'"].join("");return["D:",Xe.getFullYear(),rr(Xe.getMonth()+1),rr(Xe.getDate()),rr(Xe.getHours()),rr(Xe.getMinutes()),rr(Xe.getSeconds()),$i].join("")},Oo=At.__private__.convertPDFDateToDate=function(Xe){var Ht=parseInt(Xe.substr(2,4),10),Rn=parseInt(Xe.substr(6,2),10)-1,pr=parseInt(Xe.substr(8,2),10),$r=parseInt(Xe.substr(10,2),10),$i=parseInt(Xe.substr(12,2),10),so=parseInt(Xe.substr(14,2),10);return new Date(Ht,Rn,pr,$r,$i,so,0)},ao=At.__private__.setCreationDate=function(Xe){var Ht;if(Xe===void 0&&(Xe=new Date),Xe instanceof Date)Ht=Oi(Xe);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(Xe))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Ht=Xe}return pi=Ht},rn=At.__private__.getCreationDate=function(Xe){var Ht=pi;return Xe==="jsDate"&&(Ht=Oo(pi)),Ht};At.setCreationDate=function(Xe){return ao(Xe),this},At.getCreationDate=function(Xe){return rn(Xe)};var Kn,rr=At.__private__.padd2=function(Xe){return("0"+parseInt(Xe)).slice(-2)},yr=At.__private__.padd2Hex=function(Xe){return("00"+(Xe=Xe.toString())).substr(Xe.length)},Pr=0,Xr=[],Ei=[],Ii=0,Yi=[],Bo=[],da=!1,ca=Ei;At.__private__.setCustomOutputDestination=function(Xe){da=!0,ca=Xe};var Xa=function(Xe){da||(ca=Xe)};At.__private__.resetCustomOutputDestination=function(){da=!1,ca=Ei};var Pn=At.__private__.out=function(Xe){return Xe=Xe.toString(),Ii+=Xe.length+1,ca.push(Xe),ca},fa=At.__private__.write=function(Xe){return Pn(arguments.length===1?Xe.toString():Array.prototype.join.call(arguments," "))},Js=At.__private__.getArrayBuffer=function(Xe){for(var Ht=Xe.length,Rn=new ArrayBuffer(Ht),pr=new Uint8Array(Rn);Ht--;)pr[Ht]=Xe.charCodeAt(Ht);return Rn},as=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];At.__private__.getStandardFonts=function(){return as};var vo=y.fontSize||16;At.__private__.setFontSize=At.setFontSize=function(Xe){return vo=Zn===cr?Xe/js:Xe,this};var ss,Fa=At.__private__.getFontSize=At.getFontSize=function(){return Zn===gr?vo:vo*js},is=y.R2L||!1;At.__private__.setR2L=At.setR2L=function(Xe){return is=Xe,this},At.__private__.getR2L=At.getR2L=function(){return is};var Ja,iu=At.__private__.setZoomMode=function(Xe){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Xe))ss=Xe;else if(isNaN(Xe)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(Xe)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Xe+'" is not recognized.');ss=Xe}else ss=parseInt(Xe,10)};At.__private__.getZoomMode=function(){return ss};var ml,Ds=At.__private__.setPageMode=function(Xe){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Xe)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Xe+'" is not recognized.');Ja=Xe};At.__private__.getPageMode=function(){return Ja};var Cl=At.__private__.setLayoutMode=function(Xe){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Xe)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Xe+'" is not recognized.');ml=Xe};At.__private__.getLayoutMode=function(){return ml},At.__private__.setDisplayMode=At.setDisplayMode=function(Xe,Ht,Rn){return iu(Xe),Cl(Ht),Ds(Rn),this};var gl={title:"",subject:"",author:"",keywords:"",creator:""};At.__private__.getDocumentProperty=function(Xe){if(Object.keys(gl).indexOf(Xe)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return gl[Xe]},At.__private__.getDocumentProperties=function(){return gl},At.__private__.setDocumentProperties=At.setProperties=At.setDocumentProperties=function(Xe){for(var Ht in gl)gl.hasOwnProperty(Ht)&&Xe[Ht]&&(gl[Ht]=Xe[Ht]);return this},At.__private__.setDocumentProperty=function(Xe,Ht){if(Object.keys(gl).indexOf(Xe)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return gl[Xe]=Ht};var Ra,js,Ka,xc,Nl,rl={},il={},Wu=[],es={},Iu={},hs={},Ps={},Gu=null,al=0,As=[],ou=new tg(At),Sp=y.hotfixes||[],IA={},mh={},zf=[],ds=function Xe(Ht,Rn,pr,$r,$i,so){if(!(this instanceof Xe))return new Xe(Ht,Rn,pr,$r,$i,so);isNaN(Ht)&&(Ht=1),isNaN(Rn)&&(Rn=0),isNaN(pr)&&(pr=0),isNaN($r)&&($r=1),isNaN($i)&&($i=0),isNaN(so)&&(so=0),this._matrix=[Ht,Rn,pr,$r,$i,so]};Object.defineProperty(ds.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Xe){this._matrix[0]=Xe}}),Object.defineProperty(ds.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Xe){this._matrix[1]=Xe}}),Object.defineProperty(ds.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Xe){this._matrix[2]=Xe}}),Object.defineProperty(ds.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Xe){this._matrix[3]=Xe}}),Object.defineProperty(ds.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Xe){this._matrix[4]=Xe}}),Object.defineProperty(ds.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Xe){this._matrix[5]=Xe}}),Object.defineProperty(ds.prototype,"a",{get:function(){return this._matrix[0]},set:function(Xe){this._matrix[0]=Xe}}),Object.defineProperty(ds.prototype,"b",{get:function(){return this._matrix[1]},set:function(Xe){this._matrix[1]=Xe}}),Object.defineProperty(ds.prototype,"c",{get:function(){return this._matrix[2]},set:function(Xe){this._matrix[2]=Xe}}),Object.defineProperty(ds.prototype,"d",{get:function(){return this._matrix[3]},set:function(Xe){this._matrix[3]=Xe}}),Object.defineProperty(ds.prototype,"e",{get:function(){return this._matrix[4]},set:function(Xe){this._matrix[4]=Xe}}),Object.defineProperty(ds.prototype,"f",{get:function(){return this._matrix[5]},set:function(Xe){this._matrix[5]=Xe}}),Object.defineProperty(ds.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ds.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ds.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ds.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ds.prototype.join=function(Xe){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Fr).join(Xe)},ds.prototype.multiply=function(Xe){var Ht=Xe.sx*this.sx+Xe.shy*this.shx,Rn=Xe.sx*this.shy+Xe.shy*this.sy,pr=Xe.shx*this.sx+Xe.sy*this.shx,$r=Xe.shx*this.shy+Xe.sy*this.sy,$i=Xe.tx*this.sx+Xe.ty*this.shx+this.tx,so=Xe.tx*this.shy+Xe.ty*this.sy+this.ty;return new ds(Ht,Rn,pr,$r,$i,so)},ds.prototype.decompose=function(){var Xe=this.sx,Ht=this.shy,Rn=this.shx,pr=this.sy,$r=this.tx,$i=this.ty,so=Math.sqrt(Xe*Xe+Ht*Ht),Ia=(Xe/=so)*Rn+(Ht/=so)*pr;Rn-=Xe*Ia,pr-=Ht*Ia;var ja=Math.sqrt(Rn*Rn+pr*pr);return Ia/=ja,Xe*(pr/=ja)<Ht*(Rn/=ja)&&(Xe=-Xe,Ht=-Ht,Ia=-Ia,so=-so),{scale:new ds(so,0,0,ja,0,0),translate:new ds(1,0,0,1,$r,$i),rotate:new ds(Xe,Ht,-Ht,Xe,0,0),skew:new ds(1,0,Ia,1,0,0)}},ds.prototype.toString=function(Xe){return this.join(" ")},ds.prototype.inversed=function(){var Xe=this.sx,Ht=this.shy,Rn=this.shx,pr=this.sy,$r=this.tx,$i=this.ty,so=1/(Xe*pr-Ht*Rn),Ia=pr*so,ja=-Ht*so,xs=-Rn*so,Qs=Xe*so;return new ds(Ia,ja,xs,Qs,-Ia*$r-xs*$i,-ja*$r-Qs*$i)},ds.prototype.applyToPoint=function(Xe){var Ht=Xe.x*this.sx+Xe.y*this.shx+this.tx,Rn=Xe.x*this.shy+Xe.y*this.sy+this.ty;return new xh(Ht,Rn)},ds.prototype.applyToRectangle=function(Xe){var Ht=this.applyToPoint(Xe),Rn=this.applyToPoint(new xh(Xe.x+Xe.w,Xe.y+Xe.h));return new Om(Ht.x,Ht.y,Rn.x-Ht.x,Rn.y-Ht.y)},ds.prototype.clone=function(){var Xe=this.sx,Ht=this.shy,Rn=this.shx,pr=this.sy,$r=this.tx,$i=this.ty;return new ds(Xe,Ht,Rn,pr,$r,$i)},At.Matrix=ds;var gh=At.matrixMult=function(Xe,Ht){return Ht.multiply(Xe)},vh=new ds(1,0,0,1,0,0);At.unitMatrix=At.identityMatrix=vh;var jd=function(Xe,Ht){if(!Iu[Xe]){var Rn=(Ht instanceof kf?"Sh":"P")+(Object.keys(es).length+1).toString(10);Ht.id=Rn,Iu[Xe]=Rn,es[Rn]=Ht,ou.publish("addPattern",Ht)}};At.ShadingPattern=kf,At.TilingPattern=Mf,At.addShadingPattern=function(Xe,Ht){return Xn("addShadingPattern()"),jd(Xe,Ht),this},At.beginTilingPattern=function(Xe){Xn("beginTilingPattern()"),Dm(Xe.boundingBox[0],Xe.boundingBox[1],Xe.boundingBox[2]-Xe.boundingBox[0],Xe.boundingBox[3]-Xe.boundingBox[1],Xe.matrix)},At.endTilingPattern=function(Xe,Ht){Xn("endTilingPattern()"),Ht.stream=Bo[Kn].join(`
|
|
|
`),jd(Xe,Ht),ou.publish("endTilingPattern",Ht),zf.pop().restore()};var Qd,fc=At.__private__.newObject=function(){var Xe=eA();return aA(Xe,!0),Xe},eA=At.__private__.newObjectDeferred=function(){return Pr++,Xr[Pr]=function(){return Ii},Pr},aA=function(Xe,Ht){return Ht=typeof Ht=="boolean"&&Ht,Xr[Xe]=Ii,Ht&&Pn(Xe+" 0 obj"),Xe},Fp=At.__private__.newAdditionalObject=function(){var Xe={objId:eA(),content:""};return Yi.push(Xe),Xe},Wh=eA(),df=eA(),Kf=At.__private__.decodeColorString=function(Xe){var Ht=Xe.split(" ");if(Ht.length!==2||Ht[1]!=="g"&&Ht[1]!=="G")Ht.length!==5||Ht[4]!=="k"&&Ht[4]!=="K"||(Ht=[(1-Ht[0])*(1-Ht[3]),(1-Ht[1])*(1-Ht[3]),(1-Ht[2])*(1-Ht[3]),"r"]);else{var Rn=parseFloat(Ht[0]);Ht=[Rn,Rn,Rn,"r"]}for(var pr="#",$r=0;$r<3;$r++)pr+=("0"+Math.floor(255*parseFloat(Ht[$r])).toString(16)).slice(-2);return pr},ff=At.__private__.encodeColorString=function(Xe){var Ht;typeof Xe=="string"&&(Xe={ch1:Xe});var Rn=Xe.ch1,pr=Xe.ch2,$r=Xe.ch3,$i=Xe.ch4,so=Xe.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Rn=="string"&&Rn.charAt(0)!=="#"){var Ia=new Jm(Rn);if(Ia.ok)Rn=Ia.toHex();else if(!/^\d*\.?\d*$/.test(Rn))throw new Error('Invalid color "'+Rn+'" passed to jsPDF.encodeColorString.')}if(typeof Rn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Rn)&&(Rn="#"+Rn[1]+Rn[1]+Rn[2]+Rn[2]+Rn[3]+Rn[3]),typeof Rn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Rn)){var ja=parseInt(Rn.substr(1),16);Rn=ja>>16&255,pr=ja>>8&255,$r=255&ja}if(pr===void 0||$i===void 0&&Rn===pr&&pr===$r)Ht=typeof Rn=="string"?Rn+" "+so[0]:Xe.precision===2?ln(Rn/255)+" "+so[0]:Dn(Rn/255)+" "+so[0];else if($i===void 0||(0,x.Z)($i)==="object"){if($i&&!isNaN($i.a)&&$i.a===0)return["1.","1.","1.",so[1]].join(" ");Ht=typeof Rn=="string"?[Rn,pr,$r,so[1]].join(" "):Xe.precision===2?[ln(Rn/255),ln(pr/255),ln($r/255),so[1]].join(" "):[Dn(Rn/255),Dn(pr/255),Dn($r/255),so[1]].join(" ")}else Ht=typeof Rn=="string"?[Rn,pr,$r,$i,so[2]].join(" "):Xe.precision===2?[ln(Rn),ln(pr),ln($r),ln($i),so[2]].join(" "):[Dn(Rn),Dn(pr),Dn($r),Dn($i),so[2]].join(" ");return Ht},hf=At.__private__.getFilters=function(){return $e},Hd=At.__private__.putStream=function(Xe){var Ht=(Xe=Xe||{}).data||"",Rn=Xe.filters||hf(),pr=Xe.alreadyAppliedFilters||[],$r=Xe.addLength1||!1,$i=Ht.length,so=Xe.objectId,Ia=function(Rc){return Rc};if(ft!==null&&so===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");ft!==null&&(Ia=Uc.encryptor(so,0));var ja={};Rn===!0&&(Rn=["FlateEncode"]);var xs=Xe.additionalKeyValues||[],Qs=(ja=Oa.API.processDataByFilters!==void 0?Oa.API.processDataByFilters(Ht,Rn):{data:Ht,reverseChain:[]}).reverseChain+(Array.isArray(pr)?pr.join(" "):pr.toString());if(ja.data.length!==0&&(xs.push({key:"Length",value:ja.data.length}),$r===!0&&xs.push({key:"Length1",value:$i})),Qs.length!=0)if(Qs.split("/").length-1==1)xs.push({key:"Filter",value:Qs});else{xs.push({key:"Filter",value:"["+Qs+"]"});for(var Ol=0;Ol<xs.length;Ol+=1)if(xs[Ol].key==="DecodeParms"){for(var nc=[],Nc=0;Nc<ja.reverseChain.split("/").length-1;Nc+=1)nc.push("null");nc.push(xs[Ol].value),xs[Ol].value="["+nc.join(" ")+"]"}}Pn("<<");for(var Lu=0;Lu<xs.length;Lu++)Pn("/"+xs[Lu].key+" "+xs[Lu].value);Pn(">>"),ja.data.length!==0&&(Pn("stream"),Pn(Ia(ja.data)),Pn("endstream"))},Ip=At.__private__.putPage=function(Xe){var Ht=Xe.number,Rn=Xe.data,pr=Xe.objId,$r=Xe.contentsObjId;aA(pr,!0),Pn("<</Type /Page"),Pn("/Parent "+Xe.rootDictionaryObjId+" 0 R"),Pn("/Resources "+Xe.resourceDictionaryObjId+" 0 R"),Pn("/MediaBox ["+parseFloat(Fr(Xe.mediaBox.bottomLeftX))+" "+parseFloat(Fr(Xe.mediaBox.bottomLeftY))+" "+Fr(Xe.mediaBox.topRightX)+" "+Fr(Xe.mediaBox.topRightY)+"]"),Xe.cropBox!==null&&Pn("/CropBox ["+Fr(Xe.cropBox.bottomLeftX)+" "+Fr(Xe.cropBox.bottomLeftY)+" "+Fr(Xe.cropBox.topRightX)+" "+Fr(Xe.cropBox.topRightY)+"]"),Xe.bleedBox!==null&&Pn("/BleedBox ["+Fr(Xe.bleedBox.bottomLeftX)+" "+Fr(Xe.bleedBox.bottomLeftY)+" "+Fr(Xe.bleedBox.topRightX)+" "+Fr(Xe.bleedBox.topRightY)+"]"),Xe.trimBox!==null&&Pn("/TrimBox ["+Fr(Xe.trimBox.bottomLeftX)+" "+Fr(Xe.trimBox.bottomLeftY)+" "+Fr(Xe.trimBox.topRightX)+" "+Fr(Xe.trimBox.topRightY)+"]"),Xe.artBox!==null&&Pn("/ArtBox ["+Fr(Xe.artBox.bottomLeftX)+" "+Fr(Xe.artBox.bottomLeftY)+" "+Fr(Xe.artBox.topRightX)+" "+Fr(Xe.artBox.topRightY)+"]"),typeof Xe.userUnit=="number"&&Xe.userUnit!==1&&Pn("/UserUnit "+Xe.userUnit),ou.publish("putPage",{objId:pr,pageContext:As[Ht],pageNumber:Ht,page:Rn}),Pn("/Contents "+$r+" 0 R"),Pn(">>"),Pn("endobj");var $i=Rn.join(`
|
|
|
`);return Zn===cr&&($i+=`
|
|
|
Q`),aA($r,!0),Hd({data:$i,filters:hf(),objectId:$r}),Pn("endobj"),pr},$f=At.__private__.putPages=function(){var Xe,Ht,Rn=[];for(Xe=1;Xe<=al;Xe++)As[Xe].objId=eA(),As[Xe].contentsObjId=eA();for(Xe=1;Xe<=al;Xe++)Rn.push(Ip({number:Xe,data:Bo[Xe],objId:As[Xe].objId,contentsObjId:As[Xe].contentsObjId,mediaBox:As[Xe].mediaBox,cropBox:As[Xe].cropBox,bleedBox:As[Xe].bleedBox,trimBox:As[Xe].trimBox,artBox:As[Xe].artBox,userUnit:As[Xe].userUnit,rootDictionaryObjId:Wh,resourceDictionaryObjId:df}));aA(Wh,!0),Pn("<</Type /Pages");var pr="/Kids [";for(Ht=0;Ht<al;Ht++)pr+=Rn[Ht]+" 0 R ";Pn(pr+"]"),Pn("/Count "+al),Pn(">>"),Pn("endobj"),ou.publish("postPutPages")},Lp=function(Xe){ou.publish("putFont",{font:Xe,out:Pn,newObject:fc,putStream:Hd}),Xe.isAlreadyPutted!==!0&&(Xe.objectNumber=fc(),Pn("<<"),Pn("/Type /Font"),Pn("/BaseFont /"+md(Xe.postScriptName)),Pn("/Subtype /Type1"),typeof Xe.encoding=="string"&&Pn("/Encoding /"+Xe.encoding),Pn("/FirstChar 32"),Pn("/LastChar 255"),Pn(">>"),Pn("endobj"))},rm=function(Xe){Xe.objectNumber=fc();var Ht=[];Ht.push({key:"Type",value:"/XObject"}),Ht.push({key:"Subtype",value:"/Form"}),Ht.push({key:"BBox",value:"["+[Fr(Xe.x),Fr(Xe.y),Fr(Xe.x+Xe.width),Fr(Xe.y+Xe.height)].join(" ")+"]"}),Ht.push({key:"Matrix",value:"["+Xe.matrix.toString()+"]"});var Rn=Xe.pages[1].join(`
|
|
|
`);Hd({data:Rn,additionalKeyValues:Ht,objectId:Xe.objectNumber}),Pn("endobj")},im=function(Xe,Ht){Ht||(Ht=21);var Rn=fc(),pr=function(so,Ia){var ja,xs=[],Qs=1/(Ia-1);for(ja=0;ja<1;ja+=Qs)xs.push(ja);if(xs.push(1),so[0].offset!=0){var Ol={offset:0,color:so[0].color};so.unshift(Ol)}if(so[so.length-1].offset!=1){var nc={offset:1,color:so[so.length-1].color};so.push(nc)}for(var Nc="",Lu=0,Rc=0;Rc<xs.length;Rc++){for(ja=xs[Rc];ja>so[Lu+1].offset;)Lu++;var Oc=so[Lu].offset,sA=(ja-Oc)/(so[Lu+1].offset-Oc),Sh=so[Lu].color,mf=so[Lu+1].color;Nc+=yr(Math.round((1-sA)*Sh[0]+sA*mf[0]).toString(16))+yr(Math.round((1-sA)*Sh[1]+sA*mf[1]).toString(16))+yr(Math.round((1-sA)*Sh[2]+sA*mf[2]).toString(16))}return Nc.trim()}(Xe.colors,Ht),$r=[];$r.push({key:"FunctionType",value:"0"}),$r.push({key:"Domain",value:"[0.0 1.0]"}),$r.push({key:"Size",value:"["+Ht+"]"}),$r.push({key:"BitsPerSample",value:"8"}),$r.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$r.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Hd({data:pr,additionalKeyValues:$r,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Rn}),Pn("endobj"),Xe.objectNumber=fc(),Pn("<< /ShadingType "+Xe.type),Pn("/ColorSpace /DeviceRGB");var $i="/Coords ["+Fr(parseFloat(Xe.coords[0]))+" "+Fr(parseFloat(Xe.coords[1]))+" ";Xe.type===2?$i+=Fr(parseFloat(Xe.coords[2]))+" "+Fr(parseFloat(Xe.coords[3])):$i+=Fr(parseFloat(Xe.coords[2]))+" "+Fr(parseFloat(Xe.coords[3]))+" "+Fr(parseFloat(Xe.coords[4]))+" "+Fr(parseFloat(Xe.coords[5])),Pn($i+="]"),Xe.matrix&&Pn("/Matrix ["+Xe.matrix.toString()+"]"),Pn("/Function "+Rn+" 0 R"),Pn("/Extend [true true]"),Pn(">>"),Pn("endobj")},om=function(Xe,Ht){var Rn=eA(),pr=fc();Ht.push({resourcesOid:Rn,objectOid:pr}),Xe.objectNumber=pr;var $r=[];$r.push({key:"Type",value:"/Pattern"}),$r.push({key:"PatternType",value:"1"}),$r.push({key:"PaintType",value:"1"}),$r.push({key:"TilingType",value:"1"}),$r.push({key:"BBox",value:"["+Xe.boundingBox.map(Fr).join(" ")+"]"}),$r.push({key:"XStep",value:Fr(Xe.xStep)}),$r.push({key:"YStep",value:Fr(Xe.yStep)}),$r.push({key:"Resources",value:Rn+" 0 R"}),Xe.matrix&&$r.push({key:"Matrix",value:"["+Xe.matrix.toString()+"]"}),Hd({data:Xe.stream,additionalKeyValues:$r,objectId:Xe.objectNumber}),Pn("endobj")},Gg=function(Xe){for(var Ht in Xe.objectNumber=fc(),Pn("<<"),Xe)switch(Ht){case"opacity":Pn("/ca "+ln(Xe[Ht]));break;case"stroke-opacity":Pn("/CA "+ln(Xe[Ht]))}Pn(">>"),Pn("endobj")},Bm=function(Xe){aA(Xe.resourcesOid,!0),Pn("<<"),Pn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var Ht in Pn("/Font <<"),rl)rl.hasOwnProperty(Ht)&&(Tt===!1||Tt===!0&&Jt.hasOwnProperty(Ht))&&Pn("/"+Ht+" "+rl[Ht].objectNumber+" 0 R");Pn(">>")}(),function(){if(Object.keys(es).length>0){for(var Ht in Pn("/Shading <<"),es)es.hasOwnProperty(Ht)&&es[Ht]instanceof kf&&es[Ht].objectNumber>=0&&Pn("/"+Ht+" "+es[Ht].objectNumber+" 0 R");ou.publish("putShadingPatternDict"),Pn(">>")}}(),function(Ht){if(Object.keys(es).length>0){for(var Rn in Pn("/Pattern <<"),es)es.hasOwnProperty(Rn)&&es[Rn]instanceof At.TilingPattern&&es[Rn].objectNumber>=0&&es[Rn].objectNumber<Ht&&Pn("/"+Rn+" "+es[Rn].objectNumber+" 0 R");ou.publish("putTilingPatternDict"),Pn(">>")}}(Xe.objectOid),function(){if(Object.keys(hs).length>0){var Ht;for(Ht in Pn("/ExtGState <<"),hs)hs.hasOwnProperty(Ht)&&hs[Ht].objectNumber>=0&&Pn("/"+Ht+" "+hs[Ht].objectNumber+" 0 R");ou.publish("putGStateDict"),Pn(">>")}}(),function(){for(var Ht in Pn("/XObject <<"),IA)IA.hasOwnProperty(Ht)&&IA[Ht].objectNumber>=0&&Pn("/"+Ht+" "+IA[Ht].objectNumber+" 0 R");ou.publish("putXobjectDict"),Pn(">>")}(),Pn(">>"),Pn("endobj")},ig=function(Xe){il[Xe.fontName]=il[Xe.fontName]||{},il[Xe.fontName][Xe.fontStyle]=Xe.id},og=function(Xe,Ht,Rn,pr,$r){var $i={id:"F"+(Object.keys(rl).length+1).toString(10),postScriptName:Xe,fontName:Ht,fontStyle:Rn,encoding:pr,isStandardFont:$r||!1,metadata:{}};return ou.publish("addFont",{font:$i,instance:this}),rl[$i.id]=$i,ig($i),$i.id},zd=At.__private__.pdfEscape=At.pdfEscape=function(Xe,Ht){return function(Rn,pr){var $r,$i,so,Ia,ja,xs,Qs,Ol,nc;if(so=(pr=pr||{}).sourceEncoding||"Unicode",ja=pr.outputEncoding,(pr.autoencode||ja)&&rl[Ra].metadata&&rl[Ra].metadata[so]&&rl[Ra].metadata[so].encoding&&(Ia=rl[Ra].metadata[so].encoding,!ja&&rl[Ra].encoding&&(ja=rl[Ra].encoding),!ja&&Ia.codePages&&(ja=Ia.codePages[0]),typeof ja=="string"&&(ja=Ia[ja]),ja)){for(Qs=!1,xs=[],$r=0,$i=Rn.length;$r<$i;$r++)(Ol=ja[Rn.charCodeAt($r)])?xs.push(String.fromCharCode(Ol)):xs.push(Rn[$r]),xs[$r].charCodeAt(0)>>8&&(Qs=!0);Rn=xs.join("")}for($r=Rn.length;Qs===void 0&&$r!==0;)Rn.charCodeAt($r-1)>>8&&(Qs=!0),$r--;if(!Qs)return Rn;for(xs=pr.noBOM?[]:[254,255],$r=0,$i=Rn.length;$r<$i;$r++){if((nc=(Ol=Rn.charCodeAt($r))>>8)>>8)throw new Error("Character at position "+$r+" of string '"+Rn+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");xs.push(nc),xs.push(Ol-(nc<<8))}return String.fromCharCode.apply(void 0,xs)}(Xe,Ht).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Em=At.__private__.beginPage=function(Xe){Bo[++al]=[],As[al]={objId:0,contentsObjId:0,userUnit:Number(Pe),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Xe[0]),topRightY:Number(Xe[1])}},sg(al),Xa(Bo[Kn])},ag=function(Xe,Ht){var Rn,pr,$r;switch(E=Ht||E,typeof Xe=="string"&&(Rn=cn(Xe.toLowerCase()),Array.isArray(Rn)&&(pr=Rn[0],$r=Rn[1])),Array.isArray(Xe)&&(pr=Xe[0]*js,$r=Xe[1]*js),isNaN(pr)&&(pr=ce[0],$r=ce[1]),(pr>14400||$r>14400)&&(pl.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),pr=Math.min(14400,pr),$r=Math.min(14400,$r)),ce=[pr,$r],E.substr(0,1)){case"l":$r>pr&&(ce=[$r,pr]);break;case"p":pr>$r&&(ce=[$r,pr])}Em(ce),Ss(Im),Pn(um),_m!==0&&Pn(_m+" J"),Nm!==0&&Pn(Nm+" j"),ou.publish("addPage",{pageNumber:al})},Sm=function(Xe){Xe>0&&Xe<=al&&(Bo.splice(Xe,1),As.splice(Xe,1),al--,Kn>al&&(Kn=al),this.setPage(Kn))},sg=function(Xe){Xe>0&&Xe<=al&&(Kn=Xe)},lg=At.__private__.getNumberOfPages=At.getNumberOfPages=function(){return Bo.length-1},ug=function(Xe,Ht,Rn){var pr,$r=void 0;return Rn=Rn||{},Xe=Xe!==void 0?Xe:rl[Ra].fontName,Ht=Ht!==void 0?Ht:rl[Ra].fontStyle,pr=Xe.toLowerCase(),il[pr]!==void 0&&il[pr][Ht]!==void 0?$r=il[pr][Ht]:il[Xe]!==void 0&&il[Xe][Ht]!==void 0?$r=il[Xe][Ht]:Rn.disableWarning===!1&&pl.warn("Unable to look up font label for font '"+Xe+"', '"+Ht+"'. Refer to getFontList() for available fonts."),$r||Rn.noFallback||($r=il.times[Ht])==null&&($r=il.times.normal),$r},Zf=At.__private__.putInfo=function(){var Xe=fc(),Ht=function(pr){return pr};for(var Rn in ft!==null&&(Ht=Uc.encryptor(Xe,0)),Pn("<<"),Pn("/Producer ("+zd(Ht("jsPDF "+Oa.version))+")"),gl)gl.hasOwnProperty(Rn)&&gl[Rn]&&Pn("/"+Rn.substr(0,1).toUpperCase()+Rn.substr(1)+" ("+zd(Ht(gl[Rn]))+")");Pn("/CreationDate ("+zd(Ht(pi))+")"),Pn(">>"),Pn("endobj")},am=At.__private__.putCatalog=function(Xe){var Ht=(Xe=Xe||{}).rootDictionaryObjId||Wh;switch(fc(),Pn("<<"),Pn("/Type /Catalog"),Pn("/Pages "+Ht+" 0 R"),ss||(ss="fullwidth"),ss){case"fullwidth":Pn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Pn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Pn("/OpenAction [3 0 R /Fit]");break;case"original":Pn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Rn=""+ss;Rn.substr(Rn.length-1)==="%"&&(ss=parseInt(ss)/100),typeof ss=="number"&&Pn("/OpenAction [3 0 R /XYZ null null "+ln(ss)+"]")}switch(ml||(ml="continuous"),ml){case"continuous":Pn("/PageLayout /OneColumn");break;case"single":Pn("/PageLayout /SinglePage");break;case"two":case"twoleft":Pn("/PageLayout /TwoColumnLeft");break;case"tworight":Pn("/PageLayout /TwoColumnRight")}Ja&&Pn("/PageMode /"+Ja),ou.publish("putCatalog"),Pn(">>"),Pn("endobj")},Vg=At.__private__.putTrailer=function(){Pn("trailer"),Pn("<<"),Pn("/Size "+(Pr+1)),Pn("/Root "+Pr+" 0 R"),Pn("/Info "+(Pr-1)+" 0 R"),ft!==null&&Pn("/Encrypt "+Uc.oid+" 0 R"),Pn("/ID [ <"+Ci+"> <"+Ci+"> ]"),Pn(">>")},_c=At.__private__.putHeader=function(){Pn("%PDF-"+In),Pn("%\xBA\xDF\xAC\xE0")},cg=At.__private__.putXRef=function(){var Xe="0000000000";Pn("xref"),Pn("0 "+(Pr+1)),Pn("0000000000 65535 f ");for(var Ht=1;Ht<=Pr;Ht++)typeof Xr[Ht]=="function"?Pn((Xe+Xr[Ht]()).slice(-10)+" 00000 n "):Xr[Ht]!==void 0?Pn((Xe+Xr[Ht]).slice(-10)+" 00000 n "):Pn("0000000000 00000 n ")},Wf=At.__private__.buildDocument=function(){var Xe;Pr=0,Ii=0,Ei=[],Xr=[],Yi=[],Wh=eA(),df=eA(),Xa(Ei),ou.publish("buildDocument"),_c(),$f(),function(){ou.publish("putAdditionalObjects");for(var Rn=0;Rn<Yi.length;Rn++){var pr=Yi[Rn];aA(pr.objId,!0),Pn(pr.content),Pn("endobj")}ou.publish("postPutAdditionalObjects")}(),Xe=[],function(){for(var Rn in rl)rl.hasOwnProperty(Rn)&&(Tt===!1||Tt===!0&&Jt.hasOwnProperty(Rn))&&Lp(rl[Rn])}(),function(){var Rn;for(Rn in hs)hs.hasOwnProperty(Rn)&&Gg(hs[Rn])}(),function(){for(var Rn in IA)IA.hasOwnProperty(Rn)&&rm(IA[Rn])}(),function(Rn){var pr;for(pr in es)es.hasOwnProperty(pr)&&(es[pr]instanceof kf?im(es[pr]):es[pr]instanceof Mf&&om(es[pr],Rn))}(Xe),ou.publish("putResources"),Xe.forEach(Bm),Bm({resourcesOid:df,objectOid:Number.MAX_SAFE_INTEGER}),ou.publish("postPutResources"),ft!==null&&(Uc.oid=fc(),Pn("<<"),Pn("/Filter /Standard"),Pn("/V "+Uc.v),Pn("/R "+Uc.r),Pn("/U <"+Uc.toHexString(Uc.U)+">"),Pn("/O <"+Uc.toHexString(Uc.O)+">"),Pn("/P "+Uc.P),Pn(">>"),Pn("endobj")),Zf(),am();var Ht=Ii;return cg(),Vg(),Pn("startxref"),Pn(""+Ht),Pn("%%EOF"),Xa(Bo[Kn]),Ei.join(`
|
|
|
`)},sm=At.__private__.getBlob=function(Xe){return new Blob([Js(Xe)],{type:"application/pdf"})},Ag=At.output=At.__private__.output=(Qd=function(Xe,Ht){switch(typeof(Ht=Ht||{})=="string"?Ht={filename:Ht}:Ht.filename=Ht.filename||"generated.pdf",Xe){case void 0:return Wf();case"save":At.save(Ht.filename);break;case"arraybuffer":return Js(Wf());case"blob":return sm(Wf());case"bloburi":case"bloburl":if(Ua.URL!==void 0&&typeof Ua.URL.createObjectURL=="function")return Ua.URL&&Ua.URL.createObjectURL(sm(Wf()))||void 0;pl.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Rn="",pr=Wf();try{Rn=wm(pr)}catch(Nc){Rn=wm(unescape(encodeURIComponent(pr)))}return"data:application/pdf;filename="+Ht.filename+";base64,"+Rn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ua)==="[object Window]"){var $r="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",$i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Ht.pdfObjectUrl&&($r=Ht.pdfObjectUrl,$i="");var so='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+$r+'"'+$i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Ht)+");<\/script></body></html>",Ia=Ua.open();return Ia!==null&&Ia.document.write(so),Ia}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ua)==="[object Window]"){var ja='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Ht.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Ht.filename+'" width="500px" height="400px" /></body></html>',xs=Ua.open();if(xs!==null){xs.document.write(ja);var Qs=this;xs.document.documentElement.querySelector("#pdfViewer").onload=function(){xs.document.title=Ht.filename,xs.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Qs.output("bloburl"))}}return xs}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ua)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ol='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Ht)+'"></iframe></body></html>',nc=Ua.open();if(nc!==null&&(nc.document.write(Ol),nc.document.title=Ht.filename),nc||typeof safari=="undefined")return nc;break;case"datauri":case"dataurl":return Ua.document.location.href=this.output("datauristring",Ht);default:return null}},Qd.foo=function(){try{return Qd.apply(this,arguments)}catch(Rn){var Xe=Rn.stack||"";~Xe.indexOf(" at ")&&(Xe=Xe.split(" at ")[1]);var Ht="Error in function "+Xe.split(`
|
|
|
`)[0].split("<")[0]+": "+Rn.message;if(!Ua.console)throw new Error(Ht);Ua.console.error(Ht,Rn),Ua.alert&&alert(Ht)}},Qd.foo.bar=Qd,Qd.foo),Kd=function(Xe){return Array.isArray(Sp)===!0&&Sp.indexOf(Xe)>-1};switch(re){case"pt":js=1;break;case"mm":js=72/25.4;break;case"cm":js=72/2.54;break;case"in":js=72;break;case"px":js=Kd("px_scaling")==1?.75:96/72;break;case"pc":case"em":js=12;break;case"ex":js=6;break;default:if(typeof re!="number")throw new Error("Invalid unit: "+re);js=re}var Uc=null;ao(),ei();var yh=At.__private__.getPageInfo=At.getPageInfo=function(Xe){if(isNaN(Xe)||Xe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:As[Xe].objId,pageNumber:Xe,pageContext:As[Xe]}},dg=At.__private__.getPageInfoByObjId=function(Xe){if(isNaN(Xe)||Xe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Ht in As)if(As[Ht].objId===Xe)break;return yh(Ht)},Xg=At.__private__.getCurrentPageInfo=At.getCurrentPageInfo=function(){return{objId:As[Kn].objId,pageNumber:Kn,pageContext:As[Kn]}};At.addPage=function(){return ag.apply(this,arguments),this},At.setPage=function(){return sg.apply(this,arguments),Xa.call(this,Bo[Kn]),this},At.insertPage=function(Xe){return this.addPage(),this.movePage(Kn,Xe),this},At.movePage=function(Xe,Ht){var Rn,pr;if(Xe>Ht){Rn=Bo[Xe],pr=As[Xe];for(var $r=Xe;$r>Ht;$r--)Bo[$r]=Bo[$r-1],As[$r]=As[$r-1];Bo[Ht]=Rn,As[Ht]=pr,this.setPage(Ht)}else if(Xe<Ht){Rn=Bo[Xe],pr=As[Xe];for(var $i=Xe;$i<Ht;$i++)Bo[$i]=Bo[$i+1],As[$i]=As[$i+1];Bo[Ht]=Rn,As[Ht]=pr,this.setPage(Ht)}return this},At.deletePage=function(){return Sm.apply(this,arguments),this},At.__private__.text=At.text=function(Xe,Ht,Rn,pr,$r){var $i,so,Ia,ja,xs,Qs,Ol,nc,Nc,Lu=(pr=pr||{}).scope||this;if(typeof Xe=="number"&&typeof Ht=="number"&&(typeof Rn=="string"||Array.isArray(Rn))){var Rc=Rn;Rn=Ht,Ht=Xe,Xe=Rc}if(arguments[3]instanceof ds==0?(Ia=arguments[4],ja=arguments[5],(0,x.Z)(Ol=arguments[3])==="object"&&Ol!==null||(typeof Ia=="string"&&(ja=Ia,Ia=null),typeof Ol=="string"&&(ja=Ol,Ol=null),typeof Ol=="number"&&(Ia=Ol,Ol=null),pr={flags:Ol,angle:Ia,align:ja})):(Xn("The transform parameter of text() with a Matrix value"),Nc=$r),isNaN(Ht)||isNaN(Rn)||Xe==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Xe.length===0)return Lu;var Oc,sA="",Sh=typeof pr.lineHeightFactor=="number"?pr.lineHeightFactor:Np,mf=Lu.internal.scaleFactor;function Fh(au){return au=au.split(" ").join(Array(pr.TabLen||9).join(" ")),zd(au,Ol)}function Tm(au){for(var bu,Ec=au.concat(),jc=[],_h=Ec.length;_h--;)typeof(bu=Ec.shift())=="string"?jc.push(bu):Array.isArray(au)&&(bu.length===1||bu[1]===void 0&&bu[2]===void 0)?jc.push(bu[0]):jc.push([bu[0],bu[1],bu[2]]);return jc}function Am(au,bu){var Ec;if(typeof au=="string")Ec=bu(au)[0];else if(Array.isArray(au)){for(var jc,_h,$m=au.concat(),hm=[],xg=$m.length;xg--;)typeof(jc=$m.shift())=="string"?hm.push(bu(jc)[0]):Array.isArray(jc)&&typeof jc[0]=="string"&&(_h=bu(jc[0],jc[1],jc[2]),hm.push([_h[0],_h[1],_h[2]]));Ec=hm}return Ec}var Gh=!1,Tp=!0;if(typeof Xe=="string")Gh=!0;else if(Array.isArray(Xe)){var kp=Xe.concat();so=[];for(var Vh,lA=kp.length;lA--;)(typeof(Vh=kp.shift())!="string"||Array.isArray(Vh)&&typeof Vh[0]!="string")&&(Tp=!1);Gh=Tp}if(Gh===!1)throw new Error('Type of text must be string or Array. "'+Xe+'" is not recognized.');typeof Xe=="string"&&(Xe=Xe.match(/[\r?\n]/)?Xe.split(/\r\n|\r|\n/g):[Xe]);var Mp=vo/Lu.internal.scaleFactor,Up=Mp*(Sh-1);switch(pr.baseline){case"bottom":Rn-=Up;break;case"top":Rn+=Mp-Up;break;case"hanging":Rn+=Mp-2*Up;break;case"middle":Rn+=Mp/2-Up}if((Qs=pr.maxWidth||0)>0&&(typeof Xe=="string"?Xe=Lu.splitTextToSize(Xe,Qs):Object.prototype.toString.call(Xe)==="[object Array]"&&(Xe=Xe.reduce(function(au,bu){return au.concat(Lu.splitTextToSize(bu,Qs))},[]))),$i={text:Xe,x:Ht,y:Rn,options:pr,mutex:{pdfEscape:zd,activeFontKey:Ra,fonts:rl,activeFontSize:vo}},ou.publish("preProcessText",$i),Xe=$i.text,Ia=(pr=$i.options).angle,Nc instanceof ds==0&&Ia&&typeof Ia=="number"){Ia*=Math.PI/180,pr.rotationDirection===0&&(Ia=-Ia),Zn===cr&&(Ia=-Ia);var km=Math.cos(Ia),Mm=Math.sin(Ia);Nc=new ds(km,Mm,-Mm,km,0,0)}else Ia&&Ia instanceof ds&&(Nc=Ia);Zn!==cr||Nc||(Nc=vh),(xs=pr.charSpace||Ch)!==void 0&&(sA+=Fr(mr(xs))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(nc=pr.horizontalScale)!==void 0&&(sA+=Fr(100*nc)+` Tz
|
|
|
`),pr.lang;var jA=-1,Ih=pr.renderingMode!==void 0?pr.renderingMode:pr.stroke,dm=Lu.internal.getCurrentPageInfo().pageContext;switch(Ih){case 0:case!1:case"fill":jA=0;break;case 1:case!0:case"stroke":jA=1;break;case 2:case"fillThenStroke":jA=2;break;case 3:case"invisible":jA=3;break;case 4:case"fillAndAddForClipping":jA=4;break;case 5:case"strokeAndAddPathForClipping":jA=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":jA=6;break;case 7:case"addToPathForClipping":jA=7}var bg=dm.usedRenderingMode!==void 0?dm.usedRenderingMode:-1;jA!==-1?sA+=jA+` Tr
|
|
|
`:bg!==-1&&(sA+=`0 Tr
|
|
|
`),jA!==-1&&(dm.usedRenderingMode=jA),ja=pr.align||"left";var $d,Rp=vo*Sh,Um=Lu.internal.pageSize.getWidth(),Rm=rl[Ra];xs=pr.charSpace||Ch,Qs=pr.maxWidth||0,Ol=Object.assign({autoencode:!0,noBOM:!0},pr.flags);var Xh=[],jp=function(au){return Lu.getStringUnitWidth(au,{font:Rm,charSpace:xs,fontSize:vo,doKerning:!1})*vo/mf};if(Object.prototype.toString.call(Xe)==="[object Array]"){var gd;so=Tm(Xe),ja!=="left"&&($d=so.map(jp));var vd,Yh=0;if(ja==="right"){Ht-=$d[0],Xe=[],lA=so.length;for(var Lh=0;Lh<lA;Lh++)Lh===0?(vd=wh(Ht),gd=bh(Rn)):(vd=mr(Yh-$d[Lh]),gd=-Rp),Xe.push([so[Lh],vd,gd]),Yh=$d[Lh]}else if(ja==="center"){Ht-=$d[0]/2,Xe=[],lA=so.length;for(var Jh=0;Jh<lA;Jh++)Jh===0?(vd=wh(Ht),gd=bh(Rn)):(vd=mr((Yh-$d[Jh])/2),gd=-Rp),Xe.push([so[Jh],vd,gd]),Yh=$d[Jh]}else if(ja==="left"){Xe=[],lA=so.length;for(var jm=0;jm<lA;jm++)Xe.push(so[jm])}else if(ja==="justify"&&Rm.encoding==="Identity-H"){Xe=[],lA=so.length,Qs=Qs!==0?Qs:Um;for(var fm=0,Bc=0;Bc<lA;Bc++)if(gd=Bc===0?bh(Rn):-Rp,vd=Bc===0?wh(Ht):fm,Bc<lA-1){var Cg=mr((Qs-$d[Bc])/(so[Bc].split(" ").length-1)),Vf=so[Bc].split(" ");Xe.push([Vf[0]+" ",vd,gd]),fm=0;for(var Xf=1;Xf<Vf.length;Xf++){var Qm=(jp(Vf[Xf-1]+" "+Vf[Xf])-jp(Vf[Xf]))*mf+Cg;Xf==Vf.length-1?Xe.push([Vf[Xf],Qm,0]):Xe.push([Vf[Xf]+" ",Qm,0]),fm-=Qm}}else Xe.push([so[Bc],vd,gd]);Xe.push(["",fm,0])}else{if(ja!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Xe=[],lA=so.length,Qs=Qs!==0?Qs:Um,Bc=0;Bc<lA;Bc++){gd=Bc===0?bh(Rn):-Rp,vd=Bc===0?wh(Ht):0;var Hm=so[Bc].split(" ").length-1,zm=Hm>0?(Qs-$d[Bc])/Hm:0;Bc<lA-1?Xh.push(Fr(mr(zm))):Xh.push(0),Xe.push([so[Bc],vd,gd])}}}(typeof pr.R2L=="boolean"?pr.R2L:is)===!0&&(Xe=Am(Xe,function(au,bu,Ec){return[au.split("").reverse().join(""),bu,Ec]})),$i={text:Xe,x:Ht,y:Rn,options:pr,mutex:{pdfEscape:zd,activeFontKey:Ra,fonts:rl,activeFontSize:vo}},ou.publish("postProcessText",$i),Xe=$i.text,Oc=$i.mutex.isHex||!1;var Km=rl[Ra].encoding;Km!=="WinAnsiEncoding"&&Km!=="StandardEncoding"||(Xe=Am(Xe,function(au,bu,Ec){return[Fh(au),bu,Ec]})),so=Tm(Xe),Xe=[];for(var qh,ep,tp,Qp=Array.isArray(so[0])?1:0,np="",Hp=function(au,bu,Ec){var jc="";return Ec instanceof ds?(Ec=typeof pr.angle=="number"?gh(Ec,new ds(1,0,0,1,au,bu)):gh(new ds(1,0,0,1,au,bu),Ec),Zn===cr&&(Ec=gh(new ds(1,0,0,-1,0,0),Ec)),jc=Ec.join(" ")+` Tm
|
|
|
`):jc=Fr(au)+" "+Fr(bu)+` Td
|
|
|
`,jc},Zd=0;Zd<so.length;Zd++){switch(np="",Qp){case 1:tp=(Oc?"<":"(")+so[Zd][0]+(Oc?">":")"),qh=parseFloat(so[Zd][1]),ep=parseFloat(so[Zd][2]);break;case 0:tp=(Oc?"<":"(")+so[Zd]+(Oc?">":")"),qh=wh(Ht),ep=bh(Rn)}Xh!==void 0&&Xh[Zd]!==void 0&&(np=Xh[Zd]+` Tw
|
|
|
`),Zd===0?Xe.push(np+Hp(qh,ep,Nc)+tp):Qp===0?Xe.push(np+tp):Qp===1&&Xe.push(np+Hp(qh,ep,Nc)+tp)}Xe=Qp===0?Xe.join(` Tj
|
|
|
T* `):Xe.join(` Tj
|
|
|
`),Xe+=` Tj
|
|
|
`;var Yf=`BT
|
|
|
/`;return Yf+=Ra+" "+vo+` Tf
|
|
|
`,Yf+=Fr(vo*Sh)+` TL
|
|
|
`,Yf+=Op+`
|
|
|
`,Yf+=sA,Yf+=Xe,Pn(Yf+="ET"),Jt[Ra]=!0,Lu};var Yg=At.__private__.clip=At.clip=function(Xe){return Pn(Xe==="evenodd"?"W*":"W"),this};At.clipEvenOdd=function(){return Yg("evenodd")},At.__private__.discardPath=At.discardPath=function(){return Pn("n"),this};var Gf=At.__private__.isValidStyle=function(Xe){var Ht=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Xe)!==-1&&(Ht=!0),Ht};At.__private__.setDefaultPathOperation=At.setDefaultPathOperation=function(Xe){return Gf(Xe)&&(Ye=Xe),this};var fg=At.__private__.getStyle=At.getStyle=function(Xe){var Ht=Ye;switch(Xe){case"D":case"S":Ht="S";break;case"F":Ht="f";break;case"FD":case"DF":Ht="B";break;case"f":case"f*":case"B":case"B*":Ht=Xe}return Ht},hg=At.close=function(){return Pn("h"),this};At.stroke=function(){return Pn("S"),this},At.fill=function(Xe){return lm("f",Xe),this},At.fillEvenOdd=function(Xe){return lm("f*",Xe),this},At.fillStroke=function(Xe){return lm("B",Xe),this},At.fillStrokeEvenOdd=function(Xe){return lm("B*",Xe),this};var lm=function(Xe,Ht){(0,x.Z)(Ht)==="object"?qg(Ht,Xe):Pn(Xe)},_p=function(Xe){Xe===null||Zn===cr&&Xe===void 0||(Xe=fg(Xe),Pn(Xe))};function Jg(Xe,Ht,Rn,pr,$r){var $i=new Mf(Ht||this.boundingBox,Rn||this.xStep,pr||this.yStep,this.gState,$r||this.matrix);$i.stream=this.stream;var so=Xe+"$$"+this.cloneIndex+++"$$";return jd(so,$i),$i}var qg=function(Xe,Ht){var Rn=Iu[Xe.key],pr=es[Rn];if(pr instanceof kf)Pn("q"),Pn(e0(Ht)),pr.gState&&At.setGState(pr.gState),Pn(Xe.matrix.toString()+" cm"),Pn("/"+Rn+" sh"),Pn("Q");else if(pr instanceof Mf){var $r=new ds(1,0,0,-1,0,Pp());Xe.matrix&&($r=$r.multiply(Xe.matrix||vh),Rn=Jg.call(pr,Xe.key,Xe.boundingBox,Xe.xStep,Xe.yStep,$r).id),Pn("q"),Pn("/Pattern cs"),Pn("/"+Rn+" scn"),pr.gState&&At.setGState(pr.gState),Pn(Ht),Pn("Q")}},e0=function(Xe){switch(Xe){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Fm=At.moveTo=function(Xe,Ht){return Pn(Fr(mr(Xe))+" "+Fr(dr(Ht))+" m"),this},pg=At.lineTo=function(Xe,Ht){return Pn(Fr(mr(Xe))+" "+Fr(dr(Ht))+" l"),this},pf=At.curveTo=function(Xe,Ht,Rn,pr,$r,$i){return Pn([Fr(mr(Xe)),Fr(dr(Ht)),Fr(mr(Rn)),Fr(dr(pr)),Fr(mr($r)),Fr(dr($i)),"c"].join(" ")),this};At.__private__.line=At.line=function(Xe,Ht,Rn,pr,$r){if(isNaN(Xe)||isNaN(Ht)||isNaN(Rn)||isNaN(pr)||!Gf($r))throw new Error("Invalid arguments passed to jsPDF.line");return Zn===gr?this.lines([[Rn-Xe,pr-Ht]],Xe,Ht,[1,1],$r||"S"):this.lines([[Rn-Xe,pr-Ht]],Xe,Ht,[1,1]).stroke()},At.__private__.lines=At.lines=function(Xe,Ht,Rn,pr,$r,$i){var so,Ia,ja,xs,Qs,Ol,nc,Nc,Lu,Rc,Oc,sA;if(typeof Xe=="number"&&(sA=Rn,Rn=Ht,Ht=Xe,Xe=sA),pr=pr||[1,1],$i=$i||!1,isNaN(Ht)||isNaN(Rn)||!Array.isArray(Xe)||!Array.isArray(pr)||!Gf($r)||typeof $i!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Fm(Ht,Rn),so=pr[0],Ia=pr[1],xs=Xe.length,Rc=Ht,Oc=Rn,ja=0;ja<xs;ja++)(Qs=Xe[ja]).length===2?(Rc=Qs[0]*so+Rc,Oc=Qs[1]*Ia+Oc,pg(Rc,Oc)):(Ol=Qs[0]*so+Rc,nc=Qs[1]*Ia+Oc,Nc=Qs[2]*so+Rc,Lu=Qs[3]*Ia+Oc,Rc=Qs[4]*so+Rc,Oc=Qs[5]*Ia+Oc,pf(Ol,nc,Nc,Lu,Rc,Oc));return $i&&hg(),_p($r),this},At.path=function(Xe){for(var Ht=0;Ht<Xe.length;Ht++){var Rn=Xe[Ht],pr=Rn.c;switch(Rn.op){case"m":Fm(pr[0],pr[1]);break;case"l":pg(pr[0],pr[1]);break;case"c":pf.apply(this,pr);break;case"h":hg()}}return this},At.__private__.rect=At.rect=function(Xe,Ht,Rn,pr,$r){if(isNaN(Xe)||isNaN(Ht)||isNaN(Rn)||isNaN(pr)||!Gf($r))throw new Error("Invalid arguments passed to jsPDF.rect");return Zn===gr&&(pr=-pr),Pn([Fr(mr(Xe)),Fr(dr(Ht)),Fr(mr(Rn)),Fr(mr(pr)),"re"].join(" ")),_p($r),this},At.__private__.triangle=At.triangle=function(Xe,Ht,Rn,pr,$r,$i,so){if(isNaN(Xe)||isNaN(Ht)||isNaN(Rn)||isNaN(pr)||isNaN($r)||isNaN($i)||!Gf(so))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Rn-Xe,pr-Ht],[$r-Rn,$i-pr],[Xe-$r,Ht-$i]],Xe,Ht,[1,1],so,!0),this},At.__private__.roundedRect=At.roundedRect=function(Xe,Ht,Rn,pr,$r,$i,so){if(isNaN(Xe)||isNaN(Ht)||isNaN(Rn)||isNaN(pr)||isNaN($r)||isNaN($i)||!Gf(so))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ia=4/3*(Math.SQRT2-1);return $r=Math.min($r,.5*Rn),$i=Math.min($i,.5*pr),this.lines([[Rn-2*$r,0],[$r*Ia,0,$r,$i-$i*Ia,$r,$i],[0,pr-2*$i],[0,$i*Ia,-$r*Ia,$i,-$r,$i],[2*$r-Rn,0],[-$r*Ia,0,-$r,-$i*Ia,-$r,-$i],[0,2*$i-pr],[0,-$i*Ia,$r*Ia,-$i,$r,-$i]],Xe+$r,Ht,[1,1],so,!0),this},At.__private__.ellipse=At.ellipse=function(Xe,Ht,Rn,pr,$r){if(isNaN(Xe)||isNaN(Ht)||isNaN(Rn)||isNaN(pr)||!Gf($r))throw new Error("Invalid arguments passed to jsPDF.ellipse");var $i=4/3*(Math.SQRT2-1)*Rn,so=4/3*(Math.SQRT2-1)*pr;return Fm(Xe+Rn,Ht),pf(Xe+Rn,Ht-so,Xe+$i,Ht-pr,Xe,Ht-pr),pf(Xe-$i,Ht-pr,Xe-Rn,Ht-so,Xe-Rn,Ht),pf(Xe-Rn,Ht+so,Xe-$i,Ht+pr,Xe,Ht+pr),pf(Xe+$i,Ht+pr,Xe+Rn,Ht+so,Xe+Rn,Ht),_p($r),this},At.__private__.circle=At.circle=function(Xe,Ht,Rn,pr){if(isNaN(Xe)||isNaN(Ht)||isNaN(Rn)||!Gf(pr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Xe,Ht,Rn,Rn,pr)},At.setFont=function(Xe,Ht,Rn){return Rn&&(Ht=Bi(Ht,Rn)),Ra=ug(Xe,Ht,{disableWarning:!1}),this};var t0=At.__private__.getFont=At.getFont=function(){return rl[ug.apply(At,arguments)]};At.__private__.getFontList=At.getFontList=function(){var Xe,Ht,Rn={};for(Xe in il)if(il.hasOwnProperty(Xe))for(Ht in Rn[Xe]=[],il[Xe])il[Xe].hasOwnProperty(Ht)&&Rn[Xe].push(Ht);return Rn},At.addFont=function(Xe,Ht,Rn,pr,$r){var $i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&$i.indexOf(arguments[3])!==-1?$r=arguments[3]:arguments[3]&&$i.indexOf(arguments[3])==-1&&(Rn=Bi(Rn,pr)),og.call(this,Xe,Ht,Rn,$r=$r||"Identity-H")};var Np,Im=y.lineWidth||.200025,n0=At.__private__.getLineWidth=At.getLineWidth=function(){return Im},Ss=At.__private__.setLineWidth=At.setLineWidth=function(Xe){return Im=Xe,Pn(Fr(mr(Xe))+" w"),this};At.__private__.setLineDash=Oa.API.setLineDash=Oa.API.setLineDashPattern=function(Xe,Ht){if(Xe=Xe||[],Ht=Ht||0,isNaN(Ht)||!Array.isArray(Xe))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Xe=Xe.map(function(Rn){return Fr(mr(Rn))}).join(" "),Ht=Fr(mr(Ht)),Pn("["+Xe+"] "+Ht+" d"),this};var r0=At.__private__.getLineHeight=At.getLineHeight=function(){return vo*Np};At.__private__.getLineHeight=At.getLineHeight=function(){return vo*Np};var i0=At.__private__.setLineHeightFactor=At.setLineHeightFactor=function(Xe){return typeof(Xe=Xe||1.15)=="number"&&(Np=Xe),this},o0=At.__private__.getLineHeightFactor=At.getLineHeightFactor=function(){return Np};i0(y.lineHeight);var wh=At.__private__.getHorizontalCoordinate=function(Xe){return mr(Xe)},bh=At.__private__.getVerticalCoordinate=function(Xe){return Zn===cr?Xe:As[Kn].mediaBox.topRightY-As[Kn].mediaBox.bottomLeftY-mr(Xe)},a0=At.__private__.getHorizontalCoordinateString=At.getHorizontalCoordinateString=function(Xe){return Fr(wh(Xe))},s0=At.__private__.getVerticalCoordinateString=At.getVerticalCoordinateString=function(Xe){return Fr(bh(Xe))},um=y.strokeColor||"0 G";At.__private__.getStrokeColor=At.getDrawColor=function(){return Kf(um)},At.__private__.setStrokeColor=At.setDrawColor=function(Xe,Ht,Rn,pr){return um=ff({ch1:Xe,ch2:Ht,ch3:Rn,ch4:pr,pdfColorType:"draw",precision:2}),Pn(um),this};var Lm=y.fillColor||"0 g";At.__private__.getFillColor=At.getFillColor=function(){return Kf(Lm)},At.__private__.setFillColor=At.setFillColor=function(Xe,Ht,Rn,pr){return Lm=ff({ch1:Xe,ch2:Ht,ch3:Rn,ch4:pr,pdfColorType:"fill",precision:2}),Pn(Lm),this};var Op=y.textColor||"0 g",l0=At.__private__.getTextColor=At.getTextColor=function(){return Kf(Op)};At.__private__.setTextColor=At.setTextColor=function(Xe,Ht,Rn,pr){return Op=ff({ch1:Xe,ch2:Ht,ch3:Rn,ch4:pr,pdfColorType:"text",precision:3}),this};var Ch=y.charSpace,u0=At.__private__.getCharSpace=At.getCharSpace=function(){return parseFloat(Ch||0)};At.__private__.setCharSpace=At.setCharSpace=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ch=Xe,this};var _m=0;At.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},At.__private__.setLineCap=At.setLineCap=function(Xe){var Ht=At.CapJoinStyles[Xe];if(Ht===void 0)throw new Error("Line cap style of '"+Xe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return _m=Ht,Pn(Ht+" J"),this};var Nm=0;At.__private__.setLineJoin=At.setLineJoin=function(Xe){var Ht=At.CapJoinStyles[Xe];if(Ht===void 0)throw new Error("Line join style of '"+Xe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Nm=Ht,Pn(Ht+" j"),this},At.__private__.setLineMiterLimit=At.__private__.setMiterLimit=At.setLineMiterLimit=At.setMiterLimit=function(Xe){if(Xe=Xe||0,isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Pn(Fr(mr(Xe))+" M"),this},At.GState=Ep,At.setGState=function(Xe){(Xe=typeof Xe=="string"?hs[Ps[Xe]]:mg(null,Xe)).equals(Gu)||(Pn("/"+Xe.id+" gs"),Gu=Xe)};var mg=function(Xe,Ht){if(!Xe||!Ps[Xe]){var Rn=!1;for(var pr in hs)if(hs.hasOwnProperty(pr)&&hs[pr].equals(Ht)){Rn=!0;break}if(Rn)Ht=hs[pr];else{var $r="GS"+(Object.keys(hs).length+1).toString(10);hs[$r]=Ht,Ht.id=$r}return Xe&&(Ps[Xe]=Ht.id),ou.publish("addGState",Ht),Ht}};At.addGState=function(Xe,Ht){return mg(Xe,Ht),this},At.saveGraphicsState=function(){return Pn("q"),Wu.push({key:Ra,size:vo,color:Op}),this},At.restoreGraphicsState=function(){Pn("Q");var Xe=Wu.pop();return Ra=Xe.key,vo=Xe.size,Op=Xe.color,Gu=null,this},At.setCurrentTransformationMatrix=function(Xe){return Pn(Xe.toString()+" cm"),this},At.comment=function(Xe){return Pn("#"+Xe),this};var xh=function(Xe,Ht){var Rn=Xe||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Rn},set:function($i){isNaN($i)||(Rn=parseFloat($i))}});var pr=Ht||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return pr},set:function($i){isNaN($i)||(pr=parseFloat($i))}});var $r="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return $r},set:function($i){$r=$i.toString()}}),this},Om=function(Xe,Ht,Rn,pr){xh.call(this,Xe,Ht),this.type="rect";var $r=Rn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return $r},set:function(so){isNaN(so)||($r=parseFloat(so))}});var $i=pr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return $i},set:function(so){isNaN(so)||($i=parseFloat(so))}}),this},cm=function(){this.page=al,this.currentPage=Kn,this.pages=Bo.slice(0),this.pagesContext=As.slice(0),this.x=Ka,this.y=xc,this.matrix=Nl,this.width=Pm(Kn),this.height=vg(Kn),this.outputDestination=ca,this.id="",this.objectNumber=-1};cm.prototype.restore=function(){al=this.page,Kn=this.currentPage,As=this.pagesContext,Bo=this.pages,Ka=this.x,xc=this.y,Nl=this.matrix,gg(Kn,this.width),Bh(Kn,this.height),ca=this.outputDestination};var Dm=function(Xe,Ht,Rn,pr,$r){zf.push(new cm),al=Kn=0,Bo=[],Ka=Xe,xc=Ht,Nl=$r,Em([Rn,pr])};for(var Dp in At.beginFormObject=function(Xe,Ht,Rn,pr,$r){return Dm(Xe,Ht,Rn,pr,$r),this},At.endFormObject=function(Xe){return function(Ht){if(mh[Ht])zf.pop().restore();else{var Rn=new cm,pr="Xo"+(Object.keys(IA).length+1).toString(10);Rn.id=pr,mh[Ht]=pr,IA[pr]=Rn,ou.publish("addFormObject",Rn),zf.pop().restore()}}(Xe),this},At.doFormObject=function(Xe,Ht){var Rn=IA[mh[Xe]];return Pn("q"),Pn(Ht.toString()+" cm"),Pn("/"+Rn.id+" Do"),Pn("Q"),this},At.getFormObject=function(Xe){var Ht=IA[mh[Xe]];return{x:Ht.x,y:Ht.y,width:Ht.width,height:Ht.height,matrix:Ht.matrix}},At.save=function(Xe,Ht){return Xe=Xe||"generated.pdf",(Ht=Ht||{}).returnPromise=Ht.returnPromise||!1,Ht.returnPromise===!1?(Pf(sm(Wf()),Xe),typeof Pf.unload=="function"&&Ua.setTimeout&&setTimeout(Pf.unload,911),this):new Promise(function(Rn,pr){try{var $r=Pf(sm(Wf()),Xe);typeof Pf.unload=="function"&&Ua.setTimeout&&setTimeout(Pf.unload,911),Rn($r)}catch($i){pr($i.message)}})},Oa.API)Oa.API.hasOwnProperty(Dp)&&(Dp==="events"&&Oa.API.events.length?function(Xe,Ht){var Rn,pr,$r;for($r=Ht.length-1;$r!==-1;$r--)Rn=Ht[$r][0],pr=Ht[$r][1],Xe.subscribe.apply(Xe,[Rn].concat(typeof pr=="function"?[pr]:pr))}(ou,Oa.API.events):At[Dp]=Oa.API[Dp]);function Pm(Xe){return As[Xe].mediaBox.topRightX-As[Xe].mediaBox.bottomLeftX}function gg(Xe,Ht){As[Xe].mediaBox.topRightX=Ht+As[Xe].mediaBox.bottomLeftX}function vg(Xe){return As[Xe].mediaBox.topRightY-As[Xe].mediaBox.bottomLeftY}function Bh(Xe,Ht){As[Xe].mediaBox.topRightY=Ht+As[Xe].mediaBox.bottomLeftY}var Eh=At.getPageWidth=function(Xe){return Pm(Xe=Xe||Kn)/js},yg=At.setPageWidth=function(Xe,Ht){gg(Xe,Ht*js)},Pp=At.getPageHeight=function(Xe){return vg(Xe=Xe||Kn)/js},wg=At.setPageHeight=function(Xe,Ht){Bh(Xe,Ht*js)};return At.internal={pdfEscape:zd,getStyle:fg,getFont:t0,getFontSize:Fa,getCharSpace:u0,getTextColor:l0,getLineHeight:r0,getLineHeightFactor:o0,getLineWidth:n0,write:fa,getHorizontalCoordinate:wh,getVerticalCoordinate:bh,getCoordinateString:a0,getVerticalCoordinateString:s0,collections:{},newObject:fc,newAdditionalObject:Fp,newObjectDeferred:eA,newObjectDeferredBegin:aA,getFilters:hf,putStream:Hd,events:ou,scaleFactor:js,pageSize:{getWidth:function(){return Eh(Kn)},setWidth:function(Xe){yg(Kn,Xe)},getHeight:function(){return Pp(Kn)},setHeight:function(Xe){wg(Kn,Xe)}},encryptionOptions:ft,encryption:Uc,getEncryptor:function(Xe){return ft!==null?Uc.encryptor(Xe,0):function(Ht){return Ht}},output:Ag,getNumberOfPages:lg,get pages(){return Bo},out:Pn,f2:ln,f3:Dn,getPageInfo:yh,getPageInfoByObjId:dg,getCurrentPageInfo:Xg,getPDFVersion:bn,Point:xh,Rectangle:Om,Matrix:ds,hasHotfix:Kd},Object.defineProperty(At.internal.pageSize,"width",{get:function(){return Eh(Kn)},set:function(Xe){yg(Kn,Xe)},enumerable:!0,configurable:!0}),Object.defineProperty(At.internal.pageSize,"height",{get:function(){return Pp(Kn)},set:function(Xe){wg(Kn,Xe)},enumerable:!0,configurable:!0}),function(Xe){for(var Ht=0,Rn=as.length;Ht<Rn;Ht++){var pr=og.call(this,Xe[Ht][0],Xe[Ht][1],Xe[Ht][2],as[Ht][3],!0);Tt===!1&&(Jt[pr]=!0);var $r=Xe[Ht][0].split("-");ig({id:pr,fontName:$r[0],fontStyle:$r[1]||""})}ou.publish("addFonts",{fonts:rl,dictionary:il})}.call(At,as),Ra="F1",ag(ce,E),ou.publish("initialized"),At}zh.prototype.lsbFirstWord=function(y){return String.fromCharCode(255&y,y>>8&255,y>>16&255,y>>24&255)},zh.prototype.toHexString=function(y){return y.split("").map(function(z){return("0"+(255&z.charCodeAt(0)).toString(16)).slice(-2)}).join("")},zh.prototype.hexToBytes=function(y){for(var z=[],E=0;E<y.length;E+=2)z.push(String.fromCharCode(parseInt(y.substr(E,2),16)));return z.join("")},zh.prototype.processOwnerPassword=function(y,z){return Tf(bm(z).substr(0,5),y)},zh.prototype.encryptor=function(y,z){var E=bm(this.encryptionKey+String.fromCharCode(255&y,y>>8&255,y>>16&255,255&z,z>>8&255)).substr(0,10);return function(re){return Tf(E,re)}},Ep.prototype.equals=function(y){var z,E="id,objectNumber,equals";if(!y||(0,x.Z)(y)!==(0,x.Z)(this))return!1;var re=0;for(z in this)if(!(E.indexOf(z)>=0)){if(this.hasOwnProperty(z)&&!y.hasOwnProperty(z)||this[z]!==y[z])return!1;re++}for(z in y)y.hasOwnProperty(z)&&E.indexOf(z)<0&&re--;return re===0},Oa.API={events:[]},Oa.version="3.0.4";var Zu=Oa.API,xm=1,fh=function(y){return y.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Kh=function(y){return y.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},bs=function(y){return y.toFixed(2)},Uf=function(y){return y.toFixed(5)};Zu.__acroform__={};var SA=function(y,z){y.prototype=Object.create(z.prototype),y.prototype.constructor=y},ng=function(y){return y*xm},Ud=function(y){var z=new Pi,E=ko.internal.getHeight(y)||0,re=ko.internal.getWidth(y)||0;return z.BBox=[0,0,Number(bs(re)),Number(bs(E))],z},Hg=Zu.__acroform__.setBit=function(y,z){if(y=y||0,z=z||0,isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return y|1<<z},zg=Zu.__acroform__.clearBit=function(y,z){if(y=y||0,z=z||0,isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return y&~(1<<z)},Kg=Zu.__acroform__.getBit=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return y&1<<z?1:0},tc=Zu.__acroform__.getBitForPdf=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Kg(y,z-1)},ge=Zu.__acroform__.setBitForPdf=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Hg(y,z-1)},Ae=Zu.__acroform__.clearBitForPdf=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return zg(y,z-1)},be=Zu.__acroform__.calculateCoordinates=function(y,z){var E=z.internal.getHorizontalCoordinate,re=z.internal.getVerticalCoordinate,ce=y[0],fe=y[1],$e=y[2],Pe=y[3],Ge={};return Ge.lowerLeft_X=E(ce)||0,Ge.lowerLeft_Y=re(fe+Pe)||0,Ge.upperRight_X=E(ce+$e)||0,Ge.upperRight_Y=re(fe)||0,[Number(bs(Ge.lowerLeft_X)),Number(bs(Ge.lowerLeft_Y)),Number(bs(Ge.upperRight_X)),Number(bs(Ge.upperRight_Y))]},ye=function(y){if(y.appearanceStreamContent)return y.appearanceStreamContent;if(y.V||y.DV){var z=[],E=y._V||y.DV,re=nt(y,E),ce=y.scope.internal.getFont(y.fontName,y.fontStyle).id;z.push("/Tx BMC"),z.push("q"),z.push("BT"),z.push(y.scope.__private__.encodeColorString(y.color)),z.push("/"+ce+" "+bs(re.fontSize)+" Tf"),z.push("1 0 0 1 0 0 Tm"),z.push(re.text),z.push("ET"),z.push("Q"),z.push("EMC");var fe=Ud(y);return fe.scope=y.scope,fe.stream=z.join(`
|
|
|
`),fe}},nt=function(y,z){var E=y.fontSize===0?y.maxFontSize:y.fontSize,re={text:"",fontSize:""},ce=(z=(z=z.substr(0,1)=="("?z.substr(1):z).substr(z.length-1)==")"?z.substr(0,z.length-1):z).split(" ");ce=y.multiline?ce.map(function(ln){return ln.split(`
|
|
|
`)}):ce.map(function(ln){return[ln]});var fe=E,$e=ko.internal.getHeight(y)||0;$e=$e<0?-$e:$e;var Pe=ko.internal.getWidth(y)||0;Pe=Pe<0?-Pe:Pe;var Ge=function(ln,Dn,mr){if(ln+1<ce.length){var dr=Dn+" "+ce[ln+1][0];return It(dr,y,mr).width<=Pe-4}return!1};fe++;e:for(;fe>0;){z="",fe--;var Ye,ft,Tt=It("3",y,fe).height,Jt=y.multiline?$e-fe:($e-Tt)/2,At=Jt+=2,In=0,bn=0,On=0;if(fe<=0){z=`(...) Tj
|
|
|
`,z+="% Width of Text: "+It(z,y,fe=12).width+", FieldWidth:"+Pe+`
|
|
|
`;break}for(var cn="",gr=0,cr=0;cr<ce.length;cr++)if(ce.hasOwnProperty(cr)){var Zn=!1;if(ce[cr].length!==1&&On!==ce[cr].length-1){if((Tt+2)*(gr+2)+2>$e)continue e;cn+=ce[cr][On],Zn=!0,bn=cr,cr--}else{cn=(cn+=ce[cr][On]+" ").substr(cn.length-1)==" "?cn.substr(0,cn.length-1):cn;var li=parseInt(cr),ji=Ge(li,cn,fe),Bi=cr>=ce.length-1;if(ji&&!Bi){cn+=" ",On=0;continue}if(ji||Bi){if(Bi)bn=li;else if(y.multiline&&(Tt+2)*(gr+2)+2>$e)continue e}else{if(!y.multiline||(Tt+2)*(gr+2)+2>$e)continue e;bn=li}}for(var Fr="",Xn=In;Xn<=bn;Xn++){var Wr=ce[Xn];if(y.multiline){if(Xn===bn){Fr+=Wr[On]+" ",On=(On+1)%Wr.length;continue}if(Xn===In){Fr+=Wr[Wr.length-1]+" ";continue}}Fr+=Wr[0]+" "}switch(Fr=Fr.substr(Fr.length-1)==" "?Fr.substr(0,Fr.length-1):Fr,ft=It(Fr,y,fe).width,y.textAlign){case"right":Ye=Pe-ft-2;break;case"center":Ye=(Pe-ft)/2;break;default:Ye=2}z+=bs(Ye)+" "+bs(At)+` Td
|
|
|
`,z+="("+fh(Fr)+`) Tj
|
|
|
`,z+=-bs(Ye)+` 0 Td
|
|
|
`,At=-(fe+2),ft=0,In=Zn?bn:bn+1,gr++,cn=""}break}return re.text=z,re.fontSize=fe,re},It=function(y,z,E){var re=z.scope.internal.getFont(z.fontName,z.fontStyle),ce=z.scope.getStringUnitWidth(y,{font:re,fontSize:parseFloat(E),charSpace:0})*parseFloat(E);return{height:z.scope.getStringUnitWidth("3",{font:re,fontSize:parseFloat(E),charSpace:0})*parseFloat(E)*1.5,width:ce}},Yt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Bn=function(y,z){var E={type:"reference",object:y};z.internal.getPageInfo(y.page).pageContext.annotations.find(function(re){return re.type===E.type&&re.object===E.object})===void 0&&z.internal.getPageInfo(y.page).pageContext.annotations.push(E)},xn=function(y,z){if(z.scope=y,y.internal!==void 0&&(y.internal.acroformPlugin===void 0||y.internal.acroformPlugin.isInitialized===!1)){if(go.FieldNum=0,y.internal.acroformPlugin=JSON.parse(JSON.stringify(Yt)),y.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");xm=y.internal.scaleFactor,y.internal.acroformPlugin.acroFormDictionaryRoot=new pa,y.internal.acroformPlugin.acroFormDictionaryRoot.scope=y,y.internal.acroformPlugin.acroFormDictionaryRoot._eventID=y.internal.events.subscribe("postPutResources",function(){(function(E){E.internal.events.unsubscribe(E.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete E.internal.acroformPlugin.acroFormDictionaryRoot._eventID,E.internal.acroformPlugin.printedOut=!0})(y)}),y.internal.events.subscribe("buildDocument",function(){(function(E){E.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var re=E.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ce in re)if(re.hasOwnProperty(ce)){var fe=re[ce];fe.objId=void 0,fe.hasAnnotation&&Bn(fe,E)}})(y)}),y.internal.events.subscribe("putCatalog",function(){(function(E){if(E.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");E.internal.write("/AcroForm "+E.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(y)}),y.internal.events.subscribe("postPutPages",function(E){(function(re,ce){var fe=!re;for(var $e in re||(ce.internal.newObjectDeferredBegin(ce.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ce.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),re=re||ce.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(re.hasOwnProperty($e)){var Pe=re[$e],Ge=[],Ye=Pe.Rect;if(Pe.Rect&&(Pe.Rect=be(Pe.Rect,ce)),ce.internal.newObjectDeferredBegin(Pe.objId,!0),Pe.DA=ko.createDefaultAppearanceStream(Pe),(0,x.Z)(Pe)==="object"&&typeof Pe.getKeyValueListForStream=="function"&&(Ge=Pe.getKeyValueListForStream()),Pe.Rect=Ye,Pe.hasAppearanceStream&&!Pe.appearanceStreamContent){var ft=ye(Pe);Ge.push({key:"AP",value:"<</N "+ft+">>"}),ce.internal.acroformPlugin.xForms.push(ft)}if(Pe.appearanceStreamContent){var Tt="";for(var Jt in Pe.appearanceStreamContent)if(Pe.appearanceStreamContent.hasOwnProperty(Jt)){var At=Pe.appearanceStreamContent[Jt];if(Tt+="/"+Jt+" ",Tt+="<<",Object.keys(At).length>=1||Array.isArray(At)){for(var $e in At)if(At.hasOwnProperty($e)){var In=At[$e];typeof In=="function"&&(In=In.call(ce,Pe)),Tt+="/"+$e+" "+In+" ",ce.internal.acroformPlugin.xForms.indexOf(In)>=0||ce.internal.acroformPlugin.xForms.push(In)}}else typeof(In=At)=="function"&&(In=In.call(ce,Pe)),Tt+="/"+$e+" "+In,ce.internal.acroformPlugin.xForms.indexOf(In)>=0||ce.internal.acroformPlugin.xForms.push(In);Tt+=">>"}Ge.push({key:"AP",value:`<<
|
|
|
`+Tt+">>"})}ce.internal.putStream({additionalKeyValues:Ge,objectId:Pe.objId}),ce.internal.out("endobj")}fe&&function(bn,On){for(var cn in bn)if(bn.hasOwnProperty(cn)){var gr=cn,cr=bn[cn];On.internal.newObjectDeferredBegin(cr.objId,!0),(0,x.Z)(cr)==="object"&&typeof cr.putStream=="function"&&cr.putStream(),delete bn[gr]}}(ce.internal.acroformPlugin.xForms,ce)})(E,y)}),y.internal.acroformPlugin.isInitialized=!0}},wr=Zu.__acroform__.arrayToPdfArray=function(y,z,E){var re=function($e){return $e};if(Array.isArray(y)){for(var ce="[",fe=0;fe<y.length;fe++)switch(fe!==0&&(ce+=" "),(0,x.Z)(y[fe])){case"boolean":case"number":case"object":ce+=y[fe].toString();break;case"string":y[fe].substr(0,1)!=="/"?(z!==void 0&&E&&(re=E.internal.getEncryptor(z)),ce+="("+fh(re(y[fe].toString()))+")"):ce+=y[fe].toString()}return ce+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Nr=function(y,z,E){var re=function(ce){return ce};return z!==void 0&&E&&(re=E.internal.getEncryptor(z)),(y=y||"").toString(),"("+fh(re(y))+")"},Kr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(y){this._objId=y}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Kr.prototype.toString=function(){return this.objId+" 0 R"},Kr.prototype.putStream=function(){var y=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:y,objectId:this.objId}),this.scope.internal.out("endobj")},Kr.prototype.getKeyValueListForStream=function(){var y=[],z=Object.getOwnPropertyNames(this).filter(function(fe){return fe!="content"&&fe!="appearanceStreamContent"&&fe!="scope"&&fe!="objId"&&fe.substring(0,1)!="_"});for(var E in z)if(Object.getOwnPropertyDescriptor(this,z[E]).configurable===!1){var re=z[E],ce=this[re];ce&&(Array.isArray(ce)?y.push({key:re,value:wr(ce,this.objId,this.scope)}):ce instanceof Kr?(ce.scope=this.scope,y.push({key:re,value:ce.objId+" 0 R"})):typeof ce!="function"&&y.push({key:re,value:ce}))}return y};var Pi=function(){Kr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var y,z=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return z},set:function(E){z=E}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(E){y=E.trim()},get:function(){return y||null}})};SA(Pi,Kr);var pa=function(){Kr.call(this);var y,z=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return z.length>0?z:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return z}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(y){var E=function(re){return re};return this.scope&&(E=this.scope.internal.getEncryptor(this.objId)),"("+fh(E(y))+")"}},set:function(E){y=E}})};SA(pa,Kr);var go=function y(){Kr.call(this);var z=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return z},set:function(cn){if(isNaN(cn))throw new Error('Invalid value "'+cn+'" for attribute F supplied.');z=cn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!tc(z,3)},set:function(cn){cn?this.F=ge(z,3):this.F=Ae(z,3)}});var E=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return E},set:function(cn){if(isNaN(cn))throw new Error('Invalid value "'+cn+'" for attribute Ff supplied.');E=cn}});var re=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(re.length!==0)return re},set:function(cn){re=cn!==void 0?cn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[0])?0:re[0]},set:function(cn){re[0]=cn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[1])?0:re[1]},set:function(cn){re[1]=cn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[2])?0:re[2]},set:function(cn){re[2]=cn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[3])?0:re[3]},set:function(cn){re[3]=cn}});var ce="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return ce},set:function(cn){switch(cn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":ce=cn;break;default:throw new Error('Invalid value "'+cn+'" for attribute FT supplied.')}}});var fe=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!fe||fe.length<1){if(this instanceof sa)return;fe="FieldObject"+y.FieldNum++}var cn=function(gr){return gr};return this.scope&&(cn=this.scope.internal.getEncryptor(this.objId)),"("+fh(cn(fe))+")"},set:function(cn){fe=cn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return fe},set:function(cn){fe=cn}});var $e="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return $e},set:function(cn){$e=cn}});var Pe="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Pe},set:function(cn){Pe=cn}});var Ge=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Ge},set:function(cn){Ge=cn}});var Ye=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Ye===void 0?50/xm:Ye},set:function(cn){Ye=cn}});var ft="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return ft},set:function(cn){ft=cn}});var Tt="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Tt||this instanceof sa||this instanceof Os))return Nr(Tt,this.objId,this.scope)},set:function(cn){cn=cn.toString(),Tt=cn}});var Jt=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Jt)return this instanceof ns==0?Nr(Jt,this.objId,this.scope):Jt},set:function(cn){cn=cn.toString(),Jt=this instanceof ns==0?cn.substr(0,1)==="("?Kh(cn.substr(1,cn.length-2)):Kh(cn):cn}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ns==1?Kh(Jt.substr(1,Jt.length-1)):Jt},set:function(cn){cn=cn.toString(),Jt=this instanceof ns==1?"/"+cn:cn}});var At=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(At)return At},set:function(cn){this.V=cn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(At)return this instanceof ns==0?Nr(At,this.objId,this.scope):At},set:function(cn){cn=cn.toString(),At=this instanceof ns==0?cn.substr(0,1)==="("?Kh(cn.substr(1,cn.length-2)):Kh(cn):cn}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ns==1?Kh(At.substr(1,At.length-1)):At},set:function(cn){cn=cn.toString(),At=this instanceof ns==1?"/"+cn:cn}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var In,bn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return bn},set:function(cn){cn=!!cn,bn=cn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(In)return In},set:function(cn){In=cn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,1)},set:function(cn){cn?this.Ff=ge(this.Ff,1):this.Ff=Ae(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,2)},set:function(cn){cn?this.Ff=ge(this.Ff,2):this.Ff=Ae(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,3)},set:function(cn){cn?this.Ff=ge(this.Ff,3):this.Ff=Ae(this.Ff,3)}});var On=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(On!==null)return On},set:function(cn){if([0,1,2].indexOf(cn)===-1)throw new Error('Invalid value "'+cn+'" for attribute Q supplied.');On=cn}}),Object.defineProperty(this,"textAlign",{get:function(){var cn;switch(On){case 0:default:cn="left";break;case 1:cn="center";break;case 2:cn="right"}return cn},configurable:!0,enumerable:!0,set:function(cn){switch(cn){case"right":case 2:On=2;break;case"center":case 1:On=1;break;default:On=0}}})};SA(go,Kr);var $o=function(){go.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var y=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return y},set:function(E){y=E}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return y},set:function(E){y=E}});var z=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return wr(z,this.objId,this.scope)},set:function(E){var re,ce;ce=[],typeof(re=E)=="string"&&(ce=function(fe,$e,Pe){Pe||(Pe=1);for(var Ge,Ye=[];Ge=$e.exec(fe);)Ye.push(Ge[Pe]);return Ye}(re,/\((.*?)\)/g)),z=ce}}),this.getOptions=function(){return z},this.setOptions=function(E){z=E,this.sort&&z.sort()},this.addOption=function(E){E=(E=E||"").toString(),z.push(E),this.sort&&z.sort()},this.removeOption=function(E,re){for(re=re||!1,E=(E=E||"").toString();z.indexOf(E)!==-1&&(z.splice(z.indexOf(E),1),re!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,18)},set:function(E){E?this.Ff=ge(this.Ff,18):this.Ff=Ae(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,19)},set:function(E){this.combo===!0&&(E?this.Ff=ge(this.Ff,19):this.Ff=Ae(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,20)},set:function(E){E?(this.Ff=ge(this.Ff,20),z.sort()):this.Ff=Ae(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,22)},set:function(E){E?this.Ff=ge(this.Ff,22):this.Ff=Ae(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,23)},set:function(E){E?this.Ff=ge(this.Ff,23):this.Ff=Ae(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,27)},set:function(E){E?this.Ff=ge(this.Ff,27):this.Ff=Ae(this.Ff,27)}}),this.hasAppearanceStream=!1};SA($o,go);var fs=function(){$o.call(this),this.fontName="helvetica",this.combo=!1};SA(fs,$o);var wa=function(){fs.call(this),this.combo=!0};SA(wa,fs);var ma=function(){wa.call(this),this.edit=!0};SA(ma,wa);var ns=function(){go.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,15)},set:function(E){E?this.Ff=ge(this.Ff,15):this.Ff=Ae(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,16)},set:function(E){E?this.Ff=ge(this.Ff,16):this.Ff=Ae(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,17)},set:function(E){E?this.Ff=ge(this.Ff,17):this.Ff=Ae(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,26)},set:function(E){E?this.Ff=ge(this.Ff,26):this.Ff=Ae(this.Ff,26)}});var y,z={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var E=function(fe){return fe};if(this.scope&&(E=this.scope.internal.getEncryptor(this.objId)),Object.keys(z).length!==0){var re,ce=[];for(re in ce.push("<<"),z)ce.push("/"+re+" ("+fh(E(z[re]))+")");return ce.push(">>"),ce.join(`
|
|
|
`)}},set:function(E){(0,x.Z)(E)==="object"&&(z=E)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return z.CA||""},set:function(E){typeof E=="string"&&(z.CA=E)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return y},set:function(E){y=E}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return y.substr(1,y.length-1)},set:function(E){y="/"+E}})};SA(ns,go);var Cs=function(){ns.call(this),this.pushButton=!0};SA(Cs,ns);var Va=function(){ns.call(this),this.radio=!0,this.pushButton=!1;var y=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return y},set:function(z){y=z!==void 0?z:[]}})};SA(Va,ns);var sa=function(){var y,z;go.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return y},set:function(ce){y=ce}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return z},set:function(ce){z=ce}});var E,re={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ce=function(Pe){return Pe};this.scope&&(ce=this.scope.internal.getEncryptor(this.objId));var fe,$e=[];for(fe in $e.push("<<"),re)$e.push("/"+fe+" ("+fh(ce(re[fe]))+")");return $e.push(">>"),$e.join(`
|
|
|
`)},set:function(ce){(0,x.Z)(ce)==="object"&&(re=ce)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return re.CA||""},set:function(ce){typeof ce=="string"&&(re.CA=ce)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return E},set:function(ce){E=ce}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return E.substr(1,E.length-1)},set:function(ce){E="/"+ce}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ko.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};SA(sa,go),Va.prototype.setAppearance=function(y){if(!("createAppearanceStream"in y)||!("getCA"in y))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var z in this.Kids)if(this.Kids.hasOwnProperty(z)){var E=this.Kids[z];E.appearanceStreamContent=y.createAppearanceStream(E.optionName),E.caption=y.getCA()}},Va.prototype.createOption=function(y){var z=new sa;return z.Parent=this,z.optionName=y,this.Kids.push(z),FA.call(this.scope,z),z};var Ys=function(){ns.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ko.CheckBox.createAppearanceStream()};SA(Ys,ns);var Os=function(){go.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,13)},set:function(z){z?this.Ff=ge(this.Ff,13):this.Ff=Ae(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,21)},set:function(z){z?this.Ff=ge(this.Ff,21):this.Ff=Ae(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,23)},set:function(z){z?this.Ff=ge(this.Ff,23):this.Ff=Ae(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,24)},set:function(z){z?this.Ff=ge(this.Ff,24):this.Ff=Ae(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,25)},set:function(z){z?this.Ff=ge(this.Ff,25):this.Ff=Ae(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,26)},set:function(z){z?this.Ff=ge(this.Ff,26):this.Ff=Ae(this.Ff,26)}});var y=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return y},set:function(z){y=z}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return y},set:function(z){Number.isInteger(z)&&(y=z)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};SA(Os,go);var rs=function(){Os.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!tc(this.Ff,14)},set:function(y){y?this.Ff=ge(this.Ff,14):this.Ff=Ae(this.Ff,14)}}),this.password=!0};SA(rs,Os);var ko={CheckBox:{createAppearanceStream:function(){return{N:{On:ko.CheckBox.YesNormal},D:{On:ko.CheckBox.YesPushDown,Off:ko.CheckBox.OffPushDown}}},YesPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=y.scope.internal.getFont(y.fontName,y.fontStyle).id,ce=y.scope.__private__.encodeColorString(y.color),fe=nt(y,y.caption);return E.push("0.749023 g"),E.push("0 0 "+bs(ko.internal.getWidth(y))+" "+bs(ko.internal.getHeight(y))+" re"),E.push("f"),E.push("BMC"),E.push("q"),E.push("0 0 1 rg"),E.push("/"+re+" "+bs(fe.fontSize)+" Tf "+ce),E.push("BT"),E.push(fe.text),E.push("ET"),E.push("Q"),E.push("EMC"),z.stream=E.join(`
|
|
|
`),z},YesNormal:function(y){var z=Ud(y);z.scope=y.scope;var E=y.scope.internal.getFont(y.fontName,y.fontStyle).id,re=y.scope.__private__.encodeColorString(y.color),ce=[],fe=ko.internal.getHeight(y),$e=ko.internal.getWidth(y),Pe=nt(y,y.caption);return ce.push("1 g"),ce.push("0 0 "+bs($e)+" "+bs(fe)+" re"),ce.push("f"),ce.push("q"),ce.push("0 0 1 rg"),ce.push("0 0 "+bs($e-1)+" "+bs(fe-1)+" re"),ce.push("W"),ce.push("n"),ce.push("0 g"),ce.push("BT"),ce.push("/"+E+" "+bs(Pe.fontSize)+" Tf "+re),ce.push(Pe.text),ce.push("ET"),ce.push("Q"),z.stream=ce.join(`
|
|
|
`),z},OffPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[];return E.push("0.749023 g"),E.push("0 0 "+bs(ko.internal.getWidth(y))+" "+bs(ko.internal.getHeight(y))+" re"),E.push("f"),z.stream=E.join(`
|
|
|
`),z}},RadioButton:{Circle:{createAppearanceStream:function(y){var z={D:{Off:ko.RadioButton.Circle.OffPushDown},N:{}};return z.N[y]=ko.RadioButton.Circle.YesNormal,z.D[y]=ko.RadioButton.Circle.YesPushDown,z},getCA:function(){return"l"},YesNormal:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=ko.internal.getWidth(y)<=ko.internal.getHeight(y)?ko.internal.getWidth(y)/4:ko.internal.getHeight(y)/4;re=Number((.9*re).toFixed(5));var ce=ko.internal.Bezier_C,fe=Number((re*ce).toFixed(5));return E.push("q"),E.push("1 0 0 1 "+Uf(ko.internal.getWidth(y)/2)+" "+Uf(ko.internal.getHeight(y)/2)+" cm"),E.push(re+" 0 m"),E.push(re+" "+fe+" "+fe+" "+re+" 0 "+re+" c"),E.push("-"+fe+" "+re+" -"+re+" "+fe+" -"+re+" 0 c"),E.push("-"+re+" -"+fe+" -"+fe+" -"+re+" 0 -"+re+" c"),E.push(fe+" -"+re+" "+re+" -"+fe+" "+re+" 0 c"),E.push("f"),E.push("Q"),z.stream=E.join(`
|
|
|
`),z},YesPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=ko.internal.getWidth(y)<=ko.internal.getHeight(y)?ko.internal.getWidth(y)/4:ko.internal.getHeight(y)/4;re=Number((.9*re).toFixed(5));var ce=Number((2*re).toFixed(5)),fe=Number((ce*ko.internal.Bezier_C).toFixed(5)),$e=Number((re*ko.internal.Bezier_C).toFixed(5));return E.push("0.749023 g"),E.push("q"),E.push("1 0 0 1 "+Uf(ko.internal.getWidth(y)/2)+" "+Uf(ko.internal.getHeight(y)/2)+" cm"),E.push(ce+" 0 m"),E.push(ce+" "+fe+" "+fe+" "+ce+" 0 "+ce+" c"),E.push("-"+fe+" "+ce+" -"+ce+" "+fe+" -"+ce+" 0 c"),E.push("-"+ce+" -"+fe+" -"+fe+" -"+ce+" 0 -"+ce+" c"),E.push(fe+" -"+ce+" "+ce+" -"+fe+" "+ce+" 0 c"),E.push("f"),E.push("Q"),E.push("0 g"),E.push("q"),E.push("1 0 0 1 "+Uf(ko.internal.getWidth(y)/2)+" "+Uf(ko.internal.getHeight(y)/2)+" cm"),E.push(re+" 0 m"),E.push(re+" "+$e+" "+$e+" "+re+" 0 "+re+" c"),E.push("-"+$e+" "+re+" -"+re+" "+$e+" -"+re+" 0 c"),E.push("-"+re+" -"+$e+" -"+$e+" -"+re+" 0 -"+re+" c"),E.push($e+" -"+re+" "+re+" -"+$e+" "+re+" 0 c"),E.push("f"),E.push("Q"),z.stream=E.join(`
|
|
|
`),z},OffPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=ko.internal.getWidth(y)<=ko.internal.getHeight(y)?ko.internal.getWidth(y)/4:ko.internal.getHeight(y)/4;re=Number((.9*re).toFixed(5));var ce=Number((2*re).toFixed(5)),fe=Number((ce*ko.internal.Bezier_C).toFixed(5));return E.push("0.749023 g"),E.push("q"),E.push("1 0 0 1 "+Uf(ko.internal.getWidth(y)/2)+" "+Uf(ko.internal.getHeight(y)/2)+" cm"),E.push(ce+" 0 m"),E.push(ce+" "+fe+" "+fe+" "+ce+" 0 "+ce+" c"),E.push("-"+fe+" "+ce+" -"+ce+" "+fe+" -"+ce+" 0 c"),E.push("-"+ce+" -"+fe+" -"+fe+" -"+ce+" 0 -"+ce+" c"),E.push(fe+" -"+ce+" "+ce+" -"+fe+" "+ce+" 0 c"),E.push("f"),E.push("Q"),z.stream=E.join(`
|
|
|
`),z}},Cross:{createAppearanceStream:function(y){var z={D:{Off:ko.RadioButton.Cross.OffPushDown},N:{}};return z.N[y]=ko.RadioButton.Cross.YesNormal,z.D[y]=ko.RadioButton.Cross.YesPushDown,z},getCA:function(){return"8"},YesNormal:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=ko.internal.calculateCross(y);return E.push("q"),E.push("1 1 "+bs(ko.internal.getWidth(y)-2)+" "+bs(ko.internal.getHeight(y)-2)+" re"),E.push("W"),E.push("n"),E.push(bs(re.x1.x)+" "+bs(re.x1.y)+" m"),E.push(bs(re.x2.x)+" "+bs(re.x2.y)+" l"),E.push(bs(re.x4.x)+" "+bs(re.x4.y)+" m"),E.push(bs(re.x3.x)+" "+bs(re.x3.y)+" l"),E.push("s"),E.push("Q"),z.stream=E.join(`
|
|
|
`),z},YesPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=ko.internal.calculateCross(y),re=[];return re.push("0.749023 g"),re.push("0 0 "+bs(ko.internal.getWidth(y))+" "+bs(ko.internal.getHeight(y))+" re"),re.push("f"),re.push("q"),re.push("1 1 "+bs(ko.internal.getWidth(y)-2)+" "+bs(ko.internal.getHeight(y)-2)+" re"),re.push("W"),re.push("n"),re.push(bs(E.x1.x)+" "+bs(E.x1.y)+" m"),re.push(bs(E.x2.x)+" "+bs(E.x2.y)+" l"),re.push(bs(E.x4.x)+" "+bs(E.x4.y)+" m"),re.push(bs(E.x3.x)+" "+bs(E.x3.y)+" l"),re.push("s"),re.push("Q"),z.stream=re.join(`
|
|
|
`),z},OffPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[];return E.push("0.749023 g"),E.push("0 0 "+bs(ko.internal.getWidth(y))+" "+bs(ko.internal.getHeight(y))+" re"),E.push("f"),z.stream=E.join(`
|
|
|
`),z}}},createDefaultAppearanceStream:function(y){var z=y.scope.internal.getFont(y.fontName,y.fontStyle).id,E=y.scope.__private__.encodeColorString(y.color);return"/"+z+" "+y.fontSize+" Tf "+E}};ko.internal={Bezier_C:.551915024494,calculateCross:function(y){var z=ko.internal.getWidth(y),E=ko.internal.getHeight(y),re=Math.min(z,E);return{x1:{x:(z-re)/2,y:(E-re)/2+re},x2:{x:(z-re)/2+re,y:(E-re)/2},x3:{x:(z-re)/2,y:(E-re)/2},x4:{x:(z-re)/2+re,y:(E-re)/2+re}}}},ko.internal.getWidth=function(y){var z=0;return(0,x.Z)(y)==="object"&&(z=ng(y.Rect[2])),z},ko.internal.getHeight=function(y){var z=0;return(0,x.Z)(y)==="object"&&(z=ng(y.Rect[3])),z};var FA=Zu.addField=function(y){if(xn(this,y),!(y instanceof go))throw new Error("Invalid argument passed to jsPDF.addField.");var z;return(z=y).scope.internal.acroformPlugin.printedOut&&(z.scope.internal.acroformPlugin.printedOut=!1,z.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),z.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(z),y.page=y.scope.internal.getCurrentPageInfo().pageNumber,this};Zu.AcroFormChoiceField=$o,Zu.AcroFormListBox=fs,Zu.AcroFormComboBox=wa,Zu.AcroFormEditBox=ma,Zu.AcroFormButton=ns,Zu.AcroFormPushButton=Cs,Zu.AcroFormRadioButton=Va,Zu.AcroFormCheckBox=Ys,Zu.AcroFormTextField=Os,Zu.AcroFormPasswordField=rs,Zu.AcroFormAppearance=ko,Zu.AcroForm={ChoiceField:$o,ListBox:fs,ComboBox:wa,EditBox:ma,Button:ns,PushButton:Cs,RadioButton:Va,CheckBox:Ys,TextField:Os,PasswordField:rs,Appearance:ko},Oa.AcroForm={ChoiceField:$o,ListBox:fs,ComboBox:wa,EditBox:ma,Button:ns,PushButton:Cs,RadioButton:Va,CheckBox:Ys,TextField:Os,PasswordField:rs,Appearance:ko};var RA=Oa.AcroForm;function Zl(y){return y.reduce(function(z,E,re){return z[E]=re,z},{})}(function(y){var z="addImage_";y.__addimage__={};var E="UNKNOWN",re={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},ce=y.__addimage__.getImageFileTypeByImageData=function(ln,Dn){var mr,dr,pi,Ci,Si,ei=E;if((Dn=Dn||E)==="RGBA"||ln.data!==void 0&&ln.data instanceof Uint8ClampedArray&&"height"in ln&&"width"in ln)return"RGBA";if(ji(ln))for(Si in re)for(pi=re[Si],mr=0;mr<pi.length;mr+=1){for(Ci=!0,dr=0;dr<pi[mr].length;dr+=1)if(pi[mr][dr]!==void 0&&pi[mr][dr]!==ln[dr]){Ci=!1;break}if(Ci===!0){ei=Si;break}}else for(Si in re)for(pi=re[Si],mr=0;mr<pi.length;mr+=1){for(Ci=!0,dr=0;dr<pi[mr].length;dr+=1)if(pi[mr][dr]!==void 0&&pi[mr][dr]!==ln.charCodeAt(dr)){Ci=!1;break}if(Ci===!0){ei=Si;break}}return ei===E&&Dn!==E&&(ei=Dn),ei},fe=function ln(Dn){for(var mr=this.internal.write,dr=this.internal.putStream,pi=(0,this.internal.getFilters)();pi.indexOf("FlateEncode")!==-1;)pi.splice(pi.indexOf("FlateEncode"),1);Dn.objectId=this.internal.newObject();var Ci=[];if(Ci.push({key:"Type",value:"/XObject"}),Ci.push({key:"Subtype",value:"/Image"}),Ci.push({key:"Width",value:Dn.width}),Ci.push({key:"Height",value:Dn.height}),Dn.colorSpace===cn.INDEXED?Ci.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Dn.palette.length/3-1)+" "+("sMask"in Dn&&Dn.sMask!==void 0?Dn.objectId+2:Dn.objectId+1)+" 0 R]"}):(Ci.push({key:"ColorSpace",value:"/"+Dn.colorSpace}),Dn.colorSpace===cn.DEVICE_CMYK&&Ci.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Ci.push({key:"BitsPerComponent",value:Dn.bitsPerComponent}),"decodeParameters"in Dn&&Dn.decodeParameters!==void 0&&Ci.push({key:"DecodeParms",value:"<<"+Dn.decodeParameters+">>"}),"transparency"in Dn&&Array.isArray(Dn.transparency)&&Dn.transparency.length>0){for(var Si="",ei=0,Oi=Dn.transparency.length;ei<Oi;ei++)Si+=Dn.transparency[ei]+" "+Dn.transparency[ei]+" ";Ci.push({key:"Mask",value:"["+Si+"]"})}Dn.sMask!==void 0&&Ci.push({key:"SMask",value:Dn.objectId+1+" 0 R"});var Oo=Dn.filter!==void 0?["/"+Dn.filter]:void 0;if(dr({data:Dn.data,additionalKeyValues:Ci,alreadyAppliedFilters:Oo,objectId:Dn.objectId}),mr("endobj"),"sMask"in Dn&&Dn.sMask!==void 0){var ao,rn=(ao=Dn.sMaskBitsPerComponent)!==null&&ao!==void 0?ao:Dn.bitsPerComponent,Kn={width:Dn.width,height:Dn.height,colorSpace:"DeviceGray",bitsPerComponent:rn,data:Dn.sMask};"filter"in Dn&&(Kn.decodeParameters="/Predictor ".concat(Dn.predictor," /Colors 1 /BitsPerComponent ").concat(rn," /Columns ").concat(Dn.width),Kn.filter=Dn.filter),ln.call(this,Kn)}if(Dn.colorSpace===cn.INDEXED){var rr=this.internal.newObject();dr({data:Fr(new Uint8Array(Dn.palette)),objectId:rr}),mr("endobj")}},$e=function(){var ln=this.internal.collections[z+"images"];for(var Dn in ln)fe.call(this,ln[Dn])},Pe=function(){var ln,Dn=this.internal.collections[z+"images"],mr=this.internal.write;for(var dr in Dn)mr("/I"+(ln=Dn[dr]).index,ln.objectId,"0","R")},Ge=function(){this.internal.collections[z+"images"]||(this.internal.collections[z+"images"]={},this.internal.events.subscribe("putResources",$e),this.internal.events.subscribe("putXobjectDict",Pe))},Ye=function(){var ln=this.internal.collections[z+"images"];return Ge.call(this),ln},ft=function(){return Object.keys(this.internal.collections[z+"images"]).length},Tt=function(ln){return typeof y["process"+ln.toUpperCase()]=="function"},Jt=function(ln){return(0,x.Z)(ln)==="object"&&ln.nodeType===1},At=function(ln,Dn){if(ln.nodeName==="IMG"&&ln.hasAttribute("src")){var mr=""+ln.getAttribute("src");if(mr.indexOf("data:image/")===0)return bp(unescape(mr).split("base64,").pop());var dr=y.loadFile(mr,!0);if(dr!==void 0)return dr}if(ln.nodeName==="CANVAS"){if(ln.width===0||ln.height===0)throw new Error("Given canvas must have data. Canvas width: "+ln.width+", height: "+ln.height);var pi;switch(Dn){case"PNG":pi="image/png";break;case"WEBP":pi="image/webp";break;default:pi="image/jpeg"}return bp(ln.toDataURL(pi,1).split("base64,").pop())}},In=function(ln){var Dn=this.internal.collections[z+"images"];if(Dn){for(var mr in Dn)if(ln===Dn[mr].alias)return Dn[mr]}},bn=function(ln,Dn,mr){return ln||Dn||(ln=-96,Dn=-96),ln<0&&(ln=-1*mr.width*72/ln/this.internal.scaleFactor),Dn<0&&(Dn=-1*mr.height*72/Dn/this.internal.scaleFactor),ln===0&&(ln=Dn*mr.width/mr.height),Dn===0&&(Dn=ln*mr.height/mr.width),[ln,Dn]},On=function(ln,Dn,mr,dr,pi,Ci){var Si=bn.call(this,mr,dr,pi),ei=this.internal.getCoordinateString,Oi=this.internal.getVerticalCoordinateString,Oo=Ye.call(this);if(mr=Si[0],dr=Si[1],Oo[pi.index]=pi,Ci){Ci*=Math.PI/180;var ao=Math.cos(Ci),rn=Math.sin(Ci),Kn=function(yr){return yr.toFixed(4)},rr=[Kn(ao),Kn(rn),Kn(-1*rn),Kn(ao),0,0,"cm"]}this.internal.write("q"),Ci?(this.internal.write([1,"0","0",1,ei(ln),Oi(Dn+dr),"cm"].join(" ")),this.internal.write(rr.join(" ")),this.internal.write([ei(mr),"0","0",ei(dr),"0","0","cm"].join(" "))):this.internal.write([ei(mr),"0","0",ei(dr),ei(ln),Oi(Dn+dr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+pi.index+" Do"),this.internal.write("Q")},cn=y.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};y.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var gr=y.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},cr=y.__addimage__.sHashCode=function(ln){var Dn,mr,dr=0;if(typeof ln=="string")for(mr=ln.length,Dn=0;Dn<mr;Dn++)dr=(dr<<5)-dr+ln.charCodeAt(Dn),dr|=0;else if(ji(ln))for(mr=ln.byteLength/2,Dn=0;Dn<mr;Dn++)dr=(dr<<5)-dr+ln[Dn],dr|=0;return dr},Zn=y.__addimage__.validateStringAsBase64=function(ln){(ln=ln||"").toString().trim();var Dn=!0;return ln.length===0&&(Dn=!1),ln.length%4!=0&&(Dn=!1),/^[A-Za-z0-9+/]+$/.test(ln.substr(0,ln.length-2))===!1&&(Dn=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(ln.substr(-2))===!1&&(Dn=!1),Dn},li=y.__addimage__.extractImageFromDataUrl=function(ln){if(ln==null||!(ln=ln.trim()).startsWith("data:"))return null;var Dn=ln.indexOf(",");return Dn<0?null:ln.substring(0,Dn).trim().endsWith("base64")?ln.substring(Dn+1):null};y.__addimage__.isArrayBuffer=function(ln){return ln instanceof ArrayBuffer};var ji=y.__addimage__.isArrayBufferView=function(ln){return ln instanceof Int8Array||ln instanceof Uint8Array||ln instanceof Uint8ClampedArray||ln instanceof Int16Array||ln instanceof Uint16Array||ln instanceof Int32Array||ln instanceof Uint32Array||ln instanceof Float32Array||ln instanceof Float64Array},Bi=y.__addimage__.binaryStringToUint8Array=function(ln){for(var Dn=ln.length,mr=new Uint8Array(Dn),dr=0;dr<Dn;dr++)mr[dr]=ln.charCodeAt(dr);return mr},Fr=y.__addimage__.arrayBufferToBinaryString=function(ln){for(var Dn="",mr=ji(ln)?ln:new Uint8Array(ln),dr=0;dr<mr.length;dr+=8192)Dn+=String.fromCharCode.apply(null,mr.subarray(dr,dr+8192));return Dn};y.addImage=function(){var ln,Dn,mr,dr,pi,Ci,Si,ei,Oi;if(typeof arguments[1]=="number"?(Dn=E,mr=arguments[1],dr=arguments[2],pi=arguments[3],Ci=arguments[4],Si=arguments[5],ei=arguments[6],Oi=arguments[7]):(Dn=arguments[1],mr=arguments[2],dr=arguments[3],pi=arguments[4],Ci=arguments[5],Si=arguments[6],ei=arguments[7],Oi=arguments[8]),(0,x.Z)(ln=arguments[0])==="object"&&!Jt(ln)&&"imageData"in ln){var Oo=ln;ln=Oo.imageData,Dn=Oo.format||Dn||E,mr=Oo.x||mr||0,dr=Oo.y||dr||0,pi=Oo.w||Oo.width||pi,Ci=Oo.h||Oo.height||Ci,Si=Oo.alias||Si,ei=Oo.compression||ei,Oi=Oo.rotation||Oo.angle||Oi}var ao=this.internal.getFilters();if(ei===void 0&&ao.indexOf("FlateEncode")!==-1&&(ei="SLOW"),isNaN(mr)||isNaN(dr))throw new Error("Invalid coordinates passed to jsPDF.addImage");Ge.call(this);var rn=Xn.call(this,ln,Dn,Si,ei);return On.call(this,mr,dr,pi,Ci,rn,Oi),this};var Xn=function(ln,Dn,mr,dr){var pi,Ci,Si;if(typeof ln=="string"&&ce(ln)===E){ln=unescape(ln);var ei=Wr(ln,!1);(ei!==""||(ei=y.loadFile(ln,!0))!==void 0)&&(ln=ei)}if(Jt(ln)&&(ln=At(ln,Dn)),Dn=ce(ln,Dn),!Tt(Dn))throw new Error("addImage does not support files of type '"+Dn+"', please ensure that a plugin for '"+Dn+"' support is added.");if(((Si=mr)==null||Si.length===0)&&(mr=function(Oi){return typeof Oi=="string"||ji(Oi)?cr(Oi):ji(Oi.data)?cr(Oi.data):null}(ln)),(pi=In.call(this,mr))||(ln instanceof Uint8Array||Dn==="RGBA"||(Ci=ln,ln=Bi(ln)),pi=this["process"+Dn.toUpperCase()](ln,ft.call(this),mr,function(Oi){return Oi&&typeof Oi=="string"&&(Oi=Oi.toUpperCase()),Oi in y.image_compression?Oi:gr.NONE}(dr),Ci)),!pi)throw new Error("An unknown error occurred whilst processing the image.");return pi},Wr=y.__addimage__.convertBase64ToBinaryString=function(ln,Dn){Dn=typeof Dn!="boolean"||Dn;var mr,dr="";if(typeof ln=="string"){var pi;mr=(pi=li(ln))!==null&&pi!==void 0?pi:ln;try{dr=bp(mr)}catch(Ci){if(Dn)throw Zn(mr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Ci.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return dr};y.getImageProperties=function(ln){var Dn,mr,dr="";if(Jt(ln)&&(ln=At(ln)),typeof ln=="string"&&ce(ln)===E&&((dr=Wr(ln,!1))===""&&(dr=y.loadFile(ln)||""),ln=dr),mr=ce(ln),!Tt(mr))throw new Error("addImage does not support files of type '"+mr+"', please ensure that a plugin for '"+mr+"' support is added.");if(ln instanceof Uint8Array||(ln=Bi(ln)),!(Dn=this["process"+mr.toUpperCase()](ln)))throw new Error("An unknown error occurred whilst processing the image");return Dn.fileType=mr,Dn}})(Oa.API),function(y){var z=function(E){if(E!==void 0&&E!="")return!0};Oa.API.events.push(["addPage",function(E){this.internal.getPageInfo(E.pageNumber).pageContext.annotations=[]}]),y.events.push(["putPage",function(E){for(var re,ce,fe,$e=this.internal.getCoordinateString,Pe=this.internal.getVerticalCoordinateString,Ge=this.internal.getPageInfoByObjId(E.objId),Ye=E.pageContext.annotations,ft=!1,Tt=0;Tt<Ye.length&&!ft;Tt++)switch((re=Ye[Tt]).type){case"link":(z(re.options.url)||z(re.options.pageNumber))&&(ft=!0);break;case"reference":case"text":case"freetext":ft=!0}if(ft!=0){this.internal.write("/Annots [");for(var Jt=0;Jt<Ye.length;Jt++){re=Ye[Jt];var At=this.internal.pdfEscape,In=this.internal.getEncryptor(E.objId);switch(re.type){case"reference":this.internal.write(" "+re.object.objId+" 0 R ");break;case"text":var bn=this.internal.newAdditionalObject(),On=this.internal.newAdditionalObject(),cn=this.internal.getEncryptor(bn.objId),gr=re.title||"Note";fe="<</Type /Annot /Subtype /Text "+(ce="/Rect ["+$e(re.bounds.x)+" "+Pe(re.bounds.y+re.bounds.h)+" "+$e(re.bounds.x+re.bounds.w)+" "+Pe(re.bounds.y)+"] ")+"/Contents ("+At(cn(re.contents))+")",fe+=" /Popup "+On.objId+" 0 R",fe+=" /P "+Ge.objId+" 0 R",fe+=" /T ("+At(cn(gr))+") >>",bn.content=fe;var cr=bn.objId+" 0 R";fe="<</Type /Annot /Subtype /Popup "+(ce="/Rect ["+$e(re.bounds.x+30)+" "+Pe(re.bounds.y+re.bounds.h)+" "+$e(re.bounds.x+re.bounds.w+30)+" "+Pe(re.bounds.y)+"] ")+" /Parent "+cr,re.open&&(fe+=" /Open true"),fe+=" >>",On.content=fe,this.internal.write(bn.objId,"0 R",On.objId,"0 R");break;case"freetext":ce="/Rect ["+$e(re.bounds.x)+" "+Pe(re.bounds.y)+" "+$e(re.bounds.x+re.bounds.w)+" "+Pe(re.bounds.y+re.bounds.h)+"] ";var Zn=re.color||"#000000";fe="<</Type /Annot /Subtype /FreeText "+ce+"/Contents ("+At(In(re.contents))+")",fe+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Zn+")",fe+=" /Border [0 0 0]",fe+=" >>",this.internal.write(fe);break;case"link":if(re.options.name){var li=this.annotations._nameMap[re.options.name];re.options.pageNumber=li.page,re.options.top=li.y}else re.options.top||(re.options.top=0);if(ce="/Rect ["+re.finalBounds.x+" "+re.finalBounds.y+" "+re.finalBounds.w+" "+re.finalBounds.h+"] ",fe="",re.options.url)fe="<</Type /Annot /Subtype /Link "+ce+"/Border [0 0 0] /A <</S /URI /URI ("+At(In(re.options.url))+") >>";else if(re.options.pageNumber)switch(fe="<</Type /Annot /Subtype /Link "+ce+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(re.options.pageNumber).objId+" 0 R",re.options.magFactor=re.options.magFactor||"XYZ",re.options.magFactor){case"Fit":fe+=" /Fit]";break;case"FitH":fe+=" /FitH "+re.options.top+"]";break;case"FitV":re.options.left=re.options.left||0,fe+=" /FitV "+re.options.left+"]";break;default:var ji=Pe(re.options.top);re.options.left=re.options.left||0,re.options.zoom===void 0&&(re.options.zoom=0),fe+=" /XYZ "+re.options.left+" "+ji+" "+re.options.zoom+"]"}fe!=""&&(fe+=" >>",this.internal.write(fe))}}this.internal.write("]")}}]),y.createAnnotation=function(E){var re=this.internal.getCurrentPageInfo();switch(E.type){case"link":this.link(E.bounds.x,E.bounds.y,E.bounds.w,E.bounds.h,E);break;case"text":case"freetext":re.pageContext.annotations.push(E)}},y.link=function(E,re,ce,fe,$e){var Pe=this.internal.getCurrentPageInfo(),Ge=this.internal.getCoordinateString,Ye=this.internal.getVerticalCoordinateString;Pe.pageContext.annotations.push({finalBounds:{x:Ge(E),y:Ye(re),w:Ge(E+ce),h:Ye(re+fe)},options:$e,type:"link"})},y.textWithLink=function(E,re,ce,fe){var $e,Pe,Ge=this.getTextWidth(E),Ye=this.internal.getLineHeight()/this.internal.scaleFactor;if(fe.maxWidth!==void 0){Pe=fe.maxWidth;var ft=this.splitTextToSize(E,Pe).length;$e=Math.ceil(Ye*ft)}else Pe=Ge,$e=Ye;return this.text(E,re,ce,fe),ce+=.2*Ye,fe.align==="center"&&(re-=Ge/2),fe.align==="right"&&(re-=Ge),this.link(re,ce-Ye,Pe,$e,fe),Ge},y.getTextWidth=function(E){var re=this.internal.getFontSize();return this.getStringUnitWidth(E)*re/this.internal.scaleFactor}}(Oa.API),function(y){var z={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},E={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},re={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ce=[1570,1571,1573,1575];y.__arabicParser__={};var fe=y.__arabicParser__.isInArabicSubstitutionA=function(bn){return z[bn.charCodeAt(0)]!==void 0},$e=y.__arabicParser__.isArabicLetter=function(bn){return typeof bn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(bn)},Pe=y.__arabicParser__.isArabicEndLetter=function(bn){return $e(bn)&&fe(bn)&&z[bn.charCodeAt(0)].length<=2},Ge=y.__arabicParser__.isArabicAlfLetter=function(bn){return $e(bn)&&ce.indexOf(bn.charCodeAt(0))>=0};y.__arabicParser__.arabicLetterHasIsolatedForm=function(bn){return $e(bn)&&fe(bn)&&z[bn.charCodeAt(0)].length>=1};var Ye=y.__arabicParser__.arabicLetterHasFinalForm=function(bn){return $e(bn)&&fe(bn)&&z[bn.charCodeAt(0)].length>=2};y.__arabicParser__.arabicLetterHasInitialForm=function(bn){return $e(bn)&&fe(bn)&&z[bn.charCodeAt(0)].length>=3};var ft=y.__arabicParser__.arabicLetterHasMedialForm=function(bn){return $e(bn)&&fe(bn)&&z[bn.charCodeAt(0)].length==4},Tt=y.__arabicParser__.resolveLigatures=function(bn){var On=0,cn=E,gr="",cr=0;for(On=0;On<bn.length;On+=1)cn[bn.charCodeAt(On)]!==void 0?(cr++,typeof(cn=cn[bn.charCodeAt(On)])=="number"&&(gr+=String.fromCharCode(cn),cn=E,cr=0),On===bn.length-1&&(cn=E,gr+=bn.charAt(On-(cr-1)),On-=cr-1,cr=0)):(cn=E,gr+=bn.charAt(On-cr),On-=cr,cr=0);return gr};y.__arabicParser__.isArabicDiacritic=function(bn){return bn!==void 0&&re[bn.charCodeAt(0)]!==void 0};var Jt=y.__arabicParser__.getCorrectForm=function(bn,On,cn){return $e(bn)?fe(bn)===!1?-1:!Ye(bn)||!$e(On)&&!$e(cn)||!$e(cn)&&Pe(On)||Pe(bn)&&!$e(On)||Pe(bn)&&Ge(On)||Pe(bn)&&Pe(On)?0:ft(bn)&&$e(On)&&!Pe(On)&&$e(cn)&&Ye(cn)?3:Pe(bn)||!$e(cn)?1:2:-1},At=function(bn){var On=0,cn=0,gr=0,cr="",Zn="",li="",ji=(bn=bn||"").split("\\s+"),Bi=[];for(On=0;On<ji.length;On+=1){for(Bi.push(""),cn=0;cn<ji[On].length;cn+=1)cr=ji[On][cn],Zn=ji[On][cn-1],li=ji[On][cn+1],$e(cr)?(gr=Jt(cr,Zn,li),Bi[On]+=gr!==-1?String.fromCharCode(z[cr.charCodeAt(0)][gr]):cr):Bi[On]+=cr;Bi[On]=Tt(Bi[On])}return Bi.join(" ")},In=y.__arabicParser__.processArabic=y.processArabic=function(){var bn,On=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,cn=[];if(Array.isArray(On)){var gr=0;for(cn=[],gr=0;gr<On.length;gr+=1)Array.isArray(On[gr])?cn.push([At(On[gr][0]),On[gr][1],On[gr][2]]):cn.push([At(On[gr])]);bn=cn}else bn=At(On);return typeof arguments[0]=="string"?bn:(arguments[0].text=bn,arguments[0])};y.events.push(["preProcessText",In])}(Oa.API),Oa.API.autoPrint=function(y){var z;return(y=y||{}).variant=y.variant||"non-conform",y.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){z=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+z+" 0 R")})),this},function(y){var z=function(){var E=void 0;Object.defineProperty(this,"pdf",{get:function(){return E},set:function(Pe){E=Pe}});var re=150;Object.defineProperty(this,"width",{get:function(){return re},set:function(Pe){re=isNaN(Pe)||Number.isInteger(Pe)===!1||Pe<0?150:Pe,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=re+1)}});var ce=300;Object.defineProperty(this,"height",{get:function(){return ce},set:function(Pe){ce=isNaN(Pe)||Number.isInteger(Pe)===!1||Pe<0?300:Pe,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ce+1)}});var fe=[];Object.defineProperty(this,"childNodes",{get:function(){return fe},set:function(Pe){fe=Pe}});var $e={};Object.defineProperty(this,"style",{get:function(){return $e},set:function(Pe){$e=Pe}}),Object.defineProperty(this,"parentNode",{})};z.prototype.getContext=function(E,re){var ce;if((E=E||"2d")!=="2d")return null;for(ce in re)this.pdf.context2d.hasOwnProperty(ce)&&(this.pdf.context2d[ce]=re[ce]);return this.pdf.context2d._canvas=this,this.pdf.context2d},z.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},y.events.push(["initialized",function(){this.canvas=new z,this.canvas.pdf=this}])}(Oa.API),function(y){var z={left:0,top:0,bottom:0,right:0},E=!1,re=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},z),this.internal.__cell__.margins.width=this.getPageWidth(),ce.call(this))},ce=function(){this.internal.__cell__.lastCell=new fe,this.internal.__cell__.pages=1},fe=function(){var Ge=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ge},set:function(bn){Ge=bn}});var Ye=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ye},set:function(bn){Ye=bn}});var ft=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return ft},set:function(bn){ft=bn}});var Tt=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Tt},set:function(bn){Tt=bn}});var Jt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Jt},set:function(bn){Jt=bn}});var At=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return At},set:function(bn){At=bn}});var In=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return In},set:function(bn){In=bn}}),this};fe.prototype.clone=function(){return new fe(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},fe.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},y.setHeaderFunction=function(Ge){return re.call(this),this.internal.__cell__.headerFunction=typeof Ge=="function"?Ge:void 0,this},y.getTextDimensions=function(Ge,Ye){re.call(this);var ft=(Ye=Ye||{}).fontSize||this.getFontSize(),Tt=Ye.font||this.getFont(),Jt=Ye.scaleFactor||this.internal.scaleFactor,At=0,In=0,bn=0,On=this;if(!Array.isArray(Ge)&&typeof Ge!="string"){if(typeof Ge!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Ge=String(Ge)}var cn=Ye.maxWidth;cn>0?typeof Ge=="string"?Ge=this.splitTextToSize(Ge,cn):Object.prototype.toString.call(Ge)==="[object Array]"&&(Ge=Ge.reduce(function(cr,Zn){return cr.concat(On.splitTextToSize(Zn,cn))},[])):Ge=Array.isArray(Ge)?Ge:[Ge];for(var gr=0;gr<Ge.length;gr++)At<(bn=this.getStringUnitWidth(Ge[gr],{font:Tt})*ft)&&(At=bn);return At!==0&&(In=Ge.length),{w:At/=Jt,h:Math.max((In*ft*this.getLineHeightFactor()-ft*(this.getLineHeightFactor()-1))/Jt,0)}},y.cellAddPage=function(){re.call(this),this.addPage();var Ge=this.internal.__cell__.margins||z;return this.internal.__cell__.lastCell=new fe(Ge.left,Ge.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var $e=y.cell=function(){var Ge;Ge=arguments[0]instanceof fe?arguments[0]:new fe(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),re.call(this);var Ye=this.internal.__cell__.lastCell,ft=this.internal.__cell__.padding,Tt=this.internal.__cell__.margins||z,Jt=this.internal.__cell__.tableHeaderRow,At=this.internal.__cell__.printHeaders;return Ye.lineNumber!==void 0&&(Ye.lineNumber===Ge.lineNumber?(Ge.x=(Ye.x||0)+(Ye.width||0),Ge.y=Ye.y||0):Ye.y+Ye.height+Ge.height+Tt.bottom>this.getPageHeight()?(this.cellAddPage(),Ge.y=Tt.top,At&&Jt&&(this.printHeaderRow(Ge.lineNumber,!0),Ge.y+=Jt[0].height)):Ge.y=Ye.y+Ye.height||Ge.y),Ge.text[0]!==void 0&&(this.rect(Ge.x,Ge.y,Ge.width,Ge.height,E===!0?"FD":void 0),Ge.align==="right"?this.text(Ge.text,Ge.x+Ge.width-ft,Ge.y+ft,{align:"right",baseline:"top"}):Ge.align==="center"?this.text(Ge.text,Ge.x+Ge.width/2,Ge.y+ft,{align:"center",baseline:"top",maxWidth:Ge.width-ft-ft}):this.text(Ge.text,Ge.x+ft,Ge.y+ft,{align:"left",baseline:"top",maxWidth:Ge.width-ft-ft})),this.internal.__cell__.lastCell=Ge,this};y.table=function(Ge,Ye,ft,Tt,Jt){if(re.call(this),!ft)throw new Error("No data for PDF table.");var At,In,bn,On,cn=[],gr=[],cr=[],Zn={},li={},ji=[],Bi=[],Fr=(Jt=Jt||{}).autoSize||!1,Xn=Jt.printHeaders!==!1,Wr=Jt.css&&Jt.css["font-size"]!==void 0?16*Jt.css["font-size"]:Jt.fontSize||12,ln=Jt.margins||Object.assign({width:this.getPageWidth()},z),Dn=typeof Jt.padding=="number"?Jt.padding:3,mr=Jt.headerBackgroundColor||"#c8c8c8",dr=Jt.headerTextColor||"#000";if(ce.call(this),this.internal.__cell__.printHeaders=Xn,this.internal.__cell__.margins=ln,this.internal.__cell__.table_font_size=Wr,this.internal.__cell__.padding=Dn,this.internal.__cell__.headerBackgroundColor=mr,this.internal.__cell__.headerTextColor=dr,this.setFontSize(Wr),Tt==null)gr=cn=Object.keys(ft[0]),cr=cn.map(function(){return"left"});else if(Array.isArray(Tt)&&(0,x.Z)(Tt[0])==="object")for(cn=Tt.map(function(Oo){return Oo.name}),gr=Tt.map(function(Oo){return Oo.prompt||Oo.name||""}),cr=Tt.map(function(Oo){return Oo.align||"left"}),At=0;At<Tt.length;At+=1)li[Tt[At].name]=.7499990551181103*Tt[At].width;else Array.isArray(Tt)&&typeof Tt[0]=="string"&&(gr=cn=Tt,cr=cn.map(function(){return"left"}));if(Fr||Array.isArray(Tt)&&typeof Tt[0]=="string")for(At=0;At<cn.length;At+=1){for(Zn[On=cn[At]]=ft.map(function(Oo){return Oo[On]}),this.setFont(void 0,"bold"),ji.push(this.getTextDimensions(gr[At],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),In=Zn[On],this.setFont(void 0,"normal"),bn=0;bn<In.length;bn+=1)ji.push(this.getTextDimensions(In[bn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);li[On]=Math.max.apply(null,ji)+Dn+Dn,ji=[]}if(Xn){var pi={};for(At=0;At<cn.length;At+=1)pi[cn[At]]={},pi[cn[At]].text=gr[At],pi[cn[At]].align=cr[At];var Ci=Pe.call(this,pi,li);Bi=cn.map(function(Oo){return new fe(Ge,Ye,li[Oo],Ci,pi[Oo].text,void 0,pi[Oo].align)}),this.setTableHeaderRow(Bi),this.printHeaderRow(1,!1)}var Si=Tt.reduce(function(Oo,ao){return Oo[ao.name]=ao.align,Oo},{});for(At=0;At<ft.length;At+=1){"rowStart"in Jt&&Jt.rowStart instanceof Function&&Jt.rowStart({row:At,data:ft[At]},this);var ei=Pe.call(this,ft[At],li);for(bn=0;bn<cn.length;bn+=1){var Oi=ft[At][cn[bn]];"cellStart"in Jt&&Jt.cellStart instanceof Function&&Jt.cellStart({row:At,col:bn,data:Oi},this),$e.call(this,new fe(Ge,Ye,li[cn[bn]],ei,Oi,At+2,Si[cn[bn]]))}}return this.internal.__cell__.table_x=Ge,this.internal.__cell__.table_y=Ye,this};var Pe=function(Ge,Ye){var ft=this.internal.__cell__.padding,Tt=this.internal.__cell__.table_font_size,Jt=this.internal.scaleFactor;return Object.keys(Ge).map(function(At){var In=Ge[At];return this.splitTextToSize(In.hasOwnProperty("text")?In.text:In,Ye[At]-ft-ft)},this).map(function(At){return this.getLineHeightFactor()*At.length*Tt/Jt+ft+ft},this).reduce(function(At,In){return Math.max(At,In)},0)};y.setTableHeaderRow=function(Ge){re.call(this),this.internal.__cell__.tableHeaderRow=Ge},y.printHeaderRow=function(Ge,Ye){if(re.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var ft;if(E=!0,typeof this.internal.__cell__.headerFunction=="function"){var Tt=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new fe(Tt[0],Tt[1],Tt[2],Tt[3],void 0,-1)}this.setFont(void 0,"bold");for(var Jt=[],At=0;At<this.internal.__cell__.tableHeaderRow.length;At+=1){ft=this.internal.__cell__.tableHeaderRow[At].clone(),Ye&&(ft.y=this.internal.__cell__.margins.top||0,Jt.push(ft)),ft.lineNumber=Ge;var In=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),$e.call(this,ft),this.setTextColor(In)}Jt.length>0&&this.setTableHeaderRow(Jt),this.setFont(void 0,"normal"),E=!1}}(Oa.API);var Lc={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},sf=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],qc=Zl(sf),oA=[100,200,300,400,500,600,700,800,900],hh=Zl(oA);function qA(y){var z=y.family.replace(/"|'/g,"").toLowerCase(),E=function(fe){return Lc[fe=fe||"normal"]?fe:"normal"}(y.style),re=function(fe){return fe?typeof fe=="number"?fe>=100&&fe<=900&&fe%100==0?fe:400:/^\d00$/.test(fe)?parseInt(fe):fe==="bold"?700:400:400}(y.weight),ce=function(fe){return typeof qc[fe=fe||"normal"]=="number"?fe:"normal"}(y.stretch);return{family:z,style:E,weight:re,stretch:ce,src:y.src||[],ref:y.ref||{name:z,style:[ce,E,re].join(" ")}}}function lf(y,z,E,re){var ce;for(ce=E;ce>=0&&ce<z.length;ce+=re)if(y[z[ce]])return y[z[ce]];for(ce=E;ce>=0&&ce<z.length;ce-=re)if(y[z[ce]])return y[z[ce]]}var ph={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Rf={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Rd(y){return[y.stretch,y.style,y.weight,y.family].join(" ")}function jf(y){return y.trimLeft()}function uf(y,z){for(var E=0;E<y.length;){if(y.charAt(E)===z)return[y.substring(0,E),y.substring(E+1)];E+=1}return null}function $h(y){var z=y.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return z===null?null:[z[0],y.substring(z[0].length)]}var Qf,I0,L0,nm,rg,_0,N0,O0,$g=["times"];function D0(y,z,E,re,ce){var fe=4,$e=T0;switch(ce){case Oa.API.image_compression.FAST:fe=1,$e=P0;break;case Oa.API.image_compression.MEDIUM:fe=6,$e=k0;break;case Oa.API.image_compression.SLOW:fe=9,$e=M0}y=function(Ge,Ye,ft,Tt){for(var Jt,At=Ge.length/Ye,In=new Uint8Array(Ge.length+At),bn=[Dv,P0,T0,k0,M0],On=0;On<At;On+=1){var cn=On*Ye,gr=Ge.subarray(cn,cn+Ye);if(Tt)In.set(Tt(gr,ft,Jt),cn+On);else{for(var cr=bn.length,Zn=[],li=0;li<cr;li+=1)Zn[li]=bn[li](gr,ft,Jt);var ji=Tv(Zn.concat());In.set(Zn[ji],cn+On)}Jt=gr}return In}(y,z,Math.ceil(E*re/8),$e);var Pe=di(y,{level:fe});return Oa.API.__addimage__.arrayBufferToBinaryString(Pe)}function Dv(y){var z=Array.apply([],y);return z.unshift(0),z}function P0(y,z){var E=y.length,re=[];re[0]=1;for(var ce=0;ce<E;ce+=1){var fe=y[ce-z]||0;re[ce+1]=y[ce]-fe+256&255}return re}function T0(y,z,E){var re=y.length,ce=[];ce[0]=2;for(var fe=0;fe<re;fe+=1){var $e=E&&E[fe]||0;ce[fe+1]=y[fe]-$e+256&255}return ce}function k0(y,z,E){var re=y.length,ce=[];ce[0]=3;for(var fe=0;fe<re;fe+=1){var $e=y[fe-z]||0,Pe=E&&E[fe]||0;ce[fe+1]=y[fe]+256-($e+Pe>>>1)&255}return ce}function M0(y,z,E){var re=y.length,ce=[];ce[0]=4;for(var fe=0;fe<re;fe+=1){var $e=Pv(y[fe-z]||0,E&&E[fe]||0,E&&E[fe-z]||0);ce[fe+1]=y[fe]-$e+256&255}return ce}function Pv(y,z,E){if(y===z&&z===E)return y;var re=Math.abs(z-E),ce=Math.abs(y-E),fe=Math.abs(y+z-E-E);return re<=ce&&re<=fe?y:ce<=fe?z:E}function Tv(y){var z=y.map(function(E){return E.reduce(function(re,ce){return re+Math.abs(ce)},0)});return z.indexOf(Math.min.apply(null,z))}function Zg(y,z,E){var re=z*E,ce=Math.floor(re/8),fe=16-(re-8*ce+E),$e=(1<<E)-1;return R0(y,ce)>>fe&$e}function U0(y,z,E,re){var ce=E*re,fe=Math.floor(ce/8),$e=16-(ce-8*fe+re),Pe=(1<<re)-1,Ge=(z&Pe)<<$e;(function(Ye,ft,Tt){if(ft+1<Ye.byteLength)Ye.setUint16(ft,Tt,!1);else{var Jt=Tt>>8&255;Ye.setUint8(ft,Jt)}})(y,fe,R0(y,fe)&~(Pe<<$e)&65535|Ge)}function R0(y,z){return z+1<y.byteLength?y.getUint16(z,!1):y.getUint8(z)<<8}function kv(y){var z=0;if(y[z++]!==71||y[z++]!==73||y[z++]!==70||y[z++]!==56||(y[z++]+1&253)!=56||y[z++]!==97)throw new Error("Invalid GIF 87a/89a header.");var E=y[z++]|y[z++]<<8,re=y[z++]|y[z++]<<8,ce=y[z++],fe=ce>>7,$e=1<<1+(7&ce);y[z++],y[z++];var Pe=null,Ge=null;fe&&(Pe=z,Ge=$e,z+=3*$e);var Ye=!0,ft=[],Tt=0,Jt=null,At=0,In=null;for(this.width=E,this.height=re;Ye&&z<y.length;)switch(y[z++]){case 33:switch(y[z++]){case 255:if(y[z]!==11||y[z+1]==78&&y[z+2]==69&&y[z+3]==84&&y[z+4]==83&&y[z+5]==67&&y[z+6]==65&&y[z+7]==80&&y[z+8]==69&&y[z+9]==50&&y[z+10]==46&&y[z+11]==48&&y[z+12]==3&&y[z+13]==1&&y[z+16]==0)z+=14,In=y[z++]|y[z++]<<8,z++;else for(z+=12;;){if(!((ln=y[z++])>=0))throw Error("Invalid block size");if(ln===0)break;z+=ln}break;case 249:if(y[z++]!==4||y[z+4]!==0)throw new Error("Invalid graphics extension block.");var bn=y[z++];Tt=y[z++]|y[z++]<<8,Jt=y[z++],1&bn||(Jt=null),At=bn>>2&7,z++;break;case 254:for(;;){if(!((ln=y[z++])>=0))throw Error("Invalid block size");if(ln===0)break;z+=ln}break;default:throw new Error("Unknown graphic control label: 0x"+y[z-1].toString(16))}break;case 44:var On=y[z++]|y[z++]<<8,cn=y[z++]|y[z++]<<8,gr=y[z++]|y[z++]<<8,cr=y[z++]|y[z++]<<8,Zn=y[z++],li=Zn>>6&1,ji=1<<1+(7&Zn),Bi=Pe,Fr=Ge,Xn=!1;Zn>>7&&(Xn=!0,Bi=z,Fr=ji,z+=3*ji);var Wr=z;for(z++;;){var ln;if(!((ln=y[z++])>=0))throw Error("Invalid block size");if(ln===0)break;z+=ln}ft.push({x:On,y:cn,width:gr,height:cr,has_local_palette:Xn,palette_offset:Bi,palette_size:Fr,data_offset:Wr,data_length:z-Wr,transparent_index:Jt,interlaced:!!li,delay:Tt,disposal:At});break;case 59:Ye=!1;break;default:throw new Error("Unknown gif block: 0x"+y[z-1].toString(16))}this.numFrames=function(){return ft.length},this.loopCount=function(){return In},this.frameInfo=function(Dn){if(Dn<0||Dn>=ft.length)throw new Error("Frame index out of range.");return ft[Dn]},this.decodeAndBlitFrameBGRA=function(Dn,mr){var dr=this.frameInfo(Dn),pi=dr.width*dr.height,Ci=new Uint8Array(pi);j0(y,dr.data_offset,Ci,pi);var Si=dr.palette_offset,ei=dr.transparent_index;ei===null&&(ei=256);var Oi=dr.width,Oo=E-Oi,ao=Oi,rn=4*(dr.y*E+dr.x),Kn=4*((dr.y+dr.height)*E+dr.x),rr=rn,yr=4*Oo;dr.interlaced===!0&&(yr+=4*E*7);for(var Pr=8,Xr=0,Ei=Ci.length;Xr<Ei;++Xr){var Ii=Ci[Xr];if(ao===0&&(ao=Oi,(rr+=yr)>=Kn&&(yr=4*Oo+4*E*(Pr-1),rr=rn+(Oi+Oo)*(Pr<<1),Pr>>=1)),Ii===ei)rr+=4;else{var Yi=y[Si+3*Ii],Bo=y[Si+3*Ii+1],da=y[Si+3*Ii+2];mr[rr++]=da,mr[rr++]=Bo,mr[rr++]=Yi,mr[rr++]=255}--ao}},this.decodeAndBlitFrameRGBA=function(Dn,mr){var dr=this.frameInfo(Dn),pi=dr.width*dr.height,Ci=new Uint8Array(pi);j0(y,dr.data_offset,Ci,pi);var Si=dr.palette_offset,ei=dr.transparent_index;ei===null&&(ei=256);var Oi=dr.width,Oo=E-Oi,ao=Oi,rn=4*(dr.y*E+dr.x),Kn=4*((dr.y+dr.height)*E+dr.x),rr=rn,yr=4*Oo;dr.interlaced===!0&&(yr+=4*E*7);for(var Pr=8,Xr=0,Ei=Ci.length;Xr<Ei;++Xr){var Ii=Ci[Xr];if(ao===0&&(ao=Oi,(rr+=yr)>=Kn&&(yr=4*Oo+4*E*(Pr-1),rr=rn+(Oi+Oo)*(Pr<<1),Pr>>=1)),Ii===ei)rr+=4;else{var Yi=y[Si+3*Ii],Bo=y[Si+3*Ii+1],da=y[Si+3*Ii+2];mr[rr++]=Yi,mr[rr++]=Bo,mr[rr++]=da,mr[rr++]=255}--ao}}}function j0(y,z,E,re){for(var ce=y[z++],fe=1<<ce,$e=fe+1,Pe=$e+1,Ge=ce+1,Ye=(1<<Ge)-1,ft=0,Tt=0,Jt=0,At=y[z++],In=new Int32Array(4096),bn=null;;){for(;ft<16&&At!==0;)Tt|=y[z++]<<ft,ft+=8,At===1?At=y[z++]:--At;if(ft<Ge)break;var On=Tt&Ye;if(Tt>>=Ge,ft-=Ge,On!==fe){if(On===$e)break;for(var cn=On<Pe?On:bn,gr=0,cr=cn;cr>fe;)cr=In[cr]>>8,++gr;var Zn=cr;if(Jt+gr+(cn!==On?1:0)>re)return void pl.log("Warning, gif stream longer than expected.");E[Jt++]=Zn;var li=Jt+=gr;for(cn!==On&&(E[Jt++]=Zn),cr=cn;gr--;)cr=In[cr],E[--li]=255&cr,cr>>=8;bn!==null&&Pe<4096&&(In[Pe++]=bn<<8|Zn,Pe>=Ye+1&&Ge<12&&(++Ge,Ye=Ye<<1|1)),bn=On}else Pe=$e+1,Ye=(1<<(Ge=ce+1))-1,bn=null}return Jt!==re&&pl.log("Warning, gif stream shorter than expected."),E}function Wg(y){var z,E,re,ce,fe,$e=Math.floor,Pe=new Array(64),Ge=new Array(64),Ye=new Array(64),ft=new Array(64),Tt=new Array(65535),Jt=new Array(65535),At=new Array(64),In=new Array(64),bn=[],On=0,cn=7,gr=new Array(64),cr=new Array(64),Zn=new Array(64),li=new Array(256),ji=new Array(2048),Bi=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Fr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Xn=[0,1,2,3,4,5,6,7,8,9,10,11],Wr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],ln=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Dn=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],mr=[0,1,2,3,4,5,6,7,8,9,10,11],dr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],pi=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Ci(rn,Kn){for(var rr=0,yr=0,Pr=new Array,Xr=1;Xr<=16;Xr++){for(var Ei=1;Ei<=rn[Xr];Ei++)Pr[Kn[yr]]=[],Pr[Kn[yr]][0]=rr,Pr[Kn[yr]][1]=Xr,yr++,rr++;rr*=2}return Pr}function Si(rn){for(var Kn=rn[0],rr=rn[1]-1;rr>=0;)Kn&1<<rr&&(On|=1<<cn),rr--,--cn<0&&(On==255?(ei(255),ei(0)):ei(On),cn=7,On=0)}function ei(rn){bn.push(rn)}function Oi(rn){ei(rn>>8&255),ei(255&rn)}function Oo(rn,Kn,rr,yr,Pr){for(var Xr,Ei=Pr[0],Ii=Pr[240],Yi=function(vo,ss){var Fa,is,Ja,iu,ml,Ds,Cl,gl,Ra,js,Ka=0;for(Ra=0;Ra<8;++Ra){Fa=vo[Ka],is=vo[Ka+1],Ja=vo[Ka+2],iu=vo[Ka+3],ml=vo[Ka+4],Ds=vo[Ka+5],Cl=vo[Ka+6];var xc=Fa+(gl=vo[Ka+7]),Nl=Fa-gl,rl=is+Cl,il=is-Cl,Wu=Ja+Ds,es=Ja-Ds,Iu=iu+ml,hs=iu-ml,Ps=xc+Iu,Gu=xc-Iu,al=rl+Wu,As=rl-Wu;vo[Ka]=Ps+al,vo[Ka+4]=Ps-al;var ou=.707106781*(As+Gu);vo[Ka+2]=Gu+ou,vo[Ka+6]=Gu-ou;var Sp=.382683433*((Ps=hs+es)-(As=il+Nl)),IA=.5411961*Ps+Sp,mh=1.306562965*As+Sp,zf=.707106781*(al=es+il),ds=Nl+zf,gh=Nl-zf;vo[Ka+5]=gh+IA,vo[Ka+3]=gh-IA,vo[Ka+1]=ds+mh,vo[Ka+7]=ds-mh,Ka+=8}for(Ka=0,Ra=0;Ra<8;++Ra){Fa=vo[Ka],is=vo[Ka+8],Ja=vo[Ka+16],iu=vo[Ka+24],ml=vo[Ka+32],Ds=vo[Ka+40],Cl=vo[Ka+48];var vh=Fa+(gl=vo[Ka+56]),jd=Fa-gl,Qd=is+Cl,fc=is-Cl,eA=Ja+Ds,aA=Ja-Ds,Fp=iu+ml,Wh=iu-ml,df=vh+Fp,Kf=vh-Fp,ff=Qd+eA,hf=Qd-eA;vo[Ka]=df+ff,vo[Ka+32]=df-ff;var Hd=.707106781*(hf+Kf);vo[Ka+16]=Kf+Hd,vo[Ka+48]=Kf-Hd;var Ip=.382683433*((df=Wh+aA)-(hf=fc+jd)),$f=.5411961*df+Ip,Lp=1.306562965*hf+Ip,rm=.707106781*(ff=aA+fc),im=jd+rm,om=jd-rm;vo[Ka+40]=om+$f,vo[Ka+24]=om-$f,vo[Ka+8]=im+Lp,vo[Ka+56]=im-Lp,Ka++}for(Ra=0;Ra<64;++Ra)js=vo[Ra]*ss[Ra],At[Ra]=js>0?js+.5|0:js-.5|0;return At}(rn,Kn),Bo=0;Bo<64;++Bo)In[Bi[Bo]]=Yi[Bo];var da=In[0]-rr;rr=In[0],da==0?Si(yr[0]):(Si(yr[Jt[Xr=32767+da]]),Si(Tt[Xr]));for(var ca=63;ca>0&&In[ca]==0;)ca--;if(ca==0)return Si(Ei),rr;for(var Xa,Pn=1;Pn<=ca;){for(var fa=Pn;In[Pn]==0&&Pn<=ca;)++Pn;var Js=Pn-fa;if(Js>=16){Xa=Js>>4;for(var as=1;as<=Xa;++as)Si(Ii);Js&=15}Xr=32767+In[Pn],Si(Pr[(Js<<4)+Jt[Xr]]),Si(Tt[Xr]),Pn++}return ca!=63&&Si(Ei),rr}function ao(rn){rn=Math.min(Math.max(rn,1),100),fe!=rn&&(function(Kn){for(var rr=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],yr=0;yr<64;yr++){var Pr=$e((rr[yr]*Kn+50)/100);Pr=Math.min(Math.max(Pr,1),255),Pe[Bi[yr]]=Pr}for(var Xr=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Ei=0;Ei<64;Ei++){var Ii=$e((Xr[Ei]*Kn+50)/100);Ii=Math.min(Math.max(Ii,1),255),Ge[Bi[Ei]]=Ii}for(var Yi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Bo=0,da=0;da<8;da++)for(var ca=0;ca<8;ca++)Ye[Bo]=1/(Pe[Bi[Bo]]*Yi[da]*Yi[ca]*8),ft[Bo]=1/(Ge[Bi[Bo]]*Yi[da]*Yi[ca]*8),Bo++}(rn<50?Math.floor(5e3/rn):Math.floor(200-2*rn)),fe=rn)}this.encode=function(rn,Kn){Kn&&ao(Kn),bn=new Array,On=0,cn=7,Oi(65496),Oi(65504),Oi(16),ei(74),ei(70),ei(73),ei(70),ei(0),ei(1),ei(1),ei(0),Oi(1),Oi(1),ei(0),ei(0),function(){Oi(65499),Oi(132),ei(0);for(var is=0;is<64;is++)ei(Pe[is]);ei(1);for(var Ja=0;Ja<64;Ja++)ei(Ge[Ja])}(),function(is,Ja){Oi(65472),Oi(17),ei(8),Oi(Ja),Oi(is),ei(3),ei(1),ei(17),ei(0),ei(2),ei(17),ei(1),ei(3),ei(17),ei(1)}(rn.width,rn.height),function(){Oi(65476),Oi(418),ei(0);for(var is=0;is<16;is++)ei(Fr[is+1]);for(var Ja=0;Ja<=11;Ja++)ei(Xn[Ja]);ei(16);for(var iu=0;iu<16;iu++)ei(Wr[iu+1]);for(var ml=0;ml<=161;ml++)ei(ln[ml]);ei(1);for(var Ds=0;Ds<16;Ds++)ei(Dn[Ds+1]);for(var Cl=0;Cl<=11;Cl++)ei(mr[Cl]);ei(17);for(var gl=0;gl<16;gl++)ei(dr[gl+1]);for(var Ra=0;Ra<=161;Ra++)ei(pi[Ra])}(),Oi(65498),Oi(12),ei(3),ei(1),ei(0),ei(2),ei(17),ei(3),ei(17),ei(0),ei(63),ei(0);var rr=0,yr=0,Pr=0;On=0,cn=7,this.encode.displayName="_encode_";for(var Xr,Ei,Ii,Yi,Bo,da,ca,Xa,Pn,fa=rn.data,Js=rn.width,as=rn.height,vo=4*Js,ss=0;ss<as;){for(Xr=0;Xr<vo;){for(Bo=vo*ss+Xr,ca=-1,Xa=0,Pn=0;Pn<64;Pn++)da=Bo+(Xa=Pn>>3)*vo+(ca=4*(7&Pn)),ss+Xa>=as&&(da-=vo*(ss+1+Xa-as)),Xr+ca>=vo&&(da-=Xr+ca-vo+4),Ei=fa[da++],Ii=fa[da++],Yi=fa[da++],gr[Pn]=(ji[Ei]+ji[Ii+256|0]+ji[Yi+512|0]>>16)-128,cr[Pn]=(ji[Ei+768|0]+ji[Ii+1024|0]+ji[Yi+1280|0]>>16)-128,Zn[Pn]=(ji[Ei+1280|0]+ji[Ii+1536|0]+ji[Yi+1792|0]>>16)-128;rr=Oo(gr,Ye,rr,z,re),yr=Oo(cr,ft,yr,E,ce),Pr=Oo(Zn,ft,Pr,E,ce),Xr+=32}ss+=8}if(cn>=0){var Fa=[];Fa[1]=cn+1,Fa[0]=(1<<cn+1)-1,Si(Fa)}return Oi(65497),new Uint8Array(bn)},y=y||50,function(){for(var rn=String.fromCharCode,Kn=0;Kn<256;Kn++)li[Kn]=rn(Kn)}(),z=Ci(Fr,Xn),E=Ci(Dn,mr),re=Ci(Wr,ln),ce=Ci(dr,pi),function(){for(var rn=1,Kn=2,rr=1;rr<=15;rr++){for(var yr=rn;yr<Kn;yr++)Jt[32767+yr]=rr,Tt[32767+yr]=[],Tt[32767+yr][1]=rr,Tt[32767+yr][0]=yr;for(var Pr=-(Kn-1);Pr<=-rn;Pr++)Jt[32767+Pr]=rr,Tt[32767+Pr]=[],Tt[32767+Pr][1]=rr,Tt[32767+Pr][0]=Kn-1+Pr;rn<<=1,Kn<<=1}}(),function(){for(var rn=0;rn<256;rn++)ji[rn]=19595*rn,ji[rn+256|0]=38470*rn,ji[rn+512|0]=7471*rn+32768,ji[rn+768|0]=-11059*rn,ji[rn+1024|0]=-21709*rn,ji[rn+1280|0]=32768*rn+8421375,ji[rn+1536|0]=-27439*rn,ji[rn+1792|0]=-5329*rn}(),ao(y)}function cf(y,z){if(this.pos=0,this.buffer=y,this.datav=new DataView(y.buffer),this.is_with_alpha=!!z,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Q0(y){function z(Xn){if(!Xn)throw Error("assert :P")}function E(Xn,Wr,ln){for(var Dn=0;4>Dn;Dn++)if(Xn[Wr+Dn]!=ln.charCodeAt(Dn))return!0;return!1}function re(Xn,Wr,ln,Dn,mr){for(var dr=0;dr<mr;dr++)Xn[Wr+dr]=ln[Dn+dr]}function ce(Xn,Wr,ln,Dn){for(var mr=0;mr<Dn;mr++)Xn[Wr+mr]=ln}function fe(Xn){return new Int32Array(Xn)}function $e(Xn,Wr){for(var ln=[],Dn=0;Dn<Xn;Dn++)ln.push(new Wr);return ln}function Pe(Xn,Wr){var ln=[];return function Dn(mr,dr,pi){for(var Ci=pi[dr],Si=0;Si<Ci&&(mr.push(pi.length>dr+1?[]:new Wr),!(pi.length<dr+1));Si++)Dn(mr[Si],dr+1,pi)}(ln,0,Xn),ln}var Ge=function(){var Xn=this;function Wr(me,Fe){for(var rt=1<<Fe-1>>>0;me&rt;)rt>>>=1;return rt?(me&rt-1)+rt:me}function ln(me,Fe,rt,Bt,zt){z(!(Bt%rt));do me[Fe+(Bt-=rt)]=zt;while(0<Bt)}function Dn(me,Fe,rt,Bt,zt){if(z(2328>=zt),512>=zt)var qt=fe(512);else if((qt=fe(zt))==null)return 0;return function(tn,fn,yn,Mn,xr,ii){var Un,Dr,Gr=fn,Ui=1<<yn,Jr=fe(16),zi=fe(16);for(z(xr!=0),z(Mn!=null),z(tn!=null),z(0<yn),Dr=0;Dr<xr;++Dr){if(15<Mn[Dr])return 0;++Jr[Mn[Dr]]}if(Jr[0]==xr)return 0;for(zi[1]=0,Un=1;15>Un;++Un){if(Jr[Un]>1<<Un)return 0;zi[Un+1]=zi[Un]+Jr[Un]}for(Dr=0;Dr<xr;++Dr)Un=Mn[Dr],0<Mn[Dr]&&(ii[zi[Un]++]=Dr);if(zi[15]==1)return(Mn=new mr).g=0,Mn.value=ii[0],ln(tn,Gr,1,Ui,Mn),Ui;var Gi,bo=-1,lo=Ui-1,za=0,xa=1,Zs=1,Da=1<<yn;for(Dr=0,Un=1,xr=2;Un<=yn;++Un,xr<<=1){if(xa+=Zs<<=1,0>(Zs-=Jr[Un]))return 0;for(;0<Jr[Un];--Jr[Un])(Mn=new mr).g=Un,Mn.value=ii[Dr++],ln(tn,Gr+za,xr,Da,Mn),za=Wr(za,Un)}for(Un=yn+1,xr=2;15>=Un;++Un,xr<<=1){if(xa+=Zs<<=1,0>(Zs-=Jr[Un]))return 0;for(;0<Jr[Un];--Jr[Un]){if(Mn=new mr,(za&lo)!=bo){for(Gr+=Da,Gi=1<<(bo=Un)-yn;15>bo&&!(0>=(Gi-=Jr[bo]));)++bo,Gi<<=1;Ui+=Da=1<<(Gi=bo-yn),tn[fn+(bo=za&lo)].g=Gi+yn,tn[fn+bo].value=Gr-fn-bo}Mn.g=Un-yn,Mn.value=ii[Dr++],ln(tn,Gr+(za>>yn),xr,Da,Mn),za=Wr(za,Un)}}return xa!=2*zi[15]-1?0:Ui}(me,Fe,rt,Bt,zt,qt)}function mr(){this.value=this.g=0}function dr(){this.value=this.g=0}function pi(){this.G=$e(5,mr),this.H=fe(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=$e(jp,dr)}function Ci(me,Fe,rt,Bt){z(me!=null),z(Fe!=null),z(2147483648>Bt),me.Ca=254,me.I=0,me.b=-8,me.Ka=0,me.oa=Fe,me.pa=rt,me.Jd=Fe,me.Yc=rt+Bt,me.Zc=4<=Bt?rt+Bt-4+1:rt,Ei(me)}function Si(me,Fe){for(var rt=0;0<Fe--;)rt|=Yi(me,128)<<Fe;return rt}function ei(me,Fe){var rt=Si(me,Fe);return Ii(me)?-rt:rt}function Oi(me,Fe,rt,Bt){var zt,qt=0;for(z(me!=null),z(Fe!=null),z(4294967288>Bt),me.Sb=Bt,me.Ra=0,me.u=0,me.h=0,4<Bt&&(Bt=4),zt=0;zt<Bt;++zt)qt+=Fe[rt+zt]<<8*zt;me.Ra=qt,me.bb=Bt,me.oa=Fe,me.pa=rt}function Oo(me){for(;8<=me.u&&me.bb<me.Sb;)me.Ra>>>=8,me.Ra+=me.oa[me.pa+me.bb]<<Yh-8>>>0,++me.bb,me.u-=8;yr(me)&&(me.h=1,me.u=0)}function ao(me,Fe){if(z(0<=Fe),!me.h&&Fe<=vd){var rt=rr(me)&gd[Fe];return me.u+=Fe,Oo(me),rt}return me.h=1,me.u=0}function rn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Kn(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function rr(me){return me.Ra>>>(me.u&Yh-1)>>>0}function yr(me){return z(me.bb<=me.Sb),me.h||me.bb==me.Sb&&me.u>Yh}function Pr(me,Fe){me.u=Fe,me.h=yr(me)}function Xr(me){me.u>=Lh&&(z(me.u>=Lh),Oo(me))}function Ei(me){z(me!=null&&me.oa!=null),me.pa<me.Zc?(me.I=(me.oa[me.pa++]|me.I<<8)>>>0,me.b+=8):(z(me!=null&&me.oa!=null),me.pa<me.Yc?(me.b+=8,me.I=me.oa[me.pa++]|me.I<<8):me.Ka?me.b=0:(me.I<<=8,me.b+=8,me.Ka=1))}function Ii(me){return Si(me,1)}function Yi(me,Fe){var rt=me.Ca;0>me.b&&Ei(me);var Bt=me.b,zt=rt*Fe>>>8,qt=(me.I>>>Bt>zt)+0;for(qt?(rt-=zt,me.I-=zt+1<<Bt>>>0):rt=zt+1,Bt=rt,zt=0;256<=Bt;)zt+=8,Bt>>=8;return Bt=7^zt+Jh[Bt],me.b-=Bt,me.Ca=(rt<<Bt)-1,qt}function Bo(me,Fe,rt){me[Fe+0]=rt>>24&255,me[Fe+1]=rt>>16&255,me[Fe+2]=rt>>8&255,me[Fe+3]=255&rt}function da(me,Fe){return me[Fe+0]|me[Fe+1]<<8}function ca(me,Fe){return da(me,Fe)|me[Fe+2]<<16}function Xa(me,Fe){return da(me,Fe)|da(me,Fe+2)<<16}function Pn(me,Fe){var rt=1<<Fe;return z(me!=null),z(0<Fe),me.X=fe(rt),me.X==null?0:(me.Mb=32-Fe,me.Xa=Fe,1)}function fa(me,Fe){z(me!=null),z(Fe!=null),z(me.Xa==Fe.Xa),re(Fe.X,0,me.X,0,1<<Fe.Xa)}function Js(){this.X=[],this.Xa=this.Mb=0}function as(me,Fe,rt,Bt){z(rt!=null),z(Bt!=null);var zt=rt[0],qt=Bt[0];return zt==0&&(zt=(me*qt+Fe/2)/Fe),qt==0&&(qt=(Fe*zt+me/2)/me),0>=zt||0>=qt?0:(rt[0]=zt,Bt[0]=qt,1)}function vo(me,Fe){return me+(1<<Fe)-1>>>Fe}function ss(me,Fe){return((4278255360&me)+(4278255360&Fe)>>>0&4278255360)+((16711935&me)+(16711935&Fe)>>>0&16711935)>>>0}function Fa(me,Fe){Xn[Fe]=function(rt,Bt,zt,qt,tn,fn,yn){var Mn;for(Mn=0;Mn<tn;++Mn){var xr=Xn[me](fn[yn+Mn-1],zt,qt+Mn);fn[yn+Mn]=ss(rt[Bt+Mn],xr)}}}function is(){this.ud=this.hd=this.jd=0}function Ja(me,Fe){return((4278124286&(me^Fe))>>>1)+(me&Fe)>>>0}function iu(me){return 0<=me&&256>me?me:0>me?0:255<me?255:void 0}function ml(me,Fe){return iu(me+(me-Fe+.5>>1))}function Ds(me,Fe,rt){return Math.abs(Fe-rt)-Math.abs(me-rt)}function Cl(me,Fe,rt,Bt,zt,qt,tn){for(Bt=qt[tn-1],rt=0;rt<zt;++rt)qt[tn+rt]=Bt=ss(me[Fe+rt],Bt)}function gl(me,Fe,rt,Bt,zt){var qt;for(qt=0;qt<rt;++qt){var tn=me[Fe+qt],fn=tn>>8&255,yn=16711935&(yn=(yn=16711935&tn)+((fn<<16)+fn));Bt[zt+qt]=(4278255360&tn)+yn>>>0}}function Ra(me,Fe){Fe.jd=255&me,Fe.hd=me>>8&255,Fe.ud=me>>16&255}function js(me,Fe,rt,Bt,zt,qt){var tn;for(tn=0;tn<Bt;++tn){var fn=Fe[rt+tn],yn=fn>>>8,Mn=fn,xr=255&(xr=(xr=fn>>>16)+((me.jd<<24>>24)*(yn<<24>>24)>>>5));Mn=255&(Mn=(Mn+=(me.hd<<24>>24)*(yn<<24>>24)>>>5)+((me.ud<<24>>24)*(xr<<24>>24)>>>5)),zt[qt+tn]=(4278255360&fn)+(xr<<16)+Mn}}function Ka(me,Fe,rt,Bt,zt){Xn[Fe]=function(qt,tn,fn,yn,Mn,xr,ii,Un,Dr){for(yn=ii;yn<Un;++yn)for(ii=0;ii<Dr;++ii)Mn[xr++]=zt(fn[Bt(qt[tn++])])},Xn[me]=function(qt,tn,fn,yn,Mn,xr,ii){var Un=8>>qt.b,Dr=qt.Ea,Gr=qt.K[0],Ui=qt.w;if(8>Un)for(qt=(1<<qt.b)-1,Ui=(1<<Un)-1;tn<fn;++tn){var Jr,zi=0;for(Jr=0;Jr<Dr;++Jr)Jr&qt||(zi=Bt(yn[Mn++])),xr[ii++]=zt(Gr[zi&Ui]),zi>>=Un}else Xn["VP8LMapColor"+rt](yn,Mn,Gr,Ui,xr,ii,tn,fn,Dr)}}function xc(me,Fe,rt,Bt,zt){for(rt=Fe+rt;Fe<rt;){var qt=me[Fe++];Bt[zt++]=qt>>16&255,Bt[zt++]=qt>>8&255,Bt[zt++]=255&qt}}function Nl(me,Fe,rt,Bt,zt){for(rt=Fe+rt;Fe<rt;){var qt=me[Fe++];Bt[zt++]=qt>>16&255,Bt[zt++]=qt>>8&255,Bt[zt++]=255&qt,Bt[zt++]=qt>>24&255}}function rl(me,Fe,rt,Bt,zt){for(rt=Fe+rt;Fe<rt;){var qt=(tn=me[Fe++])>>16&240|tn>>12&15,tn=240&tn|tn>>28&15;Bt[zt++]=qt,Bt[zt++]=tn}}function il(me,Fe,rt,Bt,zt){for(rt=Fe+rt;Fe<rt;){var qt=(tn=me[Fe++])>>16&248|tn>>13&7,tn=tn>>5&224|tn>>3&31;Bt[zt++]=qt,Bt[zt++]=tn}}function Wu(me,Fe,rt,Bt,zt){for(rt=Fe+rt;Fe<rt;){var qt=me[Fe++];Bt[zt++]=255&qt,Bt[zt++]=qt>>8&255,Bt[zt++]=qt>>16&255}}function es(me,Fe,rt,Bt,zt,qt){if(qt==0)for(rt=Fe+rt;Fe<rt;)Bo(Bt,((qt=me[Fe++])[0]>>24|qt[1]>>8&65280|qt[2]<<8&16711680|qt[3]<<24)>>>0),zt+=32;else re(Bt,zt,me,Fe,rt)}function Iu(me,Fe){Xn[Fe][0]=Xn[me+"0"],Xn[Fe][1]=Xn[me+"1"],Xn[Fe][2]=Xn[me+"2"],Xn[Fe][3]=Xn[me+"3"],Xn[Fe][4]=Xn[me+"4"],Xn[Fe][5]=Xn[me+"5"],Xn[Fe][6]=Xn[me+"6"],Xn[Fe][7]=Xn[me+"7"],Xn[Fe][8]=Xn[me+"8"],Xn[Fe][9]=Xn[me+"9"],Xn[Fe][10]=Xn[me+"10"],Xn[Fe][11]=Xn[me+"11"],Xn[Fe][12]=Xn[me+"12"],Xn[Fe][13]=Xn[me+"13"],Xn[Fe][14]=Xn[me+"0"],Xn[Fe][15]=Xn[me+"0"]}function hs(me){return me==d0||me==f0||me==Lg||me==h0}function Ps(){this.eb=[],this.size=this.A=this.fb=0}function Gu(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function al(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ps,this.f.kb=new Gu,this.sd=null}function As(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ou(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Sp(me){return alert("todo:WebPSamplerProcessPlane"),me.T}function IA(me,Fe){var rt=me.T,Bt=Fe.ba.f.RGBA,zt=Bt.eb,qt=Bt.fb+me.ka*Bt.A,tn=Gd[Fe.ba.S],fn=me.y,yn=me.O,Mn=me.f,xr=me.N,ii=me.ea,Un=me.W,Dr=Fe.cc,Gr=Fe.dc,Ui=Fe.Mc,Jr=Fe.Nc,zi=me.ka,Gi=me.ka+me.T,bo=me.U,lo=bo+1>>1;for(zi==0?tn(fn,yn,null,null,Mn,xr,ii,Un,Mn,xr,ii,Un,zt,qt,null,null,bo):(tn(Fe.ec,Fe.fc,fn,yn,Dr,Gr,Ui,Jr,Mn,xr,ii,Un,zt,qt-Bt.A,zt,qt,bo),++rt);zi+2<Gi;zi+=2)Dr=Mn,Gr=xr,Ui=ii,Jr=Un,xr+=me.Rc,Un+=me.Rc,qt+=2*Bt.A,tn(fn,(yn+=2*me.fa)-me.fa,fn,yn,Dr,Gr,Ui,Jr,Mn,xr,ii,Un,zt,qt-Bt.A,zt,qt,bo);return yn+=me.fa,me.j+Gi<me.o?(re(Fe.ec,Fe.fc,fn,yn,bo),re(Fe.cc,Fe.dc,Mn,xr,lo),re(Fe.Mc,Fe.Nc,ii,Un,lo),rt--):1&Gi||tn(fn,yn,null,null,Mn,xr,ii,Un,Mn,xr,ii,Un,zt,qt+Bt.A,null,null,bo),rt}function mh(me,Fe,rt){var Bt=me.F,zt=[me.J];if(Bt!=null){var qt=me.U,tn=Fe.ba.S,fn=tn==Ig||tn==Lg;Fe=Fe.ba.f.RGBA;var yn=[0],Mn=me.ka;yn[0]=me.T,me.Kb&&(Mn==0?--yn[0]:(--Mn,zt[0]-=me.width),me.j+me.ka+me.T==me.o&&(yn[0]=me.o-me.j-Mn));var xr=Fe.eb;Mn=Fe.fb+Mn*Fe.A,me=J0(Bt,zt[0],me.width,qt,yn,xr,Mn+(fn?0:3),Fe.A),z(rt==yn),me&&hs(tn)&&Zm(xr,Mn,fn,qt,yn,Fe.A)}return 0}function zf(me){var Fe=me.ma,rt=Fe.ba.S,Bt=11>rt,zt=rt==Sg||rt==Fg||rt==Ig||rt==A0||rt==12||hs(rt);if(Fe.memory=null,Fe.Ib=null,Fe.Jb=null,Fe.Nd=null,!Um(Fe.Oa,me,zt?11:12))return 0;if(zt&&hs(rt)&&Tm(),me.da)alert("todo:use_scaling");else{if(Bt){if(Fe.Ib=Sp,me.Kb){if(rt=me.U+1>>1,Fe.memory=fe(me.U+2*rt),Fe.memory==null)return 0;Fe.ec=Fe.memory,Fe.fc=0,Fe.cc=Fe.ec,Fe.dc=Fe.fc+me.U,Fe.Mc=Fe.cc,Fe.Nc=Fe.dc+rt,Fe.Ib=IA,Tm()}}else alert("todo:EmitYUV");zt&&(Fe.Jb=mh,Bt&&mf())}if(Bt&&!pv){for(me=0;256>me;++me)m1[me]=89858*(me-128)+Ng>>_g,y1[me]=-22014*(me-128)+Ng,v1[me]=-45773*(me-128),g1[me]=113618*(me-128)+Ng>>_g;for(me=Gm;me<g0;++me)Fe=76283*(me-16)+Ng>>_g,w1[me-Gm]=Zf(Fe,255),b1[me-Gm]=Zf(Fe+8>>4,15);pv=1}return 1}function ds(me){var Fe=me.ma,rt=me.U,Bt=me.T;return z(!(1&me.ka)),0>=rt||0>=Bt?0:(rt=Fe.Ib(me,Fe),Fe.Jb!=null&&Fe.Jb(me,Fe,rt),Fe.Dc+=rt,1)}function gh(me){me.ma.memory=null}function vh(me,Fe,rt,Bt){return ao(me,8)!=47?0:(Fe[0]=ao(me,14)+1,rt[0]=ao(me,14)+1,Bt[0]=ao(me,1),ao(me,3)!=0?0:!me.h)}function jd(me,Fe){if(4>me)return me+1;var rt=me-2>>1;return(2+(1&me)<<rt)+ao(Fe,rt)+1}function Qd(me,Fe){return 120<Fe?Fe-120:1<=(rt=((rt=n1[Fe-1])>>4)*me+(8-(15&rt)))?rt:1;var rt}function fc(me,Fe,rt){var Bt=rr(rt),zt=me[Fe+=255&Bt].g-8;return 0<zt&&(Pr(rt,rt.u+8),Bt=rr(rt),Fe+=me[Fe].value,Fe+=Bt&(1<<zt)-1),Pr(rt,rt.u+me[Fe].g),me[Fe].value}function eA(me,Fe,rt){return rt.g+=me.g,rt.value+=me.value<<Fe>>>0,z(8>=rt.g),me.g}function aA(me,Fe,rt){var Bt=me.xc;return z((Fe=Bt==0?0:me.vc[me.md*(rt>>Bt)+(Fe>>Bt)])<me.Wb),me.Ya[Fe]}function Fp(me,Fe,rt,Bt){var zt=me.ab,qt=me.c*Fe,tn=me.C;Fe=tn+Fe;var fn=rt,yn=Bt;for(Bt=me.Ta,rt=me.Ua;0<zt--;){var Mn=me.gc[zt],xr=tn,ii=Fe,Un=fn,Dr=yn,Gr=(yn=Bt,fn=rt,Mn.Ea);switch(z(xr<ii),z(ii<=Mn.nc),Mn.hc){case 2:Bc(Un,Dr,(ii-xr)*Gr,yn,fn);break;case 0:var Ui=xr,Jr=ii,zi=yn,Gi=fn,bo=(Da=Mn).Ea;Ui==0&&(jm(Un,Dr,null,null,1,zi,Gi),Cl(Un,Dr+1,0,0,bo-1,zi,Gi+1),Dr+=bo,Gi+=bo,++Ui);for(var lo=1<<Da.b,za=lo-1,xa=vo(bo,Da.b),Zs=Da.K,Da=Da.w+(Ui>>Da.b)*xa;Ui<Jr;){var xl=Zs,Qc=Da,Ws=1;for(fm(Un,Dr,zi,Gi-bo,1,zi,Gi);Ws<bo;){var Pa=(Ws&~za)+lo;Pa>bo&&(Pa=bo),(0,Hm[xl[Qc++]>>8&15])(Un,Dr+ +Ws,zi,Gi+Ws-bo,Pa-Ws,zi,Gi+Ws),Ws=Pa}Dr+=bo,Gi+=bo,++Ui&za||(Da+=xa)}ii!=Mn.nc&&re(yn,fn-Gr,yn,fn+(ii-xr-1)*Gr,Gr);break;case 1:for(Gr=Un,Jr=Dr,bo=(Un=Mn.Ea)-(Gi=Un&~(zi=(Dr=1<<Mn.b)-1)),Ui=vo(Un,Mn.b),lo=Mn.K,Mn=Mn.w+(xr>>Mn.b)*Ui;xr<ii;){for(za=lo,xa=Mn,Zs=new is,Da=Jr+Gi,xl=Jr+Un;Jr<Da;)Ra(za[xa++],Zs),zm(Zs,Gr,Jr,Dr,yn,fn),Jr+=Dr,fn+=Dr;Jr<xl&&(Ra(za[xa++],Zs),zm(Zs,Gr,Jr,bo,yn,fn),Jr+=bo,fn+=bo),++xr&zi||(Mn+=Ui)}break;case 3:if(Un==yn&&Dr==fn&&0<Mn.b){for(Jr=yn,Un=Gr=fn+(ii-xr)*Gr-(Gi=(ii-xr)*vo(Mn.Ea,Mn.b)),Dr=yn,zi=fn,Ui=[],Gi=(bo=Gi)-1;0<=Gi;--Gi)Ui[Gi]=Dr[zi+Gi];for(Gi=bo-1;0<=Gi;--Gi)Jr[Un+Gi]=Ui[Gi];Cg(Mn,xr,ii,yn,Gr,yn,fn)}else Cg(Mn,xr,ii,Un,Dr,yn,fn)}fn=Bt,yn=rt}yn!=rt&&re(Bt,rt,fn,yn,qt)}function Wh(me,Fe){var rt=me.V,Bt=me.Ba+me.c*me.C,zt=Fe-me.C;if(z(Fe<=me.l.o),z(16>=zt),0<zt){var qt=me.l,tn=me.Ta,fn=me.Ua,yn=qt.width;if(Fp(me,zt,rt,Bt),zt=fn=[fn],z((rt=me.C)<(Bt=Fe)),z(qt.v<qt.va),Bt>qt.o&&(Bt=qt.o),rt<qt.j){var Mn=qt.j-rt;rt=qt.j,zt[0]+=Mn*yn}if(rt>=Bt?rt=0:(zt[0]+=4*qt.v,qt.ka=rt-qt.j,qt.U=qt.va-qt.v,qt.T=Bt-rt,rt=1),rt){if(fn=fn[0],11>(rt=me.ca).S){var xr=rt.f.RGBA,ii=(Bt=rt.S,zt=qt.U,qt=qt.T,Mn=xr.eb,xr.A),Un=qt;for(xr=xr.fb+me.Ma*xr.A;0<Un--;){var Dr=tn,Gr=fn,Ui=zt,Jr=Mn,zi=xr;switch(Bt){case Eg:Km(Dr,Gr,Ui,Jr,zi);break;case Sg:qh(Dr,Gr,Ui,Jr,zi);break;case d0:qh(Dr,Gr,Ui,Jr,zi),Zm(Jr,zi,0,Ui,1,0);break;case ov:Qp(Dr,Gr,Ui,Jr,zi);break;case Fg:es(Dr,Gr,Ui,Jr,zi,1);break;case f0:es(Dr,Gr,Ui,Jr,zi,1),Zm(Jr,zi,0,Ui,1,0);break;case Ig:es(Dr,Gr,Ui,Jr,zi,0);break;case Lg:es(Dr,Gr,Ui,Jr,zi,0),Zm(Jr,zi,1,Ui,1,0);break;case A0:ep(Dr,Gr,Ui,Jr,zi);break;case h0:ep(Dr,Gr,Ui,Jr,zi),Y0(Jr,zi,Ui,1,0);break;case av:tp(Dr,Gr,Ui,Jr,zi);break;default:z(0)}fn+=yn,xr+=ii}me.Ma+=qt}else alert("todo:EmitRescaledRowsYUVA");z(me.Ma<=rt.height)}}me.C=Fe,z(me.C<=me.i)}function df(me){var Fe;if(0<me.ua)return 0;for(Fe=0;Fe<me.Wb;++Fe){var rt=me.Ya[Fe].G,Bt=me.Ya[Fe].H;if(0<rt[1][Bt[1]+0].g||0<rt[2][Bt[2]+0].g||0<rt[3][Bt[3]+0].g)return 0}return 1}function Kf(me,Fe,rt,Bt,zt,qt){if(me.Z!=0){var tn=me.qd,fn=me.rd;for(z(ip[me.Z]!=null);Fe<rt;++Fe)ip[me.Z](tn,fn,Bt,zt,Bt,zt,qt),tn=Bt,fn=zt,zt+=qt;me.qd=tn,me.rd=fn}}function ff(me,Fe){var rt=me.l.ma,Bt=rt.Z==0||rt.Z==1?me.l.j:me.C;if(Bt=me.C<Bt?Bt:me.C,z(Fe<=me.l.o),Fe>Bt){var zt=me.l.width,qt=rt.ca,tn=rt.tb+zt*Bt,fn=me.V,yn=me.Ba+me.c*Bt,Mn=me.gc;z(me.ab==1),z(Mn[0].hc==3),Xf(Mn[0],Bt,Fe,fn,yn,qt,tn),Kf(rt,Bt,Fe,qt,tn,zt)}me.C=me.Ma=Fe}function hf(me,Fe,rt,Bt,zt,qt,tn){var fn=me.$/Bt,yn=me.$%Bt,Mn=me.m,xr=me.s,ii=rt+me.$,Un=ii;zt=rt+Bt*zt;var Dr=rt+Bt*qt,Gr=280+xr.ua,Ui=me.Pb?fn:16777216,Jr=0<xr.ua?xr.Wa:null,zi=xr.wc,Gi=ii<Dr?aA(xr,yn,fn):null;z(me.C<qt),z(Dr<=zt);var bo=!1;e:for(;;){for(;bo||ii<Dr;){var lo=0;if(fn>=Ui){var za=ii-rt;z((Ui=me).Pb),Ui.wd=Ui.m,Ui.xd=za,0<Ui.s.ua&&fa(Ui.s.Wa,Ui.s.vb),Ui=fn+i1}if(yn&zi||(Gi=aA(xr,yn,fn)),z(Gi!=null),Gi.Qb&&(Fe[ii]=Gi.qb,bo=!0),!bo)if(Xr(Mn),Gi.jc){lo=Mn,za=Fe;var xa=ii,Zs=Gi.pd[rr(lo)&jp-1];z(Gi.jc),256>Zs.g?(Pr(lo,lo.u+Zs.g),za[xa]=Zs.value,lo=0):(Pr(lo,lo.u+Zs.g-256),z(256<=Zs.value),lo=Zs.value),lo==0&&(bo=!0)}else lo=fc(Gi.G[0],Gi.H[0],Mn);if(Mn.h)break;if(bo||256>lo){if(!bo)if(Gi.nd)Fe[ii]=(Gi.qb|lo<<8)>>>0;else{if(Xr(Mn),bo=fc(Gi.G[1],Gi.H[1],Mn),Xr(Mn),za=fc(Gi.G[2],Gi.H[2],Mn),xa=fc(Gi.G[3],Gi.H[3],Mn),Mn.h)break;Fe[ii]=(xa<<24|bo<<16|lo<<8|za)>>>0}if(bo=!1,++ii,++yn>=Bt&&(yn=0,++fn,tn!=null&&fn<=qt&&!(fn%16)&&tn(me,fn),Jr!=null))for(;Un<ii;)lo=Fe[Un++],Jr.X[(506832829*lo&4294967295)>>>Jr.Mb]=lo}else if(280>lo){if(lo=jd(lo-256,Mn),za=fc(Gi.G[4],Gi.H[4],Mn),Xr(Mn),za=Qd(Bt,za=jd(za,Mn)),Mn.h)break;if(ii-rt<za||zt-ii<lo)break e;for(xa=0;xa<lo;++xa)Fe[ii+xa]=Fe[ii+xa-za];for(ii+=lo,yn+=lo;yn>=Bt;)yn-=Bt,++fn,tn!=null&&fn<=qt&&!(fn%16)&&tn(me,fn);if(z(ii<=zt),yn&zi&&(Gi=aA(xr,yn,fn)),Jr!=null)for(;Un<ii;)lo=Fe[Un++],Jr.X[(506832829*lo&4294967295)>>>Jr.Mb]=lo}else{if(!(lo<Gr))break e;for(bo=lo-280,z(Jr!=null);Un<ii;)lo=Fe[Un++],Jr.X[(506832829*lo&4294967295)>>>Jr.Mb]=lo;lo=ii,z(!(bo>>>(za=Jr).Xa)),Fe[lo]=za.X[bo],bo=!0}bo||z(Mn.h==yr(Mn))}if(me.Pb&&Mn.h&&ii<zt)z(me.m.h),me.a=5,me.m=me.wd,me.$=me.xd,0<me.s.ua&&fa(me.s.vb,me.s.Wa);else{if(Mn.h)break e;tn!=null&&tn(me,fn>qt?qt:fn),me.a=0,me.$=ii-rt}return 1}return me.a=3,0}function Hd(me){z(me!=null),me.vc=null,me.yc=null,me.Ya=null;var Fe=me.Wa;Fe!=null&&(Fe.X=null),me.vb=null,z(me!=null)}function Ip(){var me=new xs;return me==null?null:(me.a=0,me.xb=uv,Iu("Predictor","VP8LPredictors"),Iu("Predictor","VP8LPredictors_C"),Iu("PredictorAdd","VP8LPredictorsAdd"),Iu("PredictorAdd","VP8LPredictorsAdd_C"),Bc=gl,zm=js,Km=xc,qh=Nl,ep=rl,tp=il,Qp=Wu,Xn.VP8LMapColor32b=Vf,Xn.VP8LMapColor8b=Qm,me)}function $f(me,Fe,rt,Bt,zt){var qt=1,tn=[me],fn=[Fe],yn=Bt.m,Mn=Bt.s,xr=null,ii=0;e:for(;;){if(rt)for(;qt&&ao(yn,1);){var Un=tn,Dr=fn,Gr=Bt,Ui=1,Jr=Gr.m,zi=Gr.gc[Gr.ab],Gi=ao(Jr,2);if(Gr.Oc&1<<Gi)qt=0;else{switch(Gr.Oc|=1<<Gi,zi.hc=Gi,zi.Ea=Un[0],zi.nc=Dr[0],zi.K=[null],++Gr.ab,z(4>=Gr.ab),Gi){case 0:case 1:zi.b=ao(Jr,3)+2,Ui=$f(vo(zi.Ea,zi.b),vo(zi.nc,zi.b),0,Gr,zi.K),zi.K=zi.K[0];break;case 3:var bo,lo=ao(Jr,8)+1,za=16<lo?0:4<lo?1:2<lo?2:3;if(Un[0]=vo(zi.Ea,za),zi.b=za,bo=Ui=$f(lo,1,0,Gr,zi.K)){var xa,Zs=lo,Da=zi,xl=1<<(8>>Da.b),Qc=fe(xl);if(Qc==null)bo=0;else{var Ws=Da.K[0],Pa=Da.w;for(Qc[0]=Da.K[0][0],xa=1;xa<1*Zs;++xa)Qc[xa]=ss(Ws[Pa+xa],Qc[xa-1]);for(;xa<4*xl;++xa)Qc[xa]=0;Da.K[0]=null,Da.K[0]=Qc,bo=1}}Ui=bo;break;case 2:break;default:z(0)}qt=Ui}}if(tn=tn[0],fn=fn[0],qt&&ao(yn,1)&&!(qt=1<=(ii=ao(yn,4))&&11>=ii)){Bt.a=3;break e}var ea;if(ea=qt)t:{var Sc,Ts,_l,Ru=Bt,uA=tn,QA=fn,hc=ii,LA=rt,HA=Ru.m,Hc=Ru.s,Dl=[null],cu=1,pc=0,Au=r1[hc];n:for(;;){if(LA&&ao(HA,1)){var cA=ao(HA,3)+2,vf=vo(uA,cA),Fc=vo(QA,cA),ed=vf*Fc;if(!$f(vf,Fc,0,Ru,Dl))break n;for(Dl=Dl[0],Hc.xc=cA,Sc=0;Sc<ed;++Sc){var Cu=Dl[Sc]>>8&65535;Dl[Sc]=Cu,Cu>=cu&&(cu=Cu+1)}}if(HA.h)break n;for(Ts=0;5>Ts;++Ts){var zc=sv[Ts];!Ts&&0<hc&&(zc+=1<<hc),pc<zc&&(pc=zc)}var wd=$e(cu*Au,mr),zA=cu,bd=$e(zA,pi);if(bd==null)var Cd=null;else z(65536>=zA),Cd=bd;var td=fe(pc);if(Cd==null||td==null||wd==null){Ru.a=1;break n}var xd=wd;for(Sc=_l=0;Sc<cu;++Sc){var _u=Cd[Sc],Bd=_u.G,yf=_u.H,zp=0,Oh=1,AA=0;for(Ts=0;5>Ts;++Ts){zc=sv[Ts],Bd[Ts]=xd,yf[Ts]=_l,!Ts&&0<hc&&(zc+=1<<hc);i:{var Dg,v0=zc,Pg=Ru,Vm=td,B1=xd,E1=_l,y0=0,op=Pg.m,S1=ao(op,1);if(ce(Vm,0,0,v0),S1){var F1=ao(op,1)+1,I1=ao(op,1),vv=ao(op,I1==0?1:8);Vm[vv]=1,F1==2&&(Vm[vv=ao(op,8)]=1);var Tg=1}else{var yv=fe(19),wv=ao(op,4)+4;if(19<wv){Pg.a=3;var kg=0;break i}for(Dg=0;Dg<wv;++Dg)yv[t1[Dg]]=ao(op,3);var w0=void 0,Xm=void 0,bv=Pg,L1=yv,Mg=v0,Cv=Vm,b0=0,ap=bv.m,xv=8,Bv=$e(128,mr);r:for(;Dn(Bv,0,7,L1,19);){if(ao(ap,1)){var _1=2+2*ao(ap,3);if((w0=2+ao(ap,_1))>Mg)break r}else w0=Mg;for(Xm=0;Xm<Mg&&w0--;){Xr(ap);var Ev=Bv[0+(127&rr(ap))];Pr(ap,ap.u+Ev.g);var pm=Ev.value;if(16>pm)Cv[Xm++]=pm,pm!=0&&(xv=pm);else{var N1=pm==16,Sv=pm-16,O1=qv[Sv],Fv=ao(ap,Jv[Sv])+O1;if(Xm+Fv>Mg)break r;for(var D1=N1?xv:0;0<Fv--;)Cv[Xm++]=D1}}b0=1;break r}b0||(bv.a=3),Tg=b0}(Tg=Tg&&!op.h)&&(y0=Dn(B1,E1,8,Vm,v0)),Tg&&y0!=0?kg=y0:(Pg.a=3,kg=0)}if(kg==0)break n;if(Oh&&e1[Ts]==1&&(Oh=xd[_l].g==0),zp+=xd[_l].g,_l+=kg,3>=Ts){var Ym,C0=td[0];for(Ym=1;Ym<zc;++Ym)td[Ym]>C0&&(C0=td[Ym]);AA+=C0}}if(_u.nd=Oh,_u.Qb=0,Oh&&(_u.qb=(Bd[3][yf[3]+0].value<<24|Bd[1][yf[1]+0].value<<16|Bd[2][yf[2]+0].value)>>>0,zp==0&&256>Bd[0][yf[0]+0].value&&(_u.Qb=1,_u.qb+=Bd[0][yf[0]+0].value<<8)),_u.jc=!_u.Qb&&6>AA,_u.jc){var Ug,Dh=_u;for(Ug=0;Ug<jp;++Ug){var sp=Ug,lp=Dh.pd[sp],Rg=Dh.G[0][Dh.H[0]+sp];256<=Rg.value?(lp.g=Rg.g+256,lp.value=Rg.value):(lp.g=0,lp.value=0,sp>>=eA(Rg,8,lp),sp>>=eA(Dh.G[1][Dh.H[1]+sp],16,lp),sp>>=eA(Dh.G[2][Dh.H[2]+sp],0,lp),eA(Dh.G[3][Dh.H[3]+sp],24,lp))}}}Hc.vc=Dl,Hc.Wb=cu,Hc.Ya=Cd,Hc.yc=wd,ea=1;break t}ea=0}if(!(qt=ea)){Bt.a=3;break e}if(0<ii){if(Mn.ua=1<<ii,!Pn(Mn.Wa,ii)){Bt.a=1,qt=0;break e}}else Mn.ua=0;var x0=Bt,Iv=tn,P1=fn,B0=x0.s,E0=B0.xc;if(x0.c=Iv,x0.i=P1,B0.md=vo(Iv,E0),B0.wc=E0==0?-1:(1<<E0)-1,rt){Bt.xb=A1;break e}if((xr=fe(tn*fn))==null){Bt.a=1,qt=0;break e}qt=(qt=hf(Bt,xr,0,tn,fn,fn,null))&&!yn.h;break e}return qt?(zt!=null?zt[0]=xr:(z(xr==null),z(rt)),Bt.$=0,rt||Hd(Mn)):Hd(Mn),qt}function Lp(me,Fe){var rt=me.c*me.i,Bt=rt+Fe+16*Fe;return z(me.c<=Fe),me.V=fe(Bt),me.V==null?(me.Ta=null,me.Ua=0,me.a=1,0):(me.Ta=me.V,me.Ua=me.Ba+rt+Fe,1)}function rm(me,Fe){var rt=me.C,Bt=Fe-rt,zt=me.V,qt=me.Ba+me.c*rt;for(z(Fe<=me.l.o);0<Bt;){var tn=16<Bt?16:Bt,fn=me.l.ma,yn=me.l.width,Mn=yn*tn,xr=fn.ca,ii=fn.tb+yn*rt,Un=me.Ta,Dr=me.Ua;Fp(me,tn,zt,qt),q0(Un,Dr,xr,ii,Mn),Kf(fn,rt,rt+tn,xr,ii,yn),Bt-=tn,zt+=tn*me.c,rt+=tn}z(rt==Fe),me.C=me.Ma=Fe}function im(){this.ub=this.yd=this.td=this.Rb=0}function om(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Gg(){this.Fb=this.Bb=this.Cb=0,this.Zb=fe(4),this.Lb=fe(4)}function Bm(){this.Yb=function(){var me=[];return function Fe(rt,Bt,zt){for(var qt=zt[Bt],tn=0;tn<qt&&(rt.push(zt.length>Bt+1?[]:0),!(zt.length<Bt+1));tn++)Fe(rt[tn],Bt+1,zt)}(me,0,[3,11]),me}()}function ig(){this.jb=fe(3),this.Wc=Pe([4,8],Bm),this.Xc=Pe([4,17],Bm)}function og(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new fe(4),this.od=new fe(4)}function zd(){this.ld=this.La=this.dd=this.tc=0}function Em(){this.Na=this.la=0}function ag(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Sm(){this.ad=fe(384),this.Za=0,this.Ob=fe(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function sg(){this.uc=this.M=this.Nb=0,this.wa=Array(new zd),this.Y=0,this.ya=Array(new Sm),this.aa=0,this.l=new am}function lg(){this.y=fe(16),this.f=fe(8),this.ea=fe(8)}function ug(){this.cb=this.a=0,this.sc="",this.m=new rn,this.Od=new im,this.Kc=new om,this.ed=new og,this.Qa=new Gg,this.Ic=this.$c=this.Aa=0,this.D=new sg,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=$e(8,rn),this.ia=0,this.pb=$e(4,ag),this.Pa=new ig,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new lg),this.Hd=0,this.rb=Array(new Em),this.sb=0,this.wa=Array(new zd),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Sm),this.L=this.aa=0,this.gd=Pe([4,2],zd),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Zf(me,Fe){return 0>me?0:me>Fe?Fe:me}function am(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Vg(){var me=new ug;return me!=null&&(me.a=0,me.sc="OK",me.cb=0,me.Xb=0,Wm||(Wm=sm)),me}function _c(me,Fe,rt){return me.a==0&&(me.a=Fe,me.sc=rt,me.cb=0),0}function cg(me,Fe,rt){return 3<=rt&&me[Fe+0]==157&&me[Fe+1]==1&&me[Fe+2]==42}function Wf(me,Fe){if(me==null)return 0;if(me.a=0,me.sc="OK",Fe==null)return _c(me,2,"null VP8Io passed to VP8GetHeaders()");var rt=Fe.data,Bt=Fe.w,zt=Fe.ha;if(4>zt)return _c(me,7,"Truncated header.");var qt=rt[Bt+0]|rt[Bt+1]<<8|rt[Bt+2]<<16,tn=me.Od;if(tn.Rb=!(1&qt),tn.td=qt>>1&7,tn.yd=qt>>4&1,tn.ub=qt>>5,3<tn.td)return _c(me,3,"Incorrect keyframe parameters.");if(!tn.yd)return _c(me,4,"Frame not displayable.");Bt+=3,zt-=3;var fn=me.Kc;if(tn.Rb){if(7>zt)return _c(me,7,"cannot parse picture header");if(!cg(rt,Bt,zt))return _c(me,3,"Bad code word");fn.c=16383&(rt[Bt+4]<<8|rt[Bt+3]),fn.Td=rt[Bt+4]>>6,fn.i=16383&(rt[Bt+6]<<8|rt[Bt+5]),fn.Ud=rt[Bt+6]>>6,Bt+=7,zt-=7,me.za=fn.c+15>>4,me.Ub=fn.i+15>>4,Fe.width=fn.c,Fe.height=fn.i,Fe.Da=0,Fe.j=0,Fe.v=0,Fe.va=Fe.width,Fe.o=Fe.height,Fe.da=0,Fe.ib=Fe.width,Fe.hb=Fe.height,Fe.U=Fe.width,Fe.T=Fe.height,ce((qt=me.Pa).jb,0,255,qt.jb.length),z((qt=me.Qa)!=null),qt.Cb=0,qt.Bb=0,qt.Fb=1,ce(qt.Zb,0,0,qt.Zb.length),ce(qt.Lb,0,0,qt.Lb)}if(tn.ub>zt)return _c(me,7,"bad partition length");Ci(qt=me.m,rt,Bt,tn.ub),Bt+=tn.ub,zt-=tn.ub,tn.Rb&&(fn.Ld=Ii(qt),fn.Kd=Ii(qt)),fn=me.Qa;var yn,Mn=me.Pa;if(z(qt!=null),z(fn!=null),fn.Cb=Ii(qt),fn.Cb){if(fn.Bb=Ii(qt),Ii(qt)){for(fn.Fb=Ii(qt),yn=0;4>yn;++yn)fn.Zb[yn]=Ii(qt)?ei(qt,7):0;for(yn=0;4>yn;++yn)fn.Lb[yn]=Ii(qt)?ei(qt,6):0}if(fn.Bb)for(yn=0;3>yn;++yn)Mn.jb[yn]=Ii(qt)?Si(qt,8):255}else fn.Bb=0;if(qt.Ka)return _c(me,3,"cannot parse segment header");if((fn=me.ed).zd=Ii(qt),fn.Tb=Si(qt,6),fn.wb=Si(qt,3),fn.Pc=Ii(qt),fn.Pc&&Ii(qt)){for(Mn=0;4>Mn;++Mn)Ii(qt)&&(fn.vd[Mn]=ei(qt,6));for(Mn=0;4>Mn;++Mn)Ii(qt)&&(fn.od[Mn]=ei(qt,6))}if(me.L=fn.Tb==0?0:fn.zd?1:2,qt.Ka)return _c(me,3,"cannot parse filter header");var xr=zt;if(zt=yn=Bt,Bt=yn+xr,fn=xr,me.Xb=(1<<Si(me.m,2))-1,xr<3*(Mn=me.Xb))rt=7;else{for(yn+=3*Mn,fn-=3*Mn,xr=0;xr<Mn;++xr){var ii=rt[zt+0]|rt[zt+1]<<8|rt[zt+2]<<16;ii>fn&&(ii=fn),Ci(me.Jc[+xr],rt,yn,ii),yn+=ii,fn-=ii,zt+=3}Ci(me.Jc[+Mn],rt,yn,fn),rt=yn<Bt?0:5}if(rt!=0)return _c(me,rt,"cannot parse partitions");for(rt=Si(yn=me.m,7),zt=Ii(yn)?ei(yn,4):0,Bt=Ii(yn)?ei(yn,4):0,fn=Ii(yn)?ei(yn,4):0,Mn=Ii(yn)?ei(yn,4):0,yn=Ii(yn)?ei(yn,4):0,xr=me.Qa,ii=0;4>ii;++ii){if(xr.Cb){var Un=xr.Zb[ii];xr.Fb||(Un+=rt)}else{if(0<ii){me.pb[ii]=me.pb[0];continue}Un=rt}var Dr=me.pb[ii];Dr.Sc[0]=p0[Zf(Un+zt,127)],Dr.Sc[1]=m0[Zf(Un+0,127)],Dr.Eb[0]=2*p0[Zf(Un+Bt,127)],Dr.Eb[1]=101581*m0[Zf(Un+fn,127)]>>16,8>Dr.Eb[1]&&(Dr.Eb[1]=8),Dr.Qc[0]=p0[Zf(Un+Mn,117)],Dr.Qc[1]=m0[Zf(Un+yn,127)],Dr.lc=Un+yn}if(!tn.Rb)return _c(me,4,"Not a key frame.");for(Ii(qt),tn=me.Pa,rt=0;4>rt;++rt){for(zt=0;8>zt;++zt)for(Bt=0;3>Bt;++Bt)for(fn=0;11>fn;++fn)Mn=Yi(qt,u1[rt][zt][Bt][fn])?Si(qt,8):s1[rt][zt][Bt][fn],tn.Wc[rt][zt].Yb[Bt][fn]=Mn;for(zt=0;17>zt;++zt)tn.Xc[rt][zt]=tn.Wc[rt][c1[zt]]}return me.kc=Ii(qt),me.kc&&(me.Bd=Si(qt,8)),me.cb=1}function sm(me,Fe,rt,Bt,zt,qt,tn){var fn=Fe[zt].Yb[rt];for(rt=0;16>zt;++zt){if(!Yi(me,fn[rt+0]))return zt;for(;!Yi(me,fn[rt+1]);)if(fn=Fe[++zt].Yb[0],rt=0,zt==16)return 16;var yn=Fe[zt+1].Yb;if(Yi(me,fn[rt+2])){var Mn=me,xr=0;if(Yi(Mn,(Un=fn)[(ii=rt)+3]))if(Yi(Mn,Un[ii+6])){for(fn=0,ii=2*(xr=Yi(Mn,Un[ii+8]))+(Un=Yi(Mn,Un[ii+9+xr])),xr=0,Un=o1[ii];Un[fn];++fn)xr+=xr+Yi(Mn,Un[fn]);xr+=3+(8<<ii)}else Yi(Mn,Un[ii+7])?(xr=7+2*Yi(Mn,165),xr+=Yi(Mn,145)):xr=5+Yi(Mn,159);else xr=Yi(Mn,Un[ii+4])?3+Yi(Mn,Un[ii+5]):2;fn=yn[2]}else xr=1,fn=yn[1];yn=tn+a1[zt],0>(Mn=me).b&&Ei(Mn);var ii,Un=Mn.b,Dr=(ii=Mn.Ca>>1)-(Mn.I>>Un)>>31;--Mn.b,Mn.Ca+=Dr,Mn.Ca|=1,Mn.I-=(ii+1&Dr)<<Un,qt[yn]=((xr^Dr)-Dr)*Bt[(0<zt)+0]}return 16}function Ag(me){var Fe=me.rb[me.sb-1];Fe.la=0,Fe.Na=0,ce(me.zc,0,0,me.zc.length),me.ja=0}function Kd(me,Fe,rt,Bt,zt){zt=me[Fe+rt+32*Bt]+(zt>>3),me[Fe+rt+32*Bt]=-256&zt?0>zt?0:255:zt}function Uc(me,Fe,rt,Bt,zt,qt){Kd(me,Fe,0,rt,Bt+zt),Kd(me,Fe,1,rt,Bt+qt),Kd(me,Fe,2,rt,Bt-qt),Kd(me,Fe,3,rt,Bt-zt)}function yh(me){return(20091*me>>16)+me}function dg(me,Fe,rt,Bt){var zt,qt=0,tn=fe(16);for(zt=0;4>zt;++zt){var fn=me[Fe+0]+me[Fe+8],yn=me[Fe+0]-me[Fe+8],Mn=(35468*me[Fe+4]>>16)-yh(me[Fe+12]),xr=yh(me[Fe+4])+(35468*me[Fe+12]>>16);tn[qt+0]=fn+xr,tn[qt+1]=yn+Mn,tn[qt+2]=yn-Mn,tn[qt+3]=fn-xr,qt+=4,Fe++}for(zt=qt=0;4>zt;++zt)fn=(me=tn[qt+0]+4)+tn[qt+8],yn=me-tn[qt+8],Mn=(35468*tn[qt+4]>>16)-yh(tn[qt+12]),Kd(rt,Bt,0,0,fn+(xr=yh(tn[qt+4])+(35468*tn[qt+12]>>16))),Kd(rt,Bt,1,0,yn+Mn),Kd(rt,Bt,2,0,yn-Mn),Kd(rt,Bt,3,0,fn-xr),qt++,Bt+=32}function Xg(me,Fe,rt,Bt){var zt=me[Fe+0]+4,qt=35468*me[Fe+4]>>16,tn=yh(me[Fe+4]),fn=35468*me[Fe+1]>>16;Uc(rt,Bt,0,zt+tn,me=yh(me[Fe+1]),fn),Uc(rt,Bt,1,zt+qt,me,fn),Uc(rt,Bt,2,zt-qt,me,fn),Uc(rt,Bt,3,zt-tn,me,fn)}function Yg(me,Fe,rt,Bt,zt){dg(me,Fe,rt,Bt),zt&&dg(me,Fe+16,rt,Bt+4)}function Gf(me,Fe,rt,Bt){Hp(me,Fe+0,rt,Bt,1),Hp(me,Fe+32,rt,Bt+128,1)}function fg(me,Fe,rt,Bt){var zt;for(me=me[Fe+0]+4,zt=0;4>zt;++zt)for(Fe=0;4>Fe;++Fe)Kd(rt,Bt,Fe,zt,me)}function hg(me,Fe,rt,Bt){me[Fe+0]&&au(me,Fe+0,rt,Bt),me[Fe+16]&&au(me,Fe+16,rt,Bt+4),me[Fe+32]&&au(me,Fe+32,rt,Bt+128),me[Fe+48]&&au(me,Fe+48,rt,Bt+128+4)}function lm(me,Fe,rt,Bt){var zt,qt=fe(16);for(zt=0;4>zt;++zt){var tn=me[Fe+0+zt]+me[Fe+12+zt],fn=me[Fe+4+zt]+me[Fe+8+zt],yn=me[Fe+4+zt]-me[Fe+8+zt],Mn=me[Fe+0+zt]-me[Fe+12+zt];qt[0+zt]=tn+fn,qt[8+zt]=tn-fn,qt[4+zt]=Mn+yn,qt[12+zt]=Mn-yn}for(zt=0;4>zt;++zt)tn=(me=qt[0+4*zt]+3)+qt[3+4*zt],fn=qt[1+4*zt]+qt[2+4*zt],yn=qt[1+4*zt]-qt[2+4*zt],Mn=me-qt[3+4*zt],rt[Bt+0]=tn+fn>>3,rt[Bt+16]=Mn+yn>>3,rt[Bt+32]=tn-fn>>3,rt[Bt+48]=Mn-yn>>3,Bt+=64}function _p(me,Fe,rt){var Bt,zt=Fe-32,qt=yd,tn=255-me[zt-1];for(Bt=0;Bt<rt;++Bt){var fn,yn=qt,Mn=tn+me[Fe-1];for(fn=0;fn<rt;++fn)me[Fe+fn]=yn[Mn+me[zt+fn]];Fe+=32}}function Jg(me,Fe){_p(me,Fe,4)}function qg(me,Fe){_p(me,Fe,8)}function e0(me,Fe){_p(me,Fe,16)}function Fm(me,Fe){var rt;for(rt=0;16>rt;++rt)re(me,Fe+32*rt,me,Fe-32,16)}function pg(me,Fe){var rt;for(rt=16;0<rt;--rt)ce(me,Fe,me[Fe-1],16),Fe+=32}function pf(me,Fe,rt){var Bt;for(Bt=0;16>Bt;++Bt)ce(Fe,rt+32*Bt,me,16)}function t0(me,Fe){var rt,Bt=16;for(rt=0;16>rt;++rt)Bt+=me[Fe-1+32*rt]+me[Fe+rt-32];pf(Bt>>5,me,Fe)}function Np(me,Fe){var rt,Bt=8;for(rt=0;16>rt;++rt)Bt+=me[Fe-1+32*rt];pf(Bt>>4,me,Fe)}function Im(me,Fe){var rt,Bt=8;for(rt=0;16>rt;++rt)Bt+=me[Fe+rt-32];pf(Bt>>4,me,Fe)}function n0(me,Fe){pf(128,me,Fe)}function Ss(me,Fe,rt){return me+2*Fe+rt+2>>2}function r0(me,Fe){var rt,Bt=Fe-32;for(Bt=new Uint8Array([Ss(me[Bt-1],me[Bt+0],me[Bt+1]),Ss(me[Bt+0],me[Bt+1],me[Bt+2]),Ss(me[Bt+1],me[Bt+2],me[Bt+3]),Ss(me[Bt+2],me[Bt+3],me[Bt+4])]),rt=0;4>rt;++rt)re(me,Fe+32*rt,Bt,0,Bt.length)}function i0(me,Fe){var rt=me[Fe-1],Bt=me[Fe-1+32],zt=me[Fe-1+64],qt=me[Fe-1+96];Bo(me,Fe+0,16843009*Ss(me[Fe-1-32],rt,Bt)),Bo(me,Fe+32,16843009*Ss(rt,Bt,zt)),Bo(me,Fe+64,16843009*Ss(Bt,zt,qt)),Bo(me,Fe+96,16843009*Ss(zt,qt,qt))}function o0(me,Fe){var rt,Bt=4;for(rt=0;4>rt;++rt)Bt+=me[Fe+rt-32]+me[Fe-1+32*rt];for(Bt>>=3,rt=0;4>rt;++rt)ce(me,Fe+32*rt,Bt,4)}function wh(me,Fe){var rt=me[Fe-1+0],Bt=me[Fe-1+32],zt=me[Fe-1+64],qt=me[Fe-1-32],tn=me[Fe+0-32],fn=me[Fe+1-32],yn=me[Fe+2-32],Mn=me[Fe+3-32];me[Fe+0+96]=Ss(Bt,zt,me[Fe-1+96]),me[Fe+1+96]=me[Fe+0+64]=Ss(rt,Bt,zt),me[Fe+2+96]=me[Fe+1+64]=me[Fe+0+32]=Ss(qt,rt,Bt),me[Fe+3+96]=me[Fe+2+64]=me[Fe+1+32]=me[Fe+0+0]=Ss(tn,qt,rt),me[Fe+3+64]=me[Fe+2+32]=me[Fe+1+0]=Ss(fn,tn,qt),me[Fe+3+32]=me[Fe+2+0]=Ss(yn,fn,tn),me[Fe+3+0]=Ss(Mn,yn,fn)}function bh(me,Fe){var rt=me[Fe+1-32],Bt=me[Fe+2-32],zt=me[Fe+3-32],qt=me[Fe+4-32],tn=me[Fe+5-32],fn=me[Fe+6-32],yn=me[Fe+7-32];me[Fe+0+0]=Ss(me[Fe+0-32],rt,Bt),me[Fe+1+0]=me[Fe+0+32]=Ss(rt,Bt,zt),me[Fe+2+0]=me[Fe+1+32]=me[Fe+0+64]=Ss(Bt,zt,qt),me[Fe+3+0]=me[Fe+2+32]=me[Fe+1+64]=me[Fe+0+96]=Ss(zt,qt,tn),me[Fe+3+32]=me[Fe+2+64]=me[Fe+1+96]=Ss(qt,tn,fn),me[Fe+3+64]=me[Fe+2+96]=Ss(tn,fn,yn),me[Fe+3+96]=Ss(fn,yn,yn)}function a0(me,Fe){var rt=me[Fe-1+0],Bt=me[Fe-1+32],zt=me[Fe-1+64],qt=me[Fe-1-32],tn=me[Fe+0-32],fn=me[Fe+1-32],yn=me[Fe+2-32],Mn=me[Fe+3-32];me[Fe+0+0]=me[Fe+1+64]=qt+tn+1>>1,me[Fe+1+0]=me[Fe+2+64]=tn+fn+1>>1,me[Fe+2+0]=me[Fe+3+64]=fn+yn+1>>1,me[Fe+3+0]=yn+Mn+1>>1,me[Fe+0+96]=Ss(zt,Bt,rt),me[Fe+0+64]=Ss(Bt,rt,qt),me[Fe+0+32]=me[Fe+1+96]=Ss(rt,qt,tn),me[Fe+1+32]=me[Fe+2+96]=Ss(qt,tn,fn),me[Fe+2+32]=me[Fe+3+96]=Ss(tn,fn,yn),me[Fe+3+32]=Ss(fn,yn,Mn)}function s0(me,Fe){var rt=me[Fe+0-32],Bt=me[Fe+1-32],zt=me[Fe+2-32],qt=me[Fe+3-32],tn=me[Fe+4-32],fn=me[Fe+5-32],yn=me[Fe+6-32],Mn=me[Fe+7-32];me[Fe+0+0]=rt+Bt+1>>1,me[Fe+1+0]=me[Fe+0+64]=Bt+zt+1>>1,me[Fe+2+0]=me[Fe+1+64]=zt+qt+1>>1,me[Fe+3+0]=me[Fe+2+64]=qt+tn+1>>1,me[Fe+0+32]=Ss(rt,Bt,zt),me[Fe+1+32]=me[Fe+0+96]=Ss(Bt,zt,qt),me[Fe+2+32]=me[Fe+1+96]=Ss(zt,qt,tn),me[Fe+3+32]=me[Fe+2+96]=Ss(qt,tn,fn),me[Fe+3+64]=Ss(tn,fn,yn),me[Fe+3+96]=Ss(fn,yn,Mn)}function um(me,Fe){var rt=me[Fe-1+0],Bt=me[Fe-1+32],zt=me[Fe-1+64],qt=me[Fe-1+96];me[Fe+0+0]=rt+Bt+1>>1,me[Fe+2+0]=me[Fe+0+32]=Bt+zt+1>>1,me[Fe+2+32]=me[Fe+0+64]=zt+qt+1>>1,me[Fe+1+0]=Ss(rt,Bt,zt),me[Fe+3+0]=me[Fe+1+32]=Ss(Bt,zt,qt),me[Fe+3+32]=me[Fe+1+64]=Ss(zt,qt,qt),me[Fe+3+64]=me[Fe+2+64]=me[Fe+0+96]=me[Fe+1+96]=me[Fe+2+96]=me[Fe+3+96]=qt}function Lm(me,Fe){var rt=me[Fe-1+0],Bt=me[Fe-1+32],zt=me[Fe-1+64],qt=me[Fe-1+96],tn=me[Fe-1-32],fn=me[Fe+0-32],yn=me[Fe+1-32],Mn=me[Fe+2-32];me[Fe+0+0]=me[Fe+2+32]=rt+tn+1>>1,me[Fe+0+32]=me[Fe+2+64]=Bt+rt+1>>1,me[Fe+0+64]=me[Fe+2+96]=zt+Bt+1>>1,me[Fe+0+96]=qt+zt+1>>1,me[Fe+3+0]=Ss(fn,yn,Mn),me[Fe+2+0]=Ss(tn,fn,yn),me[Fe+1+0]=me[Fe+3+32]=Ss(rt,tn,fn),me[Fe+1+32]=me[Fe+3+64]=Ss(Bt,rt,tn),me[Fe+1+64]=me[Fe+3+96]=Ss(zt,Bt,rt),me[Fe+1+96]=Ss(qt,zt,Bt)}function Op(me,Fe){var rt;for(rt=0;8>rt;++rt)re(me,Fe+32*rt,me,Fe-32,8)}function l0(me,Fe){var rt;for(rt=0;8>rt;++rt)ce(me,Fe,me[Fe-1],8),Fe+=32}function Ch(me,Fe,rt){var Bt;for(Bt=0;8>Bt;++Bt)ce(Fe,rt+32*Bt,me,8)}function u0(me,Fe){var rt,Bt=8;for(rt=0;8>rt;++rt)Bt+=me[Fe+rt-32]+me[Fe-1+32*rt];Ch(Bt>>4,me,Fe)}function _m(me,Fe){var rt,Bt=4;for(rt=0;8>rt;++rt)Bt+=me[Fe+rt-32];Ch(Bt>>3,me,Fe)}function Nm(me,Fe){var rt,Bt=4;for(rt=0;8>rt;++rt)Bt+=me[Fe-1+32*rt];Ch(Bt>>3,me,Fe)}function mg(me,Fe){Ch(128,me,Fe)}function xh(me,Fe,rt){var Bt=me[Fe-rt],zt=me[Fe+0],qt=3*(zt-Bt)+c0[1020+me[Fe-2*rt]-me[Fe+rt]],tn=Bg[112+(qt+4>>3)];me[Fe-rt]=yd[255+Bt+Bg[112+(qt+3>>3)]],me[Fe+0]=yd[255+zt-tn]}function Om(me,Fe,rt,Bt){var zt=me[Fe+0],qt=me[Fe+rt];return Wd[255+me[Fe-2*rt]-me[Fe-rt]]>Bt||Wd[255+qt-zt]>Bt}function cm(me,Fe,rt,Bt){return 4*Wd[255+me[Fe-rt]-me[Fe+0]]+Wd[255+me[Fe-2*rt]-me[Fe+rt]]<=Bt}function Dm(me,Fe,rt,Bt,zt){var qt=me[Fe-3*rt],tn=me[Fe-2*rt],fn=me[Fe-rt],yn=me[Fe+0],Mn=me[Fe+rt],xr=me[Fe+2*rt],ii=me[Fe+3*rt];return 4*Wd[255+fn-yn]+Wd[255+tn-Mn]>Bt?0:Wd[255+me[Fe-4*rt]-qt]<=zt&&Wd[255+qt-tn]<=zt&&Wd[255+tn-fn]<=zt&&Wd[255+ii-xr]<=zt&&Wd[255+xr-Mn]<=zt&&Wd[255+Mn-yn]<=zt}function Dp(me,Fe,rt,Bt){var zt=2*Bt+1;for(Bt=0;16>Bt;++Bt)cm(me,Fe+Bt,rt,zt)&&xh(me,Fe+Bt,rt)}function Pm(me,Fe,rt,Bt){var zt=2*Bt+1;for(Bt=0;16>Bt;++Bt)cm(me,Fe+Bt*rt,1,zt)&&xh(me,Fe+Bt*rt,1)}function gg(me,Fe,rt,Bt){var zt;for(zt=3;0<zt;--zt)Dp(me,Fe+=4*rt,rt,Bt)}function vg(me,Fe,rt,Bt){var zt;for(zt=3;0<zt;--zt)Pm(me,Fe+=4,rt,Bt)}function Bh(me,Fe,rt,Bt,zt,qt,tn,fn){for(qt=2*qt+1;0<zt--;){if(Dm(me,Fe,rt,qt,tn))if(Om(me,Fe,rt,fn))xh(me,Fe,rt);else{var yn=me,Mn=Fe,xr=rt,ii=yn[Mn-2*xr],Un=yn[Mn-xr],Dr=yn[Mn+0],Gr=yn[Mn+xr],Ui=yn[Mn+2*xr],Jr=27*(Gi=c0[1020+3*(Dr-Un)+c0[1020+ii-Gr]])+63>>7,zi=18*Gi+63>>7,Gi=9*Gi+63>>7;yn[Mn-3*xr]=yd[255+yn[Mn-3*xr]+Gi],yn[Mn-2*xr]=yd[255+ii+zi],yn[Mn-xr]=yd[255+Un+Jr],yn[Mn+0]=yd[255+Dr-Jr],yn[Mn+xr]=yd[255+Gr-zi],yn[Mn+2*xr]=yd[255+Ui-Gi]}Fe+=Bt}}function Eh(me,Fe,rt,Bt,zt,qt,tn,fn){for(qt=2*qt+1;0<zt--;){if(Dm(me,Fe,rt,qt,tn))if(Om(me,Fe,rt,fn))xh(me,Fe,rt);else{var yn=me,Mn=Fe,xr=rt,ii=yn[Mn-xr],Un=yn[Mn+0],Dr=yn[Mn+xr],Gr=Bg[112+(4+(Ui=3*(Un-ii))>>3)],Ui=Bg[112+(Ui+3>>3)],Jr=Gr+1>>1;yn[Mn-2*xr]=yd[255+yn[Mn-2*xr]+Jr],yn[Mn-xr]=yd[255+ii+Ui],yn[Mn+0]=yd[255+Un-Gr],yn[Mn+xr]=yd[255+Dr-Jr]}Fe+=Bt}}function yg(me,Fe,rt,Bt,zt,qt){Bh(me,Fe,rt,1,16,Bt,zt,qt)}function Pp(me,Fe,rt,Bt,zt,qt){Bh(me,Fe,1,rt,16,Bt,zt,qt)}function wg(me,Fe,rt,Bt,zt,qt){var tn;for(tn=3;0<tn;--tn)Eh(me,Fe+=4*rt,rt,1,16,Bt,zt,qt)}function Xe(me,Fe,rt,Bt,zt,qt){var tn;for(tn=3;0<tn;--tn)Eh(me,Fe+=4,1,rt,16,Bt,zt,qt)}function Ht(me,Fe,rt,Bt,zt,qt,tn,fn){Bh(me,Fe,zt,1,8,qt,tn,fn),Bh(rt,Bt,zt,1,8,qt,tn,fn)}function Rn(me,Fe,rt,Bt,zt,qt,tn,fn){Bh(me,Fe,1,zt,8,qt,tn,fn),Bh(rt,Bt,1,zt,8,qt,tn,fn)}function pr(me,Fe,rt,Bt,zt,qt,tn,fn){Eh(me,Fe+4*zt,zt,1,8,qt,tn,fn),Eh(rt,Bt+4*zt,zt,1,8,qt,tn,fn)}function $r(me,Fe,rt,Bt,zt,qt,tn,fn){Eh(me,Fe+4,1,zt,8,qt,tn,fn),Eh(rt,Bt+4,1,zt,8,qt,tn,fn)}function $i(){this.ba=new al,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ou,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function so(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Ia(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ja(){this.ua=0,this.Wa=new Js,this.vb=new Js,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new pi,this.yc=new mr}function xs(){this.xb=this.a=0,this.l=new am,this.ca=new al,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Kn,this.Pb=0,this.wd=new Kn,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ja,this.ab=0,this.gc=$e(4,Ia),this.Oc=0}function Qs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new am,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ol(me,Fe,rt,Bt,zt,qt,tn){for(me=me==null?0:me[Fe+0],Fe=0;Fe<tn;++Fe)zt[qt+Fe]=me+rt[Bt+Fe]&255,me=zt[qt+Fe]}function nc(me,Fe,rt,Bt,zt,qt,tn){var fn;if(me==null)Ol(null,null,rt,Bt,zt,qt,tn);else for(fn=0;fn<tn;++fn)zt[qt+fn]=me[Fe+fn]+rt[Bt+fn]&255}function Nc(me,Fe,rt,Bt,zt,qt,tn){if(me==null)Ol(null,null,rt,Bt,zt,qt,tn);else{var fn,yn=me[Fe+0],Mn=yn,xr=yn;for(fn=0;fn<tn;++fn)Mn=xr+(yn=me[Fe+fn])-Mn,xr=rt[Bt+fn]+(-256&Mn?0>Mn?0:255:Mn)&255,Mn=yn,zt[qt+fn]=xr}}function Lu(me,Fe,rt,Bt){var zt=Fe.width,qt=Fe.o;if(z(me!=null&&Fe!=null),0>rt||0>=Bt||rt+Bt>qt)return null;if(!me.Cc){if(me.ga==null){var tn;if(me.ga=new Qs,(tn=me.ga==null)||(tn=Fe.width*Fe.o,z(me.Gb.length==0),me.Gb=fe(tn),me.Uc=0,me.Gb==null?tn=0:(me.mb=me.Gb,me.nb=me.Uc,me.rc=null,tn=1),tn=!tn),!tn){tn=me.ga;var fn=me.Fa,yn=me.P,Mn=me.qc,xr=me.mb,ii=me.nb,Un=yn+1,Dr=Mn-1,Gr=tn.l;if(z(fn!=null&&xr!=null&&Fe!=null),ip[0]=null,ip[1]=Ol,ip[2]=nc,ip[3]=Nc,tn.ca=xr,tn.tb=ii,tn.c=Fe.width,tn.i=Fe.height,z(0<tn.c&&0<tn.i),1>=Mn)Fe=0;else if(tn.$a=3&fn[yn+0],tn.Z=fn[yn+0]>>2&3,tn.Lc=fn[yn+0]>>4&3,yn=fn[yn+0]>>6&3,0>tn.$a||1<tn.$a||4<=tn.Z||1<tn.Lc||yn)Fe=0;else if(Gr.put=ds,Gr.ac=zf,Gr.bc=gh,Gr.ma=tn,Gr.width=Fe.width,Gr.height=Fe.height,Gr.Da=Fe.Da,Gr.v=Fe.v,Gr.va=Fe.va,Gr.j=Fe.j,Gr.o=Fe.o,tn.$a)e:{z(tn.$a==1),Fe=Ip();t:for(;;){if(Fe==null){Fe=0;break e}if(z(tn!=null),tn.mc=Fe,Fe.c=tn.c,Fe.i=tn.i,Fe.l=tn.l,Fe.l.ma=tn,Fe.l.width=tn.c,Fe.l.height=tn.i,Fe.a=0,Oi(Fe.m,fn,Un,Dr),!$f(tn.c,tn.i,1,Fe,null)||(Fe.ab==1&&Fe.gc[0].hc==3&&df(Fe.s)?(tn.ic=1,fn=Fe.c*Fe.i,Fe.Ta=null,Fe.Ua=0,Fe.V=fe(fn),Fe.Ba=0,Fe.V==null?(Fe.a=1,Fe=0):Fe=1):(tn.ic=0,Fe=Lp(Fe,tn.c)),!Fe))break t;Fe=1;break e}tn.mc=null,Fe=0}else Fe=Dr>=tn.c*tn.i;tn=!Fe}if(tn)return null;me.ga.Lc!=1?me.Ga=0:Bt=qt-rt}z(me.ga!=null),z(rt+Bt<=qt);e:{if(Fe=(fn=me.ga).c,qt=fn.l.o,fn.$a==0){if(Un=me.rc,Dr=me.Vc,Gr=me.Fa,yn=me.P+1+rt*Fe,Mn=me.mb,xr=me.nb+rt*Fe,z(yn<=me.P+me.qc),fn.Z!=0)for(z(ip[fn.Z]!=null),tn=0;tn<Bt;++tn)ip[fn.Z](Un,Dr,Gr,yn,Mn,xr,Fe),Un=Mn,Dr=xr,xr+=Fe,yn+=Fe;else for(tn=0;tn<Bt;++tn)re(Mn,xr,Gr,yn,Fe),Un=Mn,Dr=xr,xr+=Fe,yn+=Fe;me.rc=Un,me.Vc=Dr}else{if(z(fn.mc!=null),Fe=rt+Bt,z((tn=fn.mc)!=null),z(Fe<=tn.i),tn.C>=Fe)Fe=1;else if(fn.ic||mf(),fn.ic){fn=tn.V,Un=tn.Ba,Dr=tn.c;var Ui=tn.i,Jr=(Gr=1,yn=tn.$/Dr,Mn=tn.$%Dr,xr=tn.m,ii=tn.s,tn.$),zi=Dr*Ui,Gi=Dr*Fe,bo=ii.wc,lo=Jr<Gi?aA(ii,Mn,yn):null;z(Jr<=zi),z(Fe<=Ui),z(df(ii));t:for(;;){for(;!xr.h&&Jr<Gi;){if(Mn&bo||(lo=aA(ii,Mn,yn)),z(lo!=null),Xr(xr),256>(Ui=fc(lo.G[0],lo.H[0],xr)))fn[Un+Jr]=Ui,++Jr,++Mn>=Dr&&(Mn=0,++yn<=Fe&&!(yn%16)&&ff(tn,yn));else{if(!(280>Ui)){Gr=0;break t}Ui=jd(Ui-256,xr);var za,xa=fc(lo.G[4],lo.H[4],xr);if(Xr(xr),!(Jr>=(xa=Qd(Dr,xa=jd(xa,xr)))&&zi-Jr>=Ui)){Gr=0;break t}for(za=0;za<Ui;++za)fn[Un+Jr+za]=fn[Un+Jr+za-xa];for(Jr+=Ui,Mn+=Ui;Mn>=Dr;)Mn-=Dr,++yn<=Fe&&!(yn%16)&&ff(tn,yn);Jr<Gi&&Mn&bo&&(lo=aA(ii,Mn,yn))}z(xr.h==yr(xr))}ff(tn,yn>Fe?Fe:yn);break t}!Gr||xr.h&&Jr<zi?(Gr=0,tn.a=xr.h?5:3):tn.$=Jr,Fe=Gr}else Fe=hf(tn,tn.V,tn.Ba,tn.c,tn.i,Fe,rm);if(!Fe){Bt=0;break e}}rt+Bt>=qt&&(me.Cc=1),Bt=1}if(!Bt)return null;if(me.Cc&&((Bt=me.ga)!=null&&(Bt.mc=null),me.ga=null,0<me.Ga))return alert("todo:WebPDequantizeLevels"),null}return me.nb+rt*zt}function Rc(me,Fe,rt,Bt,zt,qt){for(;0<zt--;){var tn,fn=me,yn=Fe+(rt?1:0),Mn=me,xr=Fe+(rt?0:3);for(tn=0;tn<Bt;++tn){var ii=Mn[xr+4*tn];ii!=255&&(ii*=32897,fn[yn+4*tn+0]=fn[yn+4*tn+0]*ii>>23,fn[yn+4*tn+1]=fn[yn+4*tn+1]*ii>>23,fn[yn+4*tn+2]=fn[yn+4*tn+2]*ii>>23)}Fe+=qt}}function Oc(me,Fe,rt,Bt,zt){for(;0<Bt--;){var qt;for(qt=0;qt<rt;++qt){var tn=me[Fe+2*qt+0],fn=15&(Mn=me[Fe+2*qt+1]),yn=4369*fn,Mn=(240&Mn|Mn>>4)*yn>>16;me[Fe+2*qt+0]=(240&tn|tn>>4)*yn>>16&240|(15&tn|tn<<4)*yn>>16>>4&15,me[Fe+2*qt+1]=240&Mn|fn}Fe+=zt}}function sA(me,Fe,rt,Bt,zt,qt,tn,fn){var yn,Mn,xr=255;for(Mn=0;Mn<zt;++Mn){for(yn=0;yn<Bt;++yn){var ii=me[Fe+yn];qt[tn+4*yn]=ii,xr&=ii}Fe+=rt,tn+=fn}return xr!=255}function Sh(me,Fe,rt,Bt,zt){var qt;for(qt=0;qt<zt;++qt)rt[Bt+qt]=me[Fe+qt]>>8}function mf(){Zm=Rc,Y0=Oc,J0=sA,q0=Sh}function Fh(me,Fe,rt){Xn[me]=function(Bt,zt,qt,tn,fn,yn,Mn,xr,ii,Un,Dr,Gr,Ui,Jr,zi,Gi,bo){var lo,za=bo-1>>1,xa=fn[yn+0]|Mn[xr+0]<<16,Zs=ii[Un+0]|Dr[Gr+0]<<16;z(Bt!=null);var Da=3*xa+Zs+131074>>2;for(Fe(Bt[zt+0],255&Da,Da>>16,Ui,Jr),qt!=null&&(Da=3*Zs+xa+131074>>2,Fe(qt[tn+0],255&Da,Da>>16,zi,Gi)),lo=1;lo<=za;++lo){var xl=fn[yn+lo]|Mn[xr+lo]<<16,Qc=ii[Un+lo]|Dr[Gr+lo]<<16,Ws=xa+xl+Zs+Qc+524296,Pa=Ws+2*(xl+Zs)>>3;Da=Pa+xa>>1,xa=(Ws=Ws+2*(xa+Qc)>>3)+xl>>1,Fe(Bt[zt+2*lo-1],255&Da,Da>>16,Ui,Jr+(2*lo-1)*rt),Fe(Bt[zt+2*lo-0],255&xa,xa>>16,Ui,Jr+(2*lo-0)*rt),qt!=null&&(Da=Ws+Zs>>1,xa=Pa+Qc>>1,Fe(qt[tn+2*lo-1],255&Da,Da>>16,zi,Gi+(2*lo-1)*rt),Fe(qt[tn+2*lo+0],255&xa,xa>>16,zi,Gi+(2*lo+0)*rt)),xa=xl,Zs=Qc}1&bo||(Da=3*xa+Zs+131074>>2,Fe(Bt[zt+bo-1],255&Da,Da>>16,Ui,Jr+(bo-1)*rt),qt!=null&&(Da=3*Zs+xa+131074>>2,Fe(qt[tn+bo-1],255&Da,Da>>16,zi,Gi+(bo-1)*rt)))}}function Tm(){Gd[Eg]=d1,Gd[Sg]=cv,Gd[ov]=f1,Gd[Fg]=Av,Gd[Ig]=dv,Gd[A0]=fv,Gd[av]=h1,Gd[d0]=cv,Gd[f0]=Av,Gd[Lg]=dv,Gd[h0]=fv}function Am(me){return me&~p1?0>me?0:255:me>>hv}function Gh(me,Fe){return Am((19077*me>>8)+(26149*Fe>>8)-14234)}function Tp(me,Fe,rt){return Am((19077*me>>8)-(6419*Fe>>8)-(13320*rt>>8)+8708)}function kp(me,Fe){return Am((19077*me>>8)+(33050*Fe>>8)-17685)}function Vh(me,Fe,rt,Bt,zt){Bt[zt+0]=Gh(me,rt),Bt[zt+1]=Tp(me,Fe,rt),Bt[zt+2]=kp(me,Fe)}function lA(me,Fe,rt,Bt,zt){Bt[zt+0]=kp(me,Fe),Bt[zt+1]=Tp(me,Fe,rt),Bt[zt+2]=Gh(me,rt)}function Mp(me,Fe,rt,Bt,zt){var qt=Tp(me,Fe,rt);Fe=qt<<3&224|kp(me,Fe)>>3,Bt[zt+0]=248&Gh(me,rt)|qt>>5,Bt[zt+1]=Fe}function Up(me,Fe,rt,Bt,zt){var qt=240&kp(me,Fe)|15;Bt[zt+0]=240&Gh(me,rt)|Tp(me,Fe,rt)>>4,Bt[zt+1]=qt}function km(me,Fe,rt,Bt,zt){Bt[zt+0]=255,Vh(me,Fe,rt,Bt,zt+1)}function Mm(me,Fe,rt,Bt,zt){lA(me,Fe,rt,Bt,zt),Bt[zt+3]=255}function jA(me,Fe,rt,Bt,zt){Vh(me,Fe,rt,Bt,zt),Bt[zt+3]=255}function Ih(me,Fe,rt){Xn[me]=function(Bt,zt,qt,tn,fn,yn,Mn,xr,ii){for(var Un=xr+(-2&ii)*rt;xr!=Un;)Fe(Bt[zt+0],qt[tn+0],fn[yn+0],Mn,xr),Fe(Bt[zt+1],qt[tn+0],fn[yn+0],Mn,xr+rt),zt+=2,++tn,++yn,xr+=2*rt;1&ii&&Fe(Bt[zt+0],qt[tn+0],fn[yn+0],Mn,xr)}}function dm(me,Fe,rt){return rt==0?me==0?Fe==0?6:5:Fe==0?4:0:rt}function bg(me,Fe,rt,Bt,zt){switch(me>>>30){case 3:Hp(Fe,rt,Bt,zt,0);break;case 2:Zd(Fe,rt,Bt,zt);break;case 1:au(Fe,rt,Bt,zt)}}function $d(me,Fe){var rt,Bt,zt=Fe.M,qt=Fe.Nb,tn=me.oc,fn=me.pc+40,yn=me.oc,Mn=me.pc+584,xr=me.oc,ii=me.pc+600;for(rt=0;16>rt;++rt)tn[fn+32*rt-1]=129;for(rt=0;8>rt;++rt)yn[Mn+32*rt-1]=129,xr[ii+32*rt-1]=129;for(0<zt?tn[fn-1-32]=yn[Mn-1-32]=xr[ii-1-32]=129:(ce(tn,fn-32-1,127,21),ce(yn,Mn-32-1,127,9),ce(xr,ii-32-1,127,9)),Bt=0;Bt<me.za;++Bt){var Un=Fe.ya[Fe.aa+Bt];if(0<Bt){for(rt=-1;16>rt;++rt)re(tn,fn+32*rt-4,tn,fn+32*rt+12,4);for(rt=-1;8>rt;++rt)re(yn,Mn+32*rt-4,yn,Mn+32*rt+4,4),re(xr,ii+32*rt-4,xr,ii+32*rt+4,4)}var Dr=me.Gd,Gr=me.Hd+Bt,Ui=Un.ad,Jr=Un.Hc;if(0<zt&&(re(tn,fn-32,Dr[Gr].y,0,16),re(yn,Mn-32,Dr[Gr].f,0,8),re(xr,ii-32,Dr[Gr].ea,0,8)),Un.Za){var zi=tn,Gi=fn-32+16;for(0<zt&&(Bt>=me.za-1?ce(zi,Gi,Dr[Gr].y[15],4):re(zi,Gi,Dr[Gr+1].y,0,4)),rt=0;4>rt;rt++)zi[Gi+128+rt]=zi[Gi+256+rt]=zi[Gi+384+rt]=zi[Gi+0+rt];for(rt=0;16>rt;++rt,Jr<<=2)zi=tn,Gi=fn+mv[rt],gf[Un.Ob[rt]](zi,Gi),bg(Jr,Ui,16*+rt,zi,Gi)}else if(zi=dm(Bt,zt,Un.Ob[0]),rp[zi](tn,fn),Jr!=0)for(rt=0;16>rt;++rt,Jr<<=2)bg(Jr,Ui,16*+rt,tn,fn+mv[rt]);for(rt=Un.Gc,zi=dm(Bt,zt,Un.Dd),Nh[zi](yn,Mn),Nh[zi](xr,ii),Jr=Ui,zi=yn,Gi=Mn,255&(Un=0|rt)&&(170&Un?Yf(Jr,256,zi,Gi):bu(Jr,256,zi,Gi)),Un=xr,Jr=ii,255&(rt>>=8)&&(170&rt?Yf(Ui,320,Un,Jr):bu(Ui,320,Un,Jr)),zt<me.Ub-1&&(re(Dr[Gr].y,0,tn,fn+480,16),re(Dr[Gr].f,0,yn,Mn+224,8),re(Dr[Gr].ea,0,xr,ii+224,8)),rt=8*qt*me.B,Dr=me.sa,Gr=me.ta+16*Bt+16*qt*me.R,Ui=me.qa,Un=me.ra+8*Bt+rt,Jr=me.Ha,zi=me.Ia+8*Bt+rt,rt=0;16>rt;++rt)re(Dr,Gr+rt*me.R,tn,fn+32*rt,16);for(rt=0;8>rt;++rt)re(Ui,Un+rt*me.B,yn,Mn+32*rt,8),re(Jr,zi+rt*me.B,xr,ii+32*rt,8)}}function Rp(me,Fe,rt,Bt,zt,qt,tn,fn,yn){var Mn=[0],xr=[0],ii=0,Un=yn!=null?yn.kd:0,Dr=yn!=null?yn:new so;if(me==null||12>rt)return 7;Dr.data=me,Dr.w=Fe,Dr.ha=rt,Fe=[Fe],rt=[rt],Dr.gb=[Dr.gb];e:{var Gr=Fe,Ui=rt,Jr=Dr.gb;if(z(me!=null),z(Ui!=null),z(Jr!=null),Jr[0]=0,12<=Ui[0]&&!E(me,Gr[0],"RIFF")){if(E(me,Gr[0]+8,"WEBP")){Jr=3;break e}var zi=Xa(me,Gr[0]+4);if(12>zi||4294967286<zi){Jr=3;break e}if(Un&&zi>Ui[0]-8){Jr=7;break e}Jr[0]=zi,Gr[0]+=12,Ui[0]-=12}Jr=0}if(Jr!=0)return Jr;for(zi=0<Dr.gb[0],rt=rt[0];;){e:{var Gi=me;Ui=Fe,Jr=rt;var bo=Mn,lo=xr,za=Gr=[0];if((Da=ii=[ii])[0]=0,8>Jr[0])Jr=7;else{if(!E(Gi,Ui[0],"VP8X")){if(Xa(Gi,Ui[0]+4)!=10){Jr=3;break e}if(18>Jr[0]){Jr=7;break e}var xa=Xa(Gi,Ui[0]+8),Zs=1+ca(Gi,Ui[0]+12);if(2147483648<=Zs*(Gi=1+ca(Gi,Ui[0]+15))){Jr=3;break e}za!=null&&(za[0]=xa),bo!=null&&(bo[0]=Zs),lo!=null&&(lo[0]=Gi),Ui[0]+=18,Jr[0]-=18,Da[0]=1}Jr=0}}if(ii=ii[0],Gr=Gr[0],Jr!=0)return Jr;if(Ui=!!(2&Gr),!zi&&ii)return 3;if(qt!=null&&(qt[0]=!!(16&Gr)),tn!=null&&(tn[0]=Ui),fn!=null&&(fn[0]=0),tn=Mn[0],Gr=xr[0],ii&&Ui&&yn==null){Jr=0;break}if(4>rt){Jr=7;break}if(zi&&ii||!zi&&!ii&&!E(me,Fe[0],"ALPH")){rt=[rt],Dr.na=[Dr.na],Dr.P=[Dr.P],Dr.Sa=[Dr.Sa];e:{xa=me,Jr=Fe,zi=rt;var Da=Dr.gb;bo=Dr.na,lo=Dr.P,za=Dr.Sa,Zs=22,z(xa!=null),z(zi!=null),Gi=Jr[0];var xl=zi[0];for(z(bo!=null),z(za!=null),bo[0]=null,lo[0]=null,za[0]=0;;){if(Jr[0]=Gi,zi[0]=xl,8>xl){Jr=7;break e}var Qc=Xa(xa,Gi+4);if(4294967286<Qc){Jr=3;break e}var Ws=8+Qc+1&-2;if(Zs+=Ws,0<Da&&Zs>Da){Jr=3;break e}if(!E(xa,Gi,"VP8 ")||!E(xa,Gi,"VP8L")){Jr=0;break e}if(xl[0]<Ws){Jr=7;break e}E(xa,Gi,"ALPH")||(bo[0]=xa,lo[0]=Gi+8,za[0]=Qc),Gi+=Ws,xl-=Ws}}if(rt=rt[0],Dr.na=Dr.na[0],Dr.P=Dr.P[0],Dr.Sa=Dr.Sa[0],Jr!=0)break}rt=[rt],Dr.Ja=[Dr.Ja],Dr.xa=[Dr.xa];e:if(Da=me,Jr=Fe,zi=rt,bo=Dr.gb[0],lo=Dr.Ja,za=Dr.xa,xa=Jr[0],Gi=!E(Da,xa,"VP8 "),Zs=!E(Da,xa,"VP8L"),z(Da!=null),z(zi!=null),z(lo!=null),z(za!=null),8>zi[0])Jr=7;else{if(Gi||Zs){if(Da=Xa(Da,xa+4),12<=bo&&Da>bo-12){Jr=3;break e}if(Un&&Da>zi[0]-8){Jr=7;break e}lo[0]=Da,Jr[0]+=8,zi[0]-=8,za[0]=Zs}else za[0]=5<=zi[0]&&Da[xa+0]==47&&!(Da[xa+4]>>5),lo[0]=zi[0];Jr=0}if(rt=rt[0],Dr.Ja=Dr.Ja[0],Dr.xa=Dr.xa[0],Fe=Fe[0],Jr!=0)break;if(4294967286<Dr.Ja)return 3;if(fn==null||Ui||(fn[0]=Dr.xa?2:1),tn=[tn],Gr=[Gr],Dr.xa){if(5>rt){Jr=7;break}fn=tn,Un=Gr,Ui=qt,me==null||5>rt?me=0:5<=rt&&me[Fe+0]==47&&!(me[Fe+4]>>5)?(zi=[0],Da=[0],bo=[0],Oi(lo=new Kn,me,Fe,rt),vh(lo,zi,Da,bo)?(fn!=null&&(fn[0]=zi[0]),Un!=null&&(Un[0]=Da[0]),Ui!=null&&(Ui[0]=bo[0]),me=1):me=0):me=0}else{if(10>rt){Jr=7;break}fn=Gr,me==null||10>rt||!cg(me,Fe+3,rt-3)?me=0:(Un=me[Fe+0]|me[Fe+1]<<8|me[Fe+2]<<16,Ui=16383&(me[Fe+7]<<8|me[Fe+6]),me=16383&(me[Fe+9]<<8|me[Fe+8]),1&Un||3<(Un>>1&7)||!(Un>>4&1)||Un>>5>=Dr.Ja||!Ui||!me?me=0:(tn&&(tn[0]=Ui),fn&&(fn[0]=me),me=1))}if(!me||(tn=tn[0],Gr=Gr[0],ii&&(Mn[0]!=tn||xr[0]!=Gr)))return 3;yn!=null&&(yn[0]=Dr,yn.offset=Fe-yn.w,z(4294967286>Fe-yn.w),z(yn.offset==yn.ha-rt));break}return Jr==0||Jr==7&&ii&&yn==null?(qt!=null&&(qt[0]|=Dr.na!=null&&0<Dr.na.length),Bt!=null&&(Bt[0]=tn),zt!=null&&(zt[0]=Gr),0):Jr}function Um(me,Fe,rt){var Bt=Fe.width,zt=Fe.height,qt=0,tn=0,fn=Bt,yn=zt;if(Fe.Da=me!=null&&0<me.Da,Fe.Da&&(fn=me.cd,yn=me.bd,qt=me.v,tn=me.j,11>rt||(qt&=-2,tn&=-2),0>qt||0>tn||0>=fn||0>=yn||qt+fn>Bt||tn+yn>zt))return 0;if(Fe.v=qt,Fe.j=tn,Fe.va=qt+fn,Fe.o=tn+yn,Fe.U=fn,Fe.T=yn,Fe.da=me!=null&&0<me.da,Fe.da){if(!as(fn,yn,rt=[me.ib],qt=[me.hb]))return 0;Fe.ib=rt[0],Fe.hb=qt[0]}return Fe.ob=me!=null&&me.ob,Fe.Kb=me==null||!me.Sd,Fe.da&&(Fe.ob=Fe.ib<3*Bt/4&&Fe.hb<3*zt/4,Fe.Kb=0),1}function Rm(me){if(me==null)return 2;if(11>me.S){var Fe=me.f.RGBA;Fe.fb+=(me.height-1)*Fe.A,Fe.A=-Fe.A}else Fe=me.f.kb,me=me.height,Fe.O+=(me-1)*Fe.fa,Fe.fa=-Fe.fa,Fe.N+=(me-1>>1)*Fe.Ab,Fe.Ab=-Fe.Ab,Fe.W+=(me-1>>1)*Fe.Db,Fe.Db=-Fe.Db,Fe.F!=null&&(Fe.J+=(me-1)*Fe.lb,Fe.lb=-Fe.lb);return 0}function Xh(me,Fe,rt,Bt){if(Bt==null||0>=me||0>=Fe)return 2;if(rt!=null){if(rt.Da){var zt=rt.cd,qt=rt.bd,tn=-2&rt.v,fn=-2&rt.j;if(0>tn||0>fn||0>=zt||0>=qt||tn+zt>me||fn+qt>Fe)return 2;me=zt,Fe=qt}if(rt.da){if(!as(me,Fe,zt=[rt.ib],qt=[rt.hb]))return 2;me=zt[0],Fe=qt[0]}}Bt.width=me,Bt.height=Fe;e:{var yn=Bt.width,Mn=Bt.height;if(me=Bt.S,0>=yn||0>=Mn||!(me>=Eg&&13>me))me=2;else{if(0>=Bt.Rd&&Bt.sd==null){tn=qt=zt=Fe=0;var xr=(fn=yn*gv[me])*Mn;if(11>me||(qt=(Mn+1)/2*(Fe=(yn+1)/2),me==12&&(tn=(zt=yn)*Mn)),(Mn=fe(xr+2*qt+tn))==null){me=1;break e}Bt.sd=Mn,11>me?((yn=Bt.f.RGBA).eb=Mn,yn.fb=0,yn.A=fn,yn.size=xr):((yn=Bt.f.kb).y=Mn,yn.O=0,yn.fa=fn,yn.Fd=xr,yn.f=Mn,yn.N=0+xr,yn.Ab=Fe,yn.Cd=qt,yn.ea=Mn,yn.W=0+xr+qt,yn.Db=Fe,yn.Ed=qt,me==12&&(yn.F=Mn,yn.J=0+xr+2*qt),yn.Tc=tn,yn.lb=zt)}if(Fe=1,zt=Bt.S,qt=Bt.width,tn=Bt.height,zt>=Eg&&13>zt)if(11>zt)me=Bt.f.RGBA,Fe&=(fn=Math.abs(me.A))*(tn-1)+qt<=me.size,Fe&=fn>=qt*gv[zt],Fe&=me.eb!=null;else{me=Bt.f.kb,fn=(qt+1)/2,xr=(tn+1)/2,yn=Math.abs(me.fa),Mn=Math.abs(me.Ab);var ii=Math.abs(me.Db),Un=Math.abs(me.lb),Dr=Un*(tn-1)+qt;Fe&=yn*(tn-1)+qt<=me.Fd,Fe&=Mn*(xr-1)+fn<=me.Cd,Fe=(Fe&=ii*(xr-1)+fn<=me.Ed)&yn>=qt&Mn>=fn&ii>=fn,Fe&=me.y!=null,Fe&=me.f!=null,Fe&=me.ea!=null,zt==12&&(Fe&=Un>=qt,Fe&=Dr<=me.Tc,Fe&=me.F!=null)}else Fe=0;me=Fe?0:2}}return me!=0||rt!=null&&rt.fd&&(me=Rm(Bt)),me}var jp=64,gd=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],vd=24,Yh=32,Lh=8,Jh=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Fa("Predictor0","PredictorAdd0"),Xn.Predictor0=function(){return 4278190080},Xn.Predictor1=function(me){return me},Xn.Predictor2=function(me,Fe,rt){return Fe[rt+0]},Xn.Predictor3=function(me,Fe,rt){return Fe[rt+1]},Xn.Predictor4=function(me,Fe,rt){return Fe[rt-1]},Xn.Predictor5=function(me,Fe,rt){return Ja(Ja(me,Fe[rt+1]),Fe[rt+0])},Xn.Predictor6=function(me,Fe,rt){return Ja(me,Fe[rt-1])},Xn.Predictor7=function(me,Fe,rt){return Ja(me,Fe[rt+0])},Xn.Predictor8=function(me,Fe,rt){return Ja(Fe[rt-1],Fe[rt+0])},Xn.Predictor9=function(me,Fe,rt){return Ja(Fe[rt+0],Fe[rt+1])},Xn.Predictor10=function(me,Fe,rt){return Ja(Ja(me,Fe[rt-1]),Ja(Fe[rt+0],Fe[rt+1]))},Xn.Predictor11=function(me,Fe,rt){var Bt=Fe[rt+0];return 0>=Ds(Bt>>24&255,me>>24&255,(Fe=Fe[rt-1])>>24&255)+Ds(Bt>>16&255,me>>16&255,Fe>>16&255)+Ds(Bt>>8&255,me>>8&255,Fe>>8&255)+Ds(255&Bt,255&me,255&Fe)?Bt:me},Xn.Predictor12=function(me,Fe,rt){var Bt=Fe[rt+0];return(iu((me>>24&255)+(Bt>>24&255)-((Fe=Fe[rt-1])>>24&255))<<24|iu((me>>16&255)+(Bt>>16&255)-(Fe>>16&255))<<16|iu((me>>8&255)+(Bt>>8&255)-(Fe>>8&255))<<8|iu((255&me)+(255&Bt)-(255&Fe)))>>>0},Xn.Predictor13=function(me,Fe,rt){var Bt=Fe[rt-1];return(ml((me=Ja(me,Fe[rt+0]))>>24&255,Bt>>24&255)<<24|ml(me>>16&255,Bt>>16&255)<<16|ml(me>>8&255,Bt>>8&255)<<8|ml(255&me,255&Bt))>>>0};var jm=Xn.PredictorAdd0;Xn.PredictorAdd1=Cl,Fa("Predictor2","PredictorAdd2"),Fa("Predictor3","PredictorAdd3"),Fa("Predictor4","PredictorAdd4"),Fa("Predictor5","PredictorAdd5"),Fa("Predictor6","PredictorAdd6"),Fa("Predictor7","PredictorAdd7"),Fa("Predictor8","PredictorAdd8"),Fa("Predictor9","PredictorAdd9"),Fa("Predictor10","PredictorAdd10"),Fa("Predictor11","PredictorAdd11"),Fa("Predictor12","PredictorAdd12"),Fa("Predictor13","PredictorAdd13");var fm=Xn.PredictorAdd2;Ka("ColorIndexInverseTransform","MapARGB","32b",function(me){return me>>8&255},function(me){return me}),Ka("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(me){return me},function(me){return me>>8&255});var Bc,Cg=Xn.ColorIndexInverseTransform,Vf=Xn.MapARGB,Xf=Xn.VP8LColorIndexInverseTransformAlpha,Qm=Xn.MapAlpha,Hm=Xn.VP8LPredictorsAdd=[];Hm.length=16,(Xn.VP8LPredictors=[]).length=16,(Xn.VP8LPredictorsAdd_C=[]).length=16,(Xn.VP8LPredictors_C=[]).length=16;var zm,Km,qh,ep,tp,Qp,np,Hp,Zd,Yf,au,bu,Ec,jc,_h,$m,hm,xg,$0,Z0,W0,G0,V0,X0,Zm,Y0,J0,q0,ev=fe(511),tv=fe(2041),nv=fe(225),rv=fe(767),iv=0,c0=tv,Bg=nv,yd=rv,Wd=ev,Eg=0,Sg=1,ov=2,Fg=3,Ig=4,A0=5,av=6,d0=7,f0=8,Lg=9,h0=10,Jv=[2,3,7],qv=[3,3,11],sv=[280,256,256,256,40],e1=[0,1,1,1,0],t1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],n1=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],r1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],i1=8,p0=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],m0=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Wm=null,o1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],a1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],lv=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],s1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],l1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],u1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],c1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],rp=[],gf=[],Nh=[],A1=1,uv=2,ip=[],Gd=[];Fh("UpsampleRgbLinePair",Vh,3),Fh("UpsampleBgrLinePair",lA,3),Fh("UpsampleRgbaLinePair",jA,4),Fh("UpsampleBgraLinePair",Mm,4),Fh("UpsampleArgbLinePair",km,4),Fh("UpsampleRgba4444LinePair",Up,2),Fh("UpsampleRgb565LinePair",Mp,2);var d1=Xn.UpsampleRgbLinePair,f1=Xn.UpsampleBgrLinePair,cv=Xn.UpsampleRgbaLinePair,Av=Xn.UpsampleBgraLinePair,dv=Xn.UpsampleArgbLinePair,fv=Xn.UpsampleRgba4444LinePair,h1=Xn.UpsampleRgb565LinePair,_g=16,Ng=1<<_g-1,Gm=-227,g0=482,hv=6,p1=(256<<hv)-1,pv=0,m1=fe(256),g1=fe(256),v1=fe(256),y1=fe(256),w1=fe(g0-Gm),b1=fe(g0-Gm);Ih("YuvToRgbRow",Vh,3),Ih("YuvToBgrRow",lA,3),Ih("YuvToRgbaRow",jA,4),Ih("YuvToBgraRow",Mm,4),Ih("YuvToArgbRow",km,4),Ih("YuvToRgba4444Row",Up,2),Ih("YuvToRgb565Row",Mp,2);var mv=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Og=[0,2,8],C1=[8,7,6,4,4,2,2,2,1,1,1,1],x1=1;this.WebPDecodeRGBA=function(me,Fe,rt,Bt,zt){var qt=Sg,tn=new $i,fn=new al;tn.ba=fn,fn.S=qt,fn.width=[fn.width],fn.height=[fn.height];var yn=fn.width,Mn=fn.height,xr=new As;if(xr==null||me==null)var ii=2;else z(xr!=null),ii=Rp(me,Fe,rt,xr.width,xr.height,xr.Pd,xr.Qd,xr.format,null);if(ii!=0?yn=0:(yn!=null&&(yn[0]=xr.width[0]),Mn!=null&&(Mn[0]=xr.height[0]),yn=1),yn){fn.width=fn.width[0],fn.height=fn.height[0],Bt!=null&&(Bt[0]=fn.width),zt!=null&&(zt[0]=fn.height);e:{if(Bt=new am,(zt=new so).data=me,zt.w=Fe,zt.ha=rt,zt.kd=1,Fe=[0],z(zt!=null),((me=Rp(zt.data,zt.w,zt.ha,null,null,null,Fe,null,zt))==0||me==7)&&Fe[0]&&(me=4),(Fe=me)==0){if(z(tn!=null),Bt.data=zt.data,Bt.w=zt.w+zt.offset,Bt.ha=zt.ha-zt.offset,Bt.put=ds,Bt.ac=zf,Bt.bc=gh,Bt.ma=tn,zt.xa){if((me=Ip())==null){tn=1;break e}if(function(Un,Dr){var Gr=[0],Ui=[0],Jr=[0];t:for(;;){if(Un==null)return 0;if(Dr==null)return Un.a=2,0;if(Un.l=Dr,Un.a=0,Oi(Un.m,Dr.data,Dr.w,Dr.ha),!vh(Un.m,Gr,Ui,Jr)){Un.a=3;break t}if(Un.xb=uv,Dr.width=Gr[0],Dr.height=Ui[0],!$f(Gr[0],Ui[0],1,Un,null))break t;return 1}return z(Un.a!=0),0}(me,Bt)){if(Bt=(Fe=Xh(Bt.width,Bt.height,tn.Oa,tn.ba))==0){t:{Bt=me;n:for(;;){if(Bt==null){Bt=0;break t}if(z(Bt.s.yc!=null),z(Bt.s.Ya!=null),z(0<Bt.s.Wb),z((rt=Bt.l)!=null),z((zt=rt.ma)!=null),Bt.xb!=0){if(Bt.ca=zt.ba,Bt.tb=zt.tb,z(Bt.ca!=null),!Um(zt.Oa,rt,Fg)){Bt.a=2;break n}if(!Lp(Bt,rt.width)||rt.da)break n;if((rt.da||hs(Bt.ca.S))&&mf(),11>Bt.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Bt.ca.f.kb.F!=null&&mf()),Bt.Pb&&0<Bt.s.ua&&Bt.s.vb.X==null&&!Pn(Bt.s.vb,Bt.s.Wa.Xa)){Bt.a=1;break n}Bt.xb=0}if(!hf(Bt,Bt.V,Bt.Ba,Bt.c,Bt.i,rt.o,Wh))break n;zt.Dc=Bt.Ma,Bt=1;break t}z(Bt.a!=0),Bt=0}Bt=!Bt}Bt&&(Fe=me.a)}else Fe=me.a}else{if((me=new Vg)==null){tn=1;break e}if(me.Fa=zt.na,me.P=zt.P,me.qc=zt.Sa,Wf(me,Bt)){if((Fe=Xh(Bt.width,Bt.height,tn.Oa,tn.ba))==0){if(me.Aa=0,rt=tn.Oa,z((zt=me)!=null),rt!=null){if(0<(yn=0>(yn=rt.Md)?0:100<yn?255:255*yn/100)){for(Mn=xr=0;4>Mn;++Mn)12>(ii=zt.pb[Mn]).lc&&(ii.ia=yn*C1[0>ii.lc?0:ii.lc]>>3),xr|=ii.ia;xr&&(alert("todo:VP8InitRandom"),zt.ia=1)}zt.Ga=rt.Id,100<zt.Ga?zt.Ga=100:0>zt.Ga&&(zt.Ga=0)}(function(Un,Dr){if(Un==null)return 0;if(Dr==null)return _c(Un,2,"NULL VP8Io parameter in VP8Decode().");if(!Un.cb&&!Wf(Un,Dr))return 0;if(z(Un.cb),Dr.ac==null||Dr.ac(Dr)){Dr.ob&&(Un.L=0);var Gr=Og[Un.L];if(Un.L==2?(Un.yb=0,Un.zb=0):(Un.yb=Dr.v-Gr>>4,Un.zb=Dr.j-Gr>>4,0>Un.yb&&(Un.yb=0),0>Un.zb&&(Un.zb=0)),Un.Va=Dr.o+15+Gr>>4,Un.Hb=Dr.va+15+Gr>>4,Un.Hb>Un.za&&(Un.Hb=Un.za),Un.Va>Un.Ub&&(Un.Va=Un.Ub),0<Un.L){var Ui=Un.ed;for(Gr=0;4>Gr;++Gr){var Jr;if(Un.Qa.Cb){var zi=Un.Qa.Lb[Gr];Un.Qa.Fb||(zi+=Ui.Tb)}else zi=Ui.Tb;for(Jr=0;1>=Jr;++Jr){var Gi=Un.gd[Gr][Jr],bo=zi;if(Ui.Pc&&(bo+=Ui.vd[0],Jr&&(bo+=Ui.od[0])),0<(bo=0>bo?0:63<bo?63:bo)){var lo=bo;0<Ui.wb&&(lo=4<Ui.wb?lo>>2:lo>>1)>9-Ui.wb&&(lo=9-Ui.wb),1>lo&&(lo=1),Gi.dd=lo,Gi.tc=2*bo+lo,Gi.ld=40<=bo?2:15<=bo?1:0}else Gi.tc=0;Gi.La=Jr}}}Gr=0}else _c(Un,6,"Frame setup failed"),Gr=Un.a;if(Gr=Gr==0){if(Gr){Un.$c=0,0<Un.Aa||(Un.Ic=x1);t:{Gr=Un.Ic,Ui=4*(lo=Un.za);var za=32*lo,xa=lo+1,Zs=0<Un.L?lo*(0<Un.Aa?2:1):0,Da=(Un.Aa==2?2:1)*lo;if((Gi=Ui+832+(Jr=3*(16*Gr+Og[Un.L])/2*za)+(zi=Un.Fa!=null&&0<Un.Fa.length?Un.Kc.c*Un.Kc.i:0))!=Gi)Gr=0;else{if(Gi>Un.Vb){if(Un.Vb=0,Un.Ec=fe(Gi),Un.Fc=0,Un.Ec==null){Gr=_c(Un,1,"no memory during frame initialization.");break t}Un.Vb=Gi}Gi=Un.Ec,bo=Un.Fc,Un.Ac=Gi,Un.Bc=bo,bo+=Ui,Un.Gd=$e(za,lg),Un.Hd=0,Un.rb=$e(xa+1,Em),Un.sb=1,Un.wa=Zs?$e(Zs,zd):null,Un.Y=0,Un.D.Nb=0,Un.D.wa=Un.wa,Un.D.Y=Un.Y,0<Un.Aa&&(Un.D.Y+=lo),z(!0),Un.oc=Gi,Un.pc=bo,bo+=832,Un.ya=$e(Da,Sm),Un.aa=0,Un.D.ya=Un.ya,Un.D.aa=Un.aa,Un.Aa==2&&(Un.D.aa+=lo),Un.R=16*lo,Un.B=8*lo,lo=(za=Og[Un.L])*Un.R,za=za/2*Un.B,Un.sa=Gi,Un.ta=bo+lo,Un.qa=Un.sa,Un.ra=Un.ta+16*Gr*Un.R+za,Un.Ha=Un.qa,Un.Ia=Un.ra+8*Gr*Un.B+za,Un.$c=0,bo+=Jr,Un.mb=zi?Gi:null,Un.nb=zi?bo:null,z(bo+zi<=Un.Fc+Un.Vb),Ag(Un),ce(Un.Ac,Un.Bc,0,Ui),Gr=1}}if(Gr){if(Dr.ka=0,Dr.y=Un.sa,Dr.O=Un.ta,Dr.f=Un.qa,Dr.N=Un.ra,Dr.ea=Un.Ha,Dr.Vd=Un.Ia,Dr.fa=Un.R,Dr.Rc=Un.B,Dr.F=null,Dr.J=0,!iv){for(Gr=-255;255>=Gr;++Gr)ev[255+Gr]=0>Gr?-Gr:Gr;for(Gr=-1020;1020>=Gr;++Gr)tv[1020+Gr]=-128>Gr?-128:127<Gr?127:Gr;for(Gr=-112;112>=Gr;++Gr)nv[112+Gr]=-16>Gr?-16:15<Gr?15:Gr;for(Gr=-255;510>=Gr;++Gr)rv[255+Gr]=0>Gr?0:255<Gr?255:Gr;iv=1}np=lm,Hp=Yg,Yf=Gf,au=fg,bu=hg,Zd=Xg,Ec=yg,jc=Pp,_h=Ht,$m=Rn,hm=wg,xg=Xe,$0=pr,Z0=$r,W0=Dp,G0=Pm,V0=gg,X0=vg,gf[0]=o0,gf[1]=Jg,gf[2]=r0,gf[3]=i0,gf[4]=wh,gf[5]=a0,gf[6]=bh,gf[7]=s0,gf[8]=Lm,gf[9]=um,rp[0]=t0,rp[1]=e0,rp[2]=Fm,rp[3]=pg,rp[4]=Np,rp[5]=Im,rp[6]=n0,Nh[0]=u0,Nh[1]=qg,Nh[2]=Op,Nh[3]=l0,Nh[4]=Nm,Nh[5]=_m,Nh[6]=mg,Gr=1}else Gr=0}Gr&&(Gr=function(xl,Qc){for(xl.M=0;xl.M<xl.Va;++xl.M){var Ws,Pa=xl.Jc[xl.M&xl.Xb],ea=xl.m,Sc=xl;for(Ws=0;Ws<Sc.za;++Ws){var Ts=ea,_l=Sc,Ru=_l.Ac,uA=_l.Bc+4*Ws,QA=_l.zc,hc=_l.ya[_l.aa+Ws];if(_l.Qa.Bb?hc.$b=Yi(Ts,_l.Pa.jb[0])?2+Yi(Ts,_l.Pa.jb[2]):Yi(Ts,_l.Pa.jb[1]):hc.$b=0,_l.kc&&(hc.Ad=Yi(Ts,_l.Bd)),hc.Za=!Yi(Ts,145)+0,hc.Za){var LA=hc.Ob,HA=0;for(_l=0;4>_l;++_l){var Hc,Dl=QA[0+_l];for(Hc=0;4>Hc;++Hc){Dl=l1[Ru[uA+Hc]][Dl];for(var cu=lv[Yi(Ts,Dl[0])];0<cu;)cu=lv[2*cu+Yi(Ts,Dl[cu])];Dl=-cu,Ru[uA+Hc]=Dl}re(LA,HA,Ru,uA,4),HA+=4,QA[0+_l]=Dl}}else Dl=Yi(Ts,156)?Yi(Ts,128)?1:3:Yi(Ts,163)?2:0,hc.Ob[0]=Dl,ce(Ru,uA,Dl,4),ce(QA,0,Dl,4);hc.Dd=Yi(Ts,142)?Yi(Ts,114)?Yi(Ts,183)?1:3:2:0}if(Sc.m.Ka)return _c(xl,7,"Premature end-of-partition0 encountered.");for(;xl.ja<xl.za;++xl.ja){if(Sc=Pa,Ts=(ea=xl).rb[ea.sb-1],Ru=ea.rb[ea.sb+ea.ja],Ws=ea.ya[ea.aa+ea.ja],uA=ea.kc?Ws.Ad:0)Ts.la=Ru.la=0,Ws.Za||(Ts.Na=Ru.Na=0),Ws.Hc=0,Ws.Gc=0,Ws.ia=0;else{var pc,Au;if(Ts=Ru,Ru=Sc,uA=ea.Pa.Xc,QA=ea.ya[ea.aa+ea.ja],hc=ea.pb[QA.$b],_l=QA.ad,LA=0,HA=ea.rb[ea.sb-1],Dl=Hc=0,ce(_l,LA,0,384),QA.Za)var cA=0,vf=uA[3];else{cu=fe(16);var Fc=Ts.Na+HA.Na;if(Fc=Wm(Ru,uA[1],Fc,hc.Eb,0,cu,0),Ts.Na=HA.Na=(0<Fc)+0,1<Fc)np(cu,0,_l,LA);else{var ed=cu[0]+3>>3;for(cu=0;256>cu;cu+=16)_l[LA+cu]=ed}cA=1,vf=uA[0]}var Cu=15&Ts.la,zc=15&HA.la;for(cu=0;4>cu;++cu){var wd=1&zc;for(ed=Au=0;4>ed;++ed)Cu=Cu>>1|(wd=(Fc=Wm(Ru,vf,Fc=wd+(1&Cu),hc.Sc,cA,_l,LA))>cA)<<7,Au=Au<<2|(3<Fc?3:1<Fc?2:_l[LA+0]!=0),LA+=16;Cu>>=4,zc=zc>>1|wd<<7,Hc=(Hc<<8|Au)>>>0}for(vf=Cu,cA=zc>>4,pc=0;4>pc;pc+=2){for(Au=0,Cu=Ts.la>>4+pc,zc=HA.la>>4+pc,cu=0;2>cu;++cu){for(wd=1&zc,ed=0;2>ed;++ed)Fc=wd+(1&Cu),Cu=Cu>>1|(wd=0<(Fc=Wm(Ru,uA[2],Fc,hc.Qc,0,_l,LA)))<<3,Au=Au<<2|(3<Fc?3:1<Fc?2:_l[LA+0]!=0),LA+=16;Cu>>=2,zc=zc>>1|wd<<5}Dl|=Au<<4*pc,vf|=Cu<<4<<pc,cA|=(240&zc)<<pc}Ts.la=vf,HA.la=cA,QA.Hc=Hc,QA.Gc=Dl,QA.ia=43690&Dl?0:hc.ia,uA=!(Hc|Dl)}if(0<ea.L&&(ea.wa[ea.Y+ea.ja]=ea.gd[Ws.$b][Ws.Za],ea.wa[ea.Y+ea.ja].La|=!uA),Sc.Ka)return _c(xl,7,"Premature end-of-file encountered.")}if(Ag(xl),ea=Qc,Sc=1,Ws=(Pa=xl).D,Ts=0<Pa.L&&Pa.M>=Pa.zb&&Pa.M<=Pa.Va,Pa.Aa==0)t:{if(Ws.M=Pa.M,Ws.uc=Ts,$d(Pa,Ws),Sc=1,Ws=(Au=Pa.D).Nb,Ts=(Dl=Og[Pa.L])*Pa.R,Ru=Dl/2*Pa.B,cu=16*Ws*Pa.R,ed=8*Ws*Pa.B,uA=Pa.sa,QA=Pa.ta-Ts+cu,hc=Pa.qa,_l=Pa.ra-Ru+ed,LA=Pa.Ha,HA=Pa.Ia-Ru+ed,zc=(Cu=Au.M)==0,Hc=Cu>=Pa.Va-1,Pa.Aa==2&&$d(Pa,Au),Au.uc)for(wd=(Fc=Pa).D.M,z(Fc.D.uc),Au=Fc.yb;Au<Fc.Hb;++Au){cA=Au,vf=wd;var zA=(bd=(AA=Fc).D).Nb;pc=AA.R;var bd=bd.wa[bd.Y+cA],Cd=AA.sa,td=AA.ta+16*zA*pc+16*cA,xd=bd.dd,_u=bd.tc;if(_u!=0)if(z(3<=_u),AA.L==1)0<cA&&G0(Cd,td,pc,_u+4),bd.La&&X0(Cd,td,pc,_u),0<vf&&W0(Cd,td,pc,_u+4),bd.La&&V0(Cd,td,pc,_u);else{var Bd=AA.B,yf=AA.qa,zp=AA.ra+8*zA*Bd+8*cA,Oh=AA.Ha,AA=AA.Ia+8*zA*Bd+8*cA;zA=bd.ld,0<cA&&(jc(Cd,td,pc,_u+4,xd,zA),$m(yf,zp,Oh,AA,Bd,_u+4,xd,zA)),bd.La&&(xg(Cd,td,pc,_u,xd,zA),Z0(yf,zp,Oh,AA,Bd,_u,xd,zA)),0<vf&&(Ec(Cd,td,pc,_u+4,xd,zA),_h(yf,zp,Oh,AA,Bd,_u+4,xd,zA)),bd.La&&(hm(Cd,td,pc,_u,xd,zA),$0(yf,zp,Oh,AA,Bd,_u,xd,zA))}}if(Pa.ia&&alert("todo:DitherRow"),ea.put!=null){if(Au=16*Cu,Cu=16*(Cu+1),zc?(ea.y=Pa.sa,ea.O=Pa.ta+cu,ea.f=Pa.qa,ea.N=Pa.ra+ed,ea.ea=Pa.Ha,ea.W=Pa.Ia+ed):(Au-=Dl,ea.y=uA,ea.O=QA,ea.f=hc,ea.N=_l,ea.ea=LA,ea.W=HA),Hc||(Cu-=Dl),Cu>ea.o&&(Cu=ea.o),ea.F=null,ea.J=null,Pa.Fa!=null&&0<Pa.Fa.length&&Au<Cu&&(ea.J=Lu(Pa,ea,Au,Cu-Au),ea.F=Pa.mb,ea.F==null&&ea.F.length==0)){Sc=_c(Pa,3,"Could not decode alpha data.");break t}Au<ea.j&&(Dl=ea.j-Au,Au=ea.j,z(!(1&Dl)),ea.O+=Pa.R*Dl,ea.N+=Pa.B*(Dl>>1),ea.W+=Pa.B*(Dl>>1),ea.F!=null&&(ea.J+=ea.width*Dl)),Au<Cu&&(ea.O+=ea.v,ea.N+=ea.v>>1,ea.W+=ea.v>>1,ea.F!=null&&(ea.J+=ea.v),ea.ka=Au-ea.j,ea.U=ea.va-ea.v,ea.T=Cu-Au,Sc=ea.put(ea))}Ws+1!=Pa.Ic||Hc||(re(Pa.sa,Pa.ta-Ts,uA,QA+16*Pa.R,Ts),re(Pa.qa,Pa.ra-Ru,hc,_l+8*Pa.B,Ru),re(Pa.Ha,Pa.Ia-Ru,LA,HA+8*Pa.B,Ru))}if(!Sc)return _c(xl,6,"Output aborted.")}return 1}(Un,Dr)),Dr.bc!=null&&Dr.bc(Dr),Gr&=1}return Gr?(Un.cb=0,Gr):0})(me,Bt)||(Fe=me.a)}}else Fe=me.a}Fe==0&&tn.Oa!=null&&tn.Oa.fd&&(Fe=Rm(tn.ba))}tn=Fe}qt=tn!=0?null:11>qt?fn.f.RGBA.eb:fn.f.kb.y}else qt=null;return qt};var gv=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Ye(Xn,Wr){for(var ln="",Dn=0;Dn<4;Dn++)ln+=String.fromCharCode(Xn[Wr++]);return ln}function ft(Xn,Wr){return Xn[Wr+0]|Xn[Wr+1]<<8}function Tt(Xn,Wr){return(Xn[Wr+0]|Xn[Wr+1]<<8|Xn[Wr+2]<<16)>>>0}function Jt(Xn,Wr){return(Xn[Wr+0]|Xn[Wr+1]<<8|Xn[Wr+2]<<16|Xn[Wr+3]<<24)>>>0}new Ge;var At=[0],In=[0],bn=[],On=new Ge,cn=y,gr=function(Xn,Wr){var ln={},Dn=0,mr=!1,dr=0,pi=0;if(ln.frames=[],!function(rn,Kn){for(var rr=0;rr<4;rr++)if(rn[Kn+rr]!="RIFF".charCodeAt(rr))return!0;return!1}(Xn,Wr)){for(Jt(Xn,Wr+=4),Wr+=8;Wr<Xn.length;){var Ci=Ye(Xn,Wr),Si=Jt(Xn,Wr+=4);Wr+=4;var ei=Si+(1&Si);switch(Ci){case"VP8 ":case"VP8L":ln.frames[Dn]===void 0&&(ln.frames[Dn]={}),(ao=ln.frames[Dn]).src_off=mr?pi:Wr-8,ao.src_size=dr+Si+8,Dn++,mr&&(mr=!1,dr=0,pi=0);break;case"VP8X":(ao=ln.header={}).feature_flags=Xn[Wr];var Oi=Wr+4;ao.canvas_width=1+Tt(Xn,Oi),Oi+=3,ao.canvas_height=1+Tt(Xn,Oi),Oi+=3;break;case"ALPH":mr=!0,dr=ei+8,pi=Wr-8;break;case"ANIM":(ao=ln.header).bgcolor=Jt(Xn,Wr),Oi=Wr+4,ao.loop_count=ft(Xn,Oi),Oi+=2;break;case"ANMF":var Oo,ao;(ao=ln.frames[Dn]={}).offset_x=2*Tt(Xn,Wr),Wr+=3,ao.offset_y=2*Tt(Xn,Wr),Wr+=3,ao.width=1+Tt(Xn,Wr),Wr+=3,ao.height=1+Tt(Xn,Wr),Wr+=3,ao.duration=Tt(Xn,Wr),Wr+=3,Oo=Xn[Wr++],ao.dispose=1&Oo,ao.blend=Oo>>1&1}Ci!="ANMF"&&(Wr+=ei)}return ln}}(cn,0);gr.response=cn,gr.rgbaoutput=!0,gr.dataurl=!1;var cr=gr.header?gr.header:null,Zn=gr.frames?gr.frames:null;if(cr){cr.loop_counter=cr.loop_count,At=[cr.canvas_height],In=[cr.canvas_width];for(var li=0;li<Zn.length&&Zn[li].blend!=0;li++);}var ji=Zn[0],Bi=On.WebPDecodeRGBA(cn,ji.src_off,ji.src_size,In,At);ji.rgba=Bi,ji.imgwidth=In[0],ji.imgheight=At[0];for(var Fr=0;Fr<In[0]*At[0]*4;Fr++)bn[Fr]=Bi[Fr];return this.width=In,this.height=At,this.data=bn,this}(function(y){var z,E,re,ce,fe,$e,Pe,Ge,Ye,ft=function(rn){return rn=rn||{},this.isStrokeTransparent=rn.isStrokeTransparent||!1,this.strokeOpacity=rn.strokeOpacity||1,this.strokeStyle=rn.strokeStyle||"#000000",this.fillStyle=rn.fillStyle||"#000000",this.isFillTransparent=rn.isFillTransparent||!1,this.fillOpacity=rn.fillOpacity||1,this.font=rn.font||"10px sans-serif",this.textBaseline=rn.textBaseline||"alphabetic",this.textAlign=rn.textAlign||"left",this.lineWidth=rn.lineWidth||1,this.lineJoin=rn.lineJoin||"miter",this.lineCap=rn.lineCap||"butt",this.path=rn.path||[],this.transform=rn.transform!==void 0?rn.transform.clone():new Ge,this.globalCompositeOperation=rn.globalCompositeOperation||"normal",this.globalAlpha=rn.globalAlpha||1,this.clip_path=rn.clip_path||[],this.currentPoint=rn.currentPoint||new $e,this.miterLimit=rn.miterLimit||10,this.lastPoint=rn.lastPoint||new $e,this.lineDashOffset=rn.lineDashOffset||0,this.lineDash=rn.lineDash||[],this.margin=rn.margin||[0,0,0,0],this.prevPageLastElemOffset=rn.prevPageLastElemOffset||0,this.ignoreClearRect=typeof rn.ignoreClearRect!="boolean"||rn.ignoreClearRect,this};y.events.push(["initialized",function(){this.context2d=new Tt(this),z=this.internal.f2,E=this.internal.getCoordinateString,re=this.internal.getVerticalCoordinateString,ce=this.internal.getHorizontalCoordinate,fe=this.internal.getVerticalCoordinate,$e=this.internal.Point,Pe=this.internal.Rectangle,Ge=this.internal.Matrix,Ye=new ft}]);var Tt=function(rn){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Kn=rn;Object.defineProperty(this,"pdf",{get:function(){return Kn}});var rr=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return rr},set:function(Pn){rr=!!Pn}});var yr=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return yr},set:function(Pn){yr=!!Pn}});var Pr=0;Object.defineProperty(this,"posX",{get:function(){return Pr},set:function(Pn){isNaN(Pn)||(Pr=Pn)}});var Xr=0;Object.defineProperty(this,"posY",{get:function(){return Xr},set:function(Pn){isNaN(Pn)||(Xr=Pn)}}),Object.defineProperty(this,"margin",{get:function(){return Ye.margin},set:function(Pn){var fa;typeof Pn=="number"?fa=[Pn,Pn,Pn,Pn]:((fa=new Array(4))[0]=Pn[0],fa[1]=Pn.length>=2?Pn[1]:fa[0],fa[2]=Pn.length>=3?Pn[2]:fa[0],fa[3]=Pn.length>=4?Pn[3]:fa[1]),Ye.margin=fa}});var Ei=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ei},set:function(Pn){Ei=Pn}});var Ii=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ii},set:function(Pn){Ii=Pn}});var Yi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Yi},set:function(Pn){Yi=Pn}}),Object.defineProperty(this,"ctx",{get:function(){return Ye},set:function(Pn){Pn instanceof ft&&(Ye=Pn)}}),Object.defineProperty(this,"path",{get:function(){return Ye.path},set:function(Pn){Ye.path=Pn}});var Bo=[];Object.defineProperty(this,"ctxStack",{get:function(){return Bo},set:function(Pn){Bo=Pn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Pn){var fa;fa=Jt(Pn),this.ctx.fillStyle=fa.style,this.ctx.isFillTransparent=fa.a===0,this.ctx.fillOpacity=fa.a,this.pdf.setFillColor(fa.r,fa.g,fa.b,{a:fa.a}),this.pdf.setTextColor(fa.r,fa.g,fa.b,{a:fa.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Pn){var fa=Jt(Pn);this.ctx.strokeStyle=fa.style,this.ctx.isStrokeTransparent=fa.a===0,this.ctx.strokeOpacity=fa.a,fa.a===0?this.pdf.setDrawColor(255,255,255):(fa.a,this.pdf.setDrawColor(fa.r,fa.g,fa.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Pn){["butt","round","square"].indexOf(Pn)!==-1&&(this.ctx.lineCap=Pn,this.pdf.setLineCap(Pn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Pn){isNaN(Pn)||(this.ctx.lineWidth=Pn,this.pdf.setLineWidth(Pn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Pn){["bevel","round","miter"].indexOf(Pn)!==-1&&(this.ctx.lineJoin=Pn,this.pdf.setLineJoin(Pn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Pn){isNaN(Pn)||(this.ctx.miterLimit=Pn,this.pdf.setMiterLimit(Pn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Pn){this.ctx.textBaseline=Pn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Pn){["right","end","center","left","start"].indexOf(Pn)!==-1&&(this.ctx.textAlign=Pn)}});var da=null,ca=null,Xa=null;Object.defineProperty(this,"fontFaces",{get:function(){return Xa},set:function(Pn){da=null,ca=null,Xa=Pn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Pn){var fa;if(this.ctx.font=Pn,(fa=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(Pn))!==null){var Js=fa[1];fa[2];var as=fa[3],vo=fa[4];fa[5];var ss=fa[6],Fa=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(vo)[2];vo=Math.floor(Fa==="px"?parseFloat(vo)*this.pdf.internal.scaleFactor:Fa==="em"?parseFloat(vo)*this.pdf.getFontSize():parseFloat(vo)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(vo);var is=function(Ka){var xc,Nl,rl=[],il=Ka.trim();if(il==="")return $g;if(il in Rf)return[Rf[il]];for(;il!=="";){switch(Nl=null,xc=(il=jf(il)).charAt(0)){case'"':case"'":Nl=uf(il.substring(1),xc);break;default:Nl=$h(il)}if(Nl===null||(rl.push(Nl[0]),(il=jf(Nl[1]))!==""&&il.charAt(0)!==","))return $g;il=il.replace(/^,/,"")}return rl}(ss);if(this.fontFaces){var Ja=function(Ka,xc){var Nl=Ka.getFontList(),rl=JSON.stringify(Nl);if(da===null||ca!==rl){var il=function(Wu){var es=[];return Object.keys(Wu).forEach(function(Iu){Wu[Iu].forEach(function(hs){var Ps=null;switch(hs){case"bold":Ps={family:Iu,weight:"bold"};break;case"italic":Ps={family:Iu,style:"italic"};break;case"bolditalic":Ps={family:Iu,weight:"bold",style:"italic"};break;case"":case"normal":Ps={family:Iu}}Ps!==null&&(Ps.ref={name:Iu,style:hs},es.push(Ps))})}),es}(Nl);da=function(Wu){for(var es={},Iu=0;Iu<Wu.length;++Iu){var hs=qA(Wu[Iu]),Ps=hs.family,Gu=hs.stretch,al=hs.style,As=hs.weight;es[Ps]=es[Ps]||{},es[Ps][Gu]=es[Ps][Gu]||{},es[Ps][Gu][al]=es[Ps][Gu][al]||{},es[Ps][Gu][al][As]=hs}return es}(il.concat(xc)),ca=rl}return da}(this.pdf,this.fontFaces),iu=is.map(function(Ka){return{family:Ka,stretch:"normal",weight:as,style:Js}}),ml=function(Ka,xc,Nl){for(var rl=(Nl=Nl||{}).defaultFontFamily||"times",il=Object.assign({},ph,Nl.genericFontFamilies||{}),Wu=null,es=null,Iu=0;Iu<xc.length;++Iu)if(il[(Wu=qA(xc[Iu])).family]&&(Wu.family=il[Wu.family]),Ka.hasOwnProperty(Wu.family)){es=Ka[Wu.family];break}if(!(es=es||Ka[rl]))throw new Error("Could not find a font-family for the rule '"+Rd(Wu)+"' and default family '"+rl+"'.");if(es=function(hs,Ps){if(Ps[hs])return Ps[hs];var Gu=qc[hs],al=Gu<=qc.normal?-1:1,As=lf(Ps,sf,Gu,al);if(!As)throw new Error("Could not find a matching font-stretch value for "+hs);return As}(Wu.stretch,es),es=function(hs,Ps){if(Ps[hs])return Ps[hs];for(var Gu=Lc[hs],al=0;al<Gu.length;++al)if(Ps[Gu[al]])return Ps[Gu[al]];throw new Error("Could not find a matching font-style for "+hs)}(Wu.style,es),!(es=function(hs,Ps){if(Ps[hs])return Ps[hs];if(hs===400&&Ps[500])return Ps[500];if(hs===500&&Ps[400])return Ps[400];var Gu=hh[hs],al=lf(Ps,oA,Gu,hs<400?-1:1);if(!al)throw new Error("Could not find a matching font-weight for value "+hs);return al}(Wu.weight,es)))throw new Error("Failed to resolve a font for the rule '"+Rd(Wu)+"'.");return es}(Ja,iu);this.pdf.setFont(ml.ref.name,ml.ref.style)}else{var Ds="";(as==="bold"||parseInt(as,10)>=700||Js==="bold")&&(Ds="bold"),Js==="italic"&&(Ds+="italic"),Ds.length===0&&(Ds="normal");for(var Cl="",gl={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ra=0;Ra<is.length;Ra++){if(this.pdf.internal.getFont(is[Ra],Ds,{noFallback:!0,disableWarning:!0})!==void 0){Cl=is[Ra];break}if(Ds==="bolditalic"&&this.pdf.internal.getFont(is[Ra],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Cl=is[Ra],Ds="bold";else if(this.pdf.internal.getFont(is[Ra],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Cl=is[Ra],Ds="normal";break}}if(Cl===""){for(var js=0;js<is.length;js++)if(gl[is[js]]){Cl=gl[is[js]];break}}Cl=Cl===""?"Times":Cl,this.pdf.setFont(Cl,Ds)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Pn){this.ctx.globalCompositeOperation=Pn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Pn){this.ctx.globalAlpha=Pn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Pn){this.ctx.lineDashOffset=Pn,ao.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Pn){this.ctx.lineDash=Pn,ao.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Pn){this.ctx.ignoreClearRect=!!Pn}})};Tt.prototype.setLineDash=function(rn){this.lineDash=rn},Tt.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Tt.prototype.fill=function(){Zn.call(this,"fill",!1)},Tt.prototype.stroke=function(){Zn.call(this,"stroke",!1)},Tt.prototype.beginPath=function(){this.path=[{type:"begin"}]},Tt.prototype.moveTo=function(rn,Kn){if(isNaN(rn)||isNaN(Kn))throw pl.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var rr=this.ctx.transform.applyToPoint(new $e(rn,Kn));this.path.push({type:"mt",x:rr.x,y:rr.y}),this.ctx.lastPoint=new $e(rn,Kn)},Tt.prototype.closePath=function(){var rn=new $e(0,0),Kn=0;for(Kn=this.path.length-1;Kn!==-1;Kn--)if(this.path[Kn].type==="begin"&&(0,x.Z)(this.path[Kn+1])==="object"&&typeof this.path[Kn+1].x=="number"){rn=new $e(this.path[Kn+1].x,this.path[Kn+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new $e(rn.x,rn.y)},Tt.prototype.lineTo=function(rn,Kn){if(isNaN(rn)||isNaN(Kn))throw pl.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var rr=this.ctx.transform.applyToPoint(new $e(rn,Kn));this.path.push({type:"lt",x:rr.x,y:rr.y}),this.ctx.lastPoint=new $e(rr.x,rr.y)},Tt.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Zn.call(this,null,!0)},Tt.prototype.quadraticCurveTo=function(rn,Kn,rr,yr){if(isNaN(rr)||isNaN(yr)||isNaN(rn)||isNaN(Kn))throw pl.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Pr=this.ctx.transform.applyToPoint(new $e(rr,yr)),Xr=this.ctx.transform.applyToPoint(new $e(rn,Kn));this.path.push({type:"qct",x1:Xr.x,y1:Xr.y,x:Pr.x,y:Pr.y}),this.ctx.lastPoint=new $e(Pr.x,Pr.y)},Tt.prototype.bezierCurveTo=function(rn,Kn,rr,yr,Pr,Xr){if(isNaN(Pr)||isNaN(Xr)||isNaN(rn)||isNaN(Kn)||isNaN(rr)||isNaN(yr))throw pl.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ei=this.ctx.transform.applyToPoint(new $e(Pr,Xr)),Ii=this.ctx.transform.applyToPoint(new $e(rn,Kn)),Yi=this.ctx.transform.applyToPoint(new $e(rr,yr));this.path.push({type:"bct",x1:Ii.x,y1:Ii.y,x2:Yi.x,y2:Yi.y,x:Ei.x,y:Ei.y}),this.ctx.lastPoint=new $e(Ei.x,Ei.y)},Tt.prototype.arc=function(rn,Kn,rr,yr,Pr,Xr){if(isNaN(rn)||isNaN(Kn)||isNaN(rr)||isNaN(yr)||isNaN(Pr))throw pl.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Xr=!!Xr,!this.ctx.transform.isIdentity){var Ei=this.ctx.transform.applyToPoint(new $e(rn,Kn));rn=Ei.x,Kn=Ei.y;var Ii=this.ctx.transform.applyToPoint(new $e(0,rr)),Yi=this.ctx.transform.applyToPoint(new $e(0,0));rr=Math.sqrt(Math.pow(Ii.x-Yi.x,2)+Math.pow(Ii.y-Yi.y,2))}Math.abs(Pr-yr)>=2*Math.PI&&(yr=0,Pr=2*Math.PI),this.path.push({type:"arc",x:rn,y:Kn,radius:rr,startAngle:yr,endAngle:Pr,counterclockwise:Xr})},Tt.prototype.arcTo=function(rn,Kn,rr,yr,Pr){throw new Error("arcTo not implemented.")},Tt.prototype.rect=function(rn,Kn,rr,yr){if(isNaN(rn)||isNaN(Kn)||isNaN(rr)||isNaN(yr))throw pl.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(rn,Kn),this.lineTo(rn+rr,Kn),this.lineTo(rn+rr,Kn+yr),this.lineTo(rn,Kn+yr),this.lineTo(rn,Kn),this.lineTo(rn+rr,Kn),this.lineTo(rn,Kn)},Tt.prototype.fillRect=function(rn,Kn,rr,yr){if(isNaN(rn)||isNaN(Kn)||isNaN(rr)||isNaN(yr))throw pl.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!At.call(this)){var Pr={};this.lineCap!=="butt"&&(Pr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Pr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(rn,Kn,rr,yr),this.fill(),Pr.hasOwnProperty("lineCap")&&(this.lineCap=Pr.lineCap),Pr.hasOwnProperty("lineJoin")&&(this.lineJoin=Pr.lineJoin)}},Tt.prototype.strokeRect=function(rn,Kn,rr,yr){if(isNaN(rn)||isNaN(Kn)||isNaN(rr)||isNaN(yr))throw pl.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");In.call(this)||(this.beginPath(),this.rect(rn,Kn,rr,yr),this.stroke())},Tt.prototype.clearRect=function(rn,Kn,rr,yr){if(isNaN(rn)||isNaN(Kn)||isNaN(rr)||isNaN(yr))throw pl.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(rn,Kn,rr,yr))},Tt.prototype.save=function(rn){rn=typeof rn!="boolean"||rn;for(var Kn=this.pdf.internal.getCurrentPageInfo().pageNumber,rr=0;rr<this.pdf.internal.getNumberOfPages();rr++)this.pdf.setPage(rr+1),this.pdf.internal.out("q");if(this.pdf.setPage(Kn),rn){this.ctx.fontSize=this.pdf.internal.getFontSize();var yr=new ft(this.ctx);this.ctxStack.push(this.ctx),this.ctx=yr}},Tt.prototype.restore=function(rn){rn=typeof rn!="boolean"||rn;for(var Kn=this.pdf.internal.getCurrentPageInfo().pageNumber,rr=0;rr<this.pdf.internal.getNumberOfPages();rr++)this.pdf.setPage(rr+1),this.pdf.internal.out("Q");this.pdf.setPage(Kn),rn&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Tt.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Jt=function(rn){var Kn,rr,yr,Pr;if(rn.isCanvasGradient===!0&&(rn=rn.getColor()),!rn)return{r:0,g:0,b:0,a:0,style:rn};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(rn))Kn=0,rr=0,yr=0,Pr=0;else{var Xr=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(rn);if(Xr!==null)Kn=parseInt(Xr[1]),rr=parseInt(Xr[2]),yr=parseInt(Xr[3]),Pr=1;else if((Xr=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(rn))!==null)Kn=parseInt(Xr[1]),rr=parseInt(Xr[2]),yr=parseInt(Xr[3]),Pr=parseFloat(Xr[4]);else{if(Pr=1,typeof rn=="string"&&rn.charAt(0)!=="#"){var Ei=new Jm(rn);rn=Ei.ok?Ei.toHex():"#000000"}rn.length===4?(Kn=rn.substring(1,2),Kn+=Kn,rr=rn.substring(2,3),rr+=rr,yr=rn.substring(3,4),yr+=yr):(Kn=rn.substring(1,3),rr=rn.substring(3,5),yr=rn.substring(5,7)),Kn=parseInt(Kn,16),rr=parseInt(rr,16),yr=parseInt(yr,16)}}return{r:Kn,g:rr,b:yr,a:Pr,style:rn}},At=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},In=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Tt.prototype.fillText=function(rn,Kn,rr,yr){if(isNaN(Kn)||isNaN(rr)||typeof rn!="string")throw pl.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(yr=isNaN(yr)?void 0:yr,!At.call(this)){var Pr=ei(this.ctx.transform.rotation),Xr=this.ctx.transform.scaleX;Dn.call(this,{text:rn,x:Kn,y:rr,scale:Xr,angle:Pr,align:this.textAlign,maxWidth:yr})}},Tt.prototype.strokeText=function(rn,Kn,rr,yr){if(isNaN(Kn)||isNaN(rr)||typeof rn!="string")throw pl.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!In.call(this)){yr=isNaN(yr)?void 0:yr;var Pr=ei(this.ctx.transform.rotation),Xr=this.ctx.transform.scaleX;Dn.call(this,{text:rn,x:Kn,y:rr,scale:Xr,renderingMode:"stroke",angle:Pr,align:this.textAlign,maxWidth:yr})}},Tt.prototype.measureText=function(rn){if(typeof rn!="string")throw pl.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Kn=this.pdf,rr=this.pdf.internal.scaleFactor,yr=Kn.internal.getFontSize(),Pr=Kn.getStringUnitWidth(rn)*yr/Kn.internal.scaleFactor;return new function(Xr){var Ei=(Xr=Xr||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ei}}),this}({width:Pr*=Math.round(96*rr/72*1e4)/1e4})},Tt.prototype.scale=function(rn,Kn){if(isNaN(rn)||isNaN(Kn))throw pl.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var rr=new Ge(rn,0,0,Kn,0,0);this.ctx.transform=this.ctx.transform.multiply(rr)},Tt.prototype.rotate=function(rn){if(isNaN(rn))throw pl.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Kn=new Ge(Math.cos(rn),Math.sin(rn),-Math.sin(rn),Math.cos(rn),0,0);this.ctx.transform=this.ctx.transform.multiply(Kn)},Tt.prototype.translate=function(rn,Kn){if(isNaN(rn)||isNaN(Kn))throw pl.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var rr=new Ge(1,0,0,1,rn,Kn);this.ctx.transform=this.ctx.transform.multiply(rr)},Tt.prototype.transform=function(rn,Kn,rr,yr,Pr,Xr){if(isNaN(rn)||isNaN(Kn)||isNaN(rr)||isNaN(yr)||isNaN(Pr)||isNaN(Xr))throw pl.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ei=new Ge(rn,Kn,rr,yr,Pr,Xr);this.ctx.transform=this.ctx.transform.multiply(Ei)},Tt.prototype.setTransform=function(rn,Kn,rr,yr,Pr,Xr){rn=isNaN(rn)?1:rn,Kn=isNaN(Kn)?0:Kn,rr=isNaN(rr)?0:rr,yr=isNaN(yr)?1:yr,Pr=isNaN(Pr)?0:Pr,Xr=isNaN(Xr)?0:Xr,this.ctx.transform=new Ge(rn,Kn,rr,yr,Pr,Xr)};var bn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Tt.prototype.drawImage=function(rn,Kn,rr,yr,Pr,Xr,Ei,Ii,Yi){var Bo=this.pdf.getImageProperties(rn),da=1,ca=1,Xa=1,Pn=1;yr!==void 0&&Ii!==void 0&&(Xa=Ii/yr,Pn=Yi/Pr,da=Bo.width/yr*Ii/yr,ca=Bo.height/Pr*Yi/Pr),Xr===void 0&&(Xr=Kn,Ei=rr,Kn=0,rr=0),yr!==void 0&&Ii===void 0&&(Ii=yr,Yi=Pr),yr===void 0&&Ii===void 0&&(Ii=Bo.width,Yi=Bo.height);var fa=this.ctx.transform.decompose(),Js=ei(fa.rotate.shx),as=new Ge,vo=(as=(as=(as=as.multiply(fa.translate)).multiply(fa.skew)).multiply(fa.scale)).applyToRectangle(new Pe(Xr-Kn*Xa,Ei-rr*Pn,yr*da,Pr*ca));if(this.autoPaging){for(var ss,Fa=On.call(this,vo),is=[],Ja=0;Ja<Fa.length;Ja+=1)is.indexOf(Fa[Ja])===-1&&is.push(Fa[Ja]);cr(is);for(var iu=is[0],ml=is[is.length-1],Ds=iu;Ds<ml+1;Ds++){this.pdf.setPage(Ds);var Cl=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],gl=Ds===1?this.posY+this.margin[0]:this.margin[0],Ra=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],js=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ka=Ds===1?0:Ra+(Ds-2)*js;if(this.ctx.clip_path.length!==0){var xc=this.path;ss=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gr(ss,this.posX+this.margin[3],-Ka+gl+this.ctx.prevPageLastElemOffset),li.call(this,"fill",!0),this.path=xc}var Nl=JSON.parse(JSON.stringify(vo));Nl=gr([Nl],this.posX+this.margin[3],-Ka+gl+this.ctx.prevPageLastElemOffset)[0];var rl=(Ds>iu||Ds<ml)&&bn.call(this);rl&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Cl,js,null).clip().discardPath()),this.pdf.addImage(rn,"JPEG",Nl.x,Nl.y,Nl.w,Nl.h,null,null,Js),rl&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(rn,"JPEG",vo.x,vo.y,vo.w,vo.h,null,null,Js)};var On=function(rn,Kn,rr){var yr=[];Kn=Kn||this.pdf.internal.pageSize.width,rr=rr||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Pr=this.posY+this.ctx.prevPageLastElemOffset;switch(rn.type){default:case"mt":case"lt":yr.push(Math.floor((rn.y+Pr)/rr)+1);break;case"arc":yr.push(Math.floor((rn.y+Pr-rn.radius)/rr)+1),yr.push(Math.floor((rn.y+Pr+rn.radius)/rr)+1);break;case"qct":var Xr=Oi(this.ctx.lastPoint.x,this.ctx.lastPoint.y,rn.x1,rn.y1,rn.x,rn.y);yr.push(Math.floor((Xr.y+Pr)/rr)+1),yr.push(Math.floor((Xr.y+Xr.h+Pr)/rr)+1);break;case"bct":var Ei=Oo(this.ctx.lastPoint.x,this.ctx.lastPoint.y,rn.x1,rn.y1,rn.x2,rn.y2,rn.x,rn.y);yr.push(Math.floor((Ei.y+Pr)/rr)+1),yr.push(Math.floor((Ei.y+Ei.h+Pr)/rr)+1);break;case"rect":yr.push(Math.floor((rn.y+Pr)/rr)+1),yr.push(Math.floor((rn.y+rn.h+Pr)/rr)+1)}for(var Ii=0;Ii<yr.length;Ii+=1)for(;this.pdf.internal.getNumberOfPages()<yr[Ii];)cn.call(this);return yr},cn=function(){var rn=this.fillStyle,Kn=this.strokeStyle,rr=this.font,yr=this.lineCap,Pr=this.lineWidth,Xr=this.lineJoin;this.pdf.addPage(),this.fillStyle=rn,this.strokeStyle=Kn,this.font=rr,this.lineCap=yr,this.lineWidth=Pr,this.lineJoin=Xr},gr=function(rn,Kn,rr){for(var yr=0;yr<rn.length;yr++)switch(rn[yr].type){case"bct":rn[yr].x2+=Kn,rn[yr].y2+=rr;case"qct":rn[yr].x1+=Kn,rn[yr].y1+=rr;default:rn[yr].x+=Kn,rn[yr].y+=rr}return rn},cr=function(rn){return rn.sort(function(Kn,rr){return Kn-rr})},Zn=function(rn,Kn){var rr=this.fillStyle,yr=this.strokeStyle,Pr=this.lineCap,Xr=this.lineWidth,Ei=Math.abs(Xr*this.ctx.transform.scaleX),Ii=this.lineJoin;if(this.autoPaging){for(var Yi,Bo,da=JSON.parse(JSON.stringify(this.path)),ca=JSON.parse(JSON.stringify(this.path)),Xa=[],Pn=0;Pn<ca.length;Pn++)if(ca[Pn].x!==void 0)for(var fa=On.call(this,ca[Pn]),Js=0;Js<fa.length;Js+=1)Xa.indexOf(fa[Js])===-1&&Xa.push(fa[Js]);for(var as=0;as<Xa.length;as++)for(;this.pdf.internal.getNumberOfPages()<Xa[as];)cn.call(this);cr(Xa);for(var vo=Xa[0],ss=Xa[Xa.length-1],Fa=vo;Fa<ss+1;Fa++){this.pdf.setPage(Fa),this.fillStyle=rr,this.strokeStyle=yr,this.lineCap=Pr,this.lineWidth=Ei,this.lineJoin=Ii;var is=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ja=Fa===1?this.posY+this.margin[0]:this.margin[0],iu=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ml=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ds=Fa===1?0:iu+(Fa-2)*ml;if(this.ctx.clip_path.length!==0){var Cl=this.path;Yi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gr(Yi,this.posX+this.margin[3],-Ds+Ja+this.ctx.prevPageLastElemOffset),li.call(this,rn,!0),this.path=Cl}if(Bo=JSON.parse(JSON.stringify(da)),this.path=gr(Bo,this.posX+this.margin[3],-Ds+Ja+this.ctx.prevPageLastElemOffset),Kn===!1||Fa===0){var gl=(Fa>vo||Fa<ss)&&bn.call(this);gl&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],is,ml,null).clip().discardPath()),li.call(this,rn,Kn),gl&&this.pdf.restoreGraphicsState()}this.lineWidth=Xr}this.path=da}else this.lineWidth=Ei,li.call(this,rn,Kn),this.lineWidth=Xr},li=function(rn,Kn){if((rn!=="stroke"||Kn||!In.call(this))&&(rn==="stroke"||Kn||!At.call(this))){for(var rr,yr,Pr=[],Xr=this.path,Ei=0;Ei<Xr.length;Ei++){var Ii=Xr[Ei];switch(Ii.type){case"begin":Pr.push({begin:!0});break;case"close":Pr.push({close:!0});break;case"mt":Pr.push({start:Ii,deltas:[],abs:[]});break;case"lt":var Yi=Pr.length;if(Xr[Ei-1]&&!isNaN(Xr[Ei-1].x)&&(rr=[Ii.x-Xr[Ei-1].x,Ii.y-Xr[Ei-1].y],Yi>0)){for(;Yi>=0;Yi--)if(Pr[Yi-1].close!==!0&&Pr[Yi-1].begin!==!0){Pr[Yi-1].deltas.push(rr),Pr[Yi-1].abs.push(Ii);break}}break;case"bct":rr=[Ii.x1-Xr[Ei-1].x,Ii.y1-Xr[Ei-1].y,Ii.x2-Xr[Ei-1].x,Ii.y2-Xr[Ei-1].y,Ii.x-Xr[Ei-1].x,Ii.y-Xr[Ei-1].y],Pr[Pr.length-1].deltas.push(rr);break;case"qct":var Bo=Xr[Ei-1].x+2/3*(Ii.x1-Xr[Ei-1].x),da=Xr[Ei-1].y+2/3*(Ii.y1-Xr[Ei-1].y),ca=Ii.x+2/3*(Ii.x1-Ii.x),Xa=Ii.y+2/3*(Ii.y1-Ii.y),Pn=Ii.x,fa=Ii.y;rr=[Bo-Xr[Ei-1].x,da-Xr[Ei-1].y,ca-Xr[Ei-1].x,Xa-Xr[Ei-1].y,Pn-Xr[Ei-1].x,fa-Xr[Ei-1].y],Pr[Pr.length-1].deltas.push(rr);break;case"arc":Pr.push({deltas:[],abs:[],arc:!0}),Array.isArray(Pr[Pr.length-1].abs)&&Pr[Pr.length-1].abs.push(Ii)}}yr=Kn?null:rn==="stroke"?"stroke":"fill";for(var Js=!1,as=0;as<Pr.length;as++)if(Pr[as].arc)for(var vo=Pr[as].abs,ss=0;ss<vo.length;ss++){var Fa=vo[ss];Fa.type==="arc"?Fr.call(this,Fa.x,Fa.y,Fa.radius,Fa.startAngle,Fa.endAngle,Fa.counterclockwise,void 0,Kn,!Js):mr.call(this,Fa.x,Fa.y),Js=!0}else if(Pr[as].close===!0)this.pdf.internal.out("h"),Js=!1;else if(Pr[as].begin!==!0){var is=Pr[as].start.x,Ja=Pr[as].start.y;dr.call(this,Pr[as].deltas,is,Ja),Js=!0}yr&&Xn.call(this,yr),Kn&&Wr.call(this)}},ji=function(rn){var Kn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,rr=Kn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return rn-rr;case"top":return rn+Kn-rr;case"hanging":return rn+Kn-2*rr;case"middle":return rn+Kn/2-rr;default:return rn}},Bi=function(rn){return rn+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Tt.prototype.createLinearGradient=function(){var rn=function(){};return rn.colorStops=[],rn.addColorStop=function(Kn,rr){this.colorStops.push([Kn,rr])},rn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},rn.isCanvasGradient=!0,rn},Tt.prototype.createPattern=function(){return this.createLinearGradient()},Tt.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Fr=function(rn,Kn,rr,yr,Pr,Xr,Ei,Ii,Yi){for(var Bo=Ci.call(this,rr,yr,Pr,Xr),da=0;da<Bo.length;da++){var ca=Bo[da];da===0&&(Yi?ln.call(this,ca.x1+rn,ca.y1+Kn):mr.call(this,ca.x1+rn,ca.y1+Kn)),pi.call(this,rn,Kn,ca.x2,ca.y2,ca.x3,ca.y3,ca.x4,ca.y4)}Ii?Wr.call(this):Xn.call(this,Ei)},Xn=function(rn){switch(rn){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Wr=function(){this.pdf.clip(),this.pdf.discardPath()},ln=function(rn,Kn){this.pdf.internal.out(E(rn)+" "+re(Kn)+" m")},Dn=function(rn){var Kn;switch(rn.align){case"right":case"end":Kn="right";break;case"center":Kn="center";break;default:Kn="left"}var rr,yr,Pr,Xr=this.pdf.getTextDimensions(rn.text),Ei=ji.call(this,rn.y),Ii=Bi.call(this,Ei)-Xr.h,Yi=this.ctx.transform.applyToPoint(new $e(rn.x,Ei));if(this.autoPaging){var Bo=this.ctx.transform.decompose(),da=new Ge;da=(da=(da=da.multiply(Bo.translate)).multiply(Bo.skew)).multiply(Bo.scale);for(var ca=this.ctx.transform.applyToRectangle(new Pe(rn.x,Ei,Xr.w,Xr.h)),Xa=da.applyToRectangle(new Pe(rn.x,Ii,Xr.w,Xr.h)),Pn=On.call(this,Xa),fa=[],Js=0;Js<Pn.length;Js+=1)fa.indexOf(Pn[Js])===-1&&fa.push(Pn[Js]);cr(fa);for(var as=fa[0],vo=fa[fa.length-1],ss=as;ss<vo+1;ss++){this.pdf.setPage(ss);var Fa=ss===1?this.posY+this.margin[0]:this.margin[0],is=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ja=this.pdf.internal.pageSize.height-this.margin[2],iu=Ja-this.margin[0],ml=this.pdf.internal.pageSize.width-this.margin[1],Ds=ml-this.margin[3],Cl=ss===1?0:is+(ss-2)*iu;if(this.ctx.clip_path.length!==0){var gl=this.path;rr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gr(rr,this.posX+this.margin[3],-1*Cl+Fa),li.call(this,"fill",!0),this.path=gl}var Ra=gr([JSON.parse(JSON.stringify(Xa))],this.posX+this.margin[3],-Cl+Fa+this.ctx.prevPageLastElemOffset)[0];rn.scale>=.01&&(yr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(yr*rn.scale),Pr=this.lineWidth,this.lineWidth=Pr*rn.scale);var js=this.autoPaging!=="text";if(js||Ra.y+Ra.h<=Ja){if(js||Ra.y>=Fa&&Ra.x<=ml){var Ka=js?rn.text:this.pdf.splitTextToSize(rn.text,rn.maxWidth||ml-Ra.x)[0],xc=gr([JSON.parse(JSON.stringify(ca))],this.posX+this.margin[3],-Cl+Fa+this.ctx.prevPageLastElemOffset)[0],Nl=js&&(ss>as||ss<vo)&&bn.call(this);Nl&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ds,iu,null).clip().discardPath()),this.pdf.text(Ka,xc.x,xc.y,{angle:rn.angle,align:Kn,renderingMode:rn.renderingMode}),Nl&&this.pdf.restoreGraphicsState()}}else Ra.y<Ja&&(this.ctx.prevPageLastElemOffset+=Ja-Ra.y);rn.scale>=.01&&(this.pdf.setFontSize(yr),this.lineWidth=Pr)}}else rn.scale>=.01&&(yr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(yr*rn.scale),Pr=this.lineWidth,this.lineWidth=Pr*rn.scale),this.pdf.text(rn.text,Yi.x+this.posX,Yi.y+this.posY,{angle:rn.angle,align:Kn,renderingMode:rn.renderingMode,maxWidth:rn.maxWidth}),rn.scale>=.01&&(this.pdf.setFontSize(yr),this.lineWidth=Pr)},mr=function(rn,Kn,rr,yr){rr=rr||0,yr=yr||0,this.pdf.internal.out(E(rn+rr)+" "+re(Kn+yr)+" l")},dr=function(rn,Kn,rr){return this.pdf.lines(rn,Kn,rr,null,null)},pi=function(rn,Kn,rr,yr,Pr,Xr,Ei,Ii){this.pdf.internal.out([z(ce(rr+rn)),z(fe(yr+Kn)),z(ce(Pr+rn)),z(fe(Xr+Kn)),z(ce(Ei+rn)),z(fe(Ii+Kn)),"c"].join(" "))},Ci=function(rn,Kn,rr,yr){for(var Pr=2*Math.PI,Xr=Math.PI/2;Kn>rr;)Kn-=Pr;var Ei=Math.abs(rr-Kn);Ei<Pr&&yr&&(Ei=Pr-Ei);for(var Ii=[],Yi=yr?-1:1,Bo=Kn;Ei>1e-5;){var da=Bo+Yi*Math.min(Ei,Xr);Ii.push(Si.call(this,rn,Bo,da)),Ei-=Math.abs(da-Bo),Bo=da}return Ii},Si=function(rn,Kn,rr){var yr=(rr-Kn)/2,Pr=rn*Math.cos(yr),Xr=rn*Math.sin(yr),Ei=Pr,Ii=-Xr,Yi=Ei*Ei+Ii*Ii,Bo=Yi+Ei*Pr+Ii*Xr,da=4/3*(Math.sqrt(2*Yi*Bo)-Bo)/(Ei*Xr-Ii*Pr),ca=Ei-da*Ii,Xa=Ii+da*Ei,Pn=ca,fa=-Xa,Js=yr+Kn,as=Math.cos(Js),vo=Math.sin(Js);return{x1:rn*Math.cos(Kn),y1:rn*Math.sin(Kn),x2:ca*as-Xa*vo,y2:ca*vo+Xa*as,x3:Pn*as-fa*vo,y3:Pn*vo+fa*as,x4:rn*Math.cos(rr),y4:rn*Math.sin(rr)}},ei=function(rn){return 180*rn/Math.PI},Oi=function(rn,Kn,rr,yr,Pr,Xr){var Ei=rn+.5*(rr-rn),Ii=Kn+.5*(yr-Kn),Yi=Pr+.5*(rr-Pr),Bo=Xr+.5*(yr-Xr),da=Math.min(rn,Pr,Ei,Yi),ca=Math.max(rn,Pr,Ei,Yi),Xa=Math.min(Kn,Xr,Ii,Bo),Pn=Math.max(Kn,Xr,Ii,Bo);return new Pe(da,Xa,ca-da,Pn-Xa)},Oo=function(rn,Kn,rr,yr,Pr,Xr,Ei,Ii){var Yi,Bo,da,ca,Xa,Pn,fa,Js,as,vo,ss,Fa,is,Ja,iu=rr-rn,ml=yr-Kn,Ds=Pr-rr,Cl=Xr-yr,gl=Ei-Pr,Ra=Ii-Xr;for(Bo=0;Bo<41;Bo++)as=(fa=(da=rn+(Yi=Bo/40)*iu)+Yi*((Xa=rr+Yi*Ds)-da))+Yi*(Xa+Yi*(Pr+Yi*gl-Xa)-fa),vo=(Js=(ca=Kn+Yi*ml)+Yi*((Pn=yr+Yi*Cl)-ca))+Yi*(Pn+Yi*(Xr+Yi*Ra-Pn)-Js),Bo==0?(ss=as,Fa=vo,is=as,Ja=vo):(ss=Math.min(ss,as),Fa=Math.min(Fa,vo),is=Math.max(is,as),Ja=Math.max(Ja,vo));return new Pe(Math.round(ss),Math.round(Fa),Math.round(is-ss),Math.round(Ja-Fa))},ao=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var rn,Kn,rr=(rn=this.ctx.lineDash,Kn=this.ctx.lineDashOffset,JSON.stringify({lineDash:rn,lineDashOffset:Kn}));this.prevLineDash!==rr&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=rr)}}})(Oa.API),function(y){var z=function($e){var Pe,Ge,Ye,ft,Tt,Jt,At,In,bn,On;for(/[^\x00-\xFF]/.test($e),Ge=[],Ye=0,ft=($e+=Pe="\0\0\0\0".slice($e.length%4||4)).length;ft>Ye;Ye+=4)(Tt=($e.charCodeAt(Ye)<<24)+($e.charCodeAt(Ye+1)<<16)+($e.charCodeAt(Ye+2)<<8)+$e.charCodeAt(Ye+3))!==0?(Jt=(Tt=((Tt=((Tt=((Tt=(Tt-(On=Tt%85))/85)-(bn=Tt%85))/85)-(In=Tt%85))/85)-(At=Tt%85))/85)%85,Ge.push(Jt+33,At+33,In+33,bn+33,On+33)):Ge.push(122);return function(cn,gr){for(var cr=gr;cr>0;cr--)cn.pop()}(Ge,Pe.length),String.fromCharCode.apply(String,Ge)+"~>"},E=function($e){var Pe,Ge,Ye,ft,Tt,Jt=String,At="length",In=255,bn="charCodeAt",On="slice",cn="replace";for($e[On](-2),$e=$e[On](0,-2)[cn](/\s/g,"")[cn]("z","!!!!!"),Ye=[],ft=0,Tt=($e+=Pe="uuuuu"[On]($e[At]%5||5))[At];Tt>ft;ft+=5)Ge=52200625*($e[bn](ft)-33)+614125*($e[bn](ft+1)-33)+7225*($e[bn](ft+2)-33)+85*($e[bn](ft+3)-33)+($e[bn](ft+4)-33),Ye.push(In&Ge>>24,In&Ge>>16,In&Ge>>8,In&Ge);return function(gr,cr){for(var Zn=cr;Zn>0;Zn--)gr.pop()}(Ye,Pe[At]),Jt.fromCharCode.apply(Jt,Ye)},re=function($e){return $e.split("").map(function(Pe){return("0"+Pe.charCodeAt().toString(16)).slice(-2)}).join("")+">"},ce=function($e){var Pe=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(($e=$e.replace(/\s/g,"")).indexOf(">")!==-1&&($e=$e.substr(0,$e.indexOf(">"))),$e.length%2&&($e+="0"),Pe.test($e)===!1)return"";for(var Ge="",Ye=0;Ye<$e.length;Ye+=2)Ge+=String.fromCharCode("0x"+($e[Ye]+$e[Ye+1]));return Ge},fe=function($e){for(var Pe=new Uint8Array($e.length),Ge=$e.length;Ge--;)Pe[Ge]=$e.charCodeAt(Ge);return(Pe=di(Pe)).reduce(function(Ye,ft){return Ye+String.fromCharCode(ft)},"")};y.processDataByFilters=function($e,Pe){var Ge=0,Ye=$e||"",ft=[];for(typeof(Pe=Pe||[])=="string"&&(Pe=[Pe]),Ge=0;Ge<Pe.length;Ge+=1)switch(Pe[Ge]){case"ASCII85Decode":case"/ASCII85Decode":Ye=E(Ye),ft.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Ye=z(Ye),ft.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Ye=ce(Ye),ft.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Ye=re(Ye),ft.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Ye=fe(Ye),ft.push("/FlateDecode");break;default:throw new Error('The filter: "'+Pe[Ge]+'" is not implemented')}return{data:Ye,reverseChain:ft.reverse().join(" ")}}}(Oa.API),function(y){y.loadFile=function(z,E,re){return function(ce,fe,$e){fe=fe!==!1,$e=typeof $e=="function"?$e:function(){};var Pe=void 0;try{Pe=function(Ge,Ye,ft){var Tt=new XMLHttpRequest,Jt=0,At=function(In){var bn=In.length,On=[],cn=String.fromCharCode;for(Jt=0;Jt<bn;Jt+=1)On.push(cn(255&In.charCodeAt(Jt)));return On.join("")};if(Tt.open("GET",Ge,!Ye),Tt.overrideMimeType("text/plain; charset=x-user-defined"),Ye===!1&&(Tt.onload=function(){Tt.status===200?ft(At(this.responseText)):ft(void 0)}),Tt.send(null),Ye&&Tt.status===200)return At(Tt.responseText)}(ce,fe,$e)}catch(Ge){}return Pe}(z,E,re)},y.loadImageFile=y.loadFile}(Oa.API),function(y){function z(){return(Ua.html2canvas?Promise.resolve(Ua.html2canvas):Promise.resolve().then(ae.t.bind(ae,64270,23))).catch(function(Pe){return Promise.reject(new Error("Could not load html2canvas: "+Pe))}).then(function(Pe){return Pe.default?Pe.default:Pe})}function E(){return(Ua.DOMPurify?Promise.resolve(Ua.DOMPurify):ae.e(5911).then(ae.bind(ae,85911))).catch(function(Pe){return Promise.reject(new Error("Could not load dompurify: "+Pe))}).then(function(Pe){return Pe.default?Pe.default:Pe})}var re=function(Pe){var Ge=(0,x.Z)(Pe);return Ge==="undefined"?"undefined":Ge==="string"||Pe instanceof String?"string":Ge==="number"||Pe instanceof Number?"number":Ge==="function"||Pe instanceof Function?"function":Pe&&Pe.constructor===Array?"array":Pe&&Pe.nodeType===1?"element":Ge==="object"?"object":"unknown"},ce=function(Pe,Ge){var Ye=document.createElement(Pe);for(var ft in Ge.className&&(Ye.className=Ge.className),Ge.innerHTML&&Ge.dompurify&&(Ye.innerHTML=Ge.dompurify.sanitize(Ge.innerHTML)),Ge.style)Ye.style[ft]=Ge.style[ft];return Ye},fe=function Pe(Ge,Ye){for(var ft=Ge.nodeType===3?document.createTextNode(Ge.nodeValue):Ge.cloneNode(!1),Tt=Ge.firstChild;Tt;Tt=Tt.nextSibling)Ye!==!0&&Tt.nodeType===1&&Tt.nodeName==="SCRIPT"||ft.appendChild(Pe(Tt,Ye));return Ge.nodeType===1&&(Ge.nodeName==="CANVAS"?(ft.width=Ge.width,ft.height=Ge.height,ft.getContext("2d").drawImage(Ge,0,0)):Ge.nodeName!=="TEXTAREA"&&Ge.nodeName!=="SELECT"||(ft.value=Ge.value),ft.addEventListener("load",function(){ft.scrollTop=Ge.scrollTop,ft.scrollLeft=Ge.scrollLeft},!0)),ft},$e=function Pe(Ge){var Ye=Object.assign(Pe.convert(Promise.resolve()),JSON.parse(JSON.stringify(Pe.template))),ft=Pe.convert(Promise.resolve(),Ye);return(ft=ft.setProgress(1,Pe,1,[Pe])).set(Ge)};($e.prototype=Object.create(Promise.prototype)).constructor=$e,$e.convert=function(Pe,Ge){return Pe.__proto__=Ge||$e.prototype,Pe},$e.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},$e.prototype.from=function(Pe,Ge){return this.then(function(){switch(Ge=Ge||function(Ye){switch(re(Ye)){case"string":return"string";case"element":return Ye.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Pe),Ge){case"string":return this.then(E).then(function(Ye){return this.set({src:ce("div",{innerHTML:Pe,dompurify:Ye})})});case"element":return this.set({src:Pe});case"canvas":return this.set({canvas:Pe});case"img":return this.set({img:Pe});default:return this.error("Unknown source type.")}})},$e.prototype.to=function(Pe){switch(Pe){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},$e.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var Pe={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Ge=fe(this.prop.src,this.opt.html2canvas.javascriptEnabled);Ge.tagName==="BODY"&&(Pe.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=ce("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=ce("div",{className:"html2pdf__container",style:Pe}),this.prop.container.appendChild(Ge),this.prop.container.firstChild.appendChild(ce("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},$e.prototype.toCanvas=function(){var Pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Pe).then(z).then(function(Ge){var Ye=Object.assign({},this.opt.html2canvas);return delete Ye.onrendered,Ge(this.prop.container,Ye)}).then(function(Ge){(this.opt.html2canvas.onrendered||function(){})(Ge),this.prop.canvas=Ge,document.body.removeChild(this.prop.overlay)})},$e.prototype.toContext2d=function(){var Pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Pe).then(z).then(function(Ge){var Ye=this.opt.jsPDF,ft=this.opt.fontFaces,Tt=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Jt=Object.assign({async:!0,allowTaint:!0,scale:Tt,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Jt.onrendered,Ye.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Ye.context2d.posX=this.opt.x,Ye.context2d.posY=this.opt.y,Ye.context2d.margin=this.opt.margin,Ye.context2d.fontFaces=ft,ft)for(var At=0;At<ft.length;++At){var In=ft[At],bn=In.src.find(function(On){return On.format==="truetype"});bn&&Ye.addFont(bn.url,In.ref.name,In.ref.style)}return Jt.windowHeight=Jt.windowHeight||0,Jt.windowHeight=Jt.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Jt.windowHeight,Ye.context2d.save(!0),Ge(this.prop.container,Jt)}).then(function(Ge){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Ge),this.prop.canvas=Ge,document.body.removeChild(this.prop.overlay)})},$e.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Pe=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Pe})},$e.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},$e.prototype.output=function(Pe,Ge,Ye){return(Ye=Ye||"pdf").toLowerCase()==="img"||Ye.toLowerCase()==="image"?this.outputImg(Pe,Ge):this.outputPdf(Pe,Ge)},$e.prototype.outputPdf=function(Pe,Ge){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Pe,Ge)})},$e.prototype.outputImg=function(Pe){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Pe){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Pe+'" is not supported.'}})},$e.prototype.save=function(Pe){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Pe?{filename:Pe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},$e.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},$e.prototype.set=function(Pe){if(re(Pe)!=="object")return this;var Ge=Object.keys(Pe||{}).map(function(Ye){if(Ye in $e.template.prop)return function(){this.prop[Ye]=Pe[Ye]};switch(Ye){case"margin":return this.setMargin.bind(this,Pe.margin);case"jsPDF":return function(){return this.opt.jsPDF=Pe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Pe.pageSize);default:return function(){this.opt[Ye]=Pe[Ye]}}},this);return this.then(function(){return this.thenList(Ge)})},$e.prototype.get=function(Pe,Ge){return this.then(function(){var Ye=Pe in $e.template.prop?this.prop[Pe]:this.opt[Pe];return Ge?Ge(Ye):Ye})},$e.prototype.setMargin=function(Pe){return this.then(function(){switch(re(Pe)){case"number":Pe=[Pe,Pe,Pe,Pe];case"array":if(Pe.length===2&&(Pe=[Pe[0],Pe[1],Pe[0],Pe[1]]),Pe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Pe}).then(this.setPageSize)},$e.prototype.setPageSize=function(Pe){function Ge(Ye,ft){return Math.floor(Ye*ft/72*96)}return this.then(function(){(Pe=Pe||Oa.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Pe.inner={width:Pe.width-this.opt.margin[1]-this.opt.margin[3],height:Pe.height-this.opt.margin[0]-this.opt.margin[2]},Pe.inner.px={width:Ge(Pe.inner.width,Pe.k),height:Ge(Pe.inner.height,Pe.k)},Pe.inner.ratio=Pe.inner.height/Pe.inner.width),this.prop.pageSize=Pe})},$e.prototype.setProgress=function(Pe,Ge,Ye,ft){return Pe!=null&&(this.progress.val=Pe),Ge!=null&&(this.progress.state=Ge),Ye!=null&&(this.progress.n=Ye),ft!=null&&(this.progress.stack=ft),this.progress.ratio=this.progress.val/this.progress.state,this},$e.prototype.updateProgress=function(Pe,Ge,Ye,ft){return this.setProgress(Pe?this.progress.val+Pe:null,Ge||null,Ye?this.progress.n+Ye:null,ft?this.progress.stack.concat(ft):null)},$e.prototype.then=function(Pe,Ge){var Ye=this;return this.thenCore(Pe,Ge,function(ft,Tt){return Ye.updateProgress(null,null,1,[ft]),Promise.prototype.then.call(this,function(Jt){return Ye.updateProgress(null,ft),Jt}).then(ft,Tt).then(function(Jt){return Ye.updateProgress(1),Jt})})},$e.prototype.thenCore=function(Pe,Ge,Ye){Ye=Ye||Promise.prototype.then;var ft=this;Pe&&(Pe=Pe.bind(ft)),Ge&&(Ge=Ge.bind(ft));var Tt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?ft:$e.convert(Object.assign({},ft),Promise.prototype),Jt=Ye.call(Tt,Pe,Ge);return $e.convert(Jt,ft.__proto__)},$e.prototype.thenExternal=function(Pe,Ge){return Promise.prototype.then.call(this,Pe,Ge)},$e.prototype.thenList=function(Pe){var Ge=this;return Pe.forEach(function(Ye){Ge=Ge.thenCore(Ye)}),Ge},$e.prototype.catch=function(Pe){Pe&&(Pe=Pe.bind(this));var Ge=Promise.prototype.catch.call(this,Pe);return $e.convert(Ge,this)},$e.prototype.catchExternal=function(Pe){return Promise.prototype.catch.call(this,Pe)},$e.prototype.error=function(Pe){return this.then(function(){throw new Error(Pe)})},$e.prototype.using=$e.prototype.set,$e.prototype.saveAs=$e.prototype.save,$e.prototype.export=$e.prototype.output,$e.prototype.run=$e.prototype.then,Oa.getPageSize=function(Pe,Ge,Ye){if((0,x.Z)(Pe)==="object"){var ft=Pe;Pe=ft.orientation,Ge=ft.unit||Ge,Ye=ft.format||Ye}Ge=Ge||"mm",Ye=Ye||"a4",Pe=(""+(Pe||"P")).toLowerCase();var Tt,Jt=(""+Ye).toLowerCase(),At={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Ge){case"pt":Tt=1;break;case"mm":Tt=72/25.4;break;case"cm":Tt=72/2.54;break;case"in":Tt=72;break;case"px":Tt=.75;break;case"pc":case"em":Tt=12;break;case"ex":Tt=6;break;default:throw"Invalid unit: "+Ge}var In,bn=0,On=0;if(At.hasOwnProperty(Jt))bn=At[Jt][1]/Tt,On=At[Jt][0]/Tt;else try{bn=Ye[1],On=Ye[0]}catch(cn){throw new Error("Invalid format: "+Ye)}if(Pe==="p"||Pe==="portrait")Pe="p",On>bn&&(In=On,On=bn,bn=In);else{if(Pe!=="l"&&Pe!=="landscape")throw"Invalid orientation: "+Pe;Pe="l",bn>On&&(In=On,On=bn,bn=In)}return{width:On,height:bn,unit:Ge,k:Tt,orientation:Pe}},y.html=function(Pe,Ge){(Ge=Ge||{}).callback=Ge.callback||function(){},Ge.html2canvas=Ge.html2canvas||{},Ge.html2canvas.canvas=Ge.html2canvas.canvas||this.canvas,Ge.jsPDF=Ge.jsPDF||this,Ge.fontFaces=Ge.fontFaces?Ge.fontFaces.map(qA):null;var Ye=new $e(Ge);return Ge.worker?Ye:Ye.from(Pe).doCallback()}}(Oa.API),Oa.API.addJS=function(y){return L0=y,this.internal.events.subscribe("postPutResources",function(){Qf=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Qf+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),I0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+L0+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Qf!==void 0&&I0!==void 0&&this.internal.out("/Names <</JavaScript "+Qf+" 0 R>>")}),this},function(y){var z;y.events.push(["postPutResources",function(){var E=this,re=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ce=E.outline.render().split(/\r\n/),fe=0;fe<ce.length;fe++){var $e=ce[fe],Pe=re.exec($e);if(Pe!=null){var Ge=Pe[1];E.internal.newObjectDeferredBegin(Ge,!1)}E.internal.write($e)}if(this.outline.createNamedDestinations){var Ye=this.internal.pages.length,ft=[];for(fe=0;fe<Ye;fe++){var Tt=E.internal.newObject();ft.push(Tt);var Jt=E.internal.getPageInfo(fe+1);E.internal.write("<< /D["+Jt.objId+" 0 R /XYZ null null null]>> endobj")}var At=E.internal.newObject();for(E.internal.write("<< /Names [ "),fe=0;fe<ft.length;fe++)E.internal.write("(page_"+(fe+1)+")"+ft[fe]+" 0 R");E.internal.write(" ] >>","endobj"),z=E.internal.newObject(),E.internal.write("<< /Dests "+At+" 0 R"),E.internal.write(">>","endobj")}}]),y.events.push(["putCatalog",function(){var E=this;E.outline.root.children.length>0&&(E.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&E.internal.write("/Names "+z+" 0 R"))}]),y.events.push(["initialized",function(){var E=this;E.outline={createNamedDestinations:!1,root:{children:[]}},E.outline.add=function(re,ce,fe){var $e={title:ce,options:fe,children:[]};return re==null&&(re=this.root),re.children.push($e),$e},E.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=E,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},E.outline.genIds_r=function(re){re.id=E.internal.newObjectDeferred();for(var ce=0;ce<re.children.length;ce++)this.genIds_r(re.children[ce])},E.outline.renderRoot=function(re){this.objStart(re),this.line("/Type /Outlines"),re.children.length>0&&(this.line("/First "+this.makeRef(re.children[0])),this.line("/Last "+this.makeRef(re.children[re.children.length-1]))),this.line("/Count "+this.count_r({count:0},re)),this.objEnd()},E.outline.renderItems=function(re){for(var ce=this.ctx.pdf.internal.getVerticalCoordinateString,fe=0;fe<re.children.length;fe++){var $e=re.children[fe];this.objStart($e),this.line("/Title "+this.makeString($e.title)),this.line("/Parent "+this.makeRef(re)),fe>0&&this.line("/Prev "+this.makeRef(re.children[fe-1])),fe<re.children.length-1&&this.line("/Next "+this.makeRef(re.children[fe+1])),$e.children.length>0&&(this.line("/First "+this.makeRef($e.children[0])),this.line("/Last "+this.makeRef($e.children[$e.children.length-1])));var Pe=this.count=this.count_r({count:0},$e);if(Pe>0&&this.line("/Count "+Pe),$e.options&&$e.options.pageNumber){var Ge=E.internal.getPageInfo($e.options.pageNumber);this.line("/Dest ["+Ge.objId+" 0 R /XYZ 0 "+ce(0)+" 0]")}this.objEnd()}for(var Ye=0;Ye<re.children.length;Ye++)this.renderItems(re.children[Ye])},E.outline.line=function(re){this.ctx.val+=re+`\r
|
|
|
`},E.outline.makeRef=function(re){return re.id+" 0 R"},E.outline.makeString=function(re){return"("+E.internal.pdfEscape(re)+")"},E.outline.objStart=function(re){this.ctx.val+=`\r
|
|
|
`+re.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},E.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},E.outline.count_r=function(re,ce){for(var fe=0;fe<ce.children.length;fe++)re.count++,this.count_r(re,ce.children[fe]);return re.count}}])}(Oa.API),function(y){var z=[192,193,194,195,196,197,198,199];y.processJPEG=function(E,re,ce,fe,$e,Pe){var Ge,Ye=this.decode.DCT_DECODE,ft=null;if(typeof E=="string"||this.__addimage__.isArrayBuffer(E)||this.__addimage__.isArrayBufferView(E)){switch(E=$e||E,E=this.__addimage__.isArrayBuffer(E)?new Uint8Array(E):E,Ge=function(Tt){for(var Jt,At=256*Tt.charCodeAt(4)+Tt.charCodeAt(5),In=Tt.length,bn={width:0,height:0,numcomponents:1},On=4;On<In;On+=2){if(On+=At,z.indexOf(Tt.charCodeAt(On+1))!==-1){Jt=256*Tt.charCodeAt(On+5)+Tt.charCodeAt(On+6),bn={width:256*Tt.charCodeAt(On+7)+Tt.charCodeAt(On+8),height:Jt,numcomponents:Tt.charCodeAt(On+9)};break}At=256*Tt.charCodeAt(On+2)+Tt.charCodeAt(On+3)}return bn}(E=this.__addimage__.isArrayBufferView(E)?this.__addimage__.arrayBufferToBinaryString(E):E),Ge.numcomponents){case 1:Pe=this.color_spaces.DEVICE_GRAY;break;case 4:Pe=this.color_spaces.DEVICE_CMYK;break;case 3:Pe=this.color_spaces.DEVICE_RGB}ft={data:E,width:Ge.width,height:Ge.height,colorSpace:Pe,bitsPerComponent:8,filter:Ye,index:re,alias:ce}}return ft}}(Oa.API),Oa.API.processPNG=function(y,z,E,re){if(this.__addimage__.isArrayBuffer(y)&&(y=new Uint8Array(y)),this.__addimage__.isArrayBufferView(y)){var ce,fe=iA(y,{checkCrc:!0}),$e=fe.width,Pe=fe.height,Ge=fe.channels,Ye=fe.palette,ft=fe.depth;ce=Ye&&Ge===1?function(Fr){for(var Xn=Fr.width,Wr=Fr.height,ln=Fr.data,Dn=Fr.palette,mr=Fr.depth,dr=!1,pi=[],Ci=[],Si=void 0,ei=!1,Oi=0,Oo=0;Oo<Dn.length;Oo++){var ao=(0,ri.Z)(Dn[Oo],4),rn=ao[0],Kn=ao[1],rr=ao[2],yr=ao[3];pi.push(rn,Kn,rr),yr!=null&&(yr===0?(Oi++,Ci.length<1&&Ci.push(Oo)):yr<255&&(ei=!0))}if(ei||Oi>1){dr=!0,Ci=void 0;var Pr=Xn*Wr;Si=new Uint8Array(Pr);for(var Xr=new DataView(ln.buffer),Ei=0;Ei<Pr;Ei++){var Ii=Zg(Xr,Ei,mr),Yi=(0,ri.Z)(Dn[Ii],4)[3];Si[Ei]=Yi}}else Oi===0&&(Ci=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:dr?8:void 0,colorBytes:ln,alphaBytes:Si,needSMask:dr,palette:pi,mask:Ci}}(fe):Ge===2||Ge===4?function(Fr){for(var Xn=Fr.data,Wr=Fr.width,ln=Fr.height,Dn=Fr.channels,mr=Fr.depth,dr=Dn===2?"DeviceGray":"DeviceRGB",pi=Dn-1,Ci=Wr*ln,Si=pi,ei=Ci*Si,Oi=1*Ci,Oo=Math.ceil(ei*mr/8),ao=Math.ceil(Oi*mr/8),rn=new Uint8Array(Oo),Kn=new Uint8Array(ao),rr=new DataView(Xn.buffer),yr=new DataView(rn.buffer),Pr=new DataView(Kn.buffer),Xr=!1,Ei=0;Ei<Ci;Ei++){for(var Ii=Ei*Dn,Yi=0;Yi<Si;Yi++)U0(yr,Zg(rr,Ii+Yi,mr),Ei*Si+Yi,mr);var Bo=Zg(rr,Ii+Si,mr);Bo<(1<<mr)-1&&(Xr=!0),U0(Pr,Bo,1*Ei,mr)}return{colorSpace:dr,colorsPerPixel:pi,sMaskBitsPerComponent:Xr?mr:void 0,colorBytes:rn,alphaBytes:Kn,needSMask:Xr}}(fe):function(Fr){var Xn=Fr.data,Wr=Fr.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Wr,colorsPerPixel:Wr==="DeviceGray"?1:3,colorBytes:Xn instanceof Uint16Array?function(ln){for(var Dn=ln.length,mr=new Uint8Array(2*Dn),dr=new DataView(mr.buffer,mr.byteOffset,mr.byteLength),pi=0;pi<Dn;pi++)dr.setUint16(2*pi,ln[pi],!1);return mr}(Xn):Xn,needSMask:!1}}(fe);var Tt,Jt,At,In=ce,bn=In.colorSpace,On=In.colorsPerPixel,cn=In.sMaskBitsPerComponent,gr=In.colorBytes,cr=In.alphaBytes,Zn=In.needSMask,li=In.palette,ji=In.mask,Bi=null;return re!==Oa.API.image_compression.NONE&&typeof di=="function"?(Bi=function(Fr){var Xn;switch(Fr){case Oa.API.image_compression.FAST:Xn=11;break;case Oa.API.image_compression.MEDIUM:Xn=13;break;case Oa.API.image_compression.SLOW:Xn=14;break;default:Xn=12}return Xn}(re),Tt=this.decode.FLATE_DECODE,Jt="/Predictor ".concat(Bi," /Colors ").concat(On," /BitsPerComponent ").concat(ft," /Columns ").concat($e),y=D0(gr,Math.ceil($e*On*ft/8),On,ft,re),Zn&&(At=D0(cr,Math.ceil($e*cn/8),1,cn,re))):(Tt=void 0,Jt=void 0,y=gr,Zn&&(At=cr)),(this.__addimage__.isArrayBuffer(y)||this.__addimage__.isArrayBufferView(y))&&(y=this.__addimage__.arrayBufferToBinaryString(y)),(At&&this.__addimage__.isArrayBuffer(At)||this.__addimage__.isArrayBufferView(At))&&(At=this.__addimage__.arrayBufferToBinaryString(At)),{alias:E,data:y,index:z,filter:Tt,decodeParameters:Jt,transparency:ji,palette:li,sMask:At,predictor:Bi,width:$e,height:Pe,bitsPerComponent:ft,sMaskBitsPerComponent:cn,colorSpace:bn}}},function(y){y.processGIF89A=function(z,E,re,ce){var fe=new kv(z),$e=fe.width,Pe=fe.height,Ge=[];fe.decodeAndBlitFrameRGBA(0,Ge);var Ye={data:Ge,width:$e,height:Pe},ft=new Wg(100).encode(Ye,100);return y.processJPEG.call(this,ft,E,re,ce)},y.processGIF87A=y.processGIF89A}(Oa.API),cf.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var y=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(y);for(var z=0;z<y;z++){var E=this.datav.getUint8(this.pos++,!0),re=this.datav.getUint8(this.pos++,!0),ce=this.datav.getUint8(this.pos++,!0),fe=this.datav.getUint8(this.pos++,!0);this.palette[z]={red:ce,green:re,blue:E,quad:fe}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},cf.prototype.parseBGR=function(){this.pos=this.offset;try{var y="bit"+this.bitPP,z=this.width*this.height*4;this.data=new Uint8Array(z),this[y]()}catch(E){pl.log("bit decode error:"+E)}},cf.prototype.bit1=function(){var y,z=Math.ceil(this.width/8),E=z%4;for(y=this.height-1;y>=0;y--){for(var re=this.bottom_up?y:this.height-1-y,ce=0;ce<z;ce++)for(var fe=this.datav.getUint8(this.pos++,!0),$e=re*this.width*4+8*ce*4,Pe=0;Pe<8&&8*ce+Pe<this.width;Pe++){var Ge=this.palette[fe>>7-Pe&1];this.data[$e+4*Pe]=Ge.blue,this.data[$e+4*Pe+1]=Ge.green,this.data[$e+4*Pe+2]=Ge.red,this.data[$e+4*Pe+3]=255}E!==0&&(this.pos+=4-E)}},cf.prototype.bit4=function(){for(var y=Math.ceil(this.width/2),z=y%4,E=this.height-1;E>=0;E--){for(var re=this.bottom_up?E:this.height-1-E,ce=0;ce<y;ce++){var fe=this.datav.getUint8(this.pos++,!0),$e=re*this.width*4+2*ce*4,Pe=fe>>4,Ge=15&fe,Ye=this.palette[Pe];if(this.data[$e]=Ye.blue,this.data[$e+1]=Ye.green,this.data[$e+2]=Ye.red,this.data[$e+3]=255,2*ce+1>=this.width)break;Ye=this.palette[Ge],this.data[$e+4]=Ye.blue,this.data[$e+4+1]=Ye.green,this.data[$e+4+2]=Ye.red,this.data[$e+4+3]=255}z!==0&&(this.pos+=4-z)}},cf.prototype.bit8=function(){for(var y=this.width%4,z=this.height-1;z>=0;z--){for(var E=this.bottom_up?z:this.height-1-z,re=0;re<this.width;re++){var ce=this.datav.getUint8(this.pos++,!0),fe=E*this.width*4+4*re;if(ce<this.palette.length){var $e=this.palette[ce];this.data[fe]=$e.red,this.data[fe+1]=$e.green,this.data[fe+2]=$e.blue,this.data[fe+3]=255}else this.data[fe]=255,this.data[fe+1]=255,this.data[fe+2]=255,this.data[fe+3]=255}y!==0&&(this.pos+=4-y)}},cf.prototype.bit15=function(){for(var y=this.width%3,z=parseInt("11111",2),E=this.height-1;E>=0;E--){for(var re=this.bottom_up?E:this.height-1-E,ce=0;ce<this.width;ce++){var fe=this.datav.getUint16(this.pos,!0);this.pos+=2;var $e=(fe&z)/z*255|0,Pe=(fe>>5&z)/z*255|0,Ge=(fe>>10&z)/z*255|0,Ye=fe>>15?255:0,ft=re*this.width*4+4*ce;this.data[ft]=Ge,this.data[ft+1]=Pe,this.data[ft+2]=$e,this.data[ft+3]=Ye}this.pos+=y}},cf.prototype.bit16=function(){for(var y=this.width%3,z=parseInt("11111",2),E=parseInt("111111",2),re=this.height-1;re>=0;re--){for(var ce=this.bottom_up?re:this.height-1-re,fe=0;fe<this.width;fe++){var $e=this.datav.getUint16(this.pos,!0);this.pos+=2;var Pe=($e&z)/z*255|0,Ge=($e>>5&E)/E*255|0,Ye=($e>>11)/z*255|0,ft=ce*this.width*4+4*fe;this.data[ft]=Ye,this.data[ft+1]=Ge,this.data[ft+2]=Pe,this.data[ft+3]=255}this.pos+=y}},cf.prototype.bit24=function(){for(var y=this.height-1;y>=0;y--){for(var z=this.bottom_up?y:this.height-1-y,E=0;E<this.width;E++){var re=this.datav.getUint8(this.pos++,!0),ce=this.datav.getUint8(this.pos++,!0),fe=this.datav.getUint8(this.pos++,!0),$e=z*this.width*4+4*E;this.data[$e]=fe,this.data[$e+1]=ce,this.data[$e+2]=re,this.data[$e+3]=255}this.pos+=this.width%4}},cf.prototype.bit32=function(){for(var y=this.height-1;y>=0;y--)for(var z=this.bottom_up?y:this.height-1-y,E=0;E<this.width;E++){var re=this.datav.getUint8(this.pos++,!0),ce=this.datav.getUint8(this.pos++,!0),fe=this.datav.getUint8(this.pos++,!0),$e=this.datav.getUint8(this.pos++,!0),Pe=z*this.width*4+4*E;this.data[Pe]=fe,this.data[Pe+1]=ce,this.data[Pe+2]=re,this.data[Pe+3]=$e}},cf.prototype.getData=function(){return this.data},function(y){y.processBMP=function(z,E,re,ce){var fe=new cf(z,!1),$e=fe.width,Pe=fe.height,Ge={data:fe.getData(),width:$e,height:Pe},Ye=new Wg(100).encode(Ge,100);return y.processJPEG.call(this,Ye,E,re,ce)}}(Oa.API),Q0.prototype.getData=function(){return this.data},function(y){y.processWEBP=function(z,E,re,ce){var fe=new Q0(z),$e=fe.width,Pe=fe.height,Ge={data:fe.getData(),width:$e,height:Pe},Ye=new Wg(100).encode(Ge,100);return y.processJPEG.call(this,Ye,E,re,ce)}}(Oa.API),Oa.API.processRGBA=function(y,z,E){for(var re=y.data,ce=re.length,fe=new Uint8Array(ce/4*3),$e=new Uint8Array(ce/4),Pe=0,Ge=0,Ye=0;Ye<ce;Ye+=4){var ft=re[Ye],Tt=re[Ye+1],Jt=re[Ye+2],At=re[Ye+3];fe[Pe++]=ft,fe[Pe++]=Tt,fe[Pe++]=Jt,$e[Ge++]=At}var In=this.__addimage__.arrayBufferToBinaryString(fe);return{alpha:this.__addimage__.arrayBufferToBinaryString($e),data:In,index:z,alias:E,colorSpace:"DeviceRGB",bitsPerComponent:8,width:y.width,height:y.height}},Oa.API.setLanguage=function(y){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[y]!==void 0&&(this.internal.languageSettings.languageCode=y,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},nm=Oa.API,rg=nm.getCharWidthsArray=function(y,z){var E,re,ce=(z=z||{}).font||this.internal.getFont(),fe=z.fontSize||this.internal.getFontSize(),$e=z.charSpace||this.internal.getCharSpace(),Pe=z.widths?z.widths:ce.metadata.Unicode.widths,Ge=Pe.fof?Pe.fof:1,Ye=z.kerning?z.kerning:ce.metadata.Unicode.kerning,ft=Ye.fof?Ye.fof:1,Tt=z.doKerning!==!1,Jt=0,At=y.length,In=0,bn=Pe[0]||Ge,On=[];for(E=0;E<At;E++)re=y.charCodeAt(E),typeof ce.metadata.widthOfString=="function"?On.push((ce.metadata.widthOfGlyph(ce.metadata.characterToGlyph(re))+$e*(1e3/fe)||0)/1e3):(Jt=Tt&&(0,x.Z)(Ye[re])==="object"&&!isNaN(parseInt(Ye[re][In],10))?Ye[re][In]/ft:0,On.push((Pe[re]||bn)/Ge+Jt)),In=re;return On},_0=nm.getStringUnitWidth=function(y,z){var E=(z=z||{}).fontSize||this.internal.getFontSize(),re=z.font||this.internal.getFont(),ce=z.charSpace||this.internal.getCharSpace();return nm.processArabic&&(y=nm.processArabic(y)),typeof re.metadata.widthOfString=="function"?re.metadata.widthOfString(y,E,ce)/E:rg.apply(this,arguments).reduce(function(fe,$e){return fe+$e},0)},N0=function(y,z,E,re){for(var ce=[],fe=0,$e=y.length,Pe=0;fe!==$e&&Pe+z[fe]<E;)Pe+=z[fe],fe++;ce.push(y.slice(0,fe));var Ge=fe;for(Pe=0;fe!==$e;)Pe+z[fe]>re&&(ce.push(y.slice(Ge,fe)),Pe=0,Ge=fe),Pe+=z[fe],fe++;return Ge!==fe&&ce.push(y.slice(Ge,fe)),ce},O0=function(y,z,E){E||(E={});var re,ce,fe,$e,Pe,Ge,Ye,ft=[],Tt=[ft],Jt=E.textIndent||0,At=0,In=0,bn=y.split(" "),On=rg.apply(this,[" ",E])[0];if(Ge=E.lineIndent===-1?bn[0].length+2:E.lineIndent||0){var cn=Array(Ge).join(" "),gr=[];bn.map(function(Zn){(Zn=Zn.split(/\s*\n/)).length>1?gr=gr.concat(Zn.map(function(li,ji){return(ji&&li.length?`
|
|
|
`:"")+li})):gr.push(Zn[0])}),bn=gr,Ge=_0.apply(this,[cn,E])}for(fe=0,$e=bn.length;fe<$e;fe++){var cr=0;if(re=bn[fe],Ge&&re[0]==`
|
|
|
`&&(re=re.substr(1),cr=1),Jt+At+(In=(ce=rg.apply(this,[re,E])).reduce(function(Zn,li){return Zn+li},0))>z||cr){if(In>z){for(Pe=N0.apply(this,[re,ce,z-(Jt+At),z]),ft.push(Pe.shift()),ft=[Pe.pop()];Pe.length;)Tt.push([Pe.shift()]);In=ce.slice(re.length-(ft[0]?ft[0].length:0)).reduce(function(Zn,li){return Zn+li},0)}else ft=[re];Tt.push(ft),Jt=In+Ge,At=On}else ft.push(re),Jt+=At+In,At=On}return Ye=Ge?function(Zn,li){return(li?cn:"")+Zn.join(" ")}:function(Zn){return Zn.join(" ")},Tt.map(Ye)},nm.splitTextToSize=function(y,z,E){var re,ce=(E=E||{}).fontSize||this.internal.getFontSize(),fe=function(ft){if(ft.widths&&ft.kerning)return{widths:ft.widths,kerning:ft.kerning};var Tt=this.internal.getFont(ft.fontName,ft.fontStyle),Jt="Unicode";return Tt.metadata[Jt]?{widths:Tt.metadata[Jt].widths||{0:1},kerning:Tt.metadata[Jt].kerning||{}}:{font:Tt.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,E);re=Array.isArray(y)?y:String(y).split(/\r?\n/);var $e=1*this.internal.scaleFactor*z/ce;fe.textIndent=E.textIndent?1*E.textIndent*this.internal.scaleFactor/ce:0,fe.lineIndent=E.lineIndent;var Pe,Ge,Ye=[];for(Pe=0,Ge=re.length;Pe<Ge;Pe++)Ye=Ye.concat(O0.apply(this,[re[Pe],$e,fe]));return Ye},function(y){y.__fontmetrics__=y.__fontmetrics__||{};for(var z="0123456789abcdef",E="klmnopqrstuvwxyz",re={},ce={},fe=0;fe<16;fe++)re[E[fe]]=z[fe],ce[z[fe]]=E[fe];var $e=function(Jt){return"0x"+parseInt(Jt,10).toString(16)},Pe=y.__fontmetrics__.compress=function(Jt){var At,In,bn,On,cn=["{"];for(var gr in Jt){if(At=Jt[gr],isNaN(parseInt(gr,10))?In="'"+gr+"'":(gr=parseInt(gr,10),In=(In=$e(gr).slice(2)).slice(0,-1)+ce[In.slice(-1)]),typeof At=="number")At<0?(bn=$e(At).slice(3),On="-"):(bn=$e(At).slice(2),On=""),bn=On+bn.slice(0,-1)+ce[bn.slice(-1)];else{if((0,x.Z)(At)!=="object")throw new Error("Don't know what to do with value type "+(0,x.Z)(At)+".");bn=Pe(At)}cn.push(In+bn)}return cn.push("}"),cn.join("")},Ge=y.__fontmetrics__.uncompress=function(Jt){if(typeof Jt!="string")throw new Error("Invalid argument passed to uncompress.");for(var At,In,bn,On,cn={},gr=1,cr=cn,Zn=[],li="",ji="",Bi=Jt.length-1,Fr=1;Fr<Bi;Fr+=1)(On=Jt[Fr])=="'"?At?(bn=At.join(""),At=void 0):At=[]:At?At.push(On):On=="{"?(Zn.push([cr,bn]),cr={},bn=void 0):On=="}"?((In=Zn.pop())[0][In[1]]=cr,bn=void 0,cr=In[0]):On=="-"?gr=-1:bn===void 0?re.hasOwnProperty(On)?(li+=re[On],bn=parseInt(li,16)*gr,gr=1,li=""):li+=On:re.hasOwnProperty(On)?(ji+=re[On],cr[bn]=parseInt(ji,16)*gr,gr=1,bn=void 0,ji=""):ji+=On;return cn},Ye={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Ge("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},ft={Unicode:{Courier:Ye,"Courier-Bold":Ye,"Courier-BoldOblique":Ye,"Courier-Oblique":Ye,Helvetica:Ye,"Helvetica-Bold":Ye,"Helvetica-BoldOblique":Ye,"Helvetica-Oblique":Ye,"Times-Roman":Ye,"Times-Bold":Ye,"Times-BoldItalic":Ye,"Times-Italic":Ye}},Tt={Unicode:{"Courier-Oblique":Ge("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Ge("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Ge("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Ge("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Ge("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Ge("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Ge("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Ge("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Ge("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Ge("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Ge("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Ge("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Ge("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Ge("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};y.events.push(["addFont",function(Jt){var At=Jt.font,In=Tt.Unicode[At.postScriptName];In&&(At.metadata.Unicode={},At.metadata.Unicode.widths=In.widths,At.metadata.Unicode.kerning=In.kerning);var bn=ft.Unicode[At.postScriptName];bn&&(At.metadata.Unicode.encoding=bn,At.encoding=bn.codePages[0])}])}(Oa.API),function(y){var z=function(E){for(var re=E.length,ce=new Uint8Array(re),fe=0;fe<re;fe++)ce[fe]=E.charCodeAt(fe);return ce};y.API.events.push(["addFont",function(E){var re=void 0,ce=E.font,fe=E.instance;if(!ce.isStandardFont){if(fe===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ce.postScriptName+"').");if(typeof(re=fe.existsFileInVFS(ce.postScriptName)===!1?fe.loadFile(ce.postScriptName):fe.getFileFromVFS(ce.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ce.postScriptName+"').");(function($e,Pe){Pe=/^\x00\x01\x00\x00/.test(Pe)?z(Pe):z(bp(Pe)),$e.metadata=y.API.TTFFont.open(Pe),$e.metadata.Unicode=$e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},$e.metadata.glyIdsUsed=[0]})(ce,re)}}])}(Oa),Oa.API.addSvgAsImage=function(y,z,E,re,ce,fe,$e,Pe){if(isNaN(z)||isNaN(E))throw pl.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(re)||isNaN(ce))throw pl.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Ge=document.createElement("canvas");Ge.width=re,Ge.height=ce;var Ye=Ge.getContext("2d");Ye.fillStyle="#fff",Ye.fillRect(0,0,Ge.width,Ge.height);var ft={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Tt=this;return(Ua.canvg?Promise.resolve(Ua.canvg):ae.e(3754).then(ae.bind(ae,63754))).catch(function(Jt){return Promise.reject(new Error("Could not load canvg: "+Jt))}).then(function(Jt){return Jt.default?Jt.default:Jt}).then(function(Jt){return Jt.fromString(Ye,y,ft)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Jt){return Jt.render(ft)}).then(function(){Tt.addImage(Ge.toDataURL("image/jpeg",1),z,E,re,ce,$e,Pe)})},Oa.API.putTotalPages=function(y){var z,E=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(z=new RegExp(y,"g"),E=this.internal.getNumberOfPages()):(z=new RegExp(this.pdfEscape16(y,this.internal.getFont()),"g"),E=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var re=1;re<=this.internal.getNumberOfPages();re++)for(var ce=0;ce<this.internal.pages[re].length;ce++)this.internal.pages[re][ce]=this.internal.pages[re][ce].replace(z,E);return this},Oa.API.viewerPreferences=function(y,z){var E;y=y||{},z=z||!1;var re,ce,fe,$e={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Pe=Object.keys($e),Ge=[],Ye=0,ft=0,Tt=0;function Jt(In,bn){var On,cn=!1;for(On=0;On<In.length;On+=1)In[On]===bn&&(cn=!0);return cn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify($e)),this.internal.viewerpreferences.isSubscribed=!1),E=this.internal.viewerpreferences.configuration,y==="reset"||z===!0){var At=Pe.length;for(Tt=0;Tt<At;Tt+=1)E[Pe[Tt]].value=E[Pe[Tt]].defaultValue,E[Pe[Tt]].explicitSet=!1}if((0,x.Z)(y)==="object"){for(ce in y)if(fe=y[ce],Jt(Pe,ce)&&fe!==void 0){if(E[ce].type==="boolean"&&typeof fe=="boolean")E[ce].value=fe;else if(E[ce].type==="name"&&Jt(E[ce].valueSet,fe))E[ce].value=fe;else if(E[ce].type==="integer"&&Number.isInteger(fe))E[ce].value=fe;else if(E[ce].type==="array"){for(Ye=0;Ye<fe.length;Ye+=1)if(re=!0,fe[Ye].length===1&&typeof fe[Ye][0]=="number")Ge.push(String(fe[Ye]-1));else if(fe[Ye].length>1){for(ft=0;ft<fe[Ye].length;ft+=1)typeof fe[Ye][ft]!="number"&&(re=!1);re===!0&&Ge.push([fe[Ye][0]-1,fe[Ye][1]-1].join(" "))}E[ce].value="["+Ge.join(" ")+"]"}else E[ce].value=E[ce].defaultValue;E[ce].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var In,bn=[];for(In in E)E[In].explicitSet===!0&&(E[In].type==="name"?bn.push("/"+In+" /"+E[In].value):bn.push("/"+In+" "+E[In].value));bn.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+bn.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=E,this},function(y){var z=function(){var re='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',ce=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),fe=unescape(encodeURIComponent(re)),$e=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Pe=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Ge=unescape(encodeURIComponent("</x:xmpmeta>")),Ye=fe.length+$e.length+Pe.length+ce.length+Ge.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Ye+" >>"),this.internal.write("stream"),this.internal.write(ce+fe+$e+Pe+Ge),this.internal.write("endstream"),this.internal.write("endobj")},E=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};y.addMetadata=function(re,ce){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:re,namespaceuri:ce||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",E),this.internal.events.subscribe("postPutResources",z)),this}}(Oa.API),function(y){var z=y.API,E=z.pdfEscape16=function(fe,$e){for(var Pe,Ge=$e.metadata.Unicode.widths,Ye=["","0","00","000","0000"],ft=[""],Tt=0,Jt=fe.length;Tt<Jt;++Tt){if(Pe=$e.metadata.characterToGlyph(fe.charCodeAt(Tt)),$e.metadata.glyIdsUsed.push(Pe),$e.metadata.toUnicode[Pe]=fe.charCodeAt(Tt),Ge.indexOf(Pe)==-1&&(Ge.push(Pe),Ge.push([parseInt($e.metadata.widthOfGlyph(Pe),10)])),Pe=="0")return ft.join("");Pe=Pe.toString(16),ft.push(Ye[4-Pe.length],Pe)}return ft.join("")},re=function(fe){var $e,Pe,Ge,Ye,ft,Tt,Jt;for(ft=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,Ge=[],Tt=0,Jt=(Pe=Object.keys(fe).sort(function(At,In){return At-In})).length;Tt<Jt;Tt++)$e=Pe[Tt],Ge.length>=100&&(ft+=`
|
|
|
`+Ge.length+` beginbfchar
|
|
|
`+Ge.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Ge=[]),fe[$e]!==void 0&&fe[$e]!==null&&typeof fe[$e].toString=="function"&&(Ye=("0000"+fe[$e].toString(16)).slice(-4),$e=("0000"+(+$e).toString(16)).slice(-4),Ge.push("<"+$e+"><"+Ye+">"));return Ge.length&&(ft+=`
|
|
|
`+Ge.length+` beginbfchar
|
|
|
`+Ge.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),ft+`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};z.events.push(["putFont",function(fe){(function($e){var Pe=$e.font,Ge=$e.out,Ye=$e.newObject,ft=$e.putStream;if(Pe.metadata instanceof y.API.TTFFont&&Pe.encoding==="Identity-H"){for(var Tt=Pe.metadata.Unicode.widths,Jt=Pe.metadata.subset.encode(Pe.metadata.glyIdsUsed,1),At="",In=0;In<Jt.length;In++)At+=String.fromCharCode(Jt[In]);var bn=Ye();ft({data:At,addLength1:!0,objectId:bn}),Ge("endobj");var On=Ye();ft({data:re(Pe.metadata.toUnicode),addLength1:!0,objectId:On}),Ge("endobj");var cn=Ye();Ge("<<"),Ge("/Type /FontDescriptor"),Ge("/FontName /"+md(Pe.fontName)),Ge("/FontFile2 "+bn+" 0 R"),Ge("/FontBBox "+y.API.PDFObject.convert(Pe.metadata.bbox)),Ge("/Flags "+Pe.metadata.flags),Ge("/StemV "+Pe.metadata.stemV),Ge("/ItalicAngle "+Pe.metadata.italicAngle),Ge("/Ascent "+Pe.metadata.ascender),Ge("/Descent "+Pe.metadata.decender),Ge("/CapHeight "+Pe.metadata.capHeight),Ge(">>"),Ge("endobj");var gr=Ye();Ge("<<"),Ge("/Type /Font"),Ge("/BaseFont /"+md(Pe.fontName)),Ge("/FontDescriptor "+cn+" 0 R"),Ge("/W "+y.API.PDFObject.convert(Tt)),Ge("/CIDToGIDMap /Identity"),Ge("/DW 1000"),Ge("/Subtype /CIDFontType2"),Ge("/CIDSystemInfo"),Ge("<<"),Ge("/Supplement 0"),Ge("/Registry (Adobe)"),Ge("/Ordering ("+Pe.encoding+")"),Ge(">>"),Ge(">>"),Ge("endobj"),Pe.objectNumber=Ye(),Ge("<<"),Ge("/Type /Font"),Ge("/Subtype /Type0"),Ge("/ToUnicode "+On+" 0 R"),Ge("/BaseFont /"+md(Pe.fontName)),Ge("/Encoding /"+Pe.encoding),Ge("/DescendantFonts ["+gr+" 0 R]"),Ge(">>"),Ge("endobj"),Pe.isAlreadyPutted=!0}})(fe)}]),z.events.push(["putFont",function(fe){(function($e){var Pe=$e.font,Ge=$e.out,Ye=$e.newObject,ft=$e.putStream;if(Pe.metadata instanceof y.API.TTFFont&&Pe.encoding==="WinAnsiEncoding"){for(var Tt=Pe.metadata.rawData,Jt="",At=0;At<Tt.length;At++)Jt+=String.fromCharCode(Tt[At]);var In=Ye();ft({data:Jt,addLength1:!0,objectId:In}),Ge("endobj");var bn=Ye();ft({data:re(Pe.metadata.toUnicode),addLength1:!0,objectId:bn}),Ge("endobj");var On=Ye();Ge("<<"),Ge("/Descent "+Pe.metadata.decender),Ge("/CapHeight "+Pe.metadata.capHeight),Ge("/StemV "+Pe.metadata.stemV),Ge("/Type /FontDescriptor"),Ge("/FontFile2 "+In+" 0 R"),Ge("/Flags 96"),Ge("/FontBBox "+y.API.PDFObject.convert(Pe.metadata.bbox)),Ge("/FontName /"+md(Pe.fontName)),Ge("/ItalicAngle "+Pe.metadata.italicAngle),Ge("/Ascent "+Pe.metadata.ascender),Ge(">>"),Ge("endobj"),Pe.objectNumber=Ye();for(var cn=0;cn<Pe.metadata.hmtx.widths.length;cn++)Pe.metadata.hmtx.widths[cn]=parseInt(Pe.metadata.hmtx.widths[cn]*(1e3/Pe.metadata.head.unitsPerEm));Ge("<</Subtype/TrueType/Type/Font/ToUnicode "+bn+" 0 R/BaseFont/"+md(Pe.fontName)+"/FontDescriptor "+On+" 0 R/Encoding/"+Pe.encoding+" /FirstChar 29 /LastChar 255 /Widths "+y.API.PDFObject.convert(Pe.metadata.hmtx.widths)+">>"),Ge("endobj"),Pe.isAlreadyPutted=!0}})(fe)}]);var ce=function(fe){var $e,Pe=fe.text||"",Ge=fe.x,Ye=fe.y,ft=fe.options||{},Tt=fe.mutex||{},Jt=Tt.pdfEscape,At=Tt.activeFontKey,In=Tt.fonts,bn=At,On="",cn=0,gr="",cr=In[bn].encoding;if(In[bn].encoding!=="Identity-H")return{text:Pe,x:Ge,y:Ye,options:ft,mutex:Tt};for(gr=Pe,bn=At,Array.isArray(Pe)&&(gr=Pe[0]),cn=0;cn<gr.length;cn+=1)In[bn].metadata.hasOwnProperty("cmap")&&($e=In[bn].metadata.cmap.unicode.codeMap[gr[cn].charCodeAt(0)]),$e||gr[cn].charCodeAt(0)<256&&In[bn].metadata.hasOwnProperty("Unicode")?On+=gr[cn]:On+="";var Zn="";return parseInt(bn.slice(1))<14||cr==="WinAnsiEncoding"?Zn=Jt(On,bn).split("").map(function(li){return li.charCodeAt(0).toString(16)}).join(""):cr==="Identity-H"&&(Zn=E(On,In[bn])),Tt.isHex=!0,{text:Zn,x:Ge,y:Ye,options:ft,mutex:Tt}};z.events.push(["postProcessText",function(fe){var $e=fe.text||"",Pe=[],Ge={text:$e,x:fe.x,y:fe.y,options:fe.options,mutex:fe.mutex};if(Array.isArray($e)){var Ye=0;for(Ye=0;Ye<$e.length;Ye+=1)Array.isArray($e[Ye])&&$e[Ye].length===3?Pe.push([ce(Object.assign({},Ge,{text:$e[Ye][0]})).text,$e[Ye][1],$e[Ye][2]]):Pe.push(ce(Object.assign({},Ge,{text:$e[Ye]})).text);fe.text=Pe}else fe.text=ce(Object.assign({},Ge,{text:$e})).text}])}(Oa),function(y){var z=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};y.existsFileInVFS=function(E){return z.call(this),this.internal.vFS[E]!==void 0},y.addFileToVFS=function(E,re){return z.call(this),this.internal.vFS[E]=re,this},y.getFileFromVFS=function(E){return z.call(this),this.internal.vFS[E]!==void 0?this.internal.vFS[E]:null}}(Oa.API),function(y){y.__bidiEngine__=y.prototype.__bidiEngine__=function(re){var ce,fe,$e,Pe,Ge,Ye,ft,Tt=z,Jt=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],At=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],In={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},bn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},On=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],cn=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),gr=!1,cr=0;this.__bidiEngine__={};var Zn=function(ln){var Dn=ln.charCodeAt(),mr=Dn>>8,dr=bn[mr];return dr!==void 0?Tt[256*dr+(255&Dn)]:mr===252||mr===253?"AL":cn.test(mr)?"L":mr===8?"R":"N"},li=function(ln){for(var Dn,mr=0;mr<ln.length;mr++){if((Dn=Zn(ln.charAt(mr)))==="L")return!1;if(Dn==="R")return!0}return!1},ji=function(ln,Dn,mr,dr){var pi,Ci,Si,ei,Oi=Dn[dr];switch(Oi){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":gr=!1;break;case"N":case"AN":break;case"EN":gr&&(Oi="AN");break;case"AL":gr=!0,Oi="R";break;case"WS":case"BN":Oi="N";break;case"CS":dr<1||dr+1>=Dn.length||(pi=mr[dr-1])!=="EN"&&pi!=="AN"||(Ci=Dn[dr+1])!=="EN"&&Ci!=="AN"?Oi="N":gr&&(Ci="AN"),Oi=Ci===pi?Ci:"N";break;case"ES":Oi=(pi=dr>0?mr[dr-1]:"B")==="EN"&&dr+1<Dn.length&&Dn[dr+1]==="EN"?"EN":"N";break;case"ET":if(dr>0&&mr[dr-1]==="EN"){Oi="EN";break}if(gr){Oi="N";break}for(Si=dr+1,ei=Dn.length;Si<ei&&Dn[Si]==="ET";)Si++;Oi=Si<ei&&Dn[Si]==="EN"?"EN":"N";break;case"NSM":if($e&&!Pe){for(ei=Dn.length,Si=dr+1;Si<ei&&Dn[Si]==="NSM";)Si++;if(Si<ei){var Oo=ln[dr],ao=Oo>=1425&&Oo<=2303||Oo===64286;if(pi=Dn[Si],ao&&(pi==="R"||pi==="AL")){Oi="R";break}}}Oi=dr<1||(pi=Dn[dr-1])==="B"?"N":mr[dr-1];break;case"B":gr=!1,ce=!0,Oi=cr;break;case"S":fe=!0,Oi="N"}return Oi},Bi=function(ln,Dn,mr){var dr=ln.split("");return mr&&Fr(dr,mr,{hiLevel:cr}),dr.reverse(),Dn&&Dn.reverse(),dr.join("")},Fr=function(ln,Dn,mr){var dr,pi,Ci,Si,ei,Oi=-1,Oo=ln.length,ao=0,rn=[],Kn=cr?At:Jt,rr=[];for(gr=!1,ce=!1,fe=!1,pi=0;pi<Oo;pi++)rr[pi]=Zn(ln[pi]);for(Ci=0;Ci<Oo;Ci++){if(ei=ao,rn[Ci]=ji(ln,rr,rn,Ci),dr=240&(ao=Kn[ei][In[rn[Ci]]]),ao&=15,Dn[Ci]=Si=Kn[ao][5],dr>0)if(dr===16){for(pi=Oi;pi<Ci;pi++)Dn[pi]=1;Oi=-1}else Oi=-1;if(Kn[ao][6])Oi===-1&&(Oi=Ci);else if(Oi>-1){for(pi=Oi;pi<Ci;pi++)Dn[pi]=Si;Oi=-1}rr[Ci]==="B"&&(Dn[Ci]=0),mr.hiLevel|=Si}fe&&function(yr,Pr,Xr){for(var Ei=0;Ei<Xr;Ei++)if(yr[Ei]==="S"){Pr[Ei]=cr;for(var Ii=Ei-1;Ii>=0&&yr[Ii]==="WS";Ii--)Pr[Ii]=cr}}(rr,Dn,Oo)},Xn=function(ln,Dn,mr,dr,pi){if(!(pi.hiLevel<ln)){if(ln===1&&cr===1&&!ce)return Dn.reverse(),void(mr&&mr.reverse());for(var Ci,Si,ei,Oi,Oo=Dn.length,ao=0;ao<Oo;){if(dr[ao]>=ln){for(ei=ao+1;ei<Oo&&dr[ei]>=ln;)ei++;for(Oi=ao,Si=ei-1;Oi<Si;Oi++,Si--)Ci=Dn[Oi],Dn[Oi]=Dn[Si],Dn[Si]=Ci,mr&&(Ci=mr[Oi],mr[Oi]=mr[Si],mr[Si]=Ci);ao=ei}ao++}}},Wr=function(ln,Dn,mr){var dr=ln.split(""),pi={hiLevel:cr};return mr||(mr=[]),Fr(dr,mr,pi),function(Ci,Si,ei){if(ei.hiLevel!==0&&ft)for(var Oi,Oo=0;Oo<Ci.length;Oo++)Si[Oo]===1&&(Oi=On.indexOf(Ci[Oo]))>=0&&(Ci[Oo]=On[Oi+1])}(dr,mr,pi),Xn(2,dr,Dn,mr,pi),Xn(1,dr,Dn,mr,pi),dr.join("")};return this.__bidiEngine__.doBidiReorder=function(ln,Dn,mr){if(function(pi,Ci){if(Ci)for(var Si=0;Si<pi.length;Si++)Ci[Si]=Si;Pe===void 0&&(Pe=li(pi)),Ye===void 0&&(Ye=li(pi))}(ln,Dn),$e||!Ge||Ye)if($e&&Ge&&Pe^Ye)cr=Pe?1:0,ln=Bi(ln,Dn,mr);else if(!$e&&Ge&&Ye)cr=Pe?1:0,ln=Wr(ln,Dn,mr),ln=Bi(ln,Dn);else if(!$e||Pe||Ge||Ye){if($e&&!Ge&&Pe^Ye)ln=Bi(ln,Dn),Pe?(cr=0,ln=Wr(ln,Dn,mr)):(cr=1,ln=Wr(ln,Dn,mr),ln=Bi(ln,Dn));else if($e&&Pe&&!Ge&&Ye)cr=1,ln=Wr(ln,Dn,mr),ln=Bi(ln,Dn);else if(!$e&&!Ge&&Pe^Ye){var dr=ft;Pe?(cr=1,ln=Wr(ln,Dn,mr),cr=0,ft=!1,ln=Wr(ln,Dn,mr),ft=dr):(cr=0,ln=Wr(ln,Dn,mr),ln=Bi(ln,Dn),cr=1,ft=!1,ln=Wr(ln,Dn,mr),ft=dr,ln=Bi(ln,Dn))}}else cr=0,ln=Wr(ln,Dn,mr);else cr=Pe?1:0,ln=Wr(ln,Dn,mr);return ln},this.__bidiEngine__.setOptions=function(ln){ln&&($e=ln.isInputVisual,Ge=ln.isOutputVisual,Pe=ln.isInputRtl,Ye=ln.isOutputRtl,ft=ln.isSymmetricSwapping)},this.__bidiEngine__.setOptions(re),this.__bidiEngine__};var z=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],E=new y.__bidiEngine__({isInputVisual:!0});y.API.events.push(["postProcessText",function(re){var ce=re.text;re.x,re.y;var fe=re.options||{};re.mutex,fe.lang;var $e=[];if(fe.isInputVisual=typeof fe.isInputVisual!="boolean"||fe.isInputVisual,E.setOptions(fe),Object.prototype.toString.call(ce)==="[object Array]"){var Pe=0;for($e=[],Pe=0;Pe<ce.length;Pe+=1)Object.prototype.toString.call(ce[Pe])==="[object Array]"?$e.push([E.doBidiReorder(ce[Pe][0]),ce[Pe][1],ce[Pe][2]]):$e.push([E.doBidiReorder(ce[Pe])]);re.text=$e}else re.text=E.doBidiReorder(ce);E.setOptions({isInputVisual:!0})}])}(Oa),Oa.API.TTFFont=function(){function y(z){var E;if(this.rawData=z,E=this.contents=new Zh(z),this.contents.pos=4,E.readString(4)==="ttcf")throw new Error("TTCF not supported.");E.pos=0,this.parse(),this.subset=new Yv(this),this.registerTTF()}return y.open=function(z){return new y(z)},y.prototype.parse=function(){return this.directory=new Mv(this.contents),this.head=new Rv(this),this.name=new Kv(this),this.cmap=new z0(this),this.toUnicode={},this.hhea=new jv(this),this.maxp=new $v(this),this.hmtx=new Zv(this),this.post=new Hv(this),this.os2=new Qv(this),this.loca=new Xv(this),this.glyf=new Wv(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},y.prototype.registerTTF=function(){var z,E,re,ce,fe;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var $e,Pe,Ge,Ye;for(Ye=[],$e=0,Pe=(Ge=this.bbox).length;$e<Pe;$e++)z=Ge[$e],Ye.push(Math.round(z*this.scaleFactor));return Ye}.call(this),this.stemV=0,this.post.exists?(re=255&(ce=this.post.italic_angle),32768&(E=ce>>16)&&(E=-(1+(65535^E))),this.italicAngle=+(E+"."+re)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(fe=this.familyClass)===1||fe===2||fe===3||fe===4||fe===5||fe===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},y.prototype.characterToGlyph=function(z){var E;return((E=this.cmap.unicode)!=null?E.codeMap[z]:void 0)||0},y.prototype.widthOfGlyph=function(z){var E;return E=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(z).advance*E},y.prototype.widthOfString=function(z,E,re){var ce,fe,$e,Pe;for($e=0,fe=0,Pe=(z=""+z).length;0<=Pe?fe<Pe:fe>Pe;fe=0<=Pe?++fe:--fe)ce=z.charCodeAt(fe),$e+=this.widthOfGlyph(this.characterToGlyph(ce))+re*(1e3/E)||0;return $e*(E/1e3)},y.prototype.lineHeight=function(z,E){var re;return E==null&&(E=!1),re=E?this.lineGap:0,(this.ascender+re-this.decender)/1e3*z},y}();var Af,Zh=function(){function y(z){this.data=z!=null?z:[],this.pos=0,this.length=this.data.length}return y.prototype.readByte=function(){return this.data[this.pos++]},y.prototype.writeByte=function(z){return this.data[this.pos++]=z},y.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},y.prototype.writeUInt32=function(z){return this.writeByte(z>>>24&255),this.writeByte(z>>16&255),this.writeByte(z>>8&255),this.writeByte(255&z)},y.prototype.readInt32=function(){var z;return(z=this.readUInt32())>=2147483648?z-4294967296:z},y.prototype.writeInt32=function(z){return z<0&&(z+=4294967296),this.writeUInt32(z)},y.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},y.prototype.writeUInt16=function(z){return this.writeByte(z>>8&255),this.writeByte(255&z)},y.prototype.readInt16=function(){var z;return(z=this.readUInt16())>=32768?z-65536:z},y.prototype.writeInt16=function(z){return z<0&&(z+=65536),this.writeUInt16(z)},y.prototype.readString=function(z){var E,re;for(re=[],E=0;0<=z?E<z:E>z;E=0<=z?++E:--E)re[E]=String.fromCharCode(this.readByte());return re.join("")},y.prototype.writeString=function(z){var E,re,ce;for(ce=[],E=0,re=z.length;0<=re?E<re:E>re;E=0<=re?++E:--E)ce.push(this.writeByte(z.charCodeAt(E)));return ce},y.prototype.readShort=function(){return this.readInt16()},y.prototype.writeShort=function(z){return this.writeInt16(z)},y.prototype.readLongLong=function(){var z,E,re,ce,fe,$e,Pe,Ge;return z=this.readByte(),E=this.readByte(),re=this.readByte(),ce=this.readByte(),fe=this.readByte(),$e=this.readByte(),Pe=this.readByte(),Ge=this.readByte(),128&z?-1*(72057594037927940*(255^z)+281474976710656*(255^E)+1099511627776*(255^re)+4294967296*(255^ce)+16777216*(255^fe)+65536*(255^$e)+256*(255^Pe)+(255^Ge)+1):72057594037927940*z+281474976710656*E+1099511627776*re+4294967296*ce+16777216*fe+65536*$e+256*Pe+Ge},y.prototype.writeLongLong=function(z){var E,re;return E=Math.floor(z/4294967296),re=4294967295&z,this.writeByte(E>>24&255),this.writeByte(E>>16&255),this.writeByte(E>>8&255),this.writeByte(255&E),this.writeByte(re>>24&255),this.writeByte(re>>16&255),this.writeByte(re>>8&255),this.writeByte(255&re)},y.prototype.readInt=function(){return this.readInt32()},y.prototype.writeInt=function(z){return this.writeInt32(z)},y.prototype.read=function(z){var E,re;for(E=[],re=0;0<=z?re<z:re>z;re=0<=z?++re:--re)E.push(this.readByte());return E},y.prototype.write=function(z){var E,re,ce,fe;for(fe=[],re=0,ce=z.length;re<ce;re++)E=z[re],fe.push(this.writeByte(E));return fe},y}(),Mv=function(){var y;function z(E){var re,ce,fe;for(this.scalarType=E.readInt(),this.tableCount=E.readShort(),this.searchRange=E.readShort(),this.entrySelector=E.readShort(),this.rangeShift=E.readShort(),this.tables={},ce=0,fe=this.tableCount;0<=fe?ce<fe:ce>fe;ce=0<=fe?++ce:--ce)re={tag:E.readString(4),checksum:E.readInt(),offset:E.readInt(),length:E.readInt()},this.tables[re.tag]=re}return z.prototype.encode=function(E){var re,ce,fe,$e,Pe,Ge,Ye,ft,Tt,Jt,At,In,bn;for(bn in At=Object.keys(E).length,Ge=Math.log(2),Tt=16*Math.floor(Math.log(At)/Ge),$e=Math.floor(Tt/Ge),ft=16*At-Tt,(ce=new Zh).writeInt(this.scalarType),ce.writeShort(At),ce.writeShort(Tt),ce.writeShort($e),ce.writeShort(ft),fe=16*At,Ye=ce.pos+fe,Pe=null,In=[],E)for(Jt=E[bn],ce.writeString(bn),ce.writeInt(y(Jt)),ce.writeInt(Ye),ce.writeInt(Jt.length),In=In.concat(Jt),bn==="head"&&(Pe=Ye),Ye+=Jt.length;Ye%4;)In.push(0),Ye++;return ce.write(In),re=2981146554-y(ce.data),ce.pos=Pe+8,ce.writeUInt32(re),ce.data},y=function(E){var re,ce,fe,$e;for(E=K0.call(E);E.length%4;)E.push(0);for(fe=new Zh(E),ce=0,re=0,$e=E.length;re<$e;re=re+=4)ce+=fe.readUInt32();return 4294967295&ce},z}(),Uv={}.hasOwnProperty,Hf=function(y,z){for(var E in z)Uv.call(z,E)&&(y[E]=z[E]);function re(){this.constructor=y}return re.prototype=z.prototype,y.prototype=new re,y.__super__=z.prototype,y};Af=function(){function y(z){var E;this.file=z,E=this.file.directory.tables[this.tag],this.exists=!!E,E&&(this.offset=E.offset,this.length=E.length,this.parse(this.file.contents))}return y.prototype.parse=function(){},y.prototype.encode=function(){},y.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},y}();var Rv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="head",y.prototype.parse=function(z){return z.pos=this.offset,this.version=z.readInt(),this.revision=z.readInt(),this.checkSumAdjustment=z.readInt(),this.magicNumber=z.readInt(),this.flags=z.readShort(),this.unitsPerEm=z.readShort(),this.created=z.readLongLong(),this.modified=z.readLongLong(),this.xMin=z.readShort(),this.yMin=z.readShort(),this.xMax=z.readShort(),this.yMax=z.readShort(),this.macStyle=z.readShort(),this.lowestRecPPEM=z.readShort(),this.fontDirectionHint=z.readShort(),this.indexToLocFormat=z.readShort(),this.glyphDataFormat=z.readShort()},y.prototype.encode=function(z){var E;return(E=new Zh).writeInt(this.version),E.writeInt(this.revision),E.writeInt(this.checkSumAdjustment),E.writeInt(this.magicNumber),E.writeShort(this.flags),E.writeShort(this.unitsPerEm),E.writeLongLong(this.created),E.writeLongLong(this.modified),E.writeShort(this.xMin),E.writeShort(this.yMin),E.writeShort(this.xMax),E.writeShort(this.yMax),E.writeShort(this.macStyle),E.writeShort(this.lowestRecPPEM),E.writeShort(this.fontDirectionHint),E.writeShort(z),E.writeShort(this.glyphDataFormat),E.data},y}(),H0=function(){function y(z,E){var re,ce,fe,$e,Pe,Ge,Ye,ft,Tt,Jt,At,In,bn,On,cn,gr,cr;switch(this.platformID=z.readUInt16(),this.encodingID=z.readShort(),this.offset=E+z.readInt(),Tt=z.pos,z.pos=this.offset,this.format=z.readUInt16(),this.length=z.readUInt16(),this.language=z.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(Ge=0;Ge<256;++Ge)this.codeMap[Ge]=z.readByte();break;case 4:for(At=z.readUInt16(),Jt=At/2,z.pos+=6,fe=function(){var Zn,li;for(li=[],Ge=Zn=0;0<=Jt?Zn<Jt:Zn>Jt;Ge=0<=Jt?++Zn:--Zn)li.push(z.readUInt16());return li}(),z.pos+=2,bn=function(){var Zn,li;for(li=[],Ge=Zn=0;0<=Jt?Zn<Jt:Zn>Jt;Ge=0<=Jt?++Zn:--Zn)li.push(z.readUInt16());return li}(),Ye=function(){var Zn,li;for(li=[],Ge=Zn=0;0<=Jt?Zn<Jt:Zn>Jt;Ge=0<=Jt?++Zn:--Zn)li.push(z.readUInt16());return li}(),ft=function(){var Zn,li;for(li=[],Ge=Zn=0;0<=Jt?Zn<Jt:Zn>Jt;Ge=0<=Jt?++Zn:--Zn)li.push(z.readUInt16());return li}(),ce=(this.length-z.pos+this.offset)/2,Pe=function(){var Zn,li;for(li=[],Ge=Zn=0;0<=ce?Zn<ce:Zn>ce;Ge=0<=ce?++Zn:--Zn)li.push(z.readUInt16());return li}(),Ge=cn=0,cr=fe.length;cn<cr;Ge=++cn)for(On=fe[Ge],re=gr=In=bn[Ge];In<=On?gr<=On:gr>=On;re=In<=On?++gr:--gr)ft[Ge]===0?$e=re+Ye[Ge]:($e=Pe[ft[Ge]/2+(re-In)-(Jt-Ge)]||0)!==0&&($e+=Ye[Ge]),this.codeMap[re]=65535&$e}z.pos=Tt}return y.encode=function(z,E){var re,ce,fe,$e,Pe,Ge,Ye,ft,Tt,Jt,At,In,bn,On,cn,gr,cr,Zn,li,ji,Bi,Fr,Xn,Wr,ln,Dn,mr,dr,pi,Ci,Si,ei,Oi,Oo,ao,rn,Kn,rr,yr,Pr,Xr,Ei,Ii,Yi,Bo,da;switch(dr=new Zh,$e=Object.keys(z).sort(function(ca,Xa){return ca-Xa}),E){case"macroman":for(bn=0,On=function(){var ca=[];for(In=0;In<256;++In)ca.push(0);return ca}(),gr={0:0},fe={},pi=0,Oi=$e.length;pi<Oi;pi++)gr[Ii=z[ce=$e[pi]]]==null&&(gr[Ii]=++bn),fe[ce]={old:z[ce],new:gr[z[ce]]},On[ce]=gr[z[ce]];return dr.writeUInt16(1),dr.writeUInt16(0),dr.writeUInt32(12),dr.writeUInt16(0),dr.writeUInt16(262),dr.writeUInt16(0),dr.write(On),{charMap:fe,subtable:dr.data,maxGlyphID:bn+1};case"unicode":for(Dn=[],Tt=[],cr=0,gr={},re={},cn=Ye=null,Ci=0,Oo=$e.length;Ci<Oo;Ci++)gr[li=z[ce=$e[Ci]]]==null&&(gr[li]=++cr),re[ce]={old:li,new:gr[li]},Pe=gr[li]-ce,cn!=null&&Pe===Ye||(cn&&Tt.push(cn),Dn.push(ce),Ye=Pe),cn=ce;for(cn&&Tt.push(cn),Tt.push(65535),Dn.push(65535),Wr=2*(Xn=Dn.length),Fr=2*Math.pow(Math.log(Xn)/Math.LN2,2),Jt=Math.log(Fr/2)/Math.LN2,Bi=2*Xn-Fr,Ge=[],ji=[],At=[],In=Si=0,ao=Dn.length;Si<ao;In=++Si){if(ln=Dn[In],ft=Tt[In],ln===65535){Ge.push(0),ji.push(0);break}if(ln-(mr=re[ln].new)>=32768)for(Ge.push(0),ji.push(2*(At.length+Xn-In)),ce=ei=ln;ln<=ft?ei<=ft:ei>=ft;ce=ln<=ft?++ei:--ei)At.push(re[ce].new);else Ge.push(mr-ln),ji.push(0)}for(dr.writeUInt16(3),dr.writeUInt16(1),dr.writeUInt32(12),dr.writeUInt16(4),dr.writeUInt16(16+8*Xn+2*At.length),dr.writeUInt16(0),dr.writeUInt16(Wr),dr.writeUInt16(Fr),dr.writeUInt16(Jt),dr.writeUInt16(Bi),Xr=0,rn=Tt.length;Xr<rn;Xr++)ce=Tt[Xr],dr.writeUInt16(ce);for(dr.writeUInt16(0),Ei=0,Kn=Dn.length;Ei<Kn;Ei++)ce=Dn[Ei],dr.writeUInt16(ce);for(Yi=0,rr=Ge.length;Yi<rr;Yi++)Pe=Ge[Yi],dr.writeUInt16(Pe);for(Bo=0,yr=ji.length;Bo<yr;Bo++)Zn=ji[Bo],dr.writeUInt16(Zn);for(da=0,Pr=At.length;da<Pr;da++)bn=At[da],dr.writeUInt16(bn);return{charMap:re,subtable:dr.data,maxGlyphID:cr+1}}},y}(),z0=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="cmap",y.prototype.parse=function(z){var E,re,ce;for(z.pos=this.offset,this.version=z.readUInt16(),ce=z.readUInt16(),this.tables=[],this.unicode=null,re=0;0<=ce?re<ce:re>ce;re=0<=ce?++re:--re)E=new H0(z,this.offset),this.tables.push(E),E.isUnicode&&this.unicode==null&&(this.unicode=E);return!0},y.encode=function(z,E){var re,ce;return E==null&&(E="macroman"),re=H0.encode(z,E),(ce=new Zh).writeUInt16(0),ce.writeUInt16(1),re.table=ce.data.concat(re.subtable),re},y}(),jv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="hhea",y.prototype.parse=function(z){return z.pos=this.offset,this.version=z.readInt(),this.ascender=z.readShort(),this.decender=z.readShort(),this.lineGap=z.readShort(),this.advanceWidthMax=z.readShort(),this.minLeftSideBearing=z.readShort(),this.minRightSideBearing=z.readShort(),this.xMaxExtent=z.readShort(),this.caretSlopeRise=z.readShort(),this.caretSlopeRun=z.readShort(),this.caretOffset=z.readShort(),z.pos+=8,this.metricDataFormat=z.readShort(),this.numberOfMetrics=z.readUInt16()},y}(),Qv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="OS/2",y.prototype.parse=function(z){if(z.pos=this.offset,this.version=z.readUInt16(),this.averageCharWidth=z.readShort(),this.weightClass=z.readUInt16(),this.widthClass=z.readUInt16(),this.type=z.readShort(),this.ySubscriptXSize=z.readShort(),this.ySubscriptYSize=z.readShort(),this.ySubscriptXOffset=z.readShort(),this.ySubscriptYOffset=z.readShort(),this.ySuperscriptXSize=z.readShort(),this.ySuperscriptYSize=z.readShort(),this.ySuperscriptXOffset=z.readShort(),this.ySuperscriptYOffset=z.readShort(),this.yStrikeoutSize=z.readShort(),this.yStrikeoutPosition=z.readShort(),this.familyClass=z.readShort(),this.panose=function(){var E,re;for(re=[],E=0;E<10;++E)re.push(z.readByte());return re}(),this.charRange=function(){var E,re;for(re=[],E=0;E<4;++E)re.push(z.readInt());return re}(),this.vendorID=z.readString(4),this.selection=z.readShort(),this.firstCharIndex=z.readShort(),this.lastCharIndex=z.readShort(),this.version>0&&(this.ascent=z.readShort(),this.descent=z.readShort(),this.lineGap=z.readShort(),this.winAscent=z.readShort(),this.winDescent=z.readShort(),this.codePageRange=function(){var E,re;for(re=[],E=0;E<2;E=++E)re.push(z.readInt());return re}(),this.version>1))return this.xHeight=z.readShort(),this.capHeight=z.readShort(),this.defaultChar=z.readShort(),this.breakChar=z.readShort(),this.maxContext=z.readShort()},y}(),Hv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="post",y.prototype.parse=function(z){var E,re,ce;switch(z.pos=this.offset,this.format=z.readInt(),this.italicAngle=z.readInt(),this.underlinePosition=z.readShort(),this.underlineThickness=z.readShort(),this.isFixedPitch=z.readInt(),this.minMemType42=z.readInt(),this.maxMemType42=z.readInt(),this.minMemType1=z.readInt(),this.maxMemType1=z.readInt(),this.format){case 65536:case 196608:break;case 131072:var fe;for(re=z.readUInt16(),this.glyphNameIndex=[],fe=0;0<=re?fe<re:fe>re;fe=0<=re?++fe:--fe)this.glyphNameIndex.push(z.readUInt16());for(this.names=[],ce=[];z.pos<this.offset+this.length;)E=z.readByte(),ce.push(this.names.push(z.readString(E)));return ce;case 151552:return re=z.readUInt16(),this.offsets=z.read(re);case 262144:return this.map=function(){var $e,Pe,Ge;for(Ge=[],fe=$e=0,Pe=this.file.maxp.numGlyphs;0<=Pe?$e<Pe:$e>Pe;fe=0<=Pe?++$e:--$e)Ge.push(z.readUInt32());return Ge}.call(this)}},y}(),zv=function(y,z){this.raw=y,this.length=y.length,this.platformID=z.platformID,this.encodingID=z.encodingID,this.languageID=z.languageID},Kv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="name",y.prototype.parse=function(z){var E,re,ce,fe,$e,Pe,Ge,Ye,ft,Tt,Jt;for(z.pos=this.offset,z.readShort(),E=z.readShort(),Pe=z.readShort(),re=[],fe=0;0<=E?fe<E:fe>E;fe=0<=E?++fe:--fe)re.push({platformID:z.readShort(),encodingID:z.readShort(),languageID:z.readShort(),nameID:z.readShort(),length:z.readShort(),offset:this.offset+Pe+z.readShort()});for(Ge={},fe=ft=0,Tt=re.length;ft<Tt;fe=++ft)ce=re[fe],z.pos=ce.offset,Ye=z.readString(ce.length),$e=new zv(Ye,ce),Ge[Jt=ce.nameID]==null&&(Ge[Jt]=[]),Ge[ce.nameID].push($e);this.strings=Ge,this.copyright=Ge[0],this.fontFamily=Ge[1],this.fontSubfamily=Ge[2],this.uniqueSubfamily=Ge[3],this.fontName=Ge[4],this.version=Ge[5];try{this.postscriptName=Ge[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(At){this.postscriptName=Ge[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Ge[7],this.manufacturer=Ge[8],this.designer=Ge[9],this.description=Ge[10],this.vendorUrl=Ge[11],this.designerUrl=Ge[12],this.license=Ge[13],this.licenseUrl=Ge[14],this.preferredFamily=Ge[15],this.preferredSubfamily=Ge[17],this.compatibleFull=Ge[18],this.sampleText=Ge[19]},y}(),$v=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="maxp",y.prototype.parse=function(z){return z.pos=this.offset,this.version=z.readInt(),this.numGlyphs=z.readUInt16(),this.maxPoints=z.readUInt16(),this.maxContours=z.readUInt16(),this.maxCompositePoints=z.readUInt16(),this.maxComponentContours=z.readUInt16(),this.maxZones=z.readUInt16(),this.maxTwilightPoints=z.readUInt16(),this.maxStorage=z.readUInt16(),this.maxFunctionDefs=z.readUInt16(),this.maxInstructionDefs=z.readUInt16(),this.maxStackElements=z.readUInt16(),this.maxSizeOfInstructions=z.readUInt16(),this.maxComponentElements=z.readUInt16(),this.maxComponentDepth=z.readUInt16()},y}(),Zv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="hmtx",y.prototype.parse=function(z){var E,re,ce,fe,$e,Pe,Ge;for(z.pos=this.offset,this.metrics=[],E=0,Pe=this.file.hhea.numberOfMetrics;0<=Pe?E<Pe:E>Pe;E=0<=Pe?++E:--E)this.metrics.push({advance:z.readUInt16(),lsb:z.readInt16()});for(ce=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Ye,ft;for(ft=[],E=Ye=0;0<=ce?Ye<ce:Ye>ce;E=0<=ce?++Ye:--Ye)ft.push(z.readInt16());return ft}(),this.widths=function(){var Ye,ft,Tt,Jt;for(Jt=[],Ye=0,ft=(Tt=this.metrics).length;Ye<ft;Ye++)fe=Tt[Ye],Jt.push(fe.advance);return Jt}.call(this),re=this.widths[this.widths.length-1],Ge=[],E=$e=0;0<=ce?$e<ce:$e>ce;E=0<=ce?++$e:--$e)Ge.push(this.widths.push(re));return Ge},y.prototype.forGlyph=function(z){return z in this.metrics?this.metrics[z]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[z-this.metrics.length]}},y}(),K0=[].slice,Wv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="glyf",y.prototype.parse=function(){return this.cache={}},y.prototype.glyphFor=function(z){var E,re,ce,fe,$e,Pe,Ge,Ye,ft,Tt;return z in this.cache?this.cache[z]:(fe=this.file.loca,E=this.file.contents,re=fe.indexOf(z),(ce=fe.lengthOf(z))===0?this.cache[z]=null:(E.pos=this.offset+re,$e=(Pe=new Zh(E.read(ce))).readShort(),Ye=Pe.readShort(),Tt=Pe.readShort(),Ge=Pe.readShort(),ft=Pe.readShort(),this.cache[z]=$e===-1?new Vv(Pe,Ye,Tt,Ge,ft):new Gv(Pe,$e,Ye,Tt,Ge,ft),this.cache[z]))},y.prototype.encode=function(z,E,re){var ce,fe,$e,Pe,Ge;for($e=[],fe=[],Pe=0,Ge=E.length;Pe<Ge;Pe++)ce=z[E[Pe]],fe.push($e.length),ce&&($e=$e.concat(ce.encode(re)));return fe.push($e.length),{table:$e,offsets:fe}},y}(),Gv=function(){function y(z,E,re,ce,fe,$e){this.raw=z,this.numberOfContours=E,this.xMin=re,this.yMin=ce,this.xMax=fe,this.yMax=$e,this.compound=!1}return y.prototype.encode=function(){return this.raw.data},y}(),Vv=function(){function y(z,E,re,ce,fe){var $e,Pe;for(this.raw=z,this.xMin=E,this.yMin=re,this.xMax=ce,this.yMax=fe,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],$e=this.raw;Pe=$e.readShort(),this.glyphOffsets.push($e.pos),this.glyphIDs.push($e.readUInt16()),32&Pe;)$e.pos+=1&Pe?4:2,128&Pe?$e.pos+=8:64&Pe?$e.pos+=4:8&Pe&&($e.pos+=2)}return y.prototype.encode=function(){var z,E,re;for(E=new Zh(K0.call(this.raw.data)),z=0,re=this.glyphIDs.length;z<re;++z)E.pos=this.glyphOffsets[z];return E.data},y}(),Xv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="loca",y.prototype.parse=function(z){var E,re;return z.pos=this.offset,E=this.file.head.indexToLocFormat,this.offsets=E===0?function(){var ce,fe;for(fe=[],re=0,ce=this.length;re<ce;re+=2)fe.push(2*z.readUInt16());return fe}.call(this):function(){var ce,fe;for(fe=[],re=0,ce=this.length;re<ce;re+=4)fe.push(z.readUInt32());return fe}.call(this)},y.prototype.indexOf=function(z){return this.offsets[z]},y.prototype.lengthOf=function(z){return this.offsets[z+1]-this.offsets[z]},y.prototype.encode=function(z,E){for(var re=new Uint32Array(this.offsets.length),ce=0,fe=0,$e=0;$e<re.length;++$e)if(re[$e]=ce,fe<E.length&&E[fe]==$e){++fe,re[$e]=ce;var Pe=this.offsets[$e],Ge=this.offsets[$e+1]-Pe;Ge>0&&(ce+=Ge)}for(var Ye=new Array(4*re.length),ft=0;ft<re.length;++ft)Ye[4*ft+3]=255&re[ft],Ye[4*ft+2]=(65280&re[ft])>>8,Ye[4*ft+1]=(16711680&re[ft])>>16,Ye[4*ft]=(4278190080&re[ft])>>24;return Ye},y}(),Yv=function(){function y(z){this.font=z,this.subset={},this.unicodes={},this.next=33}return y.prototype.generateCmap=function(){var z,E,re,ce,fe;for(E in ce=this.font.cmap.tables[0].codeMap,z={},fe=this.subset)re=fe[E],z[E]=ce[re];return z},y.prototype.glyphsFor=function(z){var E,re,ce,fe,$e,Pe,Ge;for(ce={},$e=0,Pe=z.length;$e<Pe;$e++)ce[fe=z[$e]]=this.font.glyf.glyphFor(fe);for(fe in E=[],ce)(re=ce[fe])!=null&&re.compound&&E.push.apply(E,re.glyphIDs);if(E.length>0)for(fe in Ge=this.glyphsFor(E))re=Ge[fe],ce[fe]=re;return ce},y.prototype.encode=function(z,E){var re,ce,fe,$e,Pe,Ge,Ye,ft,Tt,Jt,At,In,bn,On,cn;for(ce in re=z0.encode(this.generateCmap(),"unicode"),$e=this.glyphsFor(z),At={0:0},cn=re.charMap)At[(Ge=cn[ce]).old]=Ge.new;for(In in Jt=re.maxGlyphID,$e)In in At||(At[In]=Jt++);return ft=function(gr){var cr,Zn;for(cr in Zn={},gr)Zn[gr[cr]]=cr;return Zn}(At),Tt=Object.keys(ft).sort(function(gr,cr){return gr-cr}),bn=function(){var gr,cr,Zn;for(Zn=[],gr=0,cr=Tt.length;gr<cr;gr++)Pe=Tt[gr],Zn.push(ft[Pe]);return Zn}(),fe=this.font.glyf.encode($e,bn,At),Ye=this.font.loca.encode(fe.offsets,bn),On={cmap:this.font.cmap.raw(),glyf:fe.table,loca:Ye,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(E)},this.font.os2.exists&&(On["OS/2"]=this.font.os2.raw()),this.font.directory.encode(On)},y}();Oa.API.PDFObject=function(){var y;function z(){}return y=function(E,re){return(Array(re+1).join("0")+E).slice(-re)},z.convert=function(E){var re,ce,fe,$e;if(Array.isArray(E))return"["+function(){var Pe,Ge,Ye;for(Ye=[],Pe=0,Ge=E.length;Pe<Ge;Pe++)re=E[Pe],Ye.push(z.convert(re));return Ye}().join(" ")+"]";if(typeof E=="string")return"/"+E;if(E!=null&&E.isString)return"("+E+")";if(E instanceof Date)return"(D:"+y(E.getUTCFullYear(),4)+y(E.getUTCMonth(),2)+y(E.getUTCDate(),2)+y(E.getUTCHours(),2)+y(E.getUTCMinutes(),2)+y(E.getUTCSeconds(),2)+"Z)";if({}.toString.call(E)==="[object Object]"){for(ce in fe=["<<"],E)$e=E[ce],fe.push("/"+ce+" "+z.convert($e));return fe.push(">>"),fe.join(`
|
|
|
`)}return""+E},z}()},86129:function(qn,Mt,ae){var x=ae(19208).lW,dt=ae(97671);(function(Le){qn.exports=Le()})(function(){return function Le(qe,ze,Ie){function Ue(oe,Oe){if(!ze[oe]){if(!qe[oe]){var ve=void 0;if(!Oe&&ve)return require(oe,!0);if(he)return he(oe,!0);var Me=new Error("Cannot find module '"+oe+"'");throw Me.code="MODULE_NOT_FOUND",Me}var Se=ze[oe]={exports:{}};qe[oe][0].call(Se.exports,function(Te){var we=qe[oe][1][Te];return Ue(we||Te)},Se,Se.exports,Le,qe,ze,Ie)}return ze[oe].exports}for(var he=void 0,xe=0;xe<Ie.length;xe++)Ue(Ie[xe]);return Ue}({1:[function(Le,qe,ze){"use strict";var Ie=Le("./utils"),Ue=Le("./support"),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ze.encode=function(xe){for(var oe,Oe,ve,Me,Se,Te,we,Ce=[],Ee=0,ke=xe.length,Ke=ke,Qe=Ie.getTypeOf(xe)!=="string";Ee<xe.length;)Ke=ke-Ee,ve=Qe?(oe=xe[Ee++],Oe=Ee<ke?xe[Ee++]:0,Ee<ke?xe[Ee++]:0):(oe=xe.charCodeAt(Ee++),Oe=Ee<ke?xe.charCodeAt(Ee++):0,Ee<ke?xe.charCodeAt(Ee++):0),Me=oe>>2,Se=(3&oe)<<4|Oe>>4,Te=1<Ke?(15&Oe)<<2|ve>>6:64,we=2<Ke?63&ve:64,Ce.push(he.charAt(Me)+he.charAt(Se)+he.charAt(Te)+he.charAt(we));return Ce.join("")},ze.decode=function(xe){var oe,Oe,ve,Me,Se,Te,we=0,Ce=0,Ee="data:";if(xe.substr(0,Ee.length)===Ee)throw new Error("Invalid base64 input, it looks like a data url.");var ke,Ke=3*(xe=xe.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(xe.charAt(xe.length-1)===he.charAt(64)&&Ke--,xe.charAt(xe.length-2)===he.charAt(64)&&Ke--,Ke%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ke=Ue.uint8array?new Uint8Array(0|Ke):new Array(0|Ke);we<xe.length;)oe=he.indexOf(xe.charAt(we++))<<2|(Me=he.indexOf(xe.charAt(we++)))>>4,Oe=(15&Me)<<4|(Se=he.indexOf(xe.charAt(we++)))>>2,ve=(3&Se)<<6|(Te=he.indexOf(xe.charAt(we++))),ke[Ce++]=oe,Se!==64&&(ke[Ce++]=Oe),Te!==64&&(ke[Ce++]=ve);return ke}},{"./support":30,"./utils":32}],2:[function(Le,qe,ze){"use strict";var Ie=Le("./external"),Ue=Le("./stream/DataWorker"),he=Le("./stream/Crc32Probe"),xe=Le("./stream/DataLengthProbe");function oe(Oe,ve,Me,Se,Te){this.compressedSize=Oe,this.uncompressedSize=ve,this.crc32=Me,this.compression=Se,this.compressedContent=Te}oe.prototype={getContentWorker:function(){var Oe=new Ue(Ie.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new xe("data_length")),ve=this;return Oe.on("end",function(){if(this.streamInfo.data_length!==ve.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Oe},getCompressedWorker:function(){return new Ue(Ie.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},oe.createWorkerFrom=function(Oe,ve,Me){return Oe.pipe(new he).pipe(new xe("uncompressedSize")).pipe(ve.compressWorker(Me)).pipe(new xe("compressedSize")).withStreamInfo("compression",ve)},qe.exports=oe},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(Le,qe,ze){"use strict";var Ie=Le("./stream/GenericWorker");ze.STORE={magic:"\0\0",compressWorker:function(){return new Ie("STORE compression")},uncompressWorker:function(){return new Ie("STORE decompression")}},ze.DEFLATE=Le("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(Le,qe,ze){"use strict";var Ie=Le("./utils"),Ue=function(){for(var he,xe=[],oe=0;oe<256;oe++){he=oe;for(var Oe=0;Oe<8;Oe++)he=1&he?3988292384^he>>>1:he>>>1;xe[oe]=he}return xe}();qe.exports=function(he,xe){return he!==void 0&&he.length?Ie.getTypeOf(he)!=="string"?function(oe,Oe,ve,Me){var Se=Ue,Te=Me+ve;oe^=-1;for(var we=Me;we<Te;we++)oe=oe>>>8^Se[255&(oe^Oe[we])];return-1^oe}(0|xe,he,he.length,0):function(oe,Oe,ve,Me){var Se=Ue,Te=Me+ve;oe^=-1;for(var we=Me;we<Te;we++)oe=oe>>>8^Se[255&(oe^Oe.charCodeAt(we))];return-1^oe}(0|xe,he,he.length,0):0}},{"./utils":32}],5:[function(Le,qe,ze){"use strict";ze.base64=!1,ze.binary=!1,ze.dir=!1,ze.createFolders=!0,ze.date=null,ze.compression=null,ze.compressionOptions=null,ze.comment=null,ze.unixPermissions=null,ze.dosPermissions=null},{}],6:[function(Le,qe,ze){"use strict";var Ie=null;Ie=typeof Promise!="undefined"?Promise:Le("lie"),qe.exports={Promise:Ie}},{lie:37}],7:[function(Le,qe,ze){"use strict";var Ie=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Ue=Le("pako"),he=Le("./utils"),xe=Le("./stream/GenericWorker"),oe=Ie?"uint8array":"array";function Oe(ve,Me){xe.call(this,"FlateWorker/"+ve),this._pako=null,this._pakoAction=ve,this._pakoOptions=Me,this.meta={}}ze.magic="\b\0",he.inherits(Oe,xe),Oe.prototype.processChunk=function(ve){this.meta=ve.meta,this._pako===null&&this._createPako(),this._pako.push(he.transformTo(oe,ve.data),!1)},Oe.prototype.flush=function(){xe.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},Oe.prototype.cleanUp=function(){xe.prototype.cleanUp.call(this),this._pako=null},Oe.prototype._createPako=function(){this._pako=new Ue[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var ve=this;this._pako.onData=function(Me){ve.push({data:Me,meta:ve.meta})}},ze.compressWorker=function(ve){return new Oe("Deflate",ve)},ze.uncompressWorker=function(){return new Oe("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(Le,qe,ze){"use strict";function Ie(Se,Te){var we,Ce="";for(we=0;we<Te;we++)Ce+=String.fromCharCode(255&Se),Se>>>=8;return Ce}function Ue(Se,Te,we,Ce,Ee,ke){var Ke,Qe,je=Se.file,Je=Se.compression,Ve=ke!==oe.utf8encode,ct=he.transformTo("string",ke(je.name)),ot=he.transformTo("string",oe.utf8encode(je.name)),pt=je.comment,Ct=he.transformTo("string",ke(pt)),He=he.transformTo("string",oe.utf8encode(pt)),ht=ot.length!==je.name.length,_e=He.length!==pt.length,Re="",Ot="",it="",at=je.dir,Et=je.date,Ze={crc32:0,compressedSize:0,uncompressedSize:0};Te&&!we||(Ze.crc32=Se.crc32,Ze.compressedSize=Se.compressedSize,Ze.uncompressedSize=Se.uncompressedSize);var De=0;Te&&(De|=8),Ve||!ht&&!_e||(De|=2048);var ut=0,Zt=0;at&&(ut|=16),Ee==="UNIX"?(Zt=798,ut|=function(tt,Dt){var jt=tt;return tt||(jt=Dt?16893:33204),(65535&jt)<<16}(je.unixPermissions,at)):(Zt=20,ut|=function(tt){return 63&(tt||0)}(je.dosPermissions)),Ke=Et.getUTCHours(),Ke<<=6,Ke|=Et.getUTCMinutes(),Ke<<=5,Ke|=Et.getUTCSeconds()/2,Qe=Et.getUTCFullYear()-1980,Qe<<=4,Qe|=Et.getUTCMonth()+1,Qe<<=5,Qe|=Et.getUTCDate(),ht&&(Ot=Ie(1,1)+Ie(Oe(ct),4)+ot,Re+="up"+Ie(Ot.length,2)+Ot),_e&&(it=Ie(1,1)+Ie(Oe(Ct),4)+He,Re+="uc"+Ie(it.length,2)+it);var Kt="";return Kt+=`
|
|
|
\0`,Kt+=Ie(De,2),Kt+=Je.magic,Kt+=Ie(Ke,2),Kt+=Ie(Qe,2),Kt+=Ie(Ze.crc32,4),Kt+=Ie(Ze.compressedSize,4),Kt+=Ie(Ze.uncompressedSize,4),Kt+=Ie(ct.length,2),Kt+=Ie(Re.length,2),{fileRecord:ve.LOCAL_FILE_HEADER+Kt+ct+Re,dirRecord:ve.CENTRAL_FILE_HEADER+Ie(Zt,2)+Kt+Ie(Ct.length,2)+"\0\0\0\0"+Ie(ut,4)+Ie(Ce,4)+ct+Re+Ct}}var he=Le("../utils"),xe=Le("../stream/GenericWorker"),oe=Le("../utf8"),Oe=Le("../crc32"),ve=Le("../signature");function Me(Se,Te,we,Ce){xe.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=Te,this.zipPlatform=we,this.encodeFileName=Ce,this.streamFiles=Se,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}he.inherits(Me,xe),Me.prototype.push=function(Se){var Te=Se.meta.percent||0,we=this.entriesCount,Ce=this._sources.length;this.accumulate?this.contentBuffer.push(Se):(this.bytesWritten+=Se.data.length,xe.prototype.push.call(this,{data:Se.data,meta:{currentFile:this.currentFile,percent:we?(Te+100*(we-Ce-1))/we:100}}))},Me.prototype.openedSource=function(Se){this.currentSourceOffset=this.bytesWritten,this.currentFile=Se.file.name;var Te=this.streamFiles&&!Se.file.dir;if(Te){var we=Ue(Se,Te,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:we.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Me.prototype.closedSource=function(Se){this.accumulate=!1;var Te=this.streamFiles&&!Se.file.dir,we=Ue(Se,Te,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(we.dirRecord),Te)this.push({data:function(Ce){return ve.DATA_DESCRIPTOR+Ie(Ce.crc32,4)+Ie(Ce.compressedSize,4)+Ie(Ce.uncompressedSize,4)}(Se),meta:{percent:100}});else for(this.push({data:we.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Me.prototype.flush=function(){for(var Se=this.bytesWritten,Te=0;Te<this.dirRecords.length;Te++)this.push({data:this.dirRecords[Te],meta:{percent:100}});var we=this.bytesWritten-Se,Ce=function(Ee,ke,Ke,Qe,je){var Je=he.transformTo("string",je(Qe));return ve.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Ie(Ee,2)+Ie(Ee,2)+Ie(ke,4)+Ie(Ke,4)+Ie(Je.length,2)+Je}(this.dirRecords.length,we,Se,this.zipComment,this.encodeFileName);this.push({data:Ce,meta:{percent:100}})},Me.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Me.prototype.registerPrevious=function(Se){this._sources.push(Se);var Te=this;return Se.on("data",function(we){Te.processChunk(we)}),Se.on("end",function(){Te.closedSource(Te.previous.streamInfo),Te._sources.length?Te.prepareNextSource():Te.end()}),Se.on("error",function(we){Te.error(we)}),this},Me.prototype.resume=function(){return!!xe.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Me.prototype.error=function(Se){var Te=this._sources;if(!xe.prototype.error.call(this,Se))return!1;for(var we=0;we<Te.length;we++)try{Te[we].error(Se)}catch(Ce){}return!0},Me.prototype.lock=function(){xe.prototype.lock.call(this);for(var Se=this._sources,Te=0;Te<Se.length;Te++)Se[Te].lock()},qe.exports=Me},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(Le,qe,ze){"use strict";var Ie=Le("../compressions"),Ue=Le("./ZipFileWorker");ze.generateWorker=function(he,xe,oe){var Oe=new Ue(xe.streamFiles,oe,xe.platform,xe.encodeFileName),ve=0;try{he.forEach(function(Me,Se){ve++;var Te=function(ke,Ke){var Qe=ke||Ke,je=Ie[Qe];if(!je)throw new Error(Qe+" is not a valid compression method !");return je}(Se.options.compression,xe.compression),we=Se.options.compressionOptions||xe.compressionOptions||{},Ce=Se.dir,Ee=Se.date;Se._compressWorker(Te,we).withStreamInfo("file",{name:Me,dir:Ce,date:Ee,comment:Se.comment||"",unixPermissions:Se.unixPermissions,dosPermissions:Se.dosPermissions}).pipe(Oe)}),Oe.entriesCount=ve}catch(Me){Oe.error(Me)}return Oe}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(Le,qe,ze){"use strict";function Ie(){if(!(this instanceof Ie))return new Ie;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Ue=new Ie;for(var he in this)typeof this[he]!="function"&&(Ue[he]=this[he]);return Ue}}(Ie.prototype=Le("./object")).loadAsync=Le("./load"),Ie.support=Le("./support"),Ie.defaults=Le("./defaults"),Ie.version="3.10.1",Ie.loadAsync=function(Ue,he){return new Ie().loadAsync(Ue,he)},Ie.external=Le("./external"),qe.exports=Ie},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(Le,qe,ze){"use strict";var Ie=Le("./utils"),Ue=Le("./external"),he=Le("./utf8"),xe=Le("./zipEntries"),oe=Le("./stream/Crc32Probe"),Oe=Le("./nodejsUtils");function ve(Me){return new Ue.Promise(function(Se,Te){var we=Me.decompressed.getContentWorker().pipe(new oe);we.on("error",function(Ce){Te(Ce)}).on("end",function(){we.streamInfo.crc32!==Me.decompressed.crc32?Te(new Error("Corrupted zip : CRC32 mismatch")):Se()}).resume()})}qe.exports=function(Me,Se){var Te=this;return Se=Ie.extend(Se||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:he.utf8decode}),Oe.isNode&&Oe.isStream(Me)?Ue.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Ie.prepareContent("the loaded zip file",Me,!0,Se.optimizedBinaryString,Se.base64).then(function(we){var Ce=new xe(Se);return Ce.load(we),Ce}).then(function(we){var Ce=[Ue.Promise.resolve(we)],Ee=we.files;if(Se.checkCRC32)for(var ke=0;ke<Ee.length;ke++)Ce.push(ve(Ee[ke]));return Ue.Promise.all(Ce)}).then(function(we){for(var Ce=we.shift(),Ee=Ce.files,ke=0;ke<Ee.length;ke++){var Ke=Ee[ke],Qe=Ke.fileNameStr,je=Ie.resolve(Ke.fileNameStr);Te.file(je,Ke.decompressed,{binary:!0,optimizedBinaryString:!0,date:Ke.date,dir:Ke.dir,comment:Ke.fileCommentStr.length?Ke.fileCommentStr:null,unixPermissions:Ke.unixPermissions,dosPermissions:Ke.dosPermissions,createFolders:Se.createFolders}),Ke.dir||(Te.file(je).unsafeOriginalName=Qe)}return Ce.zipComment.length&&(Te.comment=Ce.zipComment),Te})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(Le,qe,ze){"use strict";var Ie=Le("../utils"),Ue=Le("../stream/GenericWorker");function he(xe,oe){Ue.call(this,"Nodejs stream input adapter for "+xe),this._upstreamEnded=!1,this._bindStream(oe)}Ie.inherits(he,Ue),he.prototype._bindStream=function(xe){var oe=this;(this._stream=xe).pause(),xe.on("data",function(Oe){oe.push({data:Oe,meta:{percent:0}})}).on("error",function(Oe){oe.isPaused?this.generatedError=Oe:oe.error(Oe)}).on("end",function(){oe.isPaused?oe._upstreamEnded=!0:oe.end()})},he.prototype.pause=function(){return!!Ue.prototype.pause.call(this)&&(this._stream.pause(),!0)},he.prototype.resume=function(){return!!Ue.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},qe.exports=he},{"../stream/GenericWorker":28,"../utils":32}],13:[function(Le,qe,ze){"use strict";var Ie=Le("readable-stream").Readable;function Ue(he,xe,oe){Ie.call(this,xe),this._helper=he;var Oe=this;he.on("data",function(ve,Me){Oe.push(ve)||Oe._helper.pause(),oe&&oe(Me)}).on("error",function(ve){Oe.emit("error",ve)}).on("end",function(){Oe.push(null)})}Le("../utils").inherits(Ue,Ie),Ue.prototype._read=function(){this._helper.resume()},qe.exports=Ue},{"../utils":32,"readable-stream":16}],14:[function(Le,qe,ze){"use strict";qe.exports={isNode:typeof x!="undefined",newBufferFrom:function(Ie,Ue){if(x.from&&x.from!==Uint8Array.from)return x.from(Ie,Ue);if(typeof Ie=="number")throw new Error('The "data" argument must not be a number');return new x(Ie,Ue)},allocBuffer:function(Ie){if(x.alloc)return x.alloc(Ie);var Ue=new x(Ie);return Ue.fill(0),Ue},isBuffer:function(Ie){return x.isBuffer(Ie)},isStream:function(Ie){return Ie&&typeof Ie.on=="function"&&typeof Ie.pause=="function"&&typeof Ie.resume=="function"}}},{}],15:[function(Le,qe,ze){"use strict";function Ie(je,Je,Ve){var ct,ot=he.getTypeOf(Je),pt=he.extend(Ve||{},Oe);pt.date=pt.date||new Date,pt.compression!==null&&(pt.compression=pt.compression.toUpperCase()),typeof pt.unixPermissions=="string"&&(pt.unixPermissions=parseInt(pt.unixPermissions,8)),pt.unixPermissions&&16384&pt.unixPermissions&&(pt.dir=!0),pt.dosPermissions&&16&pt.dosPermissions&&(pt.dir=!0),pt.dir&&(je=Ee(je)),pt.createFolders&&(ct=Ce(je))&&ke.call(this,ct,!0);var Ct=ot==="string"&&pt.binary===!1&&pt.base64===!1;Ve&&Ve.binary!==void 0||(pt.binary=!Ct),(Je instanceof ve&&Je.uncompressedSize===0||pt.dir||!Je||Je.length===0)&&(pt.base64=!1,pt.binary=!0,Je="",pt.compression="STORE",ot="string");var He=null;He=Je instanceof ve||Je instanceof xe?Je:Te.isNode&&Te.isStream(Je)?new we(je,Je):he.prepareContent(je,Je,pt.binary,pt.optimizedBinaryString,pt.base64);var ht=new Me(je,He,pt);this.files[je]=ht}var Ue=Le("./utf8"),he=Le("./utils"),xe=Le("./stream/GenericWorker"),oe=Le("./stream/StreamHelper"),Oe=Le("./defaults"),ve=Le("./compressedObject"),Me=Le("./zipObject"),Se=Le("./generate"),Te=Le("./nodejsUtils"),we=Le("./nodejs/NodejsStreamInputAdapter"),Ce=function(je){je.slice(-1)==="/"&&(je=je.substring(0,je.length-1));var Je=je.lastIndexOf("/");return 0<Je?je.substring(0,Je):""},Ee=function(je){return je.slice(-1)!=="/"&&(je+="/"),je},ke=function(je,Je){return Je=Je!==void 0?Je:Oe.createFolders,je=Ee(je),this.files[je]||Ie.call(this,je,null,{dir:!0,createFolders:Je}),this.files[je]};function Ke(je){return Object.prototype.toString.call(je)==="[object RegExp]"}var Qe={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(je){var Je,Ve,ct;for(Je in this.files)ct=this.files[Je],(Ve=Je.slice(this.root.length,Je.length))&&Je.slice(0,this.root.length)===this.root&&je(Ve,ct)},filter:function(je){var Je=[];return this.forEach(function(Ve,ct){je(Ve,ct)&&Je.push(ct)}),Je},file:function(je,Je,Ve){if(arguments.length!==1)return je=this.root+je,Ie.call(this,je,Je,Ve),this;if(Ke(je)){var ct=je;return this.filter(function(pt,Ct){return!Ct.dir&&ct.test(pt)})}var ot=this.files[this.root+je];return ot&&!ot.dir?ot:null},folder:function(je){if(!je)return this;if(Ke(je))return this.filter(function(ot,pt){return pt.dir&&je.test(ot)});var Je=this.root+je,Ve=ke.call(this,Je),ct=this.clone();return ct.root=Ve.name,ct},remove:function(je){je=this.root+je;var Je=this.files[je];if(Je||(je.slice(-1)!=="/"&&(je+="/"),Je=this.files[je]),Je&&!Je.dir)delete this.files[je];else for(var Ve=this.filter(function(ot,pt){return pt.name.slice(0,je.length)===je}),ct=0;ct<Ve.length;ct++)delete this.files[Ve[ct].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(je){var Je,Ve={};try{if((Ve=he.extend(je||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Ue.utf8encode})).type=Ve.type.toLowerCase(),Ve.compression=Ve.compression.toUpperCase(),Ve.type==="binarystring"&&(Ve.type="string"),!Ve.type)throw new Error("No output type specified.");he.checkSupport(Ve.type),Ve.platform!=="darwin"&&Ve.platform!=="freebsd"&&Ve.platform!=="linux"&&Ve.platform!=="sunos"||(Ve.platform="UNIX"),Ve.platform==="win32"&&(Ve.platform="DOS");var ct=Ve.comment||this.comment||"";Je=Se.generateWorker(this,Ve,ct)}catch(ot){(Je=new xe("error")).error(ot)}return new oe(Je,Ve.type||"string",Ve.mimeType)},generateAsync:function(je,Je){return this.generateInternalStream(je).accumulate(Je)},generateNodeStream:function(je,Je){return(je=je||{}).type||(je.type="nodebuffer"),this.generateInternalStream(je).toNodejsStream(Je)}};qe.exports=Qe},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(Le,qe,ze){"use strict";qe.exports=Le("stream")},{stream:void 0}],17:[function(Le,qe,ze){"use strict";var Ie=Le("./DataReader");function Ue(he){Ie.call(this,he);for(var xe=0;xe<this.data.length;xe++)he[xe]=255&he[xe]}Le("../utils").inherits(Ue,Ie),Ue.prototype.byteAt=function(he){return this.data[this.zero+he]},Ue.prototype.lastIndexOfSignature=function(he){for(var xe=he.charCodeAt(0),oe=he.charCodeAt(1),Oe=he.charCodeAt(2),ve=he.charCodeAt(3),Me=this.length-4;0<=Me;--Me)if(this.data[Me]===xe&&this.data[Me+1]===oe&&this.data[Me+2]===Oe&&this.data[Me+3]===ve)return Me-this.zero;return-1},Ue.prototype.readAndCheckSignature=function(he){var xe=he.charCodeAt(0),oe=he.charCodeAt(1),Oe=he.charCodeAt(2),ve=he.charCodeAt(3),Me=this.readData(4);return xe===Me[0]&&oe===Me[1]&&Oe===Me[2]&&ve===Me[3]},Ue.prototype.readData=function(he){if(this.checkOffset(he),he===0)return[];var xe=this.data.slice(this.zero+this.index,this.zero+this.index+he);return this.index+=he,xe},qe.exports=Ue},{"../utils":32,"./DataReader":18}],18:[function(Le,qe,ze){"use strict";var Ie=Le("../utils");function Ue(he){this.data=he,this.length=he.length,this.index=0,this.zero=0}Ue.prototype={checkOffset:function(he){this.checkIndex(this.index+he)},checkIndex:function(he){if(this.length<this.zero+he||he<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+he+"). Corrupted zip ?")},setIndex:function(he){this.checkIndex(he),this.index=he},skip:function(he){this.setIndex(this.index+he)},byteAt:function(){},readInt:function(he){var xe,oe=0;for(this.checkOffset(he),xe=this.index+he-1;xe>=this.index;xe--)oe=(oe<<8)+this.byteAt(xe);return this.index+=he,oe},readString:function(he){return Ie.transformTo("string",this.readData(he))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var he=this.readInt(4);return new Date(Date.UTC(1980+(he>>25&127),(he>>21&15)-1,he>>16&31,he>>11&31,he>>5&63,(31&he)<<1))}},qe.exports=Ue},{"../utils":32}],19:[function(Le,qe,ze){"use strict";var Ie=Le("./Uint8ArrayReader");function Ue(he){Ie.call(this,he)}Le("../utils").inherits(Ue,Ie),Ue.prototype.readData=function(he){this.checkOffset(he);var xe=this.data.slice(this.zero+this.index,this.zero+this.index+he);return this.index+=he,xe},qe.exports=Ue},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(Le,qe,ze){"use strict";var Ie=Le("./DataReader");function Ue(he){Ie.call(this,he)}Le("../utils").inherits(Ue,Ie),Ue.prototype.byteAt=function(he){return this.data.charCodeAt(this.zero+he)},Ue.prototype.lastIndexOfSignature=function(he){return this.data.lastIndexOf(he)-this.zero},Ue.prototype.readAndCheckSignature=function(he){return he===this.readData(4)},Ue.prototype.readData=function(he){this.checkOffset(he);var xe=this.data.slice(this.zero+this.index,this.zero+this.index+he);return this.index+=he,xe},qe.exports=Ue},{"../utils":32,"./DataReader":18}],21:[function(Le,qe,ze){"use strict";var Ie=Le("./ArrayReader");function Ue(he){Ie.call(this,he)}Le("../utils").inherits(Ue,Ie),Ue.prototype.readData=function(he){if(this.checkOffset(he),he===0)return new Uint8Array(0);var xe=this.data.subarray(this.zero+this.index,this.zero+this.index+he);return this.index+=he,xe},qe.exports=Ue},{"../utils":32,"./ArrayReader":17}],22:[function(Le,qe,ze){"use strict";var Ie=Le("../utils"),Ue=Le("../support"),he=Le("./ArrayReader"),xe=Le("./StringReader"),oe=Le("./NodeBufferReader"),Oe=Le("./Uint8ArrayReader");qe.exports=function(ve){var Me=Ie.getTypeOf(ve);return Ie.checkSupport(Me),Me!=="string"||Ue.uint8array?Me==="nodebuffer"?new oe(ve):Ue.uint8array?new Oe(Ie.transformTo("uint8array",ve)):new he(Ie.transformTo("array",ve)):new xe(ve)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(Le,qe,ze){"use strict";ze.LOCAL_FILE_HEADER="PK",ze.CENTRAL_FILE_HEADER="PK",ze.CENTRAL_DIRECTORY_END="PK",ze.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ze.ZIP64_CENTRAL_DIRECTORY_END="PK",ze.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(Le,qe,ze){"use strict";var Ie=Le("./GenericWorker"),Ue=Le("../utils");function he(xe){Ie.call(this,"ConvertWorker to "+xe),this.destType=xe}Ue.inherits(he,Ie),he.prototype.processChunk=function(xe){this.push({data:Ue.transformTo(this.destType,xe.data),meta:xe.meta})},qe.exports=he},{"../utils":32,"./GenericWorker":28}],25:[function(Le,qe,ze){"use strict";var Ie=Le("./GenericWorker"),Ue=Le("../crc32");function he(){Ie.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Le("../utils").inherits(he,Ie),he.prototype.processChunk=function(xe){this.streamInfo.crc32=Ue(xe.data,this.streamInfo.crc32||0),this.push(xe)},qe.exports=he},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(Le,qe,ze){"use strict";var Ie=Le("../utils"),Ue=Le("./GenericWorker");function he(xe){Ue.call(this,"DataLengthProbe for "+xe),this.propName=xe,this.withStreamInfo(xe,0)}Ie.inherits(he,Ue),he.prototype.processChunk=function(xe){if(xe){var oe=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=oe+xe.data.length}Ue.prototype.processChunk.call(this,xe)},qe.exports=he},{"../utils":32,"./GenericWorker":28}],27:[function(Le,qe,ze){"use strict";var Ie=Le("../utils"),Ue=Le("./GenericWorker");function he(xe){Ue.call(this,"DataWorker");var oe=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,xe.then(function(Oe){oe.dataIsReady=!0,oe.data=Oe,oe.max=Oe&&Oe.length||0,oe.type=Ie.getTypeOf(Oe),oe.isPaused||oe._tickAndRepeat()},function(Oe){oe.error(Oe)})}Ie.inherits(he,Ue),he.prototype.cleanUp=function(){Ue.prototype.cleanUp.call(this),this.data=null},he.prototype.resume=function(){return!!Ue.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Ie.delay(this._tickAndRepeat,[],this)),!0)},he.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Ie.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},he.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var xe=null,oe=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":xe=this.data.substring(this.index,oe);break;case"uint8array":xe=this.data.subarray(this.index,oe);break;case"array":case"nodebuffer":xe=this.data.slice(this.index,oe)}return this.index=oe,this.push({data:xe,meta:{percent:this.max?this.index/this.max*100:0}})},qe.exports=he},{"../utils":32,"./GenericWorker":28}],28:[function(Le,qe,ze){"use strict";function Ie(Ue){this.name=Ue||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}Ie.prototype={push:function(Ue){this.emit("data",Ue)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Ue){this.emit("error",Ue)}return!0},error:function(Ue){return!this.isFinished&&(this.isPaused?this.generatedError=Ue:(this.isFinished=!0,this.emit("error",Ue),this.previous&&this.previous.error(Ue),this.cleanUp()),!0)},on:function(Ue,he){return this._listeners[Ue].push(he),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Ue,he){if(this._listeners[Ue])for(var xe=0;xe<this._listeners[Ue].length;xe++)this._listeners[Ue][xe].call(this,he)},pipe:function(Ue){return Ue.registerPrevious(this)},registerPrevious:function(Ue){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Ue.streamInfo,this.mergeStreamInfo(),this.previous=Ue;var he=this;return Ue.on("data",function(xe){he.processChunk(xe)}),Ue.on("end",function(){he.end()}),Ue.on("error",function(xe){he.error(xe)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var Ue=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),Ue=!0),this.previous&&this.previous.resume(),!Ue},flush:function(){},processChunk:function(Ue){this.push(Ue)},withStreamInfo:function(Ue,he){return this.extraStreamInfo[Ue]=he,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Ue in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Ue)&&(this.streamInfo[Ue]=this.extraStreamInfo[Ue])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var Ue="Worker "+this.name;return this.previous?this.previous+" -> "+Ue:Ue}},qe.exports=Ie},{}],29:[function(Le,qe,ze){"use strict";var Ie=Le("../utils"),Ue=Le("./ConvertWorker"),he=Le("./GenericWorker"),xe=Le("../base64"),oe=Le("../support"),Oe=Le("../external"),ve=null;if(oe.nodestream)try{ve=Le("../nodejs/NodejsStreamOutputAdapter")}catch(Te){}function Me(Te,we){return new Oe.Promise(function(Ce,Ee){var ke=[],Ke=Te._internalType,Qe=Te._outputType,je=Te._mimeType;Te.on("data",function(Je,Ve){ke.push(Je),we&&we(Ve)}).on("error",function(Je){ke=[],Ee(Je)}).on("end",function(){try{var Je=function(Ve,ct,ot){switch(Ve){case"blob":return Ie.newBlob(Ie.transformTo("arraybuffer",ct),ot);case"base64":return xe.encode(ct);default:return Ie.transformTo(Ve,ct)}}(Qe,function(Ve,ct){var ot,pt=0,Ct=null,He=0;for(ot=0;ot<ct.length;ot++)He+=ct[ot].length;switch(Ve){case"string":return ct.join("");case"array":return Array.prototype.concat.apply([],ct);case"uint8array":for(Ct=new Uint8Array(He),ot=0;ot<ct.length;ot++)Ct.set(ct[ot],pt),pt+=ct[ot].length;return Ct;case"nodebuffer":return x.concat(ct);default:throw new Error("concat : unsupported type '"+Ve+"'")}}(Ke,ke),je);Ce(Je)}catch(Ve){Ee(Ve)}ke=[]}).resume()})}function Se(Te,we,Ce){var Ee=we;switch(we){case"blob":case"arraybuffer":Ee="uint8array";break;case"base64":Ee="string"}try{this._internalType=Ee,this._outputType=we,this._mimeType=Ce,Ie.checkSupport(Ee),this._worker=Te.pipe(new Ue(Ee)),Te.lock()}catch(ke){this._worker=new he("error"),this._worker.error(ke)}}Se.prototype={accumulate:function(Te){return Me(this,Te)},on:function(Te,we){var Ce=this;return Te==="data"?this._worker.on(Te,function(Ee){we.call(Ce,Ee.data,Ee.meta)}):this._worker.on(Te,function(){Ie.delay(we,arguments,Ce)}),this},resume:function(){return Ie.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Te){if(Ie.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new ve(this,{objectMode:this._outputType!=="nodebuffer"},Te)}},qe.exports=Se},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(Le,qe,ze){"use strict";if(ze.base64=!0,ze.array=!0,ze.string=!0,ze.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ze.nodebuffer=typeof x!="undefined",ze.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ze.blob=!1;else{var Ie=new ArrayBuffer(0);try{ze.blob=new Blob([Ie],{type:"application/zip"}).size===0}catch(he){try{var Ue=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Ue.append(Ie),ze.blob=Ue.getBlob("application/zip").size===0}catch(xe){ze.blob=!1}}}try{ze.nodestream=!!Le("readable-stream").Readable}catch(he){ze.nodestream=!1}},{"readable-stream":16}],31:[function(Le,qe,ze){"use strict";for(var Ie=Le("./utils"),Ue=Le("./support"),he=Le("./nodejsUtils"),xe=Le("./stream/GenericWorker"),oe=new Array(256),Oe=0;Oe<256;Oe++)oe[Oe]=252<=Oe?6:248<=Oe?5:240<=Oe?4:224<=Oe?3:192<=Oe?2:1;oe[254]=oe[254]=1;function ve(){xe.call(this,"utf-8 decode"),this.leftOver=null}function Me(){xe.call(this,"utf-8 encode")}ze.utf8encode=function(Se){return Ue.nodebuffer?he.newBufferFrom(Se,"utf-8"):function(Te){var we,Ce,Ee,ke,Ke,Qe=Te.length,je=0;for(ke=0;ke<Qe;ke++)(64512&(Ce=Te.charCodeAt(ke)))==55296&&ke+1<Qe&&(64512&(Ee=Te.charCodeAt(ke+1)))==56320&&(Ce=65536+(Ce-55296<<10)+(Ee-56320),ke++),je+=Ce<128?1:Ce<2048?2:Ce<65536?3:4;for(we=Ue.uint8array?new Uint8Array(je):new Array(je),ke=Ke=0;Ke<je;ke++)(64512&(Ce=Te.charCodeAt(ke)))==55296&&ke+1<Qe&&(64512&(Ee=Te.charCodeAt(ke+1)))==56320&&(Ce=65536+(Ce-55296<<10)+(Ee-56320),ke++),Ce<128?we[Ke++]=Ce:(Ce<2048?we[Ke++]=192|Ce>>>6:(Ce<65536?we[Ke++]=224|Ce>>>12:(we[Ke++]=240|Ce>>>18,we[Ke++]=128|Ce>>>12&63),we[Ke++]=128|Ce>>>6&63),we[Ke++]=128|63&Ce);return we}(Se)},ze.utf8decode=function(Se){return Ue.nodebuffer?Ie.transformTo("nodebuffer",Se).toString("utf-8"):function(Te){var we,Ce,Ee,ke,Ke=Te.length,Qe=new Array(2*Ke);for(we=Ce=0;we<Ke;)if((Ee=Te[we++])<128)Qe[Ce++]=Ee;else if(4<(ke=oe[Ee]))Qe[Ce++]=65533,we+=ke-1;else{for(Ee&=ke===2?31:ke===3?15:7;1<ke&&we<Ke;)Ee=Ee<<6|63&Te[we++],ke--;1<ke?Qe[Ce++]=65533:Ee<65536?Qe[Ce++]=Ee:(Ee-=65536,Qe[Ce++]=55296|Ee>>10&1023,Qe[Ce++]=56320|1023&Ee)}return Qe.length!==Ce&&(Qe.subarray?Qe=Qe.subarray(0,Ce):Qe.length=Ce),Ie.applyFromCharCode(Qe)}(Se=Ie.transformTo(Ue.uint8array?"uint8array":"array",Se))},Ie.inherits(ve,xe),ve.prototype.processChunk=function(Se){var Te=Ie.transformTo(Ue.uint8array?"uint8array":"array",Se.data);if(this.leftOver&&this.leftOver.length){if(Ue.uint8array){var we=Te;(Te=new Uint8Array(we.length+this.leftOver.length)).set(this.leftOver,0),Te.set(we,this.leftOver.length)}else Te=this.leftOver.concat(Te);this.leftOver=null}var Ce=function(ke,Ke){var Qe;for((Ke=Ke||ke.length)>ke.length&&(Ke=ke.length),Qe=Ke-1;0<=Qe&&(192&ke[Qe])==128;)Qe--;return Qe<0||Qe===0?Ke:Qe+oe[ke[Qe]]>Ke?Qe:Ke}(Te),Ee=Te;Ce!==Te.length&&(Ue.uint8array?(Ee=Te.subarray(0,Ce),this.leftOver=Te.subarray(Ce,Te.length)):(Ee=Te.slice(0,Ce),this.leftOver=Te.slice(Ce,Te.length))),this.push({data:ze.utf8decode(Ee),meta:Se.meta})},ve.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ze.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ze.Utf8DecodeWorker=ve,Ie.inherits(Me,xe),Me.prototype.processChunk=function(Se){this.push({data:ze.utf8encode(Se.data),meta:Se.meta})},ze.Utf8EncodeWorker=Me},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(Le,qe,ze){"use strict";var Ie=Le("./support"),Ue=Le("./base64"),he=Le("./nodejsUtils"),xe=Le("./external");function oe(we){return we}function Oe(we,Ce){for(var Ee=0;Ee<we.length;++Ee)Ce[Ee]=255&we.charCodeAt(Ee);return Ce}Le("setimmediate"),ze.newBlob=function(we,Ce){ze.checkSupport("blob");try{return new Blob([we],{type:Ce})}catch(ke){try{var Ee=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return Ee.append(we),Ee.getBlob(Ce)}catch(Ke){throw new Error("Bug : can't construct the Blob.")}}};var ve={stringifyByChunk:function(we,Ce,Ee){var ke=[],Ke=0,Qe=we.length;if(Qe<=Ee)return String.fromCharCode.apply(null,we);for(;Ke<Qe;)Ce==="array"||Ce==="nodebuffer"?ke.push(String.fromCharCode.apply(null,we.slice(Ke,Math.min(Ke+Ee,Qe)))):ke.push(String.fromCharCode.apply(null,we.subarray(Ke,Math.min(Ke+Ee,Qe)))),Ke+=Ee;return ke.join("")},stringifyByChar:function(we){for(var Ce="",Ee=0;Ee<we.length;Ee++)Ce+=String.fromCharCode(we[Ee]);return Ce},applyCanBeUsed:{uint8array:function(){try{return Ie.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(we){return!1}}(),nodebuffer:function(){try{return Ie.nodebuffer&&String.fromCharCode.apply(null,he.allocBuffer(1)).length===1}catch(we){return!1}}()}};function Me(we){var Ce=65536,Ee=ze.getTypeOf(we),ke=!0;if(Ee==="uint8array"?ke=ve.applyCanBeUsed.uint8array:Ee==="nodebuffer"&&(ke=ve.applyCanBeUsed.nodebuffer),ke)for(;1<Ce;)try{return ve.stringifyByChunk(we,Ee,Ce)}catch(Ke){Ce=Math.floor(Ce/2)}return ve.stringifyByChar(we)}function Se(we,Ce){for(var Ee=0;Ee<we.length;Ee++)Ce[Ee]=we[Ee];return Ce}ze.applyFromCharCode=Me;var Te={};Te.string={string:oe,array:function(we){return Oe(we,new Array(we.length))},arraybuffer:function(we){return Te.string.uint8array(we).buffer},uint8array:function(we){return Oe(we,new Uint8Array(we.length))},nodebuffer:function(we){return Oe(we,he.allocBuffer(we.length))}},Te.array={string:Me,array:oe,arraybuffer:function(we){return new Uint8Array(we).buffer},uint8array:function(we){return new Uint8Array(we)},nodebuffer:function(we){return he.newBufferFrom(we)}},Te.arraybuffer={string:function(we){return Me(new Uint8Array(we))},array:function(we){return Se(new Uint8Array(we),new Array(we.byteLength))},arraybuffer:oe,uint8array:function(we){return new Uint8Array(we)},nodebuffer:function(we){return he.newBufferFrom(new Uint8Array(we))}},Te.uint8array={string:Me,array:function(we){return Se(we,new Array(we.length))},arraybuffer:function(we){return we.buffer},uint8array:oe,nodebuffer:function(we){return he.newBufferFrom(we)}},Te.nodebuffer={string:Me,array:function(we){return Se(we,new Array(we.length))},arraybuffer:function(we){return Te.nodebuffer.uint8array(we).buffer},uint8array:function(we){return Se(we,new Uint8Array(we.length))},nodebuffer:oe},ze.transformTo=function(we,Ce){if(Ce=Ce||"",!we)return Ce;ze.checkSupport(we);var Ee=ze.getTypeOf(Ce);return Te[Ee][we](Ce)},ze.resolve=function(we){for(var Ce=we.split("/"),Ee=[],ke=0;ke<Ce.length;ke++){var Ke=Ce[ke];Ke==="."||Ke===""&&ke!==0&&ke!==Ce.length-1||(Ke===".."?Ee.pop():Ee.push(Ke))}return Ee.join("/")},ze.getTypeOf=function(we){return typeof we=="string"?"string":Object.prototype.toString.call(we)==="[object Array]"?"array":Ie.nodebuffer&&he.isBuffer(we)?"nodebuffer":Ie.uint8array&&we instanceof Uint8Array?"uint8array":Ie.arraybuffer&&we instanceof ArrayBuffer?"arraybuffer":void 0},ze.checkSupport=function(we){if(!Ie[we.toLowerCase()])throw new Error(we+" is not supported by this platform")},ze.MAX_VALUE_16BITS=65535,ze.MAX_VALUE_32BITS=-1,ze.pretty=function(we){var Ce,Ee,ke="";for(Ee=0;Ee<(we||"").length;Ee++)ke+="\\x"+((Ce=we.charCodeAt(Ee))<16?"0":"")+Ce.toString(16).toUpperCase();return ke},ze.delay=function(we,Ce,Ee){setImmediate(function(){we.apply(Ee||null,Ce||[])})},ze.inherits=function(we,Ce){function Ee(){}Ee.prototype=Ce.prototype,we.prototype=new Ee},ze.extend=function(){var we,Ce,Ee={};for(we=0;we<arguments.length;we++)for(Ce in arguments[we])Object.prototype.hasOwnProperty.call(arguments[we],Ce)&&Ee[Ce]===void 0&&(Ee[Ce]=arguments[we][Ce]);return Ee},ze.prepareContent=function(we,Ce,Ee,ke,Ke){return xe.Promise.resolve(Ce).then(function(Qe){return Ie.blob&&(Qe instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(Qe))!==-1)&&typeof FileReader!="undefined"?new xe.Promise(function(je,Je){var Ve=new FileReader;Ve.onload=function(ct){je(ct.target.result)},Ve.onerror=function(ct){Je(ct.target.error)},Ve.readAsArrayBuffer(Qe)}):Qe}).then(function(Qe){var je=ze.getTypeOf(Qe);return je?(je==="arraybuffer"?Qe=ze.transformTo("uint8array",Qe):je==="string"&&(Ke?Qe=Ue.decode(Qe):Ee&&ke!==!0&&(Qe=function(Je){return Oe(Je,Ie.uint8array?new Uint8Array(Je.length):new Array(Je.length))}(Qe))),Qe):xe.Promise.reject(new Error("Can't read the data of '"+we+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(Le,qe,ze){"use strict";var Ie=Le("./reader/readerFor"),Ue=Le("./utils"),he=Le("./signature"),xe=Le("./zipEntry"),oe=Le("./support");function Oe(ve){this.files=[],this.loadOptions=ve}Oe.prototype={checkSignature:function(ve){if(!this.reader.readAndCheckSignature(ve)){this.reader.index-=4;var Me=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Ue.pretty(Me)+", expected "+Ue.pretty(ve)+")")}},isSignature:function(ve,Me){var Se=this.reader.index;this.reader.setIndex(ve);var Te=this.reader.readString(4)===Me;return this.reader.setIndex(Se),Te},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var ve=this.reader.readData(this.zipCommentLength),Me=oe.uint8array?"uint8array":"array",Se=Ue.transformTo(Me,ve);this.zipComment=this.loadOptions.decodeFileName(Se)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var ve,Me,Se,Te=this.zip64EndOfCentralSize-44;0<Te;)ve=this.reader.readInt(2),Me=this.reader.readInt(4),Se=this.reader.readData(Me),this.zip64ExtensibleData[ve]={id:ve,length:Me,value:Se}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var ve,Me;for(ve=0;ve<this.files.length;ve++)Me=this.files[ve],this.reader.setIndex(Me.localHeaderOffset),this.checkSignature(he.LOCAL_FILE_HEADER),Me.readLocalPart(this.reader),Me.handleUTF8(),Me.processAttributes()},readCentralDir:function(){var ve;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(he.CENTRAL_FILE_HEADER);)(ve=new xe({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(ve);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var ve=this.reader.lastIndexOfSignature(he.CENTRAL_DIRECTORY_END);if(ve<0)throw this.isSignature(0,he.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(ve);var Me=ve;if(this.checkSignature(he.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Ue.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Ue.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Ue.MAX_VALUE_16BITS||this.centralDirRecords===Ue.MAX_VALUE_16BITS||this.centralDirSize===Ue.MAX_VALUE_32BITS||this.centralDirOffset===Ue.MAX_VALUE_32BITS){if(this.zip64=!0,(ve=this.reader.lastIndexOfSignature(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(ve),this.checkSignature(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,he.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(he.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(he.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var Se=this.centralDirOffset+this.centralDirSize;this.zip64&&(Se+=20,Se+=12+this.zip64EndOfCentralSize);var Te=Me-Se;if(0<Te)this.isSignature(Me,he.CENTRAL_FILE_HEADER)||(this.reader.zero=Te);else if(Te<0)throw new Error("Corrupted zip: missing "+Math.abs(Te)+" bytes.")},prepareReader:function(ve){this.reader=Ie(ve)},load:function(ve){this.prepareReader(ve),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},qe.exports=Oe},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(Le,qe,ze){"use strict";var Ie=Le("./reader/readerFor"),Ue=Le("./utils"),he=Le("./compressedObject"),xe=Le("./crc32"),oe=Le("./utf8"),Oe=Le("./compressions"),ve=Le("./support");function Me(Se,Te){this.options=Se,this.loadOptions=Te}Me.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(Se){var Te,we;if(Se.skip(22),this.fileNameLength=Se.readInt(2),we=Se.readInt(2),this.fileName=Se.readData(this.fileNameLength),Se.skip(we),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((Te=function(Ce){for(var Ee in Oe)if(Object.prototype.hasOwnProperty.call(Oe,Ee)&&Oe[Ee].magic===Ce)return Oe[Ee];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+Ue.pretty(this.compressionMethod)+" unknown (inner file : "+Ue.transformTo("string",this.fileName)+")");this.decompressed=new he(this.compressedSize,this.uncompressedSize,this.crc32,Te,Se.readData(this.compressedSize))},readCentralPart:function(Se){this.versionMadeBy=Se.readInt(2),Se.skip(2),this.bitFlag=Se.readInt(2),this.compressionMethod=Se.readString(2),this.date=Se.readDate(),this.crc32=Se.readInt(4),this.compressedSize=Se.readInt(4),this.uncompressedSize=Se.readInt(4);var Te=Se.readInt(2);if(this.extraFieldsLength=Se.readInt(2),this.fileCommentLength=Se.readInt(2),this.diskNumberStart=Se.readInt(2),this.internalFileAttributes=Se.readInt(2),this.externalFileAttributes=Se.readInt(4),this.localHeaderOffset=Se.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");Se.skip(Te),this.readExtraFields(Se),this.parseZIP64ExtraField(Se),this.fileComment=Se.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Se=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),Se==0&&(this.dosPermissions=63&this.externalFileAttributes),Se==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var Se=Ie(this.extraFields[1].value);this.uncompressedSize===Ue.MAX_VALUE_32BITS&&(this.uncompressedSize=Se.readInt(8)),this.compressedSize===Ue.MAX_VALUE_32BITS&&(this.compressedSize=Se.readInt(8)),this.localHeaderOffset===Ue.MAX_VALUE_32BITS&&(this.localHeaderOffset=Se.readInt(8)),this.diskNumberStart===Ue.MAX_VALUE_32BITS&&(this.diskNumberStart=Se.readInt(4))}},readExtraFields:function(Se){var Te,we,Ce,Ee=Se.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});Se.index+4<Ee;)Te=Se.readInt(2),we=Se.readInt(2),Ce=Se.readData(we),this.extraFields[Te]={id:Te,length:we,value:Ce};Se.setIndex(Ee)},handleUTF8:function(){var Se=ve.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=oe.utf8decode(this.fileName),this.fileCommentStr=oe.utf8decode(this.fileComment);else{var Te=this.findExtraFieldUnicodePath();if(Te!==null)this.fileNameStr=Te;else{var we=Ue.transformTo(Se,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(we)}var Ce=this.findExtraFieldUnicodeComment();if(Ce!==null)this.fileCommentStr=Ce;else{var Ee=Ue.transformTo(Se,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Ee)}}},findExtraFieldUnicodePath:function(){var Se=this.extraFields[28789];if(Se){var Te=Ie(Se.value);return Te.readInt(1)!==1||xe(this.fileName)!==Te.readInt(4)?null:oe.utf8decode(Te.readData(Se.length-5))}return null},findExtraFieldUnicodeComment:function(){var Se=this.extraFields[25461];if(Se){var Te=Ie(Se.value);return Te.readInt(1)!==1||xe(this.fileComment)!==Te.readInt(4)?null:oe.utf8decode(Te.readData(Se.length-5))}return null}},qe.exports=Me},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(Le,qe,ze){"use strict";function Ie(Te,we,Ce){this.name=Te,this.dir=Ce.dir,this.date=Ce.date,this.comment=Ce.comment,this.unixPermissions=Ce.unixPermissions,this.dosPermissions=Ce.dosPermissions,this._data=we,this._dataBinary=Ce.binary,this.options={compression:Ce.compression,compressionOptions:Ce.compressionOptions}}var Ue=Le("./stream/StreamHelper"),he=Le("./stream/DataWorker"),xe=Le("./utf8"),oe=Le("./compressedObject"),Oe=Le("./stream/GenericWorker");Ie.prototype={internalStream:function(Te){var we=null,Ce="string";try{if(!Te)throw new Error("No output type specified.");var Ee=(Ce=Te.toLowerCase())==="string"||Ce==="text";Ce!=="binarystring"&&Ce!=="text"||(Ce="string"),we=this._decompressWorker();var ke=!this._dataBinary;ke&&!Ee&&(we=we.pipe(new xe.Utf8EncodeWorker)),!ke&&Ee&&(we=we.pipe(new xe.Utf8DecodeWorker))}catch(Ke){(we=new Oe("error")).error(Ke)}return new Ue(we,Ce,"")},async:function(Te,we){return this.internalStream(Te).accumulate(we)},nodeStream:function(Te,we){return this.internalStream(Te||"nodebuffer").toNodejsStream(we)},_compressWorker:function(Te,we){if(this._data instanceof oe&&this._data.compression.magic===Te.magic)return this._data.getCompressedWorker();var Ce=this._decompressWorker();return this._dataBinary||(Ce=Ce.pipe(new xe.Utf8EncodeWorker)),oe.createWorkerFrom(Ce,Te,we)},_decompressWorker:function(){return this._data instanceof oe?this._data.getContentWorker():this._data instanceof Oe?this._data:new he(this._data)}};for(var ve=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Me=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Se=0;Se<ve.length;Se++)Ie.prototype[ve[Se]]=Me;qe.exports=Ie},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(Le,qe,ze){(function(Ie){"use strict";var Ue,he,xe=Ie.MutationObserver||Ie.WebKitMutationObserver;if(xe){var oe=0,Oe=new xe(Te),ve=Ie.document.createTextNode("");Oe.observe(ve,{characterData:!0}),Ue=function(){ve.data=oe=++oe%2}}else if(Ie.setImmediate||Ie.MessageChannel===void 0)Ue="document"in Ie&&"onreadystatechange"in Ie.document.createElement("script")?function(){var we=Ie.document.createElement("script");we.onreadystatechange=function(){Te(),we.onreadystatechange=null,we.parentNode.removeChild(we),we=null},Ie.document.documentElement.appendChild(we)}:function(){setTimeout(Te,0)};else{var Me=new Ie.MessageChannel;Me.port1.onmessage=Te,Ue=function(){Me.port2.postMessage(0)}}var Se=[];function Te(){var we,Ce;he=!0;for(var Ee=Se.length;Ee;){for(Ce=Se,Se=[],we=-1;++we<Ee;)Ce[we]();Ee=Se.length}he=!1}qe.exports=function(we){Se.push(we)!==1||he||Ue()}}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(Le,qe,ze){"use strict";var Ie=Le("immediate");function Ue(){}var he={},xe=["REJECTED"],oe=["FULFILLED"],Oe=["PENDING"];function ve(Ee){if(typeof Ee!="function")throw new TypeError("resolver must be a function");this.state=Oe,this.queue=[],this.outcome=void 0,Ee!==Ue&&we(this,Ee)}function Me(Ee,ke,Ke){this.promise=Ee,typeof ke=="function"&&(this.onFulfilled=ke,this.callFulfilled=this.otherCallFulfilled),typeof Ke=="function"&&(this.onRejected=Ke,this.callRejected=this.otherCallRejected)}function Se(Ee,ke,Ke){Ie(function(){var Qe;try{Qe=ke(Ke)}catch(je){return he.reject(Ee,je)}Qe===Ee?he.reject(Ee,new TypeError("Cannot resolve promise with itself")):he.resolve(Ee,Qe)})}function Te(Ee){var ke=Ee&&Ee.then;if(Ee&&(typeof Ee=="object"||typeof Ee=="function")&&typeof ke=="function")return function(){ke.apply(Ee,arguments)}}function we(Ee,ke){var Ke=!1;function Qe(Ve){Ke||(Ke=!0,he.reject(Ee,Ve))}function je(Ve){Ke||(Ke=!0,he.resolve(Ee,Ve))}var Je=Ce(function(){ke(je,Qe)});Je.status==="error"&&Qe(Je.value)}function Ce(Ee,ke){var Ke={};try{Ke.value=Ee(ke),Ke.status="success"}catch(Qe){Ke.status="error",Ke.value=Qe}return Ke}(qe.exports=ve).prototype.finally=function(Ee){if(typeof Ee!="function")return this;var ke=this.constructor;return this.then(function(Ke){return ke.resolve(Ee()).then(function(){return Ke})},function(Ke){return ke.resolve(Ee()).then(function(){throw Ke})})},ve.prototype.catch=function(Ee){return this.then(null,Ee)},ve.prototype.then=function(Ee,ke){if(typeof Ee!="function"&&this.state===oe||typeof ke!="function"&&this.state===xe)return this;var Ke=new this.constructor(Ue);return this.state!==Oe?Se(Ke,this.state===oe?Ee:ke,this.outcome):this.queue.push(new Me(Ke,Ee,ke)),Ke},Me.prototype.callFulfilled=function(Ee){he.resolve(this.promise,Ee)},Me.prototype.otherCallFulfilled=function(Ee){Se(this.promise,this.onFulfilled,Ee)},Me.prototype.callRejected=function(Ee){he.reject(this.promise,Ee)},Me.prototype.otherCallRejected=function(Ee){Se(this.promise,this.onRejected,Ee)},he.resolve=function(Ee,ke){var Ke=Ce(Te,ke);if(Ke.status==="error")return he.reject(Ee,Ke.value);var Qe=Ke.value;if(Qe)we(Ee,Qe);else{Ee.state=oe,Ee.outcome=ke;for(var je=-1,Je=Ee.queue.length;++je<Je;)Ee.queue[je].callFulfilled(ke)}return Ee},he.reject=function(Ee,ke){Ee.state=xe,Ee.outcome=ke;for(var Ke=-1,Qe=Ee.queue.length;++Ke<Qe;)Ee.queue[Ke].callRejected(ke);return Ee},ve.resolve=function(Ee){return Ee instanceof this?Ee:he.resolve(new this(Ue),Ee)},ve.reject=function(Ee){var ke=new this(Ue);return he.reject(ke,Ee)},ve.all=function(Ee){var ke=this;if(Object.prototype.toString.call(Ee)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Ke=Ee.length,Qe=!1;if(!Ke)return this.resolve([]);for(var je=new Array(Ke),Je=0,Ve=-1,ct=new this(Ue);++Ve<Ke;)ot(Ee[Ve],Ve);return ct;function ot(pt,Ct){ke.resolve(pt).then(function(He){je[Ct]=He,++Je!==Ke||Qe||(Qe=!0,he.resolve(ct,je))},function(He){Qe||(Qe=!0,he.reject(ct,He))})}},ve.race=function(Ee){var ke=this;if(Object.prototype.toString.call(Ee)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Ke=Ee.length,Qe=!1;if(!Ke)return this.resolve([]);for(var je=-1,Je=new this(Ue);++je<Ke;)Ve=Ee[je],ke.resolve(Ve).then(function(ct){Qe||(Qe=!0,he.resolve(Je,ct))},function(ct){Qe||(Qe=!0,he.reject(Je,ct))});var Ve;return Je}},{immediate:36}],38:[function(Le,qe,ze){"use strict";var Ie={};(0,Le("./lib/utils/common").assign)(Ie,Le("./lib/deflate"),Le("./lib/inflate"),Le("./lib/zlib/constants")),qe.exports=Ie},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(Le,qe,ze){"use strict";var Ie=Le("./zlib/deflate"),Ue=Le("./utils/common"),he=Le("./utils/strings"),xe=Le("./zlib/messages"),oe=Le("./zlib/zstream"),Oe=Object.prototype.toString,ve=0,Me=-1,Se=0,Te=8;function we(Ee){if(!(this instanceof we))return new we(Ee);this.options=Ue.assign({level:Me,method:Te,chunkSize:16384,windowBits:15,memLevel:8,strategy:Se,to:""},Ee||{});var ke=this.options;ke.raw&&0<ke.windowBits?ke.windowBits=-ke.windowBits:ke.gzip&&0<ke.windowBits&&ke.windowBits<16&&(ke.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new oe,this.strm.avail_out=0;var Ke=Ie.deflateInit2(this.strm,ke.level,ke.method,ke.windowBits,ke.memLevel,ke.strategy);if(Ke!==ve)throw new Error(xe[Ke]);if(ke.header&&Ie.deflateSetHeader(this.strm,ke.header),ke.dictionary){var Qe;if(Qe=typeof ke.dictionary=="string"?he.string2buf(ke.dictionary):Oe.call(ke.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ke.dictionary):ke.dictionary,(Ke=Ie.deflateSetDictionary(this.strm,Qe))!==ve)throw new Error(xe[Ke]);this._dict_set=!0}}function Ce(Ee,ke){var Ke=new we(ke);if(Ke.push(Ee,!0),Ke.err)throw Ke.msg||xe[Ke.err];return Ke.result}we.prototype.push=function(Ee,ke){var Ke,Qe,je=this.strm,Je=this.options.chunkSize;if(this.ended)return!1;Qe=ke===~~ke?ke:ke===!0?4:0,typeof Ee=="string"?je.input=he.string2buf(Ee):Oe.call(Ee)==="[object ArrayBuffer]"?je.input=new Uint8Array(Ee):je.input=Ee,je.next_in=0,je.avail_in=je.input.length;do{if(je.avail_out===0&&(je.output=new Ue.Buf8(Je),je.next_out=0,je.avail_out=Je),(Ke=Ie.deflate(je,Qe))!==1&&Ke!==ve)return this.onEnd(Ke),!(this.ended=!0);je.avail_out!==0&&(je.avail_in!==0||Qe!==4&&Qe!==2)||(this.options.to==="string"?this.onData(he.buf2binstring(Ue.shrinkBuf(je.output,je.next_out))):this.onData(Ue.shrinkBuf(je.output,je.next_out)))}while((0<je.avail_in||je.avail_out===0)&&Ke!==1);return Qe===4?(Ke=Ie.deflateEnd(this.strm),this.onEnd(Ke),this.ended=!0,Ke===ve):Qe!==2||(this.onEnd(ve),!(je.avail_out=0))},we.prototype.onData=function(Ee){this.chunks.push(Ee)},we.prototype.onEnd=function(Ee){Ee===ve&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ue.flattenChunks(this.chunks)),this.chunks=[],this.err=Ee,this.msg=this.strm.msg},ze.Deflate=we,ze.deflate=Ce,ze.deflateRaw=function(Ee,ke){return(ke=ke||{}).raw=!0,Ce(Ee,ke)},ze.gzip=function(Ee,ke){return(ke=ke||{}).gzip=!0,Ce(Ee,ke)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(Le,qe,ze){"use strict";var Ie=Le("./zlib/inflate"),Ue=Le("./utils/common"),he=Le("./utils/strings"),xe=Le("./zlib/constants"),oe=Le("./zlib/messages"),Oe=Le("./zlib/zstream"),ve=Le("./zlib/gzheader"),Me=Object.prototype.toString;function Se(we){if(!(this instanceof Se))return new Se(we);this.options=Ue.assign({chunkSize:16384,windowBits:0,to:""},we||{});var Ce=this.options;Ce.raw&&0<=Ce.windowBits&&Ce.windowBits<16&&(Ce.windowBits=-Ce.windowBits,Ce.windowBits===0&&(Ce.windowBits=-15)),!(0<=Ce.windowBits&&Ce.windowBits<16)||we&&we.windowBits||(Ce.windowBits+=32),15<Ce.windowBits&&Ce.windowBits<48&&!(15&Ce.windowBits)&&(Ce.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Oe,this.strm.avail_out=0;var Ee=Ie.inflateInit2(this.strm,Ce.windowBits);if(Ee!==xe.Z_OK)throw new Error(oe[Ee]);this.header=new ve,Ie.inflateGetHeader(this.strm,this.header)}function Te(we,Ce){var Ee=new Se(Ce);if(Ee.push(we,!0),Ee.err)throw Ee.msg||oe[Ee.err];return Ee.result}Se.prototype.push=function(we,Ce){var Ee,ke,Ke,Qe,je,Je,Ve=this.strm,ct=this.options.chunkSize,ot=this.options.dictionary,pt=!1;if(this.ended)return!1;ke=Ce===~~Ce?Ce:Ce===!0?xe.Z_FINISH:xe.Z_NO_FLUSH,typeof we=="string"?Ve.input=he.binstring2buf(we):Me.call(we)==="[object ArrayBuffer]"?Ve.input=new Uint8Array(we):Ve.input=we,Ve.next_in=0,Ve.avail_in=Ve.input.length;do{if(Ve.avail_out===0&&(Ve.output=new Ue.Buf8(ct),Ve.next_out=0,Ve.avail_out=ct),(Ee=Ie.inflate(Ve,xe.Z_NO_FLUSH))===xe.Z_NEED_DICT&&ot&&(Je=typeof ot=="string"?he.string2buf(ot):Me.call(ot)==="[object ArrayBuffer]"?new Uint8Array(ot):ot,Ee=Ie.inflateSetDictionary(this.strm,Je)),Ee===xe.Z_BUF_ERROR&&pt===!0&&(Ee=xe.Z_OK,pt=!1),Ee!==xe.Z_STREAM_END&&Ee!==xe.Z_OK)return this.onEnd(Ee),!(this.ended=!0);Ve.next_out&&(Ve.avail_out!==0&&Ee!==xe.Z_STREAM_END&&(Ve.avail_in!==0||ke!==xe.Z_FINISH&&ke!==xe.Z_SYNC_FLUSH)||(this.options.to==="string"?(Ke=he.utf8border(Ve.output,Ve.next_out),Qe=Ve.next_out-Ke,je=he.buf2string(Ve.output,Ke),Ve.next_out=Qe,Ve.avail_out=ct-Qe,Qe&&Ue.arraySet(Ve.output,Ve.output,Ke,Qe,0),this.onData(je)):this.onData(Ue.shrinkBuf(Ve.output,Ve.next_out)))),Ve.avail_in===0&&Ve.avail_out===0&&(pt=!0)}while((0<Ve.avail_in||Ve.avail_out===0)&&Ee!==xe.Z_STREAM_END);return Ee===xe.Z_STREAM_END&&(ke=xe.Z_FINISH),ke===xe.Z_FINISH?(Ee=Ie.inflateEnd(this.strm),this.onEnd(Ee),this.ended=!0,Ee===xe.Z_OK):ke!==xe.Z_SYNC_FLUSH||(this.onEnd(xe.Z_OK),!(Ve.avail_out=0))},Se.prototype.onData=function(we){this.chunks.push(we)},Se.prototype.onEnd=function(we){we===xe.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ue.flattenChunks(this.chunks)),this.chunks=[],this.err=we,this.msg=this.strm.msg},ze.Inflate=Se,ze.inflate=Te,ze.inflateRaw=function(we,Ce){return(Ce=Ce||{}).raw=!0,Te(we,Ce)},ze.ungzip=Te},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(Le,qe,ze){"use strict";var Ie=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ze.assign=function(xe){for(var oe=Array.prototype.slice.call(arguments,1);oe.length;){var Oe=oe.shift();if(Oe){if(typeof Oe!="object")throw new TypeError(Oe+"must be non-object");for(var ve in Oe)Oe.hasOwnProperty(ve)&&(xe[ve]=Oe[ve])}}return xe},ze.shrinkBuf=function(xe,oe){return xe.length===oe?xe:xe.subarray?xe.subarray(0,oe):(xe.length=oe,xe)};var Ue={arraySet:function(xe,oe,Oe,ve,Me){if(oe.subarray&&xe.subarray)xe.set(oe.subarray(Oe,Oe+ve),Me);else for(var Se=0;Se<ve;Se++)xe[Me+Se]=oe[Oe+Se]},flattenChunks:function(xe){var oe,Oe,ve,Me,Se,Te;for(oe=ve=0,Oe=xe.length;oe<Oe;oe++)ve+=xe[oe].length;for(Te=new Uint8Array(ve),oe=Me=0,Oe=xe.length;oe<Oe;oe++)Se=xe[oe],Te.set(Se,Me),Me+=Se.length;return Te}},he={arraySet:function(xe,oe,Oe,ve,Me){for(var Se=0;Se<ve;Se++)xe[Me+Se]=oe[Oe+Se]},flattenChunks:function(xe){return[].concat.apply([],xe)}};ze.setTyped=function(xe){xe?(ze.Buf8=Uint8Array,ze.Buf16=Uint16Array,ze.Buf32=Int32Array,ze.assign(ze,Ue)):(ze.Buf8=Array,ze.Buf16=Array,ze.Buf32=Array,ze.assign(ze,he))},ze.setTyped(Ie)},{}],42:[function(Le,qe,ze){"use strict";var Ie=Le("./common"),Ue=!0,he=!0;try{String.fromCharCode.apply(null,[0])}catch(ve){Ue=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(ve){he=!1}for(var xe=new Ie.Buf8(256),oe=0;oe<256;oe++)xe[oe]=252<=oe?6:248<=oe?5:240<=oe?4:224<=oe?3:192<=oe?2:1;function Oe(ve,Me){if(Me<65537&&(ve.subarray&&he||!ve.subarray&&Ue))return String.fromCharCode.apply(null,Ie.shrinkBuf(ve,Me));for(var Se="",Te=0;Te<Me;Te++)Se+=String.fromCharCode(ve[Te]);return Se}xe[254]=xe[254]=1,ze.string2buf=function(ve){var Me,Se,Te,we,Ce,Ee=ve.length,ke=0;for(we=0;we<Ee;we++)(64512&(Se=ve.charCodeAt(we)))==55296&&we+1<Ee&&(64512&(Te=ve.charCodeAt(we+1)))==56320&&(Se=65536+(Se-55296<<10)+(Te-56320),we++),ke+=Se<128?1:Se<2048?2:Se<65536?3:4;for(Me=new Ie.Buf8(ke),we=Ce=0;Ce<ke;we++)(64512&(Se=ve.charCodeAt(we)))==55296&&we+1<Ee&&(64512&(Te=ve.charCodeAt(we+1)))==56320&&(Se=65536+(Se-55296<<10)+(Te-56320),we++),Se<128?Me[Ce++]=Se:(Se<2048?Me[Ce++]=192|Se>>>6:(Se<65536?Me[Ce++]=224|Se>>>12:(Me[Ce++]=240|Se>>>18,Me[Ce++]=128|Se>>>12&63),Me[Ce++]=128|Se>>>6&63),Me[Ce++]=128|63&Se);return Me},ze.buf2binstring=function(ve){return Oe(ve,ve.length)},ze.binstring2buf=function(ve){for(var Me=new Ie.Buf8(ve.length),Se=0,Te=Me.length;Se<Te;Se++)Me[Se]=ve.charCodeAt(Se);return Me},ze.buf2string=function(ve,Me){var Se,Te,we,Ce,Ee=Me||ve.length,ke=new Array(2*Ee);for(Se=Te=0;Se<Ee;)if((we=ve[Se++])<128)ke[Te++]=we;else if(4<(Ce=xe[we]))ke[Te++]=65533,Se+=Ce-1;else{for(we&=Ce===2?31:Ce===3?15:7;1<Ce&&Se<Ee;)we=we<<6|63&ve[Se++],Ce--;1<Ce?ke[Te++]=65533:we<65536?ke[Te++]=we:(we-=65536,ke[Te++]=55296|we>>10&1023,ke[Te++]=56320|1023&we)}return Oe(ke,Te)},ze.utf8border=function(ve,Me){var Se;for((Me=Me||ve.length)>ve.length&&(Me=ve.length),Se=Me-1;0<=Se&&(192&ve[Se])==128;)Se--;return Se<0||Se===0?Me:Se+xe[ve[Se]]>Me?Se:Me}},{"./common":41}],43:[function(Le,qe,ze){"use strict";qe.exports=function(Ie,Ue,he,xe){for(var oe=65535&Ie|0,Oe=Ie>>>16&65535|0,ve=0;he!==0;){for(he-=ve=2e3<he?2e3:he;Oe=Oe+(oe=oe+Ue[xe++]|0)|0,--ve;);oe%=65521,Oe%=65521}return oe|Oe<<16|0}},{}],44:[function(Le,qe,ze){"use strict";qe.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(Le,qe,ze){"use strict";var Ie=function(){for(var Ue,he=[],xe=0;xe<256;xe++){Ue=xe;for(var oe=0;oe<8;oe++)Ue=1&Ue?3988292384^Ue>>>1:Ue>>>1;he[xe]=Ue}return he}();qe.exports=function(Ue,he,xe,oe){var Oe=Ie,ve=oe+xe;Ue^=-1;for(var Me=oe;Me<ve;Me++)Ue=Ue>>>8^Oe[255&(Ue^he[Me])];return-1^Ue}},{}],46:[function(Le,qe,ze){"use strict";var Ie,Ue=Le("../utils/common"),he=Le("./trees"),xe=Le("./adler32"),oe=Le("./crc32"),Oe=Le("./messages"),ve=0,Me=4,Se=0,Te=-2,we=-1,Ce=4,Ee=2,ke=8,Ke=9,Qe=286,je=30,Je=19,Ve=2*Qe+1,ct=15,ot=3,pt=258,Ct=pt+ot+1,He=42,ht=113,_e=1,Re=2,Ot=3,it=4;function at(de,pe){return de.msg=Oe[pe],pe}function Et(de){return(de<<1)-(4<de?9:0)}function Ze(de){for(var pe=de.length;0<=--pe;)de[pe]=0}function De(de){var pe=de.state,ie=pe.pending;ie>de.avail_out&&(ie=de.avail_out),ie!==0&&(Ue.arraySet(de.output,pe.pending_buf,pe.pending_out,ie,de.next_out),de.next_out+=ie,pe.pending_out+=ie,de.total_out+=ie,de.avail_out-=ie,pe.pending-=ie,pe.pending===0&&(pe.pending_out=0))}function ut(de,pe){he._tr_flush_block(de,0<=de.block_start?de.block_start:-1,de.strstart-de.block_start,pe),de.block_start=de.strstart,De(de.strm)}function Zt(de,pe){de.pending_buf[de.pending++]=pe}function Kt(de,pe){de.pending_buf[de.pending++]=pe>>>8&255,de.pending_buf[de.pending++]=255&pe}function tt(de,pe){var ie,ee,se=de.max_chain_length,le=de.strstart,Be=de.prev_length,We=de.nice_match,st=de.strstart>de.w_size-Ct?de.strstart-(de.w_size-Ct):0,mt=de.window,vt=de.w_mask,St=de.prev,_t=de.strstart+pt,Qt=mt[le+Be-1],xt=mt[le+Be];de.prev_length>=de.good_match&&(se>>=2),We>de.lookahead&&(We=de.lookahead);do if(mt[(ie=pe)+Be]===xt&&mt[ie+Be-1]===Qt&&mt[ie]===mt[le]&&mt[++ie]===mt[le+1]){le+=2,ie++;do;while(mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&le<_t);if(ee=pt-(_t-le),le=_t-pt,Be<ee){if(de.match_start=pe,We<=(Be=ee))break;Qt=mt[le+Be-1],xt=mt[le+Be]}}while((pe=St[pe&vt])>st&&--se!=0);return Be<=de.lookahead?Be:de.lookahead}function Dt(de){var pe,ie,ee,se,le,Be,We,st,mt,vt,St=de.w_size;do{if(se=de.window_size-de.lookahead-de.strstart,de.strstart>=St+(St-Ct)){for(Ue.arraySet(de.window,de.window,St,St,0),de.match_start-=St,de.strstart-=St,de.block_start-=St,pe=ie=de.hash_size;ee=de.head[--pe],de.head[pe]=St<=ee?ee-St:0,--ie;);for(pe=ie=St;ee=de.prev[--pe],de.prev[pe]=St<=ee?ee-St:0,--ie;);se+=St}if(de.strm.avail_in===0)break;if(Be=de.strm,We=de.window,st=de.strstart+de.lookahead,mt=se,vt=void 0,vt=Be.avail_in,mt<vt&&(vt=mt),ie=vt===0?0:(Be.avail_in-=vt,Ue.arraySet(We,Be.input,Be.next_in,vt,st),Be.state.wrap===1?Be.adler=xe(Be.adler,We,vt,st):Be.state.wrap===2&&(Be.adler=oe(Be.adler,We,vt,st)),Be.next_in+=vt,Be.total_in+=vt,vt),de.lookahead+=ie,de.lookahead+de.insert>=ot)for(le=de.strstart-de.insert,de.ins_h=de.window[le],de.ins_h=(de.ins_h<<de.hash_shift^de.window[le+1])&de.hash_mask;de.insert&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[le+ot-1])&de.hash_mask,de.prev[le&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=le,le++,de.insert--,!(de.lookahead+de.insert<ot)););}while(de.lookahead<Ct&&de.strm.avail_in!==0)}function jt(de,pe){for(var ie,ee;;){if(de.lookahead<Ct){if(Dt(de),de.lookahead<Ct&&pe===ve)return _e;if(de.lookahead===0)break}if(ie=0,de.lookahead>=ot&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+ot-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),ie!==0&&de.strstart-ie<=de.w_size-Ct&&(de.match_length=tt(de,ie)),de.match_length>=ot)if(ee=he._tr_tally(de,de.strstart-de.match_start,de.match_length-ot),de.lookahead-=de.match_length,de.match_length<=de.max_lazy_match&&de.lookahead>=ot){for(de.match_length--;de.strstart++,de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+ot-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart,--de.match_length!=0;);de.strstart++}else de.strstart+=de.match_length,de.match_length=0,de.ins_h=de.window[de.strstart],de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+1])&de.hash_mask;else ee=he._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++;if(ee&&(ut(de,!1),de.strm.avail_out===0))return _e}return de.insert=de.strstart<ot-1?de.strstart:ot-1,pe===Me?(ut(de,!0),de.strm.avail_out===0?Ot:it):de.last_lit&&(ut(de,!1),de.strm.avail_out===0)?_e:Re}function An(de,pe){for(var ie,ee,se;;){if(de.lookahead<Ct){if(Dt(de),de.lookahead<Ct&&pe===ve)return _e;if(de.lookahead===0)break}if(ie=0,de.lookahead>=ot&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+ot-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),de.prev_length=de.match_length,de.prev_match=de.match_start,de.match_length=ot-1,ie!==0&&de.prev_length<de.max_lazy_match&&de.strstart-ie<=de.w_size-Ct&&(de.match_length=tt(de,ie),de.match_length<=5&&(de.strategy===1||de.match_length===ot&&4096<de.strstart-de.match_start)&&(de.match_length=ot-1)),de.prev_length>=ot&&de.match_length<=de.prev_length){for(se=de.strstart+de.lookahead-ot,ee=he._tr_tally(de,de.strstart-1-de.prev_match,de.prev_length-ot),de.lookahead-=de.prev_length-1,de.prev_length-=2;++de.strstart<=se&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+ot-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),--de.prev_length!=0;);if(de.match_available=0,de.match_length=ot-1,de.strstart++,ee&&(ut(de,!1),de.strm.avail_out===0))return _e}else if(de.match_available){if((ee=he._tr_tally(de,0,de.window[de.strstart-1]))&&ut(de,!1),de.strstart++,de.lookahead--,de.strm.avail_out===0)return _e}else de.match_available=1,de.strstart++,de.lookahead--}return de.match_available&&(ee=he._tr_tally(de,0,de.window[de.strstart-1]),de.match_available=0),de.insert=de.strstart<ot-1?de.strstart:ot-1,pe===Me?(ut(de,!0),de.strm.avail_out===0?Ot:it):de.last_lit&&(ut(de,!1),de.strm.avail_out===0)?_e:Re}function kt(de,pe,ie,ee,se){this.good_length=de,this.max_lazy=pe,this.nice_length=ie,this.max_chain=ee,this.func=se}function pn(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ke,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Ue.Buf16(2*Ve),this.dyn_dtree=new Ue.Buf16(2*(2*je+1)),this.bl_tree=new Ue.Buf16(2*(2*Je+1)),Ze(this.dyn_ltree),Ze(this.dyn_dtree),Ze(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Ue.Buf16(ct+1),this.heap=new Ue.Buf16(2*Qe+1),Ze(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Ue.Buf16(2*Qe+1),Ze(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Pt(de){var pe;return de&&de.state?(de.total_in=de.total_out=0,de.data_type=Ee,(pe=de.state).pending=0,pe.pending_out=0,pe.wrap<0&&(pe.wrap=-pe.wrap),pe.status=pe.wrap?He:ht,de.adler=pe.wrap===2?0:1,pe.last_flush=ve,he._tr_init(pe),Se):at(de,Te)}function En(de){var pe=Pt(de);return pe===Se&&function(ie){ie.window_size=2*ie.w_size,Ze(ie.head),ie.max_lazy_match=Ie[ie.level].max_lazy,ie.good_match=Ie[ie.level].good_length,ie.nice_match=Ie[ie.level].nice_length,ie.max_chain_length=Ie[ie.level].max_chain,ie.strstart=0,ie.block_start=0,ie.lookahead=0,ie.insert=0,ie.match_length=ie.prev_length=ot-1,ie.match_available=0,ie.ins_h=0}(de.state),pe}function on(de,pe,ie,ee,se,le){if(!de)return Te;var Be=1;if(pe===we&&(pe=6),ee<0?(Be=0,ee=-ee):15<ee&&(Be=2,ee-=16),se<1||Ke<se||ie!==ke||ee<8||15<ee||pe<0||9<pe||le<0||Ce<le)return at(de,Te);ee===8&&(ee=9);var We=new pn;return(de.state=We).strm=de,We.wrap=Be,We.gzhead=null,We.w_bits=ee,We.w_size=1<<We.w_bits,We.w_mask=We.w_size-1,We.hash_bits=se+7,We.hash_size=1<<We.hash_bits,We.hash_mask=We.hash_size-1,We.hash_shift=~~((We.hash_bits+ot-1)/ot),We.window=new Ue.Buf8(2*We.w_size),We.head=new Ue.Buf16(We.hash_size),We.prev=new Ue.Buf16(We.w_size),We.lit_bufsize=1<<se+6,We.pending_buf_size=4*We.lit_bufsize,We.pending_buf=new Ue.Buf8(We.pending_buf_size),We.d_buf=1*We.lit_bufsize,We.l_buf=3*We.lit_bufsize,We.level=pe,We.strategy=le,We.method=ie,En(de)}Ie=[new kt(0,0,0,0,function(de,pe){var ie=65535;for(ie>de.pending_buf_size-5&&(ie=de.pending_buf_size-5);;){if(de.lookahead<=1){if(Dt(de),de.lookahead===0&&pe===ve)return _e;if(de.lookahead===0)break}de.strstart+=de.lookahead,de.lookahead=0;var ee=de.block_start+ie;if((de.strstart===0||de.strstart>=ee)&&(de.lookahead=de.strstart-ee,de.strstart=ee,ut(de,!1),de.strm.avail_out===0)||de.strstart-de.block_start>=de.w_size-Ct&&(ut(de,!1),de.strm.avail_out===0))return _e}return de.insert=0,pe===Me?(ut(de,!0),de.strm.avail_out===0?Ot:it):(de.strstart>de.block_start&&(ut(de,!1),de.strm.avail_out),_e)}),new kt(4,4,8,4,jt),new kt(4,5,16,8,jt),new kt(4,6,32,32,jt),new kt(4,4,16,16,An),new kt(8,16,32,32,An),new kt(8,16,128,128,An),new kt(8,32,128,256,An),new kt(32,128,258,1024,An),new kt(32,258,258,4096,An)],ze.deflateInit=function(de,pe){return on(de,pe,ke,15,8,0)},ze.deflateInit2=on,ze.deflateReset=En,ze.deflateResetKeep=Pt,ze.deflateSetHeader=function(de,pe){return de&&de.state?de.state.wrap!==2?Te:(de.state.gzhead=pe,Se):Te},ze.deflate=function(de,pe){var ie,ee,se,le;if(!de||!de.state||5<pe||pe<0)return de?at(de,Te):Te;if(ee=de.state,!de.output||!de.input&&de.avail_in!==0||ee.status===666&&pe!==Me)return at(de,de.avail_out===0?-5:Te);if(ee.strm=de,ie=ee.last_flush,ee.last_flush=pe,ee.status===He)if(ee.wrap===2)de.adler=0,Zt(ee,31),Zt(ee,139),Zt(ee,8),ee.gzhead?(Zt(ee,(ee.gzhead.text?1:0)+(ee.gzhead.hcrc?2:0)+(ee.gzhead.extra?4:0)+(ee.gzhead.name?8:0)+(ee.gzhead.comment?16:0)),Zt(ee,255&ee.gzhead.time),Zt(ee,ee.gzhead.time>>8&255),Zt(ee,ee.gzhead.time>>16&255),Zt(ee,ee.gzhead.time>>24&255),Zt(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),Zt(ee,255&ee.gzhead.os),ee.gzhead.extra&&ee.gzhead.extra.length&&(Zt(ee,255&ee.gzhead.extra.length),Zt(ee,ee.gzhead.extra.length>>8&255)),ee.gzhead.hcrc&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending,0)),ee.gzindex=0,ee.status=69):(Zt(ee,0),Zt(ee,0),Zt(ee,0),Zt(ee,0),Zt(ee,0),Zt(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),Zt(ee,3),ee.status=ht);else{var Be=ke+(ee.w_bits-8<<4)<<8;Be|=(2<=ee.strategy||ee.level<2?0:ee.level<6?1:ee.level===6?2:3)<<6,ee.strstart!==0&&(Be|=32),Be+=31-Be%31,ee.status=ht,Kt(ee,Be),ee.strstart!==0&&(Kt(ee,de.adler>>>16),Kt(ee,65535&de.adler)),de.adler=1}if(ee.status===69)if(ee.gzhead.extra){for(se=ee.pending;ee.gzindex<(65535&ee.gzhead.extra.length)&&(ee.pending!==ee.pending_buf_size||(ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),De(de),se=ee.pending,ee.pending!==ee.pending_buf_size));)Zt(ee,255&ee.gzhead.extra[ee.gzindex]),ee.gzindex++;ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),ee.gzindex===ee.gzhead.extra.length&&(ee.gzindex=0,ee.status=73)}else ee.status=73;if(ee.status===73)if(ee.gzhead.name){se=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),De(de),se=ee.pending,ee.pending===ee.pending_buf_size)){le=1;break}le=ee.gzindex<ee.gzhead.name.length?255&ee.gzhead.name.charCodeAt(ee.gzindex++):0,Zt(ee,le)}while(le!==0);ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),le===0&&(ee.gzindex=0,ee.status=91)}else ee.status=91;if(ee.status===91)if(ee.gzhead.comment){se=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),De(de),se=ee.pending,ee.pending===ee.pending_buf_size)){le=1;break}le=ee.gzindex<ee.gzhead.comment.length?255&ee.gzhead.comment.charCodeAt(ee.gzindex++):0,Zt(ee,le)}while(le!==0);ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),le===0&&(ee.status=103)}else ee.status=103;if(ee.status===103&&(ee.gzhead.hcrc?(ee.pending+2>ee.pending_buf_size&&De(de),ee.pending+2<=ee.pending_buf_size&&(Zt(ee,255&de.adler),Zt(ee,de.adler>>8&255),de.adler=0,ee.status=ht)):ee.status=ht),ee.pending!==0){if(De(de),de.avail_out===0)return ee.last_flush=-1,Se}else if(de.avail_in===0&&Et(pe)<=Et(ie)&&pe!==Me)return at(de,-5);if(ee.status===666&&de.avail_in!==0)return at(de,-5);if(de.avail_in!==0||ee.lookahead!==0||pe!==ve&&ee.status!==666){var We=ee.strategy===2?function(st,mt){for(var vt;;){if(st.lookahead===0&&(Dt(st),st.lookahead===0)){if(mt===ve)return _e;break}if(st.match_length=0,vt=he._tr_tally(st,0,st.window[st.strstart]),st.lookahead--,st.strstart++,vt&&(ut(st,!1),st.strm.avail_out===0))return _e}return st.insert=0,mt===Me?(ut(st,!0),st.strm.avail_out===0?Ot:it):st.last_lit&&(ut(st,!1),st.strm.avail_out===0)?_e:Re}(ee,pe):ee.strategy===3?function(st,mt){for(var vt,St,_t,Qt,xt=st.window;;){if(st.lookahead<=pt){if(Dt(st),st.lookahead<=pt&&mt===ve)return _e;if(st.lookahead===0)break}if(st.match_length=0,st.lookahead>=ot&&0<st.strstart&&(St=xt[_t=st.strstart-1])===xt[++_t]&&St===xt[++_t]&&St===xt[++_t]){Qt=st.strstart+pt;do;while(St===xt[++_t]&&St===xt[++_t]&&St===xt[++_t]&&St===xt[++_t]&&St===xt[++_t]&&St===xt[++_t]&&St===xt[++_t]&&St===xt[++_t]&&_t<Qt);st.match_length=pt-(Qt-_t),st.match_length>st.lookahead&&(st.match_length=st.lookahead)}if(st.match_length>=ot?(vt=he._tr_tally(st,1,st.match_length-ot),st.lookahead-=st.match_length,st.strstart+=st.match_length,st.match_length=0):(vt=he._tr_tally(st,0,st.window[st.strstart]),st.lookahead--,st.strstart++),vt&&(ut(st,!1),st.strm.avail_out===0))return _e}return st.insert=0,mt===Me?(ut(st,!0),st.strm.avail_out===0?Ot:it):st.last_lit&&(ut(st,!1),st.strm.avail_out===0)?_e:Re}(ee,pe):Ie[ee.level].func(ee,pe);if(We!==Ot&&We!==it||(ee.status=666),We===_e||We===Ot)return de.avail_out===0&&(ee.last_flush=-1),Se;if(We===Re&&(pe===1?he._tr_align(ee):pe!==5&&(he._tr_stored_block(ee,0,0,!1),pe===3&&(Ze(ee.head),ee.lookahead===0&&(ee.strstart=0,ee.block_start=0,ee.insert=0))),De(de),de.avail_out===0))return ee.last_flush=-1,Se}return pe!==Me?Se:ee.wrap<=0?1:(ee.wrap===2?(Zt(ee,255&de.adler),Zt(ee,de.adler>>8&255),Zt(ee,de.adler>>16&255),Zt(ee,de.adler>>24&255),Zt(ee,255&de.total_in),Zt(ee,de.total_in>>8&255),Zt(ee,de.total_in>>16&255),Zt(ee,de.total_in>>24&255)):(Kt(ee,de.adler>>>16),Kt(ee,65535&de.adler)),De(de),0<ee.wrap&&(ee.wrap=-ee.wrap),ee.pending!==0?Se:1)},ze.deflateEnd=function(de){var pe;return de&&de.state?(pe=de.state.status)!==He&&pe!==69&&pe!==73&&pe!==91&&pe!==103&&pe!==ht&&pe!==666?at(de,Te):(de.state=null,pe===ht?at(de,-3):Se):Te},ze.deflateSetDictionary=function(de,pe){var ie,ee,se,le,Be,We,st,mt,vt=pe.length;if(!de||!de.state||(le=(ie=de.state).wrap)===2||le===1&&ie.status!==He||ie.lookahead)return Te;for(le===1&&(de.adler=xe(de.adler,pe,vt,0)),ie.wrap=0,vt>=ie.w_size&&(le===0&&(Ze(ie.head),ie.strstart=0,ie.block_start=0,ie.insert=0),mt=new Ue.Buf8(ie.w_size),Ue.arraySet(mt,pe,vt-ie.w_size,ie.w_size,0),pe=mt,vt=ie.w_size),Be=de.avail_in,We=de.next_in,st=de.input,de.avail_in=vt,de.next_in=0,de.input=pe,Dt(ie);ie.lookahead>=ot;){for(ee=ie.strstart,se=ie.lookahead-(ot-1);ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ee+ot-1])&ie.hash_mask,ie.prev[ee&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ee,ee++,--se;);ie.strstart=ee,ie.lookahead=ot-1,Dt(ie)}return ie.strstart+=ie.lookahead,ie.block_start=ie.strstart,ie.insert=ie.lookahead,ie.lookahead=0,ie.match_length=ie.prev_length=ot-1,ie.match_available=0,de.next_in=We,de.input=st,de.avail_in=Be,ie.wrap=le,Se},ze.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(Le,qe,ze){"use strict";qe.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(Le,qe,ze){"use strict";qe.exports=function(Ie,Ue){var he,xe,oe,Oe,ve,Me,Se,Te,we,Ce,Ee,ke,Ke,Qe,je,Je,Ve,ct,ot,pt,Ct,He,ht,_e,Re;he=Ie.state,xe=Ie.next_in,_e=Ie.input,oe=xe+(Ie.avail_in-5),Oe=Ie.next_out,Re=Ie.output,ve=Oe-(Ue-Ie.avail_out),Me=Oe+(Ie.avail_out-257),Se=he.dmax,Te=he.wsize,we=he.whave,Ce=he.wnext,Ee=he.window,ke=he.hold,Ke=he.bits,Qe=he.lencode,je=he.distcode,Je=(1<<he.lenbits)-1,Ve=(1<<he.distbits)-1;e:do{Ke<15&&(ke+=_e[xe++]<<Ke,Ke+=8,ke+=_e[xe++]<<Ke,Ke+=8),ct=Qe[ke&Je];t:for(;;){if(ke>>>=ot=ct>>>24,Ke-=ot,(ot=ct>>>16&255)===0)Re[Oe++]=65535&ct;else{if(!(16&ot)){if(!(64&ot)){ct=Qe[(65535&ct)+(ke&(1<<ot)-1)];continue t}if(32&ot){he.mode=12;break e}Ie.msg="invalid literal/length code",he.mode=30;break e}pt=65535&ct,(ot&=15)&&(Ke<ot&&(ke+=_e[xe++]<<Ke,Ke+=8),pt+=ke&(1<<ot)-1,ke>>>=ot,Ke-=ot),Ke<15&&(ke+=_e[xe++]<<Ke,Ke+=8,ke+=_e[xe++]<<Ke,Ke+=8),ct=je[ke&Ve];n:for(;;){if(ke>>>=ot=ct>>>24,Ke-=ot,!(16&(ot=ct>>>16&255))){if(!(64&ot)){ct=je[(65535&ct)+(ke&(1<<ot)-1)];continue n}Ie.msg="invalid distance code",he.mode=30;break e}if(Ct=65535&ct,Ke<(ot&=15)&&(ke+=_e[xe++]<<Ke,(Ke+=8)<ot&&(ke+=_e[xe++]<<Ke,Ke+=8)),Se<(Ct+=ke&(1<<ot)-1)){Ie.msg="invalid distance too far back",he.mode=30;break e}if(ke>>>=ot,Ke-=ot,(ot=Oe-ve)<Ct){if(we<(ot=Ct-ot)&&he.sane){Ie.msg="invalid distance too far back",he.mode=30;break e}if(ht=Ee,(He=0)===Ce){if(He+=Te-ot,ot<pt){for(pt-=ot;Re[Oe++]=Ee[He++],--ot;);He=Oe-Ct,ht=Re}}else if(Ce<ot){if(He+=Te+Ce-ot,(ot-=Ce)<pt){for(pt-=ot;Re[Oe++]=Ee[He++],--ot;);if(He=0,Ce<pt){for(pt-=ot=Ce;Re[Oe++]=Ee[He++],--ot;);He=Oe-Ct,ht=Re}}}else if(He+=Ce-ot,ot<pt){for(pt-=ot;Re[Oe++]=Ee[He++],--ot;);He=Oe-Ct,ht=Re}for(;2<pt;)Re[Oe++]=ht[He++],Re[Oe++]=ht[He++],Re[Oe++]=ht[He++],pt-=3;pt&&(Re[Oe++]=ht[He++],1<pt&&(Re[Oe++]=ht[He++]))}else{for(He=Oe-Ct;Re[Oe++]=Re[He++],Re[Oe++]=Re[He++],Re[Oe++]=Re[He++],2<(pt-=3););pt&&(Re[Oe++]=Re[He++],1<pt&&(Re[Oe++]=Re[He++]))}break}}break}}while(xe<oe&&Oe<Me);xe-=pt=Ke>>3,ke&=(1<<(Ke-=pt<<3))-1,Ie.next_in=xe,Ie.next_out=Oe,Ie.avail_in=xe<oe?oe-xe+5:5-(xe-oe),Ie.avail_out=Oe<Me?Me-Oe+257:257-(Oe-Me),he.hold=ke,he.bits=Ke}},{}],49:[function(Le,qe,ze){"use strict";var Ie=Le("../utils/common"),Ue=Le("./adler32"),he=Le("./crc32"),xe=Le("./inffast"),oe=Le("./inftrees"),Oe=1,ve=2,Me=0,Se=-2,Te=1,we=852,Ce=592;function Ee(He){return(He>>>24&255)+(He>>>8&65280)+((65280&He)<<8)+((255&He)<<24)}function ke(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Ie.Buf16(320),this.work=new Ie.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ke(He){var ht;return He&&He.state?(ht=He.state,He.total_in=He.total_out=ht.total=0,He.msg="",ht.wrap&&(He.adler=1&ht.wrap),ht.mode=Te,ht.last=0,ht.havedict=0,ht.dmax=32768,ht.head=null,ht.hold=0,ht.bits=0,ht.lencode=ht.lendyn=new Ie.Buf32(we),ht.distcode=ht.distdyn=new Ie.Buf32(Ce),ht.sane=1,ht.back=-1,Me):Se}function Qe(He){var ht;return He&&He.state?((ht=He.state).wsize=0,ht.whave=0,ht.wnext=0,Ke(He)):Se}function je(He,ht){var _e,Re;return He&&He.state?(Re=He.state,ht<0?(_e=0,ht=-ht):(_e=1+(ht>>4),ht<48&&(ht&=15)),ht&&(ht<8||15<ht)?Se:(Re.window!==null&&Re.wbits!==ht&&(Re.window=null),Re.wrap=_e,Re.wbits=ht,Qe(He))):Se}function Je(He,ht){var _e,Re;return He?(Re=new ke,(He.state=Re).window=null,(_e=je(He,ht))!==Me&&(He.state=null),_e):Se}var Ve,ct,ot=!0;function pt(He){if(ot){var ht;for(Ve=new Ie.Buf32(512),ct=new Ie.Buf32(32),ht=0;ht<144;)He.lens[ht++]=8;for(;ht<256;)He.lens[ht++]=9;for(;ht<280;)He.lens[ht++]=7;for(;ht<288;)He.lens[ht++]=8;for(oe(Oe,He.lens,0,288,Ve,0,He.work,{bits:9}),ht=0;ht<32;)He.lens[ht++]=5;oe(ve,He.lens,0,32,ct,0,He.work,{bits:5}),ot=!1}He.lencode=Ve,He.lenbits=9,He.distcode=ct,He.distbits=5}function Ct(He,ht,_e,Re){var Ot,it=He.state;return it.window===null&&(it.wsize=1<<it.wbits,it.wnext=0,it.whave=0,it.window=new Ie.Buf8(it.wsize)),Re>=it.wsize?(Ie.arraySet(it.window,ht,_e-it.wsize,it.wsize,0),it.wnext=0,it.whave=it.wsize):(Re<(Ot=it.wsize-it.wnext)&&(Ot=Re),Ie.arraySet(it.window,ht,_e-Re,Ot,it.wnext),(Re-=Ot)?(Ie.arraySet(it.window,ht,_e-Re,Re,0),it.wnext=Re,it.whave=it.wsize):(it.wnext+=Ot,it.wnext===it.wsize&&(it.wnext=0),it.whave<it.wsize&&(it.whave+=Ot))),0}ze.inflateReset=Qe,ze.inflateReset2=je,ze.inflateResetKeep=Ke,ze.inflateInit=function(He){return Je(He,15)},ze.inflateInit2=Je,ze.inflate=function(He,ht){var _e,Re,Ot,it,at,Et,Ze,De,ut,Zt,Kt,tt,Dt,jt,An,kt,pn,Pt,En,on,de,pe,ie,ee,se=0,le=new Ie.Buf8(4),Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!He||!He.state||!He.output||!He.input&&He.avail_in!==0)return Se;(_e=He.state).mode===12&&(_e.mode=13),at=He.next_out,Ot=He.output,Ze=He.avail_out,it=He.next_in,Re=He.input,Et=He.avail_in,De=_e.hold,ut=_e.bits,Zt=Et,Kt=Ze,pe=Me;e:for(;;)switch(_e.mode){case Te:if(_e.wrap===0){_e.mode=13;break}for(;ut<16;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if(2&_e.wrap&&De===35615){le[_e.check=0]=255&De,le[1]=De>>>8&255,_e.check=he(_e.check,le,2,0),ut=De=0,_e.mode=2;break}if(_e.flags=0,_e.head&&(_e.head.done=!1),!(1&_e.wrap)||(((255&De)<<8)+(De>>8))%31){He.msg="incorrect header check",_e.mode=30;break}if((15&De)!=8){He.msg="unknown compression method",_e.mode=30;break}if(ut-=4,de=8+(15&(De>>>=4)),_e.wbits===0)_e.wbits=de;else if(de>_e.wbits){He.msg="invalid window size",_e.mode=30;break}_e.dmax=1<<de,He.adler=_e.check=1,_e.mode=512&De?10:12,ut=De=0;break;case 2:for(;ut<16;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if(_e.flags=De,(255&_e.flags)!=8){He.msg="unknown compression method",_e.mode=30;break}if(57344&_e.flags){He.msg="unknown header flags set",_e.mode=30;break}_e.head&&(_e.head.text=De>>8&1),512&_e.flags&&(le[0]=255&De,le[1]=De>>>8&255,_e.check=he(_e.check,le,2,0)),ut=De=0,_e.mode=3;case 3:for(;ut<32;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}_e.head&&(_e.head.time=De),512&_e.flags&&(le[0]=255&De,le[1]=De>>>8&255,le[2]=De>>>16&255,le[3]=De>>>24&255,_e.check=he(_e.check,le,4,0)),ut=De=0,_e.mode=4;case 4:for(;ut<16;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}_e.head&&(_e.head.xflags=255&De,_e.head.os=De>>8),512&_e.flags&&(le[0]=255&De,le[1]=De>>>8&255,_e.check=he(_e.check,le,2,0)),ut=De=0,_e.mode=5;case 5:if(1024&_e.flags){for(;ut<16;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}_e.length=De,_e.head&&(_e.head.extra_len=De),512&_e.flags&&(le[0]=255&De,le[1]=De>>>8&255,_e.check=he(_e.check,le,2,0)),ut=De=0}else _e.head&&(_e.head.extra=null);_e.mode=6;case 6:if(1024&_e.flags&&(Et<(tt=_e.length)&&(tt=Et),tt&&(_e.head&&(de=_e.head.extra_len-_e.length,_e.head.extra||(_e.head.extra=new Array(_e.head.extra_len)),Ie.arraySet(_e.head.extra,Re,it,tt,de)),512&_e.flags&&(_e.check=he(_e.check,Re,tt,it)),Et-=tt,it+=tt,_e.length-=tt),_e.length))break e;_e.length=0,_e.mode=7;case 7:if(2048&_e.flags){if(Et===0)break e;for(tt=0;de=Re[it+tt++],_e.head&&de&&_e.length<65536&&(_e.head.name+=String.fromCharCode(de)),de&&tt<Et;);if(512&_e.flags&&(_e.check=he(_e.check,Re,tt,it)),Et-=tt,it+=tt,de)break e}else _e.head&&(_e.head.name=null);_e.length=0,_e.mode=8;case 8:if(4096&_e.flags){if(Et===0)break e;for(tt=0;de=Re[it+tt++],_e.head&&de&&_e.length<65536&&(_e.head.comment+=String.fromCharCode(de)),de&&tt<Et;);if(512&_e.flags&&(_e.check=he(_e.check,Re,tt,it)),Et-=tt,it+=tt,de)break e}else _e.head&&(_e.head.comment=null);_e.mode=9;case 9:if(512&_e.flags){for(;ut<16;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if(De!==(65535&_e.check)){He.msg="header crc mismatch",_e.mode=30;break}ut=De=0}_e.head&&(_e.head.hcrc=_e.flags>>9&1,_e.head.done=!0),He.adler=_e.check=0,_e.mode=12;break;case 10:for(;ut<32;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}He.adler=_e.check=Ee(De),ut=De=0,_e.mode=11;case 11:if(_e.havedict===0)return He.next_out=at,He.avail_out=Ze,He.next_in=it,He.avail_in=Et,_e.hold=De,_e.bits=ut,2;He.adler=_e.check=1,_e.mode=12;case 12:if(ht===5||ht===6)break e;case 13:if(_e.last){De>>>=7&ut,ut-=7&ut,_e.mode=27;break}for(;ut<3;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}switch(_e.last=1&De,ut-=1,3&(De>>>=1)){case 0:_e.mode=14;break;case 1:if(pt(_e),_e.mode=20,ht!==6)break;De>>>=2,ut-=2;break e;case 2:_e.mode=17;break;case 3:He.msg="invalid block type",_e.mode=30}De>>>=2,ut-=2;break;case 14:for(De>>>=7&ut,ut-=7&ut;ut<32;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if((65535&De)!=(De>>>16^65535)){He.msg="invalid stored block lengths",_e.mode=30;break}if(_e.length=65535&De,ut=De=0,_e.mode=15,ht===6)break e;case 15:_e.mode=16;case 16:if(tt=_e.length){if(Et<tt&&(tt=Et),Ze<tt&&(tt=Ze),tt===0)break e;Ie.arraySet(Ot,Re,it,tt,at),Et-=tt,it+=tt,Ze-=tt,at+=tt,_e.length-=tt;break}_e.mode=12;break;case 17:for(;ut<14;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if(_e.nlen=257+(31&De),De>>>=5,ut-=5,_e.ndist=1+(31&De),De>>>=5,ut-=5,_e.ncode=4+(15&De),De>>>=4,ut-=4,286<_e.nlen||30<_e.ndist){He.msg="too many length or distance symbols",_e.mode=30;break}_e.have=0,_e.mode=18;case 18:for(;_e.have<_e.ncode;){for(;ut<3;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}_e.lens[Be[_e.have++]]=7&De,De>>>=3,ut-=3}for(;_e.have<19;)_e.lens[Be[_e.have++]]=0;if(_e.lencode=_e.lendyn,_e.lenbits=7,ie={bits:_e.lenbits},pe=oe(0,_e.lens,0,19,_e.lencode,0,_e.work,ie),_e.lenbits=ie.bits,pe){He.msg="invalid code lengths set",_e.mode=30;break}_e.have=0,_e.mode=19;case 19:for(;_e.have<_e.nlen+_e.ndist;){for(;kt=(se=_e.lencode[De&(1<<_e.lenbits)-1])>>>16&255,pn=65535&se,!((An=se>>>24)<=ut);){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if(pn<16)De>>>=An,ut-=An,_e.lens[_e.have++]=pn;else{if(pn===16){for(ee=An+2;ut<ee;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if(De>>>=An,ut-=An,_e.have===0){He.msg="invalid bit length repeat",_e.mode=30;break}de=_e.lens[_e.have-1],tt=3+(3&De),De>>>=2,ut-=2}else if(pn===17){for(ee=An+3;ut<ee;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}ut-=An,de=0,tt=3+(7&(De>>>=An)),De>>>=3,ut-=3}else{for(ee=An+7;ut<ee;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}ut-=An,de=0,tt=11+(127&(De>>>=An)),De>>>=7,ut-=7}if(_e.have+tt>_e.nlen+_e.ndist){He.msg="invalid bit length repeat",_e.mode=30;break}for(;tt--;)_e.lens[_e.have++]=de}}if(_e.mode===30)break;if(_e.lens[256]===0){He.msg="invalid code -- missing end-of-block",_e.mode=30;break}if(_e.lenbits=9,ie={bits:_e.lenbits},pe=oe(Oe,_e.lens,0,_e.nlen,_e.lencode,0,_e.work,ie),_e.lenbits=ie.bits,pe){He.msg="invalid literal/lengths set",_e.mode=30;break}if(_e.distbits=6,_e.distcode=_e.distdyn,ie={bits:_e.distbits},pe=oe(ve,_e.lens,_e.nlen,_e.ndist,_e.distcode,0,_e.work,ie),_e.distbits=ie.bits,pe){He.msg="invalid distances set",_e.mode=30;break}if(_e.mode=20,ht===6)break e;case 20:_e.mode=21;case 21:if(6<=Et&&258<=Ze){He.next_out=at,He.avail_out=Ze,He.next_in=it,He.avail_in=Et,_e.hold=De,_e.bits=ut,xe(He,Kt),at=He.next_out,Ot=He.output,Ze=He.avail_out,it=He.next_in,Re=He.input,Et=He.avail_in,De=_e.hold,ut=_e.bits,_e.mode===12&&(_e.back=-1);break}for(_e.back=0;kt=(se=_e.lencode[De&(1<<_e.lenbits)-1])>>>16&255,pn=65535&se,!((An=se>>>24)<=ut);){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if(kt&&!(240&kt)){for(Pt=An,En=kt,on=pn;kt=(se=_e.lencode[on+((De&(1<<Pt+En)-1)>>Pt)])>>>16&255,pn=65535&se,!(Pt+(An=se>>>24)<=ut);){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}De>>>=Pt,ut-=Pt,_e.back+=Pt}if(De>>>=An,ut-=An,_e.back+=An,_e.length=pn,kt===0){_e.mode=26;break}if(32&kt){_e.back=-1,_e.mode=12;break}if(64&kt){He.msg="invalid literal/length code",_e.mode=30;break}_e.extra=15&kt,_e.mode=22;case 22:if(_e.extra){for(ee=_e.extra;ut<ee;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}_e.length+=De&(1<<_e.extra)-1,De>>>=_e.extra,ut-=_e.extra,_e.back+=_e.extra}_e.was=_e.length,_e.mode=23;case 23:for(;kt=(se=_e.distcode[De&(1<<_e.distbits)-1])>>>16&255,pn=65535&se,!((An=se>>>24)<=ut);){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if(!(240&kt)){for(Pt=An,En=kt,on=pn;kt=(se=_e.distcode[on+((De&(1<<Pt+En)-1)>>Pt)])>>>16&255,pn=65535&se,!(Pt+(An=se>>>24)<=ut);){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}De>>>=Pt,ut-=Pt,_e.back+=Pt}if(De>>>=An,ut-=An,_e.back+=An,64&kt){He.msg="invalid distance code",_e.mode=30;break}_e.offset=pn,_e.extra=15&kt,_e.mode=24;case 24:if(_e.extra){for(ee=_e.extra;ut<ee;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}_e.offset+=De&(1<<_e.extra)-1,De>>>=_e.extra,ut-=_e.extra,_e.back+=_e.extra}if(_e.offset>_e.dmax){He.msg="invalid distance too far back",_e.mode=30;break}_e.mode=25;case 25:if(Ze===0)break e;if(tt=Kt-Ze,_e.offset>tt){if((tt=_e.offset-tt)>_e.whave&&_e.sane){He.msg="invalid distance too far back",_e.mode=30;break}Dt=tt>_e.wnext?(tt-=_e.wnext,_e.wsize-tt):_e.wnext-tt,tt>_e.length&&(tt=_e.length),jt=_e.window}else jt=Ot,Dt=at-_e.offset,tt=_e.length;for(Ze<tt&&(tt=Ze),Ze-=tt,_e.length-=tt;Ot[at++]=jt[Dt++],--tt;);_e.length===0&&(_e.mode=21);break;case 26:if(Ze===0)break e;Ot[at++]=_e.length,Ze--,_e.mode=21;break;case 27:if(_e.wrap){for(;ut<32;){if(Et===0)break e;Et--,De|=Re[it++]<<ut,ut+=8}if(Kt-=Ze,He.total_out+=Kt,_e.total+=Kt,Kt&&(He.adler=_e.check=_e.flags?he(_e.check,Ot,Kt,at-Kt):Ue(_e.check,Ot,Kt,at-Kt)),Kt=Ze,(_e.flags?De:Ee(De))!==_e.check){He.msg="incorrect data check",_e.mode=30;break}ut=De=0}_e.mode=28;case 28:if(_e.wrap&&_e.flags){for(;ut<32;){if(Et===0)break e;Et--,De+=Re[it++]<<ut,ut+=8}if(De!==(4294967295&_e.total)){He.msg="incorrect length check",_e.mode=30;break}ut=De=0}_e.mode=29;case 29:pe=1;break e;case 30:pe=-3;break e;case 31:return-4;case 32:default:return Se}return He.next_out=at,He.avail_out=Ze,He.next_in=it,He.avail_in=Et,_e.hold=De,_e.bits=ut,(_e.wsize||Kt!==He.avail_out&&_e.mode<30&&(_e.mode<27||ht!==4))&&Ct(He,He.output,He.next_out,Kt-He.avail_out)?(_e.mode=31,-4):(Zt-=He.avail_in,Kt-=He.avail_out,He.total_in+=Zt,He.total_out+=Kt,_e.total+=Kt,_e.wrap&&Kt&&(He.adler=_e.check=_e.flags?he(_e.check,Ot,Kt,He.next_out-Kt):Ue(_e.check,Ot,Kt,He.next_out-Kt)),He.data_type=_e.bits+(_e.last?64:0)+(_e.mode===12?128:0)+(_e.mode===20||_e.mode===15?256:0),(Zt==0&&Kt===0||ht===4)&&pe===Me&&(pe=-5),pe)},ze.inflateEnd=function(He){if(!He||!He.state)return Se;var ht=He.state;return ht.window&&(ht.window=null),He.state=null,Me},ze.inflateGetHeader=function(He,ht){var _e;return He&&He.state&&2&(_e=He.state).wrap?((_e.head=ht).done=!1,Me):Se},ze.inflateSetDictionary=function(He,ht){var _e,Re=ht.length;return He&&He.state?(_e=He.state).wrap!==0&&_e.mode!==11?Se:_e.mode===11&&Ue(1,ht,Re,0)!==_e.check?-3:Ct(He,ht,Re,Re)?(_e.mode=31,-4):(_e.havedict=1,Me):Se},ze.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(Le,qe,ze){"use strict";var Ie=Le("../utils/common"),Ue=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],he=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],xe=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],oe=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];qe.exports=function(Oe,ve,Me,Se,Te,we,Ce,Ee){var ke,Ke,Qe,je,Je,Ve,ct,ot,pt,Ct=Ee.bits,He=0,ht=0,_e=0,Re=0,Ot=0,it=0,at=0,Et=0,Ze=0,De=0,ut=null,Zt=0,Kt=new Ie.Buf16(16),tt=new Ie.Buf16(16),Dt=null,jt=0;for(He=0;He<=15;He++)Kt[He]=0;for(ht=0;ht<Se;ht++)Kt[ve[Me+ht]]++;for(Ot=Ct,Re=15;1<=Re&&Kt[Re]===0;Re--);if(Re<Ot&&(Ot=Re),Re===0)return Te[we++]=20971520,Te[we++]=20971520,Ee.bits=1,0;for(_e=1;_e<Re&&Kt[_e]===0;_e++);for(Ot<_e&&(Ot=_e),He=Et=1;He<=15;He++)if(Et<<=1,(Et-=Kt[He])<0)return-1;if(0<Et&&(Oe===0||Re!==1))return-1;for(tt[1]=0,He=1;He<15;He++)tt[He+1]=tt[He]+Kt[He];for(ht=0;ht<Se;ht++)ve[Me+ht]!==0&&(Ce[tt[ve[Me+ht]]++]=ht);if(Ve=Oe===0?(ut=Dt=Ce,19):Oe===1?(ut=Ue,Zt-=257,Dt=he,jt-=257,256):(ut=xe,Dt=oe,-1),He=_e,Je=we,at=ht=De=0,Qe=-1,je=(Ze=1<<(it=Ot))-1,Oe===1&&852<Ze||Oe===2&&592<Ze)return 1;for(;;){for(ct=He-at,pt=Ce[ht]<Ve?(ot=0,Ce[ht]):Ce[ht]>Ve?(ot=Dt[jt+Ce[ht]],ut[Zt+Ce[ht]]):(ot=96,0),ke=1<<He-at,_e=Ke=1<<it;Te[Je+(De>>at)+(Ke-=ke)]=ct<<24|ot<<16|pt|0,Ke!==0;);for(ke=1<<He-1;De&ke;)ke>>=1;if(ke!==0?(De&=ke-1,De+=ke):De=0,ht++,--Kt[He]==0){if(He===Re)break;He=ve[Me+Ce[ht]]}if(Ot<He&&(De&je)!==Qe){for(at===0&&(at=Ot),Je+=_e,Et=1<<(it=He-at);it+at<Re&&!((Et-=Kt[it+at])<=0);)it++,Et<<=1;if(Ze+=1<<it,Oe===1&&852<Ze||Oe===2&&592<Ze)return 1;Te[Qe=De&je]=Ot<<24|it<<16|Je-we|0}}return De!==0&&(Te[Je+De]=He-at<<24|64<<16|0),Ee.bits=Ot,0}},{"../utils/common":41}],51:[function(Le,qe,ze){"use strict";qe.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(Le,qe,ze){"use strict";var Ie=Le("../utils/common"),Ue=0,he=1;function xe(se){for(var le=se.length;0<=--le;)se[le]=0}var oe=0,Oe=29,ve=256,Me=ve+1+Oe,Se=30,Te=19,we=2*Me+1,Ce=15,Ee=16,ke=7,Ke=256,Qe=16,je=17,Je=18,Ve=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ct=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ot=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ct=new Array(2*(Me+2));xe(Ct);var He=new Array(2*Se);xe(He);var ht=new Array(512);xe(ht);var _e=new Array(256);xe(_e);var Re=new Array(Oe);xe(Re);var Ot,it,at,Et=new Array(Se);function Ze(se,le,Be,We,st){this.static_tree=se,this.extra_bits=le,this.extra_base=Be,this.elems=We,this.max_length=st,this.has_stree=se&&se.length}function De(se,le){this.dyn_tree=se,this.max_code=0,this.stat_desc=le}function ut(se){return se<256?ht[se]:ht[256+(se>>>7)]}function Zt(se,le){se.pending_buf[se.pending++]=255&le,se.pending_buf[se.pending++]=le>>>8&255}function Kt(se,le,Be){se.bi_valid>Ee-Be?(se.bi_buf|=le<<se.bi_valid&65535,Zt(se,se.bi_buf),se.bi_buf=le>>Ee-se.bi_valid,se.bi_valid+=Be-Ee):(se.bi_buf|=le<<se.bi_valid&65535,se.bi_valid+=Be)}function tt(se,le,Be){Kt(se,Be[2*le],Be[2*le+1])}function Dt(se,le){for(var Be=0;Be|=1&se,se>>>=1,Be<<=1,0<--le;);return Be>>>1}function jt(se,le,Be){var We,st,mt=new Array(Ce+1),vt=0;for(We=1;We<=Ce;We++)mt[We]=vt=vt+Be[We-1]<<1;for(st=0;st<=le;st++){var St=se[2*st+1];St!==0&&(se[2*st]=Dt(mt[St]++,St))}}function An(se){var le;for(le=0;le<Me;le++)se.dyn_ltree[2*le]=0;for(le=0;le<Se;le++)se.dyn_dtree[2*le]=0;for(le=0;le<Te;le++)se.bl_tree[2*le]=0;se.dyn_ltree[2*Ke]=1,se.opt_len=se.static_len=0,se.last_lit=se.matches=0}function kt(se){8<se.bi_valid?Zt(se,se.bi_buf):0<se.bi_valid&&(se.pending_buf[se.pending++]=se.bi_buf),se.bi_buf=0,se.bi_valid=0}function pn(se,le,Be,We){var st=2*le,mt=2*Be;return se[st]<se[mt]||se[st]===se[mt]&&We[le]<=We[Be]}function Pt(se,le,Be){for(var We=se.heap[Be],st=Be<<1;st<=se.heap_len&&(st<se.heap_len&&pn(le,se.heap[st+1],se.heap[st],se.depth)&&st++,!pn(le,We,se.heap[st],se.depth));)se.heap[Be]=se.heap[st],Be=st,st<<=1;se.heap[Be]=We}function En(se,le,Be){var We,st,mt,vt,St=0;if(se.last_lit!==0)for(;We=se.pending_buf[se.d_buf+2*St]<<8|se.pending_buf[se.d_buf+2*St+1],st=se.pending_buf[se.l_buf+St],St++,We===0?tt(se,st,le):(tt(se,(mt=_e[st])+ve+1,le),(vt=Ve[mt])!==0&&Kt(se,st-=Re[mt],vt),tt(se,mt=ut(--We),Be),(vt=ct[mt])!==0&&Kt(se,We-=Et[mt],vt)),St<se.last_lit;);tt(se,Ke,le)}function on(se,le){var Be,We,st,mt=le.dyn_tree,vt=le.stat_desc.static_tree,St=le.stat_desc.has_stree,_t=le.stat_desc.elems,Qt=-1;for(se.heap_len=0,se.heap_max=we,Be=0;Be<_t;Be++)mt[2*Be]!==0?(se.heap[++se.heap_len]=Qt=Be,se.depth[Be]=0):mt[2*Be+1]=0;for(;se.heap_len<2;)mt[2*(st=se.heap[++se.heap_len]=Qt<2?++Qt:0)]=1,se.depth[st]=0,se.opt_len--,St&&(se.static_len-=vt[2*st+1]);for(le.max_code=Qt,Be=se.heap_len>>1;1<=Be;Be--)Pt(se,mt,Be);for(st=_t;Be=se.heap[1],se.heap[1]=se.heap[se.heap_len--],Pt(se,mt,1),We=se.heap[1],se.heap[--se.heap_max]=Be,se.heap[--se.heap_max]=We,mt[2*st]=mt[2*Be]+mt[2*We],se.depth[st]=(se.depth[Be]>=se.depth[We]?se.depth[Be]:se.depth[We])+1,mt[2*Be+1]=mt[2*We+1]=st,se.heap[1]=st++,Pt(se,mt,1),2<=se.heap_len;);se.heap[--se.heap_max]=se.heap[1],function(xt,lt){var Vt,Wt,gn,an,en,zn,Fn=lt.dyn_tree,Rt=lt.max_code,sn=lt.stat_desc.static_tree,_n=lt.stat_desc.has_stree,Wn=lt.stat_desc.extra_bits,Lt=lt.stat_desc.extra_base,Gt=lt.stat_desc.max_length,nn=0;for(an=0;an<=Ce;an++)xt.bl_count[an]=0;for(Fn[2*xt.heap[xt.heap_max]+1]=0,Vt=xt.heap_max+1;Vt<we;Vt++)Gt<(an=Fn[2*Fn[2*(Wt=xt.heap[Vt])+1]+1]+1)&&(an=Gt,nn++),Fn[2*Wt+1]=an,Rt<Wt||(xt.bl_count[an]++,en=0,Lt<=Wt&&(en=Wn[Wt-Lt]),zn=Fn[2*Wt],xt.opt_len+=zn*(an+en),_n&&(xt.static_len+=zn*(sn[2*Wt+1]+en)));if(nn!==0){do{for(an=Gt-1;xt.bl_count[an]===0;)an--;xt.bl_count[an]--,xt.bl_count[an+1]+=2,xt.bl_count[Gt]--,nn-=2}while(0<nn);for(an=Gt;an!==0;an--)for(Wt=xt.bl_count[an];Wt!==0;)Rt<(gn=xt.heap[--Vt])||(Fn[2*gn+1]!==an&&(xt.opt_len+=(an-Fn[2*gn+1])*Fn[2*gn],Fn[2*gn+1]=an),Wt--)}}(se,le),jt(mt,Qt,se.bl_count)}function de(se,le,Be){var We,st,mt=-1,vt=le[1],St=0,_t=7,Qt=4;for(vt===0&&(_t=138,Qt=3),le[2*(Be+1)+1]=65535,We=0;We<=Be;We++)st=vt,vt=le[2*(We+1)+1],++St<_t&&st===vt||(St<Qt?se.bl_tree[2*st]+=St:st!==0?(st!==mt&&se.bl_tree[2*st]++,se.bl_tree[2*Qe]++):St<=10?se.bl_tree[2*je]++:se.bl_tree[2*Je]++,mt=st,Qt=(St=0)===vt?(_t=138,3):st===vt?(_t=6,3):(_t=7,4))}function pe(se,le,Be){var We,st,mt=-1,vt=le[1],St=0,_t=7,Qt=4;for(vt===0&&(_t=138,Qt=3),We=0;We<=Be;We++)if(st=vt,vt=le[2*(We+1)+1],!(++St<_t&&st===vt)){if(St<Qt)for(;tt(se,st,se.bl_tree),--St!=0;);else st!==0?(st!==mt&&(tt(se,st,se.bl_tree),St--),tt(se,Qe,se.bl_tree),Kt(se,St-3,2)):St<=10?(tt(se,je,se.bl_tree),Kt(se,St-3,3)):(tt(se,Je,se.bl_tree),Kt(se,St-11,7));mt=st,Qt=(St=0)===vt?(_t=138,3):st===vt?(_t=6,3):(_t=7,4)}}xe(Et);var ie=!1;function ee(se,le,Be,We){Kt(se,(oe<<1)+(We?1:0),3),function(st,mt,vt,St){kt(st),St&&(Zt(st,vt),Zt(st,~vt)),Ie.arraySet(st.pending_buf,st.window,mt,vt,st.pending),st.pending+=vt}(se,le,Be,!0)}ze._tr_init=function(se){ie||(function(){var le,Be,We,st,mt,vt=new Array(Ce+1);for(st=We=0;st<Oe-1;st++)for(Re[st]=We,le=0;le<1<<Ve[st];le++)_e[We++]=st;for(_e[We-1]=st,st=mt=0;st<16;st++)for(Et[st]=mt,le=0;le<1<<ct[st];le++)ht[mt++]=st;for(mt>>=7;st<Se;st++)for(Et[st]=mt<<7,le=0;le<1<<ct[st]-7;le++)ht[256+mt++]=st;for(Be=0;Be<=Ce;Be++)vt[Be]=0;for(le=0;le<=143;)Ct[2*le+1]=8,le++,vt[8]++;for(;le<=255;)Ct[2*le+1]=9,le++,vt[9]++;for(;le<=279;)Ct[2*le+1]=7,le++,vt[7]++;for(;le<=287;)Ct[2*le+1]=8,le++,vt[8]++;for(jt(Ct,Me+1,vt),le=0;le<Se;le++)He[2*le+1]=5,He[2*le]=Dt(le,5);Ot=new Ze(Ct,Ve,ve+1,Me,Ce),it=new Ze(He,ct,0,Se,Ce),at=new Ze(new Array(0),ot,0,Te,ke)}(),ie=!0),se.l_desc=new De(se.dyn_ltree,Ot),se.d_desc=new De(se.dyn_dtree,it),se.bl_desc=new De(se.bl_tree,at),se.bi_buf=0,se.bi_valid=0,An(se)},ze._tr_stored_block=ee,ze._tr_flush_block=function(se,le,Be,We){var st,mt,vt=0;0<se.level?(se.strm.data_type===2&&(se.strm.data_type=function(St){var _t,Qt=4093624447;for(_t=0;_t<=31;_t++,Qt>>>=1)if(1&Qt&&St.dyn_ltree[2*_t]!==0)return Ue;if(St.dyn_ltree[18]!==0||St.dyn_ltree[20]!==0||St.dyn_ltree[26]!==0)return he;for(_t=32;_t<ve;_t++)if(St.dyn_ltree[2*_t]!==0)return he;return Ue}(se)),on(se,se.l_desc),on(se,se.d_desc),vt=function(St){var _t;for(de(St,St.dyn_ltree,St.l_desc.max_code),de(St,St.dyn_dtree,St.d_desc.max_code),on(St,St.bl_desc),_t=Te-1;3<=_t&&St.bl_tree[2*pt[_t]+1]===0;_t--);return St.opt_len+=3*(_t+1)+5+5+4,_t}(se),st=se.opt_len+3+7>>>3,(mt=se.static_len+3+7>>>3)<=st&&(st=mt)):st=mt=Be+5,Be+4<=st&&le!==-1?ee(se,le,Be,We):se.strategy===4||mt===st?(Kt(se,2+(We?1:0),3),En(se,Ct,He)):(Kt(se,4+(We?1:0),3),function(St,_t,Qt,xt){var lt;for(Kt(St,_t-257,5),Kt(St,Qt-1,5),Kt(St,xt-4,4),lt=0;lt<xt;lt++)Kt(St,St.bl_tree[2*pt[lt]+1],3);pe(St,St.dyn_ltree,_t-1),pe(St,St.dyn_dtree,Qt-1)}(se,se.l_desc.max_code+1,se.d_desc.max_code+1,vt+1),En(se,se.dyn_ltree,se.dyn_dtree)),An(se),We&&kt(se)},ze._tr_tally=function(se,le,Be){return se.pending_buf[se.d_buf+2*se.last_lit]=le>>>8&255,se.pending_buf[se.d_buf+2*se.last_lit+1]=255&le,se.pending_buf[se.l_buf+se.last_lit]=255&Be,se.last_lit++,le===0?se.dyn_ltree[2*Be]++:(se.matches++,le--,se.dyn_ltree[2*(_e[Be]+ve+1)]++,se.dyn_dtree[2*ut(le)]++),se.last_lit===se.lit_bufsize-1},ze._tr_align=function(se){Kt(se,2,3),tt(se,Ke,Ct),function(le){le.bi_valid===16?(Zt(le,le.bi_buf),le.bi_buf=0,le.bi_valid=0):8<=le.bi_valid&&(le.pending_buf[le.pending++]=255&le.bi_buf,le.bi_buf>>=8,le.bi_valid-=8)}(se)}},{"../utils/common":41}],53:[function(Le,qe,ze){"use strict";qe.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(Le,qe,ze){(function(Ie){(function(Ue,he){"use strict";if(!Ue.setImmediate){var xe,oe,Oe,ve,Me=1,Se={},Te=!1,we=Ue.document,Ce=Object.getPrototypeOf&&Object.getPrototypeOf(Ue);Ce=Ce&&Ce.setTimeout?Ce:Ue,xe={}.toString.call(Ue.process)==="[object process]"?function(Qe){dt.nextTick(function(){ke(Qe)})}:function(){if(Ue.postMessage&&!Ue.importScripts){var Qe=!0,je=Ue.onmessage;return Ue.onmessage=function(){Qe=!1},Ue.postMessage("","*"),Ue.onmessage=je,Qe}}()?(ve="setImmediate$"+Math.random()+"$",Ue.addEventListener?Ue.addEventListener("message",Ke,!1):Ue.attachEvent("onmessage",Ke),function(Qe){Ue.postMessage(ve+Qe,"*")}):Ue.MessageChannel?((Oe=new MessageChannel).port1.onmessage=function(Qe){ke(Qe.data)},function(Qe){Oe.port2.postMessage(Qe)}):we&&"onreadystatechange"in we.createElement("script")?(oe=we.documentElement,function(Qe){var je=we.createElement("script");je.onreadystatechange=function(){ke(Qe),je.onreadystatechange=null,oe.removeChild(je),je=null},oe.appendChild(je)}):function(Qe){setTimeout(ke,0,Qe)},Ce.setImmediate=function(Qe){typeof Qe!="function"&&(Qe=new Function(""+Qe));for(var je=new Array(arguments.length-1),Je=0;Je<je.length;Je++)je[Je]=arguments[Je+1];var Ve={callback:Qe,args:je};return Se[Me]=Ve,xe(Me),Me++},Ce.clearImmediate=Ee}function Ee(Qe){delete Se[Qe]}function ke(Qe){if(Te)setTimeout(ke,0,Qe);else{var je=Se[Qe];if(je){Te=!0;try{(function(Je){var Ve=Je.callback,ct=Je.args;switch(ct.length){case 0:Ve();break;case 1:Ve(ct[0]);break;case 2:Ve(ct[0],ct[1]);break;case 3:Ve(ct[0],ct[1],ct[2]);break;default:Ve.apply(he,ct)}})(je)}finally{Ee(Qe),Te=!1}}}}function Ke(Qe){Qe.source===Ue&&typeof Qe.data=="string"&&Qe.data.indexOf(ve)===0&&ke(+Qe.data.slice(ve.length))}})(typeof self=="undefined"?Ie===void 0?this:Ie:self)}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},2859:function(qn,Mt,ae){"use strict";ae.d(Mt,{hP:function(){return on}});var x=function(de,pe){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ee){ie.__proto__=ee}||function(ie,ee){for(var se in ee)Object.prototype.hasOwnProperty.call(ee,se)&&(ie[se]=ee[se])})(de,pe)};function dt(de,pe){function ie(){this.constructor=de}x(de,pe),de.prototype=pe===null?Object.create(pe):(ie.prototype=pe.prototype,new ie)}function Le(de,pe,ie,ee){return new(ie||(ie=Promise))(function(se,le){function Be(mt){try{st(ee.next(mt))}catch(vt){le(vt)}}function We(mt){try{st(ee.throw(mt))}catch(vt){le(vt)}}function st(mt){var vt;mt.done?se(mt.value):(vt=mt.value,vt instanceof ie?vt:new ie(function(St){St(vt)})).then(Be,We)}st((ee=ee.apply(de,pe||[])).next())})}function qe(de,pe){var ie,ee,se,le,Be={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return le={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function We(st){return function(mt){return function(vt){if(ie)throw new TypeError("Generator is already executing.");for(;Be;)try{if(ie=1,ee&&(se=2&vt[0]?ee.return:vt[0]?ee.throw||((se=ee.return)&&se.call(ee),0):ee.next)&&!(se=se.call(ee,vt[1])).done)return se;switch(ee=0,se&&(vt=[2&vt[0],se.value]),vt[0]){case 0:case 1:se=vt;break;case 4:return Be.label++,{value:vt[1],done:!1};case 5:Be.label++,ee=vt[1],vt=[0];continue;case 7:vt=Be.ops.pop(),Be.trys.pop();continue;default:if(se=Be.trys,!((se=se.length>0&&se[se.length-1])||vt[0]!==6&&vt[0]!==2)){Be=0;continue}if(vt[0]===3&&(!se||vt[1]>se[0]&&vt[1]<se[3])){Be.label=vt[1];break}if(vt[0]===6&&Be.label<se[1]){Be.label=se[1],se=vt;break}if(se&&Be.label<se[2]){Be.label=se[2],Be.ops.push(vt);break}se[2]&&Be.ops.pop(),Be.trys.pop();continue}vt=pe.call(de,Be)}catch(St){vt=[6,St],ee=0}finally{ie=se=0}if(5&vt[0])throw vt[1];return{value:vt[0]?vt[1]:void 0,done:!0}}([st,mt])}}}function ze(){for(var de=0,pe=0,ie=arguments.length;pe<ie;pe++)de+=arguments[pe].length;var ee=Array(de),se=0;for(pe=0;pe<ie;pe++)for(var le=arguments[pe],Be=0,We=le.length;Be<We;Be++,se++)ee[se]=le[Be];return ee}var Ie=function(){function de(){}return de.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},de.setAttributes=function(pe,ie){for(var ee=0,se=ie;ee<se.length;ee++){var le=se[ee],Be=le[0],We=le[1];pe.setAttribute(Be,We)}},de.createRect=function(pe,ie,ee){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",pe.toString()),se.setAttribute("height",ie.toString()),ee&&de.setAttributes(se,ee),se},de.createLine=function(pe,ie,ee,se,le){var Be=document.createElementNS("http://www.w3.org/2000/svg","line");return Be.setAttribute("x1",pe.toString()),Be.setAttribute("y1",ie.toString()),Be.setAttribute("x2",ee.toString()),Be.setAttribute("y2",se.toString()),le&&de.setAttributes(Be,le),Be},de.createPolygon=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ee.setAttribute("points",pe),ie&&de.setAttributes(ee,ie),ee},de.createCircle=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","circle");return ee.setAttribute("cx",(pe/2).toString()),ee.setAttribute("cy",(pe/2).toString()),ee.setAttribute("r",pe.toString()),ie&&de.setAttributes(ee,ie),ee},de.createEllipse=function(pe,ie,ee){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(pe/2).toString()),se.setAttribute("cy",(ie/2).toString()),se.setAttribute("rx",(pe/2).toString()),se.setAttribute("ry",(ie/2).toString()),ee&&de.setAttributes(se,ee),se},de.createGroup=function(pe){var ie=document.createElementNS("http://www.w3.org/2000/svg","g");return pe&&de.setAttributes(ie,pe),ie},de.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},de.createMarker=function(pe,ie,ee,se,le,Be,We){var st=document.createElementNS("http://www.w3.org/2000/svg","marker");return de.setAttributes(st,[["id",pe],["orient",ie],["markerWidth",ee.toString()],["markerHeight",se.toString()],["refX",le.toString()],["refY",Be.toString()]]),st.appendChild(We),st},de.createText=function(pe){var ie=document.createElementNS("http://www.w3.org/2000/svg","text");return ie.setAttribute("x","0"),ie.setAttribute("y","0"),pe&&de.setAttributes(ie,pe),ie},de.createTSpan=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ee.textContent=pe,ie&&de.setAttributes(ee,ie),ee},de.createImage=function(pe){var ie=document.createElementNS("http://www.w3.org/2000/svg","image");return pe&&de.setAttributes(ie,pe),ie},de.createPoint=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ee.x=pe,ee.y=ie,ee},de.createPath=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","path");return ee.setAttribute("d",pe),ie&&de.setAttributes(ee,ie),ee},de}(),Ue=function(){function de(){}return de.addKey=function(pe){de.key=pe},Object.defineProperty(de,"isLicensed",{get:function(){return!!de.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(de.key)},enumerable:!1,configurable:!0}),de}(),he=function(){function de(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return de.prototype.rasterize=function(pe,ie,ee){var se=this;return new Promise(function(le){var Be=ee!==void 0?ee:document.createElement("canvas");pe===null&&(se.markersOnly=!0,se.naturalSize=!1);var We=document.createElementNS("http://www.w3.org/2000/svg","svg");We.setAttribute("xmlns","http://www.w3.org/2000/svg"),We.setAttribute("width",ie.width.baseVal.valueAsString),We.setAttribute("height",ie.height.baseVal.valueAsString),We.setAttribute("viewBox","0 0 "+ie.viewBox.baseVal.width.toString()+" "+ie.viewBox.baseVal.height.toString()),We.innerHTML=ie.innerHTML,se.naturalSize===!0?(We.width.baseVal.value=pe.naturalWidth,We.height.baseVal.value=pe.naturalHeight):se.width!==void 0&&se.height!==void 0&&(We.width.baseVal.value=se.width,We.height.baseVal.value=se.height),Be.width=We.width.baseVal.value,Be.height=We.height.baseVal.value;var st=We.outerHTML,mt=Be.getContext("2d");se.markersOnly!==!0&&mt.drawImage(pe,0,0,Be.width,Be.height);var vt=window.URL,St=new Image(Be.width,Be.height);St.setAttribute("crossOrigin","anonymous");var _t=new Blob([st],{type:"image/svg+xml"}),Qt=vt.createObjectURL(_t);St.onload=function(){mt.drawImage(St,0,0),vt.revokeObjectURL(Qt);var xt=Be.toDataURL(se.imageType,se.imageQuality);le(xt)},St.src=Qt})},de}(),xe=function(){},oe=function(){function de(pe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+pe+"_"}return Object.defineProperty(de.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(de.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(de.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),de.prototype.addClass=function(pe){return this.styleSheet===void 0&&this.addStyleSheet(),pe.name=""+this.classNamePrefix+pe.localName,this.classes.push(pe),this.styleSheet.sheet.insertRule("."+pe.name+" {"+pe.style+"}",this.styleSheet.sheet.cssRules.length),pe},de.prototype.addRule=function(pe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(pe),this.styleSheet.sheet.insertRule(pe.selector+" {"+pe.style+"}",this.styleSheet.sheet.cssRules.length)},de.prototype.addStyleSheet=function(){var pe;this.styleSheet=document.createElement("style"),((pe=this.styleSheetRoot)!==null&&pe!==void 0?pe:document.head).appendChild(this.styleSheet),this.addRule(new Oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ve("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ve("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},de.prototype.removeStyleSheet=function(){var pe;this.styleSheet&&(((pe=this.styleSheetRoot)!==null&&pe!==void 0?pe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},de}(),Oe=function(de,pe){this.selector=de,this.style=pe},ve=function(de,pe){this.localName=de,this.style=pe},Me=function(){function de(pe,ie,ee,se,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=pe,this.displayMode=ie,this.markerItems=ee,this.uiStyleSettings=se,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return de.prototype.show=function(pe){var ie=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=pe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ee=document.createElement("div");ee.className=this.toolbarBlockStyleClass.name,ee.style.whiteSpace="nowrap",this.uiContainer.appendChild(ee),this.addActionButton(ee,'<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(ee,'<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(ee,'<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(ee,'<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(ee,'<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(ee,'<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(ee,'<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(ee,'<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(le){var Be=document.createElement("div");Be.className=""+ie.toolbarButtonStyleClass.name,Be.setAttribute("data-type-name",le.typeName),Be.innerHTML=le.icon,Be.addEventListener("click",function(){ie.markerToolbarButtonClicked(Be,le)}),ie.buttons.push(Be),ie.markerButtons.push(Be)}),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 se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<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(se,'<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()},de.prototype.addButtonClickListener=function(pe){this.buttonClickListeners.push(pe)},de.prototype.removeButtonClickListener=function(pe){this.buttonClickListeners.indexOf(pe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(pe),1)},de.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},de.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var pe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ie=0;ie<this.markerButtons.length;ie++)ie<pe||ie===pe&&this.markerButtons.length-1===pe?this.markerButtonBlock.appendChild(this.markerButtons[ie]):(ie===pe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ie]))}},de.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")},de.prototype.resetButtonStyles=function(){var pe=this;this.buttons.forEach(function(ie){ie.className=ie.className.replace(pe.uiStyleSettings.toolbarButtonStyleColorsClassName?pe.uiStyleSettings.toolbarButtonStyleColorsClassName:pe.toolbarButtonStyleColorsClass.name,"").trim(),ie.className=ie.className.replace(pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:pe.toolbarActiveButtonStyleColorsClass.name,"").trim(),ie.className+=" "+(pe.uiStyleSettings.toolbarButtonStyleColorsClassName?pe.uiStyleSettings.toolbarButtonStyleColorsClassName:pe.toolbarButtonStyleColorsClass.name)})},de.prototype.addActionButton=function(pe,ie,ee){var se=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=ie,le.setAttribute("data-action",ee),le.addEventListener("click",function(){se.actionToolbarButtonClicked(le,ee)}),ee){case"select":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":le.style.fill=this.uiStyleSettings.closeButtonColor}pe.appendChild(le),this.buttons.push(le)},de.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ve("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 ve("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ve("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ve("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 ve("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var pe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ve("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
|
|
|
padding: `+pe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},de.prototype.markerToolbarButtonClicked=function(pe,ie){this.setActiveButton(pe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ee){return ee("marker",ie)}),this.markerButtonOverflowBlock.style.display="none"},de.prototype.actionToolbarButtonClicked=function(pe,ie){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ee){return ee("action",ie)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},de.prototype.setActiveButton=function(pe){this.resetButtonStyles(),pe.className=pe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),pe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},de.prototype.setActiveMarkerButton=function(pe){var ie=this.markerButtons.find(function(ee){return ee.getAttribute("data-type-name")===pe});ie&&this.setActiveButton(ie)},de.prototype.setCurrentMarker=function(pe){var ie=this;this.currentMarker=pe,this.buttons.filter(function(ee){return/delete|notes/.test(ee.getAttribute("data-action"))}).forEach(function(ee){ie.currentMarker===void 0?(ee.style.fillOpacity="0.4",ee.style.pointerEvents="none"):(ee.style.fillOpacity="1",ee.style.pointerEvents="all")})},de}(),Se=function(){function de(pe,ie,ee,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=pe,this.displayMode=ie,this.uiStyleSettings=ee,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return de.prototype.addStyles=function(){var pe;this.toolboxStyleClass=this.styles.addClass(new ve("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 ve("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ie=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ve("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ve("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ve("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 ve("toolbox-panel-row_colors",`
|
|
|
background-color: `+((pe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&pe!==void 0?pe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ve("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
|
|
|
padding: `+ie+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},de.prototype.show=function(pe){var ie;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=pe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},de.prototype.setPanelButtons=function(pe){var ie,ee,se=this;this.panels=pe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Be;le.uiStyleSettings=se.uiStyleSettings;var We=document.createElement("div");We.className=se.toolboxButtonStyleClass.name+" "+((Be=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Be!==void 0?Be:se.toolboxButtonStyleColorsClass.name),We.innerHTML=le.icon,We.title=le.title,We.addEventListener("click",function(){se.panelButtonClick(le)}),se.panelButtons.push(We),se.buttonRow.appendChild(We)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},de.prototype.panelButtonClick=function(pe){var ie=this,ee=-1;if(pe!==this.activePanel){ee=this.panels.indexOf(pe),this.panelRow.innerHTML="";var se=pe.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),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=pe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ie.displayMode==="inline"?ie.panelRow.style.display="none":ie.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Be){var We,st;le.className=ie.toolboxButtonStyleClass.name+" "+(Be===ee?""+((We=ie.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&We!==void 0?We:ie.toolboxActiveButtonStyleColorsClass.name):""+((st=ie.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&st!==void 0?st:ie.toolboxButtonStyleColorsClass.name))})},de}(),Te=function(de,pe){this.title=de,this.icon=pe},we=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<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 Be.colors=[],Be.addTransparent=!1,Be.colorBoxes=[],Be.colors=ee,Be.currentColor=se,Be.setCurrentColor=Be.setCurrentColor.bind(Be),Be.getColorBox=Be.getColorBox.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.overflow="hidden",ee.style.whiteSpace="nowrap",this.colors.forEach(function(se){var le=ie.getColorBox(se);ee.appendChild(le),ie.colorBoxes.push(le)}),ee},pe.prototype.getColorBox=function(ie){var ee=this,se=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-se,Be=document.createElement("div");Be.style.display="inline-block",Be.style.boxSizing="content-box",Be.style.width=le-2+"px",Be.style.height=le-2+"px",Be.style.padding="1px",Be.style.marginRight="2px",Be.style.marginBottom="2px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderRadius=(le+2)/2+"px",Be.style.borderColor=ie===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){ee.setCurrentColor(ie,Be)});var We=document.createElement("div");return We.style.display="inline-block",We.style.width=le-2+"px",We.style.height=le-2+"px",We.style.backgroundColor=ie,We.style.borderRadius=le/2+"px",ie==="transparent"&&(We.style.fill=this.uiStyleSettings.toolboxAccentColor,We.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>`),Be.appendChild(We),Be},pe.prototype.setCurrentColor=function(ie,ee){var se=this;this.currentColor=ie,this.colorBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ie)},pe}(Te),Ce=function(){function de(pe,ie,ee){this._state="new",this._isSelected=!1,this._container=pe,this._overlayContainer=ie,this.globalSettings=ee,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(de.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),de.prototype.ownsTarget=function(pe){return!1},Object.defineProperty(de.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),de.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},de.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},de.prototype.pointerDown=function(pe,ie){},de.prototype.dblClick=function(pe,ie){},de.prototype.manipulate=function(pe){},de.prototype.pointerUp=function(pe){this.stateChanged()},de.prototype.dispose=function(){},de.prototype.addMarkerVisualToContainer=function(pe){this.container.childNodes.length>0?this.container.insertBefore(pe,this.container.childNodes[0]):this.container.appendChild(pe)},de.prototype.getState=function(){return{typeName:de.typeName,state:this.state,notes:this.notes}},de.prototype.restoreState=function(pe){this._state=pe.state,this.notes=pe.notes},de.prototype.scale=function(pe,ie){},de.prototype.colorChanged=function(pe){this.onColorChanged&&this.onColorChanged(pe),this.stateChanged()},de.prototype.fillColorChanged=function(pe){this.onFillColorChanged&&this.onFillColorChanged(pe),this.stateChanged()},de.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var pe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),pe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(pe)&&this.onStateChanged(this)}},de.typeName="MarkerBase",de}(),Ee=function(){function de(){this.findGripByVisual=this.findGripByVisual.bind(this)}return de.prototype.findGripByVisual=function(pe){return this.topLeft.ownsTarget(pe)?this.topLeft:this.topCenter.ownsTarget(pe)?this.topCenter:this.topRight.ownsTarget(pe)?this.topRight:this.centerLeft.ownsTarget(pe)?this.centerLeft:this.centerRight.ownsTarget(pe)?this.centerRight:this.bottomLeft.ownsTarget(pe)?this.bottomLeft:this.bottomCenter.ownsTarget(pe)?this.bottomCenter:this.bottomRight.ownsTarget(pe)?this.bottomRight:void 0},de}(),ke=function(){function de(){this.GRIP_SIZE=10,this.visual=Ie.createGroup(),this.visual.appendChild(Ie.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ie.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return de.prototype.ownsTarget=function(pe){return pe===this.visual||pe===this.visual.childNodes[0]||pe===this.visual.childNodes[1]},de}(),Ke=function(){function de(){}return de.toITransformMatrix=function(pe){return{a:pe.a,b:pe.b,c:pe.c,d:pe.d,e:pe.e,f:pe.f}},de.toSVGMatrix=function(pe,ie){return pe.a=ie.a,pe.b=ie.b,pe.c=ie.c,pe.d=ie.d,pe.e=ie.e,pe.f=ie.f,pe},de}(),Qe=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Ie.createTransform()),le.setupControlBox(),le}return dt(pe,de),Object.defineProperty(pe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"visual",{get:function(){return this._visual},set:function(ie){this._visual=ie;var ee=Ie.createTransform();this._visual.transform.baseVal.appendItem(ee)},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(ie){return!!de.prototype.ownsTarget.call(this,ie)||!!(this.controlGrips.findGripByVisual(ie)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie))},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.left=ie.x,this.top=ie.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ie);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ee),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Be=this.container.transform.baseVal.getItem(0);Be.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Be,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},pe.prototype.pointerUp=function(ie){var ee=this.state;de.prototype.pointerUp.call(this,ie),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ie),this._state="select",ee==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},pe.prototype.moveVisual=function(ie){this.visual.style.transform="translate("+ie.x+"px, "+ie.y+"px)"},pe.prototype.manipulate=function(ie){var ee=this.unrotatePoint(ie);this.state==="creating"?this.resize(ie):this.state==="move"?(this.left=this.manipulationStartLeft+(ee.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ee.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ee):this.state==="rotate"&&this.rotate(ie)},pe.prototype.resize=function(ie){var ee=this.manipulationStartLeft,se=this.manipulationStartWidth,le=this.manipulationStartTop,Be=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ee=this.manipulationStartLeft+ie.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-ee;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ie.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ie.y-this.manipulationStartY,Be=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Be=this.manipulationStartHeight+ie.y-this.manipulationStartY}se>=0?(this.left=ee,this.width=se):(this.left=ee+se,this.width=-se),Be>=0?(this.top=le,this.height=Be):(this.top=le+Be,this.height=-Be),this.setSize()},pe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},pe.prototype.rotate=function(ie){if(Math.abs(ie.x-this.centerX)>.1){var ee=Math.sign(ie.x-this.centerX);this.rotationAngle=180*Math.atan((ie.y-this.centerY)/(ie.x-this.centerX))/Math.PI+90*ee,this.applyRotation()}},pe.prototype.applyRotation=function(){var ie=this.container.transform.baseVal.getItem(0);ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ie,0)},pe.prototype.rotatePoint=function(ie){if(this.rotationAngle===0)return ie;var ee=this.container.getCTM(),se=Ie.createPoint(ie.x,ie.y);return{x:(se=se.matrixTransform(ee)).x,y:se.y}},pe.prototype.unrotatePoint=function(ie){if(this.rotationAngle===0)return ie;var ee=this.container.getCTM();ee=ee.inverse();var se=Ie.createPoint(ie.x,ie.y);return{x:(se=se.matrixTransform(ee)).x,y:se.y}},pe.prototype.select=function(){de.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},pe.prototype.deselect=function(){de.prototype.deselect.call(this),this.controlBox.style.display="none"},pe.prototype.setupControlBox=function(){this.controlBox=Ie.createGroup();var ie=Ie.createTransform();ie.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ie),this.container.appendChild(this.controlBox),this.controlRect=Ie.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=Ie.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 Ee,this.addControlGrips(),this.controlBox.style.display="none"},pe.prototype.adjustControlBox=function(){var ie=this.controlBox.transform.baseVal.getItem(0);ie.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ie,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()},pe.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()},pe.prototype.createGrip=function(){var ie=new ke;return ie.visual.transform.baseVal.appendItem(Ie.createTransform()),this.controlBox.appendChild(ie.visual),ie},pe.prototype.positionGrips=function(){var ie=this.controlGrips.topLeft.GRIP_SIZE,ee=-ie/2,se=ee,le=(this.width+this.CB_DISTANCE)/2-ie/2,Be=(this.height+this.CB_DISTANCE)/2-ie/2,We=this.height+this.CB_DISTANCE-ie/2,st=this.width+this.CB_DISTANCE-ie/2;this.positionGrip(this.controlGrips.topLeft.visual,ee,se),this.positionGrip(this.controlGrips.topCenter.visual,le,se),this.positionGrip(this.controlGrips.topRight.visual,st,se),this.positionGrip(this.controlGrips.centerLeft.visual,ee,Be),this.positionGrip(this.controlGrips.centerRight.visual,st,Be),this.positionGrip(this.controlGrips.bottomLeft.visual,ee,We),this.positionGrip(this.controlGrips.bottomCenter.visual,le,We),this.positionGrip(this.controlGrips.bottomRight.visual,st,We),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,se-3*this.CB_DISTANCE)},pe.prototype.positionGrip=function(ie,ee,se){var le=ie.transform.baseVal.getItem(0);le.setTranslate(ee,se),ie.transform.baseVal.replaceItem(le,0)},pe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},pe.prototype.showControlBox=function(){this.controlBox.style.display=""},pe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ke.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ke.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},de.prototype.getState.call(this))},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.left=ee.left,this.top=ee.top,this.width=ee.width,this.height=ee.height,this.rotationAngle=ee.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ke.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ee.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ke.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ee.containerTransformMatrix))},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee);var se=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:se.x*ie,y:se.y*ee});this.left=le.x,this.top=le.y,this.width=this.width*ie,this.height=this.height*ee,this.adjustControlBox()},pe}(Ce),je=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual)},pe.prototype.createVisual=function(){this.visual=Ie.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)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.setSize()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),Ie.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},pe.prototype.pointerUp=function(ie){de.prototype.pointerUp.call(this,ie),this.setSize()},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.visual&&Ie.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ie),this.stateChanged()},pe.prototype.setFillColor=function(ie){this.fillColor=ie,this.visual&&Ie.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.visual&&Ie.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.visual&&Ie.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},pe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},de.prototype.getState.call(this))},pe.prototype.restoreState=function(ie){var ee=ie;this.fillColor=ee.fillColor,this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.opacity=ee.opacity,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize()},pe.title="Rectangle marker",pe}(Qe),Je=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Be.widths=[],Be.widthBoxes=[],Be.widths=ee,Be.currentWidth=se,Be.setCurrentWidth=Be.setCurrentWidth.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2",this.widths.forEach(function(se){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=se===ie.currentWidth?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentWidth(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.innerText=se.toString(),Be.style.marginRight="5px",le.appendChild(Be);var We=document.createElement("div");We.style.minHeight="20px",We.style.flexGrow="2",We.style.display="flex",We.style.alignItems="center";var st=document.createElement("hr");st.style.minWidth="20px",st.style.border="0px",st.style.borderTop=se+"px solid "+ie.uiStyleSettings.toolboxColor,st.style.flexGrow="2",We.appendChild(st),le.appendChild(We),ie.widthBoxes.push(le)}),ee},pe.prototype.setCurrentWidth=function(ie,ee){var se=this;this.currentWidth=ie,this.widthBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},pe}(Te),Ve=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<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 Be.styles=[],Be.styleBoxes=[],Be.styles=ee,Be.currentStyle=se,Be.setCurrentStyle=Be.setCurrentStyle.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2",this.styles.forEach(function(se){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ie.styles.length-5+"%",le.style.borderColor=se===ie.currentStyle?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentStyle(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.overflow="hidden";var We=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ie.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
|
|
|
</svg>`;Be.innerHTML=We,le.appendChild(Be),ie.styleBoxes.push(le)}),ee},pe.prototype.setCurrentStyle=function(ie,ee){var se=this;this.currentStyle=ie,this.styleBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},pe}(Te),ct=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.strokePanel=new we("Line color",se.defaultColorSet,se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Je("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return dt(pe,de),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="FrameMarker",pe.title="Frame marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',pe}(je),ot=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"},pt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!!de.prototype.ownsTarget.call(this,ie)||!(!this.grip1.ownsTarget(ie)&&!this.grip2.ownsTarget(ie))},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.manipulationStartX=ie.x,this.manipulationStartY=ie.y,this.state==="new"&&(this.x1=ie.x,this.y1=ie.y,this.x2=ie.x,this.y2=ie.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(ee)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ee)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},pe.prototype.pointerUp=function(ie){var ee=this.state;de.prototype.pointerUp.call(this,ie),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(ie),this._state="select",ee==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},pe.prototype.adjustVisual=function(){},pe.prototype.manipulate=function(ie){this.state==="creating"?this.resize(ie):this.state==="move"?(this.x1=this.manipulationStartX1+ie.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ie.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ie.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ie.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ie)},pe.prototype.resize=function(ie){switch(this.activeGrip){case this.grip1:this.x1=ie.x,this.y1=ie.y;break;case this.grip2:case void 0:this.x2=ie.x,this.y2=ie.y}this.adjustVisual(),this.adjustControlBox()},pe.prototype.select=function(){de.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},pe.prototype.deselect=function(){de.prototype.deselect.call(this),this.controlBox.style.display="none"},pe.prototype.setupControlBox=function(){this.controlBox=Ie.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},pe.prototype.adjustControlBox=function(){this.positionGrips()},pe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},pe.prototype.createGrip=function(){var ie=new ke;return ie.visual.transform.baseVal.appendItem(Ie.createTransform()),this.controlBox.appendChild(ie.visual),ie},pe.prototype.positionGrips=function(){var ie=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ie/2,this.y1-ie/2),this.positionGrip(this.grip2.visual,this.x2-ie/2,this.y2-ie/2)},pe.prototype.positionGrip=function(ie,ee,se){var le=ie.transform.baseVal.getItem(0);le.setTranslate(ee,se),ie.transform.baseVal.replaceItem(le,0)},pe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},de.prototype.getState.call(this))},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.x1=ee.x1,this.y1=ee.y1,this.x2=ee.x2,this.y2=ee.y2},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.x1=this.x1*ie,this.y1=this.y1*ee,this.x2=this.x2*ie,this.y2=this.y2*ee,this.adjustVisual(),this.adjustControlBox()},pe}(Ce),Ct=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.strokePanel=new we("Line color",se.defaultColorSet,se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Je("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.selectorLine&&ie!==this.visibleLine)},pe.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.selectorLine=Ie.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ie.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)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},pe.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()),Ie.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ie.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ie.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.adjustVisual(),this.colorChanged(ie)},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.adjustVisual()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.createVisual(),this.adjustVisual()},pe.typeName="LineMarker",pe.title="Line marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',pe}(pt),He=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<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 Be.fonts=[],Be.fontBoxes=[],Be.fonts=ee,Be.currentFont=se,Be.setCurrentFont=Be.setCurrentFont.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.overflow="hidden",ee.style.flexGrow="2",this.fonts.forEach(function(se){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ie.fonts.length-5+"%",le.style.borderColor=se===ie.currentFont?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentFont(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.style.display="flex",Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.fontFamily=se,Be.style.overflow="hidden";var We=document.createElement("div");We.style.whiteSpace="nowrap",We.style.overflow="hidden",We.style.textOverflow="ellipsis",We.innerHTML="The quick brown fox jumps over the lazy dog",Be.appendChild(We),le.appendChild(Be),ie.fontBoxes.push(le)}),ee},pe.prototype.setCurrentFont=function(ie,ee){var se=this;this.currentFont=ie,this.fontBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},pe}(Te),ht=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=se.defaultColor,le.fontFamily=se.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new we("Color",se.defaultColorSet,se.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){if(de.prototype.ownsTarget.call(this,ie)||ie===this.visual||ie===this.textElement||ie===this.bgRectangle)return!0;var ee=!1;return this.textElement.childNodes.forEach(function(se){se===ie&&(ee=!0)}),ee},pe.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.bgRectangle=Ie.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ie.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ie.createTransform()),this.textElement.transform.baseVal.appendItem(Ie.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.isMoved=!1,this.pointerDownPoint=ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.renderText=function(){var ie=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(ee){ie.textElement.appendChild(Ie.createTSpan(ee.trim()===""?" ":ee.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},pe.prototype.getTextScale=function(){var ie=this.textElement.getBBox(),ee=1;if(ie.width>0&&ie.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ie.width,le=(1*this.height-this.height*this.padding*2/100)/ie.height;ee=Math.min(se,le)}return ee},pe.prototype.getTextPosition=function(ie){var ee=this.textElement.getBBox(),se=0,le=0;return ee.width>0&&ee.height>0&&(se=(this.width-ee.width*ie)/2,le=this.height/2-ee.height*ie/2),{x:se,y:le}},pe.prototype.sizeText=function(){var ie=this.textElement.getBBox(),ee=this.getTextScale(),se=this.getTextPosition(ee);se.y-=ie.y*ee,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+ee+", "+ee+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(ee,ee))},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ie.x-this.pointerDownPoint.x)>5||Math.abs(ie.y-this.pointerDownPoint.y)>5)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.isMoved=!0,this.setSize(),this.sizeText()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ie.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ie.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},pe.prototype.pointerUp=function(ie){var ee=this.state;ee==="creating"&&(this._suppressMarkerCreateEvent=!0),de.prototype.pointerUp.call(this,ie),this.setSize(),(ee==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},pe.prototype.showTextEditor=function(){var ie=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(ee){ee.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ee=Number.parseFloat(ie.textEditor.style.fontSize);ie.textEditor.clientWidth>=Number.parseInt(ie.textEditor.style.maxWidth)&&ee>.9;)ee-=.1,ie.textEditor.style.fontSize=Math.max(ee,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ee){ee.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ee){if(ee.clipboardData){var se=ee.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(se)),ee.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ie.textEditDivClicked(ie.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},pe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ie=this.getTextScale(),ee=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),le={x:se.width*ie,y:se.height*ie};ee.x-=le.x/2,ee.y-=le.y/2,this.textEditor.style.top=ee.y+"px",this.textEditor.style.left=ee.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ee.x+"px",this.textEditor.style.fontSize=Math.max(16*ie,12)+"px",this.textElement.style.display="none"}},pe.prototype.textEditDivClicked=function(ie){this.text=ie.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},pe.prototype.select=function(){de.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},pe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),de.prototype.deselect.call(this)},pe.prototype.dblClick=function(ie,ee){de.prototype.dblClick.call(this,ie,ee),this.showTextEditor()},pe.prototype.setColor=function(ie){this.textElement&&Ie.setAttributes(this.textElement,[["fill",ie]]),this.color=ie,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ie)},pe.prototype.setFont=function(ie){this.textElement&&Ie.setAttributes(this.textElement,[["font-family",ie]]),this.fontFamily=ie,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},pe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},pe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.color=ee.color,this.fontFamily=ee.fontFamily,this.padding=ee.padding,this.text=ee.text,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize(),this.sizeText(),this.positionTextEditor()},pe.typeName="TextMarker",pe.title="Text marker",pe.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>',pe}(Qe),_e=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=se.defaultColor,le.lineWidth=se.defaultStrokeWidth,le.pixelRatio=se.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new we("Color",se.defaultColorSet,se.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new Je("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.drawingImage)},pe.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.drawingImage=Ie.createImage(),this.visual.appendChild(this.drawingImage);var ie=Ie.createTransform();this.visual.transform.baseVal.appendItem(ie),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){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(ie.x,ie.y),this.drawing=!0):de.prototype.pointerDown.call(this,ie,ee)},pe.prototype.manipulate=function(ie){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ie.x,ie.y),this.canvasContext.stroke()):de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),Ie.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ie.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},pe.prototype.pointerUp=function(ie){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):de.prototype.pointerUp.call(this,ie)},pe.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)},pe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),de.prototype.select.call(this)},pe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),de.prototype.deselect.call(this)},pe.prototype.finishCreation=function(){for(var ie=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ee=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=ee[0],le=ee[1],Be=ee[2],We=ee[3],st=!1,mt=0;mt<this.canvasElement.height;mt++)for(var vt=0;vt<this.canvasElement.width;vt++)ie.data[mt*this.canvasElement.width*4+4*vt+3]>0&&(st=!0,mt<le&&(le=mt),vt<se&&(se=vt),mt>We&&(We=mt),vt>Be&&(Be=vt));if(st){this.left=se/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Be-se)/this.pixelRatio,this.height=(We-le)/this.pixelRatio;var St=document.createElement("canvas");St.width=Be-se,St.height=We-le,St.getContext("2d").putImageData(this.canvasContext.getImageData(se,le,Be-se,We-le),0,0),this.drawingImgUrl=St.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},pe.prototype.setDrawingImage=function(){Ie.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ie.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},pe.prototype.setColor=function(ie){this.color=ie,this.colorChanged(ie)},pe.prototype.setLineWidth=function(ie){this.lineWidth=ie},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({drawingImgUrl:this.drawingImgUrl},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){this.createVisual(),de.prototype.restoreState.call(this,ie),this.drawingImgUrl=ie.drawingImgUrl,this.setDrawingImage()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setDrawingImage()},pe.typeName="FreehandMarker",pe.title="Freehand marker",pe.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>',pe}(Qe),Re=function(de){function pe(ie,ee,se){var le=de.call(this,ie,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return le.typeBoxes=[],le.currentType=ee,le.setCurrentType=le.setCurrentType.bind(le),le}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2";for(var se=function(We){var st="both";switch(We){case 0:st="both";break;case 1:st="start";break;case 2:st="end";break;case 3:st="none"}var mt=document.createElement("div");if(mt.style.display="flex",mt.style.flexGrow="2",mt.style.alignItems="center",mt.style.justifyContent="space-between",mt.style.padding="5px",mt.style.borderWidth="2px",mt.style.borderStyle="solid",mt.style.borderColor=st===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",mt.addEventListener("click",function(){ie.setCurrentType(st,mt)}),ee.appendChild(mt),st==="both"||st==="start"){var vt=document.createElement("div");vt.style.display="flex",vt.style.alignItems="center",vt.style.minHeight="20px",vt.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="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,vt.style.marginLeft="5px",mt.appendChild(vt)}var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.minHeight="20px",St.style.flexGrow="2";var _t=document.createElement("hr");if(_t.style.minWidth="20px",_t.style.border="0px",_t.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),_t.style.flexGrow="2",St.appendChild(_t),mt.appendChild(St),st==="both"||st==="end"){var Qt=document.createElement("div");Qt.style.display="flex",Qt.style.alignItems="center",Qt.style.minHeight="20px",Qt.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="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Qt.style.marginRight="5px",mt.appendChild(Qt)}le.typeBoxes.push(mt)},le=this,Be=0;Be<4;Be++)se(Be);return ee},pe.prototype.setCurrentType=function(ie,ee){var se=this;this.currentType=ie,this.typeBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},pe}(Te),Ot=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new Re("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.arrow1&&ie!==this.arrow2)},pe.prototype.getArrowPoints=function(ie,ee){var se=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ie-se/2+","+(ee+le/2)+" "+ie+","+(ee-le/2)+" "+(ie+se/2)+","+(ee+le/2)},pe.prototype.createTips=function(){this.arrow1=Ie.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ie.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ie.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ie.createTransform()),this.visual.appendChild(this.arrow2)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="creating"&&this.createTips()},pe.prototype.adjustVisual=function(){if(de.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",Ie.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ie.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ie=0;Math.abs(this.x1-this.x2)>.1&&(ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ee=this.arrow1.transform.baseVal.getItem(0);ee.setRotate(ie,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ee,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ie+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},pe.prototype.setArrowType=function(ie){this.arrowType=ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({arrowType:this.arrowType},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.arrowType=ee.arrowType,this.createTips(),this.adjustVisual()},pe.typeName="ArrowMarker",pe.title="Arrow marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',pe}(Ct),it=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor=se.defaultFillColor,le.strokeWidth=0,le.fillPanel=new we("Color",se.defaultColorSet,se.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return dt(pe,de),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="CoverMarker",pe.title="Cover marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',pe}(je),at=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<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 Be.opacities=[],Be.opacityBoxes=[],Be.opacities=ee,Be.currentOpacity=se,Be.setCurrentOpacity=Be.setCurrentOpacity.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2",ee.style.justifyContent="space-between",this.opacities.forEach(function(se){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=se===ie.currentOpacity?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentOpacity(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.innerText=100*se+"%",le.appendChild(Be),ie.opacityBoxes.push(le)}),ee},pe.prototype.setCurrentOpacity=function(ie,ee){var se=this;this.currentOpacity=ie,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},pe}(Te),Et=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=se.defaultHighlightColor,le.strokeWidth=0,le.opacity=se.defaultHighlightOpacity,le.fillPanel=new we("Color",se.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new at("Opacity",se.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return dt(pe,de),pe.prototype.setOpacity=function(ie){this.opacity=ie,this.visual&&Ie.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="HighlightMarker",pe.title="Highlight marker",pe.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>',pe}(it),Ze='<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>',De='<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>',ut=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=se.defaultStrokeColor,le.bgColor=se.defaultFillColor,le.fontFamily=se.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new we("Text color",se.defaultColorSet,le.color,Ze),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new we("Fill color",se.defaultColorSet,le.bgColor,De),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new ke,le.tipGrip.visual.transform.baseVal.appendItem(Ie.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return de.prototype.ownsTarget.call(this,ie)||this.tipGrip.ownsTarget(ie)||this.tip===ie},pe.prototype.createTip=function(){Ie.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ie.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},pe.prototype.pointerDown=function(ie,ee){this.state==="new"&&de.prototype.pointerDown.call(this,ie,ee),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ee)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):de.prototype.pointerDown.call(this,ie,ee)},pe.prototype.pointerUp=function(ie){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,de.prototype.pointerUp.call(this,ie);else{var ee=this.state==="creating";de.prototype.pointerUp.call(this,ie),this.setTipPoints(ee),this.positionTip()}},pe.prototype.manipulate=function(ie){if(this.tipMoving){var ee=this.unrotatePoint(ie);this.tipPosition={x:ee.x-this.manipulationStartLeft,y:ee.y-this.manipulationStartTop},this.positionTip()}else de.prototype.manipulate.call(this,ie)},pe.prototype.setBgColor=function(ie){this.bgRectangle&&this.tip&&(Ie.setAttributes(this.bgRectangle,[["fill",ie]]),Ie.setAttributes(this.tip,[["fill",ie]])),this.bgColor=ie,this.fillColorChanged(ie)},pe.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},pe.prototype.setTipPoints=function(ie){ie===void 0&&(ie=!1);var ee=Math.min(this.height/2,15),se=this.height/5;ie&&(this.tipPosition={x:ee+se/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:ee,y:0},this.tipBase2Position={x:ee+se,y:0}):(this.tipBase1Position={x:0,y:ee},this.tipBase2Position={x:0,y:ee+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ee-se,y:0},this.tipBase2Position={x:this.width-ee,y:0}):(this.tipBase1Position={x:this.width,y:ee},this.tipBase2Position={x:this.width,y:ee+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ee-se,y:this.height},this.tipBase2Position={x:this.width-ee,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ee-se},this.tipBase2Position={x:this.width,y:this.height-ee}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:ee,y:this.height},this.tipBase2Position={x:ee+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ee},this.tipBase2Position={x:0,y:this.height-ee-se})},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.positionTip()},pe.prototype.positionTip=function(){Ie.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ie=this.tipGrip.visual.transform.baseVal.getItem(0);ie.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ie,0)},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),pe.prototype.select=function(){this.positionTip(),de.prototype.select.call(this)},pe.prototype.getState=function(){var ie=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.bgColor=ee.bgColor,this.tipPosition=ee.tipPosition,de.prototype.restoreState.call(this,ie),this.createTip(),this.setTipPoints()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.tipPosition={x:this.tipPosition.x*ie,y:this.tipPosition.y*ee},this.positionTip()},pe.typeName="CalloutMarker",pe.title="Callout marker",pe.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>',pe}(ht),Zt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.fillColor=se.defaultFillColor,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.setOpacity=le.setOpacity.bind(le),le.createVisual=le.createVisual.bind(le),le.strokePanel=new we("Line color",ze(se.defaultColorSet,["transparent"]),se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new we("Fill color",ze(se.defaultColorSet,["transparent"]),le.fillColor,De),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Je("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new at("Opacity",se.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual)},pe.prototype.createVisual=function(){this.visual=Ie.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)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.setSize()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),Ie.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},pe.prototype.pointerUp=function(ie){de.prototype.pointerUp.call(this,ie),this.setSize()},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.visual&&Ie.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ie),this.stateChanged()},pe.prototype.setFillColor=function(ie){this.fillColor=ie,this.visual&&Ie.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ie),this.stateChanged()},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.visual&&Ie.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.visual&&Ie.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},pe.prototype.setOpacity=function(ie){this.opacity=ie,this.visual&&Ie.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.fillColor=ee.fillColor,this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.opacity=ee.opacity,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize()},pe.typeName="EllipseMarker",pe.title="Ellipse marker",pe.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>',pe}(Qe),Kt=function(de){function pe(ie,ee,se){return de.call(this,ie,ee,se)||this}return dt(pe,de),Object.defineProperty(pe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.tip1&&ie!==this.tip2)},pe.prototype.createTips=function(){this.tip1=Ie.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(Ie.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ie.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(Ie.createTransform()),this.visual.appendChild(this.tip2)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="creating"&&this.createTips()},pe.prototype.adjustVisual=function(){if(de.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ie.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()]]),Ie.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 ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ee=this.tip1.transform.baseVal.getItem(0);ee.setRotate(ie,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ee,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ie+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie),this.createTips(),this.adjustVisual()},pe.typeName="MeasurementMarker",pe.title="Measurement marker",pe.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>',pe}(Ct),tt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokePanel.colors=se.defaultColorSet,le.fillColor="transparent",le}return dt(pe,de),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="EllipseFrameMarker",pe.title="Ellipse frame marker",pe.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>',pe}(Zt),Dt=function(){function de(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(de.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),de.prototype.addUndoStep=function(pe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(pe)||(this.undoStack.push(pe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(pe)&&this.redoStack.splice(0,this.redoStack.length))},de.prototype.replaceLastUndoStep=function(pe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=pe)},de.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},de.prototype.undo=function(){if(this.undoStack.length>1){var pe=this.undoStack.pop();return pe!==void 0&&this.redoStack.push(pe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},de.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},de}(),jt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.strokePanel=new we("Line color",se.defaultColorSet,se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Je("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.selectorCurve&&ie!==this.visibleCurve&&!this.curveGrip.ownsTarget(ie))},pe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},pe.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.selectorCurve=Ie.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ie.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)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ie.x,this.curveY=ie.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ee)&&(this.activeGrip=this.curveGrip,this._state="resize")},pe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ie.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ie.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ie.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},pe.prototype.setupControlBox=function(){de.prototype.setupControlBox.call(this),this.curveControlLine1=Ie.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ie.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)},pe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,de.prototype.addControlGrips.call(this)},pe.prototype.positionGrips=function(){de.prototype.positionGrips.call(this);var ie=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ie/2,this.curveY-ie/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()))},pe.prototype.manipulate=function(ie){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ie.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ie.y-this.manipulationStartY),de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){this.activeGrip===this.curveGrip&&(this.curveX=ie.x,this.curveY=ie.y),de.prototype.resize.call(this,ie),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.adjustVisual(),this.colorChanged(ie)},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.adjustVisual()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.adjustVisual()},pe.prototype.scale=function(ie,ee){this.curveX=this.curveX*ie,this.curveY=this.curveY*ee,de.prototype.scale.call(this,ie,ee)},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.curveX=ee.curveX,this.curveY=ee.curveY,this.createVisual(),this.adjustVisual()},pe.typeName="CurveMarker",pe.title="Curve marker",pe.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>',pe}(pt),An=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.fillColor=se.defaultFillColor,le.textColor=se.defaultStrokeColor,le.fontFamily=se.defaultFontFamily,le.fontSize=se.defaultCaptionFontSize,le.captionText=se.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new we("Line color",ze(se.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new we("Fill color",ze(se.defaultColorSet,["transparent"]),le.fillColor,De),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Je("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new we("Text color",se.defaultColorSet,le.textColor,Ze),le.textColorPanel.onColorChanged=le.setTextColor,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.frame&&ie!==this.captionBg&&ie!==this.captionElement)},pe.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ie.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ie.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=Ie.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()},pe.prototype.setCaptionText=function(ie){this.captionText=ie,this.captionElement.textContent=this.captionText,this.sizeCaption()},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.isMoved=!1,this.pointerDownPoint=ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ie.x-this.pointerDownPoint.x)>5||Math.abs(ie.y-this.pointerDownPoint.y)>5)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.setSize()},pe.prototype.sizeCaption=function(){var ie=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ie.width+2*this.PADDING,this.captionBoxHeight=ie.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ie.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')"]]),Ie.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')"]])},pe.prototype.showTextEditor=function(){var ie=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(ee){ee.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ee){ee.key==="Enter"&&ie.finishTextEditing(ie.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ee){ee.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ie.finishTextEditing(ie.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ie.finishTextEditing(ie.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},pe.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"))},pe.prototype.finishTextEditing=function(ie){this.setCaptionText(ie.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},pe.prototype.setFont=function(ie){this.captionElement&&Ie.setAttributes(this.captionElement,[["font-family",ie]]),this.fontFamily=ie,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},pe.prototype.setTextColor=function(ie){this.captionElement&&Ie.setAttributes(this.captionElement,[["fill",ie]]),this.textColor=ie,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),Ie.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},pe.prototype.pointerUp=function(ie){de.prototype.pointerUp.call(this,ie),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},pe.prototype.dblClick=function(ie,ee){de.prototype.dblClick.call(this,ie,ee),this.showTextEditor()},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.frame&&Ie.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ie),this.stateChanged()},pe.prototype.setFillColor=function(ie){this.fillColor=ie,this.captionBg&&Ie.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ie),this.stateChanged()},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.frame&&Ie.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.frame&&Ie.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=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},de.prototype.getState.call(this));return ie.typeName=this.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.fillColor=ee.fillColor,this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.textColor=ee.textColor,this.fontFamily=ee.fontFamily,this.captionText=ee.captionText,this.fontSize=ee.fontSize,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize()},pe.typeName="CaptionFrameMarker",pe.title="Caption frame marker",pe.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>',pe}(Qe),kt=function(){function de(pe,ie){ie===void 0&&(ie=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=pe,this.cancelable=ie}return Object.defineProperty(de.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),de.prototype.preventDefault=function(){this._defaultPrevented=!0},de}(),pn=function(de){function pe(ie,ee,se){var le=de.call(this,ie,!1)||this;return le.dataUrl=ee,le.state=se,le}return dt(pe,de),pe}(kt),Pt=function(de){function pe(ie,ee,se){se===void 0&&(se=!1);var le=de.call(this,ie,se)||this;return le.marker=ee,le}return dt(pe,de),pe}(kt),En=function(){function de(){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 de.prototype.addEventListener=function(pe,ie){this[pe].push(ie)},de.prototype.removeEventListener=function(pe,ie){var ee=this[pe].indexOf(ie);ee>-1&&this[pe].splice(ee,1)},de}(),on=function(){function de(pe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ot,this._isOpen=!1,this.undoRedoManager=new Dt,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 En,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=de.instanceCounter++,this.styles=new oe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=pe,this.targetRoot=document.body,this.width=pe.clientWidth,this.height=pe.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(de.prototype,"ALL_MARKER_TYPES",{get:function(){return[ct,_e,Ot,ht,tt,Zt,Et,ut,Kt,it,Ct,jt,An]},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ct,_e,Ot,ht,Zt,Et,ut]},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ct,_e,Ot,ht,Et]},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(pe){var ie=this;this._availableMarkerTypes.splice(0),pe.forEach(function(ee){if(typeof ee=="string"){var se=ie.ALL_MARKER_TYPES.find(function(le){return le.typeName===ee});se!==void 0&&ie._availableMarkerTypes.push(se)}else ie._availableMarkerTypes.push(ee)})},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(pe){this._zoomLevel=pe,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(de.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),de.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},de.prototype.show=function(){var pe=this;this.styles.styleSheetRoot===void 0&&xe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=xe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ie){return ie(new kt(pe))})},de.prototype.render=function(){return Le(this,void 0,void 0,function(){var pe;return qe(this,function(ie){switch(ie.label){case 0:return this.setCurrentMarker(),(pe=new he).naturalSize=this.renderAtNaturalSize,pe.imageType=this.renderImageType,pe.imageQuality=this.renderImageQuality,pe.markersOnly=this.renderMarkersOnly,pe.width=this.renderWidth,pe.height=this.renderHeight,[4,pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ie.sent(),[4,pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ie.sent()]}})})},de.prototype.close=function(pe){var ie=this;if(pe===void 0&&(pe=!1),this.isOpen){var ee=!1;pe||this.eventListeners.beforeclose.forEach(function(se){var le=new kt(ie,!0);se(le),le.defaultPrevented&&(ee=!0)}),ee||(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(se){return se(new kt(ie))}),this.detachEvents(),this._isOpen=!1)}},de.prototype.addMarkersToToolbar=function(){for(var pe,ie=[],ee=0;ee<arguments.length;ee++)ie[ee]=arguments[ee];(pe=this._availableMarkerTypes).push.apply(pe,ie)},de.prototype.addRenderEventListener=function(pe){this.addEventListener("render",function(ie){pe(ie.dataUrl,ie.state)})},de.prototype.removeRenderEventListener=function(pe){},de.prototype.addCloseEventListener=function(pe){this.addEventListener("close",function(){pe()})},de.prototype.removeCloseEventListener=function(pe){},de.prototype.setupResizeObserver=function(){var pe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){pe.resize(pe.target.clientWidth,pe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return pe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},de.prototype.onPopupTargetResize=function(){var pe=1*this.target.clientWidth/this.target.clientHeight,ie=this.editorCanvas.clientWidth/pe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*pe:this.editorCanvas.clientWidth,ee=ie<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/pe;this.resize(ie,ee)},de.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},de.prototype.resize=function(pe,ie){this._isResizing=!0;var ee=pe/this.imageWidth,se=ie/this.imageHeight;this.imageWidth=Math.round(pe),this.imageHeight=Math.round(ie),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(ee,se),this._isResizing=!1},de.prototype.scaleMarkers=function(pe,ie){var ee,se=this;this._currentMarker&&this._currentMarker instanceof ht?this._currentMarker.scale(pe,ie):(ee=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==se._currentMarker&&le.scale(pe,ie)}),ee!==void 0&&this.setCurrentMarker(ee)},de.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"},de.prototype.setTopLeft=function(){var pe=this.editingTarget.getBoundingClientRect(),ie=this.editorCanvas.getBoundingClientRect();this.left=pe.left-ie.left,this.top=pe.top-ie.top},de.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)},de.prototype.addDefs=function(){for(var pe,ie=[],ee=0;ee<arguments.length;ee++)ie[ee]=arguments[ee];this.defs=Ie.createDefs(),this.addDefsToImage(),(pe=this.defs).append.apply(pe,ie)},de.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},de.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)},de.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},de.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},de.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)},de.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},de.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)},de.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 pe=document.createElement("a");pe.href="https://markerjs.com/",pe.target="_blank",pe.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>',pe.title="Powered by marker.js",pe.style.display="grid",pe.style.alignItems="center",pe.style.justifyItems="center",pe.style.padding="3px",pe.style.width="20px",pe.style.height="20px",this.logoUI.appendChild(pe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},de.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")},de.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"},de.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},de.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 pe=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=pe+"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 Me(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 Se(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},de.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},de.prototype.removeMarker=function(pe){this.markerImage.removeChild(pe.container),this.markers.indexOf(pe)>-1&&this.markers.splice(this.markers.indexOf(pe),1),pe.dispose()},de.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())},de.prototype.toolbarButtonClicked=function(pe,ie){if(pe==="marker"&&ie!==void 0)this.createNewMarker(ie);else if(pe==="action")switch(ie){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()}},de.prototype.deleteSelectedMarker=function(){var pe=this;if(this._currentMarker!==void 0){var ie=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var le=new Pt(pe,pe._currentMarker,!0);se(le),le.defaultPrevented&&(ie=!0)}),!ie){var ee=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(se){return se(new Pt(pe,ee))})}}},de.prototype.clear=function(){var pe=this,ie=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Be){var We=new Pt(pe,void 0,!0);Be(We),We.defaultPrevented&&(ie=!0)}),!ie)){this.setCurrentMarker();for(var ee=function(Be){var We=se.markers[Be];se.setCurrentMarker(se.markers[Be]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(st){return st(new Pt(pe,We))})},se=this,le=this.markers.length-1;le>=0;le--)ee(le);this.addUndoStep()}},Object.defineProperty(de.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),de.prototype.showNotesEditor=function(){var pe;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=(pe=this._currentMarker.notes)!==null&&pe!==void 0?pe:"",this.overlayContainer.appendChild(this.notesArea))},de.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)},de.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},de.prototype.addUndoStep=function(){var pe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ie=this.getState(),ee=this.undoRedoManager.getLastUndoStep();if(!ee||ee.width===ie.width&&ee.height===ie.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ie),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new kt(pe))})}else this.undoRedoManager.replaceLastUndoStep(ie),this.eventListeners.statechange.forEach(function(le){return le(new kt(pe))})}},de.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},de.prototype.undoStep=function(){var pe=this,ie=this.undoRedoManager.undo();ie!==void 0&&(this.restoreState(ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ee){return ee(new kt(pe))}))},de.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},de.prototype.redoStep=function(){var pe=this,ie=this.undoRedoManager.redo();ie!==void 0&&(this.restoreState(ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ee){return ee(new kt(pe))}))},de.prototype.stepZoom=function(){var pe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=pe<this.zoomSteps.length-1?this.zoomSteps[pe+1]:this.zoomSteps[0]},de.prototype.panTo=function(pe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-pe.x,top:this.prevPanPoint.y-pe.y}),this.prevPanPoint=pe},de.prototype.startRenderAndClose=function(){return Le(this,void 0,void 0,function(){var pe,ie,ee=this;return qe(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return pe=se.sent(),ie=this.getState(),this.eventListeners.render.forEach(function(le){return le(new pn(ee,pe,ie))}),this.close(!0),[2]}})})},de.prototype.getState=function(pe){pe===!0&&this.setCurrentMarker();var ie={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ee){return ie.markers.push(ee.getState())}),ie},de.prototype.restoreState=function(pe){var ie=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);pe.markers.forEach(function(ee){var se=ie._availableMarkerTypes.find(function(Be){return Be.typeName===ee.typeName});if(se!==void 0){var le=ie.addNewMarker(se);le.restoreState(ee),ie.markers.push(le)}}),pe.width&&pe.height&&(pe.width!==this.imageWidth||pe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/pe.width,this.imageHeight/pe.height),this.eventListeners.restorestate.forEach(function(ee){return ee(new kt(ie))})},de.prototype.addNewMarker=function(pe){var ie=Ie.createGroup();return this.markerImage.appendChild(ie),new pe(ie,this.overlayContainer,this.settings)},de.prototype.createNewMarker=function(pe){var ie,ee=this;(ie=typeof pe=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===pe}):pe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ie),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(ie.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new Pt(ee,ee._currentMarker))}))},de.prototype.markerCreated=function(pe){var ie=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(pe),this.setCurrentMarker(pe),pe instanceof _e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(_e):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ee){return ee(new Pt(ie,ie._currentMarker))})},de.prototype.colorChanged=function(pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=pe,this.settings.defaultStrokeColor=pe)},de.prototype.fillColorChanged=function(pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=pe)},de.prototype.markerStateChanged=function(pe){var ie=this;this.eventListeners.markerchange.forEach(function(ee){return ee(new Pt(ie,pe))})},de.prototype.setCurrentMarker=function(pe){var ie=this;this._currentMarker!==pe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ee){return ee(new Pt(ie,ie._currentMarker))})),this._currentMarker=pe,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(ee){return ee(new Pt(ie,ie._currentMarker))}))},de.prototype.onPointerDown=function(pe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||pe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ie=this.markers.find(function(ee){return ee.ownsTarget(pe.target)});ie!==void 0?(this.setCurrentMarker(ie),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(pe.clientX,pe.clientY),pe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:pe.clientX,y:pe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(pe.clientX,pe.clientY))},de.prototype.onDblClick=function(pe){if(this._isFocused||this.focus(),this.mode==="select"){var ie=this.markers.find(function(ee){return ee.ownsTarget(pe.target)});ie!==void 0&&ie!==this._currentMarker&&this.setCurrentMarker(ie),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(pe.clientX,pe.clientY),pe.target):this.setCurrentMarker()}},de.prototype.onPointerMove=function(pe){this.touchPoints!==1&&pe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||pe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(pe.clientX,pe.clientY)):this.zoomLevel>1&&this.panTo({x:pe.clientX,y:pe.clientY}))},de.prototype.onPointerUp=function(pe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(pe.clientX,pe.clientY)),this.isDragging=!1,this.addUndoStep()},de.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},de.prototype.onKeyUp=function(pe){this._currentMarker===void 0||this.notesArea!==void 0||pe.key!=="Delete"&&pe.key!=="Backspace"||this.deleteSelectedMarker()},de.prototype.clientToLocalCoordinates=function(pe,ie){var ee=this.markerImage.getBoundingClientRect();return{x:(pe-ee.left)/this.zoomLevel,y:(ie-ee.top)/this.zoomLevel}},de.prototype.onWindowResize=function(){this.positionUI()},de.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var pe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=pe+"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()},de.prototype.addLicenseKey=function(pe){Ue.addKey(pe)},de.prototype.addEventListener=function(pe,ie){this.eventListeners.addEventListener(pe,ie)},de.prototype.removeEventListener=function(pe,ie){this.eventListeners.removeEventListener(pe,ie)},de.prototype.renderState=function(pe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(pe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(de.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),de.prototype.focus=function(){var pe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ie){return ie(new kt(pe))}))},de.prototype.blur=function(){var pe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ie){return ie(new kt(pe))}))},de.instanceCounter=0,de}()},6551:function(qn,Mt,ae){"use strict";ae.d(Mt,{ZP:function(){return Ue}});var x=ae(72190),dt=ae(59301),Le=ae(47273),qe=0,ze=(0,Le.Z)();function Ie(){var he;return ze?(he=qe,qe+=1):he="TEST_OR_SSR",he}function Ue(he){var xe=dt.useState(),oe=(0,x.Z)(xe,2),Oe=oe[0],ve=oe[1];return dt.useEffect(function(){ve("rc_select_".concat(Ie()))},[]),he||Oe}},37463:function(qn,Mt,ae){"use strict";ae.d(Mt,{Ac:function(){return en},Xo:function(){return Fn},Wx:function(){return sn},ZP:function(){return ni},lk:function(){return Ke}});var x=ae(60499),dt=ae(77654),Le=ae(18642),qe=ae(85899),ze=ae(72190),Ie=ae(42244),Ue=ae(43749),he=ae(18929),xe=ae(48736),oe=ae(59301),Oe=ae(92310),ve=ae.n(Oe),Me=ae(34280),Se=ae(49658),Te=ae(8654),we=function(vn){var Ut=vn.className,dn=vn.customizeIcon,$t=vn.customizeIconProps,hn=vn.children,Nn=vn.onMouseDown,Hr=vn.onClick,zr=typeof dn=="function"?dn($t):dn;return oe.createElement("span",{className:Ut,onMouseDown:function(hr){hr.preventDefault(),Nn==null||Nn(hr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Hr,"aria-hidden":!0},zr!==void 0?zr:oe.createElement("span",{className:ve()(Ut.split(/\s+/).map(function(Ai){return"".concat(Ai,"-icon")}))},hn))},Ce=we,Ee=function(vn,Ut,dn,$t,hn){var Nn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Hr=arguments.length>6?arguments[6]:void 0,zr=arguments.length>7?arguments[7]:void 0,Ai=oe.useMemo(function(){if((0,Ue.Z)($t)==="object")return $t.clearIcon;if(hn)return hn},[$t,hn]),hr=oe.useMemo(function(){return!!(!Nn&&$t&&(dn.length||Hr)&&!(zr==="combobox"&&Hr===""))},[$t,Nn,dn.length,Hr,zr]);return{allowClear:hr,clearIcon:oe.createElement(Ce,{className:"".concat(vn,"-clear"),onMouseDown:Ut,customizeIcon:Ai},"\xD7")}},ke=oe.createContext(null);function Ke(){return oe.useContext(ke)}function Qe(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,vn=oe.useState(!1),Ut=(0,ze.Z)(vn,2),dn=Ut[0],$t=Ut[1],hn=oe.useRef(null),Nn=function(){window.clearTimeout(hn.current)};oe.useEffect(function(){return Nn},[]);var Hr=function(Ai,hr){Nn(),hn.current=window.setTimeout(function(){$t(Ai),hr&&hr()},gt)};return[dn,Hr,Nn]}function je(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,vn=oe.useRef(null),Ut=oe.useRef(null);oe.useEffect(function(){return function(){window.clearTimeout(Ut.current)}},[]);function dn($t){($t||vn.current===null)&&(vn.current=$t),window.clearTimeout(Ut.current),Ut.current=window.setTimeout(function(){vn.current=null},gt)}return[function(){return vn.current},dn]}function Je(gt,vn,Ut,dn){var $t=oe.useRef(null);$t.current={open:vn,triggerOpen:Ut,customizedTrigger:dn},oe.useEffect(function(){function hn(Nn){var Hr;if(!((Hr=$t.current)!==null&&Hr!==void 0&&Hr.customizedTrigger)){var zr=Nn.target;zr.shadowRoot&&Nn.composed&&(zr=Nn.composedPath()[0]||zr),$t.current.open&>().filter(function(Ai){return Ai}).every(function(Ai){return!Ai.contains(zr)&&Ai!==zr})&&$t.current.triggerOpen(!1)}}return window.addEventListener("mousedown",hn),function(){return window.removeEventListener("mousedown",hn)}},[])}var Ve=ae(10228);function ct(gt){return gt&&![Ve.Z.ESC,Ve.Z.SHIFT,Ve.Z.BACKSPACE,Ve.Z.TAB,Ve.Z.WIN_KEY,Ve.Z.ALT,Ve.Z.META,Ve.Z.WIN_KEY_RIGHT,Ve.Z.CTRL,Ve.Z.SEMICOLON,Ve.Z.EQUALS,Ve.Z.CAPS_LOCK,Ve.Z.CONTEXT_MENU,Ve.Z.F1,Ve.Z.F2,Ve.Z.F3,Ve.Z.F4,Ve.Z.F5,Ve.Z.F6,Ve.Z.F7,Ve.Z.F8,Ve.Z.F9,Ve.Z.F10,Ve.Z.F11,Ve.Z.F12].includes(gt)}var ot=ae(26112),pt=ae(83836);function Ct(gt,vn,Ut){var dn=(0,qe.Z)((0,qe.Z)({},gt),Ut?vn:{});return Object.keys(vn).forEach(function($t){var hn=vn[$t];typeof hn=="function"&&(dn[$t]=function(){for(var Nn,Hr=arguments.length,zr=new Array(Hr),Ai=0;Ai<Hr;Ai++)zr[Ai]=arguments[Ai];return hn.apply(void 0,zr),(Nn=gt[$t])===null||Nn===void 0?void 0:Nn.call.apply(Nn,[gt].concat(zr))})}),dn}var He=Ct,ht=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],_e=function(vn,Ut){var dn=vn.prefixCls,$t=vn.id,hn=vn.inputElement,Nn=vn.autoFocus,Hr=vn.autoComplete,zr=vn.editable,Ai=vn.activeDescendantId,hr=vn.value,nr=vn.open,ir=vn.attrs,Yr=(0,Ie.Z)(vn,ht),Mi=hn||oe.createElement("input",null),Yn=Mi,Vn=Yn.ref,Mr=Yn.props;return(0,xe.Kp)(!("maxLength"in Mi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Mi=oe.cloneElement(Mi,(0,qe.Z)((0,qe.Z)((0,qe.Z)({type:"search"},He(Yr,Mr,!0)),{},{id:$t,ref:(0,Te.sQ)(Ut,Vn),autoComplete:Hr||"off",autoFocus:Nn,className:ve()("".concat(dn,"-selection-search-input"),Mr==null?void 0:Mr.className),role:"combobox","aria-expanded":nr||!1,"aria-haspopup":"listbox","aria-owns":"".concat($t,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($t,"_list"),"aria-activedescendant":nr?Ai:void 0},ir),{},{value:zr?hr:"",readOnly:!zr,unselectable:zr?null:"on",style:(0,qe.Z)((0,qe.Z)({},Mr.style),{},{opacity:zr?null:0})})),Mi},Re=oe.forwardRef(_e),Ot=Re;function it(gt){return Array.isArray(gt)?gt:gt!==void 0?[gt]:[]}var at=typeof window!="undefined"&&window.document&&window.document.documentElement,Et=at;function Ze(gt){return gt!=null}function De(gt){return!gt&>!==0}function ut(gt){return["string","number"].includes((0,Ue.Z)(gt))}function Zt(gt){var vn=void 0;return gt&&(ut(gt.title)?vn=gt.title.toString():ut(gt.label)&&(vn=gt.label.toString())),vn}function Kt(gt,vn){Et?oe.useLayoutEffect(gt,vn):oe.useEffect(gt,vn)}function tt(gt){var vn;return(vn=gt.key)!==null&&vn!==void 0?vn:gt.value}var Dt=function(vn){vn.preventDefault(),vn.stopPropagation()},jt=function(vn){var Ut=vn.id,dn=vn.prefixCls,$t=vn.values,hn=vn.open,Nn=vn.searchValue,Hr=vn.autoClearSearchValue,zr=vn.inputRef,Ai=vn.placeholder,hr=vn.disabled,nr=vn.mode,ir=vn.showSearch,Yr=vn.autoFocus,Mi=vn.autoComplete,Yn=vn.activeDescendantId,Vn=vn.tabIndex,Mr=vn.removeIcon,Tn=vn.maxTagCount,mn=vn.maxTagTextLength,tr=vn.maxTagPlaceholder,or=tr===void 0?function(ci){return"+ ".concat(ci.length," ...")}:tr,ar=vn.tagRender,kr=vn.onToggleOpen,vi=vn.onRemove,qr=vn.onInputChange,Li=vn.onInputPaste,_i=vn.onInputKeyDown,ri=vn.onInputMouseDown,hi=vn.onInputCompositionStart,ro=vn.onInputCompositionEnd,ki=vn.onInputBlur,bi=oe.useRef(null),Ni=(0,oe.useState)(0),oo=(0,ze.Z)(Ni,2),Di=oo[0],yo=oo[1],Ji=(0,oe.useState)(!1),po=(0,ze.Z)(Ji,2),ho=po[0],Jo=po[1],xo="".concat(dn,"-selection"),no=hn||nr==="multiple"&&Hr===!1||nr==="tags"?Nn:"",Do=nr==="tags"||nr==="multiple"&&Hr===!1||ir&&(hn||ho);Kt(function(){yo(bi.current.scrollWidth)},[no]);var Zo=function(Zr,Qi,eo,Rr,ai){return oe.createElement("span",{title:Zt(Zr),className:ve()("".concat(xo,"-item"),(0,Le.Z)({},"".concat(xo,"-item-disabled"),eo))},oe.createElement("span",{className:"".concat(xo,"-item-content")},Qi),Rr&&oe.createElement(Ce,{className:"".concat(xo,"-item-remove"),onMouseDown:Dt,onClick:ai,customizeIcon:Mr},"\xD7"))},jo=function(Zr,Qi,eo,Rr,ai,Fi){var Ri=function(ui){Dt(ui),kr(!hn)};return oe.createElement("span",{onMouseDown:Ri},ar({label:Qi,value:Zr,disabled:eo,closable:Rr,onClose:ai,isMaxTag:!!Fi}))},Cn=function(Zr){var Qi=Zr.disabled,eo=Zr.label,Rr=Zr.value,ai=!hr&&!Qi,Fi=eo;if(typeof mn=="number"&&(typeof eo=="string"||typeof eo=="number")){var Ri=String(Fi);Ri.length>mn&&(Fi="".concat(Ri.slice(0,mn),"..."))}var Mo=function(Zi){Zi&&Zi.stopPropagation(),vi(Zr)};return typeof ar=="function"?jo(Rr,Fi,Qi,ai,Mo):Zo(Zr,Fi,Qi,ai,Mo)},Vi=function(Zr){if(!$t.length)return null;var Qi=typeof or=="function"?or(Zr):or;return typeof ar=="function"?jo(void 0,Qi,!1,!1,void 0,!0):Zo({title:Qi},Qi,!1)},Ur=oe.createElement("div",{className:"".concat(xo,"-search"),style:{width:Di},onFocus:function(){Jo(!0)},onBlur:function(){Jo(!1)}},oe.createElement(Ot,{ref:zr,open:hn,prefixCls:dn,id:Ut,inputElement:null,disabled:hr,autoFocus:Yr,autoComplete:Mi,editable:Do,activeDescendantId:Yn,value:no,onKeyDown:_i,onMouseDown:ri,onChange:qr,onPaste:Li,onCompositionStart:hi,onCompositionEnd:ro,onBlur:ki,tabIndex:Vn,attrs:(0,ot.Z)(vn,!0)}),oe.createElement("span",{ref:bi,className:"".concat(xo,"-search-mirror"),"aria-hidden":!0},no,"\xA0")),Vr=oe.createElement(pt.Z,{prefixCls:"".concat(xo,"-overflow"),data:$t,renderItem:Cn,renderRest:Vi,suffix:Ur,itemKey:tt,maxCount:Tn});return oe.createElement("span",{className:"".concat(xo,"-wrap")},Vr,!$t.length&&!no&&oe.createElement("span",{className:"".concat(xo,"-placeholder")},Ai))},An=jt,kt=function(vn){var Ut=vn.inputElement,dn=vn.prefixCls,$t=vn.id,hn=vn.inputRef,Nn=vn.disabled,Hr=vn.autoFocus,zr=vn.autoComplete,Ai=vn.activeDescendantId,hr=vn.mode,nr=vn.open,ir=vn.values,Yr=vn.placeholder,Mi=vn.tabIndex,Yn=vn.showSearch,Vn=vn.searchValue,Mr=vn.activeValue,Tn=vn.maxLength,mn=vn.onInputKeyDown,tr=vn.onInputMouseDown,or=vn.onInputChange,ar=vn.onInputPaste,kr=vn.onInputCompositionStart,vi=vn.onInputCompositionEnd,qr=vn.onInputBlur,Li=vn.title,_i=oe.useState(!1),ri=(0,ze.Z)(_i,2),hi=ri[0],ro=ri[1],ki=hr==="combobox",bi=ki||Yn,Ni=ir[0],oo=Vn||"";ki&&Mr&&!hi&&(oo=Mr),oe.useEffect(function(){ki&&ro(!1)},[ki,Mr]);var Di=hr!=="combobox"&&!nr&&!Yn?!1:!!oo,yo=Li===void 0?Zt(Ni):Li,Ji=oe.useMemo(function(){return Ni?null:oe.createElement("span",{className:"".concat(dn,"-selection-placeholder"),style:Di?{visibility:"hidden"}:void 0},Yr)},[Ni,Di,Yr,dn]);return oe.createElement("span",{className:"".concat(dn,"-selection-wrap")},oe.createElement("span",{className:"".concat(dn,"-selection-search")},oe.createElement(Ot,{ref:hn,prefixCls:dn,id:$t,open:nr,inputElement:Ut,disabled:Nn,autoFocus:Hr,autoComplete:zr,editable:bi,activeDescendantId:Ai,value:oo,onKeyDown:mn,onMouseDown:tr,onChange:function(ho){ro(!0),or(ho)},onPaste:ar,onCompositionStart:kr,onCompositionEnd:vi,onBlur:qr,tabIndex:Mi,attrs:(0,ot.Z)(vn,!0),maxLength:ki?Tn:void 0})),!ki&&Ni?oe.createElement("span",{className:"".concat(dn,"-selection-item"),title:yo,style:Di?{visibility:"hidden"}:void 0},Ni.label):null,Ji)},pn=kt,Pt=function(vn,Ut){var dn=(0,oe.useRef)(null),$t=(0,oe.useRef)(!1),hn=vn.prefixCls,Nn=vn.open,Hr=vn.mode,zr=vn.showSearch,Ai=vn.tokenWithEnter,hr=vn.disabled,nr=vn.prefix,ir=vn.autoClearSearchValue,Yr=vn.onSearch,Mi=vn.onSearchSubmit,Yn=vn.onToggleOpen,Vn=vn.onInputKeyDown,Mr=vn.onInputBlur,Tn=vn.domRef;oe.useImperativeHandle(Ut,function(){return{focus:function(yo){dn.current.focus(yo)},blur:function(){dn.current.blur()}}});var mn=je(0),tr=(0,ze.Z)(mn,2),or=tr[0],ar=tr[1],kr=function(yo){var Ji=yo.which,po=dn.current instanceof HTMLTextAreaElement;!po&&Nn&&(Ji===Ve.Z.UP||Ji===Ve.Z.DOWN)&&yo.preventDefault(),Vn&&Vn(yo),Ji===Ve.Z.ENTER&&Hr==="tags"&&!$t.current&&!Nn&&(Mi==null||Mi(yo.target.value)),!(po&&!Nn&&~[Ve.Z.UP,Ve.Z.DOWN,Ve.Z.LEFT,Ve.Z.RIGHT].indexOf(Ji))&&ct(Ji)&&Yn(!0)},vi=function(){ar(!0)},qr=(0,oe.useRef)(null),Li=function(yo){Yr(yo,!0,$t.current)!==!1&&Yn(!0)},_i=function(){$t.current=!0},ri=function(yo){$t.current=!1,Hr!=="combobox"&&Li(yo.target.value)},hi=function(yo){var Ji=yo.target.value;if(Ai&&qr.current&&/[\r\n]/.test(qr.current)){var po=qr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ji=Ji.replace(po,qr.current)}qr.current=null,Li(Ji)},ro=function(yo){var Ji=yo.clipboardData,po=Ji==null?void 0:Ji.getData("text");qr.current=po||""},ki=function(yo){var Ji=yo.target;if(Ji!==dn.current){var po=document.body.style.msTouchAction!==void 0;po?setTimeout(function(){dn.current.focus()}):dn.current.focus()}},bi=function(yo){var Ji=or();yo.target!==dn.current&&!Ji&&!(Hr==="combobox"&&hr)&&yo.preventDefault(),(Hr!=="combobox"&&(!zr||!Ji)||!Nn)&&(Nn&&ir!==!1&&Yr("",!0,!1),Yn())},Ni={inputRef:dn,onInputKeyDown:kr,onInputMouseDown:vi,onInputChange:hi,onInputPaste:ro,onInputCompositionStart:_i,onInputCompositionEnd:ri,onInputBlur:Mr},oo=Hr==="multiple"||Hr==="tags"?oe.createElement(An,(0,x.Z)({},vn,Ni)):oe.createElement(pn,(0,x.Z)({},vn,Ni));return oe.createElement("div",{ref:Tn,className:"".concat(hn,"-selector"),onClick:ki,onMouseDown:bi},nr&&oe.createElement("div",{className:"".concat(hn,"-prefix")},nr),oo)},En=oe.forwardRef(Pt),on=En,de=ae(68196),pe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ie=function(vn){var Ut=vn===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ut,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ut,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ut,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ut,adjustY:1},htmlRegion:"scroll"}}},ee=function(vn,Ut){var dn=vn.prefixCls,$t=vn.disabled,hn=vn.visible,Nn=vn.children,Hr=vn.popupElement,zr=vn.animation,Ai=vn.transitionName,hr=vn.dropdownStyle,nr=vn.dropdownClassName,ir=vn.direction,Yr=ir===void 0?"ltr":ir,Mi=vn.placement,Yn=vn.builtinPlacements,Vn=vn.dropdownMatchSelectWidth,Mr=vn.dropdownRender,Tn=vn.dropdownAlign,mn=vn.getPopupContainer,tr=vn.empty,or=vn.getTriggerDOMNode,ar=vn.onPopupVisibleChange,kr=vn.onPopupMouseEnter,vi=(0,Ie.Z)(vn,pe),qr="".concat(dn,"-dropdown"),Li=Hr;Mr&&(Li=Mr(Hr));var _i=oe.useMemo(function(){return Yn||ie(Vn)},[Yn,Vn]),ri=zr?"".concat(qr,"-").concat(zr):Ai,hi=typeof Vn=="number",ro=oe.useMemo(function(){return hi?null:Vn===!1?"minWidth":"width"},[Vn,hi]),ki=hr;hi&&(ki=(0,qe.Z)((0,qe.Z)({},ki),{},{width:Vn}));var bi=oe.useRef(null);return oe.useImperativeHandle(Ut,function(){return{getPopupElement:function(){var oo;return(oo=bi.current)===null||oo===void 0?void 0:oo.popupElement}}}),oe.createElement(de.Z,(0,x.Z)({},vi,{showAction:ar?["click"]:[],hideAction:ar?["click"]:[],popupPlacement:Mi||(Yr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_i,prefixCls:qr,popupTransitionName:ri,popup:oe.createElement("div",{onMouseEnter:kr},Li),ref:bi,stretch:ro,popupAlign:Tn,popupVisible:hn,getPopupContainer:mn,popupClassName:ve()(nr,(0,Le.Z)({},"".concat(qr,"-empty"),tr)),popupStyle:ki,getTriggerDOMNode:or,onPopupVisibleChange:ar}),Nn)},se=oe.forwardRef(ee),le=se,Be=ae(48745);function We(gt,vn){var Ut=gt.key,dn;return"value"in gt&&(dn=gt.value),Ut!=null?Ut:dn!==void 0?dn:"rc-index-key-".concat(vn)}function st(gt){return typeof gt!="undefined"&&!Number.isNaN(gt)}function mt(gt,vn){var Ut=gt||{},dn=Ut.label,$t=Ut.value,hn=Ut.options,Nn=Ut.groupLabel,Hr=dn||(vn?"children":"label");return{label:Hr,value:$t||"value",options:hn||"options",groupLabel:Nn||Hr}}function vt(gt){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ut=vn.fieldNames,dn=vn.childrenAsData,$t=[],hn=mt(Ut,!1),Nn=hn.label,Hr=hn.value,zr=hn.options,Ai=hn.groupLabel;function hr(nr,ir){Array.isArray(nr)&&nr.forEach(function(Yr){if(ir||!(zr in Yr)){var Mi=Yr[Hr];$t.push({key:We(Yr,$t.length),groupOption:ir,data:Yr,label:Yr[Nn],value:Mi})}else{var Yn=Yr[Ai];Yn===void 0&&dn&&(Yn=Yr.label),$t.push({key:We(Yr,$t.length),group:!0,data:Yr,label:Yn}),hr(Yr[zr],!0)}})}return hr(gt,!1),$t}function St(gt){var vn=(0,qe.Z)({},gt);return"props"in vn||Object.defineProperty(vn,"props",{get:function(){return(0,xe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),vn}}),vn}var _t=function(vn,Ut,dn){if(!Ut||!Ut.length)return null;var $t=!1,hn=function Hr(zr,Ai){var hr=(0,Be.Z)(Ai),nr=hr[0],ir=hr.slice(1);if(!nr)return[zr];var Yr=zr.split(nr);return $t=$t||Yr.length>1,Yr.reduce(function(Mi,Yn){return[].concat((0,dt.Z)(Mi),(0,dt.Z)(Hr(Yn,ir)))},[]).filter(Boolean)},Nn=hn(vn,Ut);return $t?typeof dn!="undefined"?Nn.slice(0,dn):Nn:null},Qt=oe.createContext(null),xt=Qt;function lt(gt){var vn=gt.visible,Ut=gt.values;if(!vn)return null;var dn=50;return oe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ut.slice(0,dn).map(function($t){var hn=$t.label,Nn=$t.value;return["number","string"].includes((0,Ue.Z)(hn))?hn:Nn}).join(", ")),Ut.length>dn?", ...":null)}var Vt=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Wt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],gn=function(vn){return vn==="tags"||vn==="multiple"},an=oe.forwardRef(function(gt,vn){var Ut,dn=gt.id,$t=gt.prefixCls,hn=gt.className,Nn=gt.showSearch,Hr=gt.tagRender,zr=gt.direction,Ai=gt.omitDomProps,hr=gt.displayValues,nr=gt.onDisplayValuesChange,ir=gt.emptyOptions,Yr=gt.notFoundContent,Mi=Yr===void 0?"Not Found":Yr,Yn=gt.onClear,Vn=gt.mode,Mr=gt.disabled,Tn=gt.loading,mn=gt.getInputElement,tr=gt.getRawInputElement,or=gt.open,ar=gt.defaultOpen,kr=gt.onDropdownVisibleChange,vi=gt.activeValue,qr=gt.onActiveValueChange,Li=gt.activeDescendantId,_i=gt.searchValue,ri=gt.autoClearSearchValue,hi=gt.onSearch,ro=gt.onSearchSplit,ki=gt.tokenSeparators,bi=gt.allowClear,Ni=gt.prefix,oo=gt.suffixIcon,Di=gt.clearIcon,yo=gt.OptionList,Ji=gt.animation,po=gt.transitionName,ho=gt.dropdownStyle,Jo=gt.dropdownClassName,xo=gt.dropdownMatchSelectWidth,no=gt.dropdownRender,Do=gt.dropdownAlign,Zo=gt.placement,jo=gt.builtinPlacements,Cn=gt.getPopupContainer,Vi=gt.showAction,Ur=Vi===void 0?[]:Vi,Vr=gt.onFocus,ci=gt.onBlur,Zr=gt.onKeyUp,Qi=gt.onKeyDown,eo=gt.onMouseDown,Rr=(0,Ie.Z)(gt,Vt),ai=gn(Vn),Fi=(Nn!==void 0?Nn:ai)||Vn==="combobox",Ri=(0,qe.Z)({},Rr);Wt.forEach(function(Sa){delete Ri[Sa]}),Ai==null||Ai.forEach(function(Sa){delete Ri[Sa]});var Mo=oe.useState(!1),ui=(0,ze.Z)(Mo,2),Zi=ui[0],Wo=ui[1];oe.useEffect(function(){Wo((0,Se.Z)())},[]);var Xo=oe.useRef(null),ra=oe.useRef(null),Qo=oe.useRef(null),qo=oe.useRef(null),Yo=oe.useRef(null),Ba=oe.useRef(!1),ls=Qe(),Ma=(0,ze.Z)(ls,3),Na=Ma[0],$a=Ma[1],_o=Ma[2];oe.useImperativeHandle(vn,function(){var Sa,Qa;return{focus:(Sa=qo.current)===null||Sa===void 0?void 0:Sa.focus,blur:(Qa=qo.current)===null||Qa===void 0?void 0:Qa.blur,scrollTo:function(ic){var Yl;return(Yl=Yo.current)===null||Yl===void 0?void 0:Yl.scrollTo(ic)},nativeElement:Xo.current||ra.current}});var Fo=oe.useMemo(function(){var Sa;if(Vn!=="combobox")return _i;var Qa=(Sa=hr[0])===null||Sa===void 0?void 0:Sa.value;return typeof Qa=="string"||typeof Qa=="number"?String(Qa):""},[_i,Vn,hr]),Ea=Vn==="combobox"&&typeof mn=="function"&&mn()||null,us=typeof tr=="function"&&tr(),sl=(0,Te.x1)(ra,us==null||(Ut=us.props)===null||Ut===void 0?void 0:Ut.ref),qs=oe.useState(!1),ll=(0,ze.Z)(qs,2),su=ll[0],Bl=ll[1];(0,Me.Z)(function(){Bl(!0)},[]);var el=(0,he.Z)(!1,{defaultValue:ar,value:or}),Wl=(0,ze.Z)(el,2),xu=Wl[0],Nu=Wl[1],Gs=su?xu:!1,mc=!Mi&&ir;(Mr||mc&&Gs&&Vn==="combobox")&&(Gs=!1);var gc=mc?!1:Gs,ga=oe.useCallback(function(Sa){var Qa=Sa!==void 0?Sa:!Gs;Mr||(Nu(Qa),Gs!==Qa&&(kr==null||kr(Qa)))},[Mr,Gs,Nu,kr]),La=oe.useMemo(function(){return(ki||[]).some(function(Sa){return[`
|
|
|
`,`\r
|
|
|
`].includes(Sa)})},[ki]),ha=oe.useContext(xt)||{},va=ha.maxCount,ts=ha.rawValues,Ya=function(Qa,Rs,ic){if(!(ai&&st(va)&&(ts==null?void 0:ts.size)>=va)){var Yl=!0,du=Qa;qr==null||qr(null);var $c=_t(Qa,ki,st(va)?va-ts.size:void 0),vc=ic?null:$c;return Vn!=="combobox"&&vc&&(du="",ro==null||ro(vc),ga(!1),Yl=!1),hi&&Fo!==du&&hi(du,{source:Rs?"typing":"effect"}),Yl}},Ga=function(Qa){!Qa||!Qa.trim()||hi(Qa,{source:"submit"})};oe.useEffect(function(){!Gs&&!ai&&Vn!=="combobox"&&Ya("",!1,!1)},[Gs]),oe.useEffect(function(){xu&&Mr&&Nu(!1),Mr&&!Ba.current&&$a(!1)},[Mr]);var Gl=je(),lu=(0,ze.Z)(Gl,2),Tl=lu[0],Ou=lu[1],Hi=oe.useRef(!1),ia=function(Qa){var Rs=Tl(),ic=Qa.key,Yl=ic==="Enter";if(Yl&&(Vn!=="combobox"&&Qa.preventDefault(),Gs||ga(!0)),Ou(!!Fo),ic==="Backspace"&&!Rs&&ai&&!Fo&&hr.length){for(var du=(0,dt.Z)(hr),$c=null,vc=du.length-1;vc>=0;vc-=1){var dA=du[vc];if(!dA.disabled){du.splice(vc,1),$c=dA;break}}$c&&nr(du,{type:"remove",values:[$c]})}for(var Jl=arguments.length,yc=new Array(Jl>1?Jl-1:0),tA=1;tA<Jl;tA++)yc[tA-1]=arguments[tA];if(Gs&&(!Yl||!Hi.current)){var nA;Yl&&(Hi.current=!0),(nA=Yo.current)===null||nA===void 0||nA.onKeyDown.apply(nA,[Qa].concat(yc))}Qi==null||Qi.apply(void 0,[Qa].concat(yc))},Ta=function(Qa){for(var Rs=arguments.length,ic=new Array(Rs>1?Rs-1:0),Yl=1;Yl<Rs;Yl++)ic[Yl-1]=arguments[Yl];if(Gs){var du;(du=Yo.current)===null||du===void 0||du.onKeyUp.apply(du,[Qa].concat(ic))}Qa.key==="Enter"&&(Hi.current=!1),Zr==null||Zr.apply(void 0,[Qa].concat(ic))},ks=function(Qa){var Rs=hr.filter(function(ic){return ic!==Qa});nr(Rs,{type:"remove",values:[Qa]})},pu=function(){Hi.current=!1},Hs=oe.useRef(!1),Kc=function(){$a(!0),Mr||(Vr&&!Hs.current&&Vr.apply(void 0,arguments),Ur.includes("focus")&&ga(!0)),Hs.current=!0},Vu=function(){Ba.current=!0,$a(!1,function(){Hs.current=!1,Ba.current=!1,ga(!1)}),!Mr&&(Fo&&(Vn==="tags"?hi(Fo,{source:"submit"}):Vn==="multiple"&&hi("",{source:"blur"})),ci&&ci.apply(void 0,arguments))},rc=[];oe.useEffect(function(){return function(){rc.forEach(function(Sa){return clearTimeout(Sa)}),rc.splice(0,rc.length)}},[]);var vs=function(Qa){var Rs,ic=Qa.target,Yl=(Rs=Qo.current)===null||Rs===void 0?void 0:Rs.getPopupElement();if(Yl&&Yl.contains(ic)){var du=setTimeout(function(){var Jl=rc.indexOf(du);if(Jl!==-1&&rc.splice(Jl,1),_o(),!Zi&&!Yl.contains(document.activeElement)){var yc;(yc=qo.current)===null||yc===void 0||yc.focus()}});rc.push(du)}for(var $c=arguments.length,vc=new Array($c>1?$c-1:0),dA=1;dA<$c;dA++)vc[dA-1]=arguments[dA];eo==null||eo.apply(void 0,[Qa].concat(vc))},Bu=oe.useState({}),Ms=(0,ze.Z)(Bu,2),_A=Ms[1];function El(){_A({})}var kl;us&&(kl=function(Qa){ga(Qa)}),Je(function(){var Sa;return[Xo.current,(Sa=Qo.current)===null||Sa===void 0?void 0:Sa.getPopupElement()]},gc,ga,!!us);var Vl=oe.useMemo(function(){return(0,qe.Z)((0,qe.Z)({},gt),{},{notFoundContent:Mi,open:Gs,triggerOpen:gc,id:dn,showSearch:Fi,multiple:ai,toggleOpen:ga})},[gt,Mi,gc,Gs,dn,Fi,ai,ga]),NA=!!oo||Tn,vl;NA&&(vl=oe.createElement(Ce,{className:ve()("".concat($t,"-arrow"),(0,Le.Z)({},"".concat($t,"-arrow-loading"),Tn)),customizeIcon:oo,customizeIconProps:{loading:Tn,searchValue:Fo,open:Gs,focused:Na,showSearch:Fi}}));var mu=function(){var Qa;Yn==null||Yn(),(Qa=qo.current)===null||Qa===void 0||Qa.focus(),nr([],{type:"clear",values:hr}),Ya("",!1,!1)},jl=Ee($t,mu,hr,bi,Di,Mr,Fo,Vn),Us=jl.allowClear,tl=jl.clearIcon,KA=oe.createElement(yo,{ref:Yo}),$A=ve()($t,hn,(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat($t,"-focused"),Na),"".concat($t,"-multiple"),ai),"".concat($t,"-single"),!ai),"".concat($t,"-allow-clear"),bi),"".concat($t,"-show-arrow"),NA),"".concat($t,"-disabled"),Mr),"".concat($t,"-loading"),Tn),"".concat($t,"-open"),Gs),"".concat($t,"-customize-input"),Ea),"".concat($t,"-show-search"),Fi)),Xl=oe.createElement(le,{ref:Qo,disabled:Mr,prefixCls:$t,visible:gc,popupElement:KA,animation:Ji,transitionName:po,dropdownStyle:ho,dropdownClassName:Jo,direction:zr,dropdownMatchSelectWidth:xo,dropdownRender:no,dropdownAlign:Do,placement:Zo,builtinPlacements:jo,getPopupContainer:Cn,empty:ir,getTriggerDOMNode:function(Qa){return ra.current||Qa},onPopupVisibleChange:kl,onPopupMouseEnter:El},us?oe.cloneElement(us,{ref:sl}):oe.createElement(on,(0,x.Z)({},gt,{domRef:ra,prefixCls:$t,inputElement:Ea,ref:qo,id:dn,prefix:Ni,showSearch:Fi,autoClearSearchValue:ri,mode:Vn,activeDescendantId:Li,tagRender:Hr,values:hr,open:Gs,onToggleOpen:ga,activeValue:vi,searchValue:Fo,onSearch:Ya,onSearchSubmit:Ga,onRemove:ks,tokenWithEnter:La,onInputBlur:pu}))),Eu;return us?Eu=Xl:Eu=oe.createElement("div",(0,x.Z)({className:$A},Ri,{ref:Xo,onMouseDown:vs,onKeyDown:ia,onKeyUp:Ta,onFocus:Kc,onBlur:Vu}),oe.createElement(lt,{visible:Na&&!Gs,values:hr}),Xl,vl,Us&&tl),oe.createElement(ke.Provider,{value:Vl},Eu)}),en=an,zn=function(){return null};zn.isSelectOptGroup=!0;var Fn=zn,Rt=function(){return null};Rt.isSelectOption=!0;var sn=Rt,_n=ae(80547),Wn=ae(2738),Lt=ae(48911);function Gt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var nn=["disabled","title","children","style","className"];function wn(gt){return typeof gt=="string"||typeof gt=="number"}var Gn=function(vn,Ut){var dn=Ke(),$t=dn.prefixCls,hn=dn.id,Nn=dn.open,Hr=dn.multiple,zr=dn.mode,Ai=dn.searchValue,hr=dn.toggleOpen,nr=dn.notFoundContent,ir=dn.onPopupScroll,Yr=oe.useContext(xt),Mi=Yr.maxCount,Yn=Yr.flattenOptions,Vn=Yr.onActiveValue,Mr=Yr.defaultActiveFirstOption,Tn=Yr.onSelect,mn=Yr.menuItemSelectedIcon,tr=Yr.rawValues,or=Yr.fieldNames,ar=Yr.virtual,kr=Yr.direction,vi=Yr.listHeight,qr=Yr.listItemHeight,Li=Yr.optionRender,_i="".concat($t,"-item"),ri=(0,_n.Z)(function(){return Yn},[Nn,Yn],function(Vi,Ur){return Ur[0]&&Vi[1]!==Ur[1]}),hi=oe.useRef(null),ro=oe.useMemo(function(){return Hr&&st(Mi)&&(tr==null?void 0:tr.size)>=Mi},[Hr,Mi,tr==null?void 0:tr.size]),ki=function(Ur){Ur.preventDefault()},bi=function(Ur){var Vr;(Vr=hi.current)===null||Vr===void 0||Vr.scrollTo(typeof Ur=="number"?{index:Ur}:Ur)},Ni=oe.useCallback(function(Vi){return zr==="combobox"?!1:tr.has(Vi)},[zr,(0,dt.Z)(tr).toString(),tr.size]),oo=function(Ur){for(var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ci=ri.length,Zr=0;Zr<ci;Zr+=1){var Qi=(Ur+Zr*Vr+ci)%ci,eo=ri[Qi]||{},Rr=eo.group,ai=eo.data;if(!Rr&&!(ai!=null&&ai.disabled)&&(Ni(ai.value)||!ro))return Qi}return-1},Di=oe.useState(function(){return oo(0)}),yo=(0,ze.Z)(Di,2),Ji=yo[0],po=yo[1],ho=function(Ur){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;po(Ur);var ci={source:Vr?"keyboard":"mouse"},Zr=ri[Ur];if(!Zr){Vn(null,-1,ci);return}Vn(Zr.value,Ur,ci)};(0,oe.useEffect)(function(){ho(Mr!==!1?oo(0):-1)},[ri.length,Ai]);var Jo=oe.useCallback(function(Vi){return zr==="combobox"?String(Vi).toLowerCase()===Ai.toLowerCase():tr.has(Vi)},[zr,Ai,(0,dt.Z)(tr).toString(),tr.size]);(0,oe.useEffect)(function(){var Vi=setTimeout(function(){if(!Hr&&Nn&&tr.size===1){var Vr=Array.from(tr)[0],ci=ri.findIndex(function(Zr){var Qi=Zr.data;return Ai?String(Qi.value).startsWith(Ai):Qi.value===Vr});ci!==-1&&(ho(ci),bi(ci))}});if(Nn){var Ur;(Ur=hi.current)===null||Ur===void 0||Ur.scrollTo(void 0)}return function(){return clearTimeout(Vi)}},[Nn,Ai]);var xo=function(Ur){Ur!==void 0&&Tn(Ur,{selected:!tr.has(Ur)}),Hr||hr(!1)};if(oe.useImperativeHandle(Ut,function(){return{onKeyDown:function(Ur){var Vr=Ur.which,ci=Ur.ctrlKey;switch(Vr){case Ve.Z.N:case Ve.Z.P:case Ve.Z.UP:case Ve.Z.DOWN:{var Zr=0;if(Vr===Ve.Z.UP?Zr=-1:Vr===Ve.Z.DOWN?Zr=1:Gt()&&ci&&(Vr===Ve.Z.N?Zr=1:Vr===Ve.Z.P&&(Zr=-1)),Zr!==0){var Qi=oo(Ji+Zr,Zr);bi(Qi),ho(Qi,!0)}break}case Ve.Z.TAB:case Ve.Z.ENTER:{var eo,Rr=ri[Ji];Rr&&!(Rr!=null&&(eo=Rr.data)!==null&&eo!==void 0&&eo.disabled)&&!ro?xo(Rr.value):xo(void 0),Nn&&Ur.preventDefault();break}case Ve.Z.ESC:hr(!1),Nn&&Ur.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ur){bi(Ur)}}}),ri.length===0)return oe.createElement("div",{role:"listbox",id:"".concat(hn,"_list"),className:"".concat(_i,"-empty"),onMouseDown:ki},nr);var no=Object.keys(or).map(function(Vi){return or[Vi]}),Do=function(Ur){return Ur.label};function Zo(Vi,Ur){var Vr=Vi.group;return{role:Vr?"presentation":"option",id:"".concat(hn,"_list_").concat(Ur)}}var jo=function(Ur){var Vr=ri[Ur];if(!Vr)return null;var ci=Vr.data||{},Zr=ci.value,Qi=Vr.group,eo=(0,ot.Z)(ci,!0),Rr=Do(Vr);return Vr?oe.createElement("div",(0,x.Z)({"aria-label":typeof Rr=="string"&&!Qi?Rr:null},eo,{key:Ur},Zo(Vr,Ur),{"aria-selected":Jo(Zr)}),Zr):null},Cn={role:"listbox",id:"".concat(hn,"_list")};return oe.createElement(oe.Fragment,null,ar&&oe.createElement("div",(0,x.Z)({},Cn,{style:{height:0,width:0,overflow:"hidden"}}),jo(Ji-1),jo(Ji),jo(Ji+1)),oe.createElement(Lt.Z,{itemKey:"key",ref:hi,data:ri,height:vi,itemHeight:qr,fullHeight:!1,onMouseDown:ki,onScroll:ir,virtual:ar,direction:kr,innerProps:ar?null:Cn},function(Vi,Ur){var Vr=Vi.group,ci=Vi.groupOption,Zr=Vi.data,Qi=Vi.label,eo=Vi.value,Rr=Zr.key;if(Vr){var ai,Fi=(ai=Zr.title)!==null&&ai!==void 0?ai:wn(Qi)?Qi.toString():void 0;return oe.createElement("div",{className:ve()(_i,"".concat(_i,"-group"),Zr.className),title:Fi},Qi!==void 0?Qi:Rr)}var Ri=Zr.disabled,Mo=Zr.title,ui=Zr.children,Zi=Zr.style,Wo=Zr.className,Xo=(0,Ie.Z)(Zr,nn),ra=(0,Wn.Z)(Xo,no),Qo=Ni(eo),qo=Ri||!Qo&&ro,Yo="".concat(_i,"-option"),Ba=ve()(_i,Yo,Wo,(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(Yo,"-grouped"),ci),"".concat(Yo,"-active"),Ji===Ur&&!qo),"".concat(Yo,"-disabled"),qo),"".concat(Yo,"-selected"),Qo)),ls=Do(Vi),Ma=!mn||typeof mn=="function"||Qo,Na=typeof ls=="number"?ls:ls||eo,$a=wn(Na)?Na.toString():void 0;return Mo!==void 0&&($a=Mo),oe.createElement("div",(0,x.Z)({},(0,ot.Z)(ra),ar?{}:Zo(Vi,Ur),{"aria-selected":Jo(eo),className:Ba,title:$a,onMouseMove:function(){Ji===Ur||qo||ho(Ur)},onClick:function(){qo||xo(eo)},style:Zi}),oe.createElement("div",{className:"".concat(Yo,"-content")},typeof Li=="function"?Li(Vi,{index:Ur}):Na),oe.isValidElement(mn)||Qo,Ma&&oe.createElement(Ce,{className:"".concat(_i,"-option-state"),customizeIcon:mn,customizeIconProps:{value:eo,disabled:qo,isSelected:Qo}},Qo?"\u2713":null))}))},Er=oe.forwardRef(Gn),ti=Er,oi=function(gt,vn){var Ut=oe.useRef({values:new Map,options:new Map}),dn=oe.useMemo(function(){var hn=Ut.current,Nn=hn.values,Hr=hn.options,zr=gt.map(function(nr){if(nr.label===void 0){var ir;return(0,qe.Z)((0,qe.Z)({},nr),{},{label:(ir=Nn.get(nr.value))===null||ir===void 0?void 0:ir.label})}return nr}),Ai=new Map,hr=new Map;return zr.forEach(function(nr){Ai.set(nr.value,nr),hr.set(nr.value,vn.get(nr.value)||Hr.get(nr.value))}),Ut.current.values=Ai,Ut.current.options=hr,zr},[gt,vn]),$t=oe.useCallback(function(hn){return vn.get(hn)||Ut.current.options.get(hn)},[vn]);return[dn,$t]};function Ar(gt,vn){return it(gt).join("").toUpperCase().includes(vn)}var Ir=function(gt,vn,Ut,dn,$t){return oe.useMemo(function(){if(!Ut||dn===!1)return gt;var hn=vn.options,Nn=vn.label,Hr=vn.value,zr=[],Ai=typeof dn=="function",hr=Ut.toUpperCase(),nr=Ai?dn:function(Yr,Mi){return $t?Ar(Mi[$t],hr):Mi[hn]?Ar(Mi[Nn!=="children"?Nn:"label"],hr):Ar(Mi[Hr],hr)},ir=Ai?function(Yr){return St(Yr)}:function(Yr){return Yr};return gt.forEach(function(Yr){if(Yr[hn]){var Mi=nr(Ut,ir(Yr));if(Mi)zr.push(Yr);else{var Yn=Yr[hn].filter(function(Vn){return nr(Ut,ir(Vn))});Yn.length&&zr.push((0,qe.Z)((0,qe.Z)({},Yr),{},(0,Le.Z)({},hn,Yn)))}return}nr(Ut,ir(Yr))&&zr.push(Yr)}),zr},[gt,dn,$t,Ut,vn])},jn=ae(6551),Hn=ae(11592),Jn=["children","value"],lr=["children"];function $n(gt){var vn=gt,Ut=vn.key,dn=vn.props,$t=dn.children,hn=dn.value,Nn=(0,Ie.Z)(dn,Jn);return(0,qe.Z)({key:Ut,value:hn!==void 0?hn:Ut,children:$t},Nn)}function br(gt){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Hn.Z)(gt).map(function(Ut,dn){if(!oe.isValidElement(Ut)||!Ut.type)return null;var $t=Ut,hn=$t.type.isSelectOptGroup,Nn=$t.key,Hr=$t.props,zr=Hr.children,Ai=(0,Ie.Z)(Hr,lr);return vn||!hn?$n(Ut):(0,qe.Z)((0,qe.Z)({key:"__RC_SELECT_GRP__".concat(Nn===null?dn:Nn,"__"),label:Nn},Ai),{},{options:br(zr)})}).filter(function(Ut){return Ut})}var Br=function(vn,Ut,dn,$t,hn){return oe.useMemo(function(){var Nn=vn,Hr=!vn;Hr&&(Nn=br(Ut));var zr=new Map,Ai=new Map,hr=function(Yr,Mi,Yn){Yn&&typeof Yn=="string"&&Yr.set(Mi[Yn],Mi)},nr=function ir(Yr){for(var Mi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yn=0;Yn<Yr.length;Yn+=1){var Vn=Yr[Yn];!Vn[dn.options]||Mi?(zr.set(Vn[dn.value],Vn),hr(Ai,Vn,dn.label),hr(Ai,Vn,$t),hr(Ai,Vn,hn)):ir(Vn[dn.options],!0)}};return nr(Nn),{options:Nn,valueOptions:zr,labelOptions:Ai}},[vn,Ut,dn,$t,hn])},_r=Br;function mi(gt){var vn=oe.useRef();vn.current=gt;var Ut=oe.useCallback(function(){return vn.current.apply(vn,arguments)},[]);return Ut}function di(gt){var vn=gt.mode,Ut=gt.options,dn=gt.children,$t=gt.backfill,hn=gt.allowClear,Nn=gt.placeholder,Hr=gt.getInputElement,zr=gt.showSearch,Ai=gt.onSearch,hr=gt.defaultOpen,nr=gt.autoFocus,ir=gt.labelInValue,Yr=gt.value,Mi=gt.inputValue,Yn=gt.optionLabelProp,Vn=isMultiple(vn),Mr=zr!==void 0?zr:Vn||vn==="combobox",Tn=Ut||convertChildrenToData(dn);if(warning(vn!=="tags"||Tn.every(function(ar){return!ar.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),vn==="tags"||vn==="combobox"){var mn=Tn.some(function(ar){return ar.options?ar.options.some(function(kr){return typeof("value"in kr?kr.value:kr.key)=="number"}):typeof("value"in ar?ar.value:ar.key)=="number"});warning(!mn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(vn!=="combobox"||!Yn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(vn==="combobox"||!$t,"`backfill` only works with `combobox` mode."),warning(vn==="combobox"||!Hr,"`getInputElement` only work with `combobox` mode."),noteOnce(vn!=="combobox"||!Hr||!hn||!Nn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ai&&!Mr&&vn!=="combobox"&&vn!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!hr||nr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Yr!=null){var tr=toArray(Yr);warning(!ir||tr.every(function(ar){return _typeof(ar)==="object"&&("key"in ar||"value"in ar)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Vn||Array.isArray(Yr),"`value` should be array when `mode` is `multiple` or `tags`")}if(dn){var or=null;toNodeArray(dn).some(function(ar){if(!React.isValidElement(ar)||!ar.type)return!1;var kr=ar,vi=kr.type;if(vi.isSelectOption)return!1;if(vi.isSelectOptGroup){var qr=toNodeArray(ar.props.children).every(function(Li){return!React.isValidElement(Li)||!ar.type||Li.type.isSelectOption?!0:(or=Li.type,!1)});return!qr}return or=vi,!0}),or&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(or.displayName||or.name||or,"`.")),warning(Mi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function fi(gt,vn){if(gt){var Ut=function dn($t){for(var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nn=0;Nn<$t.length;Nn++){var Hr=$t[Nn];if(Hr[vn==null?void 0:vn.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!hn&&Array.isArray(Hr[vn==null?void 0:vn.options])&&dn(Hr[vn==null?void 0:vn.options],!0))break}};Ut(gt)}}var Ti=null,xi=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],io=["inputValue"];function Xi(gt){return!gt||(0,Ue.Z)(gt)!=="object"}var ur=oe.forwardRef(function(gt,vn){var Ut=gt.id,dn=gt.mode,$t=gt.prefixCls,hn=$t===void 0?"rc-select":$t,Nn=gt.backfill,Hr=gt.fieldNames,zr=gt.inputValue,Ai=gt.searchValue,hr=gt.onSearch,nr=gt.autoClearSearchValue,ir=nr===void 0?!0:nr,Yr=gt.onSelect,Mi=gt.onDeselect,Yn=gt.dropdownMatchSelectWidth,Vn=Yn===void 0?!0:Yn,Mr=gt.filterOption,Tn=gt.filterSort,mn=gt.optionFilterProp,tr=gt.optionLabelProp,or=gt.options,ar=gt.optionRender,kr=gt.children,vi=gt.defaultActiveFirstOption,qr=gt.menuItemSelectedIcon,Li=gt.virtual,_i=gt.direction,ri=gt.listHeight,hi=ri===void 0?200:ri,ro=gt.listItemHeight,ki=ro===void 0?20:ro,bi=gt.labelRender,Ni=gt.value,oo=gt.defaultValue,Di=gt.labelInValue,yo=gt.onChange,Ji=gt.maxCount,po=(0,Ie.Z)(gt,xi),ho=(0,jn.ZP)(Ut),Jo=gn(dn),xo=!!(!or&&kr),no=oe.useMemo(function(){return Mr===void 0&&dn==="combobox"?!1:Mr},[Mr,dn]),Do=oe.useMemo(function(){return mt(Hr,xo)},[JSON.stringify(Hr),xo]),Zo=(0,he.Z)("",{value:Ai!==void 0?Ai:zr,postState:function(La){return La||""}}),jo=(0,ze.Z)(Zo,2),Cn=jo[0],Vi=jo[1],Ur=_r(or,kr,Do,mn,tr),Vr=Ur.valueOptions,ci=Ur.labelOptions,Zr=Ur.options,Qi=oe.useCallback(function(ga){var La=it(ga);return La.map(function(ha){var va,ts,Ya,Ga,Gl;if(Xi(ha))va=ha;else{var lu;Ya=ha.key,ts=ha.label,va=(lu=ha.value)!==null&&lu!==void 0?lu:Ya}var Tl=Vr.get(va);if(Tl){var Ou;if(ts===void 0&&(ts=Tl==null?void 0:Tl[tr||Do.label]),Ya===void 0&&(Ya=(Ou=Tl==null?void 0:Tl.key)!==null&&Ou!==void 0?Ou:va),Ga=Tl==null?void 0:Tl.disabled,Gl=Tl==null?void 0:Tl.title,0)var Hi}return{label:ts,value:va,key:Ya,disabled:Ga,title:Gl}})},[Do,tr,Vr]),eo=(0,he.Z)(oo,{value:Ni}),Rr=(0,ze.Z)(eo,2),ai=Rr[0],Fi=Rr[1],Ri=oe.useMemo(function(){var ga,La=Jo&&ai===null?[]:ai,ha=Qi(La);return dn==="combobox"&&De((ga=ha[0])===null||ga===void 0?void 0:ga.value)?[]:ha},[ai,Qi,dn,Jo]),Mo=oi(Ri,Vr),ui=(0,ze.Z)(Mo,2),Zi=ui[0],Wo=ui[1],Xo=oe.useMemo(function(){if(!dn&&Zi.length===1){var ga=Zi[0];if(ga.value===null&&(ga.label===null||ga.label===void 0))return[]}return Zi.map(function(La){var ha;return(0,qe.Z)((0,qe.Z)({},La),{},{label:(ha=typeof bi=="function"?bi(La):La.label)!==null&&ha!==void 0?ha:La.value})})},[dn,Zi,bi]),ra=oe.useMemo(function(){return new Set(Zi.map(function(ga){return ga.value}))},[Zi]);oe.useEffect(function(){if(dn==="combobox"){var ga,La=(ga=Zi[0])===null||ga===void 0?void 0:ga.value;Vi(Ze(La)?String(La):"")}},[Zi]);var Qo=mi(function(ga,La){var ha=La!=null?La:ga;return(0,Le.Z)((0,Le.Z)({},Do.value,ga),Do.label,ha)}),qo=oe.useMemo(function(){if(dn!=="tags")return Zr;var ga=(0,dt.Z)(Zr),La=function(va){return Vr.has(va)};return(0,dt.Z)(Zi).sort(function(ha,va){return ha.value<va.value?-1:1}).forEach(function(ha){var va=ha.value;La(va)||ga.push(Qo(va,ha.label))}),ga},[Qo,Zr,Vr,Zi,dn]),Yo=Ir(qo,Do,Cn,no,mn),Ba=oe.useMemo(function(){return dn!=="tags"||!Cn||Yo.some(function(ga){return ga[mn||"value"]===Cn})||Yo.some(function(ga){return ga[Do.value]===Cn})?Yo:[Qo(Cn)].concat((0,dt.Z)(Yo))},[Qo,mn,dn,Yo,Cn,Do]),ls=function ga(La){var ha=(0,dt.Z)(La).sort(function(va,ts){return Tn(va,ts,{searchValue:Cn})});return ha.map(function(va){return Array.isArray(va.options)?(0,qe.Z)((0,qe.Z)({},va),{},{options:va.options.length>0?ga(va.options):va.options}):va})},Ma=oe.useMemo(function(){return Tn?ls(Ba):Ba},[Ba,Tn,Cn]),Na=oe.useMemo(function(){return vt(Ma,{fieldNames:Do,childrenAsData:xo})},[Ma,Do,xo]),$a=function(La){var ha=Qi(La);if(Fi(ha),yo&&(ha.length!==Zi.length||ha.some(function(Ya,Ga){var Gl;return((Gl=Zi[Ga])===null||Gl===void 0?void 0:Gl.value)!==(Ya==null?void 0:Ya.value)}))){var va=Di?ha:ha.map(function(Ya){return Ya.value}),ts=ha.map(function(Ya){return St(Wo(Ya.value))});yo(Jo?va:va[0],Jo?ts:ts[0])}},_o=oe.useState(null),Fo=(0,ze.Z)(_o,2),Ea=Fo[0],us=Fo[1],sl=oe.useState(0),qs=(0,ze.Z)(sl,2),ll=qs[0],su=qs[1],Bl=vi!==void 0?vi:dn!=="combobox",el=oe.useCallback(function(ga,La){var ha=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},va=ha.source,ts=va===void 0?"keyboard":va;su(La),Nn&&dn==="combobox"&&ga!==null&&ts==="keyboard"&&us(String(ga))},[Nn,dn]),Wl=function(La,ha,va){var ts=function(){var ks,pu=Wo(La);return[Di?{label:pu==null?void 0:pu[Do.label],value:La,key:(ks=pu==null?void 0:pu.key)!==null&&ks!==void 0?ks:La}:La,St(pu)]};if(ha&&Yr){var Ya=ts(),Ga=(0,ze.Z)(Ya,2),Gl=Ga[0],lu=Ga[1];Yr(Gl,lu)}else if(!ha&&Mi&&va!=="clear"){var Tl=ts(),Ou=(0,ze.Z)(Tl,2),Hi=Ou[0],ia=Ou[1];Mi(Hi,ia)}},xu=mi(function(ga,La){var ha,va=Jo?La.selected:!0;va?ha=Jo?[].concat((0,dt.Z)(Zi),[ga]):[ga]:ha=Zi.filter(function(ts){return ts.value!==ga}),$a(ha),Wl(ga,va),dn==="combobox"?us(""):(!gn||ir)&&(Vi(""),us(""))}),Nu=function(La,ha){$a(La);var va=ha.type,ts=ha.values;(va==="remove"||va==="clear")&&ts.forEach(function(Ya){Wl(Ya.value,!1,va)})},Gs=function(La,ha){if(Vi(La),us(null),ha.source==="submit"){var va=(La||"").trim();if(va){var ts=Array.from(new Set([].concat((0,dt.Z)(ra),[va])));$a(ts),Wl(va,!0),Vi("")}return}ha.source!=="blur"&&(dn==="combobox"&&$a(La),hr==null||hr(La))},mc=function(La){var ha=La;dn!=="tags"&&(ha=La.map(function(ts){var Ya=ci.get(ts);return Ya==null?void 0:Ya.value}).filter(function(ts){return ts!==void 0}));var va=Array.from(new Set([].concat((0,dt.Z)(ra),(0,dt.Z)(ha))));$a(va),va.forEach(function(ts){Wl(ts,!0)})},gc=oe.useMemo(function(){var ga=Li!==!1&&Vn!==!1;return(0,qe.Z)((0,qe.Z)({},Ur),{},{flattenOptions:Na,onActiveValue:el,defaultActiveFirstOption:Bl,onSelect:xu,menuItemSelectedIcon:qr,rawValues:ra,fieldNames:Do,virtual:ga,direction:_i,listHeight:hi,listItemHeight:ki,childrenAsData:xo,maxCount:Ji,optionRender:ar})},[Ji,Ur,Na,el,Bl,xu,qr,ra,Do,Li,Vn,_i,hi,ki,xo,ar]);return oe.createElement(xt.Provider,{value:gc},oe.createElement(en,(0,x.Z)({},po,{id:ho,prefixCls:hn,ref:vn,omitDomProps:io,mode:dn,displayValues:Xo,onDisplayValuesChange:Nu,direction:_i,searchValue:Cn,onSearch:Gs,autoClearSearchValue:ir,onSearchSplit:mc,dropdownMatchSelectWidth:Vn,OptionList:ti,emptyOptions:!Na.length,activeValue:Ea,activeDescendantId:"".concat(ho,"_list_").concat(ll)})))}),Tr=ur;Tr.Option=sn,Tr.OptGroup=Fn;var gi=Tr,ni=gi},22711:function(qn,Mt,ae){"use strict";ae.r(Mt),ae.d(Mt,{ResizableTextArea:function(){return He},default:function(){return Ot}});var x=ae(60499),dt=ae(18642),Le=ae(85899),qe=ae(77654),ze=ae(72190),Ie=ae(42244),Ue=ae(92310),he=ae.n(Ue),xe=ae(36901),oe=ae(66003),Oe=ae(30292),ve=ae(18929),Me=ae(59301),Se=ae(43749),Te=ae(29301),we=ae(34280),Ce=ae(16089),Ee=`
|
|
|
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;
|
|
|
`,ke=["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"],Ke={},Qe;function je(it){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=it.getAttribute("id")||it.getAttribute("data-reactid")||it.getAttribute("name");if(at&&Ke[Et])return Ke[Et];var Ze=window.getComputedStyle(it),De=Ze.getPropertyValue("box-sizing")||Ze.getPropertyValue("-moz-box-sizing")||Ze.getPropertyValue("-webkit-box-sizing"),ut=parseFloat(Ze.getPropertyValue("padding-bottom"))+parseFloat(Ze.getPropertyValue("padding-top")),Zt=parseFloat(Ze.getPropertyValue("border-bottom-width"))+parseFloat(Ze.getPropertyValue("border-top-width")),Kt=ke.map(function(Dt){return"".concat(Dt,":").concat(Ze.getPropertyValue(Dt))}).join(";"),tt={sizingStyle:Kt,paddingSize:ut,borderSize:Zt,boxSizing:De};return at&&Et&&(Ke[Et]=tt),tt}function Je(it){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Qe||(Qe=document.createElement("textarea"),Qe.setAttribute("tab-index","-1"),Qe.setAttribute("aria-hidden","true"),Qe.setAttribute("name","hiddenTextarea"),document.body.appendChild(Qe)),it.getAttribute("wrap")?Qe.setAttribute("wrap",it.getAttribute("wrap")):Qe.removeAttribute("wrap");var De=je(it,at),ut=De.paddingSize,Zt=De.borderSize,Kt=De.boxSizing,tt=De.sizingStyle;Qe.setAttribute("style","".concat(tt,";").concat(Ee)),Qe.value=it.value||it.placeholder||"";var Dt=void 0,jt=void 0,An,kt=Qe.scrollHeight;if(Kt==="border-box"?kt+=Zt:Kt==="content-box"&&(kt-=ut),Et!==null||Ze!==null){Qe.value=" ";var pn=Qe.scrollHeight-ut;Et!==null&&(Dt=pn*Et,Kt==="border-box"&&(Dt=Dt+ut+Zt),kt=Math.max(Dt,kt)),Ze!==null&&(jt=pn*Ze,Kt==="border-box"&&(jt=jt+ut+Zt),An=kt>jt?"":"hidden",kt=Math.min(jt,kt))}var Pt={height:kt,overflowY:An,resize:"none"};return Dt&&(Pt.minHeight=Dt),jt&&(Pt.maxHeight=jt),Pt}var Ve=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ct=0,ot=1,pt=2,Ct=Me.forwardRef(function(it,at){var Et=it,Ze=Et.prefixCls,De=Et.defaultValue,ut=Et.value,Zt=Et.autoSize,Kt=Et.onResize,tt=Et.className,Dt=Et.style,jt=Et.disabled,An=Et.onChange,kt=Et.onInternalAutoSize,pn=(0,Ie.Z)(Et,Ve),Pt=(0,ve.Z)(De,{value:ut,postState:function(sn){return sn!=null?sn:""}}),En=(0,ze.Z)(Pt,2),on=En[0],de=En[1],pe=function(sn){de(sn.target.value),An==null||An(sn)},ie=Me.useRef();Me.useImperativeHandle(at,function(){return{textArea:ie.current}});var ee=Me.useMemo(function(){return Zt&&(0,Se.Z)(Zt)==="object"?[Zt.minRows,Zt.maxRows]:[]},[Zt]),se=(0,ze.Z)(ee,2),le=se[0],Be=se[1],We=!!Zt,st=function(){try{if(document.activeElement===ie.current){var sn=ie.current,_n=sn.selectionStart,Wn=sn.selectionEnd,Lt=sn.scrollTop;ie.current.setSelectionRange(_n,Wn),ie.current.scrollTop=Lt}}catch(Gt){}},mt=Me.useState(pt),vt=(0,ze.Z)(mt,2),St=vt[0],_t=vt[1],Qt=Me.useState(),xt=(0,ze.Z)(Qt,2),lt=xt[0],Vt=xt[1],Wt=function(){_t(ct)};(0,we.Z)(function(){We&&Wt()},[ut,le,Be,We]),(0,we.Z)(function(){if(St===ct)_t(ot);else if(St===ot){var Rt=Je(ie.current,!1,le,Be);_t(pt),Vt(Rt)}else st()},[St]);var gn=Me.useRef(),an=function(){Ce.Z.cancel(gn.current)},en=function(sn){St===pt&&(Kt==null||Kt(sn),Zt&&(an(),gn.current=(0,Ce.Z)(function(){Wt()})))};Me.useEffect(function(){return an},[]);var zn=We?lt:null,Fn=(0,Le.Z)((0,Le.Z)({},Dt),zn);return(St===ct||St===ot)&&(Fn.overflowY="hidden",Fn.overflowX="hidden"),Me.createElement(Te.Z,{onResize:en,disabled:!(Zt||Kt)},Me.createElement("textarea",(0,x.Z)({},pn,{ref:ie,style:Fn,className:he()(Ze,tt,(0,dt.Z)({},"".concat(Ze,"-disabled"),jt)),disabled:jt,value:on,onChange:pe})))}),He=Ct,ht=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],_e=Me.forwardRef(function(it,at){var Et,Ze=it.defaultValue,De=it.value,ut=it.onFocus,Zt=it.onBlur,Kt=it.onChange,tt=it.allowClear,Dt=it.maxLength,jt=it.onCompositionStart,An=it.onCompositionEnd,kt=it.suffix,pn=it.prefixCls,Pt=pn===void 0?"rc-textarea":pn,En=it.showCount,on=it.count,de=it.className,pe=it.style,ie=it.disabled,ee=it.hidden,se=it.classNames,le=it.styles,Be=it.onResize,We=it.onClear,st=it.onPressEnter,mt=it.readOnly,vt=it.autoSize,St=it.onKeyDown,_t=(0,Ie.Z)(it,ht),Qt=(0,ve.Z)(Ze,{value:De,defaultValue:Ze}),xt=(0,ze.Z)(Qt,2),lt=xt[0],Vt=xt[1],Wt=lt==null?"":String(lt),gn=Me.useState(!1),an=(0,ze.Z)(gn,2),en=an[0],zn=an[1],Fn=Me.useRef(!1),Rt=Me.useState(null),sn=(0,ze.Z)(Rt,2),_n=sn[0],Wn=sn[1],Lt=(0,Me.useRef)(null),Gt=(0,Me.useRef)(null),nn=function(){var Tr;return(Tr=Gt.current)===null||Tr===void 0?void 0:Tr.textArea},wn=function(){nn().focus()};(0,Me.useImperativeHandle)(at,function(){var ur;return{resizableTextArea:Gt.current,focus:wn,blur:function(){nn().blur()},nativeElement:((ur=Lt.current)===null||ur===void 0?void 0:ur.nativeElement)||nn()}}),(0,Me.useEffect)(function(){zn(function(ur){return!ie&&ur})},[ie]);var Gn=Me.useState(null),Er=(0,ze.Z)(Gn,2),ti=Er[0],oi=Er[1];Me.useEffect(function(){if(ti){var ur;(ur=nn()).setSelectionRange.apply(ur,(0,qe.Z)(ti))}},[ti]);var Ar=(0,oe.Z)(on,En),Ir=(Et=Ar.max)!==null&&Et!==void 0?Et:Dt,jn=Number(Ir)>0,Hn=Ar.strategy(Wt),Jn=!!Ir&&Hn>Ir,lr=function(Tr,gi){var ni=gi;!Fn.current&&Ar.exceedFormatter&&Ar.max&&Ar.strategy(gi)>Ar.max&&(ni=Ar.exceedFormatter(gi,{max:Ar.max}),gi!==ni&&oi([nn().selectionStart||0,nn().selectionEnd||0])),Vt(ni),(0,Oe.rJ)(Tr.currentTarget,Tr,Kt,ni)},$n=function(Tr){Fn.current=!0,jt==null||jt(Tr)},br=function(Tr){Fn.current=!1,lr(Tr,Tr.currentTarget.value),An==null||An(Tr)},Br=function(Tr){lr(Tr,Tr.target.value)},_r=function(Tr){Tr.key==="Enter"&&st&&st(Tr),St==null||St(Tr)},mi=function(Tr){zn(!0),ut==null||ut(Tr)},di=function(Tr){zn(!1),Zt==null||Zt(Tr)},fi=function(Tr){Vt(""),wn(),(0,Oe.rJ)(nn(),Tr,Kt)},Ti=kt,xi;Ar.show&&(Ar.showFormatter?xi=Ar.showFormatter({value:Wt,count:Hn,maxLength:Ir}):xi="".concat(Hn).concat(jn?" / ".concat(Ir):""),Ti=Me.createElement(Me.Fragment,null,Ti,Me.createElement("span",{className:he()("".concat(Pt,"-data-count"),se==null?void 0:se.count),style:le==null?void 0:le.count},xi)));var io=function(Tr){var gi;Be==null||Be(Tr),(gi=nn())!==null&&gi!==void 0&&gi.style.height&&Wn(!0)},Xi=!vt&&!En&&!tt;return Me.createElement(xe.BaseInput,{ref:Lt,value:Wt,allowClear:tt,handleReset:fi,suffix:Ti,prefixCls:Pt,classNames:(0,Le.Z)((0,Le.Z)({},se),{},{affixWrapper:he()(se==null?void 0:se.affixWrapper,(0,dt.Z)((0,dt.Z)({},"".concat(Pt,"-show-count"),En),"".concat(Pt,"-textarea-allow-clear"),tt))}),disabled:ie,focused:en,className:he()(de,Jn&&"".concat(Pt,"-out-of-range")),style:(0,Le.Z)((0,Le.Z)({},pe),_n&&!Xi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xi=="string"?xi:void 0}},hidden:ee,readOnly:mt,onClear:We},Me.createElement(He,(0,x.Z)({},_t,{autoSize:vt,maxLength:Dt,onKeyDown:_r,onChange:Br,onFocus:mi,onBlur:di,onCompositionStart:$n,onCompositionEnd:br,className:he()(se==null?void 0:se.textarea),style:(0,Le.Z)((0,Le.Z)({},le==null?void 0:le.textarea),{},{resize:pe==null?void 0:pe.resize}),disabled:ie,prefixCls:Pt,onResize:io,ref:Gt,readOnly:mt})))}),Re=_e,Ot=Re},639:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return Ke}});var x=ae(60499),dt=ae(18642),Le=ae(85899),qe=ae(72190),ze=ae(42244),Ie=ae(59301),Ue=ae(92310),he=ae.n(Ue),xe=ae(26112),oe=ae(30699),Oe=function(je){for(var Je=je.prefixCls,Ve=je.level,ct=je.isStart,ot=je.isEnd,pt="".concat(Je,"-indent-unit"),Ct=[],He=0;He<Ve;He+=1)Ct.push(Ie.createElement("span",{key:He,className:he()(pt,(0,dt.Z)((0,dt.Z)({},"".concat(pt,"-start"),ct[He]),"".concat(pt,"-end"),ot[He]))}));return Ie.createElement("span",{"aria-hidden":"true",className:"".concat(Je,"-indent")},Ct)},ve=Ie.memo(Oe),Me=ae(65065),Se=ae(34061),Te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],we="open",Ce="close",Ee="---",ke=function(je){var Je,Ve,ct,ot=je.eventKey,pt=je.className,Ct=je.style,He=je.dragOver,ht=je.dragOverGapTop,_e=je.dragOverGapBottom,Re=je.isLeaf,Ot=je.isStart,it=je.isEnd,at=je.expanded,Et=je.selected,Ze=je.checked,De=je.halfChecked,ut=je.loading,Zt=je.domRef,Kt=je.active,tt=je.data,Dt=je.onMouseMove,jt=je.selectable,An=(0,ze.Z)(je,Te),kt=Ie.useContext(oe.k),pn=Ie.useContext(oe.y),Pt=Ie.useRef(null),En=Ie.useState(!1),on=(0,qe.Z)(En,2),de=on[0],pe=on[1],ie=!!(kt.disabled||je.disabled||(Je=pn.nodeDisabled)!==null&&Je!==void 0&&Je.call(pn,tt)),ee=Ie.useMemo(function(){return!kt.checkable||je.checkable===!1?!1:kt.checkable},[kt.checkable,je.checkable]),se=function(Hn){ie||kt.onNodeSelect(Hn,(0,Se.F)(je))},le=function(Hn){ie||!ee||je.disableCheckbox||kt.onNodeCheck(Hn,(0,Se.F)(je),!Ze)},Be=Ie.useMemo(function(){return typeof jt=="boolean"?jt:kt.selectable},[jt,kt.selectable]),We=function(Hn){kt.onNodeClick(Hn,(0,Se.F)(je)),Be?se(Hn):le(Hn)},st=function(Hn){kt.onNodeDoubleClick(Hn,(0,Se.F)(je))},mt=function(Hn){kt.onNodeMouseEnter(Hn,(0,Se.F)(je))},vt=function(Hn){kt.onNodeMouseLeave(Hn,(0,Se.F)(je))},St=function(Hn){kt.onNodeContextMenu(Hn,(0,Se.F)(je))},_t=Ie.useMemo(function(){return!!(kt.draggable&&(!kt.draggable.nodeDraggable||kt.draggable.nodeDraggable(tt)))},[kt.draggable,tt]),Qt=function(Hn){Hn.stopPropagation(),pe(!0),kt.onNodeDragStart(Hn,je);try{Hn.dataTransfer.setData("text/plain","")}catch(Jn){}},xt=function(Hn){Hn.preventDefault(),Hn.stopPropagation(),kt.onNodeDragEnter(Hn,je)},lt=function(Hn){Hn.preventDefault(),Hn.stopPropagation(),kt.onNodeDragOver(Hn,je)},Vt=function(Hn){Hn.stopPropagation(),kt.onNodeDragLeave(Hn,je)},Wt=function(Hn){Hn.stopPropagation(),pe(!1),kt.onNodeDragEnd(Hn,je)},gn=function(Hn){Hn.preventDefault(),Hn.stopPropagation(),pe(!1),kt.onNodeDrop(Hn,je)},an=function(Hn){ut||kt.onNodeExpand(Hn,(0,Se.F)(je))},en=Ie.useMemo(function(){var jn=(0,Me.Z)(kt.keyEntities,ot)||{},Hn=jn.children;return!!(Hn||[]).length},[kt.keyEntities,ot]),zn=Ie.useMemo(function(){return Re===!1?!1:Re||!kt.loadData&&!en||kt.loadData&&je.loaded&&!en},[Re,kt.loadData,en,je.loaded]);Ie.useEffect(function(){ut||typeof kt.loadData=="function"&&at&&!zn&&!je.loaded&&kt.onNodeLoad((0,Se.F)(je))},[ut,kt.loadData,kt.onNodeLoad,at,zn,je]);var Fn=Ie.useMemo(function(){var jn;return(jn=kt.draggable)!==null&&jn!==void 0&&jn.icon?Ie.createElement("span",{className:"".concat(kt.prefixCls,"-draggable-icon")},kt.draggable.icon):null},[kt.draggable]),Rt=function(Hn){var Jn=je.switcherIcon||kt.switcherIcon;return typeof Jn=="function"?Jn((0,Le.Z)((0,Le.Z)({},je),{},{isLeaf:Hn})):Jn},sn=function(){if(zn){var Hn=Rt(!0);return Hn!==!1?Ie.createElement("span",{className:he()("".concat(kt.prefixCls,"-switcher"),"".concat(kt.prefixCls,"-switcher-noop"))},Hn):null}var Jn=Rt(!1);return Jn!==!1?Ie.createElement("span",{onClick:an,className:he()("".concat(kt.prefixCls,"-switcher"),"".concat(kt.prefixCls,"-switcher_").concat(at?we:Ce))},Jn):null},_n=Ie.useMemo(function(){if(!ee)return null;var jn=typeof ee!="boolean"?ee:null;return Ie.createElement("span",{className:he()("".concat(kt.prefixCls,"-checkbox"),(0,dt.Z)((0,dt.Z)((0,dt.Z)({},"".concat(kt.prefixCls,"-checkbox-checked"),Ze),"".concat(kt.prefixCls,"-checkbox-indeterminate"),!Ze&&De),"".concat(kt.prefixCls,"-checkbox-disabled"),ie||je.disableCheckbox)),onClick:le,role:"checkbox","aria-checked":De?"mixed":Ze,"aria-disabled":ie||je.disableCheckbox,"aria-label":"Select ".concat(typeof je.title=="string"?je.title:"tree node")},jn)},[ee,Ze,De,ie,je.disableCheckbox,je.title]),Wn=Ie.useMemo(function(){return zn?null:at?we:Ce},[zn,at]),Lt=Ie.useMemo(function(){return Ie.createElement("span",{className:he()("".concat(kt.prefixCls,"-iconEle"),"".concat(kt.prefixCls,"-icon__").concat(Wn||"docu"),(0,dt.Z)({},"".concat(kt.prefixCls,"-icon_loading"),ut))})},[kt.prefixCls,Wn,ut]),Gt=Ie.useMemo(function(){var jn=!!kt.draggable,Hn=!je.disabled&&jn&&kt.dragOverNodeKey===ot;return Hn?kt.dropIndicatorRender({dropPosition:kt.dropPosition,dropLevelOffset:kt.dropLevelOffset,indent:kt.indent,prefixCls:kt.prefixCls,direction:kt.direction}):null},[kt.dropPosition,kt.dropLevelOffset,kt.indent,kt.prefixCls,kt.direction,kt.draggable,kt.dragOverNodeKey,kt.dropIndicatorRender]),nn=Ie.useMemo(function(){var jn=je.title,Hn=jn===void 0?Ee:jn,Jn="".concat(kt.prefixCls,"-node-content-wrapper"),lr;if(kt.showIcon){var $n=je.icon||kt.icon;lr=$n?Ie.createElement("span",{className:he()("".concat(kt.prefixCls,"-iconEle"),"".concat(kt.prefixCls,"-icon__customize"))},typeof $n=="function"?$n(je):$n):Lt}else kt.loadData&&ut&&(lr=Lt);var br;return typeof Hn=="function"?br=Hn(tt):kt.titleRender?br=kt.titleRender(tt):br=Hn,Ie.createElement("span",{ref:Pt,title:typeof Hn=="string"?Hn:"",className:he()(Jn,"".concat(Jn,"-").concat(Wn||"normal"),(0,dt.Z)({},"".concat(kt.prefixCls,"-node-selected"),!ie&&(Et||de))),onMouseEnter:mt,onMouseLeave:vt,onContextMenu:St,onClick:We,onDoubleClick:st},lr,Ie.createElement("span",{className:"".concat(kt.prefixCls,"-title")},br),Gt)},[kt.prefixCls,kt.showIcon,je,kt.icon,Lt,kt.titleRender,tt,Wn,mt,vt,St,We,st]),wn=(0,xe.Z)(An,{aria:!0,data:!0}),Gn=(0,Me.Z)(kt.keyEntities,ot)||{},Er=Gn.level,ti=it[it.length-1],oi=!ie&&_t,Ar=kt.draggingNodeKey===ot,Ir=jt!==void 0?{"aria-selected":!!jt}:void 0;return Ie.createElement("div",(0,x.Z)({ref:Zt,role:"treeitem","aria-expanded":Re?void 0:at,className:he()(pt,"".concat(kt.prefixCls,"-treenode"),(ct={},(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)(ct,"".concat(kt.prefixCls,"-treenode-disabled"),ie),"".concat(kt.prefixCls,"-treenode-switcher-").concat(at?"open":"close"),!Re),"".concat(kt.prefixCls,"-treenode-checkbox-checked"),Ze),"".concat(kt.prefixCls,"-treenode-checkbox-indeterminate"),De),"".concat(kt.prefixCls,"-treenode-selected"),Et),"".concat(kt.prefixCls,"-treenode-loading"),ut),"".concat(kt.prefixCls,"-treenode-active"),Kt),"".concat(kt.prefixCls,"-treenode-leaf-last"),ti),"".concat(kt.prefixCls,"-treenode-draggable"),_t),"dragging",Ar),(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)(ct,"drop-target",kt.dropTargetKey===ot),"drop-container",kt.dropContainerKey===ot),"drag-over",!ie&&He),"drag-over-gap-top",!ie&&ht),"drag-over-gap-bottom",!ie&&_e),"filter-node",(Ve=kt.filterTreeNode)===null||Ve===void 0?void 0:Ve.call(kt,(0,Se.F)(je))),"".concat(kt.prefixCls,"-treenode-leaf"),zn))),style:Ct,draggable:oi,onDragStart:oi?Qt:void 0,onDragEnter:_t?xt:void 0,onDragOver:_t?lt:void 0,onDragLeave:_t?Vt:void 0,onDrop:_t?gn:void 0,onDragEnd:_t?Wt:void 0,onMouseMove:Dt},Ir,wn),Ie.createElement(ve,{prefixCls:kt.prefixCls,level:Er,isStart:Ot,isEnd:it}),Fn,sn(),_n,nn)};ke.isTreeNode=1;var Ke=ke},30699:function(qn,Mt,ae){"use strict";ae.d(Mt,{k:function(){return dt},y:function(){return Le}});var x=ae(59301),dt=x.createContext(null),Le=x.createContext({})},87632:function(qn,Mt,ae){"use strict";ae.d(Mt,{OF:function(){return ot.Z},y6:function(){return Ce.y},ZP:function(){return ie}});var x=ae(60499),dt=ae(43749),Le=ae(85899),qe=ae(77654),ze=ae(38705),Ie=ae(17212),Ue=ae(15793),he=ae(39153),xe=ae(55401),oe=ae(18642),Oe=ae(92310),ve=ae.n(Oe),Me=ae(10228),Se=ae(26112),Te=ae(48736),we=ae(59301),Ce=ae(30699),Ee=function(se){var le=se.dropPosition,Be=se.dropLevelOffset,We=se.indent,st={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(le){case-1:st.top=0,st.left=-Be*We;break;case 1:st.bottom=0,st.left=-Be*We;break;case 0:st.bottom=0,st.left=We;break}return we.createElement("div",{style:st})},ke=Ee;function Ke(ee){if(ee==null)throw new TypeError("Cannot destructure "+ee)}var Qe=ae(72190),je=ae(42244),Je=ae(34280),Ve=ae(48911),ct=ae(77900),ot=ae(639);function pt(ee,se){var le=we.useState(!1),Be=(0,Qe.Z)(le,2),We=Be[0],st=Be[1];(0,Je.Z)(function(){if(We)return ee(),function(){se()}},[We]),(0,Je.Z)(function(){return st(!0),function(){st(!1)}},[])}var Ct=pt,He=ae(34061),ht=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_e=we.forwardRef(function(ee,se){var le=ee.className,Be=ee.style,We=ee.motion,st=ee.motionNodes,mt=ee.motionType,vt=ee.onMotionStart,St=ee.onMotionEnd,_t=ee.active,Qt=ee.treeNodeRequiredProps,xt=(0,je.Z)(ee,ht),lt=we.useState(!0),Vt=(0,Qe.Z)(lt,2),Wt=Vt[0],gn=Vt[1],an=we.useContext(Ce.k),en=an.prefixCls,zn=st&&mt!=="hide";(0,Je.Z)(function(){st&&zn!==Wt&&gn(zn)},[st]);var Fn=function(){st&&vt()},Rt=we.useRef(!1),sn=function(){st&&!Rt.current&&(Rt.current=!0,St())};Ct(Fn,sn);var _n=function(Lt){zn===Lt&&sn()};return st?we.createElement(ct.default,(0,x.Z)({ref:se,visible:Wt},We,{motionAppear:mt==="show",onVisibleChanged:_n}),function(Wn,Lt){var Gt=Wn.className,nn=Wn.style;return we.createElement("div",{ref:Lt,className:ve()("".concat(en,"-treenode-motion"),Gt),style:nn},st.map(function(wn){var Gn=Object.assign({},(Ke(wn.data),wn.data)),Er=wn.title,ti=wn.key,oi=wn.isStart,Ar=wn.isEnd;delete Gn.children;var Ir=(0,He.H8)(ti,Qt);return we.createElement(ot.Z,(0,x.Z)({},Gn,Ir,{title:Er,active:_t,data:wn.data,key:ti,isStart:oi,isEnd:Ar}))}))}):we.createElement(ot.Z,(0,x.Z)({domRef:se,className:le,style:Be},xt,{active:_t}))}),Re=_e;function Ot(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=ee.length,Be=se.length;if(Math.abs(le-Be)!==1)return{add:!1,key:null};function We(st,mt){var vt=new Map;st.forEach(function(_t){vt.set(_t,!0)});var St=mt.filter(function(_t){return!vt.has(_t)});return St.length===1?St[0]:null}return le<Be?{add:!0,key:We(ee,se)}:{add:!1,key:We(se,ee)}}function it(ee,se,le){var Be=ee.findIndex(function(vt){return vt.key===le}),We=ee[Be+1],st=se.findIndex(function(vt){return vt.key===le});if(We){var mt=se.findIndex(function(vt){return vt.key===We.key});return se.slice(st+1,mt)}return se.slice(st+1)}var at=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Et={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ze=function(){},De="RC_TREE_MOTION_".concat(Math.random()),ut={key:De},Zt={key:De,level:0,index:0,pos:"0",node:ut,nodes:[ut]},Kt={parent:null,children:[],pos:Zt.pos,data:ut,title:null,key:De,isStart:[],isEnd:[]};function tt(ee,se,le,Be){return se===!1||!le?ee:ee.slice(0,Math.ceil(le/Be)+1)}function Dt(ee){var se=ee.key,le=ee.pos;return(0,He.km)(se,le)}function jt(ee){for(var se=String(ee.data.key),le=ee;le.parent;)le=le.parent,se="".concat(le.data.key," > ").concat(se);return se}var An=we.forwardRef(function(ee,se){var le=ee.prefixCls,Be=ee.data,We=ee.selectable,st=ee.checkable,mt=ee.expandedKeys,vt=ee.selectedKeys,St=ee.checkedKeys,_t=ee.loadedKeys,Qt=ee.loadingKeys,xt=ee.halfCheckedKeys,lt=ee.keyEntities,Vt=ee.disabled,Wt=ee.dragging,gn=ee.dragOverNodeKey,an=ee.dropPosition,en=ee.motion,zn=ee.height,Fn=ee.itemHeight,Rt=ee.virtual,sn=ee.scrollWidth,_n=ee.focusable,Wn=ee.activeItem,Lt=ee.focused,Gt=ee.tabIndex,nn=ee.onKeyDown,wn=ee.onFocus,Gn=ee.onBlur,Er=ee.onActiveChange,ti=ee.onListChangeStart,oi=ee.onListChangeEnd,Ar=(0,je.Z)(ee,at),Ir=we.useRef(null),jn=we.useRef(null);we.useImperativeHandle(se,function(){return{scrollTo:function(Hr){Ir.current.scrollTo(Hr)},getIndentWidth:function(){return jn.current.offsetWidth}}});var Hn=we.useState(mt),Jn=(0,Qe.Z)(Hn,2),lr=Jn[0],$n=Jn[1],br=we.useState(Be),Br=(0,Qe.Z)(br,2),_r=Br[0],mi=Br[1],di=we.useState(Be),fi=(0,Qe.Z)(di,2),Ti=fi[0],xi=fi[1],io=we.useState([]),Xi=(0,Qe.Z)(io,2),ur=Xi[0],Tr=Xi[1],gi=we.useState(null),ni=(0,Qe.Z)(gi,2),gt=ni[0],vn=ni[1],Ut=we.useRef(Be);Ut.current=Be;function dn(){var Nn=Ut.current;mi(Nn),xi(Nn),Tr([]),vn(null),oi()}(0,Je.Z)(function(){$n(mt);var Nn=Ot(lr,mt);if(Nn.key!==null)if(Nn.add){var Hr=_r.findIndex(function(Yr){var Mi=Yr.key;return Mi===Nn.key}),zr=tt(it(_r,Be,Nn.key),Rt,zn,Fn),Ai=_r.slice();Ai.splice(Hr+1,0,Kt),xi(Ai),Tr(zr),vn("show")}else{var hr=Be.findIndex(function(Yr){var Mi=Yr.key;return Mi===Nn.key}),nr=tt(it(Be,_r,Nn.key),Rt,zn,Fn),ir=Be.slice();ir.splice(hr+1,0,Kt),xi(ir),Tr(nr),vn("hide")}else _r!==Be&&(mi(Be),xi(Be))},[mt,Be]),we.useEffect(function(){Wt||dn()},[Wt]);var $t=en?Ti:Be,hn={expandedKeys:mt,selectedKeys:vt,loadedKeys:_t,loadingKeys:Qt,checkedKeys:St,halfCheckedKeys:xt,dragOverNodeKey:gn,dropPosition:an,keyEntities:lt};return we.createElement(we.Fragment,null,Lt&&Wn&&we.createElement("span",{style:Et,"aria-live":"assertive"},jt(Wn)),we.createElement("div",null,we.createElement("input",{style:Et,disabled:_n===!1||Vt,tabIndex:_n!==!1?Gt:null,onKeyDown:nn,onFocus:wn,onBlur:Gn,value:"",onChange:Ze,"aria-label":"for screen reader"})),we.createElement("div",{className:"".concat(le,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},we.createElement("div",{className:"".concat(le,"-indent")},we.createElement("div",{ref:jn,className:"".concat(le,"-indent-unit")}))),we.createElement(Ve.Z,(0,x.Z)({},Ar,{data:$t,itemKey:Dt,height:zn,fullHeight:!1,virtual:Rt,itemHeight:Fn,scrollWidth:sn,prefixCls:"".concat(le,"-list"),ref:Ir,role:"tree",onVisibleChange:function(Hr){Hr.every(function(zr){return Dt(zr)!==De})&&dn()}}),function(Nn){var Hr=Nn.pos,zr=Object.assign({},(Ke(Nn.data),Nn.data)),Ai=Nn.title,hr=Nn.key,nr=Nn.isStart,ir=Nn.isEnd,Yr=(0,He.km)(hr,Hr);delete zr.key,delete zr.children;var Mi=(0,He.H8)(Yr,hn);return we.createElement(Re,(0,x.Z)({},zr,Mi,{title:Ai,active:!!Wn&&hr===Wn.key,pos:Hr,data:Nn.data,isStart:nr,isEnd:ir,motion:en,motionNodes:hr===De?ur:null,motionType:gt,onMotionStart:ti,onMotionEnd:dn,treeNodeRequiredProps:hn,onMouseMove:function(){Er(null)}}))}))}),kt=An,pn=ae(82661),Pt=ae(34643),En=ae(65065),on=10,de=function(ee){(0,he.Z)(le,ee);var se=(0,xe.Z)(le);function le(){var Be;(0,ze.Z)(this,le);for(var We=arguments.length,st=new Array(We),mt=0;mt<We;mt++)st[mt]=arguments[mt];return Be=se.call.apply(se,[this].concat(st)),(0,oe.Z)((0,Ue.Z)(Be),"destroyed",!1),(0,oe.Z)((0,Ue.Z)(Be),"delayedDragEnterLogic",void 0),(0,oe.Z)((0,Ue.Z)(Be),"loadingRetryTimes",{}),(0,oe.Z)((0,Ue.Z)(Be),"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,He.w$)()}),(0,oe.Z)((0,Ue.Z)(Be),"dragStartMousePosition",null),(0,oe.Z)((0,Ue.Z)(Be),"dragNodeProps",null),(0,oe.Z)((0,Ue.Z)(Be),"currentMouseOverDroppableNodeKey",null),(0,oe.Z)((0,Ue.Z)(Be),"listRef",we.createRef()),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragStart",function(vt,St){var _t=Be.state,Qt=_t.expandedKeys,xt=_t.keyEntities,lt=Be.props.onDragStart,Vt=St.eventKey;Be.dragNodeProps=St,Be.dragStartMousePosition={x:vt.clientX,y:vt.clientY};var Wt=(0,pn._5)(Qt,Vt);Be.setState({draggingNodeKey:Vt,dragChildrenKeys:(0,pn.wA)(Vt,xt),indent:Be.listRef.current.getIndentWidth()}),Be.setExpandedKeys(Wt),window.addEventListener("dragend",Be.onWindowDragEnd),lt==null||lt({event:vt,node:(0,He.F)(St)})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragEnter",function(vt,St){var _t=Be.state,Qt=_t.expandedKeys,xt=_t.keyEntities,lt=_t.dragChildrenKeys,Vt=_t.flattenNodes,Wt=_t.indent,gn=Be.props,an=gn.onDragEnter,en=gn.onExpand,zn=gn.allowDrop,Fn=gn.direction,Rt=St.pos,sn=St.eventKey;if(Be.currentMouseOverDroppableNodeKey!==sn&&(Be.currentMouseOverDroppableNodeKey=sn),!Be.dragNodeProps){Be.resetDragState();return}var _n=(0,pn.OM)(vt,Be.dragNodeProps,St,Wt,Be.dragStartMousePosition,zn,Vt,xt,Qt,Fn),Wn=_n.dropPosition,Lt=_n.dropLevelOffset,Gt=_n.dropTargetKey,nn=_n.dropContainerKey,wn=_n.dropTargetPos,Gn=_n.dropAllowed,Er=_n.dragOverNodeKey;if(lt.includes(Gt)||!Gn){Be.resetDragState();return}if(Be.delayedDragEnterLogic||(Be.delayedDragEnterLogic={}),Object.keys(Be.delayedDragEnterLogic).forEach(function(ti){clearTimeout(Be.delayedDragEnterLogic[ti])}),Be.dragNodeProps.eventKey!==St.eventKey&&(vt.persist(),Be.delayedDragEnterLogic[Rt]=window.setTimeout(function(){if(Be.state.draggingNodeKey!==null){var ti=(0,qe.Z)(Qt),oi=(0,En.Z)(xt,St.eventKey);oi&&(oi.children||[]).length&&(ti=(0,pn.L0)(Qt,St.eventKey)),Be.props.hasOwnProperty("expandedKeys")||Be.setExpandedKeys(ti),en==null||en(ti,{node:(0,He.F)(St),expanded:!0,nativeEvent:vt.nativeEvent})}},800)),Be.dragNodeProps.eventKey===Gt&&Lt===0){Be.resetDragState();return}Be.setState({dragOverNodeKey:Er,dropPosition:Wn,dropLevelOffset:Lt,dropTargetKey:Gt,dropContainerKey:nn,dropTargetPos:wn,dropAllowed:Gn}),an==null||an({event:vt,node:(0,He.F)(St),expandedKeys:Qt})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragOver",function(vt,St){var _t=Be.state,Qt=_t.dragChildrenKeys,xt=_t.flattenNodes,lt=_t.keyEntities,Vt=_t.expandedKeys,Wt=_t.indent,gn=Be.props,an=gn.onDragOver,en=gn.allowDrop,zn=gn.direction;if(Be.dragNodeProps){var Fn=(0,pn.OM)(vt,Be.dragNodeProps,St,Wt,Be.dragStartMousePosition,en,xt,lt,Vt,zn),Rt=Fn.dropPosition,sn=Fn.dropLevelOffset,_n=Fn.dropTargetKey,Wn=Fn.dropContainerKey,Lt=Fn.dropTargetPos,Gt=Fn.dropAllowed,nn=Fn.dragOverNodeKey;Qt.includes(_n)||!Gt||(Be.dragNodeProps.eventKey===_n&&sn===0?Be.state.dropPosition===null&&Be.state.dropLevelOffset===null&&Be.state.dropTargetKey===null&&Be.state.dropContainerKey===null&&Be.state.dropTargetPos===null&&Be.state.dropAllowed===!1&&Be.state.dragOverNodeKey===null||Be.resetDragState():Rt===Be.state.dropPosition&&sn===Be.state.dropLevelOffset&&_n===Be.state.dropTargetKey&&Wn===Be.state.dropContainerKey&&Lt===Be.state.dropTargetPos&&Gt===Be.state.dropAllowed&&nn===Be.state.dragOverNodeKey||Be.setState({dropPosition:Rt,dropLevelOffset:sn,dropTargetKey:_n,dropContainerKey:Wn,dropTargetPos:Lt,dropAllowed:Gt,dragOverNodeKey:nn}),an==null||an({event:vt,node:(0,He.F)(St)}))}}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragLeave",function(vt,St){Be.currentMouseOverDroppableNodeKey===St.eventKey&&!vt.currentTarget.contains(vt.relatedTarget)&&(Be.resetDragState(),Be.currentMouseOverDroppableNodeKey=null);var _t=Be.props.onDragLeave;_t==null||_t({event:vt,node:(0,He.F)(St)})}),(0,oe.Z)((0,Ue.Z)(Be),"onWindowDragEnd",function(vt){Be.onNodeDragEnd(vt,null,!0),window.removeEventListener("dragend",Be.onWindowDragEnd)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragEnd",function(vt,St){var _t=Be.props.onDragEnd;Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),_t==null||_t({event:vt,node:(0,He.F)(St)}),Be.dragNodeProps=null,window.removeEventListener("dragend",Be.onWindowDragEnd)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDrop",function(vt,St){var _t,Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xt=Be.state,lt=xt.dragChildrenKeys,Vt=xt.dropPosition,Wt=xt.dropTargetKey,gn=xt.dropTargetPos,an=xt.dropAllowed;if(an){var en=Be.props.onDrop;if(Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),Wt!==null){var zn=(0,Le.Z)((0,Le.Z)({},(0,He.H8)(Wt,Be.getTreeNodeRequiredProps())),{},{active:((_t=Be.getActiveItem())===null||_t===void 0?void 0:_t.key)===Wt,data:(0,En.Z)(Be.state.keyEntities,Wt).node}),Fn=lt.includes(Wt);(0,Te.ZP)(!Fn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Rt=(0,pn.yx)(gn),sn={event:vt,node:(0,He.F)(zn),dragNode:Be.dragNodeProps?(0,He.F)(Be.dragNodeProps):null,dragNodesKeys:[Be.dragNodeProps.eventKey].concat(lt),dropToGap:Vt!==0,dropPosition:Vt+Number(Rt[Rt.length-1])};Qt||en==null||en(sn),Be.dragNodeProps=null}}}),(0,oe.Z)((0,Ue.Z)(Be),"cleanDragState",function(){var vt=Be.state.draggingNodeKey;vt!==null&&Be.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Be.dragStartMousePosition=null,Be.currentMouseOverDroppableNodeKey=null}),(0,oe.Z)((0,Ue.Z)(Be),"triggerExpandActionExpand",function(vt,St){var _t=Be.state,Qt=_t.expandedKeys,xt=_t.flattenNodes,lt=St.expanded,Vt=St.key,Wt=St.isLeaf;if(!(Wt||vt.shiftKey||vt.metaKey||vt.ctrlKey)){var gn=xt.filter(function(en){return en.key===Vt})[0],an=(0,He.F)((0,Le.Z)((0,Le.Z)({},(0,He.H8)(Vt,Be.getTreeNodeRequiredProps())),{},{data:gn.data}));Be.setExpandedKeys(lt?(0,pn._5)(Qt,Vt):(0,pn.L0)(Qt,Vt)),Be.onNodeExpand(vt,an)}}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeClick",function(vt,St){var _t=Be.props,Qt=_t.onClick,xt=_t.expandAction;xt==="click"&&Be.triggerExpandActionExpand(vt,St),Qt==null||Qt(vt,St)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDoubleClick",function(vt,St){var _t=Be.props,Qt=_t.onDoubleClick,xt=_t.expandAction;xt==="doubleClick"&&Be.triggerExpandActionExpand(vt,St),Qt==null||Qt(vt,St)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeSelect",function(vt,St){var _t=Be.state.selectedKeys,Qt=Be.state,xt=Qt.keyEntities,lt=Qt.fieldNames,Vt=Be.props,Wt=Vt.onSelect,gn=Vt.multiple,an=St.selected,en=St[lt.key],zn=!an;zn?gn?_t=(0,pn.L0)(_t,en):_t=[en]:_t=(0,pn._5)(_t,en);var Fn=_t.map(function(Rt){var sn=(0,En.Z)(xt,Rt);return sn?sn.node:null}).filter(Boolean);Be.setUncontrolledState({selectedKeys:_t}),Wt==null||Wt(_t,{event:"select",selected:zn,node:St,selectedNodes:Fn,nativeEvent:vt.nativeEvent})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeCheck",function(vt,St,_t){var Qt=Be.state,xt=Qt.keyEntities,lt=Qt.checkedKeys,Vt=Qt.halfCheckedKeys,Wt=Be.props,gn=Wt.checkStrictly,an=Wt.onCheck,en=St.key,zn,Fn={event:"check",node:St,checked:_t,nativeEvent:vt.nativeEvent};if(gn){var Rt=_t?(0,pn.L0)(lt,en):(0,pn._5)(lt,en),sn=(0,pn._5)(Vt,en);zn={checked:Rt,halfChecked:sn},Fn.checkedNodes=Rt.map(function(wn){return(0,En.Z)(xt,wn)}).filter(Boolean).map(function(wn){return wn.node}),Be.setUncontrolledState({checkedKeys:Rt})}else{var _n=(0,Pt.S)([].concat((0,qe.Z)(lt),[en]),!0,xt),Wn=_n.checkedKeys,Lt=_n.halfCheckedKeys;if(!_t){var Gt=new Set(Wn);Gt.delete(en);var nn=(0,Pt.S)(Array.from(Gt),{checked:!1,halfCheckedKeys:Lt},xt);Wn=nn.checkedKeys,Lt=nn.halfCheckedKeys}zn=Wn,Fn.checkedNodes=[],Fn.checkedNodesPositions=[],Fn.halfCheckedKeys=Lt,Wn.forEach(function(wn){var Gn=(0,En.Z)(xt,wn);if(Gn){var Er=Gn.node,ti=Gn.pos;Fn.checkedNodes.push(Er),Fn.checkedNodesPositions.push({node:Er,pos:ti})}}),Be.setUncontrolledState({checkedKeys:Wn},!1,{halfCheckedKeys:Lt})}an==null||an(zn,Fn)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeLoad",function(vt){var St,_t=vt.key,Qt=Be.state.keyEntities,xt=(0,En.Z)(Qt,_t);if(!(xt!=null&&(St=xt.children)!==null&&St!==void 0&&St.length)){var lt=new Promise(function(Vt,Wt){Be.setState(function(gn){var an=gn.loadedKeys,en=an===void 0?[]:an,zn=gn.loadingKeys,Fn=zn===void 0?[]:zn,Rt=Be.props,sn=Rt.loadData,_n=Rt.onLoad;if(!sn||en.includes(_t)||Fn.includes(_t))return null;var Wn=sn(vt);return Wn.then(function(){var Lt=Be.state.loadedKeys,Gt=(0,pn.L0)(Lt,_t);_n==null||_n(Gt,{event:"load",node:vt}),Be.setUncontrolledState({loadedKeys:Gt}),Be.setState(function(nn){return{loadingKeys:(0,pn._5)(nn.loadingKeys,_t)}}),Vt()}).catch(function(Lt){if(Be.setState(function(nn){return{loadingKeys:(0,pn._5)(nn.loadingKeys,_t)}}),Be.loadingRetryTimes[_t]=(Be.loadingRetryTimes[_t]||0)+1,Be.loadingRetryTimes[_t]>=on){var Gt=Be.state.loadedKeys;(0,Te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Be.setUncontrolledState({loadedKeys:(0,pn.L0)(Gt,_t)}),Vt()}Wt(Lt)}),{loadingKeys:(0,pn.L0)(Fn,_t)}})});return lt.catch(function(){}),lt}}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeMouseEnter",function(vt,St){var _t=Be.props.onMouseEnter;_t==null||_t({event:vt,node:St})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeMouseLeave",function(vt,St){var _t=Be.props.onMouseLeave;_t==null||_t({event:vt,node:St})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeContextMenu",function(vt,St){var _t=Be.props.onRightClick;_t&&(vt.preventDefault(),_t({event:vt,node:St}))}),(0,oe.Z)((0,Ue.Z)(Be),"onFocus",function(){var vt=Be.props.onFocus;Be.setState({focused:!0});for(var St=arguments.length,_t=new Array(St),Qt=0;Qt<St;Qt++)_t[Qt]=arguments[Qt];vt==null||vt.apply(void 0,_t)}),(0,oe.Z)((0,Ue.Z)(Be),"onBlur",function(){var vt=Be.props.onBlur;Be.setState({focused:!1}),Be.onActiveChange(null);for(var St=arguments.length,_t=new Array(St),Qt=0;Qt<St;Qt++)_t[Qt]=arguments[Qt];vt==null||vt.apply(void 0,_t)}),(0,oe.Z)((0,Ue.Z)(Be),"getTreeNodeRequiredProps",function(){var vt=Be.state,St=vt.expandedKeys,_t=vt.selectedKeys,Qt=vt.loadedKeys,xt=vt.loadingKeys,lt=vt.checkedKeys,Vt=vt.halfCheckedKeys,Wt=vt.dragOverNodeKey,gn=vt.dropPosition,an=vt.keyEntities;return{expandedKeys:St||[],selectedKeys:_t||[],loadedKeys:Qt||[],loadingKeys:xt||[],checkedKeys:lt||[],halfCheckedKeys:Vt||[],dragOverNodeKey:Wt,dropPosition:gn,keyEntities:an}}),(0,oe.Z)((0,Ue.Z)(Be),"setExpandedKeys",function(vt){var St=Be.state,_t=St.treeData,Qt=St.fieldNames,xt=(0,He.oH)(_t,vt,Qt);Be.setUncontrolledState({expandedKeys:vt,flattenNodes:xt},!0)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeExpand",function(vt,St){var _t=Be.state.expandedKeys,Qt=Be.state,xt=Qt.listChanging,lt=Qt.fieldNames,Vt=Be.props,Wt=Vt.onExpand,gn=Vt.loadData,an=St.expanded,en=St[lt.key];if(!xt){var zn=_t.includes(en),Fn=!an;if((0,Te.ZP)(an&&zn||!an&&!zn,"Expand state not sync with index check"),_t=Fn?(0,pn.L0)(_t,en):(0,pn._5)(_t,en),Be.setExpandedKeys(_t),Wt==null||Wt(_t,{node:St,expanded:Fn,nativeEvent:vt.nativeEvent}),Fn&&gn){var Rt=Be.onNodeLoad(St);Rt&&Rt.then(function(){var sn=(0,He.oH)(Be.state.treeData,_t,lt);Be.setUncontrolledState({flattenNodes:sn})}).catch(function(){var sn=Be.state.expandedKeys,_n=(0,pn._5)(sn,en);Be.setExpandedKeys(_n)})}}}),(0,oe.Z)((0,Ue.Z)(Be),"onListChangeStart",function(){Be.setUncontrolledState({listChanging:!0})}),(0,oe.Z)((0,Ue.Z)(Be),"onListChangeEnd",function(){setTimeout(function(){Be.setUncontrolledState({listChanging:!1})})}),(0,oe.Z)((0,Ue.Z)(Be),"onActiveChange",function(vt){var St=Be.state.activeKey,_t=Be.props,Qt=_t.onActiveChange,xt=_t.itemScrollOffset,lt=xt===void 0?0:xt;St!==vt&&(Be.setState({activeKey:vt}),vt!==null&&Be.scrollTo({key:vt,offset:lt}),Qt==null||Qt(vt))}),(0,oe.Z)((0,Ue.Z)(Be),"getActiveItem",function(){var vt=Be.state,St=vt.activeKey,_t=vt.flattenNodes;return St===null?null:_t.find(function(Qt){var xt=Qt.key;return xt===St})||null}),(0,oe.Z)((0,Ue.Z)(Be),"offsetActiveKey",function(vt){var St=Be.state,_t=St.flattenNodes,Qt=St.activeKey,xt=_t.findIndex(function(Wt){var gn=Wt.key;return gn===Qt});xt===-1&&vt<0&&(xt=_t.length),xt=(xt+vt+_t.length)%_t.length;var lt=_t[xt];if(lt){var Vt=lt.key;Be.onActiveChange(Vt)}else Be.onActiveChange(null)}),(0,oe.Z)((0,Ue.Z)(Be),"onKeyDown",function(vt){var St=Be.state,_t=St.activeKey,Qt=St.expandedKeys,xt=St.checkedKeys,lt=St.fieldNames,Vt=Be.props,Wt=Vt.onKeyDown,gn=Vt.checkable,an=Vt.selectable;switch(vt.which){case Me.Z.UP:{Be.offsetActiveKey(-1),vt.preventDefault();break}case Me.Z.DOWN:{Be.offsetActiveKey(1),vt.preventDefault();break}}var en=Be.getActiveItem();if(en&&en.data){var zn=Be.getTreeNodeRequiredProps(),Fn=en.data.isLeaf===!1||!!(en.data[lt.children]||[]).length,Rt=(0,He.F)((0,Le.Z)((0,Le.Z)({},(0,He.H8)(_t,zn)),{},{data:en.data,active:!0}));switch(vt.which){case Me.Z.LEFT:{Fn&&Qt.includes(_t)?Be.onNodeExpand({},Rt):en.parent&&Be.onActiveChange(en.parent.key),vt.preventDefault();break}case Me.Z.RIGHT:{Fn&&!Qt.includes(_t)?Be.onNodeExpand({},Rt):en.children&&en.children.length&&Be.onActiveChange(en.children[0].key),vt.preventDefault();break}case Me.Z.ENTER:case Me.Z.SPACE:{gn&&!Rt.disabled&&Rt.checkable!==!1&&!Rt.disableCheckbox?Be.onNodeCheck({},Rt,!xt.includes(_t)):!gn&&an&&!Rt.disabled&&Rt.selectable!==!1&&Be.onNodeSelect({},Rt);break}}}Wt==null||Wt(vt)}),(0,oe.Z)((0,Ue.Z)(Be),"setUncontrolledState",function(vt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Be.destroyed){var Qt=!1,xt=!0,lt={};Object.keys(vt).forEach(function(Vt){if(Be.props.hasOwnProperty(Vt)){xt=!1;return}Qt=!0,lt[Vt]=vt[Vt]}),Qt&&(!St||xt)&&Be.setState((0,Le.Z)((0,Le.Z)({},lt),_t))}}),(0,oe.Z)((0,Ue.Z)(Be),"scrollTo",function(vt){Be.listRef.current.scrollTo(vt)}),Be}return(0,Ie.Z)(le,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var We=this.props,st=We.activeKey,mt=We.itemScrollOffset,vt=mt===void 0?0:mt;st!==void 0&&st!==this.state.activeKey&&(this.setState({activeKey:st}),st!==null&&this.scrollTo({key:st,offset: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 We=this.state,st=We.focused,mt=We.flattenNodes,vt=We.keyEntities,St=We.draggingNodeKey,_t=We.activeKey,Qt=We.dropLevelOffset,xt=We.dropContainerKey,lt=We.dropTargetKey,Vt=We.dropPosition,Wt=We.dragOverNodeKey,gn=We.indent,an=this.props,en=an.prefixCls,zn=an.className,Fn=an.style,Rt=an.showLine,sn=an.focusable,_n=an.tabIndex,Wn=_n===void 0?0:_n,Lt=an.selectable,Gt=an.showIcon,nn=an.icon,wn=an.switcherIcon,Gn=an.draggable,Er=an.checkable,ti=an.checkStrictly,oi=an.disabled,Ar=an.motion,Ir=an.loadData,jn=an.filterTreeNode,Hn=an.height,Jn=an.itemHeight,lr=an.scrollWidth,$n=an.virtual,br=an.titleRender,Br=an.dropIndicatorRender,_r=an.onContextMenu,mi=an.onScroll,di=an.direction,fi=an.rootClassName,Ti=an.rootStyle,xi=(0,Se.Z)(this.props,{aria:!0,data:!0}),io;Gn&&((0,dt.Z)(Gn)==="object"?io=Gn:typeof Gn=="function"?io={nodeDraggable:Gn}:io={});var Xi={prefixCls:en,selectable:Lt,showIcon:Gt,icon:nn,switcherIcon:wn,draggable:io,draggingNodeKey:St,checkable:Er,checkStrictly:ti,disabled:oi,keyEntities:vt,dropLevelOffset:Qt,dropContainerKey:xt,dropTargetKey:lt,dropPosition:Vt,dragOverNodeKey:Wt,indent:gn,direction:di,dropIndicatorRender:Br,loadData:Ir,filterTreeNode:jn,titleRender:br,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};return we.createElement(Ce.k.Provider,{value:Xi},we.createElement("div",{className:ve()(en,zn,fi,(0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(en,"-show-line"),Rt),"".concat(en,"-focused"),st),"".concat(en,"-active-focused"),_t!==null)),style:Ti},we.createElement(kt,(0,x.Z)({ref:this.listRef,prefixCls:en,style:Fn,data:mt,disabled:oi,selectable:Lt,checkable:!!Er,motion:Ar,dragging:St!==null,height:Hn,itemHeight:Jn,virtual:$n,focusable:sn,focused:st,tabIndex:Wn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_r,onScroll:mi,scrollWidth:lr},this.getTreeNodeRequiredProps(),xi))))}}],[{key:"getDerivedStateFromProps",value:function(We,st){var mt=st.prevProps,vt={prevProps:We};function St(Wn){return!mt&&We.hasOwnProperty(Wn)||mt&&mt[Wn]!==We[Wn]}var _t,Qt=st.fieldNames;if(St("fieldNames")&&(Qt=(0,He.w$)(We.fieldNames),vt.fieldNames=Qt),St("treeData")?_t=We.treeData:St("children")&&((0,Te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),_t=(0,He.zn)(We.children)),_t){vt.treeData=_t;var xt=(0,He.I8)(_t,{fieldNames:Qt});vt.keyEntities=(0,Le.Z)((0,oe.Z)({},De,Zt),xt.keyEntities)}var lt=vt.keyEntities||st.keyEntities;if(St("expandedKeys")||mt&&St("autoExpandParent"))vt.expandedKeys=We.autoExpandParent||!mt&&We.defaultExpandParent?(0,pn.r7)(We.expandedKeys,lt):We.expandedKeys;else if(!mt&&We.defaultExpandAll){var Vt=(0,Le.Z)({},lt);delete Vt[De];var Wt=[];Object.keys(Vt).forEach(function(Wn){var Lt=Vt[Wn];Lt.children&&Lt.children.length&&Wt.push(Lt.key)}),vt.expandedKeys=Wt}else!mt&&We.defaultExpandedKeys&&(vt.expandedKeys=We.autoExpandParent||We.defaultExpandParent?(0,pn.r7)(We.defaultExpandedKeys,lt):We.defaultExpandedKeys);if(vt.expandedKeys||delete vt.expandedKeys,_t||vt.expandedKeys){var gn=(0,He.oH)(_t||st.treeData,vt.expandedKeys||st.expandedKeys,Qt);vt.flattenNodes=gn}if(We.selectable&&(St("selectedKeys")?vt.selectedKeys=(0,pn.BT)(We.selectedKeys,We):!mt&&We.defaultSelectedKeys&&(vt.selectedKeys=(0,pn.BT)(We.defaultSelectedKeys,We))),We.checkable){var an;if(St("checkedKeys")?an=(0,pn.E6)(We.checkedKeys)||{}:!mt&&We.defaultCheckedKeys?an=(0,pn.E6)(We.defaultCheckedKeys)||{}:_t&&(an=(0,pn.E6)(We.checkedKeys)||{checkedKeys:st.checkedKeys,halfCheckedKeys:st.halfCheckedKeys}),an){var en=an,zn=en.checkedKeys,Fn=zn===void 0?[]:zn,Rt=en.halfCheckedKeys,sn=Rt===void 0?[]:Rt;if(!We.checkStrictly){var _n=(0,Pt.S)(Fn,!0,lt);Fn=_n.checkedKeys,sn=_n.halfCheckedKeys}vt.checkedKeys=Fn,vt.halfCheckedKeys=sn}}return St("loadedKeys")&&(vt.loadedKeys=We.loadedKeys),vt}}]),le}(we.Component);(0,oe.Z)(de,"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:ke,allowDrop:function(){return!0},expandAction:!1}),(0,oe.Z)(de,"TreeNode",ot.Z);var pe=de,ie=pe},82661:function(qn,Mt,ae){"use strict";ae.d(Mt,{BT:function(){return we},E6:function(){return ke},L0:function(){return oe},OM:function(){return Te},_5:function(){return xe},r7:function(){return Ke},wA:function(){return ve},yx:function(){return Oe}});var x=ae(77654),dt=ae(43749),Le=ae(48736),qe=ae(59301),ze=ae(639),Ie=ae(65065),Ue=ae(34061),he=null;function xe(Qe,je){if(!Qe)return[];var Je=Qe.slice(),Ve=Je.indexOf(je);return Ve>=0&&Je.splice(Ve,1),Je}function oe(Qe,je){var Je=(Qe||[]).slice();return Je.indexOf(je)===-1&&Je.push(je),Je}function Oe(Qe){return Qe.split("-")}function ve(Qe,je){var Je=[],Ve=(0,Ie.Z)(je,Qe);function ct(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ot.forEach(function(pt){var Ct=pt.key,He=pt.children;Je.push(Ct),ct(He)})}return ct(Ve.children),Je}function Me(Qe){if(Qe.parent){var je=Oe(Qe.pos);return Number(je[je.length-1])===Qe.parent.children.length-1}return!1}function Se(Qe){var je=Oe(Qe.pos);return Number(je[je.length-1])===0}function Te(Qe,je,Je,Ve,ct,ot,pt,Ct,He,ht){var _e,Re=Qe.clientX,Ot=Qe.clientY,it=Qe.target.getBoundingClientRect(),at=it.top,Et=it.height,Ze=(ht==="rtl"?-1:1)*(((ct==null?void 0:ct.x)||0)-Re),De=(Ze-12)/Ve,ut=He.filter(function(ie){var ee;return(ee=Ct[ie])===null||ee===void 0||(ee=ee.children)===null||ee===void 0?void 0:ee.length}),Zt=(0,Ie.Z)(Ct,Je.eventKey);if(Ot<at+Et/2){var Kt=pt.findIndex(function(ie){return ie.key===Zt.key}),tt=Kt<=0?0:Kt-1,Dt=pt[tt].key;Zt=(0,Ie.Z)(Ct,Dt)}var jt=Zt.key,An=Zt,kt=Zt.key,pn=0,Pt=0;if(!ut.includes(jt))for(var En=0;En<De&&Me(Zt);En+=1)Zt=Zt.parent,Pt+=1;var on=je.data,de=Zt.node,pe=!0;return Se(Zt)&&Zt.level===0&&Ot<at+Et/2&&ot({dragNode:on,dropNode:de,dropPosition:-1})&&Zt.key===Je.eventKey?pn=-1:(An.children||[]).length&&ut.includes(kt)?ot({dragNode:on,dropNode:de,dropPosition:0})?pn=0:pe=!1:Pt===0?De>-1.5?ot({dragNode:on,dropNode:de,dropPosition:1})?pn=1:pe=!1:ot({dragNode:on,dropNode:de,dropPosition:0})?pn=0:ot({dragNode:on,dropNode:de,dropPosition:1})?pn=1:pe=!1:ot({dragNode:on,dropNode:de,dropPosition:1})?pn=1:pe=!1,{dropPosition:pn,dropLevelOffset:Pt,dropTargetKey:Zt.key,dropTargetPos:Zt.pos,dragOverNodeKey:kt,dropContainerKey:pn===0?null:((_e=Zt.parent)===null||_e===void 0?void 0:_e.key)||null,dropAllowed:pe}}function we(Qe,je){if(Qe){var Je=je.multiple;return Je?Qe.slice():Qe.length?[Qe[0]]:Qe}}var Ce=function(je){return je};function Ee(Qe,je){if(!Qe)return[];var Je=je||{},Ve=Je.processProps,ct=Ve===void 0?Ce:Ve,ot=Array.isArray(Qe)?Qe:[Qe];return ot.map(function(pt){var Ct=pt.children,He=_objectWithoutProperties(pt,he),ht=Ee(Ct,je);return React.createElement(TreeNode,_extends({key:He.key},ct(He)),ht)})}function ke(Qe){if(!Qe)return null;var je;if(Array.isArray(Qe))je={checkedKeys:Qe,halfCheckedKeys:void 0};else if((0,dt.Z)(Qe)==="object")je={checkedKeys:Qe.checked||void 0,halfCheckedKeys:Qe.halfChecked||void 0};else return(0,Le.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return je}function Ke(Qe,je){var Je=new Set;function Ve(ct){if(!Je.has(ct)){var ot=(0,Ie.Z)(je,ct);if(ot){Je.add(ct);var pt=ot.parent,Ct=ot.node;Ct.disabled||pt&&Ve(pt.key)}}}return(Qe||[]).forEach(function(ct){Ve(ct)}),(0,x.Z)(Je)}},34643:function(qn,Mt,ae){"use strict";ae.d(Mt,{S:function(){return Ue}});var x=ae(48736),dt=ae(65065);function Le(he,xe){var oe=new Set;return he.forEach(function(Oe){xe.has(Oe)||oe.add(Oe)}),oe}function qe(he){var xe=he||{},oe=xe.disabled,Oe=xe.disableCheckbox,ve=xe.checkable;return!!(oe||Oe)||ve===!1}function ze(he,xe,oe,Oe){for(var ve=new Set(he),Me=new Set,Se=0;Se<=oe;Se+=1){var Te=xe.get(Se)||new Set;Te.forEach(function(ke){var Ke=ke.key,Qe=ke.node,je=ke.children,Je=je===void 0?[]:je;ve.has(Ke)&&!Oe(Qe)&&Je.filter(function(Ve){return!Oe(Ve.node)}).forEach(function(Ve){ve.add(Ve.key)})})}for(var we=new Set,Ce=oe;Ce>=0;Ce-=1){var Ee=xe.get(Ce)||new Set;Ee.forEach(function(ke){var Ke=ke.parent,Qe=ke.node;if(!(Oe(Qe)||!ke.parent||we.has(ke.parent.key))){if(Oe(ke.parent.node)){we.add(Ke.key);return}var je=!0,Je=!1;(Ke.children||[]).filter(function(Ve){return!Oe(Ve.node)}).forEach(function(Ve){var ct=Ve.key,ot=ve.has(ct);je&&!ot&&(je=!1),!Je&&(ot||Me.has(ct))&&(Je=!0)}),je&&ve.add(Ke.key),Je&&Me.add(Ke.key),we.add(Ke.key)}})}return{checkedKeys:Array.from(ve),halfCheckedKeys:Array.from(Le(Me,ve))}}function Ie(he,xe,oe,Oe,ve){for(var Me=new Set(he),Se=new Set(xe),Te=0;Te<=Oe;Te+=1){var we=oe.get(Te)||new Set;we.forEach(function(Ke){var Qe=Ke.key,je=Ke.node,Je=Ke.children,Ve=Je===void 0?[]:Je;!Me.has(Qe)&&!Se.has(Qe)&&!ve(je)&&Ve.filter(function(ct){return!ve(ct.node)}).forEach(function(ct){Me.delete(ct.key)})})}Se=new Set;for(var Ce=new Set,Ee=Oe;Ee>=0;Ee-=1){var ke=oe.get(Ee)||new Set;ke.forEach(function(Ke){var Qe=Ke.parent,je=Ke.node;if(!(ve(je)||!Ke.parent||Ce.has(Ke.parent.key))){if(ve(Ke.parent.node)){Ce.add(Qe.key);return}var Je=!0,Ve=!1;(Qe.children||[]).filter(function(ct){return!ve(ct.node)}).forEach(function(ct){var ot=ct.key,pt=Me.has(ot);Je&&!pt&&(Je=!1),!Ve&&(pt||Se.has(ot))&&(Ve=!0)}),Je||Me.delete(Qe.key),Ve&&Se.add(Qe.key),Ce.add(Qe.key)}})}return{checkedKeys:Array.from(Me),halfCheckedKeys:Array.from(Le(Se,Me))}}function Ue(he,xe,oe,Oe){var ve=[],Me;Oe?Me=Oe:Me=qe;var Se=new Set(he.filter(function(Ee){var ke=!!(0,dt.Z)(oe,Ee);return ke||ve.push(Ee),ke})),Te=new Map,we=0;Object.keys(oe).forEach(function(Ee){var ke=oe[Ee],Ke=ke.level,Qe=Te.get(Ke);Qe||(Qe=new Set,Te.set(Ke,Qe)),Qe.add(ke),we=Math.max(we,Ke)}),(0,x.ZP)(!ve.length,"Tree missing follow keys: ".concat(ve.slice(0,100).map(function(Ee){return"'".concat(Ee,"'")}).join(", ")));var Ce;return xe===!0?Ce=ze(Se,Te,we,Me):Ce=Ie(Se,xe.halfCheckedKeys,Te,we,Me),Ce}},65065:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return x}});function x(dt,Le){return dt[Le]}},34061:function(qn,Mt,ae){"use strict";ae.d(Mt,{F:function(){return Ke},H8:function(){return ke},I8:function(){return Ee},km:function(){return ve},oH:function(){return we},w$:function(){return Me},zn:function(){return Te}});var x=ae(43749),dt=ae(77654),Le=ae(85899),qe=ae(42244),ze=ae(11592),Ie=ae(2738),Ue=ae(48736),he=ae(65065),xe=["children"];function oe(Qe,je){return"".concat(Qe,"-").concat(je)}function Oe(Qe){return Qe&&Qe.type&&Qe.type.isTreeNode}function ve(Qe,je){return Qe!=null?Qe:je}function Me(Qe){var je=Qe||{},Je=je.title,Ve=je._title,ct=je.key,ot=je.children,pt=Je||"title";return{title:pt,_title:Ve||[pt],key:ct||"key",children:ot||"children"}}function Se(Qe,je){var Je=new Map;function Ve(ct){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ct||[]).forEach(function(pt){var Ct=pt[je.key],He=pt[je.children];warning(Ct!=null,"Tree node must have a certain key: [".concat(ot).concat(Ct,"]"));var ht=String(Ct);warning(!Je.has(ht)||Ct===null||Ct===void 0,"Same 'key' exist in the Tree: ".concat(ht)),Je.set(ht,!0),Ve(He,"".concat(ot).concat(ht," > "))})}Ve(Qe)}function Te(Qe){function je(Je){var Ve=(0,ze.Z)(Je);return Ve.map(function(ct){if(!Oe(ct))return(0,Ue.ZP)(!ct,"Tree/TreeNode can only accept TreeNode as children."),null;var ot=ct.key,pt=ct.props,Ct=pt.children,He=(0,qe.Z)(pt,xe),ht=(0,Le.Z)({key:ot},He),_e=je(Ct);return _e.length&&(ht.children=_e),ht}).filter(function(ct){return ct})}return je(Qe)}function we(Qe,je,Je){var Ve=Me(Je),ct=Ve._title,ot=Ve.key,pt=Ve.children,Ct=new Set(je===!0?[]:je),He=[];function ht(_e){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _e.map(function(Ot,it){for(var at=oe(Re?Re.pos:"0",it),Et=ve(Ot[ot],at),Ze,De=0;De<ct.length;De+=1){var ut=ct[De];if(Ot[ut]!==void 0){Ze=Ot[ut];break}}var Zt=Object.assign((0,Ie.Z)(Ot,[].concat((0,dt.Z)(ct),[ot,pt])),{title:Ze,key:Et,parent:Re,pos:at,children:null,data:Ot,isStart:[].concat((0,dt.Z)(Re?Re.isStart:[]),[it===0]),isEnd:[].concat((0,dt.Z)(Re?Re.isEnd:[]),[it===_e.length-1])});return He.push(Zt),je===!0||Ct.has(Et)?Zt.children=ht(Ot[pt]||[],Zt):Zt.children=[],Zt})}return ht(Qe),He}function Ce(Qe,je,Je){var Ve={};(0,x.Z)(Je)==="object"?Ve=Je:Ve={externalGetKey:Je},Ve=Ve||{};var ct=Ve,ot=ct.childrenPropName,pt=ct.externalGetKey,Ct=ct.fieldNames,He=Me(Ct),ht=He.key,_e=He.children,Re=ot||_e,Ot;pt?typeof pt=="string"?Ot=function(Et){return Et[pt]}:typeof pt=="function"&&(Ot=function(Et){return pt(Et)}):Ot=function(Et,Ze){return ve(Et[ht],Ze)};function it(at,Et,Ze,De){var ut=at?at[Re]:Qe,Zt=at?oe(Ze.pos,Et):"0",Kt=at?[].concat((0,dt.Z)(De),[at]):[];if(at){var tt=Ot(at,Zt),Dt={node:at,index:Et,pos:Zt,key:tt,parentPos:Ze.node?Ze.pos:null,level:Ze.level+1,nodes:Kt};je(Dt)}ut&&ut.forEach(function(jt,An){it(jt,An,{node:at,pos:Zt,level:Ze?Ze.level+1:-1},Kt)})}it(null)}function Ee(Qe){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Je=je.initWrapper,Ve=je.processEntity,ct=je.onProcessFinished,ot=je.externalGetKey,pt=je.childrenPropName,Ct=je.fieldNames,He=arguments.length>2?arguments[2]:void 0,ht=ot||He,_e={},Re={},Ot={posEntities:_e,keyEntities:Re};return Je&&(Ot=Je(Ot)||Ot),Ce(Qe,function(it){var at=it.node,Et=it.index,Ze=it.pos,De=it.key,ut=it.parentPos,Zt=it.level,Kt=it.nodes,tt={node:at,nodes:Kt,index:Et,key:De,pos:Ze,level:Zt},Dt=ve(De,Ze);_e[Ze]=tt,Re[Dt]=tt,tt.parent=_e[ut],tt.parent&&(tt.parent.children=tt.parent.children||[],tt.parent.children.push(tt)),Ve&&Ve(tt,Ot)},{externalGetKey:ht,childrenPropName:pt,fieldNames:Ct}),ct&&ct(Ot),Ot}function ke(Qe,je){var Je=je.expandedKeys,Ve=je.selectedKeys,ct=je.loadedKeys,ot=je.loadingKeys,pt=je.checkedKeys,Ct=je.halfCheckedKeys,He=je.dragOverNodeKey,ht=je.dropPosition,_e=je.keyEntities,Re=(0,he.Z)(_e,Qe),Ot={eventKey:Qe,expanded:Je.indexOf(Qe)!==-1,selected:Ve.indexOf(Qe)!==-1,loaded:ct.indexOf(Qe)!==-1,loading:ot.indexOf(Qe)!==-1,checked:pt.indexOf(Qe)!==-1,halfChecked:Ct.indexOf(Qe)!==-1,pos:String(Re?Re.pos:""),dragOver:He===Qe&&ht===0,dragOverGapTop:He===Qe&&ht===-1,dragOverGapBottom:He===Qe&&ht===1};return Ot}function Ke(Qe){var je=Qe.data,Je=Qe.expanded,Ve=Qe.selected,ct=Qe.checked,ot=Qe.loaded,pt=Qe.loading,Ct=Qe.halfChecked,He=Qe.dragOver,ht=Qe.dragOverGapTop,_e=Qe.dragOverGapBottom,Re=Qe.pos,Ot=Qe.active,it=Qe.eventKey,at=(0,Le.Z)((0,Le.Z)({},je),{},{expanded:Je,selected:Ve,checked:ct,loaded:ot,loading:pt,halfChecked:Ct,dragOver:He,dragOverGapTop:ht,dragOverGapBottom:_e,pos:Re,active:Ot,key:it});return"props"in at||Object.defineProperty(at,"props",{get:function(){return(0,Ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Qe}}),at}},8224:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return dt}});var x=ae(4676);function dt(Le,qe,ze,Ie){var Ue=x.unstable_batchedUpdates?function(xe){x.unstable_batchedUpdates(ze,xe)}:ze;return Le!=null&&Le.addEventListener&&Le.addEventListener(qe,Ue,Ie),{remove:function(){Le!=null&&Le.removeEventListener&&Le.removeEventListener(qe,Ue,Ie)}}}},24514:function(qn,Mt,ae){"use strict";ae.d(Mt,{G:function(){return qe}});var x=ae(47273),dt=function(Ie){if((0,x.Z)()&&window.document.documentElement){var Ue=Array.isArray(Ie)?Ie:[Ie],he=window.document.documentElement;return Ue.some(function(xe){return xe in he.style})}return!1},Le=function(Ie,Ue){if(!dt(Ie))return!1;var he=document.createElement("div"),xe=he.style[Ie];return he.style[Ie]=Ue,he.style[Ie]!==xe};function qe(ze,Ie){return!Array.isArray(ze)&&Ie!==void 0?Le(ze,Ie):dt(ze)}},48911:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return on}});var x=ae(60499),dt=ae(43749),Le=ae(85899),qe=ae(18642),ze=ae(72190),Ie=ae(42244),Ue=ae(92310),he=ae.n(Ue),xe=ae(29301),oe=ae(70425),Oe=ae(34280),ve=ae(59301),Me=ae(4676),Se=ve.forwardRef(function(de,pe){var ie=de.height,ee=de.offsetY,se=de.offsetX,le=de.children,Be=de.prefixCls,We=de.onInnerResize,st=de.innerProps,mt=de.rtl,vt=de.extra,St={},_t={display:"flex",flexDirection:"column"};return ee!==void 0&&(St={height:ie,position:"relative",overflow:"hidden"},_t=(0,Le.Z)((0,Le.Z)({},_t),{},(0,qe.Z)((0,qe.Z)((0,qe.Z)((0,qe.Z)((0,qe.Z)({transform:"translateY(".concat(ee,"px)")},mt?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),ve.createElement("div",{style:St},ve.createElement(xe.Z,{onResize:function(xt){var lt=xt.offsetHeight;lt&&We&&We()}},ve.createElement("div",(0,x.Z)({style:_t,className:he()((0,qe.Z)({},"".concat(Be,"-holder-inner"),Be)),ref:pe},st),le,vt)))});Se.displayName="Filler";var Te=Se;function we(de){var pe=de.children,ie=de.setRef,ee=ve.useCallback(function(se){ie(se)},[]);return ve.cloneElement(pe,{ref:ee})}function Ce(de,pe,ie,ee,se,le,Be,We){var st=We.getKey;return de.slice(pe,ie+1).map(function(mt,vt){var St=pe+vt,_t=Be(mt,St,{style:{width:ee},offsetX:se}),Qt=st(mt);return ve.createElement(we,{key:Qt,setRef:function(lt){return le(mt,lt)}},_t)})}function Ee(de,pe,ie,ee){var se=ie-de,le=pe-ie,Be=Math.min(se,le)*2;if(ee<=Be){var We=Math.floor(ee/2);return ee%2?ie+We+1:ie-We}return se>le?ie-(ee-le):ie+(ee-se)}function ke(de,pe,ie){var ee=de.length,se=pe.length,le,Be;if(ee===0&&se===0)return null;ee<se?(le=de,Be=pe):(le=pe,Be=de);var We={__EMPTY_ITEM__:!0};function st(xt){return xt!==void 0?ie(xt):We}for(var mt=null,vt=Math.abs(ee-se)!==1,St=0;St<Be.length;St+=1){var _t=st(le[St]),Qt=st(Be[St]);if(_t!==Qt){mt=St,vt=vt||_t!==st(Be[St+1]);break}}return mt===null?null:{index:mt,multiple:vt}}function Ke(de,pe,ie){var ee=ve.useState(de),se=(0,ze.Z)(ee,2),le=se[0],Be=se[1],We=ve.useState(null),st=(0,ze.Z)(We,2),mt=st[0],vt=st[1];return ve.useEffect(function(){var St=ke(le||[],de||[],pe);(St==null?void 0:St.index)!==void 0&&(ie==null||ie(St.index),vt(de[St.index])),Be(de)},[de]),[mt]}var Qe=ae(16089),je=(typeof navigator=="undefined"?"undefined":(0,dt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Je=je,Ve=function(de,pe,ie,ee){var se=(0,ve.useRef)(!1),le=(0,ve.useRef)(null);function Be(){clearTimeout(le.current),se.current=!0,le.current=setTimeout(function(){se.current=!1},50)}var We=(0,ve.useRef)({top:de,bottom:pe,left:ie,right:ee});return We.current.top=de,We.current.bottom=pe,We.current.left=ie,We.current.right=ee,function(st,mt){var vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,St=st?mt<0&&We.current.left||mt>0&&We.current.right:mt<0&&We.current.top||mt>0&&We.current.bottom;return vt&&St?(clearTimeout(le.current),se.current=!1):(!St||se.current)&&Be(),!se.current&&St}};function ct(de,pe,ie,ee,se,le,Be){var We=(0,ve.useRef)(0),st=(0,ve.useRef)(null),mt=(0,ve.useRef)(null),vt=(0,ve.useRef)(!1),St=Ve(pe,ie,ee,se);function _t(gn,an){if(Qe.Z.cancel(st.current),!St(!1,an)){var en=gn;if(!en._virtualHandled)en._virtualHandled=!0;else return;We.current+=an,mt.current=an,Je||en.preventDefault(),st.current=(0,Qe.Z)(function(){var zn=vt.current?10:1;Be(We.current*zn,!1),We.current=0})}}function Qt(gn,an){Be(an,!0),Je||gn.preventDefault()}var xt=(0,ve.useRef)(null),lt=(0,ve.useRef)(null);function Vt(gn){if(de){Qe.Z.cancel(lt.current),lt.current=(0,Qe.Z)(function(){xt.current=null},2);var an=gn.deltaX,en=gn.deltaY,zn=gn.shiftKey,Fn=an,Rt=en;(xt.current==="sx"||!xt.current&&zn&&en&&!an)&&(Fn=en,Rt=0,xt.current="sx");var sn=Math.abs(Fn),_n=Math.abs(Rt);xt.current===null&&(xt.current=le&&sn>_n?"x":"y"),xt.current==="y"?_t(gn,Rt):Qt(gn,Fn)}}function Wt(gn){de&&(vt.current=gn.detail===mt.current)}return[Vt,Wt]}function ot(de,pe,ie,ee){var se=ve.useMemo(function(){return[new Map,[]]},[de,ie.id,ee]),le=(0,ze.Z)(se,2),Be=le[0],We=le[1],st=function(vt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vt,_t=Be.get(vt),Qt=Be.get(St);if(_t===void 0||Qt===void 0)for(var xt=de.length,lt=We.length;lt<xt;lt+=1){var Vt,Wt=de[lt],gn=pe(Wt);Be.set(gn,lt);var an=(Vt=ie.get(gn))!==null&&Vt!==void 0?Vt:ee;if(We[lt]=(We[lt-1]||0)+an,gn===vt&&(_t=lt),gn===St&&(Qt=lt),_t!==void 0&&Qt!==void 0)break}return{top:We[_t-1]||0,bottom:We[Qt]}};return st}var pt=ae(38705),Ct=ae(17212),He=function(){function de(){(0,pt.Z)(this,de),(0,qe.Z)(this,"maps",void 0),(0,qe.Z)(this,"id",0),(0,qe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ct.Z)(de,[{key:"set",value:function(ie,ee){this.diffRecords.set(ie,this.maps[ie]),this.maps[ie]=ee,this.id+=1}},{key:"get",value:function(ie){return this.maps[ie]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),de}(),ht=He;function _e(de){var pe=parseFloat(de);return isNaN(pe)?0:pe}function Re(de,pe,ie){var ee=ve.useState(0),se=(0,ze.Z)(ee,2),le=se[0],Be=se[1],We=(0,ve.useRef)(new Map),st=(0,ve.useRef)(new ht),mt=(0,ve.useRef)(0);function vt(){mt.current+=1}function St(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;vt();var xt=function(){var Wt=!1;We.current.forEach(function(gn,an){if(gn&&gn.offsetParent){var en=gn.offsetHeight,zn=getComputedStyle(gn),Fn=zn.marginTop,Rt=zn.marginBottom,sn=_e(Fn),_n=_e(Rt),Wn=en+sn+_n;st.current.get(an)!==Wn&&(st.current.set(an,Wn),Wt=!0)}}),Wt&&Be(function(gn){return gn+1})};if(Qt)xt();else{mt.current+=1;var lt=mt.current;Promise.resolve().then(function(){lt===mt.current&&xt()})}}function _t(Qt,xt){var lt=de(Qt),Vt=We.current.get(lt);xt?(We.current.set(lt,xt),St()):We.current.delete(lt),!Vt!=!xt&&(xt?pe==null||pe(Qt):ie==null||ie(Qt))}return(0,ve.useEffect)(function(){return vt},[]),[_t,St,st.current,le]}var Ot=14/15;function it(de,pe,ie){var ee=(0,ve.useRef)(!1),se=(0,ve.useRef)(0),le=(0,ve.useRef)(0),Be=(0,ve.useRef)(null),We=(0,ve.useRef)(null),st,mt=function(Qt){if(ee.current){var xt=Math.ceil(Qt.touches[0].pageX),lt=Math.ceil(Qt.touches[0].pageY),Vt=se.current-xt,Wt=le.current-lt,gn=Math.abs(Vt)>Math.abs(Wt);gn?se.current=xt:le.current=lt;var an=ie(gn,gn?Vt:Wt,!1,Qt);an&&Qt.preventDefault(),clearInterval(We.current),an&&(We.current=setInterval(function(){gn?Vt*=Ot:Wt*=Ot;var en=Math.floor(gn?Vt:Wt);(!ie(gn,en,!0)||Math.abs(en)<=.1)&&clearInterval(We.current)},16))}},vt=function(){ee.current=!1,st()},St=function(Qt){st(),Qt.touches.length===1&&!ee.current&&(ee.current=!0,se.current=Math.ceil(Qt.touches[0].pageX),le.current=Math.ceil(Qt.touches[0].pageY),Be.current=Qt.target,Be.current.addEventListener("touchmove",mt,{passive:!1}),Be.current.addEventListener("touchend",vt,{passive:!0}))};st=function(){Be.current&&(Be.current.removeEventListener("touchmove",mt),Be.current.removeEventListener("touchend",vt))},(0,Oe.Z)(function(){return de&&pe.current.addEventListener("touchstart",St,{passive:!0}),function(){var _t;(_t=pe.current)===null||_t===void 0||_t.removeEventListener("touchstart",St),st(),clearInterval(We.current)}},[de])}function at(de){return Math.floor(Math.pow(de,.5))}function Et(de,pe){var ie="touches"in de?de.touches[0]:de;return ie[pe?"pageX":"pageY"]-window[pe?"scrollX":"scrollY"]}function Ze(de,pe,ie){ve.useEffect(function(){var ee=pe.current;if(de&&ee){var se=!1,le,Be,We=function(){Qe.Z.cancel(le)},st=function _t(){We(),le=(0,Qe.Z)(function(){ie(Be),_t()})},mt=function(){se=!1,We()},vt=function(Qt){if(!(Qt.target.draggable||Qt.button!==0)){var xt=Qt;xt._virtualHandled||(xt._virtualHandled=!0,se=!0)}},St=function(Qt){if(se){var xt=Et(Qt,!1),lt=ee.getBoundingClientRect(),Vt=lt.top,Wt=lt.bottom;if(xt<=Vt){var gn=Vt-xt;Be=-at(gn),st()}else if(xt>=Wt){var an=xt-Wt;Be=at(an),st()}else We()}};return ee.addEventListener("mousedown",vt),ee.ownerDocument.addEventListener("mouseup",mt),ee.ownerDocument.addEventListener("mousemove",St),ee.ownerDocument.addEventListener("dragend",mt),function(){ee.removeEventListener("mousedown",vt),ee.ownerDocument.removeEventListener("mouseup",mt),ee.ownerDocument.removeEventListener("mousemove",St),ee.ownerDocument.removeEventListener("dragend",mt),We()}}},[de])}var De=10;function ut(de,pe,ie,ee,se,le,Be,We){var st=ve.useRef(),mt=ve.useState(null),vt=(0,ze.Z)(mt,2),St=vt[0],_t=vt[1];return(0,Oe.Z)(function(){if(St&&St.times<De){if(!de.current){_t(function(Ar){return(0,Le.Z)({},Ar)});return}le();var Qt=St.targetAlign,xt=St.originAlign,lt=St.index,Vt=St.offset,Wt=de.current.clientHeight,gn=!1,an=Qt,en=null;if(Wt){for(var zn=Qt||xt,Fn=0,Rt=0,sn=0,_n=Math.min(pe.length-1,lt),Wn=0;Wn<=_n;Wn+=1){var Lt=se(pe[Wn]);Rt=Fn;var Gt=ie.get(Lt);sn=Rt+(Gt===void 0?ee:Gt),Fn=sn}for(var nn=zn==="top"?Vt:Wt-Vt,wn=_n;wn>=0;wn-=1){var Gn=se(pe[wn]),Er=ie.get(Gn);if(Er===void 0){gn=!0;break}if(nn-=Er,nn<=0)break}switch(zn){case"top":en=Rt-Vt;break;case"bottom":en=sn-Wt+Vt;break;default:{var ti=de.current.scrollTop,oi=ti+Wt;Rt<ti?an="top":sn>oi&&(an="bottom")}}en!==null&&Be(en),en!==St.lastTop&&(gn=!0)}gn&&_t((0,Le.Z)((0,Le.Z)({},St),{},{times:St.times+1,targetAlign:an,lastTop:en}))}},[St,de.current]),function(Qt){if(Qt==null){We();return}if(Qe.Z.cancel(st.current),typeof Qt=="number")Be(Qt);else if(Qt&&(0,dt.Z)(Qt)==="object"){var xt,lt=Qt.align;"index"in Qt?xt=Qt.index:xt=pe.findIndex(function(gn){return se(gn)===Qt.key});var Vt=Qt.offset,Wt=Vt===void 0?0:Vt;_t({times:0,index:xt,offset:Wt,originAlign:lt})}}}var Zt=ve.forwardRef(function(de,pe){var ie=de.prefixCls,ee=de.rtl,se=de.scrollOffset,le=de.scrollRange,Be=de.onStartMove,We=de.onStopMove,st=de.onScroll,mt=de.horizontal,vt=de.spinSize,St=de.containerSize,_t=de.style,Qt=de.thumbStyle,xt=de.showScrollBar,lt=ve.useState(!1),Vt=(0,ze.Z)(lt,2),Wt=Vt[0],gn=Vt[1],an=ve.useState(null),en=(0,ze.Z)(an,2),zn=en[0],Fn=en[1],Rt=ve.useState(null),sn=(0,ze.Z)(Rt,2),_n=sn[0],Wn=sn[1],Lt=!ee,Gt=ve.useRef(),nn=ve.useRef(),wn=ve.useState(xt),Gn=(0,ze.Z)(wn,2),Er=Gn[0],ti=Gn[1],oi=ve.useRef(),Ar=function(){xt===!0||xt===!1||(clearTimeout(oi.current),ti(!0),oi.current=setTimeout(function(){ti(!1)},3e3))},Ir=le-St||0,jn=St-vt||0,Hn=ve.useMemo(function(){if(se===0||Ir===0)return 0;var fi=se/Ir;return fi*jn},[se,Ir,jn]),Jn=function(Ti){Ti.stopPropagation(),Ti.preventDefault()},lr=ve.useRef({top:Hn,dragging:Wt,pageY:zn,startTop:_n});lr.current={top:Hn,dragging:Wt,pageY:zn,startTop:_n};var $n=function(Ti){gn(!0),Fn(Et(Ti,mt)),Wn(lr.current.top),Be(),Ti.stopPropagation(),Ti.preventDefault()};ve.useEffect(function(){var fi=function(Xi){Xi.preventDefault()},Ti=Gt.current,xi=nn.current;return Ti.addEventListener("touchstart",fi,{passive:!1}),xi.addEventListener("touchstart",$n,{passive:!1}),function(){Ti.removeEventListener("touchstart",fi),xi.removeEventListener("touchstart",$n)}},[]);var br=ve.useRef();br.current=Ir;var Br=ve.useRef();Br.current=jn,ve.useEffect(function(){if(Wt){var fi,Ti=function(Xi){var ur=lr.current,Tr=ur.dragging,gi=ur.pageY,ni=ur.startTop;Qe.Z.cancel(fi);var gt=Gt.current.getBoundingClientRect(),vn=St/(mt?gt.width:gt.height);if(Tr){var Ut=(Et(Xi,mt)-gi)*vn,dn=ni;!Lt&&mt?dn-=Ut:dn+=Ut;var $t=br.current,hn=Br.current,Nn=hn?dn/hn:0,Hr=Math.ceil(Nn*$t);Hr=Math.max(Hr,0),Hr=Math.min(Hr,$t),fi=(0,Qe.Z)(function(){st(Hr,mt)})}},xi=function(){gn(!1),We()};return window.addEventListener("mousemove",Ti,{passive:!0}),window.addEventListener("touchmove",Ti,{passive:!0}),window.addEventListener("mouseup",xi,{passive:!0}),window.addEventListener("touchend",xi,{passive:!0}),function(){window.removeEventListener("mousemove",Ti),window.removeEventListener("touchmove",Ti),window.removeEventListener("mouseup",xi),window.removeEventListener("touchend",xi),Qe.Z.cancel(fi)}}},[Wt]),ve.useEffect(function(){return Ar(),function(){clearTimeout(oi.current)}},[se]),ve.useImperativeHandle(pe,function(){return{delayHidden:Ar}});var _r="".concat(ie,"-scrollbar"),mi={position:"absolute",visibility:Er?null:"hidden"},di={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return mt?(Object.assign(mi,{height:8,left:0,right:0,bottom:0}),Object.assign(di,(0,qe.Z)({height:"100%",width:vt},Lt?"left":"right",Hn))):(Object.assign(mi,(0,qe.Z)({width:8,top:0,bottom:0},Lt?"right":"left",0)),Object.assign(di,{width:"100%",height:vt,top:Hn})),ve.createElement("div",{ref:Gt,className:he()(_r,(0,qe.Z)((0,qe.Z)((0,qe.Z)({},"".concat(_r,"-horizontal"),mt),"".concat(_r,"-vertical"),!mt),"".concat(_r,"-visible"),Er)),style:(0,Le.Z)((0,Le.Z)({},mi),_t),onMouseDown:Jn,onMouseMove:Ar},ve.createElement("div",{ref:nn,className:he()("".concat(_r,"-thumb"),(0,qe.Z)({},"".concat(_r,"-thumb-moving"),Wt)),style:(0,Le.Z)((0,Le.Z)({},di),Qt),onMouseDown:$n}))}),Kt=Zt,tt=20;function Dt(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ie=de/pe*de;return isNaN(ie)&&(ie=0),ie=Math.max(ie,tt),Math.floor(ie)}var jt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],An=[],kt={overflowY:"auto",overflowAnchor:"none"};function pn(de,pe){var ie=de.prefixCls,ee=ie===void 0?"rc-virtual-list":ie,se=de.className,le=de.height,Be=de.itemHeight,We=de.fullHeight,st=We===void 0?!0:We,mt=de.style,vt=de.data,St=de.children,_t=de.itemKey,Qt=de.virtual,xt=de.direction,lt=de.scrollWidth,Vt=de.component,Wt=Vt===void 0?"div":Vt,gn=de.onScroll,an=de.onVirtualScroll,en=de.onVisibleChange,zn=de.innerProps,Fn=de.extraRender,Rt=de.styles,sn=de.showScrollBar,_n=sn===void 0?"optional":sn,Wn=(0,Ie.Z)(de,jt),Lt=ve.useCallback(function(Ur){return typeof _t=="function"?_t(Ur):Ur==null?void 0:Ur[_t]},[_t]),Gt=Re(Lt,null,null),nn=(0,ze.Z)(Gt,4),wn=nn[0],Gn=nn[1],Er=nn[2],ti=nn[3],oi=!!(Qt!==!1&&le&&Be),Ar=ve.useMemo(function(){return Object.values(Er.maps).reduce(function(Ur,Vr){return Ur+Vr},0)},[Er.id,Er.maps]),Ir=oi&&vt&&(Math.max(Be*vt.length,Ar)>le||!!lt),jn=xt==="rtl",Hn=he()(ee,(0,qe.Z)({},"".concat(ee,"-rtl"),jn),se),Jn=vt||An,lr=(0,ve.useRef)(),$n=(0,ve.useRef)(),br=(0,ve.useRef)(),Br=(0,ve.useState)(0),_r=(0,ze.Z)(Br,2),mi=_r[0],di=_r[1],fi=(0,ve.useState)(0),Ti=(0,ze.Z)(fi,2),xi=Ti[0],io=Ti[1],Xi=(0,ve.useState)(!1),ur=(0,ze.Z)(Xi,2),Tr=ur[0],gi=ur[1],ni=function(){gi(!0)},gt=function(){gi(!1)},vn={getKey:Lt};function Ut(Ur){di(function(Vr){var ci;typeof Ur=="function"?ci=Ur(Vr):ci=Ur;var Zr=vi(ci);return lr.current.scrollTop=Zr,Zr})}var dn=(0,ve.useRef)({start:0,end:Jn.length}),$t=(0,ve.useRef)(),hn=Ke(Jn,Lt),Nn=(0,ze.Z)(hn,1),Hr=Nn[0];$t.current=Hr;var zr=ve.useMemo(function(){if(!oi)return{scrollHeight:void 0,start:0,end:Jn.length-1,offset:void 0};if(!Ir){var Ur;return{scrollHeight:((Ur=$n.current)===null||Ur===void 0?void 0:Ur.offsetHeight)||0,start:0,end:Jn.length-1,offset:void 0}}for(var Vr=0,ci,Zr,Qi,eo=Jn.length,Rr=0;Rr<eo;Rr+=1){var ai=Jn[Rr],Fi=Lt(ai),Ri=Er.get(Fi),Mo=Vr+(Ri===void 0?Be:Ri);Mo>=mi&&ci===void 0&&(ci=Rr,Zr=Vr),Mo>mi+le&&Qi===void 0&&(Qi=Rr),Vr=Mo}return ci===void 0&&(ci=0,Zr=0,Qi=Math.ceil(le/Be)),Qi===void 0&&(Qi=Jn.length-1),Qi=Math.min(Qi+1,Jn.length-1),{scrollHeight:Vr,start:ci,end:Qi,offset:Zr}},[Ir,oi,mi,Jn,ti,le]),Ai=zr.scrollHeight,hr=zr.start,nr=zr.end,ir=zr.offset;dn.current.start=hr,dn.current.end=nr,ve.useLayoutEffect(function(){var Ur=Er.getRecord();if(Ur.size===1){var Vr=Array.from(Ur.keys())[0],ci=Ur.get(Vr),Zr=Jn[hr];if(Zr&&ci===void 0){var Qi=Lt(Zr);if(Qi===Vr){var eo=Er.get(Vr),Rr=eo-Be;Ut(function(ai){return ai+Rr})}}}Er.resetRecord()},[Ai]);var Yr=ve.useState({width:0,height:le}),Mi=(0,ze.Z)(Yr,2),Yn=Mi[0],Vn=Mi[1],Mr=function(Vr){Vn({width:Vr.offsetWidth,height:Vr.offsetHeight})},Tn=(0,ve.useRef)(),mn=(0,ve.useRef)(),tr=ve.useMemo(function(){return Dt(Yn.width,lt)},[Yn.width,lt]),or=ve.useMemo(function(){return Dt(Yn.height,Ai)},[Yn.height,Ai]),ar=Ai-le,kr=(0,ve.useRef)(ar);kr.current=ar;function vi(Ur){var Vr=Ur;return Number.isNaN(kr.current)||(Vr=Math.min(Vr,kr.current)),Vr=Math.max(Vr,0),Vr}var qr=mi<=0,Li=mi>=ar,_i=xi<=0,ri=xi>=lt,hi=Ve(qr,Li,_i,ri),ro=function(){return{x:jn?-xi:xi,y:mi}},ki=(0,ve.useRef)(ro()),bi=(0,oe.zX)(function(Ur){if(an){var Vr=(0,Le.Z)((0,Le.Z)({},ro()),Ur);(ki.current.x!==Vr.x||ki.current.y!==Vr.y)&&(an(Vr),ki.current=Vr)}});function Ni(Ur,Vr){var ci=Ur;Vr?((0,Me.flushSync)(function(){io(ci)}),bi()):Ut(ci)}function oo(Ur){var Vr=Ur.currentTarget.scrollTop;Vr!==mi&&Ut(Vr),gn==null||gn(Ur),bi()}var Di=function(Vr){var ci=Vr,Zr=lt?lt-Yn.width:0;return ci=Math.max(ci,0),ci=Math.min(ci,Zr),ci},yo=(0,oe.zX)(function(Ur,Vr){Vr?((0,Me.flushSync)(function(){io(function(ci){var Zr=ci+(jn?-Ur:Ur);return Di(Zr)})}),bi()):Ut(function(ci){var Zr=ci+Ur;return Zr})}),Ji=ct(oi,qr,Li,_i,ri,!!lt,yo),po=(0,ze.Z)(Ji,2),ho=po[0],Jo=po[1];it(oi,lr,function(Ur,Vr,ci,Zr){var Qi=Zr;return hi(Ur,Vr,ci)?!1:!Qi||!Qi._virtualHandled?(Qi&&(Qi._virtualHandled=!0),ho({preventDefault:function(){},deltaX:Ur?Vr:0,deltaY:Ur?0:Vr}),!0):!1}),Ze(Ir,lr,function(Ur){Ut(function(Vr){return Vr+Ur})}),(0,Oe.Z)(function(){function Ur(ci){var Zr=qr&&ci.detail<0,Qi=Li&&ci.detail>0;oi&&!Zr&&!Qi&&ci.preventDefault()}var Vr=lr.current;return Vr.addEventListener("wheel",ho,{passive:!1}),Vr.addEventListener("DOMMouseScroll",Jo,{passive:!0}),Vr.addEventListener("MozMousePixelScroll",Ur,{passive:!1}),function(){Vr.removeEventListener("wheel",ho),Vr.removeEventListener("DOMMouseScroll",Jo),Vr.removeEventListener("MozMousePixelScroll",Ur)}},[oi,qr,Li]),(0,Oe.Z)(function(){if(lt){var Ur=Di(xi);io(Ur),bi({x:Ur})}},[Yn.width,lt]);var xo=function(){var Vr,ci;(Vr=Tn.current)===null||Vr===void 0||Vr.delayHidden(),(ci=mn.current)===null||ci===void 0||ci.delayHidden()},no=ut(lr,Jn,Er,Be,Lt,function(){return Gn(!0)},Ut,xo);ve.useImperativeHandle(pe,function(){return{nativeElement:br.current,getScrollInfo:ro,scrollTo:function(Vr){function ci(Zr){return Zr&&(0,dt.Z)(Zr)==="object"&&("left"in Zr||"top"in Zr)}ci(Vr)?(Vr.left!==void 0&&io(Di(Vr.left)),no(Vr.top)):no(Vr)}}}),(0,Oe.Z)(function(){if(en){var Ur=Jn.slice(hr,nr+1);en(Ur,Jn)}},[hr,nr,Jn]);var Do=ot(Jn,Lt,Er,Be),Zo=Fn==null?void 0:Fn({start:hr,end:nr,virtual:Ir,offsetX:xi,offsetY:ir,rtl:jn,getSize:Do}),jo=Ce(Jn,hr,nr,lt,xi,wn,St,vn),Cn=null;le&&(Cn=(0,Le.Z)((0,qe.Z)({},st?"height":"maxHeight",le),kt),oi&&(Cn.overflowY="hidden",lt&&(Cn.overflowX="hidden"),Tr&&(Cn.pointerEvents="none")));var Vi={};return jn&&(Vi.dir="rtl"),ve.createElement("div",(0,x.Z)({ref:br,style:(0,Le.Z)((0,Le.Z)({},mt),{},{position:"relative"}),className:Hn},Vi,Wn),ve.createElement(xe.Z,{onResize:Mr},ve.createElement(Wt,{className:"".concat(ee,"-holder"),style:Cn,ref:lr,onScroll:oo,onMouseEnter:xo},ve.createElement(Te,{prefixCls:ee,height:Ai,offsetX:xi,offsetY:ir,scrollWidth:lt,onInnerResize:Gn,ref:$n,innerProps:zn,rtl:jn,extra:Zo},jo))),Ir&&Ai>le&&ve.createElement(Kt,{ref:Tn,prefixCls:ee,scrollOffset:mi,scrollRange:Ai,rtl:jn,onScroll:Ni,onStartMove:ni,onStopMove:gt,spinSize:or,containerSize:Yn.height,style:Rt==null?void 0:Rt.verticalScrollBar,thumbStyle:Rt==null?void 0:Rt.verticalScrollBarThumb,showScrollBar:_n}),Ir&<>Yn.width&&ve.createElement(Kt,{ref:mn,prefixCls:ee,scrollOffset:xi,scrollRange:lt,rtl:jn,onScroll:Ni,onStartMove:ni,onStopMove:gt,spinSize:tr,containerSize:Yn.width,horizontal:!0,style:Rt==null?void 0:Rt.horizontalScrollBar,thumbStyle:Rt==null?void 0:Rt.horizontalScrollBarThumb,showScrollBar:_n}))}var Pt=ve.forwardRef(pn);Pt.displayName="List";var En=Pt,on=En},51353:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Object.defineProperty(Mt,"DraggableCore",{enumerable:!0,get:function(){return he.default}}),Mt.default=void 0;var x=Oe(ae(59301)),dt=oe(ae(12708)),Le=oe(ae(4676)),qe=ae(14625),ze=ae(77026),Ie=ae(22013),Ue=ae(80217),he=oe(ae(68555)),xe=oe(ae(97510));function oe(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}function Oe(Ce,Ee){if(typeof WeakMap=="function")var ke=new WeakMap,Ke=new WeakMap;return(Oe=function(Qe,je){if(!je&&Qe&&Qe.__esModule)return Qe;var Je,Ve,ct={__proto__:null,default:Qe};if(Qe===null||typeof Qe!="object"&&typeof Qe!="function")return ct;if(Je=je?Ke:ke){if(Je.has(Qe))return Je.get(Qe);Je.set(Qe,ct)}for(const ot in Qe)ot!=="default"&&{}.hasOwnProperty.call(Qe,ot)&&((Ve=(Je=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Qe,ot))&&(Ve.get||Ve.set)?Je(ct,ot,Ve):ct[ot]=Qe[ot]);return ct})(Ce,Ee)}function ve(){return ve=Object.assign?Object.assign.bind():function(Ce){for(var Ee=1;Ee<arguments.length;Ee++){var ke=arguments[Ee];for(var Ke in ke)({}).hasOwnProperty.call(ke,Ke)&&(Ce[Ke]=ke[Ke])}return Ce},ve.apply(null,arguments)}function Me(Ce,Ee,ke){return(Ee=Se(Ee))in Ce?Object.defineProperty(Ce,Ee,{value:ke,enumerable:!0,configurable:!0,writable:!0}):Ce[Ee]=ke,Ce}function Se(Ce){var Ee=Te(Ce,"string");return typeof Ee=="symbol"?Ee:Ee+""}function Te(Ce,Ee){if(typeof Ce!="object"||!Ce)return Ce;var ke=Ce[Symbol.toPrimitive];if(ke!==void 0){var Ke=ke.call(Ce,Ee||"default");if(typeof Ke!="object")return Ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(Ce)}class we extends x.Component{static getDerivedStateFromProps(Ee,ke){let{position:Ke}=Ee,{prevPropsPosition:Qe}=ke;return Ke&&(!Qe||Ke.x!==Qe.x||Ke.y!==Qe.y)?((0,xe.default)("Draggable: getDerivedStateFromProps %j",{position:Ke,prevPropsPosition:Qe}),{x:Ke.x,y:Ke.y,prevPropsPosition:wf({},Ke)}):null}constructor(Ee){super(Ee),Me(this,"onDragStart",(ke,Ke)=>{if((0,xe.default)("Draggable: onDragStart: %j",Ke),this.props.onStart(ke,(0,Ie.createDraggableData)(this,Ke))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Me(this,"onDrag",(ke,Ke)=>{if(!this.state.dragging)return!1;(0,xe.default)("Draggable: onDrag: %j",Ke);const Qe=(0,Ie.createDraggableData)(this,Ke),je={x:Qe.x,y:Qe.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Ve,y:ct}=je;je.x+=this.state.slackX,je.y+=this.state.slackY;const[ot,pt]=(0,Ie.getBoundPosition)(this,je.x,je.y);je.x=ot,je.y=pt,je.slackX=this.state.slackX+(Ve-je.x),je.slackY=this.state.slackY+(ct-je.y),Qe.x=je.x,Qe.y=je.y,Qe.deltaX=je.x-this.state.x,Qe.deltaY=je.y-this.state.y}if(this.props.onDrag(ke,Qe)===!1)return!1;this.setState(je)}),Me(this,"onDragStop",(ke,Ke)=>{if(!this.state.dragging||this.props.onStop(ke,(0,Ie.createDraggableData)(this,Ke))===!1)return!1;(0,xe.default)("Draggable: onDragStop: %j",Ke);const je={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Ve,y:ct}=this.props.position;je.x=Ve,je.y=ct}this.setState(je)}),this.state={dragging:!1,dragged:!1,x:Ee.position?Ee.position.x:Ee.defaultPosition.x,y:Ee.position?Ee.position.y:Ee.defaultPosition.y,prevPropsPosition:wf({},Ee.position),slackX:0,slackY:0,isElementSVG:!1},Ee.position&&!(Ee.onDrag||Ee.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var Ee,ke,Ke;return(Ke=(ke=(Ee=this.props)==null?void 0:Ee.nodeRef)==null?void 0:ke.current)!=null?Ke:Le.default.findDOMNode(this)}render(){const Et=this.props,{axis:Ee,bounds:ke,children:Ke,defaultPosition:Qe,defaultClassName:je,defaultClassNameDragging:Je,defaultClassNameDragged:Ve,position:ct,positionOffset:ot,scale:pt}=Et,Ct=Nv(Et,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let He={},ht=null;const Re=!!!ct||this.state.dragging,Ot=ct||Qe,it={x:(0,Ie.canDragX)(this)&&Re?this.state.x:Ot.x,y:(0,Ie.canDragY)(this)&&Re?this.state.y:Ot.y};this.state.isElementSVG?ht=(0,ze.createSVGTransform)(it,ot):He=(0,ze.createCSSTransform)(it,ot);const at=(0,qe.clsx)(Ke.props.className||"",je,{[Je]:this.state.dragging,[Ve]:this.state.dragged});return x.createElement(he.default,ve({},Ct,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),x.cloneElement(x.Children.only(Ke),{className:at,style:wf(wf({},Ke.props.style),He),transform:ht}))}}Mt.default=we,Me(we,"displayName","Draggable"),Me(we,"propTypes",F0(wf({},he.default.propTypes),{axis:dt.default.oneOf(["both","x","y","none"]),bounds:dt.default.oneOfType([dt.default.shape({left:dt.default.number,right:dt.default.number,top:dt.default.number,bottom:dt.default.number}),dt.default.string,dt.default.oneOf([!1])]),defaultClassName:dt.default.string,defaultClassNameDragging:dt.default.string,defaultClassNameDragged:dt.default.string,defaultPosition:dt.default.shape({x:dt.default.number,y:dt.default.number}),positionOffset:dt.default.shape({x:dt.default.oneOfType([dt.default.number,dt.default.string]),y:dt.default.oneOfType([dt.default.number,dt.default.string])}),position:dt.default.shape({x:dt.default.number,y:dt.default.number}),className:Ue.dontSetMe,style:Ue.dontSetMe,transform:Ue.dontSetMe})),Me(we,"defaultProps",F0(wf({},he.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},68555:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=void 0;var x=xe(ae(59301)),dt=he(ae(12708)),Le=he(ae(4676)),qe=ae(77026),ze=ae(22013),Ie=ae(80217),Ue=he(ae(97510));function he(we){return we&&we.__esModule?we:{default:we}}function xe(we,Ce){if(typeof WeakMap=="function")var Ee=new WeakMap,ke=new WeakMap;return(xe=function(Ke,Qe){if(!Qe&&Ke&&Ke.__esModule)return Ke;var je,Je,Ve={__proto__:null,default:Ke};if(Ke===null||typeof Ke!="object"&&typeof Ke!="function")return Ve;if(je=Qe?ke:Ee){if(je.has(Ke))return je.get(Ke);je.set(Ke,Ve)}for(const ct in Ke)ct!=="default"&&{}.hasOwnProperty.call(Ke,ct)&&((Je=(je=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Ke,ct))&&(Je.get||Je.set)?je(Ve,ct,Je):Ve[ct]=Ke[ct]);return Ve})(we,Ce)}function oe(we,Ce,Ee){return(Ce=Oe(Ce))in we?Object.defineProperty(we,Ce,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):we[Ce]=Ee,we}function Oe(we){var Ce=ve(we,"string");return typeof Ce=="symbol"?Ce:Ce+""}function ve(we,Ce){if(typeof we!="object"||!we)return we;var Ee=we[Symbol.toPrimitive];if(Ee!==void 0){var ke=Ee.call(we,Ce||"default");if(typeof ke!="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ce==="string"?String:Number)(we)}const Me={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let Se=Me.mouse;class Te extends x.Component{constructor(){super(...arguments),oe(this,"dragging",!1),oe(this,"lastX",NaN),oe(this,"lastY",NaN),oe(this,"touchIdentifier",null),oe(this,"mounted",!1),oe(this,"handleDragStart",Ce=>{if(this.props.onMouseDown(Ce),!this.props.allowAnyClick&&typeof Ce.button=="number"&&Ce.button!==0)return!1;const Ee=this.findDOMNode();if(!Ee||!Ee.ownerDocument||!Ee.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:ke}=Ee;if(this.props.disabled||!(Ce.target instanceof ke.defaultView.Node)||this.props.handle&&!(0,qe.matchesSelectorAndParentsTo)(Ce.target,this.props.handle,Ee)||this.props.cancel&&(0,qe.matchesSelectorAndParentsTo)(Ce.target,this.props.cancel,Ee))return;Ce.type==="touchstart"&&!this.props.allowMobileScroll&&Ce.preventDefault();const Ke=(0,qe.getTouchIdentifier)(Ce);this.touchIdentifier=Ke;const Qe=(0,ze.getControlPosition)(Ce,Ke,this);if(Qe==null)return;const{x:je,y:Je}=Qe,Ve=(0,ze.createCoreData)(this,je,Je);(0,Ue.default)("DraggableCore: handleDragStart: %j",Ve),(0,Ue.default)("calling",this.props.onStart),!(this.props.onStart(Ce,Ve)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,qe.addUserSelectStyles)(ke),this.dragging=!0,this.lastX=je,this.lastY=Je,(0,qe.addEvent)(ke,Se.move,this.handleDrag),(0,qe.addEvent)(ke,Se.stop,this.handleDragStop))}),oe(this,"handleDrag",Ce=>{const Ee=(0,ze.getControlPosition)(Ce,this.touchIdentifier,this);if(Ee==null)return;let{x:ke,y:Ke}=Ee;if(Array.isArray(this.props.grid)){let Je=ke-this.lastX,Ve=Ke-this.lastY;if([Je,Ve]=(0,ze.snapToGrid)(this.props.grid,Je,Ve),!Je&&!Ve)return;ke=this.lastX+Je,Ke=this.lastY+Ve}const Qe=(0,ze.createCoreData)(this,ke,Ke);if((0,Ue.default)("DraggableCore: handleDrag: %j",Qe),this.props.onDrag(Ce,Qe)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Je){const Ve=document.createEvent("MouseEvents");Ve.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(Ve)}return}this.lastX=ke,this.lastY=Ke}),oe(this,"handleDragStop",Ce=>{if(!this.dragging)return;const Ee=(0,ze.getControlPosition)(Ce,this.touchIdentifier,this);if(Ee==null)return;let{x:ke,y:Ke}=Ee;if(Array.isArray(this.props.grid)){let Ve=ke-this.lastX||0,ct=Ke-this.lastY||0;[Ve,ct]=(0,ze.snapToGrid)(this.props.grid,Ve,ct),ke=this.lastX+Ve,Ke=this.lastY+ct}const Qe=(0,ze.createCoreData)(this,ke,Ke);if(this.props.onStop(Ce,Qe)===!1||this.mounted===!1)return!1;const Je=this.findDOMNode();Je&&this.props.enableUserSelectHack&&(0,qe.scheduleRemoveUserSelectStyles)(Je.ownerDocument),(0,Ue.default)("DraggableCore: handleDragStop: %j",Qe),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Je&&((0,Ue.default)("DraggableCore: Removing handlers"),(0,qe.removeEvent)(Je.ownerDocument,Se.move,this.handleDrag),(0,qe.removeEvent)(Je.ownerDocument,Se.stop,this.handleDragStop))}),oe(this,"onMouseDown",Ce=>(Se=Me.mouse,this.handleDragStart(Ce))),oe(this,"onMouseUp",Ce=>(Se=Me.mouse,this.handleDragStop(Ce))),oe(this,"onTouchStart",Ce=>(Se=Me.touch,this.handleDragStart(Ce))),oe(this,"onTouchEnd",Ce=>(Se=Me.touch,this.handleDragStop(Ce)))}componentDidMount(){this.mounted=!0;const Ce=this.findDOMNode();Ce&&(0,qe.addEvent)(Ce,Me.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const Ce=this.findDOMNode();if(Ce){const{ownerDocument:Ee}=Ce;(0,qe.removeEvent)(Ee,Me.mouse.move,this.handleDrag),(0,qe.removeEvent)(Ee,Me.touch.move,this.handleDrag),(0,qe.removeEvent)(Ee,Me.mouse.stop,this.handleDragStop),(0,qe.removeEvent)(Ee,Me.touch.stop,this.handleDragStop),(0,qe.removeEvent)(Ce,Me.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,qe.scheduleRemoveUserSelectStyles)(Ee)}}findDOMNode(){var Ce,Ee,ke;return(Ce=this.props)!=null&&Ce.nodeRef?(ke=(Ee=this.props)==null?void 0:Ee.nodeRef)==null?void 0:ke.current:Le.default.findDOMNode(this)}render(){return x.cloneElement(x.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Mt.default=Te,oe(Te,"displayName","DraggableCore"),oe(Te,"propTypes",{allowAnyClick:dt.default.bool,allowMobileScroll:dt.default.bool,children:dt.default.node.isRequired,disabled:dt.default.bool,enableUserSelectHack:dt.default.bool,offsetParent:function(we,Ce){if(we[Ce]&&we[Ce].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:dt.default.arrayOf(dt.default.number),handle:dt.default.string,cancel:dt.default.string,nodeRef:dt.default.object,onStart:dt.default.func,onDrag:dt.default.func,onStop:dt.default.func,onMouseDown:dt.default.func,scale:dt.default.number,className:Ie.dontSetMe,style:Ie.dontSetMe,transform:Ie.dontSetMe}),oe(Te,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(qn,Mt,ae){"use strict";const{default:x,DraggableCore:dt}=ae(51353);qn.exports=x,qn.exports.default=x,qn.exports.DraggableCore=dt},77026:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.addClassName=je,Mt.addEvent=Ue,Mt.addUserSelectStyles=ke,Mt.createCSSTransform=Se,Mt.createSVGTransform=Te,Mt.getTouch=Ce,Mt.getTouchIdentifier=Ee,Mt.getTranslation=we,Mt.innerHeight=Oe,Mt.innerWidth=ve,Mt.matchesSelector=ze,Mt.matchesSelectorAndParentsTo=Ie,Mt.offsetXYFromParent=Me,Mt.outerHeight=xe,Mt.outerWidth=oe,Mt.removeClassName=Je,Mt.removeEvent=he,Mt.scheduleRemoveUserSelectStyles=Ke;var x=ae(80217),dt=Le(ae(76172));function Le(Ve,ct){if(typeof WeakMap=="function")var ot=new WeakMap,pt=new WeakMap;return(Le=function(Ct,He){if(!He&&Ct&&Ct.__esModule)return Ct;var ht,_e,Re={__proto__:null,default:Ct};if(Ct===null||typeof Ct!="object"&&typeof Ct!="function")return Re;if(ht=He?pt:ot){if(ht.has(Ct))return ht.get(Ct);ht.set(Ct,Re)}for(const Ot in Ct)Ot!=="default"&&{}.hasOwnProperty.call(Ct,Ot)&&((_e=(ht=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Ct,Ot))&&(_e.get||_e.set)?ht(Re,Ot,_e):Re[Ot]=Ct[Ot]);return Re})(Ve,ct)}let qe="";function ze(Ve,ct){return qe||(qe=(0,x.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(ot){return(0,x.isFunction)(Ve[ot])})),(0,x.isFunction)(Ve[qe])?Ve[qe](ct):!1}function Ie(Ve,ct,ot){let pt=Ve;do{if(ze(pt,ct))return!0;if(pt===ot)return!1;pt=pt.parentNode}while(pt);return!1}function Ue(Ve,ct,ot,pt){if(!Ve)return;const Ct=wf({capture:!0},pt);Ve.addEventListener?Ve.addEventListener(ct,ot,Ct):Ve.attachEvent?Ve.attachEvent("on"+ct,ot):Ve["on"+ct]=ot}function he(Ve,ct,ot,pt){if(!Ve)return;const Ct=wf({capture:!0},pt);Ve.removeEventListener?Ve.removeEventListener(ct,ot,Ct):Ve.detachEvent?Ve.detachEvent("on"+ct,ot):Ve["on"+ct]=null}function xe(Ve){let ct=Ve.clientHeight;const ot=Ve.ownerDocument.defaultView.getComputedStyle(Ve);return ct+=(0,x.int)(ot.borderTopWidth),ct+=(0,x.int)(ot.borderBottomWidth),ct}function oe(Ve){let ct=Ve.clientWidth;const ot=Ve.ownerDocument.defaultView.getComputedStyle(Ve);return ct+=(0,x.int)(ot.borderLeftWidth),ct+=(0,x.int)(ot.borderRightWidth),ct}function Oe(Ve){let ct=Ve.clientHeight;const ot=Ve.ownerDocument.defaultView.getComputedStyle(Ve);return ct-=(0,x.int)(ot.paddingTop),ct-=(0,x.int)(ot.paddingBottom),ct}function ve(Ve){let ct=Ve.clientWidth;const ot=Ve.ownerDocument.defaultView.getComputedStyle(Ve);return ct-=(0,x.int)(ot.paddingLeft),ct-=(0,x.int)(ot.paddingRight),ct}function Me(Ve,ct,ot){const Ct=ct===ct.ownerDocument.body?{left:0,top:0}:ct.getBoundingClientRect(),He=(Ve.clientX+ct.scrollLeft-Ct.left)/ot,ht=(Ve.clientY+ct.scrollTop-Ct.top)/ot;return{x:He,y:ht}}function Se(Ve,ct){const ot=we(Ve,ct,"px");return{[(0,dt.browserPrefixToKey)("transform",dt.default)]:ot}}function Te(Ve,ct){return we(Ve,ct,"")}function we(Ve,ct,ot){let{x:pt,y:Ct}=Ve,He=`translate(${pt}${ot},${Ct}${ot})`;if(ct){const ht=`${typeof ct.x=="string"?ct.x:ct.x+ot}`,_e=`${typeof ct.y=="string"?ct.y:ct.y+ot}`;He=`translate(${ht}, ${_e})`+He}return He}function Ce(Ve,ct){return Ve.targetTouches&&(0,x.findInArray)(Ve.targetTouches,ot=>ct===ot.identifier)||Ve.changedTouches&&(0,x.findInArray)(Ve.changedTouches,ot=>ct===ot.identifier)}function Ee(Ve){if(Ve.targetTouches&&Ve.targetTouches[0])return Ve.targetTouches[0].identifier;if(Ve.changedTouches&&Ve.changedTouches[0])return Ve.changedTouches[0].identifier}function ke(Ve){if(!Ve)return;let ct=Ve.getElementById("react-draggable-style-el");ct||(ct=Ve.createElement("style"),ct.type="text/css",ct.id="react-draggable-style-el",ct.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
|
`,ct.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
|
`,Ve.getElementsByTagName("head")[0].appendChild(ct)),Ve.body&&je(Ve.body,"react-draggable-transparent-selection")}function Ke(Ve){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Qe(Ve)}):Qe(Ve)}function Qe(Ve){if(Ve)try{if(Ve.body&&Je(Ve.body,"react-draggable-transparent-selection"),Ve.selection)Ve.selection.empty();else{const ct=(Ve.defaultView||window).getSelection();ct&&ct.type!=="Caret"&&ct.removeAllRanges()}}catch(ct){}}function je(Ve,ct){Ve.classList?Ve.classList.add(ct):Ve.className.match(new RegExp(`(?:^|\\s)${ct}(?!\\S)`))||(Ve.className+=` ${ct}`)}function Je(Ve,ct){Ve.classList?Ve.classList.remove(ct):Ve.className=Ve.className.replace(new RegExp(`(?:^|\\s)${ct}(?!\\S)`,"g"),"")}},76172:function(qn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.browserPrefixToKey=dt,Mt.browserPrefixToStyle=Le,Mt.default=void 0,Mt.getPrefix=x;const ae=["Moz","Webkit","O","ms"];function x(){var he,xe;let Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const Ue=(xe=(he=window.document)==null?void 0:he.documentElement)==null?void 0:xe.style;if(!Ue||Ie in Ue)return"";for(let oe=0;oe<ae.length;oe++)if(dt(Ie,ae[oe])in Ue)return ae[oe];return""}function dt(Ie,Ue){return Ue?`${Ue}${qe(Ie)}`:Ie}function Le(Ie,Ue){return Ue?`-${Ue.toLowerCase()}-${Ie}`:Ie}function qe(Ie){let Ue="",he=!0;for(let xe=0;xe<Ie.length;xe++)he?(Ue+=Ie[xe].toUpperCase(),he=!1):Ie[xe]==="-"?he=!0:Ue+=Ie[xe];return Ue}var ze=Mt.default=x()},97510:function(qn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=ae;function ae(){}},22013:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.canDragX=ze,Mt.canDragY=Ie,Mt.createCoreData=he,Mt.createDraggableData=xe,Mt.getBoundPosition=Le,Mt.getControlPosition=Ue,Mt.snapToGrid=qe;var x=ae(80217),dt=ae(77026);function Le(ve,Me,Se){if(!ve.props.bounds)return[Me,Se];let{bounds:Te}=ve.props;Te=typeof Te=="string"?Te:oe(Te);const we=Oe(ve);if(typeof Te=="string"){const{ownerDocument:Ce}=we,Ee=Ce.defaultView;let ke;if(Te==="parent"?ke=we.parentNode:ke=we.getRootNode().querySelector(Te),!(ke instanceof Ee.HTMLElement))throw new Error('Bounds selector "'+Te+'" could not find an element.');const Ke=ke,Qe=Ee.getComputedStyle(we),je=Ee.getComputedStyle(Ke);Te={left:-we.offsetLeft+(0,x.int)(je.paddingLeft)+(0,x.int)(Qe.marginLeft),top:-we.offsetTop+(0,x.int)(je.paddingTop)+(0,x.int)(Qe.marginTop),right:(0,dt.innerWidth)(Ke)-(0,dt.outerWidth)(we)-we.offsetLeft+(0,x.int)(je.paddingRight)-(0,x.int)(Qe.marginRight),bottom:(0,dt.innerHeight)(Ke)-(0,dt.outerHeight)(we)-we.offsetTop+(0,x.int)(je.paddingBottom)-(0,x.int)(Qe.marginBottom)}}return(0,x.isNum)(Te.right)&&(Me=Math.min(Me,Te.right)),(0,x.isNum)(Te.bottom)&&(Se=Math.min(Se,Te.bottom)),(0,x.isNum)(Te.left)&&(Me=Math.max(Me,Te.left)),(0,x.isNum)(Te.top)&&(Se=Math.max(Se,Te.top)),[Me,Se]}function qe(ve,Me,Se){const Te=Math.round(Me/ve[0])*ve[0],we=Math.round(Se/ve[1])*ve[1];return[Te,we]}function ze(ve){return ve.props.axis==="both"||ve.props.axis==="x"}function Ie(ve){return ve.props.axis==="both"||ve.props.axis==="y"}function Ue(ve,Me,Se){const Te=typeof Me=="number"?(0,dt.getTouch)(ve,Me):null;if(typeof Me=="number"&&!Te)return null;const we=Oe(Se),Ce=Se.props.offsetParent||we.offsetParent||we.ownerDocument.body;return(0,dt.offsetXYFromParent)(Te||ve,Ce,Se.props.scale)}function he(ve,Me,Se){const Te=!(0,x.isNum)(ve.lastX),we=Oe(ve);return Te?{node:we,deltaX:0,deltaY:0,lastX:Me,lastY:Se,x:Me,y:Se}:{node:we,deltaX:Me-ve.lastX,deltaY:Se-ve.lastY,lastX:ve.lastX,lastY:ve.lastY,x:Me,y:Se}}function xe(ve,Me){const Se=ve.props.scale;return{node:Me.node,x:ve.state.x+Me.deltaX/Se,y:ve.state.y+Me.deltaY/Se,deltaX:Me.deltaX/Se,deltaY:Me.deltaY/Se,lastX:ve.state.x,lastY:ve.state.y}}function oe(ve){return{left:ve.left,top:ve.top,right:ve.right,bottom:ve.bottom}}function Oe(ve){const Me=ve.findDOMNode();if(!Me)throw new Error("<DraggableCore>: Unmounted during event!");return Me}},80217:function(qn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.dontSetMe=qe,Mt.findInArray=ae,Mt.int=Le,Mt.isFunction=x,Mt.isNum=dt;function ae(ze,Ie){for(let Ue=0,he=ze.length;Ue<he;Ue++)if(Ie.apply(Ie,[ze[Ue],Ue,ze]))return ze[Ue]}function x(ze){return typeof ze=="function"||Object.prototype.toString.call(ze)==="[object Function]"}function dt(ze){return typeof ze=="number"&&!isNaN(ze)}function Le(ze){return parseInt(ze,10)}function qe(ze,Ie,Ue){if(ze[Ie])return new Error(`Invalid prop ${Ie} passed to ${Ue} - do not set this, set it on the child.`)}},62752:function(qn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.SizeSensorId=Mt.SensorTabIndex=Mt.SensorClassName=void 0;var ae=Mt.SizeSensorId="size-sensor-id",x=Mt.SensorClassName="size-sensor-object",dt=Mt.SensorTabIndex="-1"},25224:function(qn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=void 0;var ae=Mt.default=function(dt){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,qe=null;return function(){for(var ze=this,Ie=arguments.length,Ue=new Array(Ie),he=0;he<Ie;he++)Ue[he]=arguments[he];clearTimeout(qe),qe=setTimeout(function(){dt.apply(ze,Ue)},Le)}}},82196:function(qn,Mt){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=void 0;var ae=1,x=Mt.default=function(){return"".concat(ae++)}},10413:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.ver=Mt.clear=Mt.bind=void 0;var x=ae(2963),dt=Mt.bind=function(Ie,Ue){var he=(0,x.getSensor)(Ie);return he.bind(Ue),function(){he.unbind(Ue)}},Le=Mt.clear=function(Ie){var Ue=(0,x.getSensor)(Ie);(0,x.removeSensor)(Ue)},qe=Mt.ver="1.0.3"},2963:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.removeSensor=Mt.getSensor=Mt.Sensors=void 0;var x=qe(ae(82196)),dt=ae(42065),Le=ae(62752);function qe(xe){return xe&&xe.__esModule?xe:{default:xe}}var ze=Mt.Sensors={};function Ie(xe){xe&&ze[xe]&&delete ze[xe]}var Ue=Mt.getSensor=function(oe){var Oe=oe.getAttribute(Le.SizeSensorId);if(Oe&&ze[Oe])return ze[Oe];var ve=(0,x.default)();oe.setAttribute(Le.SizeSensorId,ve);var Me=(0,dt.createSensor)(oe,function(){return Ie(ve)});return ze[ve]=Me,Me},he=Mt.removeSensor=function(oe){var Oe=oe.element.getAttribute(Le.SizeSensorId);oe.destroy(),Ie(Oe)}},42065:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.createSensor=void 0;var x=ae(38132),dt=ae(38950),Le=Mt.createSensor=typeof ResizeObserver!="undefined"?dt.createSensor:x.createSensor},38132:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.createSensor=void 0;var x=Le(ae(25224)),dt=ae(62752);function Le(ze){return ze&&ze.__esModule?ze:{default:ze}}var qe=Mt.createSensor=function(Ie,Ue){var he=void 0,xe=[],oe=function(){getComputedStyle(Ie).position==="static"&&(Ie.style.position="relative");var we=document.createElement("object");return we.onload=function(){we.contentDocument.defaultView.addEventListener("resize",Oe),Oe()},we.style.display="block",we.style.position="absolute",we.style.top="0",we.style.left="0",we.style.height="100%",we.style.width="100%",we.style.overflow="hidden",we.style.pointerEvents="none",we.style.zIndex="-1",we.style.opacity="0",we.setAttribute("class",dt.SensorClassName),we.setAttribute("tabindex",dt.SensorTabIndex),we.type="text/html",Ie.appendChild(we),we.data="about:blank",we},Oe=(0,x.default)(function(){xe.forEach(function(Te){Te(Ie)})}),ve=function(we){he||(he=oe()),xe.indexOf(we)===-1&&xe.push(we)},Me=function(){he&&he.parentNode&&(he.contentDocument&&he.contentDocument.defaultView.removeEventListener("resize",Oe),he.parentNode.removeChild(he),Ie.removeAttribute(dt.SizeSensorId),he=void 0,xe=[],Ue&&Ue())},Se=function(we){var Ce=xe.indexOf(we);Ce!==-1&&xe.splice(Ce,1),xe.length===0&&he&&Me()};return{element:Ie,bind:ve,destroy:Me,unbind:Se}}},38950:function(qn,Mt,ae){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.createSensor=void 0;var x=ae(62752),dt=Le(ae(25224));function Le(ze){return ze&&ze.__esModule?ze:{default:ze}}var qe=Mt.createSensor=function(Ie,Ue){var he=void 0,xe=[],oe=(0,dt.default)(function(){xe.forEach(function(Te){Te(Ie)})}),Oe=function(){var we=new ResizeObserver(oe);return we.observe(Ie),oe(),we},ve=function(we){he||(he=Oe()),xe.indexOf(we)===-1&&xe.push(we)},Me=function(){he&&he.disconnect(),xe=[],he=void 0,Ie.removeAttribute(x.SizeSensorId),Ue&&Ue()},Se=function(we){var Ce=xe.indexOf(we);Ce!==-1&&xe.splice(Ce,1),xe.length===0&&he&&Me()};return{element:Ie,bind:ve,destroy:Me,unbind:Se}}},4977:function(qn){"use strict";qn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(qn,Mt,ae){"use strict";ae.d(Mt,{Z:function(){return he}});const x=xe=>typeof xe=="object"&&xe!=null&&xe.nodeType===1,dt=(xe,oe)=>(!oe||xe!=="hidden")&&xe!=="visible"&&xe!=="clip",Le=(xe,oe)=>{if(xe.clientHeight<xe.scrollHeight||xe.clientWidth<xe.scrollWidth){const Oe=getComputedStyle(xe,null);return dt(Oe.overflowY,oe)||dt(Oe.overflowX,oe)||(ve=>{const Me=(Se=>{if(!Se.ownerDocument||!Se.ownerDocument.defaultView)return null;try{return Se.ownerDocument.defaultView.frameElement}catch(Te){return null}})(ve);return!!Me&&(Me.clientHeight<ve.scrollHeight||Me.clientWidth<ve.scrollWidth)})(xe)}return!1},qe=(xe,oe,Oe,ve,Me,Se,Te,we)=>Se<xe&&Te>oe||Se>xe&&Te<oe?0:Se<=xe&&we<=Oe||Te>=oe&&we>=Oe?Se-xe-ve:Te>oe&&we<Oe||Se<xe&&we>Oe?Te-oe+Me:0,ze=xe=>{const oe=xe.parentElement;return oe==null?xe.getRootNode().host||null:oe},Ie=(xe,oe)=>{var Oe,ve,Me,Se;if(typeof document=="undefined")return[];const{scrollMode:Te,block:we,inline:Ce,boundary:Ee,skipOverflowHiddenElements:ke}=oe,Ke=typeof Ee=="function"?Ee:Kt=>Kt!==Ee;if(!x(xe))throw new TypeError("Invalid target");const Qe=document.scrollingElement||document.documentElement,je=[];let Je=xe;for(;x(Je)&&Ke(Je);){if(Je=ze(Je),Je===Qe){je.push(Je);break}Je!=null&&Je===document.body&&Le(Je)&&!Le(document.documentElement)||Je!=null&&Le(Je,ke)&&je.push(Je)}const Ve=(ve=(Oe=window.visualViewport)==null?void 0:Oe.width)!=null?ve:innerWidth,ct=(Se=(Me=window.visualViewport)==null?void 0:Me.height)!=null?Se:innerHeight,{scrollX:ot,scrollY:pt}=window,{height:Ct,width:He,top:ht,right:_e,bottom:Re,left:Ot}=xe.getBoundingClientRect(),{top:it,right:at,bottom:Et,left:Ze}=(Kt=>{const tt=window.getComputedStyle(Kt);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(xe);let De=we==="start"||we==="nearest"?ht-it:we==="end"?Re+Et:ht+Ct/2-it+Et,ut=Ce==="center"?Ot+He/2-Ze+at:Ce==="end"?_e+at:Ot-Ze;const Zt=[];for(let Kt=0;Kt<je.length;Kt++){const tt=je[Kt],{height:Dt,width:jt,top:An,right:kt,bottom:pn,left:Pt}=tt.getBoundingClientRect();if(Te==="if-needed"&&ht>=0&&Ot>=0&&Re<=ct&&_e<=Ve&&(tt===Qe&&!Le(tt)||ht>=An&&Re<=pn&&Ot>=Pt&&_e<=kt))return Zt;const En=getComputedStyle(tt),on=parseInt(En.borderLeftWidth,10),de=parseInt(En.borderTopWidth,10),pe=parseInt(En.borderRightWidth,10),ie=parseInt(En.borderBottomWidth,10);let ee=0,se=0;const le="offsetWidth"in tt?tt.offsetWidth-tt.clientWidth-on-pe:0,Be="offsetHeight"in tt?tt.offsetHeight-tt.clientHeight-de-ie:0,We="offsetWidth"in tt?tt.offsetWidth===0?0:jt/tt.offsetWidth:0,st="offsetHeight"in tt?tt.offsetHeight===0?0:Dt/tt.offsetHeight:0;if(Qe===tt)ee=we==="start"?De:we==="end"?De-ct:we==="nearest"?qe(pt,pt+ct,ct,de,ie,pt+De,pt+De+Ct,Ct):De-ct/2,se=Ce==="start"?ut:Ce==="center"?ut-Ve/2:Ce==="end"?ut-Ve:qe(ot,ot+Ve,Ve,on,pe,ot+ut,ot+ut+He,He),ee=Math.max(0,ee+pt),se=Math.max(0,se+ot);else{ee=we==="start"?De-An-de:we==="end"?De-pn+ie+Be:we==="nearest"?qe(An,pn,Dt,de,ie+Be,De,De+Ct,Ct):De-(An+Dt/2)+Be/2,se=Ce==="start"?ut-Pt-on:Ce==="center"?ut-(Pt+jt/2)+le/2:Ce==="end"?ut-kt+pe+le:qe(Pt,kt,jt,on,pe+le,ut,ut+He,He);const{scrollLeft:mt,scrollTop:vt}=tt;ee=st===0?0:Math.max(0,Math.min(vt+ee/st,tt.scrollHeight-Dt/st+Be)),se=We===0?0:Math.max(0,Math.min(mt+se/We,tt.scrollWidth-jt/We+le)),De+=vt-ee,ut+=mt-se}Zt.push({el:tt,top:ee,left:se})}return Zt},Ue=xe=>xe===!1?{block:"end",inline:"nearest"}:(oe=>oe===Object(oe)&&Object.keys(oe).length!==0)(xe)?xe:{block:"start",inline:"nearest"};function he(xe,oe){if(!xe.isConnected||!(Me=>{let Se=Me;for(;Se&&Se.parentNode;){if(Se.parentNode===document)return!0;Se=Se.parentNode instanceof ShadowRoot?Se.parentNode.host:Se.parentNode}return!1})(xe))return;const Oe=(Me=>{const Se=window.getComputedStyle(Me);return{top:parseFloat(Se.scrollMarginTop)||0,right:parseFloat(Se.scrollMarginRight)||0,bottom:parseFloat(Se.scrollMarginBottom)||0,left:parseFloat(Se.scrollMarginLeft)||0}})(xe);if((Me=>typeof Me=="object"&&typeof Me.behavior=="function")(oe))return oe.behavior(Ie(xe,oe));const ve=typeof oe=="boolean"||oe==null?void 0:oe.behavior;for(const{el:Me,top:Se,left:Te}of Ie(xe,Ue(oe))){const we=Se-Oe.top+Oe.bottom,Ce=Te-Oe.left+Oe.right;Me.scroll({top:we,left:Ce,behavior:ve})}}}}]);
|
|
|
}()); |