You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/81.568f0fc3.async.js

1275 lines
1.6 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[81],{40001:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},26227:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},41464:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},87169:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},73331:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},15277:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},52671:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},8657:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},56082:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},33853:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},15075:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},43531:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},61485:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},47472:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},87395:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(60499),gt=Ie(59301),a={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"},Te=a,xe=Ie(7657),z=function(ee,le){return gt.createElement(xe.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),oe=E},47618:function(){"use strict"},43334:function(){"use strict"},76591:function(Jt,jt){"use strict";jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},32783:function(Jt,jt){"use strict";jt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n",rateInput:"rateInput___yMSFt",operationWrapper:"operationWrapper___sHATq",add:"add___jcwUR",remove:"remove___nbhui"}},27495:function(){"use strict"},95075: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 Jt={},jt="5.0",Ie={},ge=null,gt=!1,a=!1,Te=null,xe=!1,z=null,E=null,oe=0;oe<arguments.length;oe++){var ie=arguments[oe];if(ie!==null)switch(typeof ie){case"number":jt=ie.toFixed(1);break;case"string":ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?jt=ie:Te=ie;break;case"object":typeof ie.is3D!="undefined"?ge=ie:Ie=ie;break;case"boolean":gt=ie,a=!0;break}}ge===null&&(ge={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ie.material_id!==void 0&&!a&&(gt=!0)),Te!==null&&Ie.id===void 0&&(Ie.id=Te);var ee="",le="",x=!1,ne=null,re=null,ae=null,se=!1,ce=null,pe=null,me=null,he=null,be=null;Ie.height!==void 0&&(Ie.height=Math.round(Ie.height)),Ie.width!==void 0&&(Ie.width=Math.round(Ie.width));var Pe=function(Ge){return parseFloat(Ge)>4?parseFloat(Ge):5};Jt.setHTML5Codebase=function(Ge,Xe){E=Ge,rt(Ge,Xe)},Jt.setJavaCodebase=Jt.setJavaCodebaseVersion=Jt.isCompiledInstalled=Jt.setPreCompiledScriptPath=Jt.setPreCompiledResourcePath=function(){},Jt.setHTML5CodebaseVersion=function(Ge,Xe){var Ve=parseFloat(Ge);if(Ve!==NaN&&Ve<5){console.log("The GeoGebra HTML5 codebase version "+Ve+" is deprecated. Using version latest instead.");return}z=Ge,Ke(Ge,Xe)},Jt.getHTML5CodebaseVersion=function(){return re},Jt.getParameters=function(){return Ie},Jt.setFontsCSSURL=function(Ge){he=Ge},Jt.setGiacJSURL=function(Ge){},Jt.setJNLPFile=function(Ge){ee=Ge},Jt.setJNLPBaseDir=function(Ge){},Jt.inject=function(){function Ge(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xe="auto",Ve=Ie.id,tt,Qe=!1,ct=0;ct<arguments.length;ct++){var at=arguments[ct];typeof at=="string"?(at=at.toLowerCase(),at.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xe=at:Ve=arguments[ct]):typeof at=="boolean"?Qe=at:at instanceof HTMLElement&&(tt=at)}qe();function qe(){if(!xe){setTimeout(qe,200);return}Xe=ot(Xe);var Le=tt||document.getElementById(Ve);if(!Le){console.log("possibly bug on ajax loading? ");return}if(Jt.removeExistingApplet(Le,!1),Ie.width===void 0&&Le.clientWidth&&(Ie.width=Le.clientWidth),Ie.height===void 0&&Le.clientHeight&&(Ie.height=Le.clientHeight),!(Ie.width&&Ie.height)&&Xe==="html5"&&(delete Ie.width,delete Ie.height),ne=Xe,Xe==="screenshot")Ae(Le,Ie);else{var Ne=!1;Ie.hasOwnProperty("playButton")&&Ie.playButton||Ie.hasOwnProperty("clickToLoad")&&Ie.clickToLoad?Ne=!0:Ie.hasOwnProperty("playButtonAutoDecide")&&Ie.playButtonAutoDecide&&(Ne=(!Me()||Ge())&&_e()),Ne?(ne="screenshot",Ue(Le,Ie,Qe,Xe)):Be(Le,Ie,Qe)}}};function Me(){try{return window.self!==window.top}catch(Ge){return!0}}function _e(){return Ie.hasOwnProperty("screenshotGenerator")&&Ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Jt.getViews=function(){return ge},Jt.isJavaInstalled=function(){return!1};var De=function(Ge){var Xe=function(ct){var at=JSON.parse(ct),qe=function(te){return te.type=="G"||te.type=="E"},Le=at.elements?at.elements.filter(qe)[0]:at;if(!Le||!Le.url){Ve();return}Ie.fileName=Le.url,Ce(Le.settings||{}),ge.is3D=!0;var Ne="https://www.geogebra.org/images/";Jt.setPreviewImage(ce||Le.previewUrl,Ne+"GeoGebra_loading.png",Ne+"applet_play.png"),Ge()},Ve=function(){Ie.onError&&Ie.onError(),nt("Error: Fetching material (id "+Ie.material_id+") failed.",Ie)},tt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+Ie.material_id+"?scope=basic";Ee("https://"+tt+"/api/proxy.php?path="+encodeURIComponent(Qe),Xe,Ve)};function Ce(Ge){var Xe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ve){Ge[Ve]=!!Ge[Ve]}),Xe.forEach(function(Ve){Ie[Ve]===void 0&&Ge[Ve]!==void 0&&(Ie[Ve]=Ge[Ve])}),Ie.showToolBarHelp===void 0&&(Ie.showToolBarHelp=Ie.showToolBar)}function Ee(Ge,Xe,Ve){var tt=new XMLHttpRequest;tt.open("GET",Ge),tt.onload=function(){Xe(tt.responseText)},tt.onerror=Ve,tt.send()}Jt.isHTML5Installed=function(){return!0},Jt.getLoadedAppletType=function(){return ne},Jt.setPreviewImage=function(Ge,Xe,Ve){ce=Ge,pe=Xe,me=Ve},Jt.removeExistingApplet=function(Ge,Xe){var Ve;typeof Ge=="string"&&(Ge=document.getElementById(Ge)),ne=null;var tt=null;for(Ve=0;Ve<Ge.childNodes.length;Ve++){var Qe=Ge.childNodes[Ve],ct=Qe.className;ct==="applet_screenshot"?Xe?(Qe.style.display="block",ne="screenshot"):Qe.style.display="none":ct!=="applet_scaler prerender"&&(Ge.removeChild(Qe),tt=ct&&ct.indexOf("appletParameters")!=-1?Qe.id:null,Ve--)}var at=Ie.id!==void 0?Ie.id:tt,qe=window[at];qe&&typeof qe.getBase64=="function"&&(qe.remove(),window[at]=null)},Jt.refreshHitPoints=function(){if(Pe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ge=Jt.getAppletObject();return Ge&&typeof Ge.recalculateEnvironments=="function"?(Ge.recalculateEnvironments(),!0):!1},Jt.startAnimation=function(){var Ge=Jt.getAppletObject();return Ge&&typeof Ge.startAnimation=="function"?(Ge.startAnimation(),!0):!1},Jt.stopAnimation=function(){var Ge=Jt.getAppletObject();return Ge&&typeof Ge.stopAnimation=="function"?(Ge.stopAnimation(),!0):!1},Jt.getAppletObject=function(){var Ge=Ie.id!==void 0?Ie.id:"ggbApplet";return window[Ge]},Jt.resize=function(){};var je=function(Ge,Xe,Ve){var tt=document.createElement("param");tt.setAttribute("name",Xe),tt.setAttribute("value",Ve),Ge.appendChild(tt)},ke=function(Ge){return Ge&&Ge!=="false"},Be=function(Ge,Xe,Ve){Pe(re)<=4.2&&(Ve=!0);var tt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==re||ggbHTML5LoadedCodebaseIsWebSimple&&!se)&&(tt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ct=Xe.width,at=Xe.height;if(Xe.disableAutoScale=Xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xe.disableAutoScale,Xe.width!==void 0)if(Pe(re)<=4.4)ke(Xe.showToolBar)&&(Xe.height-=7),ke(Xe.showAlgebraInput)&&(Xe.height-=37),Xe.width<605&&ke(Xe.showToolBar)&&(Xe.width=605,ct=605);else{var qe=100;(ke(Xe.showToolBar)||ke(Xe.showMenuBar))&&(Xe.hasOwnProperty("customToolBar")&&(Xe.customToolbar=Xe.customToolBar),qe=ke(Xe.showMenuBar)?245:155),ct<qe&&(Xe.width=qe,ct=qe)}Qe.style.border="none",Qe.style.display="inline-block";for(var Le in Xe)Xe.hasOwnProperty(Le)&&Le!=="appletOnLoad"&&Qe.setAttribute("data-param-"+Le,Xe[Le]);he&&Qe.setAttribute("data-param-fontscssurl",he),Jt.resize=function(){GGBAppletUtils.responsiveResize(Ge,Xe)},window.addEventListener("resize",function(lt){Jt.resize()});var Ne=typeof Xe.appletOnLoad=="function"?Xe.appletOnLoad:function(){};if(!Ve&&Xe.width!==void 0){Xe.hasOwnProperty("showSplash")||Qe.setAttribute("data-param-showSplash","false");var te=Ge.querySelector(".applet_scaler.prerender"),de=te!==null;if(de)var Re=te.querySelector(".ggb_preview");else{var Re=Ye(ct,at,Xe.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=ct+"px",te.style.height=at+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),Pe(re)>=5?(Xe.appletOnLoad=function(lt){var ft=Ge.querySelector(".ggb_preview");ft&&ft.parentNode.removeChild(ft),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),Ne(lt)},de||te.appendChild(Re)):Qe.appendChild(Re),te.appendChild(Qe),de||Ge.appendChild(te),setTimeout(function(){Jt.resize()},1)}else{var We=document.createElement("div");We.className="applet_scaler",We.style.position="relative",We.style.display="block",We.appendChild(Qe),Ge.appendChild(We),Xe.appletOnLoad=function(lt){Jt.resize(),Ne(lt)}}function we(lt,ft){ft&&typeof ft.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(lt,ft.appletOnLoad):renderGGBElement(lt),nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ft)}function ye(lt,ft){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:lt,params:ft}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Tt){we(Tt.article,Tt.params)}),html5AppletsToProcess=null)},Pe(re)<5&&(lt.className+=" geogebraweb")):we(lt,ft)}if(tt){scriptLoadStarted=!0;for(var Oe=0;Oe<Qe.childNodes.length;Oe++){var $e=Qe.childNodes[Oe].tagName;$e==="TABLE"&&(Qe.removeChild(Qe.childNodes[Oe]),Oe--)}if(ggbHTML5LoadedScript!==null){var Ze=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ze!=null&&Ze.parentNode.removeChild(Ze)}var Je=document.createElement("script"),st=function(){ye(Qe,Xe)};Je.src=le+ae,ggbHTML5LoadedCodebaseIsWebSimple=se,ggbHTML5LoadedCodebaseVersion=re,ggbHTML5LoadedScript=Je.src,nt("GeoGebra HTML5 codebase loaded: '"+le+"'.",Xe),!E&&(!z||z=="5.0")?(se?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),st()):le.requirejs?__webpack_require__.e(7313).then(function(){var lt=[__webpack_require__(7313)];st.apply(null,lt)}.bind(this)).catch(__webpack_require__.oe):(Je.onload=st,Ge.appendChild(Je))}else ye(Qe,Xe);Xe.height=at,Xe.width=ct},Ae=function(Ge,Xe,Ve){var tt=Ye(Xe.width,Xe.height,Xe.borderColor,Ve),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=Xe.width+"px",Qe.style.height=Xe.height+"px",Qe.className="applet_screenshot applet_scaler"+(Ve?" applet_screenshot_play":""),Qe.appendChild(tt);var ct=GGBAppletUtils.getScale(Xe,Ge,Ve);Ve?(Ge.appendChild(He()),window.GGBT_wsf_view||(Ge.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),Ge.appendChild(Qe),ct!==1&&!isNaN(ct)&&(GGBAppletUtils.scaleElement(Qe,ct),Qe.style.width=Xe.width+"px",Qe.style.height=Xe.height+"px",Qe.parentNode.style.width=Xe.width*ct+"px",Qe.parentNode.style.height=Xe.height*ct+"px"),Jt.resize=function(){ve(Ge,tt,Qe,Ve)},window.addEventListener("resize",function(at){Jt.resize()}),Jt.resize()};function ve(Ge,Xe,Ve,tt){if(Ge.contains(Xe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ge.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ge)}var Qe=GGBAppletUtils.getScale(Ie,Ge,tt);Ve.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(Ve,Qe),Ve.parentNode.style.width=Ie.width*Qe+"px",Ve.parentNode.style.height=Ie.height*Qe+"px"):(GGBAppletUtils.scaleElement(Ve,1),Ve.parentNode.style.width=Ie.width+"px",Ve.parentNode.style.height=Ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ge),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Jt.onExitFullscreen=function(Ge,Xe){Xe.appendChild(Ge)};var Ue=function(Ge,Xe,Ve,tt){Ae(Ge,Xe,!0);for(var Qe=function(){var qe=[];for(at=0;at<Ge.childNodes.length;at++)qe.push(Ge.childNodes[at]);if(window.GGBT_wsf_view){var Le=window.GGBT_wsf_view.renderFullScreen(Ge,Xe.id),Ne=document.getElementById("fullscreencontainer"),te=jQuery(Ge).find(".fullscreencontent");te.length>0?(Le.remove(),te.attr("id","fullscreencontent").show(),jQuery(Ne).append(te),window.dispatchEvent(new Event("resize"))):Be(Le,Xe,!1),window.GGBT_wsf_view.launchFullScreen(Ne)}else ne=tt,Be(Ge,Xe,!1);if(!window.GGBT_wsf_view)for(at=0;at<qe.length;at++)Ge.removeChild(qe[at])},ct=Ge.getElementsByClassName("ggb_preview_play"),at=0;at<ct.length;at++)ct[at].addEventListener("click",Qe,!1),ct[at].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ge),_e()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},He=function(){var Ge=document.createElement("div");if(Ge.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Xe='.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");}',Ve=document.createElement("style");Ve.styleSheet?Ve.styleSheet.cssText=Xe:Ve.appendChild(document.createTextNode(Xe)),document.getElementsByTagName("head")[0].appendChild(Ve)}return Ge},Ye=function(Ge,Xe,Ve,tt){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=Ge-2+"px",Qe.style.height=Xe-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var ct="lightgrey";Ve!==void 0&&(Ve==="none"?ct="transparent":ct=Ve),Qe.style.border="1px solid "+ct;var at=document.createElement("img");if(at.style.position="relative",at.style.zIndex="1000",at.style.top="-1px",at.style.left="-1px",ce!==null&&at.setAttribute("src",ce),at.style.opacity=.7,pe!==null){var qe,Le,Ne;if(!tt){qe=document.createElement("img"),qe.style.position="absolute",qe.style.zIndex="1001",qe.style.opacity=1,at.style.opacity=.3,Le=360,Le>Ge/4*3&&(Le=Ge/4*3),Ne=Le/5.8,qe.setAttribute("src",pe),qe.setAttribute("width",Le),qe.setAttribute("height",Ne);var te=(Ge-Le)/2,de=(Xe-Ne)/2;qe.style.left=te+"px",qe.style.top=de+"px",Qe.appendChild(qe)}}return Qe.appendChild(at),Qe},ot=function(Ge){return Ge=Ge.toLowerCase(),Ge==="html5"||Ge==="screenshot"?Ge:"html5"},Fe=["web","webSimple","web3d","tablet","tablet3d","phone"],Ke=function(Ge,Xe){if(re=Ge,Xe){rt(re,!0);return}var Ve=!gt;if(Ve){var tt=Pe(re);!isNaN(tt)&&tt<4.4&&(Ve=!1)}var Qe,ct;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var at=re.indexOf("//");at>0?ct=re:at===0?ct=Qe+re:ct="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in Fe)if(re.slice(Fe[qe].length*-1)===Fe[qe]||re.slice((Fe[qe].length+1)*-1)===Fe[qe]+"/"){rt(ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ve&&!ge.is3D&&!ge.AV&&!ge.SV&&!ge.CV&&!ge.EV2&&!ge.CP&&!ge.PC&&!ge.DA&&!ge.FI&&!ge.PV&&!ke(Ie.showToolBar)&&!ke(Ie.showMenuBar)&&!ke(Ie.showAlgebraInput)&&!ke(Ie.enableRightClick)&&(!Ie.appName||Ie.appName=="classic")?ct+="webSimple/":ct+="web3d/",rt(ct,!1)},rt=function(Ge,Xe){if(Ge.requirejs){le=Ge;return}Ge.slice(-1)!=="/"&&(Ge+="/"),le=Ge,Xe===null&&(Xe=Ge.indexOf("http")===-1),x=Xe,ae="web.nocache.js",se=!1;var Ve=le.split("/");Ve.length>1&&(!Xe&&Ve[Ve.length-2]==="webSimple"?(ae="webSimple.nocache.js",se=!0):Fe.indexOf(Ve[Ve.length-2])>=0&&(ae=Ve[Ve.length-2]+".nocache.js")),Ve=Ge.split("/"),re=Ve[Ve.length-3],re.substr(0,4)==="test"?re=re.substr(4,1)+"."+re.substr(5,1):(re.substr(0,3)==="war"||re.substr(0,4)==="beta")&&(re="5.0");var tt=parseFloat(re);tt!==NaN&&tt<5&&Ge.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+tt+" is deprecated. Using version latest instead."),Ke("5.0",Xe))},nt=function(Ge,Xe){window.console&&window.console.log&&(!Xe||typeof Xe.showLogging=="undefined"||Xe.showLogging&&Xe.showLogging!=="false")&&console.log(Ge)};Ie.material_id!==void 0?De(et):et();function et(){var Ge=jt;z!==null?Ge=z:parseFloat(Ge)<5&&(Ge="5.0"),Ke(Ge,!1),E!==null&&rt(E,x),xe=!0}return Jt},GGBAppletUtils=function(){"use strict";function Jt(){return window.GGBT_wsf_edit!==void 0}function jt(xe,z){z!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+z+","+z+")",xe.style.webkitTransform="scale("+z+","+z+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function Ie(xe,z,E,oe,ie,ee){var le=null;if(ee!=null&&ee!="")for(var x=xe.parentNode;x!=null;)if((" "+x.className+" ").indexOf(" "+ee+" ")>-1){le=x;break}else x=x.parentNode;var ne=0,re=0,ae=0,se=0,ce=0,pe=0,me=0;if(le)ne=le.offsetWidth,re=Math.max(oe?le.offsetWidth:0,le.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ne=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),ae=ne):(ne=window.innerWidth,re=window.innerHeight,ae=window.innerWidth),xe){var he=xe.getBoundingClientRect();he.left>0&&he.left<=ne&&(ie===void 0||!ie)&&(document.dir==="rtl"?(ce=ne-he.width-he.left,pe=ae<=480?10:30):(pe=he.left,ce=ae<=480?10:30),se=pe+ce)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(se=40,me=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(se=0,me=40)}}return xe&&((E===void 0||!E)&&z>0&&z+se<ne?ne=z:ne-=se,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(E===void 0||!E)&&(re-=me)),{width:ne,height:re}}function ge(xe,z,E,oe,ie){if(xe.isScreenshoGenerator)return 1;var ee=oe!==void 0&&oe,le=xe.noScaleMargin!=null&&xe.noScaleMargin,x=function(be){return be&&be!=="false"},ne=x(xe.autoHeight),re=Ie(z,xe.width,E,ne,ee&&window.GGBT_wsf_view||le,ie),ae=parseInt(re.width),se=xe.width,ce=xe.height;if(se===void 0){var pe=z.querySelector(".appletParameters");pe&&(se=pe.offsetWidth,ce=pe.offsetHeight)}var me=ae/se,he=ee?1:re.height/ce;return E!==void 0&&!E&&(me=Math.min(1,me),he=Math.min(1,he)),Math.min(me,he)}function gt(xe,z,E){var oe=1,ie,ee=!1;if(xe.hasOwnProperty("allowUpscale")&&(ee=xe.allowUpscale),xe.hasOwnProperty("scale")&&(oe=parseFloat(xe.scale),(isNaN(oe)||oe===null||oe===0)&&(oe=1),oe>1&&(ee=!0)),z&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))ie=ge(xe,z,ee,E,xe.scaleContainerClass);else return oe;return ee&&(!xe.hasOwnProperty("scale")||oe===1)?ie:Math.min(oe,ie)}function a(xe){var z=Math.min(window.innerWidth,document.documentElement.clientWidth),E=Math.min(window.innerHeight,document.documentElement.clientHeight),oe=xe.getBoundingClientRect(),ie=(z-oe.width)/2,ee=(E-oe.height)/2;ee<0&&(ee=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ie<40?xe.style.left="40px":xe.style.left=ie+"px",xe.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?xe.style.top="40px":xe.style.top=ee+"px",xe.style.left=ie+"px")}function Te(xe,z){var E=xe.querySelector(".appletParameters");if(E){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(z.id!==E.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(E.parentElement&&/fullscreen/.test(E.parentElement.className))return;var oe=gt(z,xe);Jt()&&E.setAttribute("data-param-scale",oe);for(var ie=null,ee=0;ee<xe.childNodes.length;ee++)if(xe.childNodes[ee].className!==void 0&&xe.childNodes[ee].className.match(/^applet_scaler/)){ie=xe.childNodes[ee];break}if(ie!==null&&ie.querySelector(".noscale")!==null)return;var le=z.id!==void 0?z.id:"ggbApplet",x=window[le];(x==null||!x.recalculateEnvironments)&&ie!==null&&!ie.className.match(/fullscreen/)&&(ie.parentNode.style.transform="",!isNaN(oe)&&oe!==1?(ie.parentNode.style.width=z.width*oe+"px",ie.parentNode.style.height=z.height*oe+"px",jt(ie,oe)):(jt(ie,1),ie.parentNode.style.width=z.width+"px",ie.parentNode.style.height=z.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&a(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(E).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:Jt,positionCenter:a,getScale:gt,scaleElement:jt}}();__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 Jt=n.location.search;return Jt.indexOf(J)!=-1||Jt.indexOf(K)!=-1}function q(Jt,jt){}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(Jt){var jt=s[L].bindings;s[L].bindings=function(){for(var Ie=jt?jt():{},ge=Jt[webModule.__softPermutationId],gt=O;gt<ge.length;gt++){var a=ge[gt];Ie[a[O]]=a[P]}return Ie}};var t;function u(){return v(),t}function v(){if(!t){var Jt=o.createElement(Q);if(Jt.id=L,Jt.style.cssText=R+S,Jt.tabIndex=-1,o.body.appendChild(Jt),t=Jt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var jt=document.compatMode==U?V:W;t.write(jt+X),t.close()}}}function w(Jt){function jt(ge){function gt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var a=gt();if(a){ge();return}function Te(){if(!a){if(!gt())return;a=!0,ge(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var xe=setInterval(function(){Te()},$)}function Ie(ge){var gt=u(),a=gt.body,Te=gt.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=ge,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+ge))}),a.appendChild(Te)}jt(function(){Ie(Jt)})}webModule.__startLoadingFragment=function(Jt){return C(Jt)},webModule.__installRunAsyncCode=function(Jt){var jt=u(),Ie=jt.body,ge=jt.createElement(_);ge.language=ab,ge.text=Jt,Ie.appendChild(ge),Ie.removeChild(ge)};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(Jt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Jt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Jt){var jt=c[Jt];return jt==null?null:jt},r=d,webModule.__errFn=e}function B(){function Jt(xe){var z=xe.lastIndexOf(rb);z==-1&&(z=xe.length);var E=xe.indexOf(sb);E==-1&&(E=xe.length);var oe=xe.lastIndexOf(tb,Math.min(E,z));return oe>=O?xe.substring(O,oe+P):W}function jt(xe){if(!xe.match(/^\w+:\/\//)){var z=o.createElement(ub);z.src=xe+vb,xe=Jt(z.src)}return xe}function Ie(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function ge(){for(var xe=o.getElementsByTagName(_),z=O;z<xe.length;++z)if(xe[z].src.indexOf(xb)!=-1)return Jt(xe[z].src);return W}function gt(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function a(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var Te=Ie();return Te==W&&(Te=ge()),Te==W&&(Te=gt()),Te==W&&a()&&(Te=Jt(o.location.href)),Te=jt(Te),Te}function C(Jt){return Jt.match(/^\//)||Jt.match(/^[a-zA-Z]+:\/\//)?Jt:webModule.__moduleBase+Jt}function D(){var Jt=[],jt=O,Ie=[],ge=[];function gt(xe){var z=ge[xe](),E=Ie[xe];if(z in E)return z;var oe=[];for(var ie in E)oe[E[ie]]=ie;throw r&&r(xe,oe,z),null}if(__gwt_isKnownPropertyValue=function(xe,z){return z in Ie[xe]},webModule.__getPropMap=function(){var xe={};for(var z in Ie)Ie.hasOwnProperty(z)&&(xe[z]=gt(z));return xe},webModule.__computePropValue=gt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var a;try{a=Cb;var Te=a.indexOf(Db);Te!=-1&&(jt=parseInt(a.substring(Te+P),$),a=a.substring(O,Te))}catch(xe){}return webModule.__softPermutationId=jt,C(a+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})()},60562:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Ax:function(){return Te},Ds:function(){return xe},KI:function(){return E},SI:function(){return a},f1:function(){return gt}});var ge=Ie(58962);function gt(oe){let ie=!0;if(oe.length>0){for(let ee=0;ee<oe.length;ee++)if(oe[ee].compile_success==0||!oe[ee].compile_success){ie=!1;break}}else ie=!1;return ie}function a(oe,ie=""){let ee=[];for(let le=0;le<oe.length;le++){let x=oe[le],ne=ie?`${ie}/${x.name}`:`${x.name}`;ee.push({title:x.name,type:x.type,isLeaf:x.type!=="tree",key:ne})}return ee}function Te(oe,ie,ee){for(let le=0;le<oe.length;le++){let x=oe[le];if(x.key===ie){x.children=ee;break}x.children&&Te(x.children,ie,ee)}return oe}function xe(oe,ie,ee){let le;return function(){let x=this,ne=arguments,re=function(){le=null,ee||oe.apply(x,ne)},ae=ee&&!le;clearTimeout(le),le=setTimeout(re,ie),ae&&oe.apply(x,ne)}}const z=!0,E=ge.Z.API_SERVER},95382:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return le}});var ge=Ie(59301),gt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},a=Ie(92310),Te=Ie.n(a),xe=Ie(29787),z=Ie(2859),E=Ie(82875),oe=Ie(49411),ie=(x,ne,re)=>new Promise((ae,se)=>{var ce=he=>{try{me(re.next(he))}catch(be){se(be)}},pe=he=>{try{me(re.throw(he))}catch(be){se(be)}},me=he=>he.done?ae(he.value):Promise.resolve(he.value).then(ce,pe);me((re=re.apply(x,ne)).next())}),le=({data:x,className:ne,fullWidth:re,style:ae={},onClose:se,onOk:ce,showFullTools:pe,noAssociationId:me})=>{const he=(0,ge.useRef)(null),be=(0,ge.useRef)(null),Pe=(0,ge.useRef)(null),Me=(0,ge.useRef)(null),[_e,De]=(0,ge.useState)(!1),[Ce,Ee]=(0,ge.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ge.useEffect)(()=>(Pe.current||(Pe.current=document.createElement("style"),document.head.appendChild(Pe.current)),x!=null&&x.visible?(document.body.setAttribute("data-custom","y-hidden"),Pe.current.innerHTML=" html { overflow-y: hidden; }",x!=null&&x.src&&je()):(document.body.removeAttribute("data-custom"),Pe.current&&(document.head.removeChild(Pe.current),Pe.current=null)),()=>{document.body.removeAttribute("data-custom"),Pe.current&&(document.head.removeChild(Pe.current),Pe.current=null)}),[x==null?void 0:x.visible]);const je=()=>ie(void 0,null,function*(){De(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ve=yield(0,oe.ZJ)(x==null?void 0:x.src);he.current.src="",he.current.src=ve,he.current.onload=function(){Ae()},De(!1),Ee("")}),ke=ve=>ie(void 0,null,function*(){De(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,E.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:x.title,file:ve.dataUrl}});Ue!=null&&Ue.id&&!me?(yield(0,E.ZP)(`/api/attachments/${x.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify(ve.state)}})).status===0&&ce():Ue!=null&&Ue.id&&ce(Ue),De(!1),Ee("")}),Be=()=>{const ve=document.querySelector('a[href="https://markerjs.com/"]');ve&&ve.parentNode&&(ve.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(He=>{const Ye=document.querySelector(He.name);Ye&&Ye.setAttribute("title",He.title)})},Ae=()=>{be.current=new z.hP(he.current),be.current.targetRoot=Me.current,be.current.addEventListener("render",ke),be.current.addEventListener("beforeclose",se),pe&&(be.current.availableMarkerTypes=be.current.ALL_MARKER_TYPES,be.current.uiStyleSettings.redoButtonVisible=!0,be.current.uiStyleSettings.notesButtonVisible=!0,be.current.uiStyleSettings.zoomButtonVisible=!0,be.current.uiStyleSettings.zoomOutButtonVisible=!0,be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=be.current.uiStyleSettings,be.current.show(),x!=null&&x.snapshotData&&be.current.restoreState(x.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Be()},300)};return ge.createElement(ge.Fragment,null,(x==null?void 0:x.visible)&&ge.createElement(xe.Z,{spinning:_e,tip:Ce,style:{position:"absolute",width:"100vw"}},ge.createElement("div",{ref:Me,className:Te()(gt.imageDimensions,ne,re?gt.fullWidth:""),style:ae},ge.createElement("img",{className:gt.img,ref:he}))))}},58629:function(Jt,jt,Ie){"use strict";var ge=Ie(59301),gt=Ie(77019),a=Ie(5269),Te=Ie(31691),xe=Ie(7939),z=Ie(75363),E=Ie(76591),oe=Ie(48136),ie=Ie(59301);const ee=(0,ge.forwardRef)(({callback:le,showSaveButton:x,value:ne=""},re)=>{const ae=(0,ge.useRef)(),se=[{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}`}]}]}],pe=be=>{ae.current.setValue(ae.current.getValue()+" "+be.value+" ")},me=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ie.createElement(gt.Z,{className:E.Z.lists,gutter:[10,10]},se.map((be,Pe)=>ie.createElement(a.Z,{flex:"110px",className:E.Z.item},ie.createElement("div",null,ie.createElement(z.Z,{value:`$$${be.value}$$`}),be.name),ie.createElement("div",{className:E.Z.children},be.children.map((Me,_e)=>ie.createElement("div",{key:_e},ie.createElement("h1",null,Me.name),ie.createElement(gt.Z,{gutter:[10,10]},Me.data.map((De,Ce)=>ie.createElement(a.Z,{key:Ce,onClick:()=>pe(De),className:E.Z.diamond},ie.createElement(z.Z,{value:"`$$"+De.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ie.createElement(gt.Z,{className:E.Z.lists,gutter:[10,10]},ce.map((be,Pe)=>ie.createElement(a.Z,{flex:"110px",className:E.Z.item},ie.createElement("div",null,ie.createElement(z.Z,{value:"`$$"+be.value+"$$`"}),be.name),ie.createElement("div",{className:E.Z.children},be.children.map((Me,_e)=>ie.createElement("div",{key:_e},Me.name&&ie.createElement("h1",null,Me.name),ie.createElement(gt.Z,{gutter:[10,10]},Me.data.map((De,Ce)=>ie.createElement(a.Z,{key:Ce,onClick:()=>pe(De),className:E.Z.diamond},ie.createElement(z.Z,{value:"`$$"+De.value+"$$`"}))))))))))}],he=()=>{var be=document.createElement("div");be.innerHTML=ae.current.getValue();var Pe=be.innerText;return le&&le(Pe),Pe};return(0,ge.useImperativeHandle)(re,()=>({getData:he})),ie.createElement("div",{className:E.Z.mathWrap},ie.createElement(Te.default,{defaultActiveKey:"1",items:me}),ie.createElement("math-field",{locale:"zh_cn",className:E.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ae,style:{width:800,marginTop:30,fontSize:18}},ne||""),x&&ie.createElement("div",{className:E.Z.button},ie.createElement(xe.ZP,{size:"large",onClick:he,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});jt.Z=ee},40412:function(Jt,jt,Ie){"use strict";var ge=Ie(59301),gt=Ie(93314),a=Ie(7939),Te=Object.defineProperty,xe=Object.defineProperties,z=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ee=(re,ae,se)=>ae in re?Te(re,ae,{enumerable:!0,configurable:!0,writable:!0,value:se}):re[ae]=se,le=(re,ae)=>{for(var se in ae||(ae={}))oe.call(ae,se)&&ee(re,se,ae[se]);if(E)for(var se of E(ae))ie.call(ae,se)&&ee(re,se,ae[se]);return re},x=(re,ae)=>xe(re,z(ae));const ne=({img:re,buttonProps:ae={},styles:se={},customText:ce,ButtonText:pe,ButtonClick:me,Buttonclass:he,ButtonTwo:be,imgStyles:Pe,loading:Me=!1,className:_e=""})=>ge.createElement("section",{className:`tc animated fadeIn ${_e}`,style:le({color:"#999",margin:"100px auto",visibility:Me?"hidden":"visible"},se)},ge.createElement("img",{src:re||gt,style:x(le({},Pe),{pointerEvents:"none",userSelect:"none"})}),ge.createElement("p",{className:"mt20 font14"},ce||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),pe&&ge.createElement(a.ZP,le({className:he,onClick:me},ae),pe),be&&be);jt.Z=ne},42576:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return he}});var ge=Ie(59301),gt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},a=Ie(7939),Te=Ie(70557),xe=Ie(28444),z=Ie(25399),E=Ie(49411),oe=Ie(17611),ie=Ie(40412),ee=Ie(58962),le=Ie(99357),x=Ie(59301),ne=Object.defineProperty,re=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ce=(be,Pe,Me)=>Pe in be?ne(be,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Me}):be[Pe]=Me,pe=(be,Pe)=>{for(var Me in Pe||(Pe={}))ae.call(Pe,Me)&&ce(be,Me,Pe[Me]);if(re)for(var Me of re(Pe))se.call(Pe,Me)&&ce(be,Me,Pe[Me]);return be},me=(be,Pe,Me)=>new Promise((_e,De)=>{var Ce=ke=>{try{je(Me.next(ke))}catch(Be){De(Be)}},Ee=ke=>{try{je(Me.throw(ke))}catch(Be){De(Be)}},je=ke=>ke.done?_e(ke.value):Promise.resolve(ke.value).then(Ce,Ee);je((Me=Me.apply(be,Pe)).next())}),he=({editOffice:be="view",data:Pe,issaver:Me,onSaver:_e,theme:De,type:Ce,filename:Ee,monacoEditor:je,className:ke,style:Be,close:Ae,onClose:ve,hasMask:Ue,disabledDownload:He,onImgDimensions:Ye,showNodata:ot,recordInfo:Fe})=>{const[Ke,rt]=(0,ge.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[nt,et]=(0,ge.useState)(""),[Ge,Xe]=(0,ge.useState)(),Ve=window.ENV==="build"?"/react/build":"",tt=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ct=10*(1024*1024),at=(0,ge.useRef)();Pe!=null&&Pe.startsWith("/api")&&Ce!=="txt"&&(Pe=ee.Z.API_SERVER+Pe);const qe=We=>We.substring(We.lastIndexOf("/")+1).split(".").pop();Ee&&je&&(je.filename=Ee),(0,ge.useEffect)(()=>{var We,we;const ye=(we=(We=document.cookie)==null?void 0:We.replace(/\s/g,""))==null?void 0:we.split(";");ye==null||ye.map(Oe=>{let $e=Oe.split("=");$e[0]==="_educoder_session"&&et($e[1])})},[]),(0,ge.useEffect)(()=>{Ce==="office"&&(Pe.indexOf("bigfilescdn.")>-1||Pe.indexOf("bigfiles1")>-1?Xe({url:Pe,fileType:qe(Pe),model:Pe.indexOf("model=edit")?"edit":"view"}):Pe.indexOf("coze")>-1?Xe({url:Pe,fileType:"doc",model:"view"}):Ne())},[Ce,Pe]);function Le(We){return me(this,null,function*(){We.data.type==="pdfdata"&&(_e(We.data.data),window.removeEventListener("message",Le,!1)),console.log("mess---:",We.data)})}const Ne=()=>me(void 0,null,function*(){console.log("data:",Pe);let We=Pe;Pe.startsWith("http")||(We=location.origin+We);let we=new URL(We).pathname.split("/").pop();const ye=yield(0,oe.gJ)({attachment_id:we});ye.url=tt+ye.url,Xe(ye)}),te=()=>{if(Pe.startsWith("http")||Pe.startsWith("blob:")){de();return}(0,E.Sv)(Ee||"educoder",Pe,Ee)},de=()=>{Fe&&(0,le.fc)({id:Fe==null?void 0:Fe.id,watch_type:1,course_id:Fe==null?void 0:Fe.course_id}),(0,E.Nd)(Ee||"educoder",decodeURIComponent(Pe))};(0,ge.useEffect)(()=>(window.addEventListener("message",Re),()=>{window.removeEventListener("message",Re)}),[]);const Re=We=>{var we;((we=We==null?void 0:We.data)==null?void 0:we.type)==="closePop"&&ve()};return x.createElement("div",{style:pe({},Be||{}),className:`${Ue&&gt.bgBlack} ${Ce?gt.wrp:"hide"}`},!!Ce&&Ae&&x.createElement("div",{id:"closePop",className:gt.close,ref:at},!!Ye&&x.createElement(z.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>at.current},x.createElement("span",{onClick:()=>{ve(),Ye()}},x.createElement("i",{className:"icon-yulanpizhu"}))),!He&&window.parent===window&&x.createElement(z.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>at.current},x.createElement("span",{onClick:de},x.createElement("i",{className:"icon-quxiaozhiding"}))),Me&&x.createElement(z.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>at.current},x.createElement("span",{className:"",onClick:()=>{const We=document.getElementById("pdfiframe");window.addEventListener("message",Le,!1),setTimeout(()=>{We.contentWindow.postMessage("getData","*")},300)}},x.createElement("i",{className:"icon-baocun"}))),x.createElement(z.Z,{title:"\u5173\u95ED",getPopupContainer:()=>at.current},x.createElement("span",{className:"",onClick:()=>{ve()}},x.createElement("i",{className:"icon-guanbi1"})))),x.createElement("div",{className:`${gt[ke]} ${ke} ${gt.monaco} ${Ce==="txt"?"show":"hide"}`},Ce==="txt"&&x.createElement(x.Fragment,null,x.createElement(xe.ZP,pe({},je)))),Ce==="audio"&&x.createElement("audio",{controls:!0,src:`${(Pe==null?void 0:Pe.indexOf("http://"))>-1||(Pe==null?void 0:Pe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Pe}`,autoPlay:!0}),Ce==="video"&&x.createElement(x.Fragment,null,(Pe==null?void 0:Pe.indexOf("http"))>-1?x.createElement("video",{controls:!0,src:`${Pe}`,autoPlay:!0}):x.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Pe}`,autoPlay:!0})),Ce==="office"&&Ge&&x.createElement("iframe",{src:`${Ve}/office.html?key=${Ge.key}&url=${btoa(Ge.url)}&callbackUrl=${tt+(Ge.callbackUrl||"")}&fileType=${Ge.fileType}&title=${Ge.title||""}&model=${be}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!He}`}),Ce==="html"&&x.createElement("iframe",{src:Pe+"&disposition=inline"}),Ce==="pdf"&&x.createElement("iframe",{id:"pdfiframe",src:`${Ve}/js/pdf/index.html?filename=${Ee||"educoder.pdf"}&url=${encodeURIComponent(Pe)}&disabledDownload=${!!He}&model=${be}`}),Ce==="image"&&x.createElement("img",{src:`${(Pe==null?void 0:Pe.indexOf("http://"))>-1||(Pe==null?void 0:Pe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Pe}`}),(Ce==="other"||Ce==="download")&&x.createElement(x.Fragment,null,ot?x.createElement(ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:x.createElement(a.ZP,{icon:x.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:He},"\u4E0B\u8F7D")}):x.createElement(a.ZP,{type:"primary",size:"middle",onClick:te,disabled:He},x.createElement(Te.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ce==="flowChart"&&x.createElement("div",{className:"embed"},x.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Pe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},67522:function(Jt,jt,Ie){"use strict";Ie.d(jt,{h:function(){return ae},x:function(){return se}});var ge=Ie(46195),gt=Ie(32783),a=Ie(75363),Te=Ie(59301),xe=Object.defineProperty,z=Object.defineProperties,E=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,le=(ce,pe,me)=>pe in ce?xe(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:me}):ce[pe]=me,x=(ce,pe)=>{for(var me in pe||(pe={}))ie.call(pe,me)&&le(ce,me,pe[me]);if(oe)for(var me of oe(pe))ee.call(pe,me)&&le(ce,me,pe[me]);return ce},ne=(ce,pe)=>z(ce,E(pe)),re=(ce,pe)=>{var me={};for(var he in ce)ie.call(ce,he)&&pe.indexOf(he)<0&&(me[he]=ce[he]);if(ce!=null&&oe)for(var he of oe(ce))pe.indexOf(he)<0&&ee.call(ce,he)&&(me[he]=ce[he]);return me};const ae=ce=>{var pe=ce,{value:me,onChange:he,scrollId:be}=pe,Pe=re(pe,["value","onChange","scrollId"]);return Te.createElement("div",{id:be||""},Te.createElement(ge.Z,ne(x({},Pe),{defaultValue:me,onChange:(Me,_e)=>{_e!=null&&_e.length?he(Me,_e):he(Me)}})))},se=({value:ce,onChange:pe,placeholder:me,height:he=140,isEdit:be,miniToolbar:Pe,watch:Me=!0})=>be?Te.createElement(ge.Z,{watch:Me,isFocus:!0,height:he||void 0,placeholder:me,defaultValue:ce,onChange:pe,miniToolbar:Pe}):Te.createElement("div",{style:{cursor:"pointer"}},ce?Te.createElement(a.Z,{className:gt.Z.inputBorder,value:ce}):Te.createElement("div",{className:`${gt.Z.inputBorder} ${gt.Z.placeholder} inputBorderError`},me))},75363:function(Jt,jt,Ie){"use strict";Ie.d(jt,{z:function(){return je},Z:function(){return ke}});var ge=Ie(59301),gt=Ie(84390),a=Ie(25386),Te=Ie(64018),xe=Ie(16471),z=Ie(58962),E=Ie(49411),oe=Ie(15342),ie=Ie(44104),ee=Ie(7939),le=Ie(1012),x=Ie(42576),ne=Ie(59301),ae=({html:Be})=>{const Ae=(0,ge.useRef)(null),ve=(0,ge.useRef)(null),Ue=`.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,ge.useEffect)(()=>{const He=Ae.current.attachShadow({mode:"open"});ve.current=document.createElement("div"),ve.current.className="markdown-body",ve.current.innerHTML=Be,He.appendChild(ve.current);const Ye=document.createElement("style");return Ye.textContent=Ue,He.appendChild(Ye),()=>{He.innerHTML=""}},[]),(0,ge.useEffect)(()=>{ve.current&&(ve.current.innerHTML=Be)},[Be]),ne.createElement("div",{ref:Ae})};function se(Be){const Ae=["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"],ve=new RegExp(`\\b(${Ae.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ue=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Be.replace(ve,"").replace(Ue,"").trim()}var ce={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},pe=Object.defineProperty,me=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Pe=(Be,Ae,ve)=>Ae in Be?pe(Be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Be[Ae]=ve,Me=(Be,Ae)=>{for(var ve in Ae||(Ae={}))he.call(Ae,ve)&&Pe(Be,ve,Ae[ve]);if(me)for(var ve of me(Ae))be.call(Ae,ve)&&Pe(Be,ve,Ae[ve]);return Be};const _e="@\u2581\u2581@",De="@\u2581@",Ce=/<pre[^>]*>/g;function Ee(Be){let Ae=document.createElement("div");return Ae.innerHTML=Be,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const je=(Be,Ae)=>{Be=Be||"";const ve=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ue=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ye=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?Be.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ve,(ot,Fe,Ke,rt,nt,et,Ge)=>{const Xe=Fe||rt||et,Ve=Ke||nt||Ge||"?";return z.Z.API_SERVER+"/api/attachments/"+Xe+Ve+"&t="+(0,E.Jn)(Xe,Date.now())+(ot.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Be=Be.replace(Ye,(ot,Fe,Ke,rt,nt,et,Ge)=>{const Xe=Fe||rt||et,Ve=Ke||nt||Ge||"?";return z.Z.API_SERVER+"/attachments/download/"+Xe+Ve+"&t="+(0,E.Jn)(Xe,Date.now())+(ot.indexOf(")")>-1?")":"&")}).replace(ve,(ot,Fe,Ke,rt,nt,et,Ge)=>{const Xe=Fe||rt||et,Ve=Ke||nt||Ge||"?";return z.Z.API_SERVER+"/api/attachments/"+Xe+Ve+"&t="+(0,E.Jn)(Xe,Date.now())+(ot.indexOf(")")>-1?")":"&")}).replace(Ue,(ot,Fe,Ke,rt,nt)=>{const et=Fe||rt,Ge=Ke||nt||"";return'"'+z.Z.API_SERVER+"/api/attachments/"+et+Ge+et+Ge+"&t="+(0,E.Jn)(et,Date.now())}).replace(He,(ot,Fe,Ke,rt,nt)=>{const et=Fe||rt,Ge=Ke||nt||"";return"("+z.Z.API_SERVER+"/files/uploads/"+et+Ge+et+Ge+"&t="+(0,E.Jn)(et,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Be)};var ke=({value:Be="",edit:Ae=!1,className:ve,showTextOnly:Ue,showLines:He,style:Ye={},stylesPrev:ot={},highlightKeywords:Fe,showProgramFill:Ke,isProgramFill:rt,disabledFill:nt=!1,programFillValue:et,openEditor:Ge=()=>{},onFillChange:Xe=Qe=>{},onFillBlur:Ve=()=>{},onFillFocus:tt=()=>{}})=>{let Qe=se(String(Be||""));const ct=(0,ge.useRef)(),at=(0,ge.useRef)(),[qe,Le]=(0,ge.useState)(""),[Ne,te]=(0,ge.useState)("office"),[de,Re]=(0,ge.useState)([]),We=(0,ge.useRef)("a"+(0,le.Z)()),we={},ye=xt=>/<style[\s\S]*?>/i.test(xt||""),Oe=(xt,At,It)=>{const ht=document.createElement(xt===De?"input":"textarea");ht.style.width="100%",ht.style.height=xt===De?"40px":"151px",ht.rows=5,ht.spellcheck=!1,ht.name="edu-program-fill",ht.placeholder="\u8BF7\u8F93\u5165",ht.dataset.id=At;const Ct=Object.keys(we).length;return we[Ct]=ht,`<span class="edu-program-fill-wrap ${xt===De?"":"show"}" style="width:${xt===De?"600px":"100%"}" title=${It||""}><span>${ht.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function $e(xt){return xt=xt.replace(/!\[.*?\]\(.*?\)/g,""),xt=xt.replace(/\[.*?\]\(.*?\)/g,""),xt=xt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),xt=xt.replace(/<embed.*?>/g,""),xt=xt.replace(/<img.*?>/g,""),xt=xt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),xt=xt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),xt=xt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),xt=xt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),xt}const Ze=xt=>!Ue&&ye(Qe)?xt:xt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(At,It){let ht=It.replace(/(\n|\r)/g,"").split("}"),Ct=[];return ht.map(Ht=>{Ht!=""&&Ct.push(`.${We.current} ${Ht}`)}),`<style>${Ct.join("}")}</style>`}),Je=(0,ge.useMemo)(()=>{(0,a.Iy)();try{const ht=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ct=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ht=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Vt=/\(\/attachments\/download\//g;Qe=Qe.replace(Vt,"("+z.Z.API_SERVER+"/attachments/download/").replace(ht,"("+z.Z.API_SERVER+"/api/attachments/").replace(Ct,'"'+z.Z.API_SERVER+"/api/attachments/").replace(Ht,'"'+z.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,`
`),ct.current.style.display="none"}catch(ht){}if(Ke){let ht=-1;return Qe=Qe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Ct,Ht,Vt){var vt;return++ht,Oe(Ct,ht,(vt=et==null?void 0:et[ht])==null?void 0:vt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ze(Qe||"")}</pre>`}let xt=Ze(Qe);xt=(0,a.ZP)(xt);const At=(0,a.ez)();Qe.match(/\[TOC\]/)&&(xt=xt.replace("<p>[TOC]</p>",(0,a.Qv)()),(0,a.Iy)()),xt=xt.replace(/(__special_katext_id_\d+__)/g,(ht,Ct)=>{const{type:Ht,expression:Vt}=At[Ct];return(0,oe.renderToString)(Ee(Vt)||"",{displayMode:Ht==="block",throwOnError:!1,output:"html"})}),xt=xt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,a.AL)();const It=document.createElement("div");if(It.innerHTML=xt,Ue)return It.innerText;if(Fe){const ht=Fe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Tt(It,ht),It.innerHTML}return setTimeout(()=>yt(),500),It.innerHTML},[Qe,Fe]);(0,ge.useEffect)(()=>{St.current&&St.current.querySelectorAll(["input","textarea"]).forEach(At=>{At.oninput=st,At.onblur=lt,At.onfocus=ft})},[de]),(0,ge.useEffect)(()=>{var xt,At,It,ht,Ct;if(et!=null&&et.length)try{const Ht=St.current.querySelectorAll(".edu-program-fill-score"),Vt=St.current.querySelectorAll('[name="edu-program-fill"]');for(const[vt,kt]of Vt.entries())kt.value=((xt=et==null?void 0:et[vt])==null?void 0:xt.value)||"",((At=et==null?void 0:et[vt])==null?void 0:At.type)==="warning"?kt.className="program-fill-warning":((It=et==null?void 0:et[vt])==null?void 0:It.type)==="success"?kt.className="program-fill-success":kt.className="";for(const[vt,kt]of Ht.entries())kt.innerHTML=(ht=et==null?void 0:et[vt])!=null&&ht.score?`${(Ct=et==null?void 0:et[vt])==null?void 0:Ct.score}\u5206`:"";Re(et)}catch(Ht){console.log(Ht,"error")}},[et]);const st=xt=>{de[xt.target.dataset.id]=de[xt.target.dataset.id]||{},de[xt.target.dataset.id].value=xt.target.value,Re([...de]),Xe(de,xt.target.dataset.id)},lt=xt=>{de[xt.target.dataset.id]=de[xt.target.dataset.id]||{},de[xt.target.dataset.id].value=xt.target.value,Re([...de]),Ve(de,xt.target.dataset.id)},ft=xt=>{de[xt.target.dataset.id]=de[xt.target.dataset.id]||{},de[xt.target.dataset.id].value=xt.target.value,Re([...de]),tt(de,xt.target.dataset.id)};function Tt(xt,At){return xt.childNodes.forEach(It=>{var ht;if(It.childNodes.length>0)Tt(It,At);else if(It.nodeName!=="IMG")if(It.innerHTML)It.innerHTML=(ht=It.innerHTML)==null?void 0:ht.replace(new RegExp(At,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ct=document.createElement("span");Ct.innerHTML=It.textContent.replace(new RegExp(At,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),It.replaceWith(Ct)}})}const St=(0,ge.useRef)();a.jb.WebkitLineClamp=He,He&&(Ye=Me(Me({},Ye),a.jb));function Ot(xt){let At=xt.target;if(At.tagName.toUpperCase()==="A"){let It=At.getAttribute("href");if(It.indexOf("office")>-1)xt.preventDefault(),Le(It),te("office");else if(It.indexOf("application/pdf")>-1)xt.preventDefault(),Le(It),te("pdf");else if(It.indexOf("text/html")>-1)xt.preventDefault(),Le(It),te("html");else if(It.startsWith("#")){xt.preventDefault();let ht=document.getElementById(It.replace("#",""));ht&&ht.scrollIntoView(!0)}}}const yt=()=>{var xt;const At=(xt=St.current)==null?void 0:xt.querySelectorAll("video");At==null||At.forEach(It=>{if(It.oncontextmenu=()=>!1,It.src.indexOf(".m3u8")>-1&&!It.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var ht=new xe.ZP;ht.loadSource(It.src),ht.attachMedia(It)}}})};(0,ge.useEffect)(()=>{if(St.current&&Je&&Je.match(Ce)&&window.PR.prettyPrint(),St.current)return St.current.addEventListener("click",Ot),()=>{var xt;(xt=St.current)==null||xt.removeEventListener("click",Ot),(0,a.AL)(),(0,a.Iy)()}},[Je,St.current,Ot]);const Dt=xt=>{xt.target.nodeName==="IMG"&&xt.target.className.indexOf("draw-flowchart")>-1?(ct.current.style.zIndex=1,ct.current.style.display="flex",ct.current.style.width=xt.target.clientWidth+"px",ct.current.style.height=xt.target.clientHeight+"px",ct.current.style.top=xt.target.offsetTop+"px",ct.current.style.left=xt.target.offsetLeft+"px",xt.target.id&&(at.current=xt.target.id)):ct.current.style.display="none"},Et=()=>{ct.current.style.display="none"};return(0,ge.useEffect)(()=>{var xt;const At=It=>{It.preventDefault(),It.clipboardData.setData("text",window.getSelection().toString())};return(xt=St.current)==null||xt.addEventListener("copy",At),()=>{var It;(It=St.current)==null||It.removeEventListener("copy",At)}},[St.current]),ge.createElement("div",{style:{position:"relative"},onMouseLeave:Et},Ue&&ge.createElement("div",{ref:St,className:`${ce.mdBody} `},Je),!Ue&&!ye(Je)&&ge.createElement("div",{ref:St,style:Me({},Ye),onMouseOver:Dt,className:`${ve||""} ${nt?"disabled-fill":""} markdown-body ${ce.mdBody} ${We.current}`,dangerouslySetInnerHTML:{__html:Je}}),!Ue&&ye(Je)&&ge.createElement(ae,{html:Je}),ge.createElement("div",{ref:ct,className:`${ce.button} ${Ae?"":ce.previewFlowChart}`},ge.createElement(ie.Z,null,ge.createElement(ee.ZP,{onClick:()=>{Ae?Ge(at.current):(Le(at.current),te("flowChart"))}},Ae?"\u7F16\u8F91":"\u9884\u89C8"))),ge.createElement(x.Z,{close:!0,data:qe,type:qe!=null&&qe.length?Ne:"",style:Me({},ot),onClose:()=>Le("")}))}},46666:function(Jt,jt,Ie){"use strict";Ie.d(jt,{cT:function(){return Ce},pe:function(){return Me}});var ge=Ie(59301),gt=Ie(94968),a=Ie(6767),Te=Ie(82875),xe=Ie(28209),z=Ie.n(xe),E=Ie(1012),oe=Ie(73635),ie=Ie(47257),ee=Ie.n(ie),le=Object.defineProperty,x=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ce=(je,ke,Be)=>ke in je?le(je,ke,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[ke]=Be,pe=(je,ke)=>{for(var Be in ke||(ke={}))ae.call(ke,Be)&&ce(je,Be,ke[Be]);if(re)for(var Be of re(ke))se.call(ke,Be)&&ce(je,Be,ke[Be]);return je},me=(je,ke)=>x(je,ne(ke)),he=(je,ke)=>{var Be={};for(var Ae in je)ae.call(je,Ae)&&ke.indexOf(Ae)<0&&(Be[Ae]=je[Ae]);if(je!=null&&re)for(var Ae of re(je))ke.indexOf(Ae)<0&&se.call(je,Ae)&&(Be[Ae]=je[Ae]);return Be},be=(je,ke,Be)=>new Promise((Ae,ve)=>{var Ue=ot=>{try{Ye(Be.next(ot))}catch(Fe){ve(Fe)}},He=ot=>{try{Ye(Be.throw(ot))}catch(Fe){ve(Fe)}},Ye=ot=>ot.done?Ae(ot.value):Promise.resolve(ot.value).then(Ue,He);Ye((Be=Be.apply(je,ke)).next())});const{Dragger:Pe}=gt.default,Me=je=>{const ke="bf3c199c2470cb477d907b1e0917c17b",Be="5183666c72eec9e4";var Ae=z().enc.Utf8.parse(ke);let ve=z().enc.Utf8.parse(Be);var Ue=z().AES.decrypt(je,Ae,{iv:ve,mode:z().mode.CBC});return Ue.toString(z().enc.Utf8)};let _e;const De=je=>be(void 0,[je],function*({identifier:ke,oldFilename:Be,newFilename:Ae}){var ve,Ue,He,Ye,ot,Fe;const Ke=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});Ke.data=JSON.parse(Me(Ke.data));const rt=new OSS({endpoint:(ve=Ke==null?void 0:Ke.data)==null?void 0:ve.end_point,region:(Ue=Ke==null?void 0:Ke.data)==null?void 0:Ue.region,accessKeyId:(He=Ke==null?void 0:Ke.data)==null?void 0:He.access_key_id,accessKeySecret:(Ye=Ke==null?void 0:Ke.data)==null?void 0:Ye.access_key_secret,bucket:(ot=Ke==null?void 0:Ke.data)==null?void 0:ot.bucket,stsToken:(Fe=Ke==null?void 0:Ke.data)==null?void 0:Fe.security_token});return new Promise((nt,et)=>{console.log(11111,`${ke}/${Be}`,`${ke}/${Ae}`,Ke.data),rt.copy(`/${ke}/${Be}`,`/${ke}/${Ae}`).then(Ge=>{console.log("\u62F7\u8D1D\u6210\u529F",Ge)}).catch(Ge=>{console.log(Ge)})})}),Ce=(je,ke,Be)=>be(void 0,null,function*(){var Ae,ve,Ue,He,Ye,ot;ke.file_name=je.name;const Fe=yield(0,Te.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Me(Fe.data)),Fe.data=JSON.parse(Me(Fe.data));const Ke=je.name.split(".");Ke.pop();const rt=ke.realFileName?Ke.join(""):(0,E.Z)(),nt=new(ee())({endpoint:(Ae=Fe==null?void 0:Fe.data)==null?void 0:Ae.end_point,region:(ve=Fe==null?void 0:Fe.data)==null?void 0:ve.region,accessKeyId:(Ue=Fe==null?void 0:Fe.data)==null?void 0:Ue.access_key_id,accessKeySecret:(He=Fe==null?void 0:Fe.data)==null?void 0:He.access_key_secret,bucket:(Ye=Fe==null?void 0:Fe.data)==null?void 0:Ye.bucket,stsToken:(ot=Fe==null?void 0:Fe.data)==null?void 0:ot.security_token});return new Promise((et,Ge)=>{var Xe;nt.multipartUpload(`${rt}`,new Blob([je],{type:je.type}),me(pe({timeout:200*1e3,partSize:102400},Be),{callback:{url:(Xe=Fe==null?void 0:Fe.data)==null?void 0:Xe.callback_url,host:Fe==null?void 0:Fe.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Te.rz)(ke)}})).then(function(Ve){var tt;je.response=(tt=Ve.data)==null?void 0:tt.data,et(Ve==null?void 0:Ve.data)}).catch(function(Ve){Ge(Ve),console.log("err:",Ve)})})}),Ee=je=>{var ke=je,{user:Be,cancelUpload:Ae}=ke,ve=he(ke,["user","cancelUpload"]);const[Ue,He]=(0,ge.useState)([]);let[Ye,ot]=(0,ge.useState)();const Fe={onRemove:rt=>{He([...Ue.filter(nt=>nt.name!==rt.name)]),ve.onChange(Ue.filter(nt=>nt.name!==rt.name))},disabled:ve.disabled,multiple:!0,fileList:Ue==null?void 0:Ue.map(rt=>rt.file),customRequest:()=>{},beforeUpload:rt=>be(void 0,null,function*(){let nt=ve.maxSize||1073741824;if(Ue.filter(et=>et.name===rt.name).length){a.ZP.info(`${rt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(rt==null?void 0:rt.size)>nt?(a.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${nt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ue.push({name:rt.name,file:rt}),He([...Ue]),ve.onChange(Ue),!1)})},Ke=(rt,nt)=>be(void 0,null,function*(){var et,Ge,Xe,Ve,tt,Qe;nt.file_name=rt.name;const ct=rt.name,at=yield(0,Te.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(at.data=JSON.parse(Me(at.data)),(at==null?void 0:at.status)!==0){Ue[Ue.findIndex(Ne=>Ne.name===ct)].status="error",Ue[Ue.findIndex(Ne=>Ne.name===ct)].file.status="error",ve.onChange(Ue),a.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Ye=new(ee())({endpoint:(et=at==null?void 0:at.data)==null?void 0:et.end_point,region:(Ge=at==null?void 0:at.data)==null?void 0:Ge.region,accessKeyId:(Xe=at==null?void 0:at.data)==null?void 0:Xe.access_key_id,accessKeySecret:(Ve=at==null?void 0:at.data)==null?void 0:Ve.access_key_secret,bucket:(tt=at==null?void 0:at.data)==null?void 0:tt.bucket,stsToken:(Qe=at==null?void 0:at.data)==null?void 0:Qe.security_token}),console.log(rt,"file"),ot(Ye);const qe=rt.name.split(".");qe.pop();const Le=ct.indexOf(".")>-1?nt.realFileName?qe.join("."):(0,E.Z)():ct;return new Promise((Ne,te)=>{var de;try{Ye.multipartUpload(`${ve.identifier}/${Le}${ct.indexOf(".")>-1?"."+ct.split(".").pop():""}`,new Blob([rt.file],{type:rt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Re,We,we)=>{try{console.log("\u8FDB\u5EA6",Re,We,we);const ye=Ue.findIndex(Oe=>Oe.name===ct);Ue[ye].file.percent=Re*100,Ue[ye].tempCheckpoint=We,He([...Ue])}catch(ye){}},checkpoint:Ue[Ue.findIndex(Re=>Re.name===ct)].tempCheckpoint,callback:{customValue:{id:ct+""},url:(de=at==null?void 0:at.data)==null?void 0:de.callback_url,host:at==null?void 0:at.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Te.rz)(nt)}}).then(function(Re){var We,we,ye;const Oe=Ue.findIndex(Ze=>Ze.name===ct);let $e="done";if(((We=Re.data)==null?void 0:We.status)===0){rt.response=(we=Re.data)==null?void 0:we.data;const Ze=Ue.findIndex(Je=>Je.name===ct);Ue[Ze].status="done",Ue[Ze].file.status="done"}else a.ZP.warning((ye=Re.data)==null?void 0:ye.message),$e="error";Ue[Oe].status=$e,Ue[Oe].file.status=$e,ve.onChange(Ue),Ne(Re==null?void 0:Re.data)}).catch(function(Re){Ue[Ue.findIndex(We=>We.name===ct)].status="error",Ue[Ue.findIndex(We=>We.name===ct)].file.status="error",a.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),He([...Ue]),ve.onChange(Ue),te(Re),console.log("err:",Re)})}catch(Re){}})});return(0,ge.useEffect)(()=>{Ue.every(rt=>rt==="done"||rt==="error")&&ve.onComplete(Ue)},[Ue]),(0,ge.useEffect)(()=>{Ae&&(Ye==null||Ye.cancel())},[Ae]),(0,ge.useEffect)(()=>{ve.uploading&&Ue.map(rt=>be(void 0,null,function*(){var nt;if((!rt.status||rt.status==="error")&&!Ae){rt.status="uploading",rt.file.status="uploading";const et=yield Ke(rt,{login:(nt=Be==null?void 0:Be.userInfo)==null?void 0:nt.login,container_type:ve.container_type,container_id:ve.container_id,description:ve.description,realFileName:ve.realFileName})}}))},[ve.uploading]),ge.createElement(Pe,me(pe({},Fe),{height:ve.height,className:ve.className}),ge.createElement("p",{className:"ant-upload-hint"},ve.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};jt.ZP=(0,oe.connect)(({loading:je,globalSetting:ke,user:Be})=>({globalSetting:ke,loading:je.models.competitions,user:Be}))(Ee)},11897:function(Jt,jt,Ie){"use strict";Ie.d(jt,{h:function(){return be}});var ge=Ie(59301),gt=Ie(82326),a=Ie(28284),Te=Ie(7939),xe=Ie(89780),z=Ie.n(xe),E=Ie(47618),oe=Ie(43334),ie=Object.defineProperty,ee=Object.defineProperties,le=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ae=(Pe,Me,_e)=>Me in Pe?ie(Pe,Me,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Pe[Me]=_e,se=(Pe,Me)=>{for(var _e in Me||(Me={}))ne.call(Me,_e)&&ae(Pe,_e,Me[_e]);if(x)for(var _e of x(Me))re.call(Me,_e)&&ae(Pe,_e,Me[_e]);return Pe},ce=(Pe,Me)=>ee(Pe,le(Me));const pe=gt.default.Option,me={labelCol:{span:4},wrapperCol:{span:20}},he={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"]};jt.Z=({callback:Pe,onCancel:Me})=>{const[_e,De]=(0,ge.useState)("python");function Ce(je){De(he[je][1])}function Ee(je){Pe(je)}return ge.createElement(a.default,ce(se({},me),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),ge.createElement(a.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ge.createElement(gt.default,{getPopupContainer:je=>je.parentNode,onChange:Ce},Object.keys(he).map(je=>ge.createElement(pe,{key:je,value:je},he[je][0])))),ge.createElement(a.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ge.createElement(be,{mode:_e})),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(Te.ZP,{type:"ghost",onClick:Me},"\u53D6\u6D88")))};function be({value:Pe,onChange:Me,mode:_e,options:De={}}){const Ce=(0,ge.useRef)(),[Ee,je]=(0,ge.useState)();return(0,ge.useEffect)(()=>{if(Ee){let ke=function(Be){const Ae=Be.getValue();Me&&Me(Ae)};return Ee.on("change",ke),()=>{Ee.off("change",ke)}}},[Ee,Me]),(0,ge.useEffect)(()=>{Ee&&Ee.setOption("mode",_e)},[Ee,_e]),(0,ge.useEffect)(()=>{Ee&&(Pe!==Ee.getValue()||Pe==="")&&setTimeout(()=>{Ee.setValue(Pe||"")},300)},[Ee,Pe]),(0,ge.useEffect)(()=>{if(Ce.current&&!Ee){const ke=z().fromTextArea(Ce.current,se({mode:_e,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},De));je(ke)}},[Ce.current,Ee]),ge.createElement("div",{className:"my-codemirror-container"},ge.createElement("textarea",{ref:Ce}))}},46195:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return qt}});var ge=Ie(59301),gt=Ie(73635),a=Ie(89780),Te=Ie.n(a),xe=Ie(76374),z=Ie(47618),E=Ie(6313),oe=Ie(25717),ie=Ie(99498),ee=Ie(25419),le=Ie(67549),x=Ie(75363),ne=({value:Xt="",className:ur,showTextOnly:lr,showLines:ar,style:Cr={}})=>{const Ar=(0,ge.useMemo)(()=>"",[Xt]);return ge.createElement(ge.Fragment,null,ge.createElement("div",{dangerouslySetInnerHTML:{__html:Ar}}))},re=Object.defineProperty,ae=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,he=(Xt,ur,lr)=>ur in Xt?re(Xt,ur,{enumerable:!0,configurable:!0,writable:!0,value:lr}):Xt[ur]=lr,be=(Xt,ur)=>{for(var lr in ur||(ur={}))pe.call(ur,lr)&&he(Xt,lr,ur[lr]);if(ce)for(var lr of ce(ur))me.call(ur,lr)&&he(Xt,lr,ur[lr]);return Xt},Pe=(Xt,ur)=>ae(Xt,se(ur));let Me=[{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 _e({onActionCallback:Xt,title:ur,icon:lr,actionName:ar,className:Cr="",children:Ar}){function Tr(){Xt(ar)}return ge.createElement("a",{title:ur,className:Cr,onClick:Tr},ge.createElement("i",{className:`${lr}`}),Ar)}var De=({watch:Xt,showNullButton:ur,showNullProgramButton:lr,onActionCallback:ar,fullScreen:Cr,insertTemp:Ar,hidetoolBar:Tr,extraUse:Nr})=>{const jr=[...Me,{title:`${Xt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Xt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ge.createElement("ul",{className:"markdown-toolbar-container"},!Tr&&jr.map((Zr,Wr)=>ge.createElement("li",{key:Wr},Zr.actionName?ge.createElement(_e,Pe(be({},Zr),{onActionCallback:ar})):ge.createElement("span",{className:"v-line"}))),ur?ge.createElement("li",null,ge.createElement(_e,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ar},ge.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,lr?ge.createElement(ge.Fragment,null,ge.createElement("li",null,ge.createElement(_e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ar},ge.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ge.createElement("li",null,ge.createElement(_e,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ar},ge.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Ar&&ge.createElement("li",null,ge.createElement(_e,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ar}`,onActionCallback:ar},ge.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nr&&ge.createElement("li",null,Nr),ge.createElement("li",{className:"btn-full-screen"},ge.createElement(_e,{icon:`${Cr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Cr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ar})))},Ce=Ie(81675),Ee=Ie(28284),je=Ie(37568),ke=Ie(7939),Be=Object.defineProperty,Ae=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,ot=(Xt,ur,lr)=>ur in Xt?Be(Xt,ur,{enumerable:!0,configurable:!0,writable:!0,value:lr}):Xt[ur]=lr,Fe=(Xt,ur)=>{for(var lr in ur||(ur={}))He.call(ur,lr)&&ot(Xt,lr,ur[lr]);if(Ue)for(var lr of Ue(ur))Ye.call(ur,lr)&&ot(Xt,lr,ur[lr]);return Xt},Ke=(Xt,ur)=>Ae(Xt,ve(ur));const rt={labelCol:{span:4},wrapperCol:{span:20}};var nt=({callback:Xt,onCancel:ur})=>{function lr(ar){Xt(ar)}return ge.createElement(Ee.default,Ke(Fe({},rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:lr,style:{width:500}}),ge.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ge.createElement(je.default,null)),ge.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ge.createElement(je.default,null)),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(ke.ZP,{type:"ghost",onClick:ur},"\u53D6\u6D88")))},et=Ie(11897),Ge=Ie(59165),Xe=Ie(62957),Ve=Ie(77019),tt=Ie(95382),Qe=Ie(59301),ct=({callback:Xt,onCancel:ur})=>{const lr=document.createElement("canvas"),ar=lr.getContext("2d");lr.width=1e3,lr.height=800,ar.fillStyle="#ffffff",ar.fillRect(0,0,lr.width,lr.height);const Cr=lr.toDataURL("image/png");return Qe.createElement(Xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(Ve.Z,{style:{height:"100vh"}},Qe.createElement(tt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Cr,visible:!0,title:String(Date.now())},onOk:Ar=>{Xt({src:Ar.url})},onClose:ur})))},at=Ie(36207),qe=Ie(5269),Le=Ie(6767),Ne={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=Ie(59301),Re=(0,ge.forwardRef)(({onCancel:Xt,editImgId:ur,callback:lr},ar)=>{let Cr=(0,ge.useRef)(),Ar=(0,ge.useRef)(),Tr=(0,ge.useRef)(),Nr=(0,ge.useRef)(!1);const jr=(0,ge.useRef)(!1);console.log("ref:",ar);const[Zr,Wr]=(0,ge.useState)(0),[er,or]=(0,ge.useState)("100vh");return(0,ge.useEffect)(()=>{Wr(1)},[]),(0,ge.useImperativeHandle)(ar,()=>({setHeight:or})),te.createElement("div",{ref:jr,className:"body-overflow-initial"},te.createElement(at.Z,{width:"100vw",height:er,footer:null,closable:!0,placement:"bottom",open:!!Zr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ne.drawerWrap}`,onClose:()=>{window.saveDrawData(Ir=>{lr({src:`/api/attachments/${Ir}`,id:Ir})})},title:te.createElement(Ve.Z,{align:"middle"},te.createElement(qe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(qe.Z,{onClick:()=>{or(er==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(qe.Z,{onClick:()=>{window.saveDrawData(Ir=>{if(Ir===null){Le.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Le.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),lr({src:`/api/attachments/${Ir}`,id:Ir,disabledClose:!0})})}},te.createElement(ke.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${ur||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ar})))}),We=Ie(58962),we=Ie(47889),ye=Ie(4875);const Oe=we.ZP.Group,$e={margin:"0 8px"};var Ze=({callback:Xt,onCancel:ur})=>{function lr(ar){Xt(ar)}return ge.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:lr},ge.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ge.createElement("span",{style:$e},"\u5355\u5143\u683C\u6570\uFF1A"),ge.createElement("span",{style:$e},"\u884C\u6570"),ge.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ge.createElement(ye.Z,null)),ge.createElement("span",{style:$e},"\u5217\u6570"),ge.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ge.createElement(ye.Z,null))),ge.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ge.createElement("span",{style:$e},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ge.createElement(Ee.default.Item,{name:"align"},ge.createElement(Oe,null,ge.createElement(we.ZP,{value:"default"},ge.createElement("i",{className:"fa fa-align-justify"})),ge.createElement(we.ZP,{value:"left"},ge.createElement("i",{className:"fa fa-align-left"})),ge.createElement(we.ZP,{value:"center"},ge.createElement("i",{className:"fa fa-align-center"})),ge.createElement(we.ZP,{value:"right"},ge.createElement("i",{className:"fa fa-align-right"}))))),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(ke.ZP,{type:"ghost",onClick:ur},"\u53D6\u6D88")))},Je=Ie(58755),st=Ie(95075),lt=Ie.n(st),Tt=(0,ge.forwardRef)(({use3d:Xt,width:ur,height:lr,callback:ar,showSaveButton:Cr},Ar)=>{const Tr=(0,ge.useRef)(),Nr=(0,ge.useRef)(),[jr,Zr]=(0,ge.useState)(!1),Wr=(0,ge.useRef)({id:Tr,appName:"graphing",width:ur||1e3,height:lr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ge.useEffect)(()=>{Nr.current=new(lt())(Wr.current,!0),window.onload=function(){Nr.current.inject("applet_container")}},[]);const er=()=>{var or=window.ggbApplet.getPNGBase64(1,!0,72);return ar&&ar(or),or};return(0,ge.useEffect)(()=>{Wr.current.appName=jr?"3D":"graphing",Nr.current.inject("applet_container")},[jr]),(0,ge.useEffect)(()=>{Zr(Xt)},[Xt]),(0,ge.useImperativeHandle)(Ar,()=>({getImgData:er})),ge.createElement(ge.Fragment,null,ge.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Tr}),ge.createElement(Ve.Z,{align:"middle"},ge.createElement(qe.Z,{flex:1},ge.createElement(Je.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:jr,onChange:or=>Zr(or)})),ge.createElement(qe.Z,null,ge.createElement(ke.ZP,{size:"large",onClick:er,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),St=Ie(58629);const Ot="link",yt="upload-image",Dt="add-flowchart",Et="draw-image",xt="add-flowchart",At="code-block",It="add-table",ht="------------",Ct={default:ht,left:`:${ht}`,center:`:${ht}:`,right:`${ht}:`};var Ht=Ie(14167),Vt=Ie(49411);function vt(){}let kt=0;const $t=1e4,Kt="\u2581",tr="@\u2581\u2581@",sr="@\u2581@",gr=`
**\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`,br=["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 fr(Xt){return/^\d+$/.test(Xt)?`${Xt}px`:Xt}const ir=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Yt={[ir+"-B"]:"bold",[ir+"-I"]:"italic"},Qt={[Ot]:"\u6DFB\u52A0\u94FE\u63A5",[At]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[yt]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\u6DFB\u52A0\u753B\u56FE",[Dt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[It]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var qt=({defaultValue:Xt="",onChange:ur,width:lr="100%",height:ar=400,miniToolbar:Cr=!1,isFocus:Ar=!1,watch:Tr,insertTemp:Nr,mode:jr="markdown",id:Zr="markdown-editor-id",showResizeBar:Wr=!1,noStorage:er=!1,showNullButton:or=!1,showNullProgramButton:Ir=!1,hidetoolBar:xr=!1,fullScreen:Pt=!1,onBlur:Lt,onCMBeforeChange:bt,onFullScreen:Mt,className:wt="",disablePaste:Nt=!1,disabled:pt=!1,disabledFill:Bt=!1,placeholder:Wt="",values:Gt="",extraUse:zt,onAddBlank:Rt})=>{const[_t,Ut]=(0,ge.useState)(null),[dr,cr]=(0,ge.useState)(Xt),[hr,Br]=(0,ge.useState)(Tr),[Fr,Hr]=(0,ge.useState)(Pt),[_r,Pr]=(0,ge.useState)(""),[Rr,Ur]=(0,ge.useState)(0),[Qr,Vr]=(0,ge.useState)(ar),[Jr,Dr]=(0,ge.useState)(!1),[tn,Gr]=(0,ge.useState)(0),[fn,pn]=(0,ge.useState)(0),ln=(0,ge.useRef)(),un=(0,ge.useRef)(),yn=(0,ge.useRef)(),sn=(0,ge.useRef)(),dn=(0,ge.useRef)(),en=(0,ge.useRef)(),mn=(0,gt.useDispatch)();(0,ge.useEffect)(()=>{const wr=window.scrollY||window.pageYOffset;cr(Gt),_t==null||_t.setValue(Gt),window.scrollTo(0,wr)},[Gt]),(0,ge.useEffect)(()=>{Mt==null||Mt(Fr)},[Fr]),(0,ge.useEffect)(()=>{if(ln.current){let wr=function(kr,Lr){var cn;if(Nt){Lr.preventDefault();return}const Pn=Lr.clipboardData;if(Pn){const Tn=Pn.types.toString(),_n=Pn.items;if(Tn==="Files"||Pn.types.indexOf("Files")>-1){if(Lr.preventDefault(),jr=="stex")return;try{let Nn=_n[1];((cn=_n[0])==null?void 0:cn.kind)==="file"&&(Nn=_n[0]);const Bn=Nn.getAsFile(),Zn=Bn.name.split(".").pop();(0,Ge.I)(Bn,$n=>{var Vn,ti,Ei;$n.id?((Vn=Bn==null?void 0:Bn.type)==null?void 0:Vn.indexOf("image"))>-1?mr.replaceSelection(`<img width="100%" src="/api/attachments/${$n.id}?type=${$n.content_type})" alt="" />`):((ti=Bn==null?void 0:Bn.type)==null?void 0:ti.indexOf("video"))>-1?mr.replaceSelection(`<video width="100%" controls src="/api/attachments/${$n.id}"></video>`):((Ei=Bn==null?void 0:Bn.type)==null?void 0:Ei.indexOf("pdf"))>-1?mr.replaceSelection(`<a href="/api/attachments/${$n.id}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):br.includes(Zn)?mr.replaceSelection(`<a href="/api/attachments/${$n.id}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):mr.replaceSelection(`[${Bn.name}](/api/attachments/${$n.id}?type=${$n.content_type})`):($n==null?void 0:$n.status)===401&&(document.location.href="/user/login")})}catch(Nn){Le.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const mr=Te().fromTextArea(ln.current,{mode:jr,lineNumbers:!Cr,lineWrapping:!0,value:Xt,autoCloseTags:!0,autoCloseBrackets:!0});return mr.on("keyup",function(kr,Lr){Lr.keyCode===8&&(kr.getValue()==""?mr.setOption("placeholder",Wt):mr.setOption("placeholder",null))}),mr.on("keydown",function(kr,Lr){if(Lr.keyCode===8){var cn=Fn(kr);cn&&Lr.preventDefault()}}),Ar&&mr.focus(),mr.on("paste",wr),pt&&mr.on("beforeChange",function(kr,Lr){(Lr.origin==="paste"||Lr.origin==="+input")&&Lr.cancel()}),Ut(mr),()=>{mr.off("paste",wr)}}},[]);const bn=(0,ge.useCallback)(()=>{if(un.current)try{}catch(wr){console.log(wr,"---- to set md editor body height")}},[Qr,un,Fr]);(0,ge.useEffect)(()=>{function wr(){let mr=new xe.Z(kr=>{for(let Lr of kr)(Lr.target.offsetHeight>0||Lr.target.offsetWidth>0)&&(bn(),_t.setSize("100%","100%"),_t.refresh())});return mr.observe(ln.current.parentElement),mr}if(_t){const mr=wr();return()=>{var kr,Lr;(kr=ln.current)!=null&&kr.parentElement&&mr.unobserve((Lr=ln.current)==null?void 0:Lr.parentElement)}}},[_t,bn]),(0,ge.useEffect)(()=>{if(_t){let wr=[];for(const[mr,kr]of Object.entries(Yt)){let Lr={[mr]:()=>{En(kr)}};wr.push(Lr),_t.addKeyMap(Lr)}return()=>{for(let mr of wr)_t.removeKeyMap(mr)}}},[_t]),(0,ge.useEffect)(()=>{Pt!==Fr&&Hr(Pt)},[Pt]),(0,Ht.Z)(()=>{if(!er&&Rr>0){let wr=new Date().getTime(),mr=window.sessionStorage.getItem(Zr);wr>=Rr+$t&&(!mr||mr!==dr)&&(window.sessionStorage.setItem(Zr,dr),Dr(!0))}},$t),(0,ge.useEffect)(()=>{Br(Tr)},[_t,Tr]),(0,ge.useEffect)(()=>{_t&&Ar&&_t.focus()},[_t,Ar]),(0,ge.useEffect)(()=>{if(hr&&_t){let wr=function(kr){let Lr=kr.target;if(sn.current){let cn=Lr.scrollTop/Lr.scrollHeight;sn.current.scrollTop=sn.current.scrollHeight*cn}};const mr=_t.getScrollerElement();return mr.addEventListener("scroll",wr),()=>{mr.removeEventListener("scroll",wr)}}},[_t,hr]),(0,ge.useEffect)(()=>{if(_t&&bt){let wr=function(mr,kr){bt(mr,kr)};return _t.on("beforeChange",wr),()=>{_t.off("beforeChange",wr)}}},[_t,bt]),(0,ge.useEffect)(()=>{if(_t&&Lt){let wr=function(){Lt(_t.getValue())};return _t.on("blur",wr),()=>{_t.off("blur",wr)}}},[_t,Lt]);function Fn(wr,mr){var kr=wr.getDoc(),Lr=kr.getCursor(),cn=kr.getLine(Lr.line),Pn=cn.charAt(Lr.ch-1),Tn=cn.lastIndexOf("@\u2581@",Lr.ch),_n=cn.lastIndexOf("@\u2581\u2581@",Lr.ch),Nn=Tn>_n?Tn:_n,Bn=Tn>_n?3:4;if(tr.indexOf(Pn)===-1)return null;if(console.log("change1:",mr,wr,cn,Lr,Nn,Tn,_n,Pn),Nn>=0&&Lr.ch-Nn<5){var Zn=Nn+Bn;return kr.replaceRange("",{line:Lr.line,ch:Nn},{line:Lr.line,ch:Zn}),{line:Lr.line,ch:Zn}}return null}(0,ge.useEffect)(()=>{if(_t){let wr=function(mr,kr){const Lr=mr.getValue();cr(Lr),Ur(new Date().getTime()),mr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ur&&(Ir?ur(Lr,Or(Lr)):ur(Lr))};return _t.on("change",wr),()=>{_t.off("change",wr)}}},[_t,ur]),(0,ge.useEffect)(()=>{if(_t)if(Xt==null)_t.setValue(""),cr("");else{const wr=window.scrollY||window.pageYOffset;Xt!==_t.getValue()&&(_t.setValue(Xt),cr(Xt),_t.setCursor(pt?1:_t.lineCount(),0),window.scrollTo(0,wr))}},[_t,Xt]);const En=(0,ge.useCallback)(wr=>{const mr=_t.getCursor(),kr=_t.getSelection();let Lr=kr.split(`
`);switch(wr){case"bold":return _t.replaceSelection("**"+kr+"**"),kr===""&&_t.setCursor(mr.line,mr.ch+2),_t.focus();case"italic":return _t.replaceSelection("*"+kr+"*"),kr===""&&_t.setCursor(mr.line,mr.ch+1),_t.focus();case"code":return _t.replaceSelection("`"+kr+"`"),kr===""&&_t.setCursor(mr.line,mr.ch+1),_t.focus();case"inline-latex":return(0,Vt.Ye)(mn)?void 0:(Pr("inline-latex"),_t.focus());case"latex":return _t.replaceSelection("```latex\n"+kr+"\n```"),_t.setCursor(mr.line+1,kr.length+1),_t.focus();case"line-break":return _t.replaceSelection(`<br/>
`),_t.focus();case"list-ul":return kr===""?_t.replaceSelection("- "+kr):_t.replaceSelection(Lr.map(cn=>cn===""?"":`- ${cn}`).join(`
`)),_t.focus();case"list-ol":return kr===""?_t.replaceSelection("1. "+kr):_t.replaceSelection(Lr.map((cn,Pn)=>cn===""?"":`${Pn+1}. ${cn}`).join(`
`)),_t.focus();case"add-null-ch":Rt==null||Rt();return;case"add-signal":return kr===""&&_t.setCursor(mr.line,mr.ch),_t.replaceSelection(sr),_t.focus();case"add-multiple":return kr===""&&_t.setCursor(mr.line,mr.ch),_t.replaceSelection(tr),_t.focus();case"inster-template-1":return kr===""&&_t.setCursor(mr.line,mr.ch),_t.replaceSelection(gr),_t.focus();case"eraser":return _t.setValue(""),_t.focus();case"trigger-watch":return Br(!hr),_t.focus();case"trigger-full-screen":return Hr(!Fr),_t.focus();case Ot:Pr(Ot);return;case At:Pr(At);return;case yt:Pr(yt);return;case Et:Pr(Et);return;case"maths-latex":if((0,Vt.Ye)(mn))return;Pr("maths-latex");return;case Dt:dn.current="",sessionStorage.removeItem("file_id"),Pr(Dt);return;case It:Pr(It);return;default:throw new Error}},[_t,hr,Fr]),Mn=(0,ge.useCallback)((wr,mr)=>{var kr,Lr,cn,Pn,Tn,_n;wr!=null&&wr.disabledClose||Pr("");const{src:Nn,alt:Bn,id:Zn}=wr||{};switch(_r){case Ot:const{title:Ri,link:xi}=wr;return _t.replaceSelection(`[${Ri}](${xi})`),_t.focus();case At:const{language:li,content:_i}=wr;return _t.replaceSelection(["```"+li,_i,"```"].join(`
`)),_t.focus();case"maths-latex":for(var $n=atob(wr),Vn=new Uint8Array($n.length),ti=0;ti<$n.length;ti++)Vn[ti]=$n.charCodeAt(ti);var Ei=new Blob([Vn],{type:"image/png"});return(0,Ge.I)(Ei,Sn=>{Sn.id?_t.replaceSelection(`![,](/api/attachments/${Sn.id}?type=${Sn.content_type})`):(Sn==null?void 0:Sn.status)===401&&(document.location.href="/user/login")}),_t.focus();case"inline-latex":return(0,Vt.Ye)(mn)?void 0:(_t.replaceSelection("`$$"+wr+"$$`"),_t.focus());case xt:return Zn?(_t.getValue().indexOf(Nn)===-1?_t.replaceSelection(`<center><img id="${Zn}" width="80%" src="${Nn}" class="draw-flowchart" alt="${Bn||""}" /></center>`):document.getElementById(Zn).src=We.Z.API_SERVER+Nn+"?t="+Date.now(),_t.focus()):void 0;case yt:case Et:const Wn=mr,Ki=(cn=(Lr=(kr=Wn==null?void 0:Wn.name)==null?void 0:kr.split("."))==null?void 0:Lr.pop)==null?void 0:cn.call(Lr);return((Pn=Wn==null?void 0:Wn.type)==null?void 0:Pn.indexOf("image"))>-1||!(Wn!=null&&Wn.type)?Wn!=null&&Wn.align||Wn!=null&&Wn.width?_t.replaceSelection(`<p style="text-align:${Wn.align||"initial"}"><img width="${Wn.width?Wn.width+"%":"initial"}" src="${Nn}" alt="${Bn||""}" /></p>`):_t.replaceSelection(`<img width="100%" src="${Nn}" alt="${Bn||""}" />`):((Tn=Wn==null?void 0:Wn.type)==null?void 0:Tn.indexOf("video"))>-1?_t.replaceSelection(`<video width="100%" controls src="${Nn}"></video>`):((_n=Wn==null?void 0:Wn.type)==null?void 0:_n.indexOf("pdf"))>-1?_t.replaceSelection(`<a href="${Nn}?type=${Wn.type}&disposition=inline" target="_blank">${Wn.name}</a>`):br.includes(Ki)?_t.replaceSelection(`<a href="${Nn}?type=office&disposition=inline" target="_blank">${Wn.name}</a>`):_t.replaceSelection(`[${Wn.name}](${Nn})`),_t.focus();case It:const{row:qn,col:xn,align:Ln}=wr;let Hn=`
`;for(let Sn=0;Sn<qn;Sn++){let Rn=[],Dn=[];for(let ui=0;ui<xn;ui++)Sn===1&&Dn.push(Ct[Ln]),Rn.push(" ");Sn===1&&(Hn+=`| ${Dn.join(" | ")} |
`),Hn+=`| ${Rn.join(xn===1?"":" | ")} |
`}return _t.replaceSelection(Hn+`
`),_t.focus();default:throw new Error}},[_t,_r]),On=(0,ge.useMemo)(()=>{switch(_r){case Ot:return ge.createElement(nt,{callback:Mn,onCancel:In});case At:return ge.createElement(et.Z,{callback:Mn,onCancel:In});case yt:return ge.createElement(Ge.Z,{callback:Mn,onCancel:In});case Dt:return ge.createElement(Re,{editImgId:dn.current,callback:Mn,onCancel:In});case It:return ge.createElement(Ze,{callback:Mn,onCancel:In});case"maths-latex":return ge.createElement(Tt,{showSaveButton:!0,callback:Mn});case"inline-latex":return ge.createElement(St.Z,{showSaveButton:!0,callback:Mn});default:return null}},[_r]);function In(){Pr("")}(0,ge.useEffect)(()=>{if(yn.current){let wr=function(Tn){cn=!0,Pn=Tn.pageY},mr=function(){cn=!1},kr=function(Tn){if(cn){let _n=Tn.pageY-Pn;_n<0&&(_n=0),_n>300&&(_n=300);let Nn=ar+_n+"px";Vr(Nn)}},Lr=yn.current,cn=!1,Pn=0;return Lr.addEventListener("mousedown",wr),document.addEventListener("mousemove",kr),document.addEventListener("mouseup",mr),()=>{Lr.removeEventListener("mousedown",wr),document.removeEventListener("mousemove",kr),document.removeEventListener("mouseup",mr)}}},[_t,yn]),(0,ge.useEffect)(()=>{Vr(ar)},[ar]);const on=fr(lr),nn=fr(Qr),qr={width:on,height:nn},vr=(0,ge.useMemo)(()=>{if(Rr){let wr=new Date(Rr),mr=wr.getHours(),kr=wr.getMinutes(),Lr=wr.getSeconds();return mr=mr<10?"0"+mr:mr,kr=kr<10?"0"+kr:kr,Lr=Lr<10?"0"+Lr:Lr,`${mr}:${kr}:${Lr}`}return 0},[Rr]),Or=wr=>{const mr=[];if(Ir){let kr=-1;wr=wr.replace(/(@▁▁@|@▁@)/g,function(Lr,cn,Pn){mr.push({multiLine:Lr!==sr})})}return mr};function Er(){window.sessionStorage.removeItem(Zr),Dr(!1),Ur(0)}function pr(){Dr(!1),Ur(0),_t.setValue(window.sessionStorage.getItem(Zr))}(0,ge.useEffect)(()=>{Qt[_r]&&_r!==Et&&_r!==Dt&&setTimeout(()=>{const wr=document.getElementsByClassName("markdown-popup-form")[0],mr=window.innerWidth/2-wr.offsetWidth/2,kr=window.innerHeight/2-wr.offsetHeight/2;Gr(mr),pn(kr)},0)},[_r]);const $r=wr=>{wr.preventDefault();const mr=wr.clientX-tn,kr=wr.clientY-fn;document.body.onmousemove=Lr=>{let cn=Lr.clientX-mr,Pn=Lr.clientY-kr;const Tn=document.getElementsByClassName("markdown-popup-form")[0],_n=window.innerWidth-Tn.offsetWidth,Nn=window.innerHeight-Tn.offsetHeight;cn=Math.max(0,Math.min(cn,_n)),Pn=Math.max(0,Math.min(Pn,Nn)),Kr(Lr.clientX,Lr.clientY,mr,kr)&&(Gr(cn),pn(Pn))},document.body.onmouseup=function(){document.body.onmousemove=null}},Kr=(wr,mr,kr,Lr)=>{const cn=document.body.clientHeight,Pn=document.body.clientWidth;return wr<20&&kr>wr||wr>Pn-20&&kr<wr||mr<20&&Lr>mr||mr>cn-20&&Lr<mr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ge.createElement(ge.Fragment,null,ge.createElement("div",{className:"markdown-editor-wrapper",ref:un},ge.createElement("div",{className:`markdown-editor-container ${wt} ${hr?"on-preview":""} ${Cr?"mini":""} ${Fr?"full-screen":""}`,style:qr},ge.createElement(De,{insertTemp:Nr,watch:hr,fullScreen:Fr,showNullButton:or,showNullProgramButton:Ir,onActionCallback:En,hidetoolBar:xr,extraUse:zt}),ge.createElement("div",{className:"markdown-editor-body"},ge.createElement("div",{className:"codemirror-container"},ge.createElement("textarea",{ref:ln,placeholder:Wt})),hr?ge.createElement("div",{ref:sn,className:"preview-container"},jr==="stex"&&ge.createElement(ne,{value:dr}),jr!=="stex"&&ge.createElement(x.Z,{edit:!0,disabledFill:Bt,showProgramFill:Ir,value:dr,openEditor:wr=>{var mr;dn.current=wr,(mr=en.current)==null||mr.setHeight("100vh"),setTimeout(()=>{Pr("add-flowchart")},150)}})):null))),Wr?ge.createElement("a",{ref:yn,className:"editor-resize"}):null,_r===Et&&ge.createElement(ct,{callback:Mn,onCancel:In}),_r===Dt&&ge.createElement(Re,{ref:en,editImgId:dn.current,callback:Mn,onCancel:In}),ge.createElement(Ce.Z,null,Qt[_r]&&_r!==Et&&_r!==Dt?ge.createElement(Xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:tn,top:fn},title:ge.createElement("div",{style:{cursor:"move"},onMouseDown:$r},Qt[_r]),open:!0,onCancel:In,footer:null,destroyOnClose:!0,width:_r===Dt?"1200px":null,height:_r===Dt?"80vh":null,className:"markdown-popup-form"},On):null))}},59165:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return Me},I:function(){return De}});var ge=Ie(28284),gt=Ie(6767),a=Ie(37568),Te=Ie(44104),xe=Ie(4875),z=Ie(47889),E=Ie(7939),oe=Ie(60562),ie=Ie(59301),ee=Ie(59301),le=Object.defineProperty,x=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ce=(Ce,Ee,je)=>Ee in Ce?le(Ce,Ee,{enumerable:!0,configurable:!0,writable:!0,value:je}):Ce[Ee]=je,pe=(Ce,Ee)=>{for(var je in Ee||(Ee={}))ae.call(Ee,je)&&ce(Ce,je,Ee[je]);if(re)for(var je of re(Ee))se.call(Ee,je)&&ce(Ce,je,Ee[je]);return Ce},me=(Ce,Ee)=>x(Ce,ne(Ee));const{useForm:he}=ge.default,be={width:280,marginRight:10},Pe={labelCol:{span:5},wrapperCol:{span:19}};var Me=({callback:Ce,onCancel:Ee})=>{const[je]=he();let ke=(0,ie.useRef)();function Be(Ue){ke.current.width=je.getFieldValue("width"),ke.current.align=je.getFieldValue("align"),Ce(Ue,ke.current)}function Ae(Ue,He){if(Ue.status===-1){gt.ZP.error(Ue.message);return}je.setFieldsValue({src:`/api/attachments/${Ue.id}`,type:He.type})}function ve(Ue){let He=Ue.target.files[0];ke.current=He,De(He,Ae)}return ee.createElement(ge.default,me(pe({form:je},Pe),{className:"upload-image-panel",onFinish:Be,style:{width:470,overflow:"hidden"}}),ee.createElement(ge.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(ge.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(a.default,{style:be})),ee.createElement(_e,{onFileChange:ve}))),ee.createElement(ge.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(a.default,{style:{width:264}})),ee.createElement(ge.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(Te.Z,null,ee.createElement(ge.default.Item,{name:"width",style:{margin:0}},ee.createElement(xe.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(ge.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ee.createElement(z.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"}]})),ee.createElement("aside",null,ee.createElement(ge.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(E.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(E.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function _e({onFileChange:Ce}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:Ce}))}function De(Ce,Ee){if(!Ce)throw new String("\u6CA1\u6709\u6587\u4EF6");let je=new FormData;je.append("editormd-image-file",Ce),je.append("file_param_name","editormd-image-file"),je.append("byxhr","true");var ke=new window.XMLHttpRequest;ke.withCredentials=!0,ke.addEventListener("load",function(Be){Ee(JSON.parse(Be.target.responseText),Ce)},!1),ke.addEventListener("error",function(Be){console.error(Be)},!1),ke.open("POST",`${oe.KI}/api/attachments.json`),ke.send(je)}},81675:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return a}});var ge=Ie(59301),gt=Ie(4676);class a extends ge.Component{constructor(xe){super(xe);const z=window.document;this.node=z.createElement("div"),z.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,gt.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},28444:function(Jt,jt,Ie){"use strict";Ie.d(jt,{SV:function(){return ct},ZP:function(){return Qe}});var ge=Ie(59301),gt=Ie(76374);const a={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"]},Te={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"]},xe={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(`
`)}]},z={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(`
`)}]},E={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 oe=Ie(53184),ie=Ie.n(oe),ee=(at,qe,Le)=>new Promise((Ne,te)=>{var de=we=>{try{We(Le.next(we))}catch(ye){te(ye)}},Re=we=>{try{We(Le.throw(we))}catch(ye){te(ye)}},We=we=>we.done?Ne(we.value):Promise.resolve(we.value).then(de,Re);We((Le=Le.apply(at,qe)).next())});const le={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"]}},x=(at,qe,Le,Ne)=>{const te=qe.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Le.lineNumber,endColumn:Le.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(Re=>({label:Re,kind:at.languages.CompletionItemKind.Text,insertText:Re,range:Ne}))},ne=(at,qe,Le,Ne)=>{at.languages.registerCompletionItemProvider(qe,{provideCompletionItems(te,de){const Re=te.getWordUntilPosition(de),We={startLineNumber:de.lineNumber,endLineNumber:de.lineNumber,startColumn:Re.startColumn,endColumn:Re.endColumn},we=te.getLineContent(de.lineNumber).substring(Re.startColumn-2,Re.endColumn);return{suggestions:[...x(at,te,de,We),...Le.map(Oe=>({label:Oe,kind:at.languages.CompletionItemKind.Keyword,documentation:Oe,insertText:Oe,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...Ne.map(Oe=>({label:Oe.label,kind:at.languages.CompletionItemKind.Snippet,documentation:Oe.content,insertText:we.startsWith("#")?Oe.content.replace(/#/,""):Oe.content,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}})};var re=at=>{le.languages.forEach(qe=>{at.languages.registerDocumentFormattingEditProvider(qe,{provideDocumentFormattingEdits(Le){return ee(this,null,function*(){const Ne=ie()(Le.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:Le.getFullModelRange(),text:Ne}]})}})}),ne(at,"java",Te.keywords,Te.quickKey),ne(at,"cpp",xe.keywords,xe.quickKey),ne(at,"c",a.keywords,[]),ne(at,"python",z.keywords,z.quickKey),ne(at,"scala",E.keywords,E.quickKey)};const ae="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var se=Object.defineProperty,ce=(at,qe,Le)=>qe in at?se(at,qe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):at[qe]=Le,pe=(at,qe,Le)=>ce(at,typeof qe!="symbol"?qe+"":qe,Le);const me=class Fl{constructor(qe,Le,Ne){this.placeholder=qe,this.editor=Le,this.monaco=Ne,Le.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Fl.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)}};pe(me,"ID","editor.widget.placeholderHint");var be=me,Pe=Ie(96236),Me=Ie(6767),_e=Ie(25399),De=Ie(89392),Ce=Ie(54087),Ee=Ie(56102),je=Object.defineProperty,ke=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,He=(at,qe,Le)=>qe in at?je(at,qe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):at[qe]=Le,Ye=(at,qe)=>{for(var Le in qe||(qe={}))ve.call(qe,Le)&&He(at,Le,qe[Le]);if(Ae)for(var Le of Ae(qe))Ue.call(qe,Le)&&He(at,Le,qe[Le]);return at},ot=(at,qe)=>ke(at,Be(qe)),Fe=(at,qe)=>{var Le={};for(var Ne in at)ve.call(at,Ne)&&qe.indexOf(Ne)<0&&(Le[Ne]=at[Ne]);if(at!=null&&Ae)for(var Ne of Ae(at))qe.indexOf(Ne)<0&&Ue.call(at,Ne)&&(Le[Ne]=at[Ne]);return Le},Ke=(at,qe,Le)=>new Promise((Ne,te)=>{var de=we=>{try{We(Le.next(we))}catch(ye){te(ye)}},Re=we=>{try{We(Le.throw(we))}catch(ye){te(ye)}},We=we=>we.done?Ne(we.value):Promise.resolve(we.value).then(de,Re);We((Le=Le.apply(at,qe)).next())});function rt(at){return/^\d+$/.test(at)?`${at}px`:at}function nt(){}let et=!1;const Ge={"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 Xe(at=[]){let qe=at;if(Array.isArray(at)){for(let Le=0;Le<at.length;Le++){let Ne=Ge[at[Le]];if(Ne)return Ne}return qe[0]}return Ge[qe]||qe}let Ve=null;const tt=()=>Ke(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(at){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",at)}});var Qe=at=>{var qe=at,{width:Le="100%",height:Ne="100%",value:te,language:de="javascript",style:Re={},options:We={},overrideServices:we={},theme:ye="vs-dark",onEditBlur:Oe,isCopy:$e=!1,onSave:Ze,autoHeight:Je=!1,forbidCopy:st=!1,forbidCopyTips:lt,onChange:ft=nt,editorDidMount:Tt=nt,onFocus:St=nt,onBreakPoint:Ot=nt,breakPointValue:yt=[],filename:Dt="educoder.txt",errorLine:Et,errorContent:xt="",highlightLine:At,openBreakPoint:It=!1,placeholder:ht="",showMiniMap:Ct=!0}=qe,Ht=Fe(qe,["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 Vt=(0,ge.useRef)(),vt=(0,ge.useRef)({}),kt=(0,ge.useRef)(),$t=(0,ge.useRef)(),Kt=(0,ge.useRef)([]),tr=(0,ge.useRef)(!1),sr=(0,ge.useRef)(),gr=(0,ge.useRef)(),br=(0,ge.useRef)(!1),[fr,yr]=(0,ge.useState)(!1);function ir(){let er;return Vt.current&&(er=new gt.Z(or=>{for(let Ir of or)(Ir.target.offsetHeight>0||Ir.target.offsetWidth>0)&&vt.current.instance.layout()}),er.observe(Vt.current)),er}function Yt(){Me.ZP.warning({content:decodeURIComponent(lt||ae),key:"monaco-editor-tip"})}const Qt=()=>{let er=vt.current.instance;if(te!=null&&er&&fr){const or=er.getModel();or&&te!==or.getValue()&&(et=!0,or.setValue(te),er.layout(),et=!1)}};(0,ge.useEffect)(()=>{const er=Ce.Z.subscribe("formatDocument",or=>{var Ir;let xr=vt.current.instance;(Ir=xr==null?void 0:xr.getAction)==null||Ir.call(xr,"editor.action.formatDocument").run()});return window.updateMonacoValue=or=>{ft(or)},er},[]),(0,ge.useEffect)(()=>{var er;let or=vt.current.instance;$t.current&&clearTimeout($t.current),$t.current=setTimeout(()=>{Qt()},500),te&&(te!=null&&te.length)&&((er=or==null?void 0:or.updateOptions)==null||er.call(or,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,fr,vt.current]),(0,ge.useEffect)(()=>{if(Et&&vt.current&&vt.current.instance){let or=vt.current.instance;or.changeViewZones(function(Ir){var xr=document.createElement("div");xr.style.padding="10px 20px",xr.style.width="calc(100% - 20px)",xr.className="my-error-line-wrp",xr.innerHTML=xt,Ir.addZone({afterLineNumber:Et||11,heightInLines:3,domNode:xr})});var er={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}};or.addOverlayWidget(er),or.revealPositionInCenter({lineNumber:20,column:1})}},[Et,vt.current,fr]);const qt=(er="",or)=>{if(!er||er.trim()==="")return!0;const xr=vt.current.instance.getModel().getLineTokens(or);let Pt=!1;for(let Lt=0;Lt<2;Lt++)xr.getStandardTokenType(Lt)===1&&(Pt=!0);return Pt};(0,ge.useEffect)(()=>{var er;const or=(er=vt.current)==null?void 0:er.instance;if(or&&fr&&st){const Ir=or.onDidBlurEditorWidget(()=>{br.current=!1}),xr=or.onDidFocusEditorText(()=>{br.current=!0});return()=>{Ir.dispose(),xr.dispose()}}},[vt.current,fr,st]),(0,ge.useEffect)(()=>{var er;if((er=vt.current)!=null&&er.instance&&fr&&It){let or=vt.current.instance,Ir=or.getModel();if(!Ir)return;(()=>{var zt;let Rt=[],_t=[];const Ut=Ir.getAllDecorations();for(let cr of Ut)cr.options.className==="highlighted-line"&&(Rt.push((zt=cr==null?void 0:cr.range)==null?void 0:zt.startLineNumber),_t.push(cr==null?void 0:cr.id));if(At===Rt[0])return;Ir.deltaDecorations(_t,[]);const dr=Ir.getLineCount();At&&At<=dr&&(or.deltaDecorations([],[{range:new Ve.Range(At,1,At,Ir.getLineMaxColumn(At)),options:{isWholeLine:!0,className:"highlighted-line"}}]),or.revealLineInCenter(At))})();const Pt=(zt=!1)=>{var Rt;let _t=[],Ut=[];const dr=Ir.getAllDecorations();for(let cr of dr)cr.options.linesDecorationsClassName==="breakpoints-select"&&(_t.push((Rt=cr==null?void 0:cr.range)==null?void 0:Rt.startLineNumber),Ut.push(cr==null?void 0:cr.id));if(zt)return{lines:_t,ids:Ut};Ot(_t)},Lt=zt=>Ke(void 0,null,function*(){let Rt={range:new Ve.Range(zt,1,zt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ir.deltaDecorations([],[Rt]),Pt()}),bt=zt=>Ke(void 0,null,function*(){let Rt=[];const _t=or.getLineDecorations(zt);for(let Ut of _t)Ut.options.linesDecorationsClassName==="breakpoints-select"&&Rt.push(Ut.id);yield Ir.deltaDecorations(Rt,[]),Pt()}),Mt=zt=>{let Rt=or.getLineDecorations(zt);for(let _t of Rt)if(_t.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,De.isEqual)(yt,Pt(!0).lines)){Ir.deltaDecorations(Pt(!0).ids,[]);const zt=yt.map(Rt=>({range:new Ve.Range(Rt,1,Rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ir.deltaDecorations([],zt)}const wt=or.onDidChangeModelContent(zt=>{let Rt=or.getPosition();if(Rt){let _t=Rt.lineNumber;clearTimeout(gr.current),gr.current=setTimeout(()=>{qt(Ir.getLineContent(_t),_t)?bt(_t):Mt(_t)?(bt(_t),Lt(_t)):Pt()},100)}}),Nt=or.onMouseDown(zt=>{var Rt,_t,Ut;if(zt.target.detail&&((Ut=(_t=(Rt=zt.target)==null?void 0:Rt.element)==null?void 0:_t.className)!=null&&Ut.includes("line-numbers"))){let dr=zt.target.position.lineNumber;if(qt(Ir.getLineContent(dr),dr))return;Mt(dr)?bt(dr):Lt(dr)}}),pt=zt=>{let Rt={range:new Ve.Range(zt,1,zt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Kt.current=or.deltaDecorations(Kt.current,[Rt])},Bt=()=>{Kt.current=or.deltaDecorations(Kt.current,[])},Wt=or.onMouseMove(zt=>{var Rt,_t,Ut;if(Bt(),zt.target.detail&&((Ut=(_t=(Rt=zt.target)==null?void 0:Rt.element)==null?void 0:_t.className)!=null&&Ut.includes("line-numbers"))){let dr=zt.target.position.lineNumber;if(qt(Ir.getLineContent(dr),dr))return;pt(dr)}}),Gt=or.onMouseLeave(()=>{Bt()});return()=>{wt.dispose(),Nt.dispose(),Wt.dispose(),Gt.dispose()}}},[vt.current,fr,yt,At,It,de]),(0,ge.useEffect)(()=>{var er;(er=vt.current)!=null&&er.instance&&It&&vt.current.instance.setPosition({lineNumber:0,column:0})},[At]);function Xt(){let er=vt.current.instance;if(er){const or=er.getSelection(),Ir=vt.current.pastePos||{},xr=new Ve.Range(Ir.startLineNumber||or.endLineNumber,Ir.startColumn||or.endColumn,Ir.endLineNumber||or.endLineNumber,Ir.endColumn||or.endColumn);setTimeout(()=>{er.executeEdits("",[{range:xr,text:""}])},300)}}function ur(er){(window.navigator.platform.match("Mac")?er.metaKey:er.ctrlKey)&&er.keyCode==83&&(er.preventDefault(),Ze())}const lr=()=>{if(Je&&vt.current.instance){const er=vt.current.instance.getContentHeight();Zr(er<Ne?Ne:er)}else Zr(Ne)};function ar(er){var or=document.createEvent("MouseEvents");or.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),er.dispatchEvent(or)}const Cr=er=>{if(!br.current)return;const{keyCode:or,ctrlKey:Ir,metaKey:xr,target:Pt,type:Lt}=er;return(Lt==="paste"||(or===67||or===86)&&(xr||Ir))&&Pt.nodeName==="TEXTAREA"&&(Yt(),er.preventDefault()),!1};function Ar(er,or){var Ir=window.URL||window.webkitURL||window,xr=new Blob([or]),Pt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Pt.href=Ir.createObjectURL(xr),Pt.download=er,ar(Pt)}(0,ge.useEffect)(()=>{lr()},[lr]),(0,ge.useEffect)(()=>{Vt.current&&!fr&&Promise.all([Ie.e(8909),Ie.e(1992)]).then(Ie.bind(Ie,71448)).then(er=>{try{Ve=er,vt.current.instance=Ve.editor.create(Vt.current,{value:te,language:Xe(de),theme:ye,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ct||!1}},we);const or=vt.current.instance;let Pt=[...Pe.BH._menuItems].find(wt=>wt[0]._debugName=="EditorContext")[1],Lt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],bt=(wt,Nt)=>{var pt,Bt;let Wt=wt._first;do Nt.includes((Bt=(pt=Wt.element)==null?void 0:pt.command)==null?void 0:Bt.id)&&wt._remove(Wt);while(Wt=Wt.next)};if(Tt(or,Ve),setTimeout(()=>{lr(),vt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ar(Dt||"educoder.txt",or.getValue())}})},500),vt.current.subscription=or.onDidChangeModelContent(wt=>{tr.current?clearTimeout(sr.current):(lr(),ft(or.getValue(),wt)),sr.current=setTimeout(()=>{tr.current=!1},500)}),window.Monaco||re(Ve,Xe(de)),st&&(bt(Pt,Lt),Vt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Cr),window.removeEventListener("paste",Cr),window.addEventListener("keydown",Cr),window.addEventListener("paste",Cr)),window.Monaco=Ve,Oe&&or.onDidBlurEditorWidget(()=>{Oe(or.getValue())}),St&&or.onDidFocusEditorText(()=>{st&&tt(),St(or.getValue())}),st){tt();try{or.onDidPaste(wt=>{const Nt=or.getSelection(),pt=vt.current.pastePos||{},Bt=new Ve.Range(pt.startLineNumber||Nt.endLineNumber,pt.startColumn||Nt.endColumn,pt.endLineNumber||Nt.endLineNumber,pt.endColumn||Nt.endColumn);or.executeEdits("",[{range:wt.range,text:""}])})}catch(wt){}}let Mt=ir();return ht&&typeof ht=="string"&&new be(ht,or,Ve),yr(!0),()=>{const wt=vt.current.instance;wt.dispose();const Nt=wt.getModel();Nt&&Nt.dispose(),vt.current.subscription&&vt.current.subscription.dispose(),Mt.unobserve(Vt.current)}}catch(or){}})},[]),(0,ge.useEffect)(()=>{if(vt.current.instance&&fr)return document.addEventListener("keydown",ur,!1),()=>{document.removeEventListener("keydown",ur)}},[Ze,fr]),(0,ge.useEffect)(()=>{let er=vt.current.instance;if(er&&fr){let or=Xe(de);Ve.editor.setModelLanguage(er.getModel(),or)}},[de,fr]),(0,ge.useEffect)(()=>{vt.current.instance&&fr&&Ve.editor.setTheme(ye)},[ye,fr]),(0,ge.useEffect)(()=>{let er=vt.current.instance;kt.current=We,er&&fr&&(er.updateOptions(Ye({},We)),setTimeout(()=>{er.getModel().updateOptions(Ye({},We))},200))},[JSON.stringify(We),fr]),(0,ge.useEffect)(()=>{let er=vt.current.instance;er&&fr&&er.layout()},[Le,Ne,fr]);const[Tr,Nr]=(0,ge.useState)(rt(Le)),[jr,Zr]=(0,ge.useState)(rt(Ne)),Wr=ot(Ye({},Re),{width:Tr,height:jr,position:"relative"});return ge.createElement("div",{className:"my-monaco-editor",ref:Vt,style:Wr,onFocus:()=>{st&&tt()}},$e&&ge.createElement(Ee.CopyToClipboard,{text:te,onCopy:()=>Me.ZP.success("\u590D\u5236\u6210\u529F")},ge.createElement(_e.Z,{title:"\u590D\u5236\u4EE3\u7801"},ge.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ge.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ct({width:at="100%",height:qe="100%",original:Le,modified:Ne,language:te,options:de={}}){const Re=(0,ge.useRef)(),[We,we]=(0,ge.useState)(null);function ye(Je){let st;return Re.current&&(st=new gt.Z(lt=>{for(let ft of lt)(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&Je.layout()}),st.observe(Re.current)),st}(0,ge.useEffect)(()=>(Re.current&&Promise.all([Ie.e(8909),Ie.e(9404)]).then(Ie.bind(Ie,2550)).then(Je=>{Ve=Je;const st=Ve.editor.createDiffEditor(Re.current,ot(Ye({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},de),{wordWrap:!0}));we(st);let lt=ye(st);return()=>{st.dispose();const ft=st.getModel();ft&&ft.dispose(),lt.unobserve(Re.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ge.useEffect)(()=>{We&&We.setModel({original:Ve.editor.createModel(Le,te),modified:Ve.editor.createModel(Ne,te)})},[Le,Ne,te,We]);const Oe=rt(at),$e=rt(qe),Ze={width:Oe,height:$e};return ge.createElement("div",{className:"my-diff-editor",ref:Re,style:Ze})}},34996:function(Jt,jt,Ie){"use strict";var ge=Ie(27495),gt=Ie(82326),a=Ie(58755),Te=Ie(59301);const xe=gt.default.Option;jt.Z=({isTheoretical:z,onFontSizeChange:E,cmFontSize:oe,cmCodeMode:ie,autoFormat:ee,onCodeModeChange:le,onTabToSpace:x,onAutoFormat:ne,formatDocument:re,className:ae="",tabToSpace:se,children:ce,code_editor:pe,challenge:me,shixun_environment_id:he,shixun_environments:be})=>{var Pe;const Me={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},_e=(Pe=be==null?void 0:be.find(De=>De.shixun_environment_id===he))==null?void 0:Pe.program_language;return console.log("----",_e,be,he,pe),Te.createElement("div",{className:`tpi-code-setting ${ae}`},Te.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),Te.createElement("section",null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),Te.createElement(gt.default,{bordered:!1,size:"small",value:ie,onChange:le},Te.createElement(xe,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Te.createElement(xe,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!z&&Te.createElement(Te.Fragment,null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Te.createElement(gt.default,{bordered:!1,size:"small",value:oe,onChange:E},Te.createElement(xe,{value:12},"12px"),Te.createElement(xe,{value:14},"14px"),Te.createElement(xe,{value:16},"16px"),Te.createElement(xe,{value:18},"18px"),Te.createElement(xe,{value:20},"20px"),Te.createElement(xe,{value:22},"22px"))),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"Tab\u8F6C\u6362"),Te.createElement(a.Z,{checked:se,onChange:x})),Te.createElement("div",{className:"file-item",onClick:re},Te.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!z&&Te.createElement(Te.Fragment,null,Te.createElement("h3",null,"\u5FEB\u6377\u952E"),Te.createElement("section",null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),Te.createElement("span",null,"Ctrl + S")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),Te.createElement("span",null,"F1 / Alt + F1")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),Te.createElement("span",null,"Ctrl + ]/[")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),Te.createElement("span",null,"Ctrl + Shift + \\")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),Te.createElement("span",null,"Home")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),Te.createElement("span",null,"End"))),ce),!z&&Te.createElement(Te.Fragment,null,Te.createElement("h3",null,"\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"),Te.createElement("section",null,_e&&Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),Te.createElement("span",null,_e)),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Te.createElement("span",null,Me[me==null?void 0:me.difficulty])),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Te.createElement("span",null,pe==null?void 0:pe.name)),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Te.createElement("span",null,pe!=null&&pe.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},81418:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return le}});var ge={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"},gt=Ie(29787),a=Ie(25399),Te=Ie(89787),xe=Ie(92310),z=Ie.n(xe),E=Ie(49411),oe=Ie(40412),ie=Ie(59301),le=({className:x,dataSource:ne=[],col:re=4,right:ae,bottom:se=23,precision:ce=0,wrapWidth:pe=1200,trackEventItems:me,loading:he,onRemove:be=()=>{},isCurrent:Pe=!0,showProgress:Me=!1,showAlias:_e=!1,category:De,hiddenClick:Ce})=>{const Ee=Math.floor((pe-(re-1)*ae)/re),je=[{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 ie.createElement(gt.Z,{spinning:he},ie.createElement("div",{className:z()(ge.list,x)},!!(ne!=null&&ne.length)&&(ne==null?void 0:ne.map((ke,Be)=>{var Ae,ve,Ue,He,Ye,ot,Fe,Ke,rt,nt,et,Ge,Xe;const{name:Ve,id:tt,identifier:Qe,featured:ct,school_name:at,image_url:qe,excellent:Le,is_plan:Ne}=ke;return ie.createElement("div",{key:tt,className:Pe&&Me?ge.wrapisCurrent:ge.wrap,style:{width:Ee,marginRight:(1+Be)%re===0?0:ae+ce,marginBottom:se}},ie.createElement("a",{className:ge.li,onClick:te=>{te.preventDefault(),te.stopPropagation(),me&&(0,E.L9)([me]),(0,E.xg)(`/paths/${Qe}`)}},ie.createElement("div",{className:ge.img},ie.createElement("img",{className:ge.cover,src:`${qe}`}),(Ae=ke==null?void 0:ke.subject_tags)==null?void 0:Ae.map((te,de)=>{var Re,We;if(de===0){const ye=(Re=je.find(Oe=>Oe.name==te))==null?void 0:Re.swclass;return ie.createElement("span",{className:`sprite ${ye} ${ge.sign}`,style:{left:"-4px"}})}const we=(We=je.find(ye=>ye.name==te))==null?void 0:We.ptclass;return ie.createElement("span",{className:`sprite ${we} ${ge.sign}`,style:{left:`${48+52*(de-1)+2*de}px`}})}),ie.createElement("div",{className:ge.tagsDom},ie.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(ke==null?void 0:ke.excellent)&&ie.createElement("div",{className:ge.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ve=ke==null?void 0:ke.custom_tags)==null?void 0:ve.length)>0&&ie.createElement(a.Z,{title:(Ye=(He=ke==null?void 0:ke.custom_tags)==null?void 0:He[((Ue=ke==null?void 0:ke.custom_tags)==null?void 0:Ue.length)-1])==null?void 0:Ye.tag_name},ie.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},ie.createElement("span",{className:"multi-llipsis1e text-10px"},(Ke=(Fe=ke==null?void 0:ke.custom_tags)==null?void 0:Fe[((ot=ke==null?void 0:ke.custom_tags)==null?void 0:ot.length)-1])==null?void 0:Ke.tag_name))))),De=="hide"&&(ke==null?void 0:ke.studying)&&Pe&&ie.createElement("div",{className:`${ge.movebq} user-path-items`,onClick:te=>{te.stopPropagation(),be(ke)}},ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),ie.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(De)&&Pe&&ie.createElement("div",{className:`${ge.hiddenbq} user-path-items`,onClick:te=>{te.stopPropagation(),Ce(ke)}},ie.createElement("i",{className:`iconfont ${De=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),ie.createElement("span",null,De=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),ie.createElement("div",{className:ge.name},ie.createElement(a.Z,{title:_e&&(ke!=null&&ke.excellent_alias_name)?ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ve}`,ie.createElement("br",null),ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ke==null?void 0:ke.excellent_alias_name}`)):Ve},ie.createElement("span",{className:ge.e},_e&&(ke==null?void 0:ke.excellent_alias_name)||Ve))),Pe&&Me&&((rt=ke==null?void 0:ke.progress)==null?void 0:rt.all_score)!=0&&ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ie.createElement(Te.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((nt=ke==null?void 0:ke.progress)==null?void 0:nt.my_score)/((et=ke==null?void 0:ke.progress)==null?void 0:et.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ge=ke==null?void 0:ke.progress)==null?void 0:Ge.my_score,"/",(Xe=ke==null?void 0:ke.progress)==null?void 0:Xe.all_score),(!Pe||!Me)&&ie.createElement(a.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${at}`},ie.createElement("div",{className:ge.unit},ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),at)),(!Pe||!Me)&&ie.createElement("div",{className:ge.tags},ie.createElement("div",null,ie.createElement(a.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ie.createElement("span",null,ke.stages_count))),ie.createElement(a.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ie.createElement("span",null,ke.members_count)))))))})),!ne.length&&ie.createElement(oe.Z,null)))}},78176:function(Jt,jt,Ie){"use strict";Ie.d(jt,{jL:function(){return Te},w9:function(){return Ke},QD:function(){return yt},cQ:function(){return Be.Z},op:function(){return st},O5:function(){return ir},_b:function(){return ht},t7:function(){return ce},Gi:function(){return Ve},YG:function(){return Ge},qp:function(){return ee},vr:function(){return xt},qE:function(){return Tt},Je:function(){return he},wb:function(){return ke},cq:function(){return Le},tp:function(){return ne}});var ge=Ie(59301),gt={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"},Te=({dataSource:Yt=[],img:Qt,imgWidth:qt=346,title:Xt,sunTitle:ur,bannerExtraContent:lr})=>ge.createElement("div",{className:gt.banner},ge.createElement("div",{className:gt.content},ge.createElement("aside",null,ge.createElement("p",null,ge.createElement("b",null,Xt),ge.createElement("span",null,ur)),Yt.length>0&&ge.createElement("div",{className:gt.btns},Yt.map((ar,Cr)=>ge.createElement("div",{key:Cr,onClick:ar.click},ar.name,ar.sign?ge.createElement("span",{className:"sprite sprite-33"}):null))),lr),Qt&&ge.createElement("img",{style:{marginTop:33,marginRight:38},src:Qt,width:qt}))),xe={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"},z=Ie(92310),E=Ie.n(z),oe=Ie(89392),ee=({dataSource:Yt=[],value:Qt,onChange:qt,onTitleChange:Xt,className:ur,title:lr,titleWidth:ar=41,style:Cr={},fontColor:Ar="#6A7283",showCount:Tr})=>{const[Nr,jr]=(0,ge.useState)(1),[Zr,Wr]=(0,ge.useState)(!1),er=(0,ge.useRef)(null),or=(0,ge.useRef)(null);return(0,ge.useEffect)(()=>{var Ir;Yt.length!==0&&(((Ir=er==null?void 0:er.current)==null?void 0:Ir.clientHeight)>97?jr(1):jr(0)),Yt.length===0&&jr(0),Wr(!1)},[Yt]),ge.createElement("div",{className:E()(xe.row,ur,"fadeIn","animated"),style:Cr},ge.createElement("div",{onClick:(0,oe.throttle)(()=>Xt==null?void 0:Xt(),2e3),style:{width:ar,marginTop:Zr?12:4},className:`${xe.title} ${Xt?"current":""}`},lr),ge.createElement("div",{className:Zr?`${xe.tagsWrap} ${xe.tagsBorderWrap}`:xe.tagsWrap},ge.createElement("div",{className:xe.bar,ref:or,style:Nr>0?{height:Nr===1?97:"auto",overflow:Nr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ge.createElement("div",{className:xe.tag,ref:er},Yt==null?void 0:Yt.map(Ir=>ge.createElement("span",{onClick:()=>qt(Ir.id),key:Ir.id,style:{color:Ar},className:Qt===Ir.id?xe.active:""},ge.createElement("span",{title:Ir.name,className:xe.name},Ir.name),!!Tr&&ge.createElement("span",{className:xe.num},Ir.count))))),!!Nr&&ge.createElement(ge.Fragment,null,Nr===1?ge.createElement("div",{onClick:()=>{var Ir;jr(2),((Ir=er==null?void 0:er.current)==null?void 0:Ir.clientHeight)>245?Wr(!0):Wr(!1)},className:xe.action},"\u5C55\u5F00",ge.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ge.createElement("div",{onClick:()=>{or.current.scrollTop=0,jr(1),Wr(!1)},className:xe.action},"\u6536\u8D77",ge.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},le={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"},ne=({dataSource:Yt=[],value:Qt,onChange:qt,className:Xt,style:ur={}})=>ge.createElement("div",{style:ur,className:E()(le.tabs,Xt)},Yt.map(lr=>ge.createElement("span",{onClick:()=>qt(lr.id),className:Qt===lr.id?le.active:"",key:lr.id},lr.name))),re={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"},ae=Ie(37568),ce=({dataSource:Yt=[],value:Qt="",onChange:qt,onInputChange:Xt=()=>{},className:ur,style:lr={},placeholder:ar,allowClear:Cr=!1})=>{var Ar;const[Tr,Nr]=(0,ge.useState)(""),[jr,Zr]=(0,ge.useState)("");(0,ge.useEffect)(()=>{var or;let Ir=Qt;(or=JSON.stringify(Qt))!=null&&or.includes("{")&&(Nr(Qt.id),Ir=Qt.value||"");try{Zr(decodeURIComponent(Ir||""))}catch(xr){Zr(decodeURIComponent(Ir||""))}},[Qt]);const Wr=()=>{qt(encodeURIComponent(jr),Tr||null)},er=or=>{or!==Tr&&(Nr(or),qt(encodeURIComponent(jr),or))};return ge.createElement("div",{className:E()(re.input,ur),style:lr},!!Yt.length&&ge.createElement("div",{className:re.dropdown},ge.createElement("div",{className:re.text},(Ar=Yt.find(or=>or.id===Tr))==null?void 0:Ar.name,ge.createElement("i",{className:"iconfont icon-zhankai4"}),ge.createElement("b",{className:re.b1}),ge.createElement("b",{className:re.b2})),ge.createElement("div",{className:re.menu},Yt.map((or,Ir)=>ge.createElement("div",{key:Ir,onClick:()=>er(or.id)},or.name)))),ge.createElement(ae.default,{onPressEnter:Wr,value:jr,onChange:or=>{Zr(or.target.value),Xt(encodeURIComponent(or.target.value),Tr||null)},placeholder:ar,variant:"borderless",allowClear:Cr,onClear:()=>qt("",Tr||null)}),ge.createElement("i",{onClick:Wr,className:"iconfont icon-sousuo9 font14 current"}))},pe={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"},he=({value:Yt,onChange:Qt,className:qt,total:Xt,pageSize:ur,style:lr={}})=>{const ar=Yt<2,Cr=Yt>=Math.ceil(Xt/ur);return Xt<=ur?ge.createElement(ge.Fragment,null):ge.createElement("div",{className:E()(pe.quickPager,qt),style:lr},ge.createElement("div",{onClick:()=>{ar||Qt(Yt-1,"prev")},className:ar?pe.disabled:""},"\u4E0A\u4E00\u9875"),ge.createElement("div",{onClick:()=>{Cr||Qt(Yt+1,"next")},className:Cr?pe.disabled:""},"\u4E0B\u4E00\u9875"))},be={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"},Pe=Ie(29787),Me=Ie(25399),_e=Ie(63139),De=Ie(58962),Ce=Ie(49411),Ee=Ie(40412),ke=({className:Yt,dataSource:Qt=[],col:qt=4,right:Xt,bottom:ur=23,precision:lr=0,wrapWidth:ar=1200,trackEventItems:Cr,loading:Ar})=>{const Tr=Math.floor((ar-(qt-1)*Xt)/qt);return ge.createElement(Pe.Z,{spinning:Ar},ge.createElement("div",{className:E()(be.list,Yt)},!!Qt.length&&Qt.map((Nr,jr)=>{const{name:Zr,id:Wr,identifier:er,power:or,cover_image_id:Ir,pic:xr}=Nr;return ge.createElement("div",{className:be.wrap,key:Wr,style:{width:Tr,marginRight:(1+jr)%qt===0?0:Xt+lr,marginBottom:ur}},ge.createElement("a",{target:"_blank",href:`/shixuns/${er}/challenges`,className:be.li,onClick:Pt=>{Pt.preventDefault(),Cr&&(0,Ce.L9)([Cr]),or&&(0,Ce.xg)(`/shixuns/${er}/challenges`)}},ge.createElement("div",{className:be.img},ge.createElement("img",{className:be.cover,src:`${xr}`}),Nr.is_jupyter&&ge.createElement("span",{className:`sprite sprite-43 ${be.sign}`}),Nr.is_jupyter_lab&&ge.createElement("span",{className:`sprite sprite-42 ${be.sign}`}),Nr.is_unity_3d&&ge.createElement("span",{className:`sprite sprite-44 ${be.sign}`})),ge.createElement("div",{className:be.name},ge.createElement(Me.Z,{title:Zr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ge.createElement("span",{className:be.e},Zr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ge.createElement("div",{className:be.tags},ge.createElement(Me.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ge.createElement("span",null,Nr.challenges_count))),!!Nr.myshixuns_count&&ge.createElement(Me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ge.createElement("span",null,Nr.myshixuns_count))),ge.createElement(Me.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ge.createElement("span",null,ge.createElement("span",null,Nr.level))),ge.createElement("div",{className:be.rate},ge.createElement(_e.Z,{allowHalf:!0,disabled:!0,defaultValue:Nr.score_info}),ge.createElement("span",null,"\xA0",Nr.score_info?`${Nr.score_info}\u5206`:"5\u5206")))),!or&&ge.createElement("div",{className:be.lockWrap},ge.createElement("img",{src:`${De.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ge.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Qt.length&&ge.createElement(Ee.Z,null)))},Be=Ie(81418),Ae={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"},ve=Ie(62957),Ue=Ie(96599),He="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",Ye=Ie(59301),ot=(Yt,Qt,qt)=>new Promise((Xt,ur)=>{var lr=Ar=>{try{Cr(qt.next(Ar))}catch(Tr){ur(Tr)}},ar=Ar=>{try{Cr(qt.throw(Ar))}catch(Tr){ur(Tr)}},Cr=Ar=>Ar.done?Xt(Ar.value):Promise.resolve(Ar.value).then(lr,ar);Cr((qt=qt.apply(Yt,Qt)).next())}),Ke=({className:Yt,dataSource:Qt=[],col:qt=4,right:Xt,bottom:ur=23,precision:lr=0,wrapWidth:ar=1200,trackEventItems:Cr,loading:Ar,category:Tr,hiddenClick:Nr,handleVery:jr=()=>!0,isCurrent:Zr})=>{const[Wr,er]=ve.default.useModal(),or=Math.floor((ar-(qt-1)*Xt)/qt),Ir=xr=>ot(void 0,null,function*(){Wr.confirm({title:"\u7F6E\u9876",width:500,content:Ye.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Ye.createElement("span",{className:"c-blue"},"\u201C",xr.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return Ye.createElement(Pe.Z,{spinning:Ar},er,Ye.createElement("div",{className:E()(Ae.list,Yt)},!!Qt.length&&Qt.map((xr,Pt)=>{const{subject_identifier:Lt,id:bt,identifier:Mt,power:wt}=xr,Nt=xr.is_public!=0&&xr.is_public;return Ye.createElement("div",{className:Ae.wrap,key:bt,style:{width:or,marginRight:(1+Pt)%qt===0?0:Xt+lr,marginBottom:ur}},xr.homepage_show&&Ye.createElement("div",{className:Ae.btnsTop},Ye.createElement(Ue.default,{color:"red"},"\u7F6E\u9876")),Ye.createElement("a",{className:Ae.li,onClick:pt=>{pt.preventDefault(),jr(xr==null?void 0:xr.first_category_url)&&(Cr&&(0,Ce.L9)([Cr]),(0,Ce.xg)(xr.first_category_url))}},Ye.createElement("div",{className:Ae.top},Ye.createElement(Me.Z,{title:xr.name},Ye.createElement("div",{className:Ae.name},xr.name)),Ye.createElement("img",{className:Ae.img,src:De.Z.IMG_SERVER+"/images/"+xr.avatar_url}),Ye.createElement("div",{className:Ae.text,title:xr.creator},xr.creator),Lt&&Ye.createElement("div",{className:Ae.btns},Ye.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ye.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Nt&&Ye.createElement("div",{className:Ae.sign},"\u516C\u5F00"),Zr&&Ye.createElement("div",{className:Ae.hidden,onClick:pt=>{pt.stopPropagation(),Nr(xr)}},Ye.createElement("i",{className:`iconfont ${Tr=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Tr=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Ye.createElement("div",{className:Ae.bottom},xr.visits>0&&Ye.createElement(Me.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-liulanyan"}),Ye.createElement("span",null,xr.visits))),xr.course_members_count>0&&Ye.createElement(Me.Z,{title:"\u6210\u5458",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-chengyuan"}),xr.course_members_count)),xr.tasks_count>0&&Ye.createElement(Me.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ye.createElement("span",null,Ye.createElement("i",{className:"iconfont icon-zuoye"}),xr.tasks_count)),xr.is_end?Ye.createElement("div",{style:{color:"#6B758B"}}):Ye.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!xr.is_accessible&&Ye.createElement("div",{className:Ae.lockWrap},Ye.createElement("img",{src:`${De.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ye.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Qt.length&&Ye.createElement(Ee.Z,null)))},rt={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"},nt=Ie(73635),Ge=({dataSource:Yt=[],value:Qt,onChange:qt,className:Xt,style:ur={},tabBarExtraContent:lr})=>ge.createElement("div",{className:E()(rt.tabs,Xt),style:ur},ge.createElement("div",{className:rt.tabsWrap},Yt.map((ar,Cr)=>!(ar!=null&&ar.hide)&&ge.createElement("aside",{className:rt.tab,onClick:()=>{qt(ar.id),ar.link&&nt.history.push(ar.link)},key:Cr},ge.createElement("div",{className:Qt===ar.id?rt.active:""},ar.name),(ar==null?void 0:ar.resetCount)==null&&(ar==null?void 0:ar.total)!==void 0&&ge.createElement("span",null,"\uFF08",ar==null?void 0:ar.total,"\uFF09"),(ar==null?void 0:ar.resetCount)!==void 0&&(ar==null?void 0:ar.total)!==void 0&&ge.createElement(Me.Z,{title:(ar==null?void 0:ar.tip)!=null?ar==null?void 0:ar.tip:""},ge.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ge.createElement("span",{style:{color:"#000"}},ar==null?void 0:ar.resetCount),"/",ge.createElement("span",null,ar==null?void 0:ar.total),"\uFF09"))))),ge.createElement("div",{className:rt.tabBar},lr)),Ve=({className:Yt,style:Qt={},children:qt})=>ge.createElement("div",{className:E()(Yt),style:Qt},qt),tt={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"},Qe=Ie(75727),ct=Ie(93041);const at=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Le=({sortValue:Yt,dropValue:Qt,className:qt,onSort:Xt,onDrop:ur,dataSource:lr=at})=>{var ar;return ge.createElement("div",{className:E()(tt.orderWrap,qt)},ge.createElement(Qe.Z,{dropdownRender:()=>ge.createElement(ct.default,null,lr.map((Cr,Ar)=>ge.createElement(ct.default.Item,{key:Ar,onClick:()=>ur(Cr.id)},Cr.name)))},ge.createElement("span",{className:tt.orderTextWrap},(ar=lr.find(Cr=>Qt===Cr.id))==null?void 0:ar.name)),ge.createElement("span",{className:tt.orderIconWrap},ge.createElement("span",{className:tt.orderAsc},ge.createElement("i",{className:Yt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer}`,onClick:()=>Xt(Yt==="asc"?"desc":"asc")})),ge.createElement("span",{className:tt.orderDesc},ge.createElement("i",{className:Yt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer}`,onClick:()=>Xt(Yt==="asc"?"desc":"asc")}))))},Ne={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"},te=Ie(7939),de=Object.defineProperty,Re=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ye=(Yt,Qt,qt)=>Qt in Yt?de(Yt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):Yt[Qt]=qt,Oe=(Yt,Qt)=>{for(var qt in Qt||(Qt={}))We.call(Qt,qt)&&ye(Yt,qt,Qt[qt]);if(Re)for(var qt of Re(Qt))we.call(Qt,qt)&&ye(Yt,qt,Qt[qt]);return Yt},$e=(Yt,Qt)=>{var qt={};for(var Xt in Yt)We.call(Yt,Xt)&&Qt.indexOf(Xt)<0&&(qt[Xt]=Yt[Xt]);if(Yt!=null&&Re)for(var Xt of Re(Yt))Qt.indexOf(Xt)<0&&we.call(Yt,Xt)&&(qt[Xt]=Yt[Xt]);return qt},Ze=(Yt,Qt,qt)=>new Promise((Xt,ur)=>{var lr=Ar=>{try{Cr(qt.next(Ar))}catch(Tr){ur(Tr)}},ar=Ar=>{try{Cr(qt.throw(Ar))}catch(Tr){ur(Tr)}},Cr=Ar=>Ar.done?Xt(Ar.value):Promise.resolve(Ar.value).then(lr,ar);Cr((qt=qt.apply(Yt,Qt)).next())}),st=Yt=>{var Qt=Yt,{className:qt,style:Xt,children:ur,loading:lr=!1,openLoading:ar,onClick:Cr=()=>{},size:Ar="middle",shape:Tr="round"}=Qt,Nr=$e(Qt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[jr,Zr]=(0,ge.useState)(!1);return ge.createElement(te.ZP,Oe({onClick:(0,oe.throttle)(Wr=>Ze(void 0,null,function*(){ar&&Zr(!0);try{yield Cr(Wr)}catch(er){console.log("error",er)}ar&&Zr(!1)}),2e3,{leading:!0,trailing:!1}),className:E()(Ne.btn,Ne[`${Ar}-${Tr}`],qt),style:Xt,size:Ar,shape:Tr,loading:jr||lr},Nr),ur)},lt={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"},Tt=({className:Yt,style:Qt,children:qt=null,onClick:Xt,title:ur})=>ge.createElement("div",{className:E()(lt.head,Yt),style:Qt},ge.createElement("span",{className:"primary-hover",onClick:Xt},ge.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ge.createElement("b",{title:ur},ur),ge.createElement("div",{className:lt.node},qt)),St={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"},yt=({confirmShow:Yt=!0,confirmTitle:Qt,confirmClick:qt,cancelShow:Xt=!0,cancelTitle:ur,cancelClick:lr,className:ar,style:Cr,confirmLoading:Ar=!1})=>ge.createElement("div",{className:E()(St.btns,ar),style:Cr},Yt&&ge.createElement(te.ZP,{loading:Ar,onClick:qt,type:"primary",className:St.confirm},Qt),Xt&&ge.createElement(te.ZP,{onClick:lr,className:St.cancel},ur)),Dt={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"},xt=({className:Yt,style:Qt={},LeftContent:qt,children:Xt,RightContent:ur})=>ge.createElement("div",{className:E()(Dt.fixedBottom,Yt),style:Qt},ge.createElement("div",{className:Dt.wrap},ge.createElement("div",{className:Dt.left},qt),ge.createElement("div",{className:Dt.center},Xt),ge.createElement("div",{className:Dt.right},ur))),At={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"},ht=({className:Yt,style:Qt={},dataSource:qt=[]})=>ge.createElement("div",{className:E()(At.crumbs,Yt),style:Qt},qt.map((Xt,ur)=>ur<qt.length-1?ge.createElement(ge.Fragment,{key:ur},Xt.path||Xt.onClick?ge.createElement("span",{className:At.hover,onClick:Xt!=null&&Xt.onClick?Xt.onClick:()=>nt.history.push(Xt.path)},Xt.name):ge.createElement("span",null,Xt.name),ge.createElement("span",null,"\xA0",">","\xA0")):ge.createElement("span",{key:ur,style:{color:"#5F6368"}},Xt.name))),Ct=Ie(11938),Ht=Object.defineProperty,Vt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,tr=(Yt,Qt,qt)=>Qt in Yt?Ht(Yt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):Yt[Qt]=qt,sr=(Yt,Qt)=>{for(var qt in Qt||(Qt={}))$t.call(Qt,qt)&&tr(Yt,qt,Qt[qt]);if(kt)for(var qt of kt(Qt))Kt.call(Qt,qt)&&tr(Yt,qt,Qt[qt]);return Yt},gr=(Yt,Qt)=>Vt(Yt,vt(Qt)),br=(Yt,Qt)=>{var qt={};for(var Xt in Yt)$t.call(Yt,Xt)&&Qt.indexOf(Xt)<0&&(qt[Xt]=Yt[Xt]);if(Yt!=null&&kt)for(var Xt of kt(Yt))Qt.indexOf(Xt)<0&&Kt.call(Yt,Xt)&&(qt[Xt]=Yt[Xt]);return qt};const{Countdown:fr}=Ct.default;var ir=Yt=>{var Qt=Yt,{onChange:qt}=Qt,Xt=br(Qt,["onChange"]);const[ur,lr]=(0,ge.useState)(null);(0,ge.useEffect)(()=>{typeof ur=="number"&&ur>=0&&qt(ur)},[ur]);const ar=Cr=>{const Ar=Math.floor(Cr/1e3);lr(Ar)};return ge.createElement(fr,gr(sr({},Xt),{onChange:ar}))}},14167:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return gt}});var ge=Ie(59301);function gt(a,Te){const xe=(0,ge.useRef)();(0,ge.useEffect)(()=>{xe.current=a}),(0,ge.useEffect)(()=>{function z(){xe.current()}if(Te!==null){let E=setInterval(z,Te);return()=>clearInterval(E)}},[Te])}},779:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return je}});var ge=Ie(59301),gt=Ie(28284),a=Ie(36207),Te=Ie(62957),xe=Ie(6767),z=Ie(62673),E=Ie(28444),oe=Ie(34996),ie=Ie(81675),ee=Ie(79391),le={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",ne=Ie(89392),re=Ie(78176),ae=Ie(59301),se=Object.defineProperty,ce=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Pe=(Be,Ae,ve)=>Ae in Be?se(Be,Ae,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Be[Ae]=ve,Me=(Be,Ae)=>{for(var ve in Ae||(Ae={}))he.call(Ae,ve)&&Pe(Be,ve,Ae[ve]);if(me)for(var ve of me(Ae))be.call(Ae,ve)&&Pe(Be,ve,Ae[ve]);return Be},_e=(Be,Ae)=>ce(Be,pe(Ae));const De={theme:(0,ee.G)("cmCodeMode","vs-dark"),fontSize:(0,ee.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,ee.G)("cmTabToSpace",!0)};var Ce=(Be=>(Be[Be.set_font_size=0]="set_font_size",Be[Be.set_theme=1]="set_theme",Be[Be.on_tab_to_space=2]="on_tab_to_space",Be[Be.set_show_editor_setting=3]="set_show_editor_setting",Be))(Ce||{});function Ee(Be,Ae){switch(Ae.type){case 3:return _e(Me({},Be),{showEditorSetting:Ae.payload});case 1:return _e(Me({},Be),{theme:Ae.payload});case 0:return _e(Me({},Be),{fontSize:Ae.payload});case 2:return _e(Me({},Be),{tabToSpace:Ae.payload});default:throw new Error}}var je=({isLoading:Be,value:Ae=[],onChange:ve,form:Ue})=>{var He;const[Ye,ot]=(0,ge.useReducer)(Ee,De),{theme:Fe,fontSize:Ke,showEditorSetting:rt,tabToSpace:nt}=Ye,[et,Ge]=(0,ge.useState)("C"),[Xe,Ve]=(0,ge.useState)(!1),[tt,Qe]=(0,ge.useState)([]),ct=(0,ge.useRef)([]),at=gt.default.useWatch(["hack","languages"],Ue);(0,ge.useEffect)(()=>{Ae!=null&&Ae.length&&(ct.current=(0,ne.cloneDeep)(Ae))},[Ae]),(0,ge.useEffect)(()=>{Xe&&Qe(at)},[Xe]),(0,ge.useEffect)(()=>{Ge(at==null?void 0:at[0])},[at]);const qe={onFontSizeChange:We=>{ot({type:0,payload:We}),(0,ee.t)("cmFontSize",We)},tabToSpace:nt,cmFontSize:Ke,className:"oj",cmCodeMode:Fe,onTabToSpace:We=>{ot({type:2,payload:We}),(0,ee.t)("cmTabToSpace",We)},onCodeModeChange:We=>{ot({type:1,payload:We}),(0,ee.t)("cmCodeMode",We)}};function Le(){ot({type:3,payload:!1})}function Ne(){ot({type:3,payload:!0})}function te(We){var we;const ye=(we=ct.current)==null?void 0:we.map(Oe=>(Oe.language===et&&(Oe.code=We),Oe));ct.current=(0,ne.cloneDeep)(ye),ve(ye)}const de={key:et,value:(He=Ae==null?void 0:Ae.find(We=>We.language===et))==null?void 0:He.code,language:et,onChange:te,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:Ke,insertSpaces:nt}};console.log(888,Ae,at);const Re=Ae.filter(We=>at==null?void 0:at.includes(We.language));return ae.createElement(ge.Fragment,null,ae.createElement("div",{className:le["code-panel-container"]},ae.createElement(ke,{setVisible:Ve,languageItems:Re,onLanguage:We=>Ge(We),language:et,onShowCodeSetting:Ne}),!Be&&ae.createElement(E.ZP,Me({},de))),ae.createElement(ie.Z,null,ae.createElement(a.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:rt,onClose:Le},ae.createElement(oe.Z,Me({},qe)))),ae.createElement(Te.default,{centered:!0,open:Xe,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!tt.length){xe.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}Ue.setFieldValue(["hack","languages"],tt),Ve(!1)},onCancel:()=>Ve(!1)},ae.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},ae.createElement(z.default.Group,{value:tt,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:We=>{Qe(We)}}))))};function ke({languageItems:Be,language:Ae,onShowCodeSetting:ve,onLanguage:Ue,setVisible:He}){return ae.createElement("div",{className:le["action-oj-bar"]},Be==null?void 0:Be.map(Ye=>ae.createElement("aside",{className:Ae===(Ye==null?void 0:Ye.language)?le.active:"",onClick:()=>Ue(Ye==null?void 0:Ye.language),key:Ye==null?void 0:Ye.language},ae.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),ae.createElement("span",null,Ye==null?void 0:Ye.language))),ae.createElement("div",{className:le.tip},ae.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),ae.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),ae.createElement(re.op,{onClick:()=>He(!0),shape:"default"},ae.createElement("img",{src:x,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},81229:function(Jt,jt,Ie){"use strict";Ie.d(jt,{GM:function(){return oe},MK:function(){return E},PR:function(){return gt},ZS:function(){return ee},d1:function(){return a},fu:function(){return Te},j2:function(){return ie},l_:function(){return xe},uE:function(){return le},zQ:function(){return z}});var ge=Ie(82875);function gt(){return(0,ge.U2)("problems/new.json")}function a(ne="question"){return(0,ge.U2)("disciplines.json",{source:ne})}function Te(ne){return(0,ge.U2)(`problems/${ne}/edit.json`)}function xe(ne,re){return(0,ge.gz)(`problems/${ne}.json`,re)}function z(ne){return(0,ge.v_)("problems.json",ne)}function E(ne,re){return(0,ge.v_)(`exercises/${ne}/exercise_questions.json`,re)}function oe(ne,re){return(0,ge.gz)(`exercise_questions/${ne}.json`,re)}function ie(ne){return(0,ge.v_)(`problems/${ne}/publish.json`)}function ee(ne){return(0,ge.v_)(`problems/${ne}/cancel_publish.json`)}function le(ne){return(0,ge.U2)(`problems/${ne}/start.json`)}function x(ne,re){return post("tag_disciplines.json",{name:re,sub_discipline_id:ne})}},162:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Y2:function(){return He},ZP:function(){return Ye}});var ge=Ie(59301),gt=Ie(94968),a=Ie(6767),Te=Ie(62957),xe=Ie(77019),z=Ie(47889),E=Ie(7939),oe=Ie(62673),ie=Ie(25399),ee=Ie(37568),le={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",ne=Ie(47257),re=Ie.n(ne),ae=Ie(46666),se=Ie(82875),ce=Ie(1012),pe=Ie(49411),me=Ie(42576),he=Ie(59301),be=Object.defineProperty,Pe=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Ee=(ot,Fe,Ke)=>Fe in ot?be(ot,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):ot[Fe]=Ke,je=(ot,Fe)=>{for(var Ke in Fe||(Fe={}))De.call(Fe,Ke)&&Ee(ot,Ke,Fe[Ke]);if(_e)for(var Ke of _e(Fe))Ce.call(Fe,Ke)&&Ee(ot,Ke,Fe[Ke]);return ot},ke=(ot,Fe)=>Pe(ot,Me(Fe)),Be=(ot,Fe,Ke)=>new Promise((rt,nt)=>{var et=Ve=>{try{Xe(Ke.next(Ve))}catch(tt){nt(tt)}},Ge=Ve=>{try{Xe(Ke.throw(Ve))}catch(tt){nt(tt)}},Xe=Ve=>Ve.done?rt(Ve.value):Promise.resolve(Ve.value).then(et,Ge);Xe((Ke=Ke.apply(ot,Fe)).next())});const{Dragger:Ae}=gt.default,ve=ot=>{const Fe=tt=>tt&&tt.substring(0,tt.lastIndexOf("."));for(var Ke=[...ot],rt=0,nt=[],et=0;et<Ke.length;et++){for(var Ge="",Xe=0;Xe<nt.length;Xe++)if(Fe(nt[Xe][0].name)==Fe(Ke[et].name)){rt=1,Ge=Xe;break}if(rt==1)nt[Ge].push(Ke[et]),rt=0;else if(rt==0){let tt=new Array;tt.push(Ke[et]),nt.push(tt)}}return nt.map(tt=>{if(tt.forEach(Qe=>{let ct=Qe.name.split(/\.(?=[^\.]+$)/);Qe.name=`${ct[0]}.${ct[1].toLowerCase()}`}),tt[0].name.includes(".in"))return tt.length===2?tt:[tt[0],{}];if(tt[0].name.includes(".out"))return tt.length===2?tt.reverse():[{},tt[0]]})},Ue=({onClose:ot,onOK:Fe,visible:Ke,wrapClassName:rt,rootIdentifier:nt,multiple:et=!1,defaultMultipleValue:Ge=!0})=>{const[Xe,Ve]=(0,ge.useState)([]),[tt,Qe]=(0,ge.useState)({}),[ct,at]=(0,ge.useState)(!1),[qe,Le]=(0,ge.useState)(!0),Ne=(0,ge.useRef)([]),te=(0,ge.useRef)(0),de=()=>{ot()};(0,ge.useEffect)(()=>{Re()},[]),(0,ge.useEffect)(()=>{Ke&&(Ne.current=[],te.current=0,Ve([]),Le(Ge))},[Ke]);const Re=()=>Be(void 0,null,function*(){try{const st=yield(0,se.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),lt=JSON.parse((0,ae.pe)(st.data));Qe(lt)}catch(st){}}),We=st=>st&&st.substring(0,st.lastIndexOf(".")),we=st=>{var lt,ft;const Tt=We((lt=st[0])==null?void 0:lt.name)||We((ft=st[1])==null?void 0:ft.name),St=Xe.filter(Ot=>We(Ot.name)!==Tt);Ne.current=[...St],Ve([...St])},ye=st=>{if(!qe){const yt=new FormData;yt.append("file",st.file),(0,se.ZP)("/api/attachments/get_file_content.json",{method:"post",body:yt},!0).then(Et=>{if(Et.status===0){te.current=te.current+1;const xt=Ne.current.map(At=>{var It;if(At.name===st.name){const ht=je({},At);return(It=st==null?void 0:st.name)!=null&&It.includes(".in")?ht.input=Et==null?void 0:Et.content:ht.output=Et==null?void 0:Et.content,ht}return At});if(Ne.current=[...xt],Ve([...xt]),te.current>0&&te.current===Xe.length){at(!1);let At=ve(xt);At=At.filter(It=>{var ht,Ct;return!!((ht=It[0])!=null&&ht.name&&((Ct=It[1])!=null&&Ct.name))}),At=At.map(It=>ke(je(je({},It[0]),It[1]),{is_file:!1})),Fe(At),ot()}}else at(!1),ot()});return}const lt=new(re())({endpoint:tt.end_point,region:tt.region,accessKeyId:tt.access_key_id,accessKeySecret:tt.access_key_secret,bucket:tt.bucket,stsToken:tt.security_token}),ft=st.name,Tt={container_type:"TestSet",file_name:ft},St=(0,ce.Z)();let Ot=`testsets/${nt}/${St}${ft.indexOf(".")>-1?"."+ft.split(".").pop():""}`;nt===null&&(Ot=`testsets/${St}${ft.indexOf(".")>-1?"."+ft.split(".").pop():""}`),lt.multipartUpload(Ot,new Blob([st.file],{type:st.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:ft+""},url:tt==null?void 0:tt.callback_url,host:tt==null?void 0:tt.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,se.rz)(Tt)}}).then(function(yt){if(yt.data.status===0){te.current=te.current+1;const Dt=Ne.current.map(Et=>{var xt,At,It,ht,Ct,Ht,Vt,vt,kt,$t,Kt,tr,sr,gr,br,fr,yr;if(Et.name===((At=(xt=yt.data)==null?void 0:xt.data)==null?void 0:At.file_name)){const ir=je({},Et);return(Ct=(ht=(It=yt.data)==null?void 0:It.data)==null?void 0:ht.file_name)!=null&&Ct.includes(".in")?(ir.in_object_key=(Vt=(Ht=yt.data)==null?void 0:Ht.data)==null?void 0:Vt.object,ir.in_object_size=(kt=(vt=yt.data)==null?void 0:vt.data)==null?void 0:kt.size,ir.input=(Kt=($t=yt.data)==null?void 0:$t.data)==null?void 0:Kt.file_name,ir.in_file=st):(ir.out_object_key=(sr=(tr=yt.data)==null?void 0:tr.data)==null?void 0:sr.object,ir.out_object_size=(br=(gr=yt.data)==null?void 0:gr.data)==null?void 0:br.size,ir.output=(yr=(fr=yt.data)==null?void 0:fr.data)==null?void 0:yr.file_name,ir.out_file=st),ir}return Et});if(Ne.current=[...Dt],Ve([...Dt]),te.current>0&&te.current===Xe.length){at(!1);let Et=ve(Dt);Et=Et.filter(xt=>{var At,It;return!!((At=xt[0])!=null&&At.name&&((It=xt[1])!=null&&It.name))}),Et=Et.map(xt=>ke(je(je({},xt[0]),xt[1]),{is_file:!0})),Fe(Et),ot()}}})},Oe=st=>new Promise((lt,ft)=>{let Tt=0,St=[];for(let Ot=0;Ot<st.length;Ot++)st[Ot].file.slice(0,1).arrayBuffer().then(()=>{Tt++,Tt===st.length&&(St.length?(a.ZP.warning(`${St.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),ft()):lt(st))}).catch(yt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",yt),Tt++,St.push(st[Ot].name),Tt===st.length&&(St.length?(a.ZP.warning(`${St.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),ft()):lt(st))})}),$e=()=>Be(void 0,null,function*(){if(Xe.length===0){a.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Oe(Xe),at(!0),ve(Xe).some(lt=>{var ft,Tt;return!((ft=lt[0])!=null&&ft.name&&((Tt=lt[1])!=null&&Tt.name))})){Te.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Be(void 0,null,function*(){Xe.map(lt=>Be(void 0,null,function*(){ye(lt)}))}),onCancel:()=>{at(!1)}});return}Xe.map(lt=>Be(void 0,null,function*(){ye(lt)}))}),Ze={name:"file",fileList:Xe,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:st=>{if(Xe!=null&&Xe.some(ft=>ft.name===st.name))return a.ZP.info(`${st.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(st.size/1024/1024>100)return a.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(st.name))return a.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const lt={name:st.name,uid:st.uid,file:st,percent:0};return Xe.push(lt),Ne.current=[...Xe],Ve([...Xe]),!1}},Je=ve(Xe);return console.log(Xe,Je,"fileList"),he.createElement(Te.default,{open:Ke,wrapClassName:rt,onOk:$e,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:ct},onCancel:de,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},he.createElement("div",{className:le.wrap},Xe.length?he.createElement("div",null,he.createElement(xe.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},he.createElement("div",{style:{visibility:et?"visible":"hidden"}},he.createElement("span",{className:le.greyText},"\u7528\u4F8B\u7C7B\u578B"),he.createElement(z.ZP.Group,{className:`ml20 ${le.testCaseRadio}`,optionType:"button",value:qe,onChange:st=>Le(st.target.value)},he.createElement(z.ZP,{value:!1},"\u6587\u672C"),he.createElement(z.ZP,{value:!0},"\u6587\u4EF6"))),he.createElement(gt.default,je({},Ze),he.createElement(E.ZP,{type:"primary",className:le.btnS},he.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),he.createElement(He,{data:Je,onRemove:we})):he.createElement("div",{className:`${le.noData} mb30`},he.createElement(gt.default.Dragger,ke(je({},Ze),{className:le.dragger}),he.createElement("img",{src:x,alt:"",className:"mb20"}),he.createElement("div",null,he.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),he.createElement("span",{className:le.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),he.createElement("div",{className:le.text},he.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),he.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",he.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",he.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",he.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",he.createElement("br",null))))},He=({data:ot=[],onRemove:Fe,width:Ke="auto",showScore:rt=!1,disabled:nt=!1,inputChange:et,onEvaluatingChange:Ge,onSelectAll:Xe,checkAll1:Ve,checkAll2:tt,checkAll3:Qe,checkAll4:ct,checkAll5:at,showEvaluatingSetting:qe=!1,className:Le="",isProgramHomework:Ne=!1})=>{const te={value:"",filename:"",dataUrl:""},[de,Re]=(0,ge.useState)(je({},te)),We=Oe=>{let $e=document.createElement("a");document.body.appendChild($e);let Ze=URL.createObjectURL(Oe.file);$e.href=Ze,$e.download=Oe.name,$e.click(),URL.revokeObjectURL(Ze),document.body.removeChild($e)},we=(Oe,$e)=>{(0,pe.LR)(Oe,$e)},ye=(Oe,$e)=>{Te.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:he.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Fe(Oe,$e)},onCancel:()=>{}})};return ot.length?he.createElement("div",{className:Le,style:{width:Ke}},he.createElement("div",{className:`${Ne?le.headProgram:le.head}`},qe&&he.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},he.createElement(oe.default,{checked:Ve,onChange:Oe=>{Xe(Oe.target.checked,"hidden")}}),he.createElement(ie.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},he.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),he.createElement("div",{style:{width:Ne?"25%":"15%"}},"\u7528\u4F8B"),he.createElement("div",{style:{width:rt?Ne?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),he.createElement("div",{style:{width:rt?Ne?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),rt&&he.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),qe&&he.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},he.createElement(oe.default,{checked:ct,onChange:Oe=>{Xe(Oe.target.checked,"input_visible")}}),he.createElement(ie.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},he.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),qe&&he.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},he.createElement(oe.default,{checked:tt,onChange:Oe=>{Xe(Oe.target.checked,"is_invisible")}}),he.createElement(ie.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},he.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),qe&&he.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},he.createElement(oe.default,{checked:at,onChange:Oe=>{Xe(Oe.target.checked,"actual_output_visible")}}),he.createElement(ie.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},he.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),qe&&he.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},he.createElement(oe.default,{checked:Qe,onChange:Oe=>{Xe(Oe.target.checked,"last_match_rule")}}),he.createElement(ie.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},he.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),he.createElement("div",{className:le.operation,style:Ne?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),he.createElement("div",{className:le.listWrapper,style:{boxShadow:Ne?"0px 2px 4px 0px #EAEEF4":"unset"}},ot.map((Oe,$e)=>{var Ze,Je,st,lt;return he.createElement("div",{key:$e,className:le.list,style:Ne?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},qe&&he.createElement("div",{style:{width:"15%"}},he.createElement(oe.default,{checked:!!Oe.hidden,onChange:ft=>{Ge(ft.target.checked,$e,"hidden")}})),he.createElement("div",{style:{width:Ne?"25%":"15%",paddingLeft:Ne?"5px":"0px",paddingRight:Ne?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",$e+1),he.createElement("div",{className:le.info,style:{width:rt?Ne?"20%":"15%":"25%"}},he.createElement("span",{title:Oe.input||((Ze=Oe[0])==null?void 0:Ze.name),onClick:()=>Be(void 0,null,function*(){let ft;Oe.input?Oe.input_file_url?ft=Oe.input_file_url:ft=Oe.in_file:ft=Oe[0];let Tt;typeof ft=="string"?(Tt=yield fetch(ft,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Re({value:yield Tt.text(),filename:"",dataUrl:ft})):(Tt=yield(0,pe.db)(ft.file),Re({value:Tt.text,filename:ft.name,dataUrl:Tt.link}))})},Oe.input||((Je=Oe[0])==null?void 0:Je.name))),he.createElement("div",{className:le.info,style:{width:rt?Ne?"20%":"15%":"25%"}},he.createElement("span",{title:Oe.output||((st=Oe[1])==null?void 0:st.name),onClick:()=>Be(void 0,null,function*(){let ft;Oe.input?Oe.output_file_url?ft=Oe.output_file_url:ft=Oe.out_file:ft=Oe[1];let Tt;typeof ft=="string"?(Tt=yield fetch(ft,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Re({value:yield Tt.text(),filename:"",dataUrl:ft})):(Tt=yield(0,pe.db)(ft.file),Re({value:Tt.text,filename:ft.name,dataUrl:Tt.link}))})},Oe.output||((lt=Oe[1])==null?void 0:lt.name))),rt&&he.createElement("div",{style:{width:"20%"}},he.createElement(ee.default,{size:"large",addonAfter:Ne?"%":null,disabled:nt,style:{width:"80%"},onChange:ft=>et(ft,$e),value:Oe.score}),!Ne&&he.createElement("span",null,"\xA0%")),qe&&he.createElement("div",{style:{width:"20%"}},he.createElement(oe.default,{checked:Oe.input_visible||!1,onChange:ft=>{Ge(ft.target.checked,$e,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),qe&&he.createElement("div",{style:{width:"20%"}},he.createElement(oe.default,{checked:Oe.is_invisible||!1,onChange:ft=>{Ge(ft.target.checked,$e,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),qe&&he.createElement("div",{style:{width:"20%"}},he.createElement(oe.default,{checked:Oe.actual_output_visible||!1,onChange:ft=>{Ge(ft.target.checked,$e,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),qe&&he.createElement("div",{style:{width:"20%"}},he.createElement(oe.default,{checked:Oe.last_match_rule||!1,onChange:ft=>{Ge(ft.target.checked,$e,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),he.createElement("div",{onClick:()=>ye(Oe,$e),style:Ne?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},he.createElement("span",{className:le.del},"\u5220\u9664")))})),he.createElement(me.Z,{close:!0,data:de.dataUrl,filename:de.filename,type:de.dataUrl.length?"txt":"",onClose:()=>Re(je({},te)),monacoEditor:{value:de.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):he.createElement(he.Fragment,null)};var Ye=Ue},92663:function(Jt,jt,Ie){"use strict";Ie.d(jt,{c:function(){return gt}});var ge=(a=>(a.FirstPage="firstPage",a.PrevPage="prevPage",a.NextPage="nextPage",a))(ge||{}),gt=(a=>(a[a.Single=0]="Single",a[a.Multiple=1]="Multiple",a[a.Judge=2]="Judge",a[a.Fill=3]="Fill",a[a.Subjective=4]="Subjective",a[a.Shixun=5]="Shixun",a[a.Program=6]="Program",a[a.Combine=7]="Combine",a))(gt||{})},25386:function(Jt,jt,Ie){"use strict";Ie.d(jt,{AL:function(){return be},Iy:function(){return le},Qv:function(){return re},ez:function(){return he},jb:function(){return x}});var ge=Ie(32834),gt=Ie.n(ge),a=Ie(11690),Te=Ie.n(a);let xe=1;function z(Ce,Ee){const je=Ce.match(/^(\s+)(?:```)/);if(je===null)return Ee;const ke=je[1];return Ee.split(`
`).map(Be=>{const Ae=Be.match(/^\s+/);if(Ae===null)return Be;const[ve]=Ae;return ve.length>=ke.length?Be.slice(ke.length):Be}).join(`
`)}let E=[],oe=["<ul>"];const ie=new(gt()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){E.length=0,oe=["<ul>"]}const x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ne(Ce,Ee,je,ke){if(Ee>=Ce.length||Ce[Ee].level<=je)return Ee;var Be=Ce[Ee];ke.push("<li><a href='#"+xe+Be.anchor+"'>"+Be.text+"</a>"),Ee++;var Ae=[];return Ee=ne(Ce,Ee,Be.level,Ae),Ae.length>0&&(ke.push("<ul>"),Ae.forEach(function(ve){ke.push(ve)}),ke.push("</ul>")),ke.push("</li>"),Ee=ne(Ce,Ee,je,ke),Ee}function re(){return ne(E,0,0,oe),oe.push("</ul>"),oe.join("")}const ae={heading(Ce){const Ee=ee.exec(Ce);if(xe+=1,Ee)return{type:"heading",raw:Ee[0],depth:Ee[1].length,text:Ee[2]}},fences(Ce){const Ee=this.rules.block.fences.exec(Ce);if(Ee){const je=Ee[0];let ke=z(je,Ee[3]||"");const Be=Ee[2]?Ee[2].trim():Ee[2];if(["latex","katex","math"].indexOf(Be)>=0){const Ae=pe(),ve=ke;ke=Ae,me[Ae]={type:"block",expression:ve}}return{type:"code",raw:je,lang:Be,text:ke}}}},se=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ce=0;const pe=()=>`__special_katext_id_${ce++}__`;let me={};function he(){return me}function be(){ce=0,me={}}function Pe(Ce){return Ce=Ce.replace(se,(Ee,je)=>{const ke=pe();return me[ke]={type:"inline",expression:je},ke}),Ce}const Me=ie.listitem;ie.listitem=function(Ce){return Me(Pe(Ce))};const _e=ie.paragraph;ie.paragraph=function(Ce){return _e(Pe(Ce))};const De=ie.tablecell;ie.tablecell=function(Ce,Ee){return De(Pe(Ce),Ee)},ie.code=function(Ce,Ee,je){const ke=(Ee||"").match(/\S*/)[0];return ke?["latex","katex","math"].indexOf(ke)>=0?`<p class='editormd-tex'>${Ce}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ee}">${je?Ce:(0,a.escape)(Ce,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(je?Ce:(0,a.escape)(Ce,!0))+"</code></pre>"},ie.heading=function(Ce,Ee,je){let ke=this.options.headerPrefix+je.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return E.push({anchor:ke,level:Ee,text:Ce}),"<h"+Ee+' id="'+xe+ke+'">'+Ce+"</h"+Ee+">"},gt().setOptions({silent:!0,gfm:!0,pedantic:!1}),gt().use({tokenizer:ae,renderer:ie}),jt.ZP=gt()},79391:function(Jt,jt,Ie){"use strict";Ie.d(jt,{G:function(){return xe},t:function(){return Te}});var ge=Ie(7062),gt=Ie.n(ge);const a=null;function Te(z,E){let oe=gt().get("__ec");oe||(oe={}),oe[z]=E,gt().set("__ec",oe)}function xe(z,E){let oe=gt().get("__ec");return oe?oe[z]===void 0?E:oe[z]:E}},47257:function(Jt){(function(jt){(function(Ie){if(1)Jt.exports=Ie();else var ge})(function(){var Ie,ge,gt;return function(){function a(Te,xe,z){function E(ee,le){if(!xe[ee]){if(!Te[ee]){var x=void 0;if(!le&&x)return require(ee,!0);if(oe)return oe(ee,!0);var ne=new Error("Cannot find module '"+ee+"'");throw ne.code="MODULE_NOT_FOUND",ne}var re=xe[ee]={exports:{}};Te[ee][0].call(re.exports,function(ae){var se=Te[ee][1][ae];return E(se||ae)},re,re.exports,a,Te,xe,z)}return xe[ee].exports}for(var oe=void 0,ie=0;ie<z.length;ie++)E(z[ie]);return E}return a}()({1:[function(a,Te,xe){"use strict";var z=a("./browser/client");z.Buffer=a("buffer").Buffer,z.urllib=a("../shims/xhr"),z.version=a("./browser/version").version,Te.exports=z},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.slice.js");var ie=a("assert"),ee=a("../common/utils/checkBucketName"),le=ee.checkBucketName,x=xe;function ne(ae){return Array.isArray?Array.isArray(ae):Object.prototype.toString.call(ae)==="[object Array]"}function re(ae){return ae?ne(ae)?ae:[ae]:[]}x.useBucket=function(se){return le(se),this.options.bucket=se,this},x.setBucket=function(se){return le(se),this.options.bucket=se,this},x.getBucket=function(){return this.options.bucket},x.deleteBucket=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me){var he,be;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=this._bucketRequestParams("DELETE",pe,"",me),Me.next=3,this.request(he);case 3:if(be=Me.sent,!(be.status===200||be.status===204)){Me.next=6;break}return Me.abrupt("return",{res:be.res});case 6:return Me.next=8,this.requestError(be);case 8:throw Me.sent;case 9:case"end":return Me.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.putBucketACL=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me,he){var be,Pe;return E.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return be=this._bucketRequestParams("PUT",pe,"acl",he),be.headers={"x-oss-acl":me},be.successStatuses=[200],_e.next=5,this.request(be);case 5:return Pe=_e.sent,_e.abrupt("return",{bucket:Pe.headers.location&&Pe.headers.location.substring(1)||null,res:Pe.res});case 7:case"end":return _e.stop()}},ce,this)}));function se(ce,pe,me){return ae.apply(this,arguments)}return se}(),x.getBucketACL=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me){var he,be;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=this._bucketRequestParams("GET",pe,"acl",me),he.successStatuses=[200],he.xmlResponse=!0,Me.next=5,this.request(he);case 5:return be=Me.sent,Me.abrupt("return",{acl:be.data.AccessControlList.Grant,owner:{id:be.data.Owner.ID,displayName:be.data.Owner.DisplayName},res:be.res});case 7:case"end":return Me.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.putBucketLogging=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me,he){var be,Pe,Me;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return be=this._bucketRequestParams("PUT",pe,"logging",he),Pe=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(pe,`</TargetBucket>
`),me&&(Pe+="<TargetPrefix>".concat(me,`</TargetPrefix>
`)),Pe+=`</LoggingEnabled>
</BucketLoggingStatus>`,be.content=Pe,be.mime="xml",be.successStatuses=[200],De.next=9,this.request(be);case 9:return Me=De.sent,De.abrupt("return",{res:Me.res});case 11:case"end":return De.stop()}},ce,this)}));function se(ce,pe,me){return ae.apply(this,arguments)}return se}(),x.getBucketLogging=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me){var he,be,Pe;return E.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return he=this._bucketRequestParams("GET",pe,"logging",me),he.successStatuses=[200],he.xmlResponse=!0,_e.next=5,this.request(he);case 5:return be=_e.sent,Pe=be.data.LoggingEnabled,_e.abrupt("return",{enable:!!Pe,prefix:Pe&&Pe.TargetPrefix||null,res:be.res});case 8:case"end":return _e.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.deleteBucketLogging=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me){var he,be;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=this._bucketRequestParams("DELETE",pe,"logging",me),he.successStatuses=[204,200],Me.next=4,this.request(he);case 4:return be=Me.sent,Me.abrupt("return",{res:be.res});case 6:case"end":return Me.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.putBucketCORS=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me,he){var be,Pe,Me,_e,De,Ce,Ee,je,ke,Be;return E.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:for(me=me||[],ie(me.length,"rules is required"),me.forEach(function(Ue){ie(Ue.allowedOrigin,"allowedOrigin is required"),ie(Ue.allowedMethod,"allowedMethod is required")}),be=this._bucketRequestParams("PUT",pe,"cors",he),Pe=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,Me=function(He){Pe+="<AllowedOrigin>".concat(He,"</AllowedOrigin>")},_e=function(He){Pe+="<AllowedMethod>".concat(He,"</AllowedMethod>")},De=function(He){Pe+="<AllowedHeader>".concat(He,"</AllowedHeader>")},Ce=function(He){Pe+="<ExposeHeader>".concat(He,"</ExposeHeader>")},Ee=0,je=me.length;Ee<je;Ee++)ke=me[Ee],Pe+="<CORSRule>",re(ke.allowedOrigin).forEach(Me),re(ke.allowedMethod).forEach(_e),re(ke.allowedHeader).forEach(De),re(ke.exposeHeader).forEach(Ce),ke.maxAgeSeconds&&(Pe+="<MaxAgeSeconds>".concat(ke.maxAgeSeconds,"</MaxAgeSeconds>")),Pe+="</CORSRule>";return Pe+="</CORSConfiguration>",be.content=Pe,be.mime="xml",be.successStatuses=[200],ve.next=16,this.request(be);case 16:return Be=ve.sent,ve.abrupt("return",{res:Be.res});case 18:case"end":return ve.stop()}},ce,this)}));function se(ce,pe,me){return ae.apply(this,arguments)}return se}(),x.getBucketCORS=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me){var he,be,Pe,Me;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return he=this._bucketRequestParams("GET",pe,"cors",me),he.successStatuses=[200],he.xmlResponse=!0,De.next=5,this.request(he);case 5:return be=De.sent,Pe=[],be.data&&be.data.CORSRule&&(Me=be.data.CORSRule,ne(Me)||(Me=[Me]),Me.forEach(function(Ce){var Ee={};Object.keys(Ce).forEach(function(je){Ee[je.slice(0,1).toLowerCase()+je.slice(1,je.length)]=Ce[je]}),Pe.push(Ee)})),De.abrupt("return",{rules:Pe,res:be.res});case 9:case"end":return De.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.deleteBucketCORS=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me){var he,be;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=this._bucketRequestParams("DELETE",pe,"cors",me),he.successStatuses=[204],Me.next=4,this.request(he);case 4:return be=Me.sent,Me.abrupt("return",{res:be.res});case 6:case"end":return Me.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.putBucketReferer=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me,he,be){var Pe,Me,_e,De;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(Pe=this._bucketRequestParams("PUT",pe,"referer",be),Me=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,Me+=" <AllowEmptyReferer>".concat(me?"true":"false",`</AllowEmptyReferer>
`),he&&he.length>0){for(Me+=` <RefererList>
`,_e=0;_e<he.length;_e++)Me+=" <Referer>".concat(he[_e],`</Referer>
`);Me+=` </RefererList>
`}else Me+=` <RefererList />
`;return Me+="</RefererConfiguration>",Pe.content=Me,Pe.mime="xml",Pe.successStatuses=[200],Ee.next=10,this.request(Pe);case 10:return De=Ee.sent,Ee.abrupt("return",{res:De.res});case 12:case"end":return Ee.stop()}},ce,this)}));function se(ce,pe,me,he){return ae.apply(this,arguments)}return se}(),x.getBucketReferer=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me){var he,be,Pe;return E.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return he=this._bucketRequestParams("GET",pe,"referer",me),he.successStatuses=[200],he.xmlResponse=!0,_e.next=5,this.request(he);case 5:return be=_e.sent,Pe=be.data.RefererList.Referer||null,Pe&&(ne(Pe)||(Pe=[Pe])),_e.abrupt("return",{allowEmpty:be.data.AllowEmptyReferer==="true",referers:Pe,res:be.res});case 9:case"end":return _e.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.deleteBucketReferer=function(){var ae=(0,oe.default)(E.default.mark(function ce(pe,me){return E.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,this.putBucketReferer(pe,!0,null,me);case 2:return be.abrupt("return",be.sent);case 3:case"end":return be.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x._bucketRequestParams=function(se,ce,pe,me){return{method:se,bucket:ce,subres:pe,timeout:me&&me.timeout,ctx:me&&me.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(a,Te,xe){(function(z,E){(function(){"use strict";var oe=a("@babel/runtime/helpers/interopRequireDefault"),ie=oe(a("@babel/runtime/regenerator")),ee=oe(a("@babel/runtime/helpers/asyncToGenerator"));a("core-js/modules/es.function.name.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.symbol.js"),a("core-js/modules/es.symbol.description.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.to-string.js");var le=a("debug")("ali-oss"),x=a("xml2js"),ne=a("agentkeepalive"),re=a("merge-descriptors"),ae=a("platform"),se=a("utility"),ce=a("urllib"),pe=a("./version"),me=a("bowser"),he=a("../common/signUtils"),be=a("../common/client/initOptions"),Pe=a("../common/utils/createRequest"),Me=Pe.createRequest,_e=a("../common/utils/encoder"),De=_e.encoder,Ce=a("../common/client/getReqUrl"),Ee=Ce.getReqUrl,je=a("../common/utils/setSTSToken"),ke=je.setSTSToken,Be=a("../common/utils/retry"),Ae=Be.retry,ve=a("../common/utils/isFunction"),Ue=ve.isFunction,He=new ne;function Ye(){var et=ae.name,Ge=ae.version;et&&et.toLowerCase&&et.toLowerCase()==="ie"&&Ge.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function ot(){return location&&location.protocol==="https:"}function Fe(et,Ge){if(Ye(),!(this instanceof Fe))return new Fe(et,Ge);et&&et.inited?this.options=et:this.options=Fe.initOptions(et),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ce,this.agent=this.options.agent||He),this.ctx=Ge,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Te.exports=Fe,Fe.initOptions=function(Ge){Ge.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Xe=Object.assign({secure:ot(),useFetch:!1},Ge);return be(Xe)};var Ke=Fe.prototype;Ke.debug=le,re(Ke,a("./object")),re(Ke,a("./bucket")),re(Ke,a("../common/bucket/getBucketWebsite")),re(Ke,a("../common/bucket/putBucketWebsite")),re(Ke,a("../common/bucket/deleteBucketWebsite")),re(Ke,a("../common/bucket/getBucketLifecycle")),re(Ke,a("../common/bucket/putBucketLifecycle")),re(Ke,a("../common/bucket/deleteBucketLifecycle")),re(Ke,a("../common/bucket/putBucketVersioning")),re(Ke,a("../common/bucket/getBucketVersioning")),re(Ke,a("../common/bucket/getBucketInventory")),re(Ke,a("../common/bucket/deleteBucketInventory")),re(Ke,a("../common/bucket/listBucketInventory")),re(Ke,a("../common/bucket/putBucketInventory")),re(Ke,a("../common/bucket/abortBucketWorm")),re(Ke,a("../common/bucket/completeBucketWorm")),re(Ke,a("../common/bucket/extendBucketWorm")),re(Ke,a("../common/bucket/getBucketWorm")),re(Ke,a("../common/bucket/initiateBucketWorm")),re(Ke,a("./managed-upload")),re(Ke,a("../common/multipart-copy")),re(Ke,a("../common/multipart")),re(Ke,a("../common/parallel")),Ke.signature=function(Ge){return this.debug("authorization stringToSign: %s",Ge,"info"),he.computeSignature(this.options.accessKeySecret,Ge,this.options.headerEncoding)},Ke._getReqUrl=Ee,Ke.authorization=function(Ge,Xe,Ve,tt){var Qe=he.buildCanonicalString(Ge.toUpperCase(),Xe,{headers:tt,parameters:Ve});return he.authorization(this.options.accessKeyId,this.options.accessKeySecret,Qe,this.options.headerEncoding)},Ke.request=function(){var et=(0,ee.default)(ie.default.mark(function Ge(Xe){var Ve=this;return ie.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!this.options.retryMax){Qe.next=6;break}return Qe.next=3,Ae(rt.bind(this),this.options.retryMax,{errorHandler:function(at){var qe=function(Ne){if(Xe.stream)return!1;var te=[-1,-2].includes(Ne.status),de=Ve.options.requestErrorRetryHandle||function(){return!0};return te&&de(Ne)};return!!qe(at)}})(Xe);case 3:return Qe.abrupt("return",Qe.sent);case 6:return Qe.abrupt("return",rt.call(this,Xe));case 7:case"end":return Qe.stop()}},Ge,this)}));return function(Ge){return et.apply(this,arguments)}}();function rt(et){return nt.apply(this,arguments)}function nt(){return nt=(0,ee.default)(ie.default.mark(function et(Ge){var Xe,Ve,tt,Qe,ct,at;return ie.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!(this.options.stsToken&&Ue(this.options.refreshSTSToken))){Le.next=3;break}return Le.next=3,ke.call(this);case 3:return Xe=Me.call(this,Ge),this.options.useFetch||(Xe.params.mode="disable-fetch"),Qe=!!Ge.stream,Le.prev=6,Le.next=9,this.urllib.request(Xe.url,Xe.params);case 9:Ve=Le.sent,this.debug("response %s %s, got %s, headers: %j",Ge.method,Xe.url,Ve.status,Ve.headers,"info"),Le.next=16;break;case 13:Le.prev=13,Le.t0=Le.catch(6),tt=Le.t0;case 16:if(!(Ve&&Ge.successStatuses&&Ge.successStatuses.indexOf(Ve.status)===-1)){Le.next=28;break}return Le.next=19,this.requestError(Ve);case 19:if(ct=Le.sent,!(ct.code==="RequestTimeTooSkewed"&&!Qe)){Le.next=25;break}return this.options.amendTimeSkewed=+new Date(ct.serverTime)-new Date,Le.next=24,this.request(Ge);case 24:return Le.abrupt("return",Le.sent);case 25:ct.params=Ge,Le.next=32;break;case 28:if(!tt){Le.next=32;break}return Le.next=31,this.requestError(tt);case 31:ct=Le.sent;case 32:if(!ct){Le.next=34;break}throw ct;case 34:if(!Ge.xmlResponse){Le.next=39;break}return Le.next=37,this.parseXML(Ve.data);case 37:at=Le.sent,Ve.data=at;case 39:return Le.abrupt("return",Ve);case 40:case"end":return Le.stop()}},et,this,[[6,13]])})),nt.apply(this,arguments)}Ke._getResource=function(Ge){var Xe="/";return Ge.bucket&&(Xe+="".concat(Ge.bucket,"/")),Ge.object&&(Xe+=De(Ge.object,this.options.headerEncoding)),Xe},Ke._escape=function(Ge){return se.encodeURIComponent(Ge).replace(/%2F/g,"/")},Ke._getUserAgent=function(){var Ge=E&&E.browser?"js":"nodejs",Xe="aliyun-sdk-".concat(Ge,"/").concat(pe.version),Ve=ae.description;return!Ve&&E&&(Ve="Node.js ".concat(E.version.slice(1)," on ").concat(E.platform," ").concat(E.arch)),this._checkUserAgent("".concat(Xe," ").concat(Ve))},Ke._checkUserAgent=function(Ge){var Xe=Ge.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Xe},Ke.checkBrowserAndVersion=function(Ge,Xe){return me.name===Ge&&me.version.split(".")[0]===Xe},Ke.parseXML=function(Ge){return new Promise(function(Xe,Ve){z.isBuffer(Ge)&&(Ge=Ge.toString()),x.parseString(Ge,{explicitRoot:!1,explicitArray:!1},function(tt,Qe){tt?Ve(tt):Xe(Qe)})})},Ke.requestError=function(){var et=(0,ee.default)(ie.default.mark(function Xe(Ve){var tt,Qe,ct,at;return ie.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(tt=null,!(!Ve.data||!Ve.data.length)){Le.next=5;break}Ve.status===-1||Ve.status===-2?(tt=new Error(Ve.message),tt.name=Ve.name,tt.status=Ve.status,tt.code=Ve.name):(Ve.status===404?(tt=new Error("Object not exists"),tt.name="NoSuchKeyError",tt.status=404,tt.code="NoSuchKey"):Ve.status===412?(tt=new Error("Pre condition failed"),tt.name="PreconditionFailedError",tt.status=412,tt.code="PreconditionFailed"):(tt=new Error("Unknow error, status: ".concat(Ve.status)),tt.name="UnknownError",tt.status=Ve.status),tt.requestId=Ve.headers["x-oss-request-id"],tt.host=""),Le.next=32;break;case 5:return Qe=String(Ve.data),this.debug("request response error data: %s",Qe,"error"),Le.prev=7,Le.next=10,this.parseXML(Qe);case 10:if(Le.t0=Le.sent,Le.t0){Le.next=13;break}Le.t0={};case 13:ct=Le.t0,Le.next=23;break;case 16:return Le.prev=16,Le.t1=Le.catch(7),this.debug(Qe,"error"),Le.t1.message+=`
raw xml: `.concat(Qe),Le.t1.status=Ve.status,Le.t1.requestId=Ve.headers["x-oss-request-id"],Le.abrupt("return",Le.t1);case 23:at=ct.Message||"unknow request error, status: ".concat(Ve.status),ct.Condition&&(at+=" (condition: ".concat(ct.Condition,")")),tt=new Error(at),tt.name=ct.Code?"".concat(ct.Code,"Error"):"UnknownError",tt.status=Ve.status,tt.code=ct.Code,tt.requestId=ct.RequestId,tt.hostId=ct.HostId,tt.serverTime=ct.ServerTime;case 32:return this.debug("generate error %j",tt,"error"),Le.abrupt("return",tt);case 34:case"end":return Le.stop()}},Xe,this,[[7,16]])}));function Ge(Xe){return et.apply(this,arguments)}return Ge}()}).call(this)}).call(this,{isBuffer:a("../../node_modules/is-buffer/index.js")},a("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(a,Te,xe){(function(z){(function(){"use strict";var E=a("@babel/runtime/helpers/interopRequireDefault"),oe=E(a("@babel/runtime/regenerator"));a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.typed-array.uint8-array.js"),a("core-js/modules/es.typed-array.copy-within.js"),a("core-js/modules/es.typed-array.every.js"),a("core-js/modules/es.typed-array.fill.js"),a("core-js/modules/es.typed-array.filter.js"),a("core-js/modules/es.typed-array.find.js"),a("core-js/modules/es.typed-array.find-index.js"),a("core-js/modules/es.typed-array.for-each.js"),a("core-js/modules/es.typed-array.includes.js"),a("core-js/modules/es.typed-array.index-of.js"),a("core-js/modules/es.typed-array.iterator.js"),a("core-js/modules/es.typed-array.join.js"),a("core-js/modules/es.typed-array.last-index-of.js"),a("core-js/modules/es.typed-array.map.js"),a("core-js/modules/es.typed-array.reduce.js"),a("core-js/modules/es.typed-array.reduce-right.js"),a("core-js/modules/es.typed-array.reverse.js"),a("core-js/modules/es.typed-array.set.js"),a("core-js/modules/es.typed-array.slice.js"),a("core-js/modules/es.typed-array.some.js"),a("core-js/modules/es.typed-array.sort.js"),a("core-js/modules/es.typed-array.subarray.js"),a("core-js/modules/es.typed-array.to-locale-string.js"),a("core-js/modules/es.typed-array.to-string.js");var ie=E(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("util"),le=a("path"),x=a("mime"),ne=a("copy-to"),re=a("../common/utils/isBlob"),ae=re.isBlob,se=a("../common/utils/isFile"),ce=se.isFile,pe=a("../common/utils/isBuffer"),me=pe.isBuffer,he=xe;he.multipartUpload=function(){var De=(0,ie.default)(oe.default.mark(function Ee(je,ke){var Be,Ae,ve,Ue,He,Ye,ot,Fe,Ke,rt=arguments;return oe.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(Be=rt.length>2&&rt[2]!==void 0?rt[2]:{},this.resetCancelFlag(),Be.disabledMD5=Be.disabledMD5===void 0?!0:!!Be.disabledMD5,!(Be.checkpoint&&Be.checkpoint.uploadId)){et.next=8;break}return ke&&ce(ke)&&(Be.checkpoint.file=ke),et.next=7,this._resumeMultipart(Be.checkpoint,Be);case 7:return et.abrupt("return",et.sent);case 8:return Ae=102400,Be.mime||(ce(ke)?Be.mime=x.getType(le.extname(ke.name)):ae(ke)?Be.mime=ke.type:me(ke)?Be.mime="":Be.mime=x.getType(le.extname(ke))),Be.headers=Be.headers||{},this._convertMetaToHeaders(Be.meta,Be.headers),et.next=14,this._getFileSize(ke);case 14:if(ve=et.sent,!(ve<Ae)){et.next=26;break}return Be.contentLength=ve,et.next=19,this.put(je,ke,Be);case 19:if(Ue=et.sent,!(Be&&Be.progress)){et.next=23;break}return et.next=23,Be.progress(1);case 23:return He={res:Ue.res,bucket:this.options.bucket,name:je,etag:Ue.res.headers.etag},(Be.headers&&Be.headers["x-oss-callback"]||Be.callback)&&(He.data=Ue.data),et.abrupt("return",He);case 26:if(!(Be.partSize&&parseInt(Be.partSize,10)!==Be.partSize)){et.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Be.partSize&&Be.partSize<Ae)){et.next=30;break}throw new Error("partSize must not be smaller than ".concat(Ae));case 30:return et.next=32,this.initMultipartUpload(je,Be);case 32:if(Ye=et.sent,ot=Ye.uploadId,Fe=this._getPartSize(ve,Be.partSize),Ke={file:ke,name:je,fileSize:ve,partSize:Fe,uploadId:ot,doneParts:[]},!(Be&&Be.progress)){et.next=39;break}return et.next=39,Be.progress(0,Ke,Ye.res);case 39:return et.next=41,this._resumeMultipart(Ke,Be);case 41:return et.abrupt("return",et.sent);case 42:case"end":return et.stop()}},Ee,this)}));function Ce(Ee,je){return De.apply(this,arguments)}return Ce}(),he._resumeMultipart=function(){var De=(0,ie.default)(oe.default.mark(function Ee(je,ke){var Be,Ae,ve,Ue,He,Ye,ot,Fe,Ke,rt,nt,et,Ge,Xe,Ve,tt,Qe,ct,at;return oe.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(Be=this,!this.isCancel()){Le.next=3;break}throw this._makeCancelEvent();case 3:return Ae=je.file,ve=je.fileSize,Ue=je.partSize,He=je.uploadId,Ye=je.doneParts,ot=je.name,Fe=[],Ye.length>0&&ne(Ye).to(Fe),Ke=this._divideParts(ve,Ue),rt=Ke.length,nt=!1,et=function(te,de){return new Promise(function(){var Re=(0,ie.default)(oe.default.mark(function We(we,ye){var Oe,$e,Ze,Je,st;return oe.default.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(ft.prev=0,te.isCancel()){ft.next=29;break}return Oe=Ke[de-1],ft.next=5,te._createBuffer(Ae,Oe.start,Oe.end);case 5:return $e=ft.sent,Ze={content:$e,size:Oe.end-Oe.start},ft.prev=7,ft.next=10,te._uploadPart(ot,He,de,Ze,ke);case 10:Je=ft.sent,ft.next=18;break;case 13:if(ft.prev=13,ft.t0=ft.catch(7),ft.t0.status!==404){ft.next=17;break}throw te._makeAbortEvent();case 17:throw ft.t0;case 18:if(!(!te.isCancel()&&!nt)){ft.next=26;break}if(je.doneParts.push({number:de,etag:Je.res.headers.etag}),!ke.progress){ft.next=23;break}return ft.next=23,ke.progress(Ye.length/(rt+1),je,Je.res);case 23:we({number:de,etag:Je.res.headers.etag}),ft.next=27;break;case 26:we();case 27:ft.next=30;break;case 29:we();case 30:ft.next=41;break;case 32:ft.prev=32,ft.t1=ft.catch(0),st=new Error,st.name=ft.t1.name,st.message=ft.t1.message,st.stack=ft.t1.stack,st.partNum=de,ne(ft.t1).to(st),ye(st);case 41:case"end":return ft.stop()}},We,null,[[0,32],[7,13]])}));return function(We,we){return Re.apply(this,arguments)}}())},Ge=Array.from(new Array(rt),function(Ne,te){return te+1}),Xe=Fe.map(function(Ne){return Ne.number}),Ve=Ge.filter(function(Ne){return Xe.indexOf(Ne)<0}),tt=5,Qe=ke.parallel||tt,Le.next=17,this._parallel(Ve,Qe,function(Ne){return new Promise(function(te,de){et(Be,Ne).then(function(Re){Re&&Fe.push(Re),te()}).catch(function(Re){de(Re)})})});case 17:if(ct=Le.sent,nt=!0,at=ct.find(function(Ne){return Ne.name==="abort"}),!at){Le.next=22;break}throw at;case 22:if(!this.isCancel()){Le.next=25;break}throw et=null,this._makeCancelEvent();case 25:if(!(ct&&ct.length>0)){Le.next=28;break}throw ct[0].message="Failed to upload some parts with error: ".concat(ct[0].toString()," part_num: ").concat(ct[0].partNum),ct[0];case 28:return Le.next=30,this.completeMultipartUpload(ot,He,Fe,ke);case 30:return Le.abrupt("return",Le.sent);case 31:case"end":return Le.stop()}},Ee,this)}));function Ce(Ee,je){return De.apply(this,arguments)}return Ce}(),he._getFileSize=function(){var De=(0,ie.default)(oe.default.mark(function Ee(je){return oe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(!me(je)){Be.next=4;break}return Be.abrupt("return",je.length);case 4:if(!(ae(je)||ce(je))){Be.next=6;break}return Be.abrupt("return",je.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Be.stop()}},Ee)}));function Ce(Ee){return De.apply(this,arguments)}return Ce}();var be=a("stream"),Pe=be.Readable;function Me(De,Ce){if(!(this instanceof Me))return new Me(De,Ce);Pe.call(this,Ce),this.file=De,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(Me,Pe),Me.prototype.readFileAndPush=function(Ce){if(this.fileBuffer)for(var Ee=!0;Ee&&this.fileBuffer&&this.start<this.fileBuffer.length;){var je=this.start,ke=je+Ce;ke=ke>this.fileBuffer.length?this.fileBuffer.length:ke,this.start=ke,Ee=this.push(this.fileBuffer.slice(je,ke))}},Me.prototype._read=function(Ce){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Ee=16*1024;Ce=Ce||Ee;var je=this;this.reader.onload=function(Be){je.fileBuffer=z.from(new Uint8Array(Be.target.result)),je.file=null,je.readFileAndPush(Ce)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Ce)};function _e(De){return De.arrayBuffer?De.arrayBuffer():new Promise(function(Ce,Ee){var je=new FileReader;je.onload=function(ke){Ce(ke.target.result)},je.onerror=function(ke){Ee(ke)},je.readAsArrayBuffer(De)})}he._createBuffer=function(){var De=(0,ie.default)(oe.default.mark(function Ee(je,ke,Be){var Ae,ve;return oe.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(!(ae(je)||ce(je))){He.next=8;break}return Ae=je.slice(ke,Be),He.next=4,_e(Ae);case 4:return ve=He.sent,He.abrupt("return",z.from(ve));case 8:if(!me(je)){He.next=12;break}return He.abrupt("return",je.subarray(ke,Be));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return He.stop()}},Ee)}));function Ce(Ee,je,ke){return De.apply(this,arguments)}return Ce}(),he._getPartSize=function(Ce,Ee){var je=1e4,ke=1*1024*1024;Ee||(Ee=ke);var Be=Math.ceil(Ce/je);return Ee<Be&&(Ee=Be,console.warn("partSize has been set to ".concat(Ee,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ee},he._divideParts=function(Ce,Ee){for(var je=Math.ceil(Ce/Ee),ke=[],Be=0;Be<je;Be++){var Ae=Ee*Be,ve=Math.min(Ae+Ee,Ce);ke.push({start:Ae,end:ve})}return ke}}).call(this)}).call(this,a("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.number.constructor.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.promise.js");var E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("fs"),ee=a("copy-to"),le=a("path"),x=a("mime"),ne=a("../common/callback"),re=a("merge-descriptors"),ae=a("../common/utils/isBlob"),se=ae.isBlob,ce=a("../common/utils/isFile"),pe=ce.isFile,me=a("../common/utils/isBuffer"),he=me.isBuffer,be=a("../common/utils/obj2xml"),Pe=be.obj2xml,Me=xe;Me.append=function(){var _e=(0,oe.default)(E.default.mark(function Ce(Ee,je,ke){var Be;return E.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ke=ke||{},ke.position===void 0&&(ke.position="0"),ke.subres={append:"",position:ke.position},ke.method="POST",ve.next=6,this.put(Ee,je,ke);case 6:return Be=ve.sent,Be.nextAppendPosition=Be.res.headers["x-oss-next-append-position"],ve.abrupt("return",Be);case 9:case"end":return ve.stop()}},Ce,this)}));function De(Ce,Ee,je){return _e.apply(this,arguments)}return De}(),Me.put=function(){var _e=(0,oe.default)(E.default.mark(function Ce(Ee,je,ke){var Be,Ae,ve,Ue,He;return E.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(ke=ke||{},ke.disabledMD5=ke.disabledMD5===void 0?!0:!!ke.disabledMD5,ke.headers=ke.headers||{},Ee=this._objectName(Ee),!he(je)){ot.next=8;break}Be=je,ot.next=19;break;case 8:if(!(se(je)||pe(je))){ot.next=18;break}return ke.mime||(pe(je)?ke.mime=x.getType(le.extname(je.name)):ke.mime=je.type),ot.next=12,this._createBuffer(je,0,je.size);case 12:return Be=ot.sent,ot.next=15,this._getFileSize(je);case 15:ke.contentLength=ot.sent,ot.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(ke.meta,ke.headers),Ae=ke.method||"PUT",ve=this._objectRequestParams(Ae,Ee,ke),ne.encodeCallback(ve,ke),ve.mime=ke.mime,ve.disabledMD5=ke.disabledMD5,ve.content=Be,ve.successStatuses=[200],ot.next=29,this.request(ve);case 29:return Ue=ot.sent,He={name:Ee,url:this._objectUrl(Ee),res:Ue.res},ve.headers&&ve.headers["x-oss-callback"]&&(He.data=JSON.parse(Ue.data.toString())),ot.abrupt("return",He);case 33:case"end":return ot.stop()}},Ce,this)}));function De(Ce,Ee,je){return _e.apply(this,arguments)}return De}(),Me.putStream=function(){var _e=(0,oe.default)(E.default.mark(function Ce(Ee,je,ke){var Be,Ae,ve,Ue;return E.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return ke=ke||{},ke.headers=ke.headers||{},Ee=this._objectName(Ee),ke.contentLength?ke.headers["Content-Length"]=ke.contentLength:ke.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(ke.meta,ke.headers),Be=ke.method||"PUT",Ae=this._objectRequestParams(Be,Ee,ke),ne.encodeCallback(Ae,ke),Ae.mime=ke.mime,Ae.stream=je,Ae.successStatuses=[200],Ye.next=13,this.request(Ae);case 13:return ve=Ye.sent,Ue={name:Ee,url:this._objectUrl(Ee),res:ve.res},Ae.headers&&Ae.headers["x-oss-callback"]&&(Ue.data=JSON.parse(ve.data.toString())),Ye.abrupt("return",Ue);case 17:case"end":return Ye.stop()}},Ce,this)}));function De(Ce,Ee,je){return _e.apply(this,arguments)}return De}(),re(Me,a("../common/object/copyObject")),re(Me,a("../common/object/getObjectTagging")),re(Me,a("../common/object/putObjectTagging")),re(Me,a("../common/object/deleteObjectTagging")),re(Me,a("../common/image")),re(Me,a("../common/object/getBucketVersions")),re(Me,a("../common/object/getACL")),re(Me,a("../common/object/putACL")),re(Me,a("../common/object/head")),re(Me,a("../common/object/delete")),re(Me,a("../common/object/get")),re(Me,a("../common/object/putSymlink")),re(Me,a("../common/object/getSymlink")),re(Me,a("../common/object/deleteMulti")),re(Me,a("../common/object/getObjectMeta")),re(Me,a("../common/object/getObjectUrl")),re(Me,a("../common/object/generateObjectUrl")),re(Me,a("../common/object/signatureUrl")),re(Me,a("../common/object/asyncSignatureUrl")),Me.putMeta=function(){var _e=(0,oe.default)(E.default.mark(function Ce(Ee,je,ke){var Be;return E.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ve.next=2,this.copy(Ee,Ee,{meta:je||{},timeout:ke&&ke.timeout,ctx:ke&&ke.ctx});case 2:return Be=ve.sent,ve.abrupt("return",Be);case 4:case"end":return ve.stop()}},Ce,this)}));function De(Ce,Ee,je){return _e.apply(this,arguments)}return De}(),Me.list=function(){var _e=(0,oe.default)(E.default.mark(function Ce(Ee,je){var ke,Be,Ae,ve,Ue;return E.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return ke=this._objectRequestParams("GET","",je),ke.query=Ee,ke.xmlResponse=!0,ke.successStatuses=[200],Ye.next=6,this.request(ke);case 6:return Be=Ye.sent,Ae=Be.data.Contents||[],ve=this,Ae&&(Array.isArray(Ae)||(Ae=[Ae]),Ae=Ae.map(function(ot){return{name:ot.Key,url:ve._objectUrl(ot.Key),lastModified:ot.LastModified,etag:ot.ETag,type:ot.Type,size:Number(ot.Size),storageClass:ot.StorageClass,owner:{id:ot.Owner.ID,displayName:ot.Owner.DisplayName}}})),Ue=Be.data.CommonPrefixes||null,Ue&&(Array.isArray(Ue)||(Ue=[Ue]),Ue=Ue.map(function(ot){return ot.Prefix})),Ye.abrupt("return",{res:Be.res,objects:Ae,prefixes:Ue,nextMarker:Be.data.NextMarker||null,isTruncated:Be.data.IsTruncated==="true"});case 13:case"end":return Ye.stop()}},Ce,this)}));function De(Ce,Ee){return _e.apply(this,arguments)}return De}(),Me.listV2=function(){var _e=(0,oe.default)(E.default.mark(function Ce(Ee){var je,ke,Be,Ae,ve,Ue,He,Ye=arguments;return E.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return je=Ye.length>1&&Ye[1]!==void 0?Ye[1]:{},ke=Ee["continuation-token"]||Ee.continuationToken,ke&&(je.subres=Object.assign({"continuation-token":ke},je.subres)),Be=this._objectRequestParams("GET","",je),Be.query=Object.assign({"list-type":2},Ee),delete Be.query["continuation-token"],delete Be.query.continuationToken,Be.xmlResponse=!0,Be.successStatuses=[200],Fe.next=11,this.request(Be);case 11:return Ae=Fe.sent,ve=Ae.data.Contents||[],Ue=this,ve&&(Array.isArray(ve)||(ve=[ve]),ve=ve.map(function(Ke){var rt=null;return Ke.Owner&&(rt={id:Ke.Owner.ID,displayName:Ke.Owner.DisplayName}),{name:Ke.Key,url:Ue._objectUrl(Ke.Key),lastModified:Ke.LastModified,etag:Ke.ETag,type:Ke.Type,size:Number(Ke.Size),storageClass:Ke.StorageClass,owner:rt}})),He=Ae.data.CommonPrefixes||null,He&&(Array.isArray(He)||(He=[He]),He=He.map(function(Ke){return Ke.Prefix})),Fe.abrupt("return",{res:Ae.res,objects:ve,prefixes:He,isTruncated:Ae.data.IsTruncated==="true",keyCount:+Ae.data.KeyCount,continuationToken:Ae.data.ContinuationToken||null,nextContinuationToken:Ae.data.NextContinuationToken||null});case 18:case"end":return Fe.stop()}},Ce,this)}));function De(Ce){return _e.apply(this,arguments)}return De}(),Me.restore=function(){var _e=(0,oe.default)(E.default.mark(function Ce(Ee){var je,ke,Be,Ae,ve=arguments;return E.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return je=ve.length>1&&ve[1]!==void 0?ve[1]:{type:"Archive"},je=je||{},je.subres=Object.assign({restore:""},je.subres),je.versionId&&(je.subres.versionId=je.versionId),ke=this._objectRequestParams("POST",Ee,je),je.type==="ColdArchive"&&(Be={RestoreRequest:{Days:je.Days?je.Days:2,JobParameters:{Tier:je.JobParameters?je.JobParameters:"Standard"}}},ke.content=Pe(Be,{headers:!0}),ke.mime="xml"),ke.successStatuses=[202],He.next=9,this.request(ke);case 9:return Ae=He.sent,He.abrupt("return",{res:Ae.res});case 11:case"end":return He.stop()}},Ce,this)}));function De(Ce){return _e.apply(this,arguments)}return De}(),Me._objectUrl=function(De){return this._getReqUrl({bucket:this.options.bucket,object:De})},Me._objectRequestParams=function(De,Ce,Ee){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ee=Ee||{},Ce=this._objectName(Ce);var je={object:Ce,bucket:this.options.bucket,method:De,subres:Ee&&Ee.subres,timeout:Ee&&Ee.timeout,ctx:Ee&&Ee.ctx};return Ee.headers&&(je.headers={},ee(Ee.headers).to(je.headers)),je},Me._objectName=function(De){return De.replace(/^\/+/,"")},Me._convertMetaToHeaders=function(De,Ce){De&&Object.keys(De).forEach(function(Ee){Ce["x-oss-meta-".concat(Ee)]=De[Ee]})},Me._deleteFileSafe=function(De){var Ce=this;return new Promise(function(Ee){ie.exists(De,function(je){je?ie.unlink(De,function(ke){ke&&Ce.debug("unlink %j error: %s",De,ke,"error"),Ee()}):Ee()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(a,Te,xe){"use strict";xe.version="6.18.1"},{}],7:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.abortBucketWorm=void 0;var ie=a("../utils/checkBucketName");function ee(x,ne){return le.apply(this,arguments)}function le(){return le=(0,oe.default)(E.default.mark(function x(ne,re){var ae,se;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ie.checkBucketName(ne),ae=this._bucketRequestParams("DELETE",ne,"worm",re),pe.next=4,this.request(ae);case 4:return se=pe.sent,pe.abrupt("return",{res:se.res,status:se.status});case 6:case"end":return pe.stop()}},x,this)})),le.apply(this,arguments)}xe.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.completeBucketWorm=void 0;var ie=a("../utils/checkBucketName");function ee(x,ne,re){return le.apply(this,arguments)}function le(){return le=(0,oe.default)(E.default.mark(function x(ne,re,ae){var se,ce;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ie.checkBucketName(ne),se=this._bucketRequestParams("POST",ne,{wormId:re},ae),me.next=4,this.request(se);case 4:return ce=me.sent,me.abrupt("return",{res:ce.res,status:ce.status});case 6:case"end":return me.stop()}},x,this)})),le.apply(this,arguments)}xe.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.deleteBucketInventory=void 0;var ie=a("../utils/checkBucketName");function ee(x,ne){return le.apply(this,arguments)}function le(){return le=(0,oe.default)(E.default.mark(function x(ne,re){var ae,se,ce,pe,me=arguments;return E.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ae=me.length>2&&me[2]!==void 0?me[2]:{},se=Object.assign({inventory:"",inventoryId:re},ae.subres),ie.checkBucketName(ne),ce=this._bucketRequestParams("DELETE",ne,se,ae),ce.successStatuses=[204],be.next=7,this.request(ce);case 7:return pe=be.sent,be.abrupt("return",{status:pe.status,res:pe.res});case 9:case"end":return be.stop()}},x,this)})),le.apply(this,arguments)}xe.deleteBucketInventory=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkBucketName"),ee=ie.checkBucketName,le=xe;le.deleteBucketLifecycle=function(){var x=(0,oe.default)(E.default.mark(function re(ae,se){var ce,pe;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ee(ae),ce=this._bucketRequestParams("DELETE",ae,"lifecycle",se),ce.successStatuses=[204],he.next=5,this.request(ce);case 5:return pe=he.sent,he.abrupt("return",{res:pe.res});case 7:case"end":return he.stop()}},re,this)}));function ne(re,ae){return x.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkBucketName"),ee=ie.checkBucketName,le=xe;le.deleteBucketWebsite=function(){var x=(0,oe.default)(E.default.mark(function re(ae,se){var ce,pe;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ee(ae),ce=this._bucketRequestParams("DELETE",ae,"website",se),ce.successStatuses=[204],he.next=5,this.request(ce);case 5:return pe=he.sent,he.abrupt("return",{res:pe.res});case 7:case"end":return he.stop()}},re,this)}));function ne(re,ae){return x.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.extendBucketWorm=void 0;var ie=a("../utils/checkBucketName"),ee=a("../utils/obj2xml");function le(ne,re,ae,se){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(E.default.mark(function ne(re,ae,se,ce){var pe,me,he;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ie.checkBucketName(re),pe=this._bucketRequestParams("POST",re,{wormExtend:"",wormId:ae},ce),me={ExtendWormConfiguration:{RetentionPeriodInDays:se}},pe.mime="xml",pe.content=ee.obj2xml(me,{headers:!0}),pe.successStatuses=[200],Pe.next=8,this.request(pe);case 8:return he=Pe.sent,Pe.abrupt("return",{res:he.res,status:he.status});case 10:case"end":return Pe.stop()}},ne,this)})),x.apply(this,arguments)}xe.extendBucketWorm=le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.getBucketInventory=void 0;var ie=a("../utils/checkBucketName"),ee=a("../utils/formatInventoryConfig");function le(ne,re){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(E.default.mark(function ne(re,ae){var se,ce,pe,me,he=arguments;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return se=he.length>2&&he[2]!==void 0?he[2]:{},ce=Object.assign({inventory:"",inventoryId:ae},se.subres),ie.checkBucketName(re),pe=this._bucketRequestParams("GET",re,ce,se),pe.successStatuses=[200],pe.xmlResponse=!0,Pe.next=8,this.request(pe);case 8:return me=Pe.sent,Pe.abrupt("return",{status:me.status,res:me.res,inventory:ee.formatInventoryConfig(me.data)});case 10:case"end":return Pe.stop()}},ne,this)})),x.apply(this,arguments)}xe.getBucketInventory=le},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.map.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkBucketName"),ee=ie.checkBucketName,le=a("../utils/isArray"),x=le.isArray,ne=a("../utils/formatObjKey"),re=ne.formatObjKey,ae=xe;ae.getBucketLifecycle=function(){var se=(0,oe.default)(E.default.mark(function pe(me,he){var be,Pe,Me;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ee(me),be=this._bucketRequestParams("GET",me,"lifecycle",he),be.successStatuses=[200],be.xmlResponse=!0,De.next=6,this.request(be);case 6:return Pe=De.sent,Me=Pe.data.Rule||null,Me&&(x(Me)||(Me=[Me]),Me=Me.map(function(Ce){return Ce.ID&&(Ce.id=Ce.ID,delete Ce.ID),Ce.Tag&&!x(Ce.Tag)&&(Ce.Tag=[Ce.Tag]),re(Ce,"firstLowerCase")})),De.abrupt("return",{rules:Me,res:Pe.res});case 10:case"end":return De.stop()}},pe,this)}));function ce(pe,me){return se.apply(this,arguments)}return ce}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkBucketName"),ee=ie.checkBucketName,le=xe;le.getBucketVersioning=function(){var x=(0,oe.default)(E.default.mark(function re(ae,se){var ce,pe,me;return E.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ee(ae),ce=this._bucketRequestParams("GET",ae,"versioning",se),ce.xmlResponse=!0,ce.successStatuses=[200],be.next=6,this.request(ce);case 6:return pe=be.sent,me=pe.data.Status,be.abrupt("return",{status:pe.status,versionStatus:me,res:pe.res});case 9:case"end":return be.stop()}},re,this)}));function ne(re,ae){return x.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkBucketName"),ee=ie.checkBucketName,le=a("../utils/isObject"),x=le.isObject,ne=xe;ne.getBucketWebsite=function(){var re=(0,oe.default)(E.default.mark(function se(ce,pe){var me,he,be;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ee(ce),me=this._bucketRequestParams("GET",ce,"website",pe),me.successStatuses=[200],me.xmlResponse=!0,Me.next=6,this.request(me);case 6:return he=Me.sent,be=[],he.data.RoutingRules&&he.data.RoutingRules.RoutingRule&&(x(he.data.RoutingRules.RoutingRule)?be=[he.data.RoutingRules.RoutingRule]:be=he.data.RoutingRules.RoutingRule),Me.abrupt("return",{index:he.data.IndexDocument&&he.data.IndexDocument.Suffix||"",supportSubDir:he.data.IndexDocument&&he.data.IndexDocument.SupportSubDir||"false",type:he.data.IndexDocument&&he.data.IndexDocument.Type,routingRules:be,error:he.data.ErrorDocument&&he.data.ErrorDocument.Key||null,res:he.res});case 10:case"end":return Me.stop()}},se,this)}));function ae(se,ce){return re.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.getBucketWorm=void 0;var ie=a("../utils/checkBucketName"),ee=a("../utils/dataFix");function le(ne,re){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(E.default.mark(function ne(re,ae){var se,ce;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ie.checkBucketName(re),se=this._bucketRequestParams("GET",re,"worm",ae),se.successStatuses=[200],se.xmlResponse=!0,me.next=6,this.request(se);case 6:return ce=me.sent,ee.dataFix(ce.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),me.abrupt("return",Object.assign(Object.assign({},ce.data),{res:ce.res,status:ce.status}));case 9:case"end":return me.stop()}},ne,this)})),x.apply(this,arguments)}xe.getBucketWorm=le},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.initiateBucketWorm=void 0;var ie=a("../utils/obj2xml"),ee=a("../utils/checkBucketName");function le(ne,re,ae){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(E.default.mark(function ne(re,ae,se){var ce,pe,me;return E.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ee.checkBucketName(re),ce=this._bucketRequestParams("POST",re,"worm",se),pe={InitiateWormConfiguration:{RetentionPeriodInDays:ae}},ce.mime="xml",ce.content=ie.obj2xml(pe,{headers:!0}),ce.successStatuses=[200],be.next=8,this.request(ce);case 8:return me=be.sent,be.abrupt("return",{res:me.res,wormId:me.res.headers["x-oss-worm-id"],status:me.status});case 10:case"end":return be.stop()}},ne,this)})),x.apply(this,arguments)}xe.initiateBucketWorm=le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.listBucketInventory=void 0;var ie=a("../utils/checkBucketName"),ee=a("../utils/formatInventoryConfig");function le(ne){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(E.default.mark(function ne(re){var ae,se,ce,pe,me,he,be,Pe,Me=arguments;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ae=Me.length>1&&Me[1]!==void 0?Me[1]:{},se=ae.continuationToken,ce=Object.assign({inventory:""},se&&{"continuation-token":se},ae.subres),ie.checkBucketName(re),pe=this._bucketRequestParams("GET",re,ce,ae),pe.successStatuses=[200],pe.xmlResponse=!0,De.next=9,this.request(pe);case 9:return me=De.sent,he=me.data,be=me.res,Pe=me.status,De.abrupt("return",{isTruncated:he.IsTruncated==="true",nextContinuationToken:he.NextContinuationToken,inventoryList:ee.formatInventoryConfig(he.InventoryConfiguration,!0),status:Pe,res:be});case 12:case"end":return De.stop()}},ne,this)})),x.apply(this,arguments)}xe.listBucketInventory=le},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.concat.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.putBucketInventory=void 0;var ie=a("../utils/checkBucketName"),ee=a("../utils/obj2xml");function le(ne,re){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(E.default.mark(function ne(re,ae){var se,ce,pe,me,he,be,Pe,Me,_e,De,Ce,Ee=arguments;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return se=Ee.length>2&&Ee[2]!==void 0?Ee[2]:{},ce=Object.assign({inventory:"",inventoryId:ae.id},se.subres),ie.checkBucketName(re),pe=ae.OSSBucketDestination,me=ae.optionalFields,he=ae.includedObjectVersions,be="acs:oss:::",Pe="acs:ram::".concat(pe.accountId,":role/"),Me={InventoryConfiguration:{Id:ae.id,IsEnabled:ae.isEnabled,Filter:{Prefix:ae.prefix||""},Destination:{OSSBucketDestination:{Format:pe.format,AccountId:pe.accountId,RoleArn:"".concat(Pe).concat(pe.rolename),Bucket:"".concat(be).concat(pe.bucket),Prefix:pe.prefix||"",Encryption:pe.encryption||""}},Schedule:{Frequency:ae.frequency},IncludedObjectVersions:he,OptionalFields:{Field:(me==null?void 0:me.field)||[]}}},_e=ee.obj2xml(Me,{headers:!0,firstUpperCase:!0}),De=this._bucketRequestParams("PUT",re,ce,se),De.successStatuses=[200],De.mime="xml",De.content=_e,ke.next=14,this.request(De);case 14:return Ce=ke.sent,ke.abrupt("return",{status:Ce.status,res:Ce.res});case 16:case"end":return ke.stop()}},ne,this)})),x.apply(this,arguments)}xe.putBucketInventory=le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.array.includes.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkBucketName"),ee=ie.checkBucketName,le=a("../utils/isArray"),x=le.isArray,ne=a("../utils/deepCopy"),re=ne.deepCopy,ae=a("../utils/isObject"),se=ae.isObject,ce=a("../utils/obj2xml"),pe=ce.obj2xml,me=a("../utils/checkObjectTag"),he=me.checkObjectTag,be=a("../utils/getStrBytesCount"),Pe=be.getStrBytesCount,Me=xe;Me.putBucketLifecycle=function(){var je=(0,oe.default)(E.default.mark(function Be(Ae,ve,Ue){var He,Ye,ot,Fe,Ke;return E.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(ee(Ae),x(ve)){nt.next=3;break}throw new Error("rules must be Array");case 3:return He=this._bucketRequestParams("PUT",Ae,"lifecycle",Ue),Ye=[],ot={LifecycleConfiguration:{Rule:Ye}},ve.forEach(function(et){_e(et),Ee(et),et.id&&(et.ID=et.id,delete et.id),Ye.push(et)}),Fe=pe(ot,{headers:!0,firstUpperCase:!0}),He.content=Fe,He.mime="xml",He.successStatuses=[200],nt.next=13,this.request(He);case 13:return Ke=nt.sent,nt.abrupt("return",{res:Ke.res});case 15:case"end":return nt.stop()}},Be,this)}));function ke(Be,Ae,ve){return je.apply(this,arguments)}return ke}();function _e(je){je.days&&(je.expiration={days:je.days}),je.date&&(je.expiration={createdBeforeDate:je.date})}function De(je,ke){var Be=je.days,Ae=je.createdBeforeDate;if(!Be&&!Ae)throw new Error("".concat(ke," must includes days or createdBeforeDate"));if(Be&&!/^[1-9][0-9]*$/.test(Be))throw new Error("days must be a positive integer");if(Ae&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ae))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Ce(je){if(!x(je)&&!se(je))throw new Error("tag must be Object or Array");je=se(je)?[je]:je;var ke={},Be=re(je);Be.forEach(function(Ae){ke[Ae.key]=Ae.value}),he(ke)}function Ee(je){if(je.id&&Pe(je.id)>255)throw new Error("ID is composed of 255 bytes at most");if(je.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(je.status))throw new Error("Status must be Enabled or Disabled");if(je.transition){if(!["IA","Archive"].includes(je.transition.storageClass))throw new Error("StorageClass must be IA or Archive");De(je.transition,"Transition")}if(je.expiration){if(!je.expiration.expiredObjectDeleteMarker)De(je.expiration,"Expiration");else if(je.expiration.days||je.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(je.abortMultipartUpload&&De(je.abortMultipartUpload,"AbortMultipartUpload"),!je.expiration&&!je.abortMultipartUpload&&!je.transition&&!je.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(je.tag){if(je.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Ce(je.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.includes.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkBucketName"),ee=ie.checkBucketName,le=a("../utils/obj2xml"),x=le.obj2xml,ne=xe;ne.putBucketVersioning=function(){var re=(0,oe.default)(E.default.mark(function se(ce,pe){var me,he,be,Pe,Me=arguments;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(me=Me.length>2&&Me[2]!==void 0?Me[2]:{},ee(ce),["Enabled","Suspended"].includes(pe)){De.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return he=this._bucketRequestParams("PUT",ce,"versioning",me),be={VersioningConfiguration:{Status:pe}},he.mime="xml",he.content=x(be,{headers:!0}),De.next=10,this.request(he);case 10:return Pe=De.sent,De.abrupt("return",{res:Pe.res,status:Pe.status});case 12:case"end":return De.stop()}},se,this)}));function ae(se,ce){return re.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkBucketName"),ee=ie.checkBucketName,le=a("../utils/obj2xml"),x=le.obj2xml,ne=a("../utils/isArray"),re=ne.isArray,ae=xe;ae.putBucketWebsite=function(){var se=(0,oe.default)(E.default.mark(function pe(me){var he,be,Pe,Me,_e,De,Ce,Ee=arguments;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(he=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},be=Ee.length>2?Ee[2]:void 0,ee(me),Pe=this._bucketRequestParams("PUT",me,"website",be),Me={Suffix:he.index||"index.html"},_e={IndexDocument:Me},De={WebsiteConfiguration:_e},he.supportSubDir&&(Me.SupportSubDir=he.supportSubDir),he.type&&(Me.Type=he.type),he.error&&(_e.ErrorDocument={Key:he.error}),he.routingRules===void 0){ke.next=14;break}if(re(he.routingRules)){ke.next=13;break}throw new Error("RoutingRules must be Array");case 13:_e.RoutingRules={RoutingRule:he.routingRules};case 14:return De=x(De),Pe.content=De,Pe.mime="xml",Pe.successStatuses=[200],ke.next=20,this.request(Pe);case 20:return Ce=ke.sent,ke.abrupt("return",{res:Ce.res});case 22:case"end":return ke.stop()}},pe,this)}));function ce(pe){return se.apply(this,arguments)}return ce}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(a,Te,xe){(function(z){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),xe.encodeCallback=function(oe,ie){if(oe.headers=oe.headers||{},!Object.prototype.hasOwnProperty.call(oe.headers,"x-oss-callback")&&ie.callback){var ee={callbackUrl:encodeURI(ie.callback.url),callbackBody:ie.callback.body};ie.callback.host&&(ee.callbackHost=ie.callback.host),ie.callback.contentType&&(ee.callbackBodyType=ie.callback.contentType);var le=z.from(JSON.stringify(ee)).toString("base64");if(oe.headers["x-oss-callback"]=le,ie.callback.customValue){var x={};Object.keys(ie.callback.customValue).forEach(function(ne){x["x:".concat(ne)]=ie.callback.customValue[ne].toString()}),oe.headers["x-oss-callback-var"]=z.from(JSON.stringify(x)).toString("base64")}}}}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(a,Te,xe){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js");var z=function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(xe,"__esModule",{value:!0}),xe.getReqUrl=void 0;var E=z(a("copy-to")),oe=z(a("url")),ie=z(a("merge-descriptors")),ee=z(a("is-type-of")),le=a("../utils/isIP"),x=a("../utils/checkConfigValid");function ne(re){var ae={},se=this.options.cname;x.checkConfigValid(this.options.endpoint,"endpoint"),E.default(this.options.endpoint,!1).to(ae),re.bucket&&!se&&!le.isIP(ae.hostname)&&!this.options.sldEnable&&(ae.host="".concat(re.bucket,".").concat(ae.host));var ce="/";re.bucket&&this.options.sldEnable&&(ce+="".concat(re.bucket,"/")),re.object&&(ce+=this._escape(re.object).replace(/\+/g,"%2B")),ae.pathname=ce;var pe={};if(re.query&&ie.default(pe,re.query),re.subres){var me={};ee.default.string(re.subres)?me[re.subres]="":ee.default.array(re.subres)?re.subres.forEach(function(he){me[he]=""}):me=re.subres,ie.default(pe,me)}return ae.query=pe,oe.default.format(ae)}xe.getReqUrl=ne},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(a,Te,xe){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.string.trim.js");var z=a("humanize-ms"),E=a("url"),oe=a("../utils/checkBucketName"),ie=oe.checkBucketName,ee=a("../utils/setRegion"),le=ee.setRegion,x=a("../utils/checkConfigValid"),ne=x.checkConfigValid;function re(ae,se){ne(ae,"endpoint");var ce=E.parse(ae);if(ce.protocol||(ce=E.parse("http".concat(se?"s":"","://").concat(ae))),ce.protocol!=="http:"&&ce.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ce}Te.exports=function(ae){if(!ae||!ae.accessKeyId||!ae.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");ae.stsToken&&!ae.refreshSTSToken&&!ae.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),ae.bucket&&ie(ae.bucket);var se=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},ae);if(se.accessKeyId=se.accessKeyId.trim(),se.accessKeySecret=se.accessKeySecret.trim(),se.timeout&&(se.timeout=z(se.timeout)),se.endpoint)se.endpoint=re(se.endpoint,se.secure);else if(se.region)se.endpoint=le(se.region,se.internal,se.secure);else throw new Error("require options.endpoint or options.region");return se.inited=!0,se}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(a,Te,xe){"use strict";var z=a("merge-descriptors"),E=xe;z(E,a("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.concat.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkBucketName"),ee=ie.checkBucketName,le=a("querystring"),x=a("js-base64"),ne=x.Base64.encode,re=xe;re.processObjectSave=function(){var se=(0,oe.default)(E.default.mark(function pe(me,he,be,Pe){var Me,_e,De,Ce;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ae(me,"sourceObject"),ae(he,"targetObject"),ae(be,"process"),he=this._objectName(he),Pe&&ee(Pe),Me=this._objectRequestParams("POST",me,{subres:"x-oss-process"}),_e=Pe?",b_".concat(ne(Pe)):"",he=ne(he),De={"x-oss-process":"".concat(be,"|sys/saveas,o_").concat(he).concat(_e)},Me.content=le.stringify(De),je.next=12,this.request(Me);case 12:return Ce=je.sent,je.abrupt("return",{res:Ce.res,status:Ce.res.status});case 14:case"end":return je.stop()}},pe,this)}));function ce(pe,me,he,be){return se.apply(this,arguments)}return ce}();function ae(se,ce){if(!se)throw new Error("".concat(ce," is required"));if(typeof se!="string")throw new Error("".concat(ce," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.regexp.to-string.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("debug")("ali-oss:multipart-copy"),ee=a("copy-to"),le=xe;le.uploadPartCopy=function(){var x=(0,oe.default)(E.default.mark(function re(ae,se,ce,pe,me){var he,be,Pe,Me,_e,De=arguments;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return he=De.length>5&&De[5]!==void 0?De[5]:{},he.headers=he.headers||{},be=he.versionId||he.subres&&he.subres.versionId||null,be?Pe="/".concat(me.sourceBucketName,"/").concat(encodeURIComponent(me.sourceKey),"?versionId=").concat(be):Pe="/".concat(me.sourceBucketName,"/").concat(encodeURIComponent(me.sourceKey)),he.headers["x-oss-copy-source"]=Pe,pe&&(he.headers["x-oss-copy-source-range"]="bytes=".concat(pe)),he.subres={partNumber:ce,uploadId:se},Me=this._objectRequestParams("PUT",ae,he),Me.mime=he.mime,Me.successStatuses=[200],Ee.next=12,this.request(Me);case 12:return _e=Ee.sent,Ee.abrupt("return",{name:ae,etag:_e.res.headers.etag,res:_e.res});case 14:case"end":return Ee.stop()}},re,this)}));function ne(re,ae,se,ce,pe){return x.apply(this,arguments)}return ne}(),le.multipartUploadCopy=function(){var x=(0,oe.default)(E.default.mark(function re(ae,se){var ce,pe,me,he,be,Pe,Me,_e,De,Ce,Ee,je,ke=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ce=ke.length>2&&ke[2]!==void 0?ke[2]:{},this.resetCancelFlag(),pe=ce.versionId,me=pe===void 0?null:pe,he={versionId:me},Ae.next=6,this._getObjectMeta(se.sourceBucketName,se.sourceKey,he);case 6:if(be=Ae.sent,Pe=be.res.headers["content-length"],se.startOffset=se.startOffset||0,se.endOffset=se.endOffset||Pe,!(ce.checkpoint&&ce.checkpoint.uploadId)){Ae.next=14;break}return Ae.next=13,this._resumeMultipartCopy(ce.checkpoint,se,ce);case 13:return Ae.abrupt("return",Ae.sent);case 14:if(Me=102400,_e=se.endOffset-se.startOffset,!(_e<Me)){Ae.next=18;break}throw new Error("copySize must not be smaller than ".concat(Me));case 18:if(!(ce.partSize&&ce.partSize<Me)){Ae.next=20;break}throw new Error("partSize must not be smaller than ".concat(Me));case 20:return Ae.next=22,this.initMultipartUpload(ae,ce);case 22:if(De=Ae.sent,Ce=De.uploadId,Ee=this._getPartSize(_e,ce.partSize),je={name:ae,copySize:_e,partSize:Ee,uploadId:Ce,doneParts:[]},!(ce&&ce.progress)){Ae.next=29;break}return Ae.next=29,ce.progress(0,je,De.res);case 29:return Ae.next=31,this._resumeMultipartCopy(je,se,ce);case 31:return Ae.abrupt("return",Ae.sent);case 32:case"end":return Ae.stop()}},re,this)}));function ne(re,ae){return x.apply(this,arguments)}return ne}(),le._resumeMultipartCopy=function(){var x=(0,oe.default)(E.default.mark(function re(ae,se,ce){var pe,me,he,be,Pe,Me,_e,De,Ce,Ee,je,ke,Be,Ae,ve,Ue,He,Ye,ot,Fe,Ke;return E.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(!this.isCancel()){nt.next=2;break}throw this._makeCancelEvent();case 2:if(pe=ce.versionId,me=pe===void 0?null:pe,he={versionId:me},be=ae.copySize,Pe=ae.partSize,Me=ae.uploadId,_e=ae.doneParts,De=ae.name,Ce=this._divideMultipartCopyParts(be,Pe,se.startOffset),Ee=Ce.length,je={headers:{}},ce.copyheaders&&ee(ce.copyheaders).to(je.headers),me&&ee(he).to(je),ke=function(Ge,Xe,Ve){return new Promise(function(){var tt=(0,oe.default)(E.default.mark(function Qe(ct,at){var qe,Le,Ne;return E.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(de.prev=0,Ge.isCancel()){de.next=22;break}return qe=Ce[Xe-1],Le="".concat(qe.start,"-").concat(qe.end-1),de.prev=4,de.next=7,Ge.uploadPartCopy(De,Me,Xe,Le,Ve,je);case 7:Ne=de.sent,de.next=15;break;case 10:if(de.prev=10,de.t0=de.catch(4),de.t0.status!==404){de.next=14;break}throw Ge._makeAbortEvent();case 14:throw de.t0;case 15:if(Ge.isCancel()){de.next=22;break}if(ie("content-range ".concat(Ne.res.headers["content-range"])),_e.push({number:Xe,etag:Ne.res.headers.etag}),ae.doneParts=_e,!(ce&&ce.progress)){de.next=22;break}return de.next=22,ce.progress(_e.length/Ee,ae,Ne.res);case 22:ct(),de.next=29;break;case 25:de.prev=25,de.t1=de.catch(0),de.t1.partNum=Xe,at(de.t1);case 29:case"end":return de.stop()}},Qe,null,[[0,25],[4,10]])}));return function(Qe,ct){return tt.apply(this,arguments)}}())},Be=Array.from(new Array(Ee),function(et,Ge){return Ge+1}),Ae=_e.map(function(et){return et.number}),ve=Be.filter(function(et){return Ae.indexOf(et)<0}),Ue=5,He=ce.parallel||Ue,!(this.checkBrowserAndVersion("Internet Explorer","10")||He===1)){nt.next=28;break}Ye=0;case 18:if(!(Ye<ve.length)){nt.next=26;break}if(!this.isCancel()){nt.next=21;break}throw this._makeCancelEvent();case 21:return nt.next=23,ke(this,ve[Ye],se);case 23:Ye++,nt.next=18;break;case 26:nt.next=40;break;case 28:return nt.next=30,this._parallelNode(ve,He,ke,se);case 30:if(ot=nt.sent,Fe=ot.find(function(et){return et.name==="abort"}),!Fe){nt.next=34;break}throw Fe;case 34:if(!this.isCancel()){nt.next=36;break}throw this._makeCancelEvent();case 36:if(!(ot&&ot.length>0)){nt.next=40;break}throw Ke=ot[0],Ke.message="Failed to copy some parts with error: ".concat(Ke.toString()," part_num: ").concat(Ke.partNum),Ke;case 40:return nt.next=42,this.completeMultipartUpload(De,Me,_e,ce);case 42:return nt.abrupt("return",nt.sent);case 43:case"end":return nt.stop()}},re,this)}));function ne(re,ae,se){return x.apply(this,arguments)}return ne}(),le._divideMultipartCopyParts=function(ne,re,ae){for(var se=Math.ceil(ne/re),ce=[],pe=0;pe<se;pe++){var me=re*pe+ae,he=Math.min(me+re,ne+ae);ce.push({start:me,end:he})}return ce},le._getObjectMeta=function(){var x=(0,oe.default)(E.default.mark(function re(ae,se,ce){var pe,me;return E.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return pe=this.getBucket(),this.setBucket(ae),be.next=4,this.head(se,ce);case 4:return me=be.sent,this.setBucket(pe),be.abrupt("return",me);case 7:case"end":return be.stop()}},re,this)}));function ne(re,ae,se){return x.apply(this,arguments)}return ne}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(a,Te,xe){(function(z){(function(){"use strict";var E=a("@babel/runtime/helpers/interopRequireDefault"),oe=E(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.array.sort.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js");var ie=E(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("copy-to"),le=a("./callback"),x=a("./utils/deepCopy"),ne=x.deepCopyWith,re=a("./utils/isBuffer"),ae=re.isBuffer,se=a("./utils/omit"),ce=se.omit,pe=xe;pe.listUploads=function(){var me=(0,ie.default)(oe.default.mark(function be(Pe,Me){var _e,De,Ce,Ee;return oe.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return Me=Me||{},_e={},ee(Me).to(_e),_e.subres="uploads",De=this._objectRequestParams("GET","",_e),De.query=Pe,De.xmlResponse=!0,De.successStatuses=[200],ke.next=10,this.request(De);case 10:return Ce=ke.sent,Ee=Ce.data.Upload||[],Array.isArray(Ee)||(Ee=[Ee]),Ee=Ee.map(function(Be){return{name:Be.Key,uploadId:Be.UploadId,initiated:Be.Initiated}}),ke.abrupt("return",{res:Ce.res,uploads:Ee,bucket:Ce.data.Bucket,nextKeyMarker:Ce.data.NextKeyMarker,nextUploadIdMarker:Ce.data.NextUploadIdMarker,isTruncated:Ce.data.IsTruncated==="true"});case 15:case"end":return ke.stop()}},be,this)}));function he(be,Pe){return me.apply(this,arguments)}return he}(),pe.listParts=function(){var me=(0,ie.default)(oe.default.mark(function be(Pe,Me,_e,De){var Ce,Ee,je;return oe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return De=De||{},Ce={},ee(De).to(Ce),Ce.subres={uploadId:Me},Ee=this._objectRequestParams("GET",Pe,Ce),Ee.query=_e,Ee.xmlResponse=!0,Ee.successStatuses=[200],Be.next=10,this.request(Ee);case 10:return je=Be.sent,Be.abrupt("return",{res:je.res,uploadId:je.data.UploadId,bucket:je.data.Bucket,name:je.data.Key,partNumberMarker:je.data.PartNumberMarker,nextPartNumberMarker:je.data.NextPartNumberMarker,maxParts:je.data.MaxParts,isTruncated:je.data.IsTruncated,parts:je.data.Part||[]});case 12:case"end":return Be.stop()}},be,this)}));function he(be,Pe,Me,_e){return me.apply(this,arguments)}return he}(),pe.abortMultipartUpload=function(){var me=(0,ie.default)(oe.default.mark(function be(Pe,Me,_e){var De,Ce,Ee;return oe.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return this._stop(),_e=_e||{},De={},ee(_e).to(De),De.subres={uploadId:Me},Ce=this._objectRequestParams("DELETE",Pe,De),Ce.successStatuses=[204],ke.next=9,this.request(Ce);case 9:return Ee=ke.sent,ke.abrupt("return",{res:Ee.res});case 11:case"end":return ke.stop()}},be,this)}));function he(be,Pe,Me){return me.apply(this,arguments)}return he}(),pe.initMultipartUpload=function(){var me=(0,ie.default)(oe.default.mark(function be(Pe,Me){var _e,De,Ce;return oe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Me=Me||{},_e={},ee(Me).to(_e),_e.headers=_e.headers||{},this._convertMetaToHeaders(Me.meta,_e.headers),_e.subres="uploads",De=this._objectRequestParams("POST",Pe,_e),De.mime=Me.mime,De.xmlResponse=!0,De.successStatuses=[200],je.next=12,this.request(De);case 12:return Ce=je.sent,je.abrupt("return",{res:Ce.res,bucket:Ce.data.Bucket,name:Ce.data.Key,uploadId:Ce.data.UploadId});case 14:case"end":return je.stop()}},be,this)}));function he(be,Pe){return me.apply(this,arguments)}return he}(),pe.uploadPart=function(){var me=(0,ie.default)(oe.default.mark(function be(Pe,Me,_e,De,Ce,Ee,je){var ke,Be;return oe.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(ke={size:Ee-Ce},Be=z&&z.browser,!Be){ve.next=8;break}return ve.next=5,this._createBuffer(De,Ce,Ee);case 5:ke.content=ve.sent,ve.next=11;break;case 8:return ve.next=10,this._createStream(De,Ce,Ee);case 10:ke.stream=ve.sent;case 11:return ve.next=13,this._uploadPart(Pe,Me,_e,ke,je);case 13:return ve.abrupt("return",ve.sent);case 14:case"end":return ve.stop()}},be,this)}));function he(be,Pe,Me,_e,De,Ce,Ee){return me.apply(this,arguments)}return he}(),pe.completeMultipartUpload=function(){var me=(0,ie.default)(oe.default.mark(function be(Pe,Me,_e,De){var Ce,Ee,je,ke,Be,Ae,ve,Ue;return oe.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:for(Ce=_e.concat().sort(function(ot,Fe){return ot.number-Fe.number}).filter(function(ot,Fe,Ke){return!Fe||ot.number!==Ke[Fe-1].number}),Ee=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,je=0;je<Ce.length;je++)ke=Ce[je],Ee+=`<Part>
`,Ee+="<PartNumber>".concat(ke.number,`</PartNumber>
`),Ee+="<ETag>".concat(ke.etag,`</ETag>
`),Ee+=`</Part>
`;return Ee+="</CompleteMultipartUpload>",De=De||{},Be={},Be=ne(De,function(ot){if(ae(ot))return null}),Be.subres={uploadId:Me},Be.headers=ce(Be.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ae=this._objectRequestParams("POST",Pe,Be),le.encodeCallback(Ae,Be),Ae.mime="xml",Ae.content=Ee,Ae.headers&&Ae.headers["x-oss-callback"]||(Ae.xmlResponse=!0),Ae.successStatuses=[200],Ye.next=17,this.request(Ae);case 17:if(ve=Ye.sent,!De.progress){Ye.next=21;break}return Ye.next=21,De.progress(1,null,ve.res);case 21:return Ue={res:ve.res,bucket:Ae.bucket,name:Pe,etag:ve.res.headers.etag},Ae.headers&&Ae.headers["x-oss-callback"]&&(Ue.data=JSON.parse(ve.data.toString())),Ye.abrupt("return",Ue);case 24:case"end":return Ye.stop()}},be,this)}));function he(be,Pe,Me,_e){return me.apply(this,arguments)}return he}(),pe._uploadPart=function(){var me=(0,ie.default)(oe.default.mark(function be(Pe,Me,_e,De,Ce){var Ee,je,ke,Be;return oe.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return Ce=Ce||{},Ee={},ee(Ce).to(Ee),Ee.headers=Ee.headers||{},Ee.headers["Content-Length"]=De.size,Ee.headers=ce(Ee.headers,["x-oss-server-side-encryption"]),Ee.subres={partNumber:_e,uploadId:Me},je=this._objectRequestParams("PUT",Pe,Ee),je.mime=Ee.mime,ke=z&&z.browser,ke?je.content=De.content:je.stream=De.stream,je.successStatuses=[200],je.disabledMD5=Ce.disabledMD5,ve.next=15,this.request(je);case 15:if(Be=ve.sent,Be.res.headers.etag){ve.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 18:return De.stream&&(De.stream=null,je.stream=null),ve.abrupt("return",{name:Pe,etag:Be.res.headers.etag,res:Be.res});case 20:case"end":return ve.stop()}},be,this)}));function he(be,Pe,Me,_e,De){return me.apply(this,arguments)}return he}()}).call(this)}).call(this,a("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("url"),ee=a("utility"),le=a("copy-to"),x=a("../../common/signUtils"),ne=a("../utils/isIP"),re=ne.isIP,ae=a("../utils/setSTSToken"),se=ae.setSTSToken,ce=a("../utils/isFunction"),pe=ce.isFunction,me=xe;me.asyncSignatureUrl=function(){var he=(0,oe.default)(E.default.mark(function Pe(Me,_e){var De,Ce,Ee,je,ke;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!re(this.options.endpoint.hostname)){Ae.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(_e=_e||{},Me=this._objectName(Me),_e.method=_e.method||"GET",De=ee.timestamp()+(_e.expires||1800),Ce={bucket:this.options.bucket,object:Me},Ee=this._getResource(Ce),!(this.options.stsToken&&pe(this.options.refreshSTSToken))){Ae.next=11;break}return Ae.next=11,se.call(this);case 11:return this.options.stsToken&&(_e["security-token"]=this.options.stsToken),je=x._signatureForURL(this.options.accessKeySecret,_e,Ee,De),ke=ie.parse(this._getReqUrl(Ce)),ke.query={OSSAccessKeyId:this.options.accessKeyId,Expires:De,Signature:je.Signature},le(je.subResource).to(ke.query),Ae.abrupt("return",ke.format());case 17:case"end":return Ae.stop()}},Pe,this)}));function be(Pe,Me){return he.apply(this,arguments)}return be}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js");var oe=z(a("@babel/runtime/helpers/typeof")),ie=z(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),le=ee.checkBucketName,x=xe,ne=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];x.copy=function(){var re=(0,ie.default)(E.default.mark(function se(ce,pe,me,he){var be,Pe,Me;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return(0,oe.default)(me)==="object"&&(he=me),he=he||{},he.headers=he.headers||{},Object.keys(he.headers).forEach(function(Ce){he.headers["x-oss-copy-source-".concat(Ce.toLowerCase())]=he.headers[Ce]}),(he.meta||Object.keys(he.headers).find(function(Ce){return ne.includes(Ce.toLowerCase())}))&&(he.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(he.meta,he.headers),pe=this._getSourceName(pe,me),he.versionId&&(pe="".concat(pe,"?versionId=").concat(he.versionId)),he.headers["x-oss-copy-source"]=pe,be=this._objectRequestParams("PUT",ce,he),be.xmlResponse=!0,be.successStatuses=[200,304],De.next=14,this.request(be);case 14:return Pe=De.sent,Me=Pe.data,Me&&(Me={etag:Me.ETag,lastModified:Me.LastModified}),De.abrupt("return",{data:Me,res:Pe.res});case 18:case"end":return De.stop()}},se,this)}));function ae(se,ce,pe,me){return re.apply(this,arguments)}return ae}(),x._getSourceName=function(ae,se){return typeof se=="string"?ae=this._objectName(ae):ae[0]!=="/"?se=this.options.bucket:(se=ae.replace(/\/(.+?)(\/.*)/,"$1"),ae=ae.replace(/(\/.+?\/)(.*)/,"$2")),le(se),ae=encodeURIComponent(ae),ae="/".concat(se,"/").concat(ae),ae}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=xe;ie.delete=function(){var ee=(0,oe.default)(E.default.mark(function x(ne){var re,ae,se,ce=arguments;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ce.length>1&&ce[1]!==void 0?ce[1]:{},re.subres=Object.assign({},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ae=this._objectRequestParams("DELETE",ne,re),ae.successStatuses=[204],me.next=7,this.request(ae);case 7:return se=me.sent,me.abrupt("return",{res:se.res});case 9:case"end":return me.stop()}},x,this)}));function le(x){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("utility"),ee=a("../utils/obj2xml"),le=ee.obj2xml,x=xe;x.deleteMulti=function(){var ne=(0,oe.default)(E.default.mark(function ae(se){var ce,pe,me,he,be,Pe,Me,_e,De,Ce,Ee,je,ke,Be=arguments;return E.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(ce=Be.length>1&&Be[1]!==void 0?Be[1]:{},pe=[],!(!se||!se.length)){ve.next=4;break}throw new Error("names is required");case 4:for(me=0;me<se.length;me++)he={},typeof se[me]=="string"?he.Key=ie.escape(this._objectName(se[me])):(be=se[me],Pe=be.key,Me=be.versionId,he.Key=ie.escape(this._objectName(Pe)),he.VersionId=Me),pe.push(he);return _e={Delete:{Quiet:!!ce.quiet,Object:pe}},De=le(_e,{headers:!0}),ce.subres=Object.assign({delete:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),Ce=this._objectRequestParams("POST","",ce),Ce.mime="xml",Ce.content=De,Ce.xmlResponse=!0,Ce.successStatuses=[200],ve.next=16,this.request(Ce);case 16:return Ee=ve.sent,je=Ee.data,ke=je&&je.Deleted||null,ke&&(Array.isArray(ke)||(ke=[ke])),ve.abrupt("return",{res:Ee.res,deleted:ke||[]});case 21:case"end":return ve.stop()}},ae,this)}));function re(ae){return ne.apply(this,arguments)}return re}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=xe;ie.deleteObjectTagging=function(){var ee=(0,oe.default)(E.default.mark(function x(ne){var re,ae,se,ce=arguments;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ce.length>1&&ce[1]!==void 0?ce[1]:{},re.subres=Object.assign({tagging:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ne=this._objectName(ne),ae=this._objectRequestParams("DELETE",ne,re),ae.successStatuses=[204],me.next=8,this.request(ae);case 8:return se=me.sent,me.abrupt("return",{status:se.status,res:se.res});case 10:case"end":return me.stop()}},x,this)}));function le(x){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(a,Te,xe){"use strict";a("core-js/modules/es.array.concat.js");var z=a("url"),E=a("../utils/isIP"),oe=E.isIP,ie=xe;ie.generateObjectUrl=function(le,x){if(oe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(x)x[x.length-1]!=="/"&&(x+="/");else{x=this.options.endpoint.format();var ne=z.parse(x),re=this.options.bucket;ne.hostname="".concat(re,".").concat(ne.hostname),ne.host="".concat(re,".").concat(ne.host),x=ne.format()}return x+this._escape(this._objectName(le))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(a,Te,xe){(function(z){(function(){"use strict";var E=a("@babel/runtime/helpers/interopRequireDefault"),oe=E(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=E(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("fs"),le=a("is-type-of"),x=xe;x.get=function(){var ne=(0,ie.default)(oe.default.mark(function ae(se,ce){var pe,me,he,be,Pe,Me,_e,De,Ce=arguments;return oe.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return pe=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},me=null,he=!1,le.writableStream(ce)?me=ce:le.string(ce)?(me=ee.createWriteStream(ce),he=!0):pe=ce,pe=pe||{},be=z&&z.browser,Pe=pe.responseCacheControl===null?"":"no-cache",Me=be&&Pe?{"response-cache-control":Pe}:{},pe.subres=Object.assign(Me,pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),pe.process&&(pe.subres["x-oss-process"]=pe.process),je.prev=11,De=this._objectRequestParams("GET",se,pe),De.writeStream=me,De.successStatuses=[200,206,304],je.next=17,this.request(De);case 17:_e=je.sent,he&&me.destroy(),je.next=28;break;case 21:if(je.prev=21,je.t0=je.catch(11),!he){je.next=27;break}return me.destroy(),je.next=27,this._deleteFileSafe(ce);case 27:throw je.t0;case 28:return je.abrupt("return",{res:_e.res,content:_e.data});case 29:case"end":return je.stop()}},ae,this,[[11,21]])}));function re(ae,se){return ne.apply(this,arguments)}return re}()}).call(this)}).call(this,a("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=xe;ie.getACL=function(){var ee=(0,oe.default)(E.default.mark(function x(ne){var re,ae,se,ce=arguments;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ce.length>1&&ce[1]!==void 0?ce[1]:{},re.subres=Object.assign({acl:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ne=this._objectName(ne),ae=this._objectRequestParams("GET",ne,re),ae.successStatuses=[200],ae.xmlResponse=!0,me.next=9,this.request(ae);case 9:return se=me.sent,me.abrupt("return",{acl:se.data.AccessControlList.Grant,owner:{id:se.data.Owner.ID,displayName:se.data.Owner.DisplayName},res:se.res});case 11:case"end":return me.stop()}},x,this)}));function le(x){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.number.constructor.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=xe,ee=a("../utils/isObject"),le=ee.isObject,x=a("../utils/isArray"),ne=x.isArray;ie.getBucketVersions=re,ie.listObjectVersions=re;function re(){return ae.apply(this,arguments)}function ae(){return ae=(0,oe.default)(E.default.mark(function pe(){var me,he,be,Pe,Me,_e,De,Ce,Ee=arguments;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(me=Ee.length>0&&Ee[0]!==void 0?Ee[0]:{},he=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},!(me.versionIdMarker&&me.keyMarker===void 0)){ke.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return he.subres=Object.assign({versions:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),be=this._objectRequestParams("GET","",he),be.xmlResponse=!0,be.successStatuses=[200],be.query=ce(me),ke.next=12,this.request(be);case 12:return Pe=ke.sent,Me=Pe.data.Version||[],_e=Pe.data.DeleteMarker||[],De=this,Me&&(Array.isArray(Me)||(Me=[Me]),Me=Me.map(function(Be){return{name:Be.Key,url:De._objectUrl(Be.Key),lastModified:Be.LastModified,isLatest:Be.IsLatest==="true",versionId:Be.VersionId,etag:Be.ETag,type:Be.Type,size:Number(Be.Size),storageClass:Be.StorageClass,owner:{id:Be.Owner.ID,displayName:Be.Owner.DisplayName}}})),_e&&(ne(_e)||(_e=[_e]),_e=_e.map(function(Be){return{name:Be.Key,lastModified:Be.LastModified,versionId:Be.VersionId,owner:{id:Be.Owner.ID,displayName:Be.Owner.DisplayName}}})),Ce=Pe.data.CommonPrefixes||null,Ce&&(ne(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Be){return Be.Prefix})),ke.abrupt("return",{res:Pe.res,objects:Me,deleteMarker:_e,prefixes:Ce,nextMarker:Pe.data.NextKeyMarker||null,NextVersionIdMarker:Pe.data.NextVersionIdMarker||null,nextKeyMarker:Pe.data.NextKeyMarker||null,nextVersionIdMarker:Pe.data.NextVersionIdMarker||null,isTruncated:Pe.data.IsTruncated==="true"});case 21:case"end":return ke.stop()}},pe,this)})),ae.apply(this,arguments)}function se(pe){return pe.replace(/([A-Z])/g,"-$1").toLowerCase()}function ce(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},me={};return le(pe)&&Object.keys(pe).forEach(function(he){me[se(he)]=pe[he]}),me}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=xe;ie.getObjectMeta=function(){var ee=(0,oe.default)(E.default.mark(function x(ne,re){var ae,se;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return re=re||{},ne=this._objectName(ne),re.subres=Object.assign({objectMeta:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ae=this._objectRequestParams("HEAD",ne,re),ae.successStatuses=[200],pe.next=8,this.request(ae);case 8:return se=pe.sent,pe.abrupt("return",{status:se.status,res:se.res});case 10:case"end":return pe.stop()}},x,this)}));function le(x,ne){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=xe,ee=a("../utils/isObject"),le=ee.isObject;ie.getObjectTagging=function(){var x=(0,oe.default)(E.default.mark(function re(ae){var se,ce,pe,me,he,be,Pe=arguments;return E.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return se=Pe.length>1&&Pe[1]!==void 0?Pe[1]:{},se.subres=Object.assign({tagging:""},se.subres),se.versionId&&(se.subres.versionId=se.versionId),ae=this._objectName(ae),ce=this._objectRequestParams("GET",ae,se),ce.successStatuses=[200],_e.next=8,this.request(ce);case 8:return pe=_e.sent,_e.next=11,this.parseXML(pe.data);case 11:return me=_e.sent,he=me.TagSet.Tag,he=he&&le(he)?[he]:he||[],be={},he.forEach(function(De){be[De.Key]=De.Value}),_e.abrupt("return",{status:pe.status,res:pe.res,tag:be});case 17:case"end":return _e.stop()}},re,this)}));function ne(re){return x.apply(this,arguments)}return ne}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(a,Te,xe){"use strict";var z=a("../utils/isIP"),E=z.isIP,oe=xe;oe.getObjectUrl=function(ee,le){if(E(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return le?le[le.length-1]!=="/"&&(le+="/"):le=this.options.endpoint.format(),le+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=xe;ie.getSymlink=function(){var ee=(0,oe.default)(E.default.mark(function x(ne){var re,ae,se,ce,pe=arguments;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return re=pe.length>1&&pe[1]!==void 0?pe[1]:{},re.subres=Object.assign({symlink:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ne=this._objectName(ne),ae=this._objectRequestParams("GET",ne,re),ae.successStatuses=[200],he.next=8,this.request(ae);case 8:return se=he.sent,ce=se.res.headers["x-oss-symlink-target"],he.abrupt("return",{targetName:decodeURIComponent(ce),res:se.res});case 11:case"end":return he.stop()}},x,this)}));function le(x){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/checkEnv"),ee=ie.checkEnv,le=xe;le.head=function(){var x=(0,oe.default)(E.default.mark(function re(ae){var se,ce,pe,me,he=arguments;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return se=he.length>1&&he[1]!==void 0?he[1]:{},ee("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),se.subres=Object.assign({},se.subres),se.versionId&&(se.subres.versionId=se.versionId),ce=this._objectRequestParams("HEAD",ae,se),ce.successStatuses=[200,304],Pe.next=8,this.request(ce);case 8:return pe=Pe.sent,me={meta:null,res:pe.res,status:pe.status},pe.status===200&&Object.keys(pe.headers).forEach(function(Me){Me.indexOf("x-oss-meta-")===0&&(me.meta||(me.meta={}),me.meta[Me.substring(11)]=pe.headers[Me])}),Pe.abrupt("return",me);case 12:case"end":return Pe.stop()}},re,this)}));function ne(re){return x.apply(this,arguments)}return ne}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=xe;ie.putACL=function(){var ee=(0,oe.default)(E.default.mark(function x(ne,re,ae){var se,ce;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ae=ae||{},ae.subres=Object.assign({acl:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),ae.headers=ae.headers||{},ae.headers["x-oss-object-acl"]=re,ne=this._objectName(ne),se=this._objectRequestParams("PUT",ne,ae),se.successStatuses=[200],me.next=10,this.request(se);case 10:return ce=me.sent,me.abrupt("return",{res:ce.res});case 12:case"end":return me.stop()}},x,this)}));function le(x,ne,re){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.object.keys.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("../utils/obj2xml"),ee=ie.obj2xml,le=a("../utils/checkObjectTag"),x=le.checkObjectTag,ne=xe;ne.putObjectTagging=function(){var re=(0,oe.default)(E.default.mark(function se(ce,pe){var me,he,be,Pe,Me=arguments;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return me=Me.length>2&&Me[2]!==void 0?Me[2]:{},x(pe),me.subres=Object.assign({tagging:""},me.subres),me.versionId&&(me.subres.versionId=me.versionId),ce=this._objectName(ce),he=this._objectRequestParams("PUT",ce,me),he.successStatuses=[200],pe=Object.keys(pe).map(function(Ce){return{Key:Ce,Value:pe[Ce]}}),be={Tagging:{TagSet:{Tag:pe}}},he.mime="xml",he.content=ee(be),De.next=13,this.request(he);case 13:return Pe=De.sent,De.abrupt("return",{res:Pe.res,status:Pe.status});case 15:case"end":return De.stop()}},se,this)}));function ae(se,ce){return re.apply(this,arguments)}return ae}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=xe;ie.putSymlink=function(){var ee=(0,oe.default)(E.default.mark(function x(ne,re,ae){var se,ce;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ae=ae||{},ae.headers=ae.headers||{},re=this._escape(this._objectName(re)),this._convertMetaToHeaders(ae.meta,ae.headers),ae.headers["x-oss-symlink-target"]=re,ae.subres=Object.assign({symlink:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),ae.storageClass&&(ae.headers["x-oss-storage-class"]=ae.storageClass),ne=this._objectName(ne),se=this._objectRequestParams("PUT",ne,ae),se.successStatuses=[200],me.next=13,this.request(se);case 13:return ce=me.sent,me.abrupt("return",{res:ce.res});case 15:case"end":return me.stop()}},x,this)}));function le(x,ne,re){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(a,Te,xe){"use strict";var z=a("url"),E=a("utility"),oe=a("copy-to"),ie=a("../../common/signUtils"),ee=a("../utils/isIP"),le=ee.isIP,x=xe;x.signatureUrl=function(re,ae){if(le(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");ae=ae||{},re=this._objectName(re),ae.method=ae.method||"GET";var se=E.timestamp()+(ae.expires||1800),ce={bucket:this.options.bucket,object:re},pe=this._getResource(ce);this.options.stsToken&&(ae["security-token"]=this.options.stsToken);var me=ie._signatureForURL(this.options.accessKeySecret,ae,pe,se),he=z.parse(this._getReqUrl(ce));return he.query={OSSAccessKeyId:this.options.accessKeyId,Expires:se,Signature:me.Signature},oe(me.subResource).to(he.query),he.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/web.dom-collections.iterator.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.function.name.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ie=a("./utils/isArray"),ee=ie.isArray,le=xe;le._parallelNode=function(){var x=(0,oe.default)(E.default.mark(function re(ae,se,ce,pe){var me,he,be,Pe,Me,_e,De,Ce;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:me=this,he=[],be=[],Pe=ae.length/se,Me=ae.length%se,_e=Me===0?Pe:(ae.length-Me)/se+1,De=1,Ce=0;case 8:if(!(Ce<ae.length)){je.next=26;break}if(!me.isCancel()){je.next=11;break}return je.abrupt("break",26);case 11:if(pe?be.push(ce(me,ae[Ce],pe)):be.push(ce(me,ae[Ce])),!(be.length===se||De===_e&&Ce===ae.length-1)){je.next=23;break}return je.prev=13,De+=1,je.next=17,Promise.all(be);case 17:je.next=22;break;case 19:je.prev=19,je.t0=je.catch(13),he.push(je.t0);case 22:be=[];case 23:Ce++,je.next=8;break;case 26:return je.abrupt("return",he);case 27:case"end":return je.stop()}},re,this,[[13,19]])}));function ne(re,ae,se,ce){return x.apply(this,arguments)}return ne}(),le._parallel=function(ne,re,ae){var se=this;return new Promise(function(ce){var pe=[];if(re<=0||!ne){ce(pe);return}function me(je){return function(){if(je===null)throw new Error("Callback was already called.");var ke=je;je=null;for(var Be=arguments.length,Ae=new Array(Be),ve=0;ve<Be;ve++)Ae[ve]=arguments[ve];ke.apply(this,Ae)}}function he(je){var ke=-1,Be=je.length;return function(){return++ke<Be&&!se.isCancel()?{value:je[ke],key:ke}:null}}var be=he(ne),Pe=!1,Me=0,_e=!1;function De(je){Me-=1,je?(Pe=!0,pe.push(je),ce(pe)):Pe&&Me<=0?(Pe=!0,ce(pe)):_e||(se.isCancel()?ce(pe):Ee())}function Ce(je,ke){ae(je).then(function(Be){ke(null,Be)}).catch(function(Be){ke(Be)})}function Ee(){for(_e=!0;Me<re&&!Pe&&!se.isCancel();){var je=be();if(je===null||pe.length>0){Pe=!0,Me<=0&&ce(pe);return}Me+=1,Ce(je.value,me(De))}_e=!1}Ee()})},le.cancel=function(ne){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(re){if(re.destroyed===!1){var ae={name:"cancel",message:"cancel"};re.destroy(ae)}}),this.multipartUploadStreams=[],ne&&this.abortMultipartUpload(ne.name,ne.uploadId,ne.options)},le.isCancel=function(){return this.options.cancelFlag},le.resetCancelFlag=function(){this.options.cancelFlag=!1},le._stop=function(){this.options.cancelFlag=!0},le._makeCancelEvent=function(){var ne={status:0,name:"cancel"};return ne},le._makeAbortEvent=function(){var ne={status:0,name:"abort",message:"upload task has been abort"};return ne}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(a,Te,xe){(function(z){(function(){"use strict";a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.array.sort.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js");var E=a("./../../shims/crypto/crypto.js"),oe=a("is-type-of"),ie=a("./utils/lowercaseKeyHeader"),ee=ie.lowercaseKeyHeader;xe.buildCanonicalizedResource=function(x,ne){var re="".concat(x),ae="?";if(oe.string(ne)&&ne.trim()!=="")re+=ae+ne;else if(oe.array(ne))ne.sort(),re+=ae+ne.join("&");else if(ne){var se=function(me,he){return me[0]>he[0]?1:me[0]<he[0]?-1:0},ce=function(me){re+=ae+me,(ne[me]||ne[me]===0)&&(re+="=".concat(ne[me])),ae="&"};Object.keys(ne).sort(se).forEach(ce)}return re},xe.buildCanonicalString=function(x,ne,re,ae){re=re||{};var se=ee(re.headers),ce="x-oss-",pe=[],me={},he=[x.toUpperCase(),se["content-md5"]||"",se["content-type"],ae||se["x-oss-date"]];return Object.keys(se).forEach(function(be){var Pe=be.toLowerCase();Pe.indexOf(ce)===0&&(me[Pe]=String(se[be]).trim())}),Object.keys(me).sort().forEach(function(be){pe.push("".concat(be,":").concat(me[be]))}),he=he.concat(pe),he.push(this.buildCanonicalizedResource(ne,re.parameters)),he.join(`
`)},xe.computeSignature=function(x,ne){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",ae=E.createHmac("sha1",x);return ae.update(z.from(ne,re)).digest("base64")},xe.authorization=function(x,ne,re,ae){return"OSS ".concat(x,":").concat(this.computeSignature(ne,re,ae))},xe._signatureForURL=function(x){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2?arguments[2]:void 0,ae=arguments.length>3?arguments[3]:void 0,se=arguments.length>4?arguments[4]:void 0,ce={},pe=ne.subResource,me=pe===void 0?{}:pe;if(ne.process){var he="x-oss-process";me[he]=ne.process}if(ne.trafficLimit){var be="x-oss-traffic-limit";me[be]=ne.trafficLimit}if(ne.response&&Object.keys(ne.response).forEach(function(De){var Ce="response-".concat(De.toLowerCase());me[Ce]=ne.response[De]}),Object.keys(ne).forEach(function(De){var Ce=De.toLowerCase(),Ee=ne[De];Ce.indexOf("x-oss-")===0?ce[Ce]=Ee:(Ce.indexOf("content-md5")===0||Ce.indexOf("content-type")===0)&&(ce[De]=Ee)}),Object.prototype.hasOwnProperty.call(ne,"security-token")&&(me["security-token"]=ne["security-token"]),Object.prototype.hasOwnProperty.call(ne,"callback")){var Pe={callbackUrl:encodeURI(ne.callback.url),callbackBody:ne.callback.body};if(ne.callback.host&&(Pe.callbackHost=ne.callback.host),ne.callback.contentType&&(Pe.callbackBodyType=ne.callback.contentType),me.callback=z.from(JSON.stringify(Pe)).toString("base64"),ne.callback.customValue){var Me={};Object.keys(ne.callback.customValue).forEach(function(De){Me["x:".concat(De)]=ne.callback.customValue[De]}),me["callback-var"]=z.from(JSON.stringify(Me)).toString("base64")}}var _e=this.buildCanonicalString(ne.method,re,{headers:ce,parameters:me},ae.toString());return{Signature:this.computeSignature(x,_e,se),subResource:me}}}).call(this)}).call(this,a("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(a,Te,xe){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkBucketName=void 0,xe.checkBucketName=function(z){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=E?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!oe.test(z))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(a,Te,xe){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkConfigValid=void 0;var z={endpoint:E,region:/^[a-zA-Z0-9\-_]+$/};function E(oe){return typeof oe=="string"?/^[a-zA-Z0-9._:/-]+$/.test(oe):oe.host?/^[a-zA-Z0-9._:/-]+$/.test(oe.host):!1}xe.checkConfigValid=function(oe,ie){if(z[ie]){var ee=!0;if(z[ie]instanceof Function?ee=z[ie](oe):ee=z[ie].test(oe),!ee)throw new Error("The ".concat(ie," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(a,Te,xe){(function(z){(function(){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkEnv=void 0;function E(oe){z.browser&&console.warn(oe)}xe.checkEnv=E}).call(this)}).call(this,a("_process"))},{_process:467}],54:[function(a,Te,xe){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.entries.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkObjectTag=void 0;var z=a("./checkValid"),E=z.checkValid,oe=a("./isObject"),ie=oe.isObject,ee=[{validator:function(re){if(typeof re!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],le={key:[].concat(ee,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ee,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function x(ne){if(!ie(ne))throw new Error("tag must be Object");var re=Object.entries(ne);if(re.length>10)throw new Error("maximum of 10 tags for a object");var ae=["key","value"];re.forEach(function(se){se.forEach(function(ce,pe){E(ce,le[ae[pe]])})})}xe.checkObjectTag=x},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(a,Te,xe){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkValid=void 0;function z(E,oe){oe.forEach(function(ie){if(ie.validator)ie.validator(E);else if(ie.pattern&&!ie.pattern.test(E))throw new Error(ie.msg)})}xe.checkValid=z},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(a,Te,xe){(function(z){(function(){"use strict";a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.concat.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.createRequest=void 0;var E=a("./../../../shims/crypto/crypto.js"),oe=a("debug")("ali-oss"),ie=a("mime"),ee=a("dateformat"),le=a("copy-to"),x=a("path"),ne=a("./encoder"),re=ne.encoder,ae=a("./isIP"),se=ae.isIP,ce=a("./setRegion"),pe=ce.setRegion,me=a("../client/getReqUrl"),he=me.getReqUrl,be=a("./isDingTalk"),Pe=be.isDingTalk;function Me(Ce,Ee){return Ce[Ee]||Ce[Ee.toLowerCase()]}function _e(Ce,Ee){delete Ce[Ee],delete Ce[Ee.toLowerCase()]}function De(Ce){var Ee=new Date;this.options.amendTimeSkewed&&(Ee=+new Date+this.options.amendTimeSkewed);var je={"x-oss-date":ee(Ee,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(je["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(je["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(je,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(je["x-oss-security-token"]=this.options.stsToken),le(Ce.headers).to(je),Me(je,"Content-Type")||(Ce.mime&&Ce.mime.indexOf("/")>0?je["Content-Type"]=Ce.mime:Pe()?je["Content-Type"]="application/octet-stream":je["Content-Type"]=ie.getType(Ce.mime||x.extname(Ce.object||""))),Me(je,"Content-Type")||_e(je,"Content-Type"),Ce.content&&(Ce.disabledMD5||(!Ce.headers||!Ce.headers["Content-MD5"]?je["Content-MD5"]=E.createHash("md5").update(z.from(Ce.content,"utf8")).digest("base64"):je["Content-MD5"]=Ce.headers["Content-MD5"]),je["Content-Length"]||(je["Content-Length"]=Ce.content.length));var ke=Object.prototype.hasOwnProperty;for(var Be in je)je[Be]&&ke.call(je,Be)&&(je[Be]=re(String(je[Be]),this.options.headerEncoding));var Ae=this._getResource(Ce);if(je.authorization=this.authorization(Ce.method,Ae,Ce.subres,je,this.options.headerEncoding),se(this.options.endpoint.hostname)){var ve=this.options,Ue=ve.region,He=ve.internal,Ye=ve.secure,ot=pe(Ue,He,Ye);je.host="".concat(Ce.bucket,".").concat(ot.host)}var Fe=he.bind(this)(Ce);oe("request %s %s, with headers %j, !!stream: %s",Ce.method,Fe,je,!!Ce.stream);var Ke=Ce.timeout||this.options.timeout,rt={method:Ce.method,content:Ce.content,stream:Ce.stream,headers:je,timeout:Ke,writeStream:Ce.writeStream,customResponse:Ce.customResponse,ctx:Ce.ctx||this.ctx};return this.agent&&(rt.agent=this.agent),this.httpsAgent&&(rt.httpsAgent=this.httpsAgent),rt.enableProxy=!!this.options.enableProxy,rt.proxy=this.options.proxy?this.options.proxy:null,{url:Fe,params:rt}}xe.createRequest=De}).call(this)}).call(this,a("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(a,Te,xe){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.entries.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.object.keys.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.dataFix=void 0;var z=a("./isObject"),E=["true","TRUE","1",1],oe=["false","FALSE","0",0];function ie(x,ne,re){if(z.isObject(x)){var ae=ne.remove,se=ae===void 0?[]:ae,ce=ne.rename,pe=ce===void 0?{}:ce,me=ne.camel,he=me===void 0?[]:me,be=ne.bool,Pe=be===void 0?[]:be,Me=ne.lowerFirst,_e=Me===void 0?!1:Me;return se.forEach(function(De){return delete x[De]}),Object.entries(pe).forEach(function(De){x[De[0]]&&(x[De[1]]||(x[De[1]]=x[De[0]],delete x[De[0]]))}),he.forEach(function(De){if(x[De]){var Ce=De.replace(/^(.)/,function(Ee){return Ee.toLowerCase()}).replace(/-(\w)/g,function(Ee,je){return je.toUpperCase()});x[Ce]||(x[Ce]=x[De])}}),Pe.forEach(function(De){x[De]=ee(x[De])}),typeof re=="function"&&re(x),le(x,_e),ie}}xe.dataFix=ie;function ee(x){return x?E.includes(x)?!0:oe.includes(x)?!1:x:!1}function le(x,ne){ne&&Object.keys(x).forEach(function(re){var ae=re.replace(/^\w/,function(se){return se.toLowerCase()});typeof x[ae]=="undefined"&&(x[ae]=x[re],delete x[re])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js");var E=z(a("@babel/runtime/helpers/typeof"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.deepCopyWith=xe.deepCopy=void 0;var oe=a("./isBuffer");xe.deepCopy=function(ie){if(ie===null||(0,E.default)(ie)!=="object")return ie;if(oe.isBuffer(ie))return ie.slice();var ee=Array.isArray(ie)?[]:{};return Object.keys(ie).forEach(function(le){ee[le]=xe.deepCopy(ie[le])}),ee},xe.deepCopyWith=function(ie,ee){function le(x,ne,re){var ae=ee(x,ne,re);if(ae!==void 0)return ae;if(x===null||(0,E.default)(x)!=="object")return x;if(oe.isBuffer(x))return x.slice();var se=Array.isArray(x)?[]:{};return Object.keys(x).forEach(function(ce){se[ce]=le(x[ce],ce,x)}),se}return ee?le(ie,"",null):xe.deepCopy(ie)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(a,Te,xe){(function(z){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.encoder=void 0;function E(oe){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return ie==="utf-8"?oe:z.from(oe).toString("latin1")}xe.encoder=E}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(a,Te,xe){"use strict";a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.formatInventoryConfig=void 0;var z=a("../utils/dataFix"),E=a("../utils/isObject"),oe=a("../utils/isArray"),ie=a("../utils/formatObjKey");function ee(x){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ne&&E.isObject(x)&&(x=[x]),oe.isArray(x)?x=x.map(le):x=le(x),x}xe.formatInventoryConfig=ee;function le(x){return z.dataFix(x,{bool:["IsEnabled"]},function(ne){var re,ae;ne.prefix=ne.Filter.Prefix,delete ne.Filter,ne.OSSBucketDestination=ne.Destination.OSSBucketDestination,ne.OSSBucketDestination.rolename=ne.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ne.OSSBucketDestination.RoleArn,ne.OSSBucketDestination.bucket=ne.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ne.OSSBucketDestination.Bucket,delete ne.Destination,ne.frequency=ne.Schedule.Frequency,delete ne.Schedule.Frequency,!((re=ne==null?void 0:ne.OptionalFields)===null||re===void 0)&&re.Field&&!oe.isArray((ae=ne.OptionalFields)===null||ae===void 0?void 0:ae.Field)&&(ne.OptionalFields.Field=[ne.OptionalFields.Field])}),x=ie.formatObjKey(x,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),x}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js");var E=z(a("@babel/runtime/helpers/typeof"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.formatObjKey=void 0;function oe(ee,le,x){if(ee===null||(0,E.default)(ee)!=="object")return ee;var ne;if(Array.isArray(ee)){ne=[];for(var re=0;re<ee.length;re++)ne.push(oe(ee[re],le,x))}else ne={},Object.keys(ee).forEach(function(ae){ne[ie(ae,le,x)]=oe(ee[ae],le,x)});return ne}xe.formatObjKey=oe;function ie(ee,le,x){return x&&x.exclude&&x.exclude.includes(ee)||(le==="firstUpperCase"?ee=ee.replace(/^./,function(ne){return ne.toUpperCase()}):le==="firstLowerCase"&&(ee=ee.replace(/^./,function(ne){return ne.toLowerCase()}))),ee}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(a,Te,xe){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.getStrBytesCount=void 0;function z(E){for(var oe=0,ie=0;ie<E.length;ie++){var ee=E.charAt(ie);/^[\u00-\uff]$/.test(ee)?oe+=1:oe+=2}return oe}xe.getStrBytesCount=z},{"core-js/modules/es.regexp.exec.js":300}],63:[function(a,Te,xe){"use strict";a("core-js/modules/es.object.to-string.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.isArray=void 0,xe.isArray=function(z){return Object.prototype.toString.call(z)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(a,Te,xe){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.isBlob=void 0;function z(E){return typeof Blob!="undefined"&&E instanceof Blob}xe.isBlob=z},{}],65:[function(a,Te,xe){(function(z){(function(){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.isBuffer=void 0;function E(oe){return z.isBuffer(oe)}xe.isBuffer=E}).call(this)}).call(this,{isBuffer:a("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(a,Te,xe){(function(z){(function(){"use strict";a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.isDingTalk=void 0;function E(){return!!(z.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}xe.isDingTalk=E}).call(this)}).call(this,a("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(a,Te,xe){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.isFile=void 0,xe.isFile=function(z){return typeof File!="undefined"&&z instanceof File}},{}],68:[function(a,Te,xe){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.isFunction=void 0,xe.isFunction=function(z){return typeof z=="function"}},{}],69:[function(a,Te,xe){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.isIP=void 0,xe.isIP=function(z){var E=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,oe=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return E.test(z)||oe.test(z)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(a,Te,xe){"use strict";a("core-js/modules/es.object.to-string.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.isObject=void 0,xe.isObject=function(z){return Object.prototype.toString.call(z)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(a,Te,xe){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.lowercaseKeyHeader=void 0;var z=a("./isObject");function E(oe){var ie={};return z.isObject(oe)&&Object.keys(oe).forEach(function(ee){ie[ee.toLowerCase()]=oe[ee]}),ie}xe.lowercaseKeyHeader=E},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(a,Te,xe){"use strict";a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.obj2xml=void 0;var z=a("./formatObjKey");function E(ie){return Object.prototype.toString.call(ie).replace(/(.*? |])/g,"").toLowerCase()}function oe(ie,ee){var le="";return ee&&ee.headers&&(le=`<?xml version="1.0" encoding="UTF-8"?>
`),ee&&ee.firstUpperCase&&(ie=z.formatObjKey(ie,"firstUpperCase")),E(ie)==="object"?Object.keys(ie).forEach(function(x){E(ie[x])!=="undefined"&&E(ie[x])!=="null"&&(E(ie[x])==="string"||E(ie[x])==="number"?le+="<".concat(x,">").concat(ie[x],"</").concat(x,">"):E(ie[x])==="object"?le+="<".concat(x,">").concat(oe(ie[x]),"</").concat(x,">"):E(ie[x])==="array"?le+=ie[x].map(function(ne){return"<".concat(x,">").concat(oe(ne),"</").concat(x,">")}).join(""):le+="<".concat(x,">").concat(ie[x].toString(),"</").concat(x,">"))}):le+=ie.toString(),le}xe.obj2xml=oe},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(a,Te,xe){"use strict";a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.symbol.js"),a("core-js/modules/es.symbol.description.js"),a("core-js/modules/es.symbol.iterator.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/web.dom-collections.iterator.js"),a("core-js/modules/es.object.assign.js");function z(ee,le){var x=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!x){if(Array.isArray(ee)||(x=E(ee))||le&&ee&&typeof ee.length=="number"){x&&(ee=x);var ne=0,re=function(){};return{s:re,n:function(){return ne>=ee.length?{done:!0}:{done:!1,value:ee[ne++]}},e:function(me){throw me},f:re}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ae=!0,se=!1,ce;return{s:function(){x=x.call(ee)},n:function(){var me=x.next();return ae=me.done,me},e:function(me){se=!0,ce=me},f:function(){try{!ae&&x.return!=null&&x.return()}finally{if(se)throw ce}}}}function E(ee,le){if(ee){if(typeof ee=="string")return oe(ee,le);var x=Object.prototype.toString.call(ee).slice(8,-1);if(x==="Object"&&ee.constructor&&(x=ee.constructor.name),x==="Map"||x==="Set")return Array.from(ee);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return oe(ee,le)}}function oe(ee,le){(le==null||le>ee.length)&&(le=ee.length);for(var x=0,ne=new Array(le);x<le;x++)ne[x]=ee[x];return ne}Object.defineProperty(xe,"__esModule",{value:!0}),xe.omit=void 0;function ie(ee,le){var x=Object.assign({},ee),ne=z(le),re;try{for(ne.s();!(re=ne.n()).done;){var ae=re.value;delete x[ae]}}catch(se){ne.e(se)}finally{ne.f()}return x}xe.omit=ie},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(a,Te,xe){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),Object.defineProperty(xe,"__esModule",{value:!0}),xe.retry=void 0;function z(E,oe){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,le=ie.retryDelay,x=le===void 0?500:le,ne=ie.errorHandler,re=ne===void 0?function(){return!0}:ne,ae=function se(){for(var ce=arguments.length,pe=new Array(ce),me=0;me<ce;me++)pe[me]=arguments[me];return new Promise(function(he,be){E.apply(void 0,pe).then(function(Pe){ee=0,he(Pe)}).catch(function(Pe){ee<oe&&re(Pe)?(ee++,setTimeout(function(){he(se.apply(void 0,pe))},x)):(ee=0,be(Pe))})})};return ae}xe.retry=z},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(a,Te,xe){"use strict";var z=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(xe,"__esModule",{value:!0}),xe.setRegion=void 0;var E=z(a("url")),oe=a("./checkConfigValid");function ie(ee){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;oe.checkConfigValid(ee,"region");var ne=x?"https://":"http://",re=le?"-internal.aliyuncs.com":".aliyuncs.com",ae="vpc100-oss-cn-";return ee.substr(0,ae.length)===ae&&(re=".aliyuncs.com"),E.default.parse(ne+ee+re)}xe.setRegion=ie},{"./checkConfigValid":52,url:472}],76:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(xe,"__esModule",{value:!0}),xe.checkCredentials=xe.setSTSToken=void 0;var ie=a("./formatObjKey");function ee(){return le.apply(this,arguments)}function le(){return le=(0,oe.default)(E.default.mark(function ne(){var re,ae;return E.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(this.options||(this.options={}),re=new Date,!this.stsTokenFreshTime){ce.next=14;break}if(!(+re-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ce.next=12;break}return this.stsTokenFreshTime=re,ce.next=7,this.options.refreshSTSToken();case 7:ae=ce.sent,ae=ie.formatObjKey(ae,"firstLowerCase"),ae.securityToken&&(ae.stsToken=ae.securityToken),x(ae),Object.assign(this.options,ae);case 12:ce.next=15;break;case 14:this.stsTokenFreshTime=re;case 15:return ce.abrupt("return",null);case 16:case"end":return ce.stop()}},ne,this)})),le.apply(this,arguments)}xe.setSTSToken=ee;function x(ne){var re=["accessKeySecret","accessKeyId","stsToken"],ae=Object.keys(ne);re.forEach(function(se){if(!ae.find(function(ce){return ce===se}))throw Error("refreshSTSToken must return contains ".concat(se))})}xe.checkCredentials=x},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(a,Te,xe){function z(oe,ie,ee,le,x,ne,re){try{var ae=oe[ne](re),se=ae.value}catch(ce){ee(ce);return}ae.done?ie(se):Promise.resolve(se).then(le,x)}function E(oe){return function(){var ie=this,ee=arguments;return new Promise(function(le,x){var ne=oe.apply(ie,ee);function re(se){z(ne,le,x,re,ae,"next",se)}function ae(se){z(ne,le,x,re,ae,"throw",se)}re(void 0)})}}Te.exports=E,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],78:[function(a,Te,xe){function z(E){return E&&E.__esModule?E:{default:E}}Te.exports=z,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],79:[function(a,Te,xe){function z(E){"@babel/helpers - typeof";return Te.exports=z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},Te.exports.__esModule=!0,Te.exports.default=Te.exports,z(E)}Te.exports=z,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],80:[function(a,Te,xe){Te.exports=a("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(a,Te,xe){Te.exports=z,Te.exports.HttpsAgent=z;function z(){}},{}],82:[function(a,Te,xe){(function(z){(function(){"use strict";var E=a("object-assign");function oe(Ue,He){if(Ue===He)return 0;for(var Ye=Ue.length,ot=He.length,Fe=0,Ke=Math.min(Ye,ot);Fe<Ke;++Fe)if(Ue[Fe]!==He[Fe]){Ye=Ue[Fe],ot=He[Fe];break}return Ye<ot?-1:ot<Ye?1:0}function ie(Ue){return z.Buffer&&typeof z.Buffer.isBuffer=="function"?z.Buffer.isBuffer(Ue):!!(Ue!=null&&Ue._isBuffer)}var ee=a("util/"),le=Object.prototype.hasOwnProperty,x=Array.prototype.slice,ne=function(){return function(){}.name==="foo"}();function re(Ue){return Object.prototype.toString.call(Ue)}function ae(Ue){return ie(Ue)||typeof z.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ue):Ue?!!(Ue instanceof DataView||Ue.buffer&&Ue.buffer instanceof ArrayBuffer):!1}var se=Te.exports=Me,ce=/\s*function\s+([^\(\s]*)\s*/;function pe(Ue){if(ee.isFunction(Ue)){if(ne)return Ue.name;var He=Ue.toString(),Ye=He.match(ce);return Ye&&Ye[1]}}se.AssertionError=function(He){this.name="AssertionError",this.actual=He.actual,this.expected=He.expected,this.operator=He.operator,He.message?(this.message=He.message,this.generatedMessage=!1):(this.message=be(this),this.generatedMessage=!0);var Ye=He.stackStartFunction||Pe;if(Error.captureStackTrace)Error.captureStackTrace(this,Ye);else{var ot=new Error;if(ot.stack){var Fe=ot.stack,Ke=pe(Ye),rt=Fe.indexOf(`
`+Ke);if(rt>=0){var nt=Fe.indexOf(`
`,rt+1);Fe=Fe.substring(nt+1)}this.stack=Fe}}},ee.inherits(se.AssertionError,Error);function me(Ue,He){return typeof Ue=="string"?Ue.length<He?Ue:Ue.slice(0,He):Ue}function he(Ue){if(ne||!ee.isFunction(Ue))return ee.inspect(Ue);var He=pe(Ue),Ye=He?": "+He:"";return"[Function"+Ye+"]"}function be(Ue){return me(he(Ue.actual),128)+" "+Ue.operator+" "+me(he(Ue.expected),128)}function Pe(Ue,He,Ye,ot,Fe){throw new se.AssertionError({message:Ye,actual:Ue,expected:He,operator:ot,stackStartFunction:Fe})}se.fail=Pe;function Me(Ue,He){Ue||Pe(Ue,!0,He,"==",se.ok)}se.ok=Me,se.equal=function(He,Ye,ot){He!=Ye&&Pe(He,Ye,ot,"==",se.equal)},se.notEqual=function(He,Ye,ot){He==Ye&&Pe(He,Ye,ot,"!=",se.notEqual)},se.deepEqual=function(He,Ye,ot){_e(He,Ye,!1)||Pe(He,Ye,ot,"deepEqual",se.deepEqual)},se.deepStrictEqual=function(He,Ye,ot){_e(He,Ye,!0)||Pe(He,Ye,ot,"deepStrictEqual",se.deepStrictEqual)};function _e(Ue,He,Ye,ot){if(Ue===He)return!0;if(ie(Ue)&&ie(He))return oe(Ue,He)===0;if(ee.isDate(Ue)&&ee.isDate(He))return Ue.getTime()===He.getTime();if(ee.isRegExp(Ue)&&ee.isRegExp(He))return Ue.source===He.source&&Ue.global===He.global&&Ue.multiline===He.multiline&&Ue.lastIndex===He.lastIndex&&Ue.ignoreCase===He.ignoreCase;if((Ue===null||typeof Ue!="object")&&(He===null||typeof He!="object"))return Ye?Ue===He:Ue==He;if(ae(Ue)&&ae(He)&&re(Ue)===re(He)&&!(Ue instanceof Float32Array||Ue instanceof Float64Array))return oe(new Uint8Array(Ue.buffer),new Uint8Array(He.buffer))===0;if(ie(Ue)!==ie(He))return!1;ot=ot||{actual:[],expected:[]};var Fe=ot.actual.indexOf(Ue);return Fe!==-1&&Fe===ot.expected.indexOf(He)?!0:(ot.actual.push(Ue),ot.expected.push(He),Ce(Ue,He,Ye,ot))}function De(Ue){return Object.prototype.toString.call(Ue)=="[object Arguments]"}function Ce(Ue,He,Ye,ot){if(Ue==null||He===null||He===void 0)return!1;if(ee.isPrimitive(Ue)||ee.isPrimitive(He))return Ue===He;if(Ye&&Object.getPrototypeOf(Ue)!==Object.getPrototypeOf(He))return!1;var Fe=De(Ue),Ke=De(He);if(Fe&&!Ke||!Fe&&Ke)return!1;if(Fe)return Ue=x.call(Ue),He=x.call(He),_e(Ue,He,Ye);var rt=ve(Ue),nt=ve(He),et,Ge;if(rt.length!==nt.length)return!1;for(rt.sort(),nt.sort(),Ge=rt.length-1;Ge>=0;Ge--)if(rt[Ge]!==nt[Ge])return!1;for(Ge=rt.length-1;Ge>=0;Ge--)if(et=rt[Ge],!_e(Ue[et],He[et],Ye,ot))return!1;return!0}se.notDeepEqual=function(He,Ye,ot){_e(He,Ye,!1)&&Pe(He,Ye,ot,"notDeepEqual",se.notDeepEqual)},se.notDeepStrictEqual=Ee;function Ee(Ue,He,Ye){_e(Ue,He,!0)&&Pe(Ue,He,Ye,"notDeepStrictEqual",Ee)}se.strictEqual=function(He,Ye,ot){He!==Ye&&Pe(He,Ye,ot,"===",se.strictEqual)},se.notStrictEqual=function(He,Ye,ot){He===Ye&&Pe(He,Ye,ot,"!==",se.notStrictEqual)};function je(Ue,He){if(!Ue||!He)return!1;if(Object.prototype.toString.call(He)=="[object RegExp]")return He.test(Ue);try{if(Ue instanceof He)return!0}catch(Ye){}return Error.isPrototypeOf(He)?!1:He.call({},Ue)===!0}function ke(Ue){var He;try{Ue()}catch(Ye){He=Ye}return He}function Be(Ue,He,Ye,ot){var Fe;if(typeof He!="function")throw new TypeError('"block" argument must be a function');typeof Ye=="string"&&(ot=Ye,Ye=null),Fe=ke(He),ot=(Ye&&Ye.name?" ("+Ye.name+").":".")+(ot?" "+ot:"."),Ue&&!Fe&&Pe(Fe,Ye,"Missing expected exception"+ot);var Ke=typeof ot=="string",rt=!Ue&&ee.isError(Fe),nt=!Ue&&Fe&&!Ye;if((rt&&Ke&&je(Fe,Ye)||nt)&&Pe(Fe,Ye,"Got unwanted exception"+ot),Ue&&Fe&&Ye&&!je(Fe,Ye)||!Ue&&Fe)throw Fe}se.throws=function(Ue,He,Ye){Be(!0,Ue,He,Ye)},se.doesNotThrow=function(Ue,He,Ye){Be(!1,Ue,He,Ye)},se.ifError=function(Ue){if(Ue)throw Ue};function Ae(Ue,He){Ue||Pe(Ue,!0,He,"==",Ae)}se.strict=E(Ae,se,{equal:se.strictEqual,deepEqual:se.deepStrictEqual,notEqual:se.notStrictEqual,notDeepEqual:se.notDeepStrictEqual}),se.strict.strict=se.strict;var ve=Object.keys||function(Ue){var He=[];for(var Ye in Ue)le.call(Ue,Ye)&&He.push(Ye);return He}}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(a,Te,xe){typeof Object.create=="function"?Te.exports=function(E,oe){E.super_=oe,E.prototype=Object.create(oe.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:Te.exports=function(E,oe){E.super_=oe;var ie=function(){};ie.prototype=oe.prototype,E.prototype=new ie,E.prototype.constructor=E}},{}],84:[function(a,Te,xe){Te.exports=function(E){return E&&typeof E=="object"&&typeof E.copy=="function"&&typeof E.fill=="function"&&typeof E.readUInt8=="function"}},{}],85:[function(a,Te,xe){(function(z,E){(function(){var oe=/%[sdj%]/g;xe.format=function(nt){if(!Ce(nt)){for(var et=[],Ge=0;Ge<arguments.length;Ge++)et.push(le(arguments[Ge]));return et.join(" ")}for(var Ge=1,Xe=arguments,Ve=Xe.length,tt=String(nt).replace(oe,function(ct){if(ct==="%%")return"%";if(Ge>=Ve)return ct;switch(ct){case"%s":return String(Xe[Ge++]);case"%d":return Number(Xe[Ge++]);case"%j":try{return JSON.stringify(Xe[Ge++])}catch(at){return"[Circular]"}default:return ct}}),Qe=Xe[Ge];Ge<Ve;Qe=Xe[++Ge])Me(Qe)||!Be(Qe)?tt+=" "+Qe:tt+=" "+le(Qe);return tt},xe.deprecate=function(nt,et){if(je(E.process))return function(){return xe.deprecate(nt,et).apply(this,arguments)};if(z.noDeprecation===!0)return nt;var Ge=!1;function Xe(){if(!Ge){if(z.throwDeprecation)throw new Error(et);z.traceDeprecation?console.trace(et):console.error(et),Ge=!0}return nt.apply(this,arguments)}return Xe};var ie={},ee;xe.debuglog=function(nt){if(je(ee)&&(ee=z.env.NODE_DEBUG||""),nt=nt.toUpperCase(),!ie[nt])if(new RegExp("\\b"+nt+"\\b","i").test(ee)){var et=z.pid;ie[nt]=function(){var Ge=xe.format.apply(xe,arguments);console.error("%s %d: %s",nt,et,Ge)}}else ie[nt]=function(){};return ie[nt]};function le(nt,et){var Ge={seen:[],stylize:ne};return arguments.length>=3&&(Ge.depth=arguments[2]),arguments.length>=4&&(Ge.colors=arguments[3]),Pe(et)?Ge.showHidden=et:et&&xe._extend(Ge,et),je(Ge.showHidden)&&(Ge.showHidden=!1),je(Ge.depth)&&(Ge.depth=2),je(Ge.colors)&&(Ge.colors=!1),je(Ge.customInspect)&&(Ge.customInspect=!0),Ge.colors&&(Ge.stylize=x),ae(Ge,nt,Ge.depth)}xe.inspect=le,le.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},le.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function x(nt,et){var Ge=le.styles[et];return Ge?"\x1B["+le.colors[Ge][0]+"m"+nt+"\x1B["+le.colors[Ge][1]+"m":nt}function ne(nt,et){return nt}function re(nt){var et={};return nt.forEach(function(Ge,Xe){et[Ge]=!0}),et}function ae(nt,et,Ge){if(nt.customInspect&&et&&Ue(et.inspect)&&et.inspect!==xe.inspect&&!(et.constructor&&et.constructor.prototype===et)){var Xe=et.inspect(Ge,nt);return Ce(Xe)||(Xe=ae(nt,Xe,Ge)),Xe}var Ve=se(nt,et);if(Ve)return Ve;var tt=Object.keys(et),Qe=re(tt);if(nt.showHidden&&(tt=Object.getOwnPropertyNames(et)),ve(et)&&(tt.indexOf("message")>=0||tt.indexOf("description")>=0))return ce(et);if(tt.length===0){if(Ue(et)){var ct=et.name?": "+et.name:"";return nt.stylize("[Function"+ct+"]","special")}if(ke(et))return nt.stylize(RegExp.prototype.toString.call(et),"regexp");if(Ae(et))return nt.stylize(Date.prototype.toString.call(et),"date");if(ve(et))return ce(et)}var at="",qe=!1,Le=["{","}"];if(be(et)&&(qe=!0,Le=["[","]"]),Ue(et)){var Ne=et.name?": "+et.name:"";at=" [Function"+Ne+"]"}if(ke(et)&&(at=" "+RegExp.prototype.toString.call(et)),Ae(et)&&(at=" "+Date.prototype.toUTCString.call(et)),ve(et)&&(at=" "+ce(et)),tt.length===0&&(!qe||et.length==0))return Le[0]+at+Le[1];if(Ge<0)return ke(et)?nt.stylize(RegExp.prototype.toString.call(et),"regexp"):nt.stylize("[Object]","special");nt.seen.push(et);var te;return qe?te=pe(nt,et,Ge,Qe,tt):te=tt.map(function(de){return me(nt,et,Ge,Qe,de,qe)}),nt.seen.pop(),he(te,at,Le)}function se(nt,et){if(je(et))return nt.stylize("undefined","undefined");if(Ce(et)){var Ge="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return nt.stylize(Ge,"string")}if(De(et))return nt.stylize(""+et,"number");if(Pe(et))return nt.stylize(""+et,"boolean");if(Me(et))return nt.stylize("null","null")}function ce(nt){return"["+Error.prototype.toString.call(nt)+"]"}function pe(nt,et,Ge,Xe,Ve){for(var tt=[],Qe=0,ct=et.length;Qe<ct;++Qe)rt(et,String(Qe))?tt.push(me(nt,et,Ge,Xe,String(Qe),!0)):tt.push("");return Ve.forEach(function(at){at.match(/^\d+$/)||tt.push(me(nt,et,Ge,Xe,at,!0))}),tt}function me(nt,et,Ge,Xe,Ve,tt){var Qe,ct,at;if(at=Object.getOwnPropertyDescriptor(et,Ve)||{value:et[Ve]},at.get?at.set?ct=nt.stylize("[Getter/Setter]","special"):ct=nt.stylize("[Getter]","special"):at.set&&(ct=nt.stylize("[Setter]","special")),rt(Xe,Ve)||(Qe="["+Ve+"]"),ct||(nt.seen.indexOf(at.value)<0?(Me(Ge)?ct=ae(nt,at.value,null):ct=ae(nt,at.value,Ge-1),ct.indexOf(`
`)>-1&&(tt?ct=ct.split(`
`).map(function(qe){return" "+qe}).join(`
`).substr(2):ct=`
`+ct.split(`
`).map(function(qe){return" "+qe}).join(`
`))):ct=nt.stylize("[Circular]","special")),je(Qe)){if(tt&&Ve.match(/^\d+$/))return ct;Qe=JSON.stringify(""+Ve),Qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=nt.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=nt.stylize(Qe,"string"))}return Qe+": "+ct}function he(nt,et,Ge){var Xe=0,Ve=nt.reduce(function(tt,Qe){return Xe++,Qe.indexOf(`
`)>=0&&Xe++,tt+Qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ve>60?Ge[0]+(et===""?"":et+`
`)+" "+nt.join(`,
`)+" "+Ge[1]:Ge[0]+et+" "+nt.join(", ")+" "+Ge[1]}function be(nt){return Array.isArray(nt)}xe.isArray=be;function Pe(nt){return typeof nt=="boolean"}xe.isBoolean=Pe;function Me(nt){return nt===null}xe.isNull=Me;function _e(nt){return nt==null}xe.isNullOrUndefined=_e;function De(nt){return typeof nt=="number"}xe.isNumber=De;function Ce(nt){return typeof nt=="string"}xe.isString=Ce;function Ee(nt){return typeof nt=="symbol"}xe.isSymbol=Ee;function je(nt){return nt===void 0}xe.isUndefined=je;function ke(nt){return Be(nt)&&Ye(nt)==="[object RegExp]"}xe.isRegExp=ke;function Be(nt){return typeof nt=="object"&&nt!==null}xe.isObject=Be;function Ae(nt){return Be(nt)&&Ye(nt)==="[object Date]"}xe.isDate=Ae;function ve(nt){return Be(nt)&&(Ye(nt)==="[object Error]"||nt instanceof Error)}xe.isError=ve;function Ue(nt){return typeof nt=="function"}xe.isFunction=Ue;function He(nt){return nt===null||typeof nt=="boolean"||typeof nt=="number"||typeof nt=="string"||typeof nt=="symbol"||typeof nt=="undefined"}xe.isPrimitive=He,xe.isBuffer=a("./support/isBuffer");function Ye(nt){return Object.prototype.toString.call(nt)}function ot(nt){return nt<10?"0"+nt.toString(10):nt.toString(10)}var Fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ke(){var nt=new Date,et=[ot(nt.getHours()),ot(nt.getMinutes()),ot(nt.getSeconds())].join(":");return[nt.getDate(),Fe[nt.getMonth()],et].join(" ")}xe.log=function(){console.log("%s - %s",Ke(),xe.format.apply(xe,arguments))},xe.inherits=a("inherits"),xe._extend=function(nt,et){if(!et||!Be(et))return nt;for(var Ge=Object.keys(et),Xe=Ge.length;Xe--;)nt[Ge[Xe]]=et[Ge[Xe]];return nt};function rt(nt,et){return Object.prototype.hasOwnProperty.call(nt,et)}}).call(this)}).call(this,a("_process"),typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(a,Te,xe){(function(z){(function(){"use strict";var E=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],oe=typeof globalThis=="undefined"?z:globalThis;Te.exports=function(){for(var ee=[],le=0;le<E.length;le++)typeof oe[E[le]]=="function"&&(ee[ee.length]=E[le]);return ee}}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(a,Te,xe){"use strict";xe.byteLength=ne,xe.toByteArray=ae,xe.fromByteArray=pe;for(var z=[],E=[],oe=typeof Uint8Array!="undefined"?Uint8Array:Array,ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,le=ie.length;ee<le;++ee)z[ee]=ie[ee],E[ie.charCodeAt(ee)]=ee;E[45]=62,E[95]=63;function x(me){var he=me.length;if(he%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var be=me.indexOf("=");be===-1&&(be=he);var Pe=be===he?0:4-be%4;return[be,Pe]}function ne(me){var he=x(me),be=he[0],Pe=he[1];return(be+Pe)*3/4-Pe}function re(me,he,be){return(he+be)*3/4-be}function ae(me){var he,be=x(me),Pe=be[0],Me=be[1],_e=new oe(re(me,Pe,Me)),De=0,Ce=Me>0?Pe-4:Pe,Ee;for(Ee=0;Ee<Ce;Ee+=4)he=E[me.charCodeAt(Ee)]<<18|E[me.charCodeAt(Ee+1)]<<12|E[me.charCodeAt(Ee+2)]<<6|E[me.charCodeAt(Ee+3)],_e[De++]=he>>16&255,_e[De++]=he>>8&255,_e[De++]=he&255;return Me===2&&(he=E[me.charCodeAt(Ee)]<<2|E[me.charCodeAt(Ee+1)]>>4,_e[De++]=he&255),Me===1&&(he=E[me.charCodeAt(Ee)]<<10|E[me.charCodeAt(Ee+1)]<<4|E[me.charCodeAt(Ee+2)]>>2,_e[De++]=he>>8&255,_e[De++]=he&255),_e}function se(me){return z[me>>18&63]+z[me>>12&63]+z[me>>6&63]+z[me&63]}function ce(me,he,be){for(var Pe,Me=[],_e=he;_e<be;_e+=3)Pe=(me[_e]<<16&16711680)+(me[_e+1]<<8&65280)+(me[_e+2]&255),Me.push(se(Pe));return Me.join("")}function pe(me){for(var he,be=me.length,Pe=be%3,Me=[],_e=16383,De=0,Ce=be-Pe;De<Ce;De+=_e)Me.push(ce(me,De,De+_e>Ce?Ce:De+_e));return Pe===1?(he=me[be-1],Me.push(z[he>>2]+z[he<<4&63]+"==")):Pe===2&&(he=(me[be-2]<<8)+me[be-1],Me.push(z[he>>10]+z[he>>4&63]+z[he<<2&63]+"=")),Me.join("")}},{}],88:[function(a,Te,xe){(function(z,E,oe){typeof Te!="undefined"&&Te.exports?Te.exports=oe():typeof Ie=="function"&&Ie.amd?Ie(E,oe):z[E]=oe()})(this,"bowser",function(){var z=!0;function E(re){function ae(et){var Ge=re.match(et);return Ge&&Ge.length>1&&Ge[1]||""}function se(et){var Ge=re.match(et);return Ge&&Ge.length>1&&Ge[2]||""}var ce=ae(/(ipod|iphone|ipad)/i).toLowerCase(),pe=/like android/i.test(re),me=!pe&&/android/i.test(re),he=/nexus\s*[0-6]\s*/i.test(re),be=!he&&/nexus\s*[0-9]+/i.test(re),Pe=/CrOS/.test(re),Me=/silk/i.test(re),_e=/sailfish/i.test(re),De=/tizen/i.test(re),Ce=/(web|hpw)(o|0)s/i.test(re),Ee=/windows phone/i.test(re),je=/SamsungBrowser/i.test(re),ke=!Ee&&/windows/i.test(re),Be=!ce&&!Me&&/macintosh/i.test(re),Ae=!me&&!_e&&!De&&!Ce&&/linux/i.test(re),ve=se(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ue=ae(/version\/(\d+(\.\d+)?)/i),He=/tablet/i.test(re)&&!/tablet pc/i.test(re),Ye=!He&&/[^-]mobi/i.test(re),ot=/xbox/i.test(re),Fe;/opera/i.test(re)?Fe={name:"Opera",opera:z,version:Ue||ae(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(re)?Fe={name:"Opera",opera:z,version:ae(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ue}:/SamsungBrowser/i.test(re)?Fe={name:"Samsung Internet for Android",samsungBrowser:z,version:Ue||ae(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(re)?Fe={name:"NAVER Whale browser",whale:z,version:ae(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(re)?Fe={name:"MZ Browser",mzbrowser:z,version:ae(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(re)?Fe={name:"Opera Coast",coast:z,version:Ue||ae(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(re)?Fe={name:"Focus",focus:z,version:ae(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(re)?Fe={name:"Yandex Browser",yandexbrowser:z,version:Ue||ae(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(re)?Fe={name:"UC Browser",ucbrowser:z,version:ae(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(re)?Fe={name:"Maxthon",maxthon:z,version:ae(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(re)?Fe={name:"Epiphany",epiphany:z,version:ae(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(re)?Fe={name:"Puffin",puffin:z,version:ae(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(re)?Fe={name:"Sleipnir",sleipnir:z,version:ae(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(re)?Fe={name:"K-Meleon",kMeleon:z,version:ae(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ee?(Fe={name:"Windows Phone",osname:"Windows Phone",windowsphone:z},ve?(Fe.msedge=z,Fe.version=ve):(Fe.msie=z,Fe.version=ae(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(re)?Fe={name:"Internet Explorer",msie:z,version:ae(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Pe?Fe={name:"Chrome",osname:"Chrome OS",chromeos:z,chromeBook:z,chrome:z,version:ae(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(re)?Fe={name:"Microsoft Edge",msedge:z,version:ve}:/vivaldi/i.test(re)?Fe={name:"Vivaldi",vivaldi:z,version:ae(/vivaldi\/(\d+(\.\d+)?)/i)||Ue}:_e?Fe={name:"Sailfish",osname:"Sailfish OS",sailfish:z,version:ae(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(re)?Fe={name:"SeaMonkey",seamonkey:z,version:ae(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(re)?(Fe={name:"Firefox",firefox:z,version:ae(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(re)&&(Fe.firefoxos=z,Fe.osname="Firefox OS")):Me?Fe={name:"Amazon Silk",silk:z,version:ae(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(re)?Fe={name:"PhantomJS",phantom:z,version:ae(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(re)?Fe={name:"SlimerJS",slimer:z,version:ae(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(re)||/rim\stablet/i.test(re)?Fe={name:"BlackBerry",osname:"BlackBerry OS",blackberry:z,version:Ue||ae(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Ce?(Fe={name:"WebOS",osname:"WebOS",webos:z,version:Ue||ae(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(re)&&(Fe.touchpad=z)):/bada/i.test(re)?Fe={name:"Bada",osname:"Bada",bada:z,version:ae(/dolfin\/(\d+(\.\d+)?)/i)}:De?Fe={name:"Tizen",osname:"Tizen",tizen:z,version:ae(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ue}:/qupzilla/i.test(re)?Fe={name:"QupZilla",qupzilla:z,version:ae(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ue}:/chromium/i.test(re)?Fe={name:"Chromium",chromium:z,version:ae(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ue}:/chrome|crios|crmo/i.test(re)?Fe={name:"Chrome",chrome:z,version:ae(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:me?Fe={name:"Android",version:Ue}:/safari|applewebkit/i.test(re)?(Fe={name:"Safari",safari:z},Ue&&(Fe.version=Ue)):ce?(Fe={name:ce=="iphone"?"iPhone":ce=="ipad"?"iPad":"iPod"},Ue&&(Fe.version=Ue)):/googlebot/i.test(re)?Fe={name:"Googlebot",googlebot:z,version:ae(/googlebot\/(\d+(\.\d+))/i)||Ue}:Fe={name:ae(/^(.*)\/(.*) /),version:se(/^(.*)\/(.*) /)},!Fe.msedge&&/(apple)?webkit/i.test(re)?(/(apple)?webkit\/537\.36/i.test(re)?(Fe.name=Fe.name||"Blink",Fe.blink=z):(Fe.name=Fe.name||"Webkit",Fe.webkit=z),!Fe.version&&Ue&&(Fe.version=Ue)):!Fe.opera&&/gecko\//i.test(re)&&(Fe.name=Fe.name||"Gecko",Fe.gecko=z,Fe.version=Fe.version||ae(/gecko\/(\d+(\.\d+)?)/i)),!Fe.windowsphone&&(me||Fe.silk)?(Fe.android=z,Fe.osname="Android"):!Fe.windowsphone&&ce?(Fe[ce]=z,Fe.ios=z,Fe.osname="iOS"):Be?(Fe.mac=z,Fe.osname="macOS"):ot?(Fe.xbox=z,Fe.osname="Xbox"):ke?(Fe.windows=z,Fe.osname="Windows"):Ae&&(Fe.linux=z,Fe.osname="Linux");function Ke(et){switch(et){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var rt="";Fe.windows?rt=Ke(ae(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Fe.windowsphone?rt=ae(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Fe.mac?(rt=ae(/Mac OS X (\d+([_\.\s]\d+)*)/i),rt=rt.replace(/[_\s]/g,".")):ce?(rt=ae(/os (\d+([_\s]\d+)*) like mac os x/i),rt=rt.replace(/[_\s]/g,".")):me?rt=ae(/android[ \/-](\d+(\.\d+)*)/i):Fe.webos?rt=ae(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Fe.blackberry?rt=ae(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Fe.bada?rt=ae(/bada\/(\d+(\.\d+)*)/i):Fe.tizen&&(rt=ae(/tizen[\/\s](\d+(\.\d+)*)/i)),rt&&(Fe.osversion=rt);var nt=!Fe.windows&&rt.split(".")[0];return He||be||ce=="ipad"||me&&(nt==3||nt>=4&&!Ye)||Fe.silk?Fe.tablet=z:(Ye||ce=="iphone"||ce=="ipod"||me||he||Fe.blackberry||Fe.webos||Fe.bada)&&(Fe.mobile=z),Fe.msedge||Fe.msie&&Fe.version>=10||Fe.yandexbrowser&&Fe.version>=15||Fe.vivaldi&&Fe.version>=1||Fe.chrome&&Fe.version>=20||Fe.samsungBrowser&&Fe.version>=4||Fe.whale&&le([Fe.version,"1.0"])===1||Fe.mzbrowser&&le([Fe.version,"6.0"])===1||Fe.focus&&le([Fe.version,"1.0"])===1||Fe.firefox&&Fe.version>=20||Fe.safari&&Fe.version>=6||Fe.opera&&Fe.version>=10||Fe.ios&&Fe.osversion&&Fe.osversion.split(".")[0]>=6||Fe.blackberry&&Fe.version>=10.1||Fe.chromium&&Fe.version>=20?Fe.a=z:Fe.msie&&Fe.version<10||Fe.chrome&&Fe.version<20||Fe.firefox&&Fe.version<20||Fe.safari&&Fe.version<6||Fe.opera&&Fe.version<10||Fe.ios&&Fe.osversion&&Fe.osversion.split(".")[0]<6||Fe.chromium&&Fe.version<20?Fe.c=z:Fe.x=z,Fe}var oe=E(typeof navigator!="undefined"&&navigator.userAgent||"");oe.test=function(re){for(var ae=0;ae<re.length;++ae){var se=re[ae];if(typeof se=="string"&&se in oe)return!0}return!1};function ie(re){return re.split(".").length}function ee(re,ae){var se=[],ce;if(Array.prototype.map)return Array.prototype.map.call(re,ae);for(ce=0;ce<re.length;ce++)se.push(ae(re[ce]));return se}function le(re){for(var ae=Math.max(ie(re[0]),ie(re[1])),se=ee(re,function(ce){var pe=ae-ie(ce);return ce=ce+new Array(pe+1).join(".0"),ee(ce.split("."),function(me){return new Array(20-me.length).join("0")+me}).reverse()});--ae>=0;){if(se[0][ae]>se[1][ae])return 1;if(se[0][ae]===se[1][ae]){if(ae===0)return 0}else return-1}}function x(re,ae,se){var ce=oe;typeof ae=="string"&&(se=ae,ae=void 0),ae===void 0&&(ae=!1),se&&(ce=E(se));var pe=""+ce.version;for(var me in re)if(re.hasOwnProperty(me)&&ce[me]){if(typeof re[me]!="string")throw new Error("Browser version in the minVersion map should be a string: "+me+": "+String(re));return le([pe,re[me]])<0}return ae}function ne(re,ae,se){return!x(re,ae,se)}return oe.isUnsupportedBrowser=x,oe.compareVersions=le,oe.check=ne,oe._detect=E,oe.detect=E,oe})},{}],89:[function(a,Te,xe){},{}],90:[function(a,Te,xe){(function(z){(function(){"use strict";var E=a("base64-js"),oe=a("ieee754");xe.Buffer=x,xe.SlowBuffer=Pe,xe.INSPECT_MAX_BYTES=50;var ie=2147483647;xe.kMaxLength=ie,x.TYPED_ARRAY_SUPPORT=ee(),!x.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 ee(){try{var ye=new Uint8Array(1);return ye.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ye.foo()===42}catch(Oe){return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function le(ye){if(ye>ie)throw new RangeError('The value "'+ye+'" is invalid for option "size"');var Oe=new Uint8Array(ye);return Oe.__proto__=x.prototype,Oe}function x(ye,Oe,$e){if(typeof ye=="number"){if(typeof Oe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return se(ye)}return ne(ye,Oe,$e)}typeof Symbol!="undefined"&&Symbol.species!=null&&x[Symbol.species]===x&&Object.defineProperty(x,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),x.poolSize=8192;function ne(ye,Oe,$e){if(typeof ye=="string")return ce(ye,Oe);if(ArrayBuffer.isView(ye))return pe(ye);if(ye==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ye);if(We(ye,ArrayBuffer)||ye&&We(ye.buffer,ArrayBuffer))return me(ye,Oe,$e);if(typeof ye=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ze=ye.valueOf&&ye.valueOf();if(Ze!=null&&Ze!==ye)return x.from(Ze,Oe,$e);var Je=he(ye);if(Je)return Je;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ye[Symbol.toPrimitive]=="function")return x.from(ye[Symbol.toPrimitive]("string"),Oe,$e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ye)}x.from=function(ye,Oe,$e){return ne(ye,Oe,$e)},x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array;function re(ye){if(typeof ye!="number")throw new TypeError('"size" argument must be of type number');if(ye<0)throw new RangeError('The value "'+ye+'" is invalid for option "size"')}function ae(ye,Oe,$e){return re(ye),ye<=0?le(ye):Oe!==void 0?typeof $e=="string"?le(ye).fill(Oe,$e):le(ye).fill(Oe):le(ye)}x.alloc=function(ye,Oe,$e){return ae(ye,Oe,$e)};function se(ye){return re(ye),le(ye<0?0:be(ye)|0)}x.allocUnsafe=function(ye){return se(ye)},x.allocUnsafeSlow=function(ye){return se(ye)};function ce(ye,Oe){if((typeof Oe!="string"||Oe==="")&&(Oe="utf8"),!x.isEncoding(Oe))throw new TypeError("Unknown encoding: "+Oe);var $e=Me(ye,Oe)|0,Ze=le($e),Je=Ze.write(ye,Oe);return Je!==$e&&(Ze=Ze.slice(0,Je)),Ze}function pe(ye){for(var Oe=ye.length<0?0:be(ye.length)|0,$e=le(Oe),Ze=0;Ze<Oe;Ze+=1)$e[Ze]=ye[Ze]&255;return $e}function me(ye,Oe,$e){if(Oe<0||ye.byteLength<Oe)throw new RangeError('"offset" is outside of buffer bounds');if(ye.byteLength<Oe+($e||0))throw new RangeError('"length" is outside of buffer bounds');var Ze;return Oe===void 0&&$e===void 0?Ze=new Uint8Array(ye):$e===void 0?Ze=new Uint8Array(ye,Oe):Ze=new Uint8Array(ye,Oe,$e),Ze.__proto__=x.prototype,Ze}function he(ye){if(x.isBuffer(ye)){var Oe=be(ye.length)|0,$e=le(Oe);return $e.length===0||ye.copy($e,0,0,Oe),$e}if(ye.length!==void 0)return typeof ye.length!="number"||we(ye.length)?le(0):pe(ye);if(ye.type==="Buffer"&&Array.isArray(ye.data))return pe(ye.data)}function be(ye){if(ye>=ie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ie.toString(16)+" bytes");return ye|0}function Pe(ye){return+ye!=ye&&(ye=0),x.alloc(+ye)}x.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==x.prototype},x.compare=function(Oe,$e){if(We(Oe,Uint8Array)&&(Oe=x.from(Oe,Oe.offset,Oe.byteLength)),We($e,Uint8Array)&&($e=x.from($e,$e.offset,$e.byteLength)),!x.isBuffer(Oe)||!x.isBuffer($e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===$e)return 0;for(var Ze=Oe.length,Je=$e.length,st=0,lt=Math.min(Ze,Je);st<lt;++st)if(Oe[st]!==$e[st]){Ze=Oe[st],Je=$e[st];break}return Ze<Je?-1:Je<Ze?1:0},x.isEncoding=function(Oe){switch(String(Oe).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}},x.concat=function(Oe,$e){if(!Array.isArray(Oe))throw new TypeError('"list" argument must be an Array of Buffers');if(Oe.length===0)return x.alloc(0);var Ze;if($e===void 0)for($e=0,Ze=0;Ze<Oe.length;++Ze)$e+=Oe[Ze].length;var Je=x.allocUnsafe($e),st=0;for(Ze=0;Ze<Oe.length;++Ze){var lt=Oe[Ze];if(We(lt,Uint8Array)&&(lt=x.from(lt)),!x.isBuffer(lt))throw new TypeError('"list" argument must be an Array of Buffers');lt.copy(Je,st),st+=lt.length}return Je};function Me(ye,Oe){if(x.isBuffer(ye))return ye.length;if(ArrayBuffer.isView(ye)||We(ye,ArrayBuffer))return ye.byteLength;if(typeof ye!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ye);var $e=ye.length,Ze=arguments.length>2&&arguments[2]===!0;if(!Ze&&$e===0)return 0;for(var Je=!1;;)switch(Oe){case"ascii":case"latin1":case"binary":return $e;case"utf8":case"utf-8":return Le(ye).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e*2;case"hex":return $e>>>1;case"base64":return de(ye).length;default:if(Je)return Ze?-1:Le(ye).length;Oe=(""+Oe).toLowerCase(),Je=!0}}x.byteLength=Me;function _e(ye,Oe,$e){var Ze=!1;if((Oe===void 0||Oe<0)&&(Oe=0),Oe>this.length||(($e===void 0||$e>this.length)&&($e=this.length),$e<=0)||($e>>>=0,Oe>>>=0,$e<=Oe))return"";for(ye||(ye="utf8");;)switch(ye){case"hex":return nt(this,Oe,$e);case"utf8":case"utf-8":return Ye(this,Oe,$e);case"ascii":return Ke(this,Oe,$e);case"latin1":case"binary":return rt(this,Oe,$e);case"base64":return He(this,Oe,$e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,Oe,$e);default:if(Ze)throw new TypeError("Unknown encoding: "+ye);ye=(ye+"").toLowerCase(),Ze=!0}}x.prototype._isBuffer=!0;function De(ye,Oe,$e){var Ze=ye[Oe];ye[Oe]=ye[$e],ye[$e]=Ze}x.prototype.swap16=function(){var Oe=this.length;if(Oe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $e=0;$e<Oe;$e+=2)De(this,$e,$e+1);return this},x.prototype.swap32=function(){var Oe=this.length;if(Oe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $e=0;$e<Oe;$e+=4)De(this,$e,$e+3),De(this,$e+1,$e+2);return this},x.prototype.swap64=function(){var Oe=this.length;if(Oe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $e=0;$e<Oe;$e+=8)De(this,$e,$e+7),De(this,$e+1,$e+6),De(this,$e+2,$e+5),De(this,$e+3,$e+4);return this},x.prototype.toString=function(){var Oe=this.length;return Oe===0?"":arguments.length===0?Ye(this,0,Oe):_e.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(Oe){if(!x.isBuffer(Oe))throw new TypeError("Argument must be a Buffer");return this===Oe?!0:x.compare(this,Oe)===0},x.prototype.inspect=function(){var Oe="",$e=xe.INSPECT_MAX_BYTES;return Oe=this.toString("hex",0,$e).replace(/(.{2})/g,"$1 ").trim(),this.length>$e&&(Oe+=" ... "),"<Buffer "+Oe+">"},x.prototype.compare=function(Oe,$e,Ze,Je,st){if(We(Oe,Uint8Array)&&(Oe=x.from(Oe,Oe.offset,Oe.byteLength)),!x.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Oe);if($e===void 0&&($e=0),Ze===void 0&&(Ze=Oe?Oe.length:0),Je===void 0&&(Je=0),st===void 0&&(st=this.length),$e<0||Ze>Oe.length||Je<0||st>this.length)throw new RangeError("out of range index");if(Je>=st&&$e>=Ze)return 0;if(Je>=st)return-1;if($e>=Ze)return 1;if($e>>>=0,Ze>>>=0,Je>>>=0,st>>>=0,this===Oe)return 0;for(var lt=st-Je,ft=Ze-$e,Tt=Math.min(lt,ft),St=this.slice(Je,st),Ot=Oe.slice($e,Ze),yt=0;yt<Tt;++yt)if(St[yt]!==Ot[yt]){lt=St[yt],ft=Ot[yt];break}return lt<ft?-1:ft<lt?1:0};function Ce(ye,Oe,$e,Ze,Je){if(ye.length===0)return-1;if(typeof $e=="string"?(Ze=$e,$e=0):$e>2147483647?$e=2147483647:$e<-2147483648&&($e=-2147483648),$e=+$e,we($e)&&($e=Je?0:ye.length-1),$e<0&&($e=ye.length+$e),$e>=ye.length){if(Je)return-1;$e=ye.length-1}else if($e<0)if(Je)$e=0;else return-1;if(typeof Oe=="string"&&(Oe=x.from(Oe,Ze)),x.isBuffer(Oe))return Oe.length===0?-1:Ee(ye,Oe,$e,Ze,Je);if(typeof Oe=="number")return Oe=Oe&255,typeof Uint8Array.prototype.indexOf=="function"?Je?Uint8Array.prototype.indexOf.call(ye,Oe,$e):Uint8Array.prototype.lastIndexOf.call(ye,Oe,$e):Ee(ye,[Oe],$e,Ze,Je);throw new TypeError("val must be string, number or Buffer")}function Ee(ye,Oe,$e,Ze,Je){var st=1,lt=ye.length,ft=Oe.length;if(Ze!==void 0&&(Ze=String(Ze).toLowerCase(),Ze==="ucs2"||Ze==="ucs-2"||Ze==="utf16le"||Ze==="utf-16le")){if(ye.length<2||Oe.length<2)return-1;st=2,lt/=2,ft/=2,$e/=2}function Tt(Et,xt){return st===1?Et[xt]:Et.readUInt16BE(xt*st)}var St;if(Je){var Ot=-1;for(St=$e;St<lt;St++)if(Tt(ye,St)===Tt(Oe,Ot===-1?0:St-Ot)){if(Ot===-1&&(Ot=St),St-Ot+1===ft)return Ot*st}else Ot!==-1&&(St-=St-Ot),Ot=-1}else for($e+ft>lt&&($e=lt-ft),St=$e;St>=0;St--){for(var yt=!0,Dt=0;Dt<ft;Dt++)if(Tt(ye,St+Dt)!==Tt(Oe,Dt)){yt=!1;break}if(yt)return St}return-1}x.prototype.includes=function(Oe,$e,Ze){return this.indexOf(Oe,$e,Ze)!==-1},x.prototype.indexOf=function(Oe,$e,Ze){return Ce(this,Oe,$e,Ze,!0)},x.prototype.lastIndexOf=function(Oe,$e,Ze){return Ce(this,Oe,$e,Ze,!1)};function je(ye,Oe,$e,Ze){$e=Number($e)||0;var Je=ye.length-$e;Ze?(Ze=Number(Ze),Ze>Je&&(Ze=Je)):Ze=Je;var st=Oe.length;Ze>st/2&&(Ze=st/2);for(var lt=0;lt<Ze;++lt){var ft=parseInt(Oe.substr(lt*2,2),16);if(we(ft))return lt;ye[$e+lt]=ft}return lt}function ke(ye,Oe,$e,Ze){return Re(Le(Oe,ye.length-$e),ye,$e,Ze)}function Be(ye,Oe,$e,Ze){return Re(Ne(Oe),ye,$e,Ze)}function Ae(ye,Oe,$e,Ze){return Be(ye,Oe,$e,Ze)}function ve(ye,Oe,$e,Ze){return Re(de(Oe),ye,$e,Ze)}function Ue(ye,Oe,$e,Ze){return Re(te(Oe,ye.length-$e),ye,$e,Ze)}x.prototype.write=function(Oe,$e,Ze,Je){if($e===void 0)Je="utf8",Ze=this.length,$e=0;else if(Ze===void 0&&typeof $e=="string")Je=$e,Ze=this.length,$e=0;else if(isFinite($e))$e=$e>>>0,isFinite(Ze)?(Ze=Ze>>>0,Je===void 0&&(Je="utf8")):(Je=Ze,Ze=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var st=this.length-$e;if((Ze===void 0||Ze>st)&&(Ze=st),Oe.length>0&&(Ze<0||$e<0)||$e>this.length)throw new RangeError("Attempt to write outside buffer bounds");Je||(Je="utf8");for(var lt=!1;;)switch(Je){case"hex":return je(this,Oe,$e,Ze);case"utf8":case"utf-8":return ke(this,Oe,$e,Ze);case"ascii":return Be(this,Oe,$e,Ze);case"latin1":case"binary":return Ae(this,Oe,$e,Ze);case"base64":return ve(this,Oe,$e,Ze);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue(this,Oe,$e,Ze);default:if(lt)throw new TypeError("Unknown encoding: "+Je);Je=(""+Je).toLowerCase(),lt=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function He(ye,Oe,$e){return Oe===0&&$e===ye.length?E.fromByteArray(ye):E.fromByteArray(ye.slice(Oe,$e))}function Ye(ye,Oe,$e){$e=Math.min(ye.length,$e);for(var Ze=[],Je=Oe;Je<$e;){var st=ye[Je],lt=null,ft=st>239?4:st>223?3:st>191?2:1;if(Je+ft<=$e){var Tt,St,Ot,yt;switch(ft){case 1:st<128&&(lt=st);break;case 2:Tt=ye[Je+1],(Tt&192)===128&&(yt=(st&31)<<6|Tt&63,yt>127&&(lt=yt));break;case 3:Tt=ye[Je+1],St=ye[Je+2],(Tt&192)===128&&(St&192)===128&&(yt=(st&15)<<12|(Tt&63)<<6|St&63,yt>2047&&(yt<55296||yt>57343)&&(lt=yt));break;case 4:Tt=ye[Je+1],St=ye[Je+2],Ot=ye[Je+3],(Tt&192)===128&&(St&192)===128&&(Ot&192)===128&&(yt=(st&15)<<18|(Tt&63)<<12|(St&63)<<6|Ot&63,yt>65535&&yt<1114112&&(lt=yt))}}lt===null?(lt=65533,ft=1):lt>65535&&(lt-=65536,Ze.push(lt>>>10&1023|55296),lt=56320|lt&1023),Ze.push(lt),Je+=ft}return Fe(Ze)}var ot=4096;function Fe(ye){var Oe=ye.length;if(Oe<=ot)return String.fromCharCode.apply(String,ye);for(var $e="",Ze=0;Ze<Oe;)$e+=String.fromCharCode.apply(String,ye.slice(Ze,Ze+=ot));return $e}function Ke(ye,Oe,$e){var Ze="";$e=Math.min(ye.length,$e);for(var Je=Oe;Je<$e;++Je)Ze+=String.fromCharCode(ye[Je]&127);return Ze}function rt(ye,Oe,$e){var Ze="";$e=Math.min(ye.length,$e);for(var Je=Oe;Je<$e;++Je)Ze+=String.fromCharCode(ye[Je]);return Ze}function nt(ye,Oe,$e){var Ze=ye.length;(!Oe||Oe<0)&&(Oe=0),(!$e||$e<0||$e>Ze)&&($e=Ze);for(var Je="",st=Oe;st<$e;++st)Je+=qe(ye[st]);return Je}function et(ye,Oe,$e){for(var Ze=ye.slice(Oe,$e),Je="",st=0;st<Ze.length;st+=2)Je+=String.fromCharCode(Ze[st]+Ze[st+1]*256);return Je}x.prototype.slice=function(Oe,$e){var Ze=this.length;Oe=~~Oe,$e=$e===void 0?Ze:~~$e,Oe<0?(Oe+=Ze,Oe<0&&(Oe=0)):Oe>Ze&&(Oe=Ze),$e<0?($e+=Ze,$e<0&&($e=0)):$e>Ze&&($e=Ze),$e<Oe&&($e=Oe);var Je=this.subarray(Oe,$e);return Je.__proto__=x.prototype,Je};function Ge(ye,Oe,$e){if(ye%1!==0||ye<0)throw new RangeError("offset is not uint");if(ye+Oe>$e)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(Oe,$e,Ze){Oe=Oe>>>0,$e=$e>>>0,Ze||Ge(Oe,$e,this.length);for(var Je=this[Oe],st=1,lt=0;++lt<$e&&(st*=256);)Je+=this[Oe+lt]*st;return Je},x.prototype.readUIntBE=function(Oe,$e,Ze){Oe=Oe>>>0,$e=$e>>>0,Ze||Ge(Oe,$e,this.length);for(var Je=this[Oe+--$e],st=1;$e>0&&(st*=256);)Je+=this[Oe+--$e]*st;return Je},x.prototype.readUInt8=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,1,this.length),this[Oe]},x.prototype.readUInt16LE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},x.prototype.readUInt16BE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},x.prototype.readUInt32LE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+this[Oe+3]*16777216},x.prototype.readUInt32BE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,4,this.length),this[Oe]*16777216+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},x.prototype.readIntLE=function(Oe,$e,Ze){Oe=Oe>>>0,$e=$e>>>0,Ze||Ge(Oe,$e,this.length);for(var Je=this[Oe],st=1,lt=0;++lt<$e&&(st*=256);)Je+=this[Oe+lt]*st;return st*=128,Je>=st&&(Je-=Math.pow(2,8*$e)),Je},x.prototype.readIntBE=function(Oe,$e,Ze){Oe=Oe>>>0,$e=$e>>>0,Ze||Ge(Oe,$e,this.length);for(var Je=$e,st=1,lt=this[Oe+--Je];Je>0&&(st*=256);)lt+=this[Oe+--Je]*st;return st*=128,lt>=st&&(lt-=Math.pow(2,8*$e)),lt},x.prototype.readInt8=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,1,this.length),this[Oe]&128?(255-this[Oe]+1)*-1:this[Oe]},x.prototype.readInt16LE=function(Oe,$e){Oe=Oe>>>0,$e||Ge(Oe,2,this.length);var Ze=this[Oe]|this[Oe+1]<<8;return Ze&32768?Ze|4294901760:Ze},x.prototype.readInt16BE=function(Oe,$e){Oe=Oe>>>0,$e||Ge(Oe,2,this.length);var Ze=this[Oe+1]|this[Oe]<<8;return Ze&32768?Ze|4294901760:Ze},x.prototype.readInt32LE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},x.prototype.readInt32BE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},x.prototype.readFloatLE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,4,this.length),oe.read(this,Oe,!0,23,4)},x.prototype.readFloatBE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,4,this.length),oe.read(this,Oe,!1,23,4)},x.prototype.readDoubleLE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,8,this.length),oe.read(this,Oe,!0,52,8)},x.prototype.readDoubleBE=function(Oe,$e){return Oe=Oe>>>0,$e||Ge(Oe,8,this.length),oe.read(this,Oe,!1,52,8)};function Xe(ye,Oe,$e,Ze,Je,st){if(!x.isBuffer(ye))throw new TypeError('"buffer" argument must be a Buffer instance');if(Oe>Je||Oe<st)throw new RangeError('"value" argument is out of bounds');if($e+Ze>ye.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(Oe,$e,Ze,Je){if(Oe=+Oe,$e=$e>>>0,Ze=Ze>>>0,!Je){var st=Math.pow(2,8*Ze)-1;Xe(this,Oe,$e,Ze,st,0)}var lt=1,ft=0;for(this[$e]=Oe&255;++ft<Ze&&(lt*=256);)this[$e+ft]=Oe/lt&255;return $e+Ze},x.prototype.writeUIntBE=function(Oe,$e,Ze,Je){if(Oe=+Oe,$e=$e>>>0,Ze=Ze>>>0,!Je){var st=Math.pow(2,8*Ze)-1;Xe(this,Oe,$e,Ze,st,0)}var lt=Ze-1,ft=1;for(this[$e+lt]=Oe&255;--lt>=0&&(ft*=256);)this[$e+lt]=Oe/ft&255;return $e+Ze},x.prototype.writeUInt8=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,1,255,0),this[$e]=Oe&255,$e+1},x.prototype.writeUInt16LE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,2,65535,0),this[$e]=Oe&255,this[$e+1]=Oe>>>8,$e+2},x.prototype.writeUInt16BE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,2,65535,0),this[$e]=Oe>>>8,this[$e+1]=Oe&255,$e+2},x.prototype.writeUInt32LE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,4,4294967295,0),this[$e+3]=Oe>>>24,this[$e+2]=Oe>>>16,this[$e+1]=Oe>>>8,this[$e]=Oe&255,$e+4},x.prototype.writeUInt32BE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,4,4294967295,0),this[$e]=Oe>>>24,this[$e+1]=Oe>>>16,this[$e+2]=Oe>>>8,this[$e+3]=Oe&255,$e+4},x.prototype.writeIntLE=function(Oe,$e,Ze,Je){if(Oe=+Oe,$e=$e>>>0,!Je){var st=Math.pow(2,8*Ze-1);Xe(this,Oe,$e,Ze,st-1,-st)}var lt=0,ft=1,Tt=0;for(this[$e]=Oe&255;++lt<Ze&&(ft*=256);)Oe<0&&Tt===0&&this[$e+lt-1]!==0&&(Tt=1),this[$e+lt]=(Oe/ft>>0)-Tt&255;return $e+Ze},x.prototype.writeIntBE=function(Oe,$e,Ze,Je){if(Oe=+Oe,$e=$e>>>0,!Je){var st=Math.pow(2,8*Ze-1);Xe(this,Oe,$e,Ze,st-1,-st)}var lt=Ze-1,ft=1,Tt=0;for(this[$e+lt]=Oe&255;--lt>=0&&(ft*=256);)Oe<0&&Tt===0&&this[$e+lt+1]!==0&&(Tt=1),this[$e+lt]=(Oe/ft>>0)-Tt&255;return $e+Ze},x.prototype.writeInt8=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[$e]=Oe&255,$e+1},x.prototype.writeInt16LE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,2,32767,-32768),this[$e]=Oe&255,this[$e+1]=Oe>>>8,$e+2},x.prototype.writeInt16BE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,2,32767,-32768),this[$e]=Oe>>>8,this[$e+1]=Oe&255,$e+2},x.prototype.writeInt32LE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,4,2147483647,-2147483648),this[$e]=Oe&255,this[$e+1]=Oe>>>8,this[$e+2]=Oe>>>16,this[$e+3]=Oe>>>24,$e+4},x.prototype.writeInt32BE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Xe(this,Oe,$e,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[$e]=Oe>>>24,this[$e+1]=Oe>>>16,this[$e+2]=Oe>>>8,this[$e+3]=Oe&255,$e+4};function Ve(ye,Oe,$e,Ze,Je,st){if($e+Ze>ye.length)throw new RangeError("Index out of range");if($e<0)throw new RangeError("Index out of range")}function tt(ye,Oe,$e,Ze,Je){return Oe=+Oe,$e=$e>>>0,Je||Ve(ye,Oe,$e,4,34028234663852886e22,-34028234663852886e22),oe.write(ye,Oe,$e,Ze,23,4),$e+4}x.prototype.writeFloatLE=function(Oe,$e,Ze){return tt(this,Oe,$e,!0,Ze)},x.prototype.writeFloatBE=function(Oe,$e,Ze){return tt(this,Oe,$e,!1,Ze)};function Qe(ye,Oe,$e,Ze,Je){return Oe=+Oe,$e=$e>>>0,Je||Ve(ye,Oe,$e,8,17976931348623157e292,-17976931348623157e292),oe.write(ye,Oe,$e,Ze,52,8),$e+8}x.prototype.writeDoubleLE=function(Oe,$e,Ze){return Qe(this,Oe,$e,!0,Ze)},x.prototype.writeDoubleBE=function(Oe,$e,Ze){return Qe(this,Oe,$e,!1,Ze)},x.prototype.copy=function(Oe,$e,Ze,Je){if(!x.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Ze||(Ze=0),!Je&&Je!==0&&(Je=this.length),$e>=Oe.length&&($e=Oe.length),$e||($e=0),Je>0&&Je<Ze&&(Je=Ze),Je===Ze||Oe.length===0||this.length===0)return 0;if($e<0)throw new RangeError("targetStart out of bounds");if(Ze<0||Ze>=this.length)throw new RangeError("Index out of range");if(Je<0)throw new RangeError("sourceEnd out of bounds");Je>this.length&&(Je=this.length),Oe.length-$e<Je-Ze&&(Je=Oe.length-$e+Ze);var st=Je-Ze;if(this===Oe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin($e,Ze,Je);else if(this===Oe&&Ze<$e&&$e<Je)for(var lt=st-1;lt>=0;--lt)Oe[lt+$e]=this[lt+Ze];else Uint8Array.prototype.set.call(Oe,this.subarray(Ze,Je),$e);return st},x.prototype.fill=function(Oe,$e,Ze,Je){if(typeof Oe=="string"){if(typeof $e=="string"?(Je=$e,$e=0,Ze=this.length):typeof Ze=="string"&&(Je=Ze,Ze=this.length),Je!==void 0&&typeof Je!="string")throw new TypeError("encoding must be a string");if(typeof Je=="string"&&!x.isEncoding(Je))throw new TypeError("Unknown encoding: "+Je);if(Oe.length===1){var st=Oe.charCodeAt(0);(Je==="utf8"&&st<128||Je==="latin1")&&(Oe=st)}}else typeof Oe=="number"&&(Oe=Oe&255);if($e<0||this.length<$e||this.length<Ze)throw new RangeError("Out of range index");if(Ze<=$e)return this;$e=$e>>>0,Ze=Ze===void 0?this.length:Ze>>>0,Oe||(Oe=0);var lt;if(typeof Oe=="number")for(lt=$e;lt<Ze;++lt)this[lt]=Oe;else{var ft=x.isBuffer(Oe)?Oe:x.from(Oe,Je),Tt=ft.length;if(Tt===0)throw new TypeError('The value "'+Oe+'" is invalid for argument "value"');for(lt=0;lt<Ze-$e;++lt)this[lt+$e]=ft[lt%Tt]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function at(ye){if(ye=ye.split("=")[0],ye=ye.trim().replace(ct,""),ye.length<2)return"";for(;ye.length%4!==0;)ye=ye+"=";return ye}function qe(ye){return ye<16?"0"+ye.toString(16):ye.toString(16)}function Le(ye,Oe){Oe=Oe||1/0;for(var $e,Ze=ye.length,Je=null,st=[],lt=0;lt<Ze;++lt){if($e=ye.charCodeAt(lt),$e>55295&&$e<57344){if(!Je){if($e>56319){(Oe-=3)>-1&&st.push(239,191,189);continue}else if(lt+1===Ze){(Oe-=3)>-1&&st.push(239,191,189);continue}Je=$e;continue}if($e<56320){(Oe-=3)>-1&&st.push(239,191,189),Je=$e;continue}$e=(Je-55296<<10|$e-56320)+65536}else Je&&(Oe-=3)>-1&&st.push(239,191,189);if(Je=null,$e<128){if((Oe-=1)<0)break;st.push($e)}else if($e<2048){if((Oe-=2)<0)break;st.push($e>>6|192,$e&63|128)}else if($e<65536){if((Oe-=3)<0)break;st.push($e>>12|224,$e>>6&63|128,$e&63|128)}else if($e<1114112){if((Oe-=4)<0)break;st.push($e>>18|240,$e>>12&63|128,$e>>6&63|128,$e&63|128)}else throw new Error("Invalid code point")}return st}function Ne(ye){for(var Oe=[],$e=0;$e<ye.length;++$e)Oe.push(ye.charCodeAt($e)&255);return Oe}function te(ye,Oe){for(var $e,Ze,Je,st=[],lt=0;lt<ye.length&&!((Oe-=2)<0);++lt)$e=ye.charCodeAt(lt),Ze=$e>>8,Je=$e%256,st.push(Je),st.push(Ze);return st}function de(ye){return E.toByteArray(at(ye))}function Re(ye,Oe,$e,Ze){for(var Je=0;Je<Ze&&!(Je+$e>=Oe.length||Je>=ye.length);++Je)Oe[Je+$e]=ye[Je];return Je}function We(ye,Oe){return ye instanceof Oe||ye!=null&&ye.constructor!=null&&ye.constructor.name!=null&&ye.constructor.name===Oe.name}function we(ye){return ye!==ye}}).call(this)}).call(this,a("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(a,Te,xe){Te.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(a,Te,xe){"use strict";var z=a("get-intrinsic"),E=a("./"),oe=E(z("String.prototype.indexOf"));Te.exports=function(ee,le){var x=z(ee,!!le);return typeof x=="function"&&oe(ee,".prototype.")>-1?E(x):x}},{"./":93,"get-intrinsic":348}],93:[function(a,Te,xe){"use strict";var z=a("function-bind"),E=a("get-intrinsic"),oe=E("%Function.prototype.apply%"),ie=E("%Function.prototype.call%"),ee=E("%Reflect.apply%",!0)||z.call(ie,oe),le=E("%Object.getOwnPropertyDescriptor%",!0),x=E("%Object.defineProperty%",!0),ne=E("%Math.max%");if(x)try{x({},"a",{value:1})}catch(ae){x=null}Te.exports=function(se){var ce=ee(z,ie,arguments);if(le&&x){var pe=le(ce,"length");pe.configurable&&x(ce,"length",{value:1+ne(0,se.length-(arguments.length-1))})}return ce};var re=function(){return ee(z,oe,arguments)};x?x(Te.exports,"apply",{value:re}):Te.exports.apply=re},{"function-bind":347,"get-intrinsic":348}],94:[function(a,Te,xe){"use strict";var z=Array.prototype.slice;Te.exports=E;function E(ie,ee){if(!(this instanceof E))return new E(ie,ee);this.src=ie,this._withAccess=ee}E.prototype.withAccess=function(ie){return this._withAccess=ie!==!1,this},E.prototype.pick=function(ie){return Array.isArray(ie)||(ie=z.call(arguments)),ie.length&&(this.keys=ie),this},E.prototype.to=function(ie){if(ie=ie||{},!this.src)return ie;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var le=0;le<ee.length;le++)x=ee[le],ie[x]===void 0&&(ie[x]=this.src[x]);return ie}for(var le=0;le<ee.length;le++){var x=ee[le];if(oe(ie,x)){var ne=this.src.__lookupGetter__(x),re=this.src.__lookupSetter__(x);ne&&ie.__defineGetter__(x,ne),re&&ie.__defineSetter__(x,re),!ne&&!re&&(ie[x]=this.src[x])}}return ie},E.prototype.toCover=function(ie){for(var ee=this.keys||Object.keys(this.src),le=0;le<ee.length;le++){var x=ee[le];delete ie[x];var ne=this.src.__lookupGetter__(x),re=this.src.__lookupSetter__(x);ne&&ie.__defineGetter__(x,ne),re&&ie.__defineSetter__(x,re),!ne&&!re&&(ie[x]=this.src[x])}},E.prototype.override=E.prototype.toCover,E.prototype.and=function(ie){var ee={};return this.to(ee),this.src=ie,this.to(ee),this.src=ee,this};function oe(ie,ee){return ie[ee]===void 0&&ie.__lookupGetter__(ee)===void 0&&ie.__lookupSetter__(ee)===void 0}},{}],95:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-callable"),oe=a("../internals/try-to-string"),ie=z.TypeError;Te.exports=function(ee){if(E(ee))return ee;throw ie(oe(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-constructor"),oe=a("../internals/try-to-string"),ie=z.TypeError;Te.exports=function(ee){if(E(ee))return ee;throw ie(oe(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-callable"),oe=z.String,ie=z.TypeError;Te.exports=function(ee){if(typeof ee=="object"||E(ee))return ee;throw ie("Can't set "+oe(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(a,Te,xe){var z=a("../internals/well-known-symbol"),E=a("../internals/object-create"),oe=a("../internals/object-define-property"),ie=z("unscopables"),ee=Array.prototype;ee[ie]==null&&oe.f(ee,ie,{configurable:!0,value:E(null)}),Te.exports=function(le){ee[ie][le]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(a,Te,xe){"use strict";var z=a("../internals/string-multibyte").charAt;Te.exports=function(E,oe,ie){return oe+(ie?z(E,oe).length:1)}},{"../internals/string-multibyte":239}],100:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/object-is-prototype-of"),oe=z.TypeError;Te.exports=function(ie,ee){if(E(ee,ie))return ie;throw oe("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-object"),oe=z.String,ie=z.TypeError;Te.exports=function(ee){if(E(ee))return ee;throw ie(oe(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(a,Te,xe){Te.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-native"),E=a("../internals/descriptors"),oe=a("../internals/global"),ie=a("../internals/is-callable"),ee=a("../internals/is-object"),le=a("../internals/has-own-property"),x=a("../internals/classof"),ne=a("../internals/try-to-string"),re=a("../internals/create-non-enumerable-property"),ae=a("../internals/redefine"),se=a("../internals/object-define-property").f,ce=a("../internals/object-is-prototype-of"),pe=a("../internals/object-get-prototype-of"),me=a("../internals/object-set-prototype-of"),he=a("../internals/well-known-symbol"),be=a("../internals/uid"),Pe=oe.Int8Array,Me=Pe&&Pe.prototype,_e=oe.Uint8ClampedArray,De=_e&&_e.prototype,Ce=Pe&&pe(Pe),Ee=Me&&pe(Me),je=Object.prototype,ke=oe.TypeError,Be=he("toStringTag"),Ae=be("TYPED_ARRAY_TAG"),ve=be("TYPED_ARRAY_CONSTRUCTOR"),Ue=z&&!!me&&x(oe.opera)!=="Opera",He=!1,Ye,ot,Fe,Ke={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},rt={BigInt64Array:8,BigUint64Array:8},nt=function(ct){if(!ee(ct))return!1;var at=x(ct);return at==="DataView"||le(Ke,at)||le(rt,at)},et=function(Qe){if(!ee(Qe))return!1;var ct=x(Qe);return le(Ke,ct)||le(rt,ct)},Ge=function(Qe){if(et(Qe))return Qe;throw ke("Target is not a typed array")},Xe=function(Qe){if(ie(Qe)&&(!me||ce(Ce,Qe)))return Qe;throw ke(ne(Qe)+" is not a typed array constructor")},Ve=function(Qe,ct,at,qe){if(E){if(at)for(var Le in Ke){var Ne=oe[Le];if(Ne&&le(Ne.prototype,Qe))try{delete Ne.prototype[Qe]}catch(te){try{Ne.prototype[Qe]=ct}catch(de){}}}(!Ee[Qe]||at)&&ae(Ee,Qe,at?ct:Ue&&Me[Qe]||ct,qe)}},tt=function(Qe,ct,at){var qe,Le;if(E){if(me){if(at){for(qe in Ke)if(Le=oe[qe],Le&&le(Le,Qe))try{delete Le[Qe]}catch(Ne){}}if(!Ce[Qe]||at)try{return ae(Ce,Qe,at?ct:Ue&&Ce[Qe]||ct)}catch(Ne){}else return}for(qe in Ke)Le=oe[qe],Le&&(!Le[Qe]||at)&&ae(Le,Qe,ct)}};for(Ye in Ke)ot=oe[Ye],Fe=ot&&ot.prototype,Fe?re(Fe,ve,ot):Ue=!1;for(Ye in rt)ot=oe[Ye],Fe=ot&&ot.prototype,Fe&&re(Fe,ve,ot);if((!Ue||!ie(Ce)||Ce===Function.prototype)&&(Ce=function(){throw ke("Incorrect invocation")},Ue))for(Ye in Ke)oe[Ye]&&me(oe[Ye],Ce);if((!Ue||!Ee||Ee===je)&&(Ee=Ce.prototype,Ue))for(Ye in Ke)oe[Ye]&&me(oe[Ye].prototype,Ee);if(Ue&&pe(De)!==Ee&&me(De,Ee),E&&!le(Ee,Be)){He=!0,se(Ee,Be,{get:function(){return ee(this)?this[Ae]:void 0}});for(Ye in Ke)oe[Ye]&&re(oe[Ye],Ae,Ye)}Te.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ue,TYPED_ARRAY_CONSTRUCTOR:ve,TYPED_ARRAY_TAG:He&&Ae,aTypedArray:Ge,aTypedArrayConstructor:Xe,exportTypedArrayMethod:Ve,exportTypedArrayStaticMethod:tt,isView:nt,isTypedArray:et,TypedArray:Ce,TypedArrayPrototype:Ee}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(a,Te,xe){"use strict";var z=a("../internals/global"),E=a("../internals/function-uncurry-this"),oe=a("../internals/descriptors"),ie=a("../internals/array-buffer-native"),ee=a("../internals/function-name"),le=a("../internals/create-non-enumerable-property"),x=a("../internals/redefine-all"),ne=a("../internals/fails"),re=a("../internals/an-instance"),ae=a("../internals/to-integer-or-infinity"),se=a("../internals/to-length"),ce=a("../internals/to-index"),pe=a("../internals/ieee754"),me=a("../internals/object-get-prototype-of"),he=a("../internals/object-set-prototype-of"),be=a("../internals/object-get-own-property-names").f,Pe=a("../internals/object-define-property").f,Me=a("../internals/array-fill"),_e=a("../internals/array-slice-simple"),De=a("../internals/set-to-string-tag"),Ce=a("../internals/internal-state"),Ee=ee.PROPER,je=ee.CONFIGURABLE,ke=Ce.get,Be=Ce.set,Ae="ArrayBuffer",ve="DataView",Ue="prototype",He="Wrong length",Ye="Wrong index",ot=z[Ae],Fe=ot,Ke=Fe&&Fe[Ue],rt=z[ve],nt=rt&&rt[Ue],et=Object.prototype,Ge=z.Array,Xe=z.RangeError,Ve=E(Me),tt=E([].reverse),Qe=pe.pack,ct=pe.unpack,at=function(lt){return[lt&255]},qe=function(lt){return[lt&255,lt>>8&255]},Le=function(lt){return[lt&255,lt>>8&255,lt>>16&255,lt>>24&255]},Ne=function(lt){return lt[3]<<24|lt[2]<<16|lt[1]<<8|lt[0]},te=function(lt){return Qe(lt,23,4)},de=function(lt){return Qe(lt,52,8)},Re=function(lt,ft){Pe(lt[Ue],ft,{get:function(){return ke(this)[ft]}})},We=function(lt,ft,Tt,St){var Ot=ce(Tt),yt=ke(lt);if(Ot+ft>yt.byteLength)throw Xe(Ye);var Dt=ke(yt.buffer).bytes,Et=Ot+yt.byteOffset,xt=_e(Dt,Et,Et+ft);return St?xt:tt(xt)},we=function(lt,ft,Tt,St,Ot,yt){var Dt=ce(Tt),Et=ke(lt);if(Dt+ft>Et.byteLength)throw Xe(Ye);for(var xt=ke(Et.buffer).bytes,At=Dt+Et.byteOffset,It=St(+Ot),ht=0;ht<ft;ht++)xt[At+ht]=It[yt?ht:ft-ht-1]};if(!ie)Fe=function(ft){re(this,Ke);var Tt=ce(ft);Be(this,{bytes:Ve(Ge(Tt),0),byteLength:Tt}),oe||(this.byteLength=Tt)},Ke=Fe[Ue],rt=function(ft,Tt,St){re(this,nt),re(ft,Ke);var Ot=ke(ft).byteLength,yt=ae(Tt);if(yt<0||yt>Ot)throw Xe("Wrong offset");if(St=St===void 0?Ot-yt:se(St),yt+St>Ot)throw Xe(He);Be(this,{buffer:ft,byteLength:St,byteOffset:yt}),oe||(this.buffer=ft,this.byteLength=St,this.byteOffset=yt)},nt=rt[Ue],oe&&(Re(Fe,"byteLength"),Re(rt,"buffer"),Re(rt,"byteLength"),Re(rt,"byteOffset")),x(nt,{getInt8:function(ft){return We(this,1,ft)[0]<<24>>24},getUint8:function(ft){return We(this,1,ft)[0]},getInt16:function(ft){var Tt=We(this,2,ft,arguments.length>1?arguments[1]:void 0);return(Tt[1]<<8|Tt[0])<<16>>16},getUint16:function(ft){var Tt=We(this,2,ft,arguments.length>1?arguments[1]:void 0);return Tt[1]<<8|Tt[0]},getInt32:function(ft){return Ne(We(this,4,ft,arguments.length>1?arguments[1]:void 0))},getUint32:function(ft){return Ne(We(this,4,ft,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ft){return ct(We(this,4,ft,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ft){return ct(We(this,8,ft,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ft,Tt){we(this,1,ft,at,Tt)},setUint8:function(ft,Tt){we(this,1,ft,at,Tt)},setInt16:function(ft,Tt){we(this,2,ft,qe,Tt,arguments.length>2?arguments[2]:void 0)},setUint16:function(ft,Tt){we(this,2,ft,qe,Tt,arguments.length>2?arguments[2]:void 0)},setInt32:function(ft,Tt){we(this,4,ft,Le,Tt,arguments.length>2?arguments[2]:void 0)},setUint32:function(ft,Tt){we(this,4,ft,Le,Tt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ft,Tt){we(this,4,ft,te,Tt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ft,Tt){we(this,8,ft,de,Tt,arguments.length>2?arguments[2]:void 0)}});else{var ye=Ee&&ot.name!==Ae;if(!ne(function(){ot(1)})||!ne(function(){new ot(-1)})||ne(function(){return new ot,new ot(1.5),new ot(NaN),ye&&!je})){Fe=function(ft){return re(this,Ke),new ot(ce(ft))},Fe[Ue]=Ke;for(var Oe=be(ot),$e=0,Ze;Oe.length>$e;)(Ze=Oe[$e++])in Fe||le(Fe,Ze,ot[Ze]);Ke.constructor=Fe}else ye&&je&&le(ot,"name",Ae);he&&me(nt)!==et&&he(nt,et);var Je=new rt(new Fe(2)),st=E(nt.setInt8);Je.setInt8(0,2147483648),Je.setInt8(1,2147483649),(Je.getInt8(0)||!Je.getInt8(1))&&x(nt,{setInt8:function(ft,Tt){st(this,ft,Tt<<24>>24)},setUint8:function(ft,Tt){st(this,ft,Tt<<24>>24)}},{unsafe:!0})}De(Fe,Ae),De(rt,ve),Te.exports={ArrayBuffer:Fe,DataView:rt}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(a,Te,xe){"use strict";var z=a("../internals/to-object"),E=a("../internals/to-absolute-index"),oe=a("../internals/length-of-array-like"),ie=Math.min;Te.exports=[].copyWithin||function(le,x){var ne=z(this),re=oe(ne),ae=E(le,re),se=E(x,re),ce=arguments.length>2?arguments[2]:void 0,pe=ie((ce===void 0?re:E(ce,re))-se,re-ae),me=1;for(se<ae&&ae<se+pe&&(me=-1,se+=pe-1,ae+=pe-1);pe-- >0;)se in ne?ne[ae]=ne[se]:delete ne[ae],ae+=me,se+=me;return ne}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(a,Te,xe){"use strict";var z=a("../internals/to-object"),E=a("../internals/to-absolute-index"),oe=a("../internals/length-of-array-like");Te.exports=function(ee){for(var le=z(this),x=oe(le),ne=arguments.length,re=E(ne>1?arguments[1]:void 0,x),ae=ne>2?arguments[2]:void 0,se=ae===void 0?x:E(ae,x);se>re;)le[re++]=ee;return le}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(a,Te,xe){"use strict";var z=a("../internals/array-iteration").forEach,E=a("../internals/array-method-is-strict"),oe=E("forEach");Te.exports=oe?[].forEach:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(a,Te,xe){var z=a("../internals/length-of-array-like");Te.exports=function(E,oe){for(var ie=0,ee=z(oe),le=new E(ee);ee>ie;)le[ie]=oe[ie++];return le}},{"../internals/length-of-array-like":188}],109:[function(a,Te,xe){"use strict";var z=a("../internals/global"),E=a("../internals/function-bind-context"),oe=a("../internals/function-call"),ie=a("../internals/to-object"),ee=a("../internals/call-with-safe-iteration-closing"),le=a("../internals/is-array-iterator-method"),x=a("../internals/is-constructor"),ne=a("../internals/length-of-array-like"),re=a("../internals/create-property"),ae=a("../internals/get-iterator"),se=a("../internals/get-iterator-method"),ce=z.Array;Te.exports=function(me){var he=ie(me),be=x(this),Pe=arguments.length,Me=Pe>1?arguments[1]:void 0,_e=Me!==void 0;_e&&(Me=E(Me,Pe>2?arguments[2]:void 0));var De=se(he),Ce=0,Ee,je,ke,Be,Ae,ve;if(De&&!(this==ce&&le(De)))for(Be=ae(he,De),Ae=Be.next,je=be?new this:[];!(ke=oe(Ae,Be)).done;Ce++)ve=_e?ee(Be,Me,[ke.value,Ce],!0):ke.value,re(je,Ce,ve);else for(Ee=ne(he),je=be?new this(Ee):ce(Ee);Ee>Ce;Ce++)ve=_e?Me(he[Ce],Ce):he[Ce],re(je,Ce,ve);return je.length=Ce,je}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(a,Te,xe){var z=a("../internals/to-indexed-object"),E=a("../internals/to-absolute-index"),oe=a("../internals/length-of-array-like"),ie=function(ee){return function(le,x,ne){var re=z(le),ae=oe(re),se=E(ne,ae),ce;if(ee&&x!=x){for(;ae>se;)if(ce=re[se++],ce!=ce)return!0}else for(;ae>se;se++)if((ee||se in re)&&re[se]===x)return ee||se||0;return!ee&&-1}};Te.exports={includes:ie(!0),indexOf:ie(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(a,Te,xe){var z=a("../internals/function-bind-context"),E=a("../internals/function-uncurry-this"),oe=a("../internals/indexed-object"),ie=a("../internals/to-object"),ee=a("../internals/length-of-array-like"),le=a("../internals/array-species-create"),x=E([].push),ne=function(re){var ae=re==1,se=re==2,ce=re==3,pe=re==4,me=re==6,he=re==7,be=re==5||me;return function(Pe,Me,_e,De){for(var Ce=ie(Pe),Ee=oe(Ce),je=z(Me,_e),ke=ee(Ee),Be=0,Ae=De||le,ve=ae?Ae(Pe,ke):se||he?Ae(Pe,0):void 0,Ue,He;ke>Be;Be++)if((be||Be in Ee)&&(Ue=Ee[Be],He=je(Ue,Be,Ce),re))if(ae)ve[Be]=He;else if(He)switch(re){case 3:return!0;case 5:return Ue;case 6:return Be;case 2:x(ve,Ue)}else switch(re){case 4:return!1;case 7:x(ve,Ue)}return me?-1:ce||pe?pe:ve}};Te.exports={forEach:ne(0),map:ne(1),filter:ne(2),some:ne(3),every:ne(4),find:ne(5),findIndex:ne(6),filterReject:ne(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(a,Te,xe){"use strict";var z=a("../internals/function-apply"),E=a("../internals/to-indexed-object"),oe=a("../internals/to-integer-or-infinity"),ie=a("../internals/length-of-array-like"),ee=a("../internals/array-method-is-strict"),le=Math.min,x=[].lastIndexOf,ne=!!x&&1/[1].lastIndexOf(1,-0)<0,re=ee("lastIndexOf"),ae=ne||!re;Te.exports=ae?function(ce){if(ne)return z(x,this,arguments)||0;var pe=E(this),me=ie(pe),he=me-1;for(arguments.length>1&&(he=le(he,oe(arguments[1]))),he<0&&(he=me+he);he>=0;he--)if(he in pe&&pe[he]===ce)return he||0;return-1}:x},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(a,Te,xe){var z=a("../internals/fails"),E=a("../internals/well-known-symbol"),oe=a("../internals/engine-v8-version"),ie=E("species");Te.exports=function(ee){return oe>=51||!z(function(){var le=[],x=le.constructor={};return x[ie]=function(){return{foo:1}},le[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(a,Te,xe){"use strict";var z=a("../internals/fails");Te.exports=function(E,oe){var ie=[][E];return!!ie&&z(function(){ie.call(null,oe||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/a-callable"),oe=a("../internals/to-object"),ie=a("../internals/indexed-object"),ee=a("../internals/length-of-array-like"),le=z.TypeError,x=function(ne){return function(re,ae,se,ce){E(ae);var pe=oe(re),me=ie(pe),he=ee(pe),be=ne?he-1:0,Pe=ne?-1:1;if(se<2)for(;;){if(be in me){ce=me[be],be+=Pe;break}if(be+=Pe,ne?be<0:he<=be)throw le("Reduce of empty array with no initial value")}for(;ne?be>=0:he>be;be+=Pe)be in me&&(ce=ae(ce,me[be],be,pe));return ce}};Te.exports={left:x(!1),right:x(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/to-absolute-index"),oe=a("../internals/length-of-array-like"),ie=a("../internals/create-property"),ee=z.Array,le=Math.max;Te.exports=function(x,ne,re){for(var ae=oe(x),se=E(ne,ae),ce=E(re===void 0?ae:re,ae),pe=ee(le(ce-se,0)),me=0;se<ce;se++,me++)ie(pe,me,x[se]);return pe.length=me,pe}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(a,Te,xe){var z=a("../internals/function-uncurry-this");Te.exports=z([].slice)},{"../internals/function-uncurry-this":157}],118:[function(a,Te,xe){var z=a("../internals/array-slice-simple"),E=Math.floor,oe=function(le,x){var ne=le.length,re=E(ne/2);return ne<8?ie(le,x):ee(le,oe(z(le,0,re),x),oe(z(le,re),x),x)},ie=function(le,x){for(var ne=le.length,re=1,ae,se;re<ne;){for(se=re,ae=le[re];se&&x(le[se-1],ae)>0;)le[se]=le[--se];se!==re++&&(le[se]=ae)}return le},ee=function(le,x,ne,re){for(var ae=x.length,se=ne.length,ce=0,pe=0;ce<ae||pe<se;)le[ce+pe]=ce<ae&&pe<se?re(x[ce],ne[pe])<=0?x[ce++]:ne[pe++]:ce<ae?x[ce++]:ne[pe++];return le};Te.exports=oe},{"../internals/array-slice-simple":116}],119:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-array"),oe=a("../internals/is-constructor"),ie=a("../internals/is-object"),ee=a("../internals/well-known-symbol"),le=ee("species"),x=z.Array;Te.exports=function(ne){var re;return E(ne)&&(re=ne.constructor,oe(re)&&(re===x||E(re.prototype))?re=void 0:ie(re)&&(re=re[le],re===null&&(re=void 0))),re===void 0?x:re}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(a,Te,xe){var z=a("../internals/array-species-constructor");Te.exports=function(E,oe){return new(z(E))(oe===0?0:oe)}},{"../internals/array-species-constructor":119}],121:[function(a,Te,xe){var z=a("../internals/an-object"),E=a("../internals/iterator-close");Te.exports=function(oe,ie,ee,le){try{return le?ie(z(ee)[0],ee[1]):ie(ee)}catch(x){E(oe,"throw",x)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(a,Te,xe){var z=a("../internals/well-known-symbol"),E=z("iterator"),oe=!1;try{var ie=0,ee={next:function(){return{done:!!ie++}},return:function(){oe=!0}};ee[E]=function(){return this},Array.from(ee,function(){throw 2})}catch(le){}Te.exports=function(le,x){if(!x&&!oe)return!1;var ne=!1;try{var re={};re[E]=function(){return{next:function(){return{done:ne=!0}}}},le(re)}catch(ae){}return ne}},{"../internals/well-known-symbol":268}],123:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=z({}.toString),oe=z("".slice);Te.exports=function(ie){return oe(E(ie),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/to-string-tag-support"),oe=a("../internals/is-callable"),ie=a("../internals/classof-raw"),ee=a("../internals/well-known-symbol"),le=ee("toStringTag"),x=z.Object,ne=ie(function(){return arguments}())=="Arguments",re=function(ae,se){try{return ae[se]}catch(ce){}};Te.exports=E?ie:function(ae){var se,ce,pe;return ae===void 0?"Undefined":ae===null?"Null":typeof(ce=re(se=x(ae),le))=="string"?ce:ne?ie(se):(pe=ie(se))=="Object"&&oe(se.callee)?"Arguments":pe}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(a,Te,xe){var z=a("../internals/has-own-property"),E=a("../internals/own-keys"),oe=a("../internals/object-get-own-property-descriptor"),ie=a("../internals/object-define-property");Te.exports=function(ee,le,x){for(var ne=E(le),re=ie.f,ae=oe.f,se=0;se<ne.length;se++){var ce=ne[se];!z(ee,ce)&&!(x&&z(x,ce))&&re(ee,ce,ae(le,ce))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(a,Te,xe){var z=a("../internals/well-known-symbol"),E=z("match");Te.exports=function(oe){var ie=/./;try{"/./"[oe](ie)}catch(ee){try{return ie[E]=!1,"/./"[oe](ie)}catch(le){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(a,Te,xe){var z=a("../internals/fails");Te.exports=!z(function(){function E(){}return E.prototype.constructor=null,Object.getPrototypeOf(new E)!==E.prototype})},{"../internals/fails":150}],128:[function(a,Te,xe){"use strict";var z=a("../internals/iterators-core").IteratorPrototype,E=a("../internals/object-create"),oe=a("../internals/create-property-descriptor"),ie=a("../internals/set-to-string-tag"),ee=a("../internals/iterators"),le=function(){return this};Te.exports=function(x,ne,re,ae){var se=ne+" Iterator";return x.prototype=E(z,{next:oe(+!ae,re)}),ie(x,se,!1,!0),ee[se]=le,x}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(a,Te,xe){var z=a("../internals/descriptors"),E=a("../internals/object-define-property"),oe=a("../internals/create-property-descriptor");Te.exports=z?function(ie,ee,le){return E.f(ie,ee,oe(1,le))}:function(ie,ee,le){return ie[ee]=le,ie}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(a,Te,xe){Te.exports=function(z,E){return{enumerable:!(z&1),configurable:!(z&2),writable:!(z&4),value:E}}},{}],131:[function(a,Te,xe){"use strict";var z=a("../internals/to-property-key"),E=a("../internals/object-define-property"),oe=a("../internals/create-property-descriptor");Te.exports=function(ie,ee,le){var x=z(ee);x in ie?E.f(ie,x,oe(0,le)):ie[x]=le}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/function-call"),oe=a("../internals/is-pure"),ie=a("../internals/function-name"),ee=a("../internals/is-callable"),le=a("../internals/create-iterator-constructor"),x=a("../internals/object-get-prototype-of"),ne=a("../internals/object-set-prototype-of"),re=a("../internals/set-to-string-tag"),ae=a("../internals/create-non-enumerable-property"),se=a("../internals/redefine"),ce=a("../internals/well-known-symbol"),pe=a("../internals/iterators"),me=a("../internals/iterators-core"),he=ie.PROPER,be=ie.CONFIGURABLE,Pe=me.IteratorPrototype,Me=me.BUGGY_SAFARI_ITERATORS,_e=ce("iterator"),De="keys",Ce="values",Ee="entries",je=function(){return this};Te.exports=function(ke,Be,Ae,ve,Ue,He,Ye){le(Ae,Be,ve);var ot=function(Qe){if(Qe===Ue&&et)return et;if(!Me&&Qe in rt)return rt[Qe];switch(Qe){case De:return function(){return new Ae(this,Qe)};case Ce:return function(){return new Ae(this,Qe)};case Ee:return function(){return new Ae(this,Qe)}}return function(){return new Ae(this)}},Fe=Be+" Iterator",Ke=!1,rt=ke.prototype,nt=rt[_e]||rt["@@iterator"]||Ue&&rt[Ue],et=!Me&&nt||ot(Ue),Ge=Be=="Array"&&rt.entries||nt,Xe,Ve,tt;if(Ge&&(Xe=x(Ge.call(new ke)),Xe!==Object.prototype&&Xe.next&&(!oe&&x(Xe)!==Pe&&(ne?ne(Xe,Pe):ee(Xe[_e])||se(Xe,_e,je)),re(Xe,Fe,!0,!0),oe&&(pe[Fe]=je))),he&&Ue==Ce&&nt&&nt.name!==Ce&&(!oe&&be?ae(rt,"name",Ce):(Ke=!0,et=function(){return E(nt,this)})),Ue)if(Ve={values:ot(Ce),keys:He?et:ot(De),entries:ot(Ee)},Ye)for(tt in Ve)(Me||Ke||!(tt in rt))&&se(rt,tt,Ve[tt]);else z({target:Be,proto:!0,forced:Me||Ke},Ve);return(!oe||Ye)&&rt[_e]!==et&&se(rt,_e,et,{name:Ue}),pe[Be]=et,Ve}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(a,Te,xe){var z=a("../internals/path"),E=a("../internals/has-own-property"),oe=a("../internals/well-known-symbol-wrapped"),ie=a("../internals/object-define-property").f;Te.exports=function(ee){var le=z.Symbol||(z.Symbol={});E(le,ee)||ie(le,ee,{value:oe.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(a,Te,xe){var z=a("../internals/fails");Te.exports=!z(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-object"),oe=z.document,ie=E(oe)&&E(oe.createElement);Te.exports=function(ee){return ie?oe.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(a,Te,xe){Te.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(a,Te,xe){var z=a("../internals/document-create-element"),E=z("span").classList,oe=E&&E.constructor&&E.constructor.prototype;Te.exports=oe===Object.prototype?void 0:oe},{"../internals/document-create-element":135}],138:[function(a,Te,xe){var z=a("../internals/engine-user-agent"),E=z.match(/firefox\/(\d+)/i);Te.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],139:[function(a,Te,xe){Te.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(a,Te,xe){var z=a("../internals/engine-user-agent");Te.exports=/MSIE|Trident/.test(z)},{"../internals/engine-user-agent":145}],141:[function(a,Te,xe){var z=a("../internals/engine-user-agent"),E=a("../internals/global");Te.exports=/ipad|iphone|ipod/i.test(z)&&E.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(a,Te,xe){var z=a("../internals/engine-user-agent");Te.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(z)},{"../internals/engine-user-agent":145}],143:[function(a,Te,xe){var z=a("../internals/classof-raw"),E=a("../internals/global");Te.exports=z(E.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(a,Te,xe){var z=a("../internals/engine-user-agent");Te.exports=/web0s(?!.*chrome)/i.test(z)},{"../internals/engine-user-agent":145}],145:[function(a,Te,xe){var z=a("../internals/get-built-in");Te.exports=z("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/engine-user-agent"),oe=z.process,ie=z.Deno,ee=oe&&oe.versions||ie&&ie.version,le=ee&&ee.v8,x,ne;le&&(x=le.split("."),ne=x[0]>0&&x[0]<4?1:+(x[0]+x[1])),!ne&&E&&(x=E.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=E.match(/Chrome\/(\d+)/),x&&(ne=+x[1]))),Te.exports=ne},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(a,Te,xe){var z=a("../internals/engine-user-agent"),E=z.match(/AppleWebKit\/(\d+)\./);Te.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],148:[function(a,Te,xe){Te.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/object-get-own-property-descriptor").f,oe=a("../internals/create-non-enumerable-property"),ie=a("../internals/redefine"),ee=a("../internals/set-global"),le=a("../internals/copy-constructor-properties"),x=a("../internals/is-forced");Te.exports=function(ne,re){var ae=ne.target,se=ne.global,ce=ne.stat,pe,me,he,be,Pe,Me;if(se?me=z:ce?me=z[ae]||ee(ae,{}):me=(z[ae]||{}).prototype,me)for(he in re){if(Pe=re[he],ne.noTargetGet?(Me=E(me,he),be=Me&&Me.value):be=me[he],pe=x(se?he:ae+(ce?".":"#")+he,ne.forced),!pe&&be!==void 0){if(typeof Pe==typeof be)continue;le(Pe,be)}(ne.sham||be&&be.sham)&&oe(Pe,"sham",!0),ie(me,he,Pe,ne)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(a,Te,xe){Te.exports=function(z){try{return!!z()}catch(E){return!0}}},{}],151:[function(a,Te,xe){"use strict";a("../modules/es.regexp.exec");var z=a("../internals/function-uncurry-this"),E=a("../internals/redefine"),oe=a("../internals/regexp-exec"),ie=a("../internals/fails"),ee=a("../internals/well-known-symbol"),le=a("../internals/create-non-enumerable-property"),x=ee("species"),ne=RegExp.prototype;Te.exports=function(re,ae,se,ce){var pe=ee(re),me=!ie(function(){var Me={};return Me[pe]=function(){return 7},""[re](Me)!=7}),he=me&&!ie(function(){var Me=!1,_e=/a/;return re==="split"&&(_e={},_e.constructor={},_e.constructor[x]=function(){return _e},_e.flags="",_e[pe]=/./[pe]),_e.exec=function(){return Me=!0,null},_e[pe](""),!Me});if(!me||!he||se){var be=z(/./[pe]),Pe=ae(pe,""[re],function(Me,_e,De,Ce,Ee){var je=z(Me),ke=_e.exec;return ke===oe||ke===ne.exec?me&&!Ee?{done:!0,value:be(_e,De,Ce)}:{done:!0,value:je(De,_e,Ce)}:{done:!1}});E(String.prototype,re,Pe[0]),E(ne,pe,Pe[1])}ce&&le(ne[pe],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(a,Te,xe){var z=a("../internals/function-bind-native"),E=Function.prototype,oe=E.apply,ie=E.call;Te.exports=typeof Reflect=="object"&&Reflect.apply||(z?ie.bind(oe):function(){return ie.apply(oe,arguments)})},{"../internals/function-bind-native":154}],153:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=a("../internals/a-callable"),oe=a("../internals/function-bind-native"),ie=z(z.bind);Te.exports=function(ee,le){return E(ee),le===void 0?ee:oe?ie(ee,le):function(){return ee.apply(le,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(a,Te,xe){var z=a("../internals/fails");Te.exports=!z(function(){var E=function(){}.bind();return typeof E!="function"||E.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(a,Te,xe){var z=a("../internals/function-bind-native"),E=Function.prototype.call;Te.exports=z?E.bind(E):function(){return E.apply(E,arguments)}},{"../internals/function-bind-native":154}],156:[function(a,Te,xe){var z=a("../internals/descriptors"),E=a("../internals/has-own-property"),oe=Function.prototype,ie=z&&Object.getOwnPropertyDescriptor,ee=E(oe,"name"),le=ee&&function(){}.name==="something",x=ee&&(!z||z&&ie(oe,"name").configurable);Te.exports={EXISTS:ee,PROPER:le,CONFIGURABLE:x}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(a,Te,xe){var z=a("../internals/function-bind-native"),E=Function.prototype,oe=E.bind,ie=E.call,ee=z&&oe.bind(ie,ie);Te.exports=z?function(le){return le&&ee(le)}:function(le){return le&&function(){return ie.apply(le,arguments)}}},{"../internals/function-bind-native":154}],158:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-callable"),oe=function(ie){return E(ie)?ie:void 0};Te.exports=function(ie,ee){return arguments.length<2?oe(z[ie]):z[ie]&&z[ie][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(a,Te,xe){var z=a("../internals/classof"),E=a("../internals/get-method"),oe=a("../internals/iterators"),ie=a("../internals/well-known-symbol"),ee=ie("iterator");Te.exports=function(le){if(le!=null)return E(le,ee)||E(le,"@@iterator")||oe[z(le)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/function-call"),oe=a("../internals/a-callable"),ie=a("../internals/an-object"),ee=a("../internals/try-to-string"),le=a("../internals/get-iterator-method"),x=z.TypeError;Te.exports=function(ne,re){var ae=arguments.length<2?le(ne):re;if(oe(ae))return ie(E(ae,ne));throw x(ee(ne)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(a,Te,xe){var z=a("../internals/a-callable");Te.exports=function(E,oe){var ie=E[oe];return ie==null?void 0:z(ie)}},{"../internals/a-callable":95}],162:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=a("../internals/to-object"),oe=Math.floor,ie=z("".charAt),ee=z("".replace),le=z("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ne=/\$([$&'`]|\d{1,2})/g;Te.exports=function(re,ae,se,ce,pe,me){var he=se+re.length,be=ce.length,Pe=ne;return pe!==void 0&&(pe=E(pe),Pe=x),ee(me,Pe,function(Me,_e){var De;switch(ie(_e,0)){case"$":return"$";case"&":return re;case"`":return le(ae,0,se);case"'":return le(ae,he);case"<":De=pe[le(_e,1,-1)];break;default:var Ce=+_e;if(Ce===0)return Me;if(Ce>be){var Ee=oe(Ce/10);return Ee===0?Me:Ee<=be?ce[Ee-1]===void 0?ie(_e,1):ce[Ee-1]+ie(_e,1):Me}De=ce[Ce-1]}return De===void 0?"":De})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(a,Te,xe){(function(z){(function(){var E=function(oe){return oe&&oe.Math==Math&&oe};Te.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof z=="object"&&z)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=a("../internals/to-object"),oe=z({}.hasOwnProperty);Te.exports=Object.hasOwn||function(ee,le){return oe(E(ee),le)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(a,Te,xe){Te.exports={}},{}],166:[function(a,Te,xe){var z=a("../internals/global");Te.exports=function(E,oe){var ie=z.console;ie&&ie.error&&(arguments.length==1?ie.error(E):ie.error(E,oe))}},{"../internals/global":163}],167:[function(a,Te,xe){var z=a("../internals/get-built-in");Te.exports=z("document","documentElement")},{"../internals/get-built-in":158}],168:[function(a,Te,xe){var z=a("../internals/descriptors"),E=a("../internals/fails"),oe=a("../internals/document-create-element");Te.exports=!z&&!E(function(){return Object.defineProperty(oe("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(a,Te,xe){var z=a("../internals/global"),E=z.Array,oe=Math.abs,ie=Math.pow,ee=Math.floor,le=Math.log,x=Math.LN2,ne=function(ae,se,ce){var pe=E(ce),me=ce*8-se-1,he=(1<<me)-1,be=he>>1,Pe=se===23?ie(2,-24)-ie(2,-77):0,Me=ae<0||ae===0&&1/ae<0?1:0,_e=0,De,Ce,Ee;for(ae=oe(ae),ae!=ae||ae===1/0?(Ce=ae!=ae?1:0,De=he):(De=ee(le(ae)/x),Ee=ie(2,-De),ae*Ee<1&&(De--,Ee*=2),De+be>=1?ae+=Pe/Ee:ae+=Pe*ie(2,1-be),ae*Ee>=2&&(De++,Ee/=2),De+be>=he?(Ce=0,De=he):De+be>=1?(Ce=(ae*Ee-1)*ie(2,se),De=De+be):(Ce=ae*ie(2,be-1)*ie(2,se),De=0));se>=8;)pe[_e++]=Ce&255,Ce/=256,se-=8;for(De=De<<se|Ce,me+=se;me>0;)pe[_e++]=De&255,De/=256,me-=8;return pe[--_e]|=Me*128,pe},re=function(ae,se){var ce=ae.length,pe=ce*8-se-1,me=(1<<pe)-1,he=me>>1,be=pe-7,Pe=ce-1,Me=ae[Pe--],_e=Me&127,De;for(Me>>=7;be>0;)_e=_e*256+ae[Pe--],be-=8;for(De=_e&(1<<-be)-1,_e>>=-be,be+=se;be>0;)De=De*256+ae[Pe--],be-=8;if(_e===0)_e=1-he;else{if(_e===me)return De?NaN:Me?-1/0:1/0;De=De+ie(2,se),_e=_e-he}return(Me?-1:1)*De*ie(2,_e-se)};Te.exports={pack:ne,unpack:re}},{"../internals/global":163}],170:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/function-uncurry-this"),oe=a("../internals/fails"),ie=a("../internals/classof-raw"),ee=z.Object,le=E("".split);Te.exports=oe(function(){return!ee("z").propertyIsEnumerable(0)})?function(x){return ie(x)=="String"?le(x,""):ee(x)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(a,Te,xe){var z=a("../internals/is-callable"),E=a("../internals/is-object"),oe=a("../internals/object-set-prototype-of");Te.exports=function(ie,ee,le){var x,ne;return oe&&z(x=ee.constructor)&&x!==le&&E(ne=x.prototype)&&ne!==le.prototype&&oe(ie,ne),ie}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=a("../internals/is-callable"),oe=a("../internals/shared-store"),ie=z(Function.toString);E(oe.inspectSource)||(oe.inspectSource=function(ee){return ie(ee)}),Te.exports=oe.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(a,Te,xe){var z=a("../internals/native-weak-map"),E=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ie=a("../internals/is-object"),ee=a("../internals/create-non-enumerable-property"),le=a("../internals/has-own-property"),x=a("../internals/shared-store"),ne=a("../internals/shared-key"),re=a("../internals/hidden-keys"),ae="Object already initialized",se=E.TypeError,ce=E.WeakMap,pe,me,he,be=function(je){return he(je)?me(je):pe(je,{})},Pe=function(je){return function(ke){var Be;if(!ie(ke)||(Be=me(ke)).type!==je)throw se("Incompatible receiver, "+je+" required");return Be}};if(z||x.state){var Me=x.state||(x.state=new ce),_e=oe(Me.get),De=oe(Me.has),Ce=oe(Me.set);pe=function(je,ke){if(De(Me,je))throw new se(ae);return ke.facade=je,Ce(Me,je,ke),ke},me=function(je){return _e(Me,je)||{}},he=function(je){return De(Me,je)}}else{var Ee=ne("state");re[Ee]=!0,pe=function(je,ke){if(le(je,Ee))throw new se(ae);return ke.facade=je,ee(je,Ee,ke),ke},me=function(je){return le(je,Ee)?je[Ee]:{}},he=function(je){return le(je,Ee)}}Te.exports={set:pe,get:me,has:he,enforce:be,getterFor:Pe}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(a,Te,xe){var z=a("../internals/well-known-symbol"),E=a("../internals/iterators"),oe=z("iterator"),ie=Array.prototype;Te.exports=function(ee){return ee!==void 0&&(E.Array===ee||ie[oe]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(a,Te,xe){var z=a("../internals/classof-raw");Te.exports=Array.isArray||function(oe){return z(oe)=="Array"}},{"../internals/classof-raw":123}],176:[function(a,Te,xe){Te.exports=function(z){return typeof z=="function"}},{}],177:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=a("../internals/fails"),oe=a("../internals/is-callable"),ie=a("../internals/classof"),ee=a("../internals/get-built-in"),le=a("../internals/inspect-source"),x=function(){},ne=[],re=ee("Reflect","construct"),ae=/^\s*(?:class|function)\b/,se=z(ae.exec),ce=!ae.exec(x),pe=function(be){if(!oe(be))return!1;try{return re(x,ne,be),!0}catch(Pe){return!1}},me=function(be){if(!oe(be))return!1;switch(ie(be)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ce||!!se(ae,le(be))}catch(Pe){return!0}};me.sham=!0,Te.exports=!re||E(function(){var he;return pe(pe.call)||!pe(Object)||!pe(function(){he=!0})||he})?me:pe},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(a,Te,xe){var z=a("../internals/fails"),E=a("../internals/is-callable"),oe=/#|\.prototype\./,ie=function(re,ae){var se=le[ee(re)];return se==ne?!0:se==x?!1:E(ae)?z(ae):!!ae},ee=ie.normalize=function(re){return String(re).replace(oe,".").toLowerCase()},le=ie.data={},x=ie.NATIVE="N",ne=ie.POLYFILL="P";Te.exports=ie},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(a,Te,xe){var z=a("../internals/is-object"),E=Math.floor;Te.exports=Number.isInteger||function(ie){return!z(ie)&&isFinite(ie)&&E(ie)===ie}},{"../internals/is-object":180}],180:[function(a,Te,xe){var z=a("../internals/is-callable");Te.exports=function(E){return typeof E=="object"?E!==null:z(E)}},{"../internals/is-callable":176}],181:[function(a,Te,xe){Te.exports=!1},{}],182:[function(a,Te,xe){var z=a("../internals/is-object"),E=a("../internals/classof-raw"),oe=a("../internals/well-known-symbol"),ie=oe("match");Te.exports=function(ee){var le;return z(ee)&&((le=ee[ie])!==void 0?!!le:E(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/get-built-in"),oe=a("../internals/is-callable"),ie=a("../internals/object-is-prototype-of"),ee=a("../internals/use-symbol-as-uid"),le=z.Object;Te.exports=ee?function(x){return typeof x=="symbol"}:function(x){var ne=E("Symbol");return oe(ne)&&ie(ne.prototype,le(x))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/function-bind-context"),oe=a("../internals/function-call"),ie=a("../internals/an-object"),ee=a("../internals/try-to-string"),le=a("../internals/is-array-iterator-method"),x=a("../internals/length-of-array-like"),ne=a("../internals/object-is-prototype-of"),re=a("../internals/get-iterator"),ae=a("../internals/get-iterator-method"),se=a("../internals/iterator-close"),ce=z.TypeError,pe=function(he,be){this.stopped=he,this.result=be},me=pe.prototype;Te.exports=function(he,be,Pe){var Me=Pe&&Pe.that,_e=!!(Pe&&Pe.AS_ENTRIES),De=!!(Pe&&Pe.IS_ITERATOR),Ce=!!(Pe&&Pe.INTERRUPTED),Ee=E(be,Me),je,ke,Be,Ae,ve,Ue,He,Ye=function(Fe){return je&&se(je,"normal",Fe),new pe(!0,Fe)},ot=function(Fe){return _e?(ie(Fe),Ce?Ee(Fe[0],Fe[1],Ye):Ee(Fe[0],Fe[1])):Ce?Ee(Fe,Ye):Ee(Fe)};if(De)je=he;else{if(ke=ae(he),!ke)throw ce(ee(he)+" is not iterable");if(le(ke)){for(Be=0,Ae=x(he);Ae>Be;Be++)if(ve=ot(he[Be]),ve&&ne(me,ve))return ve;return new pe(!1)}je=re(he,ke)}for(Ue=je.next;!(He=oe(Ue,je)).done;){try{ve=ot(He.value)}catch(Fe){se(je,"throw",Fe)}if(typeof ve=="object"&&ve&&ne(me,ve))return ve}return new pe(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(a,Te,xe){var z=a("../internals/function-call"),E=a("../internals/an-object"),oe=a("../internals/get-method");Te.exports=function(ie,ee,le){var x,ne;E(ie);try{if(x=oe(ie,"return"),!x){if(ee==="throw")throw le;return le}x=z(x,ie)}catch(re){ne=!0,x=re}if(ee==="throw")throw le;if(ne)throw x;return E(x),le}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(a,Te,xe){"use strict";var z=a("../internals/fails"),E=a("../internals/is-callable"),oe=a("../internals/object-create"),ie=a("../internals/object-get-prototype-of"),ee=a("../internals/redefine"),le=a("../internals/well-known-symbol"),x=a("../internals/is-pure"),ne=le("iterator"),re=!1,ae,se,ce;[].keys&&(ce=[].keys(),"next"in ce?(se=ie(ie(ce)),se!==Object.prototype&&(ae=se)):re=!0);var pe=ae==null||z(function(){var me={};return ae[ne].call(me)!==me});pe?ae={}:x&&(ae=oe(ae)),E(ae[ne])||ee(ae,ne,function(){return this}),Te.exports={IteratorPrototype:ae,BUGGY_SAFARI_ITERATORS:re}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(a,Te,xe){arguments[4][165][0].apply(xe,arguments)},{dup:165}],188:[function(a,Te,xe){var z=a("../internals/to-length");Te.exports=function(E){return z(E.length)}},{"../internals/to-length":249}],189:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/function-bind-context"),oe=a("../internals/object-get-own-property-descriptor").f,ie=a("../internals/task").set,ee=a("../internals/engine-is-ios"),le=a("../internals/engine-is-ios-pebble"),x=a("../internals/engine-is-webos-webkit"),ne=a("../internals/engine-is-node"),re=z.MutationObserver||z.WebKitMutationObserver,ae=z.document,se=z.process,ce=z.Promise,pe=oe(z,"queueMicrotask"),me=pe&&pe.value,he,be,Pe,Me,_e,De,Ce,Ee;me||(he=function(){var je,ke;for(ne&&(je=se.domain)&&je.exit();be;){ke=be.fn,be=be.next;try{ke()}catch(Be){throw be?Me():Pe=void 0,Be}}Pe=void 0,je&&je.enter()},!ee&&!ne&&!x&&re&&ae?(_e=!0,De=ae.createTextNode(""),new re(he).observe(De,{characterData:!0}),Me=function(){De.data=_e=!_e}):!le&&ce&&ce.resolve?(Ce=ce.resolve(void 0),Ce.constructor=ce,Ee=E(Ce.then,Ce),Me=function(){Ee(he)}):ne?Me=function(){se.nextTick(he)}:(ie=E(ie,z),Me=function(){ie(he)})),Te.exports=me||function(je){var ke={fn:je,next:void 0};Pe&&(Pe.next=ke),be||(be=ke,Me()),Pe=ke}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(a,Te,xe){var z=a("../internals/native-symbol");Te.exports=z&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(a,Te,xe){var z=a("../internals/engine-v8-version"),E=a("../internals/fails");Te.exports=!!Object.getOwnPropertySymbols&&!E(function(){var oe=Symbol();return!String(oe)||!(Object(oe)instanceof Symbol)||!Symbol.sham&&z&&z<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-callable"),oe=a("../internals/inspect-source"),ie=z.WeakMap;Te.exports=E(ie)&&/native code/.test(oe(ie))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(a,Te,xe){"use strict";var z=a("../internals/a-callable"),E=function(oe){var ie,ee;this.promise=new oe(function(le,x){if(ie!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");ie=le,ee=x}),this.resolve=z(ie),this.reject=z(ee)};Te.exports.f=function(oe){return new E(oe)}},{"../internals/a-callable":95}],194:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-regexp"),oe=z.TypeError;Te.exports=function(ie){if(E(ie))throw oe("The method doesn't accept regular expressions");return ie}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(a,Te,xe){"use strict";var z=a("../internals/descriptors"),E=a("../internals/function-uncurry-this"),oe=a("../internals/function-call"),ie=a("../internals/fails"),ee=a("../internals/object-keys"),le=a("../internals/object-get-own-property-symbols"),x=a("../internals/object-property-is-enumerable"),ne=a("../internals/to-object"),re=a("../internals/indexed-object"),ae=Object.assign,se=Object.defineProperty,ce=E([].concat);Te.exports=!ae||ie(function(){if(z&&ae({b:1},ae(se({},"a",{enumerable:!0,get:function(){se(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var pe={},me={},he=Symbol(),be="abcdefghijklmnopqrst";return pe[he]=7,be.split("").forEach(function(Pe){me[Pe]=Pe}),ae({},pe)[he]!=7||ee(ae({},me)).join("")!=be})?function(me,he){for(var be=ne(me),Pe=arguments.length,Me=1,_e=le.f,De=x.f;Pe>Me;)for(var Ce=re(arguments[Me++]),Ee=_e?ce(ee(Ce),_e(Ce)):ee(Ce),je=Ee.length,ke=0,Be;je>ke;)Be=Ee[ke++],(!z||oe(De,Ce,Be))&&(be[Be]=Ce[Be]);return be}:ae},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(a,Te,xe){var z=a("../internals/an-object"),E=a("../internals/object-define-properties"),oe=a("../internals/enum-bug-keys"),ie=a("../internals/hidden-keys"),ee=a("../internals/html"),le=a("../internals/document-create-element"),x=a("../internals/shared-key"),ne=">",re="<",ae="prototype",se="script",ce=x("IE_PROTO"),pe=function(){},me=function(_e){return re+se+ne+_e+re+"/"+se+ne},he=function(_e){_e.write(me("")),_e.close();var De=_e.parentWindow.Object;return _e=null,De},be=function(){var _e=le("iframe"),De="java"+se+":",Ce;return _e.style.display="none",ee.appendChild(_e),_e.src=String(De),Ce=_e.contentWindow.document,Ce.open(),Ce.write(me("document.F=Object")),Ce.close(),Ce.F},Pe,Me=function(){try{Pe=new ActiveXObject("htmlfile")}catch(De){}Me=typeof document!="undefined"?document.domain&&Pe?he(Pe):be():he(Pe);for(var _e=oe.length;_e--;)delete Me[ae][oe[_e]];return Me()};ie[ce]=!0,Te.exports=Object.create||function(De,Ce){var Ee;return De!==null?(pe[ae]=z(De),Ee=new pe,pe[ae]=null,Ee[ce]=De):Ee=Me(),Ce===void 0?Ee:E.f(Ee,Ce)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(a,Te,xe){var z=a("../internals/descriptors"),E=a("../internals/v8-prototype-define-bug"),oe=a("../internals/object-define-property"),ie=a("../internals/an-object"),ee=a("../internals/to-indexed-object"),le=a("../internals/object-keys");xe.f=z&&!E?Object.defineProperties:function(ne,re){ie(ne);for(var ae=ee(re),se=le(re),ce=se.length,pe=0,me;ce>pe;)oe.f(ne,me=se[pe++],ae[me]);return ne}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/descriptors"),oe=a("../internals/ie8-dom-define"),ie=a("../internals/v8-prototype-define-bug"),ee=a("../internals/an-object"),le=a("../internals/to-property-key"),x=z.TypeError,ne=Object.defineProperty,re=Object.getOwnPropertyDescriptor,ae="enumerable",se="configurable",ce="writable";xe.f=E?ie?function(me,he,be){if(ee(me),he=le(he),ee(be),typeof me=="function"&&he==="prototype"&&"value"in be&&ce in be&&!be[ce]){var Pe=re(me,he);Pe&&Pe[ce]&&(me[he]=be.value,be={configurable:se in be?be[se]:Pe[se],enumerable:ae in be?be[ae]:Pe[ae],writable:!1})}return ne(me,he,be)}:ne:function(me,he,be){if(ee(me),he=le(he),ee(be),oe)try{return ne(me,he,be)}catch(Pe){}if("get"in be||"set"in be)throw x("Accessors not supported");return"value"in be&&(me[he]=be.value),me}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(a,Te,xe){var z=a("../internals/descriptors"),E=a("../internals/function-call"),oe=a("../internals/object-property-is-enumerable"),ie=a("../internals/create-property-descriptor"),ee=a("../internals/to-indexed-object"),le=a("../internals/to-property-key"),x=a("../internals/has-own-property"),ne=a("../internals/ie8-dom-define"),re=Object.getOwnPropertyDescriptor;xe.f=z?re:function(se,ce){if(se=ee(se),ce=le(ce),ne)try{return re(se,ce)}catch(pe){}if(x(se,ce))return ie(!E(oe.f,se,ce),se[ce])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(a,Te,xe){var z=a("../internals/classof-raw"),E=a("../internals/to-indexed-object"),oe=a("../internals/object-get-own-property-names").f,ie=a("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],le=function(x){try{return oe(x)}catch(ne){return ie(ee)}};Te.exports.f=function(ne){return ee&&z(ne)=="Window"?le(ne):oe(E(ne))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(a,Te,xe){var z=a("../internals/object-keys-internal"),E=a("../internals/enum-bug-keys"),oe=E.concat("length","prototype");xe.f=Object.getOwnPropertyNames||function(ee){return z(ee,oe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(a,Te,xe){xe.f=Object.getOwnPropertySymbols},{}],203:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/has-own-property"),oe=a("../internals/is-callable"),ie=a("../internals/to-object"),ee=a("../internals/shared-key"),le=a("../internals/correct-prototype-getter"),x=ee("IE_PROTO"),ne=z.Object,re=ne.prototype;Te.exports=le?ne.getPrototypeOf:function(ae){var se=ie(ae);if(E(se,x))return se[x];var ce=se.constructor;return oe(ce)&&se instanceof ce?ce.prototype:se instanceof ne?re:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(a,Te,xe){var z=a("../internals/function-uncurry-this");Te.exports=z({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=a("../internals/has-own-property"),oe=a("../internals/to-indexed-object"),ie=a("../internals/array-includes").indexOf,ee=a("../internals/hidden-keys"),le=z([].push);Te.exports=function(x,ne){var re=oe(x),ae=0,se=[],ce;for(ce in re)!E(ee,ce)&&E(re,ce)&&le(se,ce);for(;ne.length>ae;)E(re,ce=ne[ae++])&&(~ie(se,ce)||le(se,ce));return se}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(a,Te,xe){var z=a("../internals/object-keys-internal"),E=a("../internals/enum-bug-keys");Te.exports=Object.keys||function(ie){return z(ie,E)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(a,Te,xe){"use strict";var z={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,oe=E&&!z.call({1:2},1);xe.f=oe?function(ee){var le=E(this,ee);return!!le&&le.enumerable}:z},{}],208:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=a("../internals/an-object"),oe=a("../internals/a-possible-prototype");Te.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ie=!1,ee={},le;try{le=z(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),le(ee,[]),ie=ee instanceof Array}catch(x){}return function(ne,re){return E(ne),oe(re),ie?le(ne,re):ne.__proto__=re,ne}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(a,Te,xe){var z=a("../internals/descriptors"),E=a("../internals/function-uncurry-this"),oe=a("../internals/object-keys"),ie=a("../internals/to-indexed-object"),ee=a("../internals/object-property-is-enumerable").f,le=E(ee),x=E([].push),ne=function(re){return function(ae){for(var se=ie(ae),ce=oe(se),pe=ce.length,me=0,he=[],be;pe>me;)be=ce[me++],(!z||le(se,be))&&x(he,re?[be,se[be]]:se[be]);return he}};Te.exports={entries:ne(!0),values:ne(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(a,Te,xe){"use strict";var z=a("../internals/to-string-tag-support"),E=a("../internals/classof");Te.exports=z?{}.toString:function(){return"[object "+E(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/function-call"),oe=a("../internals/is-callable"),ie=a("../internals/is-object"),ee=z.TypeError;Te.exports=function(le,x){var ne,re;if(x==="string"&&oe(ne=le.toString)&&!ie(re=E(ne,le))||oe(ne=le.valueOf)&&!ie(re=E(ne,le))||x!=="string"&&oe(ne=le.toString)&&!ie(re=E(ne,le)))return re;throw ee("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(a,Te,xe){var z=a("../internals/get-built-in"),E=a("../internals/function-uncurry-this"),oe=a("../internals/object-get-own-property-names"),ie=a("../internals/object-get-own-property-symbols"),ee=a("../internals/an-object"),le=E([].concat);Te.exports=z("Reflect","ownKeys")||function(ne){var re=oe.f(ee(ne)),ae=ie.f;return ae?le(re,ae(ne)):re}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(a,Te,xe){var z=a("../internals/global");Te.exports=z},{"../internals/global":163}],214:[function(a,Te,xe){Te.exports=function(z){try{return{error:!1,value:z()}}catch(E){return{error:!0,value:E}}}},{}],215:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/promise-native-constructor"),oe=a("../internals/is-callable"),ie=a("../internals/is-forced"),ee=a("../internals/inspect-source"),le=a("../internals/well-known-symbol"),x=a("../internals/engine-is-browser"),ne=a("../internals/is-pure"),re=a("../internals/engine-v8-version"),ae=E&&E.prototype,se=le("species"),ce=!1,pe=oe(z.PromiseRejectionEvent),me=ie("Promise",function(){var he=ee(E),be=he!==String(E);if(!be&&re===66||ne&&!(ae.catch&&ae.finally))return!0;if(re>=51&&/native code/.test(he))return!1;var Pe=new E(function(De){De(1)}),Me=function(De){De(function(){},function(){})},_e=Pe.constructor={};return _e[se]=Me,ce=Pe.then(function(){})instanceof Me,ce?!be&&x&&!pe:!0});Te.exports={CONSTRUCTOR:me,REJECTION_EVENT:pe,SUBCLASSING:ce}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(a,Te,xe){var z=a("../internals/global");Te.exports=z.Promise},{"../internals/global":163}],217:[function(a,Te,xe){var z=a("../internals/an-object"),E=a("../internals/is-object"),oe=a("../internals/new-promise-capability");Te.exports=function(ie,ee){if(z(ie),E(ee)&&ee.constructor===ie)return ee;var le=oe.f(ie),x=le.resolve;return x(ee),le.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(a,Te,xe){var z=a("../internals/promise-native-constructor"),E=a("../internals/check-correctness-of-iteration"),oe=a("../internals/promise-constructor-detection").CONSTRUCTOR;Te.exports=oe||!E(function(ie){z.all(ie).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(a,Te,xe){var z=a("../internals/object-define-property").f;Te.exports=function(E,oe,ie){ie in E||z(E,ie,{configurable:!0,get:function(){return oe[ie]},set:function(ee){oe[ie]=ee}})}},{"../internals/object-define-property":198}],220:[function(a,Te,xe){var z=function(){this.head=null,this.tail=null};z.prototype={add:function(E){var oe={item:E,next:null};this.head?this.tail.next=oe:this.head=oe,this.tail=oe},get:function(){var E=this.head;if(E)return this.head=E.next,this.tail===E&&(this.tail=null),E.item}},Te.exports=z},{}],221:[function(a,Te,xe){var z=a("../internals/redefine");Te.exports=function(E,oe,ie){for(var ee in oe)z(E,ee,oe[ee],ie);return E}},{"../internals/redefine":222}],222:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/is-callable"),oe=a("../internals/has-own-property"),ie=a("../internals/create-non-enumerable-property"),ee=a("../internals/set-global"),le=a("../internals/inspect-source"),x=a("../internals/internal-state"),ne=a("../internals/function-name").CONFIGURABLE,re=x.get,ae=x.enforce,se=String(String).split("String");(Te.exports=function(ce,pe,me,he){var be=he?!!he.unsafe:!1,Pe=he?!!he.enumerable:!1,Me=he?!!he.noTargetGet:!1,_e=he&&he.name!==void 0?he.name:pe,De;if(E(me)&&(String(_e).slice(0,7)==="Symbol("&&(_e="["+String(_e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!oe(me,"name")||ne&&me.name!==_e)&&ie(me,"name",_e),De=ae(me),De.source||(De.source=se.join(typeof _e=="string"?_e:""))),ce===z){Pe?ce[pe]=me:ee(pe,me);return}else be?!Me&&ce[pe]&&(Pe=!0):delete ce[pe];Pe?ce[pe]=me:ie(ce,pe,me)})(Function.prototype,"toString",function(){return E(this)&&re(this).source||le(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/function-call"),oe=a("../internals/an-object"),ie=a("../internals/is-callable"),ee=a("../internals/classof-raw"),le=a("../internals/regexp-exec"),x=z.TypeError;Te.exports=function(ne,re){var ae=ne.exec;if(ie(ae)){var se=E(ae,ne,re);return se!==null&&oe(se),se}if(ee(ne)==="RegExp")return E(le,ne,re);throw x("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(a,Te,xe){"use strict";var z=a("../internals/function-call"),E=a("../internals/function-uncurry-this"),oe=a("../internals/to-string"),ie=a("../internals/regexp-flags"),ee=a("../internals/regexp-sticky-helpers"),le=a("../internals/shared"),x=a("../internals/object-create"),ne=a("../internals/internal-state").get,re=a("../internals/regexp-unsupported-dot-all"),ae=a("../internals/regexp-unsupported-ncg"),se=le("native-string-replace",String.prototype.replace),ce=RegExp.prototype.exec,pe=ce,me=E("".charAt),he=E("".indexOf),be=E("".replace),Pe=E("".slice),Me=function(){var Ee=/a/,je=/b*/g;return z(ce,Ee,"a"),z(ce,je,"a"),Ee.lastIndex!==0||je.lastIndex!==0}(),_e=ee.BROKEN_CARET,De=/()??/.exec("")[1]!==void 0,Ce=Me||De||_e||re||ae;Ce&&(pe=function(je){var ke=this,Be=ne(ke),Ae=oe(je),ve=Be.raw,Ue,He,Ye,ot,Fe,Ke,rt;if(ve)return ve.lastIndex=ke.lastIndex,Ue=z(pe,ve,Ae),ke.lastIndex=ve.lastIndex,Ue;var nt=Be.groups,et=_e&&ke.sticky,Ge=z(ie,ke),Xe=ke.source,Ve=0,tt=Ae;if(et&&(Ge=be(Ge,"y",""),he(Ge,"g")===-1&&(Ge+="g"),tt=Pe(Ae,ke.lastIndex),ke.lastIndex>0&&(!ke.multiline||ke.multiline&&me(Ae,ke.lastIndex-1)!==`
`)&&(Xe="(?: "+Xe+")",tt=" "+tt,Ve++),He=new RegExp("^(?:"+Xe+")",Ge)),De&&(He=new RegExp("^"+Xe+"$(?!\\s)",Ge)),Me&&(Ye=ke.lastIndex),ot=z(ce,et?He:ke,tt),et?ot?(ot.input=Pe(ot.input,Ve),ot[0]=Pe(ot[0],Ve),ot.index=ke.lastIndex,ke.lastIndex+=ot[0].length):ke.lastIndex=0:Me&&ot&&(ke.lastIndex=ke.global?ot.index+ot[0].length:Ye),De&&ot&&ot.length>1&&z(se,ot[0],He,function(){for(Fe=1;Fe<arguments.length-2;Fe++)arguments[Fe]===void 0&&(ot[Fe]=void 0)}),ot&&nt)for(ot.groups=Ke=x(null),Fe=0;Fe<nt.length;Fe++)rt=nt[Fe],Ke[rt[0]]=ot[rt[1]];return ot}),Te.exports=pe},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(a,Te,xe){"use strict";var z=a("../internals/an-object");Te.exports=function(){var E=z(this),oe="";return E.hasIndices&&(oe+="d"),E.global&&(oe+="g"),E.ignoreCase&&(oe+="i"),E.multiline&&(oe+="m"),E.dotAll&&(oe+="s"),E.unicode&&(oe+="u"),E.sticky&&(oe+="y"),oe}},{"../internals/an-object":101}],226:[function(a,Te,xe){var z=a("../internals/function-call"),E=a("../internals/has-own-property"),oe=a("../internals/object-is-prototype-of"),ie=a("../internals/regexp-flags"),ee=RegExp.prototype;Te.exports=function(le){var x=le.flags;return x===void 0&&!("flags"in ee)&&!E(le,"flags")&&oe(ee,le)?z(ie,le):x}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(a,Te,xe){var z=a("../internals/fails"),E=a("../internals/global"),oe=E.RegExp,ie=z(function(){var x=oe("a","y");return x.lastIndex=2,x.exec("abcd")!=null}),ee=ie||z(function(){return!oe("a","y").sticky}),le=ie||z(function(){var x=oe("^r","gy");return x.lastIndex=2,x.exec("str")!=null});Te.exports={BROKEN_CARET:le,MISSED_STICKY:ee,UNSUPPORTED_Y:ie}},{"../internals/fails":150,"../internals/global":163}],228:[function(a,Te,xe){var z=a("../internals/fails"),E=a("../internals/global"),oe=E.RegExp;Te.exports=z(function(){var ie=oe(".","s");return!(ie.dotAll&&ie.exec(`
`)&&ie.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(a,Te,xe){var z=a("../internals/fails"),E=a("../internals/global"),oe=E.RegExp;Te.exports=z(function(){var ie=oe("(?<a>b)","g");return ie.exec("b").groups.a!=="b"||"b".replace(ie,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(a,Te,xe){var z=a("../internals/global"),E=z.TypeError;Te.exports=function(oe){if(oe==null)throw E("Can't call method on "+oe);return oe}},{"../internals/global":163}],231:[function(a,Te,xe){Te.exports=Object.is||function(E,oe){return E===oe?E!==0||1/E===1/oe:E!=E&&oe!=oe}},{}],232:[function(a,Te,xe){var z=a("../internals/global"),E=Object.defineProperty;Te.exports=function(oe,ie){try{E(z,oe,{value:ie,configurable:!0,writable:!0})}catch(ee){z[oe]=ie}return ie}},{"../internals/global":163}],233:[function(a,Te,xe){"use strict";var z=a("../internals/get-built-in"),E=a("../internals/object-define-property"),oe=a("../internals/well-known-symbol"),ie=a("../internals/descriptors"),ee=oe("species");Te.exports=function(le){var x=z(le),ne=E.f;ie&&x&&!x[ee]&&ne(x,ee,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(a,Te,xe){var z=a("../internals/object-define-property").f,E=a("../internals/has-own-property"),oe=a("../internals/well-known-symbol"),ie=oe("toStringTag");Te.exports=function(ee,le,x){ee&&!x&&(ee=ee.prototype),ee&&!E(ee,ie)&&z(ee,ie,{configurable:!0,value:le})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(a,Te,xe){var z=a("../internals/shared"),E=a("../internals/uid"),oe=z("keys");Te.exports=function(ie){return oe[ie]||(oe[ie]=E(ie))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/set-global"),oe="__core-js_shared__",ie=z[oe]||E(oe,{});Te.exports=ie},{"../internals/global":163,"../internals/set-global":232}],237:[function(a,Te,xe){var z=a("../internals/is-pure"),E=a("../internals/shared-store");(Te.exports=function(oe,ie){return E[oe]||(E[oe]=ie!==void 0?ie:{})})("versions",[]).push({version:"3.22.1",mode:z?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(a,Te,xe){var z=a("../internals/an-object"),E=a("../internals/a-constructor"),oe=a("../internals/well-known-symbol"),ie=oe("species");Te.exports=function(ee,le){var x=z(ee).constructor,ne;return x===void 0||(ne=z(x)[ie])==null?le:E(ne)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=a("../internals/to-integer-or-infinity"),oe=a("../internals/to-string"),ie=a("../internals/require-object-coercible"),ee=z("".charAt),le=z("".charCodeAt),x=z("".slice),ne=function(re){return function(ae,se){var ce=oe(ie(ae)),pe=E(se),me=ce.length,he,be;return pe<0||pe>=me?re?"":void 0:(he=le(ce,pe),he<55296||he>56319||pe+1===me||(be=le(ce,pe+1))<56320||be>57343?re?ee(ce,pe):he:re?x(ce,pe,pe+2):(he-55296<<10)+(be-56320)+65536)}};Te.exports={codeAt:ne(!1),charAt:ne(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(a,Te,xe){var z=a("../internals/function-name").PROPER,E=a("../internals/fails"),oe=a("../internals/whitespaces"),ie="\u200B\x85\u180E";Te.exports=function(ee){return E(function(){return!!oe[ee]()||ie[ee]()!==ie||z&&oe[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=a("../internals/require-object-coercible"),oe=a("../internals/to-string"),ie=a("../internals/whitespaces"),ee=z("".replace),le="["+ie+"]",x=RegExp("^"+le+le+"*"),ne=RegExp(le+le+"*$"),re=function(ae){return function(se){var ce=oe(E(se));return ae&1&&(ce=ee(ce,x,"")),ae&2&&(ce=ee(ce,ne,"")),ce}};Te.exports={start:re(1),end:re(2),trim:re(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(a,Te,xe){var z=a("../internals/function-call"),E=a("../internals/get-built-in"),oe=a("../internals/well-known-symbol"),ie=a("../internals/redefine");Te.exports=function(){var ee=E("Symbol"),le=ee&&ee.prototype,x=le&&le.valueOf,ne=oe("toPrimitive");le&&!le[ne]&&ie(le,ne,function(re){return z(x,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/function-apply"),oe=a("../internals/function-bind-context"),ie=a("../internals/is-callable"),ee=a("../internals/has-own-property"),le=a("../internals/fails"),x=a("../internals/html"),ne=a("../internals/array-slice"),re=a("../internals/document-create-element"),ae=a("../internals/validate-arguments-length"),se=a("../internals/engine-is-ios"),ce=a("../internals/engine-is-node"),pe=z.setImmediate,me=z.clearImmediate,he=z.process,be=z.Dispatch,Pe=z.Function,Me=z.MessageChannel,_e=z.String,De=0,Ce={},Ee="onreadystatechange",je,ke,Be,Ae;try{je=z.location}catch(ot){}var ve=function(ot){if(ee(Ce,ot)){var Fe=Ce[ot];delete Ce[ot],Fe()}},Ue=function(ot){return function(){ve(ot)}},He=function(ot){ve(ot.data)},Ye=function(ot){z.postMessage(_e(ot),je.protocol+"//"+je.host)};(!pe||!me)&&(pe=function(Fe){ae(arguments.length,1);var Ke=ie(Fe)?Fe:Pe(Fe),rt=ne(arguments,1);return Ce[++De]=function(){E(Ke,void 0,rt)},ke(De),De},me=function(Fe){delete Ce[Fe]},ce?ke=function(ot){he.nextTick(Ue(ot))}:be&&be.now?ke=function(ot){be.now(Ue(ot))}:Me&&!se?(Be=new Me,Ae=Be.port2,Be.port1.onmessage=He,ke=oe(Ae.postMessage,Ae)):z.addEventListener&&ie(z.postMessage)&&!z.importScripts&&je&&je.protocol!=="file:"&&!le(Ye)?(ke=Ye,z.addEventListener("message",He,!1)):Ee in re("script")?ke=function(ot){x.appendChild(re("script"))[Ee]=function(){x.removeChild(this),ve(ot)}}:ke=function(ot){setTimeout(Ue(ot),0)}),Te.exports={set:pe,clear:me}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(a,Te,xe){var z=a("../internals/function-uncurry-this");Te.exports=z(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(a,Te,xe){var z=a("../internals/to-integer-or-infinity"),E=Math.max,oe=Math.min;Te.exports=function(ie,ee){var le=z(ie);return le<0?E(le+ee,0):oe(le,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/to-integer-or-infinity"),oe=a("../internals/to-length"),ie=z.RangeError;Te.exports=function(ee){if(ee===void 0)return 0;var le=E(ee),x=oe(le);if(le!==x)throw ie("Wrong length or index");return x}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(a,Te,xe){var z=a("../internals/indexed-object"),E=a("../internals/require-object-coercible");Te.exports=function(oe){return z(E(oe))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(a,Te,xe){var z=Math.ceil,E=Math.floor;Te.exports=function(oe){var ie=+oe;return ie!==ie||ie===0?0:(ie>0?E:z)(ie)}},{}],249:[function(a,Te,xe){var z=a("../internals/to-integer-or-infinity"),E=Math.min;Te.exports=function(oe){return oe>0?E(z(oe),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/require-object-coercible"),oe=z.Object;Te.exports=function(ie){return oe(E(ie))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/to-positive-integer"),oe=z.RangeError;Te.exports=function(ie,ee){var le=E(ie);if(le%ee)throw oe("Wrong offset");return le}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/to-integer-or-infinity"),oe=z.RangeError;Te.exports=function(ie){var ee=E(ie);if(ee<0)throw oe("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/function-call"),oe=a("../internals/is-object"),ie=a("../internals/is-symbol"),ee=a("../internals/get-method"),le=a("../internals/ordinary-to-primitive"),x=a("../internals/well-known-symbol"),ne=z.TypeError,re=x("toPrimitive");Te.exports=function(ae,se){if(!oe(ae)||ie(ae))return ae;var ce=ee(ae,re),pe;if(ce){if(se===void 0&&(se="default"),pe=E(ce,ae,se),!oe(pe)||ie(pe))return pe;throw ne("Can't convert object to primitive value")}return se===void 0&&(se="number"),le(ae,se)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(a,Te,xe){var z=a("../internals/to-primitive"),E=a("../internals/is-symbol");Te.exports=function(oe){var ie=z(oe,"string");return E(ie)?ie:ie+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(a,Te,xe){var z=a("../internals/well-known-symbol"),E=z("toStringTag"),oe={};oe[E]="z",Te.exports=String(oe)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/classof"),oe=z.String;Te.exports=function(ie){if(E(ie)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return oe(ie)}},{"../internals/classof":124,"../internals/global":163}],257:[function(a,Te,xe){var z=a("../internals/global"),E=z.String;Te.exports=function(oe){try{return E(oe)}catch(ie){return"Object"}}},{"../internals/global":163}],258:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/global"),oe=a("../internals/function-call"),ie=a("../internals/descriptors"),ee=a("../internals/typed-array-constructors-require-wrappers"),le=a("../internals/array-buffer-view-core"),x=a("../internals/array-buffer"),ne=a("../internals/an-instance"),re=a("../internals/create-property-descriptor"),ae=a("../internals/create-non-enumerable-property"),se=a("../internals/is-integral-number"),ce=a("../internals/to-length"),pe=a("../internals/to-index"),me=a("../internals/to-offset"),he=a("../internals/to-property-key"),be=a("../internals/has-own-property"),Pe=a("../internals/classof"),Me=a("../internals/is-object"),_e=a("../internals/is-symbol"),De=a("../internals/object-create"),Ce=a("../internals/object-is-prototype-of"),Ee=a("../internals/object-set-prototype-of"),je=a("../internals/object-get-own-property-names").f,ke=a("../internals/typed-array-from"),Be=a("../internals/array-iteration").forEach,Ae=a("../internals/set-species"),ve=a("../internals/object-define-property"),Ue=a("../internals/object-get-own-property-descriptor"),He=a("../internals/internal-state"),Ye=a("../internals/inherit-if-required"),ot=He.get,Fe=He.set,Ke=ve.f,rt=Ue.f,nt=Math.round,et=E.RangeError,Ge=x.ArrayBuffer,Xe=Ge.prototype,Ve=x.DataView,tt=le.NATIVE_ARRAY_BUFFER_VIEWS,Qe=le.TYPED_ARRAY_CONSTRUCTOR,ct=le.TYPED_ARRAY_TAG,at=le.TypedArray,qe=le.TypedArrayPrototype,Le=le.aTypedArrayConstructor,Ne=le.isTypedArray,te="BYTES_PER_ELEMENT",de="Wrong length",Re=function(Ze,Je){Le(Ze);for(var st=0,lt=Je.length,ft=new Ze(lt);lt>st;)ft[st]=Je[st++];return ft},We=function(Ze,Je){Ke(Ze,Je,{get:function(){return ot(this)[Je]}})},we=function(Ze){var Je;return Ce(Xe,Ze)||(Je=Pe(Ze))=="ArrayBuffer"||Je=="SharedArrayBuffer"},ye=function(Ze,Je){return Ne(Ze)&&!_e(Je)&&Je in Ze&&se(+Je)&&Je>=0},Oe=function(Je,st){return st=he(st),ye(Je,st)?re(2,Je[st]):rt(Je,st)},$e=function(Je,st,lt){return st=he(st),ye(Je,st)&&Me(lt)&&be(lt,"value")&&!be(lt,"get")&&!be(lt,"set")&&!lt.configurable&&(!be(lt,"writable")||lt.writable)&&(!be(lt,"enumerable")||lt.enumerable)?(Je[st]=lt.value,Je):Ke(Je,st,lt)};ie?(tt||(Ue.f=Oe,ve.f=$e,We(qe,"buffer"),We(qe,"byteOffset"),We(qe,"byteLength"),We(qe,"length")),z({target:"Object",stat:!0,forced:!tt},{getOwnPropertyDescriptor:Oe,defineProperty:$e}),Te.exports=function(Ze,Je,st){var lt=Ze.match(/\d+$/)[0]/8,ft=Ze+(st?"Clamped":"")+"Array",Tt="get"+Ze,St="set"+Ze,Ot=E[ft],yt=Ot,Dt=yt&&yt.prototype,Et={},xt=function(ht,Ct){var Ht=ot(ht);return Ht.view[Tt](Ct*lt+Ht.byteOffset,!0)},At=function(ht,Ct,Ht){var Vt=ot(ht);st&&(Ht=(Ht=nt(Ht))<0?0:Ht>255?255:Ht&255),Vt.view[St](Ct*lt+Vt.byteOffset,Ht,!0)},It=function(ht,Ct){Ke(ht,Ct,{get:function(){return xt(this,Ct)},set:function(Ht){return At(this,Ct,Ht)},enumerable:!0})};tt?ee&&(yt=Je(function(ht,Ct,Ht,Vt){return ne(ht,Dt),Ye(function(){return Me(Ct)?we(Ct)?Vt!==void 0?new Ot(Ct,me(Ht,lt),Vt):Ht!==void 0?new Ot(Ct,me(Ht,lt)):new Ot(Ct):Ne(Ct)?Re(yt,Ct):oe(ke,yt,Ct):new Ot(pe(Ct))}(),ht,yt)}),Ee&&Ee(yt,at),Be(je(Ot),function(ht){ht in yt||ae(yt,ht,Ot[ht])}),yt.prototype=Dt):(yt=Je(function(ht,Ct,Ht,Vt){ne(ht,Dt);var vt=0,kt=0,$t,Kt,tr;if(!Me(Ct))tr=pe(Ct),Kt=tr*lt,$t=new Ge(Kt);else if(we(Ct)){$t=Ct,kt=me(Ht,lt);var sr=Ct.byteLength;if(Vt===void 0){if(sr%lt||(Kt=sr-kt,Kt<0))throw et(de)}else if(Kt=ce(Vt)*lt,Kt+kt>sr)throw et(de);tr=Kt/lt}else return Ne(Ct)?Re(yt,Ct):oe(ke,yt,Ct);for(Fe(ht,{buffer:$t,byteOffset:kt,byteLength:Kt,length:tr,view:new Ve($t)});vt<tr;)It(ht,vt++)}),Ee&&Ee(yt,at),Dt=yt.prototype=De(qe)),Dt.constructor!==yt&&ae(Dt,"constructor",yt),ae(Dt,Qe,yt),ct&&ae(Dt,ct,ft),Et[ft]=yt,z({global:!0,forced:yt!=Ot,sham:!tt},Et),te in yt||ae(yt,te,lt),te in Dt||ae(Dt,te,lt),Ae(ft)}):Te.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/fails"),oe=a("../internals/check-correctness-of-iteration"),ie=a("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=z.ArrayBuffer,le=z.Int8Array;Te.exports=!ie||!E(function(){le(1)})||!E(function(){new le(-1)})||!oe(function(x){new le,new le(null),new le(1.5),new le(x)},!0)||E(function(){return new le(new ee(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(a,Te,xe){var z=a("../internals/array-from-constructor-and-list"),E=a("../internals/typed-array-species-constructor");Te.exports=function(oe,ie){return z(E(oe),ie)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(a,Te,xe){var z=a("../internals/function-bind-context"),E=a("../internals/function-call"),oe=a("../internals/a-constructor"),ie=a("../internals/to-object"),ee=a("../internals/length-of-array-like"),le=a("../internals/get-iterator"),x=a("../internals/get-iterator-method"),ne=a("../internals/is-array-iterator-method"),re=a("../internals/array-buffer-view-core").aTypedArrayConstructor;Te.exports=function(se){var ce=oe(this),pe=ie(se),me=arguments.length,he=me>1?arguments[1]:void 0,be=he!==void 0,Pe=x(pe),Me,_e,De,Ce,Ee,je;if(Pe&&!ne(Pe))for(Ee=le(pe,Pe),je=Ee.next,pe=[];!(Ce=E(je,Ee)).done;)pe.push(Ce.value);for(be&&me>2&&(he=z(he,arguments[2])),_e=ee(pe),De=new(re(ce))(_e),Me=0;_e>Me;Me++)De[Me]=be?he(pe[Me],Me):pe[Me];return De}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(a,Te,xe){var z=a("../internals/array-buffer-view-core"),E=a("../internals/species-constructor"),oe=z.TYPED_ARRAY_CONSTRUCTOR,ie=z.aTypedArrayConstructor;Te.exports=function(ee){return ie(E(ee,ee[oe]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(a,Te,xe){var z=a("../internals/function-uncurry-this"),E=0,oe=Math.random(),ie=z(1 .toString);Te.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+ie(++E+oe,36)}},{"../internals/function-uncurry-this":157}],264:[function(a,Te,xe){var z=a("../internals/native-symbol");Te.exports=z&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(a,Te,xe){var z=a("../internals/descriptors"),E=a("../internals/fails");Te.exports=z&&E(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(a,Te,xe){var z=a("../internals/global"),E=z.TypeError;Te.exports=function(oe,ie){if(oe<ie)throw E("Not enough arguments");return oe}},{"../internals/global":163}],267:[function(a,Te,xe){var z=a("../internals/well-known-symbol");xe.f=z},{"../internals/well-known-symbol":268}],268:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/shared"),oe=a("../internals/has-own-property"),ie=a("../internals/uid"),ee=a("../internals/native-symbol"),le=a("../internals/use-symbol-as-uid"),x=E("wks"),ne=z.Symbol,re=ne&&ne.for,ae=le?ne:ne&&ne.withoutSetter||ie;Te.exports=function(se){if(!oe(x,se)||!(ee||typeof x[se]=="string")){var ce="Symbol."+se;ee&&oe(ne,se)?x[se]=ne[se]:le&&re?x[se]=re(ce):x[se]=ae(ce)}return x[se]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(a,Te,xe){Te.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/global"),oe=a("../internals/array-buffer"),ie=a("../internals/set-species"),ee="ArrayBuffer",le=oe[ee],x=E[ee];z({global:!0,forced:x!==le},{ArrayBuffer:le}),ie(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/function-uncurry-this"),oe=a("../internals/fails"),ie=a("../internals/array-buffer"),ee=a("../internals/an-object"),le=a("../internals/to-absolute-index"),x=a("../internals/to-length"),ne=a("../internals/species-constructor"),re=ie.ArrayBuffer,ae=ie.DataView,se=ae.prototype,ce=E(re.prototype.slice),pe=E(se.getUint8),me=E(se.setUint8),he=oe(function(){return!new re(2).slice(1,void 0).byteLength});z({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:he},{slice:function(Pe,Me){if(ce&&Me===void 0)return ce(ee(this),Pe);for(var _e=ee(this).byteLength,De=le(Pe,_e),Ce=le(Me===void 0?_e:Me,_e),Ee=new(ne(this,re))(x(Ce-De)),je=new ae(this),ke=new ae(Ee),Be=0;De<Ce;)me(ke,Be++,pe(je,De++));return Ee}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/global"),oe=a("../internals/fails"),ie=a("../internals/is-array"),ee=a("../internals/is-object"),le=a("../internals/to-object"),x=a("../internals/length-of-array-like"),ne=a("../internals/create-property"),re=a("../internals/array-species-create"),ae=a("../internals/array-method-has-species-support"),se=a("../internals/well-known-symbol"),ce=a("../internals/engine-v8-version"),pe=se("isConcatSpreadable"),me=9007199254740991,he="Maximum allowed index exceeded",be=E.TypeError,Pe=ce>=51||!oe(function(){var Ce=[];return Ce[pe]=!1,Ce.concat()[0]!==Ce}),Me=ae("concat"),_e=function(Ce){if(!ee(Ce))return!1;var Ee=Ce[pe];return Ee!==void 0?!!Ee:ie(Ce)},De=!Pe||!Me;z({target:"Array",proto:!0,forced:De},{concat:function(Ee){var je=le(this),ke=re(je,0),Be=0,Ae,ve,Ue,He,Ye;for(Ae=-1,Ue=arguments.length;Ae<Ue;Ae++)if(Ye=Ae===-1?je:arguments[Ae],_e(Ye)){if(He=x(Ye),Be+He>me)throw be(he);for(ve=0;ve<He;ve++,Be++)ve in Ye&&ne(ke,Be,Ye[ve])}else{if(Be>=me)throw be(he);ne(ke,Be++,Ye)}return ke.length=Be,ke}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(a,Te,xe){var z=a("../internals/export"),E=a("../internals/array-fill"),oe=a("../internals/add-to-unscopables");z({target:"Array",proto:!0},{fill:E}),oe("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/array-iteration").filter,oe=a("../internals/array-method-has-species-support"),ie=oe("filter");z({target:"Array",proto:!0,forced:!ie},{filter:function(le){return E(this,le,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/array-iteration").find,oe=a("../internals/add-to-unscopables"),ie="find",ee=!0;ie in[]&&Array(1)[ie](function(){ee=!1}),z({target:"Array",proto:!0,forced:ee},{find:function(x){return E(this,x,arguments.length>1?arguments[1]:void 0)}}),oe(ie)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(a,Te,xe){var z=a("../internals/export"),E=a("../internals/array-from"),oe=a("../internals/check-correctness-of-iteration"),ie=!oe(function(ee){Array.from(ee)});z({target:"Array",stat:!0,forced:ie},{from:E})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/array-includes").includes,oe=a("../internals/add-to-unscopables");z({target:"Array",proto:!0},{includes:function(ee){return E(this,ee,arguments.length>1?arguments[1]:void 0)}}),oe("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(a,Te,xe){"use strict";var z=a("../internals/to-indexed-object"),E=a("../internals/add-to-unscopables"),oe=a("../internals/iterators"),ie=a("../internals/internal-state"),ee=a("../internals/object-define-property").f,le=a("../internals/define-iterator"),x=a("../internals/is-pure"),ne=a("../internals/descriptors"),re="Array Iterator",ae=ie.set,se=ie.getterFor(re);Te.exports=le(Array,"Array",function(pe,me){ae(this,{type:re,target:z(pe),index:0,kind:me})},function(){var pe=se(this),me=pe.target,he=pe.kind,be=pe.index++;return!me||be>=me.length?(pe.target=void 0,{value:void 0,done:!0}):he=="keys"?{value:be,done:!1}:he=="values"?{value:me[be],done:!1}:{value:[be,me[be]],done:!1}},"values");var ce=oe.Arguments=oe.Array;if(E("keys"),E("values"),E("entries"),!x&&ne&&ce.name!=="values")try{ee(ce,"name",{value:"values"})}catch(pe){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/function-uncurry-this"),oe=a("../internals/indexed-object"),ie=a("../internals/to-indexed-object"),ee=a("../internals/array-method-is-strict"),le=E([].join),x=oe!=Object,ne=ee("join",",");z({target:"Array",proto:!0,forced:x||!ne},{join:function(ae){return le(ie(this),ae===void 0?",":ae)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/array-iteration").map,oe=a("../internals/array-method-has-species-support"),ie=oe("map");z({target:"Array",proto:!0,forced:!ie},{map:function(le){return E(this,le,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/global"),oe=a("../internals/is-array"),ie=a("../internals/is-constructor"),ee=a("../internals/is-object"),le=a("../internals/to-absolute-index"),x=a("../internals/length-of-array-like"),ne=a("../internals/to-indexed-object"),re=a("../internals/create-property"),ae=a("../internals/well-known-symbol"),se=a("../internals/array-method-has-species-support"),ce=a("../internals/array-slice"),pe=se("slice"),me=ae("species"),he=E.Array,be=Math.max;z({target:"Array",proto:!0,forced:!pe},{slice:function(Me,_e){var De=ne(this),Ce=x(De),Ee=le(Me,Ce),je=le(_e===void 0?Ce:_e,Ce),ke,Be,Ae;if(oe(De)&&(ke=De.constructor,ie(ke)&&(ke===he||oe(ke.prototype))?ke=void 0:ee(ke)&&(ke=ke[me],ke===null&&(ke=void 0)),ke===he||ke===void 0))return ce(De,Ee,je);for(Be=new(ke===void 0?he:ke)(be(je-Ee,0)),Ae=0;Ee<je;Ee++,Ae++)Ee in De&&re(Be,Ae,De[Ee]);return Be.length=Ae,Be}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/function-uncurry-this"),oe=a("../internals/a-callable"),ie=a("../internals/to-object"),ee=a("../internals/length-of-array-like"),le=a("../internals/to-string"),x=a("../internals/fails"),ne=a("../internals/array-sort"),re=a("../internals/array-method-is-strict"),ae=a("../internals/engine-ff-version"),se=a("../internals/engine-is-ie-or-edge"),ce=a("../internals/engine-v8-version"),pe=a("../internals/engine-webkit-version"),me=[],he=E(me.sort),be=E(me.push),Pe=x(function(){me.sort(void 0)}),Me=x(function(){me.sort(null)}),_e=re("sort"),De=!x(function(){if(ce)return ce<70;if(!(ae&&ae>3)){if(se)return!0;if(pe)return pe<603;var je="",ke,Be,Ae,ve;for(ke=65;ke<76;ke++){switch(Be=String.fromCharCode(ke),ke){case 66:case 69:case 70:case 72:Ae=3;break;case 68:case 71:Ae=4;break;default:Ae=2}for(ve=0;ve<47;ve++)me.push({k:Be+ve,v:Ae})}for(me.sort(function(Ue,He){return He.v-Ue.v}),ve=0;ve<me.length;ve++)Be=me[ve].k.charAt(0),je.charAt(je.length-1)!==Be&&(je+=Be);return je!=="DGBEFHACIJK"}}),Ce=Pe||!Me||!_e||!De,Ee=function(je){return function(ke,Be){return Be===void 0?-1:ke===void 0?1:je!==void 0?+je(ke,Be)||0:le(ke)>le(Be)?1:-1}};z({target:"Array",proto:!0,forced:Ce},{sort:function(ke){ke!==void 0&&oe(ke);var Be=ie(this);if(De)return ke===void 0?he(Be):he(Be,ke);var Ae=[],ve=ee(Be),Ue,He;for(He=0;He<ve;He++)He in Be&&be(Ae,Be[He]);for(ne(Ae,Ee(ke)),Ue=Ae.length,He=0;He<Ue;)Be[He]=Ae[He++];for(;He<ve;)delete Be[He++];return Be}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/global"),oe=a("../internals/to-absolute-index"),ie=a("../internals/to-integer-or-infinity"),ee=a("../internals/length-of-array-like"),le=a("../internals/to-object"),x=a("../internals/array-species-create"),ne=a("../internals/create-property"),re=a("../internals/array-method-has-species-support"),ae=re("splice"),se=E.TypeError,ce=Math.max,pe=Math.min,me=9007199254740991,he="Maximum allowed length exceeded";z({target:"Array",proto:!0,forced:!ae},{splice:function(Pe,Me){var _e=le(this),De=ee(_e),Ce=oe(Pe,De),Ee=arguments.length,je,ke,Be,Ae,ve,Ue;if(Ee===0?je=ke=0:Ee===1?(je=0,ke=De-Ce):(je=Ee-2,ke=pe(ce(ie(Me),0),De-Ce)),De+je-ke>me)throw se(he);for(Be=x(_e,ke),Ae=0;Ae<ke;Ae++)ve=Ce+Ae,ve in _e&&ne(Be,Ae,_e[ve]);if(Be.length=ke,je<ke){for(Ae=Ce;Ae<De-ke;Ae++)ve=Ae+ke,Ue=Ae+je,ve in _e?_e[Ue]=_e[ve]:delete _e[Ue];for(Ae=De;Ae>De-ke+je;Ae--)delete _e[Ae-1]}else if(je>ke)for(Ae=De-ke;Ae>Ce;Ae--)ve=Ae+ke-1,Ue=Ae+je-1,ve in _e?_e[Ue]=_e[ve]:delete _e[Ue];for(Ae=0;Ae<je;Ae++)_e[Ae+Ce]=arguments[Ae+2];return _e.length=De-ke+je,Be}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(a,Te,xe){var z=a("../internals/descriptors"),E=a("../internals/function-name").EXISTS,oe=a("../internals/function-uncurry-this"),ie=a("../internals/object-define-property").f,ee=Function.prototype,le=oe(ee.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ne=oe(x.exec),re="name";z&&!E&&ie(ee,re,{configurable:!0,get:function(){try{return ne(x,le(this))[1]}catch(ae){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(a,Te,xe){var z=a("../internals/export"),E=a("../internals/get-built-in"),oe=a("../internals/function-apply"),ie=a("../internals/function-call"),ee=a("../internals/function-uncurry-this"),le=a("../internals/fails"),x=a("../internals/is-array"),ne=a("../internals/is-callable"),re=a("../internals/is-object"),ae=a("../internals/is-symbol"),se=a("../internals/array-slice"),ce=a("../internals/native-symbol"),pe=E("JSON","stringify"),me=ee(/./.exec),he=ee("".charAt),be=ee("".charCodeAt),Pe=ee("".replace),Me=ee(1 .toString),_e=/[\uD800-\uDFFF]/g,De=/^[\uD800-\uDBFF]$/,Ce=/^[\uDC00-\uDFFF]$/,Ee=!ce||le(function(){var Ae=E("Symbol")();return pe([Ae])!="[null]"||pe({a:Ae})!="{}"||pe(Object(Ae))!="{}"}),je=le(function(){return pe("\uDF06\uD834")!=='"\\udf06\\ud834"'||pe("\uDEAD")!=='"\\udead"'}),ke=function(Ae,ve){var Ue=se(arguments),He=ve;if(!(!re(ve)&&Ae===void 0||ae(Ae)))return x(ve)||(ve=function(Ye,ot){if(ne(He)&&(ot=ie(He,this,Ye,ot)),!ae(ot))return ot}),Ue[1]=ve,oe(pe,null,Ue)},Be=function(Ae,ve,Ue){var He=he(Ue,ve-1),Ye=he(Ue,ve+1);return me(De,Ae)&&!me(Ce,Ye)||me(Ce,Ae)&&!me(De,He)?"\\u"+Me(be(Ae,0),16):Ae};pe&&z({target:"JSON",stat:!0,forced:Ee||je},{stringify:function(ve,Ue,He){var Ye=se(arguments),ot=oe(Ee?ke:pe,null,Ye);return je&&typeof ot=="string"?Pe(ot,_e,Be):ot}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(a,Te,xe){"use strict";var z=a("../internals/descriptors"),E=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ie=a("../internals/is-forced"),ee=a("../internals/redefine"),le=a("../internals/has-own-property"),x=a("../internals/inherit-if-required"),ne=a("../internals/object-is-prototype-of"),re=a("../internals/is-symbol"),ae=a("../internals/to-primitive"),se=a("../internals/fails"),ce=a("../internals/object-get-own-property-names").f,pe=a("../internals/object-get-own-property-descriptor").f,me=a("../internals/object-define-property").f,he=a("../internals/this-number-value"),be=a("../internals/string-trim").trim,Pe="Number",Me=E[Pe],_e=Me.prototype,De=E.TypeError,Ce=oe("".slice),Ee=oe("".charCodeAt),je=function(He){var Ye=ae(He,"number");return typeof Ye=="bigint"?Ye:ke(Ye)},ke=function(He){var Ye=ae(He,"number"),ot,Fe,Ke,rt,nt,et,Ge,Xe;if(re(Ye))throw De("Cannot convert a Symbol value to a number");if(typeof Ye=="string"&&Ye.length>2){if(Ye=be(Ye),ot=Ee(Ye,0),ot===43||ot===45){if(Fe=Ee(Ye,2),Fe===88||Fe===120)return NaN}else if(ot===48){switch(Ee(Ye,1)){case 66:case 98:Ke=2,rt=49;break;case 79:case 111:Ke=8,rt=55;break;default:return+Ye}for(nt=Ce(Ye,2),et=nt.length,Ge=0;Ge<et;Ge++)if(Xe=Ee(nt,Ge),Xe<48||Xe>rt)return NaN;return parseInt(nt,Ke)}}return+Ye};if(ie(Pe,!Me(" 0o1")||!Me("0b1")||Me("+0x1"))){for(var Be=function(Ye){var ot=arguments.length<1?0:Me(je(Ye)),Fe=this;return ne(_e,Fe)&&se(function(){he(Fe)})?x(Object(ot),Fe,Be):ot},Ae=z?ce(Me):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),ve=0,Ue;Ae.length>ve;ve++)le(Me,Ue=Ae[ve])&&!le(Be,Ue)&&me(Be,Ue,pe(Me,Ue));Be.prototype=_e,_e.constructor=Be,ee(E,Pe,Be)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(a,Te,xe){var z=a("../internals/export"),E=a("../internals/object-assign");z({target:"Object",stat:!0,forced:Object.assign!==E},{assign:E})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(a,Te,xe){var z=a("../internals/export"),E=a("../internals/object-to-array").entries;z({target:"Object",stat:!0},{entries:function(ie){return E(ie)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(a,Te,xe){var z=a("../internals/export"),E=a("../internals/native-symbol"),oe=a("../internals/fails"),ie=a("../internals/object-get-own-property-symbols"),ee=a("../internals/to-object"),le=!E||oe(function(){ie.f(1)});z({target:"Object",stat:!0,forced:le},{getOwnPropertySymbols:function(ne){var re=ie.f;return re?re(ee(ne)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(a,Te,xe){var z=a("../internals/export"),E=a("../internals/to-object"),oe=a("../internals/object-keys"),ie=a("../internals/fails"),ee=ie(function(){oe(1)});z({target:"Object",stat:!0,forced:ee},{keys:function(x){return oe(E(x))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(a,Te,xe){var z=a("../internals/to-string-tag-support"),E=a("../internals/redefine"),oe=a("../internals/object-to-string");z||E(Object.prototype,"toString",oe,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/function-call"),oe=a("../internals/a-callable"),ie=a("../internals/new-promise-capability"),ee=a("../internals/perform"),le=a("../internals/iterate"),x=a("../internals/promise-statics-incorrect-iteration");z({target:"Promise",stat:!0,forced:x},{all:function(re){var ae=this,se=ie.f(ae),ce=se.resolve,pe=se.reject,me=ee(function(){var he=oe(ae.resolve),be=[],Pe=0,Me=1;le(re,function(_e){var De=Pe++,Ce=!1;Me++,E(he,ae,_e).then(function(Ee){Ce||(Ce=!0,be[De]=Ee,--Me||ce(be))},pe)}),--Me||ce(be)});return me.error&&pe(me.value),se.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/is-pure"),oe=a("../internals/promise-constructor-detection").CONSTRUCTOR,ie=a("../internals/promise-native-constructor"),ee=a("../internals/get-built-in"),le=a("../internals/is-callable"),x=a("../internals/redefine"),ne=ie&&ie.prototype;if(z({target:"Promise",proto:!0,forced:oe,real:!0},{catch:function(ae){return this.then(void 0,ae)}}),!E&&le(ie)){var re=ee("Promise").prototype.catch;ne.catch!==re&&x(ne,"catch",re,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/is-pure"),oe=a("../internals/engine-is-node"),ie=a("../internals/global"),ee=a("../internals/function-call"),le=a("../internals/redefine"),x=a("../internals/redefine-all"),ne=a("../internals/object-set-prototype-of"),re=a("../internals/set-to-string-tag"),ae=a("../internals/set-species"),se=a("../internals/a-callable"),ce=a("../internals/is-callable"),pe=a("../internals/is-object"),me=a("../internals/an-instance"),he=a("../internals/species-constructor"),be=a("../internals/task").set,Pe=a("../internals/microtask"),Me=a("../internals/host-report-errors"),_e=a("../internals/perform"),De=a("../internals/queue"),Ce=a("../internals/internal-state"),Ee=a("../internals/promise-native-constructor"),je=a("../internals/promise-constructor-detection"),ke=a("../internals/new-promise-capability"),Be="Promise",Ae=je.CONSTRUCTOR,ve=je.REJECTION_EVENT,Ue=je.SUBCLASSING,He=Ce.getterFor(Be),Ye=Ce.set,ot=Ee&&Ee.prototype,Fe=Ee,Ke=ot,rt=ie.TypeError,nt=ie.document,et=ie.process,Ge=ke.f,Xe=Ge,Ve=!!(nt&&nt.createEvent&&ie.dispatchEvent),tt="unhandledrejection",Qe="rejectionhandled",ct=0,at=1,qe=2,Le=1,Ne=2,te,de,Re,We,we=function(St){var Ot;return pe(St)&&ce(Ot=St.then)?Ot:!1},ye=function(St,Ot){var yt=Ot.value,Dt=Ot.state==at,Et=Dt?St.ok:St.fail,xt=St.resolve,At=St.reject,It=St.domain,ht,Ct,Ht;try{Et?(Dt||(Ot.rejection===Ne&&st(Ot),Ot.rejection=Le),Et===!0?ht=yt:(It&&It.enter(),ht=Et(yt),It&&(It.exit(),Ht=!0)),ht===St.promise?At(rt("Promise-chain cycle")):(Ct=we(ht))?ee(Ct,ht,xt,At):xt(ht)):At(yt)}catch(Vt){It&&!Ht&&It.exit(),At(Vt)}},Oe=function(St,Ot){St.notified||(St.notified=!0,Pe(function(){for(var yt=St.reactions,Dt;Dt=yt.get();)ye(Dt,St);St.notified=!1,Ot&&!St.rejection&&Ze(St)}))},$e=function(St,Ot,yt){var Dt,Et;Ve?(Dt=nt.createEvent("Event"),Dt.promise=Ot,Dt.reason=yt,Dt.initEvent(St,!1,!0),ie.dispatchEvent(Dt)):Dt={promise:Ot,reason:yt},!ve&&(Et=ie["on"+St])?Et(Dt):St===tt&&Me("Unhandled promise rejection",yt)},Ze=function(St){ee(be,ie,function(){var Ot=St.facade,yt=St.value,Dt=Je(St),Et;if(Dt&&(Et=_e(function(){oe?et.emit("unhandledRejection",yt,Ot):$e(tt,Ot,yt)}),St.rejection=oe||Je(St)?Ne:Le,Et.error))throw Et.value})},Je=function(St){return St.rejection!==Le&&!St.parent},st=function(St){ee(be,ie,function(){var Ot=St.facade;oe?et.emit("rejectionHandled",Ot):$e(Qe,Ot,St.value)})},lt=function(St,Ot,yt){return function(Dt){St(Ot,Dt,yt)}},ft=function(St,Ot,yt){St.done||(St.done=!0,yt&&(St=yt),St.value=Ot,St.state=qe,Oe(St,!0))},Tt=function(St,Ot,yt){if(!St.done){St.done=!0,yt&&(St=yt);try{if(St.facade===Ot)throw rt("Promise can't be resolved itself");var Dt=we(Ot);Dt?Pe(function(){var Et={done:!1};try{ee(Dt,Ot,lt(Tt,Et,St),lt(ft,Et,St))}catch(xt){ft(Et,xt,St)}}):(St.value=Ot,St.state=at,Oe(St,!1))}catch(Et){ft({done:!1},Et,St)}}};if(Ae&&(Fe=function(Ot){me(this,Ke),se(Ot),ee(te,this);var yt=He(this);try{Ot(lt(Tt,yt),lt(ft,yt))}catch(Dt){ft(yt,Dt)}},Ke=Fe.prototype,te=function(Ot){Ye(this,{type:Be,done:!1,notified:!1,parent:!1,reactions:new De,rejection:!1,state:ct,value:void 0})},te.prototype=x(Ke,{then:function(Ot,yt){var Dt=He(this),Et=Ge(he(this,Fe));return Dt.parent=!0,Et.ok=ce(Ot)?Ot:!0,Et.fail=ce(yt)&&yt,Et.domain=oe?et.domain:void 0,Dt.state==ct?Dt.reactions.add(Et):Pe(function(){ye(Et,Dt)}),Et.promise}}),de=function(){var St=new te,Ot=He(St);this.promise=St,this.resolve=lt(Tt,Ot),this.reject=lt(ft,Ot)},ke.f=Ge=function(St){return St===Fe||St===Re?new de(St):Xe(St)},!E&&ce(Ee)&&ot!==Object.prototype)){We=ot.then,Ue||le(ot,"then",function(Ot,yt){var Dt=this;return new Fe(function(Et,xt){ee(We,Dt,Et,xt)}).then(Ot,yt)},{unsafe:!0});try{delete ot.constructor}catch(St){}ne&&ne(ot,Ke)}z({global:!0,wrap:!0,forced:Ae},{Promise:Fe}),re(Fe,Be,!1,!0),ae(Be)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(a,Te,xe){a("../modules/es.promise.constructor"),a("../modules/es.promise.all"),a("../modules/es.promise.catch"),a("../modules/es.promise.race"),a("../modules/es.promise.reject"),a("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/function-call"),oe=a("../internals/a-callable"),ie=a("../internals/new-promise-capability"),ee=a("../internals/perform"),le=a("../internals/iterate"),x=a("../internals/promise-statics-incorrect-iteration");z({target:"Promise",stat:!0,forced:x},{race:function(re){var ae=this,se=ie.f(ae),ce=se.reject,pe=ee(function(){var me=oe(ae.resolve);le(re,function(he){E(me,ae,he).then(se.resolve,ce)})});return pe.error&&ce(pe.value),se.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/function-call"),oe=a("../internals/new-promise-capability"),ie=a("../internals/promise-constructor-detection").CONSTRUCTOR;z({target:"Promise",stat:!0,forced:ie},{reject:function(le){var x=oe.f(this);return E(x.reject,void 0,le),x.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/get-built-in"),oe=a("../internals/is-pure"),ie=a("../internals/promise-native-constructor"),ee=a("../internals/promise-constructor-detection").CONSTRUCTOR,le=a("../internals/promise-resolve"),x=E("Promise"),ne=oe&&!ee;z({target:"Promise",stat:!0,forced:oe||ee},{resolve:function(ae){return le(ne&&this===x?ie:this,ae)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(a,Te,xe){var z=a("../internals/descriptors"),E=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ie=a("../internals/is-forced"),ee=a("../internals/inherit-if-required"),le=a("../internals/create-non-enumerable-property"),x=a("../internals/object-get-own-property-names").f,ne=a("../internals/object-is-prototype-of"),re=a("../internals/is-regexp"),ae=a("../internals/to-string"),se=a("../internals/regexp-get-flags"),ce=a("../internals/regexp-sticky-helpers"),pe=a("../internals/proxy-accessor"),me=a("../internals/redefine"),he=a("../internals/fails"),be=a("../internals/has-own-property"),Pe=a("../internals/internal-state").enforce,Me=a("../internals/set-species"),_e=a("../internals/well-known-symbol"),De=a("../internals/regexp-unsupported-dot-all"),Ce=a("../internals/regexp-unsupported-ncg"),Ee=_e("match"),je=E.RegExp,ke=je.prototype,Be=E.SyntaxError,Ae=oe(ke.exec),ve=oe("".charAt),Ue=oe("".replace),He=oe("".indexOf),Ye=oe("".slice),ot=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Fe=/a/g,Ke=/a/g,rt=new je(Fe)!==Fe,nt=ce.MISSED_STICKY,et=ce.UNSUPPORTED_Y,Ge=z&&(!rt||nt||De||Ce||he(function(){return Ke[Ee]=!1,je(Fe)!=Fe||je(Ke)==Ke||je(Fe,"i")!="/a/i"})),Xe=function(at){for(var qe=at.length,Le=0,Ne="",te=!1,de;Le<=qe;Le++){if(de=ve(at,Le),de==="\\"){Ne+=de+ve(at,++Le);continue}!te&&de==="."?Ne+="[\\s\\S]":(de==="["?te=!0:de==="]"&&(te=!1),Ne+=de)}return Ne},Ve=function(at){for(var qe=at.length,Le=0,Ne="",te=[],de={},Re=!1,We=!1,we=0,ye="",Oe;Le<=qe;Le++){if(Oe=ve(at,Le),Oe==="\\")Oe=Oe+ve(at,++Le);else if(Oe==="]")Re=!1;else if(!Re)switch(!0){case Oe==="[":Re=!0;break;case Oe==="(":Ae(ot,Ye(at,Le+1))&&(Le+=2,We=!0),Ne+=Oe,we++;continue;case(Oe===">"&&We):if(ye===""||be(de,ye))throw new Be("Invalid capture group name");de[ye]=!0,te[te.length]=[ye,we],We=!1,ye="";continue}We?ye+=Oe:Ne+=Oe}return[Ne,te]};if(ie("RegExp",Ge)){for(var tt=function(qe,Le){var Ne=ne(ke,this),te=re(qe),de=Le===void 0,Re=[],We=qe,we,ye,Oe,$e,Ze,Je;if(!Ne&&te&&de&&qe.constructor===tt)return qe;if((te||ne(ke,qe))&&(qe=qe.source,de&&(Le=se(We))),qe=qe===void 0?"":ae(qe),Le=Le===void 0?"":ae(Le),We=qe,De&&"dotAll"in Fe&&(ye=!!Le&&He(Le,"s")>-1,ye&&(Le=Ue(Le,/s/g,""))),we=Le,nt&&"sticky"in Fe&&(Oe=!!Le&&He(Le,"y")>-1,Oe&&et&&(Le=Ue(Le,/y/g,""))),Ce&&($e=Ve(qe),qe=$e[0],Re=$e[1]),Ze=ee(je(qe,Le),Ne?this:ke,tt),(ye||Oe||Re.length)&&(Je=Pe(Ze),ye&&(Je.dotAll=!0,Je.raw=tt(Xe(qe),we)),Oe&&(Je.sticky=!0),Re.length&&(Je.groups=Re)),qe!==We)try{le(Ze,"source",We===""?"(?:)":We)}catch(st){}return Ze},Qe=x(je),ct=0;Qe.length>ct;)pe(tt,je,Qe[ct++]);ke.constructor=tt,tt.prototype=ke,me(E,"RegExp",tt)}Me("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/regexp-exec");z({target:"RegExp",proto:!0,forced:/./.exec!==E},{exec:E})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(a,Te,xe){"use strict";var z=a("../internals/function-name").PROPER,E=a("../internals/redefine"),oe=a("../internals/an-object"),ie=a("../internals/to-string"),ee=a("../internals/fails"),le=a("../internals/regexp-get-flags"),x="toString",ne=RegExp.prototype,re=ne[x],ae=ee(function(){return re.call({source:"a",flags:"b"})!="/a/b"}),se=z&&re.name!=x;(ae||se)&&E(RegExp.prototype,x,function(){var pe=oe(this),me=ie(pe.source),he=ie(le(pe));return"/"+me+"/"+he},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/function-uncurry-this"),oe=a("../internals/not-a-regexp"),ie=a("../internals/require-object-coercible"),ee=a("../internals/to-string"),le=a("../internals/correct-is-regexp-logic"),x=E("".indexOf);z({target:"String",proto:!0,forced:!le("includes")},{includes:function(re){return!!~x(ee(ie(this)),ee(oe(re)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(a,Te,xe){"use strict";var z=a("../internals/string-multibyte").charAt,E=a("../internals/to-string"),oe=a("../internals/internal-state"),ie=a("../internals/define-iterator"),ee="String Iterator",le=oe.set,x=oe.getterFor(ee);ie(String,"String",function(ne){le(this,{type:ee,string:E(ne),index:0})},function(){var re=x(this),ae=re.string,se=re.index,ce;return se>=ae.length?{value:void 0,done:!0}:(ce=z(ae,se),re.index+=ce.length,{value:ce,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(a,Te,xe){"use strict";var z=a("../internals/function-call"),E=a("../internals/fix-regexp-well-known-symbol-logic"),oe=a("../internals/an-object"),ie=a("../internals/to-length"),ee=a("../internals/to-string"),le=a("../internals/require-object-coercible"),x=a("../internals/get-method"),ne=a("../internals/advance-string-index"),re=a("../internals/regexp-exec-abstract");E("match",function(ae,se,ce){return[function(me){var he=le(this),be=me==null?void 0:x(me,ae);return be?z(be,me,he):new RegExp(me)[ae](ee(he))},function(pe){var me=oe(this),he=ee(pe),be=ce(se,me,he);if(be.done)return be.value;if(!me.global)return re(me,he);var Pe=me.unicode;me.lastIndex=0;for(var Me=[],_e=0,De;(De=re(me,he))!==null;){var Ce=ee(De[0]);Me[_e]=Ce,Ce===""&&(me.lastIndex=ne(he,ie(me.lastIndex),Pe)),_e++}return _e===0?null:Me}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(a,Te,xe){"use strict";var z=a("../internals/function-apply"),E=a("../internals/function-call"),oe=a("../internals/function-uncurry-this"),ie=a("../internals/fix-regexp-well-known-symbol-logic"),ee=a("../internals/fails"),le=a("../internals/an-object"),x=a("../internals/is-callable"),ne=a("../internals/to-integer-or-infinity"),re=a("../internals/to-length"),ae=a("../internals/to-string"),se=a("../internals/require-object-coercible"),ce=a("../internals/advance-string-index"),pe=a("../internals/get-method"),me=a("../internals/get-substitution"),he=a("../internals/regexp-exec-abstract"),be=a("../internals/well-known-symbol"),Pe=be("replace"),Me=Math.max,_e=Math.min,De=oe([].concat),Ce=oe([].push),Ee=oe("".indexOf),je=oe("".slice),ke=function(Ue){return Ue===void 0?Ue:String(Ue)},Be=function(){return"a".replace(/./,"$0")==="$0"}(),Ae=function(){return/./[Pe]?/./[Pe]("a","$0")==="":!1}(),ve=!ee(function(){var Ue=/./;return Ue.exec=function(){var He=[];return He.groups={a:"7"},He},"".replace(Ue,"$<a>")!=="7"});ie("replace",function(Ue,He,Ye){var ot=Ae?"$":"$0";return[function(Ke,rt){var nt=se(this),et=Ke==null?void 0:pe(Ke,Pe);return et?E(et,Ke,nt,rt):E(He,ae(nt),Ke,rt)},function(Fe,Ke){var rt=le(this),nt=ae(Fe);if(typeof Ke=="string"&&Ee(Ke,ot)===-1&&Ee(Ke,"$<")===-1){var et=Ye(He,rt,nt,Ke);if(et.done)return et.value}var Ge=x(Ke);Ge||(Ke=ae(Ke));var Xe=rt.global;if(Xe){var Ve=rt.unicode;rt.lastIndex=0}for(var tt=[];;){var Qe=he(rt,nt);if(Qe===null||(Ce(tt,Qe),!Xe))break;var ct=ae(Qe[0]);ct===""&&(rt.lastIndex=ce(nt,re(rt.lastIndex),Ve))}for(var at="",qe=0,Le=0;Le<tt.length;Le++){Qe=tt[Le];for(var Ne=ae(Qe[0]),te=Me(_e(ne(Qe.index),nt.length),0),de=[],Re=1;Re<Qe.length;Re++)Ce(de,ke(Qe[Re]));var We=Qe.groups;if(Ge){var we=De([Ne],de,te,nt);We!==void 0&&Ce(we,We);var ye=ae(z(Ke,void 0,we))}else ye=me(Ne,nt,te,de,We,Ke);te>=qe&&(at+=je(nt,qe,te)+ye,qe=te+Ne.length)}return at+je(nt,qe)}]},!ve||!Be||Ae)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(a,Te,xe){"use strict";var z=a("../internals/function-call"),E=a("../internals/fix-regexp-well-known-symbol-logic"),oe=a("../internals/an-object"),ie=a("../internals/require-object-coercible"),ee=a("../internals/same-value"),le=a("../internals/to-string"),x=a("../internals/get-method"),ne=a("../internals/regexp-exec-abstract");E("search",function(re,ae,se){return[function(pe){var me=ie(this),he=pe==null?void 0:x(pe,re);return he?z(he,pe,me):new RegExp(pe)[re](le(me))},function(ce){var pe=oe(this),me=le(ce),he=se(ae,pe,me);if(he.done)return he.value;var be=pe.lastIndex;ee(be,0)||(pe.lastIndex=0);var Pe=ne(pe,me);return ee(pe.lastIndex,be)||(pe.lastIndex=be),Pe===null?-1:Pe.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(a,Te,xe){"use strict";var z=a("../internals/function-apply"),E=a("../internals/function-call"),oe=a("../internals/function-uncurry-this"),ie=a("../internals/fix-regexp-well-known-symbol-logic"),ee=a("../internals/is-regexp"),le=a("../internals/an-object"),x=a("../internals/require-object-coercible"),ne=a("../internals/species-constructor"),re=a("../internals/advance-string-index"),ae=a("../internals/to-length"),se=a("../internals/to-string"),ce=a("../internals/get-method"),pe=a("../internals/array-slice-simple"),me=a("../internals/regexp-exec-abstract"),he=a("../internals/regexp-exec"),be=a("../internals/regexp-sticky-helpers"),Pe=a("../internals/fails"),Me=be.UNSUPPORTED_Y,_e=4294967295,De=Math.min,Ce=[].push,Ee=oe(/./.exec),je=oe(Ce),ke=oe("".slice),Be=!Pe(function(){var Ae=/(?:)/,ve=Ae.exec;Ae.exec=function(){return ve.apply(this,arguments)};var Ue="ab".split(Ae);return Ue.length!==2||Ue[0]!=="a"||Ue[1]!=="b"});ie("split",function(Ae,ve,Ue){var He;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?He=function(Ye,ot){var Fe=se(x(this)),Ke=ot===void 0?_e:ot>>>0;if(Ke===0)return[];if(Ye===void 0)return[Fe];if(!ee(Ye))return E(ve,Fe,Ye,Ke);for(var rt=[],nt=(Ye.ignoreCase?"i":"")+(Ye.multiline?"m":"")+(Ye.unicode?"u":"")+(Ye.sticky?"y":""),et=0,Ge=new RegExp(Ye.source,nt+"g"),Xe,Ve,tt;(Xe=E(he,Ge,Fe))&&(Ve=Ge.lastIndex,!(Ve>et&&(je(rt,ke(Fe,et,Xe.index)),Xe.length>1&&Xe.index<Fe.length&&z(Ce,rt,pe(Xe,1)),tt=Xe[0].length,et=Ve,rt.length>=Ke)));)Ge.lastIndex===Xe.index&&Ge.lastIndex++;return et===Fe.length?(tt||!Ee(Ge,""))&&je(rt,""):je(rt,ke(Fe,et)),rt.length>Ke?pe(rt,0,Ke):rt}:"0".split(void 0,0).length?He=function(Ye,ot){return Ye===void 0&&ot===0?[]:E(ve,this,Ye,ot)}:He=ve,[function(ot,Fe){var Ke=x(this),rt=ot==null?void 0:ce(ot,Ae);return rt?E(rt,ot,Ke,Fe):E(He,se(Ke),ot,Fe)},function(Ye,ot){var Fe=le(this),Ke=se(Ye),rt=Ue(He,Fe,Ke,ot,He!==ve);if(rt.done)return rt.value;var nt=ne(Fe,RegExp),et=Fe.unicode,Ge=(Fe.ignoreCase?"i":"")+(Fe.multiline?"m":"")+(Fe.unicode?"u":"")+(Me?"g":"y"),Xe=new nt(Me?"^(?:"+Fe.source+")":Fe,Ge),Ve=ot===void 0?_e:ot>>>0;if(Ve===0)return[];if(Ke.length===0)return me(Xe,Ke)===null?[Ke]:[];for(var tt=0,Qe=0,ct=[];Qe<Ke.length;){Xe.lastIndex=Me?0:Qe;var at=me(Xe,Me?ke(Ke,Qe):Ke),qe;if(at===null||(qe=De(ae(Xe.lastIndex+(Me?Qe:0)),Ke.length))===tt)Qe=re(Ke,Qe,et);else{if(je(ct,ke(Ke,tt,Qe)),ct.length===Ve)return ct;for(var Le=1;Le<=at.length-1;Le++)if(je(ct,at[Le]),ct.length===Ve)return ct;Qe=tt=qe}}return je(ct,ke(Ke,tt)),ct}]},!Be,Me)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/string-trim").trim,oe=a("../internals/string-trim-forced");z({target:"String",proto:!0,forced:oe("trim")},{trim:function(){return E(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/global"),oe=a("../internals/function-call"),ie=a("../internals/function-uncurry-this"),ee=a("../internals/is-pure"),le=a("../internals/descriptors"),x=a("../internals/native-symbol"),ne=a("../internals/fails"),re=a("../internals/has-own-property"),ae=a("../internals/object-is-prototype-of"),se=a("../internals/an-object"),ce=a("../internals/to-indexed-object"),pe=a("../internals/to-property-key"),me=a("../internals/to-string"),he=a("../internals/create-property-descriptor"),be=a("../internals/object-create"),Pe=a("../internals/object-keys"),Me=a("../internals/object-get-own-property-names"),_e=a("../internals/object-get-own-property-names-external"),De=a("../internals/object-get-own-property-symbols"),Ce=a("../internals/object-get-own-property-descriptor"),Ee=a("../internals/object-define-property"),je=a("../internals/object-define-properties"),ke=a("../internals/object-property-is-enumerable"),Be=a("../internals/redefine"),Ae=a("../internals/shared"),ve=a("../internals/shared-key"),Ue=a("../internals/hidden-keys"),He=a("../internals/uid"),Ye=a("../internals/well-known-symbol"),ot=a("../internals/well-known-symbol-wrapped"),Fe=a("../internals/define-well-known-symbol"),Ke=a("../internals/symbol-define-to-primitive"),rt=a("../internals/set-to-string-tag"),nt=a("../internals/internal-state"),et=a("../internals/array-iteration").forEach,Ge=ve("hidden"),Xe="Symbol",Ve="prototype",tt=nt.set,Qe=nt.getterFor(Xe),ct=Object[Ve],at=E.Symbol,qe=at&&at[Ve],Le=E.TypeError,Ne=E.QObject,te=Ce.f,de=Ee.f,Re=_e.f,We=ke.f,we=ie([].push),ye=Ae("symbols"),Oe=Ae("op-symbols"),$e=Ae("wks"),Ze=!Ne||!Ne[Ve]||!Ne[Ve].findChild,Je=le&&ne(function(){return be(de({},"a",{get:function(){return de(this,"a",{value:7}).a}})).a!=7})?function(Et,xt,At){var It=te(ct,xt);It&&delete ct[xt],de(Et,xt,At),It&&Et!==ct&&de(ct,xt,It)}:de,st=function(Et,xt){var At=ye[Et]=be(qe);return tt(At,{type:Xe,tag:Et,description:xt}),le||(At.description=xt),At},lt=function(xt,At,It){xt===ct&&lt(Oe,At,It),se(xt);var ht=pe(At);return se(It),re(ye,ht)?(It.enumerable?(re(xt,Ge)&&xt[Ge][ht]&&(xt[Ge][ht]=!1),It=be(It,{enumerable:he(0,!1)})):(re(xt,Ge)||de(xt,Ge,he(1,{})),xt[Ge][ht]=!0),Je(xt,ht,It)):de(xt,ht,It)},ft=function(xt,At){se(xt);var It=ce(At),ht=Pe(It).concat(Dt(It));return et(ht,function(Ct){(!le||oe(St,It,Ct))&&lt(xt,Ct,It[Ct])}),xt},Tt=function(xt,At){return At===void 0?be(xt):ft(be(xt),At)},St=function(xt){var At=pe(xt),It=oe(We,this,At);return this===ct&&re(ye,At)&&!re(Oe,At)?!1:It||!re(this,At)||!re(ye,At)||re(this,Ge)&&this[Ge][At]?It:!0},Ot=function(xt,At){var It=ce(xt),ht=pe(At);if(!(It===ct&&re(ye,ht)&&!re(Oe,ht))){var Ct=te(It,ht);return Ct&&re(ye,ht)&&!(re(It,Ge)&&It[Ge][ht])&&(Ct.enumerable=!0),Ct}},yt=function(xt){var At=Re(ce(xt)),It=[];return et(At,function(ht){!re(ye,ht)&&!re(Ue,ht)&&we(It,ht)}),It},Dt=function(Et){var xt=Et===ct,At=Re(xt?Oe:ce(Et)),It=[];return et(At,function(ht){re(ye,ht)&&(!xt||re(ct,ht))&&we(It,ye[ht])}),It};x||(at=function(){if(ae(qe,this))throw Le("Symbol is not a constructor");var xt=!arguments.length||arguments[0]===void 0?void 0:me(arguments[0]),At=He(xt),It=function(ht){this===ct&&oe(It,Oe,ht),re(this,Ge)&&re(this[Ge],At)&&(this[Ge][At]=!1),Je(this,At,he(1,ht))};return le&&Ze&&Je(ct,At,{configurable:!0,set:It}),st(At,xt)},qe=at[Ve],Be(qe,"toString",function(){return Qe(this).tag}),Be(at,"withoutSetter",function(Et){return st(He(Et),Et)}),ke.f=St,Ee.f=lt,je.f=ft,Ce.f=Ot,Me.f=_e.f=yt,De.f=Dt,ot.f=function(Et){return st(Ye(Et),Et)},le&&(de(qe,"description",{configurable:!0,get:function(){return Qe(this).description}}),ee||Be(ct,"propertyIsEnumerable",St,{unsafe:!0}))),z({global:!0,wrap:!0,forced:!x,sham:!x},{Symbol:at}),et(Pe($e),function(Et){Fe(Et)}),z({target:Xe,stat:!0,forced:!x},{useSetter:function(){Ze=!0},useSimple:function(){Ze=!1}}),z({target:"Object",stat:!0,forced:!x,sham:!le},{create:Tt,defineProperty:lt,defineProperties:ft,getOwnPropertyDescriptor:Ot}),z({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:yt}),Ke(),rt(at,Xe),Ue[Ge]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(a,Te,xe){"use strict";var z=a("../internals/export"),E=a("../internals/descriptors"),oe=a("../internals/global"),ie=a("../internals/function-uncurry-this"),ee=a("../internals/has-own-property"),le=a("../internals/is-callable"),x=a("../internals/object-is-prototype-of"),ne=a("../internals/to-string"),re=a("../internals/object-define-property").f,ae=a("../internals/copy-constructor-properties"),se=oe.Symbol,ce=se&&se.prototype;if(E&&le(se)&&(!("description"in ce)||se().description!==void 0)){var pe={},me=function(){var Ee=arguments.length<1||arguments[0]===void 0?void 0:ne(arguments[0]),je=x(ce,this)?new se(Ee):Ee===void 0?se():se(Ee);return Ee===""&&(pe[je]=!0),je};ae(me,se),me.prototype=ce,ce.constructor=me;var he=String(se("test"))=="Symbol(test)",be=ie(ce.toString),Pe=ie(ce.valueOf),Me=/^Symbol\((.*)\)[^)]+$/,_e=ie("".replace),De=ie("".slice);re(ce,"description",{configurable:!0,get:function(){var Ee=Pe(this),je=be(Ee);if(ee(pe,Ee))return"";var ke=he?De(je,7,-1):_e(je,Me,"$1");return ke===""?void 0:ke}}),z({global:!0,forced:!0},{Symbol:me})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(a,Te,xe){var z=a("../internals/export"),E=a("../internals/get-built-in"),oe=a("../internals/has-own-property"),ie=a("../internals/to-string"),ee=a("../internals/shared"),le=a("../internals/native-symbol-registry"),x=ee("string-to-symbol-registry"),ne=ee("symbol-to-string-registry");z({target:"Symbol",stat:!0,forced:!le},{for:function(re){var ae=ie(re);if(oe(x,ae))return x[ae];var se=E("Symbol")(ae);return x[ae]=se,ne[se]=ae,se}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(a,Te,xe){var z=a("../internals/define-well-known-symbol");z("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(a,Te,xe){a("../modules/es.symbol.constructor"),a("../modules/es.symbol.for"),a("../modules/es.symbol.key-for"),a("../modules/es.json.stringify"),a("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(a,Te,xe){var z=a("../internals/export"),E=a("../internals/has-own-property"),oe=a("../internals/is-symbol"),ie=a("../internals/try-to-string"),ee=a("../internals/shared"),le=a("../internals/native-symbol-registry"),x=ee("symbol-to-string-registry");z({target:"Symbol",stat:!0,forced:!le},{keyFor:function(re){if(!oe(re))throw TypeError(ie(re)+" is not a symbol");if(E(x,re))return x[re]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(a,Te,xe){"use strict";var z=a("../internals/function-uncurry-this"),E=a("../internals/array-buffer-view-core"),oe=a("../internals/array-copy-within"),ie=z(oe),ee=E.aTypedArray,le=E.exportTypedArrayMethod;le("copyWithin",function(ne,re){return ie(ee(this),ne,re,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").every,oe=z.aTypedArray,ie=z.exportTypedArrayMethod;ie("every",function(le){return E(oe(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/function-call"),oe=a("../internals/array-fill"),ie=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("fill",function(x){var ne=arguments.length;return E(oe,ie(this),x,ne>1?arguments[1]:void 0,ne>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").filter,oe=a("../internals/typed-array-from-species-and-list"),ie=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("filter",function(x){var ne=E(ie(this),x,arguments.length>1?arguments[1]:void 0);return oe(this,ne)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").findIndex,oe=z.aTypedArray,ie=z.exportTypedArrayMethod;ie("findIndex",function(le){return E(oe(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").find,oe=z.aTypedArray,ie=z.exportTypedArrayMethod;ie("find",function(le){return E(oe(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").forEach,oe=z.aTypedArray,ie=z.exportTypedArrayMethod;ie("forEach",function(le){E(oe(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-includes").includes,oe=z.aTypedArray,ie=z.exportTypedArrayMethod;ie("includes",function(le){return E(oe(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-includes").indexOf,oe=z.aTypedArray,ie=z.exportTypedArrayMethod;ie("indexOf",function(le){return E(oe(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(a,Te,xe){"use strict";var z=a("../internals/global"),E=a("../internals/fails"),oe=a("../internals/function-uncurry-this"),ie=a("../internals/array-buffer-view-core"),ee=a("../modules/es.array.iterator"),le=a("../internals/well-known-symbol"),x=le("iterator"),ne=z.Uint8Array,re=oe(ee.values),ae=oe(ee.keys),se=oe(ee.entries),ce=ie.aTypedArray,pe=ie.exportTypedArrayMethod,me=ne&&ne.prototype,he=!E(function(){me[x].call([1])}),be=!!me&&me.values&&me[x]===me.values&&me.values.name==="values",Pe=function(){return re(ce(this))};pe("entries",function(){return se(ce(this))},he),pe("keys",function(){return ae(ce(this))},he),pe("values",Pe,he||!be,{name:"values"}),pe(x,Pe,he||!be,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/function-uncurry-this"),oe=z.aTypedArray,ie=z.exportTypedArrayMethod,ee=E([].join);ie("join",function(x){return ee(oe(this),x)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/function-apply"),oe=a("../internals/array-last-index-of"),ie=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("lastIndexOf",function(x){var ne=arguments.length;return E(oe,ie(this),ne>1?[x,arguments[1]]:[x])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").map,oe=a("../internals/typed-array-species-constructor"),ie=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("map",function(x){return E(ie(this),x,arguments.length>1?arguments[1]:void 0,function(ne,re){return new(oe(ne))(re)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-reduce").right,oe=z.aTypedArray,ie=z.exportTypedArrayMethod;ie("reduceRight",function(le){var x=arguments.length;return E(oe(this),le,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-reduce").left,oe=z.aTypedArray,ie=z.exportTypedArrayMethod;ie("reduce",function(le){var x=arguments.length;return E(oe(this),le,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=z.aTypedArray,oe=z.exportTypedArrayMethod,ie=Math.floor;oe("reverse",function(){for(var le=this,x=E(le).length,ne=ie(x/2),re=0,ae;re<ne;)ae=le[re],le[re++]=le[--x],le[x]=ae;return le})},{"../internals/array-buffer-view-core":103}],331:[function(a,Te,xe){"use strict";var z=a("../internals/global"),E=a("../internals/function-call"),oe=a("../internals/array-buffer-view-core"),ie=a("../internals/length-of-array-like"),ee=a("../internals/to-offset"),le=a("../internals/to-object"),x=a("../internals/fails"),ne=z.RangeError,re=z.Int8Array,ae=re&&re.prototype,se=ae&&ae.set,ce=oe.aTypedArray,pe=oe.exportTypedArrayMethod,me=!x(function(){var be=new Uint8ClampedArray(2);return E(se,be,{length:1,0:3},1),be[1]!==3}),he=me&&oe.NATIVE_ARRAY_BUFFER_VIEWS&&x(function(){var be=new re(2);return be.set(1),be.set("2",1),be[0]!==0||be[1]!==2});pe("set",function(Pe){ce(this);var Me=ee(arguments.length>1?arguments[1]:void 0,1),_e=le(Pe);if(me)return E(se,this,_e,Me);var De=this.length,Ce=ie(_e),Ee=0;if(Ce+Me>De)throw ne("Wrong length");for(;Ee<Ce;)this[Me+Ee]=_e[Ee++]},!me||he)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/typed-array-species-constructor"),oe=a("../internals/fails"),ie=a("../internals/array-slice"),ee=z.aTypedArray,le=z.exportTypedArrayMethod,x=oe(function(){new Int8Array(1).slice()});le("slice",function(re,ae){for(var se=ie(ee(this),re,ae),ce=E(this),pe=0,me=se.length,he=new ce(me);me>pe;)he[pe]=se[pe++];return he},x)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").some,oe=z.aTypedArray,ie=z.exportTypedArrayMethod;ie("some",function(le){return E(oe(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(a,Te,xe){"use strict";var z=a("../internals/global"),E=a("../internals/function-uncurry-this"),oe=a("../internals/fails"),ie=a("../internals/a-callable"),ee=a("../internals/array-sort"),le=a("../internals/array-buffer-view-core"),x=a("../internals/engine-ff-version"),ne=a("../internals/engine-is-ie-or-edge"),re=a("../internals/engine-v8-version"),ae=a("../internals/engine-webkit-version"),se=le.aTypedArray,ce=le.exportTypedArrayMethod,pe=z.Uint16Array,me=pe&&E(pe.prototype.sort),he=!!me&&!(oe(function(){me(new pe(2),null)})&&oe(function(){me(new pe(2),{})})),be=!!me&&!oe(function(){if(re)return re<74;if(x)return x<67;if(ne)return!0;if(ae)return ae<602;var Me=new pe(516),_e=Array(516),De,Ce;for(De=0;De<516;De++)Ce=De%4,Me[De]=515-De,_e[De]=De-2*Ce+3;for(me(Me,function(Ee,je){return(Ee/4|0)-(je/4|0)}),De=0;De<516;De++)if(Me[De]!==_e[De])return!0}),Pe=function(Me){return function(_e,De){return Me!==void 0?+Me(_e,De)||0:De!==De?-1:_e!==_e?1:_e===0&&De===0?1/_e>0&&1/De<0?1:-1:_e>De}};ce("sort",function(_e){return _e!==void 0&&ie(_e),be?me(this,_e):ee(se(this),Pe(_e))},!be||he)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/to-length"),oe=a("../internals/to-absolute-index"),ie=a("../internals/typed-array-species-constructor"),ee=z.aTypedArray,le=z.exportTypedArrayMethod;le("subarray",function(ne,re){var ae=ee(this),se=ae.length,ce=oe(ne,se),pe=ie(ae);return new pe(ae.buffer,ae.byteOffset+ce*ae.BYTES_PER_ELEMENT,E((re===void 0?se:oe(re,se))-ce))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(a,Te,xe){"use strict";var z=a("../internals/global"),E=a("../internals/function-apply"),oe=a("../internals/array-buffer-view-core"),ie=a("../internals/fails"),ee=a("../internals/array-slice"),le=z.Int8Array,x=oe.aTypedArray,ne=oe.exportTypedArrayMethod,re=[].toLocaleString,ae=!!le&&ie(function(){re.call(new le(1))}),se=ie(function(){return[1,2].toLocaleString()!=new le([1,2]).toLocaleString()})||!ie(function(){le.prototype.toLocaleString.call([1,2])});ne("toLocaleString",function(){return E(re,ae?ee(x(this)):x(this),ee(arguments))},se)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(a,Te,xe){"use strict";var z=a("../internals/array-buffer-view-core").exportTypedArrayMethod,E=a("../internals/fails"),oe=a("../internals/global"),ie=a("../internals/function-uncurry-this"),ee=oe.Uint8Array,le=ee&&ee.prototype||{},x=[].toString,ne=ie([].join);E(function(){x.call({})})&&(x=function(){return ne(this)});var re=le.toString!=x;z("toString",x,re)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(a,Te,xe){var z=a("../internals/typed-array-constructor");z("Uint8",function(E){return function(ie,ee,le){return E(this,ie,ee,le)}})},{"../internals/typed-array-constructor":258}],339:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/dom-iterables"),oe=a("../internals/dom-token-list-prototype"),ie=a("../internals/array-for-each"),ee=a("../internals/create-non-enumerable-property"),le=function(ne){if(ne&&ne.forEach!==ie)try{ee(ne,"forEach",ie)}catch(re){ne.forEach=ie}};for(var x in E)E[x]&&le(z[x]&&z[x].prototype);le(oe)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(a,Te,xe){var z=a("../internals/global"),E=a("../internals/dom-iterables"),oe=a("../internals/dom-token-list-prototype"),ie=a("../modules/es.array.iterator"),ee=a("../internals/create-non-enumerable-property"),le=a("../internals/well-known-symbol"),x=le("iterator"),ne=le("toStringTag"),re=ie.values,ae=function(ce,pe){if(ce){if(ce[x]!==re)try{ee(ce,x,re)}catch(he){ce[x]=re}if(ce[ne]||ee(ce,ne,pe),E[pe]){for(var me in ie)if(ce[me]!==ie[me])try{ee(ce,me,ie[me])}catch(he){ce[me]=ie[me]}}}};for(var se in E)ae(z[se]&&z[se].prototype,se);ae(oe,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(a,Te,xe){function z(be){return Array.isArray?Array.isArray(be):he(be)==="[object Array]"}xe.isArray=z;function E(be){return typeof be=="boolean"}xe.isBoolean=E;function oe(be){return be===null}xe.isNull=oe;function ie(be){return be==null}xe.isNullOrUndefined=ie;function ee(be){return typeof be=="number"}xe.isNumber=ee;function le(be){return typeof be=="string"}xe.isString=le;function x(be){return typeof be=="symbol"}xe.isSymbol=x;function ne(be){return be===void 0}xe.isUndefined=ne;function re(be){return he(be)==="[object RegExp]"}xe.isRegExp=re;function ae(be){return typeof be=="object"&&be!==null}xe.isObject=ae;function se(be){return he(be)==="[object Date]"}xe.isDate=se;function ce(be){return he(be)==="[object Error]"||be instanceof Error}xe.isError=ce;function pe(be){return typeof be=="function"}xe.isFunction=pe;function me(be){return be===null||typeof be=="boolean"||typeof be=="number"||typeof be=="string"||typeof be=="symbol"||typeof be=="undefined"}xe.isPrimitive=me,xe.isBuffer=a("buffer").Buffer.isBuffer;function he(be){return Object.prototype.toString.call(be)}},{buffer:90}],342:[function(a,Te,xe){(function(z){"use strict";var E=function(){var x=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ne=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,re=/[^-+\dA-Z]/g;return function(ae,se,ce,pe){if(arguments.length===1&&le(ae)==="string"&&!/\d/.test(ae)&&(se=ae,ae=void 0),ae=ae||new Date,ae instanceof Date||(ae=new Date(ae)),isNaN(ae))throw TypeError("Invalid date");se=String(E.masks[se]||se||E.masks.default);var me=se.slice(0,4);(me==="UTC:"||me==="GMT:")&&(se=se.slice(4),ce=!0,me==="GMT:"&&(pe=!0));var he=ce?"getUTC":"get",be=ae[he+"Date"](),Pe=ae[he+"Day"](),Me=ae[he+"Month"](),_e=ae[he+"FullYear"](),De=ae[he+"Hours"](),Ce=ae[he+"Minutes"](),Ee=ae[he+"Seconds"](),je=ae[he+"Milliseconds"](),ke=ce?0:ae.getTimezoneOffset(),Be=ie(ae),Ae=ee(ae),ve={d:be,dd:oe(be),ddd:E.i18n.dayNames[Pe],dddd:E.i18n.dayNames[Pe+7],m:Me+1,mm:oe(Me+1),mmm:E.i18n.monthNames[Me],mmmm:E.i18n.monthNames[Me+12],yy:String(_e).slice(2),yyyy:_e,h:De%12||12,hh:oe(De%12||12),H:De,HH:oe(De),M:Ce,MM:oe(Ce),s:Ee,ss:oe(Ee),l:oe(je,3),L:oe(Math.round(je/10)),t:De<12?"a":"p",tt:De<12?"am":"pm",T:De<12?"A":"P",TT:De<12?"AM":"PM",Z:pe?"GMT":ce?"UTC":(String(ae).match(ne)||[""]).pop().replace(re,""),o:(ke>0?"-":"+")+oe(Math.floor(Math.abs(ke)/60)*100+Math.abs(ke)%60,4),S:["th","st","nd","rd"][be%10>3?0:(be%100-be%10!=10)*be%10],W:Be,N:Ae};return se.replace(x,function(Ue){return Ue in ve?ve[Ue]:Ue.slice(1,Ue.length-1)})}}();E.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},E.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function oe(x,ne){for(x=String(x),ne=ne||2;x.length<ne;)x="0"+x;return x}function ie(x){var ne=new Date(x.getFullYear(),x.getMonth(),x.getDate());ne.setDate(ne.getDate()-(ne.getDay()+6)%7+3);var re=new Date(ne.getFullYear(),0,4);re.setDate(re.getDate()-(re.getDay()+6)%7+3);var ae=ne.getTimezoneOffset()-re.getTimezoneOffset();ne.setHours(ne.getHours()-ae);var se=(ne-re)/(864e5*7);return 1+Math.floor(se)}function ee(x){var ne=x.getDay();return ne===0&&(ne=7),ne}function le(x){return x===null?"null":x===void 0?"undefined":typeof x!="object"?typeof x:Array.isArray(x)?"array":{}.toString.call(x).slice(8,-1).toLowerCase()}typeof Ie=="function"&&Ie.amd?Ie(function(){return E}):typeof xe=="object"?Te.exports=E:z.dateFormat=E})(this)},{}],343:[function(a,Te,xe){"use strict";var z=/["'&<>]/;Te.exports=E;function E(oe){var ie=""+oe,ee=z.exec(ie);if(!ee)return ie;var le,x="",ne=0,re=0;for(ne=ee.index;ne<ie.length;ne++){switch(ie.charCodeAt(ne)){case 34:le="&quot;";break;case 38:le="&amp;";break;case 39:le="&#39;";break;case 60:le="&lt;";break;case 62:le="&gt;";break;default:continue}re!==ne&&(x+=ie.substring(re,ne)),re=ne+1,x+=le}return re!==ne?x+ie.substring(re,ne):x}},{}],344:[function(a,Te,xe){"use strict";var z=typeof Reflect=="object"?Reflect:null,E=z&&typeof z.apply=="function"?z.apply:function(Ee,je,ke){return Function.prototype.apply.call(Ee,je,ke)},oe;z&&typeof z.ownKeys=="function"?oe=z.ownKeys:Object.getOwnPropertySymbols?oe=function(Ee){return Object.getOwnPropertyNames(Ee).concat(Object.getOwnPropertySymbols(Ee))}:oe=function(Ee){return Object.getOwnPropertyNames(Ee)};function ie(Ce){console&&console.warn&&console.warn(Ce)}var ee=Number.isNaN||function(Ee){return Ee!==Ee};function le(){le.init.call(this)}Te.exports=le,Te.exports.once=Me,le.EventEmitter=le,le.prototype._events=void 0,le.prototype._eventsCount=0,le.prototype._maxListeners=void 0;var x=10;function ne(Ce){if(typeof Ce!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Ce)}Object.defineProperty(le,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(Ce){if(typeof Ce!="number"||Ce<0||ee(Ce))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Ce+".");x=Ce}}),le.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},le.prototype.setMaxListeners=function(Ee){if(typeof Ee!="number"||Ee<0||ee(Ee))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ee+".");return this._maxListeners=Ee,this};function re(Ce){return Ce._maxListeners===void 0?le.defaultMaxListeners:Ce._maxListeners}le.prototype.getMaxListeners=function(){return re(this)},le.prototype.emit=function(Ee){for(var je=[],ke=1;ke<arguments.length;ke++)je.push(arguments[ke]);var Be=Ee==="error",Ae=this._events;if(Ae!==void 0)Be=Be&&Ae.error===void 0;else if(!Be)return!1;if(Be){var ve;if(je.length>0&&(ve=je[0]),ve instanceof Error)throw ve;var Ue=new Error("Unhandled error."+(ve?" ("+ve.message+")":""));throw Ue.context=ve,Ue}var He=Ae[Ee];if(He===void 0)return!1;if(typeof He=="function")E(He,this,je);else for(var Ye=He.length,ot=he(He,Ye),ke=0;ke<Ye;++ke)E(ot[ke],this,je);return!0};function ae(Ce,Ee,je,ke){var Be,Ae,ve;if(ne(je),Ae=Ce._events,Ae===void 0?(Ae=Ce._events=Object.create(null),Ce._eventsCount=0):(Ae.newListener!==void 0&&(Ce.emit("newListener",Ee,je.listener?je.listener:je),Ae=Ce._events),ve=Ae[Ee]),ve===void 0)ve=Ae[Ee]=je,++Ce._eventsCount;else if(typeof ve=="function"?ve=Ae[Ee]=ke?[je,ve]:[ve,je]:ke?ve.unshift(je):ve.push(je),Be=re(Ce),Be>0&&ve.length>Be&&!ve.warned){ve.warned=!0;var Ue=new Error("Possible EventEmitter memory leak detected. "+ve.length+" "+String(Ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ue.name="MaxListenersExceededWarning",Ue.emitter=Ce,Ue.type=Ee,Ue.count=ve.length,ie(Ue)}return Ce}le.prototype.addListener=function(Ee,je){return ae(this,Ee,je,!1)},le.prototype.on=le.prototype.addListener,le.prototype.prependListener=function(Ee,je){return ae(this,Ee,je,!0)};function se(){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 ce(Ce,Ee,je){var ke={fired:!1,wrapFn:void 0,target:Ce,type:Ee,listener:je},Be=se.bind(ke);return Be.listener=je,ke.wrapFn=Be,Be}le.prototype.once=function(Ee,je){return ne(je),this.on(Ee,ce(this,Ee,je)),this},le.prototype.prependOnceListener=function(Ee,je){return ne(je),this.prependListener(Ee,ce(this,Ee,je)),this},le.prototype.removeListener=function(Ee,je){var ke,Be,Ae,ve,Ue;if(ne(je),Be=this._events,Be===void 0)return this;if(ke=Be[Ee],ke===void 0)return this;if(ke===je||ke.listener===je)--this._eventsCount===0?this._events=Object.create(null):(delete Be[Ee],Be.removeListener&&this.emit("removeListener",Ee,ke.listener||je));else if(typeof ke!="function"){for(Ae=-1,ve=ke.length-1;ve>=0;ve--)if(ke[ve]===je||ke[ve].listener===je){Ue=ke[ve].listener,Ae=ve;break}if(Ae<0)return this;Ae===0?ke.shift():be(ke,Ae),ke.length===1&&(Be[Ee]=ke[0]),Be.removeListener!==void 0&&this.emit("removeListener",Ee,Ue||je)}return this},le.prototype.off=le.prototype.removeListener,le.prototype.removeAllListeners=function(Ee){var je,ke,Be;if(ke=this._events,ke===void 0)return this;if(ke.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ke[Ee]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ke[Ee]),this;if(arguments.length===0){var Ae=Object.keys(ke),ve;for(Be=0;Be<Ae.length;++Be)ve=Ae[Be],ve!=="removeListener"&&this.removeAllListeners(ve);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(je=ke[Ee],typeof je=="function")this.removeListener(Ee,je);else if(je!==void 0)for(Be=je.length-1;Be>=0;Be--)this.removeListener(Ee,je[Be]);return this};function pe(Ce,Ee,je){var ke=Ce._events;if(ke===void 0)return[];var Be=ke[Ee];return Be===void 0?[]:typeof Be=="function"?je?[Be.listener||Be]:[Be]:je?Pe(Be):he(Be,Be.length)}le.prototype.listeners=function(Ee){return pe(this,Ee,!0)},le.prototype.rawListeners=function(Ee){return pe(this,Ee,!1)},le.listenerCount=function(Ce,Ee){return typeof Ce.listenerCount=="function"?Ce.listenerCount(Ee):me.call(Ce,Ee)},le.prototype.listenerCount=me;function me(Ce){var Ee=this._events;if(Ee!==void 0){var je=Ee[Ce];if(typeof je=="function")return 1;if(je!==void 0)return je.length}return 0}le.prototype.eventNames=function(){return this._eventsCount>0?oe(this._events):[]};function he(Ce,Ee){for(var je=new Array(Ee),ke=0;ke<Ee;++ke)je[ke]=Ce[ke];return je}function be(Ce,Ee){for(;Ee+1<Ce.length;Ee++)Ce[Ee]=Ce[Ee+1];Ce.pop()}function Pe(Ce){for(var Ee=new Array(Ce.length),je=0;je<Ee.length;++je)Ee[je]=Ce[je].listener||Ce[je];return Ee}function Me(Ce,Ee){return new Promise(function(je,ke){function Be(ve){Ce.removeListener(Ee,Ae),ke(ve)}function Ae(){typeof Ce.removeListener=="function"&&Ce.removeListener("error",Be),je([].slice.call(arguments))}De(Ce,Ee,Ae,{once:!0}),Ee!=="error"&&_e(Ce,Be,{once:!0})})}function _e(Ce,Ee,je){typeof Ce.on=="function"&&De(Ce,"error",Ee,je)}function De(Ce,Ee,je,ke){if(typeof Ce.on=="function")ke.once?Ce.once(Ee,je):Ce.on(Ee,je);else if(typeof Ce.addEventListener=="function")Ce.addEventListener(Ee,function Be(Ae){ke.once&&Ce.removeEventListener(Ee,Be),je(Ae)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Ce)}},{}],345:[function(a,Te,xe){"use strict";var z=a("is-callable"),E=Object.prototype.toString,oe=Object.prototype.hasOwnProperty,ie=function(re,ae,se){for(var ce=0,pe=re.length;ce<pe;ce++)oe.call(re,ce)&&(se==null?ae(re[ce],ce,re):ae.call(se,re[ce],ce,re))},ee=function(re,ae,se){for(var ce=0,pe=re.length;ce<pe;ce++)se==null?ae(re.charAt(ce),ce,re):ae.call(se,re.charAt(ce),ce,re)},le=function(re,ae,se){for(var ce in re)oe.call(re,ce)&&(se==null?ae(re[ce],ce,re):ae.call(se,re[ce],ce,re))},x=function(re,ae,se){if(!z(ae))throw new TypeError("iterator must be a function");var ce;arguments.length>=3&&(ce=se),E.call(re)==="[object Array]"?ie(re,ae,ce):typeof re=="string"?ee(re,ae,ce):le(re,ae,ce)};Te.exports=x},{"is-callable":367}],346:[function(a,Te,xe){"use strict";var z="Function.prototype.bind called on incompatible ",E=Array.prototype.slice,oe=Object.prototype.toString,ie="[object Function]";Te.exports=function(le){var x=this;if(typeof x!="function"||oe.call(x)!==ie)throw new TypeError(z+x);for(var ne=E.call(arguments,1),re,ae=function(){if(this instanceof re){var he=x.apply(this,ne.concat(E.call(arguments)));return Object(he)===he?he:this}else return x.apply(le,ne.concat(E.call(arguments)))},se=Math.max(0,x.length-ne.length),ce=[],pe=0;pe<se;pe++)ce.push("$"+pe);if(re=Function("binder","return function ("+ce.join(",")+"){ return binder.apply(this,arguments); }")(ae),x.prototype){var me=function(){};me.prototype=x.prototype,re.prototype=new me,me.prototype=null}return re}},{}],347:[function(a,Te,xe){"use strict";var z=a("./implementation");Te.exports=Function.prototype.bind||z},{"./implementation":346}],348:[function(a,Te,xe){"use strict";var z,E=SyntaxError,oe=Function,ie=TypeError,ee=function(He){try{return oe('"use strict"; return ('+He+").constructor;")()}catch(Ye){}},le=Object.getOwnPropertyDescriptor;if(le)try{le({},"")}catch(He){le=null}var x=function(){throw new ie},ne=le?function(){try{return arguments.callee,x}catch(He){try{return le(arguments,"callee").get}catch(Ye){return x}}}():x,re=a("has-symbols")(),ae=a("has-proto")(),se=Object.getPrototypeOf||(ae?function(He){return He.__proto__}:null),ce={},pe=typeof Uint8Array=="undefined"||!se?z:se(Uint8Array),me={"%AggregateError%":typeof AggregateError=="undefined"?z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?z:ArrayBuffer,"%ArrayIteratorPrototype%":re&&se?se([][Symbol.iterator]()):z,"%AsyncFromSyncIteratorPrototype%":z,"%AsyncFunction%":ce,"%AsyncGenerator%":ce,"%AsyncGeneratorFunction%":ce,"%AsyncIteratorPrototype%":ce,"%Atomics%":typeof Atomics=="undefined"?z:Atomics,"%BigInt%":typeof BigInt=="undefined"?z:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?z:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?z:FinalizationRegistry,"%Function%":oe,"%GeneratorFunction%":ce,"%Int8Array%":typeof Int8Array=="undefined"?z:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?z:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&se?se(se([][Symbol.iterator]())):z,"%JSON%":typeof JSON=="object"?JSON:z,"%Map%":typeof Map=="undefined"?z:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re||!se?z:se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?z:Promise,"%Proxy%":typeof Proxy=="undefined"?z:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?z:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!re||!se?z:se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&se?se(""[Symbol.iterator]()):z,"%Symbol%":re?Symbol:z,"%SyntaxError%":E,"%ThrowTypeError%":ne,"%TypedArray%":pe,"%TypeError%":ie,"%Uint8Array%":typeof Uint8Array=="undefined"?z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?z:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?z:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?z:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?z:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?z:WeakSet};if(se)try{null.error}catch(He){var he=se(se(He));me["%Error.prototype%"]=he}var be=function He(Ye){var ot;if(Ye==="%AsyncFunction%")ot=ee("async function () {}");else if(Ye==="%GeneratorFunction%")ot=ee("function* () {}");else if(Ye==="%AsyncGeneratorFunction%")ot=ee("async function* () {}");else if(Ye==="%AsyncGenerator%"){var Fe=He("%AsyncGeneratorFunction%");Fe&&(ot=Fe.prototype)}else if(Ye==="%AsyncIteratorPrototype%"){var Ke=He("%AsyncGenerator%");Ke&&se&&(ot=se(Ke.prototype))}return me[Ye]=ot,ot},Pe={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Me=a("function-bind"),_e=a("has"),De=Me.call(Function.call,Array.prototype.concat),Ce=Me.call(Function.apply,Array.prototype.splice),Ee=Me.call(Function.call,String.prototype.replace),je=Me.call(Function.call,String.prototype.slice),ke=Me.call(Function.call,RegExp.prototype.exec),Be=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ae=/\\(\\)?/g,ve=function(Ye){var ot=je(Ye,0,1),Fe=je(Ye,-1);if(ot==="%"&&Fe!=="%")throw new E("invalid intrinsic syntax, expected closing `%`");if(Fe==="%"&&ot!=="%")throw new E("invalid intrinsic syntax, expected opening `%`");var Ke=[];return Ee(Ye,Be,function(rt,nt,et,Ge){Ke[Ke.length]=et?Ee(Ge,Ae,"$1"):nt||rt}),Ke},Ue=function(Ye,ot){var Fe=Ye,Ke;if(_e(Pe,Fe)&&(Ke=Pe[Fe],Fe="%"+Ke[0]+"%"),_e(me,Fe)){var rt=me[Fe];if(rt===ce&&(rt=be(Fe)),typeof rt=="undefined"&&!ot)throw new ie("intrinsic "+Ye+" exists, but is not available. Please file an issue!");return{alias:Ke,name:Fe,value:rt}}throw new E("intrinsic "+Ye+" does not exist!")};Te.exports=function(Ye,ot){if(typeof Ye!="string"||Ye.length===0)throw new ie("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ot!="boolean")throw new ie('"allowMissing" argument must be a boolean');if(ke(/^%?[^%]*%?$/,Ye)===null)throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Fe=ve(Ye),Ke=Fe.length>0?Fe[0]:"",rt=Ue("%"+Ke+"%",ot),nt=rt.name,et=rt.value,Ge=!1,Xe=rt.alias;Xe&&(Ke=Xe[0],Ce(Fe,De([0,1],Xe)));for(var Ve=1,tt=!0;Ve<Fe.length;Ve+=1){var Qe=Fe[Ve],ct=je(Qe,0,1),at=je(Qe,-1);if((ct==='"'||ct==="'"||ct==="`"||at==='"'||at==="'"||at==="`")&&ct!==at)throw new E("property names with quotes must have matching quotes");if((Qe==="constructor"||!tt)&&(Ge=!0),Ke+="."+Qe,nt="%"+Ke+"%",_e(me,nt))et=me[nt];else if(et!=null){if(!(Qe in et)){if(!ot)throw new ie("base intrinsic for "+Ye+" exists, but the property is not available.");return}if(le&&Ve+1>=Fe.length){var qe=le(et,Qe);tt=!!qe,tt&&"get"in qe&&!("originalValue"in qe.get)?et=qe.get:et=et[Qe]}else tt=_e(et,Qe),et=et[Qe];tt&&!Ge&&(me[nt]=et)}}return et}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(a,Te,xe){"use strict";var z=a("get-intrinsic"),E=z("%Object.getOwnPropertyDescriptor%",!0);if(E)try{E([],"length")}catch(oe){E=null}Te.exports=E},{"get-intrinsic":348}],350:[function(a,Te,xe){"use strict";var z={foo:{}},E=Object;Te.exports=function(){return{__proto__:z}.foo===z.foo&&!({__proto__:null}instanceof E)}},{}],351:[function(a,Te,xe){"use strict";var z=typeof Symbol!="undefined"&&Symbol,E=a("./shams");Te.exports=function(){return typeof z!="function"||typeof Symbol!="function"||typeof z("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:E()}},{"./shams":352}],352:[function(a,Te,xe){"use strict";Te.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var E={},oe=Symbol("test"),ie=Object(oe);if(typeof oe=="string"||Object.prototype.toString.call(oe)!=="[object Symbol]"||Object.prototype.toString.call(ie)!=="[object Symbol]")return!1;var ee=42;E[oe]=ee;for(oe in E)return!1;if(typeof Object.keys=="function"&&Object.keys(E).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(E).length!==0)return!1;var le=Object.getOwnPropertySymbols(E);if(le.length!==1||le[0]!==oe||!Object.prototype.propertyIsEnumerable.call(E,oe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var x=Object.getOwnPropertyDescriptor(E,oe);if(x.value!==ee||x.enumerable!==!0)return!1}return!0}},{}],353:[function(a,Te,xe){"use strict";var z=a("has-symbols/shams");Te.exports=function(){return z()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(a,Te,xe){"use strict";var z=a("function-bind");Te.exports=z.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(a,Te,xe){var z=a("http"),E=a("url"),oe=Te.exports;for(var ie in z)z.hasOwnProperty(ie)&&(oe[ie]=z[ie]);oe.request=function(le,x){return le=ee(le),z.request.call(this,le,x)},oe.get=function(le,x){return le=ee(le),z.get.call(this,le,x)};function ee(le){if(typeof le=="string"&&(le=E.parse(le)),le.protocol||(le.protocol="https:"),le.protocol!=="https:")throw new Error('Protocol "'+le.protocol+'" not supported. Expected "https:"');return le}},{http:468,url:472}],356:[function(a,Te,xe){"use strict";var z=a("util"),E=a("ms");Te.exports=function(oe){if(typeof oe=="number")return oe;var ie=E(oe);if(ie===void 0){var ee=new Error(z.format("humanize-ms(%j) result undefined",oe));console.warn(ee.stack)}return ie}},{ms:376,util:419}],357:[function(a,Te,xe){xe.read=function(z,E,oe,ie,ee){var le,x,ne=ee*8-ie-1,re=(1<<ne)-1,ae=re>>1,se=-7,ce=oe?ee-1:0,pe=oe?-1:1,me=z[E+ce];for(ce+=pe,le=me&(1<<-se)-1,me>>=-se,se+=ne;se>0;le=le*256+z[E+ce],ce+=pe,se-=8);for(x=le&(1<<-se)-1,le>>=-se,se+=ie;se>0;x=x*256+z[E+ce],ce+=pe,se-=8);if(le===0)le=1-ae;else{if(le===re)return x?NaN:(me?-1:1)*(1/0);x=x+Math.pow(2,ie),le=le-ae}return(me?-1:1)*x*Math.pow(2,le-ie)},xe.write=function(z,E,oe,ie,ee,le){var x,ne,re,ae=le*8-ee-1,se=(1<<ae)-1,ce=se>>1,pe=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,me=ie?0:le-1,he=ie?1:-1,be=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(ne=isNaN(E)?1:0,x=se):(x=Math.floor(Math.log(E)/Math.LN2),E*(re=Math.pow(2,-x))<1&&(x--,re*=2),x+ce>=1?E+=pe/re:E+=pe*Math.pow(2,1-ce),E*re>=2&&(x++,re/=2),x+ce>=se?(ne=0,x=se):x+ce>=1?(ne=(E*re-1)*Math.pow(2,ee),x=x+ce):(ne=E*Math.pow(2,ce-1)*Math.pow(2,ee),x=0));ee>=8;z[oe+me]=ne&255,me+=he,ne/=256,ee-=8);for(x=x<<ee|ne,ae+=ee;ae>0;z[oe+me]=x&255,me+=he,x/=256,ae-=8);z[oe+me-he]|=be*128}},{}],358:[function(a,Te,xe){"use strict";var z=[a("./nextTick"),a("./queueMicrotask"),a("./mutation.js"),a("./messageChannel"),a("./stateChange"),a("./timeout")],E,oe,ie=-1,ee=[],le=!1;function x(){!E||!oe||(E=!1,oe.length?ee=oe.concat(ee):ie=-1,ee.length&&ne())}function ne(){if(!E){le=!1,E=!0;for(var me=ee.length,he=setTimeout(x);me;){for(oe=ee,ee=[];oe&&++ie<me;)oe[ie].run();ie=-1,me=ee.length}oe=null,ie=-1,E=!1,clearTimeout(he)}}for(var re,ae=-1,se=z.length;++ae<se;)if(z[ae]&&z[ae].test&&z[ae].test()){re=z[ae].install(ne);break}function ce(me,he){this.fun=me,this.array=he}ce.prototype.run=function(){var me=this.fun,he=this.array;switch(he.length){case 0:return me();case 1:return me(he[0]);case 2:return me(he[0],he[1]);case 3:return me(he[0],he[1],he[2]);default:return me.apply(null,he)}},Te.exports=pe;function pe(me){var he=new Array(arguments.length-1);if(arguments.length>1)for(var be=1;be<arguments.length;be++)he[be-1]=arguments[be];ee.push(new ce(me,he)),!le&&!E&&(le=!0,re())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(a,Te,xe){(function(z){(function(){"use strict";xe.test=function(){return z.setImmediate?!1:typeof z.MessageChannel!="undefined"},xe.install=function(E){var oe=new z.MessageChannel;return oe.port1.onmessage=E,function(){oe.port2.postMessage(0)}}}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(a,Te,xe){(function(z){(function(){"use strict";var E=z.MutationObserver||z.WebKitMutationObserver;xe.test=function(){return E},xe.install=function(oe){var ie=0,ee=new E(oe),le=z.document.createTextNode("");return ee.observe(le,{characterData:!0}),function(){le.data=ie=++ie%2}}}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(a,Te,xe){(function(z){(function(){"use strict";xe.test=function(){return typeof z.queueMicrotask=="function"},xe.install=function(E){return function(){z.queueMicrotask(E)}}}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(a,Te,xe){(function(z){(function(){"use strict";xe.test=function(){return"document"in z&&"onreadystatechange"in z.document.createElement("script")},xe.install=function(E){return function(){var oe=z.document.createElement("script");return oe.onreadystatechange=function(){E(),oe.onreadystatechange=null,oe.parentNode.removeChild(oe),oe=null},z.document.documentElement.appendChild(oe),E}}}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(a,Te,xe){"use strict";xe.test=function(){return!0},xe.install=function(z){return function(){setTimeout(z,0)}}},{}],364:[function(a,Te,xe){typeof Object.create=="function"?Te.exports=function(E,oe){oe&&(E.super_=oe,E.prototype=Object.create(oe.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:Te.exports=function(E,oe){if(oe){E.super_=oe;var ie=function(){};ie.prototype=oe.prototype,E.prototype=new ie,E.prototype.constructor=E}}},{}],365:[function(a,Te,xe){"use strict";var z=a("has-tostringtag/shams")(),E=a("call-bind/callBound"),oe=E("Object.prototype.toString"),ie=function(ne){return z&&ne&&typeof ne=="object"&&Symbol.toStringTag in ne?!1:oe(ne)==="[object Arguments]"},ee=function(ne){return ie(ne)?!0:ne!==null&&typeof ne=="object"&&typeof ne.length=="number"&&ne.length>=0&&oe(ne)!=="[object Array]"&&oe(ne.callee)==="[object Function]"},le=function(){return ie(arguments)}();ie.isLegacyArguments=ee,Te.exports=le?ie:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(a,Te,xe){Te.exports=function(oe){return oe!=null&&(z(oe)||E(oe)||!!oe._isBuffer)};function z(oe){return!!oe.constructor&&typeof oe.constructor.isBuffer=="function"&&oe.constructor.isBuffer(oe)}function E(oe){return typeof oe.readFloatLE=="function"&&typeof oe.slice=="function"&&z(oe.slice(0,0))}},{}],367:[function(a,Te,xe){"use strict";var z=Function.prototype.toString,E=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,oe,ie;if(typeof E=="function"&&typeof Object.defineProperty=="function")try{oe=Object.defineProperty({},"length",{get:function(){throw ie}}),ie={},E(function(){throw 42},null,oe)}catch(_e){_e!==ie&&(E=null)}else E=null;var ee=/^\s*class\b/,le=function(De){try{var Ce=z.call(De);return ee.test(Ce)}catch(Ee){return!1}},x=function(De){try{return le(De)?!1:(z.call(De),!0)}catch(Ce){return!1}},ne=Object.prototype.toString,re="[object Object]",ae="[object Function]",se="[object GeneratorFunction]",ce="[object HTMLAllCollection]",pe="[object HTML document.all class]",me="[object HTMLCollection]",he=typeof Symbol=="function"&&!!Symbol.toStringTag,be=!(0 in[,]),Pe=function(){return!1};if(typeof document=="object"){var Me=document.all;ne.call(Me)===ne.call(document.all)&&(Pe=function(De){if((be||!De)&&(typeof De=="undefined"||typeof De=="object"))try{var Ce=ne.call(De);return(Ce===ce||Ce===pe||Ce===me||Ce===re)&&De("")==null}catch(Ee){}return!1})}Te.exports=E?function(De){if(Pe(De))return!0;if(!De||typeof De!="function"&&typeof De!="object")return!1;try{E(De,null,oe)}catch(Ce){if(Ce!==ie)return!1}return!le(De)&&x(De)}:function(De){if(Pe(De))return!0;if(!De||typeof De!="function"&&typeof De!="object")return!1;if(he)return x(De);if(le(De))return!1;var Ce=ne.call(De);return Ce!==ae&&Ce!==se&&!/^\[object HTML/.test(Ce)?!1:x(De)}},{}],368:[function(a,Te,xe){"use strict";var z=Object.prototype.toString,E=Function.prototype.toString,oe=/^\s*(?:function)?\*/,ie=a("has-tostringtag/shams")(),ee=Object.getPrototypeOf,le=function(){if(!ie)return!1;try{return Function("return function*() {}")()}catch(ne){}},x;Te.exports=function(re){if(typeof re!="function")return!1;if(oe.test(E.call(re)))return!0;if(!ie){var ae=z.call(re);return ae==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof x=="undefined"){var se=le();x=se?ee(se):!1}return ee(re)===x}},{"has-tostringtag/shams":353}],369:[function(a,Te,xe){"use strict";var z=a("which-typed-array");Te.exports=function(oe){return!!z(oe)}},{"which-typed-array":420}],370:[function(a,Te,xe){var z={}.toString;Te.exports=Array.isArray||function(E){return z.call(E)=="[object Array]"}},{}],371:[function(a,Te,xe){(function(z){(function(){(function(E,oe){typeof xe=="object"&&typeof Te!="undefined"?Te.exports=oe(E):typeof Ie=="function"&&Ie.amd?Ie(oe):oe(E)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof z!="undefined"?z:this,function(E){"use strict";E=E||{};var oe=E.Base64,ie="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",le=function(Ye){for(var ot={},Fe=0,Ke=Ye.length;Fe<Ke;Fe++)ot[Ye.charAt(Fe)]=Fe;return ot}(ee),x=String.fromCharCode,ne=function(Ye){if(Ye.length<2){var ot=Ye.charCodeAt(0);return ot<128?Ye:ot<2048?x(192|ot>>>6)+x(128|ot&63):x(224|ot>>>12&15)+x(128|ot>>>6&63)+x(128|ot&63)}else{var ot=65536+(Ye.charCodeAt(0)-55296)*1024+(Ye.charCodeAt(1)-56320);return x(240|ot>>>18&7)+x(128|ot>>>12&63)+x(128|ot>>>6&63)+x(128|ot&63)}},re=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Ye){return Ye.replace(re,ne)},se=function(Ye){var ot=[0,2,1][Ye.length%3],Fe=Ye.charCodeAt(0)<<16|(Ye.length>1?Ye.charCodeAt(1):0)<<8|(Ye.length>2?Ye.charCodeAt(2):0),Ke=[ee.charAt(Fe>>>18),ee.charAt(Fe>>>12&63),ot>=2?"=":ee.charAt(Fe>>>6&63),ot>=1?"=":ee.charAt(Fe&63)];return Ke.join("")},ce=E.btoa&&typeof E.btoa=="function"?function(Ye){return E.btoa(Ye)}:function(Ye){if(Ye.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ye.replace(/[\s\S]{1,3}/g,se)},pe=function(Ye){return ce(ae(String(Ye)))},me=function(Ye){return Ye.replace(/[+\/]/g,function(ot){return ot=="+"?"-":"_"}).replace(/=/g,"")},he=function(Ye,ot){return ot?me(pe(Ye)):pe(Ye)},be=function(Ye){return he(Ye,!0)},Pe;E.Uint8Array&&(Pe=function(Ye,ot){for(var Fe="",Ke=0,rt=Ye.length;Ke<rt;Ke+=3){var nt=Ye[Ke],et=Ye[Ke+1],Ge=Ye[Ke+2],Xe=nt<<16|et<<8|Ge;Fe+=ee.charAt(Xe>>>18)+ee.charAt(Xe>>>12&63)+(typeof et!="undefined"?ee.charAt(Xe>>>6&63):"=")+(typeof Ge!="undefined"?ee.charAt(Xe&63):"=")}return ot?me(Fe):Fe});var Me=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,_e=function(Ye){switch(Ye.length){case 4:var ot=(7&Ye.charCodeAt(0))<<18|(63&Ye.charCodeAt(1))<<12|(63&Ye.charCodeAt(2))<<6|63&Ye.charCodeAt(3),Fe=ot-65536;return x((Fe>>>10)+55296)+x((Fe&1023)+56320);case 3:return x((15&Ye.charCodeAt(0))<<12|(63&Ye.charCodeAt(1))<<6|63&Ye.charCodeAt(2));default:return x((31&Ye.charCodeAt(0))<<6|63&Ye.charCodeAt(1))}},De=function(Ye){return Ye.replace(Me,_e)},Ce=function(Ye){var ot=Ye.length,Fe=ot%4,Ke=(ot>0?le[Ye.charAt(0)]<<18:0)|(ot>1?le[Ye.charAt(1)]<<12:0)|(ot>2?le[Ye.charAt(2)]<<6:0)|(ot>3?le[Ye.charAt(3)]:0),rt=[x(Ke>>>16),x(Ke>>>8&255),x(Ke&255)];return rt.length-=[0,0,2,1][Fe],rt.join("")},Ee=E.atob&&typeof E.atob=="function"?function(Ye){return E.atob(Ye)}:function(Ye){return Ye.replace(/\S{1,4}/g,Ce)},je=function(Ye){return Ee(String(Ye).replace(/[^A-Za-z0-9\+\/]/g,""))},ke=function(Ye){return De(Ee(Ye))},Be=function(Ye){return String(Ye).replace(/[-_]/g,function(ot){return ot=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ae=function(Ye){return ke(Be(Ye))},ve;E.Uint8Array&&(ve=function(Ye){return Uint8Array.from(je(Be(Ye)),function(ot){return ot.charCodeAt(0)})});var Ue=function(){var Ye=E.Base64;return E.Base64=oe,Ye};if(E.Base64={VERSION:ie,atob:je,btoa:ce,fromBase64:Ae,toBase64:he,utob:ae,encode:he,encodeURI:be,btou:De,decode:Ae,noConflict:Ue,fromUint8Array:Pe,toUint8Array:ve},typeof Object.defineProperty=="function"){var He=function(Ye){return{value:Ye,enumerable:!1,writable:!0,configurable:!0}};E.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",He(function(){return Ae(this)})),Object.defineProperty(String.prototype,"toBase64",He(function(Ye){return he(this,Ye)})),Object.defineProperty(String.prototype,"toBase64URI",He(function(){return he(this,!0)}))}}return E.Meteor&&(Base64=E.Base64),typeof Te!="undefined"&&Te.exports?Te.exports.Base64=E.Base64:typeof Ie=="function"&&Ie.amd&&Ie([],function(){return E.Base64}),{Base64:E.Base64}})}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(a,Te,xe){"use strict";Te.exports=E;var z=Object.prototype.hasOwnProperty;function E(oe,ie,ee){if(!oe)throw new TypeError("argument dest is required");if(!ie)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(ie).forEach(function(x){if(!(!ee&&z.call(oe,x))){var ne=Object.getOwnPropertyDescriptor(ie,x);Object.defineProperty(oe,x,ne)}}),oe}},{}],373:[function(a,Te,xe){"use strict";a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.regexp.constructor.js"),a("core-js/modules/es.regexp.to-string.js");function z(){this._types=Object.create(null),this._extensions=Object.create(null);for(var E=0;E<arguments.length;E++)this.define(arguments[E]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}z.prototype.define=function(E,oe){for(var ie in E){var ee=E[ie].map(function(re){return re.toLowerCase()});ie=ie.toLowerCase();for(var le=0;le<ee.length;le++){var x=ee[le];if(x[0]!=="*"){if(!oe&&x in this._types)throw new Error('Attempt to change mapping for "'+x+'" extension from "'+this._types[x]+'" to "'+ie+'". Pass `force=true` to allow this, otherwise remove "'+x+'" from the list of extensions for "'+ie+'".');this._types[x]=ie}}if(oe||!this._extensions[ie]){var ne=ee[0];this._extensions[ie]=ne[0]!=="*"?ne:ne.substr(1)}}},z.prototype.getType=function(E){E=String(E);var oe=E.replace(/^.*[/\\]/,"").toLowerCase(),ie=oe.replace(/^.*\./,"").toLowerCase(),ee=oe.length<E.length,le=ie.length<oe.length-1;return(le||!ee)&&this._types[ie]||null},z.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},Te.exports=z},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(a,Te,xe){"use strict";var z=a("./Mime");Te.exports=new z(a("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(a,Te,xe){"use strict";Te.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(a,Te,xe){var z=1e3,E=z*60,oe=E*60,ie=oe*24,ee=ie*7,le=ie*365.25;Te.exports=function(se,ce){ce=ce||{};var pe=typeof se;if(pe==="string"&&se.length>0)return x(se);if(pe==="number"&&isFinite(se))return ce.long?re(se):ne(se);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(se))};function x(se){if(se=String(se),!(se.length>100)){var ce=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(se);if(ce){var pe=parseFloat(ce[1]),me=(ce[2]||"ms").toLowerCase();switch(me){case"years":case"year":case"yrs":case"yr":case"y":return pe*le;case"weeks":case"week":case"w":return pe*ee;case"days":case"day":case"d":return pe*ie;case"hours":case"hour":case"hrs":case"hr":case"h":return pe*oe;case"minutes":case"minute":case"mins":case"min":case"m":return pe*E;case"seconds":case"second":case"secs":case"sec":case"s":return pe*z;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return pe;default:return}}}}function ne(se){var ce=Math.abs(se);return ce>=ie?Math.round(se/ie)+"d":ce>=oe?Math.round(se/oe)+"h":ce>=E?Math.round(se/E)+"m":ce>=z?Math.round(se/z)+"s":se+"ms"}function re(se){var ce=Math.abs(se);return ce>=ie?ae(se,ce,ie,"day"):ce>=oe?ae(se,ce,oe,"hour"):ce>=E?ae(se,ce,E,"minute"):ce>=z?ae(se,ce,z,"second"):se+" ms"}function ae(se,ce,pe,me){var he=ce>=pe*1.5;return Math.round(se/pe)+" "+me+(he?"s":"")}},{}],377:[function(a,Te,xe){"use strict";var z=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;function ie(le){if(le==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(le)}function ee(){try{if(!Object.assign)return!1;var le=new String("abc");if(le[5]="de",Object.getOwnPropertyNames(le)[0]==="5")return!1;for(var x={},ne=0;ne<10;ne++)x["_"+String.fromCharCode(ne)]=ne;var re=Object.getOwnPropertyNames(x).map(function(se){return x[se]});if(re.join("")!=="0123456789")return!1;var ae={};return"abcdefghijklmnopqrst".split("").forEach(function(se){ae[se]=se}),Object.keys(Object.assign({},ae)).join("")==="abcdefghijklmnopqrst"}catch(se){return!1}}Te.exports=ee()?Object.assign:function(le,x){for(var ne,re=ie(le),ae,se=1;se<arguments.length;se++){ne=Object(arguments[se]);for(var ce in ne)E.call(ne,ce)&&(re[ce]=ne[ce]);if(z){ae=z(ne);for(var pe=0;pe<ae.length;pe++)oe.call(ne,ae[pe])&&(re[ae[pe]]=ne[ae[pe]])}}return re}},{}],378:[function(a,Te,xe){(function(z){(function(){"use strict";function E(le){if(typeof le!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(le))}function oe(le,x){for(var ne="",re=0,ae=-1,se=0,ce,pe=0;pe<=le.length;++pe){if(pe<le.length)ce=le.charCodeAt(pe);else{if(ce===47)break;ce=47}if(ce===47){if(!(ae===pe-1||se===1))if(ae!==pe-1&&se===2){if(ne.length<2||re!==2||ne.charCodeAt(ne.length-1)!==46||ne.charCodeAt(ne.length-2)!==46){if(ne.length>2){var me=ne.lastIndexOf("/");if(me!==ne.length-1){me===-1?(ne="",re=0):(ne=ne.slice(0,me),re=ne.length-1-ne.lastIndexOf("/")),ae=pe,se=0;continue}}else if(ne.length===2||ne.length===1){ne="",re=0,ae=pe,se=0;continue}}x&&(ne.length>0?ne+="/..":ne="..",re=2)}else ne.length>0?ne+="/"+le.slice(ae+1,pe):ne=le.slice(ae+1,pe),re=pe-ae-1;ae=pe,se=0}else ce===46&&se!==-1?++se:se=-1}return ne}function ie(le,x){var ne=x.dir||x.root,re=x.base||(x.name||"")+(x.ext||"");return ne?ne===x.root?ne+re:ne+le+re:re}var ee={resolve:function(){for(var x="",ne=!1,re,ae=arguments.length-1;ae>=-1&&!ne;ae--){var se;ae>=0?se=arguments[ae]:(re===void 0&&(re=z.cwd()),se=re),E(se),se.length!==0&&(x=se+"/"+x,ne=se.charCodeAt(0)===47)}return x=oe(x,!ne),ne?x.length>0?"/"+x:"/":x.length>0?x:"."},normalize:function(x){if(E(x),x.length===0)return".";var ne=x.charCodeAt(0)===47,re=x.charCodeAt(x.length-1)===47;return x=oe(x,!ne),x.length===0&&!ne&&(x="."),x.length>0&&re&&(x+="/"),ne?"/"+x:x},isAbsolute:function(x){return E(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,ne=0;ne<arguments.length;++ne){var re=arguments[ne];E(re),re.length>0&&(x===void 0?x=re:x+="/"+re)}return x===void 0?".":ee.normalize(x)},relative:function(x,ne){if(E(x),E(ne),x===ne||(x=ee.resolve(x),ne=ee.resolve(ne),x===ne))return"";for(var re=1;re<x.length&&x.charCodeAt(re)===47;++re);for(var ae=x.length,se=ae-re,ce=1;ce<ne.length&&ne.charCodeAt(ce)===47;++ce);for(var pe=ne.length,me=pe-ce,he=se<me?se:me,be=-1,Pe=0;Pe<=he;++Pe){if(Pe===he){if(me>he){if(ne.charCodeAt(ce+Pe)===47)return ne.slice(ce+Pe+1);if(Pe===0)return ne.slice(ce+Pe)}else se>he&&(x.charCodeAt(re+Pe)===47?be=Pe:Pe===0&&(be=0));break}var Me=x.charCodeAt(re+Pe),_e=ne.charCodeAt(ce+Pe);if(Me!==_e)break;Me===47&&(be=Pe)}var De="";for(Pe=re+be+1;Pe<=ae;++Pe)(Pe===ae||x.charCodeAt(Pe)===47)&&(De.length===0?De+="..":De+="/..");return De.length>0?De+ne.slice(ce+be):(ce+=be,ne.charCodeAt(ce)===47&&++ce,ne.slice(ce))},_makeLong:function(x){return x},dirname:function(x){if(E(x),x.length===0)return".";for(var ne=x.charCodeAt(0),re=ne===47,ae=-1,se=!0,ce=x.length-1;ce>=1;--ce)if(ne=x.charCodeAt(ce),ne===47){if(!se){ae=ce;break}}else se=!1;return ae===-1?re?"/":".":re&&ae===1?"//":x.slice(0,ae)},basename:function(x,ne){if(ne!==void 0&&typeof ne!="string")throw new TypeError('"ext" argument must be a string');E(x);var re=0,ae=-1,se=!0,ce;if(ne!==void 0&&ne.length>0&&ne.length<=x.length){if(ne.length===x.length&&ne===x)return"";var pe=ne.length-1,me=-1;for(ce=x.length-1;ce>=0;--ce){var he=x.charCodeAt(ce);if(he===47){if(!se){re=ce+1;break}}else me===-1&&(se=!1,me=ce+1),pe>=0&&(he===ne.charCodeAt(pe)?--pe===-1&&(ae=ce):(pe=-1,ae=me))}return re===ae?ae=me:ae===-1&&(ae=x.length),x.slice(re,ae)}else{for(ce=x.length-1;ce>=0;--ce)if(x.charCodeAt(ce)===47){if(!se){re=ce+1;break}}else ae===-1&&(se=!1,ae=ce+1);return ae===-1?"":x.slice(re,ae)}},extname:function(x){E(x);for(var ne=-1,re=0,ae=-1,se=!0,ce=0,pe=x.length-1;pe>=0;--pe){var me=x.charCodeAt(pe);if(me===47){if(!se){re=pe+1;break}continue}ae===-1&&(se=!1,ae=pe+1),me===46?ne===-1?ne=pe:ce!==1&&(ce=1):ne!==-1&&(ce=-1)}return ne===-1||ae===-1||ce===0||ce===1&&ne===ae-1&&ne===re+1?"":x.slice(ne,ae)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return ie("/",x)},parse:function(x){E(x);var ne={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return ne;var re=x.charCodeAt(0),ae=re===47,se;ae?(ne.root="/",se=1):se=0;for(var ce=-1,pe=0,me=-1,he=!0,be=x.length-1,Pe=0;be>=se;--be){if(re=x.charCodeAt(be),re===47){if(!he){pe=be+1;break}continue}me===-1&&(he=!1,me=be+1),re===46?ce===-1?ce=be:Pe!==1&&(Pe=1):ce!==-1&&(Pe=-1)}return ce===-1||me===-1||Pe===0||Pe===1&&ce===me-1&&ce===pe+1?me!==-1&&(pe===0&&ae?ne.base=ne.name=x.slice(1,me):ne.base=ne.name=x.slice(pe,me)):(pe===0&&ae?(ne.name=x.slice(1,ce),ne.base=x.slice(1,me)):(ne.name=x.slice(pe,ce),ne.base=x.slice(pe,me)),ne.ext=x.slice(ce,me)),pe>0?ne.dir=x.slice(0,pe-1):ae&&(ne.dir="/"),ne},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,Te.exports=ee}).call(this)}).call(this,a("_process"))},{_process:467}],379:[function(a,Te,xe){(function(z){(function(){(function(){"use strict";var E={function:!0,object:!0},oe=E[typeof window]&&window||this,ie=oe,ee=E[typeof xe]&&xe,le=E[typeof Te]&&Te&&!Te.nodeType&&Te,x=ee&&le&&typeof z=="object"&&z;x&&(x.global===x||x.window===x||x.self===x)&&(oe=x);var ne=Math.pow(2,53)-1,re=/\bOpera/,ae=this,se=Object.prototype,ce=se.hasOwnProperty,pe=se.toString;function me(Ae){return Ae=String(Ae),Ae.charAt(0).toUpperCase()+Ae.slice(1)}function he(Ae,ve,Ue){var He={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return ve&&Ue&&/^Win/i.test(Ae)&&!/^Windows Phone /i.test(Ae)&&(He=He[/[\d.]+$/.exec(Ae)])&&(Ae="Windows "+He),Ae=String(Ae),ve&&Ue&&(Ae=Ae.replace(RegExp(ve,"i"),Ue)),Ae=Pe(Ae.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Ae}function be(Ae,ve){var Ue=-1,He=Ae?Ae.length:0;if(typeof He=="number"&&He>-1&&He<=ne)for(;++Ue<He;)ve(Ae[Ue],Ue,Ae);else Me(Ae,ve)}function Pe(Ae){return Ae=je(Ae),/^(?:webOS|i(?:OS|P))/.test(Ae)?Ae:me(Ae)}function Me(Ae,ve){for(var Ue in Ae)ce.call(Ae,Ue)&&ve(Ae[Ue],Ue,Ae)}function _e(Ae){return Ae==null?me(Ae):pe.call(Ae).slice(8,-1)}function De(Ae,ve){var Ue=Ae!=null?typeof Ae[ve]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ue)&&(Ue=="object"?!!Ae[ve]:!0)}function Ce(Ae){return String(Ae).replace(/([ -])(?!$)/g,"$1?")}function Ee(Ae,ve){var Ue=null;return be(Ae,function(He,Ye){Ue=ve(Ue,He,Ye,Ae)}),Ue}function je(Ae){return String(Ae).replace(/^ +| +$/g,"")}function ke(Ae){var ve=oe,Ue=Ae&&typeof Ae=="object"&&_e(Ae)!="String";Ue&&(ve=Ae,Ae=null);var He=ve.navigator||{},Ye=He.userAgent||"";Ae||(Ae=Ye);var ot=Ue||ae==ie,Fe=Ue?!!He.likeChrome:/\bChrome\b/.test(Ae)&&!/internal|\n/i.test(pe.toString()),Ke="Object",rt=Ue?Ke:"ScriptBridgingProxyObject",nt=Ue?Ke:"Environment",et=Ue&&ve.java?"JavaPackage":_e(ve.java),Ge=Ue?Ke:"RuntimeObject",Xe=/\bJava/.test(et)&&ve.java,Ve=Xe&&_e(ve.environment)==nt,tt=Xe?"a":"\u03B1",Qe=Xe?"b":"\u03B2",ct=ve.document||{},at=ve.operamini||ve.opera,qe=re.test(qe=Ue&&at?at["[[Class]]"]:_e(at))?qe:at=null,Le,Ne=Ae,te=[],de=null,Re=Ae==Ye,We=Re&&at&&typeof at.version=="function"&&at.version(),we,ye=st([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Oe=ft(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),$e=St([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Ze=lt({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),Je=Tt(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function st(Et){return Ee(Et,function(xt,At){return xt||RegExp("\\b"+(At.pattern||Ce(At))+"\\b","i").exec(Ae)&&(At.label||At)})}function lt(Et){return Ee(Et,function(xt,At,It){return xt||(At[$e]||At[/^[a-z]+(?: +[a-z]+\b)*/i.exec($e)]||RegExp("\\b"+Ce(It)+"(?:\\b|\\w*\\d)","i").exec(Ae))&&It})}function ft(Et){return Ee(Et,function(xt,At){return xt||RegExp("\\b"+(At.pattern||Ce(At))+"\\b","i").exec(Ae)&&(At.label||At)})}function Tt(Et){return Ee(Et,function(xt,At){var It=At.pattern||Ce(At);return!xt&&(xt=RegExp("\\b"+It+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ae))&&(xt=he(xt,It,At.label||At)),xt})}function St(Et){return Ee(Et,function(xt,At){var It=At.pattern||Ce(At);return!xt&&(xt=RegExp("\\b"+It+" *\\d+[.\\w_]*","i").exec(Ae)||RegExp("\\b"+It+" *\\w+-[\\w]*","i").exec(Ae)||RegExp("\\b"+It+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ae))&&((xt=String(At.label&&!RegExp(It,"i").test(At.label)?At.label:xt).split("/"))[1]&&!/[\d.]+/.test(xt[0])&&(xt[0]+=" "+xt[1]),At=At.label||At,xt=Pe(xt[0].replace(RegExp(It,"i"),At).replace(RegExp("; *(?:"+At+"[_-])?","i")," ").replace(RegExp("("+At+")[-_.]?(\\w)","i"),"$1 $2"))),xt})}function Ot(Et){return Ee(Et,function(xt,At){return xt||(RegExp(At+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ae)||0)[1]||null})}function yt(){return this.description||""}if(ye&&(ye=[ye]),/\bAndroid\b/.test(Je)&&!$e&&(Le=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ae))&&($e=je(Le[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Ze&&!$e?$e=St([Ze]):Ze&&$e&&($e=$e.replace(RegExp("^("+Ce(Ze)+")[-_.\\s]","i"),Ze+" ").replace(RegExp("^("+Ce(Ze)+")[-_.]?(\\w)","i"),Ze+" $2")),(Le=/\bGoogle TV\b/.exec($e))&&($e=Le[0]),/\bSimulator\b/i.test(Ae)&&($e=($e?$e+" ":"")+"Simulator"),Oe=="Opera Mini"&&/\bOPiOS\b/.test(Ae)&&te.push("running in Turbo/Uncompressed mode"),Oe=="IE"&&/\blike iPhone OS\b/.test(Ae)?(Le=ke(Ae.replace(/like iPhone OS/,"")),Ze=Le.manufacturer,$e=Le.product):/^iP/.test($e)?(Oe||(Oe="Safari"),Je="iOS"+((Le=/ OS ([\d_]+)/i.exec(Ae))?" "+Le[1].replace(/_/g,"."):"")):Oe=="Konqueror"&&/^Linux\b/i.test(Je)?Je="Kubuntu":Ze&&Ze!="Google"&&(/Chrome/.test(Oe)&&!/\bMobile Safari\b/i.test(Ae)||/\bVita\b/.test($e))||/\bAndroid\b/.test(Je)&&/^Chrome/.test(Oe)&&/\bVersion\//i.test(Ae)?(Oe="Android Browser",Je=/\bAndroid\b/.test(Je)?Je:"Android"):Oe=="Silk"?(/\bMobi/i.test(Ae)||(Je="Android",te.unshift("desktop mode")),/Accelerated *= *true/i.test(Ae)&&te.unshift("accelerated")):Oe=="UC Browser"&&/\bUCWEB\b/.test(Ae)?te.push("speed mode"):Oe=="PaleMoon"&&(Le=/\bFirefox\/([\d.]+)\b/.exec(Ae))?te.push("identifying as Firefox "+Le[1]):Oe=="Firefox"&&(Le=/\b(Mobile|Tablet|TV)\b/i.exec(Ae))?(Je||(Je="Firefox OS"),$e||($e=Le[1])):!Oe||(Le=!/\bMinefield\b/i.test(Ae)&&/\b(?:Firefox|Safari)\b/.exec(Oe))?(Oe&&!$e&&/[\/,]|^[^(]+?\)/.test(Ae.slice(Ae.indexOf(Le+"/")+8))&&(Oe=null),(Le=$e||Ze||Je)&&($e||Ze||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Je))&&(Oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Je)?Je:Le)+" Browser")):Oe=="Electron"&&(Le=(/\bChrome\/([\d.]+)\b/.exec(Ae)||0)[1])&&te.push("Chromium "+Le),We||(We=Ot(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Ce(Oe),"(?:Firefox|Minefield|NetFront)"])),(Le=ye=="iCab"&&parseFloat(We)>3&&"WebKit"||/\bOpera\b/.test(Oe)&&(/\bOPR\b/.test(Ae)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ae)&&!/^(?:Trident|EdgeHTML)$/.test(ye)&&"WebKit"||!ye&&/\bMSIE\b/i.test(Ae)&&(Je=="Mac OS"?"Tasman":"Trident")||ye=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Oe)&&"NetFront")&&(ye=[Le]),Oe=="IE"&&(Le=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ae)||0)[1])?(Oe+=" Mobile",Je="Windows Phone "+(/\+$/.test(Le)?Le:Le+".x"),te.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ae)?(Oe="IE Mobile",Je="Windows Phone 8.x",te.unshift("desktop mode"),We||(We=(/\brv:([\d.]+)/.exec(Ae)||0)[1])):Oe!="IE"&&ye=="Trident"&&(Le=/\brv:([\d.]+)/.exec(Ae))&&(Oe&&te.push("identifying as "+Oe+(We?" "+We:"")),Oe="IE",We=Le[1]),Re){if(De(ve,"global"))if(Xe&&(Le=Xe.lang.System,Ne=Le.getProperty("os.arch"),Je=Je||Le.getProperty("os.name")+" "+Le.getProperty("os.version")),Ve){try{We=ve.require("ringo/engine").version.join("."),Oe="RingoJS"}catch(Et){(Le=ve.system)&&Le.global.system==ve.system&&(Oe="Narwhal",Je||(Je=Le[0].os||null))}Oe||(Oe="Rhino")}else typeof ve.process=="object"&&!ve.process.browser&&(Le=ve.process)&&(typeof Le.versions=="object"&&(typeof Le.versions.electron=="string"?(te.push("Node "+Le.versions.node),Oe="Electron",We=Le.versions.electron):typeof Le.versions.nw=="string"&&(te.push("Chromium "+We,"Node "+Le.versions.node),Oe="NW.js",We=Le.versions.nw)),Oe||(Oe="Node.js",Ne=Le.arch,Je=Le.platform,We=/[\d.]+/.exec(Le.version),We=We?We[0]:null));else _e(Le=ve.runtime)==rt?(Oe="Adobe AIR",Je=Le.flash.system.Capabilities.os):_e(Le=ve.phantom)==Ge?(Oe="PhantomJS",We=(Le=Le.version||null)&&Le.major+"."+Le.minor+"."+Le.patch):typeof ct.documentMode=="number"&&(Le=/\bTrident\/(\d+)/i.exec(Ae))?(We=[We,ct.documentMode],(Le=+Le[1]+4)!=We[1]&&(te.push("IE "+We[1]+" mode"),ye&&(ye[1]=""),We[1]=Le),We=Oe=="IE"?String(We[1].toFixed(1)):We[0]):typeof ct.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Oe)&&(te.push("masking as "+Oe+" "+We),Oe="IE",We="11.0",ye=["Trident"],Je="Windows");Je=Je&&Pe(Je)}if(We&&(Le=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(We)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ae+";"+(Re&&He.appMinorVersion))||/\bMinefield\b/i.test(Ae)&&"a")&&(de=/b/i.test(Le)?"beta":"alpha",We=We.replace(RegExp(Le+"\\+?$"),"")+(de=="beta"?Qe:tt)+(/\d+\+?/.exec(Le)||"")),Oe=="Fennec"||Oe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Je))Oe="Firefox Mobile";else if(Oe=="Maxthon"&&We)We=We.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test($e))$e=="Xbox 360"&&(Je=null),$e=="Xbox 360"&&/\bIEMobile\b/.test(Ae)&&te.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Oe)||Oe&&!$e&&!/Browser|Mobi/.test(Oe))&&(Je=="Windows CE"||/Mobi/i.test(Ae)))Oe+=" Mobile";else if(Oe=="IE"&&Re)try{ve.external===null&&te.unshift("platform preview")}catch(Et){te.unshift("embedded")}else(/\bBlackBerry\b/.test($e)||/\bBB10\b/.test(Ae))&&(Le=(RegExp($e.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ae)||0)[1]||We)?(Le=[Le,/BB10/.test(Ae)],Je=(Le[1]?($e=null,Ze="BlackBerry"):"Device Software")+" "+Le[0],We=null):this!=Me&&$e!="Wii"&&(Re&&at||/Opera/.test(Oe)&&/\b(?:MSIE|Firefox)\b/i.test(Ae)||Oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Je)||Oe=="IE"&&(Je&&!/^Win/.test(Je)&&We>5.5||/\bWindows XP\b/.test(Je)&&We>8||We==8&&!/\bTrident\b/.test(Ae)))&&!re.test(Le=ke.call(Me,Ae.replace(re,"")+";"))&&Le.name&&(Le="ing as "+Le.name+((Le=Le.version)?" "+Le:""),re.test(Oe)?(/\bIE\b/.test(Le)&&Je=="Mac OS"&&(Je=null),Le="identify"+Le):(Le="mask"+Le,qe?Oe=Pe(qe.replace(/([a-z])([A-Z])/g,"$1 $2")):Oe="Opera",/\bIE\b/.test(Le)&&(Je=null),Re||(We=null)),ye=["Presto"],te.push(Le));(Le=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ae)||0)[1])&&(Le=[parseFloat(Le.replace(/\.(\d)$/,".0$1")),Le],Oe=="Safari"&&Le[1].slice(-1)=="+"?(Oe="WebKit Nightly",de="alpha",We=Le[1].slice(0,-1)):(We==Le[1]||We==(Le[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ae)||0)[1]))&&(We=null),Le[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ae)||0)[1],Le[0]==537.36&&Le[2]==537.36&&parseFloat(Le[1])>=28&&ye=="WebKit"&&(ye=["Blink"]),!Re||!Fe&&!Le[1]?(ye&&(ye[1]="like Safari"),Le=(Le=Le[0],Le<400?1:Le<500?2:Le<526?3:Le<533?4:Le<534?"4+":Le<535?5:Le<537?6:Le<538?7:Le<601?8:Le<602?9:Le<604?10:Le<606?11:Le<608?12:"12")):(ye&&(ye[1]="like Chrome"),Le=Le[1]||(Le=Le[0],Le<530?1:Le<532?2:Le<532.05?3:Le<533?4:Le<534.03?5:Le<534.07?6:Le<534.1?7:Le<534.13?8:Le<534.16?9:Le<534.24?10:Le<534.3?11:Le<535.01?12:Le<535.02?"13+":Le<535.07?15:Le<535.11?16:Le<535.19?17:Le<536.05?18:Le<536.1?19:Le<537.01?20:Le<537.11?"21+":Le<537.13?23:Le<537.18?24:Le<537.24?25:Le<537.36?26:ye!="Blink"?"27":"28")),ye&&(ye[1]+=" "+(Le+=typeof Le=="number"?".x":/[.+]/.test(Le)?"":"+")),Oe=="Safari"&&(!We||parseInt(We)>45)?We=Le:Oe=="Chrome"&&/\bHeadlessChrome/i.test(Ae)&&te.unshift("headless")),Oe=="Opera"&&(Le=/\bzbov|zvav$/.exec(Je))?(Oe+=" ",te.unshift("desktop mode"),Le=="zvav"?(Oe+="Mini",We=null):Oe+="Mobile",Je=Je.replace(RegExp(" *"+Le+"$"),"")):Oe=="Safari"&&/\bChrome\b/.exec(ye&&ye[1])?(te.unshift("desktop mode"),Oe="Chrome Mobile",We=null,/\bOS X\b/.test(Je)?(Ze="Apple",Je="iOS 4.3+"):Je=null):/\bSRWare Iron\b/.test(Oe)&&!We&&(We=Ot("Chrome")),We&&We.indexOf(Le=/[\d.]+$/.exec(Je))==0&&Ae.indexOf("/"+Le+"-")>-1&&(Je=je(Je.replace(Le,""))),Je&&Je.indexOf(Oe)!=-1&&!RegExp(Oe+" OS").test(Je)&&(Je=Je.replace(RegExp(" *"+Ce(Oe)+" *"),"")),ye&&!/\b(?:Avant|Nook)\b/.test(Oe)&&(/Browser|Lunascape|Maxthon/.test(Oe)||Oe!="Safari"&&/^iOS/.test(Je)&&/\bSafari\b/.test(ye[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Oe)&&ye[1])&&(Le=ye[ye.length-1])&&te.push(Le),te.length&&(te=["("+te.join("; ")+")"]),Ze&&$e&&$e.indexOf(Ze)<0&&te.push("on "+Ze),$e&&te.push((/^on /.test(te[te.length-1])?"":"on ")+$e),Je&&(Le=/ ([\d.+]+)$/.exec(Je),we=Le&&Je.charAt(Je.length-Le[0].length-1)=="/",Je={architecture:32,family:Le&&!we?Je.replace(Le[0],""):Je,version:Le?Le[1]:null,toString:function(){var Et=this.version;return this.family+(Et&&!we?" "+Et:"")+(this.architecture==64?" 64-bit":"")}}),(Le=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ne))&&!/\bi686\b/i.test(Ne)?(Je&&(Je.architecture=64,Je.family=Je.family.replace(RegExp(" *"+Le),"")),Oe&&(/\bWOW64\b/i.test(Ae)||Re&&/\w(?:86|32)$/.test(He.cpuClass||He.platform)&&!/\bWin64; x64\b/i.test(Ae))&&te.unshift("32-bit")):Je&&/^OS X/.test(Je.family)&&Oe=="Chrome"&&parseFloat(We)>=39&&(Je.architecture=64),Ae||(Ae=null);var Dt={};return Dt.description=Ae,Dt.layout=ye&&ye[0],Dt.manufacturer=Ze,Dt.name=Oe,Dt.prerelease=de,Dt.product=$e,Dt.ua=Ae,Dt.version=Oe&&We,Dt.os=Je||{architecture:null,family:null,version:null,toString:function(){return"null"}},Dt.parse=ke,Dt.toString=yt,Dt.version&&te.unshift(We),Dt.name&&te.unshift(Oe),Je&&Oe&&!(Je==String(Je).split(" ")[0]&&(Je==Oe.split(" ")[0]||$e))&&te.push($e?"("+Je+")":"on "+Je),te.length&&(Dt.description=te.join(" ")),Dt}var Be=ke();typeof Ie=="function"&&typeof Ie.amd=="object"&&Ie.amd?(oe.platform=Be,Ie(function(){return Be})):ee&&le?Me(Be,function(Ae,ve){ee[ve]=Ae}):oe.platform=Be}).call(this)}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(a,Te,xe){(function(z){(function(){"use strict";typeof z=="undefined"||!z.version||z.version.indexOf("v0.")===0||z.version.indexOf("v1.")===0&&z.version.indexOf("v1.8.")!==0?Te.exports={nextTick:E}:Te.exports=z;function E(oe,ie,ee,le){if(typeof oe!="function")throw new TypeError('"callback" argument must be a function');var x=arguments.length,ne,re;switch(x){case 0:case 1:return z.nextTick(oe);case 2:return z.nextTick(function(){oe.call(null,ie)});case 3:return z.nextTick(function(){oe.call(null,ie,ee)});case 4:return z.nextTick(function(){oe.call(null,ie,ee,le)});default:for(ne=new Array(x-1),re=0;re<ne.length;)ne[re++]=arguments[re];return z.nextTick(function(){oe.apply(null,ne)})}}}).call(this)}).call(this,a("_process"))},{_process:467}],381:[function(a,Te,xe){var z=Te.exports={},E,oe;function ie(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=ie}catch(be){E=ie}try{typeof clearTimeout=="function"?oe=clearTimeout:oe=ee}catch(be){oe=ee}})();function le(be){if(E===setTimeout)return setTimeout(be,0);if((E===ie||!E)&&setTimeout)return E=setTimeout,setTimeout(be,0);try{return E(be,0)}catch(Pe){try{return E.call(null,be,0)}catch(Me){return E.call(this,be,0)}}}function x(be){if(oe===clearTimeout)return clearTimeout(be);if((oe===ee||!oe)&&clearTimeout)return oe=clearTimeout,clearTimeout(be);try{return oe(be)}catch(Pe){try{return oe.call(null,be)}catch(Me){return oe.call(this,be)}}}var ne=[],re=!1,ae,se=-1;function ce(){!re||!ae||(re=!1,ae.length?ne=ae.concat(ne):se=-1,ne.length&&pe())}function pe(){if(!re){var be=le(ce);re=!0;for(var Pe=ne.length;Pe;){for(ae=ne,ne=[];++se<Pe;)ae&&ae[se].run();se=-1,Pe=ne.length}ae=null,re=!1,x(be)}}z.nextTick=function(be){var Pe=new Array(arguments.length-1);if(arguments.length>1)for(var Me=1;Me<arguments.length;Me++)Pe[Me-1]=arguments[Me];ne.push(new me(be,Pe)),ne.length===1&&!re&&le(pe)};function me(be,Pe){this.fun=be,this.array=Pe}me.prototype.run=function(){this.fun.apply(null,this.array)},z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function he(){}z.on=he,z.addListener=he,z.once=he,z.off=he,z.removeListener=he,z.removeAllListeners=he,z.emit=he,z.prependListener=he,z.prependOnceListener=he,z.listeners=function(be){return[]},z.binding=function(be){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(be){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{}],382:[function(a,Te,xe){(function(z){(function(){(function(E){var oe=typeof xe=="object"&&xe&&!xe.nodeType&&xe,ie=typeof Te=="object"&&Te&&!Te.nodeType&&Te,ee=typeof z=="object"&&z;(ee.global===ee||ee.window===ee||ee.self===ee)&&(E=ee);var le,x=2147483647,ne=36,re=1,ae=26,se=38,ce=700,pe=72,me=128,he="-",be=/^xn--/,Pe=/[^\x20-\x7E]/,Me=/[\x2E\u3002\uFF0E\uFF61]/g,_e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},De=ne-re,Ce=Math.floor,Ee=String.fromCharCode,je;function ke(et){throw new RangeError(_e[et])}function Be(et,Ge){for(var Xe=et.length,Ve=[];Xe--;)Ve[Xe]=Ge(et[Xe]);return Ve}function Ae(et,Ge){var Xe=et.split("@"),Ve="";Xe.length>1&&(Ve=Xe[0]+"@",et=Xe[1]),et=et.replace(Me,".");var tt=et.split("."),Qe=Be(tt,Ge).join(".");return Ve+Qe}function ve(et){for(var Ge=[],Xe=0,Ve=et.length,tt,Qe;Xe<Ve;)tt=et.charCodeAt(Xe++),tt>=55296&&tt<=56319&&Xe<Ve?(Qe=et.charCodeAt(Xe++),(Qe&64512)==56320?Ge.push(((tt&1023)<<10)+(Qe&1023)+65536):(Ge.push(tt),Xe--)):Ge.push(tt);return Ge}function Ue(et){return Be(et,function(Ge){var Xe="";return Ge>65535&&(Ge-=65536,Xe+=Ee(Ge>>>10&1023|55296),Ge=56320|Ge&1023),Xe+=Ee(Ge),Xe}).join("")}function He(et){return et-48<10?et-22:et-65<26?et-65:et-97<26?et-97:ne}function Ye(et,Ge){return et+22+75*(et<26)-((Ge!=0)<<5)}function ot(et,Ge,Xe){var Ve=0;for(et=Xe?Ce(et/ce):et>>1,et+=Ce(et/Ge);et>De*ae>>1;Ve+=ne)et=Ce(et/De);return Ce(Ve+(De+1)*et/(et+se))}function Fe(et){var Ge=[],Xe=et.length,Ve,tt=0,Qe=me,ct=pe,at,qe,Le,Ne,te,de,Re,We,we;for(at=et.lastIndexOf(he),at<0&&(at=0),qe=0;qe<at;++qe)et.charCodeAt(qe)>=128&&ke("not-basic"),Ge.push(et.charCodeAt(qe));for(Le=at>0?at+1:0;Le<Xe;){for(Ne=tt,te=1,de=ne;Le>=Xe&&ke("invalid-input"),Re=He(et.charCodeAt(Le++)),(Re>=ne||Re>Ce((x-tt)/te))&&ke("overflow"),tt+=Re*te,We=de<=ct?re:de>=ct+ae?ae:de-ct,!(Re<We);de+=ne)we=ne-We,te>Ce(x/we)&&ke("overflow"),te*=we;Ve=Ge.length+1,ct=ot(tt-Ne,Ve,Ne==0),Ce(tt/Ve)>x-Qe&&ke("overflow"),Qe+=Ce(tt/Ve),tt%=Ve,Ge.splice(tt++,0,Qe)}return Ue(Ge)}function Ke(et){var Ge,Xe,Ve,tt,Qe,ct,at,qe,Le,Ne,te,de=[],Re,We,we,ye;for(et=ve(et),Re=et.length,Ge=me,Xe=0,Qe=pe,ct=0;ct<Re;++ct)te=et[ct],te<128&&de.push(Ee(te));for(Ve=tt=de.length,tt&&de.push(he);Ve<Re;){for(at=x,ct=0;ct<Re;++ct)te=et[ct],te>=Ge&&te<at&&(at=te);for(We=Ve+1,at-Ge>Ce((x-Xe)/We)&&ke("overflow"),Xe+=(at-Ge)*We,Ge=at,ct=0;ct<Re;++ct)if(te=et[ct],te<Ge&&++Xe>x&&ke("overflow"),te==Ge){for(qe=Xe,Le=ne;Ne=Le<=Qe?re:Le>=Qe+ae?ae:Le-Qe,!(qe<Ne);Le+=ne)ye=qe-Ne,we=ne-Ne,de.push(Ee(Ye(Ne+ye%we,0))),qe=Ce(ye/we);de.push(Ee(Ye(qe,0))),Qe=ot(Xe,We,Ve==tt),Xe=0,++Ve}++Xe,++Ge}return de.join("")}function rt(et){return Ae(et,function(Ge){return be.test(Ge)?Fe(Ge.slice(4).toLowerCase()):Ge})}function nt(et){return Ae(et,function(Ge){return Pe.test(Ge)?"xn--"+Ke(Ge):Ge})}if(le={version:"1.4.1",ucs2:{decode:ve,encode:Ue},decode:Fe,encode:Ke,toASCII:nt,toUnicode:rt},typeof Ie=="function"&&typeof Ie.amd=="object"&&Ie.amd)Ie("punycode",function(){return le});else if(oe&&ie)if(Te.exports==oe)ie.exports=le;else for(je in le)le.hasOwnProperty(je)&&(oe[je]=le[je]);else E.punycode=le})(this)}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(a,Te,xe){"use strict";function z(oe,ie){return Object.prototype.hasOwnProperty.call(oe,ie)}Te.exports=function(oe,ie,ee,le){ie=ie||"&",ee=ee||"=";var x={};if(typeof oe!="string"||oe.length===0)return x;var ne=/\+/g;oe=oe.split(ie);var re=1e3;le&&typeof le.maxKeys=="number"&&(re=le.maxKeys);var ae=oe.length;re>0&&ae>re&&(ae=re);for(var se=0;se<ae;++se){var ce=oe[se].replace(ne,"%20"),pe=ce.indexOf(ee),me,he,be,Pe;pe>=0?(me=ce.substr(0,pe),he=ce.substr(pe+1)):(me=ce,he=""),be=decodeURIComponent(me),Pe=decodeURIComponent(he),z(x,be)?E(x[be])?x[be].push(Pe):x[be]=[x[be],Pe]:x[be]=Pe}return x};var E=Array.isArray||function(oe){return Object.prototype.toString.call(oe)==="[object Array]"}},{}],384:[function(a,Te,xe){"use strict";var z=function(ee){switch(typeof ee){case"string":return ee;case"boolean":return ee?"true":"false";case"number":return isFinite(ee)?ee:"";default:return""}};Te.exports=function(ee,le,x,ne){return le=le||"&",x=x||"=",ee===null&&(ee=void 0),typeof ee=="object"?oe(ie(ee),function(re){var ae=encodeURIComponent(z(re))+x;return E(ee[re])?oe(ee[re],function(se){return ae+encodeURIComponent(z(se))}).join(le):ae+encodeURIComponent(z(ee[re]))}).join(le):ne?encodeURIComponent(z(ne))+x+encodeURIComponent(z(ee)):""};var E=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function oe(ee,le){if(ee.map)return ee.map(le);for(var x=[],ne=0;ne<ee.length;ne++)x.push(le(ee[ne],ne));return x}var ie=Object.keys||function(ee){var le=[];for(var x in ee)Object.prototype.hasOwnProperty.call(ee,x)&&le.push(x);return le}},{}],385:[function(a,Te,xe){"use strict";xe.decode=xe.parse=a("./decode"),xe.encode=xe.stringify=a("./encode")},{"./decode":383,"./encode":384}],386:[function(a,Te,xe){"use strict";var z=a("process-nextick-args"),E=Object.keys||function(ce){var pe=[];for(var me in ce)pe.push(me);return pe};Te.exports=re;var oe=Object.create(a("core-util-is"));oe.inherits=a("inherits");var ie=a("./_stream_readable"),ee=a("./_stream_writable");oe.inherits(re,ie);for(var le=E(ee.prototype),x=0;x<le.length;x++){var ne=le[x];re.prototype[ne]||(re.prototype[ne]=ee.prototype[ne])}function re(ce){if(!(this instanceof re))return new re(ce);ie.call(this,ce),ee.call(this,ce),ce&&ce.readable===!1&&(this.readable=!1),ce&&ce.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ce&&ce.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",ae)}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ae(){this.allowHalfOpen||this._writableState.ended||z.nextTick(se,this)}function se(ce){ce.end()}Object.defineProperty(re.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ce){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ce,this._writableState.destroyed=ce)}}),re.prototype._destroy=function(ce,pe){this.push(null),this.end(),z.nextTick(pe,ce)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(a,Te,xe){"use strict";Te.exports=oe;var z=a("./_stream_transform"),E=Object.create(a("core-util-is"));E.inherits=a("inherits"),E.inherits(oe,z);function oe(ie){if(!(this instanceof oe))return new oe(ie);z.call(this,ie)}oe.prototype._transform=function(ie,ee,le){le(null,ie)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(a,Te,xe){(function(z,E){(function(){"use strict";var oe=a("process-nextick-args");Te.exports=Ee;var ie=a("isarray"),ee;Ee.ReadableState=Ce;var le=a("events").EventEmitter,x=function(te,de){return te.listeners(de).length},ne=a("./internal/streams/stream"),re=a("safe-buffer").Buffer,ae=E.Uint8Array||function(){};function se(te){return re.from(te)}function ce(te){return re.isBuffer(te)||te instanceof ae}var pe=Object.create(a("core-util-is"));pe.inherits=a("inherits");var me=a("util"),he=void 0;me&&me.debuglog?he=me.debuglog("stream"):he=function(){};var be=a("./internal/streams/BufferList"),Pe=a("./internal/streams/destroy"),Me;pe.inherits(Ee,ne);var _e=["error","close","destroy","pause","resume"];function De(te,de,Re){if(typeof te.prependListener=="function")return te.prependListener(de,Re);!te._events||!te._events[de]?te.on(de,Re):ie(te._events[de])?te._events[de].unshift(Re):te._events[de]=[Re,te._events[de]]}function Ce(te,de){ee=ee||a("./_stream_duplex"),te=te||{};var Re=de instanceof ee;this.objectMode=!!te.objectMode,Re&&(this.objectMode=this.objectMode||!!te.readableObjectMode);var We=te.highWaterMark,we=te.readableHighWaterMark,ye=this.objectMode?16:16*1024;We||We===0?this.highWaterMark=We:Re&&(we||we===0)?this.highWaterMark=we:this.highWaterMark=ye,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new be,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,te.encoding&&(Me||(Me=a("string_decoder/").StringDecoder),this.decoder=new Me(te.encoding),this.encoding=te.encoding)}function Ee(te){if(ee=ee||a("./_stream_duplex"),!(this instanceof Ee))return new Ee(te);this._readableState=new Ce(te,this),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),ne.call(this)}Object.defineProperty(Ee.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){this._readableState&&(this._readableState.destroyed=te)}}),Ee.prototype.destroy=Pe.destroy,Ee.prototype._undestroy=Pe.undestroy,Ee.prototype._destroy=function(te,de){this.push(null),de(te)},Ee.prototype.push=function(te,de){var Re=this._readableState,We;return Re.objectMode?We=!0:typeof te=="string"&&(de=de||Re.defaultEncoding,de!==Re.encoding&&(te=re.from(te,de),de=""),We=!0),je(this,te,de,!1,We)},Ee.prototype.unshift=function(te){return je(this,te,null,!0,!1)};function je(te,de,Re,We,we){var ye=te._readableState;if(de===null)ye.reading=!1,Ye(te,ye);else{var Oe;we||(Oe=Be(ye,de)),Oe?te.emit("error",Oe):ye.objectMode||de&&de.length>0?(typeof de!="string"&&!ye.objectMode&&Object.getPrototypeOf(de)!==re.prototype&&(de=se(de)),We?ye.endEmitted?te.emit("error",new Error("stream.unshift() after end event")):ke(te,ye,de,!0):ye.ended?te.emit("error",new Error("stream.push() after EOF")):(ye.reading=!1,ye.decoder&&!Re?(de=ye.decoder.write(de),ye.objectMode||de.length!==0?ke(te,ye,de,!1):Ke(te,ye)):ke(te,ye,de,!1))):We||(ye.reading=!1)}return Ae(ye)}function ke(te,de,Re,We){de.flowing&&de.length===0&&!de.sync?(te.emit("data",Re),te.read(0)):(de.length+=de.objectMode?1:Re.length,We?de.buffer.unshift(Re):de.buffer.push(Re),de.needReadable&&ot(te)),Ke(te,de)}function Be(te,de){var Re;return!ce(de)&&typeof de!="string"&&de!==void 0&&!te.objectMode&&(Re=new TypeError("Invalid non-string/buffer chunk")),Re}function Ae(te){return!te.ended&&(te.needReadable||te.length<te.highWaterMark||te.length===0)}Ee.prototype.isPaused=function(){return this._readableState.flowing===!1},Ee.prototype.setEncoding=function(te){return Me||(Me=a("string_decoder/").StringDecoder),this._readableState.decoder=new Me(te),this._readableState.encoding=te,this};var ve=8388608;function Ue(te){return te>=ve?te=ve:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function He(te,de){return te<=0||de.length===0&&de.ended?0:de.objectMode?1:te!==te?de.flowing&&de.length?de.buffer.head.data.length:de.length:(te>de.highWaterMark&&(de.highWaterMark=Ue(te)),te<=de.length?te:de.ended?de.length:(de.needReadable=!0,0))}Ee.prototype.read=function(te){he("read",te),te=parseInt(te,10);var de=this._readableState,Re=te;if(te!==0&&(de.emittedReadable=!1),te===0&&de.needReadable&&(de.length>=de.highWaterMark||de.ended))return he("read: emitReadable",de.length,de.ended),de.length===0&&de.ended?qe(this):ot(this),null;if(te=He(te,de),te===0&&de.ended)return de.length===0&&qe(this),null;var We=de.needReadable;he("need readable",We),(de.length===0||de.length-te<de.highWaterMark)&&(We=!0,he("length less than watermark",We)),de.ended||de.reading?(We=!1,he("reading or ended",We)):We&&(he("do read"),de.reading=!0,de.sync=!0,de.length===0&&(de.needReadable=!0),this._read(de.highWaterMark),de.sync=!1,de.reading||(te=He(Re,de)));var we;return te>0?we=tt(te,de):we=null,we===null?(de.needReadable=!0,te=0):de.length-=te,de.length===0&&(de.ended||(de.needReadable=!0),Re!==te&&de.ended&&qe(this)),we!==null&&this.emit("data",we),we};function Ye(te,de){if(!de.ended){if(de.decoder){var Re=de.decoder.end();Re&&Re.length&&(de.buffer.push(Re),de.length+=de.objectMode?1:Re.length)}de.ended=!0,ot(te)}}function ot(te){var de=te._readableState;de.needReadable=!1,de.emittedReadable||(he("emitReadable",de.flowing),de.emittedReadable=!0,de.sync?oe.nextTick(Fe,te):Fe(te))}function Fe(te){he("emit readable"),te.emit("readable"),Ve(te)}function Ke(te,de){de.readingMore||(de.readingMore=!0,oe.nextTick(rt,te,de))}function rt(te,de){for(var Re=de.length;!de.reading&&!de.flowing&&!de.ended&&de.length<de.highWaterMark&&(he("maybeReadMore read 0"),te.read(0),Re!==de.length);)Re=de.length;de.readingMore=!1}Ee.prototype._read=function(te){this.emit("error",new Error("_read() is not implemented"))},Ee.prototype.pipe=function(te,de){var Re=this,We=this._readableState;switch(We.pipesCount){case 0:We.pipes=te;break;case 1:We.pipes=[We.pipes,te];break;default:We.pipes.push(te);break}We.pipesCount+=1,he("pipe count=%d opts=%j",We.pipesCount,de);var we=(!de||de.end!==!1)&&te!==z.stdout&&te!==z.stderr,ye=we?$e:yt;We.endEmitted?oe.nextTick(ye):Re.once("end",ye),te.on("unpipe",Oe);function Oe(Dt,Et){he("onunpipe"),Dt===Re&&Et&&Et.hasUnpiped===!1&&(Et.hasUnpiped=!0,st())}function $e(){he("onend"),te.end()}var Ze=nt(Re);te.on("drain",Ze);var Je=!1;function st(){he("cleanup"),te.removeListener("close",St),te.removeListener("finish",Ot),te.removeListener("drain",Ze),te.removeListener("error",Tt),te.removeListener("unpipe",Oe),Re.removeListener("end",$e),Re.removeListener("end",yt),Re.removeListener("data",ft),Je=!0,We.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&Ze()}var lt=!1;Re.on("data",ft);function ft(Dt){he("ondata"),lt=!1;var Et=te.write(Dt);Et===!1&&!lt&&((We.pipesCount===1&&We.pipes===te||We.pipesCount>1&&Ne(We.pipes,te)!==-1)&&!Je&&(he("false write response, pause",Re._readableState.awaitDrain),Re._readableState.awaitDrain++,lt=!0),Re.pause())}function Tt(Dt){he("onerror",Dt),yt(),te.removeListener("error",Tt),x(te,"error")===0&&te.emit("error",Dt)}De(te,"error",Tt);function St(){te.removeListener("finish",Ot),yt()}te.once("close",St);function Ot(){he("onfinish"),te.removeListener("close",St),yt()}te.once("finish",Ot);function yt(){he("unpipe"),Re.unpipe(te)}return te.emit("pipe",Re),We.flowing||(he("pipe resume"),Re.resume()),te};function nt(te){return function(){var de=te._readableState;he("pipeOnDrain",de.awaitDrain),de.awaitDrain&&de.awaitDrain--,de.awaitDrain===0&&x(te,"data")&&(de.flowing=!0,Ve(te))}}Ee.prototype.unpipe=function(te){var de=this._readableState,Re={hasUnpiped:!1};if(de.pipesCount===0)return this;if(de.pipesCount===1)return te&&te!==de.pipes?this:(te||(te=de.pipes),de.pipes=null,de.pipesCount=0,de.flowing=!1,te&&te.emit("unpipe",this,Re),this);if(!te){var We=de.pipes,we=de.pipesCount;de.pipes=null,de.pipesCount=0,de.flowing=!1;for(var ye=0;ye<we;ye++)We[ye].emit("unpipe",this,Re);return this}var Oe=Ne(de.pipes,te);return Oe===-1?this:(de.pipes.splice(Oe,1),de.pipesCount-=1,de.pipesCount===1&&(de.pipes=de.pipes[0]),te.emit("unpipe",this,Re),this)},Ee.prototype.on=function(te,de){var Re=ne.prototype.on.call(this,te,de);if(te==="data")this._readableState.flowing!==!1&&this.resume();else if(te==="readable"){var We=this._readableState;!We.endEmitted&&!We.readableListening&&(We.readableListening=We.needReadable=!0,We.emittedReadable=!1,We.reading?We.length&&ot(this):oe.nextTick(et,this))}return Re},Ee.prototype.addListener=Ee.prototype.on;function et(te){he("readable nexttick read 0"),te.read(0)}Ee.prototype.resume=function(){var te=this._readableState;return te.flowing||(he("resume"),te.flowing=!0,Ge(this,te)),this};function Ge(te,de){de.resumeScheduled||(de.resumeScheduled=!0,oe.nextTick(Xe,te,de))}function Xe(te,de){de.reading||(he("resume read 0"),te.read(0)),de.resumeScheduled=!1,de.awaitDrain=0,te.emit("resume"),Ve(te),de.flowing&&!de.reading&&te.read(0)}Ee.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ve(te){var de=te._readableState;for(he("flow",de.flowing);de.flowing&&te.read()!==null;);}Ee.prototype.wrap=function(te){var de=this,Re=this._readableState,We=!1;te.on("end",function(){if(he("wrapped end"),Re.decoder&&!Re.ended){var Oe=Re.decoder.end();Oe&&Oe.length&&de.push(Oe)}de.push(null)}),te.on("data",function(Oe){if(he("wrapped data"),Re.decoder&&(Oe=Re.decoder.write(Oe)),!(Re.objectMode&&Oe==null)&&!(!Re.objectMode&&(!Oe||!Oe.length))){var $e=de.push(Oe);$e||(We=!0,te.pause())}});for(var we in te)this[we]===void 0&&typeof te[we]=="function"&&(this[we]=function(Oe){return function(){return te[Oe].apply(te,arguments)}}(we));for(var ye=0;ye<_e.length;ye++)te.on(_e[ye],this.emit.bind(this,_e[ye]));return this._read=function(Oe){he("wrapped _read",Oe),We&&(We=!1,te.resume())},this},Object.defineProperty(Ee.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ee._fromList=tt;function tt(te,de){if(de.length===0)return null;var Re;return de.objectMode?Re=de.buffer.shift():!te||te>=de.length?(de.decoder?Re=de.buffer.join(""):de.buffer.length===1?Re=de.buffer.head.data:Re=de.buffer.concat(de.length),de.buffer.clear()):Re=Qe(te,de.buffer,de.decoder),Re}function Qe(te,de,Re){var We;return te<de.head.data.length?(We=de.head.data.slice(0,te),de.head.data=de.head.data.slice(te)):te===de.head.data.length?We=de.shift():We=Re?ct(te,de):at(te,de),We}function ct(te,de){var Re=de.head,We=1,we=Re.data;for(te-=we.length;Re=Re.next;){var ye=Re.data,Oe=te>ye.length?ye.length:te;if(Oe===ye.length?we+=ye:we+=ye.slice(0,te),te-=Oe,te===0){Oe===ye.length?(++We,Re.next?de.head=Re.next:de.head=de.tail=null):(de.head=Re,Re.data=ye.slice(Oe));break}++We}return de.length-=We,we}function at(te,de){var Re=re.allocUnsafe(te),We=de.head,we=1;for(We.data.copy(Re),te-=We.data.length;We=We.next;){var ye=We.data,Oe=te>ye.length?ye.length:te;if(ye.copy(Re,Re.length-te,0,Oe),te-=Oe,te===0){Oe===ye.length?(++we,We.next?de.head=We.next:de.head=de.tail=null):(de.head=We,We.data=ye.slice(Oe));break}++we}return de.length-=we,Re}function qe(te){var de=te._readableState;if(de.length>0)throw new Error('"endReadable()" called on non-empty stream');de.endEmitted||(de.ended=!0,oe.nextTick(Le,de,te))}function Le(te,de){!te.endEmitted&&te.length===0&&(te.endEmitted=!0,de.readable=!1,de.emit("end"))}function Ne(te,de){for(var Re=0,We=te.length;Re<We;Re++)if(te[Re]===de)return Re;return-1}}).call(this)}).call(this,a("_process"),typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(a,Te,xe){"use strict";Te.exports=ie;var z=a("./_stream_duplex"),E=Object.create(a("core-util-is"));E.inherits=a("inherits"),E.inherits(ie,z);function oe(x,ne){var re=this._transformState;re.transforming=!1;var ae=re.writecb;if(!ae)return this.emit("error",new Error("write callback called multiple times"));re.writechunk=null,re.writecb=null,ne!=null&&this.push(ne),ae(x);var se=this._readableState;se.reading=!1,(se.needReadable||se.length<se.highWaterMark)&&this._read(se.highWaterMark)}function ie(x){if(!(this instanceof ie))return new ie(x);z.call(this,x),this._transformState={afterTransform:oe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,x&&(typeof x.transform=="function"&&(this._transform=x.transform),typeof x.flush=="function"&&(this._flush=x.flush)),this.on("prefinish",ee)}function ee(){var x=this;typeof this._flush=="function"?this._flush(function(ne,re){le(x,ne,re)}):le(this,null,null)}ie.prototype.push=function(x,ne){return this._transformState.needTransform=!1,z.prototype.push.call(this,x,ne)},ie.prototype._transform=function(x,ne,re){throw new Error("_transform() is not implemented")},ie.prototype._write=function(x,ne,re){var ae=this._transformState;if(ae.writecb=re,ae.writechunk=x,ae.writeencoding=ne,!ae.transforming){var se=this._readableState;(ae.needTransform||se.needReadable||se.length<se.highWaterMark)&&this._read(se.highWaterMark)}},ie.prototype._read=function(x){var ne=this._transformState;ne.writechunk!==null&&ne.writecb&&!ne.transforming?(ne.transforming=!0,this._transform(ne.writechunk,ne.writeencoding,ne.afterTransform)):ne.needTransform=!0},ie.prototype._destroy=function(x,ne){var re=this;z.prototype._destroy.call(this,x,function(ae){ne(ae),re.emit("close")})};function le(x,ne,re){if(ne)return x.emit("error",ne);if(re!=null&&x.push(re),x._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(x._transformState.transforming)throw new Error("Calling transform done when still transforming");return x.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(a,Te,xe){(function(z,E,oe){(function(){"use strict";var ie=a("process-nextick-args");Te.exports=De;function ee(Xe,Ve,tt){this.chunk=Xe,this.encoding=Ve,this.callback=tt,this.next=null}function le(Xe){var Ve=this;this.next=null,this.entry=null,this.finish=function(){Ge(Ve,Xe)}}var x=!z.browser&&["v0.10","v0.9."].indexOf(z.version.slice(0,5))>-1?oe:ie.nextTick,ne;De.WritableState=Me;var re=Object.create(a("core-util-is"));re.inherits=a("inherits");var ae={deprecate:a("util-deprecate")},se=a("./internal/streams/stream"),ce=a("safe-buffer").Buffer,pe=E.Uint8Array||function(){};function me(Xe){return ce.from(Xe)}function he(Xe){return ce.isBuffer(Xe)||Xe instanceof pe}var be=a("./internal/streams/destroy");re.inherits(De,se);function Pe(){}function Me(Xe,Ve){ne=ne||a("./_stream_duplex"),Xe=Xe||{};var tt=Ve instanceof ne;this.objectMode=!!Xe.objectMode,tt&&(this.objectMode=this.objectMode||!!Xe.writableObjectMode);var Qe=Xe.highWaterMark,ct=Xe.writableHighWaterMark,at=this.objectMode?16:16*1024;Qe||Qe===0?this.highWaterMark=Qe:tt&&(ct||ct===0)?this.highWaterMark=ct:this.highWaterMark=at,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var qe=Xe.decodeStrings===!1;this.decodeStrings=!qe,this.defaultEncoding=Xe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Le){Ue(Ve,Le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new le(this)}Me.prototype.getBuffer=function(){for(var Ve=this.bufferedRequest,tt=[];Ve;)tt.push(Ve),Ve=Ve.next;return tt},function(){try{Object.defineProperty(Me.prototype,"buffer",{get:ae.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Xe){}}();var _e;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_e=Function.prototype[Symbol.hasInstance],Object.defineProperty(De,Symbol.hasInstance,{value:function(Xe){return _e.call(this,Xe)?!0:this!==De?!1:Xe&&Xe._writableState instanceof Me}})):_e=function(Xe){return Xe instanceof this};function De(Xe){if(ne=ne||a("./_stream_duplex"),!_e.call(De,this)&&!(this instanceof ne))return new De(Xe);this._writableState=new Me(Xe,this),this.writable=!0,Xe&&(typeof Xe.write=="function"&&(this._write=Xe.write),typeof Xe.writev=="function"&&(this._writev=Xe.writev),typeof Xe.destroy=="function"&&(this._destroy=Xe.destroy),typeof Xe.final=="function"&&(this._final=Xe.final)),se.call(this)}De.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Ce(Xe,Ve){var tt=new Error("write after end");Xe.emit("error",tt),ie.nextTick(Ve,tt)}function Ee(Xe,Ve,tt,Qe){var ct=!0,at=!1;return tt===null?at=new TypeError("May not write null values to stream"):typeof tt!="string"&&tt!==void 0&&!Ve.objectMode&&(at=new TypeError("Invalid non-string/buffer chunk")),at&&(Xe.emit("error",at),ie.nextTick(Qe,at),ct=!1),ct}De.prototype.write=function(Xe,Ve,tt){var Qe=this._writableState,ct=!1,at=!Qe.objectMode&&he(Xe);return at&&!ce.isBuffer(Xe)&&(Xe=me(Xe)),typeof Ve=="function"&&(tt=Ve,Ve=null),at?Ve="buffer":Ve||(Ve=Qe.defaultEncoding),typeof tt!="function"&&(tt=Pe),Qe.ended?Ce(this,tt):(at||Ee(this,Qe,Xe,tt))&&(Qe.pendingcb++,ct=ke(this,Qe,at,Xe,Ve,tt)),ct},De.prototype.cork=function(){var Xe=this._writableState;Xe.corked++},De.prototype.uncork=function(){var Xe=this._writableState;Xe.corked&&(Xe.corked--,!Xe.writing&&!Xe.corked&&!Xe.finished&&!Xe.bufferProcessing&&Xe.bufferedRequest&&ot(this,Xe))},De.prototype.setDefaultEncoding=function(Ve){if(typeof Ve=="string"&&(Ve=Ve.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ve+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ve);return this._writableState.defaultEncoding=Ve,this};function je(Xe,Ve,tt){return!Xe.objectMode&&Xe.decodeStrings!==!1&&typeof Ve=="string"&&(Ve=ce.from(Ve,tt)),Ve}Object.defineProperty(De.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ke(Xe,Ve,tt,Qe,ct,at){if(!tt){var qe=je(Ve,Qe,ct);Qe!==qe&&(tt=!0,ct="buffer",Qe=qe)}var Le=Ve.objectMode?1:Qe.length;Ve.length+=Le;var Ne=Ve.length<Ve.highWaterMark;if(Ne||(Ve.needDrain=!0),Ve.writing||Ve.corked){var te=Ve.lastBufferedRequest;Ve.lastBufferedRequest={chunk:Qe,encoding:ct,isBuf:tt,callback:at,next:null},te?te.next=Ve.lastBufferedRequest:Ve.bufferedRequest=Ve.lastBufferedRequest,Ve.bufferedRequestCount+=1}else Be(Xe,Ve,!1,Le,Qe,ct,at);return Ne}function Be(Xe,Ve,tt,Qe,ct,at,qe){Ve.writelen=Qe,Ve.writecb=qe,Ve.writing=!0,Ve.sync=!0,tt?Xe._writev(ct,Ve.onwrite):Xe._write(ct,at,Ve.onwrite),Ve.sync=!1}function Ae(Xe,Ve,tt,Qe,ct){--Ve.pendingcb,tt?(ie.nextTick(ct,Qe),ie.nextTick(nt,Xe,Ve),Xe._writableState.errorEmitted=!0,Xe.emit("error",Qe)):(ct(Qe),Xe._writableState.errorEmitted=!0,Xe.emit("error",Qe),nt(Xe,Ve))}function ve(Xe){Xe.writing=!1,Xe.writecb=null,Xe.length-=Xe.writelen,Xe.writelen=0}function Ue(Xe,Ve){var tt=Xe._writableState,Qe=tt.sync,ct=tt.writecb;if(ve(tt),Ve)Ae(Xe,tt,Qe,Ve,ct);else{var at=Fe(tt);!at&&!tt.corked&&!tt.bufferProcessing&&tt.bufferedRequest&&ot(Xe,tt),Qe?x(He,Xe,tt,at,ct):He(Xe,tt,at,ct)}}function He(Xe,Ve,tt,Qe){tt||Ye(Xe,Ve),Ve.pendingcb--,Qe(),nt(Xe,Ve)}function Ye(Xe,Ve){Ve.length===0&&Ve.needDrain&&(Ve.needDrain=!1,Xe.emit("drain"))}function ot(Xe,Ve){Ve.bufferProcessing=!0;var tt=Ve.bufferedRequest;if(Xe._writev&&tt&&tt.next){var Qe=Ve.bufferedRequestCount,ct=new Array(Qe),at=Ve.corkedRequestsFree;at.entry=tt;for(var qe=0,Le=!0;tt;)ct[qe]=tt,tt.isBuf||(Le=!1),tt=tt.next,qe+=1;ct.allBuffers=Le,Be(Xe,Ve,!0,Ve.length,ct,"",at.finish),Ve.pendingcb++,Ve.lastBufferedRequest=null,at.next?(Ve.corkedRequestsFree=at.next,at.next=null):Ve.corkedRequestsFree=new le(Ve),Ve.bufferedRequestCount=0}else{for(;tt;){var Ne=tt.chunk,te=tt.encoding,de=tt.callback,Re=Ve.objectMode?1:Ne.length;if(Be(Xe,Ve,!1,Re,Ne,te,de),tt=tt.next,Ve.bufferedRequestCount--,Ve.writing)break}tt===null&&(Ve.lastBufferedRequest=null)}Ve.bufferedRequest=tt,Ve.bufferProcessing=!1}De.prototype._write=function(Xe,Ve,tt){tt(new Error("_write() is not implemented"))},De.prototype._writev=null,De.prototype.end=function(Xe,Ve,tt){var Qe=this._writableState;typeof Xe=="function"?(tt=Xe,Xe=null,Ve=null):typeof Ve=="function"&&(tt=Ve,Ve=null),Xe!=null&&this.write(Xe,Ve),Qe.corked&&(Qe.corked=1,this.uncork()),!Qe.ending&&!Qe.finished&&et(this,Qe,tt)};function Fe(Xe){return Xe.ending&&Xe.length===0&&Xe.bufferedRequest===null&&!Xe.finished&&!Xe.writing}function Ke(Xe,Ve){Xe._final(function(tt){Ve.pendingcb--,tt&&Xe.emit("error",tt),Ve.prefinished=!0,Xe.emit("prefinish"),nt(Xe,Ve)})}function rt(Xe,Ve){!Ve.prefinished&&!Ve.finalCalled&&(typeof Xe._final=="function"?(Ve.pendingcb++,Ve.finalCalled=!0,ie.nextTick(Ke,Xe,Ve)):(Ve.prefinished=!0,Xe.emit("prefinish")))}function nt(Xe,Ve){var tt=Fe(Ve);return tt&&(rt(Xe,Ve),Ve.pendingcb===0&&(Ve.finished=!0,Xe.emit("finish"))),tt}function et(Xe,Ve,tt){Ve.ending=!0,nt(Xe,Ve),tt&&(Ve.finished?ie.nextTick(tt):Xe.once("finish",tt)),Ve.ended=!0,Xe.writable=!1}function Ge(Xe,Ve,tt){var Qe=Xe.entry;for(Xe.entry=null;Qe;){var ct=Qe.callback;Ve.pendingcb--,ct(tt),Qe=Qe.next}Ve.corkedRequestsFree?Ve.corkedRequestsFree.next=Xe:Ve.corkedRequestsFree=Xe}Object.defineProperty(De.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Xe){this._writableState&&(this._writableState.destroyed=Xe)}}),De.prototype.destroy=be.destroy,De.prototype._undestroy=be.undestroy,De.prototype._destroy=function(Xe,Ve){this.end(),Ve(Xe)}}).call(this)}).call(this,a("_process"),typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(a,Te,xe){"use strict";function z(ee,le){if(!(ee instanceof le))throw new TypeError("Cannot call a class as a function")}var E=a("safe-buffer").Buffer,oe=a("util");function ie(ee,le,x){ee.copy(le,x)}Te.exports=function(){function ee(){z(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(x){var ne={data:x,next:null};this.length>0?this.tail.next=ne:this.head=ne,this.tail=ne,++this.length},ee.prototype.unshift=function(x){var ne={data:x,next:this.head};this.length===0&&(this.tail=ne),this.head=ne,++this.length},ee.prototype.shift=function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}},ee.prototype.clear=function(){this.head=this.tail=null,this.length=0},ee.prototype.join=function(x){if(this.length===0)return"";for(var ne=this.head,re=""+ne.data;ne=ne.next;)re+=x+ne.data;return re},ee.prototype.concat=function(x){if(this.length===0)return E.alloc(0);if(this.length===1)return this.head.data;for(var ne=E.allocUnsafe(x>>>0),re=this.head,ae=0;re;)ie(re.data,ne,ae),ae+=re.data.length,re=re.next;return ne},ee}(),oe&&oe.inspect&&oe.inspect.custom&&(Te.exports.prototype[oe.inspect.custom]=function(){var ee=oe.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(a,Te,xe){"use strict";var z=a("process-nextick-args");function E(ee,le){var x=this,ne=this._readableState&&this._readableState.destroyed,re=this._writableState&&this._writableState.destroyed;return ne||re?(le?le(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&z.nextTick(ie,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(ae){!le&&ae?(z.nextTick(ie,x,ae),x._writableState&&(x._writableState.errorEmitted=!0)):le&&le(ae)}),this)}function oe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ie(ee,le){ee.emit("error",le)}Te.exports={destroy:E,undestroy:oe}},{"process-nextick-args":380}],393:[function(a,Te,xe){Te.exports=a("events").EventEmitter},{events:344}],394:[function(a,Te,xe){xe=Te.exports=a("./lib/_stream_readable.js"),xe.Stream=xe,xe.Readable=xe,xe.Writable=a("./lib/_stream_writable.js"),xe.Duplex=a("./lib/_stream_duplex.js"),xe.Transform=a("./lib/_stream_transform.js"),xe.PassThrough=a("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(a,Te,xe){var z=function(E){"use strict";var oe=Object.prototype,ie=oe.hasOwnProperty,ee,le=typeof Symbol=="function"?Symbol:{},x=le.iterator||"@@iterator",ne=le.asyncIterator||"@@asyncIterator",re=le.toStringTag||"@@toStringTag";function ae(rt,nt,et){return Object.defineProperty(rt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}),rt[nt]}try{ae({},"")}catch(rt){ae=function(nt,et,Ge){return nt[et]=Ge}}function se(rt,nt,et,Ge){var Xe=nt&&nt.prototype instanceof Me?nt:Me,Ve=Object.create(Xe.prototype),tt=new ot(Ge||[]);return Ve._invoke=ve(rt,et,tt),Ve}E.wrap=se;function ce(rt,nt,et){try{return{type:"normal",arg:rt.call(nt,et)}}catch(Ge){return{type:"throw",arg:Ge}}}var pe="suspendedStart",me="suspendedYield",he="executing",be="completed",Pe={};function Me(){}function _e(){}function De(){}var Ce={};ae(Ce,x,function(){return this});var Ee=Object.getPrototypeOf,je=Ee&&Ee(Ee(Fe([])));je&&je!==oe&&ie.call(je,x)&&(Ce=je);var ke=De.prototype=Me.prototype=Object.create(Ce);_e.prototype=De,ae(ke,"constructor",De),ae(De,"constructor",_e),_e.displayName=ae(De,re,"GeneratorFunction");function Be(rt){["next","throw","return"].forEach(function(nt){ae(rt,nt,function(et){return this._invoke(nt,et)})})}E.isGeneratorFunction=function(rt){var nt=typeof rt=="function"&&rt.constructor;return nt?nt===_e||(nt.displayName||nt.name)==="GeneratorFunction":!1},E.mark=function(rt){return Object.setPrototypeOf?Object.setPrototypeOf(rt,De):(rt.__proto__=De,ae(rt,re,"GeneratorFunction")),rt.prototype=Object.create(ke),rt},E.awrap=function(rt){return{__await:rt}};function Ae(rt,nt){function et(Ve,tt,Qe,ct){var at=ce(rt[Ve],rt,tt);if(at.type==="throw")ct(at.arg);else{var qe=at.arg,Le=qe.value;return Le&&typeof Le=="object"&&ie.call(Le,"__await")?nt.resolve(Le.__await).then(function(Ne){et("next",Ne,Qe,ct)},function(Ne){et("throw",Ne,Qe,ct)}):nt.resolve(Le).then(function(Ne){qe.value=Ne,Qe(qe)},function(Ne){return et("throw",Ne,Qe,ct)})}}var Ge;function Xe(Ve,tt){function Qe(){return new nt(function(ct,at){et(Ve,tt,ct,at)})}return Ge=Ge?Ge.then(Qe,Qe):Qe()}this._invoke=Xe}Be(Ae.prototype),ae(Ae.prototype,ne,function(){return this}),E.AsyncIterator=Ae,E.async=function(rt,nt,et,Ge,Xe){Xe===void 0&&(Xe=Promise);var Ve=new Ae(se(rt,nt,et,Ge),Xe);return E.isGeneratorFunction(nt)?Ve:Ve.next().then(function(tt){return tt.done?tt.value:Ve.next()})};function ve(rt,nt,et){var Ge=pe;return function(Ve,tt){if(Ge===he)throw new Error("Generator is already running");if(Ge===be){if(Ve==="throw")throw tt;return Ke()}for(et.method=Ve,et.arg=tt;;){var Qe=et.delegate;if(Qe){var ct=Ue(Qe,et);if(ct){if(ct===Pe)continue;return ct}}if(et.method==="next")et.sent=et._sent=et.arg;else if(et.method==="throw"){if(Ge===pe)throw Ge=be,et.arg;et.dispatchException(et.arg)}else et.method==="return"&&et.abrupt("return",et.arg);Ge=he;var at=ce(rt,nt,et);if(at.type==="normal"){if(Ge=et.done?be:me,at.arg===Pe)continue;return{value:at.arg,done:et.done}}else at.type==="throw"&&(Ge=be,et.method="throw",et.arg=at.arg)}}}function Ue(rt,nt){var et=rt.iterator[nt.method];if(et===ee){if(nt.delegate=null,nt.method==="throw"){if(rt.iterator.return&&(nt.method="return",nt.arg=ee,Ue(rt,nt),nt.method==="throw"))return Pe;nt.method="throw",nt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Pe}var Ge=ce(et,rt.iterator,nt.arg);if(Ge.type==="throw")return nt.method="throw",nt.arg=Ge.arg,nt.delegate=null,Pe;var Xe=Ge.arg;if(!Xe)return nt.method="throw",nt.arg=new TypeError("iterator result is not an object"),nt.delegate=null,Pe;if(Xe.done)nt[rt.resultName]=Xe.value,nt.next=rt.nextLoc,nt.method!=="return"&&(nt.method="next",nt.arg=ee);else return Xe;return nt.delegate=null,Pe}Be(ke),ae(ke,re,"Generator"),ae(ke,x,function(){return this}),ae(ke,"toString",function(){return"[object Generator]"});function He(rt){var nt={tryLoc:rt[0]};1 in rt&&(nt.catchLoc=rt[1]),2 in rt&&(nt.finallyLoc=rt[2],nt.afterLoc=rt[3]),this.tryEntries.push(nt)}function Ye(rt){var nt=rt.completion||{};nt.type="normal",delete nt.arg,rt.completion=nt}function ot(rt){this.tryEntries=[{tryLoc:"root"}],rt.forEach(He,this),this.reset(!0)}E.keys=function(rt){var nt=[];for(var et in rt)nt.push(et);return nt.reverse(),function Ge(){for(;nt.length;){var Xe=nt.pop();if(Xe in rt)return Ge.value=Xe,Ge.done=!1,Ge}return Ge.done=!0,Ge}};function Fe(rt){if(rt){var nt=rt[x];if(nt)return nt.call(rt);if(typeof rt.next=="function")return rt;if(!isNaN(rt.length)){var et=-1,Ge=function Xe(){for(;++et<rt.length;)if(ie.call(rt,et))return Xe.value=rt[et],Xe.done=!1,Xe;return Xe.value=ee,Xe.done=!0,Xe};return Ge.next=Ge}}return{next:Ke}}E.values=Fe;function Ke(){return{value:ee,done:!0}}return ot.prototype={constructor:ot,reset:function(rt){if(this.prev=0,this.next=0,this.sent=this._sent=ee,this.done=!1,this.delegate=null,this.method="next",this.arg=ee,this.tryEntries.forEach(Ye),!rt)for(var nt in this)nt.charAt(0)==="t"&&ie.call(this,nt)&&!isNaN(+nt.slice(1))&&(this[nt]=ee)},stop:function(){this.done=!0;var rt=this.tryEntries[0],nt=rt.completion;if(nt.type==="throw")throw nt.arg;return this.rval},dispatchException:function(rt){if(this.done)throw rt;var nt=this;function et(ct,at){return Ve.type="throw",Ve.arg=rt,nt.next=ct,at&&(nt.method="next",nt.arg=ee),!!at}for(var Ge=this.tryEntries.length-1;Ge>=0;--Ge){var Xe=this.tryEntries[Ge],Ve=Xe.completion;if(Xe.tryLoc==="root")return et("end");if(Xe.tryLoc<=this.prev){var tt=ie.call(Xe,"catchLoc"),Qe=ie.call(Xe,"finallyLoc");if(tt&&Qe){if(this.prev<Xe.catchLoc)return et(Xe.catchLoc,!0);if(this.prev<Xe.finallyLoc)return et(Xe.finallyLoc)}else if(tt){if(this.prev<Xe.catchLoc)return et(Xe.catchLoc,!0)}else if(Qe){if(this.prev<Xe.finallyLoc)return et(Xe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(rt,nt){for(var et=this.tryEntries.length-1;et>=0;--et){var Ge=this.tryEntries[et];if(Ge.tryLoc<=this.prev&&ie.call(Ge,"finallyLoc")&&this.prev<Ge.finallyLoc){var Xe=Ge;break}}Xe&&(rt==="break"||rt==="continue")&&Xe.tryLoc<=nt&&nt<=Xe.finallyLoc&&(Xe=null);var Ve=Xe?Xe.completion:{};return Ve.type=rt,Ve.arg=nt,Xe?(this.method="next",this.next=Xe.finallyLoc,Pe):this.complete(Ve)},complete:function(rt,nt){if(rt.type==="throw")throw rt.arg;return rt.type==="break"||rt.type==="continue"?this.next=rt.arg:rt.type==="return"?(this.rval=this.arg=rt.arg,this.method="return",this.next="end"):rt.type==="normal"&&nt&&(this.next=nt),Pe},finish:function(rt){for(var nt=this.tryEntries.length-1;nt>=0;--nt){var et=this.tryEntries[nt];if(et.finallyLoc===rt)return this.complete(et.completion,et.afterLoc),Ye(et),Pe}},catch:function(rt){for(var nt=this.tryEntries.length-1;nt>=0;--nt){var et=this.tryEntries[nt];if(et.tryLoc===rt){var Ge=et.completion;if(Ge.type==="throw"){var Xe=Ge.arg;Ye(et)}return Xe}}throw new Error("illegal catch attempt")},delegateYield:function(rt,nt,et){return this.delegate={iterator:Fe(rt),resultName:nt,nextLoc:et},this.method==="next"&&(this.arg=ee),Pe}},E}(typeof Te=="object"?Te.exports:{});try{regeneratorRuntime=z}catch(E){typeof globalThis=="object"?globalThis.regeneratorRuntime=z:Function("r","regeneratorRuntime = r")(z)}},{}],396:[function(a,Te,xe){var z=a("buffer"),E=z.Buffer;function oe(ee,le){for(var x in ee)le[x]=ee[x]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?Te.exports=z:(oe(z,xe),xe.Buffer=ie);function ie(ee,le,x){return E(ee,le,x)}oe(E,ie),ie.from=function(ee,le,x){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return E(ee,le,x)},ie.alloc=function(ee,le,x){if(typeof ee!="number")throw new TypeError("Argument must be a number");var ne=E(ee);return le!==void 0?typeof x=="string"?ne.fill(le,x):ne.fill(le):ne.fill(0),ne},ie.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return E(ee)},ie.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z.SlowBuffer(ee)}},{buffer:90}],397:[function(a,Te,xe){(function(z){(function(){(function(E){E.parser=function(qe,Le){return new ie(qe,Le)},E.SAXParser=ie,E.SAXStream=se,E.createStream=ae,E.MAX_BUFFER_LENGTH=64*1024;var oe=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];E.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function ie(qe,Le){if(!(this instanceof ie))return new ie(qe,Le);var Ne=this;le(Ne),Ne.q=Ne.c="",Ne.bufferCheckPosition=E.MAX_BUFFER_LENGTH,Ne.opt=Le||{},Ne.opt.lowercase=Ne.opt.lowercase||Ne.opt.lowercasetags,Ne.looseCase=Ne.opt.lowercase?"toLowerCase":"toUpperCase",Ne.tags=[],Ne.closed=Ne.closedRoot=Ne.sawRoot=!1,Ne.tag=Ne.error=null,Ne.strict=!!qe,Ne.noscript=!!(qe||Ne.opt.noscript),Ne.state=Ae.BEGIN,Ne.strictEntities=Ne.opt.strictEntities,Ne.ENTITIES=Ne.strictEntities?Object.create(E.XML_ENTITIES):Object.create(E.ENTITIES),Ne.attribList=[],Ne.opt.xmlns&&(Ne.ns=Object.create(be)),Ne.trackPosition=Ne.opt.position!==!1,Ne.trackPosition&&(Ne.position=Ne.line=Ne.column=0),Ue(Ne,"onready")}Object.create||(Object.create=function(qe){function Le(){}Le.prototype=qe;var Ne=new Le;return Ne}),Object.keys||(Object.keys=function(qe){var Le=[];for(var Ne in qe)qe.hasOwnProperty(Ne)&&Le.push(Ne);return Le});function ee(qe){for(var Le=Math.max(E.MAX_BUFFER_LENGTH,10),Ne=0,te=0,de=oe.length;te<de;te++){var Re=qe[oe[te]].length;if(Re>Le)switch(oe[te]){case"textNode":Ye(qe);break;case"cdata":He(qe,"oncdata",qe.cdata),qe.cdata="";break;case"script":He(qe,"onscript",qe.script),qe.script="";break;default:Fe(qe,"Max buffer length exceeded: "+oe[te])}Ne=Math.max(Ne,Re)}var We=E.MAX_BUFFER_LENGTH-Ne;qe.bufferCheckPosition=We+qe.position}function le(qe){for(var Le=0,Ne=oe.length;Le<Ne;Le++)qe[oe[Le]]=""}function x(qe){Ye(qe),qe.cdata!==""&&(He(qe,"oncdata",qe.cdata),qe.cdata=""),qe.script!==""&&(He(qe,"onscript",qe.script),qe.script="")}ie.prototype={end:function(){Ke(this)},write:at,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){x(this)}};var ne;try{ne=a("stream").Stream}catch(qe){ne=function(){}}var re=E.EVENTS.filter(function(qe){return qe!=="error"&&qe!=="end"});function ae(qe,Le){return new se(qe,Le)}function se(qe,Le){if(!(this instanceof se))return new se(qe,Le);ne.apply(this),this._parser=new ie(qe,Le),this.writable=!0,this.readable=!0;var Ne=this;this._parser.onend=function(){Ne.emit("end")},this._parser.onerror=function(te){Ne.emit("error",te),Ne._parser.error=null},this._decoder=null,re.forEach(function(te){Object.defineProperty(Ne,"on"+te,{get:function(){return Ne._parser["on"+te]},set:function(de){if(!de)return Ne.removeAllListeners(te),Ne._parser["on"+te]=de,de;Ne.on(te,de)},enumerable:!0,configurable:!1})})}se.prototype=Object.create(ne.prototype,{constructor:{value:se}}),se.prototype.write=function(qe){if(typeof z=="function"&&typeof z.isBuffer=="function"&&z.isBuffer(qe)){if(!this._decoder){var Le=a("string_decoder").StringDecoder;this._decoder=new Le("utf8")}qe=this._decoder.write(qe)}return this._parser.write(qe.toString()),this.emit("data",qe),!0},se.prototype.end=function(qe){return qe&&qe.length&&this.write(qe),this._parser.end(),!0},se.prototype.on=function(qe,Le){var Ne=this;return!Ne._parser["on"+qe]&&re.indexOf(qe)!==-1&&(Ne._parser["on"+qe]=function(){var te=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);te.splice(0,0,qe),Ne.emit.apply(Ne,te)}),ne.prototype.on.call(Ne,qe,Le)};var ce="[CDATA[",pe="DOCTYPE",me="http://www.w3.org/XML/1998/namespace",he="http://www.w3.org/2000/xmlns/",be={xml:me,xmlns:he},Pe=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Me=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,_e=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,De=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function Ce(qe){return qe===" "||qe===`
`||qe==="\r"||qe===" "}function Ee(qe){return qe==='"'||qe==="'"}function je(qe){return qe===">"||Ce(qe)}function ke(qe,Le){return qe.test(Le)}function Be(qe,Le){return!ke(qe,Le)}var Ae=0;E.STATE={BEGIN:Ae++,BEGIN_WHITESPACE:Ae++,TEXT:Ae++,TEXT_ENTITY:Ae++,OPEN_WAKA:Ae++,SGML_DECL:Ae++,SGML_DECL_QUOTED:Ae++,DOCTYPE:Ae++,DOCTYPE_QUOTED:Ae++,DOCTYPE_DTD:Ae++,DOCTYPE_DTD_QUOTED:Ae++,COMMENT_STARTING:Ae++,COMMENT:Ae++,COMMENT_ENDING:Ae++,COMMENT_ENDED:Ae++,CDATA:Ae++,CDATA_ENDING:Ae++,CDATA_ENDING_2:Ae++,PROC_INST:Ae++,PROC_INST_BODY:Ae++,PROC_INST_ENDING:Ae++,OPEN_TAG:Ae++,OPEN_TAG_SLASH:Ae++,ATTRIB:Ae++,ATTRIB_NAME:Ae++,ATTRIB_NAME_SAW_WHITE:Ae++,ATTRIB_VALUE:Ae++,ATTRIB_VALUE_QUOTED:Ae++,ATTRIB_VALUE_CLOSED:Ae++,ATTRIB_VALUE_UNQUOTED:Ae++,ATTRIB_VALUE_ENTITY_Q:Ae++,ATTRIB_VALUE_ENTITY_U:Ae++,CLOSE_TAG:Ae++,CLOSE_TAG_SAW_WHITE:Ae++,SCRIPT:Ae++,SCRIPT_ENDING:Ae++},E.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},E.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(E.ENTITIES).forEach(function(qe){var Le=E.ENTITIES[qe],Ne=typeof Le=="number"?String.fromCharCode(Le):Le;E.ENTITIES[qe]=Ne});for(var ve in E.STATE)E.STATE[E.STATE[ve]]=ve;Ae=E.STATE;function Ue(qe,Le,Ne){qe[Le]&&qe[Le](Ne)}function He(qe,Le,Ne){qe.textNode&&Ye(qe),Ue(qe,Le,Ne)}function Ye(qe){qe.textNode=ot(qe.opt,qe.textNode),qe.textNode&&Ue(qe,"ontext",qe.textNode),qe.textNode=""}function ot(qe,Le){return qe.trim&&(Le=Le.trim()),qe.normalize&&(Le=Le.replace(/\s+/g," ")),Le}function Fe(qe,Le){return Ye(qe),qe.trackPosition&&(Le+=`
Line: `+qe.line+`
Column: `+qe.column+`
Char: `+qe.c),Le=new Error(Le),qe.error=Le,Ue(qe,"onerror",Le),qe}function Ke(qe){return qe.sawRoot&&!qe.closedRoot&&rt(qe,"Unclosed root tag"),qe.state!==Ae.BEGIN&&qe.state!==Ae.BEGIN_WHITESPACE&&qe.state!==Ae.TEXT&&Fe(qe,"Unexpected end"),Ye(qe),qe.c="",qe.closed=!0,Ue(qe,"onend"),ie.call(qe,qe.strict,qe.opt),qe}function rt(qe,Le){if(typeof qe!="object"||!(qe instanceof ie))throw new Error("bad call to strictFail");qe.strict&&Fe(qe,Le)}function nt(qe){qe.strict||(qe.tagName=qe.tagName[qe.looseCase]());var Le=qe.tags[qe.tags.length-1]||qe,Ne=qe.tag={name:qe.tagName,attributes:{}};qe.opt.xmlns&&(Ne.ns=Le.ns),qe.attribList.length=0,He(qe,"onopentagstart",Ne)}function et(qe,Le){var Ne=qe.indexOf(":"),te=Ne<0?["",qe]:qe.split(":"),de=te[0],Re=te[1];return Le&&qe==="xmlns"&&(de="xmlns",Re=""),{prefix:de,local:Re}}function Ge(qe){if(qe.strict||(qe.attribName=qe.attribName[qe.looseCase]()),qe.attribList.indexOf(qe.attribName)!==-1||qe.tag.attributes.hasOwnProperty(qe.attribName)){qe.attribName=qe.attribValue="";return}if(qe.opt.xmlns){var Le=et(qe.attribName,!0),Ne=Le.prefix,te=Le.local;if(Ne==="xmlns")if(te==="xml"&&qe.attribValue!==me)rt(qe,"xml: prefix must be bound to "+me+`
Actual: `+qe.attribValue);else if(te==="xmlns"&&qe.attribValue!==he)rt(qe,"xmlns: prefix must be bound to "+he+`
Actual: `+qe.attribValue);else{var de=qe.tag,Re=qe.tags[qe.tags.length-1]||qe;de.ns===Re.ns&&(de.ns=Object.create(Re.ns)),de.ns[te]=qe.attribValue}qe.attribList.push([qe.attribName,qe.attribValue])}else qe.tag.attributes[qe.attribName]=qe.attribValue,He(qe,"onattribute",{name:qe.attribName,value:qe.attribValue});qe.attribName=qe.attribValue=""}function Xe(qe,Le){if(qe.opt.xmlns){var Ne=qe.tag,te=et(qe.tagName);Ne.prefix=te.prefix,Ne.local=te.local,Ne.uri=Ne.ns[te.prefix]||"",Ne.prefix&&!Ne.uri&&(rt(qe,"Unbound namespace prefix: "+JSON.stringify(qe.tagName)),Ne.uri=te.prefix);var de=qe.tags[qe.tags.length-1]||qe;Ne.ns&&de.ns!==Ne.ns&&Object.keys(Ne.ns).forEach(function(ft){He(qe,"onopennamespace",{prefix:ft,uri:Ne.ns[ft]})});for(var Re=0,We=qe.attribList.length;Re<We;Re++){var we=qe.attribList[Re],ye=we[0],Oe=we[1],$e=et(ye,!0),Ze=$e.prefix,Je=$e.local,st=Ze===""?"":Ne.ns[Ze]||"",lt={name:ye,value:Oe,prefix:Ze,local:Je,uri:st};Ze&&Ze!=="xmlns"&&!st&&(rt(qe,"Unbound namespace prefix: "+JSON.stringify(Ze)),lt.uri=Ze),qe.tag.attributes[ye]=lt,He(qe,"onattribute",lt)}qe.attribList.length=0}qe.tag.isSelfClosing=!!Le,qe.sawRoot=!0,qe.tags.push(qe.tag),He(qe,"onopentag",qe.tag),Le||(!qe.noscript&&qe.tagName.toLowerCase()==="script"?qe.state=Ae.SCRIPT:qe.state=Ae.TEXT,qe.tag=null,qe.tagName=""),qe.attribName=qe.attribValue="",qe.attribList.length=0}function Ve(qe){if(!qe.tagName){rt(qe,"Weird empty close tag."),qe.textNode+="</>",qe.state=Ae.TEXT;return}if(qe.script){if(qe.tagName!=="script"){qe.script+="</"+qe.tagName+">",qe.tagName="",qe.state=Ae.SCRIPT;return}He(qe,"onscript",qe.script),qe.script=""}var Le=qe.tags.length,Ne=qe.tagName;qe.strict||(Ne=Ne[qe.looseCase]());for(var te=Ne;Le--;){var de=qe.tags[Le];if(de.name!==te)rt(qe,"Unexpected close tag");else break}if(Le<0){rt(qe,"Unmatched closing tag: "+qe.tagName),qe.textNode+="</"+qe.tagName+">",qe.state=Ae.TEXT;return}qe.tagName=Ne;for(var Re=qe.tags.length;Re-- >Le;){var We=qe.tag=qe.tags.pop();qe.tagName=qe.tag.name,He(qe,"onclosetag",qe.tagName);var we={};for(var ye in We.ns)we[ye]=We.ns[ye];var Oe=qe.tags[qe.tags.length-1]||qe;qe.opt.xmlns&&We.ns!==Oe.ns&&Object.keys(We.ns).forEach(function($e){var Ze=We.ns[$e];He(qe,"onclosenamespace",{prefix:$e,uri:Ze})})}Le===0&&(qe.closedRoot=!0),qe.tagName=qe.attribValue=qe.attribName="",qe.attribList.length=0,qe.state=Ae.TEXT}function tt(qe){var Le=qe.entity,Ne=Le.toLowerCase(),te,de="";return qe.ENTITIES[Le]?qe.ENTITIES[Le]:qe.ENTITIES[Ne]?qe.ENTITIES[Ne]:(Le=Ne,Le.charAt(0)==="#"&&(Le.charAt(1)==="x"?(Le=Le.slice(2),te=parseInt(Le,16),de=te.toString(16)):(Le=Le.slice(1),te=parseInt(Le,10),de=te.toString(10))),Le=Le.replace(/^0+/,""),isNaN(te)||de.toLowerCase()!==Le?(rt(qe,"Invalid character entity"),"&"+qe.entity+";"):String.fromCodePoint(te))}function Qe(qe,Le){Le==="<"?(qe.state=Ae.OPEN_WAKA,qe.startTagPosition=qe.position):Ce(Le)||(rt(qe,"Non-whitespace before first tag."),qe.textNode=Le,qe.state=Ae.TEXT)}function ct(qe,Le){var Ne="";return Le<qe.length&&(Ne=qe.charAt(Le)),Ne}function at(qe){var Le=this;if(this.error)throw this.error;if(Le.closed)return Fe(Le,"Cannot write after close. Assign an onready handler.");if(qe===null)return Ke(Le);typeof qe=="object"&&(qe=qe.toString());for(var Ne=0,te="";te=ct(qe,Ne++),Le.c=te,!!te;)switch(Le.trackPosition&&(Le.position++,te===`
`?(Le.line++,Le.column=0):Le.column++),Le.state){case Ae.BEGIN:if(Le.state=Ae.BEGIN_WHITESPACE,te==="\uFEFF")continue;Qe(Le,te);continue;case Ae.BEGIN_WHITESPACE:Qe(Le,te);continue;case Ae.TEXT:if(Le.sawRoot&&!Le.closedRoot){for(var de=Ne-1;te&&te!=="<"&&te!=="&";)te=ct(qe,Ne++),te&&Le.trackPosition&&(Le.position++,te===`
`?(Le.line++,Le.column=0):Le.column++);Le.textNode+=qe.substring(de,Ne-1)}te==="<"&&!(Le.sawRoot&&Le.closedRoot&&!Le.strict)?(Le.state=Ae.OPEN_WAKA,Le.startTagPosition=Le.position):(!Ce(te)&&(!Le.sawRoot||Le.closedRoot)&&rt(Le,"Text data outside of root node."),te==="&"?Le.state=Ae.TEXT_ENTITY:Le.textNode+=te);continue;case Ae.SCRIPT:te==="<"?Le.state=Ae.SCRIPT_ENDING:Le.script+=te;continue;case Ae.SCRIPT_ENDING:te==="/"?Le.state=Ae.CLOSE_TAG:(Le.script+="<"+te,Le.state=Ae.SCRIPT);continue;case Ae.OPEN_WAKA:if(te==="!")Le.state=Ae.SGML_DECL,Le.sgmlDecl="";else if(!Ce(te))if(ke(Pe,te))Le.state=Ae.OPEN_TAG,Le.tagName=te;else if(te==="/")Le.state=Ae.CLOSE_TAG,Le.tagName="";else if(te==="?")Le.state=Ae.PROC_INST,Le.procInstName=Le.procInstBody="";else{if(rt(Le,"Unencoded <"),Le.startTagPosition+1<Le.position){var Re=Le.position-Le.startTagPosition;te=new Array(Re).join(" ")+te}Le.textNode+="<"+te,Le.state=Ae.TEXT}continue;case Ae.SGML_DECL:(Le.sgmlDecl+te).toUpperCase()===ce?(He(Le,"onopencdata"),Le.state=Ae.CDATA,Le.sgmlDecl="",Le.cdata=""):Le.sgmlDecl+te==="--"?(Le.state=Ae.COMMENT,Le.comment="",Le.sgmlDecl=""):(Le.sgmlDecl+te).toUpperCase()===pe?(Le.state=Ae.DOCTYPE,(Le.doctype||Le.sawRoot)&&rt(Le,"Inappropriately located doctype declaration"),Le.doctype="",Le.sgmlDecl=""):te===">"?(He(Le,"onsgmldeclaration",Le.sgmlDecl),Le.sgmlDecl="",Le.state=Ae.TEXT):(Ee(te)&&(Le.state=Ae.SGML_DECL_QUOTED),Le.sgmlDecl+=te);continue;case Ae.SGML_DECL_QUOTED:te===Le.q&&(Le.state=Ae.SGML_DECL,Le.q=""),Le.sgmlDecl+=te;continue;case Ae.DOCTYPE:te===">"?(Le.state=Ae.TEXT,He(Le,"ondoctype",Le.doctype),Le.doctype=!0):(Le.doctype+=te,te==="["?Le.state=Ae.DOCTYPE_DTD:Ee(te)&&(Le.state=Ae.DOCTYPE_QUOTED,Le.q=te));continue;case Ae.DOCTYPE_QUOTED:Le.doctype+=te,te===Le.q&&(Le.q="",Le.state=Ae.DOCTYPE);continue;case Ae.DOCTYPE_DTD:Le.doctype+=te,te==="]"?Le.state=Ae.DOCTYPE:Ee(te)&&(Le.state=Ae.DOCTYPE_DTD_QUOTED,Le.q=te);continue;case Ae.DOCTYPE_DTD_QUOTED:Le.doctype+=te,te===Le.q&&(Le.state=Ae.DOCTYPE_DTD,Le.q="");continue;case Ae.COMMENT:te==="-"?Le.state=Ae.COMMENT_ENDING:Le.comment+=te;continue;case Ae.COMMENT_ENDING:te==="-"?(Le.state=Ae.COMMENT_ENDED,Le.comment=ot(Le.opt,Le.comment),Le.comment&&He(Le,"oncomment",Le.comment),Le.comment=""):(Le.comment+="-"+te,Le.state=Ae.COMMENT);continue;case Ae.COMMENT_ENDED:te!==">"?(rt(Le,"Malformed comment"),Le.comment+="--"+te,Le.state=Ae.COMMENT):Le.state=Ae.TEXT;continue;case Ae.CDATA:te==="]"?Le.state=Ae.CDATA_ENDING:Le.cdata+=te;continue;case Ae.CDATA_ENDING:te==="]"?Le.state=Ae.CDATA_ENDING_2:(Le.cdata+="]"+te,Le.state=Ae.CDATA);continue;case Ae.CDATA_ENDING_2:te===">"?(Le.cdata&&He(Le,"oncdata",Le.cdata),He(Le,"onclosecdata"),Le.cdata="",Le.state=Ae.TEXT):te==="]"?Le.cdata+="]":(Le.cdata+="]]"+te,Le.state=Ae.CDATA);continue;case Ae.PROC_INST:te==="?"?Le.state=Ae.PROC_INST_ENDING:Ce(te)?Le.state=Ae.PROC_INST_BODY:Le.procInstName+=te;continue;case Ae.PROC_INST_BODY:if(!Le.procInstBody&&Ce(te))continue;te==="?"?Le.state=Ae.PROC_INST_ENDING:Le.procInstBody+=te;continue;case Ae.PROC_INST_ENDING:te===">"?(He(Le,"onprocessinginstruction",{name:Le.procInstName,body:Le.procInstBody}),Le.procInstName=Le.procInstBody="",Le.state=Ae.TEXT):(Le.procInstBody+="?"+te,Le.state=Ae.PROC_INST_BODY);continue;case Ae.OPEN_TAG:ke(Me,te)?Le.tagName+=te:(nt(Le),te===">"?Xe(Le):te==="/"?Le.state=Ae.OPEN_TAG_SLASH:(Ce(te)||rt(Le,"Invalid character in tag name"),Le.state=Ae.ATTRIB));continue;case Ae.OPEN_TAG_SLASH:te===">"?(Xe(Le,!0),Ve(Le)):(rt(Le,"Forward-slash in opening tag not followed by >"),Le.state=Ae.ATTRIB);continue;case Ae.ATTRIB:if(Ce(te))continue;te===">"?Xe(Le):te==="/"?Le.state=Ae.OPEN_TAG_SLASH:ke(Pe,te)?(Le.attribName=te,Le.attribValue="",Le.state=Ae.ATTRIB_NAME):rt(Le,"Invalid attribute name");continue;case Ae.ATTRIB_NAME:te==="="?Le.state=Ae.ATTRIB_VALUE:te===">"?(rt(Le,"Attribute without value"),Le.attribValue=Le.attribName,Ge(Le),Xe(Le)):Ce(te)?Le.state=Ae.ATTRIB_NAME_SAW_WHITE:ke(Me,te)?Le.attribName+=te:rt(Le,"Invalid attribute name");continue;case Ae.ATTRIB_NAME_SAW_WHITE:if(te==="=")Le.state=Ae.ATTRIB_VALUE;else{if(Ce(te))continue;rt(Le,"Attribute without value"),Le.tag.attributes[Le.attribName]="",Le.attribValue="",He(Le,"onattribute",{name:Le.attribName,value:""}),Le.attribName="",te===">"?Xe(Le):ke(Pe,te)?(Le.attribName=te,Le.state=Ae.ATTRIB_NAME):(rt(Le,"Invalid attribute name"),Le.state=Ae.ATTRIB)}continue;case Ae.ATTRIB_VALUE:if(Ce(te))continue;Ee(te)?(Le.q=te,Le.state=Ae.ATTRIB_VALUE_QUOTED):(rt(Le,"Unquoted attribute value"),Le.state=Ae.ATTRIB_VALUE_UNQUOTED,Le.attribValue=te);continue;case Ae.ATTRIB_VALUE_QUOTED:if(te!==Le.q){te==="&"?Le.state=Ae.ATTRIB_VALUE_ENTITY_Q:Le.attribValue+=te;continue}Ge(Le),Le.q="",Le.state=Ae.ATTRIB_VALUE_CLOSED;continue;case Ae.ATTRIB_VALUE_CLOSED:Ce(te)?Le.state=Ae.ATTRIB:te===">"?Xe(Le):te==="/"?Le.state=Ae.OPEN_TAG_SLASH:ke(Pe,te)?(rt(Le,"No whitespace between attributes"),Le.attribName=te,Le.attribValue="",Le.state=Ae.ATTRIB_NAME):rt(Le,"Invalid attribute name");continue;case Ae.ATTRIB_VALUE_UNQUOTED:if(!je(te)){te==="&"?Le.state=Ae.ATTRIB_VALUE_ENTITY_U:Le.attribValue+=te;continue}Ge(Le),te===">"?Xe(Le):Le.state=Ae.ATTRIB;continue;case Ae.CLOSE_TAG:if(Le.tagName)te===">"?Ve(Le):ke(Me,te)?Le.tagName+=te:Le.script?(Le.script+="</"+Le.tagName,Le.tagName="",Le.state=Ae.SCRIPT):(Ce(te)||rt(Le,"Invalid tagname in closing tag"),Le.state=Ae.CLOSE_TAG_SAW_WHITE);else{if(Ce(te))continue;Be(Pe,te)?Le.script?(Le.script+="</"+te,Le.state=Ae.SCRIPT):rt(Le,"Invalid tagname in closing tag."):Le.tagName=te}continue;case Ae.CLOSE_TAG_SAW_WHITE:if(Ce(te))continue;te===">"?Ve(Le):rt(Le,"Invalid characters in closing tag");continue;case Ae.TEXT_ENTITY:case Ae.ATTRIB_VALUE_ENTITY_Q:case Ae.ATTRIB_VALUE_ENTITY_U:var We,we;switch(Le.state){case Ae.TEXT_ENTITY:We=Ae.TEXT,we="textNode";break;case Ae.ATTRIB_VALUE_ENTITY_Q:We=Ae.ATTRIB_VALUE_QUOTED,we="attribValue";break;case Ae.ATTRIB_VALUE_ENTITY_U:We=Ae.ATTRIB_VALUE_UNQUOTED,we="attribValue";break}te===";"?(Le[we]+=tt(Le),Le.entity="",Le.state=We):ke(Le.entity.length?De:_e,te)?Le.entity+=te:(rt(Le,"Invalid character in entity name"),Le[we]+="&"+Le.entity+te,Le.entity="",Le.state=We);continue;default:throw new Error(Le,"Unknown state: "+Le.state)}return Le.position>=Le.bufferCheckPosition&&ee(Le),Le}String.fromCodePoint||function(){var qe=String.fromCharCode,Le=Math.floor,Ne=function(){var te=16384,de=[],Re,We,we=-1,ye=arguments.length;if(!ye)return"";for(var Oe="";++we<ye;){var $e=Number(arguments[we]);if(!isFinite($e)||$e<0||$e>1114111||Le($e)!==$e)throw RangeError("Invalid code point: "+$e);$e<=65535?de.push($e):($e-=65536,Re=($e>>10)+55296,We=$e%1024+56320,de.push(Re,We)),(we+1===ye||de.length>te)&&(Oe+=qe.apply(null,de),de.length=0)}return Oe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ne,configurable:!0,writable:!0}):String.fromCodePoint=Ne}()})(typeof xe=="undefined"?this.sax={}:xe)}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(a,Te,xe){Te.exports=oe;var z=a("events").EventEmitter,E=a("inherits");E(oe,z),oe.Readable=a("readable-stream/lib/_stream_readable.js"),oe.Writable=a("readable-stream/lib/_stream_writable.js"),oe.Duplex=a("readable-stream/lib/_stream_duplex.js"),oe.Transform=a("readable-stream/lib/_stream_transform.js"),oe.PassThrough=a("readable-stream/lib/_stream_passthrough.js"),oe.finished=a("readable-stream/lib/internal/streams/end-of-stream.js"),oe.pipeline=a("readable-stream/lib/internal/streams/pipeline.js"),oe.Stream=oe;function oe(){z.call(this)}oe.prototype.pipe=function(ie,ee){var le=this;function x(me){ie.writable&&ie.write(me)===!1&&le.pause&&le.pause()}le.on("data",x);function ne(){le.readable&&le.resume&&le.resume()}ie.on("drain",ne),!ie._isStdio&&(!ee||ee.end!==!1)&&(le.on("end",ae),le.on("close",se));var re=!1;function ae(){re||(re=!0,ie.end())}function se(){re||(re=!0,typeof ie.destroy=="function"&&ie.destroy())}function ce(me){if(pe(),z.listenerCount(this,"error")===0)throw me}le.on("error",ce),ie.on("error",ce);function pe(){le.removeListener("data",x),ie.removeListener("drain",ne),le.removeListener("end",ae),le.removeListener("close",se),le.removeListener("error",ce),ie.removeListener("error",ce),le.removeListener("end",pe),le.removeListener("close",pe),ie.removeListener("close",pe)}return le.on("end",pe),le.on("close",pe),ie.on("close",pe),ie.emit("pipe",le),ie}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(a,Te,xe){"use strict";function z(ne,re){ne.prototype=Object.create(re.prototype),ne.prototype.constructor=ne,ne.__proto__=re}var E={};function oe(ne,re,ae){ae||(ae=Error);function se(pe,me,he){return typeof re=="string"?re:re(pe,me,he)}var ce=function(pe){z(me,pe);function me(he,be,Pe){return pe.call(this,se(he,be,Pe))||this}return me}(ae);ce.prototype.name=ae.name,ce.prototype.code=ne,E[ne]=ce}function ie(ne,re){if(Array.isArray(ne)){var ae=ne.length;return ne=ne.map(function(se){return String(se)}),ae>2?"one of ".concat(re," ").concat(ne.slice(0,ae-1).join(", "),", or ")+ne[ae-1]:ae===2?"one of ".concat(re," ").concat(ne[0]," or ").concat(ne[1]):"of ".concat(re," ").concat(ne[0])}else return"of ".concat(re," ").concat(String(ne))}function ee(ne,re,ae){return ne.substr(!ae||ae<0?0:+ae,re.length)===re}function le(ne,re,ae){return(ae===void 0||ae>ne.length)&&(ae=ne.length),ne.substring(ae-re.length,ae)===re}function x(ne,re,ae){return typeof ae!="number"&&(ae=0),ae+re.length>ne.length?!1:ne.indexOf(re,ae)!==-1}oe("ERR_INVALID_OPT_VALUE",function(ne,re){return'The value "'+re+'" is invalid for option "'+ne+'"'},TypeError),oe("ERR_INVALID_ARG_TYPE",function(ne,re,ae){var se;typeof re=="string"&&ee(re,"not ")?(se="must not be",re=re.replace(/^not /,"")):se="must be";var ce;if(le(ne," argument"))ce="The ".concat(ne," ").concat(se," ").concat(ie(re,"type"));else{var pe=x(ne,".")?"property":"argument";ce='The "'.concat(ne,'" ').concat(pe," ").concat(se," ").concat(ie(re,"type"))}return ce+=". Received type ".concat(typeof ae),ce},TypeError),oe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),oe("ERR_METHOD_NOT_IMPLEMENTED",function(ne){return"The "+ne+" method is not implemented"}),oe("ERR_STREAM_PREMATURE_CLOSE","Premature close"),oe("ERR_STREAM_DESTROYED",function(ne){return"Cannot call "+ne+" after a stream was destroyed"}),oe("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),oe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),oe("ERR_STREAM_WRITE_AFTER_END","write after end"),oe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),oe("ERR_UNKNOWN_ENCODING",function(ne){return"Unknown encoding: "+ne},TypeError),oe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Te.exports.codes=E},{}],400:[function(a,Te,xe){(function(z){(function(){"use strict";var E=Object.keys||function(se){var ce=[];for(var pe in se)ce.push(pe);return ce};Te.exports=ne;var oe=a("./_stream_readable"),ie=a("./_stream_writable");a("inherits")(ne,oe);for(var ee=E(ie.prototype),le=0;le<ee.length;le++){var x=ee[le];ne.prototype[x]||(ne.prototype[x]=ie.prototype[x])}function ne(se){if(!(this instanceof ne))return new ne(se);oe.call(this,se),ie.call(this,se),this.allowHalfOpen=!0,se&&(se.readable===!1&&(this.readable=!1),se.writable===!1&&(this.writable=!1),se.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",re)))}Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function re(){this._writableState.ended||z.nextTick(ae,this)}function ae(se){se.end()}Object.defineProperty(ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ce){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ce,this._writableState.destroyed=ce)}})}).call(this)}).call(this,a("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(a,Te,xe){"use strict";Te.exports=E;var z=a("./_stream_transform");a("inherits")(E,z);function E(oe){if(!(this instanceof E))return new E(oe);z.call(this,oe)}E.prototype._transform=function(oe,ie,ee){ee(null,oe)}},{"./_stream_transform":403,inherits:364}],402:[function(a,Te,xe){(function(z,E){(function(){"use strict";Te.exports=He;var oe;He.ReadableState=Ue;var ie=a("events").EventEmitter,ee=function(ye,Oe){return ye.listeners(Oe).length},le=a("./internal/streams/stream"),x=a("buffer").Buffer,ne=(typeof E!="undefined"?E:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function re(we){return x.from(we)}function ae(we){return x.isBuffer(we)||we instanceof ne}var se=a("util"),ce;se&&se.debuglog?ce=se.debuglog("stream"):ce=function(){};var pe=a("./internal/streams/buffer_list"),me=a("./internal/streams/destroy"),he=a("./internal/streams/state"),be=he.getHighWaterMark,Pe=a("../errors").codes,Me=Pe.ERR_INVALID_ARG_TYPE,_e=Pe.ERR_STREAM_PUSH_AFTER_EOF,De=Pe.ERR_METHOD_NOT_IMPLEMENTED,Ce=Pe.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ee,je,ke;a("inherits")(He,le);var Be=me.errorOrDestroy,Ae=["error","close","destroy","pause","resume"];function ve(we,ye,Oe){if(typeof we.prependListener=="function")return we.prependListener(ye,Oe);!we._events||!we._events[ye]?we.on(ye,Oe):Array.isArray(we._events[ye])?we._events[ye].unshift(Oe):we._events[ye]=[Oe,we._events[ye]]}function Ue(we,ye,Oe){oe=oe||a("./_stream_duplex"),we=we||{},typeof Oe!="boolean"&&(Oe=ye instanceof oe),this.objectMode=!!we.objectMode,Oe&&(this.objectMode=this.objectMode||!!we.readableObjectMode),this.highWaterMark=be(this,we,"readableHighWaterMark",Oe),this.buffer=new pe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=we.emitClose!==!1,this.autoDestroy=!!we.autoDestroy,this.destroyed=!1,this.defaultEncoding=we.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,we.encoding&&(Ee||(Ee=a("string_decoder/").StringDecoder),this.decoder=new Ee(we.encoding),this.encoding=we.encoding)}function He(we){if(oe=oe||a("./_stream_duplex"),!(this instanceof He))return new He(we);var ye=this instanceof oe;this._readableState=new Ue(we,this,ye),this.readable=!0,we&&(typeof we.read=="function"&&(this._read=we.read),typeof we.destroy=="function"&&(this._destroy=we.destroy)),le.call(this)}Object.defineProperty(He.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ye){this._readableState&&(this._readableState.destroyed=ye)}}),He.prototype.destroy=me.destroy,He.prototype._undestroy=me.undestroy,He.prototype._destroy=function(we,ye){ye(we)},He.prototype.push=function(we,ye){var Oe=this._readableState,$e;return Oe.objectMode?$e=!0:typeof we=="string"&&(ye=ye||Oe.defaultEncoding,ye!==Oe.encoding&&(we=x.from(we,ye),ye=""),$e=!0),Ye(this,we,ye,!1,$e)},He.prototype.unshift=function(we){return Ye(this,we,null,!0,!1)};function Ye(we,ye,Oe,$e,Ze){ce("readableAddChunk",ye);var Je=we._readableState;if(ye===null)Je.reading=!1,et(we,Je);else{var st;if(Ze||(st=Fe(Je,ye)),st)Be(we,st);else if(Je.objectMode||ye&&ye.length>0)if(typeof ye!="string"&&!Je.objectMode&&Object.getPrototypeOf(ye)!==x.prototype&&(ye=re(ye)),$e)Je.endEmitted?Be(we,new Ce):ot(we,Je,ye,!0);else if(Je.ended)Be(we,new _e);else{if(Je.destroyed)return!1;Je.reading=!1,Je.decoder&&!Oe?(ye=Je.decoder.write(ye),Je.objectMode||ye.length!==0?ot(we,Je,ye,!1):Ve(we,Je)):ot(we,Je,ye,!1)}else $e||(Je.reading=!1,Ve(we,Je))}return!Je.ended&&(Je.length<Je.highWaterMark||Je.length===0)}function ot(we,ye,Oe,$e){ye.flowing&&ye.length===0&&!ye.sync?(ye.awaitDrain=0,we.emit("data",Oe)):(ye.length+=ye.objectMode?1:Oe.length,$e?ye.buffer.unshift(Oe):ye.buffer.push(Oe),ye.needReadable&&Ge(we)),Ve(we,ye)}function Fe(we,ye){var Oe;return!ae(ye)&&typeof ye!="string"&&ye!==void 0&&!we.objectMode&&(Oe=new Me("chunk",["string","Buffer","Uint8Array"],ye)),Oe}He.prototype.isPaused=function(){return this._readableState.flowing===!1},He.prototype.setEncoding=function(we){Ee||(Ee=a("string_decoder/").StringDecoder);var ye=new Ee(we);this._readableState.decoder=ye,this._readableState.encoding=this._readableState.decoder.encoding;for(var Oe=this._readableState.buffer.head,$e="";Oe!==null;)$e+=ye.write(Oe.data),Oe=Oe.next;return this._readableState.buffer.clear(),$e!==""&&this._readableState.buffer.push($e),this._readableState.length=$e.length,this};var Ke=1073741824;function rt(we){return we>=Ke?we=Ke:(we--,we|=we>>>1,we|=we>>>2,we|=we>>>4,we|=we>>>8,we|=we>>>16,we++),we}function nt(we,ye){return we<=0||ye.length===0&&ye.ended?0:ye.objectMode?1:we!==we?ye.flowing&&ye.length?ye.buffer.head.data.length:ye.length:(we>ye.highWaterMark&&(ye.highWaterMark=rt(we)),we<=ye.length?we:ye.ended?ye.length:(ye.needReadable=!0,0))}He.prototype.read=function(we){ce("read",we),we=parseInt(we,10);var ye=this._readableState,Oe=we;if(we!==0&&(ye.emittedReadable=!1),we===0&&ye.needReadable&&((ye.highWaterMark!==0?ye.length>=ye.highWaterMark:ye.length>0)||ye.ended))return ce("read: emitReadable",ye.length,ye.ended),ye.length===0&&ye.ended?de(this):Ge(this),null;if(we=nt(we,ye),we===0&&ye.ended)return ye.length===0&&de(this),null;var $e=ye.needReadable;ce("need readable",$e),(ye.length===0||ye.length-we<ye.highWaterMark)&&($e=!0,ce("length less than watermark",$e)),ye.ended||ye.reading?($e=!1,ce("reading or ended",$e)):$e&&(ce("do read"),ye.reading=!0,ye.sync=!0,ye.length===0&&(ye.needReadable=!0),this._read(ye.highWaterMark),ye.sync=!1,ye.reading||(we=nt(Oe,ye)));var Ze;return we>0?Ze=te(we,ye):Ze=null,Ze===null?(ye.needReadable=ye.length<=ye.highWaterMark,we=0):(ye.length-=we,ye.awaitDrain=0),ye.length===0&&(ye.ended||(ye.needReadable=!0),Oe!==we&&ye.ended&&de(this)),Ze!==null&&this.emit("data",Ze),Ze};function et(we,ye){if(ce("onEofChunk"),!ye.ended){if(ye.decoder){var Oe=ye.decoder.end();Oe&&Oe.length&&(ye.buffer.push(Oe),ye.length+=ye.objectMode?1:Oe.length)}ye.ended=!0,ye.sync?Ge(we):(ye.needReadable=!1,ye.emittedReadable||(ye.emittedReadable=!0,Xe(we)))}}function Ge(we){var ye=we._readableState;ce("emitReadable",ye.needReadable,ye.emittedReadable),ye.needReadable=!1,ye.emittedReadable||(ce("emitReadable",ye.flowing),ye.emittedReadable=!0,z.nextTick(Xe,we))}function Xe(we){var ye=we._readableState;ce("emitReadable_",ye.destroyed,ye.length,ye.ended),!ye.destroyed&&(ye.length||ye.ended)&&(we.emit("readable"),ye.emittedReadable=!1),ye.needReadable=!ye.flowing&&!ye.ended&&ye.length<=ye.highWaterMark,Ne(we)}function Ve(we,ye){ye.readingMore||(ye.readingMore=!0,z.nextTick(tt,we,ye))}function tt(we,ye){for(;!ye.reading&&!ye.ended&&(ye.length<ye.highWaterMark||ye.flowing&&ye.length===0);){var Oe=ye.length;if(ce("maybeReadMore read 0"),we.read(0),Oe===ye.length)break}ye.readingMore=!1}He.prototype._read=function(we){Be(this,new De("_read()"))},He.prototype.pipe=function(we,ye){var Oe=this,$e=this._readableState;switch($e.pipesCount){case 0:$e.pipes=we;break;case 1:$e.pipes=[$e.pipes,we];break;default:$e.pipes.push(we);break}$e.pipesCount+=1,ce("pipe count=%d opts=%j",$e.pipesCount,ye);var Ze=(!ye||ye.end!==!1)&&we!==z.stdout&&we!==z.stderr,Je=Ze?lt:xt;$e.endEmitted?z.nextTick(Je):Oe.once("end",Je),we.on("unpipe",st);function st(At,It){ce("onunpipe"),At===Oe&&It&&It.hasUnpiped===!1&&(It.hasUnpiped=!0,St())}function lt(){ce("onend"),we.end()}var ft=Qe(Oe);we.on("drain",ft);var Tt=!1;function St(){ce("cleanup"),we.removeListener("close",Dt),we.removeListener("finish",Et),we.removeListener("drain",ft),we.removeListener("error",yt),we.removeListener("unpipe",st),Oe.removeListener("end",lt),Oe.removeListener("end",xt),Oe.removeListener("data",Ot),Tt=!0,$e.awaitDrain&&(!we._writableState||we._writableState.needDrain)&&ft()}Oe.on("data",Ot);function Ot(At){ce("ondata");var It=we.write(At);ce("dest.write",It),It===!1&&(($e.pipesCount===1&&$e.pipes===we||$e.pipesCount>1&&We($e.pipes,we)!==-1)&&!Tt&&(ce("false write response, pause",$e.awaitDrain),$e.awaitDrain++),Oe.pause())}function yt(At){ce("onerror",At),xt(),we.removeListener("error",yt),ee(we,"error")===0&&Be(we,At)}ve(we,"error",yt);function Dt(){we.removeListener("finish",Et),xt()}we.once("close",Dt);function Et(){ce("onfinish"),we.removeListener("close",Dt),xt()}we.once("finish",Et);function xt(){ce("unpipe"),Oe.unpipe(we)}return we.emit("pipe",Oe),$e.flowing||(ce("pipe resume"),Oe.resume()),we};function Qe(we){return function(){var Oe=we._readableState;ce("pipeOnDrain",Oe.awaitDrain),Oe.awaitDrain&&Oe.awaitDrain--,Oe.awaitDrain===0&&ee(we,"data")&&(Oe.flowing=!0,Ne(we))}}He.prototype.unpipe=function(we){var ye=this._readableState,Oe={hasUnpiped:!1};if(ye.pipesCount===0)return this;if(ye.pipesCount===1)return we&&we!==ye.pipes?this:(we||(we=ye.pipes),ye.pipes=null,ye.pipesCount=0,ye.flowing=!1,we&&we.emit("unpipe",this,Oe),this);if(!we){var $e=ye.pipes,Ze=ye.pipesCount;ye.pipes=null,ye.pipesCount=0,ye.flowing=!1;for(var Je=0;Je<Ze;Je++)$e[Je].emit("unpipe",this,{hasUnpiped:!1});return this}var st=We(ye.pipes,we);return st===-1?this:(ye.pipes.splice(st,1),ye.pipesCount-=1,ye.pipesCount===1&&(ye.pipes=ye.pipes[0]),we.emit("unpipe",this,Oe),this)},He.prototype.on=function(we,ye){var Oe=le.prototype.on.call(this,we,ye),$e=this._readableState;return we==="data"?($e.readableListening=this.listenerCount("readable")>0,$e.flowing!==!1&&this.resume()):we==="readable"&&!$e.endEmitted&&!$e.readableListening&&($e.readableListening=$e.needReadable=!0,$e.flowing=!1,$e.emittedReadable=!1,ce("on readable",$e.length,$e.reading),$e.length?Ge(this):$e.reading||z.nextTick(at,this)),Oe},He.prototype.addListener=He.prototype.on,He.prototype.removeListener=function(we,ye){var Oe=le.prototype.removeListener.call(this,we,ye);return we==="readable"&&z.nextTick(ct,this),Oe},He.prototype.removeAllListeners=function(we){var ye=le.prototype.removeAllListeners.apply(this,arguments);return(we==="readable"||we===void 0)&&z.nextTick(ct,this),ye};function ct(we){var ye=we._readableState;ye.readableListening=we.listenerCount("readable")>0,ye.resumeScheduled&&!ye.paused?ye.flowing=!0:we.listenerCount("data")>0&&we.resume()}function at(we){ce("readable nexttick read 0"),we.read(0)}He.prototype.resume=function(){var we=this._readableState;return we.flowing||(ce("resume"),we.flowing=!we.readableListening,qe(this,we)),we.paused=!1,this};function qe(we,ye){ye.resumeScheduled||(ye.resumeScheduled=!0,z.nextTick(Le,we,ye))}function Le(we,ye){ce("resume",ye.reading),ye.reading||we.read(0),ye.resumeScheduled=!1,we.emit("resume"),Ne(we),ye.flowing&&!ye.reading&&we.read(0)}He.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ne(we){var ye=we._readableState;for(ce("flow",ye.flowing);ye.flowing&&we.read()!==null;);}He.prototype.wrap=function(we){var ye=this,Oe=this._readableState,$e=!1;we.on("end",function(){if(ce("wrapped end"),Oe.decoder&&!Oe.ended){var st=Oe.decoder.end();st&&st.length&&ye.push(st)}ye.push(null)}),we.on("data",function(st){if(ce("wrapped data"),Oe.decoder&&(st=Oe.decoder.write(st)),!(Oe.objectMode&&st==null)&&!(!Oe.objectMode&&(!st||!st.length))){var lt=ye.push(st);lt||($e=!0,we.pause())}});for(var Ze in we)this[Ze]===void 0&&typeof we[Ze]=="function"&&(this[Ze]=function(lt){return function(){return we[lt].apply(we,arguments)}}(Ze));for(var Je=0;Je<Ae.length;Je++)we.on(Ae[Je],this.emit.bind(this,Ae[Je]));return this._read=function(st){ce("wrapped _read",st),$e&&($e=!1,we.resume())},this},typeof Symbol=="function"&&(He.prototype[Symbol.asyncIterator]=function(){return je===void 0&&(je=a("./internal/streams/async_iterator")),je(this)}),Object.defineProperty(He.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(He.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(He.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ye){this._readableState&&(this._readableState.flowing=ye)}}),He._fromList=te,Object.defineProperty(He.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function te(we,ye){if(ye.length===0)return null;var Oe;return ye.objectMode?Oe=ye.buffer.shift():!we||we>=ye.length?(ye.decoder?Oe=ye.buffer.join(""):ye.buffer.length===1?Oe=ye.buffer.first():Oe=ye.buffer.concat(ye.length),ye.buffer.clear()):Oe=ye.buffer.consume(we,ye.decoder),Oe}function de(we){var ye=we._readableState;ce("endReadable",ye.endEmitted),ye.endEmitted||(ye.ended=!0,z.nextTick(Re,ye,we))}function Re(we,ye){if(ce("endReadableNT",we.endEmitted,we.length),!we.endEmitted&&we.length===0&&(we.endEmitted=!0,ye.readable=!1,ye.emit("end"),we.autoDestroy)){var Oe=ye._writableState;(!Oe||Oe.autoDestroy&&Oe.finished)&&ye.destroy()}}typeof Symbol=="function"&&(He.from=function(we,ye){return ke===void 0&&(ke=a("./internal/streams/from")),ke(He,we,ye)});function We(we,ye){for(var Oe=0,$e=we.length;Oe<$e;Oe++)if(we[Oe]===ye)return Oe;return-1}}).call(this)}).call(this,a("_process"),typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(a,Te,xe){"use strict";Te.exports=ne;var z=a("../errors").codes,E=z.ERR_METHOD_NOT_IMPLEMENTED,oe=z.ERR_MULTIPLE_CALLBACK,ie=z.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=z.ERR_TRANSFORM_WITH_LENGTH_0,le=a("./_stream_duplex");a("inherits")(ne,le);function x(se,ce){var pe=this._transformState;pe.transforming=!1;var me=pe.writecb;if(me===null)return this.emit("error",new oe);pe.writechunk=null,pe.writecb=null,ce!=null&&this.push(ce),me(se);var he=this._readableState;he.reading=!1,(he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}function ne(se){if(!(this instanceof ne))return new ne(se);le.call(this,se),this._transformState={afterTransform:x.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,se&&(typeof se.transform=="function"&&(this._transform=se.transform),typeof se.flush=="function"&&(this._flush=se.flush)),this.on("prefinish",re)}function re(){var se=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ce,pe){ae(se,ce,pe)}):ae(this,null,null)}ne.prototype.push=function(se,ce){return this._transformState.needTransform=!1,le.prototype.push.call(this,se,ce)},ne.prototype._transform=function(se,ce,pe){pe(new E("_transform()"))},ne.prototype._write=function(se,ce,pe){var me=this._transformState;if(me.writecb=pe,me.writechunk=se,me.writeencoding=ce,!me.transforming){var he=this._readableState;(me.needTransform||he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}},ne.prototype._read=function(se){var ce=this._transformState;ce.writechunk!==null&&!ce.transforming?(ce.transforming=!0,this._transform(ce.writechunk,ce.writeencoding,ce.afterTransform)):ce.needTransform=!0},ne.prototype._destroy=function(se,ce){le.prototype._destroy.call(this,se,function(pe){ce(pe)})};function ae(se,ce,pe){if(ce)return se.emit("error",ce);if(pe!=null&&se.push(pe),se._writableState.length)throw new ee;if(se._transformState.transforming)throw new ie;return se.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(a,Te,xe){(function(z,E){(function(){"use strict";Te.exports=Ue;function oe(Ne,te,de){this.chunk=Ne,this.encoding=te,this.callback=de,this.next=null}function ie(Ne){var te=this;this.next=null,this.entry=null,this.finish=function(){Le(te,Ne)}}var ee;Ue.WritableState=Ae;var le={deprecate:a("util-deprecate")},x=a("./internal/streams/stream"),ne=a("buffer").Buffer,re=(typeof E!="undefined"?E:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ae(Ne){return ne.from(Ne)}function se(Ne){return ne.isBuffer(Ne)||Ne instanceof re}var ce=a("./internal/streams/destroy"),pe=a("./internal/streams/state"),me=pe.getHighWaterMark,he=a("../errors").codes,be=he.ERR_INVALID_ARG_TYPE,Pe=he.ERR_METHOD_NOT_IMPLEMENTED,Me=he.ERR_MULTIPLE_CALLBACK,_e=he.ERR_STREAM_CANNOT_PIPE,De=he.ERR_STREAM_DESTROYED,Ce=he.ERR_STREAM_NULL_VALUES,Ee=he.ERR_STREAM_WRITE_AFTER_END,je=he.ERR_UNKNOWN_ENCODING,ke=ce.errorOrDestroy;a("inherits")(Ue,x);function Be(){}function Ae(Ne,te,de){ee=ee||a("./_stream_duplex"),Ne=Ne||{},typeof de!="boolean"&&(de=te instanceof ee),this.objectMode=!!Ne.objectMode,de&&(this.objectMode=this.objectMode||!!Ne.writableObjectMode),this.highWaterMark=me(this,Ne,"writableHighWaterMark",de),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Re=Ne.decodeStrings===!1;this.decodeStrings=!Re,this.defaultEncoding=Ne.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(We){et(te,We)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ne.emitClose!==!1,this.autoDestroy=!!Ne.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ie(this)}Ae.prototype.getBuffer=function(){for(var te=this.bufferedRequest,de=[];te;)de.push(te),te=te.next;return de},function(){try{Object.defineProperty(Ae.prototype,"buffer",{get:le.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ne){}}();var ve;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ve=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ue,Symbol.hasInstance,{value:function(te){return ve.call(this,te)?!0:this!==Ue?!1:te&&te._writableState instanceof Ae}})):ve=function(te){return te instanceof this};function Ue(Ne){ee=ee||a("./_stream_duplex");var te=this instanceof ee;if(!te&&!ve.call(Ue,this))return new Ue(Ne);this._writableState=new Ae(Ne,this,te),this.writable=!0,Ne&&(typeof Ne.write=="function"&&(this._write=Ne.write),typeof Ne.writev=="function"&&(this._writev=Ne.writev),typeof Ne.destroy=="function"&&(this._destroy=Ne.destroy),typeof Ne.final=="function"&&(this._final=Ne.final)),x.call(this)}Ue.prototype.pipe=function(){ke(this,new _e)};function He(Ne,te){var de=new Ee;ke(Ne,de),z.nextTick(te,de)}function Ye(Ne,te,de,Re){var We;return de===null?We=new Ce:typeof de!="string"&&!te.objectMode&&(We=new be("chunk",["string","Buffer"],de)),We?(ke(Ne,We),z.nextTick(Re,We),!1):!0}Ue.prototype.write=function(Ne,te,de){var Re=this._writableState,We=!1,we=!Re.objectMode&&se(Ne);return we&&!ne.isBuffer(Ne)&&(Ne=ae(Ne)),typeof te=="function"&&(de=te,te=null),we?te="buffer":te||(te=Re.defaultEncoding),typeof de!="function"&&(de=Be),Re.ending?He(this,de):(we||Ye(this,Re,Ne,de))&&(Re.pendingcb++,We=Fe(this,Re,we,Ne,te,de)),We},Ue.prototype.cork=function(){this._writableState.corked++},Ue.prototype.uncork=function(){var Ne=this._writableState;Ne.corked&&(Ne.corked--,!Ne.writing&&!Ne.corked&&!Ne.bufferProcessing&&Ne.bufferedRequest&&Ve(this,Ne))},Ue.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=te.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((te+"").toLowerCase())>-1))throw new je(te);return this._writableState.defaultEncoding=te,this},Object.defineProperty(Ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ot(Ne,te,de){return!Ne.objectMode&&Ne.decodeStrings!==!1&&typeof te=="string"&&(te=ne.from(te,de)),te}Object.defineProperty(Ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Fe(Ne,te,de,Re,We,we){if(!de){var ye=ot(te,Re,We);Re!==ye&&(de=!0,We="buffer",Re=ye)}var Oe=te.objectMode?1:Re.length;te.length+=Oe;var $e=te.length<te.highWaterMark;if($e||(te.needDrain=!0),te.writing||te.corked){var Ze=te.lastBufferedRequest;te.lastBufferedRequest={chunk:Re,encoding:We,isBuf:de,callback:we,next:null},Ze?Ze.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else Ke(Ne,te,!1,Oe,Re,We,we);return $e}function Ke(Ne,te,de,Re,We,we,ye){te.writelen=Re,te.writecb=ye,te.writing=!0,te.sync=!0,te.destroyed?te.onwrite(new De("write")):de?Ne._writev(We,te.onwrite):Ne._write(We,we,te.onwrite),te.sync=!1}function rt(Ne,te,de,Re,We){--te.pendingcb,de?(z.nextTick(We,Re),z.nextTick(at,Ne,te),Ne._writableState.errorEmitted=!0,ke(Ne,Re)):(We(Re),Ne._writableState.errorEmitted=!0,ke(Ne,Re),at(Ne,te))}function nt(Ne){Ne.writing=!1,Ne.writecb=null,Ne.length-=Ne.writelen,Ne.writelen=0}function et(Ne,te){var de=Ne._writableState,Re=de.sync,We=de.writecb;if(typeof We!="function")throw new Me;if(nt(de),te)rt(Ne,de,Re,te,We);else{var we=tt(de)||Ne.destroyed;!we&&!de.corked&&!de.bufferProcessing&&de.bufferedRequest&&Ve(Ne,de),Re?z.nextTick(Ge,Ne,de,we,We):Ge(Ne,de,we,We)}}function Ge(Ne,te,de,Re){de||Xe(Ne,te),te.pendingcb--,Re(),at(Ne,te)}function Xe(Ne,te){te.length===0&&te.needDrain&&(te.needDrain=!1,Ne.emit("drain"))}function Ve(Ne,te){te.bufferProcessing=!0;var de=te.bufferedRequest;if(Ne._writev&&de&&de.next){var Re=te.bufferedRequestCount,We=new Array(Re),we=te.corkedRequestsFree;we.entry=de;for(var ye=0,Oe=!0;de;)We[ye]=de,de.isBuf||(Oe=!1),de=de.next,ye+=1;We.allBuffers=Oe,Ke(Ne,te,!0,te.length,We,"",we.finish),te.pendingcb++,te.lastBufferedRequest=null,we.next?(te.corkedRequestsFree=we.next,we.next=null):te.corkedRequestsFree=new ie(te),te.bufferedRequestCount=0}else{for(;de;){var $e=de.chunk,Ze=de.encoding,Je=de.callback,st=te.objectMode?1:$e.length;if(Ke(Ne,te,!1,st,$e,Ze,Je),de=de.next,te.bufferedRequestCount--,te.writing)break}de===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=de,te.bufferProcessing=!1}Ue.prototype._write=function(Ne,te,de){de(new Pe("_write()"))},Ue.prototype._writev=null,Ue.prototype.end=function(Ne,te,de){var Re=this._writableState;return typeof Ne=="function"?(de=Ne,Ne=null,te=null):typeof te=="function"&&(de=te,te=null),Ne!=null&&this.write(Ne,te),Re.corked&&(Re.corked=1,this.uncork()),Re.ending||qe(this,Re,de),this},Object.defineProperty(Ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function tt(Ne){return Ne.ending&&Ne.length===0&&Ne.bufferedRequest===null&&!Ne.finished&&!Ne.writing}function Qe(Ne,te){Ne._final(function(de){te.pendingcb--,de&&ke(Ne,de),te.prefinished=!0,Ne.emit("prefinish"),at(Ne,te)})}function ct(Ne,te){!te.prefinished&&!te.finalCalled&&(typeof Ne._final=="function"&&!te.destroyed?(te.pendingcb++,te.finalCalled=!0,z.nextTick(Qe,Ne,te)):(te.prefinished=!0,Ne.emit("prefinish")))}function at(Ne,te){var de=tt(te);if(de&&(ct(Ne,te),te.pendingcb===0&&(te.finished=!0,Ne.emit("finish"),te.autoDestroy))){var Re=Ne._readableState;(!Re||Re.autoDestroy&&Re.endEmitted)&&Ne.destroy()}return de}function qe(Ne,te,de){te.ending=!0,at(Ne,te),de&&(te.finished?z.nextTick(de):Ne.once("finish",de)),te.ended=!0,Ne.writable=!1}function Le(Ne,te,de){var Re=Ne.entry;for(Ne.entry=null;Re;){var We=Re.callback;te.pendingcb--,We(de),Re=Re.next}te.corkedRequestsFree.next=Ne}Object.defineProperty(Ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(te){this._writableState&&(this._writableState.destroyed=te)}}),Ue.prototype.destroy=ce.destroy,Ue.prototype._undestroy=ce.undestroy,Ue.prototype._destroy=function(Ne,te){te(Ne)}}).call(this)}).call(this,a("_process"),typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(a,Te,xe){(function(z){(function(){"use strict";var E;function oe(Ce,Ee,je){return Ee=ie(Ee),Ee in Ce?Object.defineProperty(Ce,Ee,{value:je,enumerable:!0,configurable:!0,writable:!0}):Ce[Ee]=je,Ce}function ie(Ce){var Ee=ee(Ce,"string");return typeof Ee=="symbol"?Ee:String(Ee)}function ee(Ce,Ee){if(typeof Ce!="object"||Ce===null)return Ce;var je=Ce[Symbol.toPrimitive];if(je!==void 0){var ke=je.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)}var le=a("./end-of-stream"),x=Symbol("lastResolve"),ne=Symbol("lastReject"),re=Symbol("error"),ae=Symbol("ended"),se=Symbol("lastPromise"),ce=Symbol("handlePromise"),pe=Symbol("stream");function me(Ce,Ee){return{value:Ce,done:Ee}}function he(Ce){var Ee=Ce[x];if(Ee!==null){var je=Ce[pe].read();je!==null&&(Ce[se]=null,Ce[x]=null,Ce[ne]=null,Ee(me(je,!1)))}}function be(Ce){z.nextTick(he,Ce)}function Pe(Ce,Ee){return function(je,ke){Ce.then(function(){if(Ee[ae]){je(me(void 0,!0));return}Ee[ce](je,ke)},ke)}}var Me=Object.getPrototypeOf(function(){}),_e=Object.setPrototypeOf((E={get stream(){return this[pe]},next:function(){var Ee=this,je=this[re];if(je!==null)return Promise.reject(je);if(this[ae])return Promise.resolve(me(void 0,!0));if(this[pe].destroyed)return new Promise(function(ve,Ue){z.nextTick(function(){Ee[re]?Ue(Ee[re]):ve(me(void 0,!0))})});var ke=this[se],Be;if(ke)Be=new Promise(Pe(ke,this));else{var Ae=this[pe].read();if(Ae!==null)return Promise.resolve(me(Ae,!1));Be=new Promise(this[ce])}return this[se]=Be,Be}},oe(E,Symbol.asyncIterator,function(){return this}),oe(E,"return",function(){var Ee=this;return new Promise(function(je,ke){Ee[pe].destroy(null,function(Be){if(Be){ke(Be);return}je(me(void 0,!0))})})}),E),Me),De=function(Ee){var je,ke=Object.create(_e,(je={},oe(je,pe,{value:Ee,writable:!0}),oe(je,x,{value:null,writable:!0}),oe(je,ne,{value:null,writable:!0}),oe(je,re,{value:null,writable:!0}),oe(je,ae,{value:Ee._readableState.endEmitted,writable:!0}),oe(je,ce,{value:function(Ae,ve){var Ue=ke[pe].read();Ue?(ke[se]=null,ke[x]=null,ke[ne]=null,Ae(me(Ue,!1))):(ke[x]=Ae,ke[ne]=ve)},writable:!0}),je));return ke[se]=null,le(Ee,function(Be){if(Be&&Be.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ae=ke[ne];Ae!==null&&(ke[se]=null,ke[x]=null,ke[ne]=null,Ae(Be)),ke[re]=Be;return}var ve=ke[x];ve!==null&&(ke[se]=null,ke[x]=null,ke[ne]=null,ve(me(void 0,!0))),ke[ae]=!0}),Ee.on("readable",be.bind(null,ke)),ke};Te.exports=De}).call(this)}).call(this,a("_process"))},{"./end-of-stream":408,_process:467}],406:[function(a,Te,xe){"use strict";function z(he,be){var Pe=Object.keys(he);if(Object.getOwnPropertySymbols){var Me=Object.getOwnPropertySymbols(he);be&&(Me=Me.filter(function(_e){return Object.getOwnPropertyDescriptor(he,_e).enumerable})),Pe.push.apply(Pe,Me)}return Pe}function E(he){for(var be=1;be<arguments.length;be++){var Pe=arguments[be]!=null?arguments[be]:{};be%2?z(Object(Pe),!0).forEach(function(Me){oe(he,Me,Pe[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Pe)):z(Object(Pe)).forEach(function(Me){Object.defineProperty(he,Me,Object.getOwnPropertyDescriptor(Pe,Me))})}return he}function oe(he,be,Pe){return be=x(be),be in he?Object.defineProperty(he,be,{value:Pe,enumerable:!0,configurable:!0,writable:!0}):he[be]=Pe,he}function ie(he,be){if(!(he instanceof be))throw new TypeError("Cannot call a class as a function")}function ee(he,be){for(var Pe=0;Pe<be.length;Pe++){var Me=be[Pe];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(he,x(Me.key),Me)}}function le(he,be,Pe){return be&&ee(he.prototype,be),Pe&&ee(he,Pe),Object.defineProperty(he,"prototype",{writable:!1}),he}function x(he){var be=ne(he,"string");return typeof be=="symbol"?be:String(be)}function ne(he,be){if(typeof he!="object"||he===null)return he;var Pe=he[Symbol.toPrimitive];if(Pe!==void 0){var Me=Pe.call(he,be||"default");if(typeof Me!="object")return Me;throw new TypeError("@@toPrimitive must return a primitive value.")}return(be==="string"?String:Number)(he)}var re=a("buffer"),ae=re.Buffer,se=a("util"),ce=se.inspect,pe=ce&&ce.custom||"inspect";function me(he,be,Pe){ae.prototype.copy.call(he,be,Pe)}Te.exports=function(){function he(){ie(this,he),this.head=null,this.tail=null,this.length=0}return le(he,[{key:"push",value:function(Pe){var Me={data:Pe,next:null};this.length>0?this.tail.next=Me:this.head=Me,this.tail=Me,++this.length}},{key:"unshift",value:function(Pe){var Me={data:Pe,next:this.head};this.length===0&&(this.tail=Me),this.head=Me,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Pe=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Pe}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Pe){if(this.length===0)return"";for(var Me=this.head,_e=""+Me.data;Me=Me.next;)_e+=Pe+Me.data;return _e}},{key:"concat",value:function(Pe){if(this.length===0)return ae.alloc(0);for(var Me=ae.allocUnsafe(Pe>>>0),_e=this.head,De=0;_e;)me(_e.data,Me,De),De+=_e.data.length,_e=_e.next;return Me}},{key:"consume",value:function(Pe,Me){var _e;return Pe<this.head.data.length?(_e=this.head.data.slice(0,Pe),this.head.data=this.head.data.slice(Pe)):Pe===this.head.data.length?_e=this.shift():_e=Me?this._getString(Pe):this._getBuffer(Pe),_e}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Pe){var Me=this.head,_e=1,De=Me.data;for(Pe-=De.length;Me=Me.next;){var Ce=Me.data,Ee=Pe>Ce.length?Ce.length:Pe;if(Ee===Ce.length?De+=Ce:De+=Ce.slice(0,Pe),Pe-=Ee,Pe===0){Ee===Ce.length?(++_e,Me.next?this.head=Me.next:this.head=this.tail=null):(this.head=Me,Me.data=Ce.slice(Ee));break}++_e}return this.length-=_e,De}},{key:"_getBuffer",value:function(Pe){var Me=ae.allocUnsafe(Pe),_e=this.head,De=1;for(_e.data.copy(Me),Pe-=_e.data.length;_e=_e.next;){var Ce=_e.data,Ee=Pe>Ce.length?Ce.length:Pe;if(Ce.copy(Me,Me.length-Pe,0,Ee),Pe-=Ee,Pe===0){Ee===Ce.length?(++De,_e.next?this.head=_e.next:this.head=this.tail=null):(this.head=_e,_e.data=Ce.slice(Ee));break}++De}return this.length-=De,Me}},{key:pe,value:function(Pe,Me){return ce(this,E(E({},Me),{},{depth:0,customInspect:!1}))}}]),he}()},{buffer:90,util:89}],407:[function(a,Te,xe){(function(z){(function(){"use strict";function E(ne,re){var ae=this,se=this._readableState&&this._readableState.destroyed,ce=this._writableState&&this._writableState.destroyed;return se||ce?(re?re(ne):ne&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,z.nextTick(le,this,ne)):z.nextTick(le,this,ne)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ne||null,function(pe){!re&&pe?ae._writableState?ae._writableState.errorEmitted?z.nextTick(ie,ae):(ae._writableState.errorEmitted=!0,z.nextTick(oe,ae,pe)):z.nextTick(oe,ae,pe):re?(z.nextTick(ie,ae),re(pe)):z.nextTick(ie,ae)}),this)}function oe(ne,re){le(ne,re),ie(ne)}function ie(ne){ne._writableState&&!ne._writableState.emitClose||ne._readableState&&!ne._readableState.emitClose||ne.emit("close")}function ee(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function le(ne,re){ne.emit("error",re)}function x(ne,re){var ae=ne._readableState,se=ne._writableState;ae&&ae.autoDestroy||se&&se.autoDestroy?ne.destroy(re):ne.emit("error",re)}Te.exports={destroy:E,undestroy:ee,errorOrDestroy:x}}).call(this)}).call(this,a("_process"))},{_process:467}],408:[function(a,Te,xe){"use strict";var z=a("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function E(le){var x=!1;return function(){if(!x){x=!0;for(var ne=arguments.length,re=new Array(ne),ae=0;ae<ne;ae++)re[ae]=arguments[ae];le.apply(this,re)}}}function oe(){}function ie(le){return le.setHeader&&typeof le.abort=="function"}function ee(le,x,ne){if(typeof x=="function")return ee(le,null,x);x||(x={}),ne=E(ne||oe);var re=x.readable||x.readable!==!1&&le.readable,ae=x.writable||x.writable!==!1&&le.writable,se=function(){le.writable||pe()},ce=le._writableState&&le._writableState.finished,pe=function(){ae=!1,ce=!0,re||ne.call(le)},me=le._readableState&&le._readableState.endEmitted,he=function(){re=!1,me=!0,ae||ne.call(le)},be=function(De){ne.call(le,De)},Pe=function(){var De;if(re&&!me)return(!le._readableState||!le._readableState.ended)&&(De=new z),ne.call(le,De);if(ae&&!ce)return(!le._writableState||!le._writableState.ended)&&(De=new z),ne.call(le,De)},Me=function(){le.req.on("finish",pe)};return ie(le)?(le.on("complete",pe),le.on("abort",Pe),le.req?Me():le.on("request",Me)):ae&&!le._writableState&&(le.on("end",se),le.on("close",se)),le.on("end",he),le.on("finish",pe),x.error!==!1&&le.on("error",be),le.on("close",Pe),function(){le.removeListener("complete",pe),le.removeListener("abort",Pe),le.removeListener("request",Me),le.req&&le.req.removeListener("finish",pe),le.removeListener("end",se),le.removeListener("close",se),le.removeListener("finish",pe),le.removeListener("end",he),le.removeListener("error",be),le.removeListener("close",Pe)}}Te.exports=ee},{"../../../errors":399}],409:[function(a,Te,xe){Te.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(a,Te,xe){"use strict";var z;function E(pe){var me=!1;return function(){me||(me=!0,pe.apply(void 0,arguments))}}var oe=a("../../../errors").codes,ie=oe.ERR_MISSING_ARGS,ee=oe.ERR_STREAM_DESTROYED;function le(pe){if(pe)throw pe}function x(pe){return pe.setHeader&&typeof pe.abort=="function"}function ne(pe,me,he,be){be=E(be);var Pe=!1;pe.on("close",function(){Pe=!0}),z===void 0&&(z=a("./end-of-stream")),z(pe,{readable:me,writable:he},function(_e){if(_e)return be(_e);Pe=!0,be()});var Me=!1;return function(_e){if(!Pe&&!Me){if(Me=!0,x(pe))return pe.abort();if(typeof pe.destroy=="function")return pe.destroy();be(_e||new ee("pipe"))}}}function re(pe){pe()}function ae(pe,me){return pe.pipe(me)}function se(pe){return!pe.length||typeof pe[pe.length-1]!="function"?le:pe.pop()}function ce(){for(var pe=arguments.length,me=new Array(pe),he=0;he<pe;he++)me[he]=arguments[he];var be=se(me);if(Array.isArray(me[0])&&(me=me[0]),me.length<2)throw new ie("streams");var Pe,Me=me.map(function(_e,De){var Ce=De<me.length-1,Ee=De>0;return ne(_e,Ce,Ee,function(je){Pe||(Pe=je),je&&Me.forEach(re),!Ce&&(Me.forEach(re),be(Pe))})});return me.reduce(ae)}Te.exports=ce},{"../../../errors":399,"./end-of-stream":408}],411:[function(a,Te,xe){"use strict";var z=a("../../../errors").codes.ERR_INVALID_OPT_VALUE;function E(ie,ee,le){return ie.highWaterMark!=null?ie.highWaterMark:ee?ie[le]:null}function oe(ie,ee,le,x){var ne=E(ee,x,le);if(ne!=null){if(!(isFinite(ne)&&Math.floor(ne)===ne)||ne<0){var re=x?le:"highWaterMark";throw new z(re,ne)}return Math.floor(ne)}return ie.objectMode?16:16*1024}Te.exports={getHighWaterMark:oe}},{"../../../errors":399}],412:[function(a,Te,xe){arguments[4][393][0].apply(xe,arguments)},{dup:393,events:344}],413:[function(a,Te,xe){"use strict";var z=a("safe-buffer").Buffer,E=z.isEncoding||function(Me){switch(Me=""+Me,Me&&Me.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function oe(Me){if(!Me)return"utf8";for(var _e;;)switch(Me){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Me;default:if(_e)return;Me=(""+Me).toLowerCase(),_e=!0}}function ie(Me){var _e=oe(Me);if(typeof _e!="string"&&(z.isEncoding===E||!E(Me)))throw new Error("Unknown encoding: "+Me);return _e||Me}xe.StringDecoder=ee;function ee(Me){this.encoding=ie(Me);var _e;switch(this.encoding){case"utf16le":this.text=ce,this.end=pe,_e=4;break;case"utf8":this.fillLast=re,_e=4;break;case"base64":this.text=me,this.end=he,_e=3;break;default:this.write=be,this.end=Pe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=z.allocUnsafe(_e)}ee.prototype.write=function(Me){if(Me.length===0)return"";var _e,De;if(this.lastNeed){if(_e=this.fillLast(Me),_e===void 0)return"";De=this.lastNeed,this.lastNeed=0}else De=0;return De<Me.length?_e?_e+this.text(Me,De):this.text(Me,De):_e||""},ee.prototype.end=se,ee.prototype.text=ae,ee.prototype.fillLast=function(Me){if(this.lastNeed<=Me.length)return Me.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Me.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Me.length),this.lastNeed-=Me.length};function le(Me){return Me<=127?0:Me>>5===6?2:Me>>4===14?3:Me>>3===30?4:Me>>6===2?-1:-2}function x(Me,_e,De){var Ce=_e.length-1;if(Ce<De)return 0;var Ee=le(_e[Ce]);return Ee>=0?(Ee>0&&(Me.lastNeed=Ee-1),Ee):--Ce<De||Ee===-2?0:(Ee=le(_e[Ce]),Ee>=0?(Ee>0&&(Me.lastNeed=Ee-2),Ee):--Ce<De||Ee===-2?0:(Ee=le(_e[Ce]),Ee>=0?(Ee>0&&(Ee===2?Ee=0:Me.lastNeed=Ee-3),Ee):0))}function ne(Me,_e,De){if((_e[0]&192)!==128)return Me.lastNeed=0,"\uFFFD";if(Me.lastNeed>1&&_e.length>1){if((_e[1]&192)!==128)return Me.lastNeed=1,"\uFFFD";if(Me.lastNeed>2&&_e.length>2&&(_e[2]&192)!==128)return Me.lastNeed=2,"\uFFFD"}}function re(Me){var _e=this.lastTotal-this.lastNeed,De=ne(this,Me,_e);if(De!==void 0)return De;if(this.lastNeed<=Me.length)return Me.copy(this.lastChar,_e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Me.copy(this.lastChar,_e,0,Me.length),this.lastNeed-=Me.length}function ae(Me,_e){var De=x(this,Me,_e);if(!this.lastNeed)return Me.toString("utf8",_e);this.lastTotal=De;var Ce=Me.length-(De-this.lastNeed);return Me.copy(this.lastChar,0,Ce),Me.toString("utf8",_e,Ce)}function se(Me){var _e=Me&&Me.length?this.write(Me):"";return this.lastNeed?_e+"\uFFFD":_e}function ce(Me,_e){if((Me.length-_e)%2===0){var De=Me.toString("utf16le",_e);if(De){var Ce=De.charCodeAt(De.length-1);if(Ce>=55296&&Ce<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Me[Me.length-2],this.lastChar[1]=Me[Me.length-1],De.slice(0,-1)}return De}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Me[Me.length-1],Me.toString("utf16le",_e,Me.length-1)}function pe(Me){var _e=Me&&Me.length?this.write(Me):"";if(this.lastNeed){var De=this.lastTotal-this.lastNeed;return _e+this.lastChar.toString("utf16le",0,De)}return _e}function me(Me,_e){var De=(Me.length-_e)%3;return De===0?Me.toString("base64",_e):(this.lastNeed=3-De,this.lastTotal=3,De===1?this.lastChar[0]=Me[Me.length-1]:(this.lastChar[0]=Me[Me.length-2],this.lastChar[1]=Me[Me.length-1]),Me.toString("base64",_e,Me.length-De))}function he(Me){var _e=Me&&Me.length?this.write(Me):"";return this.lastNeed?_e+this.lastChar.toString("base64",0,3-this.lastNeed):_e}function be(Me){return Me.toString(this.encoding)}function Pe(Me){return Me&&Me.length?this.write(Me):""}},{"safe-buffer":396}],414:[function(a,Te,xe){(function(z,E){(function(){var oe=a("process/browser.js").nextTick,ie=Function.prototype.apply,ee=Array.prototype.slice,le={},x=0;xe.setTimeout=function(){return new ne(ie.call(setTimeout,window,arguments),clearTimeout)},xe.setInterval=function(){return new ne(ie.call(setInterval,window,arguments),clearInterval)},xe.clearTimeout=xe.clearInterval=function(re){re.close()};function ne(re,ae){this._id=re,this._clearFn=ae}ne.prototype.unref=ne.prototype.ref=function(){},ne.prototype.close=function(){this._clearFn.call(window,this._id)},xe.enroll=function(re,ae){clearTimeout(re._idleTimeoutId),re._idleTimeout=ae},xe.unenroll=function(re){clearTimeout(re._idleTimeoutId),re._idleTimeout=-1},xe._unrefActive=xe.active=function(re){clearTimeout(re._idleTimeoutId);var ae=re._idleTimeout;ae>=0&&(re._idleTimeoutId=setTimeout(function(){re._onTimeout&&re._onTimeout()},ae))},xe.setImmediate=typeof z=="function"?z:function(re){var ae=x++,se=arguments.length<2?!1:ee.call(arguments,1);return le[ae]=!0,oe(function(){le[ae]&&(se?re.apply(null,se):re.call(null),xe.clearImmediate(ae))}),ae},xe.clearImmediate=typeof E=="function"?E:function(re){delete le[re]}}).call(this)}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(a,Te,xe){var z=a("buffer").Buffer;Te.exports=function(E){if(E instanceof Uint8Array){if(E.byteOffset===0&&E.byteLength===E.buffer.byteLength)return E.buffer;if(typeof E.buffer.slice=="function")return E.buffer.slice(E.byteOffset,E.byteOffset+E.byteLength)}if(z.isBuffer(E)){for(var oe=new Uint8Array(E.length),ie=E.length,ee=0;ee<ie;ee++)oe[ee]=E[ee];return oe.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(a,Te,xe){(function(z){(function(){Te.exports=E;function E(ie,ee){if(oe("noDeprecation"))return ie;var le=!1;function x(){if(!le){if(oe("throwDeprecation"))throw new Error(ee);oe("traceDeprecation")?console.trace(ee):console.warn(ee),le=!0}return ie.apply(this,arguments)}return x}function oe(ie){try{if(!z.localStorage)return!1}catch(le){return!1}var ee=z.localStorage[ie];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(a,Te,xe){arguments[4][84][0].apply(xe,arguments)},{dup:84}],418:[function(a,Te,xe){"use strict";var z=a("is-arguments"),E=a("is-generator-function"),oe=a("which-typed-array"),ie=a("is-typed-array");function ee(Ze){return Ze.call.bind(Ze)}var le=typeof BigInt!="undefined",x=typeof Symbol!="undefined",ne=ee(Object.prototype.toString),re=ee(Number.prototype.valueOf),ae=ee(String.prototype.valueOf),se=ee(Boolean.prototype.valueOf);if(le)var ce=ee(BigInt.prototype.valueOf);if(x)var pe=ee(Symbol.prototype.valueOf);function me(Ze,Je){if(typeof Ze!="object")return!1;try{return Je(Ze),!0}catch(st){return!1}}xe.isArgumentsObject=z,xe.isGeneratorFunction=E,xe.isTypedArray=ie;function he(Ze){return typeof Promise!="undefined"&&Ze instanceof Promise||Ze!==null&&typeof Ze=="object"&&typeof Ze.then=="function"&&typeof Ze.catch=="function"}xe.isPromise=he;function be(Ze){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Ze):ie(Ze)||Ve(Ze)}xe.isArrayBufferView=be;function Pe(Ze){return oe(Ze)==="Uint8Array"}xe.isUint8Array=Pe;function Me(Ze){return oe(Ze)==="Uint8ClampedArray"}xe.isUint8ClampedArray=Me;function _e(Ze){return oe(Ze)==="Uint16Array"}xe.isUint16Array=_e;function De(Ze){return oe(Ze)==="Uint32Array"}xe.isUint32Array=De;function Ce(Ze){return oe(Ze)==="Int8Array"}xe.isInt8Array=Ce;function Ee(Ze){return oe(Ze)==="Int16Array"}xe.isInt16Array=Ee;function je(Ze){return oe(Ze)==="Int32Array"}xe.isInt32Array=je;function ke(Ze){return oe(Ze)==="Float32Array"}xe.isFloat32Array=ke;function Be(Ze){return oe(Ze)==="Float64Array"}xe.isFloat64Array=Be;function Ae(Ze){return oe(Ze)==="BigInt64Array"}xe.isBigInt64Array=Ae;function ve(Ze){return oe(Ze)==="BigUint64Array"}xe.isBigUint64Array=ve;function Ue(Ze){return ne(Ze)==="[object Map]"}Ue.working=typeof Map!="undefined"&&Ue(new Map);function He(Ze){return typeof Map=="undefined"?!1:Ue.working?Ue(Ze):Ze instanceof Map}xe.isMap=He;function Ye(Ze){return ne(Ze)==="[object Set]"}Ye.working=typeof Set!="undefined"&&Ye(new Set);function ot(Ze){return typeof Set=="undefined"?!1:Ye.working?Ye(Ze):Ze instanceof Set}xe.isSet=ot;function Fe(Ze){return ne(Ze)==="[object WeakMap]"}Fe.working=typeof WeakMap!="undefined"&&Fe(new WeakMap);function Ke(Ze){return typeof WeakMap=="undefined"?!1:Fe.working?Fe(Ze):Ze instanceof WeakMap}xe.isWeakMap=Ke;function rt(Ze){return ne(Ze)==="[object WeakSet]"}rt.working=typeof WeakSet!="undefined"&&rt(new WeakSet);function nt(Ze){return rt(Ze)}xe.isWeakSet=nt;function et(Ze){return ne(Ze)==="[object ArrayBuffer]"}et.working=typeof ArrayBuffer!="undefined"&&et(new ArrayBuffer);function Ge(Ze){return typeof ArrayBuffer=="undefined"?!1:et.working?et(Ze):Ze instanceof ArrayBuffer}xe.isArrayBuffer=Ge;function Xe(Ze){return ne(Ze)==="[object DataView]"}Xe.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Xe(new DataView(new ArrayBuffer(1),0,1));function Ve(Ze){return typeof DataView=="undefined"?!1:Xe.working?Xe(Ze):Ze instanceof DataView}xe.isDataView=Ve;var tt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Qe(Ze){return ne(Ze)==="[object SharedArrayBuffer]"}function ct(Ze){return typeof tt=="undefined"?!1:(typeof Qe.working=="undefined"&&(Qe.working=Qe(new tt)),Qe.working?Qe(Ze):Ze instanceof tt)}xe.isSharedArrayBuffer=ct;function at(Ze){return ne(Ze)==="[object AsyncFunction]"}xe.isAsyncFunction=at;function qe(Ze){return ne(Ze)==="[object Map Iterator]"}xe.isMapIterator=qe;function Le(Ze){return ne(Ze)==="[object Set Iterator]"}xe.isSetIterator=Le;function Ne(Ze){return ne(Ze)==="[object Generator]"}xe.isGeneratorObject=Ne;function te(Ze){return ne(Ze)==="[object WebAssembly.Module]"}xe.isWebAssemblyCompiledModule=te;function de(Ze){return me(Ze,re)}xe.isNumberObject=de;function Re(Ze){return me(Ze,ae)}xe.isStringObject=Re;function We(Ze){return me(Ze,se)}xe.isBooleanObject=We;function we(Ze){return le&&me(Ze,ce)}xe.isBigIntObject=we;function ye(Ze){return x&&me(Ze,pe)}xe.isSymbolObject=ye;function Oe(Ze){return de(Ze)||Re(Ze)||We(Ze)||we(Ze)||ye(Ze)}xe.isBoxedPrimitive=Oe;function $e(Ze){return typeof Uint8Array!="undefined"&&(Ge(Ze)||ct(Ze))}xe.isAnyArrayBuffer=$e,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ze){Object.defineProperty(xe,Ze,{enumerable:!1,value:function(){throw new Error(Ze+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(a,Te,xe){(function(z){(function(){var E=Object.getOwnPropertyDescriptors||function(tt){for(var Qe=Object.keys(tt),ct={},at=0;at<Qe.length;at++)ct[Qe[at]]=Object.getOwnPropertyDescriptor(tt,Qe[at]);return ct},oe=/%[sdj%]/g;xe.format=function(Ve){if(!Ee(Ve)){for(var tt=[],Qe=0;Qe<arguments.length;Qe++)tt.push(x(arguments[Qe]));return tt.join(" ")}for(var Qe=1,ct=arguments,at=ct.length,qe=String(Ve).replace(oe,function(Ne){if(Ne==="%%")return"%";if(Qe>=at)return Ne;switch(Ne){case"%s":return String(ct[Qe++]);case"%d":return Number(ct[Qe++]);case"%j":try{return JSON.stringify(ct[Qe++])}catch(te){return"[Circular]"}default:return Ne}}),Le=ct[Qe];Qe<at;Le=ct[++Qe])_e(Le)||!Ae(Le)?qe+=" "+Le:qe+=" "+x(Le);return qe},xe.deprecate=function(Ve,tt){if(typeof z!="undefined"&&z.noDeprecation===!0)return Ve;if(typeof z=="undefined")return function(){return xe.deprecate(Ve,tt).apply(this,arguments)};var Qe=!1;function ct(){if(!Qe){if(z.throwDeprecation)throw new Error(tt);z.traceDeprecation?console.trace(tt):console.error(tt),Qe=!0}return Ve.apply(this,arguments)}return ct};var ie={},ee=/^$/;if(z.env.NODE_DEBUG){var le=z.env.NODE_DEBUG;le=le.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+le+"$","i")}xe.debuglog=function(Ve){if(Ve=Ve.toUpperCase(),!ie[Ve])if(ee.test(Ve)){var tt=z.pid;ie[Ve]=function(){var Qe=xe.format.apply(xe,arguments);console.error("%s %d: %s",Ve,tt,Qe)}}else ie[Ve]=function(){};return ie[Ve]};function x(Ve,tt){var Qe={seen:[],stylize:re};return arguments.length>=3&&(Qe.depth=arguments[2]),arguments.length>=4&&(Qe.colors=arguments[3]),Me(tt)?Qe.showHidden=tt:tt&&xe._extend(Qe,tt),ke(Qe.showHidden)&&(Qe.showHidden=!1),ke(Qe.depth)&&(Qe.depth=2),ke(Qe.colors)&&(Qe.colors=!1),ke(Qe.customInspect)&&(Qe.customInspect=!0),Qe.colors&&(Qe.stylize=ne),se(Qe,Ve,Qe.depth)}xe.inspect=x,x.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},x.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ne(Ve,tt){var Qe=x.styles[tt];return Qe?"\x1B["+x.colors[Qe][0]+"m"+Ve+"\x1B["+x.colors[Qe][1]+"m":Ve}function re(Ve,tt){return Ve}function ae(Ve){var tt={};return Ve.forEach(function(Qe,ct){tt[Qe]=!0}),tt}function se(Ve,tt,Qe){if(Ve.customInspect&&tt&&He(tt.inspect)&&tt.inspect!==xe.inspect&&!(tt.constructor&&tt.constructor.prototype===tt)){var ct=tt.inspect(Qe,Ve);return Ee(ct)||(ct=se(Ve,ct,Qe)),ct}var at=ce(Ve,tt);if(at)return at;var qe=Object.keys(tt),Le=ae(qe);if(Ve.showHidden&&(qe=Object.getOwnPropertyNames(tt)),Ue(tt)&&(qe.indexOf("message")>=0||qe.indexOf("description")>=0))return pe(tt);if(qe.length===0){if(He(tt)){var Ne=tt.name?": "+tt.name:"";return Ve.stylize("[Function"+Ne+"]","special")}if(Be(tt))return Ve.stylize(RegExp.prototype.toString.call(tt),"regexp");if(ve(tt))return Ve.stylize(Date.prototype.toString.call(tt),"date");if(Ue(tt))return pe(tt)}var te="",de=!1,Re=["{","}"];if(Pe(tt)&&(de=!0,Re=["[","]"]),He(tt)){var We=tt.name?": "+tt.name:"";te=" [Function"+We+"]"}if(Be(tt)&&(te=" "+RegExp.prototype.toString.call(tt)),ve(tt)&&(te=" "+Date.prototype.toUTCString.call(tt)),Ue(tt)&&(te=" "+pe(tt)),qe.length===0&&(!de||tt.length==0))return Re[0]+te+Re[1];if(Qe<0)return Be(tt)?Ve.stylize(RegExp.prototype.toString.call(tt),"regexp"):Ve.stylize("[Object]","special");Ve.seen.push(tt);var we;return de?we=me(Ve,tt,Qe,Le,qe):we=qe.map(function(ye){return he(Ve,tt,Qe,Le,ye,de)}),Ve.seen.pop(),be(we,te,Re)}function ce(Ve,tt){if(ke(tt))return Ve.stylize("undefined","undefined");if(Ee(tt)){var Qe="'"+JSON.stringify(tt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ve.stylize(Qe,"string")}if(Ce(tt))return Ve.stylize(""+tt,"number");if(Me(tt))return Ve.stylize(""+tt,"boolean");if(_e(tt))return Ve.stylize("null","null")}function pe(Ve){return"["+Error.prototype.toString.call(Ve)+"]"}function me(Ve,tt,Qe,ct,at){for(var qe=[],Le=0,Ne=tt.length;Le<Ne;++Le)nt(tt,String(Le))?qe.push(he(Ve,tt,Qe,ct,String(Le),!0)):qe.push("");return at.forEach(function(te){te.match(/^\d+$/)||qe.push(he(Ve,tt,Qe,ct,te,!0))}),qe}function he(Ve,tt,Qe,ct,at,qe){var Le,Ne,te;if(te=Object.getOwnPropertyDescriptor(tt,at)||{value:tt[at]},te.get?te.set?Ne=Ve.stylize("[Getter/Setter]","special"):Ne=Ve.stylize("[Getter]","special"):te.set&&(Ne=Ve.stylize("[Setter]","special")),nt(ct,at)||(Le="["+at+"]"),Ne||(Ve.seen.indexOf(te.value)<0?(_e(Qe)?Ne=se(Ve,te.value,null):Ne=se(Ve,te.value,Qe-1),Ne.indexOf(`
`)>-1&&(qe?Ne=Ne.split(`
`).map(function(de){return" "+de}).join(`
`).slice(2):Ne=`
`+Ne.split(`
`).map(function(de){return" "+de}).join(`
`))):Ne=Ve.stylize("[Circular]","special")),ke(Le)){if(qe&&at.match(/^\d+$/))return Ne;Le=JSON.stringify(""+at),Le.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Le=Le.slice(1,-1),Le=Ve.stylize(Le,"name")):(Le=Le.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Le=Ve.stylize(Le,"string"))}return Le+": "+Ne}function be(Ve,tt,Qe){var ct=0,at=Ve.reduce(function(qe,Le){return ct++,Le.indexOf(`
`)>=0&&ct++,qe+Le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return at>60?Qe[0]+(tt===""?"":tt+`
`)+" "+Ve.join(`,
`)+" "+Qe[1]:Qe[0]+tt+" "+Ve.join(", ")+" "+Qe[1]}xe.types=a("./support/types");function Pe(Ve){return Array.isArray(Ve)}xe.isArray=Pe;function Me(Ve){return typeof Ve=="boolean"}xe.isBoolean=Me;function _e(Ve){return Ve===null}xe.isNull=_e;function De(Ve){return Ve==null}xe.isNullOrUndefined=De;function Ce(Ve){return typeof Ve=="number"}xe.isNumber=Ce;function Ee(Ve){return typeof Ve=="string"}xe.isString=Ee;function je(Ve){return typeof Ve=="symbol"}xe.isSymbol=je;function ke(Ve){return Ve===void 0}xe.isUndefined=ke;function Be(Ve){return Ae(Ve)&&ot(Ve)==="[object RegExp]"}xe.isRegExp=Be,xe.types.isRegExp=Be;function Ae(Ve){return typeof Ve=="object"&&Ve!==null}xe.isObject=Ae;function ve(Ve){return Ae(Ve)&&ot(Ve)==="[object Date]"}xe.isDate=ve,xe.types.isDate=ve;function Ue(Ve){return Ae(Ve)&&(ot(Ve)==="[object Error]"||Ve instanceof Error)}xe.isError=Ue,xe.types.isNativeError=Ue;function He(Ve){return typeof Ve=="function"}xe.isFunction=He;function Ye(Ve){return Ve===null||typeof Ve=="boolean"||typeof Ve=="number"||typeof Ve=="string"||typeof Ve=="symbol"||typeof Ve=="undefined"}xe.isPrimitive=Ye,xe.isBuffer=a("./support/isBuffer");function ot(Ve){return Object.prototype.toString.call(Ve)}function Fe(Ve){return Ve<10?"0"+Ve.toString(10):Ve.toString(10)}var Ke=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function rt(){var Ve=new Date,tt=[Fe(Ve.getHours()),Fe(Ve.getMinutes()),Fe(Ve.getSeconds())].join(":");return[Ve.getDate(),Ke[Ve.getMonth()],tt].join(" ")}xe.log=function(){console.log("%s - %s",rt(),xe.format.apply(xe,arguments))},xe.inherits=a("inherits"),xe._extend=function(Ve,tt){if(!tt||!Ae(tt))return Ve;for(var Qe=Object.keys(tt),ct=Qe.length;ct--;)Ve[Qe[ct]]=tt[Qe[ct]];return Ve};function nt(Ve,tt){return Object.prototype.hasOwnProperty.call(Ve,tt)}var et=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;xe.promisify=function(tt){if(typeof tt!="function")throw new TypeError('The "original" argument must be of type Function');if(et&&tt[et]){var Qe=tt[et];if(typeof Qe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Qe,et,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Qe}function Qe(){for(var ct,at,qe=new Promise(function(te,de){ct=te,at=de}),Le=[],Ne=0;Ne<arguments.length;Ne++)Le.push(arguments[Ne]);Le.push(function(te,de){te?at(te):ct(de)});try{tt.apply(this,Le)}catch(te){at(te)}return qe}return Object.setPrototypeOf(Qe,Object.getPrototypeOf(tt)),et&&Object.defineProperty(Qe,et,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Qe,E(tt))},xe.promisify.custom=et;function Ge(Ve,tt){if(!Ve){var Qe=new Error("Promise was rejected with a falsy value");Qe.reason=Ve,Ve=Qe}return tt(Ve)}function Xe(Ve){if(typeof Ve!="function")throw new TypeError('The "original" argument must be of type Function');function tt(){for(var Qe=[],ct=0;ct<arguments.length;ct++)Qe.push(arguments[ct]);var at=Qe.pop();if(typeof at!="function")throw new TypeError("The last argument must be of type Function");var qe=this,Le=function(){return at.apply(qe,arguments)};Ve.apply(this,Qe).then(function(Ne){z.nextTick(Le.bind(null,null,Ne))},function(Ne){z.nextTick(Ge.bind(null,Ne,Le))})}return Object.setPrototypeOf(tt,Object.getPrototypeOf(Ve)),Object.defineProperties(tt,E(Ve)),tt}xe.callbackify=Xe}).call(this)}).call(this,a("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(a,Te,xe){(function(z){(function(){"use strict";var E=a("for-each"),oe=a("available-typed-arrays"),ie=a("call-bind"),ee=a("call-bind/callBound"),le=a("gopd"),x=ee("Object.prototype.toString"),ne=a("has-tostringtag/shams")(),re=typeof globalThis=="undefined"?z:globalThis,ae=oe(),se=ee("String.prototype.slice"),ce=Object.getPrototypeOf,pe=ee("Array.prototype.indexOf",!0)||function(Me,_e){for(var De=0;De<Me.length;De+=1)if(Me[De]===_e)return De;return-1},me={__proto__:null};ne&&le&&ce?E(ae,function(Pe){var Me=new re[Pe];if(Symbol.toStringTag in Me){var _e=ce(Me),De=le(_e,Symbol.toStringTag);if(!De){var Ce=ce(_e);De=le(Ce,Symbol.toStringTag)}me["$"+Pe]=ie(De.get)}}):E(ae,function(Pe){var Me=new re[Pe];me["$"+Pe]=ie(Me.slice)});var he=function(Me){var _e=!1;return E(me,function(De,Ce){if(!_e)try{"$"+De(Me)===Ce&&(_e=se(Ce,1))}catch(Ee){}}),_e},be=function(Me){var _e=!1;return E(me,function(De,Ce){if(!_e)try{De(Me),_e=se(Ce,1)}catch(Ee){}}),_e};Te.exports=function(Me){if(!Me||typeof Me!="object")return!1;if(!ne){var _e=se(x(Me),8,-1);return pe(ae,_e)>-1?_e:_e!=="Object"?!1:be(Me)}return le?he(Me):null}}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(a,Te,xe){(function(){"use strict";xe.stripBOM=function(z){return z[0]==="\uFEFF"?z.substring(1):z}}).call(this)},{}],422:[function(a,Te,xe){(function(){"use strict";var z,E,oe,ie,ee,le={}.hasOwnProperty;z=a("xmlbuilder"),E=a("./defaults").defaults,ie=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},ee=function(x){return"<![CDATA["+oe(x)+"]]>"},oe=function(x){return x.replace("]]>","]]]]><![CDATA[>")},xe.Builder=function(){function x(ne){var re,ae,se;this.options={},ae=E["0.2"];for(re in ae)le.call(ae,re)&&(se=ae[re],this.options[re]=se);for(re in ne)le.call(ne,re)&&(se=ne[re],this.options[re]=se)}return x.prototype.buildObject=function(ne){var re,ae,se,ce,pe;return re=this.options.attrkey,ae=this.options.charkey,Object.keys(ne).length===1&&this.options.rootName===E["0.2"].rootName?(pe=Object.keys(ne)[0],ne=ne[pe]):pe=this.options.rootName,se=function(me){return function(he,be){var Pe,Me,_e,De,Ce,Ee;if(typeof be!="object")me.options.cdata&&ie(be)?he.raw(ee(be)):he.txt(be);else if(Array.isArray(be)){for(De in be)if(le.call(be,De)){Me=be[De];for(Ce in Me)_e=Me[Ce],he=se(he.ele(Ce),_e).up()}}else for(Ce in be)if(le.call(be,Ce))if(Me=be[Ce],Ce===re){if(typeof Me=="object")for(Pe in Me)Ee=Me[Pe],he=he.att(Pe,Ee)}else if(Ce===ae)me.options.cdata&&ie(Me)?he=he.raw(ee(Me)):he=he.txt(Me);else if(Array.isArray(Me))for(De in Me)le.call(Me,De)&&(_e=Me[De],typeof _e=="string"?me.options.cdata&&ie(_e)?he=he.ele(Ce).raw(ee(_e)).up():he=he.ele(Ce,_e).up():he=se(he.ele(Ce),_e).up());else typeof Me=="object"?he=se(he.ele(Ce),Me).up():typeof Me=="string"&&me.options.cdata&&ie(Me)?he=he.ele(Ce).raw(ee(Me)).up():(Me==null&&(Me=""),he=he.ele(Ce,Me.toString()).up());return he}}(this),ce=z.create(pe,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),se(ce,ne).end(this.options.renderOpts)},x}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(a,Te,xe){(function(){xe.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(a,Te,xe){(function(){"use strict";var z,E,oe,ie,ee,le,x,ne,re,ae=function(pe,me){return function(){return pe.apply(me,arguments)}},se=function(pe,me){for(var he in me)ce.call(me,he)&&(pe[he]=me[he]);function be(){this.constructor=pe}return be.prototype=me.prototype,pe.prototype=new be,pe.__super__=me.prototype,pe},ce={}.hasOwnProperty;ne=a("sax"),ie=a("events"),z=a("./bom"),x=a("./processors"),re=a("timers").setImmediate,E=a("./defaults").defaults,ee=function(pe){return typeof pe=="object"&&pe!=null&&Object.keys(pe).length===0},le=function(pe,me,he){var be,Pe,Me;for(be=0,Pe=pe.length;be<Pe;be++)Me=pe[be],me=Me(me,he);return me},oe=function(pe,me,he){var be;return be=Object.create(null),be.value=he,be.writable=!0,be.enumerable=!0,be.configurable=!0,Object.defineProperty(pe,me,be)},xe.Parser=function(pe){se(me,pe);function me(he){this.parseStringPromise=ae(this.parseStringPromise,this),this.parseString=ae(this.parseString,this),this.reset=ae(this.reset,this),this.assignOrPush=ae(this.assignOrPush,this),this.processAsync=ae(this.processAsync,this);var be,Pe,Me;if(!(this instanceof xe.Parser))return new xe.Parser(he);this.options={},Pe=E["0.2"];for(be in Pe)ce.call(Pe,be)&&(Me=Pe[be],this.options[be]=Me);for(be in he)ce.call(he,be)&&(Me=he[be],this.options[be]=Me);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return me.prototype.processAsync=function(){var he,be;try{return this.remaining.length<=this.options.chunkSize?(he=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(he),this.saxParser.close()):(he=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(he),re(this.processAsync))}catch(Pe){if(be=Pe,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(be)}},me.prototype.assignOrPush=function(he,be,Pe){return be in he?(he[be]instanceof Array||oe(he,be,[he[be]]),he[be].push(Pe)):this.options.explicitArray?oe(he,be,[Pe]):oe(he,be,Pe)},me.prototype.reset=function(){var he,be,Pe,Me;return this.removeAllListeners(),this.saxParser=ne.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(_e){return function(De){if(_e.saxParser.resume(),!_e.saxParser.errThrown)return _e.saxParser.errThrown=!0,_e.emit("error",De)}}(this),this.saxParser.onend=function(_e){return function(){if(!_e.saxParser.ended)return _e.saxParser.ended=!0,_e.emit("end",_e.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Me=[],he=this.options.attrkey,be=this.options.charkey,this.saxParser.onopentag=function(_e){return function(De){var Ce,Ee,je,ke,Be;if(je={},je[be]="",!_e.options.ignoreAttrs){Be=De.attributes;for(Ce in Be)ce.call(Be,Ce)&&(!(he in je)&&!_e.options.mergeAttrs&&(je[he]={}),Ee=_e.options.attrValueProcessors?le(_e.options.attrValueProcessors,De.attributes[Ce],Ce):De.attributes[Ce],ke=_e.options.attrNameProcessors?le(_e.options.attrNameProcessors,Ce):Ce,_e.options.mergeAttrs?_e.assignOrPush(je,ke,Ee):oe(je[he],ke,Ee))}return je["#name"]=_e.options.tagNameProcessors?le(_e.options.tagNameProcessors,De.name):De.name,_e.options.xmlns&&(je[_e.options.xmlnskey]={uri:De.uri,local:De.local}),Me.push(je)}}(this),this.saxParser.onclosetag=function(_e){return function(){var De,Ce,Ee,je,ke,Be,Ae,ve,Ue,He;if(Be=Me.pop(),ke=Be["#name"],(!_e.options.explicitChildren||!_e.options.preserveChildrenOrder)&&delete Be["#name"],Be.cdata===!0&&(De=Be.cdata,delete Be.cdata),Ue=Me[Me.length-1],Be[be].match(/^\s*$/)&&!De?(Ce=Be[be],delete Be[be]):(_e.options.trim&&(Be[be]=Be[be].trim()),_e.options.normalize&&(Be[be]=Be[be].replace(/\s{2,}/g," ").trim()),Be[be]=_e.options.valueProcessors?le(_e.options.valueProcessors,Be[be],ke):Be[be],Object.keys(Be).length===1&&be in Be&&!_e.EXPLICIT_CHARKEY&&(Be=Be[be])),ee(Be)&&(typeof _e.options.emptyTag=="function"?Be=_e.options.emptyTag():Be=_e.options.emptyTag!==""?_e.options.emptyTag:Ce),_e.options.validator!=null&&(He="/"+function(){var Ye,ot,Fe;for(Fe=[],Ye=0,ot=Me.length;Ye<ot;Ye++)je=Me[Ye],Fe.push(je["#name"]);return Fe}().concat(ke).join("/"),function(){var Ye;try{return Be=_e.options.validator(He,Ue&&Ue[ke],Be)}catch(ot){return Ye=ot,_e.emit("error",Ye)}}()),_e.options.explicitChildren&&!_e.options.mergeAttrs&&typeof Be=="object"){if(!_e.options.preserveChildrenOrder)je={},_e.options.attrkey in Be&&(je[_e.options.attrkey]=Be[_e.options.attrkey],delete Be[_e.options.attrkey]),!_e.options.charsAsChildren&&_e.options.charkey in Be&&(je[_e.options.charkey]=Be[_e.options.charkey],delete Be[_e.options.charkey]),Object.getOwnPropertyNames(Be).length>0&&(je[_e.options.childkey]=Be),Be=je;else if(Ue){Ue[_e.options.childkey]=Ue[_e.options.childkey]||[],Ae={};for(Ee in Be)ce.call(Be,Ee)&&oe(Ae,Ee,Be[Ee]);Ue[_e.options.childkey].push(Ae),delete Be["#name"],Object.keys(Be).length===1&&be in Be&&!_e.EXPLICIT_CHARKEY&&(Be=Be[be])}}return Me.length>0?_e.assignOrPush(Ue,ke,Be):(_e.options.explicitRoot&&(ve=Be,Be={},oe(Be,ke,ve)),_e.resultObject=Be,_e.saxParser.ended=!0,_e.emit("end",_e.resultObject))}}(this),Pe=function(_e){return function(De){var Ce,Ee;if(Ee=Me[Me.length-1],Ee)return Ee[be]+=De,_e.options.explicitChildren&&_e.options.preserveChildrenOrder&&_e.options.charsAsChildren&&(_e.options.includeWhiteChars||De.replace(/\\n/g,"").trim()!=="")&&(Ee[_e.options.childkey]=Ee[_e.options.childkey]||[],Ce={"#name":"__text__"},Ce[be]=De,_e.options.normalize&&(Ce[be]=Ce[be].replace(/\s{2,}/g," ").trim()),Ee[_e.options.childkey].push(Ce)),Ee}}(this),this.saxParser.ontext=Pe,this.saxParser.oncdata=function(_e){return function(De){var Ce;if(Ce=Pe(De),Ce)return Ce.cdata=!0}}(this)},me.prototype.parseString=function(he,be){var Pe;be!=null&&typeof be=="function"&&(this.on("end",function(Me){return this.reset(),be(null,Me)}),this.on("error",function(Me){return this.reset(),be(Me)}));try{return he=he.toString(),he.trim()===""?(this.emit("end",null),!0):(he=z.stripBOM(he),this.options.async?(this.remaining=he,re(this.processAsync),this.saxParser):this.saxParser.write(he).close())}catch(Me){if(Pe=Me,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Pe}else return this.emit("error",Pe),this.saxParser.errThrown=!0}},me.prototype.parseStringPromise=function(he){return new Promise(function(be){return function(Pe,Me){return be.parseString(he,function(_e,De){return _e?Me(_e):Pe(De)})}}(this))},me}(ie),xe.parseString=function(pe,me,he){var be,Pe,Me;return he!=null?(typeof he=="function"&&(be=he),typeof me=="object"&&(Pe=me)):(typeof me=="function"&&(be=me),Pe={}),Me=new xe.Parser(Pe),Me.parseString(pe,be)},xe.parseStringPromise=function(pe,me){var he,be;return typeof me=="object"&&(he=me),be=new xe.Parser(he),be.parseStringPromise(pe)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(a,Te,xe){(function(){"use strict";var z;z=new RegExp(/(?!xmlns)^.*:/),xe.normalize=function(E){return E.toLowerCase()},xe.firstCharLowerCase=function(E){return E.charAt(0).toLowerCase()+E.slice(1)},xe.stripPrefix=function(E){return E.replace(z,"")},xe.parseNumbers=function(E){return isNaN(E)||(E=E%1===0?parseInt(E,10):parseFloat(E)),E},xe.parseBooleans=function(E){return/^(?:true|false)$/i.test(E)&&(E=E.toLowerCase()==="true"),E}}).call(this)},{}],426:[function(a,Te,xe){(function(){"use strict";var z,E,oe,ie,ee=function(x,ne){for(var re in ne)le.call(ne,re)&&(x[re]=ne[re]);function ae(){this.constructor=x}return ae.prototype=ne.prototype,x.prototype=new ae,x.__super__=ne.prototype,x},le={}.hasOwnProperty;E=a("./defaults"),z=a("./builder"),oe=a("./parser"),ie=a("./processors"),xe.defaults=E.defaults,xe.processors=ie,xe.ValidationError=function(x){ee(ne,x);function ne(re){this.message=re}return ne}(Error),xe.Builder=z.Builder,xe.Parser=oe.Parser,xe.parseString=oe.parseString,xe.parseStringPromise=oe.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(a,Te,xe){(function(){Te.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(a,Te,xe){(function(){Te.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(a,Te,xe){(function(){var z,E,oe,ie,ee,le,x,ne=[].slice,re={}.hasOwnProperty;z=function(){var ae,se,ce,pe,me,he;if(he=arguments[0],me=2<=arguments.length?ne.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(ae=0,ce=me.length;ae<ce;ae++)if(pe=me[ae],pe!=null)for(se in pe)re.call(pe,se)&&(he[se]=pe[se]);return he},ee=function(ae){return!!ae&&Object.prototype.toString.call(ae)==="[object Function]"},le=function(ae){var se;return!!ae&&((se=typeof ae)=="function"||se==="object")},oe=function(ae){return ee(Array.isArray)?Array.isArray(ae):Object.prototype.toString.call(ae)==="[object Array]"},ie=function(ae){var se;if(oe(ae))return!ae.length;for(se in ae)if(re.call(ae,se))return!1;return!0},x=function(ae){var se,ce;return le(ae)&&(ce=Object.getPrototypeOf(ae))&&(se=ce.constructor)&&typeof se=="function"&&se instanceof se&&Function.prototype.toString.call(se)===Function.prototype.toString.call(Object)},E=function(ae){return ee(ae.valueOf)?ae.valueOf():ae},Te.exports.assign=z,Te.exports.isFunction=ee,Te.exports.isObject=le,Te.exports.isArray=oe,Te.exports.isEmpty=ie,Te.exports.isPlainObject=x,Te.exports.getValue=E}).call(this)},{}],430:[function(a,Te,xe){(function(){Te.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(a,Te,xe){(function(){var z,E,oe;z=a("./NodeType"),oe=a("./XMLNode"),Te.exports=E=function(){function ie(ee,le,x){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),le==null)throw new Error("Missing attribute name. "+this.debugInfo(le));this.name=this.stringify.name(le),this.value=this.stringify.attValue(x),this.type=z.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(ie.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ie.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(ie.prototype,"textContent",{get:function(){return this.value},set:function(ee){return this.value=ee||""}}),Object.defineProperty(ie.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(ie.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(ie.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(ie.prototype,"specified",{get:function(){return!0}}),ie.prototype.clone=function(){return Object.create(this)},ie.prototype.toString=function(ee){return this.options.writer.attribute(this,this.options.writer.filterOptions(ee))},ie.prototype.debugInfo=function(ee){return ee=ee||this.name,ee==null?"parent: <"+this.parent.name+">":"attribute: {"+ee+"}, parent: <"+this.parent.name+">"},ie.prototype.isEqualNode=function(ee){return!(ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.value!==this.value)},ie}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(a,Te,xe){(function(){var z,E,oe,ie=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),oe=a("./XMLCharacterData"),Te.exports=E=function(le){ie(x,le);function x(ne,re){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=z.CData,this.value=this.stringify.cdata(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.cdata(this,this.options.writer.filterOptions(ne))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(a,Te,xe){(function(){var z,E,oe=function(ee,le){for(var x in le)ie.call(le,x)&&(ee[x]=le[x]);function ne(){this.constructor=ee}return ne.prototype=le.prototype,ee.prototype=new ne,ee.__super__=le.prototype,ee},ie={}.hasOwnProperty;E=a("./XMLNode"),Te.exports=z=function(ee){oe(le,ee);function le(x){le.__super__.constructor.call(this,x),this.value=""}return Object.defineProperty(le.prototype,"data",{get:function(){return this.value},set:function(x){return this.value=x||""}}),Object.defineProperty(le.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(le.prototype,"textContent",{get:function(){return this.value},set:function(x){return this.value=x||""}}),le.prototype.clone=function(){return Object.create(this)},le.prototype.substringData=function(x,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.appendData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.insertData=function(x,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.deleteData=function(x,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.replaceData=function(x,ne,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.isEqualNode=function(x){return!(!le.__super__.isEqualNode.apply(this,arguments).isEqualNode(x)||x.data!==this.data)},le}(E)}).call(this)},{"./XMLNode":450}],434:[function(a,Te,xe){(function(){var z,E,oe,ie=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),E=a("./XMLCharacterData"),Te.exports=oe=function(le){ie(x,le);function x(ne,re){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=z.Comment,this.value=this.stringify.comment(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.comment(this,this.options.writer.filterOptions(ne))},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(a,Te,xe){(function(){var z,E,oe;E=a("./XMLDOMErrorHandler"),oe=a("./XMLDOMStringList"),Te.exports=z=function(){function ie(){var ee;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new E,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ee=Object.create(this.defaultParams)}return Object.defineProperty(ie.prototype,"parameterNames",{get:function(){return new oe(Object.keys(this.defaultParams))}}),ie.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},ie.prototype.canSetParameter=function(ee,le){return!0},ie.prototype.setParameter=function(ee,le){return le!=null?this.params[ee]=le:delete this.params[ee]},ie}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(a,Te,xe){(function(){var z;Te.exports=z=function(){function E(){}return E.prototype.handleError=function(oe){throw new Error(oe)},E}()}).call(this)},{}],437:[function(a,Te,xe){(function(){var z;Te.exports=z=function(){function E(){}return E.prototype.hasFeature=function(oe,ie){return!0},E.prototype.createDocumentType=function(oe,ie,ee){throw new Error("This DOM method is not implemented.")},E.prototype.createDocument=function(oe,ie,ee){throw new Error("This DOM method is not implemented.")},E.prototype.createHTMLDocument=function(oe){throw new Error("This DOM method is not implemented.")},E.prototype.getFeature=function(oe,ie){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],438:[function(a,Te,xe){(function(){var z;Te.exports=z=function(){function E(oe){this.arr=oe||[]}return Object.defineProperty(E.prototype,"length",{get:function(){return this.arr.length}}),E.prototype.item=function(oe){return this.arr[oe]||null},E.prototype.contains=function(oe){return this.arr.indexOf(oe)!==-1},E}()}).call(this)},{}],439:[function(a,Te,xe){(function(){var z,E,oe,ie=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;oe=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(le){ie(x,le);function x(ne,re,ae,se,ce,pe){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(ae==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(re));if(!se)throw new Error("Missing DTD attribute type. "+this.debugInfo(re));if(!ce)throw new Error("Missing DTD attribute default. "+this.debugInfo(re));if(ce.indexOf("#")!==0&&(ce="#"+ce),!ce.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(re));if(pe&&!ce.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(re));this.elementName=this.stringify.name(re),this.type=z.AttributeDeclaration,this.attributeName=this.stringify.name(ae),this.attributeType=this.stringify.dtdAttType(se),pe&&(this.defaultValue=this.stringify.dtdAttDefault(pe)),this.defaultValueType=ce}return x.prototype.toString=function(ne){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ne))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(a,Te,xe){(function(){var z,E,oe,ie=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;oe=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(le){ie(x,le);function x(ne,re,ae){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());ae||(ae="(#PCDATA)"),Array.isArray(ae)&&(ae="("+ae.join(",")+")"),this.name=this.stringify.name(re),this.type=z.ElementDeclaration,this.value=this.stringify.dtdElementValue(ae)}return x.prototype.toString=function(ne){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ne))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(a,Te,xe){(function(){var z,E,oe,ie,ee=function(x,ne){for(var re in ne)le.call(ne,re)&&(x[re]=ne[re]);function ae(){this.constructor=x}return ae.prototype=ne.prototype,x.prototype=new ae,x.__super__=ne.prototype,x},le={}.hasOwnProperty;ie=a("./Utility").isObject,oe=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(x){ee(ne,x);function ne(re,ae,se,ce){if(ne.__super__.constructor.call(this,re),se==null)throw new Error("Missing DTD entity name. "+this.debugInfo(se));if(ce==null)throw new Error("Missing DTD entity value. "+this.debugInfo(se));if(this.pe=!!ae,this.name=this.stringify.name(se),this.type=z.EntityDeclaration,!ie(ce))this.value=this.stringify.dtdEntityValue(ce),this.internal=!0;else{if(!ce.pubID&&!ce.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(se));if(ce.pubID&&!ce.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(se));if(this.internal=!1,ce.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ce.pubID)),ce.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ce.sysID)),ce.nData!=null&&(this.nData=this.stringify.dtdNData(ce.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(se))}}return Object.defineProperty(ne.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ne.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ne.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ne.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ne.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ne.prototype,"xmlVersion",{get:function(){return null}}),ne.prototype.toString=function(re){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(re))},ne}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(a,Te,xe){(function(){var z,E,oe,ie=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;oe=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(le){ie(x,le);function x(ne,re,ae){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing DTD notation name. "+this.debugInfo(re));if(!ae.pubID&&!ae.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(re));this.name=this.stringify.name(re),this.type=z.NotationDeclaration,ae.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ae.pubID)),ae.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ae.sysID))}return Object.defineProperty(x.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(x.prototype,"systemId",{get:function(){return this.sysID}}),x.prototype.toString=function(ne){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ne))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(a,Te,xe){(function(){var z,E,oe,ie,ee=function(x,ne){for(var re in ne)le.call(ne,re)&&(x[re]=ne[re]);function ae(){this.constructor=x}return ae.prototype=ne.prototype,x.prototype=new ae,x.__super__=ne.prototype,x},le={}.hasOwnProperty;ie=a("./Utility").isObject,oe=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(x){ee(ne,x);function ne(re,ae,se,ce){var pe;ne.__super__.constructor.call(this,re),ie(ae)&&(pe=ae,ae=pe.version,se=pe.encoding,ce=pe.standalone),ae||(ae="1.0"),this.type=z.Declaration,this.version=this.stringify.xmlVersion(ae),se!=null&&(this.encoding=this.stringify.xmlEncoding(se)),ce!=null&&(this.standalone=this.stringify.xmlStandalone(ce))}return ne.prototype.toString=function(re){return this.options.writer.declaration(this,this.options.writer.filterOptions(re))},ne}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(a,Te,xe){(function(){var z,E,oe,ie,ee,le,x,ne,re,ae=function(ce,pe){for(var me in pe)se.call(pe,me)&&(ce[me]=pe[me]);function he(){this.constructor=ce}return he.prototype=pe.prototype,ce.prototype=new he,ce.__super__=pe.prototype,ce},se={}.hasOwnProperty;re=a("./Utility").isObject,ne=a("./XMLNode"),z=a("./NodeType"),E=a("./XMLDTDAttList"),ie=a("./XMLDTDEntity"),oe=a("./XMLDTDElement"),ee=a("./XMLDTDNotation"),x=a("./XMLNamedNodeMap"),Te.exports=le=function(ce){ae(pe,ce);function pe(me,he,be){var Pe,Me,_e,De,Ce,Ee;if(pe.__super__.constructor.call(this,me),this.type=z.DocType,me.children){for(De=me.children,Me=0,_e=De.length;Me<_e;Me++)if(Pe=De[Me],Pe.type===z.Element){this.name=Pe.name;break}}this.documentObject=me,re(he)&&(Ce=he,he=Ce.pubID,be=Ce.sysID),be==null&&(Ee=[he,be],be=Ee[0],he=Ee[1]),he!=null&&(this.pubID=this.stringify.dtdPubID(he)),be!=null&&(this.sysID=this.stringify.dtdSysID(be))}return Object.defineProperty(pe.prototype,"entities",{get:function(){var me,he,be,Pe,Me;for(Pe={},Me=this.children,he=0,be=Me.length;he<be;he++)me=Me[he],me.type===z.EntityDeclaration&&!me.pe&&(Pe[me.name]=me);return new x(Pe)}}),Object.defineProperty(pe.prototype,"notations",{get:function(){var me,he,be,Pe,Me;for(Pe={},Me=this.children,he=0,be=Me.length;he<be;he++)me=Me[he],me.type===z.NotationDeclaration&&(Pe[me.name]=me);return new x(Pe)}}),Object.defineProperty(pe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(pe.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(pe.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),pe.prototype.element=function(me,he){var be;return be=new oe(this,me,he),this.children.push(be),this},pe.prototype.attList=function(me,he,be,Pe,Me){var _e;return _e=new E(this,me,he,be,Pe,Me),this.children.push(_e),this},pe.prototype.entity=function(me,he){var be;return be=new ie(this,!1,me,he),this.children.push(be),this},pe.prototype.pEntity=function(me,he){var be;return be=new ie(this,!0,me,he),this.children.push(be),this},pe.prototype.notation=function(me,he){var be;return be=new ee(this,me,he),this.children.push(be),this},pe.prototype.toString=function(me){return this.options.writer.docType(this,this.options.writer.filterOptions(me))},pe.prototype.ele=function(me,he){return this.element(me,he)},pe.prototype.att=function(me,he,be,Pe,Me){return this.attList(me,he,be,Pe,Me)},pe.prototype.ent=function(me,he){return this.entity(me,he)},pe.prototype.pent=function(me,he){return this.pEntity(me,he)},pe.prototype.not=function(me,he){return this.notation(me,he)},pe.prototype.up=function(){return this.root()||this.documentObject},pe.prototype.isEqualNode=function(me){return!(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.name!==this.name||me.publicId!==this.publicId||me.systemId!==this.systemId)},pe}(ne)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(a,Te,xe){(function(){var z,E,oe,ie,ee,le,x,ne,re=function(se,ce){for(var pe in ce)ae.call(ce,pe)&&(se[pe]=ce[pe]);function me(){this.constructor=se}return me.prototype=ce.prototype,se.prototype=new me,se.__super__=ce.prototype,se},ae={}.hasOwnProperty;ne=a("./Utility").isPlainObject,oe=a("./XMLDOMImplementation"),E=a("./XMLDOMConfiguration"),ee=a("./XMLNode"),z=a("./NodeType"),x=a("./XMLStringifier"),le=a("./XMLStringWriter"),Te.exports=ie=function(se){re(ce,se);function ce(pe){ce.__super__.constructor.call(this,null),this.name="#document",this.type=z.Document,this.documentURI=null,this.domConfig=new E,pe||(pe={}),pe.writer||(pe.writer=new le),this.options=pe,this.stringify=new x(pe)}return Object.defineProperty(ce.prototype,"implementation",{value:new oe}),Object.defineProperty(ce.prototype,"doctype",{get:function(){var pe,me,he,be;for(be=this.children,me=0,he=be.length;me<he;me++)if(pe=be[me],pe.type===z.DocType)return pe;return null}}),Object.defineProperty(ce.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ce.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ce.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ce.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===z.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ce.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===z.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ce.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===z.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ce.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ce.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ce.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ce.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ce.prototype,"contentType",{get:function(){return null}}),ce.prototype.end=function(pe){var me;return me={},pe?ne(pe)&&(me=pe,pe=this.options.writer):pe=this.options.writer,pe.document(this,pe.filterOptions(me))},ce.prototype.toString=function(pe){return this.options.writer.document(this,this.options.writer.filterOptions(pe))},ce.prototype.createElement=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createTextNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createComment=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createCDATASection=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createProcessingInstruction=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createAttribute=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createEntityReference=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementsByTagName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.importNode=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createElementNS=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createAttributeNS=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementsByTagNameNS=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementById=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.adoptNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.renameNode=function(pe,me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementsByClassName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createEvent=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createNodeIterator=function(pe,me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createTreeWalker=function(pe,me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(a,Te,xe){(function(){var z,E,oe,ie,ee,le,x,ne,re,ae,se,ce,pe,me,he,be,Pe,Me,_e,De,Ce,Ee,je,ke,Be={}.hasOwnProperty;ke=a("./Utility"),Ee=ke.isObject,Ce=ke.isFunction,je=ke.isPlainObject,De=ke.getValue,z=a("./NodeType"),ce=a("./XMLDocument"),me=a("./XMLElement"),ie=a("./XMLCData"),ee=a("./XMLComment"),be=a("./XMLRaw"),_e=a("./XMLText"),he=a("./XMLProcessingInstruction"),ae=a("./XMLDeclaration"),se=a("./XMLDocType"),le=a("./XMLDTDAttList"),ne=a("./XMLDTDEntity"),x=a("./XMLDTDElement"),re=a("./XMLDTDNotation"),oe=a("./XMLAttribute"),Me=a("./XMLStringifier"),Pe=a("./XMLStringWriter"),E=a("./WriterState"),Te.exports=pe=function(){function Ae(ve,Ue,He){var Ye;this.name="?xml",this.type=z.Document,ve||(ve={}),Ye={},ve.writer?je(ve.writer)&&(Ye=ve.writer,ve.writer=new Pe):ve.writer=new Pe,this.options=ve,this.writer=ve.writer,this.writerOptions=this.writer.filterOptions(Ye),this.stringify=new Me(ve),this.onDataCallback=Ue||function(){},this.onEndCallback=He||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ae.prototype.createChildNode=function(ve){var Ue,He,Ye,ot,Fe,Ke,rt,nt;switch(ve.type){case z.CData:this.cdata(ve.value);break;case z.Comment:this.comment(ve.value);break;case z.Element:Ye={},rt=ve.attribs;for(He in rt)Be.call(rt,He)&&(Ue=rt[He],Ye[He]=Ue.value);this.node(ve.name,Ye);break;case z.Dummy:this.dummy();break;case z.Raw:this.raw(ve.value);break;case z.Text:this.text(ve.value);break;case z.ProcessingInstruction:this.instruction(ve.target,ve.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+ve.constructor.name)}for(nt=ve.children,Fe=0,Ke=nt.length;Fe<Ke;Fe++)ot=nt[Fe],this.createChildNode(ot),ot.type===z.Element&&this.up();return this},Ae.prototype.dummy=function(){return this},Ae.prototype.node=function(ve,Ue,He){var Ye;if(ve==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(ve));return this.openCurrent(),ve=De(ve),Ue==null&&(Ue={}),Ue=De(Ue),Ee(Ue)||(Ye=[Ue,He],He=Ye[0],Ue=Ye[1]),this.currentNode=new me(this,ve,Ue),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,He!=null&&this.text(He),this},Ae.prototype.element=function(ve,Ue,He){var Ye,ot,Fe,Ke,rt,nt;if(this.currentNode&&this.currentNode.type===z.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(ve)||Ee(ve)||Ce(ve))for(Ke=this.options.noValidation,this.options.noValidation=!0,nt=new ce(this.options).element("TEMP_ROOT"),nt.element(ve),this.options.noValidation=Ke,rt=nt.children,ot=0,Fe=rt.length;ot<Fe;ot++)Ye=rt[ot],this.createChildNode(Ye),Ye.type===z.Element&&this.up();else this.node(ve,Ue,He);return this},Ae.prototype.attribute=function(ve,Ue){var He,Ye;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(ve));if(ve!=null&&(ve=De(ve)),Ee(ve))for(He in ve)Be.call(ve,He)&&(Ye=ve[He],this.attribute(He,Ye));else Ce(Ue)&&(Ue=Ue.apply()),this.options.keepNullAttributes&&Ue==null?this.currentNode.attribs[ve]=new oe(this,ve,""):Ue!=null&&(this.currentNode.attribs[ve]=new oe(this,ve,Ue));return this},Ae.prototype.text=function(ve){var Ue;return this.openCurrent(),Ue=new _e(this,ve),this.onData(this.writer.text(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.cdata=function(ve){var Ue;return this.openCurrent(),Ue=new ie(this,ve),this.onData(this.writer.cdata(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.comment=function(ve){var Ue;return this.openCurrent(),Ue=new ee(this,ve),this.onData(this.writer.comment(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.raw=function(ve){var Ue;return this.openCurrent(),Ue=new be(this,ve),this.onData(this.writer.raw(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.instruction=function(ve,Ue){var He,Ye,ot,Fe,Ke;if(this.openCurrent(),ve!=null&&(ve=De(ve)),Ue!=null&&(Ue=De(Ue)),Array.isArray(ve))for(He=0,Fe=ve.length;He<Fe;He++)Ye=ve[He],this.instruction(Ye);else if(Ee(ve))for(Ye in ve)Be.call(ve,Ye)&&(ot=ve[Ye],this.instruction(Ye,ot));else Ce(Ue)&&(Ue=Ue.apply()),Ke=new he(this,ve,Ue),this.onData(this.writer.processingInstruction(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ae.prototype.declaration=function(ve,Ue,He){var Ye;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Ye=new ae(this,ve,Ue,He),this.onData(this.writer.declaration(Ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.doctype=function(ve,Ue,He){if(this.openCurrent(),ve==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new se(this,Ue,He),this.currentNode.rootNodeName=ve,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ae.prototype.dtdElement=function(ve,Ue){var He;return this.openCurrent(),He=new x(this,ve,Ue),this.onData(this.writer.dtdElement(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.attList=function(ve,Ue,He,Ye,ot){var Fe;return this.openCurrent(),Fe=new le(this,ve,Ue,He,Ye,ot),this.onData(this.writer.dtdAttList(Fe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.entity=function(ve,Ue){var He;return this.openCurrent(),He=new ne(this,!1,ve,Ue),this.onData(this.writer.dtdEntity(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.pEntity=function(ve,Ue){var He;return this.openCurrent(),He=new ne(this,!0,ve,Ue),this.onData(this.writer.dtdEntity(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.notation=function(ve,Ue){var He;return this.openCurrent(),He=new re(this,ve,Ue),this.onData(this.writer.dtdNotation(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ae.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ae.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ae.prototype.openNode=function(ve){var Ue,He,Ye,ot;if(!ve.isOpen){if(!this.root&&this.currentLevel===0&&ve.type===z.Element&&(this.root=ve),He="",ve.type===z.Element){this.writerOptions.state=E.OpenTag,He=this.writer.indent(ve,this.writerOptions,this.currentLevel)+"<"+ve.name,ot=ve.attribs;for(Ye in ot)Be.call(ot,Ye)&&(Ue=ot[Ye],He+=this.writer.attribute(Ue,this.writerOptions,this.currentLevel));He+=(ve.children?">":"/>")+this.writer.endline(ve,this.writerOptions,this.currentLevel),this.writerOptions.state=E.InsideTag}else this.writerOptions.state=E.OpenTag,He=this.writer.indent(ve,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+ve.rootNodeName,ve.pubID&&ve.sysID?He+=' PUBLIC "'+ve.pubID+'" "'+ve.sysID+'"':ve.sysID&&(He+=' SYSTEM "'+ve.sysID+'"'),ve.children?(He+=" [",this.writerOptions.state=E.InsideTag):(this.writerOptions.state=E.CloseTag,He+=">"),He+=this.writer.endline(ve,this.writerOptions,this.currentLevel);return this.onData(He,this.currentLevel),ve.isOpen=!0}},Ae.prototype.closeNode=function(ve){var Ue;if(!ve.isClosed)return Ue="",this.writerOptions.state=E.CloseTag,ve.type===z.Element?Ue=this.writer.indent(ve,this.writerOptions,this.currentLevel)+"</"+ve.name+">"+this.writer.endline(ve,this.writerOptions,this.currentLevel):Ue=this.writer.indent(ve,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(ve,this.writerOptions,this.currentLevel),this.writerOptions.state=E.None,this.onData(Ue,this.currentLevel),ve.isClosed=!0},Ae.prototype.onData=function(ve,Ue){return this.documentStarted=!0,this.onDataCallback(ve,Ue+1)},Ae.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ae.prototype.debugInfo=function(ve){return ve==null?"":"node: <"+ve+">"},Ae.prototype.ele=function(){return this.element.apply(this,arguments)},Ae.prototype.nod=function(ve,Ue,He){return this.node(ve,Ue,He)},Ae.prototype.txt=function(ve){return this.text(ve)},Ae.prototype.dat=function(ve){return this.cdata(ve)},Ae.prototype.com=function(ve){return this.comment(ve)},Ae.prototype.ins=function(ve,Ue){return this.instruction(ve,Ue)},Ae.prototype.dec=function(ve,Ue,He){return this.declaration(ve,Ue,He)},Ae.prototype.dtd=function(ve,Ue,He){return this.doctype(ve,Ue,He)},Ae.prototype.e=function(ve,Ue,He){return this.element(ve,Ue,He)},Ae.prototype.n=function(ve,Ue,He){return this.node(ve,Ue,He)},Ae.prototype.t=function(ve){return this.text(ve)},Ae.prototype.d=function(ve){return this.cdata(ve)},Ae.prototype.c=function(ve){return this.comment(ve)},Ae.prototype.r=function(ve){return this.raw(ve)},Ae.prototype.i=function(ve,Ue){return this.instruction(ve,Ue)},Ae.prototype.att=function(){return this.currentNode&&this.currentNode.type===z.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.a=function(){return this.currentNode&&this.currentNode.type===z.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.ent=function(ve,Ue){return this.entity(ve,Ue)},Ae.prototype.pent=function(ve,Ue){return this.pEntity(ve,Ue)},Ae.prototype.not=function(ve,Ue){return this.notation(ve,Ue)},Ae}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(a,Te,xe){(function(){var z,E,oe,ie=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;oe=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(le){ie(x,le);function x(ne){x.__super__.constructor.call(this,ne),this.type=z.Dummy}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return""},x}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(a,Te,xe){(function(){var z,E,oe,ie,ee,le,x,ne,re,ae=function(ce,pe){for(var me in pe)se.call(pe,me)&&(ce[me]=pe[me]);function he(){this.constructor=ce}return he.prototype=pe.prototype,ce.prototype=new he,ce.__super__=pe.prototype,ce},se={}.hasOwnProperty;re=a("./Utility"),ne=re.isObject,x=re.isFunction,le=re.getValue,ee=a("./XMLNode"),z=a("./NodeType"),E=a("./XMLAttribute"),ie=a("./XMLNamedNodeMap"),Te.exports=oe=function(ce){ae(pe,ce);function pe(me,he,be){var Pe,Me,_e,De;if(pe.__super__.constructor.call(this,me),he==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(he),this.type=z.Element,this.attribs={},this.schemaTypeInfo=null,be!=null&&this.attribute(be),me.type===z.Document&&(this.isRoot=!0,this.documentObject=me,me.rootObject=this,me.children)){for(De=me.children,Me=0,_e=De.length;Me<_e;Me++)if(Pe=De[Me],Pe.type===z.DocType){Pe.name=this.name;break}}}return Object.defineProperty(pe.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(pe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(pe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new ie(this.attribs)),this.attributeMap}}),pe.prototype.clone=function(){var me,he,be,Pe;be=Object.create(this),be.isRoot&&(be.documentObject=null),be.attribs={},Pe=this.attribs;for(he in Pe)se.call(Pe,he)&&(me=Pe[he],be.attribs[he]=me.clone());return be.children=[],this.children.forEach(function(Me){var _e;return _e=Me.clone(),_e.parent=be,be.children.push(_e)}),be},pe.prototype.attribute=function(me,he){var be,Pe;if(me!=null&&(me=le(me)),ne(me))for(be in me)se.call(me,be)&&(Pe=me[be],this.attribute(be,Pe));else x(he)&&(he=he.apply()),this.options.keepNullAttributes&&he==null?this.attribs[me]=new E(this,me,""):he!=null&&(this.attribs[me]=new E(this,me,he));return this},pe.prototype.removeAttribute=function(me){var he,be,Pe;if(me==null)throw new Error("Missing attribute name. "+this.debugInfo());if(me=le(me),Array.isArray(me))for(be=0,Pe=me.length;be<Pe;be++)he=me[be],delete this.attribs[he];else delete this.attribs[me];return this},pe.prototype.toString=function(me){return this.options.writer.element(this,this.options.writer.filterOptions(me))},pe.prototype.att=function(me,he){return this.attribute(me,he)},pe.prototype.a=function(me,he){return this.attribute(me,he)},pe.prototype.getAttribute=function(me){return this.attribs.hasOwnProperty(me)?this.attribs[me].value:null},pe.prototype.setAttribute=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNode=function(me){return this.attribs.hasOwnProperty(me)?this.attribs[me]:null},pe.prototype.setAttributeNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNS=function(me,he,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNodeNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNodeNS=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.hasAttribute=function(me){return this.attribs.hasOwnProperty(me)},pe.prototype.hasAttributeNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttribute=function(me,he){return this.attribs.hasOwnProperty(me)?this.attribs[me].isId:he},pe.prototype.setIdAttributeNS=function(me,he,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttributeNode=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByClassName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.isEqualNode=function(me){var he,be,Pe;if(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.namespaceURI!==this.namespaceURI||me.prefix!==this.prefix||me.localName!==this.localName||me.attribs.length!==this.attribs.length)return!1;for(he=be=0,Pe=this.attribs.length-1;0<=Pe?be<=Pe:be>=Pe;he=0<=Pe?++be:--be)if(!this.attribs[he].isEqualNode(me.attribs[he]))return!1;return!0},pe}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(a,Te,xe){(function(){var z;Te.exports=z=function(){function E(oe){this.nodes=oe}return Object.defineProperty(E.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.getNamedItem=function(oe){return this.nodes[oe]},E.prototype.setNamedItem=function(oe){var ie;return ie=this.nodes[oe.nodeName],this.nodes[oe.nodeName]=oe,ie||null},E.prototype.removeNamedItem=function(oe){var ie;return ie=this.nodes[oe],delete this.nodes[oe],ie||null},E.prototype.item=function(oe){return this.nodes[Object.keys(this.nodes)[oe]]||null},E.prototype.getNamedItemNS=function(oe,ie){throw new Error("This DOM method is not implemented.")},E.prototype.setNamedItemNS=function(oe){throw new Error("This DOM method is not implemented.")},E.prototype.removeNamedItemNS=function(oe,ie){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],450:[function(a,Te,xe){(function(){var z,E,oe,ie,ee,le,x,ne,re,ae,se,ce,pe,me,he,be,Pe,Me,_e,De={}.hasOwnProperty;_e=a("./Utility"),Me=_e.isObject,Pe=_e.isFunction,be=_e.isEmpty,he=_e.getValue,ne=null,oe=null,ie=null,ee=null,le=null,pe=null,me=null,ce=null,x=null,E=null,se=null,re=null,z=null,Te.exports=ae=function(){function Ce(Ee){this.parent=Ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ne||(ne=a("./XMLElement"),oe=a("./XMLCData"),ie=a("./XMLComment"),ee=a("./XMLDeclaration"),le=a("./XMLDocType"),pe=a("./XMLRaw"),me=a("./XMLText"),ce=a("./XMLProcessingInstruction"),x=a("./XMLDummy"),E=a("./NodeType"),se=a("./XMLNodeList"),re=a("./XMLNamedNodeMap"),z=a("./DocumentPosition"))}return Object.defineProperty(Ce.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Ce.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Ce.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Ce.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Ce.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new se(this.children)),this.childNodeList}}),Object.defineProperty(Ce.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Ce.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Ce.prototype,"previousSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee-1]||null}}),Object.defineProperty(Ce.prototype,"nextSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee+1]||null}}),Object.defineProperty(Ce.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Ce.prototype,"textContent",{get:function(){var Ee,je,ke,Be,Ae;if(this.nodeType===E.Element||this.nodeType===E.DocumentFragment){for(Ae="",Be=this.children,je=0,ke=Be.length;je<ke;je++)Ee=Be[je],Ee.textContent&&(Ae+=Ee.textContent);return Ae}else return null},set:function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Ce.prototype.setParent=function(Ee){var je,ke,Be,Ae,ve;for(this.parent=Ee,Ee&&(this.options=Ee.options,this.stringify=Ee.stringify),Ae=this.children,ve=[],ke=0,Be=Ae.length;ke<Be;ke++)je=Ae[ke],ve.push(je.setParent(this));return ve},Ce.prototype.element=function(Ee,je,ke){var Be,Ae,ve,Ue,He,Ye,ot,Fe,Ke,rt,nt;if(Ye=null,je===null&&ke==null&&(Ke=[{},null],je=Ke[0],ke=Ke[1]),je==null&&(je={}),je=he(je),Me(je)||(rt=[je,ke],ke=rt[0],je=rt[1]),Ee!=null&&(Ee=he(Ee)),Array.isArray(Ee))for(ve=0,ot=Ee.length;ve<ot;ve++)Ae=Ee[ve],Ye=this.element(Ae);else if(Pe(Ee))Ye=this.element(Ee.apply());else if(Me(Ee)){for(He in Ee)if(De.call(Ee,He))if(nt=Ee[He],Pe(nt)&&(nt=nt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&He.indexOf(this.stringify.convertAttKey)===0)Ye=this.attribute(He.substr(this.stringify.convertAttKey.length),nt);else if(!this.options.separateArrayItems&&Array.isArray(nt)&&be(nt))Ye=this.dummy();else if(Me(nt)&&be(nt))Ye=this.element(He);else if(!this.options.keepNullNodes&&nt==null)Ye=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(nt))for(Ue=0,Fe=nt.length;Ue<Fe;Ue++)Ae=nt[Ue],Be={},Be[He]=Ae,Ye=this.element(Be);else Me(nt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&He.indexOf(this.stringify.convertTextKey)===0?Ye=this.element(nt):(Ye=this.element(He),Ye.element(nt)):Ye=this.element(He,nt)}else!this.options.keepNullNodes&&ke===null?Ye=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ee.indexOf(this.stringify.convertTextKey)===0?Ye=this.text(ke):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ee.indexOf(this.stringify.convertCDataKey)===0?Ye=this.cdata(ke):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ee.indexOf(this.stringify.convertCommentKey)===0?Ye=this.comment(ke):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ee.indexOf(this.stringify.convertRawKey)===0?Ye=this.raw(ke):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ee.indexOf(this.stringify.convertPIKey)===0?Ye=this.instruction(Ee.substr(this.stringify.convertPIKey.length),ke):Ye=this.node(Ee,je,ke);if(Ye==null)throw new Error("Could not create any elements with: "+Ee+". "+this.debugInfo());return Ye},Ce.prototype.insertBefore=function(Ee,je,ke){var Be,Ae,ve,Ue,He;if(Ee!=null&&Ee.type)return ve=Ee,Ue=je,ve.setParent(this),Ue?(Ae=children.indexOf(Ue),He=children.splice(Ae),children.push(ve),Array.prototype.push.apply(children,He)):children.push(ve),ve;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ae=this.parent.children.indexOf(this),He=this.parent.children.splice(Ae),Be=this.parent.element(Ee,je,ke),Array.prototype.push.apply(this.parent.children,He),Be},Ce.prototype.insertAfter=function(Ee,je,ke){var Be,Ae,ve;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ae=this.parent.children.indexOf(this),ve=this.parent.children.splice(Ae+1),Be=this.parent.element(Ee,je,ke),Array.prototype.push.apply(this.parent.children,ve),Be},Ce.prototype.remove=function(){var Ee,je;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ee=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ee,Ee-Ee+1].concat(je=[])),this.parent},Ce.prototype.node=function(Ee,je,ke){var Be,Ae;return Ee!=null&&(Ee=he(Ee)),je||(je={}),je=he(je),Me(je)||(Ae=[je,ke],ke=Ae[0],je=Ae[1]),Be=new ne(this,Ee,je),ke!=null&&Be.text(ke),this.children.push(Be),Be},Ce.prototype.text=function(Ee){var je;return Me(Ee)&&this.element(Ee),je=new me(this,Ee),this.children.push(je),this},Ce.prototype.cdata=function(Ee){var je;return je=new oe(this,Ee),this.children.push(je),this},Ce.prototype.comment=function(Ee){var je;return je=new ie(this,Ee),this.children.push(je),this},Ce.prototype.commentBefore=function(Ee){var je,ke,Be;return ke=this.parent.children.indexOf(this),Be=this.parent.children.splice(ke),je=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Be),this},Ce.prototype.commentAfter=function(Ee){var je,ke,Be;return ke=this.parent.children.indexOf(this),Be=this.parent.children.splice(ke+1),je=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Be),this},Ce.prototype.raw=function(Ee){var je;return je=new pe(this,Ee),this.children.push(je),this},Ce.prototype.dummy=function(){var Ee;return Ee=new x(this),Ee},Ce.prototype.instruction=function(Ee,je){var ke,Be,Ae,ve,Ue;if(Ee!=null&&(Ee=he(Ee)),je!=null&&(je=he(je)),Array.isArray(Ee))for(ve=0,Ue=Ee.length;ve<Ue;ve++)ke=Ee[ve],this.instruction(ke);else if(Me(Ee))for(ke in Ee)De.call(Ee,ke)&&(Be=Ee[ke],this.instruction(ke,Be));else Pe(je)&&(je=je.apply()),Ae=new ce(this,Ee,je),this.children.push(Ae);return this},Ce.prototype.instructionBefore=function(Ee,je){var ke,Be,Ae;return Be=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Be),ke=this.parent.instruction(Ee,je),Array.prototype.push.apply(this.parent.children,Ae),this},Ce.prototype.instructionAfter=function(Ee,je){var ke,Be,Ae;return Be=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Be+1),ke=this.parent.instruction(Ee,je),Array.prototype.push.apply(this.parent.children,Ae),this},Ce.prototype.declaration=function(Ee,je,ke){var Be,Ae;return Be=this.document(),Ae=new ee(Be,Ee,je,ke),Be.children.length===0?Be.children.unshift(Ae):Be.children[0].type===E.Declaration?Be.children[0]=Ae:Be.children.unshift(Ae),Be.root()||Be},Ce.prototype.dtd=function(Ee,je){var ke,Be,Ae,ve,Ue,He,Ye,ot,Fe,Ke;for(Be=this.document(),Ae=new le(Be,Ee,je),Fe=Be.children,ve=Ue=0,Ye=Fe.length;Ue<Ye;ve=++Ue)if(ke=Fe[ve],ke.type===E.DocType)return Be.children[ve]=Ae,Ae;for(Ke=Be.children,ve=He=0,ot=Ke.length;He<ot;ve=++He)if(ke=Ke[ve],ke.isRoot)return Be.children.splice(ve,0,Ae),Ae;return Be.children.push(Ae),Ae},Ce.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},Ce.prototype.root=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===E.Document)return Ee.rootObject;if(Ee.isRoot)return Ee;Ee=Ee.parent}},Ce.prototype.document=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===E.Document)return Ee;Ee=Ee.parent}},Ce.prototype.end=function(Ee){return this.document().end(Ee)},Ce.prototype.prev=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ee-1]},Ce.prototype.next=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee===-1||Ee===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ee+1]},Ce.prototype.importDocument=function(Ee){var je;return je=Ee.root().clone(),je.parent=this,je.isRoot=!1,this.children.push(je),this},Ce.prototype.debugInfo=function(Ee){var je,ke;return Ee=Ee||this.name,Ee==null&&!((je=this.parent)!=null&&je.name)?"":Ee==null?"parent: <"+this.parent.name+">":(ke=this.parent)!=null&&ke.name?"node: <"+Ee+">, parent: <"+this.parent.name+">":"node: <"+Ee+">"},Ce.prototype.ele=function(Ee,je,ke){return this.element(Ee,je,ke)},Ce.prototype.nod=function(Ee,je,ke){return this.node(Ee,je,ke)},Ce.prototype.txt=function(Ee){return this.text(Ee)},Ce.prototype.dat=function(Ee){return this.cdata(Ee)},Ce.prototype.com=function(Ee){return this.comment(Ee)},Ce.prototype.ins=function(Ee,je){return this.instruction(Ee,je)},Ce.prototype.doc=function(){return this.document()},Ce.prototype.dec=function(Ee,je,ke){return this.declaration(Ee,je,ke)},Ce.prototype.e=function(Ee,je,ke){return this.element(Ee,je,ke)},Ce.prototype.n=function(Ee,je,ke){return this.node(Ee,je,ke)},Ce.prototype.t=function(Ee){return this.text(Ee)},Ce.prototype.d=function(Ee){return this.cdata(Ee)},Ce.prototype.c=function(Ee){return this.comment(Ee)},Ce.prototype.r=function(Ee){return this.raw(Ee)},Ce.prototype.i=function(Ee,je){return this.instruction(Ee,je)},Ce.prototype.u=function(){return this.up()},Ce.prototype.importXMLBuilder=function(Ee){return this.importDocument(Ee)},Ce.prototype.replaceChild=function(Ee,je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.removeChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.appendChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.hasChildNodes=function(){return this.children.length!==0},Ce.prototype.cloneNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.isSupported=function(Ee,je){return!0},Ce.prototype.hasAttributes=function(){return this.attribs.length!==0},Ce.prototype.compareDocumentPosition=function(Ee){var je,ke;return je=this,je===Ee?0:this.document()!==Ee.document()?(ke=z.Disconnected|z.ImplementationSpecific,Math.random()<.5?ke|=z.Preceding:ke|=z.Following,ke):je.isAncestor(Ee)?z.Contains|z.Preceding:je.isDescendant(Ee)?z.Contains|z.Following:je.isPreceding(Ee)?z.Preceding:z.Following},Ce.prototype.isSameNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.lookupPrefix=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.isDefaultNamespace=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.lookupNamespaceURI=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.isEqualNode=function(Ee){var je,ke,Be;if(Ee.nodeType!==this.nodeType||Ee.children.length!==this.children.length)return!1;for(je=ke=0,Be=this.children.length-1;0<=Be?ke<=Be:ke>=Be;je=0<=Be?++ke:--ke)if(!this.children[je].isEqualNode(Ee.children[je]))return!1;return!0},Ce.prototype.getFeature=function(Ee,je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.setUserData=function(Ee,je,ke){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.getUserData=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.contains=function(Ee){return Ee?Ee===this||this.isDescendant(Ee):!1},Ce.prototype.isDescendant=function(Ee){var je,ke,Be,Ae,ve;for(ve=this.children,Be=0,Ae=ve.length;Be<Ae;Be++)if(je=ve[Be],Ee===je||(ke=je.isDescendant(Ee),ke))return!0;return!1},Ce.prototype.isAncestor=function(Ee){return Ee.isDescendant(this)},Ce.prototype.isPreceding=function(Ee){var je,ke;return je=this.treePosition(Ee),ke=this.treePosition(this),je===-1||ke===-1?!1:je<ke},Ce.prototype.isFollowing=function(Ee){var je,ke;return je=this.treePosition(Ee),ke=this.treePosition(this),je===-1||ke===-1?!1:je>ke},Ce.prototype.treePosition=function(Ee){var je,ke;return ke=0,je=!1,this.foreachTreeNode(this.document(),function(Be){if(ke++,!je&&Be===Ee)return je=!0}),je?ke:-1},Ce.prototype.foreachTreeNode=function(Ee,je){var ke,Be,Ae,ve,Ue;for(Ee||(Ee=this.document()),ve=Ee.children,Be=0,Ae=ve.length;Be<Ae;Be++){if(ke=ve[Be],Ue=je(ke))return Ue;if(Ue=this.foreachTreeNode(ke,je),Ue)return Ue}},Ce}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(a,Te,xe){(function(){var z;Te.exports=z=function(){function E(oe){this.nodes=oe}return Object.defineProperty(E.prototype,"length",{get:function(){return this.nodes.length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.item=function(oe){return this.nodes[oe]||null},E}()}).call(this)},{}],452:[function(a,Te,xe){(function(){var z,E,oe,ie=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),E=a("./XMLCharacterData"),Te.exports=oe=function(le){ie(x,le);function x(ne,re,ae){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=z.ProcessingInstruction,this.target=this.stringify.insTarget(re),this.name=this.target,ae&&(this.value=this.stringify.insValue(ae))}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ne))},x.prototype.isEqualNode=function(ne){return!(!x.__super__.isEqualNode.apply(this,arguments).isEqualNode(ne)||ne.target!==this.target)},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(a,Te,xe){(function(){var z,E,oe,ie=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),E=a("./XMLNode"),Te.exports=oe=function(le){ie(x,le);function x(ne,re){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=z.Raw,this.value=this.stringify.raw(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.raw(this,this.options.writer.filterOptions(ne))},x}(E)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(a,Te,xe){(function(){var z,E,oe,ie,ee=function(x,ne){for(var re in ne)le.call(ne,re)&&(x[re]=ne[re]);function ae(){this.constructor=x}return ae.prototype=ne.prototype,x.prototype=new ae,x.__super__=ne.prototype,x},le={}.hasOwnProperty;z=a("./NodeType"),ie=a("./XMLWriterBase"),E=a("./WriterState"),Te.exports=oe=function(x){ee(ne,x);function ne(re,ae){this.stream=re,ne.__super__.constructor.call(this,ae)}return ne.prototype.endline=function(re,ae,se){return re.isLastRootNode&&ae.state===E.CloseTag?"":ne.__super__.endline.call(this,re,ae,se)},ne.prototype.document=function(re,ae){var se,ce,pe,me,he,be,Pe,Me,_e;for(Pe=re.children,ce=pe=0,he=Pe.length;pe<he;ce=++pe)se=Pe[ce],se.isLastRootNode=ce===re.children.length-1;for(ae=this.filterOptions(ae),Me=re.children,_e=[],me=0,be=Me.length;me<be;me++)se=Me[me],_e.push(this.writeChildNode(se,ae,0));return _e},ne.prototype.attribute=function(re,ae,se){return this.stream.write(ne.__super__.attribute.call(this,re,ae,se))},ne.prototype.cdata=function(re,ae,se){return this.stream.write(ne.__super__.cdata.call(this,re,ae,se))},ne.prototype.comment=function(re,ae,se){return this.stream.write(ne.__super__.comment.call(this,re,ae,se))},ne.prototype.declaration=function(re,ae,se){return this.stream.write(ne.__super__.declaration.call(this,re,ae,se))},ne.prototype.docType=function(re,ae,se){var ce,pe,me,he;if(se||(se=0),this.openNode(re,ae,se),ae.state=E.OpenTag,this.stream.write(this.indent(re,ae,se)),this.stream.write("<!DOCTYPE "+re.root().name),re.pubID&&re.sysID?this.stream.write(' PUBLIC "'+re.pubID+'" "'+re.sysID+'"'):re.sysID&&this.stream.write(' SYSTEM "'+re.sysID+'"'),re.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(re,ae,se)),ae.state=E.InsideTag,he=re.children,pe=0,me=he.length;pe<me;pe++)ce=he[pe],this.writeChildNode(ce,ae,se+1);ae.state=E.CloseTag,this.stream.write("]")}return ae.state=E.CloseTag,this.stream.write(ae.spaceBeforeSlash+">"),this.stream.write(this.endline(re,ae,se)),ae.state=E.None,this.closeNode(re,ae,se)},ne.prototype.element=function(re,ae,se){var ce,pe,me,he,be,Pe,Me,_e,De,Ce;se||(se=0),this.openNode(re,ae,se),ae.state=E.OpenTag,this.stream.write(this.indent(re,ae,se)+"<"+re.name),De=re.attribs;for(Me in De)le.call(De,Me)&&(ce=De[Me],this.attribute(ce,ae,se));if(me=re.children.length,he=me===0?null:re.children[0],me===0||re.children.every(function(Ee){return(Ee.type===z.Text||Ee.type===z.Raw)&&Ee.value===""}))ae.allowEmpty?(this.stream.write(">"),ae.state=E.CloseTag,this.stream.write("</"+re.name+">")):(ae.state=E.CloseTag,this.stream.write(ae.spaceBeforeSlash+"/>"));else if(ae.pretty&&me===1&&(he.type===z.Text||he.type===z.Raw)&&he.value!=null)this.stream.write(">"),ae.state=E.InsideTag,ae.suppressPrettyCount++,_e=!0,this.writeChildNode(he,ae,se+1),ae.suppressPrettyCount--,_e=!1,ae.state=E.CloseTag,this.stream.write("</"+re.name+">");else{for(this.stream.write(">"+this.endline(re,ae,se)),ae.state=E.InsideTag,Ce=re.children,be=0,Pe=Ce.length;be<Pe;be++)pe=Ce[be],this.writeChildNode(pe,ae,se+1);ae.state=E.CloseTag,this.stream.write(this.indent(re,ae,se)+"</"+re.name+">")}return this.stream.write(this.endline(re,ae,se)),ae.state=E.None,this.closeNode(re,ae,se)},ne.prototype.processingInstruction=function(re,ae,se){return this.stream.write(ne.__super__.processingInstruction.call(this,re,ae,se))},ne.prototype.raw=function(re,ae,se){return this.stream.write(ne.__super__.raw.call(this,re,ae,se))},ne.prototype.text=function(re,ae,se){return this.stream.write(ne.__super__.text.call(this,re,ae,se))},ne.prototype.dtdAttList=function(re,ae,se){return this.stream.write(ne.__super__.dtdAttList.call(this,re,ae,se))},ne.prototype.dtdElement=function(re,ae,se){return this.stream.write(ne.__super__.dtdElement.call(this,re,ae,se))},ne.prototype.dtdEntity=function(re,ae,se){return this.stream.write(ne.__super__.dtdEntity.call(this,re,ae,se))},ne.prototype.dtdNotation=function(re,ae,se){return this.stream.write(ne.__super__.dtdNotation.call(this,re,ae,se))},ne}(ie)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(a,Te,xe){(function(){var z,E,oe=function(ee,le){for(var x in le)ie.call(le,x)&&(ee[x]=le[x]);function ne(){this.constructor=ee}return ne.prototype=le.prototype,ee.prototype=new ne,ee.__super__=le.prototype,ee},ie={}.hasOwnProperty;E=a("./XMLWriterBase"),Te.exports=z=function(ee){oe(le,ee);function le(x){le.__super__.constructor.call(this,x)}return le.prototype.document=function(x,ne){var re,ae,se,ce,pe;for(ne=this.filterOptions(ne),ce="",pe=x.children,ae=0,se=pe.length;ae<se;ae++)re=pe[ae],ce+=this.writeChildNode(re,ne,0);return ne.pretty&&ce.slice(-ne.newline.length)===ne.newline&&(ce=ce.slice(0,-ne.newline.length)),ce},le}(E)}).call(this)},{"./XMLWriterBase":458}],456:[function(a,Te,xe){(function(){var z,E=function(ie,ee){return function(){return ie.apply(ee,arguments)}},oe={}.hasOwnProperty;Te.exports=z=function(){function ie(ee){this.assertLegalName=E(this.assertLegalName,this),this.assertLegalChar=E(this.assertLegalChar,this);var le,x,ne;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),x=ee.stringify||{};for(le in x)oe.call(x,le)&&(ne=x[le],this[le]=ne)}return ie.prototype.name=function(ee){return this.options.noValidation?ee:this.assertLegalName(""+ee||"")},ie.prototype.text=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.textEscape(""+ee||""))},ie.prototype.cdata=function(ee){return this.options.noValidation?ee:(ee=""+ee||"",ee=ee.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ee))},ie.prototype.comment=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ee);return this.assertLegalChar(ee)},ie.prototype.raw=function(ee){return this.options.noValidation?ee:""+ee||""},ie.prototype.attValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.attEscape(ee=""+ee||""))},ie.prototype.insTarget=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.insValue=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/\?>/))throw new Error("Invalid processing instruction value: "+ee);return this.assertLegalChar(ee)},ie.prototype.xmlVersion=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ee);return ee},ie.prototype.xmlEncoding=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ee);return this.assertLegalChar(ee)},ie.prototype.xmlStandalone=function(ee){return this.options.noValidation?ee:ee?"yes":"no"},ie.prototype.dtdPubID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdSysID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdElementValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdAttType=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdAttDefault=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdEntityValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdNData=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.convertAttKey="@",ie.prototype.convertPIKey="?",ie.prototype.convertTextKey="#text",ie.prototype.convertCDataKey="#cdata",ie.prototype.convertCommentKey="#comment",ie.prototype.convertRawKey="#raw",ie.prototype.assertLegalChar=function(ee){var le,x;if(this.options.noValidation)return ee;if(le="",this.options.version==="1.0"){if(le=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(le))throw new Error("Invalid character in string: "+ee+" at index "+x.index)}else if(this.options.version==="1.1"&&(le=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(le)))throw new Error("Invalid character in string: "+ee+" at index "+x.index);return ee},ie.prototype.assertLegalName=function(ee){var le;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),le=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!ee.match(le))throw new Error("Invalid character in name");return ee},ie.prototype.textEscape=function(ee){var le;return this.options.noValidation?ee:(le=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(le,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},ie.prototype.attEscape=function(ee){var le;return this.options.noValidation?ee:(le=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(le,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},ie}()}).call(this)},{}],457:[function(a,Te,xe){(function(){var z,E,oe,ie=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),E=a("./XMLCharacterData"),Te.exports=oe=function(le){ie(x,le);function x(ne,re){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=z.Text,this.value=this.stringify.text(re)}return Object.defineProperty(x.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(x.prototype,"wholeText",{get:function(){var ne,re,ae;for(ae="",re=this.previousSibling;re;)ae=re.data+ae,re=re.previousSibling;for(ae+=this.data,ne=this.nextSibling;ne;)ae=ae+ne.data,ne=ne.nextSibling;return ae}}),x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.text(this,this.options.writer.filterOptions(ne))},x.prototype.splitText=function(ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.replaceWholeText=function(ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(a,Te,xe){(function(){var z,E,oe,ie,ee,le,x,ne,re,ae,se,ce,pe,me,he,be,Pe,Me={}.hasOwnProperty;Pe=a("./Utility").assign,z=a("./NodeType"),re=a("./XMLDeclaration"),ae=a("./XMLDocType"),oe=a("./XMLCData"),ie=a("./XMLComment"),ce=a("./XMLElement"),me=a("./XMLRaw"),he=a("./XMLText"),pe=a("./XMLProcessingInstruction"),se=a("./XMLDummy"),ee=a("./XMLDTDAttList"),le=a("./XMLDTDElement"),x=a("./XMLDTDEntity"),ne=a("./XMLDTDNotation"),E=a("./WriterState"),Te.exports=be=function(){function _e(De){var Ce,Ee,je;De||(De={}),this.options=De,Ee=De.writer||{};for(Ce in Ee)Me.call(Ee,Ce)&&(je=Ee[Ce],this["_"+Ce]=this[Ce],this[Ce]=je)}return _e.prototype.filterOptions=function(De){var Ce,Ee,je,ke,Be,Ae,ve,Ue;return De||(De={}),De=Pe({},this.options,De),Ce={writer:this},Ce.pretty=De.pretty||!1,Ce.allowEmpty=De.allowEmpty||!1,Ce.indent=(Ee=De.indent)!=null?Ee:" ",Ce.newline=(je=De.newline)!=null?je:`
`,Ce.offset=(ke=De.offset)!=null?ke:0,Ce.dontPrettyTextNodes=(Be=(Ae=De.dontPrettyTextNodes)!=null?Ae:De.dontprettytextnodes)!=null?Be:0,Ce.spaceBeforeSlash=(ve=(Ue=De.spaceBeforeSlash)!=null?Ue:De.spacebeforeslash)!=null?ve:"",Ce.spaceBeforeSlash===!0&&(Ce.spaceBeforeSlash=" "),Ce.suppressPrettyCount=0,Ce.user={},Ce.state=E.None,Ce},_e.prototype.indent=function(De,Ce,Ee){var je;return!Ce.pretty||Ce.suppressPrettyCount?"":Ce.pretty&&(je=(Ee||0)+Ce.offset+1,je>0)?new Array(je).join(Ce.indent):""},_e.prototype.endline=function(De,Ce,Ee){return!Ce.pretty||Ce.suppressPrettyCount?"":Ce.newline},_e.prototype.attribute=function(De,Ce,Ee){var je;return this.openAttribute(De,Ce,Ee),je=" "+De.name+'="'+De.value+'"',this.closeAttribute(De,Ce,Ee),je},_e.prototype.cdata=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee)+"<![CDATA[",Ce.state=E.InsideTag,je+=De.value,Ce.state=E.CloseTag,je+="]]>"+this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.comment=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee)+"<!-- ",Ce.state=E.InsideTag,je+=De.value,Ce.state=E.CloseTag,je+=" -->"+this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.declaration=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee)+"<?xml",Ce.state=E.InsideTag,je+=' version="'+De.version+'"',De.encoding!=null&&(je+=' encoding="'+De.encoding+'"'),De.standalone!=null&&(je+=' standalone="'+De.standalone+'"'),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+"?>",je+=this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.docType=function(De,Ce,Ee){var je,ke,Be,Ae,ve;if(Ee||(Ee=0),this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,Ae=this.indent(De,Ce,Ee),Ae+="<!DOCTYPE "+De.root().name,De.pubID&&De.sysID?Ae+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.sysID&&(Ae+=' SYSTEM "'+De.sysID+'"'),De.children.length>0){for(Ae+=" [",Ae+=this.endline(De,Ce,Ee),Ce.state=E.InsideTag,ve=De.children,ke=0,Be=ve.length;ke<Be;ke++)je=ve[ke],Ae+=this.writeChildNode(je,Ce,Ee+1);Ce.state=E.CloseTag,Ae+="]"}return Ce.state=E.CloseTag,Ae+=Ce.spaceBeforeSlash+">",Ae+=this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),Ae},_e.prototype.element=function(De,Ce,Ee){var je,ke,Be,Ae,ve,Ue,He,Ye,ot,Fe,Ke,rt,nt,et;Ee||(Ee=0),Fe=!1,Ke="",this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,Ke+=this.indent(De,Ce,Ee)+"<"+De.name,rt=De.attribs;for(ot in rt)Me.call(rt,ot)&&(je=rt[ot],Ke+=this.attribute(je,Ce,Ee));if(Be=De.children.length,Ae=Be===0?null:De.children[0],Be===0||De.children.every(function(Ge){return(Ge.type===z.Text||Ge.type===z.Raw)&&Ge.value===""}))Ce.allowEmpty?(Ke+=">",Ce.state=E.CloseTag,Ke+="</"+De.name+">"+this.endline(De,Ce,Ee)):(Ce.state=E.CloseTag,Ke+=Ce.spaceBeforeSlash+"/>"+this.endline(De,Ce,Ee));else if(Ce.pretty&&Be===1&&(Ae.type===z.Text||Ae.type===z.Raw)&&Ae.value!=null)Ke+=">",Ce.state=E.InsideTag,Ce.suppressPrettyCount++,Fe=!0,Ke+=this.writeChildNode(Ae,Ce,Ee+1),Ce.suppressPrettyCount--,Fe=!1,Ce.state=E.CloseTag,Ke+="</"+De.name+">"+this.endline(De,Ce,Ee);else{if(Ce.dontPrettyTextNodes){for(nt=De.children,ve=0,He=nt.length;ve<He;ve++)if(ke=nt[ve],(ke.type===z.Text||ke.type===z.Raw)&&ke.value!=null){Ce.suppressPrettyCount++,Fe=!0;break}}for(Ke+=">"+this.endline(De,Ce,Ee),Ce.state=E.InsideTag,et=De.children,Ue=0,Ye=et.length;Ue<Ye;Ue++)ke=et[Ue],Ke+=this.writeChildNode(ke,Ce,Ee+1);Ce.state=E.CloseTag,Ke+=this.indent(De,Ce,Ee)+"</"+De.name+">",Fe&&Ce.suppressPrettyCount--,Ke+=this.endline(De,Ce,Ee),Ce.state=E.None}return this.closeNode(De,Ce,Ee),Ke},_e.prototype.writeChildNode=function(De,Ce,Ee){switch(De.type){case z.CData:return this.cdata(De,Ce,Ee);case z.Comment:return this.comment(De,Ce,Ee);case z.Element:return this.element(De,Ce,Ee);case z.Raw:return this.raw(De,Ce,Ee);case z.Text:return this.text(De,Ce,Ee);case z.ProcessingInstruction:return this.processingInstruction(De,Ce,Ee);case z.Dummy:return"";case z.Declaration:return this.declaration(De,Ce,Ee);case z.DocType:return this.docType(De,Ce,Ee);case z.AttributeDeclaration:return this.dtdAttList(De,Ce,Ee);case z.ElementDeclaration:return this.dtdElement(De,Ce,Ee);case z.EntityDeclaration:return this.dtdEntity(De,Ce,Ee);case z.NotationDeclaration:return this.dtdNotation(De,Ce,Ee);default:throw new Error("Unknown XML node type: "+De.constructor.name)}},_e.prototype.processingInstruction=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee)+"<?",Ce.state=E.InsideTag,je+=De.target,De.value&&(je+=" "+De.value),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+"?>",je+=this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.raw=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee),Ce.state=E.InsideTag,je+=De.value,Ce.state=E.CloseTag,je+=this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.text=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee),Ce.state=E.InsideTag,je+=De.value,Ce.state=E.CloseTag,je+=this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.dtdAttList=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee)+"<!ATTLIST",Ce.state=E.InsideTag,je+=" "+De.elementName+" "+De.attributeName+" "+De.attributeType,De.defaultValueType!=="#DEFAULT"&&(je+=" "+De.defaultValueType),De.defaultValue&&(je+=' "'+De.defaultValue+'"'),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+">"+this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.dtdElement=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee)+"<!ELEMENT",Ce.state=E.InsideTag,je+=" "+De.name+" "+De.value,Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+">"+this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.dtdEntity=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee)+"<!ENTITY",Ce.state=E.InsideTag,De.pe&&(je+=" %"),je+=" "+De.name,De.value?je+=' "'+De.value+'"':(De.pubID&&De.sysID?je+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.sysID&&(je+=' SYSTEM "'+De.sysID+'"'),De.nData&&(je+=" NDATA "+De.nData)),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+">"+this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.dtdNotation=function(De,Ce,Ee){var je;return this.openNode(De,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(De,Ce,Ee)+"<!NOTATION",Ce.state=E.InsideTag,je+=" "+De.name,De.pubID&&De.sysID?je+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.pubID?je+=' PUBLIC "'+De.pubID+'"':De.sysID&&(je+=' SYSTEM "'+De.sysID+'"'),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+">"+this.endline(De,Ce,Ee),Ce.state=E.None,this.closeNode(De,Ce,Ee),je},_e.prototype.openNode=function(De,Ce,Ee){},_e.prototype.closeNode=function(De,Ce,Ee){},_e.prototype.openAttribute=function(De,Ce,Ee){},_e.prototype.closeAttribute=function(De,Ce,Ee){},_e}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(a,Te,xe){(function(){var z,E,oe,ie,ee,le,x,ne,re,ae;ae=a("./Utility"),ne=ae.assign,re=ae.isFunction,oe=a("./XMLDOMImplementation"),ie=a("./XMLDocument"),ee=a("./XMLDocumentCB"),x=a("./XMLStringWriter"),le=a("./XMLStreamWriter"),z=a("./NodeType"),E=a("./WriterState"),Te.exports.create=function(se,ce,pe,me){var he,be;if(se==null)throw new Error("Root element needs a name.");return me=ne({},ce,pe,me),he=new ie(me),be=he.element(se),me.headless||(he.declaration(me),(me.pubID!=null||me.sysID!=null)&&he.dtd(me)),be},Te.exports.begin=function(se,ce,pe){var me;return re(se)&&(me=[se,ce],ce=me[0],pe=me[1],se={}),ce?new ee(se,ce,pe):new ie(se)},Te.exports.stringWriter=function(se){return new x(se)},Te.exports.streamWriter=function(se,ce){return new le(se,ce)},Te.exports.implementation=new oe,Te.exports.nodeType=z,Te.exports.writerState=E}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(a,Te,xe){Te.exports=E;var z=Object.prototype.hasOwnProperty;function E(){for(var oe={},ie=0;ie<arguments.length;ie++){var ee=arguments[ie];for(var le in ee)z.call(ee,le)&&(oe[le]=ee[le])}return oe}},{}],461:[function(a,Te,xe){"use strict";a("core-js/modules/es.array.fill.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.array.slice.js");var z=a("buffer").Buffer,E=a("./sha"),oe=a("./md5"),ie={sha1:E,md5:oe},ee=64,le=z.alloc(ee);le.fill(0);function x(ae,se,ce){z.isBuffer(se)||(se=z.from(se)),z.isBuffer(ce)||(ce=z.from(ce)),se.length>ee?se=ae(se):se.length<ee&&(se=z.concat([se,le],ee));for(var pe=z.alloc(ee),me=z.alloc(ee),he=0;he<ee;he++)pe[he]=se[he]^54,me[he]=se[he]^92;var be=ae(z.concat([pe,ce]));return ae(z.concat([me,be]))}function ne(ae,se){ae=ae||"sha1";var ce=ie[ae],pe=[],me=0;return ce||re("algorithm:",ae,"is not yet supported"),{update:function(be){return z.isBuffer(be)||(be=z.from(be)),pe.push(be),me+=be.length,this},digest:function(be){var Pe=z.concat(pe),Me=se?x(ce,se,Pe):ce(Pe);return pe=null,be?Me.toString(be):Me}}}function re(){var ae=[].slice.call(arguments).join(" ");throw new Error([ae,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}xe.createHash=function(ae){return ne(ae)},xe.createHmac=function(ae,se){return ne(ae,se)},xe.createCredentials=function(){re("sorry,createCredentials is not implemented yet")},xe.createCipher=function(){re("sorry,createCipher is not implemented yet")},xe.createCipheriv=function(){re("sorry,createCipheriv is not implemented yet")},xe.createDecipher=function(){re("sorry,createDecipher is not implemented yet")},xe.createDecipheriv=function(){re("sorry,createDecipheriv is not implemented yet")},xe.createSign=function(){re("sorry,createSign is not implemented yet")},xe.createVerify=function(){re("sorry,createVerify is not implemented yet")},xe.createDiffieHellman=function(){re("sorry,createDiffieHellman is not implemented yet")},xe.pbkdf2=function(){re("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(a,Te,xe){"use strict";a("core-js/modules/es.array.fill.js"),a("core-js/modules/es.array.concat.js");var z=a("buffer").Buffer,E=4,oe=z.alloc(E);oe.fill(0);var ie=8;function ee(ne,re){if(ne.length%E!==0){var ae=ne.length+(E-ne.length%E);ne=z.concat([ne,oe],ae)}for(var se=[],ce=re?ne.readInt32BE:ne.readInt32LE,pe=0;pe<ne.length;pe+=E)se.push(ce.call(ne,pe));return se}function le(ne,re,ae){for(var se=z.alloc(re),ce=ae?se.writeInt32BE:se.writeInt32LE,pe=0;pe<ne.length;pe++)ce.call(se,ne[pe],pe*4,!0);return se}function x(ne,re,ae,se){z.isBuffer(ne)||(ne=z.from(ne));var ce=re(ee(ne,se),ne.length*ie);return le(ce,ae,se)}Te.exports={hash:x}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(a,Te,xe){"use strict";var z=a("./helpers");function E(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function oe(se,ce){se[ce>>5]|=128<<ce%32,se[(ce+64>>>9<<4)+14]=ce;for(var pe=1732584193,me=-271733879,he=-1732584194,be=271733878,Pe=0;Pe<se.length;Pe+=16){var Me=pe,_e=me,De=he,Ce=be;pe=ee(pe,me,he,be,se[Pe+0],7,-680876936),be=ee(be,pe,me,he,se[Pe+1],12,-389564586),he=ee(he,be,pe,me,se[Pe+2],17,606105819),me=ee(me,he,be,pe,se[Pe+3],22,-1044525330),pe=ee(pe,me,he,be,se[Pe+4],7,-176418897),be=ee(be,pe,me,he,se[Pe+5],12,1200080426),he=ee(he,be,pe,me,se[Pe+6],17,-1473231341),me=ee(me,he,be,pe,se[Pe+7],22,-45705983),pe=ee(pe,me,he,be,se[Pe+8],7,1770035416),be=ee(be,pe,me,he,se[Pe+9],12,-1958414417),he=ee(he,be,pe,me,se[Pe+10],17,-42063),me=ee(me,he,be,pe,se[Pe+11],22,-1990404162),pe=ee(pe,me,he,be,se[Pe+12],7,1804603682),be=ee(be,pe,me,he,se[Pe+13],12,-40341101),he=ee(he,be,pe,me,se[Pe+14],17,-1502002290),me=ee(me,he,be,pe,se[Pe+15],22,1236535329),pe=le(pe,me,he,be,se[Pe+1],5,-165796510),be=le(be,pe,me,he,se[Pe+6],9,-1069501632),he=le(he,be,pe,me,se[Pe+11],14,643717713),me=le(me,he,be,pe,se[Pe+0],20,-373897302),pe=le(pe,me,he,be,se[Pe+5],5,-701558691),be=le(be,pe,me,he,se[Pe+10],9,38016083),he=le(he,be,pe,me,se[Pe+15],14,-660478335),me=le(me,he,be,pe,se[Pe+4],20,-405537848),pe=le(pe,me,he,be,se[Pe+9],5,568446438),be=le(be,pe,me,he,se[Pe+14],9,-1019803690),he=le(he,be,pe,me,se[Pe+3],14,-187363961),me=le(me,he,be,pe,se[Pe+8],20,1163531501),pe=le(pe,me,he,be,se[Pe+13],5,-1444681467),be=le(be,pe,me,he,se[Pe+2],9,-51403784),he=le(he,be,pe,me,se[Pe+7],14,1735328473),me=le(me,he,be,pe,se[Pe+12],20,-1926607734),pe=x(pe,me,he,be,se[Pe+5],4,-378558),be=x(be,pe,me,he,se[Pe+8],11,-2022574463),he=x(he,be,pe,me,se[Pe+11],16,1839030562),me=x(me,he,be,pe,se[Pe+14],23,-35309556),pe=x(pe,me,he,be,se[Pe+1],4,-1530992060),be=x(be,pe,me,he,se[Pe+4],11,1272893353),he=x(he,be,pe,me,se[Pe+7],16,-155497632),me=x(me,he,be,pe,se[Pe+10],23,-1094730640),pe=x(pe,me,he,be,se[Pe+13],4,681279174),be=x(be,pe,me,he,se[Pe+0],11,-358537222),he=x(he,be,pe,me,se[Pe+3],16,-722521979),me=x(me,he,be,pe,se[Pe+6],23,76029189),pe=x(pe,me,he,be,se[Pe+9],4,-640364487),be=x(be,pe,me,he,se[Pe+12],11,-421815835),he=x(he,be,pe,me,se[Pe+15],16,530742520),me=x(me,he,be,pe,se[Pe+2],23,-995338651),pe=ne(pe,me,he,be,se[Pe+0],6,-198630844),be=ne(be,pe,me,he,se[Pe+7],10,1126891415),he=ne(he,be,pe,me,se[Pe+14],15,-1416354905),me=ne(me,he,be,pe,se[Pe+5],21,-57434055),pe=ne(pe,me,he,be,se[Pe+12],6,1700485571),be=ne(be,pe,me,he,se[Pe+3],10,-1894986606),he=ne(he,be,pe,me,se[Pe+10],15,-1051523),me=ne(me,he,be,pe,se[Pe+1],21,-2054922799),pe=ne(pe,me,he,be,se[Pe+8],6,1873313359),be=ne(be,pe,me,he,se[Pe+15],10,-30611744),he=ne(he,be,pe,me,se[Pe+6],15,-1560198380),me=ne(me,he,be,pe,se[Pe+13],21,1309151649),pe=ne(pe,me,he,be,se[Pe+4],6,-145523070),be=ne(be,pe,me,he,se[Pe+11],10,-1120210379),he=ne(he,be,pe,me,se[Pe+2],15,718787259),me=ne(me,he,be,pe,se[Pe+9],21,-343485551),pe=re(pe,Me),me=re(me,_e),he=re(he,De),be=re(be,Ce)}return Array(pe,me,he,be)}function ie(se,ce,pe,me,he,be){return re(ae(re(re(ce,se),re(me,be)),he),pe)}function ee(se,ce,pe,me,he,be,Pe){return ie(ce&pe|~ce&me,se,ce,he,be,Pe)}function le(se,ce,pe,me,he,be,Pe){return ie(ce&me|pe&~me,se,ce,he,be,Pe)}function x(se,ce,pe,me,he,be,Pe){return ie(ce^pe^me,se,ce,he,be,Pe)}function ne(se,ce,pe,me,he,be,Pe){return ie(pe^(ce|~me),se,ce,he,be,Pe)}function re(se,ce){var pe=(se&65535)+(ce&65535),me=(se>>16)+(ce>>16)+(pe>>16);return me<<16|pe&65535}function ae(se,ce){return se<<ce|se>>>32-ce}Te.exports=function(ce){return z.hash(ce,oe,16)}},{"./helpers":462}],464:[function(a,Te,xe){"use strict";var z=a("./helpers");function E(x,ne){x[ne>>5]|=128<<24-ne%32,x[(ne+64>>9<<4)+15]=ne;for(var re=Array(80),ae=1732584193,se=-271733879,ce=-1732584194,pe=271733878,me=-1009589776,he=0;he<x.length;he+=16){for(var be=ae,Pe=se,Me=ce,_e=pe,De=me,Ce=0;Ce<80;Ce++){Ce<16?re[Ce]=x[he+Ce]:re[Ce]=le(re[Ce-3]^re[Ce-8]^re[Ce-14]^re[Ce-16],1);var Ee=ee(ee(le(ae,5),oe(Ce,se,ce,pe)),ee(ee(me,re[Ce]),ie(Ce)));me=pe,pe=ce,ce=le(se,30),se=ae,ae=Ee}ae=ee(ae,be),se=ee(se,Pe),ce=ee(ce,Me),pe=ee(pe,_e),me=ee(me,De)}return Array(ae,se,ce,pe,me)}function oe(x,ne,re,ae){return x<20?ne&re|~ne&ae:x<40?ne^re^ae:x<60?ne&re|ne&ae|re&ae:ne^re^ae}function ie(x){return x<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514}function ee(x,ne){var re=(x&65535)+(ne&65535),ae=(x>>16)+(ne>>16)+(re>>16);return ae<<16|re&65535}function le(x,ne){return x<<ne|x>>>32-ne}Te.exports=function(ne){return z.hash(ne,E,20,!0)}},{"./helpers":462}],465:[function(a,Te,xe){"use strict";Te.exports=function(){return function(){}}},{}],466:[function(a,Te,xe){(function(z){(function(){"use strict";var E=a("@babel/runtime/helpers/interopRequireDefault"),oe=E(a("@babel/runtime/helpers/typeof")),ie=a("stream"),ee=ie.Stream,le=a("../lib/common/utils/isArray"),x=le.isArray;Te.exports.string=function(ae){return typeof ae=="string"},Te.exports.array=x,Te.exports.buffer=z.isBuffer;function ne(re){return re instanceof ee}Te.exports.writableStream=function(ae){return ne(ae)&&typeof ae._write=="function"&&(0,oe.default)(ae._writableState)==="object"}}).call(this)}).call(this,{isBuffer:a("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(a,Te,xe){"use strict";var z=a("immediate"),E=Te.exports={};E.nextTick=z,E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={};function oe(){}E.on=oe,E.addListener=oe,E.once=oe,E.off=oe,E.removeListener=oe,E.removeAllListeners=oe,E.emit=oe,E.prependListener=oe,E.prependOnceListener=oe,E.listeners=function(ie){return[]},E.binding=function(ie){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(ie){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}},{immediate:358}],468:[function(a,Te,xe){(function(z){(function(){"use strict";a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.search.js");var E=a("./lib/request"),oe=a("./lib/response"),ie=a("xtend"),ee=a("builtin-status-codes"),le=a("url"),x=xe;x.request=function(ne,re){typeof ne=="string"?ne=le.parse(ne):ne=ie(ne);var ae=z.location.protocol.search(/^https?:$/)===-1?"http:":"",se=ne.protocol||ae,ce=ne.hostname||ne.host,pe=ne.port,me=ne.path||"/";ce&&ce.indexOf(":")!==-1&&(ce="["+ce+"]"),ne.url=(ce?se+"//"+ce:"")+(pe?":"+pe:"")+me,ne.method=(ne.method||"GET").toUpperCase(),ne.headers=ne.headers||{};var he=new E(ne);return re&&he.on("response",re),he},x.get=function(re,ae){var se=x.request(re,ae);return se.end(),se},x.ClientRequest=E,x.IncomingMessage=oe.IncomingMessage,x.Agent=function(){},x.Agent.defaultMaxSockets=4,x.globalAgent=new x.Agent,x.STATUS_CODES=ee,x.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(a,Te,xe){(function(z){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array-buffer.constructor.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.array.slice.js"),xe.fetch=x(z.fetch)&&x(z.ReadableStream),xe.writableStream=x(z.WritableStream),xe.abortController=x(z.AbortController),xe.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),xe.blobConstructor=!0}catch(ne){}var E;function oe(){if(E!==void 0)return E;if(z.XMLHttpRequest){E=new z.XMLHttpRequest;try{E.open("GET",z.XDomainRequest?"/":"https://example.com")}catch(ne){E=null}}else E=null;return E}function ie(ne){var re=oe();if(!re)return!1;try{return re.responseType=ne,re.responseType===ne}catch(ae){}return!1}var ee=typeof z.ArrayBuffer!="undefined",le=ee&&x(z.ArrayBuffer.prototype.slice);xe.arraybuffer=xe.fetch||ee&&ie("arraybuffer"),xe.msstream=!xe.fetch&&le&&ie("ms-stream"),xe.mozchunkedarraybuffer=!xe.fetch&&ee&&ie("moz-chunked-arraybuffer"),xe.overrideMimeType=xe.fetch||(oe()?x(oe().overrideMimeType):!1),xe.vbArray=x(z.VBArray);function x(ne){return typeof ne=="function"}E=null}).call(this)}).call(this,typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(a,Te,xe){(function(z,E,oe){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js");var ie=a("./capability"),ee=a("inherits"),le=a("./response"),x=a("readable-stream"),ne=a("to-arraybuffer"),re=le.IncomingMessage,ae=le.readyStates;function se(he,be){return ie.fetch&&be?"fetch":ie.mozchunkedarraybuffer?"moz-chunked-arraybuffer":ie.msstream?"ms-stream":ie.arraybuffer&&he?"arraybuffer":ie.vbArray&&he?"text:vbarray":"text"}var ce=Te.exports=function(he){var be=this;x.Writable.call(be),be._opts=he,be._body=[],be._headers={},he.auth&&be.setHeader("Authorization","Basic "+new oe(he.auth).toString("base64")),Object.keys(he.headers).forEach(function(_e){be.setHeader(_e,he.headers[_e])});var Pe,Me=!0;if(he.mode==="disable-fetch"||"requestTimeout"in he&&!ie.abortController)Me=!1,Pe=!0;else if(he.mode==="prefer-streaming")Pe=!1;else if(he.mode==="allow-wrong-content-type")Pe=!ie.overrideMimeType;else if(!he.mode||he.mode==="default"||he.mode==="prefer-fast")Pe=!0;else throw new Error("Invalid value for opts.mode");be._mode=se(Pe,Me),be._fetchTimer=null,be.on("finish",function(){be._onFinish()})};ee(ce,x.Writable),ce.prototype.setHeader=function(he,be){var Pe=this,Me=he.toLowerCase();me.indexOf(Me)===-1&&(Pe._headers[Me]={name:he,value:be})},ce.prototype.getHeader=function(he){var be=this._headers[he.toLowerCase()];return be?be.value:null},ce.prototype.removeHeader=function(he){var be=this;delete be._headers[he.toLowerCase()]},ce.prototype._onFinish=function(){var he=this;if(!he._destroyed){var be=he._opts,Pe=he._headers,Me=null;be.method!=="GET"&&be.method!=="HEAD"&&(ie.arraybuffer?Me=ne(oe.concat(he._body)):ie.blobConstructor?Me=new E.Blob(he._body.map(function(ke){return ne(ke)}),{type:(Pe["content-type"]||{}).value||""}):Me=oe.concat(he._body).toString());var _e=[];if(Object.keys(Pe).forEach(function(ke){var Be=Pe[ke].name,Ae=Pe[ke].value;Array.isArray(Ae)?Ae.forEach(function(ve){_e.push([Be,ve])}):_e.push([Be,Ae])}),he._mode==="fetch"){var De=null,Ce=null;if(ie.abortController){var Ee=new AbortController;De=Ee.signal,he._fetchAbortController=Ee,"requestTimeout"in be&&be.requestTimeout!==0&&(he._fetchTimer=E.setTimeout(function(){he.emit("requestTimeout"),he._fetchAbortController&&he._fetchAbortController.abort()},be.requestTimeout))}E.fetch(he._opts.url,{method:he._opts.method,headers:_e,body:Me||void 0,mode:"cors",credentials:be.withCredentials?"include":"same-origin",signal:De}).then(function(ke){he._fetchResponse=ke,he._connect()},function(ke){E.clearTimeout(he._fetchTimer),he._destroyed||he.emit("error",ke)})}else{var je=he._xhr=new E.XMLHttpRequest;try{je.open(he._opts.method,he._opts.url,!0)}catch(ke){z.nextTick(function(){he.emit("error",ke)});return}"responseType"in je&&(je.responseType=he._mode.split(":")[0]),"withCredentials"in je&&(je.withCredentials=!!be.withCredentials),he._mode==="text"&&"overrideMimeType"in je&&je.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in be&&(je.timeout=be.requestTimeout,je.ontimeout=function(){he.emit("requestTimeout")}),_e.forEach(function(ke){je.setRequestHeader(ke[0],ke[1])}),he._response=null,je.onreadystatechange=function(){switch(je.readyState){case ae.LOADING:case ae.DONE:he._onXHRProgress();break}},he._mode==="moz-chunked-arraybuffer"&&(je.onprogress=function(){he._onXHRProgress()}),je.onerror=function(){he._destroyed||he.emit("error",new Error("XHR error"))};try{je.send(Me)}catch(ke){z.nextTick(function(){he.emit("error",ke)});return}}}};function pe(he){try{var be=he.status;return be!==null&&be!==0}catch(Pe){return!1}}ce.prototype._onXHRProgress=function(){var he=this;!pe(he._xhr)||he._destroyed||(he._response||he._connect(),he._response._onXHRProgress())},ce.prototype._connect=function(){var he=this;he._destroyed||(he._response=new re(he._xhr,he._fetchResponse,he._mode,he._fetchTimer),he._response.on("error",function(be){he.emit("error",be)}),he.emit("response",he._response))},ce.prototype._write=function(he,be,Pe){var Me=this;Me._body.push(he),Pe()},ce.prototype.abort=ce.prototype.destroy=function(){var he=this;he._destroyed=!0,E.clearTimeout(he._fetchTimer),he._response&&(he._response._destroyed=!0),he._xhr?he._xhr.abort():he._fetchAbortController&&he._fetchAbortController.abort()},ce.prototype.end=function(he,be,Pe){var Me=this;typeof he=="function"&&(Pe=he,he=void 0),x.Writable.prototype.end.call(Me,he,be,Pe)},ce.prototype.flushHeaders=function(){},ce.prototype.setTimeout=function(){},ce.prototype.setNoDelay=function(){},ce.prototype.setSocketKeepAlive=function(){};var me=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,a("_process"),typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(a,Te,xe){(function(z,E,oe){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.string.match.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.typed-array.uint8-array.js"),a("core-js/modules/es.typed-array.copy-within.js"),a("core-js/modules/es.typed-array.every.js"),a("core-js/modules/es.typed-array.fill.js"),a("core-js/modules/es.typed-array.filter.js"),a("core-js/modules/es.typed-array.find.js"),a("core-js/modules/es.typed-array.find-index.js"),a("core-js/modules/es.typed-array.for-each.js"),a("core-js/modules/es.typed-array.includes.js"),a("core-js/modules/es.typed-array.index-of.js"),a("core-js/modules/es.typed-array.iterator.js"),a("core-js/modules/es.typed-array.join.js"),a("core-js/modules/es.typed-array.last-index-of.js"),a("core-js/modules/es.typed-array.map.js"),a("core-js/modules/es.typed-array.reduce.js"),a("core-js/modules/es.typed-array.reduce-right.js"),a("core-js/modules/es.typed-array.reverse.js"),a("core-js/modules/es.typed-array.set.js"),a("core-js/modules/es.typed-array.slice.js"),a("core-js/modules/es.typed-array.some.js"),a("core-js/modules/es.typed-array.sort.js"),a("core-js/modules/es.typed-array.subarray.js"),a("core-js/modules/es.typed-array.to-locale-string.js"),a("core-js/modules/es.typed-array.to-string.js"),a("core-js/modules/es.array.slice.js");var ie=a("./capability"),ee=a("inherits"),le=a("readable-stream"),x=xe.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ne=xe.IncomingMessage=function(re,ae,se,ce){var pe=this;if(le.Readable.call(pe),pe._mode=se,pe.headers={},pe.rawHeaders=[],pe.trailers={},pe.rawTrailers=[],pe.on("end",function(){z.nextTick(function(){pe.emit("close")})}),se==="fetch"){var me=function De(){be.read().then(function(Ce){if(!pe._destroyed){if(Ce.done){E.clearTimeout(ce),pe.push(null);return}pe.push(new oe(Ce.value)),De()}}).catch(function(Ce){E.clearTimeout(ce),pe._destroyed||pe.emit("error",Ce)})};if(pe._fetchResponse=ae,pe.url=ae.url,pe.statusCode=ae.status,pe.statusMessage=ae.statusText,ae.headers.forEach(function(De,Ce){pe.headers[Ce.toLowerCase()]=De,pe.rawHeaders.push(Ce,De)}),ie.writableStream){var he=new WritableStream({write:function(Ce){return new Promise(function(Ee,je){pe._destroyed?je():pe.push(new oe(Ce))?Ee():pe._resumeFetch=Ee})},close:function(){E.clearTimeout(ce),pe._destroyed||pe.push(null)},abort:function(Ce){pe._destroyed||pe.emit("error",Ce)}});try{ae.body.pipeTo(he).catch(function(De){E.clearTimeout(ce),pe._destroyed||pe.emit("error",De)});return}catch(De){}}var be=ae.body.getReader();me()}else{pe._xhr=re,pe._pos=0,pe.url=re.responseURL,pe.statusCode=re.status,pe.statusMessage=re.statusText;var Pe=re.getAllResponseHeaders().split(/\r?\n/);if(Pe.forEach(function(De){var Ce=De.match(/^([^:]+):\s*(.*)/);if(Ce){var Ee=Ce[1].toLowerCase();Ee==="set-cookie"?(pe.headers[Ee]===void 0&&(pe.headers[Ee]=[]),pe.headers[Ee].push(Ce[2])):pe.headers[Ee]!==void 0?pe.headers[Ee]+=", "+Ce[2]:pe.headers[Ee]=Ce[2],pe.rawHeaders.push(Ce[1],Ce[2])}}),pe._charset="x-user-defined",!ie.overrideMimeType){var Me=pe.rawHeaders["mime-type"];if(Me){var _e=Me.match(/;\s*charset=([^;])(;|$)/);_e&&(pe._charset=_e[1].toLowerCase())}pe._charset||(pe._charset="utf-8")}}};ee(ne,le.Readable),ne.prototype._read=function(){var re=this,ae=re._resumeFetch;ae&&(re._resumeFetch=null,ae())},ne.prototype._onXHRProgress=function(){var re=this,ae=re._xhr,se=null;switch(re._mode){case"text:vbarray":if(ae.readyState!==x.DONE)break;try{se=new E.VBArray(ae.responseBody).toArray()}catch(be){}if(se!==null){re.push(new oe(se));break}case"text":try{se=ae.responseText}catch(be){re._mode="text:vbarray";break}if(se.length>re._pos){var ce=se.substr(re._pos);if(re._charset==="x-user-defined"){for(var pe=new oe(ce.length),me=0;me<ce.length;me++)pe[me]=ce.charCodeAt(me)&255;re.push(pe)}else re.push(ce,re._charset);re._pos=se.length}break;case"arraybuffer":if(ae.readyState!==x.DONE||!ae.response)break;se=ae.response,re.push(new oe(new Uint8Array(se)));break;case"moz-chunked-arraybuffer":if(se=ae.response,ae.readyState!==x.LOADING||!se)break;re.push(new oe(new Uint8Array(se)));break;case"ms-stream":if(se=ae.response,ae.readyState!==x.LOADING)break;var he=new E.MSStreamReader;he.onprogress=function(){he.result.byteLength>re._pos&&(re.push(new oe(new Uint8Array(he.result.slice(re._pos)))),re._pos=he.result.byteLength)},he.onload=function(){re.push(null)},he.readAsArrayBuffer(se);break}re._xhr.readyState===x.DONE&&re._mode!=="ms-stream"&&re.push(null)}}).call(this)}).call(this,a("_process"),typeof jt!="undefined"?jt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/helpers/typeof"));a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.search.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.string.match.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.splice.js");var oe=a("punycode"),ie=a("./util");xe.parse=Ce,xe.resolve=je,xe.resolveObject=ke,xe.format=Ee,xe.Url=ee;function ee(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var le=/^([a-z0-9.+-]+:)/i,x=/:[0-9]*$/,ne=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,re=["<",">",'"',"`"," ","\r",`
`," "],ae=["{","}","|","\\","^","`"].concat(re),se=["'"].concat(ae),ce=["%","/","?",";","#"].concat(se),pe=["/","?","#"],me=255,he=/^[+a-z0-9A-Z_-]{0,63}$/,be=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Pe={javascript:!0,"javascript:":!0},Me={javascript:!0,"javascript:":!0},_e={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},De=a("querystring");function Ce(Be,Ae,ve){if(Be&&ie.isObject(Be)&&Be instanceof ee)return Be;var Ue=new ee;return Ue.parse(Be,Ae,ve),Ue}ee.prototype.parse=function(Be,Ae,ve){if(!ie.isString(Be))throw new TypeError("Parameter 'url' must be a string, not "+(0,E.default)(Be));var Ue=Be.indexOf("?"),He=Ue!==-1&&Ue<Be.indexOf("#")?"?":"#",Ye=Be.split(He),ot=/\\/g;Ye[0]=Ye[0].replace(ot,"/"),Be=Ye.join(He);var Fe=Be;if(Fe=Fe.trim(),!ve&&Be.split("#").length===1){var Ke=ne.exec(Fe);if(Ke)return this.path=Fe,this.href=Fe,this.pathname=Ke[1],Ke[2]?(this.search=Ke[2],Ae?this.query=De.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ae&&(this.search="",this.query={}),this}var rt=le.exec(Fe);if(rt){rt=rt[0];var nt=rt.toLowerCase();this.protocol=nt,Fe=Fe.substr(rt.length)}if(ve||rt||Fe.match(/^\/\/[^@\/]+@[^@\/]+/)){var et=Fe.substr(0,2)==="//";et&&!(rt&&Me[rt])&&(Fe=Fe.substr(2),this.slashes=!0)}if(!Me[rt]&&(et||rt&&!_e[rt])){for(var Ge=-1,Xe=0;Xe<pe.length;Xe++){var Ve=Fe.indexOf(pe[Xe]);Ve!==-1&&(Ge===-1||Ve<Ge)&&(Ge=Ve)}var tt,Qe;Ge===-1?Qe=Fe.lastIndexOf("@"):Qe=Fe.lastIndexOf("@",Ge),Qe!==-1&&(tt=Fe.slice(0,Qe),Fe=Fe.slice(Qe+1),this.auth=decodeURIComponent(tt)),Ge=-1;for(var Xe=0;Xe<ce.length;Xe++){var Ve=Fe.indexOf(ce[Xe]);Ve!==-1&&(Ge===-1||Ve<Ge)&&(Ge=Ve)}Ge===-1&&(Ge=Fe.length),this.host=Fe.slice(0,Ge),Fe=Fe.slice(Ge),this.parseHost(),this.hostname=this.hostname||"";var ct=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ct)for(var at=this.hostname.split("."),Xe=0,qe=at.length;Xe<qe;Xe++){var Le=at[Xe];if(Le&&!Le.match(he)){for(var Ne="",te=0,de=Le.length;te<de;te++)Le.charCodeAt(te)>127?Ne+="x":Ne+=Le[te];if(!Ne.match(he)){var Re=at.slice(0,Xe),We=at.slice(Xe+1),we=Le.match(be);we&&(Re.push(we[1]),We.unshift(we[2])),We.length&&(Fe="/"+We.join(".")+Fe),this.hostname=Re.join(".");break}}}this.hostname.length>me?this.hostname="":this.hostname=this.hostname.toLowerCase(),ct||(this.hostname=oe.toASCII(this.hostname));var ye=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+ye,this.href+=this.host,ct&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Fe[0]!=="/"&&(Fe="/"+Fe))}if(!Pe[nt])for(var Xe=0,qe=se.length;Xe<qe;Xe++){var $e=se[Xe];if(Fe.indexOf($e)!==-1){var Ze=encodeURIComponent($e);Ze===$e&&(Ze=escape($e)),Fe=Fe.split($e).join(Ze)}}var Je=Fe.indexOf("#");Je!==-1&&(this.hash=Fe.substr(Je),Fe=Fe.slice(0,Je));var st=Fe.indexOf("?");if(st!==-1?(this.search=Fe.substr(st),this.query=Fe.substr(st+1),Ae&&(this.query=De.parse(this.query)),Fe=Fe.slice(0,st)):Ae&&(this.search="",this.query={}),Fe&&(this.pathname=Fe),_e[nt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ye=this.pathname||"",lt=this.search||"";this.path=ye+lt}return this.href=this.format(),this};function Ee(Be){return ie.isString(Be)&&(Be=Ce(Be)),Be instanceof ee?Be.format():ee.prototype.format.call(Be)}ee.prototype.format=function(){var Be=this.auth||"";Be&&(Be=encodeURIComponent(Be),Be=Be.replace(/%3A/i,":"),Be+="@");var Ae=this.protocol||"",ve=this.pathname||"",Ue=this.hash||"",He=!1,Ye="";this.host?He=Be+this.host:this.hostname&&(He=Be+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(He+=":"+this.port)),this.query&&ie.isObject(this.query)&&Object.keys(this.query).length&&(Ye=De.stringify(this.query));var ot=this.search||Ye&&"?"+Ye||"";return Ae&&Ae.substr(-1)!==":"&&(Ae+=":"),this.slashes||(!Ae||_e[Ae])&&He!==!1?(He="//"+(He||""),ve&&ve.charAt(0)!=="/"&&(ve="/"+ve)):He||(He=""),Ue&&Ue.charAt(0)!=="#"&&(Ue="#"+Ue),ot&&ot.charAt(0)!=="?"&&(ot="?"+ot),ve=ve.replace(/[?#]/g,function(Fe){return encodeURIComponent(Fe)}),ot=ot.replace("#","%23"),Ae+He+ve+ot+Ue};function je(Be,Ae){return Ce(Be,!1,!0).resolve(Ae)}ee.prototype.resolve=function(Be){return this.resolveObject(Ce(Be,!1,!0)).format()};function ke(Be,Ae){return Be?Ce(Be,!1,!0).resolveObject(Ae):Ae}ee.prototype.resolveObject=function(Be){if(ie.isString(Be)){var Ae=new ee;Ae.parse(Be,!1,!0),Be=Ae}for(var ve=new ee,Ue=Object.keys(this),He=0;He<Ue.length;He++){var Ye=Ue[He];ve[Ye]=this[Ye]}if(ve.hash=Be.hash,Be.href==="")return ve.href=ve.format(),ve;if(Be.slashes&&!Be.protocol){for(var ot=Object.keys(Be),Fe=0;Fe<ot.length;Fe++){var Ke=ot[Fe];Ke!=="protocol"&&(ve[Ke]=Be[Ke])}return _e[ve.protocol]&&ve.hostname&&!ve.pathname&&(ve.path=ve.pathname="/"),ve.href=ve.format(),ve}if(Be.protocol&&Be.protocol!==ve.protocol){if(!_e[Be.protocol]){for(var rt=Object.keys(Be),nt=0;nt<rt.length;nt++){var et=rt[nt];ve[et]=Be[et]}return ve.href=ve.format(),ve}if(ve.protocol=Be.protocol,!Be.host&&!Me[Be.protocol]){for(var qe=(Be.pathname||"").split("/");qe.length&&!(Be.host=qe.shift()););Be.host||(Be.host=""),Be.hostname||(Be.hostname=""),qe[0]!==""&&qe.unshift(""),qe.length<2&&qe.unshift(""),ve.pathname=qe.join("/")}else ve.pathname=Be.pathname;if(ve.search=Be.search,ve.query=Be.query,ve.host=Be.host||"",ve.auth=Be.auth,ve.hostname=Be.hostname||Be.host,ve.port=Be.port,ve.pathname||ve.search){var Ge=ve.pathname||"",Xe=ve.search||"";ve.path=Ge+Xe}return ve.slashes=ve.slashes||Be.slashes,ve.href=ve.format(),ve}var Ve=ve.pathname&&ve.pathname.charAt(0)==="/",tt=Be.host||Be.pathname&&Be.pathname.charAt(0)==="/",Qe=tt||Ve||ve.host&&Be.pathname,ct=Qe,at=ve.pathname&&ve.pathname.split("/")||[],qe=Be.pathname&&Be.pathname.split("/")||[],Le=ve.protocol&&!_e[ve.protocol];if(Le&&(ve.hostname="",ve.port=null,ve.host&&(at[0]===""?at[0]=ve.host:at.unshift(ve.host)),ve.host="",Be.protocol&&(Be.hostname=null,Be.port=null,Be.host&&(qe[0]===""?qe[0]=Be.host:qe.unshift(Be.host)),Be.host=null),Qe=Qe&&(qe[0]===""||at[0]==="")),tt)ve.host=Be.host||Be.host===""?Be.host:ve.host,ve.hostname=Be.hostname||Be.hostname===""?Be.hostname:ve.hostname,ve.search=Be.search,ve.query=Be.query,at=qe;else if(qe.length)at||(at=[]),at.pop(),at=at.concat(qe),ve.search=Be.search,ve.query=Be.query;else if(!ie.isNullOrUndefined(Be.search)){if(Le){ve.hostname=ve.host=at.shift();var Ne=ve.host&&ve.host.indexOf("@")>0?ve.host.split("@"):!1;Ne&&(ve.auth=Ne.shift(),ve.host=ve.hostname=Ne.shift())}return ve.search=Be.search,ve.query=Be.query,(!ie.isNull(ve.pathname)||!ie.isNull(ve.search))&&(ve.path=(ve.pathname?ve.pathname:"")+(ve.search?ve.search:"")),ve.href=ve.format(),ve}if(!at.length)return ve.pathname=null,ve.search?ve.path="/"+ve.search:ve.path=null,ve.href=ve.format(),ve;for(var te=at.slice(-1)[0],de=(ve.host||Be.host||at.length>1)&&(te==="."||te==="..")||te==="",Re=0,We=at.length;We>=0;We--)te=at[We],te==="."?at.splice(We,1):te===".."?(at.splice(We,1),Re++):Re&&(at.splice(We,1),Re--);if(!Qe&&!ct)for(;Re--;Re)at.unshift("..");Qe&&at[0]!==""&&(!at[0]||at[0].charAt(0)!=="/")&&at.unshift(""),de&&at.join("/").substr(-1)!=="/"&&at.push("");var we=at[0]===""||at[0]&&at[0].charAt(0)==="/";if(Le){ve.hostname=ve.host=we?"":at.length?at.shift():"";var Ne=ve.host&&ve.host.indexOf("@")>0?ve.host.split("@"):!1;Ne&&(ve.auth=Ne.shift(),ve.host=ve.hostname=Ne.shift())}return Qe=Qe||ve.host&&at.length,Qe&&!we&&at.unshift(""),at.length?ve.pathname=at.join("/"):(ve.pathname=null,ve.path=null),(!ie.isNull(ve.pathname)||!ie.isNull(ve.search))&&(ve.path=(ve.pathname?ve.pathname:"")+(ve.search?ve.search:"")),ve.auth=Be.auth||ve.auth,ve.slashes=ve.slashes||Be.slashes,ve.href=ve.format(),ve},ee.prototype.parseHost=function(){var Be=this.host,Ae=x.exec(Be);Ae&&(Ae=Ae[0],Ae!==":"&&(this.port=Ae.substr(1)),Be=Be.substr(0,Be.length-Ae.length)),Be&&(this.hostname=Be)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(a,Te,xe){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/helpers/typeof"));Te.exports={isString:function(ie){return typeof ie=="string"},isObject:function(ie){return(0,E.default)(ie)==="object"&&ie!==null},isNull:function(ie){return ie===null},isNullOrUndefined:function(ie){return ie==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(a,Te,xe){"use strict";a("core-js/modules/es.number.constructor.js"),xe.encodeURIComponent=function(z){try{return encodeURIComponent(z)}catch(E){return z}},xe.escape=a("escape-html"),xe.timestamp=function(E){if(E){var oe=E;return typeof oe=="string"&&(oe=Number(oe)),String(E).length===10&&(oe*=1e3),new Date(oe)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(a,Te,xe){(function(z,E){(function(){"use strict";var oe=a("@babel/runtime/helpers/interopRequireDefault"),ie=oe(a("@babel/runtime/helpers/typeof"));a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.array.concat.js");var ee=a("util"),le=a("url"),x=a("http"),ne=a("https"),re=a("debug")("urllib"),ae=a("humanize-ms"),se=0,ce=Math.pow(2,31)-10,pe=/^https?:\/\//i;function me(Me,_e){return Me===void 0?_e:Me}function he(Me){return Me?Me.split(";")[0].trim().toLowerCase():""}function be(Me,_e){return function(De,Ce,Ee){if(De)return _e(De);Me({data:Ce,status:Ee.statusCode,headers:Ee.headers,res:Ee})}}xe.TIMEOUTS=[ae("300s"),ae("300s")];var Pe=["json","text"];xe.request=function(_e,De,Ce){return arguments.length===2&&typeof De=="function"&&(Ce=De,De=null),typeof Ce=="function"?xe.requestWithCallback(_e,De,Ce):new Promise(function(Ee,je){xe.requestWithCallback(_e,De,be(Ee,je))})},xe.requestWithCallback=function(_e,De,Ce){if(!_e||typeof _e!="string"&&(0,ie.default)(_e)!=="object"){var Ee=ee.format("expect request url to be a string or a http request options, but got %j",_e);throw new Error(Ee)}arguments.length===2&&typeof De=="function"&&(Ce=De,De=null),De=De||{},se>=ce&&(se=0);var je=++se;De.requestUrls=De.requestUrls||[];var ke={requestId:je,url:_e,args:De,ctx:De.ctx};De.emitter&&De.emitter.emit("request",ke),De.timeout=De.timeout||xe.TIMEOUTS,De.maxRedirects=De.maxRedirects||10,De.streaming=De.streaming||De.customResponse;var Be=Date.now(),Ae;typeof _e=="string"?(pe.test(_e)||(_e="https://"+_e),Ae=le.parse(_e)):Ae=_e;var ve=(De.type||De.method||Ae.method||"GET").toUpperCase(),Ue=Ae.port||80,He=x,Ye=me(De.agent,xe.agent),ot=De.fixJSONCtlChars;Ae.protocol==="https:"&&(He=ne,Ye=me(De.httpsAgent,xe.httpsAgent),Ae.port||(Ue=443));var Fe={host:Ae.hostname||Ae.host||"localhost",path:Ae.path||"/",method:ve,port:Ue,agent:Ye,headers:De.headers||{},lookup:De.lookup};Array.isArray(De.timeout)?Fe.requestTimeout=De.timeout[De.timeout.length-1]:typeof De.timeout!="undefined"&&(Fe.requestTimeout=De.timeout);var Ke=De.auth||Ae.auth;Ke&&(Fe.auth=Ke);var rt=De.content||De.data,nt=ve==="GET"||ve==="HEAD"||De.dataAsQueryString;if(!De.content&&rt&&!(typeof rt=="string"||E.isBuffer(rt)))if(nt)rt=De.nestedQuerystring?qs.stringify(rt):querystring.stringify(rt);else{var et=Fe.headers["Content-Type"]||Fe.headers["content-type"];et||(De.contentType==="json"?et="application/json":et="application/x-www-form-urlencoded",Fe.headers["Content-Type"]=et),he(et)==="application/json"?rt=JSON.stringify(rt):rt=De.nestedQuerystring?qs.stringify(rt):querystring.stringify(rt)}nt&&rt&&(Fe.path+=(Ae.query?"&":"?")+rt,rt=null);var Ge=0;if(rt){var Xe=rt.length;E.isBuffer(rt)||(Xe=E.byteLength(rt)),Ge=Fe.headers["Content-Length"]=Xe}De.dataType==="json"&&(Fe.headers.Accept="application/json"),typeof De.beforeRequest=="function"&&De.beforeRequest(Fe);var Ve=null,tt=null,Qe=null,ct=!1,at=!1,qe=0,Le=-1,Ne=!1,te="",de="",Re=null;De.timing&&(Re={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function We(){Ve&&(clearTimeout(Ve),Ve=null)}function we(){tt&&(clearTimeout(tt),tt=null)}function ye(yt,Dt,Et){if(we(),!Ce){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),je,z.pid,Fe.method,_e),yt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),je,z.pid,yt.name,yt.message,yt.stack);return}var xt=Ce;Ce=null;var At={};Et&&(Le=Et.statusCode,At=Et.headers);var It=Date.now()-Be;Re&&(Re.contentDownload=It),re("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",It,qe,Le,Fe.method,Fe.host,Fe.path,at,Re);var ht={status:Le,statusCode:Le,headers:At,size:qe,aborted:Ne,rt:It,keepAliveSocket:at,data:Dt,requestUrls:De.requestUrls,timing:Re,remoteAddress:te,remotePort:de};if(yt){var Ct="";Ye&&typeof Ye.getCurrentStatus=="function"&&(Ct=", agent status: "+JSON.stringify(Ye.getCurrentStatus())),yt.message+=", "+Fe.method+" "+_e+" "+Le+" (connected: "+ct+", keepalive socket: "+at+Ct+`)
headers: `+JSON.stringify(At),yt.data=Dt,yt.path=Fe.path,yt.status=Le,yt.headers=At,yt.res=ht}xt(yt,Dt,De.streaming?Et:ht),De.emitter&&(ke.url=_e,ke.socket=St&&St.connection,ke.options=Fe,ke.size=Ge,De.emitter.emit("response",{requestId:je,error:yt,ctx:De.ctx,req:ke,res:ht}))}function Oe(yt){var Dt=null;if(De.followRedirect&&statuses.redirect[yt.statusCode]){De._followRedirectCount=(De._followRedirectCount||0)+1;var Et=yt.headers.location;if(!Et)Dt=new Error("Got statusCode "+yt.statusCode+" but cannot resolve next location from headers"),Dt.name="FollowRedirectError";else if(De._followRedirectCount>De.maxRedirects)Dt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+_e),Dt.name="MaxRedirectError";else{var xt=De.formatRedirectUrl?De.formatRedirectUrl(_e,Et):le.resolve(_e,Et);re("Request#%d %s: `redirected` from %s to %s",je,Fe.path,_e,xt),we(),De.headers&&De.headers.Host&&pe.test(Et)&&(De.headers.Host=null);var At=Ce;return Ce=null,xe.requestWithCallback(xt,De,At),{redirect:!0,error:null}}}return{redirect:!1,error:Dt}}De.gzip&&!Fe.headers["Accept-Encoding"]&&!Fe.headers["accept-encoding"]&&(Fe.headers["Accept-Encoding"]="gzip");function $e(yt,Dt,Et){var xt=yt.headers["content-encoding"];return Et(null,Dt,xt)}var Ze=De.writeStream;re("Request#%d %s %s with headers %j, options.path: %s",je,ve,_e,Fe.headers,Fe.path),De.requestUrls.push(_e);function Je(yt){if(Re&&(Re.waiting=Date.now()-Be),re("Request#%d %s `req response` event emit: status %d, headers: %j",je,_e,yt.statusCode,yt.headers),De.streaming){var Dt=Oe(yt);if(Dt.redirect){yt.resume();return}return Dt.error?(yt.resume(),ye(Dt.error,null,yt)):ye(null,null,yt)}if(yt.on("close",function(){re("Request#%d %s: `res close` event emit, total size %d",je,_e,qe)}),yt.on("error",function(){re("Request#%d %s: `res error` event emit, total size %d",je,_e,qe)}),yt.on("aborted",function(){Ne=!0,re("Request#%d %s: `res aborted` event emit, total size %d",je,_e,qe)}),Ze){var Et=Oe(yt);if(Et.redirect){yt.resume();return}return Et.error?(yt.resume(),Ze.end(),ye(Et.error,null,yt)):(De.consumeWriteStream===!1?yt.on("end",ye.bind(null,null,null,yt)):Ze.on("close",function(){re("Request#%d %s: writeStream close event emitted",je,_e),ye(Qe||null,null,yt)}),yt.pipe(Ze))}var xt=[];yt.on("data",function(At){re("Request#%d %s: `res data` event emit, size %d",je,_e,At.length),qe+=At.length,xt.push(At)}),yt.on("end",function(){var At=E.concat(xt,qe);if(re("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",je,_e,qe,yt._dumped),Qe)return ye(Qe,At,yt);var It=Oe(yt);if(It.error)return ye(It.error,At,yt);It.redirect||$e(yt,At,function(ht,Ct,Ht){if(ht)return ye(ht,At,yt);if(!Ht&&Pe.indexOf(De.dataType)>=0){try{Ct=decodeBodyByCharset(Ct,yt)}catch(vt){return re("decodeBodyByCharset error: %s",vt),ye(null,Ct,yt)}if(De.dataType==="json")if(qe===0)Ct=null;else{var Vt=parseJSON(Ct,ot);Vt.error?ht=Vt.error:Ct=Vt.data}}Ne&&re("Request#%d %s: Remote socket was terminated before `response.end()` was called",je,_e),ye(ht,Ct,yt)})})}var st,lt;Array.isArray(De.timeout)?(st=ae(De.timeout[0]),lt=ae(De.timeout[1])):st=lt=ae(De.timeout),re("ConnectTimeout: %d, ResponseTimeout: %d",st,lt);function ft(){re("Connect timer ticking, timeout: %d",st),Ve=setTimeout(function(){Ve=null,Le===-1&&(Le=-2);var yt="Connect timeout for "+st+"ms",Dt="ConnectionTimeoutError";St.socket||(Dt="SocketAssignTimeoutError",yt+=", working sockets is full"),Qe=new Error(yt),Qe.name=Dt,Qe.requestId=je,re("ConnectTimeout: Request#%d %s %s: %s, connected: %s",je,_e,Qe.name,yt,ct),Ot()},st)}function Tt(){re("Response timer ticking, timeout: %d",lt),tt=setTimeout(function(){tt=null;var yt="Response timeout for "+lt+"ms",Dt="ResponseTimeoutError";Qe=new Error(yt),Qe.name=Dt,Qe.requestId=je,re("ResponseTimeout: Request#%d %s %s: %s, connected: %s",je,_e,Qe.name,yt,ct),Ot()},lt)}var St;Fe.mode=De.mode?De.mode:"";try{St=He.request(Fe,Je)}catch(yt){return ye(yt)}typeof window=="undefined"?ft():St.on("requestTimeout",function(){Le===-1&&(Le=-2);var yt="Connect timeout for "+st+"ms",Dt="ConnectionTimeoutError";Qe=new Error(yt),Qe.name=Dt,Qe.requestId=je,Ot()});function Ot(){re("Request#%d %s abort, connected: %s",je,_e,ct),St.socket||(Qe.noSocket=!0,ye(Qe)),St.abort()}return Re&&St.on("finish",function(){Re.requestSent=Date.now()-Be}),St.once("socket",function(yt){Re&&(Re.queuing=Date.now()-Be);var Dt=yt.readyState;if(Dt==="opening"){yt.once("lookup",function(Et,xt,At){re("Request#%d %s lookup: %s, %s, %s",je,_e,Et,xt,At),Re&&(Re.dnslookup=Date.now()-Be),xt&&(te=xt)}),yt.once("connect",function(){Re&&(Re.connected=Date.now()-Be),We(),Tt(),re("Request#%d %s new socket connected",je,_e),ct=!0,te||(te=yt.remoteAddress),de=yt.remotePort});return}re("Request#%d %s reuse socket connected, readyState: %s",je,_e,Dt),ct=!0,at=!0,te||(te=yt.remoteAddress),de=yt.remotePort,We(),Tt()}),St.on("error",function(yt){(yt.name==="Error"||yt.name==="TypeError")&&(yt.name=ct?"ResponseError":"RequestError"),yt.message+=' (req "error")',re("Request#%d %s `req error` event emit, %s: %s",je,_e,yt.name,yt.message),ye(Qe||yt)}),Ze&&Ze.once("error",function(yt){yt.message+=' (writeStream "error")',Qe=yt,re("Request#%d %s `writeStream error` event emit, %s: %s",je,_e,yt.name,yt.message),Ot()}),De.stream?(De.stream.pipe(St),De.stream.once("error",function(yt){yt.message+=' (stream "error")',Qe=yt,re("Request#%d %s `readStream error` event emit, %s: %s",je,_e,yt.name,yt.message),Ot()})):St.end(rt),St.requestId=je,St}}).call(this)}).call(this,a("_process"),a("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},86013:function(Jt,jt,Ie){"use strict";var ge=Ie(59301),gt=Ie(19248);const a=Te=>{let xe;return typeof Te=="object"&&(Te!=null&&Te.clearIcon)?xe=Te:Te&&(xe={clearIcon:ge.createElement(gt.Z,null)}),xe};jt.Z=a},54500:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return ge}});const ge=gt=>gt?typeof gt=="function"?gt():gt:null},62673:function(Jt,jt,Ie){"use strict";Ie.d(jt,{default:function(){return Ce}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(16632),xe=Ie(8654),z=Ie(12919),E=Ie(63872),oe=Ie(48755),ie=Ie(2171),ee=Ie(83397),le=Ie(56553),ne=ge.createContext(null),re=Ie(36170),ae=Ie(74632),se=function(Ee,je){var ke={};for(var Be in Ee)Object.prototype.hasOwnProperty.call(Ee,Be)&&je.indexOf(Be)<0&&(ke[Be]=Ee[Be]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Be=Object.getOwnPropertySymbols(Ee);Ae<Be.length;Ae++)je.indexOf(Be[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Be[Ae])&&(ke[Be[Ae]]=Ee[Be[Ae]]);return ke};const ce=(Ee,je)=>{var ke;const{prefixCls:Be,className:Ae,rootClassName:ve,children:Ue,indeterminate:He=!1,style:Ye,onMouseEnter:ot,onMouseLeave:Fe,skipGroup:Ke=!1,disabled:rt}=Ee,nt=se(Ee,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:et,direction:Ge,checkbox:Xe}=ge.useContext(oe.E_),Ve=ge.useContext(ne),{isFormItemInput:tt}=ge.useContext(le.aM),Qe=ge.useContext(ie.Z),ct=(ke=(Ve==null?void 0:Ve.disabled)||rt)!==null&&ke!==void 0?ke:Qe,at=ge.useRef(nt.value),qe=ge.useRef(null),Le=(0,xe.sQ)(je,qe);ge.useEffect(()=>{Ve==null||Ve.registerValue(nt.value)},[]),ge.useEffect(()=>{if(!Ke)return nt.value!==at.current&&(Ve==null||Ve.cancelValue(at.current),Ve==null||Ve.registerValue(nt.value),at.current=nt.value),()=>Ve==null?void 0:Ve.cancelValue(nt.value)},[nt.value]),ge.useEffect(()=>{var Je;!((Je=qe.current)===null||Je===void 0)&&Je.input&&(qe.current.input.indeterminate=He)},[He]);const Ne=et("checkbox",Be),te=(0,ee.Z)(Ne),[de,Re,We]=(0,re.ZP)(Ne,te),we=Object.assign({},nt);Ve&&!Ke&&(we.onChange=function(){nt.onChange&&nt.onChange.apply(nt,arguments),Ve.toggleOption&&Ve.toggleOption({label:Ue,value:nt.value})},we.name=Ve.name,we.checked=Ve.value.includes(nt.value));const ye=a()(`${Ne}-wrapper`,{[`${Ne}-rtl`]:Ge==="rtl",[`${Ne}-wrapper-checked`]:we.checked,[`${Ne}-wrapper-disabled`]:ct,[`${Ne}-wrapper-in-form-item`]:tt},Xe==null?void 0:Xe.className,Ae,ve,We,te,Re),Oe=a()({[`${Ne}-indeterminate`]:He},E.A,Re),[$e,Ze]=(0,ae.Z)(we.onClick);return de(ge.createElement(z.Z,{component:"Checkbox",disabled:ct},ge.createElement("label",{className:ye,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Ye),onMouseEnter:ot,onMouseLeave:Fe,onClick:$e},ge.createElement(Te.Z,Object.assign({},we,{onClick:Ze,prefixCls:Ne,className:Oe,disabled:ct,ref:Le})),Ue!==void 0&&ge.createElement("span",{className:`${Ne}-label`},Ue))))};var me=ge.forwardRef(ce),he=Ie(77654),be=Ie(2738),Pe=function(Ee,je){var ke={};for(var Be in Ee)Object.prototype.hasOwnProperty.call(Ee,Be)&&je.indexOf(Be)<0&&(ke[Be]=Ee[Be]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Be=Object.getOwnPropertySymbols(Ee);Ae<Be.length;Ae++)je.indexOf(Be[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Be[Ae])&&(ke[Be[Ae]]=Ee[Be[Ae]]);return ke},_e=ge.forwardRef((Ee,je)=>{const{defaultValue:ke,children:Be,options:Ae=[],prefixCls:ve,className:Ue,rootClassName:He,style:Ye,onChange:ot}=Ee,Fe=Pe(Ee,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ke,direction:rt}=ge.useContext(oe.E_),[nt,et]=ge.useState(Fe.value||ke||[]),[Ge,Xe]=ge.useState([]);ge.useEffect(()=>{"value"in Fe&&et(Fe.value||[])},[Fe.value]);const Ve=ge.useMemo(()=>Ae.map(Oe=>typeof Oe=="string"||typeof Oe=="number"?{label:Oe,value:Oe}:Oe),[Ae]),tt=Oe=>{Xe($e=>$e.filter(Ze=>Ze!==Oe))},Qe=Oe=>{Xe($e=>[].concat((0,he.Z)($e),[Oe]))},ct=Oe=>{const $e=nt.indexOf(Oe.value),Ze=(0,he.Z)(nt);$e===-1?Ze.push(Oe.value):Ze.splice($e,1),"value"in Fe||et(Ze),ot==null||ot(Ze.filter(Je=>Ge.includes(Je)).sort((Je,st)=>{const lt=Ve.findIndex(Tt=>Tt.value===Je),ft=Ve.findIndex(Tt=>Tt.value===st);return lt-ft}))},at=Ke("checkbox",ve),qe=`${at}-group`,Le=(0,ee.Z)(at),[Ne,te,de]=(0,re.ZP)(at,Le),Re=(0,be.Z)(Fe,["value","disabled"]),We=Ae.length?Ve.map(Oe=>ge.createElement(me,{prefixCls:at,key:Oe.value.toString(),disabled:"disabled"in Oe?Oe.disabled:Fe.disabled,value:Oe.value,checked:nt.includes(Oe.value),onChange:Oe.onChange,className:`${qe}-item`,style:Oe.style,title:Oe.title,id:Oe.id,required:Oe.required},Oe.label)):Be,we={toggleOption:ct,value:nt,disabled:Fe.disabled,name:Fe.name,registerValue:Qe,cancelValue:tt},ye=a()(qe,{[`${qe}-rtl`]:rt==="rtl"},Ue,He,de,Le,te);return Ne(ge.createElement("div",Object.assign({className:ye,style:Ye},Re,{ref:je}),ge.createElement(ne.Provider,{value:we},We)))});const De=me;De.Group=_e,De.__ANT_CHECKBOX=!0;var Ce=De},36170:function(Jt,jt,Ie){"use strict";Ie.d(jt,{C2:function(){return z}});var ge=Ie(36237),gt=Ie(63356),a=Ie(51636),Te=Ie(16931);const xe=E=>{const{checkboxCls:oe}=E,ie=`${oe}-wrapper`;return[{[`${oe}-group`]:Object.assign(Object.assign({},(0,gt.Wf)(E)),{display:"inline-flex",flexWrap:"wrap",columnGap:E.marginXS,[`> ${E.antCls}-row`]:{flex:1}}),[ie]:Object.assign(Object.assign({},(0,gt.Wf)(E)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ie}`]:{marginInlineStart:0},[`&${ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[oe]:Object.assign(Object.assign({},(0,gt.Wf)(E)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:E.borderRadiusSM,alignSelf:"center",[`${oe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${oe}-inner`]:Object.assign({},(0,gt.oN)(E))},[`${oe}-inner`]:{boxSizing:"border-box",display:"block",width:E.checkboxSize,height:E.checkboxSize,direction:"ltr",backgroundColor:E.colorBgContainer,border:`${(0,ge.unit)(E.lineWidth)} ${E.lineType} ${E.colorBorder}`,borderRadius:E.borderRadiusSM,borderCollapse:"separate",transition:`all ${E.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:E.calc(E.checkboxSize).div(14).mul(5).equal(),height:E.calc(E.checkboxSize).div(14).mul(8).equal(),border:`${(0,ge.unit)(E.lineWidthBold)} solid ${E.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${E.motionDurationFast} ${E.motionEaseInBack}, opacity ${E.motionDurationFast}`}},"& + span":{paddingInlineStart:E.paddingXS,paddingInlineEnd:E.paddingXS}})},{[`
${ie}:not(${ie}-disabled),
${oe}:not(${oe}-disabled)
`]:{[`&:hover ${oe}-inner`]:{borderColor:E.colorPrimary}},[`${ie}:not(${ie}-disabled)`]:{[`&:hover ${oe}-checked:not(${oe}-disabled) ${oe}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${oe}-checked:not(${oe}-disabled):after`]:{borderColor:E.colorPrimaryHover}}},{[`${oe}-checked`]:{[`${oe}-inner`]:{backgroundColor:E.colorPrimary,borderColor:E.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${E.motionDurationMid} ${E.motionEaseOutBack} ${E.motionDurationFast}`}}},[`
${ie}-checked:not(${ie}-disabled),
${oe}-checked:not(${oe}-disabled)
`]:{[`&:hover ${oe}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"}}},{[oe]:{"&-indeterminate":{[`${oe}-inner`]:{backgroundColor:`${E.colorBgContainer} !important`,borderColor:`${E.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:E.calc(E.fontSizeLG).div(2).equal(),height:E.calc(E.fontSizeLG).div(2).equal(),backgroundColor:E.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${oe}-inner`]:{backgroundColor:`${E.colorBgContainer} !important`,borderColor:`${E.colorPrimary} !important`}}}},{[`${ie}-disabled`]:{cursor:"not-allowed"},[`${oe}-disabled`]:{[`&, ${oe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${oe}-inner`]:{background:E.colorBgContainerDisabled,borderColor:E.colorBorder,"&:after":{borderColor:E.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:E.colorTextDisabled},[`&${oe}-indeterminate ${oe}-inner::after`]:{background:E.colorTextDisabled}}}]};function z(E,oe){const ie=(0,a.mergeToken)(oe,{checkboxCls:`.${E}`,checkboxSize:oe.controlInteractiveSize});return[xe(ie)]}jt.ZP=(0,Te.I$)("Checkbox",(E,oe)=>{let{prefixCls:ie}=oe;return[z(ie,E)]})},38406:function(Jt,jt,Ie){"use strict";var ge=Ie(59301),gt=Ie(48755),a=Ie(584);const Te=xe=>{const{componentName:z}=xe,{getPrefixCls:E}=(0,ge.useContext)(gt.E_),oe=E("empty");switch(z){case"Table":case"List":return ge.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE,className:`${oe}-small`});case"Table.filter":return null;default:return ge.createElement(a.Z,null)}};jt.Z=Te},36207:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return $e}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(85899),xe=Ie(72190),z=Ie(43403),E=Ie(34280),oe=ge.createContext(null),ie=ge.createContext({}),ee=oe,le=Ie(18642),x=Ie(60499),ne=Ie(77900),re=Ie(10228),ae=Ie(26112),se=Ie(42244),ce=Ie(8654),pe=["prefixCls","className","containerRef"],me=function(Je){var st=Je.prefixCls,lt=Je.className,ft=Je.containerRef,Tt=(0,se.Z)(Je,pe),St=ge.useContext(ie),Ot=St.panel,yt=(0,ce.x1)(Ot,ft);return ge.createElement("div",(0,x.Z)({className:a()("".concat(st,"-content"),lt),role:"dialog",ref:yt},(0,ae.Z)(Je,{aria:!0}),{"aria-modal":"true"},Tt))},he=me,be=Ie(48736);function Pe(Ze){return typeof Ze=="string"&&String(Number(Ze))===Ze?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ze)):Ze}function Me(Ze){warning(!("wrapperClassName"in Ze),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ze.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var _e={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function De(Ze,Je){var st,lt,ft,Tt=Ze.prefixCls,St=Ze.open,Ot=Ze.placement,yt=Ze.inline,Dt=Ze.push,Et=Ze.forceRender,xt=Ze.autoFocus,At=Ze.keyboard,It=Ze.classNames,ht=Ze.rootClassName,Ct=Ze.rootStyle,Ht=Ze.zIndex,Vt=Ze.className,vt=Ze.id,kt=Ze.style,$t=Ze.motion,Kt=Ze.width,tr=Ze.height,sr=Ze.children,gr=Ze.mask,br=Ze.maskClosable,fr=Ze.maskMotion,yr=Ze.maskClassName,ir=Ze.maskStyle,Yt=Ze.afterOpenChange,Qt=Ze.onClose,qt=Ze.onMouseEnter,Xt=Ze.onMouseOver,ur=Ze.onMouseLeave,lr=Ze.onClick,ar=Ze.onKeyDown,Cr=Ze.onKeyUp,Ar=Ze.styles,Tr=Ze.drawerRender,Nr=ge.useRef(),jr=ge.useRef(),Zr=ge.useRef();ge.useImperativeHandle(Je,function(){return Nr.current});var Wr=function(Rt){var _t=Rt.keyCode,Ut=Rt.shiftKey;switch(_t){case re.Z.TAB:{if(_t===re.Z.TAB){if(!Ut&&document.activeElement===Zr.current){var dr;(dr=jr.current)===null||dr===void 0||dr.focus({preventScroll:!0})}else if(Ut&&document.activeElement===jr.current){var cr;(cr=Zr.current)===null||cr===void 0||cr.focus({preventScroll:!0})}}break}case re.Z.ESC:{Qt&&At&&(Rt.stopPropagation(),Qt(Rt));break}}};ge.useEffect(function(){if(St&&xt){var zt;(zt=Nr.current)===null||zt===void 0||zt.focus({preventScroll:!0})}},[St]);var er=ge.useState(!1),or=(0,xe.Z)(er,2),Ir=or[0],xr=or[1],Pt=ge.useContext(ee),Lt;typeof Dt=="boolean"?Lt=Dt?{}:{distance:0}:Lt=Dt||{};var bt=(st=(lt=(ft=Lt)===null||ft===void 0?void 0:ft.distance)!==null&&lt!==void 0?lt:Pt==null?void 0:Pt.pushDistance)!==null&&st!==void 0?st:180,Mt=ge.useMemo(function(){return{pushDistance:bt,push:function(){xr(!0)},pull:function(){xr(!1)}}},[bt]);ge.useEffect(function(){if(St){var zt;Pt==null||(zt=Pt.push)===null||zt===void 0||zt.call(Pt)}else{var Rt;Pt==null||(Rt=Pt.pull)===null||Rt===void 0||Rt.call(Pt)}},[St]),ge.useEffect(function(){return function(){var zt;Pt==null||(zt=Pt.pull)===null||zt===void 0||zt.call(Pt)}},[]);var wt=gr&&ge.createElement(ne.default,(0,x.Z)({key:"mask"},fr,{visible:St}),function(zt,Rt){var _t=zt.className,Ut=zt.style;return ge.createElement("div",{className:a()("".concat(Tt,"-mask"),_t,It==null?void 0:It.mask,yr),style:(0,Te.Z)((0,Te.Z)((0,Te.Z)({},Ut),ir),Ar==null?void 0:Ar.mask),onClick:br&&St?Qt:void 0,ref:Rt})}),Nt=typeof $t=="function"?$t(Ot):$t,pt={};if(Ir&&bt)switch(Ot){case"top":pt.transform="translateY(".concat(bt,"px)");break;case"bottom":pt.transform="translateY(".concat(-bt,"px)");break;case"left":pt.transform="translateX(".concat(bt,"px)");break;default:pt.transform="translateX(".concat(-bt,"px)");break}Ot==="left"||Ot==="right"?pt.width=Pe(Kt):pt.height=Pe(tr);var Bt={onMouseEnter:qt,onMouseOver:Xt,onMouseLeave:ur,onClick:lr,onKeyDown:ar,onKeyUp:Cr},Wt=ge.createElement(ne.default,(0,x.Z)({key:"panel"},Nt,{visible:St,forceRender:Et,onVisibleChanged:function(Rt){Yt==null||Yt(Rt)},removeOnLeave:!1,leavedClassName:"".concat(Tt,"-content-wrapper-hidden")}),function(zt,Rt){var _t=zt.className,Ut=zt.style,dr=ge.createElement(he,(0,x.Z)({id:vt,containerRef:Rt,prefixCls:Tt,className:a()(Vt,It==null?void 0:It.content),style:(0,Te.Z)((0,Te.Z)({},kt),Ar==null?void 0:Ar.content)},(0,ae.Z)(Ze,{aria:!0}),Bt),sr);return ge.createElement("div",(0,x.Z)({className:a()("".concat(Tt,"-content-wrapper"),It==null?void 0:It.wrapper,_t),style:(0,Te.Z)((0,Te.Z)((0,Te.Z)({},pt),Ut),Ar==null?void 0:Ar.wrapper)},(0,ae.Z)(Ze,{data:!0})),Tr?Tr(dr):dr)}),Gt=(0,Te.Z)({},Ct);return Ht&&(Gt.zIndex=Ht),ge.createElement(ee.Provider,{value:Mt},ge.createElement("div",{className:a()(Tt,"".concat(Tt,"-").concat(Ot),ht,(0,le.Z)((0,le.Z)({},"".concat(Tt,"-open"),St),"".concat(Tt,"-inline"),yt)),style:Gt,tabIndex:-1,ref:Nr,onKeyDown:Wr},wt,ge.createElement("div",{tabIndex:0,ref:jr,style:_e,"aria-hidden":"true","data-sentinel":"start"}),Wt,ge.createElement("div",{tabIndex:0,ref:Zr,style:_e,"aria-hidden":"true","data-sentinel":"end"})))}var Ce=ge.forwardRef(De),Ee=Ce,je=function(Je){var st=Je.open,lt=st===void 0?!1:st,ft=Je.prefixCls,Tt=ft===void 0?"rc-drawer":ft,St=Je.placement,Ot=St===void 0?"right":St,yt=Je.autoFocus,Dt=yt===void 0?!0:yt,Et=Je.keyboard,xt=Et===void 0?!0:Et,At=Je.width,It=At===void 0?378:At,ht=Je.mask,Ct=ht===void 0?!0:ht,Ht=Je.maskClosable,Vt=Ht===void 0?!0:Ht,vt=Je.getContainer,kt=Je.forceRender,$t=Je.afterOpenChange,Kt=Je.destroyOnClose,tr=Je.onMouseEnter,sr=Je.onMouseOver,gr=Je.onMouseLeave,br=Je.onClick,fr=Je.onKeyDown,yr=Je.onKeyUp,ir=Je.panelRef,Yt=ge.useState(!1),Qt=(0,xe.Z)(Yt,2),qt=Qt[0],Xt=Qt[1],ur=ge.useState(!1),lr=(0,xe.Z)(ur,2),ar=lr[0],Cr=lr[1];(0,E.Z)(function(){Cr(!0)},[]);var Ar=ar?lt:!1,Tr=ge.useRef(),Nr=ge.useRef();(0,E.Z)(function(){Ar&&(Nr.current=document.activeElement)},[Ar]);var jr=function(Ir){var xr;if(Xt(Ir),$t==null||$t(Ir),!Ir&&Nr.current&&!((xr=Tr.current)!==null&&xr!==void 0&&xr.contains(Nr.current))){var Pt;(Pt=Nr.current)===null||Pt===void 0||Pt.focus({preventScroll:!0})}},Zr=ge.useMemo(function(){return{panel:ir}},[ir]);if(!kt&&!qt&&!Ar&&Kt)return null;var Wr={onMouseEnter:tr,onMouseOver:sr,onMouseLeave:gr,onClick:br,onKeyDown:fr,onKeyUp:yr},er=(0,Te.Z)((0,Te.Z)({},Je),{},{open:Ar,prefixCls:Tt,placement:Ot,autoFocus:Dt,keyboard:xt,width:It,mask:Ct,maskClosable:Vt,inline:vt===!1,afterOpenChange:jr,ref:Tr},Wr);return ge.createElement(ie.Provider,{value:Zr},ge.createElement(z.Z,{open:Ar||kt||qt,autoDestroy:!1,getContainer:vt,autoLock:Ct&&(Ar||qt)},ge.createElement(Ee,er)))},ke=je,Be=ke,Ae=Ie(62487),ve=Ie(75030),Ue=Ie(86641),He=Ie(55743),Ye=Ie(48755),ot=Ie(91190),Fe=Ie(78776),Ke=Ie(458),nt=Ze=>{var Je,st;const{prefixCls:lt,title:ft,footer:Tt,extra:St,loading:Ot,onClose:yt,headerStyle:Dt,bodyStyle:Et,footerStyle:xt,children:At,classNames:It,styles:ht}=Ze,Ct=(0,Ye.dj)("drawer"),Ht=ge.useCallback(Kt=>ge.createElement("button",{type:"button",onClick:yt,"aria-label":"Close",className:`${lt}-close`},Kt),[yt]),[Vt,vt]=(0,Fe.Z)((0,Fe.w)(Ze),(0,Fe.w)(Ct),{closable:!0,closeIconRender:Ht}),kt=ge.useMemo(()=>{var Kt,tr;return!ft&&!Vt?null:ge.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Kt=Ct.styles)===null||Kt===void 0?void 0:Kt.header),Dt),ht==null?void 0:ht.header),className:a()(`${lt}-header`,{[`${lt}-header-close-only`]:Vt&&!ft&&!St},(tr=Ct.classNames)===null||tr===void 0?void 0:tr.header,It==null?void 0:It.header)},ge.createElement("div",{className:`${lt}-header-title`},vt,ft&&ge.createElement("div",{className:`${lt}-title`},ft)),St&&ge.createElement("div",{className:`${lt}-extra`},St))},[Vt,vt,St,Dt,lt,ft]),$t=ge.useMemo(()=>{var Kt,tr;if(!Tt)return null;const sr=`${lt}-footer`;return ge.createElement("div",{className:a()(sr,(Kt=Ct.classNames)===null||Kt===void 0?void 0:Kt.footer,It==null?void 0:It.footer),style:Object.assign(Object.assign(Object.assign({},(tr=Ct.styles)===null||tr===void 0?void 0:tr.footer),xt),ht==null?void 0:ht.footer)},Tt)},[Tt,xt,lt]);return ge.createElement(ge.Fragment,null,kt,ge.createElement("div",{className:a()(`${lt}-body`,It==null?void 0:It.body,(Je=Ct.classNames)===null||Je===void 0?void 0:Je.body),style:Object.assign(Object.assign(Object.assign({},(st=Ct.styles)===null||st===void 0?void 0:st.body),Et),ht==null?void 0:ht.body)},Ot?ge.createElement(Ke.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${lt}-body-skeleton`}):At),$t)},et=Ie(36237),Ge=Ie(63356),Xe=Ie(16931),Ve=Ie(51636);const tt=Ze=>{const Je="100%";return{left:`translateX(-${Je})`,right:`translateX(${Je})`,top:`translateY(-${Je})`,bottom:`translateY(${Je})`}[Ze]},Qe=(Ze,Je)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ze),{"&-active":Je}),"&-leave":Object.assign(Object.assign({},Je),{"&-active":Ze})}),ct=(Ze,Je)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Je}`}}},Qe({opacity:Ze},{opacity:1})),at=(Ze,Je)=>[ct(.7,Je),Qe({transform:tt(Ze)},{transform:"none"})];var Le=Ze=>{const{componentCls:Je,motionDurationSlow:st}=Ze;return{[Je]:{[`${Je}-mask-motion`]:ct(0,st),[`${Je}-panel-motion`]:["left","right","top","bottom"].reduce((lt,ft)=>Object.assign(Object.assign({},lt),{[`&-${ft}`]:at(ft,st)}),{})}}};const Ne=Ze=>{const{borderRadiusSM:Je,componentCls:st,zIndexPopup:lt,colorBgMask:ft,colorBgElevated:Tt,motionDurationSlow:St,motionDurationMid:Ot,paddingXS:yt,padding:Dt,paddingLG:Et,fontSizeLG:xt,lineHeightLG:At,lineWidth:It,lineType:ht,colorSplit:Ct,marginXS:Ht,colorIcon:Vt,colorIconHover:vt,colorBgTextHover:kt,colorBgTextActive:$t,colorText:Kt,fontWeightStrong:tr,footerPaddingBlock:sr,footerPaddingInline:gr,calc:br}=Ze,fr=`${st}-content-wrapper`;return{[st]:{position:"fixed",inset:0,zIndex:lt,pointerEvents:"none",color:Kt,"&-pure":{position:"relative",background:Tt,display:"flex",flexDirection:"column",[`&${st}-left`]:{boxShadow:Ze.boxShadowDrawerLeft},[`&${st}-right`]:{boxShadow:Ze.boxShadowDrawerRight},[`&${st}-top`]:{boxShadow:Ze.boxShadowDrawerUp},[`&${st}-bottom`]:{boxShadow:Ze.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${st}-mask`]:{position:"absolute",inset:0,zIndex:lt,background:ft,pointerEvents:"auto"},[fr]:{position:"absolute",zIndex:lt,maxWidth:"100vw",transition:`all ${St}`,"&-hidden":{display:"none"}},[`&-left > ${fr}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ze.boxShadowDrawerLeft},[`&-right > ${fr}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ze.boxShadowDrawerRight},[`&-top > ${fr}`]:{top:0,insetInline:0,boxShadow:Ze.boxShadowDrawerUp},[`&-bottom > ${fr}`]:{bottom:0,insetInline:0,boxShadow:Ze.boxShadowDrawerDown},[`${st}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Tt,pointerEvents:"auto"},[`${st}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,et.unit)(Dt)} ${(0,et.unit)(Et)}`,fontSize:xt,lineHeight:At,borderBottom:`${(0,et.unit)(It)} ${ht} ${Ct}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${st}-extra`]:{flex:"none"},[`${st}-close`]:Object.assign({display:"inline-flex",width:br(xt).add(yt).equal(),height:br(xt).add(yt).equal(),borderRadius:Je,justifyContent:"center",alignItems:"center",marginInlineEnd:Ht,color:Vt,fontWeight:tr,fontSize:xt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ot}`,textRendering:"auto","&:hover":{color:vt,backgroundColor:kt,textDecoration:"none"},"&:active":{backgroundColor:$t}},(0,Ge.Qy)(Ze)),[`${st}-title`]:{flex:1,margin:0,fontWeight:Ze.fontWeightStrong,fontSize:xt,lineHeight:At},[`${st}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Et,overflow:"auto",[`${st}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${st}-footer`]:{flexShrink:0,padding:`${(0,et.unit)(sr)} ${(0,et.unit)(gr)}`,borderTop:`${(0,et.unit)(It)} ${ht} ${Ct}`},"&-rtl":{direction:"rtl"}}}},te=Ze=>({zIndexPopup:Ze.zIndexPopupBase,footerPaddingBlock:Ze.paddingXS,footerPaddingInline:Ze.padding});var de=(0,Xe.I$)("Drawer",Ze=>{const Je=(0,Ve.mergeToken)(Ze,{});return[Ne(Je),Le(Je)]},te),Re=function(Ze,Je){var st={};for(var lt in Ze)Object.prototype.hasOwnProperty.call(Ze,lt)&&Je.indexOf(lt)<0&&(st[lt]=Ze[lt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,lt=Object.getOwnPropertySymbols(Ze);ft<lt.length;ft++)Je.indexOf(lt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ze,lt[ft])&&(st[lt[ft]]=Ze[lt[ft]]);return st};const We=null,we={distance:180},ye=Ze=>{var Je;const{rootClassName:st,width:lt,height:ft,size:Tt="default",mask:St=!0,push:Ot=we,open:yt,afterOpenChange:Dt,onClose:Et,prefixCls:xt,getContainer:At,style:It,className:ht,visible:Ct,afterVisibleChange:Ht,maskStyle:Vt,drawerStyle:vt,contentWrapperStyle:kt}=Ze,$t=Re(Ze,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Kt,getPrefixCls:tr,direction:sr,className:gr,style:br,classNames:fr,styles:yr}=(0,Ye.dj)("drawer"),ir=tr("drawer",xt),[Yt,Qt,qt]=de(ir),Xt=At===void 0&&Kt?()=>Kt(document.body):At,ur=a()({"no-mask":!St,[`${ir}-rtl`]:sr==="rtl"},st,Qt,qt),lr=ge.useMemo(()=>lt!=null?lt:Tt==="large"?736:378,[lt,Tt]),ar=ge.useMemo(()=>ft!=null?ft:Tt==="large"?736:378,[ft,Tt]),Cr={motionName:(0,Ue.m)(ir,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Ar=er=>({motionName:(0,Ue.m)(ir,`panel-motion-${er}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Tr=(0,ot.H)(),[Nr,jr]=(0,ve.Cn)("Drawer",$t.zIndex),{classNames:Zr={},styles:Wr={}}=$t;return Yt(ge.createElement(Ae.Z,{form:!0,space:!0},ge.createElement(He.Z.Provider,{value:jr},ge.createElement(Be,Object.assign({prefixCls:ir,onClose:Et,maskMotion:Cr,motion:Ar},$t,{classNames:{mask:a()(Zr.mask,fr.mask),content:a()(Zr.content,fr.content),wrapper:a()(Zr.wrapper,fr.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Wr.mask),Vt),yr.mask),content:Object.assign(Object.assign(Object.assign({},Wr.content),vt),yr.content),wrapper:Object.assign(Object.assign(Object.assign({},Wr.wrapper),kt),yr.wrapper)},open:yt!=null?yt:Ct,mask:St,push:Ot,width:lr,height:ar,style:Object.assign(Object.assign({},br),It),className:a()(gr,ht),rootClassName:ur,getContainer:Xt,afterOpenChange:Dt!=null?Dt:Ht,panelRef:Tr,zIndex:Nr}),ge.createElement(nt,Object.assign({prefixCls:ir},$t,{onClose:Et}))))))},Oe=Ze=>{const{prefixCls:Je,style:st,className:lt,placement:ft="right"}=Ze,Tt=Re(Ze,["prefixCls","style","className","placement"]),{getPrefixCls:St}=ge.useContext(Ye.E_),Ot=St("drawer",Je),[yt,Dt,Et]=de(Ot),xt=a()(Ot,`${Ot}-pure`,`${Ot}-${ft}`,Dt,Et,lt);return yt(ge.createElement("div",{className:xt,style:st},ge.createElement(nt,Object.assign({prefixCls:Ot},Tt))))};ye._InternalPanelDoNotUseOrYouWillBeFired=Oe;var $e=ye},19563:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return et}});var ge=Ie(59301),gt=Ie(33853),a=Ie(38819),Te=Ie(92310),xe=Ie.n(Te),z=Ie(96478),E=Ie(6089),oe=Ie(18929),ie=Ie(2738),ee=Ie(75030),x=Ge=>typeof Ge!="object"&&typeof Ge!="function"||Ge===null,ne=Ie(52838),re=Ie(45915),ae=Ie(22703),se=Ie(32383),ce=Ie(55743),pe=Ie(48755),me=Ie(83397),he=Ie(93041),be=Ie(78857),Pe=Ie(57700),Me=Ie(36237),_e=Ie(63356),De=Ie(46e3),Ce=Ie(93873),Ee=Ie(34925),je=Ie(37645),ke=Ie(36305),Be=Ie(16931),Ae=Ie(51636),Ue=Ge=>{const{componentCls:Xe,menuCls:Ve,colorError:tt,colorTextLightSolid:Qe}=Ge,ct=`${Ve}-item`;return{[`${Xe}, ${Xe}-menu-submenu`]:{[`${Ve} ${ct}`]:{[`&${ct}-danger:not(${ct}-disabled)`]:{color:tt,"&:hover":{color:Qe,backgroundColor:tt}}}}}};const He=Ge=>{const{componentCls:Xe,menuCls:Ve,zIndexPopup:tt,dropdownArrowDistance:Qe,sizePopupArrow:ct,antCls:at,iconCls:qe,motionDurationMid:Le,paddingBlock:Ne,fontSize:te,dropdownEdgeChildPadding:de,colorTextDisabled:Re,fontSizeIcon:We,controlPaddingHorizontal:we,colorBgElevated:ye}=Ge;return[{[Xe]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:tt,display:"block","&::before":{position:"absolute",insetBlock:Ge.calc(ct).div(2).sub(Qe).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${at}-btn`]:{[`& > ${qe}-down, & > ${at}-btn-icon > ${qe}-down`]:{fontSize:We}},[`${Xe}-wrap`]:{position:"relative",[`${at}-btn > ${qe}-down`]:{fontSize:We},[`${qe}-down::before`]:{transition:`transform ${Le}`}},[`${Xe}-wrap-open`]:{[`${qe}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${at}-slide-down-enter${at}-slide-down-enter-active${Xe}-placement-bottomLeft,
&${at}-slide-down-appear${at}-slide-down-appear-active${Xe}-placement-bottomLeft,
&${at}-slide-down-enter${at}-slide-down-enter-active${Xe}-placement-bottom,
&${at}-slide-down-appear${at}-slide-down-appear-active${Xe}-placement-bottom,
&${at}-slide-down-enter${at}-slide-down-enter-active${Xe}-placement-bottomRight,
&${at}-slide-down-appear${at}-slide-down-appear-active${Xe}-placement-bottomRight`]:{animationName:De.fJ},[`&${at}-slide-up-enter${at}-slide-up-enter-active${Xe}-placement-topLeft,
&${at}-slide-up-appear${at}-slide-up-appear-active${Xe}-placement-topLeft,
&${at}-slide-up-enter${at}-slide-up-enter-active${Xe}-placement-top,
&${at}-slide-up-appear${at}-slide-up-appear-active${Xe}-placement-top,
&${at}-slide-up-enter${at}-slide-up-enter-active${Xe}-placement-topRight,
&${at}-slide-up-appear${at}-slide-up-appear-active${Xe}-placement-topRight`]:{animationName:De.Qt},[`&${at}-slide-down-leave${at}-slide-down-leave-active${Xe}-placement-bottomLeft,
&${at}-slide-down-leave${at}-slide-down-leave-active${Xe}-placement-bottom,
&${at}-slide-down-leave${at}-slide-down-leave-active${Xe}-placement-bottomRight`]:{animationName:De.Uw},[`&${at}-slide-up-leave${at}-slide-up-leave-active${Xe}-placement-topLeft,
&${at}-slide-up-leave${at}-slide-up-leave-active${Xe}-placement-top,
&${at}-slide-up-leave${at}-slide-up-leave-active${Xe}-placement-topRight`]:{animationName:De.ly}}},(0,je.ZP)(Ge,ye,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Xe} ${Ve}`]:{position:"relative",margin:0},[`${Ve}-submenu-popup`]:{position:"absolute",zIndex:tt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Xe}, ${Xe}-menu-submenu`]:Object.assign(Object.assign({},(0,_e.Wf)(Ge)),{[Ve]:Object.assign(Object.assign({padding:de,listStyleType:"none",backgroundColor:ye,backgroundClip:"padding-box",borderRadius:Ge.borderRadiusLG,outline:"none",boxShadow:Ge.boxShadowSecondary},(0,_e.Qy)(Ge)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ve}-item-group-title`]:{padding:`${(0,Me.unit)(Ne)} ${(0,Me.unit)(we)}`,color:Ge.colorTextDescription,transition:`all ${Le}`},[`${Ve}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ve}-item-icon`]:{minWidth:te,marginInlineEnd:Ge.marginXS,fontSize:Ge.fontSizeSM},[`${Ve}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Le}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Ve}-item-extra`]:{paddingInlineStart:Ge.padding,marginInlineStart:"auto",fontSize:Ge.fontSizeSM,color:Ge.colorTextDescription}},[`${Ve}-item, ${Ve}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Me.unit)(Ne)} ${(0,Me.unit)(we)}`,color:Ge.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ge.lineHeight,cursor:"pointer",transition:`all ${Le}`,borderRadius:Ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ge.controlItemBgHover}},(0,_e.Qy)(Ge)),{"&-selected":{color:Ge.colorPrimary,backgroundColor:Ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ge.controlItemBgActiveHover}},"&-disabled":{color:Re,cursor:"not-allowed","&:hover":{color:Re,backgroundColor:ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Me.unit)(Ge.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ge.colorSplit},[`${Xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingXS,[`${Xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ge.colorTextDescription,fontSize:We,fontStyle:"normal"}}}),[`${Ve}-item-group-list`]:{margin:`0 ${(0,Me.unit)(Ge.marginXS)}`,padding:0,listStyle:"none"},[`${Ve}-submenu-title`]:{paddingInlineEnd:Ge.calc(we).add(Ge.fontSizeSM).equal()},[`${Ve}-submenu-vertical`]:{position:"relative"},[`${Ve}-submenu${Ve}-submenu-disabled ${Xe}-menu-submenu-title`]:{[`&, ${Xe}-menu-submenu-arrow-icon`]:{color:Re,backgroundColor:ye,cursor:"not-allowed"}},[`${Ve}-submenu-selected ${Xe}-menu-submenu-title`]:{color:Ge.colorPrimary}})})},[(0,De.oN)(Ge,"slide-up"),(0,De.oN)(Ge,"slide-down"),(0,Ce.Fm)(Ge,"move-up"),(0,Ce.Fm)(Ge,"move-down"),(0,Ee._y)(Ge,"zoom-big")]]},Ye=Ge=>Object.assign(Object.assign({zIndexPopup:Ge.zIndexPopupBase+50,paddingBlock:(Ge.controlHeight-Ge.fontSize*Ge.lineHeight)/2},(0,je.wZ)({contentRadius:Ge.borderRadiusLG,limitVerticalRadius:!0})),(0,ke.w)(Ge));var ot=(0,Be.I$)("Dropdown",Ge=>{const{marginXXS:Xe,sizePopupArrow:Ve,paddingXXS:tt,componentCls:Qe}=Ge,ct=(0,Ae.mergeToken)(Ge,{menuCls:`${Qe}-menu`,dropdownArrowDistance:Ge.calc(Ve).div(2).add(Xe).equal(),dropdownEdgeChildPadding:tt});return[He(ct),Ue(ct)]},Ye,{resetStyle:!1});const Fe=null,Ke=Ge=>{var Xe;const{menu:Ve,arrow:tt,prefixCls:Qe,children:ct,trigger:at,disabled:qe,dropdownRender:Le,getPopupContainer:Ne,overlayClassName:te,rootClassName:de,overlayStyle:Re,open:We,onOpenChange:we,visible:ye,onVisibleChange:Oe,mouseEnterDelay:$e=.15,mouseLeaveDelay:Ze=.1,autoAdjustOverflow:Je=!0,placement:st="",overlay:lt,transitionName:ft}=Ge,{getPopupContainer:Tt,getPrefixCls:St,direction:Ot,dropdown:yt}=ge.useContext(pe.E_),Dt=(0,se.ln)("Dropdown"),Et=ge.useMemo(()=>{const Xt=St();return ft!==void 0?ft:st.includes("top")?`${Xt}-slide-down`:`${Xt}-slide-up`},[St,st,ft]),xt=ge.useMemo(()=>st?st.includes("Center")?st.slice(0,st.indexOf("Center")):st:Ot==="rtl"?"bottomRight":"bottomLeft",[st,Ot]),At=St("dropdown",Qe),It=(0,me.Z)(At),[ht,Ct,Ht]=ot(At,It),[,Vt]=(0,Pe.ZP)(),vt=ge.Children.only(x(ct)?ge.createElement("span",null,ct):ct),kt=(0,ae.Tm)(vt,{className:xe()(`${At}-trigger`,{[`${At}-rtl`]:Ot==="rtl"},vt.props.className),disabled:(Xe=vt.props.disabled)!==null&&Xe!==void 0?Xe:qe}),$t=qe?[]:at,Kt=!!($t!=null&&$t.includes("contextMenu")),[tr,sr]=(0,oe.Z)(!1,{value:We!=null?We:ye}),gr=(0,E.Z)(Xt=>{we==null||we(Xt,{source:"trigger"}),Oe==null||Oe(Xt),sr(Xt)}),br=xe()(te,de,Ct,Ht,It,yt==null?void 0:yt.className,{[`${At}-rtl`]:Ot==="rtl"}),fr=(0,ne.Z)({arrowPointAtCenter:typeof tt=="object"&&tt.pointAtCenter,autoAdjustOverflow:Je,offset:Vt.marginXXS,arrowWidth:tt?Vt.sizePopupArrow:0,borderRadius:Vt.borderRadius}),yr=ge.useCallback(()=>{Ve!=null&&Ve.selectable&&(Ve!=null&&Ve.multiple)||(we==null||we(!1,{source:"menu"}),sr(!1))},[Ve==null?void 0:Ve.selectable,Ve==null?void 0:Ve.multiple]),ir=()=>{let Xt;return Ve!=null&&Ve.items?Xt=ge.createElement(he.default,Object.assign({},Ve)):typeof lt=="function"?Xt=lt():Xt=lt,Le&&(Xt=Le(Xt)),Xt=ge.Children.only(typeof Xt=="string"?ge.createElement("span",null,Xt):Xt),ge.createElement(be.J,{prefixCls:`${At}-menu`,rootClassName:xe()(Ht,It),expandIcon:ge.createElement("span",{className:`${At}-menu-submenu-arrow`},Ot==="rtl"?ge.createElement(gt.Z,{className:`${At}-menu-submenu-arrow-icon`}):ge.createElement(a.Z,{className:`${At}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:yr,validator:ur=>{let{mode:lr}=ur}},Xt)},[Yt,Qt]=(0,ee.Cn)("Dropdown",Re==null?void 0:Re.zIndex);let qt=ge.createElement(z.Z,Object.assign({alignPoint:Kt},(0,ie.Z)(Ge,["rootClassName"]),{mouseEnterDelay:$e,mouseLeaveDelay:Ze,visible:tr,builtinPlacements:fr,arrow:!!tt,overlayClassName:br,prefixCls:At,getPopupContainer:Ne||Tt,transitionName:Et,trigger:$t,overlay:ir,placement:xt,onVisibleChange:gr,overlayStyle:Object.assign(Object.assign(Object.assign({},yt==null?void 0:yt.style),Re),{zIndex:Yt})}),kt);return Yt&&(qt=ge.createElement(ce.Z.Provider,{value:Qt},qt)),ht(qt)},rt=(0,re.Z)(Ke,"align",void 0,"dropdown",Ge=>Ge),nt=Ge=>ge.createElement(rt,Object.assign({},Ge),ge.createElement("span",null));Ke._InternalPanelDoNotUseOrYouWillBeFired=nt;var et=Ke},75727:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return re}});var ge=Ie(19563),gt=Ie(59301),a=Ie(18785),Te=Ie(92310),xe=Ie.n(Te),z=Ie(7939),E=Ie(48755),oe=Ie(44104),ie=Ie(70045),ee=function(ae,se){var ce={};for(var pe in ae)Object.prototype.hasOwnProperty.call(ae,pe)&&se.indexOf(pe)<0&&(ce[pe]=ae[pe]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,pe=Object.getOwnPropertySymbols(ae);me<pe.length;me++)se.indexOf(pe[me])<0&&Object.prototype.propertyIsEnumerable.call(ae,pe[me])&&(ce[pe[me]]=ae[pe[me]]);return ce};const le=ae=>{const{getPopupContainer:se,getPrefixCls:ce,direction:pe}=gt.useContext(E.E_),{prefixCls:me,type:he="default",danger:be,disabled:Pe,loading:Me,onClick:_e,htmlType:De,children:Ce,className:Ee,menu:je,arrow:ke,autoFocus:Be,overlay:Ae,trigger:ve,align:Ue,open:He,onOpenChange:Ye,placement:ot,getPopupContainer:Fe,href:Ke,icon:rt=gt.createElement(a.Z,null),title:nt,buttonsRender:et=$e=>$e,mouseEnterDelay:Ge,mouseLeaveDelay:Xe,overlayClassName:Ve,overlayStyle:tt,destroyPopupOnHide:Qe,dropdownRender:ct}=ae,at=ee(ae,["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"]),qe=ce("dropdown",me),Le=`${qe}-button`,Ne={menu:je,arrow:ke,autoFocus:Be,align:Ue,disabled:Pe,trigger:Pe?[]:ve,onOpenChange:Ye,getPopupContainer:Fe||se,mouseEnterDelay:Ge,mouseLeaveDelay:Xe,overlayClassName:Ve,overlayStyle:tt,destroyPopupOnHide:Qe,dropdownRender:ct},{compactSize:te,compactItemClassnames:de}=(0,ie.ri)(qe,pe),Re=xe()(Le,de,Ee);"overlay"in ae&&(Ne.overlay=Ae),"open"in ae&&(Ne.open=He),"placement"in ae?Ne.placement=ot:Ne.placement=pe==="rtl"?"bottomLeft":"bottomRight";const We=gt.createElement(z.ZP,{type:he,danger:be,disabled:Pe,loading:Me,onClick:_e,htmlType:De,href:Ke,title:nt},Ce),we=gt.createElement(z.ZP,{type:he,danger:be,icon:rt}),[ye,Oe]=et([We,we]);return gt.createElement(oe.Z.Compact,Object.assign({className:Re,size:te,block:!0},at),ye,gt.createElement(ge.Z,Object.assign({},Ne),Oe))};le.__ANT_BUTTON=!0;var x=le;const ne=ge.Z;ne.Button=x;var re=ne},584:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return he}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(9017),xe=Ie(17835),z=Ie(57700),oe=()=>{const[,be]=(0,z.ZP)(),[Pe]=(0,Te.Z)("Empty"),_e=new xe.FastColor(be.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ge.createElement("svg",{style:_e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ge.createElement("title",null,(Pe==null?void 0:Pe.description)||"Empty"),ge.createElement("g",{fill:"none",fillRule:"evenodd"},ge.createElement("g",{transform:"translate(24 31.67)"},ge.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ge.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"}),ge.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)"}),ge.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"}),ge.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"})),ge.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"}),ge.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ge.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ge.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ee=()=>{const[,be]=(0,z.ZP)(),[Pe]=(0,Te.Z)("Empty"),{colorFill:Me,colorFillTertiary:_e,colorFillQuaternary:De,colorBgContainer:Ce}=be,{borderColor:Ee,shadowColor:je,contentColor:ke}=(0,ge.useMemo)(()=>({borderColor:new xe.FastColor(Me).onBackground(Ce).toHexString(),shadowColor:new xe.FastColor(_e).onBackground(Ce).toHexString(),contentColor:new xe.FastColor(De).onBackground(Ce).toHexString()}),[Me,_e,De,Ce]);return ge.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ge.createElement("title",null,(Pe==null?void 0:Pe.description)||"Empty"),ge.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ge.createElement("ellipse",{fill:je,cx:"32",cy:"33",rx:"32",ry:"7"}),ge.createElement("g",{fillRule:"nonzero",stroke:Ee},ge.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"}),ge.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:ke}))))},le=Ie(16931),x=Ie(51636);const ne=be=>{const{componentCls:Pe,margin:Me,marginXS:_e,marginXL:De,fontSize:Ce,lineHeight:Ee}=be;return{[Pe]:{marginInline:_e,fontSize:Ce,lineHeight:Ee,textAlign:"center",[`${Pe}-image`]:{height:be.emptyImgHeight,marginBottom:_e,opacity:be.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Pe}-description`]:{color:be.colorTextDescription},[`${Pe}-footer`]:{marginTop:Me},"&-normal":{marginBlock:De,color:be.colorTextDescription,[`${Pe}-description`]:{color:be.colorTextDescription},[`${Pe}-image`]:{height:be.emptyImgHeightMD}},"&-small":{marginBlock:_e,color:be.colorTextDescription,[`${Pe}-image`]:{height:be.emptyImgHeightSM}}}}};var re=(0,le.I$)("Empty",be=>{const{componentCls:Pe,controlHeightLG:Me,calc:_e}=be,De=(0,x.mergeToken)(be,{emptyImgCls:`${Pe}-img`,emptyImgHeight:_e(Me).mul(2.5).equal(),emptyImgHeightMD:Me,emptyImgHeightSM:_e(Me).mul(.875).equal()});return[ne(De)]}),ae=Ie(48755),se=function(be,Pe){var Me={};for(var _e in be)Object.prototype.hasOwnProperty.call(be,_e)&&Pe.indexOf(_e)<0&&(Me[_e]=be[_e]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,_e=Object.getOwnPropertySymbols(be);De<_e.length;De++)Pe.indexOf(_e[De])<0&&Object.prototype.propertyIsEnumerable.call(be,_e[De])&&(Me[_e[De]]=be[_e[De]]);return Me};const ce=ge.createElement(oe,null),pe=ge.createElement(ee,null),me=be=>{const{className:Pe,rootClassName:Me,prefixCls:_e,image:De=ce,description:Ce,children:Ee,imageStyle:je,style:ke,classNames:Be,styles:Ae}=be,ve=se(be,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ue,direction:He,className:Ye,style:ot,classNames:Fe,styles:Ke}=(0,ae.dj)("empty"),rt=Ue("empty",_e),[nt,et,Ge]=re(rt),[Xe]=(0,Te.Z)("Empty"),Ve=typeof Ce!="undefined"?Ce:Xe==null?void 0:Xe.description,tt=typeof Ve=="string"?Ve:"empty";let Qe=null;return typeof De=="string"?Qe=ge.createElement("img",{alt:tt,src:De}):Qe=De,nt(ge.createElement("div",Object.assign({className:a()(et,Ge,rt,Ye,{[`${rt}-normal`]:De===pe,[`${rt}-rtl`]:He==="rtl"},Pe,Me,Fe.root,Be==null?void 0:Be.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},Ke.root),ot),Ae==null?void 0:Ae.root),ke)},ve),ge.createElement("div",{className:a()(`${rt}-image`,Fe.image,Be==null?void 0:Be.image),style:Object.assign(Object.assign(Object.assign({},je),Ke.image),Ae==null?void 0:Ae.image)},Qe),Ve&&ge.createElement("div",{className:a()(`${rt}-description`,Fe.description,Be==null?void 0:Be.description),style:Object.assign(Object.assign({},Ke.description),Ae==null?void 0:Ae.description)},Ve),Ee&&ge.createElement("div",{className:a()(`${rt}-footer`,Fe.footer,Be==null?void 0:Be.footer),style:Object.assign(Object.assign({},Ke.footer),Ae==null?void 0:Ae.footer)},Ee)))};me.PRESENTED_IMAGE_DEFAULT=ce,me.PRESENTED_IMAGE_SIMPLE=pe;var he=me},28284:function(Jt,jt,Ie){"use strict";Ie.d(jt,{default:function(){return Lt}});var ge=Ie(56553),gt=Ie(77654),a=Ie(59301),Te=Ie(92310),xe=Ie.n(Te),z=Ie(77900),E=Ie(86641),oe=Ie(83397);function ie(bt){const[Mt,wt]=a.useState(bt);return a.useEffect(()=>{const Nt=setTimeout(()=>{wt(bt)},bt.length?0:10);return()=>{clearTimeout(Nt)}},[bt]),Mt}var ee=Ie(36237),le=Ie(63356),x=Ie(34925),ne=Ie(34961),re=Ie(51636),ae=Ie(16931),ce=bt=>{const{componentCls:Mt}=bt,wt=`${Mt}-show-help`,Nt=`${Mt}-show-help-item`;return{[wt]:{transition:`opacity ${bt.motionDurationFast} ${bt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Nt]:{overflow:"hidden",transition:`height ${bt.motionDurationFast} ${bt.motionEaseInOut},
opacity ${bt.motionDurationFast} ${bt.motionEaseInOut},
transform ${bt.motionDurationFast} ${bt.motionEaseInOut} !important`,[`&${Nt}-appear, &${Nt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Nt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const pe=bt=>({legend:{display:"block",width:"100%",marginBottom:bt.marginLG,padding:0,color:bt.colorTextDescription,fontSize:bt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ee.unit)(bt.lineWidth)} ${bt.lineType} ${bt.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,ee.unit)(bt.controlOutlineWidth)} ${bt.controlOutline}`},output:{display:"block",paddingTop:15,color:bt.colorText,fontSize:bt.fontSize,lineHeight:bt.lineHeight}}),me=(bt,Mt)=>{const{formItemCls:wt}=bt;return{[wt]:{[`${wt}-label > label`]:{height:Mt},[`${wt}-control-input`]:{minHeight:Mt}}}},he=bt=>{const{componentCls:Mt}=bt;return{[bt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,le.Wf)(bt)),pe(bt)),{[`${Mt}-text`]:{display:"inline-block",paddingInlineEnd:bt.paddingSM},"&-small":Object.assign({},me(bt,bt.controlHeightSM)),"&-large":Object.assign({},me(bt,bt.controlHeightLG))})}},be=bt=>{const{formItemCls:Mt,iconCls:wt,rootPrefixCls:Nt,antCls:pt,labelRequiredMarkColor:Bt,labelColor:Wt,labelFontSize:Gt,labelHeight:zt,labelColonMarginInlineStart:Rt,labelColonMarginInlineEnd:_t,itemMarginBottom:Ut}=bt;return{[Mt]:Object.assign(Object.assign({},(0,le.Wf)(bt)),{marginBottom:Ut,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${pt}-row`]:{display:"none"},"&-has-warning":{[`${Mt}-split`]:{color:bt.colorError}},"&-has-error":{[`${Mt}-split`]:{color:bt.colorWarning}},[`${Mt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:bt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:zt,color:Wt,fontSize:Gt,[`> ${wt}`]:{fontSize:bt.fontSize,verticalAlign:"top"},[`&${Mt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:bt.marginXXS,color:Bt,fontSize:bt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Mt}-required-mark-hidden, &${Mt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Mt}-optional`]:{display:"inline-block",marginInlineStart:bt.marginXXS,color:bt.colorTextDescription,[`&${Mt}-required-mark-hidden`]:{display:"none"}},[`${Mt}-tooltip`]:{color:bt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:bt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Rt,marginInlineEnd:_t},[`&${Mt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Mt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Nt}-col-'"]):not([class*="' ${Nt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:bt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Mt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:bt.colorTextDescription,fontSize:bt.fontSize,lineHeight:bt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:bt.controlHeightSM,transition:`color ${bt.motionDurationMid} ${bt.motionEaseOut}`},"&-explain":{"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning}}},[`&-with-help ${Mt}-explain`]:{height:"auto",opacity:1},[`${Mt}-feedback-icon`]:{fontSize:bt.fontSize,textAlign:"center",visibility:"visible",animationName:x.kr,animationDuration:bt.motionDurationMid,animationTimingFunction:bt.motionEaseOutBack,pointerEvents:"none","&-success":{color:bt.colorSuccess},"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning},"&-validating":{color:bt.colorPrimary}}})}},Pe=(bt,Mt)=>{const{formItemCls:wt}=bt;return{[`${Mt}-horizontal`]:{[`${wt}-label`]:{flexGrow:0},[`${wt}-control`]:{flex:"1 1 0",minWidth:0},[`${wt}-label[class$='-24'], ${wt}-label[class*='-24 ']`]:{[`& + ${wt}-control`]:{minWidth:"unset"}}}}},Me=bt=>{const{componentCls:Mt,formItemCls:wt,inlineItemMarginBottom:Nt}=bt;return{[`${Mt}-inline`]:{display:"flex",flexWrap:"wrap",[wt]:{flex:"none",marginInlineEnd:bt.margin,marginBottom:Nt,"&-row":{flexWrap:"nowrap"},[`> ${wt}-label,
> ${wt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${wt}-label`]:{flex:"none"},[`${Mt}-text`]:{display:"inline-block"},[`${wt}-has-feedback`]:{display:"inline-block"}}}}},_e=bt=>({padding:bt.verticalLabelPadding,margin:bt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),De=bt=>{const{componentCls:Mt,formItemCls:wt,rootPrefixCls:Nt}=bt;return{[`${wt} ${wt}-label`]:_e(bt),[`${Mt}:not(${Mt}-inline)`]:{[wt]:{flexWrap:"wrap",[`${wt}-label, ${wt}-control`]:{[`&:not([class*=" ${Nt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ce=bt=>{const{componentCls:Mt,formItemCls:wt,antCls:Nt}=bt;return{[`${Mt}-vertical`]:{[`${wt}:not(${wt}-horizontal)`]:{[`${wt}-row`]:{flexDirection:"column"},[`${wt}-label > label`]:{height:"auto"},[`${wt}-control`]:{width:"100%"},[`${wt}-label,
${Nt}-col-24${wt}-label,
${Nt}-col-xl-24${wt}-label`]:_e(bt)}},[`@media (max-width: ${(0,ee.unit)(bt.screenXSMax)})`]:[De(bt),{[Mt]:{[`${wt}:not(${wt}-horizontal)`]:{[`${Nt}-col-xs-24${wt}-label`]:_e(bt)}}}],[`@media (max-width: ${(0,ee.unit)(bt.screenSMMax)})`]:{[Mt]:{[`${wt}:not(${wt}-horizontal)`]:{[`${Nt}-col-sm-24${wt}-label`]:_e(bt)}}},[`@media (max-width: ${(0,ee.unit)(bt.screenMDMax)})`]:{[Mt]:{[`${wt}:not(${wt}-horizontal)`]:{[`${Nt}-col-md-24${wt}-label`]:_e(bt)}}},[`@media (max-width: ${(0,ee.unit)(bt.screenLGMax)})`]:{[Mt]:{[`${wt}:not(${wt}-horizontal)`]:{[`${Nt}-col-lg-24${wt}-label`]:_e(bt)}}}}},Ee=bt=>{const{formItemCls:Mt,antCls:wt}=bt;return{[`${Mt}-vertical`]:{[`${Mt}-row`]:{flexDirection:"column"},[`${Mt}-label > label`]:{height:"auto"},[`${Mt}-control`]:{width:"100%"}},[`${Mt}-vertical ${Mt}-label,
${wt}-col-24${Mt}-label,
${wt}-col-xl-24${Mt}-label`]:_e(bt),[`@media (max-width: ${(0,ee.unit)(bt.screenXSMax)})`]:[De(bt),{[Mt]:{[`${wt}-col-xs-24${Mt}-label`]:_e(bt)}}],[`@media (max-width: ${(0,ee.unit)(bt.screenSMMax)})`]:{[Mt]:{[`${wt}-col-sm-24${Mt}-label`]:_e(bt)}},[`@media (max-width: ${(0,ee.unit)(bt.screenMDMax)})`]:{[Mt]:{[`${wt}-col-md-24${Mt}-label`]:_e(bt)}},[`@media (max-width: ${(0,ee.unit)(bt.screenLGMax)})`]:{[Mt]:{[`${wt}-col-lg-24${Mt}-label`]:_e(bt)}}}},je=bt=>({labelRequiredMarkColor:bt.colorError,labelColor:bt.colorTextHeading,labelFontSize:bt.fontSize,labelHeight:bt.controlHeight,labelColonMarginInlineStart:bt.marginXXS/2,labelColonMarginInlineEnd:bt.marginXS,itemMarginBottom:bt.marginLG,verticalLabelPadding:`0 0 ${bt.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),ke=(bt,Mt)=>(0,re.mergeToken)(bt,{formItemCls:`${bt.componentCls}-item`,rootPrefixCls:Mt});var Be=(0,ae.I$)("Form",(bt,Mt)=>{let{rootPrefixCls:wt}=Mt;const Nt=ke(bt,wt);return[he(Nt),be(Nt),ce(Nt),Pe(Nt,Nt.componentCls),Pe(Nt,Nt.formItemCls),Me(Nt),Ce(Nt),Ee(Nt),(0,ne.Z)(Nt),x.kr]},je,{order:-1e3});const Ae=[];function ve(bt,Mt,wt){let Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof bt=="string"?bt:`${Mt}-${Nt}`,error:bt,errorStatus:wt}}var He=bt=>{let{help:Mt,helpStatus:wt,errors:Nt=Ae,warnings:pt=Ae,className:Bt,fieldId:Wt,onVisibleChanged:Gt}=bt;const{prefixCls:zt}=a.useContext(ge.Rk),Rt=`${zt}-item-explain`,_t=(0,oe.Z)(zt),[Ut,dr,cr]=Be(zt,_t),hr=a.useMemo(()=>(0,E.Z)(zt),[zt]),Br=ie(Nt),Fr=ie(pt),Hr=a.useMemo(()=>Mt!=null?[ve(Mt,"help",wt)]:[].concat((0,gt.Z)(Br.map((Rr,Ur)=>ve(Rr,"error","error",Ur))),(0,gt.Z)(Fr.map((Rr,Ur)=>ve(Rr,"warning","warning",Ur)))),[Mt,wt,Br,Fr]),_r=a.useMemo(()=>{const Rr={};return Hr.forEach(Ur=>{let{key:Qr}=Ur;Rr[Qr]=(Rr[Qr]||0)+1}),Hr.map((Ur,Qr)=>Object.assign(Object.assign({},Ur),{key:Rr[Ur.key]>1?`${Ur.key}-fallback-${Qr}`:Ur.key}))},[Hr]),Pr={};return Wt&&(Pr.id=`${Wt}_help`),Ut(a.createElement(z.default,{motionDeadline:hr.motionDeadline,motionName:`${zt}-show-help`,visible:!!_r.length,onVisibleChanged:Gt},Rr=>{const{className:Ur,style:Qr}=Rr;return a.createElement("div",Object.assign({},Pr,{className:xe()(Rt,Ur,cr,_t,Bt,dr),style:Qr}),a.createElement(z.CSSMotionList,Object.assign({keys:_r},(0,E.Z)(zt),{motionName:`${zt}-show-help-item`,component:!1}),Vr=>{const{key:Jr,error:Dr,errorStatus:tn,className:Gr,style:fn}=Vr;return a.createElement("div",{key:Jr,className:xe()(Gr,{[`${Rt}-${tn}`]:tn}),style:fn},Dr)}))}))},Ye=Ie(55372),ot=Ie(48755),Fe=Ie(2171),Ke=Ie(31756),rt=Ie(23069),nt=Ie(76846),et=Ie(16722);const Ge=["parentNode"],Xe="form_item";function Ve(bt){return bt===void 0||bt===!1?[]:Array.isArray(bt)?bt:[bt]}function tt(bt,Mt){if(!bt.length)return;const wt=bt.join("_");return Mt?`${Mt}_${wt}`:Ge.includes(wt)?`${Xe}_${wt}`:wt}function Qe(bt,Mt,wt,Nt,pt,Bt){let Wt=Nt;return Bt!==void 0?Wt=Bt:wt.validating?Wt="validating":bt.length?Wt="error":Mt.length?Wt="warning":(wt.touched||pt&&wt.validated)&&(Wt="success"),Wt}var ct=function(bt,Mt){var wt={};for(var Nt in bt)Object.prototype.hasOwnProperty.call(bt,Nt)&&Mt.indexOf(Nt)<0&&(wt[Nt]=bt[Nt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Nt=Object.getOwnPropertySymbols(bt);pt<Nt.length;pt++)Mt.indexOf(Nt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Nt[pt])&&(wt[Nt[pt]]=bt[Nt[pt]]);return wt};function at(bt){return Ve(bt).join("_")}function qe(bt,Mt){const wt=Mt.getFieldInstance(bt),Nt=(0,nt.bn)(wt);if(Nt)return Nt;const pt=tt(Ve(bt),Mt.__INTERNAL__.name);if(pt)return document.getElementById(pt)}function Le(bt){const[Mt]=(0,Ye.useForm)(),wt=a.useRef({}),Nt=a.useMemo(()=>bt!=null?bt:Object.assign(Object.assign({},Mt),{__INTERNAL__:{itemRef:pt=>Bt=>{const Wt=at(pt);Bt?wt.current[Wt]=Bt:delete wt.current[Wt]}},scrollToField:function(pt){let Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Wt}=Bt,Gt=ct(Bt,["focus"]),zt=qe(pt,Nt);zt&&((0,et.Z)(zt,Object.assign({scrollMode:"if-needed",block:"nearest"},Gt)),Wt&&Nt.focusField(pt))},focusField:pt=>{var Bt,Wt;const Gt=Nt.getFieldInstance(pt);typeof(Gt==null?void 0:Gt.focus)=="function"?Gt.focus():(Wt=(Bt=qe(pt,Nt))===null||Bt===void 0?void 0:Bt.focus)===null||Wt===void 0||Wt.call(Bt)},getFieldInstance:pt=>{const Bt=at(pt);return wt.current[Bt]}}),[bt,Mt]);return[Nt]}var Ne=Ie(98350),te=function(bt,Mt){var wt={};for(var Nt in bt)Object.prototype.hasOwnProperty.call(bt,Nt)&&Mt.indexOf(Nt)<0&&(wt[Nt]=bt[Nt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Nt=Object.getOwnPropertySymbols(bt);pt<Nt.length;pt++)Mt.indexOf(Nt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Nt[pt])&&(wt[Nt[pt]]=bt[Nt[pt]]);return wt};const de=(bt,Mt)=>{const wt=a.useContext(Fe.Z),{getPrefixCls:Nt,direction:pt,requiredMark:Bt,colon:Wt,scrollToFirstError:Gt,className:zt,style:Rt}=(0,ot.dj)("form"),{prefixCls:_t,className:Ut,rootClassName:dr,size:cr,disabled:hr=wt,form:Br,colon:Fr,labelAlign:Hr,labelWrap:_r,labelCol:Pr,wrapperCol:Rr,hideRequiredMark:Ur,layout:Qr="horizontal",scrollToFirstError:Vr,requiredMark:Jr,onFinishFailed:Dr,name:tn,style:Gr,feedbackIcons:fn,variant:pn}=bt,ln=te(bt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),un=(0,Ke.Z)(cr),yn=a.useContext(Ne.Z),sn=a.useMemo(()=>Jr!==void 0?Jr:Ur?!1:Bt!==void 0?Bt:!0,[Ur,Jr,Bt]),dn=Fr!=null?Fr:Wt,en=Nt("form",_t),mn=(0,oe.Z)(en),[bn,Fn,En]=Be(en,mn),Mn=xe()(en,`${en}-${Qr}`,{[`${en}-hide-required-mark`]:sn===!1,[`${en}-rtl`]:pt==="rtl",[`${en}-${un}`]:un},En,mn,Fn,zt,Ut,dr),[On]=Le(Br),{__INTERNAL__:In}=On;In.name=tn;const on=a.useMemo(()=>({name:tn,labelAlign:Hr,labelCol:Pr,labelWrap:_r,wrapperCol:Rr,vertical:Qr==="vertical",colon:dn,requiredMark:sn,itemRef:In.itemRef,form:On,feedbackIcons:fn}),[tn,Hr,Pr,Rr,Qr,dn,sn,On,fn]),nn=a.useRef(null);a.useImperativeHandle(Mt,()=>{var Or;return Object.assign(Object.assign({},On),{nativeElement:(Or=nn.current)===null||Or===void 0?void 0:Or.nativeElement})});const qr=(Or,Er)=>{if(Or){let pr={block:"nearest"};typeof Or=="object"&&(pr=Object.assign(Object.assign({},pr),Or)),On.scrollToField(Er,pr)}},vr=Or=>{if(Dr==null||Dr(Or),Or.errorFields.length){const Er=Or.errorFields[0].name;if(Vr!==void 0){qr(Vr,Er);return}Gt!==void 0&&qr(Gt,Er)}};return bn(a.createElement(ge.pg.Provider,{value:pn},a.createElement(Fe.n,{disabled:hr},a.createElement(rt.Z.Provider,{value:un},a.createElement(ge.RV,{validateMessages:yn},a.createElement(ge.q3.Provider,{value:on},a.createElement(Ye.default,Object.assign({id:tn},ln,{name:tn,onFinishFailed:vr,form:On,ref:nn,style:Object.assign(Object.assign({},Rt),Gr),className:Mn}))))))))};var We=a.forwardRef(de),we=Ie(41799),ye=Ie(8654),Oe=Ie(22703),$e=Ie(32383),Ze=Ie(11592);function Je(bt){if(typeof bt=="function")return bt;const Mt=(0,Ze.Z)(bt);return Mt.length<=1?Mt[0]:Mt}const st=()=>{const{status:bt,errors:Mt=[],warnings:wt=[]}=a.useContext(ge.aM);return{status:bt,errors:Mt,warnings:wt}};st.Context=ge.aM;var lt=st,ft=Ie(16089);function Tt(bt){const[Mt,wt]=a.useState(bt),Nt=a.useRef(null),pt=a.useRef([]),Bt=a.useRef(!1);a.useEffect(()=>(Bt.current=!1,()=>{Bt.current=!0,ft.Z.cancel(Nt.current),Nt.current=null}),[]);function Wt(Gt){Bt.current||(Nt.current===null&&(pt.current=[],Nt.current=(0,ft.Z)(()=>{Nt.current=null,wt(zt=>{let Rt=zt;return pt.current.forEach(_t=>{Rt=_t(Rt)}),Rt})})),pt.current.push(Gt))}return[Mt,Wt]}function St(){const{itemRef:bt}=a.useContext(ge.q3),Mt=a.useRef({});function wt(Nt,pt){const Bt=pt&&typeof pt=="object"&&(0,ye.C4)(pt),Wt=Nt.join("_");return(Mt.current.name!==Wt||Mt.current.originRef!==Bt)&&(Mt.current.name=Wt,Mt.current.originRef=Bt,Mt.current.ref=(0,ye.sQ)(bt(Nt),Bt)),Mt.current.ref}return wt}var Ot=Ie(29194),yt=Ie(34280),Dt=Ie(2738),Et=Ie(65970),xt=Ie(70425),At=Ie(5472);const It=bt=>{const{formItemCls:Mt}=bt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Mt}-control`]:{display:"flex"}}}};var ht=(0,ae.bk)(["Form","item-item"],(bt,Mt)=>{let{rootPrefixCls:wt}=Mt;const Nt=ke(bt,wt);return[It(Nt)]}),Ct=function(bt,Mt){var wt={};for(var Nt in bt)Object.prototype.hasOwnProperty.call(bt,Nt)&&Mt.indexOf(Nt)<0&&(wt[Nt]=bt[Nt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Nt=Object.getOwnPropertySymbols(bt);pt<Nt.length;pt++)Mt.indexOf(Nt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Nt[pt])&&(wt[Nt[pt]]=bt[Nt[pt]]);return wt};const Ht=24;var vt=bt=>{const{prefixCls:Mt,status:wt,labelCol:Nt,wrapperCol:pt,children:Bt,errors:Wt,warnings:Gt,_internalItemRender:zt,extra:Rt,help:_t,fieldId:Ut,marginBottom:dr,onErrorVisibleChanged:cr,label:hr}=bt,Br=`${Mt}-item`,Fr=a.useContext(ge.q3),Hr=a.useMemo(()=>{let ln=Object.assign({},pt||Fr.wrapperCol||{});return hr===null&&!Nt&&!pt&&Fr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yn=>{const sn=yn?[yn]:[],dn=(0,xt.U2)(Fr.labelCol,sn),en=typeof dn=="object"?dn:{},mn=(0,xt.U2)(ln,sn),bn=typeof mn=="object"?mn:{};"span"in en&&!("offset"in bn)&&en.span<Ht&&(ln=(0,xt.t8)(ln,[].concat(sn,["offset"]),en.span))}),ln},[pt,Fr]),_r=xe()(`${Br}-control`,Hr.className),Pr=a.useMemo(()=>{const{labelCol:ln,wrapperCol:un}=Fr;return Ct(Fr,["labelCol","wrapperCol"])},[Fr]),Rr=a.useRef(null),[Ur,Qr]=a.useState(0);(0,yt.Z)(()=>{Rt&&Rr.current?Qr(Rr.current.clientHeight):Qr(0)},[Rt]);const Vr=a.createElement("div",{className:`${Br}-control-input`},a.createElement("div",{className:`${Br}-control-input-content`},Bt)),Jr=a.useMemo(()=>({prefixCls:Mt,status:wt}),[Mt,wt]),Dr=dr!==null||Wt.length||Gt.length?a.createElement(ge.Rk.Provider,{value:Jr},a.createElement(He,{fieldId:Ut,errors:Wt,warnings:Gt,help:_t,helpStatus:wt,className:`${Br}-explain-connected`,onVisibleChanged:cr})):null,tn={};Ut&&(tn.id=`${Ut}_extra`);const Gr=Rt?a.createElement("div",Object.assign({},tn,{className:`${Br}-extra`,ref:Rr}),Rt):null,fn=Dr||Gr?a.createElement("div",{className:`${Br}-additional`,style:dr?{minHeight:dr+Ur}:{}},Dr,Gr):null,pn=zt&&zt.mark==="pro_table_render"&&zt.render?zt.render(bt,{input:Vr,errorList:Dr,extra:Gr}):a.createElement(a.Fragment,null,Vr,fn);return a.createElement(ge.q3.Provider,{value:Pr},a.createElement(At.Z,Object.assign({},Hr,{className:_r}),pn),a.createElement(ht,{prefixCls:Mt}))},kt=Ie(61485),$t=Ie(9017),Kt=Ie(85981),tr=Ie(25399),sr=function(bt,Mt){var wt={};for(var Nt in bt)Object.prototype.hasOwnProperty.call(bt,Nt)&&Mt.indexOf(Nt)<0&&(wt[Nt]=bt[Nt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Nt=Object.getOwnPropertySymbols(bt);pt<Nt.length;pt++)Mt.indexOf(Nt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Nt[pt])&&(wt[Nt[pt]]=bt[Nt[pt]]);return wt};function gr(bt){return bt?typeof bt=="object"&&!a.isValidElement(bt)?bt:{title:bt}:null}var fr=bt=>{let{prefixCls:Mt,label:wt,htmlFor:Nt,labelCol:pt,labelAlign:Bt,colon:Wt,required:Gt,requiredMark:zt,tooltip:Rt,vertical:_t}=bt;var Ut;const[dr]=(0,$t.Z)("Form"),{labelAlign:cr,labelCol:hr,labelWrap:Br,colon:Fr}=a.useContext(ge.q3);if(!wt)return null;const Hr=pt||hr||{},_r=Bt||cr,Pr=`${Mt}-item-label`,Rr=xe()(Pr,_r==="left"&&`${Pr}-left`,Hr.className,{[`${Pr}-wrap`]:!!Br});let Ur=wt;const Qr=Wt===!0||Fr!==!1&&Wt!==!1;Qr&&!_t&&typeof wt=="string"&&wt.trim()&&(Ur=wt.replace(/[:|]\s*$/,""));const Jr=gr(Rt);if(Jr){const{icon:ln=a.createElement(kt.Z,null)}=Jr,un=sr(Jr,["icon"]),yn=a.createElement(tr.Z,Object.assign({},un),a.cloneElement(ln,{className:`${Mt}-item-tooltip`,title:"",onClick:sn=>{sn.preventDefault()},tabIndex:null}));Ur=a.createElement(a.Fragment,null,Ur,yn)}const Dr=zt==="optional",tn=typeof zt=="function",Gr=zt===!1;tn?Ur=zt(Ur,{required:!!Gt}):Dr&&!Gt&&(Ur=a.createElement(a.Fragment,null,Ur,a.createElement("span",{className:`${Mt}-item-optional`,title:""},(dr==null?void 0:dr.optional)||((Ut=Kt.Z.Form)===null||Ut===void 0?void 0:Ut.optional))));let fn;Gr?fn="hidden":(Dr||tn)&&(fn="optional");const pn=xe()({[`${Mt}-item-required`]:Gt,[`${Mt}-item-required-mark-${fn}`]:fn,[`${Mt}-item-no-colon`]:!Qr});return a.createElement(At.Z,Object.assign({},Hr,{className:Rr}),a.createElement("label",{htmlFor:Nt,className:pn,title:typeof wt=="string"?wt:""},Ur))},yr=Ie(29679),ir=Ie(19248),Yt=Ie(96512),Qt=Ie(58617);const qt={success:yr.Z,warning:Yt.Z,error:ir.Z,validating:Qt.Z};function Xt(bt){let{children:Mt,errors:wt,warnings:Nt,hasFeedback:pt,validateStatus:Bt,prefixCls:Wt,meta:Gt,noStyle:zt}=bt;const Rt=`${Wt}-item`,{feedbackIcons:_t}=a.useContext(ge.q3),Ut=Qe(wt,Nt,Gt,null,!!pt,Bt),{isFormItemInput:dr,status:cr,hasFeedback:hr,feedbackIcon:Br}=a.useContext(ge.aM),Fr=a.useMemo(()=>{var Hr;let _r;if(pt){const Rr=pt!==!0&&pt.icons||_t,Ur=Ut&&((Hr=Rr==null?void 0:Rr({status:Ut,errors:wt,warnings:Nt}))===null||Hr===void 0?void 0:Hr[Ut]),Qr=Ut&&qt[Ut];_r=Ur!==!1&&Qr?a.createElement("span",{className:xe()(`${Rt}-feedback-icon`,`${Rt}-feedback-icon-${Ut}`)},Ur||a.createElement(Qr,null)):null}const Pr={status:Ut||"",errors:wt,warnings:Nt,hasFeedback:!!pt,feedbackIcon:_r,isFormItemInput:!0};return zt&&(Pr.status=(Ut!=null?Ut:cr)||"",Pr.isFormItemInput=dr,Pr.hasFeedback=!!(pt!=null?pt:hr),Pr.feedbackIcon=pt!==void 0?Pr.feedbackIcon:Br),Pr},[Ut,pt,zt,dr,cr]);return a.createElement(ge.aM.Provider,{value:Fr},Mt)}var ur=function(bt,Mt){var wt={};for(var Nt in bt)Object.prototype.hasOwnProperty.call(bt,Nt)&&Mt.indexOf(Nt)<0&&(wt[Nt]=bt[Nt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Nt=Object.getOwnPropertySymbols(bt);pt<Nt.length;pt++)Mt.indexOf(Nt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Nt[pt])&&(wt[Nt[pt]]=bt[Nt[pt]]);return wt};function lr(bt){const{prefixCls:Mt,className:wt,rootClassName:Nt,style:pt,help:Bt,errors:Wt,warnings:Gt,validateStatus:zt,meta:Rt,hasFeedback:_t,hidden:Ut,children:dr,fieldId:cr,required:hr,isRequired:Br,onSubItemMetaChange:Fr,layout:Hr}=bt,_r=ur(bt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Pr=`${Mt}-item`,{requiredMark:Rr,vertical:Ur}=a.useContext(ge.q3),Qr=Ur||Hr==="vertical",Vr=a.useRef(null),Jr=ie(Wt),Dr=ie(Gt),tn=Bt!=null,Gr=!!(tn||Wt.length||Gt.length),fn=!!Vr.current&&(0,Ot.Z)(Vr.current),[pn,ln]=a.useState(null);(0,yt.Z)(()=>{if(Gr&&Vr.current){const en=getComputedStyle(Vr.current);ln(parseInt(en.marginBottom,10))}},[Gr,fn]);const un=en=>{en||ln(null)},sn=function(){let en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mn=en?Jr:Rt.errors,bn=en?Dr:Rt.warnings;return Qe(mn,bn,Rt,"",!!_t,zt)}(),dn=xe()(Pr,wt,Nt,{[`${Pr}-with-help`]:tn||Jr.length||Dr.length,[`${Pr}-has-feedback`]:sn&&_t,[`${Pr}-has-success`]:sn==="success",[`${Pr}-has-warning`]:sn==="warning",[`${Pr}-has-error`]:sn==="error",[`${Pr}-is-validating`]:sn==="validating",[`${Pr}-hidden`]:Ut,[`${Pr}-${Hr}`]:Hr});return a.createElement("div",{className:dn,style:pt,ref:Vr},a.createElement(Et.Z,Object.assign({className:`${Pr}-row`},(0,Dt.Z)(_r,["_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"])),a.createElement(fr,Object.assign({htmlFor:cr},bt,{requiredMark:Rr,required:hr!=null?hr:Br,prefixCls:Mt,vertical:Qr})),a.createElement(vt,Object.assign({},bt,Rt,{errors:Jr,warnings:Dr,prefixCls:Mt,status:sn,help:Bt,marginBottom:pn,onErrorVisibleChanged:un}),a.createElement(ge.qI.Provider,{value:Fr},a.createElement(Xt,{prefixCls:Mt,meta:Rt,errors:Rt.errors,warnings:Rt.warnings,hasFeedback:_t,validateStatus:sn},dr)))),!!pn&&a.createElement("div",{className:`${Pr}-margin-offset`,style:{marginBottom:-pn}}))}const ar="__SPLIT__",Cr=null;function Ar(bt,Mt){const wt=Object.keys(bt),Nt=Object.keys(Mt);return wt.length===Nt.length&&wt.every(pt=>{const Bt=bt[pt],Wt=Mt[pt];return Bt===Wt||typeof Bt=="function"||typeof Wt=="function"})}const Tr=a.memo(bt=>{let{children:Mt}=bt;return Mt},(bt,Mt)=>Ar(bt.control,Mt.control)&&bt.update===Mt.update&&bt.childProps.length===Mt.childProps.length&&bt.childProps.every((wt,Nt)=>wt===Mt.childProps[Nt]));function Nr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function jr(bt){const{name:Mt,noStyle:wt,className:Nt,dependencies:pt,prefixCls:Bt,shouldUpdate:Wt,rules:Gt,children:zt,required:Rt,label:_t,messageVariables:Ut,trigger:dr="onChange",validateTrigger:cr,hidden:hr,help:Br,layout:Fr}=bt,{getPrefixCls:Hr}=a.useContext(ot.E_),{name:_r}=a.useContext(ge.q3),Pr=Je(zt),Rr=typeof Pr=="function",Ur=a.useContext(ge.qI),{validateTrigger:Qr}=a.useContext(Ye.FieldContext),Vr=cr!==void 0?cr:Qr,Jr=Mt!=null,Dr=Hr("form",Bt),tn=(0,oe.Z)(Dr),[Gr,fn,pn]=Be(Dr,tn),ln=(0,$e.ln)("Form.Item"),un=a.useContext(Ye.ListContext),yn=a.useRef(null),[sn,dn]=Tt({}),[en,mn]=(0,we.Z)(()=>Nr()),bn=nn=>{const qr=un==null?void 0:un.getKey(nn.name);if(mn(nn.destroy?Nr():nn,!0),wt&&Br!==!1&&Ur){let vr=nn.name;if(nn.destroy)vr=yn.current||vr;else if(qr!==void 0){const[Or,Er]=qr;vr=[Or].concat((0,gt.Z)(Er)),yn.current=vr}Ur(nn,vr)}},Fn=(nn,qr)=>{dn(vr=>{const Or=Object.assign({},vr),pr=[].concat((0,gt.Z)(nn.name.slice(0,-1)),(0,gt.Z)(qr)).join(ar);return nn.destroy?delete Or[pr]:Or[pr]=nn,Or})},[En,Mn]=a.useMemo(()=>{const nn=(0,gt.Z)(en.errors),qr=(0,gt.Z)(en.warnings);return Object.values(sn).forEach(vr=>{nn.push.apply(nn,(0,gt.Z)(vr.errors||[])),qr.push.apply(qr,(0,gt.Z)(vr.warnings||[]))}),[nn,qr]},[sn,en.errors,en.warnings]),On=St();function In(nn,qr,vr){return wt&&!hr?a.createElement(Xt,{prefixCls:Dr,hasFeedback:bt.hasFeedback,validateStatus:bt.validateStatus,meta:en,errors:En,warnings:Mn,noStyle:!0},nn):a.createElement(lr,Object.assign({key:"row"},bt,{className:xe()(Nt,pn,tn,fn),prefixCls:Dr,fieldId:qr,isRequired:vr,errors:En,warnings:Mn,meta:en,onSubItemMetaChange:Fn,layout:Fr}),nn)}if(!Jr&&!Rr&&!pt)return Gr(In(Pr));let on={};return typeof _t=="string"?on.label=_t:Mt&&(on.label=String(Mt)),Ut&&(on=Object.assign(Object.assign({},on),Ut)),Gr(a.createElement(Ye.Field,Object.assign({},bt,{messageVariables:on,trigger:dr,validateTrigger:Vr,onMetaChange:bn}),(nn,qr,vr)=>{const Or=Ve(Mt).length&&qr?qr.name:[],Er=tt(Or,_r),pr=Rt!==void 0?Rt:!!(Gt!=null&&Gt.some(wr=>{if(wr&&typeof wr=="object"&&wr.required&&!wr.warningOnly)return!0;if(typeof wr=="function"){const mr=wr(vr);return(mr==null?void 0:mr.required)&&!(mr!=null&&mr.warningOnly)}return!1})),$r=Object.assign({},nn);let Kr=null;if(Array.isArray(Pr)&&Jr)Kr=Pr;else if(!(Rr&&(!(Wt||pt)||Jr))){if(!(pt&&!Rr&&!Jr))if(a.isValidElement(Pr)){const wr=Object.assign(Object.assign({},Pr.props),$r);if(wr.id||(wr.id=Er),Br||En.length>0||Mn.length>0||bt.extra){const Lr=[];(Br||En.length>0)&&Lr.push(`${Er}_help`),bt.extra&&Lr.push(`${Er}_extra`),wr["aria-describedby"]=Lr.join(" ")}En.length>0&&(wr["aria-invalid"]="true"),pr&&(wr["aria-required"]="true"),(0,ye.Yr)(Pr)&&(wr.ref=On(Or,Pr)),new Set([].concat((0,gt.Z)(Ve(dr)),(0,gt.Z)(Ve(Vr)))).forEach(Lr=>{wr[Lr]=function(){for(var cn,Pn,Tn,_n,Nn,Bn=arguments.length,Zn=new Array(Bn),$n=0;$n<Bn;$n++)Zn[$n]=arguments[$n];(Tn=$r[Lr])===null||Tn===void 0||(cn=Tn).call.apply(cn,[$r].concat(Zn)),(Nn=(_n=Pr.props)[Lr])===null||Nn===void 0||(Pn=Nn).call.apply(Pn,[_n].concat(Zn))}});const kr=[wr["aria-required"],wr["aria-invalid"],wr["aria-describedby"]];Kr=a.createElement(Tr,{control:$r,update:Pr,childProps:kr},(0,Oe.Tm)(Pr,wr))}else Rr&&(Wt||pt)&&!Jr?Kr=Pr(vr):Kr=Pr}return In(Kr,Er,pr)}))}const Zr=jr;Zr.useStatus=lt;var Wr=Zr,er=function(bt,Mt){var wt={};for(var Nt in bt)Object.prototype.hasOwnProperty.call(bt,Nt)&&Mt.indexOf(Nt)<0&&(wt[Nt]=bt[Nt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Nt=Object.getOwnPropertySymbols(bt);pt<Nt.length;pt++)Mt.indexOf(Nt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Nt[pt])&&(wt[Nt[pt]]=bt[Nt[pt]]);return wt},Ir=bt=>{var{prefixCls:Mt,children:wt}=bt,Nt=er(bt,["prefixCls","children"]);const{getPrefixCls:pt}=a.useContext(ot.E_),Bt=pt("form",Mt),Wt=a.useMemo(()=>({prefixCls:Bt,status:"error"}),[Bt]);return a.createElement(Ye.List,Object.assign({},Nt),(Gt,zt,Rt)=>a.createElement(ge.Rk.Provider,{value:Wt},wt(Gt.map(_t=>Object.assign(Object.assign({},_t),{fieldKey:_t.key})),zt,{errors:Rt.errors,warnings:Rt.warnings})))};function xr(){const{form:bt}=a.useContext(ge.q3);return bt}const Pt=We;Pt.Item=Wr,Pt.List=Ir,Pt.ErrorList=He,Pt.useForm=Le,Pt.useFormInstance=xr,Pt.useWatch=Ye.useWatch,Pt.Provider=ge.RV,Pt.create=()=>{};var Lt=Pt},4875:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return Vt}});var ge=Ie(59301),gt=Ie(84105),a=Ie(87395),Te=Ie(92310),xe=Ie.n(Te),z=Ie(60499),E=Ie(18642),oe=Ie(43749),ie=Ie(72190),ee=Ie(42244),le=Ie(38705),x=Ie(17212);function ne(){return typeof BigInt=="function"}function re(vt){return!vt&&vt!==0&&!Number.isNaN(vt)||!String(vt).trim()}function ae(vt){var kt=vt.trim(),$t=kt.startsWith("-");$t&&(kt=kt.slice(1)),kt=kt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),kt.startsWith(".")&&(kt="0".concat(kt));var Kt=kt||"0",tr=Kt.split("."),sr=tr[0]||"0",gr=tr[1]||"0";sr==="0"&&gr==="0"&&($t=!1);var br=$t?"-":"";return{negative:$t,negativeStr:br,trimStr:Kt,integerStr:sr,decimalStr:gr,fullStr:"".concat(br).concat(Kt)}}function se(vt){var kt=String(vt);return!Number.isNaN(Number(kt))&&kt.includes("e")}function ce(vt){var kt=String(vt);if(se(vt)){var $t=Number(kt.slice(kt.indexOf("e-")+2)),Kt=kt.match(/\.(\d+)/);return Kt!=null&&Kt[1]&&($t+=Kt[1].length),$t}return kt.includes(".")&&me(kt)?kt.length-kt.indexOf(".")-1:0}function pe(vt){var kt=String(vt);if(se(vt)){if(vt>Number.MAX_SAFE_INTEGER)return String(ne()?BigInt(vt).toString():Number.MAX_SAFE_INTEGER);if(vt<Number.MIN_SAFE_INTEGER)return String(ne()?BigInt(vt).toString():Number.MIN_SAFE_INTEGER);kt=vt.toFixed(ce(kt))}return ae(kt).fullStr}function me(vt){return typeof vt=="number"?!Number.isNaN(vt):vt?/^\s*-?\d+(\.\d+)?\s*$/.test(vt)||/^\s*-?\d+\.\s*$/.test(vt)||/^\s*-?\.\d+\s*$/.test(vt):!1}var he=function(){function vt(kt){if((0,le.Z)(this,vt),(0,E.Z)(this,"origin",""),(0,E.Z)(this,"negative",void 0),(0,E.Z)(this,"integer",void 0),(0,E.Z)(this,"decimal",void 0),(0,E.Z)(this,"decimalLen",void 0),(0,E.Z)(this,"empty",void 0),(0,E.Z)(this,"nan",void 0),re(kt)){this.empty=!0;return}if(this.origin=String(kt),kt==="-"||Number.isNaN(kt)){this.nan=!0;return}var $t=kt;if(se($t)&&($t=Number($t)),$t=typeof $t=="string"?$t:pe($t),me($t)){var Kt=ae($t);this.negative=Kt.negative;var tr=Kt.trimStr.split(".");this.integer=BigInt(tr[0]);var sr=tr[1]||"0";this.decimal=BigInt(sr),this.decimalLen=sr.length}else this.nan=!0}return(0,x.Z)(vt,[{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($t){var Kt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd($t,"0"));return BigInt(Kt)}},{key:"negate",value:function(){var $t=new vt(this.toString());return $t.negative=!$t.negative,$t}},{key:"cal",value:function($t,Kt,tr){var sr=Math.max(this.getDecimalStr().length,$t.getDecimalStr().length),gr=this.alignDecimal(sr),br=$t.alignDecimal(sr),fr=Kt(gr,br).toString(),yr=tr(sr),ir=ae(fr),Yt=ir.negativeStr,Qt=ir.trimStr,qt="".concat(Yt).concat(Qt.padStart(yr+1,"0"));return new vt("".concat(qt.slice(0,-yr),".").concat(qt.slice(-yr)))}},{key:"add",value:function($t){if(this.isInvalidate())return new vt($t);var Kt=new vt($t);return Kt.isInvalidate()?this:this.cal(Kt,function(tr,sr){return tr+sr},function(tr){return tr})}},{key:"multi",value:function($t){var Kt=new vt($t);return this.isInvalidate()||Kt.isInvalidate()?new vt(NaN):this.cal(Kt,function(tr,sr){return tr*sr},function(tr){return tr*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($t){return this.toString()===($t==null?void 0:$t.toString())}},{key:"lessEquals",value:function($t){return this.add($t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return $t?this.isInvalidate()?"":ae("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),vt}(),be=function(){function vt(kt){if((0,le.Z)(this,vt),(0,E.Z)(this,"origin",""),(0,E.Z)(this,"number",void 0),(0,E.Z)(this,"empty",void 0),re(kt)){this.empty=!0;return}this.origin=String(kt),this.number=Number(kt)}return(0,x.Z)(vt,[{key:"negate",value:function(){return new vt(-this.toNumber())}},{key:"add",value:function($t){if(this.isInvalidate())return new vt($t);var Kt=Number($t);if(Number.isNaN(Kt))return this;var tr=this.number+Kt;if(tr>Number.MAX_SAFE_INTEGER)return new vt(Number.MAX_SAFE_INTEGER);if(tr<Number.MIN_SAFE_INTEGER)return new vt(Number.MIN_SAFE_INTEGER);var sr=Math.max(ce(this.number),ce(Kt));return new vt(tr.toFixed(sr))}},{key:"multi",value:function($t){var Kt=Number($t);if(this.isInvalidate()||Number.isNaN(Kt))return new vt(NaN);var tr=this.number*Kt;if(tr>Number.MAX_SAFE_INTEGER)return new vt(Number.MAX_SAFE_INTEGER);if(tr<Number.MIN_SAFE_INTEGER)return new vt(Number.MIN_SAFE_INTEGER);var sr=Math.max(ce(this.number),ce(Kt));return new vt(tr.toFixed(sr))}},{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($t){return this.toNumber()===($t==null?void 0:$t.toNumber())}},{key:"lessEquals",value:function($t){return this.add($t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return $t?this.isInvalidate()?"":pe(this.number):this.origin}}]),vt}();function Pe(vt){return ne()?new he(vt):new be(vt)}function Me(vt,kt,$t){var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(vt==="")return"";var tr=ae(vt),sr=tr.negativeStr,gr=tr.integerStr,br=tr.decimalStr,fr="".concat(kt).concat(br),yr="".concat(sr).concat(gr);if($t>=0){var ir=Number(br[$t]);if(ir>=5&&!Kt){var Yt=Pe(vt).add("".concat(sr,"0.").concat("0".repeat($t)).concat(10-ir));return Me(Yt.toString(),kt,$t,Kt)}return $t===0?yr:"".concat(yr).concat(kt).concat(br.padEnd($t,"0").slice(0,$t))}return fr===".0"?yr:"".concat(yr).concat(fr)}var _e=Pe,De=Ie(36901),Ce=Ie(34280);function Ee(vt,kt){return typeof Proxy!="undefined"&&vt?new Proxy(vt,{get:function(Kt,tr){if(kt[tr])return kt[tr];var sr=Kt[tr];return typeof sr=="function"?sr.bind(Kt):sr}}):vt}var je=Ie(8654),ke=Ie(48736);function Be(vt,kt){var $t=(0,ge.useRef)(null);function Kt(){try{var sr=vt.selectionStart,gr=vt.selectionEnd,br=vt.value,fr=br.substring(0,sr),yr=br.substring(gr);$t.current={start:sr,end:gr,value:br,beforeTxt:fr,afterTxt:yr}}catch(ir){}}function tr(){if(vt&&$t.current&&kt)try{var sr=vt.value,gr=$t.current,br=gr.beforeTxt,fr=gr.afterTxt,yr=gr.start,ir=sr.length;if(sr.startsWith(br))ir=br.length;else if(sr.endsWith(fr))ir=sr.length-$t.current.afterTxt.length;else{var Yt=br[yr-1],Qt=sr.indexOf(Yt,yr-1);Qt!==-1&&(ir=Qt+1)}vt.setSelectionRange(ir,ir)}catch(qt){(0,ke.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(qt.message))}}return[Kt,tr]}var Ae=Ie(49658),ve=function(){var kt=(0,ge.useState)(!1),$t=(0,ie.Z)(kt,2),Kt=$t[0],tr=$t[1];return(0,Ce.Z)(function(){tr((0,Ae.Z)())},[]),Kt},Ue=ve,He=Ie(16089),Ye=200,ot=600;function Fe(vt){var kt=vt.prefixCls,$t=vt.upNode,Kt=vt.downNode,tr=vt.upDisabled,sr=vt.downDisabled,gr=vt.onStep,br=ge.useRef(),fr=ge.useRef([]),yr=ge.useRef();yr.current=gr;var ir=function(){clearTimeout(br.current)},Yt=function(Ar,Tr){Ar.preventDefault(),ir(),yr.current(Tr);function Nr(){yr.current(Tr),br.current=setTimeout(Nr,Ye)}br.current=setTimeout(Nr,ot)};ge.useEffect(function(){return function(){ir(),fr.current.forEach(function(Cr){return He.Z.cancel(Cr)})}},[]);var Qt=Ue();if(Qt)return null;var qt="".concat(kt,"-handler"),Xt=xe()(qt,"".concat(qt,"-up"),(0,E.Z)({},"".concat(qt,"-up-disabled"),tr)),ur=xe()(qt,"".concat(qt,"-down"),(0,E.Z)({},"".concat(qt,"-down-disabled"),sr)),lr=function(){return fr.current.push((0,He.Z)(ir))},ar={unselectable:"on",role:"button",onMouseUp:lr,onMouseLeave:lr};return ge.createElement("div",{className:"".concat(qt,"-wrap")},ge.createElement("span",(0,z.Z)({},ar,{onMouseDown:function(Ar){Yt(Ar,!0)},"aria-label":"Increase Value","aria-disabled":tr,className:Xt}),$t||ge.createElement("span",{unselectable:"on",className:"".concat(kt,"-handler-up-inner")})),ge.createElement("span",(0,z.Z)({},ar,{onMouseDown:function(Ar){Yt(Ar,!1)},"aria-label":"Decrease Value","aria-disabled":sr,className:ur}),Kt||ge.createElement("span",{unselectable:"on",className:"".concat(kt,"-handler-down-inner")})))}function Ke(vt){var kt=typeof vt=="number"?pe(vt):ae(vt).fullStr,$t=kt.includes(".");return $t?ae(kt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:vt+"0"}var rt=Ie(30292),nt=function(){var vt=(0,ge.useRef)(0),kt=function(){He.Z.cancel(vt.current)};return(0,ge.useEffect)(function(){return kt},[]),function($t){kt(),vt.current=(0,He.Z)(function(){$t()})}},et=["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"],Ge=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Xe=function(kt,$t){return kt||$t.isEmpty()?$t.toString():$t.toNumber()},Ve=function(kt){var $t=_e(kt);return $t.isInvalidate()?null:$t},tt=ge.forwardRef(function(vt,kt){var $t=vt.prefixCls,Kt=vt.className,tr=vt.style,sr=vt.min,gr=vt.max,br=vt.step,fr=br===void 0?1:br,yr=vt.defaultValue,ir=vt.value,Yt=vt.disabled,Qt=vt.readOnly,qt=vt.upHandler,Xt=vt.downHandler,ur=vt.keyboard,lr=vt.changeOnWheel,ar=lr===void 0?!1:lr,Cr=vt.controls,Ar=Cr===void 0?!0:Cr,Tr=vt.classNames,Nr=vt.stringMode,jr=vt.parser,Zr=vt.formatter,Wr=vt.precision,er=vt.decimalSeparator,or=vt.onChange,Ir=vt.onInput,xr=vt.onPressEnter,Pt=vt.onStep,Lt=vt.changeOnBlur,bt=Lt===void 0?!0:Lt,Mt=vt.domRef,wt=(0,ee.Z)(vt,et),Nt="".concat($t,"-input"),pt=ge.useRef(null),Bt=ge.useState(!1),Wt=(0,ie.Z)(Bt,2),Gt=Wt[0],zt=Wt[1],Rt=ge.useRef(!1),_t=ge.useRef(!1),Ut=ge.useRef(!1),dr=ge.useState(function(){return _e(ir!=null?ir:yr)}),cr=(0,ie.Z)(dr,2),hr=cr[0],Br=cr[1];function Fr(Er){ir===void 0&&Br(Er)}var Hr=ge.useCallback(function(Er,pr){if(!pr)return Wr>=0?Wr:Math.max(ce(Er),ce(fr))},[Wr,fr]),_r=ge.useCallback(function(Er){var pr=String(Er);if(jr)return jr(pr);var $r=pr;return er&&($r=$r.replace(er,".")),$r.replace(/[^\w.-]+/g,"")},[jr,er]),Pr=ge.useRef(""),Rr=ge.useCallback(function(Er,pr){if(Zr)return Zr(Er,{userTyping:pr,input:String(Pr.current)});var $r=typeof Er=="number"?pe(Er):Er;if(!pr){var Kr=Hr($r,pr);if(me($r)&&(er||Kr>=0)){var wr=er||".";$r=Me($r,wr,Kr)}}return $r},[Zr,Hr,er]),Ur=ge.useState(function(){var Er=yr!=null?yr:ir;return hr.isInvalidate()&&["string","number"].includes((0,oe.Z)(Er))?Number.isNaN(Er)?"":Er:Rr(hr.toString(),!1)}),Qr=(0,ie.Z)(Ur,2),Vr=Qr[0],Jr=Qr[1];Pr.current=Vr;function Dr(Er,pr){Jr(Rr(Er.isInvalidate()?Er.toString(!1):Er.toString(!pr),pr))}var tn=ge.useMemo(function(){return Ve(gr)},[gr,Wr]),Gr=ge.useMemo(function(){return Ve(sr)},[sr,Wr]),fn=ge.useMemo(function(){return!tn||!hr||hr.isInvalidate()?!1:tn.lessEquals(hr)},[tn,hr]),pn=ge.useMemo(function(){return!Gr||!hr||hr.isInvalidate()?!1:hr.lessEquals(Gr)},[Gr,hr]),ln=Be(pt.current,Gt),un=(0,ie.Z)(ln,2),yn=un[0],sn=un[1],dn=function(pr){return tn&&!pr.lessEquals(tn)?tn:Gr&&!Gr.lessEquals(pr)?Gr:null},en=function(pr){return!dn(pr)},mn=function(pr,$r){var Kr=pr,wr=en(Kr)||Kr.isEmpty();if(!Kr.isEmpty()&&!$r&&(Kr=dn(Kr)||Kr,wr=!0),!Qt&&!Yt&&wr){var mr=Kr.toString(),kr=Hr(mr,$r);return kr>=0&&(Kr=_e(Me(mr,".",kr)),en(Kr)||(Kr=_e(Me(mr,".",kr,!0)))),Kr.equals(hr)||(Fr(Kr),or==null||or(Kr.isEmpty()?null:Xe(Nr,Kr)),ir===void 0&&Dr(Kr,$r)),Kr}return hr},bn=nt(),Fn=function Er(pr){if(yn(),Pr.current=pr,Jr(pr),!_t.current){var $r=_r(pr),Kr=_e($r);Kr.isNaN()||mn(Kr,!0)}Ir==null||Ir(pr),bn(function(){var wr=pr;jr||(wr=pr.replace(/。/g,".")),wr!==pr&&Er(wr)})},En=function(){_t.current=!0},Mn=function(){_t.current=!1,Fn(pt.current.value)},On=function(pr){Fn(pr.target.value)},In=function(pr){var $r;if(!(pr&&fn||!pr&&pn)){Rt.current=!1;var Kr=_e(Ut.current?Ke(fr):fr);pr||(Kr=Kr.negate());var wr=(hr||_e(0)).add(Kr.toString()),mr=mn(wr,!1);Pt==null||Pt(Xe(Nr,mr),{offset:Ut.current?Ke(fr):fr,type:pr?"up":"down"}),($r=pt.current)===null||$r===void 0||$r.focus()}},on=function(pr){var $r=_e(_r(Vr)),Kr;$r.isNaN()?Kr=mn(hr,pr):Kr=mn($r,pr),ir!==void 0?Dr(hr,!1):Kr.isNaN()||Dr(Kr,!1)},nn=function(){Rt.current=!0},qr=function(pr){var $r=pr.key,Kr=pr.shiftKey;Rt.current=!0,Ut.current=Kr,$r==="Enter"&&(_t.current||(Rt.current=!1),on(!1),xr==null||xr(pr)),ur!==!1&&!_t.current&&["Up","ArrowUp","Down","ArrowDown"].includes($r)&&(In($r==="Up"||$r==="ArrowUp"),pr.preventDefault())},vr=function(){Rt.current=!1,Ut.current=!1};ge.useEffect(function(){if(ar&&Gt){var Er=function(Kr){In(Kr.deltaY<0),Kr.preventDefault()},pr=pt.current;if(pr)return pr.addEventListener("wheel",Er,{passive:!1}),function(){return pr.removeEventListener("wheel",Er)}}});var Or=function(){bt&&on(!1),zt(!1),Rt.current=!1};return(0,Ce.o)(function(){hr.isInvalidate()||Dr(hr,!1)},[Wr,Zr]),(0,Ce.o)(function(){var Er=_e(ir);Br(Er);var pr=_e(_r(Vr));(!Er.equals(pr)||!Rt.current||Zr)&&Dr(Er,Rt.current)},[ir]),(0,Ce.o)(function(){Zr&&sn()},[Vr]),ge.createElement("div",{ref:Mt,className:xe()($t,Kt,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},"".concat($t,"-focused"),Gt),"".concat($t,"-disabled"),Yt),"".concat($t,"-readonly"),Qt),"".concat($t,"-not-a-number"),hr.isNaN()),"".concat($t,"-out-of-range"),!hr.isInvalidate()&&!en(hr))),style:tr,onFocus:function(){zt(!0)},onBlur:Or,onKeyDown:qr,onKeyUp:vr,onCompositionStart:En,onCompositionEnd:Mn,onBeforeInput:nn},Ar&&ge.createElement(Fe,{prefixCls:$t,upNode:qt,downNode:Xt,upDisabled:fn,downDisabled:pn,onStep:In}),ge.createElement("div",{className:"".concat(Nt,"-wrap")},ge.createElement("input",(0,z.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":sr,"aria-valuemax":gr,"aria-valuenow":hr.isInvalidate()?null:hr.toString(),step:fr},wt,{ref:(0,je.sQ)(pt,kt),className:Nt,value:Vr,onChange:On,disabled:Yt,readOnly:Qt}))))}),Qe=ge.forwardRef(function(vt,kt){var $t=vt.disabled,Kt=vt.style,tr=vt.prefixCls,sr=tr===void 0?"rc-input-number":tr,gr=vt.value,br=vt.prefix,fr=vt.suffix,yr=vt.addonBefore,ir=vt.addonAfter,Yt=vt.className,Qt=vt.classNames,qt=(0,ee.Z)(vt,Ge),Xt=ge.useRef(null),ur=ge.useRef(null),lr=ge.useRef(null),ar=function(Ar){lr.current&&(0,rt.nH)(lr.current,Ar)};return ge.useImperativeHandle(kt,function(){return Ee(lr.current,{focus:ar,nativeElement:Xt.current.nativeElement||ur.current})}),ge.createElement(De.BaseInput,{className:Yt,triggerFocus:ar,prefixCls:sr,value:gr,disabled:$t,style:Kt,prefix:br,suffix:fr,addonAfter:ir,addonBefore:yr,classNames:Qt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Xt},ge.createElement(tt,(0,z.Z)({prefixCls:sr,disabled:$t,ref:lr,domRef:ur,className:Qt==null?void 0:Qt.input},qt)))}),ct=Qe,at=ct,qe=Ie(62487),Le=Ie(82855),Ne=Ie(48755),te=Ie(60840),de=Ie(2171),Re=Ie(83397),We=Ie(31756),we=Ie(56553),ye=Ie(24971),Oe=Ie(70045),$e=Ie(36237),Ze=Ie(53075),Je=Ie(64910),st=Ie(39082),lt=Ie(63356),ft=Ie(56119),Tt=Ie(16931),St=Ie(51636),Ot=Ie(17835);const yt=vt=>{var kt;const $t=(kt=vt.handleVisible)!==null&&kt!==void 0?kt:"auto",Kt=vt.controlHeightSM-vt.lineWidth*2;return Object.assign(Object.assign({},(0,Je.T)(vt)),{controlWidth:90,handleWidth:Kt,handleFontSize:vt.fontSize/2,handleVisible:$t,handleActiveBg:vt.colorFillAlter,handleBg:vt.colorBgContainer,filledHandleBg:new Ot.FastColor(vt.colorFillSecondary).onBackground(vt.colorBgContainer).toHexString(),handleHoverColor:vt.colorPrimary,handleBorderColor:vt.colorBorder,handleOpacity:$t===!0?1:0,handleVisibleWidth:$t===!0?Kt:0})},Dt=(vt,kt)=>{let{componentCls:$t,borderRadiusSM:Kt,borderRadiusLG:tr}=vt;const sr=kt==="lg"?tr:Kt;return{[`&-${kt}`]:{[`${$t}-handler-wrap`]:{borderStartEndRadius:sr,borderEndEndRadius:sr},[`${$t}-handler-up`]:{borderStartEndRadius:sr},[`${$t}-handler-down`]:{borderEndEndRadius:sr}}}},Et=vt=>{const{componentCls:kt,lineWidth:$t,lineType:Kt,borderRadius:tr,inputFontSizeSM:sr,inputFontSizeLG:gr,controlHeightLG:br,controlHeightSM:fr,colorError:yr,paddingInlineSM:ir,paddingBlockSM:Yt,paddingBlockLG:Qt,paddingInlineLG:qt,colorTextDescription:Xt,motionDurationMid:ur,handleHoverColor:lr,handleOpacity:ar,paddingInline:Cr,paddingBlock:Ar,handleBg:Tr,handleActiveBg:Nr,colorTextDisabled:jr,borderRadiusSM:Zr,borderRadiusLG:Wr,controlWidth:er,handleBorderColor:or,filledHandleBg:Ir,lineHeightLG:xr,calc:Pt}=vt;return[{[kt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(vt)),(0,Ze.ik)(vt)),{display:"inline-block",width:er,margin:0,padding:0,borderRadius:tr}),(0,st.qG)(vt,{[`${kt}-handler-wrap`]:{background:Tr,[`${kt}-handler-down`]:{borderBlockStart:`${(0,$e.unit)($t)} ${Kt} ${or}`}}})),(0,st.H8)(vt,{[`${kt}-handler-wrap`]:{background:Ir,[`${kt}-handler-down`]:{borderBlockStart:`${(0,$e.unit)($t)} ${Kt} ${or}`}},"&:focus-within":{[`${kt}-handler-wrap`]:{background:Tr}}})),(0,st.vc)(vt,{[`${kt}-handler-wrap`]:{background:Tr,[`${kt}-handler-down`]:{borderBlockStart:`${(0,$e.unit)($t)} ${Kt} ${or}`}}})),(0,st.Mu)(vt)),{"&-rtl":{direction:"rtl",[`${kt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:gr,lineHeight:xr,borderRadius:Wr,[`input${kt}-input`]:{height:Pt(br).sub(Pt($t).mul(2)).equal(),padding:`${(0,$e.unit)(Qt)} ${(0,$e.unit)(qt)}`}},"&-sm":{padding:0,fontSize:sr,borderRadius:Zr,[`input${kt}-input`]:{height:Pt(fr).sub(Pt($t).mul(2)).equal(),padding:`${(0,$e.unit)(Yt)} ${(0,$e.unit)(ir)}`}},"&-out-of-range":{[`${kt}-input-wrap`]:{input:{color:yr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(vt)),(0,Ze.s7)(vt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${kt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${kt}-group-addon`]:{borderRadius:Wr,fontSize:vt.fontSizeLG}},"&-sm":{[`${kt}-group-addon`]:{borderRadius:Zr}}},(0,st.ir)(vt)),(0,st.S5)(vt)),{[`&:not(${kt}-compact-first-item):not(${kt}-compact-last-item)${kt}-compact-item`]:{[`${kt}, ${kt}-group-addon`]:{borderRadius:0}},[`&:not(${kt}-compact-last-item)${kt}-compact-first-item`]:{[`${kt}, ${kt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${kt}-compact-first-item)${kt}-compact-last-item`]:{[`${kt}, ${kt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${kt}-input`]:{cursor:"not-allowed"},[kt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(vt)),{width:"100%",padding:`${(0,$e.unit)(Ar)} ${(0,$e.unit)(Cr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:tr,outline:0,transition:`all ${ur} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ze.nz)(vt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${kt}-handler-wrap, &-focused ${kt}-handler-wrap`]:{width:vt.handleWidth,opacity:1}})},{[kt]:Object.assign(Object.assign(Object.assign({[`${kt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:vt.handleVisibleWidth,opacity:ar,height:"100%",borderStartStartRadius:0,borderStartEndRadius:tr,borderEndEndRadius:tr,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${ur}`,overflow:"hidden",[`${kt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${kt}-handler-up-inner,
${kt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:vt.handleFontSize}}},[`${kt}-handler`]:{height:"50%",overflow:"hidden",color:Xt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,$e.unit)($t)} ${Kt} ${or}`,transition:`all ${ur} linear`,"&:active":{background:Nr},"&:hover":{height:"60%",[`
${kt}-handler-up-inner,
${kt}-handler-down-inner
`]:{color:lr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,lt.Ro)()),{color:Xt,transition:`all ${ur} linear`,userSelect:"none"})},[`${kt}-handler-up`]:{borderStartEndRadius:tr},[`${kt}-handler-down`]:{borderEndEndRadius:tr}},Dt(vt,"lg")),Dt(vt,"sm")),{"&-disabled, &-readonly":{[`${kt}-handler-wrap`]:{display:"none"},[`${kt}-input`]:{color:"inherit"}},[`
${kt}-handler-up-disabled,
${kt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${kt}-handler-up-disabled:hover &-handler-up-inner,
${kt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:jr}})}]},xt=vt=>{const{componentCls:kt,paddingBlock:$t,paddingInline:Kt,inputAffixPadding:tr,controlWidth:sr,borderRadiusLG:gr,borderRadiusSM:br,paddingInlineLG:fr,paddingInlineSM:yr,paddingBlockLG:ir,paddingBlockSM:Yt,motionDurationMid:Qt}=vt;return{[`${kt}-affix-wrapper`]:Object.assign(Object.assign({[`input${kt}-input`]:{padding:`${(0,$e.unit)($t)} 0`}},(0,Ze.ik)(vt)),{position:"relative",display:"inline-flex",alignItems:"center",width:sr,padding:0,paddingInlineStart:Kt,"&-lg":{borderRadius:gr,paddingInlineStart:fr,[`input${kt}-input`]:{padding:`${(0,$e.unit)(ir)} 0`}},"&-sm":{borderRadius:br,paddingInlineStart:yr,[`input${kt}-input`]:{padding:`${(0,$e.unit)(Yt)} 0`}},[`&:not(${kt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${kt}-disabled`]:{background:"transparent"},[`> div${kt}`]:{width:"100%",border:"none",outline:"none",[`&${kt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${kt}-handler-wrap`]:{zIndex:2},[kt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:tr},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Kt,marginInlineStart:tr,transition:`margin ${Qt}`}},[`&:hover ${kt}-handler-wrap, &-focused ${kt}-handler-wrap`]:{width:vt.handleWidth,opacity:1},[`&:not(${kt}-affix-wrapper-without-controls):hover ${kt}-suffix`]:{marginInlineEnd:vt.calc(vt.handleWidth).add(Kt).equal()}})}};var At=(0,Tt.I$)("InputNumber",vt=>{const kt=(0,St.mergeToken)(vt,(0,Je.e)(vt));return[Et(kt),xt(kt),(0,ft.c)(kt)]},yt,{unitless:{handleOpacity:!0}}),It=function(vt,kt){var $t={};for(var Kt in vt)Object.prototype.hasOwnProperty.call(vt,Kt)&&kt.indexOf(Kt)<0&&($t[Kt]=vt[Kt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tr=0,Kt=Object.getOwnPropertySymbols(vt);tr<Kt.length;tr++)kt.indexOf(Kt[tr])<0&&Object.prototype.propertyIsEnumerable.call(vt,Kt[tr])&&($t[Kt[tr]]=vt[Kt[tr]]);return $t};const ht=ge.forwardRef((vt,kt)=>{const{getPrefixCls:$t,direction:Kt}=ge.useContext(Ne.E_),tr=ge.useRef(null);ge.useImperativeHandle(kt,()=>tr.current);const{className:sr,rootClassName:gr,size:br,disabled:fr,prefixCls:yr,addonBefore:ir,addonAfter:Yt,prefix:Qt,suffix:qt,bordered:Xt,readOnly:ur,status:lr,controls:ar,variant:Cr}=vt,Ar=It(vt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Tr=$t("input-number",yr),Nr=(0,Re.Z)(Tr),[jr,Zr,Wr]=At(Tr,Nr),{compactSize:er,compactItemClassnames:or}=(0,Oe.ri)(Tr,Kt);let Ir=ge.createElement(a.Z,{className:`${Tr}-handler-up-inner`}),xr=ge.createElement(gt.Z,{className:`${Tr}-handler-down-inner`});const Pt=typeof ar=="boolean"?ar:void 0;typeof ar=="object"&&(Ir=typeof ar.upIcon=="undefined"?Ir:ge.createElement("span",{className:`${Tr}-handler-up-inner`},ar.upIcon),xr=typeof ar.downIcon=="undefined"?xr:ge.createElement("span",{className:`${Tr}-handler-down-inner`},ar.downIcon));const{hasFeedback:Lt,status:bt,isFormItemInput:Mt,feedbackIcon:wt}=ge.useContext(we.aM),Nt=(0,Le.F)(bt,lr),pt=(0,We.Z)(cr=>{var hr;return(hr=br!=null?br:er)!==null&&hr!==void 0?hr:cr}),Bt=ge.useContext(de.Z),Wt=fr!=null?fr:Bt,[Gt,zt]=(0,ye.Z)("inputNumber",Cr,Xt),Rt=Lt&&ge.createElement(ge.Fragment,null,wt),_t=xe()({[`${Tr}-lg`]:pt==="large",[`${Tr}-sm`]:pt==="small",[`${Tr}-rtl`]:Kt==="rtl",[`${Tr}-in-form-item`]:Mt},Zr),Ut=`${Tr}-group`,dr=ge.createElement(at,Object.assign({ref:tr,disabled:Wt,className:xe()(Wr,Nr,sr,gr,or),upHandler:Ir,downHandler:xr,prefixCls:Tr,readOnly:ur,controls:Pt,prefix:Qt,suffix:Rt||qt,addonBefore:ir&&ge.createElement(qe.Z,{form:!0,space:!0},ir),addonAfter:Yt&&ge.createElement(qe.Z,{form:!0,space:!0},Yt),classNames:{input:_t,variant:xe()({[`${Tr}-${Gt}`]:zt},(0,Le.Z)(Tr,Nt,Lt)),affixWrapper:xe()({[`${Tr}-affix-wrapper-sm`]:pt==="small",[`${Tr}-affix-wrapper-lg`]:pt==="large",[`${Tr}-affix-wrapper-rtl`]:Kt==="rtl",[`${Tr}-affix-wrapper-without-controls`]:ar===!1||Wt},Zr),wrapper:xe()({[`${Ut}-rtl`]:Kt==="rtl"},Zr),groupWrapper:xe()({[`${Tr}-group-wrapper-sm`]:pt==="small",[`${Tr}-group-wrapper-lg`]:pt==="large",[`${Tr}-group-wrapper-rtl`]:Kt==="rtl",[`${Tr}-group-wrapper-${Gt}`]:zt},(0,Le.Z)(`${Tr}-group-wrapper`,Nt,Lt),Zr)}},Ar));return jr(dr)}),Ct=ht,Ht=vt=>ge.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},ge.createElement(ht,Object.assign({},vt)));Ct._InternalPanelDoNotUseOrYouWillBeFired=Ht;var Vt=Ct},49397:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return be}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(36901),xe=Ie(8654),z=Ie(62487),E=Ie(86013),oe=Ie(82855),ie=Ie(48755),ee=Ie(2171),le=Ie(83397),x=Ie(31756),ne=Ie(56553),re=Ie(24971),ae=Ie(70045),se=Ie(23826),ce=Ie(53075);function pe(Pe){return!!(Pe.prefix||Pe.suffix||Pe.allowClear||Pe.showCount)}var me=function(Pe,Me){var _e={};for(var De in Pe)Object.prototype.hasOwnProperty.call(Pe,De)&&Me.indexOf(De)<0&&(_e[De]=Pe[De]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,De=Object.getOwnPropertySymbols(Pe);Ce<De.length;Ce++)Me.indexOf(De[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Pe,De[Ce])&&(_e[De[Ce]]=Pe[De[Ce]]);return _e},be=(0,ge.forwardRef)((Pe,Me)=>{const{prefixCls:_e,bordered:De=!0,status:Ce,size:Ee,disabled:je,onBlur:ke,onFocus:Be,suffix:Ae,allowClear:ve,addonAfter:Ue,addonBefore:He,className:Ye,style:ot,styles:Fe,rootClassName:Ke,onChange:rt,classNames:nt,variant:et}=Pe,Ge=me(Pe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Xe,direction:Ve,allowClear:tt,autoComplete:Qe,className:ct,style:at,classNames:qe,styles:Le}=(0,ie.dj)("input"),Ne=Xe("input",_e),te=(0,ge.useRef)(null),de=(0,le.Z)(Ne),[Re,We,we]=(0,ce.TI)(Ne,Ke),[ye]=(0,ce.ZP)(Ne,de),{compactSize:Oe,compactItemClassnames:$e}=(0,ae.ri)(Ne,Ve),Ze=(0,x.Z)(Vt=>{var vt;return(vt=Ee!=null?Ee:Oe)!==null&&vt!==void 0?vt:Vt}),Je=ge.useContext(ee.Z),st=je!=null?je:Je,{status:lt,hasFeedback:ft,feedbackIcon:Tt}=(0,ge.useContext)(ne.aM),St=(0,oe.F)(lt,Ce),Ot=pe(Pe)||!!ft,yt=(0,ge.useRef)(Ot),Dt=(0,se.Z)(te,!0),Et=Vt=>{Dt(),ke==null||ke(Vt)},xt=Vt=>{Dt(),Be==null||Be(Vt)},At=Vt=>{Dt(),rt==null||rt(Vt)},It=(ft||Ae)&&ge.createElement(ge.Fragment,null,Ae,ft&&Tt),ht=(0,E.Z)(ve!=null?ve:tt),[Ct,Ht]=(0,re.Z)("input",et,De);return Re(ye(ge.createElement(Te.default,Object.assign({ref:(0,xe.sQ)(Me,te),prefixCls:Ne,autoComplete:Qe},Ge,{disabled:st,onBlur:Et,onFocus:xt,style:Object.assign(Object.assign({},at),ot),styles:Object.assign(Object.assign({},Le),Fe),suffix:It,allowClear:ht,className:a()(Ye,Ke,we,de,$e,ct),onChange:At,addonBefore:He&&ge.createElement(z.Z,{form:!0,space:!0},He),addonAfter:Ue&&ge.createElement(z.Z,{form:!0,space:!0},Ue),classNames:Object.assign(Object.assign(Object.assign({},nt),qe),{input:a()({[`${Ne}-sm`]:Ze==="small",[`${Ne}-lg`]:Ze==="large",[`${Ne}-rtl`]:Ve==="rtl"},nt==null?void 0:nt.input,qe.input,We),variant:a()({[`${Ne}-${Ct}`]:Ht},(0,oe.Z)(Ne,St)),affixWrapper:a()({[`${Ne}-affix-wrapper-sm`]:Ze==="small",[`${Ne}-affix-wrapper-lg`]:Ze==="large",[`${Ne}-affix-wrapper-rtl`]:Ve==="rtl"},We),wrapper:a()({[`${Ne}-group-rtl`]:Ve==="rtl"},We),groupWrapper:a()({[`${Ne}-group-wrapper-sm`]:Ze==="small",[`${Ne}-group-wrapper-lg`]:Ze==="large",[`${Ne}-group-wrapper-rtl`]:Ve==="rtl",[`${Ne}-group-wrapper-${Ct}`]:Ht},(0,oe.Z)(`${Ne}-group-wrapper`,St,ft),We)})}))))})},79809:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return Me}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(22711),xe=Ie(86013),z=Ie(82855),E=Ie(48755),oe=Ie(2171),ie=Ie(83397),ee=Ie(31756),le=Ie(56553),x=Ie(24971),ne=Ie(70045),re=Ie(30292),ae=Ie(53075),se=Ie(16931),ce=Ie(51636),pe=Ie(64910);const me=_e=>{const{componentCls:De,paddingLG:Ce}=_e,Ee=`${De}-textarea`;return{[`textarea${De}`]:{maxWidth:"100%",height:"auto",minHeight:_e.controlHeight,lineHeight:_e.lineHeight,verticalAlign:"bottom",transition:`all ${_e.motionDurationSlow}`,resize:"vertical",[`&${De}-mouse-active`]:{transition:`all ${_e.motionDurationSlow}, height 0s, width 0s`}},[`${De}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ee]:{position:"relative","&-show-count":{[`> ${De}`]:{height:"100%"},[`${De}-data-count`]:{position:"absolute",bottom:_e.calc(_e.fontSize).mul(_e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:_e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${De},
&-affix-wrapper${Ee}-has-feedback ${De}
`]:{paddingInlineEnd:Ce},[`&-affix-wrapper${De}-affix-wrapper`]:{padding:0,[`> textarea${De}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:_e.calc(_e.controlHeight).sub(_e.calc(_e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${De}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${De}-clear-icon`]:{position:"absolute",insetInlineEnd:_e.paddingInline,insetBlockStart:_e.paddingXS},[`${Ee}-suffix`]:{position:"absolute",top:0,insetInlineEnd:_e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${De}-affix-wrapper-sm`]:{[`${De}-suffix`]:{[`${De}-clear-icon`]:{insetInlineEnd:_e.paddingInlineSM}}}}}};var he=(0,se.I$)(["Input","TextArea"],_e=>{const De=(0,ce.mergeToken)(_e,(0,pe.e)(_e));return[me(De)]},pe.T,{resetFont:!1}),be=function(_e,De){var Ce={};for(var Ee in _e)Object.prototype.hasOwnProperty.call(_e,Ee)&&De.indexOf(Ee)<0&&(Ce[Ee]=_e[Ee]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ee=Object.getOwnPropertySymbols(_e);je<Ee.length;je++)De.indexOf(Ee[je])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ee[je])&&(Ce[Ee[je]]=_e[Ee[je]]);return Ce},Me=(0,ge.forwardRef)((_e,De)=>{var Ce;const{prefixCls:Ee,bordered:je=!0,size:ke,disabled:Be,status:Ae,allowClear:ve,classNames:Ue,rootClassName:He,className:Ye,style:ot,styles:Fe,variant:Ke,showCount:rt,onMouseDown:nt,onResize:et}=_e,Ge=be(_e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Xe,direction:Ve,allowClear:tt,autoComplete:Qe,className:ct,style:at,classNames:qe,styles:Le}=(0,E.dj)("textArea"),Ne=ge.useContext(oe.Z),te=Be!=null?Be:Ne,{status:de,hasFeedback:Re,feedbackIcon:We}=ge.useContext(le.aM),we=(0,z.F)(de,Ae),ye=ge.useRef(null);ge.useImperativeHandle(De,()=>{var Ht;return{resizableTextArea:(Ht=ye.current)===null||Ht===void 0?void 0:Ht.resizableTextArea,focus:Vt=>{var vt,kt;(0,re.nH)((kt=(vt=ye.current)===null||vt===void 0?void 0:vt.resizableTextArea)===null||kt===void 0?void 0:kt.textArea,Vt)},blur:()=>{var Vt;return(Vt=ye.current)===null||Vt===void 0?void 0:Vt.blur()}}});const Oe=Xe("input",Ee),$e=(0,ie.Z)(Oe),[Ze,Je,st]=(0,ae.TI)(Oe,He),[lt]=he(Oe,$e),{compactSize:ft,compactItemClassnames:Tt}=(0,ne.ri)(Oe,Ve),St=(0,ee.Z)(Ht=>{var Vt;return(Vt=ke!=null?ke:ft)!==null&&Vt!==void 0?Vt:Ht}),[Ot,yt]=(0,x.Z)("textArea",Ke,je),Dt=(0,xe.Z)(ve!=null?ve:tt),[Et,xt]=ge.useState(!1),[At,It]=ge.useState(!1),ht=Ht=>{xt(!0),nt==null||nt(Ht);const Vt=()=>{xt(!1),document.removeEventListener("mouseup",Vt)};document.addEventListener("mouseup",Vt)},Ct=Ht=>{var Vt,vt;if(et==null||et(Ht),Et&&typeof getComputedStyle=="function"){const kt=(vt=(Vt=ye.current)===null||Vt===void 0?void 0:Vt.nativeElement)===null||vt===void 0?void 0:vt.querySelector("textarea");kt&&getComputedStyle(kt).resize==="both"&&It(!0)}};return Ze(lt(ge.createElement(Te.default,Object.assign({autoComplete:Qe},Ge,{style:Object.assign(Object.assign({},at),ot),styles:Object.assign(Object.assign({},Le),Fe),disabled:te,allowClear:Dt,className:a()(st,$e,Ye,He,Tt,ct,At&&`${Oe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ue),qe),{textarea:a()({[`${Oe}-sm`]:St==="small",[`${Oe}-lg`]:St==="large"},Je,Ue==null?void 0:Ue.textarea,qe.textarea,Et&&`${Oe}-mouse-active`),variant:a()({[`${Oe}-${Ot}`]:yt},(0,z.Z)(Oe,we)),affixWrapper:a()(`${Oe}-textarea-affix-wrapper`,{[`${Oe}-affix-wrapper-rtl`]:Ve==="rtl",[`${Oe}-affix-wrapper-sm`]:St==="small",[`${Oe}-affix-wrapper-lg`]:St==="large",[`${Oe}-textarea-show-count`]:rt||((Ce=_e.count)===null||Ce===void 0?void 0:Ce.show)},Je)}),prefixCls:Oe,suffix:Re&&ge.createElement("span",{className:`${Oe}-textarea-suffix`},We),showCount:rt,ref:ye,onResize:Ct,onMouseDown:ht}))))})},23826:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return gt}});var ge=Ie(59301);function gt(a,Te){const xe=(0,ge.useRef)([]),z=()=>{xe.current.push(setTimeout(()=>{var E,oe,ie,ee;!((E=a.current)===null||E===void 0)&&E.input&&((oe=a.current)===null||oe===void 0?void 0:oe.input.getAttribute("type"))==="password"&&(!((ie=a.current)===null||ie===void 0)&&ie.input.hasAttribute("value"))&&((ee=a.current)===null||ee===void 0||ee.input.removeAttribute("value"))}))};return(0,ge.useEffect)(()=>(Te&&z(),()=>xe.current.forEach(E=>{E&&clearTimeout(E)})),[]),z}},37568:function(Jt,jt,Ie){"use strict";Ie.d(jt,{default:function(){return qe}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(48755),xe=Ie(56553),z=Ie(53075),oe=Le=>{const{getPrefixCls:Ne,direction:te}=(0,ge.useContext)(Te.E_),{prefixCls:de,className:Re}=Le,We=Ne("input-group",de),we=Ne("input"),[ye,Oe,$e]=(0,z.ZP)(we),Ze=a()(We,$e,{[`${We}-lg`]:Le.size==="large",[`${We}-sm`]:Le.size==="small",[`${We}-compact`]:Le.compact,[`${We}-rtl`]:te==="rtl"},Oe,Re),Je=(0,ge.useContext)(xe.aM),st=(0,ge.useMemo)(()=>Object.assign(Object.assign({},Je),{isFormItemInput:!1}),[Je]);return ye(ge.createElement("span",{className:Ze,style:Le.style,onMouseEnter:Le.onMouseEnter,onMouseLeave:Le.onMouseLeave,onFocus:Le.onFocus,onBlur:Le.onBlur},ge.createElement(xe.aM.Provider,{value:st},Le.children)))},ie=Ie(49397),ee=Ie(77654),le=Ie(6089),x=Ie(26112),ne=Ie(82855),re=Ie(31756),ae=Ie(16931),se=Ie(51636),ce=Ie(64910);const pe=Le=>{const{componentCls:Ne,paddingXS:te}=Le;return{[Ne]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${Ne}-input`]:{textAlign:"center",paddingInline:Le.paddingXXS},[`&${Ne}-sm ${Ne}-input`]:{paddingInline:Le.calc(Le.paddingXXS).div(2).equal()},[`&${Ne}-lg ${Ne}-input`]:{paddingInline:Le.paddingXS}}}};var me=(0,ae.I$)(["Input","OTP"],Le=>{const Ne=(0,se.mergeToken)(Le,(0,ce.e)(Le));return[pe(Ne)]},ce.T),he=Ie(16089),be=function(Le,Ne){var te={};for(var de in Le)Object.prototype.hasOwnProperty.call(Le,de)&&Ne.indexOf(de)<0&&(te[de]=Le[de]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,de=Object.getOwnPropertySymbols(Le);Re<de.length;Re++)Ne.indexOf(de[Re])<0&&Object.prototype.propertyIsEnumerable.call(Le,de[Re])&&(te[de[Re]]=Le[de[Re]]);return te},Me=ge.forwardRef((Le,Ne)=>{const{value:te,onChange:de,onActiveChange:Re,index:We,mask:we}=Le,ye=be(Le,["value","onChange","onActiveChange","index","mask"]),Oe=te&&typeof we=="string"?we:te,$e=ft=>{de(We,ft.target.value)},Ze=ge.useRef(null);ge.useImperativeHandle(Ne,()=>Ze.current);const Je=()=>{(0,he.Z)(()=>{var ft;const Tt=(ft=Ze.current)===null||ft===void 0?void 0:ft.input;document.activeElement===Tt&&Tt&&Tt.select()})},st=ft=>{const{key:Tt,ctrlKey:St,metaKey:Ot}=ft;Tt==="ArrowLeft"?Re(We-1):Tt==="ArrowRight"?Re(We+1):Tt==="z"&&(St||Ot)&&ft.preventDefault(),Je()},lt=ft=>{ft.key==="Backspace"&&!te&&Re(We-1),Je()};return ge.createElement(ie.Z,Object.assign({type:we===!0?"password":"text"},ye,{ref:Ze,value:Oe,onInput:$e,onFocus:Je,onKeyDown:st,onKeyUp:lt,onMouseDown:Je,onMouseUp:Je}))}),_e=function(Le,Ne){var te={};for(var de in Le)Object.prototype.hasOwnProperty.call(Le,de)&&Ne.indexOf(de)<0&&(te[de]=Le[de]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,de=Object.getOwnPropertySymbols(Le);Re<de.length;Re++)Ne.indexOf(de[Re])<0&&Object.prototype.propertyIsEnumerable.call(Le,de[Re])&&(te[de[Re]]=Le[de[Re]]);return te};function De(Le){return(Le||"").split("")}const Ce=Le=>{const{index:Ne,prefixCls:te,separator:de}=Le,Re=typeof de=="function"?de(Ne):de;return Re?ge.createElement("span",{className:`${te}-separator`},Re):null};var je=ge.forwardRef((Le,Ne)=>{const{prefixCls:te,length:de=6,size:Re,defaultValue:We,value:we,onChange:ye,formatter:Oe,separator:$e,variant:Ze,disabled:Je,status:st,autoFocus:lt,mask:ft,type:Tt,onInput:St,inputMode:Ot}=Le,yt=_e(Le,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Dt,direction:Et}=ge.useContext(Te.E_),xt=Dt("otp",te),At=(0,x.Z)(yt,{aria:!0,data:!0,attr:!0}),[It,ht,Ct]=me(xt),Ht=(0,re.Z)(Qt=>Re!=null?Re:Qt),Vt=ge.useContext(xe.aM),vt=(0,ne.F)(Vt.status,st),kt=ge.useMemo(()=>Object.assign(Object.assign({},Vt),{status:vt,hasFeedback:!1,feedbackIcon:null}),[Vt,vt]),$t=ge.useRef(null),Kt=ge.useRef({});ge.useImperativeHandle(Ne,()=>({focus:()=>{var Qt;(Qt=Kt.current[0])===null||Qt===void 0||Qt.focus()},blur:()=>{var Qt;for(let qt=0;qt<de;qt+=1)(Qt=Kt.current[qt])===null||Qt===void 0||Qt.blur()},nativeElement:$t.current}));const tr=Qt=>Oe?Oe(Qt):Qt,[sr,gr]=ge.useState(()=>De(tr(We||"")));ge.useEffect(()=>{we!==void 0&&gr(De(we))},[we]);const br=(0,le.Z)(Qt=>{gr(Qt),St&&St(Qt),ye&&Qt.length===de&&Qt.every(qt=>qt)&&Qt.some((qt,Xt)=>sr[Xt]!==qt)&&ye(Qt.join(""))}),fr=(0,le.Z)((Qt,qt)=>{let Xt=(0,ee.Z)(sr);for(let lr=0;lr<Qt;lr+=1)Xt[lr]||(Xt[lr]="");qt.length<=1?Xt[Qt]=qt:Xt=Xt.slice(0,Qt).concat(De(qt)),Xt=Xt.slice(0,de);for(let lr=Xt.length-1;lr>=0&&!Xt[lr];lr-=1)Xt.pop();const ur=tr(Xt.map(lr=>lr||" ").join(""));return Xt=De(ur).map((lr,ar)=>lr===" "&&!Xt[ar]?Xt[ar]:lr),Xt}),yr=(Qt,qt)=>{var Xt;const ur=fr(Qt,qt),lr=Math.min(Qt+qt.length,de-1);lr!==Qt&&ur[Qt]!==void 0&&((Xt=Kt.current[lr])===null||Xt===void 0||Xt.focus()),br(ur)},ir=Qt=>{var qt;(qt=Kt.current[Qt])===null||qt===void 0||qt.focus()},Yt={variant:Ze,disabled:Je,status:vt,mask:ft,type:Tt,inputMode:Ot};return It(ge.createElement("div",Object.assign({},At,{ref:$t,className:a()(xt,{[`${xt}-sm`]:Ht==="small",[`${xt}-lg`]:Ht==="large",[`${xt}-rtl`]:Et==="rtl"},Ct,ht)}),ge.createElement(xe.aM.Provider,{value:kt},Array.from({length:de}).map((Qt,qt)=>{const Xt=`otp-${qt}`,ur=sr[qt]||"";return ge.createElement(ge.Fragment,{key:Xt},ge.createElement(Me,Object.assign({ref:lr=>{Kt.current[qt]=lr},index:qt,size:Ht,htmlSize:1,className:`${xt}-input`,onChange:yr,value:ur,onActiveChange:ir,autoFocus:qt===0&&lt},Yt)),qt<de-1&&ge.createElement(Ce,{separator:$e,index:qt,prefixCls:xt}))}))))}),ke=Ie(73331),Be=Ie(15277),Ae=Ie(2738),ve=Ie(8654),Ue=Ie(2171),He=Ie(23826),Ye=function(Le,Ne){var te={};for(var de in Le)Object.prototype.hasOwnProperty.call(Le,de)&&Ne.indexOf(de)<0&&(te[de]=Le[de]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,de=Object.getOwnPropertySymbols(Le);Re<de.length;Re++)Ne.indexOf(de[Re])<0&&Object.prototype.propertyIsEnumerable.call(Le,de[Re])&&(te[de[Re]]=Le[de[Re]]);return te};const ot=Le=>Le?ge.createElement(Be.Z,null):ge.createElement(ke.Z,null),Fe={click:"onClick",hover:"onMouseOver"};var rt=ge.forwardRef((Le,Ne)=>{const{disabled:te,action:de="click",visibilityToggle:Re=!0,iconRender:We=ot}=Le,we=ge.useContext(Ue.Z),ye=te!=null?te:we,Oe=typeof Re=="object"&&Re.visible!==void 0,[$e,Ze]=(0,ge.useState)(()=>Oe?Re.visible:!1),Je=(0,ge.useRef)(null);ge.useEffect(()=>{Oe&&Ze(Re.visible)},[Oe,Re]);const st=(0,He.Z)(Je),lt=()=>{var Ht;if(ye)return;$e&&st();const Vt=!$e;Ze(Vt),typeof Re=="object"&&((Ht=Re.onVisibleChange)===null||Ht===void 0||Ht.call(Re,Vt))},ft=Ht=>{const Vt=Fe[de]||"",vt=We($e),kt={[Vt]:lt,className:`${Ht}-icon`,key:"passwordIcon",onMouseDown:$t=>{$t.preventDefault()},onMouseUp:$t=>{$t.preventDefault()}};return ge.cloneElement(ge.isValidElement(vt)?vt:ge.createElement("span",null,vt),kt)},{className:Tt,prefixCls:St,inputPrefixCls:Ot,size:yt}=Le,Dt=Ye(Le,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Et}=ge.useContext(Te.E_),xt=Et("input",Ot),At=Et("input-password",St),It=Re&&ft(At),ht=a()(At,Tt,{[`${At}-${yt}`]:!!yt}),Ct=Object.assign(Object.assign({},(0,Ae.Z)(Dt,["suffix","iconRender","visibilityToggle"])),{type:$e?"text":"password",className:ht,prefixCls:xt,suffix:It});return yt&&(Ct.size=yt),ge.createElement(ie.Z,Object.assign({ref:(0,ve.sQ)(Ne,Je)},Ct))}),nt=Ie(47472),et=Ie(22703),Ge=Ie(7939),Xe=Ie(70045),Ve=function(Le,Ne){var te={};for(var de in Le)Object.prototype.hasOwnProperty.call(Le,de)&&Ne.indexOf(de)<0&&(te[de]=Le[de]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,de=Object.getOwnPropertySymbols(Le);Re<de.length;Re++)Ne.indexOf(de[Re])<0&&Object.prototype.propertyIsEnumerable.call(Le,de[Re])&&(te[de[Re]]=Le[de[Re]]);return te},Qe=ge.forwardRef((Le,Ne)=>{const{prefixCls:te,inputPrefixCls:de,className:Re,size:We,suffix:we,enterButton:ye=!1,addonAfter:Oe,loading:$e,disabled:Ze,onSearch:Je,onChange:st,onCompositionStart:lt,onCompositionEnd:ft}=Le,Tt=Ve(Le,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:St,direction:Ot}=ge.useContext(Te.E_),yt=ge.useRef(!1),Dt=St("input-search",te),Et=St("input",de),{compactSize:xt}=(0,Xe.ri)(Dt,Ot),At=(0,re.Z)(yr=>{var ir;return(ir=We!=null?We:xt)!==null&&ir!==void 0?ir:yr}),It=ge.useRef(null),ht=yr=>{yr!=null&&yr.target&&yr.type==="click"&&Je&&Je(yr.target.value,yr,{source:"clear"}),st==null||st(yr)},Ct=yr=>{var ir;document.activeElement===((ir=It.current)===null||ir===void 0?void 0:ir.input)&&yr.preventDefault()},Ht=yr=>{var ir,Yt;Je&&Je((Yt=(ir=It.current)===null||ir===void 0?void 0:ir.input)===null||Yt===void 0?void 0:Yt.value,yr,{source:"input"})},Vt=yr=>{yt.current||$e||Ht(yr)},vt=typeof ye=="boolean"?ge.createElement(nt.Z,null):null,kt=`${Dt}-button`;let $t;const Kt=ye||{},tr=Kt.type&&Kt.type.__ANT_BUTTON===!0;tr||Kt.type==="button"?$t=(0,et.Tm)(Kt,Object.assign({onMouseDown:Ct,onClick:yr=>{var ir,Yt;(Yt=(ir=Kt==null?void 0:Kt.props)===null||ir===void 0?void 0:ir.onClick)===null||Yt===void 0||Yt.call(ir,yr),Ht(yr)},key:"enterButton"},tr?{className:kt,size:At}:{})):$t=ge.createElement(Ge.ZP,{className:kt,type:ye?"primary":void 0,size:At,disabled:Ze,key:"enterButton",onMouseDown:Ct,onClick:Ht,loading:$e,icon:vt},ye),Oe&&($t=[$t,(0,et.Tm)(Oe,{key:"addonAfter"})]);const sr=a()(Dt,{[`${Dt}-rtl`]:Ot==="rtl",[`${Dt}-${At}`]:!!At,[`${Dt}-with-button`]:!!ye},Re),gr=Object.assign(Object.assign({},Tt),{className:sr,prefixCls:Et,type:"search"}),br=yr=>{yt.current=!0,lt==null||lt(yr)},fr=yr=>{yt.current=!1,ft==null||ft(yr)};return ge.createElement(ie.Z,Object.assign({ref:(0,ve.sQ)(It,Ne),onPressEnter:Vt},gr,{size:At,onCompositionStart:br,onCompositionEnd:fr,addonAfter:$t,suffix:we,onChange:ht,disabled:Ze}))}),ct=Ie(79809);const at=ie.Z;at.Group=oe,at.Search=Qe,at.TextArea=ct.Z,at.Password=rt,at.OTP=je;var qe=at},24303:function(Jt,jt,Ie){"use strict";Ie.d(jt,{D:function(){return _e},Z:function(){return Ee}});var ge=Ie(59301),gt=Ie(60499),a={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"},Te=a,xe=Ie(7657),z=function(ke,Be){return ge.createElement(xe.Z,(0,gt.Z)({},ke,{ref:Be,icon:Te}))},E=ge.forwardRef(z),oe=E,ie=Ie(33853),ee=Ie(38819),le=Ie(92310),x=Ie.n(le),ne=Ie(2738),re=Ie(48755),ae=Ie(6989),se=Ie(36237),ce=Ie(48923),pe=Ie(16931);const me=je=>{const{componentCls:ke,siderBg:Be,motionDurationMid:Ae,motionDurationSlow:ve,antCls:Ue,triggerHeight:He,triggerColor:Ye,triggerBg:ot,headerHeight:Fe,zeroTriggerWidth:Ke,zeroTriggerHeight:rt,borderRadiusLG:nt,lightSiderBg:et,lightTriggerColor:Ge,lightTriggerBg:Xe,bodyBg:Ve}=je;return{[ke]:{position:"relative",minWidth:0,background:Be,transition:`all ${Ae}, background 0s`,"&-has-trigger":{paddingBottom:He},"&-right":{order:1},[`${ke}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ue}-menu${Ue}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${ke}-children`]:{overflow:"hidden"},[`${ke}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:He,color:Ye,lineHeight:(0,se.unit)(He),textAlign:"center",background:ot,cursor:"pointer",transition:`all ${Ae}`},[`${ke}-zero-width-trigger`]:{position:"absolute",top:Fe,insetInlineEnd:je.calc(Ke).mul(-1).equal(),zIndex:1,width:Ke,height:rt,color:Ye,fontSize:je.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Be,borderRadius:`0 ${(0,se.unit)(nt)} ${(0,se.unit)(nt)} 0`,cursor:"pointer",transition:`background ${ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:je.calc(Ke).mul(-1).equal(),borderRadius:`${(0,se.unit)(nt)} 0 0 ${(0,se.unit)(nt)}`}},"&-light":{background:et,[`${ke}-trigger`]:{color:Ge,background:Xe},[`${ke}-zero-width-trigger`]:{color:Ge,background:Xe,border:`1px solid ${Ve}`,borderInlineStart:0}}}}};var he=(0,pe.I$)(["Layout","Sider"],je=>[me(je)],ce.eh,{deprecatedTokens:ce.jn}),be=function(je,ke){var Be={};for(var Ae in je)Object.prototype.hasOwnProperty.call(je,Ae)&&ke.indexOf(Ae)<0&&(Be[Ae]=je[Ae]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Ae=Object.getOwnPropertySymbols(je);ve<Ae.length;ve++)ke.indexOf(Ae[ve])<0&&Object.prototype.propertyIsEnumerable.call(je,Ae[ve])&&(Be[Ae[ve]]=je[Ae[ve]]);return Be};const Pe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Me=je=>!Number.isNaN(Number.parseFloat(je))&&isFinite(je),_e=ge.createContext({}),De=(()=>{let je=0;return function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return je+=1,`${ke}${je}`}})();var Ee=ge.forwardRef((je,ke)=>{const{prefixCls:Be,className:Ae,trigger:ve,children:Ue,defaultCollapsed:He=!1,theme:Ye="dark",style:ot={},collapsible:Fe=!1,reverseArrow:Ke=!1,width:rt=200,collapsedWidth:nt=80,zeroWidthTriggerStyle:et,breakpoint:Ge,onCollapse:Xe,onBreakpoint:Ve}=je,tt=be(je,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,ge.useContext)(ae.V),[ct,at]=(0,ge.useState)("collapsed"in je?je.collapsed:He),[qe,Le]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in je&&at(je.collapsed)},[je.collapsed]);const Ne=(At,It)=>{"collapsed"in je||at(At),Xe==null||Xe(At,It)},{getPrefixCls:te,direction:de}=(0,ge.useContext)(re.E_),Re=te("layout-sider",Be),[We,we,ye]=he(Re),Oe=(0,ge.useRef)(null);Oe.current=At=>{Le(At.matches),Ve==null||Ve(At.matches),ct!==At.matches&&Ne(At.matches,"responsive")},(0,ge.useEffect)(()=>{function At(ht){return Oe.current(ht)}let It;if(typeof window!="undefined"){const{matchMedia:ht}=window;if(ht&&Ge&&Ge in Pe){It=ht(`screen and (max-width: ${Pe[Ge]})`);try{It.addEventListener("change",At)}catch(Ct){It.addListener(At)}At(It)}}return()=>{try{It==null||It.removeEventListener("change",At)}catch(ht){It==null||It.removeListener(At)}}},[Ge]),(0,ge.useEffect)(()=>{const At=De("ant-sider-");return Qe.addSider(At),()=>Qe.removeSider(At)},[]);const $e=()=>{Ne(!ct,"clickTrigger")},Ze=(0,ne.Z)(tt,["collapsed"]),Je=ct?nt:rt,st=Me(Je)?`${Je}px`:String(Je),lt=parseFloat(String(nt||0))===0?ge.createElement("span",{onClick:$e,className:x()(`${Re}-zero-width-trigger`,`${Re}-zero-width-trigger-${Ke?"right":"left"}`),style:et},ve||ge.createElement(oe,null)):null,ft=de==="rtl"==!Ke,Ot={expanded:ft?ge.createElement(ee.Z,null):ge.createElement(ie.Z,null),collapsed:ft?ge.createElement(ie.Z,null):ge.createElement(ee.Z,null)}[ct?"collapsed":"expanded"],yt=ve!==null?lt||ge.createElement("div",{className:`${Re}-trigger`,onClick:$e,style:{width:st}},ve||Ot):null,Dt=Object.assign(Object.assign({},ot),{flex:`0 0 ${st}`,maxWidth:st,minWidth:st,width:st}),Et=x()(Re,`${Re}-${Ye}`,{[`${Re}-collapsed`]:!!ct,[`${Re}-has-trigger`]:Fe&&ve!==null&&!lt,[`${Re}-below`]:!!qe,[`${Re}-zero-width`]:parseFloat(st)===0},Ae,we,ye),xt=ge.useMemo(()=>({siderCollapsed:ct}),[ct]);return We(ge.createElement(_e.Provider,{value:xt},ge.createElement("aside",Object.assign({className:Et},Ze,{style:Dt,ref:ke}),ge.createElement("div",{className:`${Re}-children`},Ue),Fe||qe&&lt?yt:null)))})},6989:function(Jt,jt,Ie){"use strict";Ie.d(jt,{V:function(){return gt}});var ge=Ie(59301);const gt=ge.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Jt,jt,Ie){"use strict";Ie.d(jt,{eh:function(){return Te},jn:function(){return xe}});var ge=Ie(36237),gt=Ie(16931);const a=z=>{const{antCls:E,componentCls:oe,colorText:ie,footerBg:ee,headerHeight:le,headerPadding:x,headerColor:ne,footerPadding:re,fontSize:ae,bodyBg:se,headerBg:ce}=z;return{[oe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:se,"&, *":{boxSizing:"border-box"},[`&${oe}-has-sider`]:{flexDirection:"row",[`> ${oe}, > ${oe}-content`]:{width:0}},[`${oe}-header, &${oe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${oe}-header`]:{height:le,padding:x,color:ne,lineHeight:(0,ge.unit)(le),background:ce,[`${E}-menu`]:{lineHeight:"inherit"}},[`${oe}-footer`]:{padding:re,color:ie,fontSize:ae,background:ee},[`${oe}-content`]:{flex:"auto",color:ie,minHeight:0}}},Te=z=>{const{colorBgLayout:E,controlHeight:oe,controlHeightLG:ie,colorText:ee,controlHeightSM:le,marginXXS:x,colorTextLightSolid:ne,colorBgContainer:re}=z,ae=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:E,colorBgTrigger:"#002140",bodyBg:E,headerBg:"#001529",headerHeight:oe*2,headerPadding:`0 ${ae}px`,headerColor:ee,footerPadding:`${le}px ${ae}px`,footerBg:E,siderBg:"#001529",triggerHeight:ie+x*2,triggerBg:"#002140",triggerColor:ne,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:re,lightTriggerBg:re,lightTriggerColor:ee}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];jt.ZP=(0,gt.I$)("Layout",z=>[a(z)],Te,{deprecatedTokens:xe})},78857:function(Jt,jt,Ie){"use strict";Ie.d(jt,{J:function(){return z}});var ge=Ie(59301),gt=Ie(8654),a=Ie(62487),Te=function(E,oe){var ie={};for(var ee in E)Object.prototype.hasOwnProperty.call(E,ee)&&oe.indexOf(ee)<0&&(ie[ee]=E[ee]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ee=Object.getOwnPropertySymbols(E);le<ee.length;le++)oe.indexOf(ee[le])<0&&Object.prototype.propertyIsEnumerable.call(E,ee[le])&&(ie[ee[le]]=E[ee[le]]);return ie};const xe=ge.createContext(null),z=ge.forwardRef((E,oe)=>{const{children:ie}=E,ee=Te(E,["children"]),le=ge.useContext(xe),x=ge.useMemo(()=>Object.assign(Object.assign({},le),ee),[le,ee.prefixCls,ee.mode,ee.selectable,ee.rootClassName]),ne=(0,gt.t4)(ie),re=(0,gt.x1)(oe,ne?(0,gt.C4)(ie):null);return ge.createElement(xe.Provider,{value:x},ge.createElement(a.Z,{space:!0},ne?ge.cloneElement(ie,{ref:re}):ie))});jt.Z=xe},93041:function(Jt,jt,Ie){"use strict";Ie.d(jt,{default:function(){return We}});var ge=Ie(59301),gt=Ie(28321),a=Ie(24303),Te=Ie(18785),xe=Ie(92310),z=Ie.n(xe),E=Ie(6089),oe=Ie(2738),ie=Ie(86641),ee=Ie(22703),le=Ie(48755),x=Ie(83397),re=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=function(we,ye){var Oe={};for(var $e in we)Object.prototype.hasOwnProperty.call(we,$e)&&ye.indexOf($e)<0&&(Oe[$e]=we[$e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,$e=Object.getOwnPropertySymbols(we);Ze<$e.length;Ze++)ye.indexOf($e[Ze])<0&&Object.prototype.propertyIsEnumerable.call(we,$e[Ze])&&(Oe[$e[Ze]]=we[$e[Ze]]);return Oe},ce=we=>{const{prefixCls:ye,className:Oe,dashed:$e}=we,Ze=ae(we,["prefixCls","className","dashed"]),{getPrefixCls:Je}=ge.useContext(le.E_),st=Je("menu",ye),lt=z()({[`${st}-item-divider-dashed`]:!!$e},Oe);return ge.createElement(gt.iz,Object.assign({className:lt},Ze))},pe=Ie(11592),me=Ie(25399),be=we=>{var ye;const{className:Oe,children:$e,icon:Ze,title:Je,danger:st,extra:lt}=we,{prefixCls:ft,firstLevel:Tt,direction:St,disableMenuItemTitleTooltip:Ot,inlineCollapsed:yt}=ge.useContext(re),Dt=Ct=>{const Ht=$e==null?void 0:$e[0],Vt=ge.createElement("span",{className:z()(`${ft}-title-content`,{[`${ft}-title-content-with-extra`]:!!lt||lt===0})},$e);return(!Ze||ge.isValidElement($e)&&$e.type==="span")&&$e&&Ct&&Tt&&typeof Ht=="string"?ge.createElement("div",{className:`${ft}-inline-collapsed-noicon`},Ht.charAt(0)):Vt},{siderCollapsed:Et}=ge.useContext(a.D);let xt=Je;typeof Je=="undefined"?xt=Tt?$e:"":Je===!1&&(xt="");const At={title:xt};!Et&&!yt&&(At.title=null,At.open=!1);const It=(0,pe.Z)($e).length;let ht=ge.createElement(gt.ck,Object.assign({},(0,oe.Z)(we,["title","icon","danger"]),{className:z()({[`${ft}-item-danger`]:st,[`${ft}-item-only-child`]:(Ze?It+1:It)===1},Oe),title:typeof Je=="string"?Je:void 0}),(0,ee.Tm)(Ze,{className:z()(ge.isValidElement(Ze)?(ye=Ze.props)===null||ye===void 0?void 0:ye.className:"",`${ft}-item-icon`)}),Dt(yt));return Ot||(ht=ge.createElement(me.Z,Object.assign({},At,{placement:St==="rtl"?"left":"right",classNames:{root:`${ft}-inline-collapsed-tooltip`}}),ht)),ht},Pe=Ie(78857),Me=Ie(36237),_e=Ie(17835),De=Ie(63356),Ce=Ie(34961),Ee=Ie(46e3),je=Ie(34925),ke=Ie(16931),Be=Ie(51636),ve=we=>{const{componentCls:ye,motionDurationSlow:Oe,horizontalLineHeight:$e,colorSplit:Ze,lineWidth:Je,lineType:st,itemPaddingInline:lt}=we;return{[`${ye}-horizontal`]:{lineHeight:$e,border:0,borderBottom:`${(0,Me.unit)(Je)} ${st} ${Ze}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ye}-item, ${ye}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:lt},[`> ${ye}-item:hover,
> ${ye}-item-active,
> ${ye}-submenu ${ye}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ye}-item, ${ye}-submenu-title`]:{transition:[`border-color ${Oe}`,`background ${Oe}`].join(",")},[`${ye}-submenu-arrow`]:{display:"none"}}}},He=we=>{let{componentCls:ye,menuArrowOffset:Oe,calc:$e}=we;return{[`${ye}-rtl`]:{direction:"rtl"},[`${ye}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ye}-rtl${ye}-vertical,
${ye}-submenu-rtl ${ye}-vertical`]:{[`${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Me.unit)($e(Oe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Me.unit)(Oe)})`}}}}};const Ye=we=>Object.assign({},(0,De.oN)(we));var Fe=(we,ye)=>{const{componentCls:Oe,itemColor:$e,itemSelectedColor:Ze,subMenuItemSelectedColor:Je,groupTitleColor:st,itemBg:lt,subMenuItemBg:ft,itemSelectedBg:Tt,activeBarHeight:St,activeBarWidth:Ot,activeBarBorderWidth:yt,motionDurationSlow:Dt,motionEaseInOut:Et,motionEaseOut:xt,itemPaddingInline:At,motionDurationMid:It,itemHoverColor:ht,lineType:Ct,colorSplit:Ht,itemDisabledColor:Vt,dangerItemColor:vt,dangerItemHoverColor:kt,dangerItemSelectedColor:$t,dangerItemActiveBg:Kt,dangerItemSelectedBg:tr,popupBg:sr,itemHoverBg:gr,itemActiveBg:br,menuSubMenuBg:fr,horizontalItemSelectedColor:yr,horizontalItemSelectedBg:ir,horizontalItemBorderRadius:Yt,horizontalItemHoverBg:Qt}=we;return{[`${Oe}-${ye}, ${Oe}-${ye} > ${Oe}`]:{color:$e,background:lt,[`&${Oe}-root:focus-visible`]:Object.assign({},Ye(we)),[`${Oe}-item`]:{"&-group-title, &-extra":{color:st}},[`${Oe}-submenu-selected > ${Oe}-submenu-title`]:{color:Je},[`${Oe}-item, ${Oe}-submenu-title`]:{color:$e,[`&:not(${Oe}-item-disabled):focus-visible`]:Object.assign({},Ye(we))},[`${Oe}-item-disabled, ${Oe}-submenu-disabled`]:{color:`${Vt} !important`},[`${Oe}-item:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{[`&:hover, > ${Oe}-submenu-title:hover`]:{color:ht}},[`&:not(${Oe}-horizontal)`]:{[`${Oe}-item:not(${Oe}-item-selected)`]:{"&:hover":{backgroundColor:gr},"&:active":{backgroundColor:br}},[`${Oe}-submenu-title`]:{"&:hover":{backgroundColor:gr},"&:active":{backgroundColor:br}}},[`${Oe}-item-danger`]:{color:vt,[`&${Oe}-item:hover`]:{[`&:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{color:kt}},[`&${Oe}-item:active`]:{background:Kt}},[`${Oe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Oe}-item-selected`]:{color:Ze,[`&${Oe}-item-danger`]:{color:$t},"a, a:hover":{color:"inherit"}},[`& ${Oe}-item-selected`]:{backgroundColor:Tt,[`&${Oe}-item-danger`]:{backgroundColor:tr}},[`&${Oe}-submenu > ${Oe}`]:{backgroundColor:fr},[`&${Oe}-popup > ${Oe}`]:{backgroundColor:sr},[`&${Oe}-submenu-popup > ${Oe}`]:{backgroundColor:sr},[`&${Oe}-horizontal`]:Object.assign(Object.assign({},ye==="dark"?{borderBottom:0}:{}),{[`> ${Oe}-item, > ${Oe}-submenu`]:{top:yt,marginTop:we.calc(yt).mul(-1).equal(),marginBottom:0,borderRadius:Yt,"&::after":{position:"absolute",insetInline:At,bottom:0,borderBottom:`${(0,Me.unit)(St)} solid transparent`,transition:`border-color ${Dt} ${Et}`,content:'""'},"&:hover, &-active, &-open":{background:Qt,"&::after":{borderBottomWidth:St,borderBottomColor:yr}},"&-selected":{color:yr,backgroundColor:ir,"&:hover":{backgroundColor:ir},"&::after":{borderBottomWidth:St,borderBottomColor:yr}}}}),[`&${Oe}-root`]:{[`&${Oe}-inline, &${Oe}-vertical`]:{borderInlineEnd:`${(0,Me.unit)(yt)} ${Ct} ${Ht}`}},[`&${Oe}-inline`]:{[`${Oe}-sub${Oe}-inline`]:{background:ft},[`${Oe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Me.unit)(Ot)} solid ${Ze}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${It} ${xt}`,`opacity ${It} ${xt}`].join(","),content:'""'},[`&${Oe}-item-danger`]:{"&::after":{borderInlineEndColor:$t}}},[`${Oe}-selected, ${Oe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${It} ${Et}`,`opacity ${It} ${Et}`].join(",")}}}}}};const Ke=we=>{const{componentCls:ye,itemHeight:Oe,itemMarginInline:$e,padding:Ze,menuArrowSize:Je,marginXS:st,itemMarginBlock:lt,itemWidth:ft,itemPaddingInline:Tt}=we,St=we.calc(Je).add(Ze).add(st).equal();return{[`${ye}-item`]:{position:"relative",overflow:"hidden"},[`${ye}-item, ${ye}-submenu-title`]:{height:Oe,lineHeight:(0,Me.unit)(Oe),paddingInline:Tt,overflow:"hidden",textOverflow:"ellipsis",marginInline:$e,marginBlock:lt,width:ft},[`> ${ye}-item,
> ${ye}-submenu > ${ye}-submenu-title`]:{height:Oe,lineHeight:(0,Me.unit)(Oe)},[`${ye}-item-group-list ${ye}-submenu-title,
${ye}-submenu-title`]:{paddingInlineEnd:St}}};var nt=we=>{const{componentCls:ye,iconCls:Oe,itemHeight:$e,colorTextLightSolid:Ze,dropdownWidth:Je,controlHeightLG:st,motionEaseOut:lt,paddingXL:ft,itemMarginInline:Tt,fontSizeLG:St,motionDurationFast:Ot,motionDurationSlow:yt,paddingXS:Dt,boxShadowSecondary:Et,collapsedWidth:xt,collapsedIconSize:At}=we,It={height:$e,lineHeight:(0,Me.unit)($e),listStylePosition:"inside",listStyleType:"disc"};return[{[ye]:{"&-inline, &-vertical":Object.assign({[`&${ye}-root`]:{boxShadow:"none"}},Ke(we))},[`${ye}-submenu-popup`]:{[`${ye}-vertical`]:Object.assign(Object.assign({},Ke(we)),{boxShadow:Et})}},{[`${ye}-submenu-popup ${ye}-vertical${ye}-sub`]:{minWidth:Je,maxHeight:`calc(100vh - ${(0,Me.unit)(we.calc(st).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ye}-inline`]:{width:"100%",[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${yt}`,`background ${yt}`,`padding ${Ot} ${lt}`].join(","),[`> ${ye}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ye}-sub${ye}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ye}-submenu > ${ye}-submenu-title`]:It,[`& ${ye}-item-group-title`]:{paddingInlineStart:ft}},[`${ye}-item`]:It}},{[`${ye}-inline-collapsed`]:{width:xt,[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu ${ye}-submenu-title`]:{[`> ${ye}-inline-collapsed-noicon`]:{fontSize:St,textAlign:"center"}}},[`> ${ye}-item,
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-item,
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-submenu > ${ye}-submenu-title,
> ${ye}-submenu > ${ye}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Me.unit)(we.calc(At).div(2).equal())} - ${(0,Me.unit)(Tt)})`,textOverflow:"clip",[`
${ye}-submenu-arrow,
${ye}-submenu-expand-icon
`]:{opacity:0},[`${ye}-item-icon, ${Oe}`]:{margin:0,fontSize:At,lineHeight:(0,Me.unit)($e),"+ span":{display:"inline-block",opacity:0}}},[`${ye}-item-icon, ${Oe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ye}-item-icon, ${Oe}`]:{display:"none"},"a, a:hover":{color:Ze}},[`${ye}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:Dt})}}]};const et=we=>{const{componentCls:ye,motionDurationSlow:Oe,motionDurationMid:$e,motionEaseInOut:Ze,motionEaseOut:Je,iconCls:st,iconSize:lt,iconMarginInlineEnd:ft}=we;return{[`${ye}-item, ${ye}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Oe}`,`background ${Oe}`,`padding calc(${Oe} + 0.1s) ${Ze}`].join(","),[`${ye}-item-icon, ${st}`]:{minWidth:lt,fontSize:lt,transition:[`font-size ${$e} ${Je}`,`margin ${Oe} ${Ze}`,`color ${Oe}`].join(","),"+ span":{marginInlineStart:ft,opacity:1,transition:[`opacity ${Oe} ${Ze}`,`margin ${Oe}`,`color ${Oe}`].join(",")}},[`${ye}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${ye}-item-only-child`]:{[`> ${st}, > ${ye}-item-icon`]:{marginInlineEnd:0}}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${ye}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ge=we=>{const{componentCls:ye,motionDurationSlow:Oe,motionEaseInOut:$e,borderRadius:Ze,menuArrowSize:Je,menuArrowOffset:st}=we;return{[`${ye}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:we.margin,width:Je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Oe} ${$e}, opacity ${Oe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:we.calc(Je).mul(.6).equal(),height:we.calc(Je).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ze,transition:[`background ${Oe} ${$e}`,`transform ${Oe} ${$e}`,`top ${Oe} ${$e}`,`color ${Oe} ${$e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Me.unit)(we.calc(st).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Me.unit)(st)})`}}}}},Xe=we=>{const{antCls:ye,componentCls:Oe,fontSize:$e,motionDurationSlow:Ze,motionDurationMid:Je,motionEaseInOut:st,paddingXS:lt,padding:ft,colorSplit:Tt,lineWidth:St,zIndexPopup:Ot,borderRadiusLG:yt,subMenuItemBorderRadius:Dt,menuArrowSize:Et,menuArrowOffset:xt,lineType:At,groupTitleLineHeight:It,groupTitleFontSize:ht}=we;return[{"":{[Oe]:Object.assign(Object.assign({},(0,De.dF)()),{"&-hidden":{display:"none"}})},[`${Oe}-submenu-hidden`]:{display:"none"}},{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(we)),(0,De.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:$e,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ze} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Oe}-item`]:{flex:"none"}},[`${Oe}-item, ${Oe}-submenu, ${Oe}-submenu-title`]:{borderRadius:we.itemBorderRadius},[`${Oe}-item-group-title`]:{padding:`${(0,Me.unit)(lt)} ${(0,Me.unit)(ft)}`,fontSize:ht,lineHeight:It,transition:`all ${Ze}`},[`&-horizontal ${Oe}-submenu`]:{transition:[`border-color ${Ze} ${st}`,`background ${Ze} ${st}`].join(",")},[`${Oe}-submenu, ${Oe}-submenu-inline`]:{transition:[`border-color ${Ze} ${st}`,`background ${Ze} ${st}`,`padding ${Je} ${st}`].join(",")},[`${Oe}-submenu ${Oe}-sub`]:{cursor:"initial",transition:[`background ${Ze} ${st}`,`padding ${Ze} ${st}`].join(",")},[`${Oe}-title-content`]:{transition:`color ${Ze}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${ye}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Oe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:we.padding}},[`${Oe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Oe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Tt,borderStyle:At,borderWidth:0,borderTopWidth:St,marginBlock:St,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(we)),{[`${Oe}-item-group`]:{[`${Oe}-item-group-list`]:{margin:0,padding:0,[`${Oe}-item, ${Oe}-submenu-title`]:{paddingInline:`${(0,Me.unit)(we.calc($e).mul(2).equal())} ${(0,Me.unit)(ft)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ot,borderRadius:yt,boxShadow:"none",transformOrigin:"0 0",[`&${Oe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Oe}`]:Object.assign(Object.assign(Object.assign({borderRadius:yt},et(we)),Ge(we)),{[`${Oe}-item, ${Oe}-submenu > ${Oe}-submenu-title`]:{borderRadius:Dt},[`${Oe}-submenu-title::after`]:{transition:`transform ${Ze} ${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:we.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:we.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:we.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:we.paddingXS}}}),Ge(we)),{[`&-inline-collapsed ${Oe}-submenu-arrow,
&-inline ${Oe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Me.unit)(xt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Me.unit)(we.calc(xt).mul(-1).equal())})`}},[`${Oe}-submenu-open${Oe}-submenu-inline > ${Oe}-submenu-title > ${Oe}-submenu-arrow`]:{transform:`translateY(${(0,Me.unit)(we.calc(Et).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Me.unit)(we.calc(xt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Me.unit)(xt)})`}}})},{[`${ye}-layout-header`]:{[Oe]:{lineHeight:"inherit"}}}]},Ve=we=>{var ye,Oe,$e;const{colorPrimary:Ze,colorError:Je,colorTextDisabled:st,colorErrorBg:lt,colorText:ft,colorTextDescription:Tt,colorBgContainer:St,colorFillAlter:Ot,colorFillContent:yt,lineWidth:Dt,lineWidthBold:Et,controlItemBgActive:xt,colorBgTextHover:At,controlHeightLG:It,lineHeight:ht,colorBgElevated:Ct,marginXXS:Ht,padding:Vt,fontSize:vt,controlHeightSM:kt,fontSizeLG:$t,colorTextLightSolid:Kt,colorErrorHover:tr}=we,sr=(ye=we.activeBarWidth)!==null&&ye!==void 0?ye:0,gr=(Oe=we.activeBarBorderWidth)!==null&&Oe!==void 0?Oe:Dt,br=($e=we.itemMarginInline)!==null&&$e!==void 0?$e:we.marginXXS,fr=new _e.FastColor(Kt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:we.zIndexPopupBase+50,radiusItem:we.borderRadiusLG,itemBorderRadius:we.borderRadiusLG,radiusSubMenuItem:we.borderRadiusSM,subMenuItemBorderRadius:we.borderRadiusSM,colorItemText:ft,itemColor:ft,colorItemTextHover:ft,itemHoverColor:ft,colorItemTextHoverHorizontal:Ze,horizontalItemHoverColor:Ze,colorGroupTitle:Tt,groupTitleColor:Tt,colorItemTextSelected:Ze,itemSelectedColor:Ze,subMenuItemSelectedColor:Ze,colorItemTextSelectedHorizontal:Ze,horizontalItemSelectedColor:Ze,colorItemBg:St,itemBg:St,colorItemBgHover:At,itemHoverBg:At,colorItemBgActive:yt,itemActiveBg:xt,colorSubItemBg:Ot,subMenuItemBg:Ot,colorItemBgSelected:xt,itemSelectedBg:xt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:sr,colorActiveBarHeight:Et,activeBarHeight:Et,colorActiveBarBorderSize:Dt,activeBarBorderWidth:gr,colorItemTextDisabled:st,itemDisabledColor:st,colorDangerItemText:Je,dangerItemColor:Je,colorDangerItemTextHover:Je,dangerItemHoverColor:Je,colorDangerItemTextSelected:Je,dangerItemSelectedColor:Je,colorDangerItemBgActive:lt,dangerItemActiveBg:lt,colorDangerItemBgSelected:lt,dangerItemSelectedBg:lt,itemMarginInline:br,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:It,groupTitleLineHeight:ht,collapsedWidth:It*2,popupBg:Ct,itemMarginBlock:Ht,itemPaddingInline:Vt,horizontalLineHeight:`${It*1.15}px`,iconSize:vt,iconMarginInlineEnd:kt-vt,collapsedIconSize:$t,groupTitleFontSize:vt,darkItemDisabledColor:new _e.FastColor(Kt).setA(.25).toRgbString(),darkItemColor:fr,darkDangerItemColor:Je,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kt,darkItemSelectedBg:Ze,darkDangerItemSelectedBg:Je,darkItemHoverBg:"transparent",darkGroupTitleColor:fr,darkItemHoverColor:Kt,darkDangerItemHoverColor:tr,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:Je,itemWidth:sr?`calc(100% + ${gr}px)`:`calc(100% - ${br*2}px)`}};var tt=function(we){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,ke.I$)("Menu",Ze=>{const{colorBgElevated:Je,controlHeightLG:st,fontSize:lt,darkItemColor:ft,darkDangerItemColor:Tt,darkItemBg:St,darkSubMenuItemBg:Ot,darkItemSelectedColor:yt,darkItemSelectedBg:Dt,darkDangerItemSelectedBg:Et,darkItemHoverBg:xt,darkGroupTitleColor:At,darkItemHoverColor:It,darkItemDisabledColor:ht,darkDangerItemHoverColor:Ct,darkDangerItemSelectedColor:Ht,darkDangerItemActiveBg:Vt,popupBg:vt,darkPopupBg:kt}=Ze,$t=Ze.calc(lt).div(7).mul(5).equal(),Kt=(0,Be.mergeToken)(Ze,{menuArrowSize:$t,menuHorizontalHeight:Ze.calc(st).mul(1.15).equal(),menuArrowOffset:Ze.calc($t).mul(.25).equal(),menuSubMenuBg:Je,calc:Ze.calc,popupBg:vt}),tr=(0,Be.mergeToken)(Kt,{itemColor:ft,itemHoverColor:It,groupTitleColor:At,itemSelectedColor:yt,subMenuItemSelectedColor:yt,itemBg:St,popupBg:kt,subMenuItemBg:Ot,itemActiveBg:"transparent",itemSelectedBg:Dt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:xt,itemDisabledColor:ht,dangerItemColor:Tt,dangerItemHoverColor:Ct,dangerItemSelectedColor:Ht,dangerItemActiveBg:Vt,dangerItemSelectedBg:Et,menuSubMenuBg:Ot,horizontalItemSelectedColor:yt,horizontalItemSelectedBg:Dt});return[Xe(Kt),ve(Kt),nt(Kt),Fe(Kt,"light"),Fe(tr,"dark"),He(Kt),(0,Ce.Z)(Kt),(0,Ee.oN)(Kt,"slide-up"),(0,Ee.oN)(Kt,"slide-down"),(0,je._y)(Kt,"zoom-big")]},Ve,{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:Oe,unitless:{groupTitleLineHeight:!0}})(we,ye)},Qe=Ie(75030),at=we=>{var ye;const{popupClassName:Oe,icon:$e,title:Ze,theme:Je}=we,st=ge.useContext(re),{prefixCls:lt,inlineCollapsed:ft,theme:Tt}=st,St=(0,gt.Xl)();let Ot;if(!$e)Ot=ft&&!St.length&&Ze&&typeof Ze=="string"?ge.createElement("div",{className:`${lt}-inline-collapsed-noicon`},Ze.charAt(0)):ge.createElement("span",{className:`${lt}-title-content`},Ze);else{const Et=ge.isValidElement(Ze)&&Ze.type==="span";Ot=ge.createElement(ge.Fragment,null,(0,ee.Tm)($e,{className:z()(ge.isValidElement($e)?(ye=$e.props)===null||ye===void 0?void 0:ye.className:"",`${lt}-item-icon`)}),Et?Ze:ge.createElement("span",{className:`${lt}-title-content`},Ze))}const yt=ge.useMemo(()=>Object.assign(Object.assign({},st),{firstLevel:!1}),[st]),[Dt]=(0,Qe.Cn)("Menu");return ge.createElement(re.Provider,{value:yt},ge.createElement(gt.Wd,Object.assign({},(0,oe.Z)(we,["icon"]),{title:Ot,popupClassName:z()(lt,Oe,`${lt}-${Je||Tt}`),popupStyle:Object.assign({zIndex:Dt},we.popupStyle)})))},qe=function(we,ye){var Oe={};for(var $e in we)Object.prototype.hasOwnProperty.call(we,$e)&&ye.indexOf($e)<0&&(Oe[$e]=we[$e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,$e=Object.getOwnPropertySymbols(we);Ze<$e.length;Ze++)ye.indexOf($e[Ze])<0&&Object.prototype.propertyIsEnumerable.call(we,$e[Ze])&&(Oe[$e[Ze]]=we[$e[Ze]]);return Oe};function Le(we){return we===null||we===!1}const Ne={item:be,submenu:at,divider:ce};var de=(0,ge.forwardRef)((we,ye)=>{var Oe;const $e=ge.useContext(Pe.Z),Ze=$e||{},{getPrefixCls:Je,getPopupContainer:st,direction:lt,menu:ft}=ge.useContext(le.E_),Tt=Je(),{prefixCls:St,className:Ot,style:yt,theme:Dt="light",expandIcon:Et,_internalDisableMenuItemTitleTooltip:xt,inlineCollapsed:At,siderCollapsed:It,rootClassName:ht,mode:Ct,selectable:Ht,onClick:Vt,overflowedIndicatorPopupClassName:vt}=we,kt=qe(we,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),$t=(0,oe.Z)(kt,["collapsedWidth"]);(Oe=Ze.validator)===null||Oe===void 0||Oe.call(Ze,{mode:Ct});const Kt=(0,E.Z)(function(){var lr;Vt==null||Vt.apply(void 0,arguments),(lr=Ze.onClick)===null||lr===void 0||lr.call(Ze)}),tr=Ze.mode||Ct,sr=Ht!=null?Ht:Ze.selectable,gr=At!=null?At:It,br={horizontal:{motionName:`${Tt}-slide-up`},inline:(0,ie.Z)(Tt),other:{motionName:`${Tt}-zoom-big`}},fr=Je("menu",St||Ze.prefixCls),yr=(0,x.Z)(fr),[ir,Yt,Qt]=tt(fr,yr,!$e),qt=z()(`${fr}-${Dt}`,ft==null?void 0:ft.className,Ot),Xt=ge.useMemo(()=>{var lr,ar;if(typeof Et=="function"||Le(Et))return Et||null;if(typeof Ze.expandIcon=="function"||Le(Ze.expandIcon))return Ze.expandIcon||null;if(typeof(ft==null?void 0:ft.expandIcon)=="function"||Le(ft==null?void 0:ft.expandIcon))return(ft==null?void 0:ft.expandIcon)||null;const Cr=(lr=Et!=null?Et:Ze==null?void 0:Ze.expandIcon)!==null&&lr!==void 0?lr:ft==null?void 0:ft.expandIcon;return(0,ee.Tm)(Cr,{className:z()(`${fr}-submenu-expand-icon`,ge.isValidElement(Cr)?(ar=Cr.props)===null||ar===void 0?void 0:ar.className:void 0)})},[Et,Ze==null?void 0:Ze.expandIcon,ft==null?void 0:ft.expandIcon,fr]),ur=ge.useMemo(()=>({prefixCls:fr,inlineCollapsed:gr||!1,direction:lt,firstLevel:!0,theme:Dt,mode:tr,disableMenuItemTitleTooltip:xt}),[fr,gr,lt,xt,Dt]);return ir(ge.createElement(Pe.Z.Provider,{value:null},ge.createElement(re.Provider,{value:ur},ge.createElement(gt.ZP,Object.assign({getPopupContainer:st,overflowedIndicator:ge.createElement(Te.Z,null),overflowedIndicatorPopupClassName:z()(fr,`${fr}-${Dt}`,vt),mode:tr,selectable:sr,onClick:Kt},$t,{inlineCollapsed:gr,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),yt),className:qt,prefixCls:fr,direction:lt,defaultMotions:br,expandIcon:Xt,ref:ye,rootClassName:z()(ht,Yt,Ze.rootClassName,Qt,yr),_internalComponents:Ne})))))});const Re=(0,ge.forwardRef)((we,ye)=>{const Oe=(0,ge.useRef)(null),$e=ge.useContext(a.D);return(0,ge.useImperativeHandle)(ye,()=>({menu:Oe.current,focus:Ze=>{var Je;(Je=Oe.current)===null||Je===void 0||Je.focus(Ze)}})),ge.createElement(de,Object.assign({ref:Oe},we,$e))});Re.Item=be,Re.SubMenu=at,Re.Divider=ce,Re.ItemGroup=gt.BW;var We=Re},93725:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return Ee}});var ge=Ie(59301),gt=Ie(96512),a=Ie(92310),Te=Ie.n(a),xe=Ie(18929),z=Ie(2738),E=Ie(48755),oe=Ie(37639),ie=Ie(15565),ee=Ie(54500),le=Ie(7939),x=Ie(61670),ne=Ie(9017),re=Ie(85981),ae=Ie(69106),se=Ie(16931);const ce=je=>{const{componentCls:ke,iconCls:Be,antCls:Ae,zIndexPopup:ve,colorText:Ue,colorWarning:He,marginXXS:Ye,marginXS:ot,fontSize:Fe,fontWeightStrong:Ke,colorTextHeading:rt}=je;return{[ke]:{zIndex:ve,[`&${Ae}-popover`]:{fontSize:Fe},[`${ke}-message`]:{marginBottom:ot,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ke}-message-icon ${Be}`]:{color:He,fontSize:Fe,lineHeight:1,marginInlineEnd:ot},[`${ke}-title`]:{fontWeight:Ke,color:rt,"&:only-child":{fontWeight:"normal"}},[`${ke}-description`]:{marginTop:Ye,color:Ue}},[`${ke}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ot}}}}},pe=je=>{const{zIndexPopupBase:ke}=je;return{zIndexPopup:ke+60}};var me=(0,se.I$)("Popconfirm",je=>ce(je),pe,{resetStyle:!1}),he=function(je,ke){var Be={};for(var Ae in je)Object.prototype.hasOwnProperty.call(je,Ae)&&ke.indexOf(Ae)<0&&(Be[Ae]=je[Ae]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Ae=Object.getOwnPropertySymbols(je);ve<Ae.length;ve++)ke.indexOf(Ae[ve])<0&&Object.prototype.propertyIsEnumerable.call(je,Ae[ve])&&(Be[Ae[ve]]=je[Ae[ve]]);return Be};const be=je=>{const{prefixCls:ke,okButtonProps:Be,cancelButtonProps:Ae,title:ve,description:Ue,cancelText:He,okText:Ye,okType:ot="primary",icon:Fe=ge.createElement(gt.Z,null),showCancel:Ke=!0,close:rt,onConfirm:nt,onCancel:et,onPopupClick:Ge}=je,{getPrefixCls:Xe}=ge.useContext(E.E_),[Ve]=(0,ne.Z)("Popconfirm",re.Z.Popconfirm),tt=(0,ee.Z)(ve),Qe=(0,ee.Z)(Ue);return ge.createElement("div",{className:`${ke}-inner-content`,onClick:Ge},ge.createElement("div",{className:`${ke}-message`},Fe&&ge.createElement("span",{className:`${ke}-message-icon`},Fe),ge.createElement("div",{className:`${ke}-message-text`},tt&&ge.createElement("div",{className:`${ke}-title`},tt),Qe&&ge.createElement("div",{className:`${ke}-description`},Qe))),ge.createElement("div",{className:`${ke}-buttons`},Ke&&ge.createElement(le.ZP,Object.assign({onClick:et,size:"small"},Ae),He||(Ve==null?void 0:Ve.cancelText)),ge.createElement(ie.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,x.nx)(ot)),Be),actionFn:nt,close:rt,prefixCls:Xe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Ye||(Ve==null?void 0:Ve.okText))))};var Me=je=>{const{prefixCls:ke,placement:Be,className:Ae,style:ve}=je,Ue=he(je,["prefixCls","placement","className","style"]),{getPrefixCls:He}=ge.useContext(E.E_),Ye=He("popconfirm",ke),[ot]=me(Ye);return ot(ge.createElement(ae.ZP,{placement:Be,className:Te()(Ye,Ae),style:ve,content:ge.createElement(be,Object.assign({prefixCls:Ye},Ue))}))},_e=function(je,ke){var Be={};for(var Ae in je)Object.prototype.hasOwnProperty.call(je,Ae)&&ke.indexOf(Ae)<0&&(Be[Ae]=je[Ae]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Ae=Object.getOwnPropertySymbols(je);ve<Ae.length;ve++)ke.indexOf(Ae[ve])<0&&Object.prototype.propertyIsEnumerable.call(je,Ae[ve])&&(Be[Ae[ve]]=je[Ae[ve]]);return Be};const Ce=ge.forwardRef((je,ke)=>{var Be,Ae;const{prefixCls:ve,placement:Ue="top",trigger:He="click",okType:Ye="primary",icon:ot=ge.createElement(gt.Z,null),children:Fe,overlayClassName:Ke,onOpenChange:rt,onVisibleChange:nt,overlayStyle:et,styles:Ge,classNames:Xe}=je,Ve=_e(je,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:tt,className:Qe,style:ct,classNames:at,styles:qe}=(0,E.dj)("popconfirm"),[Le,Ne]=(0,xe.Z)(!1,{value:(Be=je.open)!==null&&Be!==void 0?Be:je.visible,defaultValue:(Ae=je.defaultOpen)!==null&&Ae!==void 0?Ae:je.defaultVisible}),te=(Je,st)=>{Ne(Je,!0),nt==null||nt(Je),rt==null||rt(Je,st)},de=Je=>{te(!1,Je)},Re=Je=>{var st;return(st=je.onConfirm)===null||st===void 0?void 0:st.call(void 0,Je)},We=Je=>{var st;te(!1,Je),(st=je.onCancel)===null||st===void 0||st.call(void 0,Je)},we=(Je,st)=>{const{disabled:lt=!1}=je;lt||te(Je,st)},ye=tt("popconfirm",ve),Oe=Te()(ye,Qe,Ke,at.root,Xe==null?void 0:Xe.root),$e=Te()(at.body,Xe==null?void 0:Xe.body),[Ze]=me(ye);return Ze(ge.createElement(oe.Z,Object.assign({},(0,z.Z)(Ve,["title"]),{trigger:He,placement:Ue,onOpenChange:we,open:Le,ref:ke,classNames:{root:Oe,body:$e},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},qe.root),ct),et),Ge==null?void 0:Ge.root),body:Object.assign(Object.assign({},qe.body),Ge==null?void 0:Ge.body)},content:ge.createElement(be,Object.assign({okType:Ye,icon:ot},je,{prefixCls:ye,close:de,onConfirm:Re,onCancel:We})),"data-popover-inject":!0}),Fe))});Ce._InternalPanelDoNotUseOrYouWillBeFired=Me;var Ee=Ce},69106:function(Jt,jt,Ie){"use strict";Ie.d(jt,{aV:function(){return ie},t5:function(){return ee}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(29125),xe=Ie(54500),z=Ie(48755),E=Ie(85074),oe=function(x,ne){var re={};for(var ae in x)Object.prototype.hasOwnProperty.call(x,ae)&&ne.indexOf(ae)<0&&(re[ae]=x[ae]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ae=Object.getOwnPropertySymbols(x);se<ae.length;se++)ne.indexOf(ae[se])<0&&Object.prototype.propertyIsEnumerable.call(x,ae[se])&&(re[ae[se]]=x[ae[se]]);return re};const ie=x=>{let{title:ne,content:re,prefixCls:ae}=x;return!ne&&!re?null:ge.createElement(ge.Fragment,null,ne&&ge.createElement("div",{className:`${ae}-title`},ne),re&&ge.createElement("div",{className:`${ae}-inner-content`},re))},ee=x=>{const{hashId:ne,prefixCls:re,className:ae,style:se,placement:ce="top",title:pe,content:me,children:he}=x,be=(0,xe.Z)(pe),Pe=(0,xe.Z)(me),Me=a()(ne,re,`${re}-pure`,`${re}-placement-${ce}`,ae);return ge.createElement("div",{className:Me,style:se},ge.createElement("div",{className:`${re}-arrow`}),ge.createElement(Te.G,Object.assign({},x,{className:ne,prefixCls:re}),he||ge.createElement(ie,{prefixCls:re,title:be,content:Pe})))},le=x=>{const{prefixCls:ne,className:re}=x,ae=oe(x,["prefixCls","className"]),{getPrefixCls:se}=ge.useContext(z.E_),ce=se("popover",ne),[pe,me,he]=(0,E.Z)(ce);return pe(ge.createElement(ee,Object.assign({},ae,{prefixCls:ce,hashId:me,className:a()(re,he)})))};jt.ZP=le},37639:function(Jt,jt,Ie){"use strict";var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(18929),xe=Ie(10228),z=Ie(54500),E=Ie(86641),oe=Ie(22703),ie=Ie(25399),ee=Ie(69106),le=Ie(48755),x=Ie(85074),ne=function(se,ce){var pe={};for(var me in se)Object.prototype.hasOwnProperty.call(se,me)&&ce.indexOf(me)<0&&(pe[me]=se[me]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,me=Object.getOwnPropertySymbols(se);he<me.length;he++)ce.indexOf(me[he])<0&&Object.prototype.propertyIsEnumerable.call(se,me[he])&&(pe[me[he]]=se[me[he]]);return pe};const ae=ge.forwardRef((se,ce)=>{var pe,me;const{prefixCls:he,title:be,content:Pe,overlayClassName:Me,placement:_e="top",trigger:De="hover",children:Ce,mouseEnterDelay:Ee=.1,mouseLeaveDelay:je=.1,onOpenChange:ke,overlayStyle:Be={},styles:Ae,classNames:ve}=se,Ue=ne(se,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:He,className:Ye,style:ot,classNames:Fe,styles:Ke}=(0,le.dj)("popover"),rt=He("popover",he),[nt,et,Ge]=(0,x.Z)(rt),Xe=He(),Ve=a()(Me,et,Ge,Ye,Fe.root,ve==null?void 0:ve.root),tt=a()(Fe.body,ve==null?void 0:ve.body),[Qe,ct]=(0,Te.Z)(!1,{value:(pe=se.open)!==null&&pe!==void 0?pe:se.visible,defaultValue:(me=se.defaultOpen)!==null&&me!==void 0?me:se.defaultVisible}),at=(de,Re)=>{ct(de,!0),ke==null||ke(de,Re)},qe=de=>{de.keyCode===xe.Z.ESC&&at(!1,de)},Le=de=>{at(de)},Ne=(0,z.Z)(be),te=(0,z.Z)(Pe);return nt(ge.createElement(ie.Z,Object.assign({placement:_e,trigger:De,mouseEnterDelay:Ee,mouseLeaveDelay:je},Ue,{prefixCls:rt,classNames:{root:Ve,body:tt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},Ke.root),ot),Be),Ae==null?void 0:Ae.root),body:Object.assign(Object.assign({},Ke.body),Ae==null?void 0:Ae.body)},ref:ce,open:Qe,onOpenChange:Le,overlay:Ne||te?ge.createElement(ee.aV,{prefixCls:rt,title:Ne,content:te}):null,transitionName:(0,E.m)(Xe,"zoom-big",Ue.transitionName),"data-popover-inject":!0}),(0,oe.Tm)(Ce,{onKeyDown:de=>{var Re,We;ge.isValidElement(Ce)&&((We=Ce==null?void 0:(Re=Ce.props).onKeyDown)===null||We===void 0||We.call(Re,de)),qe(de)}})))});ae._InternalPanelDoNotUseOrYouWillBeFired=ee.ZP,jt.Z=ae},85074:function(Jt,jt,Ie){"use strict";var ge=Ie(63356),gt=Ie(34925),a=Ie(37645),Te=Ie(36305),xe=Ie(34998),z=Ie(16931),E=Ie(51636);const oe=le=>{const{componentCls:x,popoverColor:ne,titleMinWidth:re,fontWeightStrong:ae,innerPadding:se,boxShadowSecondary:ce,colorTextHeading:pe,borderRadiusLG:me,zIndexPopup:he,titleMarginBottom:be,colorBgElevated:Pe,popoverBg:Me,titleBorderBottom:_e,innerContentPadding:De,titlePadding:Ce}=le;return[{[x]:Object.assign(Object.assign({},(0,ge.Wf)(le)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:he,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":Pe,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${x}-content`]:{position:"relative"},[`${x}-inner`]:{backgroundColor:Me,backgroundClip:"padding-box",borderRadius:me,boxShadow:ce,padding:se},[`${x}-title`]:{minWidth:re,marginBottom:be,color:pe,fontWeight:ae,borderBottom:_e,padding:Ce},[`${x}-inner-content`]:{color:ne,padding:De}})},(0,a.ZP)(le,"var(--antd-arrow-background-color)"),{[`${x}-pure`]:{position:"relative",maxWidth:"none",margin:le.sizePopupArrow,display:"inline-block",[`${x}-content`]:{display:"inline-block"}}}]},ie=le=>{const{componentCls:x}=le;return{[x]:xe.i.map(ne=>{const re=le[`${ne}6`];return{[`&${x}-${ne}`]:{"--antd-arrow-background-color":re,[`${x}-inner`]:{backgroundColor:re},[`${x}-arrow`]:{background:"transparent"}}}})}},ee=le=>{const{lineWidth:x,controlHeight:ne,fontHeight:re,padding:ae,wireframe:se,zIndexPopupBase:ce,borderRadiusLG:pe,marginXS:me,lineType:he,colorSplit:be,paddingSM:Pe}=le,Me=ne-re,_e=Me/2,De=Me/2-x,Ce=ae;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:ce+30},(0,Te.w)(le)),(0,a.wZ)({contentRadius:pe,limitVerticalRadius:!0})),{innerPadding:se?0:12,titleMarginBottom:se?0:me,titlePadding:se?`${_e}px ${Ce}px ${De}px`:0,titleBorderBottom:se?`${x}px ${he} ${be}`:"none",innerContentPadding:se?`${Pe}px ${Ce}px`:0})};jt.Z=(0,z.I$)("Popover",le=>{const{colorBgElevated:x,colorText:ne}=le,re=(0,E.mergeToken)(le,{popoverBg:x,popoverColor:ne});return[oe(re),ie(re),(0,gt._y)(re,"zoom-big")]},ee,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return It}});var ge=Ie(59301),gt=Ie(17835),a=Ie(29679),Te=Ie(40001),xe=Ie(19248),z=Ie(99267),E=Ie(92310),oe=Ie.n(E),ie=Ie(2738),ee=Ie(48755),le=Ie(60499),x=Ie(85899),ne=Ie(42244),re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ct=(0,ge.useRef)([]),Ht=(0,ge.useRef)(null);return(0,ge.useEffect)(function(){var Vt=Date.now(),vt=!1;Ct.current.forEach(function(kt){if(kt){vt=!0;var $t=kt.style;$t.transitionDuration=".3s, .3s, .3s, .06s",Ht.current&&Vt-Ht.current<100&&($t.transitionDuration="0s, 0s")}}),vt&&(Ht.current=Date.now())}),Ct.current},se=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ce=function(Ct){var Ht=(0,x.Z)((0,x.Z)({},re),Ct),Vt=Ht.className,vt=Ht.percent,kt=Ht.prefixCls,$t=Ht.strokeColor,Kt=Ht.strokeLinecap,tr=Ht.strokeWidth,sr=Ht.style,gr=Ht.trailColor,br=Ht.trailWidth,fr=Ht.transition,yr=(0,ne.Z)(Ht,se);delete yr.gapPosition;var ir=Array.isArray(vt)?vt:[vt],Yt=Array.isArray($t)?$t:[$t],Qt=ae(),qt=tr/2,Xt=100-tr/2,ur="M ".concat(Kt==="round"?qt:0,",").concat(qt,`
L `).concat(Kt==="round"?Xt:100,",").concat(qt),lr="0 0 100 ".concat(tr),ar=0;return ge.createElement("svg",(0,le.Z)({className:oe()("".concat(kt,"-line"),Vt),viewBox:lr,preserveAspectRatio:"none",style:sr},yr),ge.createElement("path",{className:"".concat(kt,"-line-trail"),d:ur,strokeLinecap:Kt,stroke:gr,strokeWidth:br||tr,fillOpacity:"0"}),ir.map(function(Cr,Ar){var Tr=1;switch(Kt){case"round":Tr=1-tr/100;break;case"square":Tr=1-tr/2/100;break;default:Tr=1;break}var Nr={strokeDasharray:"".concat(Cr*Tr,"px, 100px"),strokeDashoffset:"-".concat(ar,"px"),transition:fr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},jr=Yt[Ar]||Yt[Yt.length-1];return ar+=Cr,ge.createElement("path",{key:Ar,className:"".concat(kt,"-line-path"),d:ur,strokeLinecap:Kt,stroke:jr,strokeWidth:tr,fillOpacity:"0",ref:function(Wr){Qt[Ar]=Wr},style:Nr})}))},pe=ce,me=Ie(43749),he=Ie(72190),be=Ie(47273),Pe=0,Me=(0,be.Z)();function _e(){var ht;return Me?(ht=Pe,Pe+=1):ht="TEST_OR_SSR",ht}var De=function(ht){var Ct=ge.useState(),Ht=(0,he.Z)(Ct,2),Vt=Ht[0],vt=Ht[1];return ge.useEffect(function(){vt("rc_progress_".concat(_e()))},[]),ht||Vt},Ce=function(Ct){var Ht=Ct.bg,Vt=Ct.children;return ge.createElement("div",{style:{width:"100%",height:"100%",background:Ht}},Vt)};function Ee(ht,Ct){return Object.keys(ht).map(function(Ht){var Vt=parseFloat(Ht),vt="".concat(Math.floor(Vt*Ct),"%");return"".concat(ht[Ht]," ").concat(vt)})}var je=ge.forwardRef(function(ht,Ct){var Ht=ht.prefixCls,Vt=ht.color,vt=ht.gradientId,kt=ht.radius,$t=ht.style,Kt=ht.ptg,tr=ht.strokeLinecap,sr=ht.strokeWidth,gr=ht.size,br=ht.gapDegree,fr=Vt&&(0,me.Z)(Vt)==="object",yr=fr?"#FFF":void 0,ir=gr/2,Yt=ge.createElement("circle",{className:"".concat(Ht,"-circle-path"),r:kt,cx:ir,cy:ir,stroke:yr,strokeLinecap:tr,strokeWidth:sr,opacity:Kt===0?0:1,style:$t,ref:Ct});if(!fr)return Yt;var Qt="".concat(vt,"-conic"),qt=br?"".concat(180+br/2,"deg"):"0deg",Xt=Ee(Vt,(360-br)/360),ur=Ee(Vt,1),lr="conic-gradient(from ".concat(qt,", ").concat(Xt.join(", "),")"),ar="linear-gradient(to ".concat(br?"bottom":"top",", ").concat(ur.join(", "),")");return ge.createElement(ge.Fragment,null,ge.createElement("mask",{id:Qt},Yt),ge.createElement("foreignObject",{x:0,y:0,width:gr,height:gr,mask:"url(#".concat(Qt,")")},ge.createElement(Ce,{bg:ar},ge.createElement(Ce,{bg:lr}))))}),ke=je,Be=100,Ae=function(Ct,Ht,Vt,vt,kt,$t,Kt,tr,sr,gr){var br=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fr=Vt/100*360*((360-$t)/360),yr=$t===0?0:{bottom:0,top:180,left:90,right:-90}[Kt],ir=(100-vt)/100*Ht;sr==="round"&&vt!==100&&(ir+=gr/2,ir>=Ht&&(ir=Ht-.01));var Yt=Be/2;return{stroke:typeof tr=="string"?tr:void 0,strokeDasharray:"".concat(Ht,"px ").concat(Ct),strokeDashoffset:ir+br,transform:"rotate(".concat(kt+fr+yr,"deg)"),transformOrigin:"".concat(Yt,"px ").concat(Yt,"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}},ve=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ue(ht){var Ct=ht!=null?ht:[];return Array.isArray(Ct)?Ct:[Ct]}var He=function(Ct){var Ht=(0,x.Z)((0,x.Z)({},re),Ct),Vt=Ht.id,vt=Ht.prefixCls,kt=Ht.steps,$t=Ht.strokeWidth,Kt=Ht.trailWidth,tr=Ht.gapDegree,sr=tr===void 0?0:tr,gr=Ht.gapPosition,br=Ht.trailColor,fr=Ht.strokeLinecap,yr=Ht.style,ir=Ht.className,Yt=Ht.strokeColor,Qt=Ht.percent,qt=(0,ne.Z)(Ht,ve),Xt=Be/2,ur=De(Vt),lr="".concat(ur,"-gradient"),ar=Xt-$t/2,Cr=Math.PI*2*ar,Ar=sr>0?90+sr/2:-90,Tr=Cr*((360-sr)/360),Nr=(0,me.Z)(kt)==="object"?kt:{count:kt,gap:2},jr=Nr.count,Zr=Nr.gap,Wr=Ue(Qt),er=Ue(Yt),or=er.find(function(wt){return wt&&(0,me.Z)(wt)==="object"}),Ir=or&&(0,me.Z)(or)==="object",xr=Ir?"butt":fr,Pt=Ae(Cr,Tr,0,100,Ar,sr,gr,br,xr,$t),Lt=ae(),bt=function(){var Nt=0;return Wr.map(function(pt,Bt){var Wt=er[Bt]||er[er.length-1],Gt=Ae(Cr,Tr,Nt,pt,Ar,sr,gr,Wt,xr,$t);return Nt+=pt,ge.createElement(ke,{key:Bt,color:Wt,ptg:pt,radius:ar,prefixCls:vt,gradientId:lr,style:Gt,strokeLinecap:xr,strokeWidth:$t,gapDegree:sr,ref:function(Rt){Lt[Bt]=Rt},size:Be})}).reverse()},Mt=function(){var Nt=Math.round(jr*(Wr[0]/100)),pt=100/jr,Bt=0;return new Array(jr).fill(null).map(function(Wt,Gt){var zt=Gt<=Nt-1?er[0]:br,Rt=zt&&(0,me.Z)(zt)==="object"?"url(#".concat(lr,")"):void 0,_t=Ae(Cr,Tr,Bt,pt,Ar,sr,gr,zt,"butt",$t,Zr);return Bt+=(Tr-_t.strokeDashoffset+Zr)*100/Tr,ge.createElement("circle",{key:Gt,className:"".concat(vt,"-circle-path"),r:ar,cx:Xt,cy:Xt,stroke:Rt,strokeWidth:$t,opacity:1,style:_t,ref:function(dr){Lt[Gt]=dr}})})};return ge.createElement("svg",(0,le.Z)({className:oe()("".concat(vt,"-circle"),ir),viewBox:"0 0 ".concat(Be," ").concat(Be),style:yr,id:Vt,role:"presentation"},qt),!jr&&ge.createElement("circle",{className:"".concat(vt,"-circle-trail"),r:ar,cx:Xt,cy:Xt,stroke:br,strokeLinecap:xr,strokeWidth:Kt||$t,style:Pt}),jr?Mt():bt())},Ye=He,ot={Line:pe,Circle:Ye},Fe=Ie(25399),Ke=Ie(68361);function rt(ht){return!ht||ht<0?0:ht>100?100:ht}function nt(ht){let{success:Ct,successPercent:Ht}=ht,Vt=Ht;return Ct&&"progress"in Ct&&(Vt=Ct.progress),Ct&&"percent"in Ct&&(Vt=Ct.percent),Vt}const et=ht=>{let{percent:Ct,success:Ht,successPercent:Vt}=ht;const vt=rt(nt({success:Ht,successPercent:Vt}));return[vt,rt(rt(Ct)-vt)]},Ge=ht=>{let{success:Ct={},strokeColor:Ht}=ht;const{strokeColor:Vt}=Ct;return[Vt||Ke.presetPrimaryColors.green,Ht||null]},Xe=(ht,Ct,Ht)=>{var Vt,vt,kt,$t;let Kt=-1,tr=-1;if(Ct==="step"){const sr=Ht.steps,gr=Ht.strokeWidth;typeof ht=="string"||typeof ht=="undefined"?(Kt=ht==="small"?2:14,tr=gr!=null?gr:8):typeof ht=="number"?[Kt,tr]=[ht,ht]:[Kt=14,tr=8]=Array.isArray(ht)?ht:[ht.width,ht.height],Kt*=sr}else if(Ct==="line"){const sr=Ht==null?void 0:Ht.strokeWidth;typeof ht=="string"||typeof ht=="undefined"?tr=sr||(ht==="small"?6:8):typeof ht=="number"?[Kt,tr]=[ht,ht]:[Kt=-1,tr=8]=Array.isArray(ht)?ht:[ht.width,ht.height]}else(Ct==="circle"||Ct==="dashboard")&&(typeof ht=="string"||typeof ht=="undefined"?[Kt,tr]=ht==="small"?[60,60]:[120,120]:typeof ht=="number"?[Kt,tr]=[ht,ht]:Array.isArray(ht)&&(Kt=(vt=(Vt=ht[0])!==null&&Vt!==void 0?Vt:ht[1])!==null&&vt!==void 0?vt:120,tr=($t=(kt=ht[0])!==null&&kt!==void 0?kt:ht[1])!==null&&$t!==void 0?$t:120));return[Kt,tr]},Ve=3,tt=ht=>Ve/ht*100;var ct=ht=>{const{prefixCls:Ct,trailColor:Ht=null,strokeLinecap:Vt="round",gapPosition:vt,gapDegree:kt,width:$t=120,type:Kt,children:tr,success:sr,size:gr=$t,steps:br}=ht,[fr,yr]=Xe(gr,"circle");let{strokeWidth:ir}=ht;ir===void 0&&(ir=Math.max(tt(fr),6));const Yt={width:fr,height:yr,fontSize:fr*.15+6},Qt=ge.useMemo(()=>{if(kt||kt===0)return kt;if(Kt==="dashboard")return 75},[kt,Kt]),qt=et(ht),Xt=vt||Kt==="dashboard"&&"bottom"||void 0,ur=Object.prototype.toString.call(ht.strokeColor)==="[object Object]",lr=Ge({success:sr,strokeColor:ht.strokeColor}),ar=oe()(`${Ct}-inner`,{[`${Ct}-circle-gradient`]:ur}),Cr=ge.createElement(Ye,{steps:br,percent:br?qt[1]:qt,strokeWidth:ir,trailWidth:ir,strokeColor:br?lr[1]:lr,strokeLinecap:Vt,trailColor:Ht,prefixCls:Ct,gapDegree:Qt,gapPosition:Xt}),Ar=fr<=20,Tr=ge.createElement("div",{className:ar,style:Yt},Cr,!Ar&&tr);return Ar?ge.createElement(Fe.Z,{title:tr},Tr):Tr},at=Ie(36237),qe=Ie(63356),Le=Ie(16931),Ne=Ie(51636);const te="--progress-line-stroke-color",de="--progress-percent",Re=ht=>{const Ct=ht?"100%":"-100%";return new at.Keyframes(`antProgress${ht?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ct}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ct}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},We=ht=>{const{componentCls:Ct,iconCls:Ht}=ht;return{[Ct]:Object.assign(Object.assign({},(0,qe.Wf)(ht)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ht.fontSize},[`${Ct}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Ct}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:ht.remainingColor,borderRadius:ht.lineBorderRadius},[`${Ct}-inner:not(${Ct}-circle-gradient)`]:{[`${Ct}-circle-path`]:{stroke:ht.defaultColor}},[`${Ct}-success-bg, ${Ct}-bg`]:{position:"relative",background:ht.defaultColor,borderRadius:ht.lineBorderRadius,transition:`all ${ht.motionDurationSlow} ${ht.motionEaseInOutCirc}`},[`${Ct}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Ct}-text`]:{width:"max-content",marginInlineStart:0,marginTop:ht.marginXXS}},[`${Ct}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${de}) * 100%)`,display:"block"},[`&${Ct}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Ct}-text-inner`]:{color:ht.colorWhite,[`&${Ct}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Ct}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ht.colorSuccess},[`${Ct}-text`]:{display:"inline-block",marginInlineStart:ht.marginXS,color:ht.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ht]:{fontSize:ht.fontSize},[`&${Ct}-text-outer`]:{width:"max-content"},[`&${Ct}-text-outer${Ct}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:ht.marginXS}},[`${Ct}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,at.unit)(ht.paddingXXS)}`,[`&${Ct}-text-start`]:{justifyContent:"start"},[`&${Ct}-text-end`]:{justifyContent:"end"}},[`&${Ct}-status-active`]:{[`${Ct}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ht.colorBgContainer,borderRadius:ht.lineBorderRadius,opacity:0,animationName:Re(),animationDuration:ht.progressActiveMotionDuration,animationTimingFunction:ht.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ct}-rtl${Ct}-status-active`]:{[`${Ct}-bg::before`]:{animationName:Re(!0)}},[`&${Ct}-status-exception`]:{[`${Ct}-bg`]:{backgroundColor:ht.colorError},[`${Ct}-text`]:{color:ht.colorError}},[`&${Ct}-status-exception ${Ct}-inner:not(${Ct}-circle-gradient)`]:{[`${Ct}-circle-path`]:{stroke:ht.colorError}},[`&${Ct}-status-success`]:{[`${Ct}-bg`]:{backgroundColor:ht.colorSuccess},[`${Ct}-text`]:{color:ht.colorSuccess}},[`&${Ct}-status-success ${Ct}-inner:not(${Ct}-circle-gradient)`]:{[`${Ct}-circle-path`]:{stroke:ht.colorSuccess}}})}},we=ht=>{const{componentCls:Ct,iconCls:Ht}=ht;return{[Ct]:{[`${Ct}-circle-trail`]:{stroke:ht.remainingColor},[`&${Ct}-circle ${Ct}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ct}-circle ${Ct}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ht.circleTextColor,fontSize:ht.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ht]:{fontSize:ht.circleIconFontSize}},[`${Ct}-circle&-status-exception`]:{[`${Ct}-text`]:{color:ht.colorError}},[`${Ct}-circle&-status-success`]:{[`${Ct}-text`]:{color:ht.colorSuccess}}},[`${Ct}-inline-circle`]:{lineHeight:1,[`${Ct}-inner`]:{verticalAlign:"bottom"}}}},ye=ht=>{const{componentCls:Ct}=ht;return{[Ct]:{[`${Ct}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ht.progressStepMinWidth,marginInlineEnd:ht.progressStepMarginInlineEnd,backgroundColor:ht.remainingColor,transition:`all ${ht.motionDurationSlow}`,"&-active":{backgroundColor:ht.defaultColor}}}}}},Oe=ht=>{const{componentCls:Ct,iconCls:Ht}=ht;return{[Ct]:{[`${Ct}-small&-line, ${Ct}-small&-line ${Ct}-text ${Ht}`]:{fontSize:ht.fontSizeSM}}}},$e=ht=>({circleTextColor:ht.colorText,defaultColor:ht.colorInfo,remainingColor:ht.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${ht.fontSize/ht.fontSizeSM}em`});var Ze=(0,Le.I$)("Progress",ht=>{const Ct=ht.calc(ht.marginXXS).div(2).equal(),Ht=(0,Ne.mergeToken)(ht,{progressStepMarginInlineEnd:Ct,progressStepMinWidth:Ct,progressActiveMotionDuration:"2.4s"});return[We(Ht),we(Ht),ye(Ht),Oe(Ht)]},$e),Je=function(ht,Ct){var Ht={};for(var Vt in ht)Object.prototype.hasOwnProperty.call(ht,Vt)&&Ct.indexOf(Vt)<0&&(Ht[Vt]=ht[Vt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Vt=Object.getOwnPropertySymbols(ht);vt<Vt.length;vt++)Ct.indexOf(Vt[vt])<0&&Object.prototype.propertyIsEnumerable.call(ht,Vt[vt])&&(Ht[Vt[vt]]=ht[Vt[vt]]);return Ht};const st=ht=>{let Ct=[];return Object.keys(ht).forEach(Ht=>{const Vt=parseFloat(Ht.replace(/%/g,""));Number.isNaN(Vt)||Ct.push({key:Vt,value:ht[Ht]})}),Ct=Ct.sort((Ht,Vt)=>Ht.key-Vt.key),Ct.map(Ht=>{let{key:Vt,value:vt}=Ht;return`${vt} ${Vt}%`}).join(", ")},lt=(ht,Ct)=>{const{from:Ht=Ke.presetPrimaryColors.blue,to:Vt=Ke.presetPrimaryColors.blue,direction:vt=Ct==="rtl"?"to left":"to right"}=ht,kt=Je(ht,["from","to","direction"]);if(Object.keys(kt).length!==0){const Kt=st(kt),tr=`linear-gradient(${vt}, ${Kt})`;return{background:tr,[te]:tr}}const $t=`linear-gradient(${vt}, ${Ht}, ${Vt})`;return{background:$t,[te]:$t}};var Tt=ht=>{const{prefixCls:Ct,direction:Ht,percent:Vt,size:vt,strokeWidth:kt,strokeColor:$t,strokeLinecap:Kt="round",children:tr,trailColor:sr=null,percentPosition:gr,success:br}=ht,{align:fr,type:yr}=gr,ir=$t&&typeof $t!="string"?lt($t,Ht):{[te]:$t,background:$t},Yt=Kt==="square"||Kt==="butt"?0:void 0,Qt=vt!=null?vt:[-1,kt||(vt==="small"?6:8)],[qt,Xt]=Xe(Qt,"line",{strokeWidth:kt}),ur={backgroundColor:sr||void 0,borderRadius:Yt},lr=Object.assign(Object.assign({width:`${rt(Vt)}%`,height:Xt,borderRadius:Yt},ir),{[de]:rt(Vt)/100}),ar=nt(ht),Cr={width:`${rt(ar)}%`,height:Xt,borderRadius:Yt,backgroundColor:br==null?void 0:br.strokeColor},Ar={width:qt<0?"100%":qt},Tr=ge.createElement("div",{className:`${Ct}-inner`,style:ur},ge.createElement("div",{className:oe()(`${Ct}-bg`,`${Ct}-bg-${yr}`),style:lr},yr==="inner"&&tr),ar!==void 0&&ge.createElement("div",{className:`${Ct}-success-bg`,style:Cr})),Nr=yr==="outer"&&fr==="start",jr=yr==="outer"&&fr==="end";return yr==="outer"&&fr==="center"?ge.createElement("div",{className:`${Ct}-layout-bottom`},Tr,tr):ge.createElement("div",{className:`${Ct}-outer`,style:Ar},Nr&&tr,Tr,jr&&tr)},Ot=ht=>{const{size:Ct,steps:Ht,rounding:Vt=Math.round,percent:vt=0,strokeWidth:kt=8,strokeColor:$t,trailColor:Kt=null,prefixCls:tr,children:sr}=ht,gr=Vt(Ht*(vt/100)),br=Ct==="small"?2:14,fr=Ct!=null?Ct:[br,kt],[yr,ir]=Xe(fr,"step",{steps:Ht,strokeWidth:kt}),Yt=yr/Ht,Qt=Array.from({length:Ht});for(let qt=0;qt<Ht;qt++){const Xt=Array.isArray($t)?$t[qt]:$t;Qt[qt]=ge.createElement("div",{key:qt,className:oe()(`${tr}-steps-item`,{[`${tr}-steps-item-active`]:qt<=gr-1}),style:{backgroundColor:qt<=gr-1?Xt:Kt,width:Yt,height:ir}})}return ge.createElement("div",{className:`${tr}-steps-outer`},Qt,sr)},yt=function(ht,Ct){var Ht={};for(var Vt in ht)Object.prototype.hasOwnProperty.call(ht,Vt)&&Ct.indexOf(Vt)<0&&(Ht[Vt]=ht[Vt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Vt=Object.getOwnPropertySymbols(ht);vt<Vt.length;vt++)Ct.indexOf(Vt[vt])<0&&Object.prototype.propertyIsEnumerable.call(ht,Vt[vt])&&(Ht[Vt[vt]]=ht[Vt[vt]]);return Ht};const Dt=null,Et=["normal","exception","active","success"];var At=ge.forwardRef((ht,Ct)=>{const{prefixCls:Ht,className:Vt,rootClassName:vt,steps:kt,strokeColor:$t,percent:Kt=0,size:tr="default",showInfo:sr=!0,type:gr="line",status:br,format:fr,style:yr,percentPosition:ir={}}=ht,Yt=yt(ht,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Qt="end",type:qt="outer"}=ir,Xt=Array.isArray($t)?$t[0]:$t,ur=typeof $t=="string"||Array.isArray($t)?$t:void 0,lr=ge.useMemo(()=>{if(Xt){const bt=typeof Xt=="string"?Xt:Object.values(Xt)[0];return new gt.FastColor(bt).isLight()}return!1},[$t]),ar=ge.useMemo(()=>{var bt,Mt;const wt=nt(ht);return parseInt(wt!==void 0?(bt=wt!=null?wt:0)===null||bt===void 0?void 0:bt.toString():(Mt=Kt!=null?Kt:0)===null||Mt===void 0?void 0:Mt.toString(),10)},[Kt,ht.success,ht.successPercent]),Cr=ge.useMemo(()=>!Et.includes(br)&&ar>=100?"success":br||"normal",[br,ar]),{getPrefixCls:Ar,direction:Tr,progress:Nr}=ge.useContext(ee.E_),jr=Ar("progress",Ht),[Zr,Wr,er]=Ze(jr),or=gr==="line",Ir=or&&!kt,xr=ge.useMemo(()=>{if(!sr)return null;const bt=nt(ht);let Mt;const wt=fr||(pt=>`${pt}%`),Nt=or&&lr&&qt==="inner";return qt==="inner"||fr||Cr!=="exception"&&Cr!=="success"?Mt=wt(rt(Kt),rt(bt)):Cr==="exception"?Mt=or?ge.createElement(xe.Z,null):ge.createElement(z.Z,null):Cr==="success"&&(Mt=or?ge.createElement(a.Z,null):ge.createElement(Te.Z,null)),ge.createElement("span",{className:oe()(`${jr}-text`,{[`${jr}-text-bright`]:Nt,[`${jr}-text-${Qt}`]:Ir,[`${jr}-text-${qt}`]:Ir}),title:typeof Mt=="string"?Mt:void 0},Mt)},[sr,Kt,ar,Cr,gr,jr,fr]);let Pt;gr==="line"?Pt=kt?ge.createElement(Ot,Object.assign({},ht,{strokeColor:ur,prefixCls:jr,steps:typeof kt=="object"?kt.count:kt}),xr):ge.createElement(Tt,Object.assign({},ht,{strokeColor:Xt,prefixCls:jr,direction:Tr,percentPosition:{align:Qt,type:qt}}),xr):(gr==="circle"||gr==="dashboard")&&(Pt=ge.createElement(ct,Object.assign({},ht,{strokeColor:Xt,prefixCls:jr,progressStatus:Cr}),xr));const Lt=oe()(jr,`${jr}-status-${Cr}`,{[`${jr}-${gr==="dashboard"&&"circle"||gr}`]:gr!=="line",[`${jr}-inline-circle`]:gr==="circle"&&Xe(tr,"circle")[0]<=20,[`${jr}-line`]:Ir,[`${jr}-line-align-${Qt}`]:Ir,[`${jr}-line-position-${qt}`]:Ir,[`${jr}-steps`]:kt,[`${jr}-show-info`]:sr,[`${jr}-${tr}`]:typeof tr=="string",[`${jr}-rtl`]:Tr==="rtl"},Nr==null?void 0:Nr.className,Vt,vt,Wr,er);return Zr(ge.createElement("div",Object.assign({ref:Ct,style:Object.assign(Object.assign({},Nr==null?void 0:Nr.style),yr),className:Lt,role:"progressbar","aria-valuenow":ar,"aria-valuemin":0,"aria-valuemax":100},(0,ie.Z)(Yt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Pt))}),It=At},63139:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return et}});var ge=Ie(59301),gt=Ie(60499),a={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"},Te=a,xe=Ie(7657),z=function(Xe,Ve){return ge.createElement(xe.Z,(0,gt.Z)({},Xe,{ref:Ve,icon:Te}))},E=ge.forwardRef(z),oe=E,ie=Ie(92310),ee=Ie.n(ie),le=Ie(18642),x=Ie(72190),ne=Ie(42244),re=Ie(18929),ae=Ie(10228),se=Ie(26112);function ce(Ge,Xe){var Ve=Ge.disabled,tt=Ge.prefixCls,Qe=Ge.character,ct=Ge.characterRender,at=Ge.index,qe=Ge.count,Le=Ge.value,Ne=Ge.allowHalf,te=Ge.focused,de=Ge.onHover,Re=Ge.onClick,We=function(lt){de(lt,at)},we=function(lt){Re(lt,at)},ye=function(lt){lt.keyCode===ae.Z.ENTER&&Re(lt,at)},Oe=at+1,$e=new Set([tt]);Le===0&&at===0&&te?$e.add("".concat(tt,"-focused")):Ne&&Le+.5>=Oe&&Le<Oe?($e.add("".concat(tt,"-half")),$e.add("".concat(tt,"-active")),te&&$e.add("".concat(tt,"-focused"))):(Oe<=Le?$e.add("".concat(tt,"-full")):$e.add("".concat(tt,"-zero")),Oe===Le&&te&&$e.add("".concat(tt,"-focused")));var Ze=typeof Qe=="function"?Qe(Ge):Qe,Je=ge.createElement("li",{className:ee()(Array.from($e)),ref:Xe},ge.createElement("div",{onClick:Ve?null:we,onKeyDown:Ve?null:ye,onMouseMove:Ve?null:We,role:"radio","aria-checked":Le>at?"true":"false","aria-posinset":at+1,"aria-setsize":qe,tabIndex:Ve?-1:0},ge.createElement("div",{className:"".concat(tt,"-first")},Ze),ge.createElement("div",{className:"".concat(tt,"-second")},Ze)));return ct&&(Je=ct(Je,Ge)),Je}var pe=ge.forwardRef(ce);function me(){var Ge=ge.useRef({});function Xe(tt){return Ge.current[tt]}function Ve(tt){return function(Qe){Ge.current[tt]=Qe}}return[Xe,Ve]}function he(Ge){var Xe=Ge.pageXOffset,Ve="scrollLeft";if(typeof Xe!="number"){var tt=Ge.document;Xe=tt.documentElement[Ve],typeof Xe!="number"&&(Xe=tt.body[Ve])}return Xe}function be(Ge){var Xe,Ve,tt=Ge.ownerDocument,Qe=tt.body,ct=tt&&tt.documentElement,at=Ge.getBoundingClientRect();return Xe=at.left,Ve=at.top,Xe-=ct.clientLeft||Qe.clientLeft||0,Ve-=ct.clientTop||Qe.clientTop||0,{left:Xe,top:Ve}}function Pe(Ge){var Xe=be(Ge),Ve=Ge.ownerDocument,tt=Ve.defaultView||Ve.parentWindow;return Xe.left+=he(tt),Xe.left}var Me=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function _e(Ge,Xe){var Ve=Ge.prefixCls,tt=Ve===void 0?"rc-rate":Ve,Qe=Ge.className,ct=Ge.defaultValue,at=Ge.value,qe=Ge.count,Le=qe===void 0?5:qe,Ne=Ge.allowHalf,te=Ne===void 0?!1:Ne,de=Ge.allowClear,Re=de===void 0?!0:de,We=Ge.keyboard,we=We===void 0?!0:We,ye=Ge.character,Oe=ye===void 0?"\u2605":ye,$e=Ge.characterRender,Ze=Ge.disabled,Je=Ge.direction,st=Je===void 0?"ltr":Je,lt=Ge.tabIndex,ft=lt===void 0?0:lt,Tt=Ge.autoFocus,St=Ge.onHoverChange,Ot=Ge.onChange,yt=Ge.onFocus,Dt=Ge.onBlur,Et=Ge.onKeyDown,xt=Ge.onMouseLeave,At=(0,ne.Z)(Ge,Me),It=me(),ht=(0,x.Z)(It,2),Ct=ht[0],Ht=ht[1],Vt=ge.useRef(null),vt=function(){if(!Ze){var xr;(xr=Vt.current)===null||xr===void 0||xr.focus()}};ge.useImperativeHandle(Xe,function(){return{focus:vt,blur:function(){if(!Ze){var xr;(xr=Vt.current)===null||xr===void 0||xr.blur()}}}});var kt=(0,re.Z)(ct||0,{value:at}),$t=(0,x.Z)(kt,2),Kt=$t[0],tr=$t[1],sr=(0,re.Z)(null),gr=(0,x.Z)(sr,2),br=gr[0],fr=gr[1],yr=function(xr,Pt){var Lt=st==="rtl",bt=xr+1;if(te){var Mt=Ct(xr),wt=Pe(Mt),Nt=Mt.clientWidth;(Lt&&Pt-wt>Nt/2||!Lt&&Pt-wt<Nt/2)&&(bt-=.5)}return bt},ir=function(xr){tr(xr),Ot==null||Ot(xr)},Yt=ge.useState(!1),Qt=(0,x.Z)(Yt,2),qt=Qt[0],Xt=Qt[1],ur=function(){Xt(!0),yt==null||yt()},lr=function(){Xt(!1),Dt==null||Dt()},ar=ge.useState(null),Cr=(0,x.Z)(ar,2),Ar=Cr[0],Tr=Cr[1],Nr=function(xr,Pt){var Lt=yr(Pt,xr.pageX);Lt!==br&&(Tr(Lt),fr(null)),St==null||St(Lt)},jr=function(xr){Ze||(Tr(null),fr(null),St==null||St(void 0)),xr&&(xt==null||xt(xr))},Zr=function(xr,Pt){var Lt=yr(Pt,xr.pageX),bt=!1;Re&&(bt=Lt===Kt),jr(),ir(bt?0:Lt),fr(bt?Lt:null)},Wr=function(xr){var Pt=xr.keyCode,Lt=st==="rtl",bt=te?.5:1;we&&(Pt===ae.Z.RIGHT&&Kt<Le&&!Lt?(ir(Kt+bt),xr.preventDefault()):Pt===ae.Z.LEFT&&Kt>0&&!Lt||Pt===ae.Z.RIGHT&&Kt>0&&Lt?(ir(Kt-bt),xr.preventDefault()):Pt===ae.Z.LEFT&&Kt<Le&&Lt&&(ir(Kt+bt),xr.preventDefault())),Et==null||Et(xr)};ge.useEffect(function(){Tt&&!Ze&&vt()},[]);var er=new Array(Le).fill(0).map(function(Ir,xr){return ge.createElement(pe,{ref:Ht(xr),index:xr,count:Le,disabled:Ze,prefixCls:"".concat(tt,"-star"),allowHalf:te,value:Ar===null?Kt:Ar,onClick:Zr,onHover:Nr,key:Ir||xr,character:Oe,characterRender:$e,focused:qt})}),or=ee()(tt,Qe,(0,le.Z)((0,le.Z)({},"".concat(tt,"-disabled"),Ze),"".concat(tt,"-rtl"),st==="rtl"));return ge.createElement("ul",(0,gt.Z)({className:or,onMouseLeave:jr,tabIndex:Ze?-1:ft,onFocus:Ze?null:ur,onBlur:Ze?null:lr,onKeyDown:Ze?null:Wr,ref:Vt},(0,se.Z)(At,{aria:!0,data:!0,attr:!0})),er)}var De=ge.forwardRef(_e),Ce=De,Ee=Ie(48755),je=Ie(25399),ke=Ie(36237),Be=Ie(63356),Ae=Ie(16931),ve=Ie(51636);const Ue=Ge=>{const{componentCls:Xe}=Ge;return{[`${Xe}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ge.marginXS},"> div":{transition:`all ${Ge.motionDurationMid}, outline 0s`,"&:hover":{transform:Ge.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,ke.unit)(Ge.lineWidth)} dashed ${Ge.starColor}`,transform:Ge.starHoverScale}},"&-first, &-second":{color:Ge.starBg,transition:`all ${Ge.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Xe}-star-first, &-half ${Xe}-star-second`]:{opacity:1},[`&-half ${Xe}-star-first, &-full ${Xe}-star-second`]:{color:"inherit"}}}},He=Ge=>({[`&-rtl${Ge.componentCls}`]:{direction:"rtl"}}),Ye=Ge=>{const{componentCls:Xe}=Ge;return{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(Ge)),{display:"inline-block",margin:0,padding:0,color:Ge.starColor,fontSize:Ge.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Xe} ${Xe}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ue(Ge)),He(Ge))}},ot=Ge=>({starColor:Ge.yellow6,starSize:Ge.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ge.colorFillContent});var Fe=(0,Ae.I$)("Rate",Ge=>{const Xe=(0,ve.mergeToken)(Ge,{});return[Ye(Xe)]},ot),Ke=Ie(2171),rt=function(Ge,Xe){var Ve={};for(var tt in Ge)Object.prototype.hasOwnProperty.call(Ge,tt)&&Xe.indexOf(tt)<0&&(Ve[tt]=Ge[tt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,tt=Object.getOwnPropertySymbols(Ge);Qe<tt.length;Qe++)Xe.indexOf(tt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Ge,tt[Qe])&&(Ve[tt[Qe]]=Ge[tt[Qe]]);return Ve},et=ge.forwardRef((Ge,Xe)=>{const{prefixCls:Ve,className:tt,rootClassName:Qe,style:ct,tooltips:at,character:qe=ge.createElement(oe,null),disabled:Le}=Ge,Ne=rt(Ge,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(lt,ft)=>{let{index:Tt}=ft;return at?ge.createElement(je.Z,{title:at[Tt]},lt):lt},{getPrefixCls:de,direction:Re,rate:We}=ge.useContext(Ee.E_),we=de("rate",Ve),[ye,Oe,$e]=Fe(we),Ze=Object.assign(Object.assign({},We==null?void 0:We.style),ct),Je=ge.useContext(Ke.Z),st=Le!=null?Le:Je;return ye(ge.createElement(Ce,Object.assign({ref:Xe,character:qe,characterRender:te,disabled:st},Ne,{className:ee()(tt,Qe,Oe,$e,We==null?void 0:We.className),style:Ze,prefixCls:we,direction:Re})))})},82326:function(Jt,jt,Ie){"use strict";var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(37463),xe=Ie(2738),z=Ie(75030),E=Ie(86641),oe=Ie(45915),ie=Ie(82855),ee=Ie(48755),le=Ie(38406),x=Ie(2171),ne=Ie(83397),re=Ie(31756),ae=Ie(56553),se=Ie(24971),ce=Ie(70045),pe=Ie(57700),me=Ie(1722),he=Ie(90376),be=Ie(68525),Pe=Ie(90005),Me=function(je,ke){var Be={};for(var Ae in je)Object.prototype.hasOwnProperty.call(je,Ae)&&ke.indexOf(Ae)<0&&(Be[Ae]=je[Ae]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Ae=Object.getOwnPropertySymbols(je);ve<Ae.length;ve++)ke.indexOf(Ae[ve])<0&&Object.prototype.propertyIsEnumerable.call(je,Ae[ve])&&(Be[Ae[ve]]=je[Ae[ve]]);return Be};const _e="SECRET_COMBOBOX_MODE_DO_NOT_USE",De=(je,ke)=>{var Be;const{prefixCls:Ae,bordered:ve,className:Ue,rootClassName:He,getPopupContainer:Ye,popupClassName:ot,dropdownClassName:Fe,listHeight:Ke=256,placement:rt,listItemHeight:nt,size:et,disabled:Ge,notFoundContent:Xe,status:Ve,builtinPlacements:tt,dropdownMatchSelectWidth:Qe,popupMatchSelectWidth:ct,direction:at,style:qe,allowClear:Le,variant:Ne,dropdownStyle:te,transitionName:de,tagRender:Re,maxCount:We,prefix:we}=je,ye=Me(je,["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:Oe,getPrefixCls:$e,renderEmpty:Ze,direction:Je,virtual:st,popupMatchSelectWidth:lt,popupOverflow:ft}=ge.useContext(ee.E_),Tt=(0,ee.dj)("select"),[,St]=(0,pe.ZP)(),Ot=nt!=null?nt:St==null?void 0:St.controlHeight,yt=$e("select",Ae),Dt=$e(),Et=at!=null?at:Je,{compactSize:xt,compactItemClassnames:At}=(0,ce.ri)(yt,Et),[It,ht]=(0,se.Z)("select",Ne,ve),Ct=(0,ne.Z)(yt),[Ht,Vt,vt]=(0,he.Z)(yt,Ct),kt=ge.useMemo(()=>{const{mode:Wr}=je;if(Wr!=="combobox")return Wr===_e?"combobox":Wr},[je.mode]),$t=kt==="multiple"||kt==="tags",Kt=(0,Pe.Z)(je.suffixIcon,je.showArrow),tr=(Be=ct!=null?ct:Qe)!==null&&Be!==void 0?Be:lt,{status:sr,hasFeedback:gr,isFormItemInput:br,feedbackIcon:fr}=ge.useContext(ae.aM),yr=(0,ie.F)(sr,Ve);let ir;Xe!==void 0?ir=Xe:kt==="combobox"?ir=null:ir=(Ze==null?void 0:Ze("Select"))||ge.createElement(le.Z,{componentName:"Select"});const{suffixIcon:Yt,itemIcon:Qt,removeIcon:qt,clearIcon:Xt}=(0,be.Z)(Object.assign(Object.assign({},ye),{multiple:$t,hasFeedback:gr,feedbackIcon:fr,showSuffixIcon:Kt,prefixCls:yt,componentName:"Select"})),ur=Le===!0?{clearIcon:Xt}:Le,lr=(0,xe.Z)(ye,["suffixIcon","itemIcon"]),ar=a()(ot||Fe,{[`${yt}-dropdown-${Et}`]:Et==="rtl"},He,vt,Ct,Vt),Cr=(0,re.Z)(Wr=>{var er;return(er=et!=null?et:xt)!==null&&er!==void 0?er:Wr}),Ar=ge.useContext(x.Z),Tr=Ge!=null?Ge:Ar,Nr=a()({[`${yt}-lg`]:Cr==="large",[`${yt}-sm`]:Cr==="small",[`${yt}-rtl`]:Et==="rtl",[`${yt}-${It}`]:ht,[`${yt}-in-form-item`]:br},(0,ie.Z)(yt,yr,gr),At,Tt.className,Ue,He,vt,Ct,Vt),jr=ge.useMemo(()=>rt!==void 0?rt:Et==="rtl"?"bottomRight":"bottomLeft",[rt,Et]),[Zr]=(0,z.Cn)("SelectLike",te==null?void 0:te.zIndex);return Ht(ge.createElement(Te.ZP,Object.assign({ref:ke,virtual:st,showSearch:Tt.showSearch},lr,{style:Object.assign(Object.assign({},Tt.style),qe),dropdownMatchSelectWidth:tr,transitionName:(0,E.m)(Dt,"slide-up",de),builtinPlacements:(0,me.Z)(tt,ft),listHeight:Ke,listItemHeight:Ot,mode:kt,prefixCls:yt,placement:jr,direction:Et,prefix:we,suffixIcon:Yt,menuItemSelectedIcon:Qt,removeIcon:qt,allowClear:ur,notFoundContent:ir,className:Nr,getPopupContainer:Ye||Oe,dropdownClassName:ar,disabled:Tr,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Zr}),maxCount:$t?We:void 0,tagRender:$t?Re:void 0})))},Ce=ge.forwardRef(De),Ee=(0,oe.Z)(Ce,"dropdownAlign");Ce.SECRET_COMBOBOX_MODE_DO_NOT_USE=_e,Ce.Option=Te.Wx,Ce.OptGroup=Te.Xo,Ce._InternalPanelDoNotUseOrYouWillBeFired=Ee,jt.default=Ce},1722:function(Jt,jt){"use strict";const Ie=gt=>{const Te={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:gt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Te),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Te),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Te),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Te),{points:["br","tr"],offset:[0,-4]})}};function ge(gt,a){return gt||Ie(a)}jt.Z=ge},90376:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return Ae}});var ge=Ie(63356),gt=Ie(56119),a=Ie(16931),Te=Ie(51636),xe=Ie(46e3),z=Ie(93873);const E=ve=>{const{optionHeight:Ue,optionFontSize:He,optionLineHeight:Ye,optionPadding:ot}=ve;return{position:"relative",display:"block",minHeight:Ue,padding:ot,color:ve.colorText,fontWeight:"normal",fontSize:He,lineHeight:Ye,boxSizing:"border-box"}};var ie=ve=>{const{antCls:Ue,componentCls:He}=ve,Ye=`${He}-item`,ot=`&${Ue}-slide-up-enter${Ue}-slide-up-enter-active`,Fe=`&${Ue}-slide-up-appear${Ue}-slide-up-appear-active`,Ke=`&${Ue}-slide-up-leave${Ue}-slide-up-leave-active`,rt=`${He}-dropdown-placement-`,nt=`${Ye}-option-selected`;return[{[`${He}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(ve)),{position:"absolute",top:-9999,zIndex:ve.zIndexPopup,boxSizing:"border-box",padding:ve.paddingXXS,overflow:"hidden",fontSize:ve.fontSize,fontVariant:"initial",backgroundColor:ve.colorBgElevated,borderRadius:ve.borderRadiusLG,outline:"none",boxShadow:ve.boxShadowSecondary,[`
${ot}${rt}bottomLeft,
${Fe}${rt}bottomLeft
`]:{animationName:xe.fJ},[`
${ot}${rt}topLeft,
${Fe}${rt}topLeft,
${ot}${rt}topRight,
${Fe}${rt}topRight
`]:{animationName:xe.Qt},[`${Ke}${rt}bottomLeft`]:{animationName:xe.Uw},[`
${Ke}${rt}topLeft,
${Ke}${rt}topRight
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[Ye]:Object.assign(Object.assign({},E(ve)),{cursor:"pointer",transition:`background ${ve.motionDurationSlow} ease`,borderRadius:ve.borderRadiusSM,"&-group":{color:ve.colorTextDescription,fontSize:ve.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ge.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ye}-option-disabled)`]:{backgroundColor:ve.optionActiveBg},[`&-selected:not(${Ye}-option-disabled)`]:{color:ve.optionSelectedColor,fontWeight:ve.optionSelectedFontWeight,backgroundColor:ve.optionSelectedBg,[`${Ye}-option-state`]:{color:ve.colorPrimary}},"&-disabled":{[`&${Ye}-option-selected`]:{backgroundColor:ve.colorBgContainerDisabled},color:ve.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ve.calc(ve.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},E(ve)),{color:ve.colorTextDisabled})}),[`${nt}:has(+ ${nt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${nt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(ve,"slide-up"),(0,xe.oN)(ve,"slide-down"),(0,z.Fm)(ve,"move-up"),(0,z.Fm)(ve,"move-down")]},ee=Ie(26743),le=Ie(36237);function x(ve,Ue){const{componentCls:He,inputPaddingHorizontalBase:Ye,borderRadius:ot}=ve,Fe=ve.calc(ve.controlHeight).sub(ve.calc(ve.lineWidth).mul(2)).equal(),Ke=Ue?`${He}-${Ue}`:"";return{[`${He}-single${Ke}`]:{fontSize:ve.fontSize,height:ve.controlHeight,[`${He}-selector`]:Object.assign(Object.assign({},(0,ge.Wf)(ve,!0)),{display:"flex",borderRadius:ot,flex:"1 1 auto",[`${He}-selection-wrap:after`]:{lineHeight:(0,le.unit)(Fe)},[`${He}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${He}-selection-item,
${He}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,le.unit)(Fe),transition:`all ${ve.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${He}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${He}-selection-item:empty:after`,`${He}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${He}-show-arrow ${He}-selection-item,
&${He}-show-arrow ${He}-selection-search,
&${He}-show-arrow ${He}-selection-placeholder
`]:{paddingInlineEnd:ve.showArrowPaddingInlineEnd},[`&${He}-open ${He}-selection-item`]:{color:ve.colorTextPlaceholder},[`&:not(${He}-customize-input)`]:{[`${He}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,le.unit)(Ye)}`,[`${He}-selection-search-input`]:{height:Fe,fontSize:ve.fontSize},"&:after":{lineHeight:(0,le.unit)(Fe)}}},[`&${He}-customize-input`]:{[`${He}-selector`]:{"&:after":{display:"none"},[`${He}-selection-search`]:{position:"static",width:"100%"},[`${He}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,le.unit)(Ye)}`,"&:after":{display:"none"}}}}}}}function ne(ve){const{componentCls:Ue}=ve,He=ve.calc(ve.controlPaddingHorizontalSM).sub(ve.lineWidth).equal();return[x(ve),x((0,Te.mergeToken)(ve,{controlHeight:ve.controlHeightSM,borderRadius:ve.borderRadiusSM}),"sm"),{[`${Ue}-single${Ue}-sm`]:{[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{padding:`0 ${(0,le.unit)(He)}`},[`&${Ue}-show-arrow ${Ue}-selection-search`]:{insetInlineEnd:ve.calc(He).add(ve.calc(ve.fontSize).mul(1.5)).equal()},[`
&${Ue}-show-arrow ${Ue}-selection-item,
&${Ue}-show-arrow ${Ue}-selection-placeholder
`]:{paddingInlineEnd:ve.calc(ve.fontSize).mul(1.5).equal()}}}},x((0,Te.mergeToken)(ve,{controlHeight:ve.singleItemHeightLG,fontSize:ve.fontSizeLG,borderRadius:ve.borderRadiusLG}),"lg")]}const re=ve=>{const{fontSize:Ue,lineHeight:He,lineWidth:Ye,controlHeight:ot,controlHeightSM:Fe,controlHeightLG:Ke,paddingXXS:rt,controlPaddingHorizontal:nt,zIndexPopupBase:et,colorText:Ge,fontWeightStrong:Xe,controlItemBgActive:Ve,controlItemBgHover:tt,colorBgContainer:Qe,colorFillSecondary:ct,colorBgContainerDisabled:at,colorTextDisabled:qe,colorPrimaryHover:Le,colorPrimary:Ne,controlOutline:te}=ve,de=rt*2,Re=Ye*2,We=Math.min(ot-de,ot-Re),we=Math.min(Fe-de,Fe-Re),ye=Math.min(Ke-de,Ke-Re);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(rt/2),zIndexPopup:et+50,optionSelectedColor:Ge,optionSelectedFontWeight:Xe,optionSelectedBg:Ve,optionActiveBg:tt,optionPadding:`${(ot-Ue*He)/2}px ${nt}px`,optionFontSize:Ue,optionLineHeight:He,optionHeight:ot,selectorBg:Qe,clearBg:Qe,singleItemHeightLG:Ke,multipleItemBg:ct,multipleItemBorderColor:"transparent",multipleItemHeight:We,multipleItemHeightSM:we,multipleItemHeightLG:ye,multipleSelectorBgDisabled:at,multipleItemColorDisabled:qe,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ve.fontSize*1.25),hoverBorderColor:Le,activeBorderColor:Ne,activeOutlineColor:te,selectAffixPadding:rt}},ae=(ve,Ue)=>{const{componentCls:He,antCls:Ye,controlOutlineWidth:ot}=ve;return{[`&:not(${He}-customize-input) ${He}-selector`]:{border:`${(0,le.unit)(ve.lineWidth)} ${ve.lineType} ${Ue.borderColor}`,background:ve.selectorBg},[`&:not(${He}-disabled):not(${He}-customize-input):not(${Ye}-pagination-size-changer)`]:{[`&:hover ${He}-selector`]:{borderColor:Ue.hoverBorderHover},[`${He}-focused& ${He}-selector`]:{borderColor:Ue.activeBorderColor,boxShadow:`0 0 0 ${(0,le.unit)(ot)} ${Ue.activeOutlineColor}`,outline:0},[`${He}-prefix`]:{color:Ue.color}}}},se=(ve,Ue)=>({[`&${ve.componentCls}-status-${Ue.status}`]:Object.assign({},ae(ve,Ue))}),ce=ve=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ae(ve,{borderColor:ve.colorBorder,hoverBorderHover:ve.hoverBorderColor,activeBorderColor:ve.activeBorderColor,activeOutlineColor:ve.activeOutlineColor,color:ve.colorText})),se(ve,{status:"error",borderColor:ve.colorError,hoverBorderHover:ve.colorErrorHover,activeBorderColor:ve.colorError,activeOutlineColor:ve.colorErrorOutline,color:ve.colorError})),se(ve,{status:"warning",borderColor:ve.colorWarning,hoverBorderHover:ve.colorWarningHover,activeBorderColor:ve.colorWarning,activeOutlineColor:ve.colorWarningOutline,color:ve.colorWarning})),{[`&${ve.componentCls}-disabled`]:{[`&:not(${ve.componentCls}-customize-input) ${ve.componentCls}-selector`]:{background:ve.colorBgContainerDisabled,color:ve.colorTextDisabled}},[`&${ve.componentCls}-multiple ${ve.componentCls}-selection-item`]:{background:ve.multipleItemBg,border:`${(0,le.unit)(ve.lineWidth)} ${ve.lineType} ${ve.multipleItemBorderColor}`}})}),pe=(ve,Ue)=>{const{componentCls:He,antCls:Ye}=ve;return{[`&:not(${He}-customize-input) ${He}-selector`]:{background:Ue.bg,border:`${(0,le.unit)(ve.lineWidth)} ${ve.lineType} transparent`,color:Ue.color},[`&:not(${He}-disabled):not(${He}-customize-input):not(${Ye}-pagination-size-changer)`]:{[`&:hover ${He}-selector`]:{background:Ue.hoverBg},[`${He}-focused& ${He}-selector`]:{background:ve.selectorBg,borderColor:Ue.activeBorderColor,outline:0}}}},me=(ve,Ue)=>({[`&${ve.componentCls}-status-${Ue.status}`]:Object.assign({},pe(ve,Ue))}),he=ve=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},pe(ve,{bg:ve.colorFillTertiary,hoverBg:ve.colorFillSecondary,activeBorderColor:ve.activeBorderColor,color:ve.colorText})),me(ve,{status:"error",bg:ve.colorErrorBg,hoverBg:ve.colorErrorBgHover,activeBorderColor:ve.colorError,color:ve.colorError})),me(ve,{status:"warning",bg:ve.colorWarningBg,hoverBg:ve.colorWarningBgHover,activeBorderColor:ve.colorWarning,color:ve.colorWarning})),{[`&${ve.componentCls}-disabled`]:{[`&:not(${ve.componentCls}-customize-input) ${ve.componentCls}-selector`]:{borderColor:ve.colorBorder,background:ve.colorBgContainerDisabled,color:ve.colorTextDisabled}},[`&${ve.componentCls}-multiple ${ve.componentCls}-selection-item`]:{background:ve.colorBgContainer,border:`${(0,le.unit)(ve.lineWidth)} ${ve.lineType} ${ve.colorSplit}`}})}),be=ve=>({"&-borderless":{[`${ve.componentCls}-selector`]:{background:"transparent",border:`${(0,le.unit)(ve.lineWidth)} ${ve.lineType} transparent`},[`&${ve.componentCls}-disabled`]:{[`&:not(${ve.componentCls}-customize-input) ${ve.componentCls}-selector`]:{color:ve.colorTextDisabled}},[`&${ve.componentCls}-multiple ${ve.componentCls}-selection-item`]:{background:ve.multipleItemBg,border:`${(0,le.unit)(ve.lineWidth)} ${ve.lineType} ${ve.multipleItemBorderColor}`},[`&${ve.componentCls}-status-error`]:{[`${ve.componentCls}-prefix, ${ve.componentCls}-selection-item`]:{color:ve.colorError}},[`&${ve.componentCls}-status-warning`]:{[`${ve.componentCls}-prefix, ${ve.componentCls}-selection-item`]:{color:ve.colorWarning}}}}),Pe=(ve,Ue)=>{const{componentCls:He,antCls:Ye}=ve;return{[`&:not(${He}-customize-input) ${He}-selector`]:{borderWidth:`0 0 ${(0,le.unit)(ve.lineWidth)} 0`,borderStyle:`none none ${ve.lineType} none`,borderColor:Ue.borderColor,background:ve.selectorBg,borderRadius:0},[`&:not(${He}-disabled):not(${He}-customize-input):not(${Ye}-pagination-size-changer)`]:{[`&:hover ${He}-selector`]:{borderColor:Ue.hoverBorderHover},[`${He}-focused& ${He}-selector`]:{borderColor:Ue.activeBorderColor,outline:0},[`${He}-prefix`]:{color:Ue.color}}}},Me=(ve,Ue)=>({[`&${ve.componentCls}-status-${Ue.status}`]:Object.assign({},Pe(ve,Ue))}),_e=ve=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Pe(ve,{borderColor:ve.colorBorder,hoverBorderHover:ve.hoverBorderColor,activeBorderColor:ve.activeBorderColor,activeOutlineColor:ve.activeOutlineColor,color:ve.colorText})),Me(ve,{status:"error",borderColor:ve.colorError,hoverBorderHover:ve.colorErrorHover,activeBorderColor:ve.colorError,activeOutlineColor:ve.colorErrorOutline,color:ve.colorError})),Me(ve,{status:"warning",borderColor:ve.colorWarning,hoverBorderHover:ve.colorWarningHover,activeBorderColor:ve.colorWarning,activeOutlineColor:ve.colorWarningOutline,color:ve.colorWarning})),{[`&${ve.componentCls}-disabled`]:{[`&:not(${ve.componentCls}-customize-input) ${ve.componentCls}-selector`]:{color:ve.colorTextDisabled}},[`&${ve.componentCls}-multiple ${ve.componentCls}-selection-item`]:{background:ve.multipleItemBg,border:`${(0,le.unit)(ve.lineWidth)} ${ve.lineType} ${ve.multipleItemBorderColor}`}})});var Ce=ve=>({[ve.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ce(ve)),he(ve)),be(ve)),_e(ve))});const Ee=ve=>{const{componentCls:Ue}=ve;return{position:"relative",transition:`all ${ve.motionDurationMid} ${ve.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ue}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ue}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},je=ve=>{const{componentCls:Ue}=ve;return{[`${Ue}-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"}}}},ke=ve=>{const{antCls:Ue,componentCls:He,inputPaddingHorizontalBase:Ye,iconCls:ot}=ve;return{[He]:Object.assign(Object.assign({},(0,ge.Wf)(ve)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${He}-customize-input) ${He}-selector`]:Object.assign(Object.assign({},Ee(ve)),je(ve)),[`${He}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ge.vS),{[`> ${Ue}-typography`]:{display:"inline"}}),[`${He}-selection-placeholder`]:Object.assign(Object.assign({},ge.vS),{flex:1,color:ve.colorTextPlaceholder,pointerEvents:"none"}),[`${He}-arrow`]:Object.assign(Object.assign({},(0,ge.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ye,height:ve.fontSizeIcon,marginTop:ve.calc(ve.fontSizeIcon).mul(-1).div(2).equal(),color:ve.colorTextQuaternary,fontSize:ve.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ve.motionDurationSlow} ease`,[ot]:{verticalAlign:"top",transition:`transform ${ve.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${He}-suffix)`]:{pointerEvents:"auto"}},[`${He}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${He}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${He}-prefix`]:{flex:"none",marginInlineEnd:ve.selectAffixPadding},[`${He}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ye,zIndex:1,display:"inline-block",width:ve.fontSizeIcon,height:ve.fontSizeIcon,marginTop:ve.calc(ve.fontSizeIcon).mul(-1).div(2).equal(),color:ve.colorTextQuaternary,fontSize:ve.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ve.motionDurationMid} ease, opacity ${ve.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ve.colorTextTertiary}},[`&:hover ${He}-clear`]:{opacity:1,background:ve.colorBgBase,borderRadius:"50%"}}),[`${He}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${He}-has-feedback`]:{[`${He}-clear`]:{insetInlineEnd:ve.calc(Ye).add(ve.fontSize).add(ve.paddingXS).equal()}}}}}},Be=ve=>{const{componentCls:Ue}=ve;return[{[Ue]:{[`&${Ue}-in-form-item`]:{width:"100%"}}},ke(ve),ne(ve),(0,ee.ZP)(ve),ie(ve),{[`${Ue}-rtl`]:{direction:"rtl"}},(0,gt.c)(ve,{borderElCls:`${Ue}-selector`,focusElCls:`${Ue}-focused`})]};var Ae=(0,a.I$)("Select",(ve,Ue)=>{let{rootPrefixCls:He}=Ue;const Ye=(0,Te.mergeToken)(ve,{rootPrefixCls:He,inputPaddingHorizontalBase:ve.calc(ve.paddingSM).sub(1).equal(),multipleSelectItemHeight:ve.multipleItemHeight,selectHeight:ve.controlHeight});return[Be(Ye),Ce(Ye)]},re,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Jt,jt,Ie){"use strict";Ie.d(jt,{_z:function(){return z},gp:function(){return Te}});var ge=Ie(36237),gt=Ie(63356),a=Ie(51636);const Te=ee=>{const{multipleSelectItemHeight:le,paddingXXS:x,lineWidth:ne,INTERNAL_FIXED_ITEM_MARGIN:re}=ee,ae=ee.max(ee.calc(x).sub(ne).equal(),0),se=ee.max(ee.calc(ae).sub(re).equal(),0);return{basePadding:ae,containerPadding:se,itemHeight:(0,ge.unit)(le),itemLineHeight:(0,ge.unit)(ee.calc(le).sub(ee.calc(ee.lineWidth).mul(2)).equal())}},xe=ee=>{const{multipleSelectItemHeight:le,selectHeight:x,lineWidth:ne}=ee;return ee.calc(x).sub(le).div(2).sub(ne).equal()},z=ee=>{const{componentCls:le,iconCls:x,borderRadiusSM:ne,motionDurationSlow:re,paddingXS:ae,multipleItemColorDisabled:se,multipleItemBorderColorDisabled:ce,colorIcon:pe,colorIconHover:me,INTERNAL_FIXED_ITEM_MARGIN:he}=ee;return{[`${le}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${le}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:he,borderRadius:ne,cursor:"default",transition:`font-size ${re}, line-height ${re}, height ${re}`,marginInlineEnd:ee.calc(he).mul(2).equal(),paddingInlineStart:ae,paddingInlineEnd:ee.calc(ae).div(2).equal(),[`${le}-disabled&`]:{color:se,borderColor:ce,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ee.calc(ae).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,gt.Ro)()),{display:"inline-flex",alignItems:"center",color:pe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${x}`]:{verticalAlign:"-0.2em"},"&:hover":{color:me}})}}}},E=(ee,le)=>{const{componentCls:x,INTERNAL_FIXED_ITEM_MARGIN:ne}=ee,re=`${x}-selection-overflow`,ae=ee.multipleSelectItemHeight,se=xe(ee),ce=le?`${x}-${le}`:"",pe=Te(ee);return{[`${x}-multiple${ce}`]:Object.assign(Object.assign({},z(ee)),{[`${x}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:pe.basePadding,paddingBlock:pe.containerPadding,borderRadius:ee.borderRadius,[`${x}-disabled&`]:{background:ee.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,ge.unit)(ne)} 0`,lineHeight:(0,ge.unit)(ae),visibility:"hidden",content:'"\\a0"'}},[`${x}-selection-item`]:{height:pe.itemHeight,lineHeight:(0,ge.unit)(pe.itemLineHeight)},[`${x}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,ge.unit)(ae),marginBlock:ne}},[`${x}-prefix`]:{marginInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(pe.basePadding).equal()},[`${re}-item + ${re}-item,
${x}-prefix + ${x}-selection-wrap
`]:{[`${x}-selection-search`]:{marginInlineStart:0},[`${x}-selection-placeholder`]:{insetInlineStart:0}},[`${re}-item-suffix`]:{minHeight:pe.itemHeight,marginBlock:ne},[`${x}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(se).equal(),"\n &-input,\n &-mirror\n ":{height:ae,fontFamily:ee.fontFamily,lineHeight:(0,ge.unit)(ae),transition:`all ${ee.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${x}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(pe.basePadding).equal(),insetInlineEnd:ee.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ee.motionDurationSlow}`}})}};function oe(ee,le){const{componentCls:x}=ee,ne=le?`${x}-${le}`:"",re={[`${x}-multiple${ne}`]:{fontSize:ee.fontSize,[`${x}-selector`]:{[`${x}-show-search&`]:{cursor:"text"}},[`
&${x}-show-arrow ${x}-selector,
&${x}-allow-clear ${x}-selector
`]:{paddingInlineEnd:ee.calc(ee.fontSizeIcon).add(ee.controlPaddingHorizontal).equal()}}};return[E(ee,le),re]}const ie=ee=>{const{componentCls:le}=ee,x=(0,a.mergeToken)(ee,{selectHeight:ee.controlHeightSM,multipleSelectItemHeight:ee.multipleItemHeightSM,borderRadius:ee.borderRadiusSM,borderRadiusSM:ee.borderRadiusXS}),ne=(0,a.mergeToken)(ee,{fontSize:ee.fontSizeLG,selectHeight:ee.controlHeightLG,multipleSelectItemHeight:ee.multipleItemHeightLG,borderRadius:ee.borderRadiusLG,borderRadiusSM:ee.borderRadius});return[oe(ee),oe(x,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:ee.calc(ee.controlPaddingHorizontalSM).sub(ee.lineWidth).equal()},[`${le}-selection-search`]:{marginInlineStart:2}}},oe(ne,"lg")]};jt.ZP=ie},68525:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});var ge=Ie(59301),gt=Ie(40001),a=Ie(19248),Te=Ie(99267),xe=Ie(84105),z=Ie(58617),E=Ie(47472);function oe(ie){let{suffixIcon:ee,clearIcon:le,menuItemSelectedIcon:x,removeIcon:ne,loading:re,multiple:ae,hasFeedback:se,prefixCls:ce,showSuffixIcon:pe,feedbackIcon:me,showArrow:he,componentName:be}=ie;const Pe=le!=null?le:ge.createElement(a.Z,null),Me=Ee=>ee===null&&!se&&!he?null:ge.createElement(ge.Fragment,null,pe!==!1&&Ee,se&&me);let _e=null;if(ee!==void 0)_e=Me(ee);else if(re)_e=Me(ge.createElement(z.Z,{spin:!0}));else{const Ee=`${ce}-suffix`;_e=je=>{let{open:ke,showSearch:Be}=je;return Me(ke&&Be?ge.createElement(E.Z,{className:Ee}):ge.createElement(xe.Z,{className:Ee}))}}let De=null;x!==void 0?De=x:ae?De=ge.createElement(gt.Z,null):De=null;let Ce=null;return ne!==void 0?Ce=ne:Ce=ge.createElement(Te.Z,null),{clearIcon:Pe,suffixIcon:_e,itemIcon:De,removeIcon:Ce}}},90005:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return ge}});function ge(gt,a){return a!==void 0?a:gt!==null}},11938:function(Jt,jt,Ie){"use strict";Ie.d(jt,{default:function(){return je}});var ge=Ie(59301),gt=Ie(40192),a=Ie(22703),Te=Ie(92310),xe=Ie.n(Te),z=Ie(26112),E=Ie(48755),oe=Ie(458),ee=ke=>{const{value:Be,formatter:Ae,precision:ve,decimalSeparator:Ue,groupSeparator:He="",prefixCls:Ye}=ke;let ot;if(typeof Ae=="function")ot=Ae(Be);else{const Fe=String(Be),Ke=Fe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ke||Fe==="-")ot=Fe;else{const rt=Ke[1];let nt=Ke[2]||"0",et=Ke[4]||"";nt=nt.replace(/\B(?=(\d{3})+(?!\d))/g,He),typeof ve=="number"&&(et=et.padEnd(ve,"0").slice(0,ve>0?ve:0)),et&&(et=`${Ue}${et}`),ot=[ge.createElement("span",{key:"int",className:`${Ye}-content-value-int`},rt,nt),et&&ge.createElement("span",{key:"decimal",className:`${Ye}-content-value-decimal`},et)]}}return ge.createElement("span",{className:`${Ye}-content-value`},ot)},le=Ie(63356),x=Ie(16931),ne=Ie(51636);const re=ke=>{const{componentCls:Be,marginXXS:Ae,padding:ve,colorTextDescription:Ue,titleFontSize:He,colorTextHeading:Ye,contentFontSize:ot,fontFamily:Fe}=ke;return{[Be]:Object.assign(Object.assign({},(0,le.Wf)(ke)),{[`${Be}-title`]:{marginBottom:Ae,color:Ue,fontSize:He},[`${Be}-skeleton`]:{paddingTop:ve},[`${Be}-content`]:{color:Ye,fontSize:ot,fontFamily:Fe,[`${Be}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Be}-content-prefix, ${Be}-content-suffix`]:{display:"inline-block"},[`${Be}-content-prefix`]:{marginInlineEnd:Ae},[`${Be}-content-suffix`]:{marginInlineStart:Ae}}})}},ae=ke=>{const{fontSizeHeading3:Be,fontSize:Ae}=ke;return{titleFontSize:Ae,contentFontSize:Be}};var se=(0,x.I$)("Statistic",ke=>{const Be=(0,ne.mergeToken)(ke,{});return[re(Be)]},ae),ce=function(ke,Be){var Ae={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&Be.indexOf(ve)<0&&(Ae[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ve=Object.getOwnPropertySymbols(ke);Ue<ve.length;Ue++)Be.indexOf(ve[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Ue])&&(Ae[ve[Ue]]=ke[ve[Ue]]);return Ae},me=ke=>{const{prefixCls:Be,className:Ae,rootClassName:ve,style:Ue,valueStyle:He,value:Ye=0,title:ot,valueRender:Fe,prefix:Ke,suffix:rt,loading:nt=!1,formatter:et,precision:Ge,decimalSeparator:Xe=".",groupSeparator:Ve=",",onMouseEnter:tt,onMouseLeave:Qe}=ke,ct=ce(ke,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:at,direction:qe,className:Le,style:Ne}=(0,E.dj)("statistic"),te=at("statistic",Be),[de,Re,We]=se(te),we=ge.createElement(ee,{decimalSeparator:Xe,groupSeparator:Ve,prefixCls:te,formatter:et,precision:Ge,value:Ye}),ye=xe()(te,{[`${te}-rtl`]:qe==="rtl"},Le,Ae,ve,Re,We),Oe=(0,z.Z)(ct,{aria:!0,data:!0});return de(ge.createElement("div",Object.assign({},Oe,{className:ye,style:Object.assign(Object.assign({},Ne),Ue),onMouseEnter:tt,onMouseLeave:Qe}),ot&&ge.createElement("div",{className:`${te}-title`},ot),ge.createElement(oe.Z,{paragraph:!1,loading:nt,className:`${te}-skeleton`},ge.createElement("div",{style:He,className:`${te}-content`},Ke&&ge.createElement("span",{className:`${te}-content-prefix`},Ke),Fe?Fe(we):we,rt&&ge.createElement("span",{className:`${te}-content-suffix`},rt)))))};const he=[["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 be(ke,Be){let Ae=ke;const ve=/\[[^\]]*]/g,Ue=(Be.match(ve)||[]).map(Fe=>Fe.slice(1,-1)),He=Be.replace(ve,"[]"),Ye=he.reduce((Fe,Ke)=>{let[rt,nt]=Ke;if(Fe.includes(rt)){const et=Math.floor(Ae/nt);return Ae-=et*nt,Fe.replace(new RegExp(`${rt}+`,"g"),Ge=>{const Xe=Ge.length;return et.toString().padStart(Xe,"0")})}return Fe},He);let ot=0;return Ye.replace(ve,()=>{const Fe=Ue[ot];return ot+=1,Fe})}function Pe(ke,Be){const{format:Ae=""}=Be,ve=new Date(ke).getTime(),Ue=Date.now(),He=Math.max(ve-Ue,0);return be(He,Ae)}var Me=function(ke,Be){var Ae={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&Be.indexOf(ve)<0&&(Ae[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ve=Object.getOwnPropertySymbols(ke);Ue<ve.length;Ue++)Be.indexOf(ve[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Ue])&&(Ae[ve[Ue]]=ke[ve[Ue]]);return Ae};const _e=1e3/30;function De(ke){return new Date(ke).getTime()}const Ce=ke=>{const{value:Be,format:Ae="HH:mm:ss",onChange:ve,onFinish:Ue}=ke,He=Me(ke,["value","format","onChange","onFinish"]),Ye=(0,gt.Z)(),ot=ge.useRef(null),Fe=()=>{Ue==null||Ue(),ot.current&&(clearInterval(ot.current),ot.current=null)},Ke=()=>{const et=De(Be);et>=Date.now()&&(ot.current=setInterval(()=>{Ye(),ve==null||ve(et-Date.now()),et<Date.now()&&Fe()},_e))};ge.useEffect(()=>(Ke(),()=>{ot.current&&(clearInterval(ot.current),ot.current=null)}),[Be]);const rt=(et,Ge)=>Pe(et,Object.assign(Object.assign({},Ge),{format:Ae})),nt=et=>(0,a.Tm)(et,{title:void 0});return ge.createElement(me,Object.assign({},He,{value:Be,valueRender:nt,formatter:rt}))};var Ee=ge.memo(Ce);me.Countdown=Ee;var je=me},58755:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return Ue}});var ge=Ie(59301),gt=Ie(58617),a=Ie(92310),Te=Ie.n(a),xe=Ie(60499),z=Ie(18642),E=Ie(72190),oe=Ie(42244),ie=Ie(18929),ee=Ie(10228),le=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],x=ge.forwardRef(function(He,Ye){var ot,Fe=He.prefixCls,Ke=Fe===void 0?"rc-switch":Fe,rt=He.className,nt=He.checked,et=He.defaultChecked,Ge=He.disabled,Xe=He.loadingIcon,Ve=He.checkedChildren,tt=He.unCheckedChildren,Qe=He.onClick,ct=He.onChange,at=He.onKeyDown,qe=(0,oe.Z)(He,le),Le=(0,ie.Z)(!1,{value:nt,defaultValue:et}),Ne=(0,E.Z)(Le,2),te=Ne[0],de=Ne[1];function Re(Oe,$e){var Ze=te;return Ge||(Ze=Oe,de(Ze),ct==null||ct(Ze,$e)),Ze}function We(Oe){Oe.which===ee.Z.LEFT?Re(!1,Oe):Oe.which===ee.Z.RIGHT&&Re(!0,Oe),at==null||at(Oe)}function we(Oe){var $e=Re(!te,Oe);Qe==null||Qe($e,Oe)}var ye=Te()(Ke,rt,(ot={},(0,z.Z)(ot,"".concat(Ke,"-checked"),te),(0,z.Z)(ot,"".concat(Ke,"-disabled"),Ge),ot));return ge.createElement("button",(0,xe.Z)({},qe,{type:"button",role:"switch","aria-checked":te,disabled:Ge,className:ye,ref:Ye,onKeyDown:We,onClick:we}),Xe,ge.createElement("span",{className:"".concat(Ke,"-inner")},ge.createElement("span",{className:"".concat(Ke,"-inner-checked")},Ve),ge.createElement("span",{className:"".concat(Ke,"-inner-unchecked")},tt)))});x.displayName="Switch";var ne=x,re=Ie(12919),ae=Ie(48755),se=Ie(2171),ce=Ie(31756),pe=Ie(36237),me=Ie(17835),he=Ie(63356),be=Ie(16931),Pe=Ie(51636);const Me=He=>{const{componentCls:Ye,trackHeightSM:ot,trackPadding:Fe,trackMinWidthSM:Ke,innerMinMarginSM:rt,innerMaxMarginSM:nt,handleSizeSM:et,calc:Ge}=He,Xe=`${Ye}-inner`,Ve=(0,pe.unit)(Ge(et).add(Ge(Fe).mul(2)).equal()),tt=(0,pe.unit)(Ge(nt).mul(2).equal());return{[Ye]:{[`&${Ye}-small`]:{minWidth:Ke,height:ot,lineHeight:(0,pe.unit)(ot),[`${Ye}-inner`]:{paddingInlineStart:nt,paddingInlineEnd:rt,[`${Xe}-checked, ${Xe}-unchecked`]:{minHeight:ot},[`${Xe}-checked`]:{marginInlineStart:`calc(-100% + ${Ve} - ${tt})`,marginInlineEnd:`calc(100% - ${Ve} + ${tt})`},[`${Xe}-unchecked`]:{marginTop:Ge(ot).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ye}-handle`]:{width:et,height:et},[`${Ye}-loading-icon`]:{top:Ge(Ge(et).sub(He.switchLoadingIconSize)).div(2).equal(),fontSize:He.switchLoadingIconSize},[`&${Ye}-checked`]:{[`${Ye}-inner`]:{paddingInlineStart:rt,paddingInlineEnd:nt,[`${Xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xe}-unchecked`]:{marginInlineStart:`calc(100% - ${Ve} + ${tt})`,marginInlineEnd:`calc(-100% + ${Ve} - ${tt})`}},[`${Ye}-handle`]:{insetInlineStart:`calc(100% - ${(0,pe.unit)(Ge(et).add(Fe).equal())})`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${Xe}`]:{[`${Xe}-unchecked`]:{marginInlineStart:Ge(He.marginXXS).div(2).equal(),marginInlineEnd:Ge(He.marginXXS).mul(-1).div(2).equal()}},[`&${Ye}-checked ${Xe}`]:{[`${Xe}-checked`]:{marginInlineStart:Ge(He.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ge(He.marginXXS).div(2).equal()}}}}}}},_e=He=>{const{componentCls:Ye,handleSize:ot,calc:Fe}=He;return{[Ye]:{[`${Ye}-loading-icon${He.iconCls}`]:{position:"relative",top:Fe(Fe(ot).sub(He.fontSize)).div(2).equal(),color:He.switchLoadingIconColor,verticalAlign:"top"},[`&${Ye}-checked ${Ye}-loading-icon`]:{color:He.switchColor}}}},De=He=>{const{componentCls:Ye,trackPadding:ot,handleBg:Fe,handleShadow:Ke,handleSize:rt,calc:nt}=He,et=`${Ye}-handle`;return{[Ye]:{[et]:{position:"absolute",top:ot,insetInlineStart:ot,width:rt,height:rt,transition:`all ${He.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Fe,borderRadius:nt(rt).div(2).equal(),boxShadow:Ke,transition:`all ${He.switchDuration} ease-in-out`,content:'""'}},[`&${Ye}-checked ${et}`]:{insetInlineStart:`calc(100% - ${(0,pe.unit)(nt(rt).add(ot).equal())})`},[`&:not(${Ye}-disabled):active`]:{[`${et}::before`]:{insetInlineEnd:He.switchHandleActiveInset,insetInlineStart:0},[`&${Ye}-checked ${et}::before`]:{insetInlineEnd:0,insetInlineStart:He.switchHandleActiveInset}}}}},Ce=He=>{const{componentCls:Ye,trackHeight:ot,trackPadding:Fe,innerMinMargin:Ke,innerMaxMargin:rt,handleSize:nt,calc:et}=He,Ge=`${Ye}-inner`,Xe=(0,pe.unit)(et(nt).add(et(Fe).mul(2)).equal()),Ve=(0,pe.unit)(et(rt).mul(2).equal());return{[Ye]:{[Ge]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:rt,paddingInlineEnd:Ke,transition:`padding-inline-start ${He.switchDuration} ease-in-out, padding-inline-end ${He.switchDuration} ease-in-out`,[`${Ge}-checked, ${Ge}-unchecked`]:{display:"block",color:He.colorTextLightSolid,fontSize:He.fontSizeSM,transition:`margin-inline-start ${He.switchDuration} ease-in-out, margin-inline-end ${He.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:ot},[`${Ge}-checked`]:{marginInlineStart:`calc(-100% + ${Xe} - ${Ve})`,marginInlineEnd:`calc(100% - ${Xe} + ${Ve})`},[`${Ge}-unchecked`]:{marginTop:et(ot).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ye}-checked ${Ge}`]:{paddingInlineStart:Ke,paddingInlineEnd:rt,[`${Ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ge}-unchecked`]:{marginInlineStart:`calc(100% - ${Xe} + ${Ve})`,marginInlineEnd:`calc(-100% + ${Xe} - ${Ve})`}},[`&:not(${Ye}-disabled):active`]:{[`&:not(${Ye}-checked) ${Ge}`]:{[`${Ge}-unchecked`]:{marginInlineStart:et(Fe).mul(2).equal(),marginInlineEnd:et(Fe).mul(-1).mul(2).equal()}},[`&${Ye}-checked ${Ge}`]:{[`${Ge}-checked`]:{marginInlineStart:et(Fe).mul(-1).mul(2).equal(),marginInlineEnd:et(Fe).mul(2).equal()}}}}}},Ee=He=>{const{componentCls:Ye,trackHeight:ot,trackMinWidth:Fe}=He;return{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(He)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Fe,height:ot,lineHeight:(0,pe.unit)(ot),verticalAlign:"middle",background:He.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${He.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ye}-disabled)`]:{background:He.colorTextTertiary}}),(0,he.Qy)(He)),{[`&${Ye}-checked`]:{background:He.switchColor,[`&:hover:not(${Ye}-disabled)`]:{background:He.colorPrimaryHover}},[`&${Ye}-loading, &${Ye}-disabled`]:{cursor:"not-allowed",opacity:He.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ye}-rtl`]:{direction:"rtl"}})}},je=He=>{const{fontSize:Ye,lineHeight:ot,controlHeight:Fe,colorWhite:Ke}=He,rt=Ye*ot,nt=Fe/2,et=2,Ge=rt-et*2,Xe=nt-et*2;return{trackHeight:rt,trackHeightSM:nt,trackMinWidth:Ge*2+et*4,trackMinWidthSM:Xe*2+et*2,trackPadding:et,handleBg:Ke,handleSize:Ge,handleSizeSM:Xe,handleShadow:`0 2px 4px 0 ${new me.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ge/2,innerMaxMargin:Ge+et+et*2,innerMinMarginSM:Xe/2,innerMaxMarginSM:Xe+et+et*2}};var ke=(0,be.I$)("Switch",He=>{const Ye=(0,Pe.mergeToken)(He,{switchDuration:He.motionDurationMid,switchColor:He.colorPrimary,switchDisabledOpacity:He.opacityLoading,switchLoadingIconSize:He.calc(He.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${He.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ee(Ye),Ce(Ye),De(Ye),_e(Ye),Me(Ye)]},je),Be=function(He,Ye){var ot={};for(var Fe in He)Object.prototype.hasOwnProperty.call(He,Fe)&&Ye.indexOf(Fe)<0&&(ot[Fe]=He[Fe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Fe=Object.getOwnPropertySymbols(He);Ke<Fe.length;Ke++)Ye.indexOf(Fe[Ke])<0&&Object.prototype.propertyIsEnumerable.call(He,Fe[Ke])&&(ot[Fe[Ke]]=He[Fe[Ke]]);return ot};const ve=ge.forwardRef((He,Ye)=>{const{prefixCls:ot,size:Fe,disabled:Ke,loading:rt,className:nt,rootClassName:et,style:Ge,checked:Xe,value:Ve,defaultChecked:tt,defaultValue:Qe,onChange:ct}=He,at=Be(He,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[qe,Le]=(0,ie.Z)(!1,{value:Xe!=null?Xe:Ve,defaultValue:tt!=null?tt:Qe}),{getPrefixCls:Ne,direction:te,switch:de}=ge.useContext(ae.E_),Re=ge.useContext(se.Z),We=(Ke!=null?Ke:Re)||rt,we=Ne("switch",ot),ye=ge.createElement("div",{className:`${we}-handle`},rt&&ge.createElement(gt.Z,{className:`${we}-loading-icon`})),[Oe,$e,Ze]=ke(we),Je=(0,ce.Z)(Fe),st=Te()(de==null?void 0:de.className,{[`${we}-small`]:Je==="small",[`${we}-loading`]:rt,[`${we}-rtl`]:te==="rtl"},nt,et,$e,Ze),lt=Object.assign(Object.assign({},de==null?void 0:de.style),Ge),ft=function(){Le(arguments.length<=0?void 0:arguments[0]),ct==null||ct.apply(void 0,arguments)};return Oe(ge.createElement(re.Z,{component:"Switch"},ge.createElement(ne,Object.assign({},at,{checked:qe,onChange:ft,prefixCls:we,className:st,style:lt,disabled:We,ref:Ye,loadingIcon:ye}))))});ve.__ANT_SWITCH=!0;var Ue=ve},96599:function(Jt,jt,Ie){"use strict";Ie.d(jt,{default:function(){return Ae}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(2738),xe=Ie(29509),z=Ie(78776),E=Ie(22703),oe=Ie(12919),ie=Ie(48755),ee=Ie(36237),le=Ie(17835),x=Ie(63356),ne=Ie(51636),re=Ie(16931);const ae=ve=>{const{paddingXXS:Ue,lineWidth:He,tagPaddingHorizontal:Ye,componentCls:ot,calc:Fe}=ve,Ke=Fe(Ye).sub(He).equal(),rt=Fe(Ue).sub(He).equal();return{[ot]:Object.assign(Object.assign({},(0,x.Wf)(ve)),{display:"inline-block",height:"auto",marginInlineEnd:ve.marginXS,paddingInline:Ke,fontSize:ve.tagFontSize,lineHeight:ve.tagLineHeight,whiteSpace:"nowrap",background:ve.defaultBg,border:`${(0,ee.unit)(ve.lineWidth)} ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusSM,opacity:1,transition:`all ${ve.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ot}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ve.defaultColor},[`${ot}-close-icon`]:{marginInlineStart:rt,fontSize:ve.tagIconSize,color:ve.colorTextDescription,cursor:"pointer",transition:`all ${ve.motionDurationMid}`,"&:hover":{color:ve.colorTextHeading}},[`&${ot}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ve.iconCls}-close, ${ve.iconCls}-close:hover`]:{color:ve.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ot}-checkable-checked):hover`]:{color:ve.colorPrimary,backgroundColor:ve.colorFillSecondary},"&:active, &-checked":{color:ve.colorTextLightSolid},"&-checked":{backgroundColor:ve.colorPrimary,"&:hover":{backgroundColor:ve.colorPrimaryHover}},"&:active":{backgroundColor:ve.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ve.iconCls} + span, > span + ${ve.iconCls}`]:{marginInlineStart:Ke}}),[`${ot}-borderless`]:{borderColor:"transparent",background:ve.tagBorderlessBg}}},se=ve=>{const{lineWidth:Ue,fontSizeIcon:He,calc:Ye}=ve,ot=ve.fontSizeSM;return(0,ne.mergeToken)(ve,{tagFontSize:ot,tagLineHeight:(0,ee.unit)(Ye(ve.lineHeightSM).mul(ot).equal()),tagIconSize:Ye(He).sub(Ye(Ue).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ve.defaultBg})},ce=ve=>({defaultBg:new le.FastColor(ve.colorFillQuaternary).onBackground(ve.colorBgContainer).toHexString(),defaultColor:ve.colorText});var pe=(0,re.I$)("Tag",ve=>{const Ue=se(ve);return ae(Ue)},ce),me=function(ve,Ue){var He={};for(var Ye in ve)Object.prototype.hasOwnProperty.call(ve,Ye)&&Ue.indexOf(Ye)<0&&(He[Ye]=ve[Ye]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ye=Object.getOwnPropertySymbols(ve);ot<Ye.length;ot++)Ue.indexOf(Ye[ot])<0&&Object.prototype.propertyIsEnumerable.call(ve,Ye[ot])&&(He[Ye[ot]]=ve[Ye[ot]]);return He},be=ge.forwardRef((ve,Ue)=>{const{prefixCls:He,style:Ye,className:ot,checked:Fe,onChange:Ke,onClick:rt}=ve,nt=me(ve,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:et,tag:Ge}=ge.useContext(ie.E_),Xe=qe=>{Ke==null||Ke(!Fe),rt==null||rt(qe)},Ve=et("tag",He),[tt,Qe,ct]=pe(Ve),at=a()(Ve,`${Ve}-checkable`,{[`${Ve}-checkable-checked`]:Fe},Ge==null?void 0:Ge.className,ot,Qe,ct);return tt(ge.createElement("span",Object.assign({},nt,{ref:Ue,style:Object.assign(Object.assign({},Ye),Ge==null?void 0:Ge.style),className:at,onClick:Xe})))}),Pe=Ie(93427);const Me=ve=>(0,Pe.Z)(ve,(Ue,He)=>{let{textColor:Ye,lightBorderColor:ot,lightColor:Fe,darkColor:Ke}=He;return{[`${ve.componentCls}${ve.componentCls}-${Ue}`]:{color:Ye,background:Fe,borderColor:ot,"&-inverse":{color:ve.colorTextLightSolid,background:Ke,borderColor:Ke},[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}});var _e=(0,re.bk)(["Tag","preset"],ve=>{const Ue=se(ve);return Me(Ue)},ce);function De(ve){return typeof ve!="string"?ve:ve.charAt(0).toUpperCase()+ve.slice(1)}const Ce=(ve,Ue,He)=>{const Ye=De(He);return{[`${ve.componentCls}${ve.componentCls}-${Ue}`]:{color:ve[`color${He}`],background:ve[`color${Ye}Bg`],borderColor:ve[`color${Ye}Border`],[`&${ve.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ee=(0,re.bk)(["Tag","status"],ve=>{const Ue=se(ve);return[Ce(Ue,"success","Success"),Ce(Ue,"processing","Info"),Ce(Ue,"error","Error"),Ce(Ue,"warning","Warning")]},ce),je=function(ve,Ue){var He={};for(var Ye in ve)Object.prototype.hasOwnProperty.call(ve,Ye)&&Ue.indexOf(Ye)<0&&(He[Ye]=ve[Ye]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ye=Object.getOwnPropertySymbols(ve);ot<Ye.length;ot++)Ue.indexOf(Ye[ot])<0&&Object.prototype.propertyIsEnumerable.call(ve,Ye[ot])&&(He[Ye[ot]]=ve[Ye[ot]]);return He};const Be=ge.forwardRef((ve,Ue)=>{const{prefixCls:He,className:Ye,rootClassName:ot,style:Fe,children:Ke,icon:rt,color:nt,onClose:et,bordered:Ge=!0,visible:Xe}=ve,Ve=je(ve,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:tt,direction:Qe,tag:ct}=ge.useContext(ie.E_),[at,qe]=ge.useState(!0),Le=(0,Te.Z)(Ve,["closeIcon","closable"]);ge.useEffect(()=>{Xe!==void 0&&qe(Xe)},[Xe]);const Ne=(0,xe.o2)(nt),te=(0,xe.yT)(nt),de=Ne||te,Re=Object.assign(Object.assign({backgroundColor:nt&&!de?nt:void 0},ct==null?void 0:ct.style),Fe),We=tt("tag",He),[we,ye,Oe]=pe(We),$e=a()(We,ct==null?void 0:ct.className,{[`${We}-${nt}`]:de,[`${We}-has-color`]:nt&&!de,[`${We}-hidden`]:!at,[`${We}-rtl`]:Qe==="rtl",[`${We}-borderless`]:!Ge},Ye,ot,ye,Oe),Ze=St=>{St.stopPropagation(),et==null||et(St),!St.defaultPrevented&&qe(!1)},[,Je]=(0,z.Z)((0,z.w)(ve),(0,z.w)(ct),{closable:!1,closeIconRender:St=>{const Ot=ge.createElement("span",{className:`${We}-close-icon`,onClick:Ze},St);return(0,E.wm)(St,Ot,yt=>({onClick:Dt=>{var Et;(Et=yt==null?void 0:yt.onClick)===null||Et===void 0||Et.call(yt,Dt),Ze(Dt)},className:a()(yt==null?void 0:yt.className,`${We}-close-icon`)}))}}),st=typeof Ve.onClick=="function"||Ke&&Ke.type==="a",lt=rt||null,ft=lt?ge.createElement(ge.Fragment,null,lt,Ke&&ge.createElement("span",null,Ke)):Ke,Tt=ge.createElement("span",Object.assign({},Le,{ref:Ue,className:$e,style:Re}),ft,Je,Ne&&ge.createElement(_e,{key:"preset",prefixCls:We}),te&&ge.createElement(Ee,{key:"status",prefixCls:We}));return we(st?ge.createElement(oe.Z,{component:"Tag"},Tt):Tt)});Be.CheckableTag=be;var Ae=Be},18287:function(Jt,jt,Ie){"use strict";Ie.d(jt,{default:function(){return et}});var ge=Ie(87632),gt=Ie(77654),a=Ie(59301),Te=Ie(52671),xe=Ie(8657),z=Ie(60499),E={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"},oe=E,ie=Ie(7657),ee=function(Xe,Ve){return a.createElement(ie.Z,(0,z.Z)({},Xe,{ref:Ve,icon:oe}))},le=a.forwardRef(ee),x=le,ne=Ie(92310),re=Ie.n(ne),ae=Ie(82661),se=Ie(34061),ce=Ie(48755),pe=Ie(56082),me=Ie(86641),he=Ie(57700),be=Ie(12425);const Pe=4;function Me(Ge){const{dropPosition:Xe,dropLevelOffset:Ve,prefixCls:tt,indent:Qe,direction:ct="ltr"}=Ge,at=ct==="ltr"?"left":"right",qe=ct==="ltr"?"right":"left",Le={[at]:-Ve*Qe+Pe,[qe]:0};switch(Xe){case-1:Le.top=-3;break;case 1:Le.bottom=-3;break;default:Le.bottom=-3,Le[at]=Qe+Pe;break}return a.createElement("div",{style:Le,className:`${tt}-drop-indicator`})}var _e=Me,De=Ie(85278),Ee=a.forwardRef((Ge,Xe)=>{var Ve;const{getPrefixCls:tt,direction:Qe,virtual:ct,tree:at}=a.useContext(ce.E_),{prefixCls:qe,className:Le,showIcon:Ne=!1,showLine:te,switcherIcon:de,switcherLoadingIcon:Re,blockNode:We=!1,children:we,checkable:ye=!1,selectable:Oe=!0,draggable:$e,motion:Ze,style:Je}=Ge,st=tt("tree",qe),lt=tt(),ft=Ze!=null?Ze:Object.assign(Object.assign({},(0,me.Z)(lt)),{motionAppear:!1}),Tt=Object.assign(Object.assign({},Ge),{checkable:ye,selectable:Oe,showIcon:Ne,motion:ft,blockNode:We,showLine:!!te,dropIndicatorRender:_e}),[St,Ot,yt]=(0,be.ZP)(st),[,Dt]=(0,he.ZP)(),Et=Dt.paddingXS/2+(((Ve=Dt.Tree)===null||Ve===void 0?void 0:Ve.titleHeight)||Dt.controlHeightSM),xt=a.useMemo(()=>{if(!$e)return!1;let It={};switch(typeof $e){case"function":It.nodeDraggable=$e;break;case"object":It=Object.assign({},$e);break;default:break}return It.icon!==!1&&(It.icon=It.icon||a.createElement(pe.Z,null)),It},[$e]),At=It=>a.createElement(De.Z,{prefixCls:st,switcherIcon:de,switcherLoadingIcon:Re,treeNodeProps:It,showLine:te});return St(a.createElement(ge.ZP,Object.assign({itemHeight:Et,ref:Xe,virtual:ct},Tt,{style:Object.assign(Object.assign({},at==null?void 0:at.style),Je),prefixCls:st,className:re()({[`${st}-icon-hide`]:!Ne,[`${st}-block-node`]:We,[`${st}-unselectable`]:!Oe,[`${st}-rtl`]:Qe==="rtl"},at==null?void 0:at.className,Le,Ot,yt),direction:Qe,checkable:ye&&a.createElement("span",{className:`${st}-checkbox-inner`}),selectable:Oe,switcherIcon:At,draggable:xt}),we))});const je=0,ke=1,Be=2;function Ae(Ge,Xe,Ve){const{key:tt,children:Qe}=Ve;function ct(at){const qe=at[tt],Le=at[Qe];Xe(qe,at)!==!1&&Ae(Le||[],Xe,Ve)}Ge.forEach(ct)}function ve(Ge){let{treeData:Xe,expandedKeys:Ve,startKey:tt,endKey:Qe,fieldNames:ct}=Ge;const at=[];let qe=je;if(tt&&tt===Qe)return[tt];if(!tt||!Qe)return[];function Le(Ne){return Ne===tt||Ne===Qe}return Ae(Xe,Ne=>{if(qe===Be)return!1;if(Le(Ne)){if(at.push(Ne),qe===je)qe=ke;else if(qe===ke)return qe=Be,!1}else qe===ke&&at.push(Ne);return Ve.includes(Ne)},(0,se.w$)(ct)),at}function Ue(Ge,Xe,Ve){const tt=(0,gt.Z)(Xe),Qe=[];return Ae(Ge,(ct,at)=>{const qe=tt.indexOf(ct);return qe!==-1&&(Qe.push(at),tt.splice(qe,1)),!!tt.length},(0,se.w$)(Ve)),Qe}var He=function(Ge,Xe){var Ve={};for(var tt in Ge)Object.prototype.hasOwnProperty.call(Ge,tt)&&Xe.indexOf(tt)<0&&(Ve[tt]=Ge[tt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,tt=Object.getOwnPropertySymbols(Ge);Qe<tt.length;Qe++)Xe.indexOf(tt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Ge,tt[Qe])&&(Ve[tt[Qe]]=Ge[tt[Qe]]);return Ve};function Ye(Ge){const{isLeaf:Xe,expanded:Ve}=Ge;return Xe?a.createElement(Te.Z,null):Ve?a.createElement(xe.Z,null):a.createElement(x,null)}function ot(Ge){let{treeData:Xe,children:Ve}=Ge;return Xe||(0,se.zn)(Ve)}const Fe=(Ge,Xe)=>{var{defaultExpandAll:Ve,defaultExpandParent:tt,defaultExpandedKeys:Qe}=Ge,ct=He(Ge,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const at=a.useRef(null),qe=a.useRef(null),Le=()=>{const{keyEntities:St}=(0,se.I8)(ot(ct));let Ot;return Ve?Ot=Object.keys(St):tt?Ot=(0,ae.r7)(ct.expandedKeys||Qe||[],St):Ot=ct.expandedKeys||Qe||[],Ot},[Ne,te]=a.useState(ct.selectedKeys||ct.defaultSelectedKeys||[]),[de,Re]=a.useState(()=>Le());a.useEffect(()=>{"selectedKeys"in ct&&te(ct.selectedKeys)},[ct.selectedKeys]),a.useEffect(()=>{"expandedKeys"in ct&&Re(ct.expandedKeys)},[ct.expandedKeys]);const We=(St,Ot)=>{var yt;return"expandedKeys"in ct||Re(St),(yt=ct.onExpand)===null||yt===void 0?void 0:yt.call(ct,St,Ot)},we=(St,Ot)=>{var yt;const{multiple:Dt,fieldNames:Et}=ct,{node:xt,nativeEvent:At}=Ot,{key:It=""}=xt,ht=ot(ct),Ct=Object.assign(Object.assign({},Ot),{selected:!0}),Ht=(At==null?void 0:At.ctrlKey)||(At==null?void 0:At.metaKey),Vt=At==null?void 0:At.shiftKey;let vt;Dt&&Ht?(vt=St,at.current=It,qe.current=vt,Ct.selectedNodes=Ue(ht,vt,Et)):Dt&&Vt?(vt=Array.from(new Set([].concat((0,gt.Z)(qe.current||[]),(0,gt.Z)(ve({treeData:ht,expandedKeys:de,startKey:It,endKey:at.current,fieldNames:Et}))))),Ct.selectedNodes=Ue(ht,vt,Et)):(vt=[It],at.current=It,qe.current=vt,Ct.selectedNodes=Ue(ht,vt,Et)),(yt=ct.onSelect)===null||yt===void 0||yt.call(ct,vt,Ct),"selectedKeys"in ct||te(vt)},{getPrefixCls:ye,direction:Oe}=a.useContext(ce.E_),{prefixCls:$e,className:Ze,showIcon:Je=!0,expandAction:st="click"}=ct,lt=He(ct,["prefixCls","className","showIcon","expandAction"]),ft=ye("tree",$e),Tt=re()(`${ft}-directory`,{[`${ft}-directory-rtl`]:Oe==="rtl"},Ze);return a.createElement(Ee,Object.assign({icon:Ye,ref:Xe,blockNode:!0},lt,{showIcon:Je,expandAction:st,prefixCls:ft,className:Tt,expandedKeys:de,selectedKeys:Ne,onSelect:we,onExpand:We}))};var rt=a.forwardRef(Fe);const nt=Ee;nt.DirectoryTree=rt,nt.TreeNode=ge.OF;var et=nt},12425:function(Jt,jt,Ie){"use strict";Ie.d(jt,{ZP:function(){return ae},Yk:function(){return x},TM:function(){return ne}});var ge=Ie(36237),gt=Ie(36170),a=Ie(63356),Te=Ie(34961),xe=Ie(51636),z=Ie(16931);const E=se=>{let{treeCls:ce,treeNodeCls:pe,directoryNodeSelectedBg:me,directoryNodeSelectedColor:he,motionDurationMid:be,borderRadius:Pe,controlItemBgHover:Me}=se;return{[`${ce}${ce}-directory ${pe}`]:{[`${ce}-node-content-wrapper`]:{position:"static",[`> *:not(${ce}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${be}`,content:'""',borderRadius:Pe},"&:hover:before":{background:Me}},[`${ce}-switcher, ${ce}-checkbox, ${ce}-draggable-icon`]:{zIndex:1},"&-selected":{[`${ce}-switcher, ${ce}-draggable-icon`]:{color:he},[`${ce}-node-content-wrapper`]:{color:he,background:"transparent","&:before, &:hover:before":{background:me}}}}}},oe=new ge.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ie=(se,ce)=>({[`.${se}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ce.motionDurationSlow}`}}}),ee=(se,ce)=>({[`.${se}-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,ge.unit)(ce.lineWidthBold)} solid ${ce.colorPrimary}`,borderRadius:"50%",content:'""'}}}),le=(se,ce)=>{const{treeCls:pe,treeNodeCls:me,treeNodePadding:he,titleHeight:be,indentSize:Pe,nodeSelectedBg:Me,nodeHoverBg:_e,colorTextQuaternary:De,controlItemBgActiveDisabled:Ce}=ce;return{[pe]:Object.assign(Object.assign({},(0,a.Wf)(ce)),{background:ce.colorBgContainer,borderRadius:ce.borderRadius,transition:`background-color ${ce.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${pe}-rtl ${pe}-switcher_close ${pe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${pe}-active-focused)`]:Object.assign({},(0,a.oN)(ce)),[`${pe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${pe}-block-node`]:{[`${pe}-list-holder-inner`]:{alignItems:"stretch",[`${pe}-node-content-wrapper`]:{flex:"auto"},[`${me}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${ce.colorPrimary}`,opacity:0,animationName:oe,animationDuration:ce.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:ce.borderRadius}}},[me]:{display:"flex",alignItems:"flex-start",marginBottom:he,lineHeight:(0,ge.unit)(be),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:he},[`&-disabled ${pe}-node-content-wrapper`]:{color:ce.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${pe}-checkbox-disabled + ${pe}-node-selected,&${me}-disabled${me}-selected ${pe}-node-content-wrapper`]:{backgroundColor:Ce},[`${pe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${me}-disabled)`]:{[`${pe}-node-content-wrapper`]:{"&:hover":{color:ce.nodeHoverColor}}},[`&-active ${pe}-node-content-wrapper`]:{background:ce.controlItemBgHover},[`&:not(${me}-disabled).filter-node ${pe}-title`]:{color:ce.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${pe}-draggable-icon`]:{flexShrink:0,width:be,textAlign:"center",visibility:"visible",color:De},[`&${me}-disabled ${pe}-draggable-icon`]:{visibility:"hidden"}}},[`${pe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Pe}},[`${pe}-draggable-icon`]:{visibility:"hidden"},[`${pe}-switcher, ${pe}-checkbox`]:{marginInlineEnd:ce.calc(ce.calc(be).sub(ce.controlInteractiveSize)).div(2).equal()},[`${pe}-switcher`]:Object.assign(Object.assign({},ie(se,ce)),{position:"relative",flex:"none",alignSelf:"stretch",width:be,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${ce.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:be,height:be,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:ce.borderRadius,transition:`all ${ce.motionDurationSlow}`},[`&:not(${pe}-switcher-noop):hover:before`]:{backgroundColor:ce.colorBgTextHover},[`&_close ${pe}-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(be).div(2).equal(),bottom:ce.calc(he).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${ce.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ce.calc(ce.calc(be).div(2).equal()).mul(.8).equal(),height:ce.calc(be).div(2).equal(),borderBottom:`1px solid ${ce.colorBorder}`,content:'""'}}}),[`${pe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:be,paddingBlock:0,paddingInline:ce.paddingXS,background:"transparent",borderRadius:ce.borderRadius,cursor:"pointer",transition:`all ${ce.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ee(se,ce)),{"&:hover":{backgroundColor:_e},[`&${pe}-node-selected`]:{color:ce.nodeSelectedColor,backgroundColor:Me},[`${pe}-iconEle`]:{display:"inline-block",width:be,height:be,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${pe}-unselectable ${pe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${me}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${ce.colorPrimary}`},"&-show-line":{[`${pe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ce.calc(be).div(2).equal(),bottom:ce.calc(he).mul(-1).equal(),borderInlineEnd:`1px solid ${ce.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${pe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${me}-leaf-last ${pe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,ge.unit)(ce.calc(be).div(2).equal())} !important`}})}},x=function(se,ce){let pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const me=`.${se}`,he=`${me}-treenode`,be=ce.calc(ce.paddingXS).div(2).equal(),Pe=(0,xe.mergeToken)(ce,{treeCls:me,treeNodeCls:he,treeNodePadding:be});return[le(se,Pe),pe&&E(Pe)].filter(Boolean)},ne=se=>{const{controlHeightSM:ce,controlItemBgHover:pe,controlItemBgActive:me}=se,he=ce;return{titleHeight:he,indentSize:he,nodeHoverBg:pe,nodeHoverColor:se.colorText,nodeSelectedBg:me,nodeSelectedColor:se.colorText}},re=se=>{const{colorTextLightSolid:ce,colorPrimary:pe}=se;return Object.assign(Object.assign({},ne(se)),{directoryNodeSelectedColor:ce,directoryNodeSelectedBg:pe})};var ae=(0,z.I$)("Tree",(se,ce)=>{let{prefixCls:pe}=ce;return[{[se.componentCls]:(0,gt.C2)(`${pe}-checkbox`,se)},x(pe,se),(0,Te.Z)(se)]},re)},85278:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return ce}});var ge=Ie(59301),gt=Ie(60499),a={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"},Te=a,xe=Ie(7657),z=function(me,he){return ge.createElement(xe.Z,(0,gt.Z)({},me,{ref:he,icon:Te}))},E=ge.forwardRef(z),oe=E,ie=Ie(52671),ee=Ie(58617),le=Ie(15075),x=Ie(43531),ne=Ie(92310),re=Ie.n(ne),ae=Ie(22703),ce=pe=>{const{prefixCls:me,switcherIcon:he,treeNodeProps:be,showLine:Pe,switcherLoadingIcon:Me}=pe,{isLeaf:_e,expanded:De,loading:Ce}=be;if(Ce)return ge.isValidElement(Me)?Me:ge.createElement(ee.Z,{className:`${me}-switcher-loading-icon`});let Ee;if(Pe&&typeof Pe=="object"&&(Ee=Pe.showLeafIcon),_e){if(!Pe)return null;if(typeof Ee!="boolean"&&Ee){const Be=typeof Ee=="function"?Ee(be):Ee,Ae=`${me}-switcher-line-custom-icon`;return ge.isValidElement(Be)?(0,ae.Tm)(Be,{className:re()(Be.props.className||"",Ae)}):Be}return Ee?ge.createElement(ie.Z,{className:`${me}-switcher-line-icon`}):ge.createElement("span",{className:`${me}-switcher-leaf-line`})}const je=`${me}-switcher-icon`,ke=typeof he=="function"?he(be):he;return ge.isValidElement(ke)?(0,ae.Tm)(ke,{className:re()(ke.props.className||"",je)}):ke!==void 0?ke:Pe?De?ge.createElement(le.Z,{className:`${me}-switcher-line-icon`}):ge.createElement(x.Z,{className:`${me}-switcher-line-icon`}):ge.createElement(oe,{className:je})}},94968:function(Jt,jt,Ie){"use strict";Ie.d(jt,{default:function(){return Nt}});var ge=Ie(59301),gt=Ie(77654),a=Ie(4676),Te=Ie(92310),xe=Ie.n(Te),z=Ie(60499),E=Ie(38705),oe=Ie(17212),ie=Ie(15793),ee=Ie(39153),le=Ie(55401),x=Ie(18642),ne=Ie(85899),re=Ie(42244),ae=Ie(43749),se=Ie(73001),ce=Ie(11576),pe=Ie(26112),me=Ie(48736),he=function(pt,Bt){if(pt&&Bt){var Wt=Array.isArray(Bt)?Bt:Bt.split(","),Gt=pt.name||"",zt=pt.type||"",Rt=zt.replace(/\/.*$/,"");return Wt.some(function(_t){var Ut=_t.trim();if(/^\*(\/\*)?$/.test(_t))return!0;if(Ut.charAt(0)==="."){var dr=Gt.toLowerCase(),cr=Ut.toLowerCase(),hr=[cr];return(cr===".jpg"||cr===".jpeg")&&(hr=[".jpg",".jpeg"]),hr.some(function(Br){return dr.endsWith(Br)})}return/\/\*$/.test(Ut)?Rt===Ut.replace(/\/.*$/,""):zt===Ut?!0:/^\w+$/.test(Ut)?((0,me.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ut,"'.Skip for check.")),!0):!1})}return!0};function be(pt,Bt){var Wt="cannot ".concat(pt.method," ").concat(pt.action," ").concat(Bt.status,"'"),Gt=new Error(Wt);return Gt.status=Bt.status,Gt.method=pt.method,Gt.url=pt.action,Gt}function Pe(pt){var Bt=pt.responseText||pt.response;if(!Bt)return Bt;try{return JSON.parse(Bt)}catch(Wt){return Bt}}function Me(pt){var Bt=new XMLHttpRequest;pt.onProgress&&Bt.upload&&(Bt.upload.onprogress=function(Rt){Rt.total>0&&(Rt.percent=Rt.loaded/Rt.total*100),pt.onProgress(Rt)});var Wt=new FormData;pt.data&&Object.keys(pt.data).forEach(function(zt){var Rt=pt.data[zt];if(Array.isArray(Rt)){Rt.forEach(function(_t){Wt.append("".concat(zt,"[]"),_t)});return}Wt.append(zt,Rt)}),pt.file instanceof Blob?Wt.append(pt.filename,pt.file,pt.file.name):Wt.append(pt.filename,pt.file),Bt.onerror=function(Rt){pt.onError(Rt)},Bt.onload=function(){return Bt.status<200||Bt.status>=300?pt.onError(be(pt,Bt),Pe(Bt)):pt.onSuccess(Pe(Bt),Bt)},Bt.open(pt.method,pt.action,!0),pt.withCredentials&&"withCredentials"in Bt&&(Bt.withCredentials=!0);var Gt=pt.headers||{};return Gt["X-Requested-With"]!==null&&Bt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Gt).forEach(function(zt){Gt[zt]!==null&&Bt.setRequestHeader(zt,Gt[zt])}),Bt.send(Wt),{abort:function(){Bt.abort()}}}var _e=function(){var pt=(0,ce.Z)((0,se.Z)().mark(function Bt(Wt,Gt){var zt,Rt,_t,Ut,dr,cr,hr,Br;return(0,se.Z)().wrap(function(Hr){for(;;)switch(Hr.prev=Hr.next){case 0:cr=function(){return cr=(0,ce.Z)((0,se.Z)().mark(function Pr(Rr){return(0,se.Z)().wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:return Qr.abrupt("return",new Promise(function(Vr){Rr.file(function(Jr){Gt(Jr)?(Rr.fullPath&&!Jr.webkitRelativePath&&(Object.defineProperties(Jr,{webkitRelativePath:{writable:!0}}),Jr.webkitRelativePath=Rr.fullPath.replace(/^\//,""),Object.defineProperties(Jr,{webkitRelativePath:{writable:!1}})),Vr(Jr)):Vr(null)})}));case 1:case"end":return Qr.stop()}},Pr)})),cr.apply(this,arguments)},dr=function(Pr){return cr.apply(this,arguments)},Ut=function(){return Ut=(0,ce.Z)((0,se.Z)().mark(function Pr(Rr){var Ur,Qr,Vr,Jr,Dr;return(0,se.Z)().wrap(function(Gr){for(;;)switch(Gr.prev=Gr.next){case 0:Ur=Rr.createReader(),Qr=[];case 2:return Gr.next=5,new Promise(function(fn){Ur.readEntries(fn,function(){return fn([])})});case 5:if(Vr=Gr.sent,Jr=Vr.length,Jr){Gr.next=9;break}return Gr.abrupt("break",12);case 9:for(Dr=0;Dr<Jr;Dr++)Qr.push(Vr[Dr]);Gr.next=2;break;case 12:return Gr.abrupt("return",Qr);case 13:case"end":return Gr.stop()}},Pr)})),Ut.apply(this,arguments)},_t=function(Pr){return Ut.apply(this,arguments)},zt=[],Rt=[],Wt.forEach(function(_r){return Rt.push(_r.webkitGetAsEntry())}),hr=function(){var _r=(0,ce.Z)((0,se.Z)().mark(function Pr(Rr,Ur){var Qr,Vr;return(0,se.Z)().wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:if(Rr){Dr.next=2;break}return Dr.abrupt("return");case 2:if(Rr.path=Ur||"",!Rr.isFile){Dr.next=10;break}return Dr.next=6,dr(Rr);case 6:Qr=Dr.sent,Qr&&zt.push(Qr),Dr.next=15;break;case 10:if(!Rr.isDirectory){Dr.next=15;break}return Dr.next=13,_t(Rr);case 13:Vr=Dr.sent,Rt.push.apply(Rt,(0,gt.Z)(Vr));case 15:case"end":return Dr.stop()}},Pr)}));return function(Rr,Ur){return _r.apply(this,arguments)}}(),Br=0;case 9:if(!(Br<Rt.length)){Hr.next=15;break}return Hr.next=12,hr(Rt[Br]);case 12:Br++,Hr.next=9;break;case 15:return Hr.abrupt("return",zt);case 16:case"end":return Hr.stop()}},Bt)}));return function(Wt,Gt){return pt.apply(this,arguments)}}(),De=_e,Ce=+new Date,Ee=0;function je(){return"rc-upload-".concat(Ce,"-").concat(++Ee)}var ke=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Be=function(pt){(0,ee.Z)(Wt,pt);var Bt=(0,le.Z)(Wt);function Wt(){var Gt;(0,E.Z)(this,Wt);for(var zt=arguments.length,Rt=new Array(zt),_t=0;_t<zt;_t++)Rt[_t]=arguments[_t];return Gt=Bt.call.apply(Bt,[this].concat(Rt)),(0,x.Z)((0,ie.Z)(Gt),"state",{uid:je()}),(0,x.Z)((0,ie.Z)(Gt),"reqs",{}),(0,x.Z)((0,ie.Z)(Gt),"fileInput",void 0),(0,x.Z)((0,ie.Z)(Gt),"_isMounted",void 0),(0,x.Z)((0,ie.Z)(Gt),"onChange",function(Ut){var dr=Gt.props,cr=dr.accept,hr=dr.directory,Br=Ut.target.files,Fr=(0,gt.Z)(Br).filter(function(Hr){return!hr||he(Hr,cr)});Gt.uploadFiles(Fr),Gt.reset()}),(0,x.Z)((0,ie.Z)(Gt),"onClick",function(Ut){var dr=Gt.fileInput;if(dr){var cr=Ut.target,hr=Gt.props.onClick;if(cr&&cr.tagName==="BUTTON"){var Br=dr.parentNode;Br.focus(),cr.blur()}dr.click(),hr&&hr(Ut)}}),(0,x.Z)((0,ie.Z)(Gt),"onKeyDown",function(Ut){Ut.key==="Enter"&&Gt.onClick(Ut)}),(0,x.Z)((0,ie.Z)(Gt),"onFileDrop",function(){var Ut=(0,ce.Z)((0,se.Z)().mark(function dr(cr){var hr,Br,Fr;return(0,se.Z)().wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:if(hr=Gt.props.multiple,cr.preventDefault(),cr.type!=="dragover"){_r.next=4;break}return _r.abrupt("return");case 4:if(!Gt.props.directory){_r.next=11;break}return _r.next=7,De(Array.prototype.slice.call(cr.dataTransfer.items),function(Pr){return he(Pr,Gt.props.accept)});case 7:Br=_r.sent,Gt.uploadFiles(Br),_r.next=14;break;case 11:Fr=(0,gt.Z)(cr.dataTransfer.files).filter(function(Pr){return he(Pr,Gt.props.accept)}),hr===!1&&(Fr=Fr.slice(0,1)),Gt.uploadFiles(Fr);case 14:case"end":return _r.stop()}},dr)}));return function(dr){return Ut.apply(this,arguments)}}()),(0,x.Z)((0,ie.Z)(Gt),"uploadFiles",function(Ut){var dr=(0,gt.Z)(Ut),cr=dr.map(function(hr){return hr.uid=je(),Gt.processFile(hr,dr)});Promise.all(cr).then(function(hr){var Br=Gt.props.onBatchStart;Br==null||Br(hr.map(function(Fr){var Hr=Fr.origin,_r=Fr.parsedFile;return{file:Hr,parsedFile:_r}})),hr.filter(function(Fr){return Fr.parsedFile!==null}).forEach(function(Fr){Gt.post(Fr)})})}),(0,x.Z)((0,ie.Z)(Gt),"processFile",function(){var Ut=(0,ce.Z)((0,se.Z)().mark(function dr(cr,hr){var Br,Fr,Hr,_r,Pr,Rr,Ur,Qr,Vr;return(0,se.Z)().wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:if(Br=Gt.props.beforeUpload,Fr=cr,!Br){Dr.next=14;break}return Dr.prev=3,Dr.next=6,Br(cr,hr);case 6:Fr=Dr.sent,Dr.next=12;break;case 9:Dr.prev=9,Dr.t0=Dr.catch(3),Fr=!1;case 12:if(Fr!==!1){Dr.next=14;break}return Dr.abrupt("return",{origin:cr,parsedFile:null,action:null,data:null});case 14:if(Hr=Gt.props.action,typeof Hr!="function"){Dr.next=21;break}return Dr.next=18,Hr(cr);case 18:_r=Dr.sent,Dr.next=22;break;case 21:_r=Hr;case 22:if(Pr=Gt.props.data,typeof Pr!="function"){Dr.next=29;break}return Dr.next=26,Pr(cr);case 26:Rr=Dr.sent,Dr.next=30;break;case 29:Rr=Pr;case 30:return Ur=((0,ae.Z)(Fr)==="object"||typeof Fr=="string")&&Fr?Fr:cr,Ur instanceof File?Qr=Ur:Qr=new File([Ur],cr.name,{type:cr.type}),Vr=Qr,Vr.uid=cr.uid,Dr.abrupt("return",{origin:cr,data:Rr,parsedFile:Vr,action:_r});case 35:case"end":return Dr.stop()}},dr,null,[[3,9]])}));return function(dr,cr){return Ut.apply(this,arguments)}}()),(0,x.Z)((0,ie.Z)(Gt),"saveFileInput",function(Ut){Gt.fileInput=Ut}),Gt}return(0,oe.Z)(Wt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(zt){var Rt=this,_t=zt.data,Ut=zt.origin,dr=zt.action,cr=zt.parsedFile;if(this._isMounted){var hr=this.props,Br=hr.onStart,Fr=hr.customRequest,Hr=hr.name,_r=hr.headers,Pr=hr.withCredentials,Rr=hr.method,Ur=Ut.uid,Qr=Fr||Me,Vr={action:dr,filename:Hr,data:_t,file:cr,headers:_r,withCredentials:Pr,method:Rr||"post",onProgress:function(Dr){var tn=Rt.props.onProgress;tn==null||tn(Dr,cr)},onSuccess:function(Dr,tn){var Gr=Rt.props.onSuccess;Gr==null||Gr(Dr,cr,tn),delete Rt.reqs[Ur]},onError:function(Dr,tn){var Gr=Rt.props.onError;Gr==null||Gr(Dr,tn,cr),delete Rt.reqs[Ur]}};Br(Ut),this.reqs[Ur]=Qr(Vr)}}},{key:"reset",value:function(){this.setState({uid:je()})}},{key:"abort",value:function(zt){var Rt=this.reqs;if(zt){var _t=zt.uid?zt.uid:zt;Rt[_t]&&Rt[_t].abort&&Rt[_t].abort(),delete Rt[_t]}else Object.keys(Rt).forEach(function(Ut){Rt[Ut]&&Rt[Ut].abort&&Rt[Ut].abort(),delete Rt[Ut]})}},{key:"render",value:function(){var zt=this.props,Rt=zt.component,_t=zt.prefixCls,Ut=zt.className,dr=zt.classNames,cr=dr===void 0?{}:dr,hr=zt.disabled,Br=zt.id,Fr=zt.name,Hr=zt.style,_r=zt.styles,Pr=_r===void 0?{}:_r,Rr=zt.multiple,Ur=zt.accept,Qr=zt.capture,Vr=zt.children,Jr=zt.directory,Dr=zt.openFileDialogOnClick,tn=zt.onMouseEnter,Gr=zt.onMouseLeave,fn=zt.hasControlInside,pn=(0,re.Z)(zt,ke),ln=xe()((0,x.Z)((0,x.Z)((0,x.Z)({},_t,!0),"".concat(_t,"-disabled"),hr),Ut,Ut)),un=Jr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},yn=hr?{}:{onClick:Dr?this.onClick:function(){},onKeyDown:Dr?this.onKeyDown:function(){},onMouseEnter:tn,onMouseLeave:Gr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:fn?void 0:"0"};return ge.createElement(Rt,(0,z.Z)({},yn,{className:ln,role:fn?void 0:"button",style:Hr}),ge.createElement("input",(0,z.Z)({},(0,pe.Z)(pn,{aria:!0,data:!0}),{id:Br,name:Fr,disabled:hr,type:"file",ref:this.saveFileInput,onClick:function(dn){return dn.stopPropagation()},key:this.state.uid,style:(0,ne.Z)({display:"none"},Pr.input),className:cr.input,accept:Ur},un,{multiple:Rr,onChange:this.onChange},Qr!=null?{capture:Qr}:{})),Vr)}}]),Wt}(ge.Component),Ae=Be;function ve(){}var Ue=function(pt){(0,ee.Z)(Wt,pt);var Bt=(0,le.Z)(Wt);function Wt(){var Gt;(0,E.Z)(this,Wt);for(var zt=arguments.length,Rt=new Array(zt),_t=0;_t<zt;_t++)Rt[_t]=arguments[_t];return Gt=Bt.call.apply(Bt,[this].concat(Rt)),(0,x.Z)((0,ie.Z)(Gt),"uploader",void 0),(0,x.Z)((0,ie.Z)(Gt),"saveUploader",function(Ut){Gt.uploader=Ut}),Gt}return(0,oe.Z)(Wt,[{key:"abort",value:function(zt){this.uploader.abort(zt)}},{key:"render",value:function(){return ge.createElement(Ae,(0,z.Z)({},this.props,{ref:this.saveUploader}))}}]),Wt}(ge.Component);(0,x.Z)(Ue,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ve,onError:ve,onSuccess:ve,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var He=Ue,Ye=He,ot=Ie(18929),Fe=Ie(48755),Ke=Ie(2171),rt=Ie(9017),nt=Ie(85981),et=Ie(63356),Ge=Ie(34961),Xe=Ie(16931),Ve=Ie(51636),tt=Ie(36237),ct=pt=>{const{componentCls:Bt,iconCls:Wt}=pt;return{[`${Bt}-wrapper`]:{[`${Bt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:pt.colorFillAlter,border:`${(0,tt.unit)(pt.lineWidth)} dashed ${pt.colorBorder}`,borderRadius:pt.borderRadiusLG,cursor:"pointer",transition:`border-color ${pt.motionDurationSlow}`,[Bt]:{padding:pt.padding},[`${Bt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:pt.borderRadiusLG,"&:focus-visible":{outline:`${(0,tt.unit)(pt.lineWidthFocus)} solid ${pt.colorPrimaryBorder}`}},[`${Bt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${Bt}-disabled):hover,
&-hover:not(${Bt}-disabled)
`]:{borderColor:pt.colorPrimaryHover},[`p${Bt}-drag-icon`]:{marginBottom:pt.margin,[Wt]:{color:pt.colorPrimary,fontSize:pt.uploadThumbnailSize}},[`p${Bt}-text`]:{margin:`0 0 ${(0,tt.unit)(pt.marginXXS)}`,color:pt.colorTextHeading,fontSize:pt.fontSizeLG},[`p${Bt}-hint`]:{color:pt.colorTextDescription,fontSize:pt.fontSize},[`&${Bt}-disabled`]:{[`p${Bt}-drag-icon ${Wt},
p${Bt}-text,
p${Bt}-hint
`]:{color:pt.colorTextDisabled}}}}}},qe=pt=>{const{componentCls:Bt,iconCls:Wt,fontSize:Gt,lineHeight:zt,calc:Rt}=pt,_t=`${Bt}-list-item`,Ut=`${_t}-actions`,dr=`${_t}-action`;return{[`${Bt}-wrapper`]:{[`${Bt}-list`]:Object.assign(Object.assign({},(0,et.dF)()),{lineHeight:pt.lineHeight,[_t]:{position:"relative",height:Rt(pt.lineHeight).mul(Gt).equal(),marginTop:pt.marginXS,fontSize:Gt,display:"flex",alignItems:"center",transition:`background-color ${pt.motionDurationSlow}`,borderRadius:pt.borderRadiusSM,"&:hover":{backgroundColor:pt.controlItemBgHover},[`${_t}-name`]:Object.assign(Object.assign({},et.vS),{padding:`0 ${(0,tt.unit)(pt.paddingXS)}`,lineHeight:zt,flex:"auto",transition:`all ${pt.motionDurationSlow}`}),[Ut]:{whiteSpace:"nowrap",[dr]:{opacity:0},[Wt]:{color:pt.actionsColor,transition:`all ${pt.motionDurationSlow}`},[`
${dr}:focus-visible,
&.picture ${dr}
`]:{opacity:1}},[`${Bt}-icon ${Wt}`]:{color:pt.colorTextDescription,fontSize:Gt},[`${_t}-progress`]:{position:"absolute",bottom:pt.calc(pt.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Rt(Gt).add(pt.paddingXS).equal(),fontSize:Gt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${_t}:hover ${dr}`]:{opacity:1},[`${_t}-error`]:{color:pt.colorError,[`${_t}-name, ${Bt}-icon ${Wt}`]:{color:pt.colorError},[Ut]:{[`${Wt}, ${Wt}:hover`]:{color:pt.colorError},[dr]:{opacity:1}}},[`${Bt}-list-item-container`]:{transition:`opacity ${pt.motionDurationSlow}, height ${pt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Le=Ie(99495),te=pt=>{const{componentCls:Bt}=pt,Wt=new tt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:pt.calc(pt.marginXS).div(-2).equal()}}),Gt=new tt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:pt.calc(pt.marginXS).div(-2).equal()}}),zt=`${Bt}-animate-inline`;return[{[`${Bt}-wrapper`]:{[`${zt}-appear, ${zt}-enter, ${zt}-leave`]:{animationDuration:pt.motionDurationSlow,animationTimingFunction:pt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${zt}-appear, ${zt}-enter`]:{animationName:Wt},[`${zt}-leave`]:{animationName:Gt}}},{[`${Bt}-wrapper`]:(0,Le.J$)(pt)},Wt,Gt]},de=Ie(68361);const Re=pt=>{const{componentCls:Bt,iconCls:Wt,uploadThumbnailSize:Gt,uploadProgressOffset:zt,calc:Rt}=pt,_t=`${Bt}-list`,Ut=`${_t}-item`;return{[`${Bt}-wrapper`]:{[`
${_t}${_t}-picture,
${_t}${_t}-picture-card,
${_t}${_t}-picture-circle
`]:{[Ut]:{position:"relative",height:Rt(Gt).add(Rt(pt.lineWidth).mul(2)).add(Rt(pt.paddingXS).mul(2)).equal(),padding:pt.paddingXS,border:`${(0,tt.unit)(pt.lineWidth)} ${pt.lineType} ${pt.colorBorder}`,borderRadius:pt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ut}-thumbnail`]:Object.assign(Object.assign({},et.vS),{width:Gt,height:Gt,lineHeight:(0,tt.unit)(Rt(Gt).add(pt.paddingSM).equal()),textAlign:"center",flex:"none",[Wt]:{fontSize:pt.fontSizeHeading2,color:pt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ut}-progress`]:{bottom:zt,width:`calc(100% - ${(0,tt.unit)(Rt(pt.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Rt(Gt).add(pt.paddingXS).equal()}},[`${Ut}-error`]:{borderColor:pt.colorError,[`${Ut}-thumbnail ${Wt}`]:{[`svg path[fill='${de.blue[0]}']`]:{fill:pt.colorErrorBg},[`svg path[fill='${de.blue.primary}']`]:{fill:pt.colorError}}},[`${Ut}-uploading`]:{borderStyle:"dashed",[`${Ut}-name`]:{marginBottom:zt}}},[`${_t}${_t}-picture-circle ${Ut}`]:{[`&, &::before, ${Ut}-thumbnail`]:{borderRadius:"50%"}}}}},We=pt=>{const{componentCls:Bt,iconCls:Wt,fontSizeLG:Gt,colorTextLightSolid:zt,calc:Rt}=pt,_t=`${Bt}-list`,Ut=`${_t}-item`,dr=pt.uploadPicCardSize;return{[`
${Bt}-wrapper${Bt}-picture-card-wrapper,
${Bt}-wrapper${Bt}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,et.dF)()),{display:"block",[`${Bt}${Bt}-select`]:{width:dr,height:dr,textAlign:"center",verticalAlign:"top",backgroundColor:pt.colorFillAlter,border:`${(0,tt.unit)(pt.lineWidth)} dashed ${pt.colorBorder}`,borderRadius:pt.borderRadiusLG,cursor:"pointer",transition:`border-color ${pt.motionDurationSlow}`,[`> ${Bt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Bt}-disabled):hover`]:{borderColor:pt.colorPrimary}},[`${_t}${_t}-picture-card, ${_t}${_t}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:pt.marginXS,marginInlineEnd:pt.marginXS}},"@supports (gap: 1px)":{gap:pt.marginXS},[`${_t}-item-container`]:{display:"inline-block",width:dr,height:dr,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Ut]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,tt.unit)(Rt(pt.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,tt.unit)(Rt(pt.paddingXS).mul(2).equal())})`,backgroundColor:pt.colorBgMask,opacity:0,transition:`all ${pt.motionDurationSlow}`,content:'" "'}},[`${Ut}:hover`]:{[`&::before, ${Ut}-actions`]:{opacity:1}},[`${Ut}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${pt.motionDurationSlow}`,[`
${Wt}-eye,
${Wt}-download,
${Wt}-delete
`]:{zIndex:10,width:Gt,margin:`0 ${(0,tt.unit)(pt.marginXXS)}`,fontSize:Gt,cursor:"pointer",transition:`all ${pt.motionDurationSlow}`,color:zt,"&:hover":{color:zt},svg:{verticalAlign:"baseline"}}},[`${Ut}-thumbnail, ${Ut}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ut}-name`]:{display:"none",textAlign:"center"},[`${Ut}-file + ${Ut}-name`]:{position:"absolute",bottom:pt.margin,display:"block",width:`calc(100% - ${(0,tt.unit)(Rt(pt.paddingXS).mul(2).equal())})`},[`${Ut}-uploading`]:{[`&${Ut}`]:{backgroundColor:pt.colorFillAlter},[`&::before, ${Wt}-eye, ${Wt}-download, ${Wt}-delete`]:{display:"none"}},[`${Ut}-progress`]:{bottom:pt.marginXL,width:`calc(100% - ${(0,tt.unit)(Rt(pt.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Bt}-wrapper${Bt}-picture-circle-wrapper`]:{[`${Bt}${Bt}-select`]:{borderRadius:"50%"}}}};var ye=pt=>{const{componentCls:Bt}=pt;return{[`${Bt}-rtl`]:{direction:"rtl"}}};const Oe=pt=>{const{componentCls:Bt,colorTextDisabled:Wt}=pt;return{[`${Bt}-wrapper`]:Object.assign(Object.assign({},(0,et.Wf)(pt)),{[Bt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Bt}-select`]:{display:"inline-block"},[`${Bt}-hidden`]:{display:"none"},[`${Bt}-disabled`]:{color:Wt,cursor:"not-allowed"}})}},$e=pt=>({actionsColor:pt.colorTextDescription});var Ze=(0,Xe.I$)("Upload",pt=>{const{fontSizeHeading3:Bt,fontHeight:Wt,lineWidth:Gt,controlHeightLG:zt,calc:Rt}=pt,_t=(0,Ve.mergeToken)(pt,{uploadThumbnailSize:Rt(Bt).mul(2).equal(),uploadProgressOffset:Rt(Rt(Wt).div(2)).add(Gt).equal(),uploadPicCardSize:Rt(zt).mul(2.55).equal()});return[Oe(_t),ct(_t),Re(_t),We(_t),qe(_t),te(_t),ye(_t),(0,Ge.Z)(_t)]},$e),Je={icon:function(Bt,Wt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Wt}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Bt}}]}},name:"file",theme:"twotone"},st=Je,lt=Ie(7657),ft=function(Bt,Wt){return ge.createElement(lt.Z,(0,z.Z)({},Bt,{ref:Wt,icon:st}))},Tt=ge.forwardRef(ft),St=Tt,Ot=Ie(58617),yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Dt=yt,Et=function(Bt,Wt){return ge.createElement(lt.Z,(0,z.Z)({},Bt,{ref:Wt,icon:Dt}))},xt=ge.forwardRef(Et),At=xt,It={icon:function(Bt,Wt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Bt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Wt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Wt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Wt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Bt}}]}},name:"picture",theme:"twotone"},ht=It,Ct=function(Bt,Wt){return ge.createElement(lt.Z,(0,z.Z)({},Bt,{ref:Wt,icon:ht}))},Ht=ge.forwardRef(Ct),Vt=Ht,vt=Ie(77900),kt=Ie(2738),$t=Ie(40192),Kt=Ie(86641),tr=Ie(22703),sr=Ie(7939);function gr(pt){return Object.assign(Object.assign({},pt),{lastModified:pt.lastModified,lastModifiedDate:pt.lastModifiedDate,name:pt.name,size:pt.size,type:pt.type,uid:pt.uid,percent:0,originFileObj:pt})}function br(pt,Bt){const Wt=(0,gt.Z)(Bt),Gt=Wt.findIndex(zt=>{let{uid:Rt}=zt;return Rt===pt.uid});return Gt===-1?Wt.push(pt):Wt[Gt]=pt,Wt}function fr(pt,Bt){const Wt=pt.uid!==void 0?"uid":"name";return Bt.filter(Gt=>Gt[Wt]===pt[Wt])[0]}function yr(pt,Bt){const Wt=pt.uid!==void 0?"uid":"name",Gt=Bt.filter(zt=>zt[Wt]!==pt[Wt]);return Gt.length===Bt.length?null:Gt}const ir=function(){const Bt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Gt=Bt[Bt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Gt)||[""])[0]},Yt=pt=>pt.indexOf("image/")===0,Qt=pt=>{if(pt.type&&!pt.thumbUrl)return Yt(pt.type);const Bt=pt.thumbUrl||pt.url||"",Wt=ir(Bt);return/^data:image\//.test(Bt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Wt)?!0:!(/^data:/.test(Bt)||Wt)},qt=200;function Xt(pt){return new Promise(Bt=>{if(!pt.type||!Yt(pt.type)){Bt("");return}const Wt=document.createElement("canvas");Wt.width=qt,Wt.height=qt,Wt.style.cssText=`position: fixed; left: 0; top: 0; width: ${qt}px; height: ${qt}px; z-index: 9999; display: none;`,document.body.appendChild(Wt);const Gt=Wt.getContext("2d"),zt=new Image;if(zt.onload=()=>{const{width:Rt,height:_t}=zt;let Ut=qt,dr=qt,cr=0,hr=0;Rt>_t?(dr=_t*(qt/Rt),hr=-(dr-Ut)/2):(Ut=Rt*(qt/_t),cr=-(Ut-dr)/2),Gt.drawImage(zt,cr,hr,Ut,dr);const Br=Wt.toDataURL();document.body.removeChild(Wt),window.URL.revokeObjectURL(zt.src),Bt(Br)},zt.crossOrigin="anonymous",pt.type.startsWith("image/svg+xml")){const Rt=new FileReader;Rt.onload=()=>{Rt.result&&typeof Rt.result=="string"&&(zt.src=Rt.result)},Rt.readAsDataURL(pt)}else if(pt.type.startsWith("image/gif")){const Rt=new FileReader;Rt.onload=()=>{Rt.result&&Bt(Rt.result)},Rt.readAsDataURL(pt)}else zt.src=window.URL.createObjectURL(pt)})}var ur=Ie(26227),lr=Ie(41464),ar=Ie(15277),Cr=Ie(89787),Ar=Ie(25399),Nr=ge.forwardRef((pt,Bt)=>{let{prefixCls:Wt,className:Gt,style:zt,locale:Rt,listType:_t,file:Ut,items:dr,progress:cr,iconRender:hr,actionIconRender:Br,itemRender:Fr,isImgUrl:Hr,showPreviewIcon:_r,showRemoveIcon:Pr,showDownloadIcon:Rr,previewIcon:Ur,removeIcon:Qr,downloadIcon:Vr,extra:Jr,onPreview:Dr,onDownload:tn,onClose:Gr}=pt;var fn,pn;const{status:ln}=Ut,[un,yn]=ge.useState(ln);ge.useEffect(()=>{ln!=="removed"&&yn(ln)},[ln]);const[sn,dn]=ge.useState(!1);ge.useEffect(()=>{const mr=setTimeout(()=>{dn(!0)},300);return()=>{clearTimeout(mr)}},[]);const en=hr(Ut);let mn=ge.createElement("div",{className:`${Wt}-icon`},en);if(_t==="picture"||_t==="picture-card"||_t==="picture-circle")if(un==="uploading"||!Ut.thumbUrl&&!Ut.url){const mr=xe()(`${Wt}-list-item-thumbnail`,{[`${Wt}-list-item-file`]:un!=="uploading"});mn=ge.createElement("div",{className:mr},en)}else{const mr=Hr!=null&&Hr(Ut)?ge.createElement("img",{src:Ut.thumbUrl||Ut.url,alt:Ut.name,className:`${Wt}-list-item-image`,crossOrigin:Ut.crossOrigin}):en,kr=xe()(`${Wt}-list-item-thumbnail`,{[`${Wt}-list-item-file`]:Hr&&!Hr(Ut)});mn=ge.createElement("a",{className:kr,onClick:Lr=>Dr(Ut,Lr),href:Ut.url||Ut.thumbUrl,target:"_blank",rel:"noopener noreferrer"},mr)}const bn=xe()(`${Wt}-list-item`,`${Wt}-list-item-${un}`),Fn=typeof Ut.linkProps=="string"?JSON.parse(Ut.linkProps):Ut.linkProps,En=(typeof Pr=="function"?Pr(Ut):Pr)?Br((typeof Qr=="function"?Qr(Ut):Qr)||ge.createElement(ur.Z,null),()=>Gr(Ut),Wt,Rt.removeFile,!0):null,Mn=(typeof Rr=="function"?Rr(Ut):Rr)&&un==="done"?Br((typeof Vr=="function"?Vr(Ut):Vr)||ge.createElement(lr.Z,null),()=>tn(Ut),Wt,Rt.downloadFile):null,On=_t!=="picture-card"&&_t!=="picture-circle"&&ge.createElement("span",{key:"download-delete",className:xe()(`${Wt}-list-item-actions`,{picture:_t==="picture"})},Mn,En),In=typeof Jr=="function"?Jr(Ut):Jr,on=In&&ge.createElement("span",{className:`${Wt}-list-item-extra`},In),nn=xe()(`${Wt}-list-item-name`),qr=Ut.url?ge.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:nn,title:Ut.name},Fn,{href:Ut.url,onClick:mr=>Dr(Ut,mr)}),Ut.name,on):ge.createElement("span",{key:"view",className:nn,onClick:mr=>Dr(Ut,mr),title:Ut.name},Ut.name,on),vr=(typeof _r=="function"?_r(Ut):_r)&&(Ut.url||Ut.thumbUrl)?ge.createElement("a",{href:Ut.url||Ut.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:mr=>Dr(Ut,mr),title:Rt.previewFile},typeof Ur=="function"?Ur(Ut):Ur||ge.createElement(ar.Z,null)):null,Or=(_t==="picture-card"||_t==="picture-circle")&&un!=="uploading"&&ge.createElement("span",{className:`${Wt}-list-item-actions`},vr,un==="done"&&Mn,En),{getPrefixCls:Er}=ge.useContext(Fe.E_),pr=Er(),$r=ge.createElement("div",{className:bn},mn,qr,On,Or,sn&&ge.createElement(vt.default,{motionName:`${pr}-fade`,visible:un==="uploading",motionDeadline:2e3},mr=>{let{className:kr}=mr;const Lr="percent"in Ut?ge.createElement(Cr.Z,Object.assign({},cr,{type:"line",percent:Ut.percent,"aria-label":Ut["aria-label"],"aria-labelledby":Ut["aria-labelledby"]})):null;return ge.createElement("div",{className:xe()(`${Wt}-list-item-progress`,kr)},Lr)})),Kr=Ut.response&&typeof Ut.response=="string"?Ut.response:((fn=Ut.error)===null||fn===void 0?void 0:fn.statusText)||((pn=Ut.error)===null||pn===void 0?void 0:pn.message)||Rt.uploadError,wr=un==="error"?ge.createElement(Ar.Z,{title:Kr,getPopupContainer:mr=>mr.parentNode},$r):$r;return ge.createElement("div",{className:xe()(`${Wt}-list-item-container`,Gt),style:zt,ref:Bt},Fr?Fr(wr,Ut,dr,{download:tn.bind(null,Ut),preview:Dr.bind(null,Ut),remove:Gr.bind(null,Ut)}):wr)});const jr=(pt,Bt)=>{const{listType:Wt="text",previewFile:Gt=Xt,onPreview:zt,onDownload:Rt,onRemove:_t,locale:Ut,iconRender:dr,isImageUrl:cr=Qt,prefixCls:hr,items:Br=[],showPreviewIcon:Fr=!0,showRemoveIcon:Hr=!0,showDownloadIcon:_r=!1,removeIcon:Pr,previewIcon:Rr,downloadIcon:Ur,extra:Qr,progress:Vr={size:[-1,2],showInfo:!1},appendAction:Jr,appendActionVisible:Dr=!0,itemRender:tn,disabled:Gr}=pt,fn=(0,$t.Z)(),[pn,ln]=ge.useState(!1),un=["picture-card","picture-circle"].includes(Wt);ge.useEffect(()=>{Wt.startsWith("picture")&&(Br||[]).forEach(on=>{!(on.originFileObj instanceof File||on.originFileObj instanceof Blob)||on.thumbUrl!==void 0||(on.thumbUrl="",Gt==null||Gt(on.originFileObj).then(nn=>{on.thumbUrl=nn||"",fn()}))})},[Wt,Br,Gt]),ge.useEffect(()=>{ln(!0)},[]);const yn=(on,nn)=>{if(zt)return nn==null||nn.preventDefault(),zt(on)},sn=on=>{typeof Rt=="function"?Rt(on):on.url&&window.open(on.url)},dn=on=>{_t==null||_t(on)},en=on=>{if(dr)return dr(on,Wt);const nn=on.status==="uploading";if(Wt.startsWith("picture")){const qr=Wt==="picture"?ge.createElement(Ot.Z,null):Ut.uploading,vr=cr!=null&&cr(on)?ge.createElement(Vt,null):ge.createElement(St,null);return nn?qr:vr}return nn?ge.createElement(Ot.Z,null):ge.createElement(At,null)},mn=(on,nn,qr,vr,Or)=>{const Er={type:"text",size:"small",title:vr,onClick:pr=>{var $r,Kr;nn(),ge.isValidElement(on)&&((Kr=($r=on.props).onClick)===null||Kr===void 0||Kr.call($r,pr))},className:`${qr}-list-item-action`};return Or&&(Er.disabled=Gr),ge.isValidElement(on)?ge.createElement(sr.ZP,Object.assign({},Er,{icon:(0,tr.Tm)(on,Object.assign(Object.assign({},on.props),{onClick:()=>{}}))})):ge.createElement(sr.ZP,Object.assign({},Er),ge.createElement("span",null,on))};ge.useImperativeHandle(Bt,()=>({handlePreview:yn,handleDownload:sn}));const{getPrefixCls:bn}=ge.useContext(Fe.E_),Fn=bn("upload",hr),En=bn(),Mn=xe()(`${Fn}-list`,`${Fn}-list-${Wt}`),On=ge.useMemo(()=>(0,kt.Z)((0,Kt.Z)(En),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[En]),In=Object.assign(Object.assign({},un?{}:On),{motionDeadline:2e3,motionName:`${Fn}-${un?"animate-inline":"animate"}`,keys:(0,gt.Z)(Br.map(on=>({key:on.uid,file:on}))),motionAppear:pn});return ge.createElement("div",{className:Mn},ge.createElement(vt.CSSMotionList,Object.assign({},In,{component:!1}),on=>{let{key:nn,file:qr,className:vr,style:Or}=on;return ge.createElement(Nr,{key:nn,locale:Ut,prefixCls:Fn,className:vr,style:Or,file:qr,items:Br,progress:Vr,listType:Wt,isImgUrl:cr,showPreviewIcon:Fr,showRemoveIcon:Hr,showDownloadIcon:_r,removeIcon:Pr,previewIcon:Rr,downloadIcon:Ur,extra:Qr,iconRender:en,actionIconRender:mn,itemRender:tn,onPreview:yn,onDownload:sn,onClose:dn})}),Jr&&ge.createElement(vt.default,Object.assign({},In,{visible:Dr,forceRender:!0}),on=>{let{className:nn,style:qr}=on;return(0,tr.Tm)(Jr,vr=>({className:xe()(vr.className,nn),style:Object.assign(Object.assign(Object.assign({},qr),{pointerEvents:nn?"none":void 0}),vr.style)}))}))};var Wr=ge.forwardRef(jr),er=function(pt,Bt,Wt,Gt){function zt(Rt){return Rt instanceof Wt?Rt:new Wt(function(_t){_t(Rt)})}return new(Wt||(Wt=Promise))(function(Rt,_t){function Ut(hr){try{cr(Gt.next(hr))}catch(Br){_t(Br)}}function dr(hr){try{cr(Gt.throw(hr))}catch(Br){_t(Br)}}function cr(hr){hr.done?Rt(hr.value):zt(hr.value).then(Ut,dr)}cr((Gt=Gt.apply(pt,Bt||[])).next())})};const or=`__LIST_IGNORE_${Date.now()}__`,Ir=(pt,Bt)=>{const{fileList:Wt,defaultFileList:Gt,onRemove:zt,showUploadList:Rt=!0,listType:_t="text",onPreview:Ut,onDownload:dr,onChange:cr,onDrop:hr,previewFile:Br,disabled:Fr,locale:Hr,iconRender:_r,isImageUrl:Pr,progress:Rr,prefixCls:Ur,className:Qr,type:Vr="select",children:Jr,style:Dr,itemRender:tn,maxCount:Gr,data:fn={},multiple:pn=!1,hasControlInside:ln=!0,action:un="",accept:yn="",supportServerRender:sn=!0,rootClassName:dn}=pt,en=ge.useContext(Ke.Z),mn=Fr!=null?Fr:en,[bn,Fn]=(0,ot.Z)(Gt||[],{value:Wt,postState:xn=>xn!=null?xn:[]}),[En,Mn]=ge.useState("drop"),On=ge.useRef(null),In=ge.useRef(null);ge.useMemo(()=>{const xn=Date.now();(Wt||[]).forEach((Ln,Hn)=>{!Ln.uid&&!Object.isFrozen(Ln)&&(Ln.uid=`__AUTO__${xn}_${Hn}__`)})},[Wt]);const on=(xn,Ln,Hn)=>{let Sn=(0,gt.Z)(Ln),Rn=!1;Gr===1?Sn=Sn.slice(-1):Gr&&(Rn=Sn.length>Gr,Sn=Sn.slice(0,Gr)),(0,a.flushSync)(()=>{Fn(Sn)});const Dn={file:xn,fileList:Sn};Hn&&(Dn.event=Hn),(!Rn||xn.status==="removed"||Sn.some(ui=>ui.uid===xn.uid))&&(0,a.flushSync)(()=>{cr==null||cr(Dn)})},nn=(xn,Ln)=>er(void 0,void 0,void 0,function*(){const{beforeUpload:Hn,transformFile:Sn}=pt;let Rn=xn;if(Hn){const Dn=yield Hn(xn,Ln);if(Dn===!1)return!1;if(delete xn[or],Dn===or)return Object.defineProperty(xn,or,{value:!0,configurable:!0}),!1;typeof Dn=="object"&&Dn&&(Rn=Dn)}return Sn&&(Rn=yield Sn(Rn)),Rn}),qr=xn=>{const Ln=xn.filter(Rn=>!Rn.file[or]);if(!Ln.length)return;const Hn=Ln.map(Rn=>gr(Rn.file));let Sn=(0,gt.Z)(bn);Hn.forEach(Rn=>{Sn=br(Rn,Sn)}),Hn.forEach((Rn,Dn)=>{let ui=Rn;if(Ln[Dn].parsedFile)Rn.status="uploading";else{const{originFileObj:Ii}=Rn;let di;try{di=new File([Ii],Ii.name,{type:Ii.type})}catch(ri){di=new Blob([Ii],{type:Ii.type}),di.name=Ii.name,di.lastModifiedDate=new Date,di.lastModified=new Date().getTime()}di.uid=Rn.uid,ui=di}on(ui,Sn)})},vr=(xn,Ln,Hn)=>{try{typeof xn=="string"&&(xn=JSON.parse(xn))}catch(Dn){}if(!fr(Ln,bn))return;const Sn=gr(Ln);Sn.status="done",Sn.percent=100,Sn.response=xn,Sn.xhr=Hn;const Rn=br(Sn,bn);on(Sn,Rn)},Or=(xn,Ln)=>{if(!fr(Ln,bn))return;const Hn=gr(Ln);Hn.status="uploading",Hn.percent=xn.percent;const Sn=br(Hn,bn);on(Hn,Sn,xn)},Er=(xn,Ln,Hn)=>{if(!fr(Hn,bn))return;const Sn=gr(Hn);Sn.error=xn,Sn.response=Ln,Sn.status="error";const Rn=br(Sn,bn);on(Sn,Rn)},pr=xn=>{let Ln;Promise.resolve(typeof zt=="function"?zt(xn):zt).then(Hn=>{var Sn;if(Hn===!1)return;const Rn=yr(xn,bn);Rn&&(Ln=Object.assign(Object.assign({},xn),{status:"removed"}),bn==null||bn.forEach(Dn=>{const ui=Ln.uid!==void 0?"uid":"name";Dn[ui]===Ln[ui]&&!Object.isFrozen(Dn)&&(Dn.status="removed")}),(Sn=On.current)===null||Sn===void 0||Sn.abort(Ln),on(Ln,Rn))})},$r=xn=>{Mn(xn.type),xn.type==="drop"&&(hr==null||hr(xn))};ge.useImperativeHandle(Bt,()=>({onBatchStart:qr,onSuccess:vr,onProgress:Or,onError:Er,fileList:bn,upload:On.current,nativeElement:In.current}));const{getPrefixCls:Kr,direction:wr,upload:mr}=ge.useContext(Fe.E_),kr=Kr("upload",Ur),Lr=Object.assign(Object.assign({onBatchStart:qr,onError:Er,onProgress:Or,onSuccess:vr},pt),{data:fn,multiple:pn,action:un,accept:yn,supportServerRender:sn,prefixCls:kr,disabled:mn,beforeUpload:nn,onChange:void 0,hasControlInside:ln});delete Lr.className,delete Lr.style,(!Jr||mn)&&delete Lr.id;const cn=`${kr}-wrapper`,[Pn,Tn,_n]=Ze(kr,cn),[Nn]=(0,rt.Z)("Upload",nt.Z.Upload),{showRemoveIcon:Bn,showPreviewIcon:Zn,showDownloadIcon:$n,removeIcon:Vn,previewIcon:ti,downloadIcon:Ei,extra:Ri}=typeof Rt=="boolean"?{}:Rt,xi=typeof Bn=="undefined"?!mn:Bn,li=(xn,Ln)=>Rt?ge.createElement(Wr,{prefixCls:kr,listType:_t,items:bn,previewFile:Br,onPreview:Ut,onDownload:dr,onRemove:pr,showRemoveIcon:xi,showPreviewIcon:Zn,showDownloadIcon:$n,removeIcon:Vn,previewIcon:ti,downloadIcon:Ei,iconRender:_r,extra:Ri,locale:Object.assign(Object.assign({},Nn),Hr),isImageUrl:Pr,progress:Rr,appendAction:xn,appendActionVisible:Ln,itemRender:tn,disabled:mn}):xn,_i=xe()(cn,Qr,dn,Tn,_n,mr==null?void 0:mr.className,{[`${kr}-rtl`]:wr==="rtl",[`${kr}-picture-card-wrapper`]:_t==="picture-card",[`${kr}-picture-circle-wrapper`]:_t==="picture-circle"}),Wn=Object.assign(Object.assign({},mr==null?void 0:mr.style),Dr);if(Vr==="drag"){const xn=xe()(Tn,kr,`${kr}-drag`,{[`${kr}-drag-uploading`]:bn.some(Ln=>Ln.status==="uploading"),[`${kr}-drag-hover`]:En==="dragover",[`${kr}-disabled`]:mn,[`${kr}-rtl`]:wr==="rtl"});return Pn(ge.createElement("span",{className:_i,ref:In},ge.createElement("div",{className:xn,style:Wn,onDrop:$r,onDragOver:$r,onDragLeave:$r},ge.createElement(Ye,Object.assign({},Lr,{ref:On,className:`${kr}-btn`}),ge.createElement("div",{className:`${kr}-drag-container`},Jr))),li()))}const Ki=xe()(kr,`${kr}-select`,{[`${kr}-disabled`]:mn,[`${kr}-hidden`]:!Jr}),qn=ge.createElement("div",{className:Ki},ge.createElement(Ye,Object.assign({},Lr,{ref:On})));return Pn(_t==="picture-card"||_t==="picture-circle"?ge.createElement("span",{className:_i,ref:In},li(qn,!!Jr)):ge.createElement("span",{className:_i,ref:In},qn,li()))};var Pt=ge.forwardRef(Ir),Lt=function(pt,Bt){var Wt={};for(var Gt in pt)Object.prototype.hasOwnProperty.call(pt,Gt)&&Bt.indexOf(Gt)<0&&(Wt[Gt]=pt[Gt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Gt=Object.getOwnPropertySymbols(pt);zt<Gt.length;zt++)Bt.indexOf(Gt[zt])<0&&Object.prototype.propertyIsEnumerable.call(pt,Gt[zt])&&(Wt[Gt[zt]]=pt[Gt[zt]]);return Wt},Mt=ge.forwardRef((pt,Bt)=>{var{style:Wt,height:Gt,hasControlInside:zt=!1}=pt,Rt=Lt(pt,["style","height","hasControlInside"]);return ge.createElement(Pt,Object.assign({ref:Bt,hasControlInside:zt},Rt,{type:"drag",style:Object.assign(Object.assign({},Wt),{height:Gt})}))});const wt=Pt;wt.Dragger=Mt,wt.LIST_IGNORE=or;var Nt=wt},99498:function(Jt,jt,Ie){(function(ge){ge(Ie(89780))})(function(ge){ge.defineOption("placeholder","",function(oe,ie,ee){var le=ee&&ee!=ge.Init;if(ie&&!le)oe.on("blur",xe),oe.on("change",z),oe.on("swapDoc",z),ge.on(oe.getInputField(),"compositionupdate",oe.state.placeholderCompose=function(){Te(oe)}),z(oe);else if(!ie&&le){oe.off("blur",xe),oe.off("change",z),oe.off("swapDoc",z),ge.off(oe.getInputField(),"compositionupdate",oe.state.placeholderCompose),gt(oe);var x=oe.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}ie&&!oe.hasFocus()&&xe(oe)});function gt(oe){oe.state.placeholder&&(oe.state.placeholder.parentNode.removeChild(oe.state.placeholder),oe.state.placeholder=null)}function a(oe){gt(oe);var ie=oe.state.placeholder=document.createElement("pre");ie.style.cssText="height: 0; overflow: visible",ie.style.direction=oe.getOption("direction"),ie.className="CodeMirror-placeholder CodeMirror-line-like";var ee=oe.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),ie.appendChild(ee),oe.display.lineSpace.insertBefore(ie,oe.display.lineSpace.firstChild)}function Te(oe){setTimeout(function(){var ie=!1,ee=oe.getInputField();ee.nodeName=="TEXTAREA"?ie=!ee.value:oe.lineCount()==1&&(ie=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),ie?a(oe):gt(oe)},20)}function xe(oe){E(oe)&&a(oe)}function z(oe){var ie=oe.getWrapperElement(),ee=E(oe);ie.className=ie.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?a(oe):gt(oe)}function E(oe){return oe.lineCount()===1&&oe.getLine(0)===""}})},25717:function(Jt,jt,Ie){(function(ge){ge(Ie(89780))})(function(ge){var gt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},a=ge.Pos;ge.defineOption("autoCloseBrackets",!1,function(ae,se,ce){ce&&ce!=ge.Init&&(ae.removeKeyMap(xe),ae.state.closeBrackets=null),se&&(z(Te(se,"pairs")),ae.state.closeBrackets=se,ae.addKeyMap(xe))});function Te(ae,se){return se=="pairs"&&typeof ae=="string"?ae:typeof ae=="object"&&ae[se]!=null?ae[se]:gt[se]}var xe={Backspace:ie,Enter:ee};function z(ae){for(var se=0;se<ae.length;se++){var ce=ae.charAt(se),pe="'"+ce+"'";xe[pe]||(xe[pe]=E(ce))}}z(gt.pairs+"`");function E(ae){return function(se){return x(se,ae)}}function oe(ae){var se=ae.state.closeBrackets;if(!se||se.override)return se;var ce=ae.getModeAt(ae.getCursor());return ce.closeBrackets||se}function ie(ae){var se=oe(ae);if(!se||ae.getOption("disableInput"))return ge.Pass;for(var ce=Te(se,"pairs"),pe=ae.listSelections(),me=0;me<pe.length;me++){if(!pe[me].empty())return ge.Pass;var he=ne(ae,pe[me].head);if(!he||ce.indexOf(he)%2!=0)return ge.Pass}for(var me=pe.length-1;me>=0;me--){var be=pe[me].head;ae.replaceRange("",a(be.line,be.ch-1),a(be.line,be.ch+1),"+delete")}}function ee(ae){var se=oe(ae),ce=se&&Te(se,"explode");if(!ce||ae.getOption("disableInput"))return ge.Pass;for(var pe=ae.listSelections(),me=0;me<pe.length;me++){if(!pe[me].empty())return ge.Pass;var he=ne(ae,pe[me].head);if(!he||ce.indexOf(he)%2!=0)return ge.Pass}ae.operation(function(){var be=ae.lineSeparator()||`
`;ae.replaceSelection(be+be,null),ae.execCommand("goCharLeft"),pe=ae.listSelections();for(var Pe=0;Pe<pe.length;Pe++){var Me=pe[Pe].head.line;ae.indentLine(Me,null,!0),ae.indentLine(Me+1,null,!0)}})}function le(ae){var se=ge.cmpPos(ae.anchor,ae.head)>0;return{anchor:new a(ae.anchor.line,ae.anchor.ch+(se?-1:1)),head:new a(ae.head.line,ae.head.ch+(se?1:-1))}}function x(ae,se){var ce=oe(ae);if(!ce||ae.getOption("disableInput"))return ge.Pass;var pe=Te(ce,"pairs"),me=pe.indexOf(se);if(me==-1)return ge.Pass;for(var he=Te(ce,"closeBefore"),be=Te(ce,"triples"),Pe=pe.charAt(me+1)==se,Me=ae.listSelections(),_e=me%2==0,De,Ce=0;Ce<Me.length;Ce++){var Ee=Me[Ce],je=Ee.head,ke,Be=ae.getRange(je,a(je.line,je.ch+1));if(_e&&!Ee.empty())ke="surround";else if((Pe||!_e)&&Be==se)Pe&&re(ae,je)?ke="both":be.indexOf(se)>=0&&ae.getRange(je,a(je.line,je.ch+3))==se+se+se?ke="skipThree":ke="skip";else if(Pe&&je.ch>1&&be.indexOf(se)>=0&&ae.getRange(a(je.line,je.ch-2),je)==se+se){if(je.ch>2&&/\bstring/.test(ae.getTokenTypeAt(a(je.line,je.ch-2))))return ge.Pass;ke="addFour"}else if(Pe){var Ae=je.ch==0?" ":ae.getRange(a(je.line,je.ch-1),je);if(!ge.isWordChar(Be)&&Ae!=se&&!ge.isWordChar(Ae))ke="both";else return ge.Pass}else if(_e&&(Be.length===0||/\s/.test(Be)||he.indexOf(Be)>-1))ke="both";else return ge.Pass;if(!De)De=ke;else if(De!=ke)return ge.Pass}var ve=me%2?pe.charAt(me-1):se,Ue=me%2?se:pe.charAt(me+1);ae.operation(function(){if(De=="skip")ae.execCommand("goCharRight");else if(De=="skipThree")for(var He=0;He<3;He++)ae.execCommand("goCharRight");else if(De=="surround"){for(var Ye=ae.getSelections(),He=0;He<Ye.length;He++)Ye[He]=ve+Ye[He]+Ue;ae.replaceSelections(Ye,"around"),Ye=ae.listSelections().slice();for(var He=0;He<Ye.length;He++)Ye[He]=le(Ye[He]);ae.setSelections(Ye)}else De=="both"?(ae.replaceSelection(ve+Ue,null),ae.triggerElectric(ve+Ue),ae.execCommand("goCharLeft")):De=="addFour"&&(ae.replaceSelection(ve+ve+ve+ve,"before"),ae.execCommand("goCharRight"))})}function ne(ae,se){var ce=ae.getRange(a(se.line,se.ch-1),a(se.line,se.ch+1));return ce.length==2?ce:null}function re(ae,se){var ce=ae.getTokenAt(a(se.line,se.ch+1));return/\bstring/.test(ce.type)&&ce.start==se.ch&&(se.ch==0||!/\bstring/.test(ae.getTokenTypeAt(se)))}})},6313:function(Jt,jt,Ie){(function(ge){ge(Ie(89780),Ie(32855))})(function(ge){ge.defineOption("autoCloseTags",!1,function(ie,ee,le){if(le!=ge.Init&&le&&ie.removeKeyMap("autoCloseTags"),!!ee){var x={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(x["'/'"]=function(ne){return z(ne)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(x["'>'"]=function(ne){return Te(ne)}),ie.addKeyMap(x)}});var gt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],a=["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 Te(ie){if(ie.getOption("disableInput"))return ge.Pass;for(var ee=ie.listSelections(),le=[],x=ie.getOption("autoCloseTags"),ne=0;ne<ee.length;ne++){if(!ee[ne].empty())return ge.Pass;var re=ee[ne].head,ae=ie.getTokenAt(re),se=ge.innerMode(ie.getMode(),ae.state),ce=se.state,pe=se.mode.xmlCurrentTag&&se.mode.xmlCurrentTag(ce),me=pe&&pe.name;if(!me)return ge.Pass;var he=se.mode.configuration=="html",be=typeof x=="object"&&x.dontCloseTags||he&&gt,Pe=typeof x=="object"&&x.indentTags||he&&a;ae.end>re.ch&&(me=me.slice(0,me.length-ae.end+re.ch));var Me=me.toLowerCase();if(!me||ae.type=="string"&&(ae.end!=re.ch||!/[\"\']/.test(ae.string.charAt(ae.string.length-1))||ae.string.length==1)||ae.type=="tag"&&pe.close||ae.string.indexOf("/")==re.ch-ae.start-1||be&&E(be,Me)>-1||oe(ie,se.mode.xmlCurrentContext&&se.mode.xmlCurrentContext(ce)||[],me,re,!0))return ge.Pass;var _e=typeof x=="object"&&x.emptyTags;if(_e&&E(_e,me)>-1){le[ne]={text:"/>",newPos:ge.Pos(re.line,re.ch+2)};continue}var De=Pe&&E(Pe,Me)>-1;le[ne]={indent:De,text:">"+(De?`
`:"")+"</"+me+">",newPos:De?ge.Pos(re.line+1,0):ge.Pos(re.line,re.ch+1)}}for(var Ce=typeof x=="object"&&x.dontIndentOnAutoClose,ne=ee.length-1;ne>=0;ne--){var Ee=le[ne];ie.replaceRange(Ee.text,ee[ne].head,ee[ne].anchor,"+insert");var je=ie.listSelections().slice(0);je[ne]={head:Ee.newPos,anchor:Ee.newPos},ie.setSelections(je),!Ce&&Ee.indent&&(ie.indentLine(Ee.newPos.line,null,!0),ie.indentLine(Ee.newPos.line+1,null,!0))}}function xe(ie,ee){for(var le=ie.listSelections(),x=[],ne=ee?"/":"</",re=ie.getOption("autoCloseTags"),ae=typeof re=="object"&&re.dontIndentOnSlash,se=0;se<le.length;se++){if(!le[se].empty())return ge.Pass;var ce=le[se].head,pe=ie.getTokenAt(ce),me=ge.innerMode(ie.getMode(),pe.state),he=me.state;if(ee&&(pe.type=="string"||pe.string.charAt(0)!="<"||pe.start!=ce.ch-1))return ge.Pass;var be,Pe=me.mode.name!="xml"&&ie.getMode().name=="htmlmixed";if(Pe&&me.mode.name=="javascript")be=ne+"script";else if(Pe&&me.mode.name=="css")be=ne+"style";else{var Me=me.mode.xmlCurrentContext&&me.mode.xmlCurrentContext(he);if(!Me||Me.length&&oe(ie,Me,Me[Me.length-1],ce))return ge.Pass;be=ne+Me[Me.length-1]}ie.getLine(ce.line).charAt(pe.end)!=">"&&(be+=">"),x[se]=be}if(ie.replaceSelections(x),le=ie.listSelections(),!ae)for(var se=0;se<le.length;se++)(se==le.length-1||le[se].head.line<le[se+1].head.line)&&ie.indentLine(le[se].head.line)}function z(ie){return ie.getOption("disableInput")?ge.Pass:xe(ie,!0)}ge.commands.closeTag=function(ie){return xe(ie)};function E(ie,ee){if(ie.indexOf)return ie.indexOf(ee);for(var le=0,x=ie.length;le<x;++le)if(ie[le]==ee)return le;return-1}function oe(ie,ee,le,x,ne){if(!ge.scanForClosingTag)return!1;var re=Math.min(ie.lastLine()+1,x.line+500),ae=ge.scanForClosingTag(ie,x,null,re);if(!ae||ae.tag!=le)return!1;for(var se=ne?1:0,ce=ee.length-1;ce>=0&&ee[ce]==le;ce--)++se;x=ae.to;for(var ce=1;ce<se;ce++){var pe=ge.scanForClosingTag(ie,x,null,re);if(!pe||pe.tag!=le)return!1;x=pe.to}return!0}})},32855:function(Jt,jt,Ie){(function(ge){ge(Ie(89780))})(function(ge){"use strict";var gt=ge.Pos;function a(ce,pe){return ce.line-pe.line||ce.ch-pe.ch}var Te="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",xe=Te+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",z=new RegExp("<(/?)(["+Te+"]["+xe+"]*)","g");function E(ce,pe,me,he){this.line=pe,this.ch=me,this.cm=ce,this.text=ce.getLine(pe),this.min=he?Math.max(he.from,ce.firstLine()):ce.firstLine(),this.max=he?Math.min(he.to-1,ce.lastLine()):ce.lastLine()}function oe(ce,pe){var me=ce.cm.getTokenTypeAt(gt(ce.line,pe));return me&&/\btag\b/.test(me)}function ie(ce){if(!(ce.line>=ce.max))return ce.ch=0,ce.text=ce.cm.getLine(++ce.line),!0}function ee(ce){if(!(ce.line<=ce.min))return ce.text=ce.cm.getLine(--ce.line),ce.ch=ce.text.length,!0}function le(ce){for(;;){var pe=ce.text.indexOf(">",ce.ch);if(pe==-1){if(ie(ce))continue;return}if(!oe(ce,pe+1)){ce.ch=pe+1;continue}var me=ce.text.lastIndexOf("/",pe),he=me>-1&&!/\S/.test(ce.text.slice(me+1,pe));return ce.ch=pe+1,he?"selfClose":"regular"}}function x(ce){for(;;){var pe=ce.ch?ce.text.lastIndexOf("<",ce.ch-1):-1;if(pe==-1){if(ee(ce))continue;return}if(!oe(ce,pe+1)){ce.ch=pe;continue}z.lastIndex=pe,ce.ch=pe;var me=z.exec(ce.text);if(me&&me.index==pe)return me}}function ne(ce){for(;;){z.lastIndex=ce.ch;var pe=z.exec(ce.text);if(!pe){if(ie(ce))continue;return}if(!oe(ce,pe.index+1)){ce.ch=pe.index+1;continue}return ce.ch=pe.index+pe[0].length,pe}}function re(ce){for(;;){var pe=ce.ch?ce.text.lastIndexOf(">",ce.ch-1):-1;if(pe==-1){if(ee(ce))continue;return}if(!oe(ce,pe+1)){ce.ch=pe;continue}var me=ce.text.lastIndexOf("/",pe),he=me>-1&&!/\S/.test(ce.text.slice(me+1,pe));return ce.ch=pe+1,he?"selfClose":"regular"}}function ae(ce,pe){for(var me=[];;){var he=ne(ce),be,Pe=ce.line,Me=ce.ch-(he?he[0].length:0);if(!he||!(be=le(ce)))return;if(be!="selfClose")if(he[1]){for(var _e=me.length-1;_e>=0;--_e)if(me[_e]==he[2]){me.length=_e;break}if(_e<0&&(!pe||pe==he[2]))return{tag:he[2],from:gt(Pe,Me),to:gt(ce.line,ce.ch)}}else me.push(he[2])}}function se(ce,pe){for(var me=[];;){var he=re(ce);if(!he)return;if(he=="selfClose"){x(ce);continue}var be=ce.line,Pe=ce.ch,Me=x(ce);if(!Me)return;if(Me[1])me.push(Me[2]);else{for(var _e=me.length-1;_e>=0;--_e)if(me[_e]==Me[2]){me.length=_e;break}if(_e<0&&(!pe||pe==Me[2]))return{tag:Me[2],from:gt(ce.line,ce.ch),to:gt(be,Pe)}}}}ge.registerHelper("fold","xml",function(ce,pe){for(var me=new E(ce,pe.line,0);;){var he=ne(me);if(!he||me.line!=pe.line)return;var be=le(me);if(!be)return;if(!he[1]&&be!="selfClose"){var Pe=gt(me.line,me.ch),Me=ae(me,he[2]);return Me&&a(Me.from,Pe)>0?{from:Pe,to:Me.from}:null}}}),ge.findMatchingTag=function(ce,pe,me){var he=new E(ce,pe.line,pe.ch,me);if(!(he.text.indexOf(">")==-1&&he.text.indexOf("<")==-1)){var be=le(he),Pe=be&&gt(he.line,he.ch),Me=be&&x(he);if(!(!be||!Me||a(he,pe)>0)){var _e={from:gt(he.line,he.ch),to:Pe,tag:Me[2]};return be=="selfClose"?{open:_e,close:null,at:"open"}:Me[1]?{open:se(he,Me[2]),close:_e,at:"close"}:(he=new E(ce,Pe.line,Pe.ch,me),{open:_e,close:ae(he,Me[2]),at:"open"})}}},ge.findEnclosingTag=function(ce,pe,me,he){for(var be=new E(ce,pe.line,pe.ch,me);;){var Pe=se(be,he);if(!Pe)break;var Me=new E(ce,pe.line,pe.ch,me),_e=ae(Me,Pe.tag);if(_e)return{open:Pe,close:_e}}},ge.scanForClosingTag=function(ce,pe,me,he){var be=new E(ce,pe.line,pe.ch,he?{from:0,to:he}:null);return ae(be,me)}})},89780:function(Jt){(function(jt,Ie){Jt.exports=Ie()})(this,function(){"use strict";var jt=navigator.userAgent,Ie=navigator.platform,ge=/gecko\/\d/i.test(jt),gt=/MSIE \d/.test(jt),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jt),Te=/Edge\/(\d+)/.exec(jt),xe=gt||a||Te,z=xe&&(gt?document.documentMode||6:+(Te||a)[1]),E=!Te&&/WebKit\//.test(jt),oe=E&&/Qt\/\d+\.\d+/.test(jt),ie=!Te&&/Chrome\//.test(jt),ee=/Opera\//.test(jt),le=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(jt),ne=/PhantomJS/.test(jt),re=!Te&&/AppleWebKit/.test(jt)&&/Mobile\/\w+/.test(jt),ae=/Android/.test(jt),se=re||ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(jt),ce=re||/Mac/.test(Ie),pe=/\bCrOS\b/.test(jt),me=/win/i.test(Ie),he=ee&&jt.match(/Version\/(\d*\.\d*)/);he&&(he=Number(he[1])),he&&he>=15&&(ee=!1,E=!0);var be=ce&&(oe||ee&&(he==null||he<12.11)),Pe=ge||xe&&z>=9;function Me(y){return new RegExp("(^|\\s)"+y+"(?:$|\\s)\\s*")}var _e=function(y,b){var fe=y.className,ue=Me(b).exec(fe);if(ue){var Se=fe.slice(ue.index+ue[0].length);y.className=fe.slice(0,ue.index)+(Se?ue[1]+Se:"")}};function De(y){for(var b=y.childNodes.length;b>0;--b)y.removeChild(y.firstChild);return y}function Ce(y,b){return De(y).appendChild(b)}function Ee(y,b,fe,ue){var Se=document.createElement(y);if(fe&&(Se.className=fe),ue&&(Se.style.cssText=ue),typeof b=="string")Se.appendChild(document.createTextNode(b));else if(b)for(var ze=0;ze<b.length;++ze)Se.appendChild(b[ze]);return Se}function je(y,b,fe,ue){var Se=Ee(y,b,fe,ue);return Se.setAttribute("role","presentation"),Se}var ke;document.createRange?ke=function(y,b,fe,ue){var Se=document.createRange();return Se.setEnd(ue||y,fe),Se.setStart(y,b),Se}:ke=function(y,b,fe){var ue=document.body.createTextRange();try{ue.moveToElementText(y.parentNode)}catch(Se){return ue}return ue.collapse(!0),ue.moveEnd("character",fe),ue.moveStart("character",b),ue};function Be(y,b){if(b.nodeType==3&&(b=b.parentNode),y.contains)return y.contains(b);do if(b.nodeType==11&&(b=b.host),b==y)return!0;while(b=b.parentNode)}function Ae(){var y;try{y=document.activeElement}catch(b){y=document.body||null}for(;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;return y}function ve(y,b){var fe=y.className;Me(b).test(fe)||(y.className+=(fe?" ":"")+b)}function Ue(y,b){for(var fe=y.split(" "),ue=0;ue<fe.length;ue++)fe[ue]&&!Me(fe[ue]).test(b)&&(b+=" "+fe[ue]);return b}var He=function(y){y.select()};re?He=function(y){y.selectionStart=0,y.selectionEnd=y.value.length}:xe&&(He=function(y){try{y.select()}catch(b){}});function Ye(y){var b=Array.prototype.slice.call(arguments,1);return function(){return y.apply(null,b)}}function ot(y,b,fe){b||(b={});for(var ue in y)y.hasOwnProperty(ue)&&(fe!==!1||!b.hasOwnProperty(ue))&&(b[ue]=y[ue]);return b}function Fe(y,b,fe,ue,Se){b==null&&(b=y.search(/[^\s\u00a0]/),b==-1&&(b=y.length));for(var ze=ue||0,it=Se||0;;){var ut=y.indexOf(" ",ze);if(ut<0||ut>=b)return it+(b-ze);it+=ut-ze,it+=fe-it%fe,ze=ut+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=Ye(this.onTimeout,this)};Ke.prototype.onTimeout=function(y){y.id=0,y.time<=+new Date?y.f():setTimeout(y.handler,y.time-+new Date)},Ke.prototype.set=function(y,b){this.f=b;var fe=+new Date+y;(!this.id||fe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,y),this.time=fe)};function rt(y,b){for(var fe=0;fe<y.length;++fe)if(y[fe]==b)return fe;return-1}var nt=50,et={toString:function(){return"CodeMirror.Pass"}},Ge={scroll:!1},Xe={origin:"*mouse"},Ve={origin:"+move"};function tt(y,b,fe){for(var ue=0,Se=0;;){var ze=y.indexOf(" ",ue);ze==-1&&(ze=y.length);var it=ze-ue;if(ze==y.length||Se+it>=b)return ue+Math.min(it,b-Se);if(Se+=ze-ue,Se+=fe-Se%fe,ue=ze+1,Se>=b)return ue}}var Qe=[""];function ct(y){for(;Qe.length<=y;)Qe.push(at(Qe)+" ");return Qe[y]}function at(y){return y[y.length-1]}function qe(y,b){for(var fe=[],ue=0;ue<y.length;ue++)fe[ue]=b(y[ue],ue);return fe}function Le(y,b,fe){for(var ue=0,Se=fe(b);ue<y.length&&fe(y[ue])<=Se;)ue++;y.splice(ue,0,b)}function Ne(){}function te(y,b){var fe;return Object.create?fe=Object.create(y):(Ne.prototype=y,fe=new Ne),b&&ot(b,fe),fe}var de=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Re(y){return/\w/.test(y)||y>"\x80"&&(y.toUpperCase()!=y.toLowerCase()||de.test(y))}function We(y,b){return b?b.source.indexOf("\\w")>-1&&Re(y)?!0:b.test(y):Re(y)}function we(y){for(var b in y)if(y.hasOwnProperty(b)&&y[b])return!1;return!0}var ye=/[\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 Oe(y){return y.charCodeAt(0)>=768&&ye.test(y)}function $e(y,b,fe){for(;(fe<0?b>0:b<y.length)&&Oe(y.charAt(b));)b+=fe;return b}function Ze(y,b,fe){for(var ue=b>fe?-1:1;;){if(b==fe)return b;var Se=(b+fe)/2,ze=ue<0?Math.ceil(Se):Math.floor(Se);if(ze==b)return y(ze)?b:fe;y(ze)?fe=ze:b=ze+ue}}function Je(y,b,fe,ue){if(!y)return ue(b,fe,"ltr",0);for(var Se=!1,ze=0;ze<y.length;++ze){var it=y[ze];(it.from<fe&&it.to>b||b==fe&&it.to==b)&&(ue(Math.max(it.from,b),Math.min(it.to,fe),it.level==1?"rtl":"ltr",ze),Se=!0)}Se||ue(b,fe,"ltr")}var st=null;function lt(y,b,fe){var ue;st=null;for(var Se=0;Se<y.length;++Se){var ze=y[Se];if(ze.from<b&&ze.to>b)return Se;ze.to==b&&(ze.from!=ze.to&&fe=="before"?ue=Se:st=Se),ze.from==b&&(ze.from!=ze.to&&fe!="before"?ue=Se:st=Se)}return ue!=null?ue:st}var ft=function(){var y="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function fe(mt){return mt<=247?y.charAt(mt):1424<=mt&&mt<=1524?"R":1536<=mt&&mt<=1785?b.charAt(mt-1536):1774<=mt&&mt<=2220?"r":8192<=mt&&mt<=8203?"w":mt==8204?"b":"L"}var ue=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Se=/[stwN]/,ze=/[LRr]/,it=/[Lb1n]/,ut=/[1n]/;function dt(mt,Ft,Zt){this.level=mt,this.from=Ft,this.to=Zt}return function(mt,Ft){var Zt=Ft=="ltr"?"L":"R";if(mt.length==0||Ft=="ltr"&&!ue.test(mt))return!1;for(var nr=mt.length,rr=[],Sr=0;Sr<nr;++Sr)rr.push(fe(mt.charCodeAt(Sr)));for(var Mr=0,zr=Zt;Mr<nr;++Mr){var Xr=rr[Mr];Xr=="m"?rr[Mr]=zr:zr=Xr}for(var rn=0,Yr=Zt;rn<nr;++rn){var an=rr[rn];an=="1"&&Yr=="r"?rr[rn]="n":ze.test(an)&&(Yr=an,an=="r"&&(rr[rn]="R"))}for(var gn=1,hn=rr[0];gn<nr-1;++gn){var kn=rr[gn];kn=="+"&&hn=="1"&&rr[gn+1]=="1"?rr[gn]="1":kn==","&&hn==rr[gn+1]&&(hn=="1"||hn=="n")&&(rr[gn]=hn),hn=kn}for(var Yn=0;Yn<nr;++Yn){var mi=rr[Yn];if(mi==",")rr[Yn]="N";else if(mi=="%"){var Qn=void 0;for(Qn=Yn+1;Qn<nr&&rr[Qn]=="%";++Qn);for(var Wi=Yn&&rr[Yn-1]=="!"||Qn<nr&&rr[Qn]=="1"?"1":"N",ki=Yn;ki<Qn;++ki)rr[ki]=Wi;Yn=Qn-1}}for(var ai=0,Mi=Zt;ai<nr;++ai){var bi=rr[ai];Mi=="L"&&bi=="1"?rr[ai]="L":ze.test(bi)&&(Mi=bi)}for(var fi=0;fi<nr;++fi)if(Se.test(rr[fi])){var si=void 0;for(si=fi+1;si<nr&&Se.test(rr[si]);++si);for(var ei=(fi?rr[fi-1]:Zt)=="L",Ni=(si<nr?rr[si]:Zt)=="L",Zo=ei==Ni?ei?"L":"R":Zt,bo=fi;bo<si;++bo)rr[bo]=Zo;fi=si-1}for(var Ci=[],no,vi=0;vi<nr;)if(it.test(rr[vi])){var bs=vi;for(++vi;vi<nr&&it.test(rr[vi]);++vi);Ci.push(new dt(0,bs,vi))}else{var so=vi,Io=Ci.length,jo=Ft=="rtl"?1:0;for(++vi;vi<nr&&rr[vi]!="L";++vi);for(var Ai=so;Ai<vi;)if(ut.test(rr[Ai])){so<Ai&&(Ci.splice(Io,0,new dt(1,so,Ai)),Io+=jo);var Go=Ai;for(++Ai;Ai<vi&&ut.test(rr[Ai]);++Ai);Ci.splice(Io,0,new dt(2,Go,Ai)),Io+=jo,so=Ai}else++Ai;so<vi&&Ci.splice(Io,0,new dt(1,so,vi))}return Ft=="ltr"&&(Ci[0].level==1&&(no=mt.match(/^\s+/))&&(Ci[0].from=no[0].length,Ci.unshift(new dt(0,0,no[0].length))),at(Ci).level==1&&(no=mt.match(/\s+$/))&&(at(Ci).to-=no[0].length,Ci.push(new dt(0,nr-no[0].length,nr)))),Ft=="rtl"?Ci.reverse():Ci}}();function Tt(y,b){var fe=y.order;return fe==null&&(fe=y.order=ft(y.text,b)),fe}var St=[],Ot=function(y,b,fe){if(y.addEventListener)y.addEventListener(b,fe,!1);else if(y.attachEvent)y.attachEvent("on"+b,fe);else{var ue=y._handlers||(y._handlers={});ue[b]=(ue[b]||St).concat(fe)}};function yt(y,b){return y._handlers&&y._handlers[b]||St}function Dt(y,b,fe){if(y.removeEventListener)y.removeEventListener(b,fe,!1);else if(y.detachEvent)y.detachEvent("on"+b,fe);else{var ue=y._handlers,Se=ue&&ue[b];if(Se){var ze=rt(Se,fe);ze>-1&&(ue[b]=Se.slice(0,ze).concat(Se.slice(ze+1)))}}}function Et(y,b){var fe=yt(y,b);if(fe.length)for(var ue=Array.prototype.slice.call(arguments,2),Se=0;Se<fe.length;++Se)fe[Se].apply(null,ue)}function xt(y,b,fe){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),Et(y,fe||b.type,y,b),Vt(b)||b.codemirrorIgnore}function At(y){var b=y._handlers&&y._handlers.cursorActivity;if(b)for(var fe=y.curOp.cursorActivityHandlers||(y.curOp.cursorActivityHandlers=[]),ue=0;ue<b.length;++ue)rt(fe,b[ue])==-1&&fe.push(b[ue])}function It(y,b){return yt(y,b).length>0}function ht(y){y.prototype.on=function(b,fe){Ot(this,b,fe)},y.prototype.off=function(b,fe){Dt(this,b,fe)}}function Ct(y){y.preventDefault?y.preventDefault():y.returnValue=!1}function Ht(y){y.stopPropagation?y.stopPropagation():y.cancelBubble=!0}function Vt(y){return y.defaultPrevented!=null?y.defaultPrevented:y.returnValue==!1}function vt(y){Ct(y),Ht(y)}function kt(y){return y.target||y.srcElement}function $t(y){var b=y.which;return b==null&&(y.button&1?b=1:y.button&2?b=3:y.button&4&&(b=2)),ce&&y.ctrlKey&&b==1&&(b=3),b}var Kt=function(){if(xe&&z<9)return!1;var y=Ee("div");return"draggable"in y||"dragDrop"in y}(),tr;function sr(y){if(tr==null){var b=Ee("span","\u200B");Ce(y,Ee("span",[b,document.createTextNode("x")])),y.firstChild.offsetHeight!=0&&(tr=b.offsetWidth<=1&&b.offsetHeight>2&&!(xe&&z<8))}var fe=tr?Ee("span","\u200B"):Ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return fe.setAttribute("cm-text",""),fe}var gr;function br(y){if(gr!=null)return gr;var b=Ce(y,document.createTextNode("A\u062EA")),fe=ke(b,0,1).getBoundingClientRect(),ue=ke(b,1,2).getBoundingClientRect();return De(y),!fe||fe.left==fe.right?!1:gr=ue.right-fe.right<3}var fr=`
b`.split(/\n/).length!=3?function(y){for(var b=0,fe=[],ue=y.length;b<=ue;){var Se=y.indexOf(`
`,b);Se==-1&&(Se=y.length);var ze=y.slice(b,y.charAt(Se-1)=="\r"?Se-1:Se),it=ze.indexOf("\r");it!=-1?(fe.push(ze.slice(0,it)),b+=it+1):(fe.push(ze),b=Se+1)}return fe}:function(y){return y.split(/\r\n?|\n/)},yr=window.getSelection?function(y){try{return y.selectionStart!=y.selectionEnd}catch(b){return!1}}:function(y){var b;try{b=y.ownerDocument.selection.createRange()}catch(fe){}return!b||b.parentElement()!=y?!1:b.compareEndPoints("StartToEnd",b)!=0},ir=function(){var y=Ee("div");return"oncopy"in y?!0:(y.setAttribute("oncopy","return;"),typeof y.oncopy=="function")}(),Yt=null;function Qt(y){if(Yt!=null)return Yt;var b=Ce(y,Ee("span","x")),fe=b.getBoundingClientRect(),ue=ke(b,0,1).getBoundingClientRect();return Yt=Math.abs(fe.left-ue.left)>1}var qt={},Xt={};function ur(y,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),qt[y]=b}function lr(y,b){Xt[y]=b}function ar(y){if(typeof y=="string"&&Xt.hasOwnProperty(y))y=Xt[y];else if(y&&typeof y.name=="string"&&Xt.hasOwnProperty(y.name)){var b=Xt[y.name];typeof b=="string"&&(b={name:b}),y=te(b,y),y.name=b.name}else{if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(y))return ar("application/xml");if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(y))return ar("application/json")}return typeof y=="string"?{name:y}:y||{name:"null"}}function Cr(y,b){b=ar(b);var fe=qt[b.name];if(!fe)return Cr(y,"text/plain");var ue=fe(y,b);if(Ar.hasOwnProperty(b.name)){var Se=Ar[b.name];for(var ze in Se)Se.hasOwnProperty(ze)&&(ue.hasOwnProperty(ze)&&(ue["_"+ze]=ue[ze]),ue[ze]=Se[ze])}if(ue.name=b.name,b.helperType&&(ue.helperType=b.helperType),b.modeProps)for(var it in b.modeProps)ue[it]=b.modeProps[it];return ue}var Ar={};function Tr(y,b){var fe=Ar.hasOwnProperty(y)?Ar[y]:Ar[y]={};ot(b,fe)}function Nr(y,b){if(b===!0)return b;if(y.copyState)return y.copyState(b);var fe={};for(var ue in b){var Se=b[ue];Se instanceof Array&&(Se=Se.concat([])),fe[ue]=Se}return fe}function jr(y,b){for(var fe;y.innerMode&&(fe=y.innerMode(b),!(!fe||fe.mode==y));)b=fe.state,y=fe.mode;return fe||{mode:y,state:b}}function Zr(y,b,fe){return y.startState?y.startState(b,fe):!0}var Wr=function(y,b,fe){this.pos=this.start=0,this.string=y,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=fe};Wr.prototype.eol=function(){return this.pos>=this.string.length},Wr.prototype.sol=function(){return this.pos==this.lineStart},Wr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Wr.prototype.eat=function(y){var b=this.string.charAt(this.pos),fe;if(typeof y=="string"?fe=b==y:fe=b&&(y.test?y.test(b):y(b)),fe)return++this.pos,b},Wr.prototype.eatWhile=function(y){for(var b=this.pos;this.eat(y););return this.pos>b},Wr.prototype.eatSpace=function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},Wr.prototype.skipToEnd=function(){this.pos=this.string.length},Wr.prototype.skipTo=function(y){var b=this.string.indexOf(y,this.pos);if(b>-1)return this.pos=b,!0},Wr.prototype.backUp=function(y){this.pos-=y},Wr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Fe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Fe(this.string,this.lineStart,this.tabSize):0)},Wr.prototype.indentation=function(){return Fe(this.string,null,this.tabSize)-(this.lineStart?Fe(this.string,this.lineStart,this.tabSize):0)},Wr.prototype.match=function(y,b,fe){if(typeof y=="string"){var ue=function(it){return fe?it.toLowerCase():it},Se=this.string.substr(this.pos,y.length);if(ue(Se)==ue(y))return b!==!1&&(this.pos+=y.length),!0}else{var ze=this.string.slice(this.pos).match(y);return ze&&ze.index>0?null:(ze&&b!==!1&&(this.pos+=ze[0].length),ze)}},Wr.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wr.prototype.hideFirstChars=function(y,b){this.lineStart+=y;try{return b()}finally{this.lineStart-=y}},Wr.prototype.lookAhead=function(y){var b=this.lineOracle;return b&&b.lookAhead(y)},Wr.prototype.baseToken=function(){var y=this.lineOracle;return y&&y.baseToken(this.pos)};function er(y,b){if(b-=y.first,b<0||b>=y.size)throw new Error("There is no line "+(b+y.first)+" in the document.");for(var fe=y;!fe.lines;)for(var ue=0;;++ue){var Se=fe.children[ue],ze=Se.chunkSize();if(b<ze){fe=Se;break}b-=ze}return fe.lines[b]}function or(y,b,fe){var ue=[],Se=b.line;return y.iter(b.line,fe.line+1,function(ze){var it=ze.text;Se==fe.line&&(it=it.slice(0,fe.ch)),Se==b.line&&(it=it.slice(b.ch)),ue.push(it),++Se}),ue}function Ir(y,b,fe){var ue=[];return y.iter(b,fe,function(Se){ue.push(Se.text)}),ue}function xr(y,b){var fe=b-y.height;if(fe)for(var ue=y;ue;ue=ue.parent)ue.height+=fe}function Pt(y){if(y.parent==null)return null;for(var b=y.parent,fe=rt(b.lines,y),ue=b.parent;ue;b=ue,ue=ue.parent)for(var Se=0;ue.children[Se]!=b;++Se)fe+=ue.children[Se].chunkSize();return fe+b.first}function Lt(y,b){var fe=y.first;e:do{for(var ue=0;ue<y.children.length;++ue){var Se=y.children[ue],ze=Se.height;if(b<ze){y=Se;continue e}b-=ze,fe+=Se.chunkSize()}return fe}while(!y.lines);for(var it=0;it<y.lines.length;++it){var ut=y.lines[it],dt=ut.height;if(b<dt)break;b-=dt}return fe+it}function bt(y,b){return b>=y.first&&b<y.first+y.size}function Mt(y,b){return String(y.lineNumberFormatter(b+y.firstLineNumber))}function wt(y,b,fe){if(fe===void 0&&(fe=null),!(this instanceof wt))return new wt(y,b,fe);this.line=y,this.ch=b,this.sticky=fe}function Nt(y,b){return y.line-b.line||y.ch-b.ch}function pt(y,b){return y.sticky==b.sticky&&Nt(y,b)==0}function Bt(y){return wt(y.line,y.ch)}function Wt(y,b){return Nt(y,b)<0?b:y}function Gt(y,b){return Nt(y,b)<0?y:b}function zt(y,b){return Math.max(y.first,Math.min(b,y.first+y.size-1))}function Rt(y,b){if(b.line<y.first)return wt(y.first,0);var fe=y.first+y.size-1;return b.line>fe?wt(fe,er(y,fe).text.length):_t(b,er(y,b.line).text.length)}function _t(y,b){var fe=y.ch;return fe==null||fe>b?wt(y.line,b):fe<0?wt(y.line,0):y}function Ut(y,b){for(var fe=[],ue=0;ue<b.length;ue++)fe[ue]=Rt(y,b[ue]);return fe}var dr=function(y,b){this.state=y,this.lookAhead=b},cr=function(y,b,fe,ue){this.state=b,this.doc=y,this.line=fe,this.maxLookAhead=ue||0,this.baseTokens=null,this.baseTokenPos=1};cr.prototype.lookAhead=function(y){var b=this.doc.getLine(this.line+y);return b!=null&&y>this.maxLookAhead&&(this.maxLookAhead=y),b},cr.prototype.baseToken=function(y){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=y;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-y}},cr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},cr.fromSaved=function(y,b,fe){return b instanceof dr?new cr(y,Nr(y.mode,b.state),fe,b.lookAhead):new cr(y,Nr(y.mode,b),fe)},cr.prototype.save=function(y){var b=y!==!1?Nr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new dr(b,this.maxLookAhead):b};function hr(y,b,fe,ue){var Se=[y.state.modeGen],ze={};Vr(y,b.text,y.doc.mode,fe,function(mt,Ft){return Se.push(mt,Ft)},ze,ue);for(var it=fe.state,ut=function(mt){fe.baseTokens=Se;var Ft=y.state.overlays[mt],Zt=1,nr=0;fe.state=!0,Vr(y,b.text,Ft.mode,fe,function(rr,Sr){for(var Mr=Zt;nr<rr;){var zr=Se[Zt];zr>rr&&Se.splice(Zt,1,rr,Se[Zt+1],zr),Zt+=2,nr=Math.min(rr,zr)}if(Sr)if(Ft.opaque)Se.splice(Mr,Zt-Mr,rr,"overlay "+Sr),Zt=Mr+2;else for(;Mr<Zt;Mr+=2){var Xr=Se[Mr+1];Se[Mr+1]=(Xr?Xr+" ":"")+"overlay "+Sr}},ze),fe.state=it,fe.baseTokens=null,fe.baseTokenPos=1},dt=0;dt<y.state.overlays.length;++dt)ut(dt);return{styles:Se,classes:ze.bgClass||ze.textClass?ze:null}}function Br(y,b,fe){if(!b.styles||b.styles[0]!=y.state.modeGen){var ue=Fr(y,Pt(b)),Se=b.text.length>y.options.maxHighlightLength&&Nr(y.doc.mode,ue.state),ze=hr(y,b,ue);Se&&(ue.state=Se),b.stateAfter=ue.save(!Se),b.styles=ze.styles,ze.classes?b.styleClasses=ze.classes:b.styleClasses&&(b.styleClasses=null),fe===y.doc.highlightFrontier&&(y.doc.modeFrontier=Math.max(y.doc.modeFrontier,++y.doc.highlightFrontier))}return b.styles}function Fr(y,b,fe){var ue=y.doc,Se=y.display;if(!ue.mode.startState)return new cr(ue,!0,b);var ze=Jr(y,b,fe),it=ze>ue.first&&er(ue,ze-1).stateAfter,ut=it?cr.fromSaved(ue,it,ze):new cr(ue,Zr(ue.mode),ze);return ue.iter(ze,b,function(dt){Hr(y,dt.text,ut);var mt=ut.line;dt.stateAfter=mt==b-1||mt%5==0||mt>=Se.viewFrom&&mt<Se.viewTo?ut.save():null,ut.nextLine()}),fe&&(ue.modeFrontier=ut.line),ut}function Hr(y,b,fe,ue){var Se=y.doc.mode,ze=new Wr(b,y.options.tabSize,fe);for(ze.start=ze.pos=ue||0,b==""&&_r(Se,fe.state);!ze.eol();)Pr(Se,ze,fe.state),ze.start=ze.pos}function _r(y,b){if(y.blankLine)return y.blankLine(b);if(y.innerMode){var fe=jr(y,b);if(fe.mode.blankLine)return fe.mode.blankLine(fe.state)}}function Pr(y,b,fe,ue){for(var Se=0;Se<10;Se++){ue&&(ue[0]=jr(y,fe).mode);var ze=y.token(b,fe);if(b.pos>b.start)return ze}throw new Error("Mode "+y.name+" failed to advance stream.")}var Rr=function(y,b,fe){this.start=y.start,this.end=y.pos,this.string=y.current(),this.type=b||null,this.state=fe};function Ur(y,b,fe,ue){var Se=y.doc,ze=Se.mode,it;b=Rt(Se,b);var ut=er(Se,b.line),dt=Fr(y,b.line,fe),mt=new Wr(ut.text,y.options.tabSize,dt),Ft;for(ue&&(Ft=[]);(ue||mt.pos<b.ch)&&!mt.eol();)mt.start=mt.pos,it=Pr(ze,mt,dt.state),ue&&Ft.push(new Rr(mt,it,Nr(Se.mode,dt.state)));return ue?Ft:new Rr(mt,it,dt.state)}function Qr(y,b){if(y)for(;;){var fe=y.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!fe)break;y=y.slice(0,fe.index)+y.slice(fe.index+fe[0].length);var ue=fe[1]?"bgClass":"textClass";b[ue]==null?b[ue]=fe[2]:new RegExp("(?:^|\\s)"+fe[2]+"(?:$|\\s)").test(b[ue])||(b[ue]+=" "+fe[2])}return y}function Vr(y,b,fe,ue,Se,ze,it){var ut=fe.flattenSpans;ut==null&&(ut=y.options.flattenSpans);var dt=0,mt=null,Ft=new Wr(b,y.options.tabSize,ue),Zt,nr=y.options.addModeClass&&[null];for(b==""&&Qr(_r(fe,ue.state),ze);!Ft.eol();){if(Ft.pos>y.options.maxHighlightLength?(ut=!1,it&&Hr(y,b,ue,Ft.pos),Ft.pos=b.length,Zt=null):Zt=Qr(Pr(fe,Ft,ue.state,nr),ze),nr){var rr=nr[0].name;rr&&(Zt="m-"+(Zt?rr+" "+Zt:rr))}if(!ut||mt!=Zt){for(;dt<Ft.start;)dt=Math.min(Ft.start,dt+5e3),Se(dt,mt);mt=Zt}Ft.start=Ft.pos}for(;dt<Ft.pos;){var Sr=Math.min(Ft.pos,dt+5e3);Se(Sr,mt),dt=Sr}}function Jr(y,b,fe){for(var ue,Se,ze=y.doc,it=fe?-1:b-(y.doc.mode.innerMode?1e3:100),ut=b;ut>it;--ut){if(ut<=ze.first)return ze.first;var dt=er(ze,ut-1),mt=dt.stateAfter;if(mt&&(!fe||ut+(mt instanceof dr?mt.lookAhead:0)<=ze.modeFrontier))return ut;var Ft=Fe(dt.text,null,y.options.tabSize);(Se==null||ue>Ft)&&(Se=ut-1,ue=Ft)}return Se}function Dr(y,b){if(y.modeFrontier=Math.min(y.modeFrontier,b),!(y.highlightFrontier<b-10)){for(var fe=y.first,ue=b-1;ue>fe;ue--){var Se=er(y,ue).stateAfter;if(Se&&(!(Se instanceof dr)||ue+Se.lookAhead<b)){fe=ue+1;break}}y.highlightFrontier=Math.min(y.highlightFrontier,fe)}}var tn=!1,Gr=!1;function fn(){tn=!0}function pn(){Gr=!0}function ln(y,b,fe){this.marker=y,this.from=b,this.to=fe}function un(y,b){if(y)for(var fe=0;fe<y.length;++fe){var ue=y[fe];if(ue.marker==b)return ue}}function yn(y,b){for(var fe,ue=0;ue<y.length;++ue)y[ue]!=b&&(fe||(fe=[])).push(y[ue]);return fe}function sn(y,b){y.markedSpans=y.markedSpans?y.markedSpans.concat([b]):[b],b.marker.attachLine(y)}function dn(y,b,fe){var ue;if(y)for(var Se=0;Se<y.length;++Se){var ze=y[Se],it=ze.marker,ut=ze.from==null||(it.inclusiveLeft?ze.from<=b:ze.from<b);if(ut||ze.from==b&&it.type=="bookmark"&&(!fe||!ze.marker.insertLeft)){var dt=ze.to==null||(it.inclusiveRight?ze.to>=b:ze.to>b);(ue||(ue=[])).push(new ln(it,ze.from,dt?null:ze.to))}}return ue}function en(y,b,fe){var ue;if(y)for(var Se=0;Se<y.length;++Se){var ze=y[Se],it=ze.marker,ut=ze.to==null||(it.inclusiveRight?ze.to>=b:ze.to>b);if(ut||ze.from==b&&it.type=="bookmark"&&(!fe||ze.marker.insertLeft)){var dt=ze.from==null||(it.inclusiveLeft?ze.from<=b:ze.from<b);(ue||(ue=[])).push(new ln(it,dt?null:ze.from-b,ze.to==null?null:ze.to-b))}}return ue}function mn(y,b){if(b.full)return null;var fe=bt(y,b.from.line)&&er(y,b.from.line).markedSpans,ue=bt(y,b.to.line)&&er(y,b.to.line).markedSpans;if(!fe&&!ue)return null;var Se=b.from.ch,ze=b.to.ch,it=Nt(b.from,b.to)==0,ut=dn(fe,Se,it),dt=en(ue,ze,it),mt=b.text.length==1,Ft=at(b.text).length+(mt?Se:0);if(ut)for(var Zt=0;Zt<ut.length;++Zt){var nr=ut[Zt];if(nr.to==null){var rr=un(dt,nr.marker);rr?mt&&(nr.to=rr.to==null?null:rr.to+Ft):nr.to=Se}}if(dt)for(var Sr=0;Sr<dt.length;++Sr){var Mr=dt[Sr];if(Mr.to!=null&&(Mr.to+=Ft),Mr.from==null){var zr=un(ut,Mr.marker);zr||(Mr.from=Ft,mt&&(ut||(ut=[])).push(Mr))}else Mr.from+=Ft,mt&&(ut||(ut=[])).push(Mr)}ut&&(ut=bn(ut)),dt&&dt!=ut&&(dt=bn(dt));var Xr=[ut];if(!mt){var rn=b.text.length-2,Yr;if(rn>0&&ut)for(var an=0;an<ut.length;++an)ut[an].to==null&&(Yr||(Yr=[])).push(new ln(ut[an].marker,null,null));for(var gn=0;gn<rn;++gn)Xr.push(Yr);Xr.push(dt)}return Xr}function bn(y){for(var b=0;b<y.length;++b){var fe=y[b];fe.from!=null&&fe.from==fe.to&&fe.marker.clearWhenEmpty!==!1&&y.splice(b--,1)}return y.length?y:null}function Fn(y,b,fe){var ue=null;if(y.iter(b.line,fe.line+1,function(rr){if(rr.markedSpans)for(var Sr=0;Sr<rr.markedSpans.length;++Sr){var Mr=rr.markedSpans[Sr].marker;Mr.readOnly&&(!ue||rt(ue,Mr)==-1)&&(ue||(ue=[])).push(Mr)}}),!ue)return null;for(var Se=[{from:b,to:fe}],ze=0;ze<ue.length;++ze)for(var it=ue[ze],ut=it.find(0),dt=0;dt<Se.length;++dt){var mt=Se[dt];if(!(Nt(mt.to,ut.from)<0||Nt(mt.from,ut.to)>0)){var Ft=[dt,1],Zt=Nt(mt.from,ut.from),nr=Nt(mt.to,ut.to);(Zt<0||!it.inclusiveLeft&&!Zt)&&Ft.push({from:mt.from,to:ut.from}),(nr>0||!it.inclusiveRight&&!nr)&&Ft.push({from:ut.to,to:mt.to}),Se.splice.apply(Se,Ft),dt+=Ft.length-3}}return Se}function En(y){var b=y.markedSpans;if(b){for(var fe=0;fe<b.length;++fe)b[fe].marker.detachLine(y);y.markedSpans=null}}function Mn(y,b){if(b){for(var fe=0;fe<b.length;++fe)b[fe].marker.attachLine(y);y.markedSpans=b}}function On(y){return y.inclusiveLeft?-1:0}function In(y){return y.inclusiveRight?1:0}function on(y,b){var fe=y.lines.length-b.lines.length;if(fe!=0)return fe;var ue=y.find(),Se=b.find(),ze=Nt(ue.from,Se.from)||On(y)-On(b);if(ze)return-ze;var it=Nt(ue.to,Se.to)||In(y)-In(b);return it||b.id-y.id}function nn(y,b){var fe=Gr&&y.markedSpans,ue;if(fe)for(var Se=void 0,ze=0;ze<fe.length;++ze)Se=fe[ze],Se.marker.collapsed&&(b?Se.from:Se.to)==null&&(!ue||on(ue,Se.marker)<0)&&(ue=Se.marker);return ue}function qr(y){return nn(y,!0)}function vr(y){return nn(y,!1)}function Or(y,b){var fe=Gr&&y.markedSpans,ue;if(fe)for(var Se=0;Se<fe.length;++Se){var ze=fe[Se];ze.marker.collapsed&&(ze.from==null||ze.from<b)&&(ze.to==null||ze.to>b)&&(!ue||on(ue,ze.marker)<0)&&(ue=ze.marker)}return ue}function Er(y,b,fe,ue,Se){var ze=er(y,b),it=Gr&&ze.markedSpans;if(it)for(var ut=0;ut<it.length;++ut){var dt=it[ut];if(dt.marker.collapsed){var mt=dt.marker.find(0),Ft=Nt(mt.from,fe)||On(dt.marker)-On(Se),Zt=Nt(mt.to,ue)||In(dt.marker)-In(Se);if(!(Ft>=0&&Zt<=0||Ft<=0&&Zt>=0)&&(Ft<=0&&(dt.marker.inclusiveRight&&Se.inclusiveLeft?Nt(mt.to,fe)>=0:Nt(mt.to,fe)>0)||Ft>=0&&(dt.marker.inclusiveRight&&Se.inclusiveLeft?Nt(mt.from,ue)<=0:Nt(mt.from,ue)<0)))return!0}}}function pr(y){for(var b;b=qr(y);)y=b.find(-1,!0).line;return y}function $r(y){for(var b;b=vr(y);)y=b.find(1,!0).line;return y}function Kr(y){for(var b,fe;b=vr(y);)y=b.find(1,!0).line,(fe||(fe=[])).push(y);return fe}function wr(y,b){var fe=er(y,b),ue=pr(fe);return fe==ue?b:Pt(ue)}function mr(y,b){if(b>y.lastLine())return b;var fe=er(y,b),ue;if(!kr(y,fe))return b;for(;ue=vr(fe);)fe=ue.find(1,!0).line;return Pt(fe)+1}function kr(y,b){var fe=Gr&&b.markedSpans;if(fe){for(var ue=void 0,Se=0;Se<fe.length;++Se)if(ue=fe[Se],!!ue.marker.collapsed){if(ue.from==null)return!0;if(!ue.marker.widgetNode&&ue.from==0&&ue.marker.inclusiveLeft&&Lr(y,b,ue))return!0}}}function Lr(y,b,fe){if(fe.to==null){var ue=fe.marker.find(1,!0);return Lr(y,ue.line,un(ue.line.markedSpans,fe.marker))}if(fe.marker.inclusiveRight&&fe.to==b.text.length)return!0;for(var Se=void 0,ze=0;ze<b.markedSpans.length;++ze)if(Se=b.markedSpans[ze],Se.marker.collapsed&&!Se.marker.widgetNode&&Se.from==fe.to&&(Se.to==null||Se.to!=fe.from)&&(Se.marker.inclusiveLeft||fe.marker.inclusiveRight)&&Lr(y,b,Se))return!0}function cn(y){y=pr(y);for(var b=0,fe=y.parent,ue=0;ue<fe.lines.length;++ue){var Se=fe.lines[ue];if(Se==y)break;b+=Se.height}for(var ze=fe.parent;ze;fe=ze,ze=fe.parent)for(var it=0;it<ze.children.length;++it){var ut=ze.children[it];if(ut==fe)break;b+=ut.height}return b}function Pn(y){if(y.height==0)return 0;for(var b=y.text.length,fe,ue=y;fe=qr(ue);){var Se=fe.find(0,!0);ue=Se.from.line,b+=Se.from.ch-Se.to.ch}for(ue=y;fe=vr(ue);){var ze=fe.find(0,!0);b-=ue.text.length-ze.from.ch,ue=ze.to.line,b+=ue.text.length-ze.to.ch}return b}function Tn(y){var b=y.display,fe=y.doc;b.maxLine=er(fe,fe.first),b.maxLineLength=Pn(b.maxLine),b.maxLineChanged=!0,fe.iter(function(ue){var Se=Pn(ue);Se>b.maxLineLength&&(b.maxLineLength=Se,b.maxLine=ue)})}var _n=function(y,b,fe){this.text=y,Mn(this,b),this.height=fe?fe(this):1};_n.prototype.lineNo=function(){return Pt(this)},ht(_n);function Nn(y,b,fe,ue){y.text=b,y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null),y.order!=null&&(y.order=null),En(y),Mn(y,fe);var Se=ue?ue(y):1;Se!=y.height&&xr(y,Se)}function Bn(y){y.parent=null,En(y)}var Zn={},$n={};function Vn(y,b){if(!y||/^\s*$/.test(y))return null;var fe=b.addModeClass?$n:Zn;return fe[y]||(fe[y]=y.replace(/\S+/g,"cm-$&"))}function ti(y,b){var fe=je("span",null,null,E?"padding-right: .1px":null),ue={pre:je("pre",[fe],"CodeMirror-line"),content:fe,col:0,pos:0,cm:y,trailingSpace:!1,splitSpaces:y.getOption("lineWrapping")};b.measure={};for(var Se=0;Se<=(b.rest?b.rest.length:0);Se++){var ze=Se?b.rest[Se-1]:b.line,it=void 0;ue.pos=0,ue.addToken=Ri,br(y.display.measure)&&(it=Tt(ze,y.doc.direction))&&(ue.addToken=li(ue.addToken,it)),ue.map=[];var ut=b!=y.display.externalMeasured&&Pt(ze);Wn(ze,ue,Br(y,ze,ut)),ze.styleClasses&&(ze.styleClasses.bgClass&&(ue.bgClass=Ue(ze.styleClasses.bgClass,ue.bgClass||"")),ze.styleClasses.textClass&&(ue.textClass=Ue(ze.styleClasses.textClass,ue.textClass||""))),ue.map.length==0&&ue.map.push(0,0,ue.content.appendChild(sr(y.display.measure))),Se==0?(b.measure.map=ue.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(ue.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(E){var dt=ue.content.lastChild;(/\bcm-tab\b/.test(dt.className)||dt.querySelector&&dt.querySelector(".cm-tab"))&&(ue.content.className="cm-tab-wrap-hack")}return Et(y,"renderLine",y,b.line,ue.pre),ue.pre.className&&(ue.textClass=Ue(ue.pre.className,ue.textClass||"")),ue}function Ei(y){var b=Ee("span","\u2022","cm-invalidchar");return b.title="\\u"+y.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Ri(y,b,fe,ue,Se,ze,it){if(b){var ut=y.splitSpaces?xi(b,y.trailingSpace):b,dt=y.cm.state.specialChars,mt=!1,Ft;if(!dt.test(b))y.col+=b.length,Ft=document.createTextNode(ut),y.map.push(y.pos,y.pos+b.length,Ft),xe&&z<9&&(mt=!0),y.pos+=b.length;else{Ft=document.createDocumentFragment();for(var Zt=0;;){dt.lastIndex=Zt;var nr=dt.exec(b),rr=nr?nr.index-Zt:b.length-Zt;if(rr){var Sr=document.createTextNode(ut.slice(Zt,Zt+rr));xe&&z<9?Ft.appendChild(Ee("span",[Sr])):Ft.appendChild(Sr),y.map.push(y.pos,y.pos+rr,Sr),y.col+=rr,y.pos+=rr}if(!nr)break;Zt+=rr+1;var Mr=void 0;if(nr[0]==" "){var zr=y.cm.options.tabSize,Xr=zr-y.col%zr;Mr=Ft.appendChild(Ee("span",ct(Xr),"cm-tab")),Mr.setAttribute("role","presentation"),Mr.setAttribute("cm-text"," "),y.col+=Xr}else nr[0]=="\r"||nr[0]==`
`?(Mr=Ft.appendChild(Ee("span",nr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Mr.setAttribute("cm-text",nr[0]),y.col+=1):(Mr=y.cm.options.specialCharPlaceholder(nr[0]),Mr.setAttribute("cm-text",nr[0]),xe&&z<9?Ft.appendChild(Ee("span",[Mr])):Ft.appendChild(Mr),y.col+=1);y.map.push(y.pos,y.pos+1,Mr),y.pos++}}if(y.trailingSpace=ut.charCodeAt(b.length-1)==32,fe||ue||Se||mt||ze||it){var rn=fe||"";ue&&(rn+=ue),Se&&(rn+=Se);var Yr=Ee("span",[Ft],rn,ze);if(it)for(var an in it)it.hasOwnProperty(an)&&an!="style"&&an!="class"&&Yr.setAttribute(an,it[an]);return y.content.appendChild(Yr)}y.content.appendChild(Ft)}}function xi(y,b){if(y.length>1&&!/ /.test(y))return y;for(var fe=b,ue="",Se=0;Se<y.length;Se++){var ze=y.charAt(Se);ze==" "&&fe&&(Se==y.length-1||y.charCodeAt(Se+1)==32)&&(ze="\xA0"),ue+=ze,fe=ze==" "}return ue}function li(y,b){return function(fe,ue,Se,ze,it,ut,dt){Se=Se?Se+" cm-force-border":"cm-force-border";for(var mt=fe.pos,Ft=mt+ue.length;;){for(var Zt=void 0,nr=0;nr<b.length&&(Zt=b[nr],!(Zt.to>mt&&Zt.from<=mt));nr++);if(Zt.to>=Ft)return y(fe,ue,Se,ze,it,ut,dt);y(fe,ue.slice(0,Zt.to-mt),Se,ze,null,ut,dt),ze=null,ue=ue.slice(Zt.to-mt),mt=Zt.to}}}function _i(y,b,fe,ue){var Se=!ue&&fe.widgetNode;Se&&y.map.push(y.pos,y.pos+b,Se),!ue&&y.cm.display.input.needsContentAttribute&&(Se||(Se=y.content.appendChild(document.createElement("span"))),Se.setAttribute("cm-marker",fe.id)),Se&&(y.cm.display.input.setUneditable(Se),y.content.appendChild(Se)),y.pos+=b,y.trailingSpace=!1}function Wn(y,b,fe){var ue=y.markedSpans,Se=y.text,ze=0;if(!ue){for(var it=1;it<fe.length;it+=2)b.addToken(b,Se.slice(ze,ze=fe[it]),Vn(fe[it+1],b.cm.options));return}for(var ut=Se.length,dt=0,mt=1,Ft="",Zt,nr,rr=0,Sr,Mr,zr,Xr,rn;;){if(rr==dt){Sr=Mr=zr=nr="",rn=null,Xr=null,rr=1/0;for(var Yr=[],an=void 0,gn=0;gn<ue.length;++gn){var hn=ue[gn],kn=hn.marker;if(kn.type=="bookmark"&&hn.from==dt&&kn.widgetNode)Yr.push(kn);else if(hn.from<=dt&&(hn.to==null||hn.to>dt||kn.collapsed&&hn.to==dt&&hn.from==dt)){if(hn.to!=null&&hn.to!=dt&&rr>hn.to&&(rr=hn.to,Mr=""),kn.className&&(Sr+=" "+kn.className),kn.css&&(nr=(nr?nr+";":"")+kn.css),kn.startStyle&&hn.from==dt&&(zr+=" "+kn.startStyle),kn.endStyle&&hn.to==rr&&(an||(an=[])).push(kn.endStyle,hn.to),kn.title&&((rn||(rn={})).title=kn.title),kn.attributes)for(var Yn in kn.attributes)(rn||(rn={}))[Yn]=kn.attributes[Yn];kn.collapsed&&(!Xr||on(Xr.marker,kn)<0)&&(Xr=hn)}else hn.from>dt&&rr>hn.from&&(rr=hn.from)}if(an)for(var mi=0;mi<an.length;mi+=2)an[mi+1]==rr&&(Mr+=" "+an[mi]);if(!Xr||Xr.from==dt)for(var Qn=0;Qn<Yr.length;++Qn)_i(b,0,Yr[Qn]);if(Xr&&(Xr.from||0)==dt){if(_i(b,(Xr.to==null?ut+1:Xr.to)-dt,Xr.marker,Xr.from==null),Xr.to==null)return;Xr.to==dt&&(Xr=!1)}}if(dt>=ut)break;for(var Wi=Math.min(ut,rr);;){if(Ft){var ki=dt+Ft.length;if(!Xr){var ai=ki>Wi?Ft.slice(0,Wi-dt):Ft;b.addToken(b,ai,Zt?Zt+Sr:Sr,zr,dt+ai.length==rr?Mr:"",nr,rn)}if(ki>=Wi){Ft=Ft.slice(Wi-dt),dt=Wi;break}dt=ki,zr=""}Ft=Se.slice(ze,ze=fe[mt++]),Zt=Vn(fe[mt++],b.cm.options)}}}function Ki(y,b,fe){this.line=b,this.rest=Kr(b),this.size=this.rest?Pt(at(this.rest))-fe+1:1,this.node=this.text=null,this.hidden=kr(y,b)}function qn(y,b,fe){for(var ue=[],Se,ze=b;ze<fe;ze=Se){var it=new Ki(y.doc,er(y.doc,ze),ze);Se=ze+it.size,ue.push(it)}return ue}var xn=null;function Ln(y){xn?xn.ops.push(y):y.ownsGroup=xn={ops:[y],delayedCallbacks:[]}}function Hn(y){var b=y.delayedCallbacks,fe=0;do{for(;fe<b.length;fe++)b[fe].call(null);for(var ue=0;ue<y.ops.length;ue++){var Se=y.ops[ue];if(Se.cursorActivityHandlers)for(;Se.cursorActivityCalled<Se.cursorActivityHandlers.length;)Se.cursorActivityHandlers[Se.cursorActivityCalled++].call(null,Se.cm)}}while(fe<b.length)}function Sn(y,b){var fe=y.ownsGroup;if(fe)try{Hn(fe)}finally{xn=null,b(fe)}}var Rn=null;function Dn(y,b){var fe=yt(y,b);if(fe.length){var ue=Array.prototype.slice.call(arguments,2),Se;xn?Se=xn.delayedCallbacks:Rn?Se=Rn:(Se=Rn=[],setTimeout(ui,0));for(var ze=function(ut){Se.push(function(){return fe[ut].apply(null,ue)})},it=0;it<fe.length;++it)ze(it)}}function ui(){var y=Rn;Rn=null;for(var b=0;b<y.length;++b)y[b]()}function Ii(y,b,fe,ue){for(var Se=0;Se<b.changes.length;Se++){var ze=b.changes[Se];ze=="text"?lo(y,b):ze=="gutter"?An(y,b,fe,ue):ze=="class"?vn(y,b):ze=="widget"&&wn(y,b,ue)}b.changes=null}function di(y){return y.node==y.text&&(y.node=Ee("div",null,null,"position: relative"),y.text.parentNode&&y.text.parentNode.replaceChild(y.node,y.text),y.node.appendChild(y.text),xe&&z<8&&(y.node.style.zIndex=2)),y.node}function ri(y,b){var fe=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(fe&&(fe+=" CodeMirror-linebackground"),b.background)fe?b.background.className=fe:(b.background.parentNode.removeChild(b.background),b.background=null);else if(fe){var ue=di(b);b.background=ue.insertBefore(Ee("div",null,fe),ue.firstChild),y.display.input.setUneditable(b.background)}}function xo(y,b){var fe=y.display.externalMeasured;return fe&&fe.line==b.line?(y.display.externalMeasured=null,b.measure=fe.measure,fe.built):ti(y,b)}function lo(y,b){var fe=b.text.className,ue=xo(y,b);b.text==b.node&&(b.node=ue.pre),b.text.parentNode.replaceChild(ue.pre,b.text),b.text=ue.pre,ue.bgClass!=b.bgClass||ue.textClass!=b.textClass?(b.bgClass=ue.bgClass,b.textClass=ue.textClass,vn(y,b)):fe&&(b.text.className=fe)}function vn(y,b){ri(y,b),b.line.wrapClass?di(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var fe=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=fe||""}function An(y,b,fe,ue){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 Se=di(b);b.gutterBackground=Ee("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(y.options.fixedGutter?ue.fixedPos:-ue.gutterTotalWidth)+"px; width: "+ue.gutterTotalWidth+"px"),y.display.input.setUneditable(b.gutterBackground),Se.insertBefore(b.gutterBackground,b.text)}var ze=b.line.gutterMarkers;if(y.options.lineNumbers||ze){var it=di(b),ut=b.gutter=Ee("div",null,"CodeMirror-gutter-wrapper","left: "+(y.options.fixedGutter?ue.fixedPos:-ue.gutterTotalWidth)+"px");if(y.display.input.setUneditable(ut),it.insertBefore(ut,b.text),b.line.gutterClass&&(ut.className+=" "+b.line.gutterClass),y.options.lineNumbers&&(!ze||!ze["CodeMirror-linenumbers"])&&(b.lineNumber=ut.appendChild(Ee("div",Mt(y.options,fe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ue.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+y.display.lineNumInnerWidth+"px"))),ze)for(var dt=0;dt<y.display.gutterSpecs.length;++dt){var mt=y.display.gutterSpecs[dt].className,Ft=ze.hasOwnProperty(mt)&&ze[mt];Ft&&ut.appendChild(Ee("div",[Ft],"CodeMirror-gutter-elt","left: "+ue.gutterLeft[mt]+"px; width: "+ue.gutterWidth[mt]+"px"))}}}function wn(y,b,fe){b.alignable&&(b.alignable=null);for(var ue=Me("CodeMirror-linewidget"),Se=b.node.firstChild,ze=void 0;Se;Se=ze)ze=Se.nextSibling,ue.test(Se.className)&&b.node.removeChild(Se);Un(y,b,fe)}function Cn(y,b,fe,ue){var Se=xo(y,b);return b.text=b.node=Se.pre,Se.bgClass&&(b.bgClass=Se.bgClass),Se.textClass&&(b.textClass=Se.textClass),vn(y,b),An(y,b,fe,ue),Un(y,b,ue),b.node}function Un(y,b,fe){if(Xn(y,b.line,b,fe,!0),b.rest)for(var ue=0;ue<b.rest.length;ue++)Xn(y,b.rest[ue],b,fe,!1)}function Xn(y,b,fe,ue,Se){if(b.widgets)for(var ze=di(fe),it=0,ut=b.widgets;it<ut.length;++it){var dt=ut[it],mt=Ee("div",[dt.node],"CodeMirror-linewidget"+(dt.className?" "+dt.className:""));dt.handleMouseEvents||mt.setAttribute("cm-ignore-events","true"),Vi(dt,mt,fe,ue),y.display.input.setUneditable(mt),Se&&dt.above?ze.insertBefore(mt,fe.gutter||fe.text):ze.appendChild(mt),Dn(dt,"redraw")}}function Vi(y,b,fe,ue){if(y.noHScroll){(fe.alignable||(fe.alignable=[])).push(b);var Se=ue.wrapperWidth;b.style.left=ue.fixedPos+"px",y.coverGutter||(Se-=ue.gutterTotalWidth,b.style.paddingLeft=ue.gutterTotalWidth+"px"),b.style.width=Se+"px"}y.coverGutter&&(b.style.zIndex=5,b.style.position="relative",y.noHScroll||(b.style.marginLeft=-ue.gutterTotalWidth+"px"))}function Oi(y){if(y.height!=null)return y.height;var b=y.doc.cm;if(!b)return 0;if(!Be(document.body,y.node)){var fe="position: relative;";y.coverGutter&&(fe+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),y.noHScroll&&(fe+="width: "+b.display.wrapper.clientWidth+"px;"),Ce(b.display.measure,Ee("div",[y.node],null,fe))}return y.height=y.node.parentNode.offsetHeight}function gi(y,b){for(var fe=kt(b);fe!=y.wrapper;fe=fe.parentNode)if(!fe||fe.nodeType==1&&fe.getAttribute("cm-ignore-events")=="true"||fe.parentNode==y.sizer&&fe!=y.mover)return!0}function ni(y){return y.lineSpace.offsetTop}function Hi(y){return y.mover.offsetHeight-y.lineSpace.offsetHeight}function eo(y){if(y.cachedPaddingH)return y.cachedPaddingH;var b=Ce(y.measure,Ee("pre","x","CodeMirror-line-like")),fe=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,ue={left:parseInt(fe.paddingLeft),right:parseInt(fe.paddingRight)};return!isNaN(ue.left)&&!isNaN(ue.right)&&(y.cachedPaddingH=ue),ue}function Bi(y){return nt-y.display.nativeBarWidth}function to(y){return y.display.scroller.clientWidth-Bi(y)-y.display.barWidth}function io(y){return y.display.scroller.clientHeight-Bi(y)-y.display.barHeight}function Xi(y,b,fe){var ue=y.options.lineWrapping,Se=ue&&to(y);if(!b.measure.heights||ue&&b.measure.width!=Se){var ze=b.measure.heights=[];if(ue){b.measure.width=Se;for(var it=b.text.firstChild.getClientRects(),ut=0;ut<it.length-1;ut++){var dt=it[ut],mt=it[ut+1];Math.abs(dt.bottom-mt.bottom)>2&&ze.push((dt.bottom+mt.top)/2-fe.top)}}ze.push(fe.bottom-fe.top)}}function Po(y,b,fe){if(y.line==b)return{map:y.measure.map,cache:y.measure.cache};for(var ue=0;ue<y.rest.length;ue++)if(y.rest[ue]==b)return{map:y.measure.maps[ue],cache:y.measure.caches[ue]};for(var Se=0;Se<y.rest.length;Se++)if(Pt(y.rest[Se])>fe)return{map:y.measure.maps[Se],cache:y.measure.caches[Se],before:!0}}function Ha(y,b){b=pr(b);var fe=Pt(b),ue=y.display.externalMeasured=new Ki(y.doc,b,fe);ue.lineN=fe;var Se=ue.built=ti(y,ue);return ue.text=Se.pre,Ce(y.display.lineMeasure,Se.pre),ue}function ya(y,b,fe,ue){return Zi(y,uo(y,b),fe,ue)}function ro(y,b){if(b>=y.display.viewFrom&&b<y.display.viewTo)return y.display.view[Co(y,b)];var fe=y.display.externalMeasured;if(fe&&b>=fe.lineN&&b<fe.lineN+fe.size)return fe}function uo(y,b){var fe=Pt(b),ue=ro(y,fe);ue&&!ue.text?ue=null:ue&&ue.changes&&(Ii(y,ue,fe,co(y)),y.curOp.forceUpdate=!0),ue||(ue=Ha(y,b));var Se=Po(ue,b,fe);return{line:b,view:ue,rect:null,map:Se.map,cache:Se.cache,before:Se.before,hasHeights:!1}}function Zi(y,b,fe,ue,Se){b.before&&(fe=-1);var ze=fe+(ue||""),it;return b.cache.hasOwnProperty(ze)?it=b.cache[ze]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(Xi(y,b.view,b.rect),b.hasHeights=!0),it=wa(y,b,fe,ue),it.bogus||(b.cache[ze]=it)),{left:it.left,right:it.right,top:Se?it.rtop:it.top,bottom:Se?it.rbottom:it.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(y,b,fe){for(var ue,Se,ze,it,ut,dt,mt=0;mt<y.length;mt+=3)if(ut=y[mt],dt=y[mt+1],b<ut?(Se=0,ze=1,it="left"):b<dt?(Se=b-ut,ze=Se+1):(mt==y.length-3||b==dt&&y[mt+3]>b)&&(ze=dt-ut,Se=ze-1,b>=dt&&(it="right")),Se!=null){if(ue=y[mt+2],ut==dt&&fe==(ue.insertLeft?"left":"right")&&(it=fe),fe=="left"&&Se==0)for(;mt&&y[mt-2]==y[mt-3]&&y[mt-1].insertLeft;)ue=y[(mt-=3)+2],it="left";if(fe=="right"&&Se==dt-ut)for(;mt<y.length-3&&y[mt+3]==y[mt+4]&&!y[mt+5].insertLeft;)ue=y[(mt+=3)+2],it="right";break}return{node:ue,start:Se,end:ze,collapse:it,coverStart:ut,coverEnd:dt}}function Za(y,b){var fe=ba;if(b=="left")for(var ue=0;ue<y.length&&(fe=y[ue]).left==fe.right;ue++);else for(var Se=y.length-1;Se>=0&&(fe=y[Se]).left==fe.right;Se--);return fe}function wa(y,b,fe,ue){var Se=xa(b.map,fe,ue),ze=Se.node,it=Se.start,ut=Se.end,dt=Se.collapse,mt;if(ze.nodeType==3){for(var Ft=0;Ft<4;Ft++){for(;it&&Oe(b.line.text.charAt(Se.coverStart+it));)--it;for(;Se.coverStart+ut<Se.coverEnd&&Oe(b.line.text.charAt(Se.coverStart+ut));)++ut;if(xe&&z<9&&it==0&&ut==Se.coverEnd-Se.coverStart?mt=ze.parentNode.getBoundingClientRect():mt=Za(ke(ze,it,ut).getClientRects(),ue),mt.left||mt.right||it==0)break;ut=it,it=it-1,dt="right"}xe&&z<11&&(mt=Ga(y.display.measure,mt))}else{it>0&&(dt=ue="right");var Zt;y.options.lineWrapping&&(Zt=ze.getClientRects()).length>1?mt=Zt[ue=="right"?Zt.length-1:0]:mt=ze.getBoundingClientRect()}if(xe&&z<9&&!it&&(!mt||!mt.left&&!mt.right)){var nr=ze.parentNode.getClientRects()[0];nr?mt={left:nr.left,right:nr.left+Ji(y.display),top:nr.top,bottom:nr.bottom}:mt=ba}for(var rr=mt.top-b.rect.top,Sr=mt.bottom-b.rect.top,Mr=(rr+Sr)/2,zr=b.view.measure.heights,Xr=0;Xr<zr.length-1&&!(Mr<zr[Xr]);Xr++);var rn=Xr?zr[Xr-1]:0,Yr=zr[Xr],an={left:(dt=="right"?mt.right:mt.left)-b.rect.left,right:(dt=="left"?mt.left:mt.right)-b.rect.left,top:rn,bottom:Yr};return!mt.left&&!mt.right&&(an.bogus=!0),y.options.singleCursorHeightPerLine||(an.rtop=rr,an.rbottom=Sr),an}function Ga(y,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Qt(y))return b;var fe=screen.logicalXDPI/screen.deviceXDPI,ue=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*fe,right:b.right*fe,top:b.top*ue,bottom:b.bottom*ue}}function Ko(y){if(y.measure&&(y.measure.cache={},y.measure.heights=null,y.rest))for(var b=0;b<y.rest.length;b++)y.measure.caches[b]={}}function Vo(y){y.display.externalMeasure=null,De(y.display.lineMeasure);for(var b=0;b<y.display.view.length;b++)Ko(y.display.view[b])}function wo(y){Vo(y),y.display.cachedCharWidth=y.display.cachedTextHeight=y.display.cachedPaddingH=null,y.options.lineWrapping||(y.display.maxLineChanged=!0),y.display.lineNumChars=null}function Xo(){return ie&&ae?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return ie&&ae?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(y){var b=0;if(y.widgets)for(var fe=0;fe<y.widgets.length;++fe)y.widgets[fe].above&&(b+=Oi(y.widgets[fe]));return b}function Do(y,b,fe,ue,Se){if(!Se){var ze=Yo(b);fe.top+=ze,fe.bottom+=ze}if(ue=="line")return fe;ue||(ue="local");var it=cn(b);if(ue=="local"?it+=ni(y.display):it-=y.display.viewOffset,ue=="page"||ue=="window"){var ut=y.display.lineSpace.getBoundingClientRect();it+=ut.top+(ue=="window"?0:Sa());var dt=ut.left+(ue=="window"?0:Xo());fe.left+=dt,fe.right+=dt}return fe.top+=it,fe.bottom+=it,fe}function Ca(y,b,fe){if(fe=="div")return b;var ue=b.left,Se=b.top;if(fe=="page")ue-=Xo(),Se-=Sa();else if(fe=="local"||!fe){var ze=y.display.sizer.getBoundingClientRect();ue+=ze.left,Se+=ze.top}var it=y.display.lineSpace.getBoundingClientRect();return{left:ue-it.left,top:Se-it.top}}function ko(y,b,fe,ue,Se){return ue||(ue=er(y.doc,b.line)),Do(y,ue,ya(y,ue,b.ch,Se),fe)}function ji(y,b,fe,ue,Se,ze){ue=ue||er(y.doc,b.line),Se||(Se=uo(y,ue));function it(Sr,Mr){var zr=Zi(y,Se,Sr,Mr?"right":"left",ze);return Mr?zr.left=zr.right:zr.right=zr.left,Do(y,ue,zr,fe)}var ut=Tt(ue,y.doc.direction),dt=b.ch,mt=b.sticky;if(dt>=ue.text.length?(dt=ue.text.length,mt="before"):dt<=0&&(dt=0,mt="after"),!ut)return it(mt=="before"?dt-1:dt,mt=="before");function Ft(Sr,Mr,zr){var Xr=ut[Mr],rn=Xr.level==1;return it(zr?Sr-1:Sr,rn!=zr)}var Zt=lt(ut,dt,mt),nr=st,rr=Ft(dt,Zt,mt=="before");return nr!=null&&(rr.other=Ft(dt,nr,mt!="before")),rr}function zn(y,b){var fe=0;b=Rt(y.doc,b),y.options.lineWrapping||(fe=Ji(y.display)*b.ch);var ue=er(y.doc,b.line),Se=cn(ue)+ni(y.display);return{left:fe,right:fe,top:Se,bottom:Se+ue.height}}function jn(y,b,fe,ue,Se){var ze=wt(y,b,fe);return ze.xRel=Se,ue&&(ze.outside=ue),ze}function yi(y,b,fe){var ue=y.doc;if(fe+=y.display.viewOffset,fe<0)return jn(ue.first,0,null,-1,-1);var Se=Lt(ue,fe),ze=ue.first+ue.size-1;if(Se>ze)return jn(ue.first+ue.size-1,er(ue,ze).text.length,null,1,1);b<0&&(b=0);for(var it=er(ue,Se);;){var ut=Yi(y,it,Se,b,fe),dt=Or(it,ut.ch+(ut.xRel>0||ut.outside>0?1:0));if(!dt)return ut;var mt=dt.find(1);if(mt.line==Se)return mt;it=er(ue,Se=mt.line)}}function wi(y,b,fe,ue){ue-=Yo(b);var Se=b.text.length,ze=Ze(function(it){return Zi(y,fe,it-1).bottom<=ue},Se,0);return Se=Ze(function(it){return Zi(y,fe,it).top>ue},ze,Se),{begin:ze,end:Se}}function ii(y,b,fe,ue){fe||(fe=uo(y,b));var Se=Do(y,b,Zi(y,fe,ue),"line").top;return wi(y,b,fe,Se)}function ci(y,b,fe,ue){return y.bottom<=fe?!1:y.top>fe?!0:(ue?y.left:y.right)>b}function Yi(y,b,fe,ue,Se){Se-=cn(b);var ze=uo(y,b),it=Yo(b),ut=0,dt=b.text.length,mt=!0,Ft=Tt(b,y.doc.direction);if(Ft){var Zt=(y.options.lineWrapping?oo:Gi)(y,b,fe,ze,Ft,ue,Se);mt=Zt.level!=1,ut=mt?Zt.from:Zt.to-1,dt=mt?Zt.to:Zt.from-1}var nr=null,rr=null,Sr=Ze(function(gn){var hn=Zi(y,ze,gn);return hn.top+=it,hn.bottom+=it,ci(hn,ue,Se,!1)?(hn.top<=Se&&hn.left<=ue&&(nr=gn,rr=hn),!0):!1},ut,dt),Mr,zr,Xr=!1;if(rr){var rn=ue-rr.left<rr.right-ue,Yr=rn==mt;Sr=nr+(Yr?0:1),zr=Yr?"after":"before",Mr=rn?rr.left:rr.right}else{!mt&&(Sr==dt||Sr==ut)&&Sr++,zr=Sr==0?"after":Sr==b.text.length?"before":Zi(y,ze,Sr-(mt?1:0)).bottom+it<=Se==mt?"after":"before";var an=ji(y,wt(fe,Sr,zr),"line",b,ze);Mr=an.left,Xr=Se<an.top?-1:Se>=an.bottom?1:0}return Sr=$e(b.text,Sr,1),jn(fe,Sr,zr,Xr,ue-Mr)}function Gi(y,b,fe,ue,Se,ze,it){var ut=Ze(function(Zt){var nr=Se[Zt],rr=nr.level!=1;return ci(ji(y,wt(fe,rr?nr.to:nr.from,rr?"before":"after"),"line",b,ue),ze,it,!0)},0,Se.length-1),dt=Se[ut];if(ut>0){var mt=dt.level!=1,Ft=ji(y,wt(fe,mt?dt.from:dt.to,mt?"after":"before"),"line",b,ue);ci(Ft,ze,it,!0)&&Ft.top>it&&(dt=Se[ut-1])}return dt}function oo(y,b,fe,ue,Se,ze,it){var ut=wi(y,b,ue,it),dt=ut.begin,mt=ut.end;/\s/.test(b.text.charAt(mt-1))&&mt--;for(var Ft=null,Zt=null,nr=0;nr<Se.length;nr++){var rr=Se[nr];if(!(rr.from>=mt||rr.to<=dt)){var Sr=rr.level!=1,Mr=Zi(y,ue,Sr?Math.min(mt,rr.to)-1:Math.max(dt,rr.from)).right,zr=Mr<ze?ze-Mr+1e9:Mr-ze;(!Ft||Zt>zr)&&(Ft=rr,Zt=zr)}}return Ft||(Ft=Se[Se.length-1]),Ft.from<dt&&(Ft={from:dt,to:Ft.to,level:Ft.level}),Ft.to>mt&&(Ft={from:Ft.from,to:mt,level:Ft.level}),Ft}var Li;function Fi(y){if(y.cachedTextHeight!=null)return y.cachedTextHeight;if(Li==null){Li=Ee("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)Li.appendChild(document.createTextNode("x")),Li.appendChild(Ee("br"));Li.appendChild(document.createTextNode("x"))}Ce(y.measure,Li);var fe=Li.offsetHeight/50;return fe>3&&(y.cachedTextHeight=fe),De(y.measure),fe||1}function Ji(y){if(y.cachedCharWidth!=null)return y.cachedCharWidth;var b=Ee("span","xxxxxxxxxx"),fe=Ee("pre",[b],"CodeMirror-line-like");Ce(y.measure,fe);var ue=b.getBoundingClientRect(),Se=(ue.right-ue.left)/10;return Se>2&&(y.cachedCharWidth=Se),Se||10}function co(y){for(var b=y.display,fe={},ue={},Se=b.gutters.clientLeft,ze=b.gutters.firstChild,it=0;ze;ze=ze.nextSibling,++it){var ut=y.display.gutterSpecs[it].className;fe[ut]=ze.offsetLeft+ze.clientLeft+Se,ue[ut]=ze.clientWidth}return{fixedPos:Ka(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:fe,gutterWidth:ue,wrapperWidth:b.wrapper.clientWidth}}function Ka(y){return y.scroller.getBoundingClientRect().left-y.sizer.getBoundingClientRect().left}function ws(y){var b=Fi(y.display),fe=y.options.lineWrapping,ue=fe&&Math.max(5,y.display.scroller.clientWidth/Ji(y.display)-3);return function(Se){if(kr(y.doc,Se))return 0;var ze=0;if(Se.widgets)for(var it=0;it<Se.widgets.length;it++)Se.widgets[it].height&&(ze+=Se.widgets[it].height);return fe?ze+(Math.ceil(Se.text.length/ue)||1)*b:ze+b}}function Va(y){var b=y.doc,fe=ws(y);b.iter(function(ue){var Se=fe(ue);Se!=ue.height&&xr(ue,Se)})}function So(y,b,fe,ue){var Se=y.display;if(!fe&&kt(b).getAttribute("cm-not-content")=="true")return null;var ze,it,ut=Se.lineSpace.getBoundingClientRect();try{ze=b.clientX-ut.left,it=b.clientY-ut.top}catch(Zt){return null}var dt=yi(y,ze,it),mt;if(ue&&dt.xRel>0&&(mt=er(y.doc,dt.line).text).length==dt.ch){var Ft=Fe(mt,mt.length,y.options.tabSize)-mt.length;dt=wt(dt.line,Math.max(0,Math.round((ze-eo(y.display).left)/Ji(y.display))-Ft))}return dt}function Co(y,b){if(b>=y.display.viewTo||(b-=y.display.viewFrom,b<0))return null;for(var fe=y.display.view,ue=0;ue<fe.length;ue++)if(b-=fe[ue].size,b<0)return ue}function Pi(y,b,fe,ue){b==null&&(b=y.doc.first),fe==null&&(fe=y.doc.first+y.doc.size),ue||(ue=0);var Se=y.display;if(ue&&fe<Se.viewTo&&(Se.updateLineNumbers==null||Se.updateLineNumbers>b)&&(Se.updateLineNumbers=b),y.curOp.viewChanged=!0,b>=Se.viewTo)Gr&&wr(y.doc,b)<Se.viewTo&&ho(y);else if(fe<=Se.viewFrom)Gr&&mr(y.doc,fe+ue)>Se.viewFrom?ho(y):(Se.viewFrom+=ue,Se.viewTo+=ue);else if(b<=Se.viewFrom&&fe>=Se.viewTo)ho(y);else if(b<=Se.viewFrom){var ze=Ea(y,fe,fe+ue,1);ze?(Se.view=Se.view.slice(ze.index),Se.viewFrom=ze.lineN,Se.viewTo+=ue):ho(y)}else if(fe>=Se.viewTo){var it=Ea(y,b,b,-1);it?(Se.view=Se.view.slice(0,it.index),Se.viewTo=it.lineN):ho(y)}else{var ut=Ea(y,b,b,-1),dt=Ea(y,fe,fe+ue,1);ut&&dt?(Se.view=Se.view.slice(0,ut.index).concat(qn(y,ut.lineN,dt.lineN)).concat(Se.view.slice(dt.index)),Se.viewTo+=ue):ho(y)}var mt=Se.externalMeasured;mt&&(fe<mt.lineN?mt.lineN+=ue:b<mt.lineN+mt.size&&(Se.externalMeasured=null))}function fo(y,b,fe){y.curOp.viewChanged=!0;var ue=y.display,Se=y.display.externalMeasured;if(Se&&b>=Se.lineN&&b<Se.lineN+Se.size&&(ue.externalMeasured=null),!(b<ue.viewFrom||b>=ue.viewTo)){var ze=ue.view[Co(y,b)];if(ze.node!=null){var it=ze.changes||(ze.changes=[]);rt(it,fe)==-1&&it.push(fe)}}}function ho(y){y.display.viewFrom=y.display.viewTo=y.doc.first,y.display.view=[],y.display.viewOffset=0}function Ea(y,b,fe,ue){var Se=Co(y,b),ze,it=y.display.view;if(!Gr||fe==y.doc.first+y.doc.size)return{index:Se,lineN:fe};for(var ut=y.display.viewFrom,dt=0;dt<Se;dt++)ut+=it[dt].size;if(ut!=b){if(ue>0){if(Se==it.length-1)return null;ze=ut+it[Se].size-b,Se++}else ze=ut-b;b+=ze,fe+=ze}for(;wr(y.doc,fe)!=fe;){if(Se==(ue<0?0:it.length-1))return null;fe+=ue*it[Se-(ue<0?1:0)].size,Se+=ue}return{index:Se,lineN:fe}}function $l(y,b,fe){var ue=y.display,Se=ue.view;Se.length==0||b>=ue.viewTo||fe<=ue.viewFrom?(ue.view=qn(y,b,fe),ue.viewFrom=b):(ue.viewFrom>b?ue.view=qn(y,b,ue.viewFrom).concat(ue.view):ue.viewFrom<b&&(ue.view=ue.view.slice(Co(y,b))),ue.viewFrom=b,ue.viewTo<fe?ue.view=ue.view.concat(qn(y,ue.viewTo,fe)):ue.viewTo>fe&&(ue.view=ue.view.slice(0,Co(y,fe)))),ue.viewTo=fe}function Ss(y){for(var b=y.display.view,fe=0,ue=0;ue<b.length;ue++){var Se=b[ue];!Se.hidden&&(!Se.node||Se.changes)&&++fe}return fe}function Jo(y){y.display.input.showSelection(y.display.input.prepareSelection())}function Cs(y,b){b===void 0&&(b=!0);for(var fe=y.doc,ue={},Se=ue.cursors=document.createDocumentFragment(),ze=ue.selection=document.createDocumentFragment(),it=0;it<fe.sel.ranges.length;it++)if(!(!b&&it==fe.sel.primIndex)){var ut=fe.sel.ranges[it];if(!(ut.from().line>=y.display.viewTo||ut.to().line<y.display.viewFrom)){var dt=ut.empty();(dt||y.options.showCursorWhenSelecting)&&Es(y,ut.head,Se),dt||Wl(y,ut,ze)}}return ue}function Es(y,b,fe){var ue=ji(y,b,"div",null,null,!y.options.singleCursorHeightPerLine),Se=fe.appendChild(Ee("div","\xA0","CodeMirror-cursor"));if(Se.style.left=ue.left+"px",Se.style.top=ue.top+"px",Se.style.height=Math.max(0,ue.bottom-ue.top)*y.options.cursorHeight+"px",ue.other){var ze=fe.appendChild(Ee("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ze.style.display="",ze.style.left=ue.other.left+"px",ze.style.top=ue.other.top+"px",ze.style.height=(ue.other.bottom-ue.other.top)*.85+"px"}}function Oa(y,b){return y.top-b.top||y.left-b.left}function Wl(y,b,fe){var ue=y.display,Se=y.doc,ze=document.createDocumentFragment(),it=eo(y.display),ut=it.left,dt=Math.max(ue.sizerWidth,to(y)-ue.sizer.offsetLeft)-it.right,mt=Se.direction=="ltr";function Ft(Yr,an,gn,hn){an<0&&(an=0),an=Math.round(an),hn=Math.round(hn),ze.appendChild(Ee("div",null,"CodeMirror-selected","position: absolute; left: "+Yr+`px;
top: `+an+"px; width: "+(gn==null?dt-Yr:gn)+`px;
height: `+(hn-an)+"px"))}function Zt(Yr,an,gn){var hn=er(Se,Yr),kn=hn.text.length,Yn,mi;function Qn(ai,Mi){return ko(y,wt(Yr,ai),"div",hn,Mi)}function Wi(ai,Mi,bi){var fi=ii(y,hn,null,ai),si=Mi=="ltr"==(bi=="after")?"left":"right",ei=bi=="after"?fi.begin:fi.end-(/\s/.test(hn.text.charAt(fi.end-1))?2:1);return Qn(ei,si)[si]}var ki=Tt(hn,Se.direction);return Je(ki,an||0,gn==null?kn:gn,function(ai,Mi,bi,fi){var si=bi=="ltr",ei=Qn(ai,si?"left":"right"),Ni=Qn(Mi-1,si?"right":"left"),Zo=an==null&&ai==0,bo=gn==null&&Mi==kn,Ci=fi==0,no=!ki||fi==ki.length-1;if(Ni.top-ei.top<=3){var vi=(mt?Zo:bo)&&Ci,bs=(mt?bo:Zo)&&no,so=vi?ut:(si?ei:Ni).left,Io=bs?dt:(si?Ni:ei).right;Ft(so,ei.top,Io-so,ei.bottom)}else{var jo,Ai,Go,xs;si?(jo=mt&&Zo&&Ci?ut:ei.left,Ai=mt?dt:Wi(ai,bi,"before"),Go=mt?ut:Wi(Mi,bi,"after"),xs=mt&&bo&&no?dt:Ni.right):(jo=mt?Wi(ai,bi,"before"):ut,Ai=!mt&&Zo&&Ci?dt:ei.right,Go=!mt&&bo&&no?ut:Ni.left,xs=mt?Wi(Mi,bi,"after"):dt),Ft(jo,ei.top,Ai-jo,ei.bottom),ei.bottom<Ni.top&&Ft(ut,ei.bottom,null,Ni.top),Ft(Go,Ni.top,xs-Go,Ni.bottom)}(!Yn||Oa(ei,Yn)<0)&&(Yn=ei),Oa(Ni,Yn)<0&&(Yn=Ni),(!mi||Oa(ei,mi)<0)&&(mi=ei),Oa(Ni,mi)<0&&(mi=Ni)}),{start:Yn,end:mi}}var nr=b.from(),rr=b.to();if(nr.line==rr.line)Zt(nr.line,nr.ch,rr.ch);else{var Sr=er(Se,nr.line),Mr=er(Se,rr.line),zr=pr(Sr)==pr(Mr),Xr=Zt(nr.line,nr.ch,zr?Sr.text.length+1:null).end,rn=Zt(rr.line,zr?0:null,rr.ch).start;zr&&(Xr.top<rn.top-2?(Ft(Xr.right,Xr.top,null,Xr.bottom),Ft(ut,rn.top,rn.left,rn.bottom)):Ft(Xr.right,Xr.top,rn.left-Xr.right,Xr.bottom)),Xr.bottom<rn.top&&Ft(ut,Xr.bottom,null,rn.top)}fe.appendChild(ze)}function Xa(y){if(y.state.focused){var b=y.display;clearInterval(b.blinker);var fe=!0;b.cursorDiv.style.visibility="",y.options.cursorBlinkRate>0?b.blinker=setInterval(function(){y.hasFocus()||Mo(y),b.cursorDiv.style.visibility=(fe=!fe)?"":"hidden"},y.options.cursorBlinkRate):y.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function Os(y){y.state.focused||(y.display.input.focus(),Ya(y))}function Ts(y){y.state.delayingBlurEvent=!0,setTimeout(function(){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1,Mo(y))},100)}function Ya(y,b){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1),y.options.readOnly!="nocursor"&&(y.state.focused||(Et(y,"focus",y,b),y.state.focused=!0,ve(y.display.wrapper,"CodeMirror-focused"),!y.curOp&&y.display.selForContextMenu!=y.doc.sel&&(y.display.input.reset(),E&&setTimeout(function(){return y.display.input.reset(!0)},20)),y.display.input.receivedFocus()),Xa(y))}function Mo(y,b){y.state.delayingBlurEvent||(y.state.focused&&(Et(y,"blur",y,b),y.state.focused=!1,_e(y.display.wrapper,"CodeMirror-focused")),clearInterval(y.display.blinker),setTimeout(function(){y.state.focused||(y.display.shift=!1)},150))}function Ta(y){for(var b=y.display,fe=b.lineDiv.offsetTop,ue=0;ue<b.view.length;ue++){var Se=b.view[ue],ze=y.options.lineWrapping,it=void 0,ut=0;if(!Se.hidden){if(xe&&z<8){var dt=Se.node.offsetTop+Se.node.offsetHeight;it=dt-fe,fe=dt}else{var mt=Se.node.getBoundingClientRect();it=mt.bottom-mt.top,!ze&&Se.text.firstChild&&(ut=Se.text.firstChild.getBoundingClientRect().right-mt.left-1)}var Ft=Se.line.height-it;if((Ft>.005||Ft<-.005)&&(xr(Se.line,it),As(Se.line),Se.rest))for(var Zt=0;Zt<Se.rest.length;Zt++)As(Se.rest[Zt]);if(ut>y.display.sizerWidth){var nr=Math.ceil(ut/Ji(y.display));nr>y.display.maxLineLength&&(y.display.maxLineLength=nr,y.display.maxLine=Se.line,y.display.maxLineChanged=!0)}}}}function As(y){if(y.widgets)for(var b=0;b<y.widgets.length;++b){var fe=y.widgets[b],ue=fe.node.parentNode;ue&&(fe.height=ue.offsetHeight)}}function Aa(y,b,fe){var ue=fe&&fe.top!=null?Math.max(0,fe.top):y.scroller.scrollTop;ue=Math.floor(ue-ni(y));var Se=fe&&fe.bottom!=null?fe.bottom:ue+y.wrapper.clientHeight,ze=Lt(b,ue),it=Lt(b,Se);if(fe&&fe.ensure){var ut=fe.ensure.from.line,dt=fe.ensure.to.line;ut<ze?(ze=ut,it=Lt(b,cn(er(b,ut))+y.wrapper.clientHeight)):Math.min(dt,b.lastLine())>=it&&(ze=Lt(b,cn(er(b,dt))-y.wrapper.clientHeight),it=dt)}return{from:ze,to:Math.max(it,ze+1)}}function zl(y,b){if(!xt(y,"scrollCursorIntoView")){var fe=y.display,ue=fe.sizer.getBoundingClientRect(),Se=null;if(b.top+ue.top<0?Se=!0:b.bottom+ue.top>(window.innerHeight||document.documentElement.clientHeight)&&(Se=!1),Se!=null&&!ne){var ze=Ee("div","\u200B",null,`position: absolute;
top: `+(b.top-fe.viewOffset-ni(y.display))+`px;
height: `+(b.bottom-b.top+Bi(y)+fe.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");y.display.lineSpace.appendChild(ze),ze.scrollIntoView(Se),y.display.lineSpace.removeChild(ze)}}}function Ul(y,b,fe,ue){ue==null&&(ue=0);var Se;!y.options.lineWrapping&&b==fe&&(b=b.ch?wt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,fe=b.sticky=="before"?wt(b.line,b.ch+1,"before"):b);for(var ze=0;ze<5;ze++){var it=!1,ut=ji(y,b),dt=!fe||fe==b?ut:ji(y,fe);Se={left:Math.min(ut.left,dt.left),top:Math.min(ut.top,dt.top)-ue,right:Math.max(ut.left,dt.left),bottom:Math.max(ut.bottom,dt.bottom)+ue};var mt=Ja(y,Se),Ft=y.doc.scrollTop,Zt=y.doc.scrollLeft;if(mt.scrollTop!=null&&(qo(y,mt.scrollTop),Math.abs(y.doc.scrollTop-Ft)>1&&(it=!0)),mt.scrollLeft!=null&&(Eo(y,mt.scrollLeft),Math.abs(y.doc.scrollLeft-Zt)>1&&(it=!0)),!it)break}return Se}function Hl(y,b){var fe=Ja(y,b);fe.scrollTop!=null&&qo(y,fe.scrollTop),fe.scrollLeft!=null&&Eo(y,fe.scrollLeft)}function Ja(y,b){var fe=y.display,ue=Fi(y.display);b.top<0&&(b.top=0);var Se=y.curOp&&y.curOp.scrollTop!=null?y.curOp.scrollTop:fe.scroller.scrollTop,ze=io(y),it={};b.bottom-b.top>ze&&(b.bottom=b.top+ze);var ut=y.doc.height+Hi(fe),dt=b.top<ue,mt=b.bottom>ut-ue;if(b.top<Se)it.scrollTop=dt?0:b.top;else if(b.bottom>Se+ze){var Ft=Math.min(b.top,(mt?ut:b.bottom)-ze);Ft!=Se&&(it.scrollTop=Ft)}var Zt=y.options.fixedGutter?0:fe.gutters.offsetWidth,nr=y.curOp&&y.curOp.scrollLeft!=null?y.curOp.scrollLeft:fe.scroller.scrollLeft-Zt,rr=to(y)-fe.gutters.offsetWidth,Sr=b.right-b.left>rr;return Sr&&(b.right=b.left+rr),b.left<10?it.scrollLeft=0:b.left<nr?it.scrollLeft=Math.max(0,b.left+Zt-(Sr?0:10)):b.right>rr+nr-3&&(it.scrollLeft=b.right+(Sr?0:10)-rr),it}function Qa(y,b){b!=null&&(Ia(y),y.curOp.scrollTop=(y.curOp.scrollTop==null?y.doc.scrollTop:y.curOp.scrollTop)+b)}function No(y){Ia(y);var b=y.getCursor();y.curOp.scrollToPos={from:b,to:b,margin:y.options.cursorScrollMargin}}function Qo(y,b,fe){(b!=null||fe!=null)&&Ia(y),b!=null&&(y.curOp.scrollLeft=b),fe!=null&&(y.curOp.scrollTop=fe)}function Zl(y,b){Ia(y),y.curOp.scrollToPos=b}function Ia(y){var b=y.curOp.scrollToPos;if(b){y.curOp.scrollToPos=null;var fe=zn(y,b.from),ue=zn(y,b.to);Is(y,fe,ue,b.margin)}}function Is(y,b,fe,ue){var Se=Ja(y,{left:Math.min(b.left,fe.left),top:Math.min(b.top,fe.top)-ue,right:Math.max(b.right,fe.right),bottom:Math.max(b.bottom,fe.bottom)+ue});Qo(y,Se.scrollLeft,Se.scrollTop)}function qo(y,b){Math.abs(y.doc.scrollTop-b)<2||(ge||es(y,{top:b}),js(y,b,!0),ge&&es(y),ra(y,100))}function js(y,b,fe){b=Math.max(0,Math.min(y.display.scroller.scrollHeight-y.display.scroller.clientHeight,b)),!(y.display.scroller.scrollTop==b&&!fe)&&(y.doc.scrollTop=b,y.display.scrollbars.setScrollTop(b),y.display.scroller.scrollTop!=b&&(y.display.scroller.scrollTop=b))}function Eo(y,b,fe,ue){b=Math.max(0,Math.min(b,y.display.scroller.scrollWidth-y.display.scroller.clientWidth)),!((fe?b==y.doc.scrollLeft:Math.abs(y.doc.scrollLeft-b)<2)&&!ue)&&(y.doc.scrollLeft=b,Ns(y),y.display.scroller.scrollLeft!=b&&(y.display.scroller.scrollLeft=b),y.display.scrollbars.setScrollLeft(b))}function ea(y){var b=y.display,fe=b.gutters.offsetWidth,ue=Math.round(y.doc.height+Hi(y.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:y.options.fixedGutter?fe:0,docHeight:ue,scrollHeight:ue+Bi(y)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:fe}}var Oo=function(y,b,fe){this.cm=fe;var ue=this.vert=Ee("div",[Ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Se=this.horiz=Ee("div",[Ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ue.tabIndex=Se.tabIndex=-1,y(ue),y(Se),Ot(ue,"scroll",function(){ue.clientHeight&&b(ue.scrollTop,"vertical")}),Ot(Se,"scroll",function(){Se.clientWidth&&b(Se.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&z<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Oo.prototype.update=function(y){var b=y.scrollWidth>y.clientWidth+1,fe=y.scrollHeight>y.clientHeight+1,ue=y.nativeBarWidth;if(fe){this.vert.style.display="block",this.vert.style.bottom=b?ue+"px":"0";var Se=y.viewHeight-(b?ue:0);this.vert.firstChild.style.height=Math.max(0,y.scrollHeight-y.clientHeight+Se)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=fe?ue+"px":"0",this.horiz.style.left=y.barLeft+"px";var ze=y.viewWidth-y.barLeft-(fe?ue:0);this.horiz.firstChild.style.width=Math.max(0,y.scrollWidth-y.clientWidth+ze)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&y.clientHeight>0&&(ue==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:fe?ue:0,bottom:b?ue:0}},Oo.prototype.setScrollLeft=function(y){this.horiz.scrollLeft!=y&&(this.horiz.scrollLeft=y),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Oo.prototype.setScrollTop=function(y){this.vert.scrollTop!=y&&(this.vert.scrollTop=y),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Oo.prototype.zeroWidthHack=function(){var y=ce&&!x?"12px":"18px";this.horiz.style.height=this.vert.style.width=y,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ke,this.disableVert=new Ke},Oo.prototype.enableZeroWidthBar=function(y,b,fe){y.style.pointerEvents="auto";function ue(){var Se=y.getBoundingClientRect(),ze=fe=="vert"?document.elementFromPoint(Se.right-1,(Se.top+Se.bottom)/2):document.elementFromPoint((Se.right+Se.left)/2,Se.bottom-1);ze!=y?y.style.pointerEvents="none":b.set(1e3,ue)}b.set(1e3,ue)},Oo.prototype.clear=function(){var y=this.horiz.parentNode;y.removeChild(this.horiz),y.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function Ro(y,b){b||(b=ea(y));var fe=y.display.barWidth,ue=y.display.barHeight;Ps(y,b);for(var Se=0;Se<4&&fe!=y.display.barWidth||ue!=y.display.barHeight;Se++)fe!=y.display.barWidth&&y.options.lineWrapping&&Ta(y),Ps(y,ea(y)),fe=y.display.barWidth,ue=y.display.barHeight}function Ps(y,b){var fe=y.display,ue=fe.scrollbars.update(b);fe.sizer.style.paddingRight=(fe.barWidth=ue.right)+"px",fe.sizer.style.paddingBottom=(fe.barHeight=ue.bottom)+"px",fe.heightForcer.style.borderBottom=ue.bottom+"px solid transparent",ue.right&&ue.bottom?(fe.scrollbarFiller.style.display="block",fe.scrollbarFiller.style.height=ue.bottom+"px",fe.scrollbarFiller.style.width=ue.right+"px"):fe.scrollbarFiller.style.display="",ue.bottom&&y.options.coverGutterNextToScrollbar&&y.options.fixedGutter?(fe.gutterFiller.style.display="block",fe.gutterFiller.style.height=ue.bottom+"px",fe.gutterFiller.style.width=b.gutterWidth+"px"):fe.gutterFiller.style.display=""}var Ds={native:Oo,null:ta};function ks(y){y.display.scrollbars&&(y.display.scrollbars.clear(),y.display.scrollbars.addClass&&_e(y.display.wrapper,y.display.scrollbars.addClass)),y.display.scrollbars=new Ds[y.options.scrollbarStyle](function(b){y.display.wrapper.insertBefore(b,y.display.scrollbarFiller),Ot(b,"mousedown",function(){y.state.focused&&setTimeout(function(){return y.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,fe){fe=="horizontal"?Eo(y,b):qo(y,b)},y),y.display.scrollbars.addClass&&ve(y.display.wrapper,y.display.scrollbars.addClass)}var Gl=0;function To(y){y.curOp={cm:y,viewChanged:!1,startHeight:y.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:++Gl},Ln(y.curOp)}function Ao(y){var b=y.curOp;b&&Sn(b,function(fe){for(var ue=0;ue<fe.ops.length;ue++)fe.ops[ue].cm.curOp=null;Kl(fe)})}function Kl(y){for(var b=y.ops,fe=0;fe<b.length;fe++)Vl(b[fe]);for(var ue=0;ue<b.length;ue++)Xl(b[ue]);for(var Se=0;Se<b.length;Se++)Yl(b[Se]);for(var ze=0;ze<b.length;ze++)Jl(b[ze]);for(var it=0;it<b.length;it++)Ql(b[it])}function Vl(y){var b=y.cm,fe=b.display;eu(b),y.updateMaxLine&&Tn(b),y.mustUpdate=y.viewChanged||y.forceUpdate||y.scrollTop!=null||y.scrollToPos&&(y.scrollToPos.from.line<fe.viewFrom||y.scrollToPos.to.line>=fe.viewTo)||fe.maxLineChanged&&b.options.lineWrapping,y.update=y.mustUpdate&&new ja(b,y.mustUpdate&&{top:y.scrollTop,ensure:y.scrollToPos},y.forceUpdate)}function Xl(y){y.updatedDisplay=y.mustUpdate&&qa(y.cm,y.update)}function Yl(y){var b=y.cm,fe=b.display;y.updatedDisplay&&Ta(b),y.barMeasure=ea(b),fe.maxLineChanged&&!b.options.lineWrapping&&(y.adjustWidthTo=ya(b,fe.maxLine,fe.maxLine.text.length).left+3,b.display.sizerWidth=y.adjustWidthTo,y.barMeasure.scrollWidth=Math.max(fe.scroller.clientWidth,fe.sizer.offsetLeft+y.adjustWidthTo+Bi(b)+b.display.barWidth),y.maxScrollLeft=Math.max(0,fe.sizer.offsetLeft+y.adjustWidthTo-to(b))),(y.updatedDisplay||y.selectionChanged)&&(y.preparedSelection=fe.input.prepareSelection())}function Jl(y){var b=y.cm;y.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=y.adjustWidthTo+"px",y.maxScrollLeft<b.doc.scrollLeft&&Eo(b,Math.min(b.display.scroller.scrollLeft,y.maxScrollLeft),!0),b.display.maxLineChanged=!1);var fe=y.focus&&y.focus==Ae();y.preparedSelection&&b.display.input.showSelection(y.preparedSelection,fe),(y.updatedDisplay||y.startHeight!=b.doc.height)&&Ro(b,y.barMeasure),y.updatedDisplay&&rs(b,y.barMeasure),y.selectionChanged&&Xa(b),b.state.focused&&y.updateInput&&b.display.input.reset(y.typing),fe&&Os(y.cm)}function Ql(y){var b=y.cm,fe=b.display,ue=b.doc;if(y.updatedDisplay&&Ms(b,y.update),fe.wheelStartX!=null&&(y.scrollTop!=null||y.scrollLeft!=null||y.scrollToPos)&&(fe.wheelStartX=fe.wheelStartY=null),y.scrollTop!=null&&js(b,y.scrollTop,y.forceScroll),y.scrollLeft!=null&&Eo(b,y.scrollLeft,!0,!0),y.scrollToPos){var Se=Ul(b,Rt(ue,y.scrollToPos.from),Rt(ue,y.scrollToPos.to),y.scrollToPos.margin);zl(b,Se)}var ze=y.maybeHiddenMarkers,it=y.maybeUnhiddenMarkers;if(ze)for(var ut=0;ut<ze.length;++ut)ze[ut].lines.length||Et(ze[ut],"hide");if(it)for(var dt=0;dt<it.length;++dt)it[dt].lines.length&&Et(it[dt],"unhide");fe.wrapper.offsetHeight&&(ue.scrollTop=b.display.scroller.scrollTop),y.changeObjs&&Et(b,"changes",b,y.changeObjs),y.update&&y.update.finish()}function $i(y,b){if(y.curOp)return b();To(y);try{return b()}finally{Ao(y)}}function hi(y,b){return function(){if(y.curOp)return b.apply(y,arguments);To(y);try{return b.apply(y,arguments)}finally{Ao(y)}}}function Ti(y){return function(){if(this.curOp)return y.apply(this,arguments);To(this);try{return y.apply(this,arguments)}finally{Ao(this)}}}function pi(y){return function(){var b=this.cm;if(!b||b.curOp)return y.apply(this,arguments);To(b);try{return y.apply(this,arguments)}finally{Ao(b)}}}function ra(y,b){y.doc.highlightFrontier<y.display.viewTo&&y.state.highlight.set(b,Ye(ql,y))}function ql(y){var b=y.doc;if(!(b.highlightFrontier>=y.display.viewTo)){var fe=+new Date+y.options.workTime,ue=Fr(y,b.highlightFrontier),Se=[];b.iter(ue.line,Math.min(b.first+b.size,y.display.viewTo+500),function(ze){if(ue.line>=y.display.viewFrom){var it=ze.styles,ut=ze.text.length>y.options.maxHighlightLength?Nr(b.mode,ue.state):null,dt=hr(y,ze,ue,!0);ut&&(ue.state=ut),ze.styles=dt.styles;var mt=ze.styleClasses,Ft=dt.classes;Ft?ze.styleClasses=Ft:mt&&(ze.styleClasses=null);for(var Zt=!it||it.length!=ze.styles.length||mt!=Ft&&(!mt||!Ft||mt.bgClass!=Ft.bgClass||mt.textClass!=Ft.textClass),nr=0;!Zt&&nr<it.length;++nr)Zt=it[nr]!=ze.styles[nr];Zt&&Se.push(ue.line),ze.stateAfter=ue.save(),ue.nextLine()}else ze.text.length<=y.options.maxHighlightLength&&Hr(y,ze.text,ue),ze.stateAfter=ue.line%5==0?ue.save():null,ue.nextLine();if(+new Date>fe)return ra(y,y.options.workDelay),!0}),b.highlightFrontier=ue.line,b.modeFrontier=Math.max(b.modeFrontier,ue.line),Se.length&&$i(y,function(){for(var ze=0;ze<Se.length;ze++)fo(y,Se[ze],"text")})}}var ja=function(y,b,fe){var ue=y.display;this.viewport=b,this.visible=Aa(ue,y.doc,b),this.editorIsHidden=!ue.wrapper.offsetWidth,this.wrapperHeight=ue.wrapper.clientHeight,this.wrapperWidth=ue.wrapper.clientWidth,this.oldDisplayWidth=to(y),this.force=fe,this.dims=co(y),this.events=[]};ja.prototype.signal=function(y,b){It(y,b)&&this.events.push(arguments)},ja.prototype.finish=function(){for(var y=0;y<this.events.length;y++)Et.apply(null,this.events[y])};function eu(y){var b=y.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=Bi(y)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Bi(y)+"px",b.scrollbarsClipped=!0)}function tu(y){if(y.hasFocus())return null;var b=Ae();if(!b||!Be(y.display.lineDiv,b))return null;var fe={activeElt:b};if(window.getSelection){var ue=window.getSelection();ue.anchorNode&&ue.extend&&Be(y.display.lineDiv,ue.anchorNode)&&(fe.anchorNode=ue.anchorNode,fe.anchorOffset=ue.anchorOffset,fe.focusNode=ue.focusNode,fe.focusOffset=ue.focusOffset)}return fe}function ru(y){if(!(!y||!y.activeElt||y.activeElt==Ae())&&(y.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(y.activeElt.nodeName)&&y.anchorNode&&Be(document.body,y.anchorNode)&&Be(document.body,y.focusNode))){var b=window.getSelection(),fe=document.createRange();fe.setEnd(y.anchorNode,y.anchorOffset),fe.collapse(!1),b.removeAllRanges(),b.addRange(fe),b.extend(y.focusNode,y.focusOffset)}}function qa(y,b){var fe=y.display,ue=y.doc;if(b.editorIsHidden)return ho(y),!1;if(!b.force&&b.visible.from>=fe.viewFrom&&b.visible.to<=fe.viewTo&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo)&&fe.renderedView==fe.view&&Ss(y)==0)return!1;Rs(y)&&(ho(y),b.dims=co(y));var Se=ue.first+ue.size,ze=Math.max(b.visible.from-y.options.viewportMargin,ue.first),it=Math.min(Se,b.visible.to+y.options.viewportMargin);fe.viewFrom<ze&&ze-fe.viewFrom<20&&(ze=Math.max(ue.first,fe.viewFrom)),fe.viewTo>it&&fe.viewTo-it<20&&(it=Math.min(Se,fe.viewTo)),Gr&&(ze=wr(y.doc,ze),it=mr(y.doc,it));var ut=ze!=fe.viewFrom||it!=fe.viewTo||fe.lastWrapHeight!=b.wrapperHeight||fe.lastWrapWidth!=b.wrapperWidth;$l(y,ze,it),fe.viewOffset=cn(er(y.doc,fe.viewFrom)),y.display.mover.style.top=fe.viewOffset+"px";var dt=Ss(y);if(!ut&&dt==0&&!b.force&&fe.renderedView==fe.view&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo))return!1;var mt=tu(y);return dt>4&&(fe.lineDiv.style.display="none"),nu(y,fe.updateLineNumbers,b.dims),dt>4&&(fe.lineDiv.style.display=""),fe.renderedView=fe.view,ru(mt),De(fe.cursorDiv),De(fe.selectionDiv),fe.gutters.style.height=fe.sizer.style.minHeight=0,ut&&(fe.lastWrapHeight=b.wrapperHeight,fe.lastWrapWidth=b.wrapperWidth,ra(y,400)),fe.updateLineNumbers=null,!0}function Ms(y,b){for(var fe=b.viewport,ue=!0;;ue=!1){if(!ue||!y.options.lineWrapping||b.oldDisplayWidth==to(y)){if(fe&&fe.top!=null&&(fe={top:Math.min(y.doc.height+Hi(y.display)-io(y),fe.top)}),b.visible=Aa(y.display,y.doc,fe),b.visible.from>=y.display.viewFrom&&b.visible.to<=y.display.viewTo)break}else ue&&(b.visible=Aa(y.display,y.doc,fe));if(!qa(y,b))break;Ta(y);var Se=ea(y);Jo(y),Ro(y,Se),rs(y,Se),b.force=!1}b.signal(y,"update",y),(y.display.viewFrom!=y.display.reportedViewFrom||y.display.viewTo!=y.display.reportedViewTo)&&(b.signal(y,"viewportChange",y,y.display.viewFrom,y.display.viewTo),y.display.reportedViewFrom=y.display.viewFrom,y.display.reportedViewTo=y.display.viewTo)}function es(y,b){var fe=new ja(y,b);if(qa(y,fe)){Ta(y),Ms(y,fe);var ue=ea(y);Jo(y),Ro(y,ue),rs(y,ue),fe.finish()}}function nu(y,b,fe){var ue=y.display,Se=y.options.lineNumbers,ze=ue.lineDiv,it=ze.firstChild;function ut(Sr){var Mr=Sr.nextSibling;return E&&ce&&y.display.currentWheelTarget==Sr?Sr.style.display="none":Sr.parentNode.removeChild(Sr),Mr}for(var dt=ue.view,mt=ue.viewFrom,Ft=0;Ft<dt.length;Ft++){var Zt=dt[Ft];if(!Zt.hidden)if(!Zt.node||Zt.node.parentNode!=ze){var nr=Cn(y,Zt,mt,fe);ze.insertBefore(nr,it)}else{for(;it!=Zt.node;)it=ut(it);var rr=Se&&b!=null&&b<=mt&&Zt.lineNumber;Zt.changes&&(rt(Zt.changes,"gutter")>-1&&(rr=!1),Ii(y,Zt,mt,fe)),rr&&(De(Zt.lineNumber),Zt.lineNumber.appendChild(document.createTextNode(Mt(y.options,mt)))),it=Zt.node.nextSibling}mt+=Zt.size}for(;it;)it=ut(it)}function ts(y){var b=y.gutters.offsetWidth;y.sizer.style.marginLeft=b+"px"}function rs(y,b){y.display.sizer.style.minHeight=b.docHeight+"px",y.display.heightForcer.style.top=b.docHeight+"px",y.display.gutters.style.height=b.docHeight+y.display.barHeight+Bi(y)+"px"}function Ns(y){var b=y.display,fe=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!y.options.fixedGutter))){for(var ue=Ka(b)-b.scroller.scrollLeft+y.doc.scrollLeft,Se=b.gutters.offsetWidth,ze=ue+"px",it=0;it<fe.length;it++)if(!fe[it].hidden){y.options.fixedGutter&&(fe[it].gutter&&(fe[it].gutter.style.left=ze),fe[it].gutterBackground&&(fe[it].gutterBackground.style.left=ze));var ut=fe[it].alignable;if(ut)for(var dt=0;dt<ut.length;dt++)ut[dt].style.left=ze}y.options.fixedGutter&&(b.gutters.style.left=ue+Se+"px")}}function Rs(y){if(!y.options.lineNumbers)return!1;var b=y.doc,fe=Mt(y.options,b.first+b.size-1),ue=y.display;if(fe.length!=ue.lineNumChars){var Se=ue.measure.appendChild(Ee("div",[Ee("div",fe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ze=Se.firstChild.offsetWidth,it=Se.offsetWidth-ze;return ue.lineGutter.style.width="",ue.lineNumInnerWidth=Math.max(ze,ue.lineGutter.offsetWidth-it)+1,ue.lineNumWidth=ue.lineNumInnerWidth+it,ue.lineNumChars=ue.lineNumInnerWidth?fe.length:-1,ue.lineGutter.style.width=ue.lineNumWidth+"px",ts(y.display),!0}return!1}function ns(y,b){for(var fe=[],ue=!1,Se=0;Se<y.length;Se++){var ze=y[Se],it=null;if(typeof ze!="string"&&(it=ze.style,ze=ze.className),ze=="CodeMirror-linenumbers")if(b)ue=!0;else continue;fe.push({className:ze,style:it})}return b&&!ue&&fe.push({className:"CodeMirror-linenumbers",style:null}),fe}function _s(y){var b=y.gutters,fe=y.gutterSpecs;De(b),y.lineGutter=null;for(var ue=0;ue<fe.length;++ue){var Se=fe[ue],ze=Se.className,it=Se.style,ut=b.appendChild(Ee("div",null,"CodeMirror-gutter "+ze));it&&(ut.style.cssText=it),ze=="CodeMirror-linenumbers"&&(y.lineGutter=ut,ut.style.width=(y.lineNumWidth||1)+"px")}b.style.display=fe.length?"":"none",ts(y)}function na(y){_s(y.display),Pi(y),Ns(y)}function iu(y,b,fe,ue){var Se=this;this.input=fe,Se.scrollbarFiller=Ee("div",null,"CodeMirror-scrollbar-filler"),Se.scrollbarFiller.setAttribute("cm-not-content","true"),Se.gutterFiller=Ee("div",null,"CodeMirror-gutter-filler"),Se.gutterFiller.setAttribute("cm-not-content","true"),Se.lineDiv=je("div",null,"CodeMirror-code"),Se.selectionDiv=Ee("div",null,null,"position: relative; z-index: 1"),Se.cursorDiv=Ee("div",null,"CodeMirror-cursors"),Se.measure=Ee("div",null,"CodeMirror-measure"),Se.lineMeasure=Ee("div",null,"CodeMirror-measure"),Se.lineSpace=je("div",[Se.measure,Se.lineMeasure,Se.selectionDiv,Se.cursorDiv,Se.lineDiv],null,"position: relative; outline: none");var ze=je("div",[Se.lineSpace],"CodeMirror-lines");Se.mover=Ee("div",[ze],null,"position: relative"),Se.sizer=Ee("div",[Se.mover],"CodeMirror-sizer"),Se.sizerWidth=null,Se.heightForcer=Ee("div",null,null,"position: absolute; height: "+nt+"px; width: 1px;"),Se.gutters=Ee("div",null,"CodeMirror-gutters"),Se.lineGutter=null,Se.scroller=Ee("div",[Se.sizer,Se.heightForcer,Se.gutters],"CodeMirror-scroll"),Se.scroller.setAttribute("tabIndex","-1"),Se.wrapper=Ee("div",[Se.scrollbarFiller,Se.gutterFiller,Se.scroller],"CodeMirror"),xe&&z<8&&(Se.gutters.style.zIndex=-1,Se.scroller.style.paddingRight=0),!E&&!(ge&&se)&&(Se.scroller.draggable=!0),y&&(y.appendChild?y.appendChild(Se.wrapper):y(Se.wrapper)),Se.viewFrom=Se.viewTo=b.first,Se.reportedViewFrom=Se.reportedViewTo=b.first,Se.view=[],Se.renderedView=null,Se.externalMeasured=null,Se.viewOffset=0,Se.lastWrapHeight=Se.lastWrapWidth=0,Se.updateLineNumbers=null,Se.nativeBarWidth=Se.barHeight=Se.barWidth=0,Se.scrollbarsClipped=!1,Se.lineNumWidth=Se.lineNumInnerWidth=Se.lineNumChars=null,Se.alignWidgets=!1,Se.cachedCharWidth=Se.cachedTextHeight=Se.cachedPaddingH=null,Se.maxLine=null,Se.maxLineLength=0,Se.maxLineChanged=!1,Se.wheelDX=Se.wheelDY=Se.wheelStartX=Se.wheelStartY=null,Se.shift=!1,Se.selForContextMenu=null,Se.activeTouch=null,Se.gutterSpecs=ns(ue.gutters,ue.lineNumbers),_s(Se),fe.init(Se)}var Pa=0,zi=null;xe?zi=-.53:ge?zi=15:ie?zi=-.7:le&&(zi=-1/3);function Bs(y){var b=y.wheelDeltaX,fe=y.wheelDeltaY;return b==null&&y.detail&&y.axis==y.HORIZONTAL_AXIS&&(b=y.detail),fe==null&&y.detail&&y.axis==y.VERTICAL_AXIS?fe=y.detail:fe==null&&(fe=y.wheelDelta),{x:b,y:fe}}function ou(y){var b=Bs(y);return b.x*=zi,b.y*=zi,b}function Ls(y,b){var fe=Bs(b),ue=fe.x,Se=fe.y,ze=y.display,it=ze.scroller,ut=it.scrollWidth>it.clientWidth,dt=it.scrollHeight>it.clientHeight;if(ue&&ut||Se&&dt){if(Se&&ce&&E){e:for(var mt=b.target,Ft=ze.view;mt!=it;mt=mt.parentNode)for(var Zt=0;Zt<Ft.length;Zt++)if(Ft[Zt].node==mt){y.display.currentWheelTarget=mt;break e}}if(ue&&!ge&&!ee&&zi!=null){Se&&dt&&qo(y,Math.max(0,it.scrollTop+Se*zi)),Eo(y,Math.max(0,it.scrollLeft+ue*zi)),(!Se||Se&&dt)&&Ct(b),ze.wheelStartX=null;return}if(Se&&zi!=null){var nr=Se*zi,rr=y.doc.scrollTop,Sr=rr+ze.wrapper.clientHeight;nr<0?rr=Math.max(0,rr+nr-50):Sr=Math.min(y.doc.height,Sr+nr+50),es(y,{top:rr,bottom:Sr})}Pa<20&&(ze.wheelStartX==null?(ze.wheelStartX=it.scrollLeft,ze.wheelStartY=it.scrollTop,ze.wheelDX=ue,ze.wheelDY=Se,setTimeout(function(){if(ze.wheelStartX!=null){var Mr=it.scrollLeft-ze.wheelStartX,zr=it.scrollTop-ze.wheelStartY,Xr=zr&&ze.wheelDY&&zr/ze.wheelDY||Mr&&ze.wheelDX&&Mr/ze.wheelDX;ze.wheelStartX=ze.wheelStartY=null,Xr&&(zi=(zi*Pa+Xr)/(Pa+1),++Pa)}},200)):(ze.wheelDX+=ue,ze.wheelDY+=Se))}}var Ui=function(y,b){this.ranges=y,this.primIndex=b};Ui.prototype.primary=function(){return this.ranges[this.primIndex]},Ui.prototype.equals=function(y){if(y==this)return!0;if(y.primIndex!=this.primIndex||y.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var fe=this.ranges[b],ue=y.ranges[b];if(!pt(fe.anchor,ue.anchor)||!pt(fe.head,ue.head))return!1}return!0},Ui.prototype.deepCopy=function(){for(var y=[],b=0;b<this.ranges.length;b++)y[b]=new Gn(Bt(this.ranges[b].anchor),Bt(this.ranges[b].head));return new Ui(y,this.primIndex)},Ui.prototype.somethingSelected=function(){for(var y=0;y<this.ranges.length;y++)if(!this.ranges[y].empty())return!0;return!1},Ui.prototype.contains=function(y,b){b||(b=y);for(var fe=0;fe<this.ranges.length;fe++){var ue=this.ranges[fe];if(Nt(b,ue.from())>=0&&Nt(y,ue.to())<=0)return fe}return-1};var Gn=function(y,b){this.anchor=y,this.head=b};Gn.prototype.from=function(){return Gt(this.anchor,this.head)},Gn.prototype.to=function(){return Wt(this.anchor,this.head)},Gn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qi(y,b,fe){var ue=y&&y.options.selectionsMayTouch,Se=b[fe];b.sort(function(nr,rr){return Nt(nr.from(),rr.from())}),fe=rt(b,Se);for(var ze=1;ze<b.length;ze++){var it=b[ze],ut=b[ze-1],dt=Nt(ut.to(),it.from());if(ue&&!it.empty()?dt>0:dt>=0){var mt=Gt(ut.from(),it.from()),Ft=Wt(ut.to(),it.to()),Zt=ut.empty()?it.from()==it.head:ut.from()==ut.head;ze<=fe&&--fe,b.splice(--ze,2,new Gn(Zt?Ft:mt,Zt?mt:Ft))}}return new Ui(b,fe)}function po(y,b){return new Ui([new Gn(y,b||y)],0)}function mo(y){return y.text?wt(y.from.line+y.text.length-1,at(y.text).length+(y.text.length==1?y.from.ch:0)):y.to}function Fs(y,b){if(Nt(y,b.from)<0)return y;if(Nt(y,b.to)<=0)return mo(b);var fe=y.line+b.text.length-(b.to.line-b.from.line)-1,ue=y.ch;return y.line==b.to.line&&(ue+=mo(b).ch-b.to.ch),wt(fe,ue)}function is(y,b){for(var fe=[],ue=0;ue<y.sel.ranges.length;ue++){var Se=y.sel.ranges[ue];fe.push(new Gn(Fs(Se.anchor,b),Fs(Se.head,b)))}return Qi(y.cm,fe,y.sel.primIndex)}function $s(y,b,fe){return y.line==b.line?wt(fe.line,y.ch-b.ch+fe.ch):wt(fe.line+(y.line-b.line),y.ch)}function au(y,b,fe){for(var ue=[],Se=wt(y.first,0),ze=Se,it=0;it<b.length;it++){var ut=b[it],dt=$s(ut.from,Se,ze),mt=$s(mo(ut),Se,ze);if(Se=ut.to,ze=mt,fe=="around"){var Ft=y.sel.ranges[it],Zt=Nt(Ft.head,Ft.anchor)<0;ue[it]=new Gn(Zt?mt:dt,Zt?dt:mt)}else ue[it]=new Gn(dt,dt)}return new Ui(ue,y.sel.primIndex)}function os(y){y.doc.mode=Cr(y.options,y.doc.modeOption),ia(y)}function ia(y){y.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),y.doc.modeFrontier=y.doc.highlightFrontier=y.doc.first,ra(y,100),y.state.modeGen++,y.curOp&&Pi(y)}function Ws(y,b){return b.from.ch==0&&b.to.ch==0&&at(b.text)==""&&(!y.cm||y.cm.options.wholeLineUpdateBefore)}function as(y,b,fe,ue){function Se(rn){return fe?fe[rn]:null}function ze(rn,Yr,an){Nn(rn,Yr,an,ue),Dn(rn,"change",rn,b)}function it(rn,Yr){for(var an=[],gn=rn;gn<Yr;++gn)an.push(new _n(mt[gn],Se(gn),ue));return an}var ut=b.from,dt=b.to,mt=b.text,Ft=er(y,ut.line),Zt=er(y,dt.line),nr=at(mt),rr=Se(mt.length-1),Sr=dt.line-ut.line;if(b.full)y.insert(0,it(0,mt.length)),y.remove(mt.length,y.size-mt.length);else if(Ws(y,b)){var Mr=it(0,mt.length-1);ze(Zt,Zt.text,rr),Sr&&y.remove(ut.line,Sr),Mr.length&&y.insert(ut.line,Mr)}else if(Ft==Zt)if(mt.length==1)ze(Ft,Ft.text.slice(0,ut.ch)+nr+Ft.text.slice(dt.ch),rr);else{var zr=it(1,mt.length-1);zr.push(new _n(nr+Ft.text.slice(dt.ch),rr,ue)),ze(Ft,Ft.text.slice(0,ut.ch)+mt[0],Se(0)),y.insert(ut.line+1,zr)}else if(mt.length==1)ze(Ft,Ft.text.slice(0,ut.ch)+mt[0]+Zt.text.slice(dt.ch),Se(0)),y.remove(ut.line+1,Sr);else{ze(Ft,Ft.text.slice(0,ut.ch)+mt[0],Se(0)),ze(Zt,nr+Zt.text.slice(dt.ch),rr);var Xr=it(1,mt.length-1);Sr>1&&y.remove(ut.line+1,Sr-1),y.insert(ut.line+1,Xr)}Dn(y,"change",y,b)}function vo(y,b,fe){function ue(Se,ze,it){if(Se.linked)for(var ut=0;ut<Se.linked.length;++ut){var dt=Se.linked[ut];if(dt.doc!=ze){var mt=it&&dt.sharedHist;fe&&!mt||(b(dt.doc,mt),ue(dt.doc,Se,mt))}}}ue(y,null,!0)}function zs(y,b){if(b.cm)throw new Error("This document is already in use.");y.doc=b,b.cm=y,Va(y),os(y),Us(y),y.options.lineWrapping||Tn(y),y.options.mode=b.modeOption,Pi(y)}function Us(y){(y.doc.direction=="rtl"?ve:_e)(y.display.lineDiv,"CodeMirror-rtl")}function su(y){$i(y,function(){Us(y),Pi(y)})}function Da(y){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=y||1}function ss(y,b){var fe={from:Bt(b.from),to:mo(b),text:or(y,b.from,b.to)};return Gs(y,fe,b.from.line,b.to.line+1),vo(y,function(ue){return Gs(ue,fe,b.from.line,b.to.line+1)},!0),fe}function Hs(y){for(;y.length;){var b=at(y);if(b.ranges)y.pop();else break}}function lu(y,b){if(b)return Hs(y.done),at(y.done);if(y.done.length&&!at(y.done).ranges)return at(y.done);if(y.done.length>1&&!y.done[y.done.length-2].ranges)return y.done.pop(),at(y.done)}function Zs(y,b,fe,ue){var Se=y.history;Se.undone.length=0;var ze=+new Date,it,ut;if((Se.lastOp==ue||Se.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&Se.lastModTime>ze-(y.cm?y.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(it=lu(Se,Se.lastOp==ue)))ut=at(it.changes),Nt(b.from,b.to)==0&&Nt(b.from,ut.to)==0?ut.to=mo(b):it.changes.push(ss(y,b));else{var dt=at(Se.done);for((!dt||!dt.ranges)&&ka(y.sel,Se.done),it={changes:[ss(y,b)],generation:Se.generation},Se.done.push(it);Se.done.length>Se.undoDepth;)Se.done.shift(),Se.done[0].ranges||Se.done.shift()}Se.done.push(fe),Se.generation=++Se.maxGeneration,Se.lastModTime=Se.lastSelTime=ze,Se.lastOp=Se.lastSelOp=ue,Se.lastOrigin=Se.lastSelOrigin=b.origin,ut||Et(y,"historyAdded")}function uu(y,b,fe,ue){var Se=b.charAt(0);return Se=="*"||Se=="+"&&fe.ranges.length==ue.ranges.length&&fe.somethingSelected()==ue.somethingSelected()&&new Date-y.history.lastSelTime<=(y.cm?y.cm.options.historyEventDelay:500)}function cu(y,b,fe,ue){var Se=y.history,ze=ue&&ue.origin;fe==Se.lastSelOp||ze&&Se.lastSelOrigin==ze&&(Se.lastModTime==Se.lastSelTime&&Se.lastOrigin==ze||uu(y,ze,at(Se.done),b))?Se.done[Se.done.length-1]=b:ka(b,Se.done),Se.lastSelTime=+new Date,Se.lastSelOrigin=ze,Se.lastSelOp=fe,ue&&ue.clearRedo!==!1&&Hs(Se.undone)}function ka(y,b){var fe=at(b);fe&&fe.ranges&&fe.equals(y)||b.push(y)}function Gs(y,b,fe,ue){var Se=b["spans_"+y.id],ze=0;y.iter(Math.max(y.first,fe),Math.min(y.first+y.size,ue),function(it){it.markedSpans&&((Se||(Se=b["spans_"+y.id]={}))[ze]=it.markedSpans),++ze})}function fu(y){if(!y)return null;for(var b,fe=0;fe<y.length;++fe)y[fe].marker.explicitlyCleared?b||(b=y.slice(0,fe)):b&&b.push(y[fe]);return b?b.length?b:null:y}function du(y,b){var fe=b["spans_"+y.id];if(!fe)return null;for(var ue=[],Se=0;Se<b.text.length;++Se)ue.push(fu(fe[Se]));return ue}function Ks(y,b){var fe=du(y,b),ue=mn(y,b);if(!fe)return ue;if(!ue)return fe;for(var Se=0;Se<fe.length;++Se){var ze=fe[Se],it=ue[Se];if(ze&&it)e:for(var ut=0;ut<it.length;++ut){for(var dt=it[ut],mt=0;mt<ze.length;++mt)if(ze[mt].marker==dt.marker)continue e;ze.push(dt)}else it&&(fe[Se]=it)}return fe}function _o(y,b,fe){for(var ue=[],Se=0;Se<y.length;++Se){var ze=y[Se];if(ze.ranges){ue.push(fe?Ui.prototype.deepCopy.call(ze):ze);continue}var it=ze.changes,ut=[];ue.push({changes:ut});for(var dt=0;dt<it.length;++dt){var mt=it[dt],Ft=void 0;if(ut.push({from:mt.from,to:mt.to,text:mt.text}),b)for(var Zt in mt)(Ft=Zt.match(/^spans_(\d+)$/))&&rt(b,Number(Ft[1]))>-1&&(at(ut)[Zt]=mt[Zt],delete mt[Zt])}}return ue}function ls(y,b,fe,ue){if(ue){var Se=y.anchor;if(fe){var ze=Nt(b,Se)<0;ze!=Nt(fe,Se)<0?(Se=b,b=fe):ze!=Nt(b,fe)<0&&(b=fe)}return new Gn(Se,b)}else return new Gn(fe||b,b)}function Ma(y,b,fe,ue,Se){Se==null&&(Se=y.cm&&(y.cm.display.shift||y.extend)),Si(y,new Ui([ls(y.sel.primary(),b,fe,Se)],0),ue)}function Vs(y,b,fe){for(var ue=[],Se=y.cm&&(y.cm.display.shift||y.extend),ze=0;ze<y.sel.ranges.length;ze++)ue[ze]=ls(y.sel.ranges[ze],b[ze],null,Se);var it=Qi(y.cm,ue,y.sel.primIndex);Si(y,it,fe)}function us(y,b,fe,ue){var Se=y.sel.ranges.slice(0);Se[b]=fe,Si(y,Qi(y.cm,Se,y.sel.primIndex),ue)}function Xs(y,b,fe,ue){Si(y,po(b,fe),ue)}function hu(y,b,fe){var ue={ranges:b.ranges,update:function(Se){this.ranges=[];for(var ze=0;ze<Se.length;ze++)this.ranges[ze]=new Gn(Rt(y,Se[ze].anchor),Rt(y,Se[ze].head))},origin:fe&&fe.origin};return Et(y,"beforeSelectionChange",y,ue),y.cm&&Et(y.cm,"beforeSelectionChange",y.cm,ue),ue.ranges!=b.ranges?Qi(y.cm,ue.ranges,ue.ranges.length-1):b}function Ys(y,b,fe){var ue=y.history.done,Se=at(ue);Se&&Se.ranges?(ue[ue.length-1]=b,Na(y,b,fe)):Si(y,b,fe)}function Si(y,b,fe){Na(y,b,fe),cu(y,y.sel,y.cm?y.cm.curOp.id:NaN,fe)}function Na(y,b,fe){(It(y,"beforeSelectionChange")||y.cm&&It(y.cm,"beforeSelectionChange"))&&(b=hu(y,b,fe));var ue=fe&&fe.bias||(Nt(b.primary().head,y.sel.primary().head)<0?-1:1);Js(y,el(y,b,ue,!0)),!(fe&&fe.scroll===!1)&&y.cm&&No(y.cm)}function Js(y,b){b.equals(y.sel)||(y.sel=b,y.cm&&(y.cm.curOp.updateInput=1,y.cm.curOp.selectionChanged=!0,At(y.cm)),Dn(y,"cursorActivity",y))}function Qs(y){Js(y,el(y,y.sel,null,!1))}function el(y,b,fe,ue){for(var Se,ze=0;ze<b.ranges.length;ze++){var it=b.ranges[ze],ut=b.ranges.length==y.sel.ranges.length&&y.sel.ranges[ze],dt=Ra(y,it.anchor,ut&&ut.anchor,fe,ue),mt=Ra(y,it.head,ut&&ut.head,fe,ue);(Se||dt!=it.anchor||mt!=it.head)&&(Se||(Se=b.ranges.slice(0,ze)),Se[ze]=new Gn(dt,mt))}return Se?Qi(y.cm,Se,b.primIndex):b}function Bo(y,b,fe,ue,Se){var ze=er(y,b.line);if(ze.markedSpans)for(var it=0;it<ze.markedSpans.length;++it){var ut=ze.markedSpans[it],dt=ut.marker,mt="selectLeft"in dt?!dt.selectLeft:dt.inclusiveLeft,Ft="selectRight"in dt?!dt.selectRight:dt.inclusiveRight;if((ut.from==null||(mt?ut.from<=b.ch:ut.from<b.ch))&&(ut.to==null||(Ft?ut.to>=b.ch:ut.to>b.ch))){if(Se&&(Et(dt,"beforeCursorEnter"),dt.explicitlyCleared))if(ze.markedSpans){--it;continue}else break;if(!dt.atomic)continue;if(fe){var Zt=dt.find(ue<0?1:-1),nr=void 0;if((ue<0?Ft:mt)&&(Zt=tl(y,Zt,-ue,Zt&&Zt.line==b.line?ze:null)),Zt&&Zt.line==b.line&&(nr=Nt(Zt,fe))&&(ue<0?nr<0:nr>0))return Bo(y,Zt,b,ue,Se)}var rr=dt.find(ue<0?-1:1);return(ue<0?mt:Ft)&&(rr=tl(y,rr,ue,rr.line==b.line?ze:null)),rr?Bo(y,rr,b,ue,Se):null}}return b}function Ra(y,b,fe,ue,Se){var ze=ue||1,it=Bo(y,b,fe,ze,Se)||!Se&&Bo(y,b,fe,ze,!0)||Bo(y,b,fe,-ze,Se)||!Se&&Bo(y,b,fe,-ze,!0);return it||(y.cantEdit=!0,wt(y.first,0))}function tl(y,b,fe,ue){return fe<0&&b.ch==0?b.line>y.first?Rt(y,wt(b.line-1)):null:fe>0&&b.ch==(ue||er(y,b.line)).text.length?b.line<y.first+y.size-1?wt(b.line+1,0):null:new wt(b.line,b.ch+fe)}function rl(y){y.setSelection(wt(y.firstLine(),0),wt(y.lastLine()),Ge)}function nl(y,b,fe){var ue={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return ue.canceled=!0}};return fe&&(ue.update=function(Se,ze,it,ut){Se&&(ue.from=Rt(y,Se)),ze&&(ue.to=Rt(y,ze)),it&&(ue.text=it),ut!==void 0&&(ue.origin=ut)}),Et(y,"beforeChange",y,ue),y.cm&&Et(y.cm,"beforeChange",y.cm,ue),ue.canceled?(y.cm&&(y.cm.curOp.updateInput=2),null):{from:ue.from,to:ue.to,text:ue.text,origin:ue.origin}}function Lo(y,b,fe){if(y.cm){if(!y.cm.curOp)return hi(y.cm,Lo)(y,b,fe);if(y.cm.state.suppressEdits)return}if(!((It(y,"beforeChange")||y.cm&&It(y.cm,"beforeChange"))&&(b=nl(y,b,!0),!b))){var ue=tn&&!fe&&Fn(y,b.from,b.to);if(ue)for(var Se=ue.length-1;Se>=0;--Se)il(y,{from:ue[Se].from,to:ue[Se].to,text:Se?[""]:b.text,origin:b.origin});else il(y,b)}}function il(y,b){if(!(b.text.length==1&&b.text[0]==""&&Nt(b.from,b.to)==0)){var fe=is(y,b);Zs(y,b,fe,y.cm?y.cm.curOp.id:NaN),oa(y,b,fe,mn(y,b));var ue=[];vo(y,function(Se,ze){!ze&&rt(ue,Se.history)==-1&&(ll(Se.history,b),ue.push(Se.history)),oa(Se,b,null,mn(Se,b))})}}function _a(y,b,fe){var ue=y.cm&&y.cm.state.suppressEdits;if(!(ue&&!fe)){for(var Se=y.history,ze,it=y.sel,ut=b=="undo"?Se.done:Se.undone,dt=b=="undo"?Se.undone:Se.done,mt=0;mt<ut.length&&(ze=ut[mt],!(fe?ze.ranges&&!ze.equals(y.sel):!ze.ranges));mt++);if(mt!=ut.length){for(Se.lastOrigin=Se.lastSelOrigin=null;;)if(ze=ut.pop(),ze.ranges){if(ka(ze,dt),fe&&!ze.equals(y.sel)){Si(y,ze,{clearRedo:!1});return}it=ze}else if(ue){ut.push(ze);return}else break;var Ft=[];ka(it,dt),dt.push({changes:Ft,generation:Se.generation}),Se.generation=ze.generation||++Se.maxGeneration;for(var Zt=It(y,"beforeChange")||y.cm&&It(y.cm,"beforeChange"),nr=function(Mr){var zr=ze.changes[Mr];if(zr.origin=b,Zt&&!nl(y,zr,!1))return ut.length=0,{};Ft.push(ss(y,zr));var Xr=Mr?is(y,zr):at(ut);oa(y,zr,Xr,Ks(y,zr)),!Mr&&y.cm&&y.cm.scrollIntoView({from:zr.from,to:mo(zr)});var rn=[];vo(y,function(Yr,an){!an&&rt(rn,Yr.history)==-1&&(ll(Yr.history,zr),rn.push(Yr.history)),oa(Yr,zr,null,Ks(Yr,zr))})},rr=ze.changes.length-1;rr>=0;--rr){var Sr=nr(rr);if(Sr)return Sr.v}}}}function ol(y,b){if(b!=0&&(y.first+=b,y.sel=new Ui(qe(y.sel.ranges,function(Se){return new Gn(wt(Se.anchor.line+b,Se.anchor.ch),wt(Se.head.line+b,Se.head.ch))}),y.sel.primIndex),y.cm)){Pi(y.cm,y.first,y.first-b,b);for(var fe=y.cm.display,ue=fe.viewFrom;ue<fe.viewTo;ue++)fo(y.cm,ue,"gutter")}}function oa(y,b,fe,ue){if(y.cm&&!y.cm.curOp)return hi(y.cm,oa)(y,b,fe,ue);if(b.to.line<y.first){ol(y,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>y.lastLine())){if(b.from.line<y.first){var Se=b.text.length-1-(y.first-b.from.line);ol(y,Se),b={from:wt(y.first,0),to:wt(b.to.line+Se,b.to.ch),text:[at(b.text)],origin:b.origin}}var ze=y.lastLine();b.to.line>ze&&(b={from:b.from,to:wt(ze,er(y,ze).text.length),text:[b.text[0]],origin:b.origin}),b.removed=or(y,b.from,b.to),fe||(fe=is(y,b)),y.cm?pu(y.cm,b,ue):as(y,b,ue),Na(y,fe,Ge),y.cantEdit&&Ra(y,wt(y.firstLine(),0))&&(y.cantEdit=!1)}}function pu(y,b,fe){var ue=y.doc,Se=y.display,ze=b.from,it=b.to,ut=!1,dt=ze.line;y.options.lineWrapping||(dt=Pt(pr(er(ue,ze.line))),ue.iter(dt,it.line+1,function(rr){if(rr==Se.maxLine)return ut=!0,!0})),ue.sel.contains(b.from,b.to)>-1&&At(y),as(ue,b,fe,ws(y)),y.options.lineWrapping||(ue.iter(dt,ze.line+b.text.length,function(rr){var Sr=Pn(rr);Sr>Se.maxLineLength&&(Se.maxLine=rr,Se.maxLineLength=Sr,Se.maxLineChanged=!0,ut=!1)}),ut&&(y.curOp.updateMaxLine=!0)),Dr(ue,ze.line),ra(y,400);var mt=b.text.length-(it.line-ze.line)-1;b.full?Pi(y):ze.line==it.line&&b.text.length==1&&!Ws(y.doc,b)?fo(y,ze.line,"text"):Pi(y,ze.line,it.line+1,mt);var Ft=It(y,"changes"),Zt=It(y,"change");if(Zt||Ft){var nr={from:ze,to:it,text:b.text,removed:b.removed,origin:b.origin};Zt&&Dn(y,"change",y,nr),Ft&&(y.curOp.changeObjs||(y.curOp.changeObjs=[])).push(nr)}y.display.selForContextMenu=null}function Fo(y,b,fe,ue,Se){var ze;ue||(ue=fe),Nt(ue,fe)<0&&(ze=[ue,fe],fe=ze[0],ue=ze[1]),typeof b=="string"&&(b=y.splitLines(b)),Lo(y,{from:fe,to:ue,text:b,origin:Se})}function al(y,b,fe,ue){fe<y.line?y.line+=ue:b<y.line&&(y.line=b,y.ch=0)}function sl(y,b,fe,ue){for(var Se=0;Se<y.length;++Se){var ze=y[Se],it=!0;if(ze.ranges){ze.copied||(ze=y[Se]=ze.deepCopy(),ze.copied=!0);for(var ut=0;ut<ze.ranges.length;ut++)al(ze.ranges[ut].anchor,b,fe,ue),al(ze.ranges[ut].head,b,fe,ue);continue}for(var dt=0;dt<ze.changes.length;++dt){var mt=ze.changes[dt];if(fe<mt.from.line)mt.from=wt(mt.from.line+ue,mt.from.ch),mt.to=wt(mt.to.line+ue,mt.to.ch);else if(b<=mt.to.line){it=!1;break}}it||(y.splice(0,Se+1),Se=0)}}function ll(y,b){var fe=b.from.line,ue=b.to.line,Se=b.text.length-(ue-fe)-1;sl(y.done,fe,ue,Se),sl(y.undone,fe,ue,Se)}function aa(y,b,fe,ue){var Se=b,ze=b;return typeof b=="number"?ze=er(y,zt(y,b)):Se=Pt(b),Se==null?null:(ue(ze,Se)&&y.cm&&fo(y.cm,Se,fe),ze)}function sa(y){this.lines=y,this.parent=null;for(var b=0,fe=0;fe<y.length;++fe)y[fe].parent=this,b+=y[fe].height;this.height=b}sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(y,b){for(var fe=y,ue=y+b;fe<ue;++fe){var Se=this.lines[fe];this.height-=Se.height,Bn(Se),Dn(Se,"delete")}this.lines.splice(y,b)},collapse:function(y){y.push.apply(y,this.lines)},insertInner:function(y,b,fe){this.height+=fe,this.lines=this.lines.slice(0,y).concat(b).concat(this.lines.slice(y));for(var ue=0;ue<b.length;++ue)b[ue].parent=this},iterN:function(y,b,fe){for(var ue=y+b;y<ue;++y)if(fe(this.lines[y]))return!0}};function la(y){this.children=y;for(var b=0,fe=0,ue=0;ue<y.length;++ue){var Se=y[ue];b+=Se.chunkSize(),fe+=Se.height,Se.parent=this}this.size=b,this.height=fe,this.parent=null}la.prototype={chunkSize:function(){return this.size},removeInner:function(y,b){this.size-=b;for(var fe=0;fe<this.children.length;++fe){var ue=this.children[fe],Se=ue.chunkSize();if(y<Se){var ze=Math.min(b,Se-y),it=ue.height;if(ue.removeInner(y,ze),this.height-=it-ue.height,Se==ze&&(this.children.splice(fe--,1),ue.parent=null),(b-=ze)==0)break;y=0}else y-=Se}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof sa))){var ut=[];this.collapse(ut),this.children=[new sa(ut)],this.children[0].parent=this}},collapse:function(y){for(var b=0;b<this.children.length;++b)this.children[b].collapse(y)},insertInner:function(y,b,fe){this.size+=b.length,this.height+=fe;for(var ue=0;ue<this.children.length;++ue){var Se=this.children[ue],ze=Se.chunkSize();if(y<=ze){if(Se.insertInner(y,b,fe),Se.lines&&Se.lines.length>50){for(var it=Se.lines.length%25+25,ut=it;ut<Se.lines.length;){var dt=new sa(Se.lines.slice(ut,ut+=25));Se.height-=dt.height,this.children.splice(++ue,0,dt),dt.parent=this}Se.lines=Se.lines.slice(0,it),this.maybeSpill()}break}y-=ze}},maybeSpill:function(){if(!(this.children.length<=10)){var y=this;do{var b=y.children.splice(y.children.length-5,5),fe=new la(b);if(y.parent){y.size-=fe.size,y.height-=fe.height;var Se=rt(y.parent.children,y);y.parent.children.splice(Se+1,0,fe)}else{var ue=new la(y.children);ue.parent=y,y.children=[ue,fe],y=ue}fe.parent=y.parent}while(y.children.length>10);y.parent.maybeSpill()}},iterN:function(y,b,fe){for(var ue=0;ue<this.children.length;++ue){var Se=this.children[ue],ze=Se.chunkSize();if(y<ze){var it=Math.min(b,ze-y);if(Se.iterN(y,it,fe))return!0;if((b-=it)==0)break;y=0}else y-=ze}}};var ua=function(y,b,fe){if(fe)for(var ue in fe)fe.hasOwnProperty(ue)&&(this[ue]=fe[ue]);this.doc=y,this.node=b};ua.prototype.clear=function(){var y=this.doc.cm,b=this.line.widgets,fe=this.line,ue=Pt(fe);if(!(ue==null||!b)){for(var Se=0;Se<b.length;++Se)b[Se]==this&&b.splice(Se--,1);b.length||(fe.widgets=null);var ze=Oi(this);xr(fe,Math.max(0,fe.height-ze)),y&&($i(y,function(){ul(y,fe,-ze),fo(y,ue,"widget")}),Dn(y,"lineWidgetCleared",y,this,ue))}},ua.prototype.changed=function(){var y=this,b=this.height,fe=this.doc.cm,ue=this.line;this.height=null;var Se=Oi(this)-b;Se&&(kr(this.doc,ue)||xr(ue,ue.height+Se),fe&&$i(fe,function(){fe.curOp.forceUpdate=!0,ul(fe,ue,Se),Dn(fe,"lineWidgetChanged",fe,y,Pt(ue))}))},ht(ua);function ul(y,b,fe){cn(b)<(y.curOp&&y.curOp.scrollTop||y.doc.scrollTop)&&Qa(y,fe)}function mu(y,b,fe,ue){var Se=new ua(y,fe,ue),ze=y.cm;return ze&&Se.noHScroll&&(ze.display.alignWidgets=!0),aa(y,b,"widget",function(it){var ut=it.widgets||(it.widgets=[]);if(Se.insertAt==null?ut.push(Se):ut.splice(Math.min(ut.length-1,Math.max(0,Se.insertAt)),0,Se),Se.line=it,ze&&!kr(y,it)){var dt=cn(it)<y.scrollTop;xr(it,it.height+Oi(Se)),dt&&Qa(ze,Se.height),ze.curOp.forceUpdate=!0}return!0}),ze&&Dn(ze,"lineWidgetAdded",ze,Se,typeof b=="number"?b:Pt(b)),Se}var cl=0,go=function(y,b){this.lines=[],this.type=b,this.doc=y,this.id=++cl};go.prototype.clear=function(){if(!this.explicitlyCleared){var y=this.doc.cm,b=y&&!y.curOp;if(b&&To(y),It(this,"clear")){var fe=this.find();fe&&Dn(this,"clear",fe.from,fe.to)}for(var ue=null,Se=null,ze=0;ze<this.lines.length;++ze){var it=this.lines[ze],ut=un(it.markedSpans,this);y&&!this.collapsed?fo(y,Pt(it),"text"):y&&(ut.to!=null&&(Se=Pt(it)),ut.from!=null&&(ue=Pt(it))),it.markedSpans=yn(it.markedSpans,ut),ut.from==null&&this.collapsed&&!kr(this.doc,it)&&y&&xr(it,Fi(y.display))}if(y&&this.collapsed&&!y.options.lineWrapping)for(var dt=0;dt<this.lines.length;++dt){var mt=pr(this.lines[dt]),Ft=Pn(mt);Ft>y.display.maxLineLength&&(y.display.maxLine=mt,y.display.maxLineLength=Ft,y.display.maxLineChanged=!0)}ue!=null&&y&&this.collapsed&&Pi(y,ue,Se+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,y&&Qs(y.doc)),y&&Dn(y,"markerCleared",y,this,ue,Se),b&&Ao(y),this.parent&&this.parent.clear()}},go.prototype.find=function(y,b){y==null&&this.type=="bookmark"&&(y=1);for(var fe,ue,Se=0;Se<this.lines.length;++Se){var ze=this.lines[Se],it=un(ze.markedSpans,this);if(it.from!=null&&(fe=wt(b?ze:Pt(ze),it.from),y==-1))return fe;if(it.to!=null&&(ue=wt(b?ze:Pt(ze),it.to),y==1))return ue}return fe&&{from:fe,to:ue}},go.prototype.changed=function(){var y=this,b=this.find(-1,!0),fe=this,ue=this.doc.cm;!b||!ue||$i(ue,function(){var Se=b.line,ze=Pt(b.line),it=ro(ue,ze);if(it&&(Ko(it),ue.curOp.selectionChanged=ue.curOp.forceUpdate=!0),ue.curOp.updateMaxLine=!0,!kr(fe.doc,Se)&&fe.height!=null){var ut=fe.height;fe.height=null;var dt=Oi(fe)-ut;dt&&xr(Se,Se.height+dt)}Dn(ue,"markerChanged",ue,y)})},go.prototype.attachLine=function(y){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||rt(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(y)},go.prototype.detachLine=function(y){if(this.lines.splice(rt(this.lines,y),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},ht(go);function $o(y,b,fe,ue,Se){if(ue&&ue.shared)return vu(y,b,fe,ue,Se);if(y.cm&&!y.cm.curOp)return hi(y.cm,$o)(y,b,fe,ue,Se);var ze=new go(y,Se),it=Nt(b,fe);if(ue&&ot(ue,ze,!1),it>0||it==0&&ze.clearWhenEmpty!==!1)return ze;if(ze.replacedWith&&(ze.collapsed=!0,ze.widgetNode=je("span",[ze.replacedWith],"CodeMirror-widget"),ue.handleMouseEvents||ze.widgetNode.setAttribute("cm-ignore-events","true"),ue.insertLeft&&(ze.widgetNode.insertLeft=!0)),ze.collapsed){if(Er(y,b.line,b,fe,ze)||b.line!=fe.line&&Er(y,fe.line,b,fe,ze))throw new Error("Inserting collapsed marker partially overlapping an existing one");pn()}ze.addToHistory&&Zs(y,{from:b,to:fe,origin:"markText"},y.sel,NaN);var ut=b.line,dt=y.cm,mt;if(y.iter(ut,fe.line+1,function(Zt){dt&&ze.collapsed&&!dt.options.lineWrapping&&pr(Zt)==dt.display.maxLine&&(mt=!0),ze.collapsed&&ut!=b.line&&xr(Zt,0),sn(Zt,new ln(ze,ut==b.line?b.ch:null,ut==fe.line?fe.ch:null)),++ut}),ze.collapsed&&y.iter(b.line,fe.line+1,function(Zt){kr(y,Zt)&&xr(Zt,0)}),ze.clearOnEnter&&Ot(ze,"beforeCursorEnter",function(){return ze.clear()}),ze.readOnly&&(fn(),(y.history.done.length||y.history.undone.length)&&y.clearHistory()),ze.collapsed&&(ze.id=++cl,ze.atomic=!0),dt){if(mt&&(dt.curOp.updateMaxLine=!0),ze.collapsed)Pi(dt,b.line,fe.line+1);else if(ze.className||ze.startStyle||ze.endStyle||ze.css||ze.attributes||ze.title)for(var Ft=b.line;Ft<=fe.line;Ft++)fo(dt,Ft,"text");ze.atomic&&Qs(dt.doc),Dn(dt,"markerAdded",dt,ze)}return ze}var ca=function(y,b){this.markers=y,this.primary=b;for(var fe=0;fe<y.length;++fe)y[fe].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var y=0;y<this.markers.length;++y)this.markers[y].clear();Dn(this,"clear")}},ca.prototype.find=function(y,b){return this.primary.find(y,b)},ht(ca);function vu(y,b,fe,ue,Se){ue=ot(ue),ue.shared=!1;var ze=[$o(y,b,fe,ue,Se)],it=ze[0],ut=ue.widgetNode;return vo(y,function(dt){ut&&(ue.widgetNode=ut.cloneNode(!0)),ze.push($o(dt,Rt(dt,b),Rt(dt,fe),ue,Se));for(var mt=0;mt<dt.linked.length;++mt)if(dt.linked[mt].isParent)return;it=at(ze)}),new ca(ze,it)}function fl(y){return y.findMarks(wt(y.first,0),y.clipPos(wt(y.lastLine())),function(b){return b.parent})}function gu(y,b){for(var fe=0;fe<b.length;fe++){var ue=b[fe],Se=ue.find(),ze=y.clipPos(Se.from),it=y.clipPos(Se.to);if(Nt(ze,it)){var ut=$o(y,ze,it,ue.primary,ue.primary.type);ue.markers.push(ut),ut.parent=ue}}}function yu(y){for(var b=function(ue){var Se=y[ue],ze=[Se.primary.doc];vo(Se.primary.doc,function(dt){return ze.push(dt)});for(var it=0;it<Se.markers.length;it++){var ut=Se.markers[it];rt(ze,ut.doc)==-1&&(ut.parent=null,Se.markers.splice(it--,1))}},fe=0;fe<y.length;fe++)b(fe)}var bu=0,Di=function(y,b,fe,ue,Se){if(!(this instanceof Di))return new Di(y,b,fe,ue,Se);fe==null&&(fe=0),la.call(this,[new sa([new _n("",null)])]),this.first=fe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=fe;var ze=wt(fe,0);this.sel=po(ze),this.history=new Da(null),this.id=++bu,this.modeOption=b,this.lineSep=ue,this.direction=Se=="rtl"?"rtl":"ltr",this.extend=!1,typeof y=="string"&&(y=this.splitLines(y)),as(this,{from:ze,to:ze,text:y}),Si(this,po(ze),Ge)};Di.prototype=te(la.prototype,{constructor:Di,iter:function(y,b,fe){fe?this.iterN(y-this.first,b-y,fe):this.iterN(this.first,this.first+this.size,y)},insert:function(y,b){for(var fe=0,ue=0;ue<b.length;++ue)fe+=b[ue].height;this.insertInner(y-this.first,b,fe)},remove:function(y,b){this.removeInner(y-this.first,b)},getValue:function(y){var b=Ir(this,this.first,this.first+this.size);return y===!1?b:b.join(y||this.lineSeparator())},setValue:pi(function(y){var b=wt(this.first,0),fe=this.first+this.size-1;Lo(this,{from:b,to:wt(fe,er(this,fe).text.length),text:this.splitLines(y),origin:"setValue",full:!0},!0),this.cm&&Qo(this.cm,0,0),Si(this,po(b),Ge)}),replaceRange:function(y,b,fe,ue){b=Rt(this,b),fe=fe?Rt(this,fe):b,Fo(this,y,b,fe,ue)},getRange:function(y,b,fe){var ue=or(this,Rt(this,y),Rt(this,b));return fe===!1?ue:ue.join(fe||this.lineSeparator())},getLine:function(y){var b=this.getLineHandle(y);return b&&b.text},getLineHandle:function(y){if(bt(this,y))return er(this,y)},getLineNumber:function(y){return Pt(y)},getLineHandleVisualStart:function(y){return typeof y=="number"&&(y=er(this,y)),pr(y)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(y){return Rt(this,y)},getCursor:function(y){var b=this.sel.primary(),fe;return y==null||y=="head"?fe=b.head:y=="anchor"?fe=b.anchor:y=="end"||y=="to"||y===!1?fe=b.to():fe=b.from(),fe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:pi(function(y,b,fe){Xs(this,Rt(this,typeof y=="number"?wt(y,b||0):y),null,fe)}),setSelection:pi(function(y,b,fe){Xs(this,Rt(this,y),Rt(this,b||y),fe)}),extendSelection:pi(function(y,b,fe){Ma(this,Rt(this,y),b&&Rt(this,b),fe)}),extendSelections:pi(function(y,b){Vs(this,Ut(this,y),b)}),extendSelectionsBy:pi(function(y,b){var fe=qe(this.sel.ranges,y);Vs(this,Ut(this,fe),b)}),setSelections:pi(function(y,b,fe){if(y.length){for(var ue=[],Se=0;Se<y.length;Se++)ue[Se]=new Gn(Rt(this,y[Se].anchor),Rt(this,y[Se].head));b==null&&(b=Math.min(y.length-1,this.sel.primIndex)),Si(this,Qi(this.cm,ue,b),fe)}}),addSelection:pi(function(y,b,fe){var ue=this.sel.ranges.slice(0);ue.push(new Gn(Rt(this,y),Rt(this,b||y))),Si(this,Qi(this.cm,ue,ue.length-1),fe)}),getSelection:function(y){for(var b=this.sel.ranges,fe,ue=0;ue<b.length;ue++){var Se=or(this,b[ue].from(),b[ue].to());fe=fe?fe.concat(Se):Se}return y===!1?fe:fe.join(y||this.lineSeparator())},getSelections:function(y){for(var b=[],fe=this.sel.ranges,ue=0;ue<fe.length;ue++){var Se=or(this,fe[ue].from(),fe[ue].to());y!==!1&&(Se=Se.join(y||this.lineSeparator())),b[ue]=Se}return b},replaceSelection:function(y,b,fe){for(var ue=[],Se=0;Se<this.sel.ranges.length;Se++)ue[Se]=y;this.replaceSelections(ue,b,fe||"+input")},replaceSelections:pi(function(y,b,fe){for(var ue=[],Se=this.sel,ze=0;ze<Se.ranges.length;ze++){var it=Se.ranges[ze];ue[ze]={from:it.from(),to:it.to(),text:this.splitLines(y[ze]),origin:fe}}for(var ut=b&&b!="end"&&au(this,ue,b),dt=ue.length-1;dt>=0;dt--)Lo(this,ue[dt]);ut?Ys(this,ut):this.cm&&No(this.cm)}),undo:pi(function(){_a(this,"undo")}),redo:pi(function(){_a(this,"redo")}),undoSelection:pi(function(){_a(this,"undo",!0)}),redoSelection:pi(function(){_a(this,"redo",!0)}),setExtending:function(y){this.extend=y},getExtending:function(){return this.extend},historySize:function(){for(var y=this.history,b=0,fe=0,ue=0;ue<y.done.length;ue++)y.done[ue].ranges||++b;for(var Se=0;Se<y.undone.length;Se++)y.undone[Se].ranges||++fe;return{undo:b,redo:fe}},clearHistory:function(){var y=this;this.history=new Da(this.history.maxGeneration),vo(this,function(b){return b.history=y.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(y){return y&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(y){return this.history.generation==(y||this.cleanGeneration)},getHistory:function(){return{done:_o(this.history.done),undone:_o(this.history.undone)}},setHistory:function(y){var b=this.history=new Da(this.history.maxGeneration);b.done=_o(y.done.slice(0),null,!0),b.undone=_o(y.undone.slice(0),null,!0)},setGutterMarker:pi(function(y,b,fe){return aa(this,y,"gutter",function(ue){var Se=ue.gutterMarkers||(ue.gutterMarkers={});return Se[b]=fe,!fe&&we(Se)&&(ue.gutterMarkers=null),!0})}),clearGutter:pi(function(y){var b=this;this.iter(function(fe){fe.gutterMarkers&&fe.gutterMarkers[y]&&aa(b,fe,"gutter",function(){return fe.gutterMarkers[y]=null,we(fe.gutterMarkers)&&(fe.gutterMarkers=null),!0})})}),lineInfo:function(y){var b;if(typeof y=="number"){if(!bt(this,y)||(b=y,y=er(this,y),!y))return null}else if(b=Pt(y),b==null)return null;return{line:b,handle:y,text:y.text,gutterMarkers:y.gutterMarkers,textClass:y.textClass,bgClass:y.bgClass,wrapClass:y.wrapClass,widgets:y.widgets}},addLineClass:pi(function(y,b,fe){return aa(this,y,b=="gutter"?"gutter":"class",function(ue){var Se=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!ue[Se])ue[Se]=fe;else{if(Me(fe).test(ue[Se]))return!1;ue[Se]+=" "+fe}return!0})}),removeLineClass:pi(function(y,b,fe){return aa(this,y,b=="gutter"?"gutter":"class",function(ue){var Se=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",ze=ue[Se];if(ze)if(fe==null)ue[Se]=null;else{var it=ze.match(Me(fe));if(!it)return!1;var ut=it.index+it[0].length;ue[Se]=ze.slice(0,it.index)+(!it.index||ut==ze.length?"":" ")+ze.slice(ut)||null}else return!1;return!0})}),addLineWidget:pi(function(y,b,fe){return mu(this,y,b,fe)}),removeLineWidget:function(y){y.clear()},markText:function(y,b,fe){return $o(this,Rt(this,y),Rt(this,b),fe,fe&&fe.type||"range")},setBookmark:function(y,b){var fe={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return y=Rt(this,y),$o(this,y,y,fe,"bookmark")},findMarksAt:function(y){y=Rt(this,y);var b=[],fe=er(this,y.line).markedSpans;if(fe)for(var ue=0;ue<fe.length;++ue){var Se=fe[ue];(Se.from==null||Se.from<=y.ch)&&(Se.to==null||Se.to>=y.ch)&&b.push(Se.marker.parent||Se.marker)}return b},findMarks:function(y,b,fe){y=Rt(this,y),b=Rt(this,b);var ue=[],Se=y.line;return this.iter(y.line,b.line+1,function(ze){var it=ze.markedSpans;if(it)for(var ut=0;ut<it.length;ut++){var dt=it[ut];!(dt.to!=null&&Se==y.line&&y.ch>=dt.to||dt.from==null&&Se!=y.line||dt.from!=null&&Se==b.line&&dt.from>=b.ch)&&(!fe||fe(dt.marker))&&ue.push(dt.marker.parent||dt.marker)}++Se}),ue},getAllMarks:function(){var y=[];return this.iter(function(b){var fe=b.markedSpans;if(fe)for(var ue=0;ue<fe.length;++ue)fe[ue].from!=null&&y.push(fe[ue].marker)}),y},posFromIndex:function(y){var b,fe=this.first,ue=this.lineSeparator().length;return this.iter(function(Se){var ze=Se.text.length+ue;if(ze>y)return b=y,!0;y-=ze,++fe}),Rt(this,wt(fe,b))},indexFromPos:function(y){y=Rt(this,y);var b=y.ch;if(y.line<this.first||y.ch<0)return 0;var fe=this.lineSeparator().length;return this.iter(this.first,y.line,function(ue){b+=ue.text.length+fe}),b},copy:function(y){var b=new Di(Ir(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,y&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(y){y||(y={});var b=this.first,fe=this.first+this.size;y.from!=null&&y.from>b&&(b=y.from),y.to!=null&&y.to<fe&&(fe=y.to);var ue=new Di(Ir(this,b,fe),y.mode||this.modeOption,b,this.lineSep,this.direction);return y.sharedHist&&(ue.history=this.history),(this.linked||(this.linked=[])).push({doc:ue,sharedHist:y.sharedHist}),ue.linked=[{doc:this,isParent:!0,sharedHist:y.sharedHist}],gu(ue,fl(this)),ue},unlinkDoc:function(y){if(y instanceof Jn&&(y=y.doc),this.linked)for(var b=0;b<this.linked.length;++b){var fe=this.linked[b];if(fe.doc==y){this.linked.splice(b,1),y.unlinkDoc(this),yu(fl(this));break}}if(y.history==this.history){var ue=[y.id];vo(y,function(Se){return ue.push(Se.id)},!0),y.history=new Da(null),y.history.done=_o(this.history.done,ue),y.history.undone=_o(this.history.undone,ue)}},iterLinkedDocs:function(y){vo(this,y)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(y){return this.lineSep?y.split(this.lineSep):fr(y)},lineSeparator:function(){return this.lineSep||`
`},setDirection:pi(function(y){y!="rtl"&&(y="ltr"),y!=this.direction&&(this.direction=y,this.iter(function(b){return b.order=null}),this.cm&&su(this.cm))})}),Di.prototype.eachLine=Di.prototype.iter;var dl=0;function xu(y){var b=this;if(hl(b),!(xt(b,y)||gi(b.display,y))){Ct(y),xe&&(dl=+new Date);var fe=So(b,y,!0),ue=y.dataTransfer.files;if(!(!fe||b.isReadOnly()))if(ue&&ue.length&&window.FileReader&&window.File)for(var Se=ue.length,ze=Array(Se),it=0,ut=function(){++it==Se&&hi(b,function(){fe=Rt(b.doc,fe);var rr={from:fe,to:fe,text:b.doc.splitLines(ze.filter(function(Sr){return Sr!=null}).join(b.doc.lineSeparator())),origin:"paste"};Lo(b.doc,rr),Ys(b.doc,po(Rt(b.doc,fe),Rt(b.doc,mo(rr))))})()},dt=function(rr,Sr){if(b.options.allowDropFileTypes&&rt(b.options.allowDropFileTypes,rr.type)==-1){ut();return}var Mr=new FileReader;Mr.onerror=function(){return ut()},Mr.onload=function(){var zr=Mr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(zr)){ut();return}ze[Sr]=zr,ut()},Mr.readAsText(rr)},mt=0;mt<ue.length;mt++)dt(ue[mt],mt);else{if(b.state.draggingText&&b.doc.sel.contains(fe)>-1){b.state.draggingText(y),setTimeout(function(){return b.display.input.focus()},20);return}try{var Ft=y.dataTransfer.getData("Text");if(Ft){var Zt;if(b.state.draggingText&&!b.state.draggingText.copy&&(Zt=b.listSelections()),Na(b.doc,po(fe,fe)),Zt)for(var nr=0;nr<Zt.length;++nr)Fo(b.doc,"",Zt[nr].anchor,Zt[nr].head,"drag");b.replaceSelection(Ft,"around","paste"),b.display.input.focus()}}catch(rr){}}}}function wu(y,b){if(xe&&(!y.state.draggingText||+new Date-dl<100)){vt(b);return}if(!(xt(y,b)||gi(y.display,b))&&(b.dataTransfer.setData("Text",y.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!le)){var fe=Ee("img",null,null,"position: fixed; left: 0; top: 0;");fe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(fe.width=fe.height=1,y.display.wrapper.appendChild(fe),fe._top=fe.offsetTop),b.dataTransfer.setDragImage(fe,0,0),ee&&fe.parentNode.removeChild(fe)}}function Su(y,b){var fe=So(y,b);if(fe){var ue=document.createDocumentFragment();Es(y,fe,ue),y.display.dragCursor||(y.display.dragCursor=Ee("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),y.display.lineSpace.insertBefore(y.display.dragCursor,y.display.cursorDiv)),Ce(y.display.dragCursor,ue)}}function hl(y){y.display.dragCursor&&(y.display.lineSpace.removeChild(y.display.dragCursor),y.display.dragCursor=null)}function pl(y){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),fe=[],ue=0;ue<b.length;ue++){var Se=b[ue].CodeMirror;Se&&fe.push(Se)}fe.length&&fe[0].operation(function(){for(var ze=0;ze<fe.length;ze++)y(fe[ze])})}}var ml=!1;function Cu(){ml||(Eu(),ml=!0)}function Eu(){var y;Ot(window,"resize",function(){y==null&&(y=setTimeout(function(){y=null,pl(Ou)},100))}),Ot(window,"blur",function(){return pl(Mo)})}function Ou(y){var b=y.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,y.setSize()}for(var yo={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"},fa=0;fa<10;fa++)yo[fa+48]=yo[fa+96]=String(fa);for(var Ba=65;Ba<=90;Ba++)yo[Ba]=String.fromCharCode(Ba);for(var da=1;da<=12;da++)yo[da+111]=yo[da+63235]="F"+da;var ao={};ao.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"},ao.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"},ao.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"},ao.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"]},ao.default=ce?ao.macDefault:ao.pcDefault;function Tu(y){var b=y.split(/-(?!$)/);y=b[b.length-1];for(var fe,ue,Se,ze,it=0;it<b.length-1;it++){var ut=b[it];if(/^(cmd|meta|m)$/i.test(ut))ze=!0;else if(/^a(lt)?$/i.test(ut))fe=!0;else if(/^(c|ctrl|control)$/i.test(ut))ue=!0;else if(/^s(hift)?$/i.test(ut))Se=!0;else throw new Error("Unrecognized modifier name: "+ut)}return fe&&(y="Alt-"+y),ue&&(y="Ctrl-"+y),ze&&(y="Cmd-"+y),Se&&(y="Shift-"+y),y}function Au(y){var b={};for(var fe in y)if(y.hasOwnProperty(fe)){var ue=y[fe];if(/^(name|fallthrough|(de|at)tach)$/.test(fe))continue;if(ue=="..."){delete y[fe];continue}for(var Se=qe(fe.split(" "),Tu),ze=0;ze<Se.length;ze++){var it=void 0,ut=void 0;ze==Se.length-1?(ut=Se.join(" "),it=ue):(ut=Se.slice(0,ze+1).join(" "),it="...");var dt=b[ut];if(!dt)b[ut]=it;else if(dt!=it)throw new Error("Inconsistent bindings for "+ut)}delete y[fe]}for(var mt in b)y[mt]=b[mt];return y}function Wo(y,b,fe,ue){b=La(b);var Se=b.call?b.call(y,ue):b[y];if(Se===!1)return"nothing";if(Se==="...")return"multi";if(Se!=null&&fe(Se))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return Wo(y,b.fallthrough,fe,ue);for(var ze=0;ze<b.fallthrough.length;ze++){var it=Wo(y,b.fallthrough[ze],fe,ue);if(it)return it}}}function vl(y){var b=typeof y=="string"?y:yo[y.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function gl(y,b,fe){var ue=y;return b.altKey&&ue!="Alt"&&(y="Alt-"+y),(be?b.metaKey:b.ctrlKey)&&ue!="Ctrl"&&(y="Ctrl-"+y),(be?b.ctrlKey:b.metaKey)&&ue!="Mod"&&(y="Cmd-"+y),!fe&&b.shiftKey&&ue!="Shift"&&(y="Shift-"+y),y}function yl(y,b){if(ee&&y.keyCode==34&&y.char)return!1;var fe=yo[y.keyCode];return fe==null||y.altGraphKey?!1:(y.keyCode==3&&y.code&&(fe=y.code),gl(fe,y,b))}function La(y){return typeof y=="string"?ao[y]:y}function zo(y,b){for(var fe=y.doc.sel.ranges,ue=[],Se=0;Se<fe.length;Se++){for(var ze=b(fe[Se]);ue.length&&Nt(ze.from,at(ue).to)<=0;){var it=ue.pop();if(Nt(it.from,ze.from)<0){ze.from=it.from;break}}ue.push(ze)}$i(y,function(){for(var ut=ue.length-1;ut>=0;ut--)Fo(y.doc,"",ue[ut].from,ue[ut].to,"+delete");No(y)})}function cs(y,b,fe){var ue=$e(y.text,b+fe,fe);return ue<0||ue>y.text.length?null:ue}function fs(y,b,fe){var ue=cs(y,b.ch,fe);return ue==null?null:new wt(b.line,ue,fe<0?"after":"before")}function ds(y,b,fe,ue,Se){if(y){b.doc.direction=="rtl"&&(Se=-Se);var ze=Tt(fe,b.doc.direction);if(ze){var it=Se<0?at(ze):ze[0],ut=Se<0==(it.level==1),dt=ut?"after":"before",mt;if(it.level>0||b.doc.direction=="rtl"){var Ft=uo(b,fe);mt=Se<0?fe.text.length-1:0;var Zt=Zi(b,Ft,mt).top;mt=Ze(function(nr){return Zi(b,Ft,nr).top==Zt},Se<0==(it.level==1)?it.from:it.to-1,mt),dt=="before"&&(mt=cs(fe,mt,1))}else mt=Se<0?it.to:it.from;return new wt(ue,mt,dt)}}return new wt(ue,Se<0?fe.text.length:0,Se<0?"before":"after")}function Iu(y,b,fe,ue){var Se=Tt(b,y.doc.direction);if(!Se)return fs(b,fe,ue);fe.ch>=b.text.length?(fe.ch=b.text.length,fe.sticky="before"):fe.ch<=0&&(fe.ch=0,fe.sticky="after");var ze=lt(Se,fe.ch,fe.sticky),it=Se[ze];if(y.doc.direction=="ltr"&&it.level%2==0&&(ue>0?it.to>fe.ch:it.from<fe.ch))return fs(b,fe,ue);var ut=function(Xr,rn){return cs(b,Xr instanceof wt?Xr.ch:Xr,rn)},dt,mt=function(Xr){return y.options.lineWrapping?(dt=dt||uo(y,b),ii(y,b,dt,Xr)):{begin:0,end:b.text.length}},Ft=mt(fe.sticky=="before"?ut(fe,-1):fe.ch);if(y.doc.direction=="rtl"||it.level==1){var Zt=it.level==1==ue<0,nr=ut(fe,Zt?1:-1);if(nr!=null&&(Zt?nr<=it.to&&nr<=Ft.end:nr>=it.from&&nr>=Ft.begin)){var rr=Zt?"before":"after";return new wt(fe.line,nr,rr)}}var Sr=function(Xr,rn,Yr){for(var an=function(Yn,mi){return mi?new wt(fe.line,ut(Yn,1),"before"):new wt(fe.line,Yn,"after")};Xr>=0&&Xr<Se.length;Xr+=rn){var gn=Se[Xr],hn=rn>0==(gn.level!=1),kn=hn?Yr.begin:ut(Yr.end,-1);if(gn.from<=kn&&kn<gn.to||(kn=hn?gn.from:ut(gn.to,-1),Yr.begin<=kn&&kn<Yr.end))return an(kn,hn)}},Mr=Sr(ze+ue,ue,Ft);if(Mr)return Mr;var zr=ue>0?Ft.end:ut(Ft.begin,-1);return zr!=null&&!(ue>0&&zr==b.text.length)&&(Mr=Sr(ue>0?0:Se.length-1,ue,mt(zr)),Mr)?Mr:null}var ha={selectAll:rl,singleSelection:function(y){return y.setSelection(y.getCursor("anchor"),y.getCursor("head"),Ge)},killLine:function(y){return zo(y,function(b){if(b.empty()){var fe=er(y.doc,b.head.line).text.length;return b.head.ch==fe&&b.head.line<y.lastLine()?{from:b.head,to:wt(b.head.line+1,0)}:{from:b.head,to:wt(b.head.line,fe)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(y){return zo(y,function(b){return{from:wt(b.from().line,0),to:Rt(y.doc,wt(b.to().line+1,0))}})},delLineLeft:function(y){return zo(y,function(b){return{from:wt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(y){return zo(y,function(b){var fe=y.charCoords(b.head,"div").top+5,ue=y.coordsChar({left:0,top:fe},"div");return{from:ue,to:b.from()}})},delWrappedLineRight:function(y){return zo(y,function(b){var fe=y.charCoords(b.head,"div").top+5,ue=y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:fe},"div");return{from:b.from(),to:ue}})},undo:function(y){return y.undo()},redo:function(y){return y.redo()},undoSelection:function(y){return y.undoSelection()},redoSelection:function(y){return y.redoSelection()},goDocStart:function(y){return y.extendSelection(wt(y.firstLine(),0))},goDocEnd:function(y){return y.extendSelection(wt(y.lastLine()))},goLineStart:function(y){return y.extendSelectionsBy(function(b){return bl(y,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(y){return y.extendSelectionsBy(function(b){return xl(y,b.head)},{origin:"+move",bias:1})},goLineEnd:function(y){return y.extendSelectionsBy(function(b){return ju(y,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(y){return y.extendSelectionsBy(function(b){var fe=y.cursorCoords(b.head,"div").top+5;return y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:fe},"div")},Ve)},goLineLeft:function(y){return y.extendSelectionsBy(function(b){var fe=y.cursorCoords(b.head,"div").top+5;return y.coordsChar({left:0,top:fe},"div")},Ve)},goLineLeftSmart:function(y){return y.extendSelectionsBy(function(b){var fe=y.cursorCoords(b.head,"div").top+5,ue=y.coordsChar({left:0,top:fe},"div");return ue.ch<y.getLine(ue.line).search(/\S/)?xl(y,b.head):ue},Ve)},goLineUp:function(y){return y.moveV(-1,"line")},goLineDown:function(y){return y.moveV(1,"line")},goPageUp:function(y){return y.moveV(-1,"page")},goPageDown:function(y){return y.moveV(1,"page")},goCharLeft:function(y){return y.moveH(-1,"char")},goCharRight:function(y){return y.moveH(1,"char")},goColumnLeft:function(y){return y.moveH(-1,"column")},goColumnRight:function(y){return y.moveH(1,"column")},goWordLeft:function(y){return y.moveH(-1,"word")},goGroupRight:function(y){return y.moveH(1,"group")},goGroupLeft:function(y){return y.moveH(-1,"group")},goWordRight:function(y){return y.moveH(1,"word")},delCharBefore:function(y){return y.deleteH(-1,"codepoint")},delCharAfter:function(y){return y.deleteH(1,"char")},delWordBefore:function(y){return y.deleteH(-1,"word")},delWordAfter:function(y){return y.deleteH(1,"word")},delGroupBefore:function(y){return y.deleteH(-1,"group")},delGroupAfter:function(y){return y.deleteH(1,"group")},indentAuto:function(y){return y.indentSelection("smart")},indentMore:function(y){return y.indentSelection("add")},indentLess:function(y){return y.indentSelection("subtract")},insertTab:function(y){return y.replaceSelection(" ")},insertSoftTab:function(y){for(var b=[],fe=y.listSelections(),ue=y.options.tabSize,Se=0;Se<fe.length;Se++){var ze=fe[Se].from(),it=Fe(y.getLine(ze.line),ze.ch,ue);b.push(ct(ue-it%ue))}y.replaceSelections(b)},defaultTab:function(y){y.somethingSelected()?y.indentSelection("add"):y.execCommand("insertTab")},transposeChars:function(y){return $i(y,function(){for(var b=y.listSelections(),fe=[],ue=0;ue<b.length;ue++)if(b[ue].empty()){var Se=b[ue].head,ze=er(y.doc,Se.line).text;if(ze){if(Se.ch==ze.length&&(Se=new wt(Se.line,Se.ch-1)),Se.ch>0)Se=new wt(Se.line,Se.ch+1),y.replaceRange(ze.charAt(Se.ch-1)+ze.charAt(Se.ch-2),wt(Se.line,Se.ch-2),Se,"+transpose");else if(Se.line>y.doc.first){var it=er(y.doc,Se.line-1).text;it&&(Se=new wt(Se.line,1),y.replaceRange(ze.charAt(0)+y.doc.lineSeparator()+it.charAt(it.length-1),wt(Se.line-1,it.length-1),Se,"+transpose"))}}fe.push(new Gn(Se,Se))}y.setSelections(fe)})},newlineAndIndent:function(y){return $i(y,function(){for(var b=y.listSelections(),fe=b.length-1;fe>=0;fe--)y.replaceRange(y.doc.lineSeparator(),b[fe].anchor,b[fe].head,"+input");b=y.listSelections();for(var ue=0;ue<b.length;ue++)y.indentLine(b[ue].from().line,null,!0);No(y)})},openLine:function(y){return y.replaceSelection(`
`,"start")},toggleOverwrite:function(y){return y.toggleOverwrite()}};function bl(y,b){var fe=er(y.doc,b),ue=pr(fe);return ue!=fe&&(b=Pt(ue)),ds(!0,y,ue,b,1)}function ju(y,b){var fe=er(y.doc,b),ue=$r(fe);return ue!=fe&&(b=Pt(ue)),ds(!0,y,fe,b,-1)}function xl(y,b){var fe=bl(y,b.line),ue=er(y.doc,fe.line),Se=Tt(ue,y.doc.direction);if(!Se||Se[0].level==0){var ze=Math.max(fe.ch,ue.text.search(/\S/)),it=b.line==fe.line&&b.ch<=ze&&b.ch;return wt(fe.line,it?0:ze,fe.sticky)}return fe}function Fa(y,b,fe){if(typeof b=="string"&&(b=ha[b],!b))return!1;y.display.input.ensurePolled();var ue=y.display.shift,Se=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),fe&&(y.display.shift=!1),Se=b(y)!=et}finally{y.display.shift=ue,y.state.suppressEdits=!1}return Se}function Pu(y,b,fe){for(var ue=0;ue<y.state.keyMaps.length;ue++){var Se=Wo(b,y.state.keyMaps[ue],fe,y);if(Se)return Se}return y.options.extraKeys&&Wo(b,y.options.extraKeys,fe,y)||Wo(b,y.options.keyMap,fe,y)}var Du=new Ke;function pa(y,b,fe,ue){var Se=y.state.keySeq;if(Se){if(vl(b))return"handled";if(/\'$/.test(b)?y.state.keySeq=null:Du.set(50,function(){y.state.keySeq==Se&&(y.state.keySeq=null,y.display.input.reset())}),wl(y,Se+" "+b,fe,ue))return!0}return wl(y,b,fe,ue)}function wl(y,b,fe,ue){var Se=Pu(y,b,ue);return Se=="multi"&&(y.state.keySeq=b),Se=="handled"&&Dn(y,"keyHandled",y,b,fe),(Se=="handled"||Se=="multi")&&(Ct(fe),Xa(y)),!!Se}function Sl(y,b){var fe=yl(b,!0);return fe?b.shiftKey&&!y.state.keySeq?pa(y,"Shift-"+fe,b,function(ue){return Fa(y,ue,!0)})||pa(y,fe,b,function(ue){if(typeof ue=="string"?/^go[A-Z]/.test(ue):ue.motion)return Fa(y,ue)}):pa(y,fe,b,function(ue){return Fa(y,ue)}):!1}function ku(y,b,fe){return pa(y,"'"+fe+"'",b,function(ue){return Fa(y,ue,!0)})}var hs=null;function Cl(y){var b=this;if(!(y.target&&y.target!=b.display.input.getField())&&(b.curOp.focus=Ae(),!xt(b,y))){xe&&z<11&&y.keyCode==27&&(y.returnValue=!1);var fe=y.keyCode;b.display.shift=fe==16||y.shiftKey;var ue=Sl(b,y);ee&&(hs=ue?fe:null,!ue&&fe==88&&!ir&&(ce?y.metaKey:y.ctrlKey)&&b.replaceSelection("",null,"cut")),ge&&!ce&&!ue&&fe==46&&y.shiftKey&&!y.ctrlKey&&document.execCommand&&document.execCommand("cut"),fe==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&Mu(b)}}function Mu(y){var b=y.display.lineDiv;ve(b,"CodeMirror-crosshair");function fe(ue){(ue.keyCode==18||!ue.altKey)&&(_e(b,"CodeMirror-crosshair"),Dt(document,"keyup",fe),Dt(document,"mouseover",fe))}Ot(document,"keyup",fe),Ot(document,"mouseover",fe)}function El(y){y.keyCode==16&&(this.doc.sel.shift=!1),xt(this,y)}function Ol(y){var b=this;if(!(y.target&&y.target!=b.display.input.getField())&&!(gi(b.display,y)||xt(b,y)||y.ctrlKey&&!y.altKey||ce&&y.metaKey)){var fe=y.keyCode,ue=y.charCode;if(ee&&fe==hs){hs=null,Ct(y);return}if(!(ee&&(!y.which||y.which<10)&&Sl(b,y))){var Se=String.fromCharCode(ue==null?fe:ue);Se!="\b"&&(ku(b,y,Se)||b.display.input.onKeyPress(y))}}}var Nu=400,ps=function(y,b,fe){this.time=y,this.pos=b,this.button=fe};ps.prototype.compare=function(y,b,fe){return this.time+Nu>y&&Nt(b,this.pos)==0&&fe==this.button};var ma,va;function Ru(y,b){var fe=+new Date;return va&&va.compare(fe,y,b)?(ma=va=null,"triple"):ma&&ma.compare(fe,y,b)?(va=new ps(fe,y,b),ma=null,"double"):(ma=new ps(fe,y,b),va=null,"single")}function Tl(y){var b=this,fe=b.display;if(!(xt(b,y)||fe.activeTouch&&fe.input.supportsTouch())){if(fe.input.ensurePolled(),fe.shift=y.shiftKey,gi(fe,y)){E||(fe.scroller.draggable=!1,setTimeout(function(){return fe.scroller.draggable=!0},100));return}if(!ms(b,y)){var ue=So(b,y),Se=$t(y),ze=ue?Ru(ue,Se):"single";window.focus(),Se==1&&b.state.selectingText&&b.state.selectingText(y),!(ue&&_u(b,Se,ue,ze,y))&&(Se==1?ue?Lu(b,ue,ze,y):kt(y)==fe.scroller&&Ct(y):Se==2?(ue&&Ma(b.doc,ue),setTimeout(function(){return fe.input.focus()},20)):Se==3&&(Pe?b.display.input.onContextMenu(y):Ts(b)))}}}function _u(y,b,fe,ue,Se){var ze="Click";return ue=="double"?ze="Double"+ze:ue=="triple"&&(ze="Triple"+ze),ze=(b==1?"Left":b==2?"Middle":"Right")+ze,pa(y,gl(ze,Se),Se,function(it){if(typeof it=="string"&&(it=ha[it]),!it)return!1;var ut=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),ut=it(y,fe)!=et}finally{y.state.suppressEdits=!1}return ut})}function Bu(y,b,fe){var ue=y.getOption("configureMouse"),Se=ue?ue(y,b,fe):{};if(Se.unit==null){var ze=pe?fe.shiftKey&&fe.metaKey:fe.altKey;Se.unit=ze?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(Se.extend==null||y.doc.extend)&&(Se.extend=y.doc.extend||fe.shiftKey),Se.addNew==null&&(Se.addNew=ce?fe.metaKey:fe.ctrlKey),Se.moveOnDrag==null&&(Se.moveOnDrag=!(ce?fe.altKey:fe.ctrlKey)),Se}function Lu(y,b,fe,ue){xe?setTimeout(Ye(Os,y),0):y.curOp.focus=Ae();var Se=Bu(y,fe,ue),ze=y.doc.sel,it;y.options.dragDrop&&Kt&&!y.isReadOnly()&&fe=="single"&&(it=ze.contains(b))>-1&&(Nt((it=ze.ranges[it]).from(),b)<0||b.xRel>0)&&(Nt(it.to(),b)>0||b.xRel<0)?Fu(y,ue,b,Se):$u(y,ue,b,Se)}function Fu(y,b,fe,ue){var Se=y.display,ze=!1,it=hi(y,function(mt){E&&(Se.scroller.draggable=!1),y.state.draggingText=!1,Dt(Se.wrapper.ownerDocument,"mouseup",it),Dt(Se.wrapper.ownerDocument,"mousemove",ut),Dt(Se.scroller,"dragstart",dt),Dt(Se.scroller,"drop",it),ze||(Ct(mt),ue.addNew||Ma(y.doc,fe,null,null,ue.extend),E&&!le||xe&&z==9?setTimeout(function(){Se.wrapper.ownerDocument.body.focus({preventScroll:!0}),Se.input.focus()},20):Se.input.focus())}),ut=function(mt){ze=ze||Math.abs(b.clientX-mt.clientX)+Math.abs(b.clientY-mt.clientY)>=10},dt=function(){return ze=!0};E&&(Se.scroller.draggable=!0),y.state.draggingText=it,it.copy=!ue.moveOnDrag,Se.scroller.dragDrop&&Se.scroller.dragDrop(),Ot(Se.wrapper.ownerDocument,"mouseup",it),Ot(Se.wrapper.ownerDocument,"mousemove",ut),Ot(Se.scroller,"dragstart",dt),Ot(Se.scroller,"drop",it),Ts(y),setTimeout(function(){return Se.input.focus()},20)}function Al(y,b,fe){if(fe=="char")return new Gn(b,b);if(fe=="word")return y.findWordAt(b);if(fe=="line")return new Gn(wt(b.line,0),Rt(y.doc,wt(b.line+1,0)));var ue=fe(y,b);return new Gn(ue.from,ue.to)}function $u(y,b,fe,ue){var Se=y.display,ze=y.doc;Ct(b);var it,ut,dt=ze.sel,mt=dt.ranges;if(ue.addNew&&!ue.extend?(ut=ze.sel.contains(fe),ut>-1?it=mt[ut]:it=new Gn(fe,fe)):(it=ze.sel.primary(),ut=ze.sel.primIndex),ue.unit=="rectangle")ue.addNew||(it=new Gn(fe,fe)),fe=So(y,b,!0,!0),ut=-1;else{var Ft=Al(y,fe,ue.unit);ue.extend?it=ls(it,Ft.anchor,Ft.head,ue.extend):it=Ft}ue.addNew?ut==-1?(ut=mt.length,Si(ze,Qi(y,mt.concat([it]),ut),{scroll:!1,origin:"*mouse"})):mt.length>1&&mt[ut].empty()&&ue.unit=="char"&&!ue.extend?(Si(ze,Qi(y,mt.slice(0,ut).concat(mt.slice(ut+1)),0),{scroll:!1,origin:"*mouse"}),dt=ze.sel):us(ze,ut,it,Xe):(ut=0,Si(ze,new Ui([it],0),Xe),dt=ze.sel);var Zt=fe;function nr(Yr){if(Nt(Zt,Yr)!=0)if(Zt=Yr,ue.unit=="rectangle"){for(var an=[],gn=y.options.tabSize,hn=Fe(er(ze,fe.line).text,fe.ch,gn),kn=Fe(er(ze,Yr.line).text,Yr.ch,gn),Yn=Math.min(hn,kn),mi=Math.max(hn,kn),Qn=Math.min(fe.line,Yr.line),Wi=Math.min(y.lastLine(),Math.max(fe.line,Yr.line));Qn<=Wi;Qn++){var ki=er(ze,Qn).text,ai=tt(ki,Yn,gn);Yn==mi?an.push(new Gn(wt(Qn,ai),wt(Qn,ai))):ki.length>ai&&an.push(new Gn(wt(Qn,ai),wt(Qn,tt(ki,mi,gn))))}an.length||an.push(new Gn(fe,fe)),Si(ze,Qi(y,dt.ranges.slice(0,ut).concat(an),ut),{origin:"*mouse",scroll:!1}),y.scrollIntoView(Yr)}else{var Mi=it,bi=Al(y,Yr,ue.unit),fi=Mi.anchor,si;Nt(bi.anchor,fi)>0?(si=bi.head,fi=Gt(Mi.from(),bi.anchor)):(si=bi.anchor,fi=Wt(Mi.to(),bi.head));var ei=dt.ranges.slice(0);ei[ut]=Wu(y,new Gn(Rt(ze,fi),si)),Si(ze,Qi(y,ei,ut),Xe)}}var rr=Se.wrapper.getBoundingClientRect(),Sr=0;function Mr(Yr){var an=++Sr,gn=So(y,Yr,!0,ue.unit=="rectangle");if(gn)if(Nt(gn,Zt)!=0){y.curOp.focus=Ae(),nr(gn);var hn=Aa(Se,ze);(gn.line>=hn.to||gn.line<hn.from)&&setTimeout(hi(y,function(){Sr==an&&Mr(Yr)}),150)}else{var kn=Yr.clientY<rr.top?-20:Yr.clientY>rr.bottom?20:0;kn&&setTimeout(hi(y,function(){Sr==an&&(Se.scroller.scrollTop+=kn,Mr(Yr))}),50)}}function zr(Yr){y.state.selectingText=!1,Sr=1/0,Yr&&(Ct(Yr),Se.input.focus()),Dt(Se.wrapper.ownerDocument,"mousemove",Xr),Dt(Se.wrapper.ownerDocument,"mouseup",rn),ze.history.lastSelOrigin=null}var Xr=hi(y,function(Yr){Yr.buttons===0||!$t(Yr)?zr(Yr):Mr(Yr)}),rn=hi(y,zr);y.state.selectingText=rn,Ot(Se.wrapper.ownerDocument,"mousemove",Xr),Ot(Se.wrapper.ownerDocument,"mouseup",rn)}function Wu(y,b){var fe=b.anchor,ue=b.head,Se=er(y.doc,fe.line);if(Nt(fe,ue)==0&&fe.sticky==ue.sticky)return b;var ze=Tt(Se);if(!ze)return b;var it=lt(ze,fe.ch,fe.sticky),ut=ze[it];if(ut.from!=fe.ch&&ut.to!=fe.ch)return b;var dt=it+(ut.from==fe.ch==(ut.level!=1)?0:1);if(dt==0||dt==ze.length)return b;var mt;if(ue.line!=fe.line)mt=(ue.line-fe.line)*(y.doc.direction=="ltr"?1:-1)>0;else{var Ft=lt(ze,ue.ch,ue.sticky),Zt=Ft-it||(ue.ch-fe.ch)*(ut.level==1?-1:1);Ft==dt-1||Ft==dt?mt=Zt<0:mt=Zt>0}var nr=ze[dt+(mt?-1:0)],rr=mt==(nr.level==1),Sr=rr?nr.from:nr.to,Mr=rr?"after":"before";return fe.ch==Sr&&fe.sticky==Mr?b:new Gn(new wt(fe.line,Sr,Mr),ue)}function Il(y,b,fe,ue){var Se,ze;if(b.touches)Se=b.touches[0].clientX,ze=b.touches[0].clientY;else try{Se=b.clientX,ze=b.clientY}catch(nr){return!1}if(Se>=Math.floor(y.display.gutters.getBoundingClientRect().right))return!1;ue&&Ct(b);var it=y.display,ut=it.lineDiv.getBoundingClientRect();if(ze>ut.bottom||!It(y,fe))return Vt(b);ze-=ut.top-it.viewOffset;for(var dt=0;dt<y.display.gutterSpecs.length;++dt){var mt=it.gutters.childNodes[dt];if(mt&&mt.getBoundingClientRect().right>=Se){var Ft=Lt(y.doc,ze),Zt=y.display.gutterSpecs[dt];return Et(y,fe,y,Ft,Zt.className,b),Vt(b)}}}function ms(y,b){return Il(y,b,"gutterClick",!0)}function jl(y,b){gi(y.display,b)||zu(y,b)||xt(y,b,"contextmenu")||Pe||y.display.input.onContextMenu(b)}function zu(y,b){return It(y,"gutterContextMenu")?Il(y,b,"gutterContextMenu",!1):!1}function Pl(y){y.display.wrapper.className=y.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+y.options.theme.replace(/(^|\s)\s*/g," cm-s-"),wo(y)}var Uo={toString:function(){return"CodeMirror.Init"}},Dl={},$a={};function Uu(y){var b=y.optionHandlers;function fe(ue,Se,ze,it){y.defaults[ue]=Se,ze&&(b[ue]=it?function(ut,dt,mt){mt!=Uo&&ze(ut,dt,mt)}:ze)}y.defineOption=fe,y.Init=Uo,fe("value","",function(ue,Se){return ue.setValue(Se)},!0),fe("mode",null,function(ue,Se){ue.doc.modeOption=Se,os(ue)},!0),fe("indentUnit",2,os,!0),fe("indentWithTabs",!1),fe("smartIndent",!0),fe("tabSize",4,function(ue){ia(ue),wo(ue),Pi(ue)},!0),fe("lineSeparator",null,function(ue,Se){if(ue.doc.lineSep=Se,!!Se){var ze=[],it=ue.doc.first;ue.doc.iter(function(dt){for(var mt=0;;){var Ft=dt.text.indexOf(Se,mt);if(Ft==-1)break;mt=Ft+Se.length,ze.push(wt(it,Ft))}it++});for(var ut=ze.length-1;ut>=0;ut--)Fo(ue.doc,Se,ze[ut],wt(ze[ut].line,ze[ut].ch+Se.length))}}),fe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ue,Se,ze){ue.state.specialChars=new RegExp(Se.source+(Se.test(" ")?"":"| "),"g"),ze!=Uo&&ue.refresh()}),fe("specialCharPlaceholder",Ei,function(ue){return ue.refresh()},!0),fe("electricChars",!0),fe("inputStyle",se?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),fe("spellcheck",!1,function(ue,Se){return ue.getInputField().spellcheck=Se},!0),fe("autocorrect",!1,function(ue,Se){return ue.getInputField().autocorrect=Se},!0),fe("autocapitalize",!1,function(ue,Se){return ue.getInputField().autocapitalize=Se},!0),fe("rtlMoveVisually",!me),fe("wholeLineUpdateBefore",!0),fe("theme","default",function(ue){Pl(ue),na(ue)},!0),fe("keyMap","default",function(ue,Se,ze){var it=La(Se),ut=ze!=Uo&&La(ze);ut&&ut.detach&&ut.detach(ue,it),it.attach&&it.attach(ue,ut||null)}),fe("extraKeys",null),fe("configureMouse",null),fe("lineWrapping",!1,Zu,!0),fe("gutters",[],function(ue,Se){ue.display.gutterSpecs=ns(Se,ue.options.lineNumbers),na(ue)},!0),fe("fixedGutter",!0,function(ue,Se){ue.display.gutters.style.left=Se?Ka(ue.display)+"px":"0",ue.refresh()},!0),fe("coverGutterNextToScrollbar",!1,function(ue){return Ro(ue)},!0),fe("scrollbarStyle","native",function(ue){ks(ue),Ro(ue),ue.display.scrollbars.setScrollTop(ue.doc.scrollTop),ue.display.scrollbars.setScrollLeft(ue.doc.scrollLeft)},!0),fe("lineNumbers",!1,function(ue,Se){ue.display.gutterSpecs=ns(ue.options.gutters,Se),na(ue)},!0),fe("firstLineNumber",1,na,!0),fe("lineNumberFormatter",function(ue){return ue},na,!0),fe("showCursorWhenSelecting",!1,Jo,!0),fe("resetSelectionOnContextMenu",!0),fe("lineWiseCopyCut",!0),fe("pasteLinesPerSelection",!0),fe("selectionsMayTouch",!1),fe("readOnly",!1,function(ue,Se){Se=="nocursor"&&(Mo(ue),ue.display.input.blur()),ue.display.input.readOnlyChanged(Se)}),fe("screenReaderLabel",null,function(ue,Se){Se=Se===""?null:Se,ue.display.input.screenReaderLabelChanged(Se)}),fe("disableInput",!1,function(ue,Se){Se||ue.display.input.reset()},!0),fe("dragDrop",!0,Hu),fe("allowDropFileTypes",null),fe("cursorBlinkRate",530),fe("cursorScrollMargin",0),fe("cursorHeight",1,Jo,!0),fe("singleCursorHeightPerLine",!0,Jo,!0),fe("workTime",100),fe("workDelay",100),fe("flattenSpans",!0,ia,!0),fe("addModeClass",!1,ia,!0),fe("pollInterval",100),fe("undoDepth",200,function(ue,Se){return ue.doc.history.undoDepth=Se}),fe("historyEventDelay",1250),fe("viewportMargin",10,function(ue){return ue.refresh()},!0),fe("maxHighlightLength",1e4,ia,!0),fe("moveInputWithCursor",!0,function(ue,Se){Se||ue.display.input.resetPosition()}),fe("tabindex",null,function(ue,Se){return ue.display.input.getField().tabIndex=Se||""}),fe("autofocus",null),fe("direction","ltr",function(ue,Se){return ue.doc.setDirection(Se)},!0),fe("phrases",null)}function Hu(y,b,fe){var ue=fe&&fe!=Uo;if(!b!=!ue){var Se=y.display.dragFunctions,ze=b?Ot:Dt;ze(y.display.scroller,"dragstart",Se.start),ze(y.display.scroller,"dragenter",Se.enter),ze(y.display.scroller,"dragover",Se.over),ze(y.display.scroller,"dragleave",Se.leave),ze(y.display.scroller,"drop",Se.drop)}}function Zu(y){y.options.lineWrapping?(ve(y.display.wrapper,"CodeMirror-wrap"),y.display.sizer.style.minWidth="",y.display.sizerWidth=null):(_e(y.display.wrapper,"CodeMirror-wrap"),Tn(y)),Va(y),Pi(y),wo(y),setTimeout(function(){return Ro(y)},100)}function Jn(y,b){var fe=this;if(!(this instanceof Jn))return new Jn(y,b);this.options=b=b?ot(b):{},ot(Dl,b,!1);var ue=b.value;typeof ue=="string"?ue=new Di(ue,b.mode,null,b.lineSeparator,b.direction):b.mode&&(ue.modeOption=b.mode),this.doc=ue;var Se=new Jn.inputStyles[b.inputStyle](this),ze=this.display=new iu(y,ue,Se,b);ze.wrapper.CodeMirror=this,Pl(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ks(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 Ke,keySeq:null,specialChars:null},b.autofocus&&!se&&ze.input.focus(),xe&&z<11&&setTimeout(function(){return fe.display.input.reset(!0)},20),Gu(this),Cu(),To(this),this.curOp.forceUpdate=!0,zs(this,ue),b.autofocus&&!se||this.hasFocus()?setTimeout(function(){fe.hasFocus()&&!fe.state.focused&&Ya(fe)},20):Mo(this);for(var it in $a)$a.hasOwnProperty(it)&&$a[it](this,b[it],Uo);Rs(this),b.finishInit&&b.finishInit(this);for(var ut=0;ut<vs.length;++ut)vs[ut](this);Ao(this),E&&b.lineWrapping&&getComputedStyle(ze.lineDiv).textRendering=="optimizelegibility"&&(ze.lineDiv.style.textRendering="auto")}Jn.defaults=Dl,Jn.optionHandlers=$a;function Gu(y){var b=y.display;Ot(b.scroller,"mousedown",hi(y,Tl)),xe&&z<11?Ot(b.scroller,"dblclick",hi(y,function(dt){if(!xt(y,dt)){var mt=So(y,dt);if(!(!mt||ms(y,dt)||gi(y.display,dt))){Ct(dt);var Ft=y.findWordAt(mt);Ma(y.doc,Ft.anchor,Ft.head)}}})):Ot(b.scroller,"dblclick",function(dt){return xt(y,dt)||Ct(dt)}),Ot(b.scroller,"contextmenu",function(dt){return jl(y,dt)}),Ot(b.input.getField(),"contextmenu",function(dt){b.scroller.contains(dt.target)||jl(y,dt)});var fe,ue={end:0};function Se(){b.activeTouch&&(fe=setTimeout(function(){return b.activeTouch=null},1e3),ue=b.activeTouch,ue.end=+new Date)}function ze(dt){if(dt.touches.length!=1)return!1;var mt=dt.touches[0];return mt.radiusX<=1&&mt.radiusY<=1}function it(dt,mt){if(mt.left==null)return!0;var Ft=mt.left-dt.left,Zt=mt.top-dt.top;return Ft*Ft+Zt*Zt>20*20}Ot(b.scroller,"touchstart",function(dt){if(!xt(y,dt)&&!ze(dt)&&!ms(y,dt)){b.input.ensurePolled(),clearTimeout(fe);var mt=+new Date;b.activeTouch={start:mt,moved:!1,prev:mt-ue.end<=300?ue:null},dt.touches.length==1&&(b.activeTouch.left=dt.touches[0].pageX,b.activeTouch.top=dt.touches[0].pageY)}}),Ot(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Ot(b.scroller,"touchend",function(dt){var mt=b.activeTouch;if(mt&&!gi(b,dt)&&mt.left!=null&&!mt.moved&&new Date-mt.start<300){var Ft=y.coordsChar(b.activeTouch,"page"),Zt;!mt.prev||it(mt,mt.prev)?Zt=new Gn(Ft,Ft):!mt.prev.prev||it(mt,mt.prev.prev)?Zt=y.findWordAt(Ft):Zt=new Gn(wt(Ft.line,0),Rt(y.doc,wt(Ft.line+1,0))),y.setSelection(Zt.anchor,Zt.head),y.focus(),Ct(dt)}Se()}),Ot(b.scroller,"touchcancel",Se),Ot(b.scroller,"scroll",function(){b.scroller.clientHeight&&(qo(y,b.scroller.scrollTop),Eo(y,b.scroller.scrollLeft,!0),Et(y,"scroll",y))}),Ot(b.scroller,"mousewheel",function(dt){return Ls(y,dt)}),Ot(b.scroller,"DOMMouseScroll",function(dt){return Ls(y,dt)}),Ot(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(dt){xt(y,dt)||vt(dt)},over:function(dt){xt(y,dt)||(Su(y,dt),vt(dt))},start:function(dt){return wu(y,dt)},drop:hi(y,xu),leave:function(dt){xt(y,dt)||hl(y)}};var ut=b.input.getField();Ot(ut,"keyup",function(dt){return El.call(y,dt)}),Ot(ut,"keydown",hi(y,Cl)),Ot(ut,"keypress",hi(y,Ol)),Ot(ut,"focus",function(dt){return Ya(y,dt)}),Ot(ut,"blur",function(dt){return Mo(y,dt)})}var vs=[];Jn.defineInitHook=function(y){return vs.push(y)};function ga(y,b,fe,ue){var Se=y.doc,ze;fe==null&&(fe="add"),fe=="smart"&&(Se.mode.indent?ze=Fr(y,b).state:fe="prev");var it=y.options.tabSize,ut=er(Se,b),dt=Fe(ut.text,null,it);ut.stateAfter&&(ut.stateAfter=null);var mt=ut.text.match(/^\s*/)[0],Ft;if(!ue&&!/\S/.test(ut.text))Ft=0,fe="not";else if(fe=="smart"&&(Ft=Se.mode.indent(ze,ut.text.slice(mt.length),ut.text),Ft==et||Ft>150)){if(!ue)return;fe="prev"}fe=="prev"?b>Se.first?Ft=Fe(er(Se,b-1).text,null,it):Ft=0:fe=="add"?Ft=dt+y.options.indentUnit:fe=="subtract"?Ft=dt-y.options.indentUnit:typeof fe=="number"&&(Ft=dt+fe),Ft=Math.max(0,Ft);var Zt="",nr=0;if(y.options.indentWithTabs)for(var rr=Math.floor(Ft/it);rr;--rr)nr+=it,Zt+=" ";if(nr<Ft&&(Zt+=ct(Ft-nr)),Zt!=mt)return Fo(Se,Zt,wt(b,0),wt(b,mt.length),"+input"),ut.stateAfter=null,!0;for(var Sr=0;Sr<Se.sel.ranges.length;Sr++){var Mr=Se.sel.ranges[Sr];if(Mr.head.line==b&&Mr.head.ch<mt.length){var zr=wt(b,mt.length);us(Se,Sr,new Gn(zr,zr));break}}}var qi=null;function Wa(y){qi=y}function gs(y,b,fe,ue,Se){var ze=y.doc;y.display.shift=!1,ue||(ue=ze.sel);var it=+new Date-200,ut=Se=="paste"||y.state.pasteIncoming>it,dt=fr(b),mt=null;if(ut&&ue.ranges.length>1)if(qi&&qi.text.join(`
`)==b){if(ue.ranges.length%qi.text.length==0){mt=[];for(var Ft=0;Ft<qi.text.length;Ft++)mt.push(ze.splitLines(qi.text[Ft]))}}else dt.length==ue.ranges.length&&y.options.pasteLinesPerSelection&&(mt=qe(dt,function(Xr){return[Xr]}));for(var Zt=y.curOp.updateInput,nr=ue.ranges.length-1;nr>=0;nr--){var rr=ue.ranges[nr],Sr=rr.from(),Mr=rr.to();rr.empty()&&(fe&&fe>0?Sr=wt(Sr.line,Sr.ch-fe):y.state.overwrite&&!ut?Mr=wt(Mr.line,Math.min(er(ze,Mr.line).text.length,Mr.ch+at(dt).length)):ut&&qi&&qi.lineWise&&qi.text.join(`
`)==dt.join(`
`)&&(Sr=Mr=wt(Sr.line,0)));var zr={from:Sr,to:Mr,text:mt?mt[nr%mt.length]:dt,origin:Se||(ut?"paste":y.state.cutIncoming>it?"cut":"+input")};Lo(y.doc,zr),Dn(y,"inputRead",y,zr)}b&&!ut&&Ml(y,b),No(y),y.curOp.updateInput<2&&(y.curOp.updateInput=Zt),y.curOp.typing=!0,y.state.pasteIncoming=y.state.cutIncoming=-1}function kl(y,b){var fe=y.clipboardData&&y.clipboardData.getData("Text");if(fe)return y.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&$i(b,function(){return gs(b,fe,0,null,"paste")}),!0}function Ml(y,b){if(!(!y.options.electricChars||!y.options.smartIndent))for(var fe=y.doc.sel,ue=fe.ranges.length-1;ue>=0;ue--){var Se=fe.ranges[ue];if(!(Se.head.ch>100||ue&&fe.ranges[ue-1].head.line==Se.head.line)){var ze=y.getModeAt(Se.head),it=!1;if(ze.electricChars){for(var ut=0;ut<ze.electricChars.length;ut++)if(b.indexOf(ze.electricChars.charAt(ut))>-1){it=ga(y,Se.head.line,"smart");break}}else ze.electricInput&&ze.electricInput.test(er(y.doc,Se.head.line).text.slice(0,Se.head.ch))&&(it=ga(y,Se.head.line,"smart"));it&&Dn(y,"electricInput",y,Se.head.line)}}}function Nl(y){for(var b=[],fe=[],ue=0;ue<y.doc.sel.ranges.length;ue++){var Se=y.doc.sel.ranges[ue].head.line,ze={anchor:wt(Se,0),head:wt(Se+1,0)};fe.push(ze),b.push(y.getRange(ze.anchor,ze.head))}return{text:b,ranges:fe}}function Rl(y,b,fe,ue){y.setAttribute("autocorrect",fe?"":"off"),y.setAttribute("autocapitalize",ue?"":"off"),y.setAttribute("spellcheck",!!b)}function _l(){var y=Ee("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=Ee("div",[y],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?y.style.width="1000px":y.setAttribute("wrap","off"),re&&(y.style.border="1px solid black"),Rl(y),b}function Ku(y){var b=y.optionHandlers,fe=y.helpers={};y.prototype={constructor:y,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ue,Se){var ze=this.options,it=ze[ue];ze[ue]==Se&&ue!="mode"||(ze[ue]=Se,b.hasOwnProperty(ue)&&hi(this,b[ue])(this,Se,it),Et(this,"optionChange",this,ue))},getOption:function(ue){return this.options[ue]},getDoc:function(){return this.doc},addKeyMap:function(ue,Se){this.state.keyMaps[Se?"push":"unshift"](La(ue))},removeKeyMap:function(ue){for(var Se=this.state.keyMaps,ze=0;ze<Se.length;++ze)if(Se[ze]==ue||Se[ze].name==ue)return Se.splice(ze,1),!0},addOverlay:Ti(function(ue,Se){var ze=ue.token?ue:y.getMode(this.options,ue);if(ze.startState)throw new Error("Overlays may not be stateful.");Le(this.state.overlays,{mode:ze,modeSpec:ue,opaque:Se&&Se.opaque,priority:Se&&Se.priority||0},function(it){return it.priority}),this.state.modeGen++,Pi(this)}),removeOverlay:Ti(function(ue){for(var Se=this.state.overlays,ze=0;ze<Se.length;++ze){var it=Se[ze].modeSpec;if(it==ue||typeof ue=="string"&&it.name==ue){Se.splice(ze,1),this.state.modeGen++,Pi(this);return}}}),indentLine:Ti(function(ue,Se,ze){typeof Se!="string"&&typeof Se!="number"&&(Se==null?Se=this.options.smartIndent?"smart":"prev":Se=Se?"add":"subtract"),bt(this.doc,ue)&&ga(this,ue,Se,ze)}),indentSelection:Ti(function(ue){for(var Se=this.doc.sel.ranges,ze=-1,it=0;it<Se.length;it++){var ut=Se[it];if(ut.empty())ut.head.line>ze&&(ga(this,ut.head.line,ue,!0),ze=ut.head.line,it==this.doc.sel.primIndex&&No(this));else{var dt=ut.from(),mt=ut.to(),Ft=Math.max(ze,dt.line);ze=Math.min(this.lastLine(),mt.line-(mt.ch?0:1))+1;for(var Zt=Ft;Zt<ze;++Zt)ga(this,Zt,ue);var nr=this.doc.sel.ranges;dt.ch==0&&Se.length==nr.length&&nr[it].from().ch>0&&us(this.doc,it,new Gn(dt,nr[it].to()),Ge)}}}),getTokenAt:function(ue,Se){return Ur(this,ue,Se)},getLineTokens:function(ue,Se){return Ur(this,wt(ue),Se,!0)},getTokenTypeAt:function(ue){ue=Rt(this.doc,ue);var Se=Br(this,er(this.doc,ue.line)),ze=0,it=(Se.length-1)/2,ut=ue.ch,dt;if(ut==0)dt=Se[2];else for(;;){var mt=ze+it>>1;if((mt?Se[mt*2-1]:0)>=ut)it=mt;else if(Se[mt*2+1]<ut)ze=mt+1;else{dt=Se[mt*2+2];break}}var Ft=dt?dt.indexOf("overlay "):-1;return Ft<0?dt:Ft==0?null:dt.slice(0,Ft-1)},getModeAt:function(ue){var Se=this.doc.mode;return Se.innerMode?y.innerMode(Se,this.getTokenAt(ue).state).mode:Se},getHelper:function(ue,Se){return this.getHelpers(ue,Se)[0]},getHelpers:function(ue,Se){var ze=[];if(!fe.hasOwnProperty(Se))return ze;var it=fe[Se],ut=this.getModeAt(ue);if(typeof ut[Se]=="string")it[ut[Se]]&&ze.push(it[ut[Se]]);else if(ut[Se])for(var dt=0;dt<ut[Se].length;dt++){var mt=it[ut[Se][dt]];mt&&ze.push(mt)}else ut.helperType&&it[ut.helperType]?ze.push(it[ut.helperType]):it[ut.name]&&ze.push(it[ut.name]);for(var Ft=0;Ft<it._global.length;Ft++){var Zt=it._global[Ft];Zt.pred(ut,this)&&rt(ze,Zt.val)==-1&&ze.push(Zt.val)}return ze},getStateAfter:function(ue,Se){var ze=this.doc;return ue=zt(ze,ue==null?ze.first+ze.size-1:ue),Fr(this,ue+1,Se).state},cursorCoords:function(ue,Se){var ze,it=this.doc.sel.primary();return ue==null?ze=it.head:typeof ue=="object"?ze=Rt(this.doc,ue):ze=ue?it.from():it.to(),ji(this,ze,Se||"page")},charCoords:function(ue,Se){return ko(this,Rt(this.doc,ue),Se||"page")},coordsChar:function(ue,Se){return ue=Ca(this,ue,Se||"page"),yi(this,ue.left,ue.top)},lineAtHeight:function(ue,Se){return ue=Ca(this,{top:ue,left:0},Se||"page").top,Lt(this.doc,ue+this.display.viewOffset)},heightAtLine:function(ue,Se,ze){var it=!1,ut;if(typeof ue=="number"){var dt=this.doc.first+this.doc.size-1;ue<this.doc.first?ue=this.doc.first:ue>dt&&(ue=dt,it=!0),ut=er(this.doc,ue)}else ut=ue;return Do(this,ut,{top:0,left:0},Se||"page",ze||it).top+(it?this.doc.height-cn(ut):0)},defaultTextHeight:function(){return Fi(this.display)},defaultCharWidth:function(){return Ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ue,Se,ze,it,ut){var dt=this.display;ue=ji(this,Rt(this.doc,ue));var mt=ue.bottom,Ft=ue.left;if(Se.style.position="absolute",Se.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Se),dt.sizer.appendChild(Se),it=="over")mt=ue.top;else if(it=="above"||it=="near"){var Zt=Math.max(dt.wrapper.clientHeight,this.doc.height),nr=Math.max(dt.sizer.clientWidth,dt.lineSpace.clientWidth);(it=="above"||ue.bottom+Se.offsetHeight>Zt)&&ue.top>Se.offsetHeight?mt=ue.top-Se.offsetHeight:ue.bottom+Se.offsetHeight<=Zt&&(mt=ue.bottom),Ft+Se.offsetWidth>nr&&(Ft=nr-Se.offsetWidth)}Se.style.top=mt+"px",Se.style.left=Se.style.right="",ut=="right"?(Ft=dt.sizer.clientWidth-Se.offsetWidth,Se.style.right="0px"):(ut=="left"?Ft=0:ut=="middle"&&(Ft=(dt.sizer.clientWidth-Se.offsetWidth)/2),Se.style.left=Ft+"px"),ze&&Hl(this,{left:Ft,top:mt,right:Ft+Se.offsetWidth,bottom:mt+Se.offsetHeight})},triggerOnKeyDown:Ti(Cl),triggerOnKeyPress:Ti(Ol),triggerOnKeyUp:El,triggerOnMouseDown:Ti(Tl),execCommand:function(ue){if(ha.hasOwnProperty(ue))return ha[ue].call(null,this)},triggerElectric:Ti(function(ue){Ml(this,ue)}),findPosH:function(ue,Se,ze,it){var ut=1;Se<0&&(ut=-1,Se=-Se);for(var dt=Rt(this.doc,ue),mt=0;mt<Se&&(dt=ys(this.doc,dt,ut,ze,it),!dt.hitSide);++mt);return dt},moveH:Ti(function(ue,Se){var ze=this;this.extendSelectionsBy(function(it){return ze.display.shift||ze.doc.extend||it.empty()?ys(ze.doc,it.head,ue,Se,ze.options.rtlMoveVisually):ue<0?it.from():it.to()},Ve)}),deleteH:Ti(function(ue,Se){var ze=this.doc.sel,it=this.doc;ze.somethingSelected()?it.replaceSelection("",null,"+delete"):zo(this,function(ut){var dt=ys(it,ut.head,ue,Se,!1);return ue<0?{from:dt,to:ut.head}:{from:ut.head,to:dt}})}),findPosV:function(ue,Se,ze,it){var ut=1,dt=it;Se<0&&(ut=-1,Se=-Se);for(var mt=Rt(this.doc,ue),Ft=0;Ft<Se;++Ft){var Zt=ji(this,mt,"div");if(dt==null?dt=Zt.left:Zt.left=dt,mt=Bl(this,Zt,ut,ze),mt.hitSide)break}return mt},moveV:Ti(function(ue,Se){var ze=this,it=this.doc,ut=[],dt=!this.display.shift&&!it.extend&&it.sel.somethingSelected();if(it.extendSelectionsBy(function(Ft){if(dt)return ue<0?Ft.from():Ft.to();var Zt=ji(ze,Ft.head,"div");Ft.goalColumn!=null&&(Zt.left=Ft.goalColumn),ut.push(Zt.left);var nr=Bl(ze,Zt,ue,Se);return Se=="page"&&Ft==it.sel.primary()&&Qa(ze,ko(ze,nr,"div").top-Zt.top),nr},Ve),ut.length)for(var mt=0;mt<it.sel.ranges.length;mt++)it.sel.ranges[mt].goalColumn=ut[mt]}),findWordAt:function(ue){var Se=this.doc,ze=er(Se,ue.line).text,it=ue.ch,ut=ue.ch;if(ze){var dt=this.getHelper(ue,"wordChars");(ue.sticky=="before"||ut==ze.length)&&it?--it:++ut;for(var mt=ze.charAt(it),Ft=We(mt,dt)?function(Zt){return We(Zt,dt)}:/\s/.test(mt)?function(Zt){return/\s/.test(Zt)}:function(Zt){return!/\s/.test(Zt)&&!We(Zt)};it>0&&Ft(ze.charAt(it-1));)--it;for(;ut<ze.length&&Ft(ze.charAt(ut));)++ut}return new Gn(wt(ue.line,it),wt(ue.line,ut))},toggleOverwrite:function(ue){ue!=null&&ue==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ve(this.display.cursorDiv,"CodeMirror-overwrite"):_e(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ti(function(ue,Se){Qo(this,ue,Se)}),getScrollInfo:function(){var ue=this.display.scroller;return{left:ue.scrollLeft,top:ue.scrollTop,height:ue.scrollHeight-Bi(this)-this.display.barHeight,width:ue.scrollWidth-Bi(this)-this.display.barWidth,clientHeight:io(this),clientWidth:to(this)}},scrollIntoView:Ti(function(ue,Se){ue==null?(ue={from:this.doc.sel.primary().head,to:null},Se==null&&(Se=this.options.cursorScrollMargin)):typeof ue=="number"?ue={from:wt(ue,0),to:null}:ue.from==null&&(ue={from:ue,to:null}),ue.to||(ue.to=ue.from),ue.margin=Se||0,ue.from.line!=null?Zl(this,ue):Is(this,ue.from,ue.to,ue.margin)}),setSize:Ti(function(ue,Se){var ze=this,it=function(dt){return typeof dt=="number"||/^\d+$/.test(String(dt))?dt+"px":dt};ue!=null&&(this.display.wrapper.style.width=it(ue)),Se!=null&&(this.display.wrapper.style.height=it(Se)),this.options.lineWrapping&&Vo(this);var ut=this.display.viewFrom;this.doc.iter(ut,this.display.viewTo,function(dt){if(dt.widgets){for(var mt=0;mt<dt.widgets.length;mt++)if(dt.widgets[mt].noHScroll){fo(ze,ut,"widget");break}}++ut}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(ue){return $i(this,ue)},startOperation:function(){return To(this)},endOperation:function(){return Ao(this)},refresh:Ti(function(){var ue=this.display.cachedTextHeight;Pi(this),this.curOp.forceUpdate=!0,wo(this),Qo(this,this.doc.scrollLeft,this.doc.scrollTop),ts(this.display),(ue==null||Math.abs(ue-Fi(this.display))>.5||this.options.lineWrapping)&&Va(this),Et(this,"refresh",this)}),swapDoc:Ti(function(ue){var Se=this.doc;return Se.cm=null,this.state.selectingText&&this.state.selectingText(),zs(this,ue),wo(this),this.display.input.reset(),Qo(this,ue.scrollLeft,ue.scrollTop),this.curOp.forceScroll=!0,Dn(this,"swapDoc",this,Se),Se}),phrase:function(ue){var Se=this.options.phrases;return Se&&Object.prototype.hasOwnProperty.call(Se,ue)?Se[ue]:ue},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}},ht(y),y.registerHelper=function(ue,Se,ze){fe.hasOwnProperty(ue)||(fe[ue]=y[ue]={_global:[]}),fe[ue][Se]=ze},y.registerGlobalHelper=function(ue,Se,ze,it){y.registerHelper(ue,Se,it),fe[ue]._global.push({pred:ze,val:it})}}function ys(y,b,fe,ue,Se){var ze=b,it=fe,ut=er(y,b.line),dt=Se&&y.direction=="rtl"?-fe:fe;function mt(){var rn=b.line+dt;return rn<y.first||rn>=y.first+y.size?!1:(b=new wt(rn,b.ch,b.sticky),ut=er(y,rn))}function Ft(rn){var Yr;if(ue=="codepoint"){var an=ut.text.charCodeAt(b.ch+(ue>0?0:-1));isNaN(an)?Yr=null:Yr=new wt(b.line,Math.max(0,Math.min(ut.text.length,b.ch+fe*(an>=55296&&an<56320?2:1))),-fe)}else Se?Yr=Iu(y.cm,ut,b,fe):Yr=fs(ut,b,fe);if(Yr==null)if(!rn&&mt())b=ds(Se,y.cm,ut,b.line,dt);else return!1;else b=Yr;return!0}if(ue=="char"||ue=="codepoint")Ft();else if(ue=="column")Ft(!0);else if(ue=="word"||ue=="group")for(var Zt=null,nr=ue=="group",rr=y.cm&&y.cm.getHelper(b,"wordChars"),Sr=!0;!(fe<0&&!Ft(!Sr));Sr=!1){var Mr=ut.text.charAt(b.ch)||`
`,zr=We(Mr,rr)?"w":nr&&Mr==`
`?"n":!nr||/\s/.test(Mr)?null:"p";if(nr&&!Sr&&!zr&&(zr="s"),Zt&&Zt!=zr){fe<0&&(fe=1,Ft(),b.sticky="after");break}if(zr&&(Zt=zr),fe>0&&!Ft(!Sr))break}var Xr=Ra(y,b,ze,it,!0);return pt(ze,Xr)&&(Xr.hitSide=!0),Xr}function Bl(y,b,fe,ue){var Se=y.doc,ze=b.left,it;if(ue=="page"){var ut=Math.min(y.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),dt=Math.max(ut-.5*Fi(y.display),3);it=(fe>0?b.bottom:b.top)+fe*dt}else ue=="line"&&(it=fe>0?b.bottom+3:b.top-3);for(var mt;mt=yi(y,ze,it),!!mt.outside;){if(fe<0?it<=0:it>=Se.height){mt.hitSide=!0;break}it+=fe*5}return mt}var Kn=function(y){this.cm=y,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ke,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Kn.prototype.init=function(y){var b=this,fe=this,ue=fe.cm,Se=fe.div=y.lineDiv;Rl(Se,ue.options.spellcheck,ue.options.autocorrect,ue.options.autocapitalize);function ze(ut){for(var dt=ut.target;dt;dt=dt.parentNode){if(dt==Se)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(dt.className))break}return!1}Ot(Se,"paste",function(ut){!ze(ut)||xt(ue,ut)||kl(ut,ue)||z<=11&&setTimeout(hi(ue,function(){return b.updateFromDOM()}),20)}),Ot(Se,"compositionstart",function(ut){b.composing={data:ut.data,done:!1}}),Ot(Se,"compositionupdate",function(ut){b.composing||(b.composing={data:ut.data,done:!1})}),Ot(Se,"compositionend",function(ut){b.composing&&(ut.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Ot(Se,"touchstart",function(){return fe.forceCompositionEnd()}),Ot(Se,"input",function(){b.composing||b.readFromDOMSoon()});function it(ut){if(!(!ze(ut)||xt(ue,ut))){if(ue.somethingSelected())Wa({lineWise:!1,text:ue.getSelections()}),ut.type=="cut"&&ue.replaceSelection("",null,"cut");else if(ue.options.lineWiseCopyCut){var dt=Nl(ue);Wa({lineWise:!0,text:dt.text}),ut.type=="cut"&&ue.operation(function(){ue.setSelections(dt.ranges,0,Ge),ue.replaceSelection("",null,"cut")})}else return;if(ut.clipboardData){ut.clipboardData.clearData();var mt=qi.text.join(`
`);if(ut.clipboardData.setData("Text",mt),ut.clipboardData.getData("Text")==mt){ut.preventDefault();return}}var Ft=_l(),Zt=Ft.firstChild;ue.display.lineSpace.insertBefore(Ft,ue.display.lineSpace.firstChild),Zt.value=qi.text.join(`
`);var nr=document.activeElement;He(Zt),setTimeout(function(){ue.display.lineSpace.removeChild(Ft),nr.focus(),nr==Se&&fe.showPrimarySelection()},50)}}Ot(Se,"copy",it),Ot(Se,"cut",it)},Kn.prototype.screenReaderLabelChanged=function(y){y?this.div.setAttribute("aria-label",y):this.div.removeAttribute("aria-label")},Kn.prototype.prepareSelection=function(){var y=Cs(this.cm,!1);return y.focus=document.activeElement==this.div,y},Kn.prototype.showSelection=function(y,b){!y||!this.cm.display.view.length||((y.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(y))},Kn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Kn.prototype.showPrimarySelection=function(){var y=this.getSelection(),b=this.cm,fe=b.doc.sel.primary(),ue=fe.from(),Se=fe.to();if(b.display.viewTo==b.display.viewFrom||ue.line>=b.display.viewTo||Se.line<b.display.viewFrom){y.removeAllRanges();return}var ze=za(b,y.anchorNode,y.anchorOffset),it=za(b,y.focusNode,y.focusOffset);if(!(ze&&!ze.bad&&it&&!it.bad&&Nt(Gt(ze,it),ue)==0&&Nt(Wt(ze,it),Se)==0)){var ut=b.display.view,dt=ue.line>=b.display.viewFrom&&Ll(b,ue)||{node:ut[0].measure.map[2],offset:0},mt=Se.line<b.display.viewTo&&Ll(b,Se);if(!mt){var Ft=ut[ut.length-1].measure,Zt=Ft.maps?Ft.maps[Ft.maps.length-1]:Ft.map;mt={node:Zt[Zt.length-1],offset:Zt[Zt.length-2]-Zt[Zt.length-3]}}if(!dt||!mt){y.removeAllRanges();return}var nr=y.rangeCount&&y.getRangeAt(0),rr;try{rr=ke(dt.node,dt.offset,mt.offset,mt.node)}catch(Sr){}rr&&(!ge&&b.state.focused?(y.collapse(dt.node,dt.offset),rr.collapsed||(y.removeAllRanges(),y.addRange(rr))):(y.removeAllRanges(),y.addRange(rr)),nr&&y.anchorNode==null?y.addRange(nr):ge&&this.startGracePeriod()),this.rememberSelection()}},Kn.prototype.startGracePeriod=function(){var y=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){y.gracePeriod=!1,y.selectionChanged()&&y.cm.operation(function(){return y.cm.curOp.selectionChanged=!0})},20)},Kn.prototype.showMultipleSelections=function(y){Ce(this.cm.display.cursorDiv,y.cursors),Ce(this.cm.display.selectionDiv,y.selection)},Kn.prototype.rememberSelection=function(){var y=this.getSelection();this.lastAnchorNode=y.anchorNode,this.lastAnchorOffset=y.anchorOffset,this.lastFocusNode=y.focusNode,this.lastFocusOffset=y.focusOffset},Kn.prototype.selectionInEditor=function(){var y=this.getSelection();if(!y.rangeCount)return!1;var b=y.getRangeAt(0).commonAncestorContainer;return Be(this.div,b)},Kn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Kn.prototype.blur=function(){this.div.blur()},Kn.prototype.getField=function(){return this.div},Kn.prototype.supportsTouch=function(){return!0},Kn.prototype.receivedFocus=function(){var y=this;this.selectionInEditor()?this.pollSelection():$i(this.cm,function(){return y.cm.curOp.selectionChanged=!0});function b(){y.cm.state.focused&&(y.pollSelection(),y.polling.set(y.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},Kn.prototype.selectionChanged=function(){var y=this.getSelection();return y.anchorNode!=this.lastAnchorNode||y.anchorOffset!=this.lastAnchorOffset||y.focusNode!=this.lastFocusNode||y.focusOffset!=this.lastFocusOffset},Kn.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var y=this.getSelection(),b=this.cm;if(ae&&ie&&this.cm.display.gutterSpecs.length&&Vu(y.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var fe=za(b,y.anchorNode,y.anchorOffset),ue=za(b,y.focusNode,y.focusOffset);fe&&ue&&$i(b,function(){Si(b.doc,po(fe,ue),Ge),(fe.bad||ue.bad)&&(b.curOp.selectionChanged=!0)})}}},Kn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var y=this.cm,b=y.display,fe=y.doc.sel.primary(),ue=fe.from(),Se=fe.to();if(ue.ch==0&&ue.line>y.firstLine()&&(ue=wt(ue.line-1,er(y.doc,ue.line-1).length)),Se.ch==er(y.doc,Se.line).text.length&&Se.line<y.lastLine()&&(Se=wt(Se.line+1,0)),ue.line<b.viewFrom||Se.line>b.viewTo-1)return!1;var ze,it,ut;ue.line==b.viewFrom||(ze=Co(y,ue.line))==0?(it=Pt(b.view[0].line),ut=b.view[0].node):(it=Pt(b.view[ze].line),ut=b.view[ze-1].node.nextSibling);var dt=Co(y,Se.line),mt,Ft;if(dt==b.view.length-1?(mt=b.viewTo-1,Ft=b.lineDiv.lastChild):(mt=Pt(b.view[dt+1].line)-1,Ft=b.view[dt+1].node.previousSibling),!ut)return!1;for(var Zt=y.doc.splitLines(Xu(y,ut,Ft,it,mt)),nr=or(y.doc,wt(it,0),wt(mt,er(y.doc,mt).text.length));Zt.length>1&&nr.length>1;)if(at(Zt)==at(nr))Zt.pop(),nr.pop(),mt--;else if(Zt[0]==nr[0])Zt.shift(),nr.shift(),it++;else break;for(var rr=0,Sr=0,Mr=Zt[0],zr=nr[0],Xr=Math.min(Mr.length,zr.length);rr<Xr&&Mr.charCodeAt(rr)==zr.charCodeAt(rr);)++rr;for(var rn=at(Zt),Yr=at(nr),an=Math.min(rn.length-(Zt.length==1?rr:0),Yr.length-(nr.length==1?rr:0));Sr<an&&rn.charCodeAt(rn.length-Sr-1)==Yr.charCodeAt(Yr.length-Sr-1);)++Sr;if(Zt.length==1&&nr.length==1&&it==ue.line)for(;rr&&rr>ue.ch&&rn.charCodeAt(rn.length-Sr-1)==Yr.charCodeAt(Yr.length-Sr-1);)rr--,Sr++;Zt[Zt.length-1]=rn.slice(0,rn.length-Sr).replace(/^\u200b+/,""),Zt[0]=Zt[0].slice(rr).replace(/\u200b+$/,"");var gn=wt(it,rr),hn=wt(mt,nr.length?at(nr).length-Sr:0);if(Zt.length>1||Zt[0]||Nt(gn,hn))return Fo(y.doc,Zt,gn,hn,"+input"),!0},Kn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Kn.prototype.reset=function(){this.forceCompositionEnd()},Kn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Kn.prototype.readFromDOMSoon=function(){var y=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(y.readDOMTimeout=null,y.composing)if(y.composing.done)y.composing=null;else return;y.updateFromDOM()},80))},Kn.prototype.updateFromDOM=function(){var y=this;(this.cm.isReadOnly()||!this.pollContent())&&$i(this.cm,function(){return Pi(y.cm)})},Kn.prototype.setUneditable=function(y){y.contentEditable="false"},Kn.prototype.onKeyPress=function(y){y.charCode==0||this.composing||(y.preventDefault(),this.cm.isReadOnly()||hi(this.cm,gs)(this.cm,String.fromCharCode(y.charCode==null?y.keyCode:y.charCode),0))},Kn.prototype.readOnlyChanged=function(y){this.div.contentEditable=String(y!="nocursor")},Kn.prototype.onContextMenu=function(){},Kn.prototype.resetPosition=function(){},Kn.prototype.needsContentAttribute=!0;function Ll(y,b){var fe=ro(y,b.line);if(!fe||fe.hidden)return null;var ue=er(y.doc,b.line),Se=Po(fe,ue,b.line),ze=Tt(ue,y.doc.direction),it="left";if(ze){var ut=lt(ze,b.ch);it=ut%2?"right":"left"}var dt=xa(Se.map,b.ch,it);return dt.offset=dt.collapse=="right"?dt.end:dt.start,dt}function Vu(y){for(var b=y;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function Ho(y,b){return b&&(y.bad=!0),y}function Xu(y,b,fe,ue,Se){var ze="",it=!1,ut=y.doc.lineSeparator(),dt=!1;function mt(rr){return function(Sr){return Sr.id==rr}}function Ft(){it&&(ze+=ut,dt&&(ze+=ut),it=dt=!1)}function Zt(rr){rr&&(Ft(),ze+=rr)}function nr(rr){if(rr.nodeType==1){var Sr=rr.getAttribute("cm-text");if(Sr){Zt(Sr);return}var Mr=rr.getAttribute("cm-marker"),zr;if(Mr){var Xr=y.findMarks(wt(ue,0),wt(Se+1,0),mt(+Mr));Xr.length&&(zr=Xr[0].find(0))&&Zt(or(y.doc,zr.from,zr.to).join(ut));return}if(rr.getAttribute("contenteditable")=="false")return;var rn=/^(pre|div|p|li|table|br)$/i.test(rr.nodeName);if(!/^br$/i.test(rr.nodeName)&&rr.textContent.length==0)return;rn&&Ft();for(var Yr=0;Yr<rr.childNodes.length;Yr++)nr(rr.childNodes[Yr]);/^(pre|p)$/i.test(rr.nodeName)&&(dt=!0),rn&&(it=!0)}else rr.nodeType==3&&Zt(rr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;nr(b),b!=fe;)b=b.nextSibling,dt=!1;return ze}function za(y,b,fe){var ue;if(b==y.display.lineDiv){if(ue=y.display.lineDiv.childNodes[fe],!ue)return Ho(y.clipPos(wt(y.display.viewTo-1)),!0);b=null,fe=0}else for(ue=b;;ue=ue.parentNode){if(!ue||ue==y.display.lineDiv)return null;if(ue.parentNode&&ue.parentNode==y.display.lineDiv)break}for(var Se=0;Se<y.display.view.length;Se++){var ze=y.display.view[Se];if(ze.node==ue)return Yu(ze,b,fe)}}function Yu(y,b,fe){var ue=y.text.firstChild,Se=!1;if(!b||!Be(ue,b))return Ho(wt(Pt(y.line),0),!0);if(b==ue&&(Se=!0,b=ue.childNodes[fe],fe=0,!b)){var ze=y.rest?at(y.rest):y.line;return Ho(wt(Pt(ze),ze.text.length),Se)}var it=b.nodeType==3?b:null,ut=b;for(!it&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(it=b.firstChild,fe&&(fe=it.nodeValue.length));ut.parentNode!=ue;)ut=ut.parentNode;var dt=y.measure,mt=dt.maps;function Ft(zr,Xr,rn){for(var Yr=-1;Yr<(mt?mt.length:0);Yr++)for(var an=Yr<0?dt.map:mt[Yr],gn=0;gn<an.length;gn+=3){var hn=an[gn+2];if(hn==zr||hn==Xr){var kn=Pt(Yr<0?y.line:y.rest[Yr]),Yn=an[gn]+rn;return(rn<0||hn!=zr)&&(Yn=an[gn+(rn?1:0)]),wt(kn,Yn)}}}var Zt=Ft(it,ut,fe);if(Zt)return Ho(Zt,Se);for(var nr=ut.nextSibling,rr=it?it.nodeValue.length-fe:0;nr;nr=nr.nextSibling){if(Zt=Ft(nr,nr.firstChild,0),Zt)return Ho(wt(Zt.line,Zt.ch-rr),Se);rr+=nr.textContent.length}for(var Sr=ut.previousSibling,Mr=fe;Sr;Sr=Sr.previousSibling){if(Zt=Ft(Sr,Sr.firstChild,-1),Zt)return Ho(wt(Zt.line,Zt.ch+Mr),Se);Mr+=Sr.textContent.length}}var oi=function(y){this.cm=y,this.prevInput="",this.pollingFast=!1,this.polling=new Ke,this.hasSelection=!1,this.composing=null};oi.prototype.init=function(y){var b=this,fe=this,ue=this.cm;this.createField(y);var Se=this.textarea;y.wrapper.insertBefore(this.wrapper,y.wrapper.firstChild),re&&(Se.style.width="0px"),Ot(Se,"input",function(){xe&&z>=9&&b.hasSelection&&(b.hasSelection=null),fe.poll()}),Ot(Se,"paste",function(it){xt(ue,it)||kl(it,ue)||(ue.state.pasteIncoming=+new Date,fe.fastPoll())});function ze(it){if(!xt(ue,it)){if(ue.somethingSelected())Wa({lineWise:!1,text:ue.getSelections()});else if(ue.options.lineWiseCopyCut){var ut=Nl(ue);Wa({lineWise:!0,text:ut.text}),it.type=="cut"?ue.setSelections(ut.ranges,null,Ge):(fe.prevInput="",Se.value=ut.text.join(`
`),He(Se))}else return;it.type=="cut"&&(ue.state.cutIncoming=+new Date)}}Ot(Se,"cut",ze),Ot(Se,"copy",ze),Ot(y.scroller,"paste",function(it){if(!(gi(y,it)||xt(ue,it))){if(!Se.dispatchEvent){ue.state.pasteIncoming=+new Date,fe.focus();return}var ut=new Event("paste");ut.clipboardData=it.clipboardData,Se.dispatchEvent(ut)}}),Ot(y.lineSpace,"selectstart",function(it){gi(y,it)||Ct(it)}),Ot(Se,"compositionstart",function(){var it=ue.getCursor("from");fe.composing&&fe.composing.range.clear(),fe.composing={start:it,range:ue.markText(it,ue.getCursor("to"),{className:"CodeMirror-composing"})}}),Ot(Se,"compositionend",function(){fe.composing&&(fe.poll(),fe.composing.range.clear(),fe.composing=null)})},oi.prototype.createField=function(y){this.wrapper=_l(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(y){y?this.textarea.setAttribute("aria-label",y):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var y=this.cm,b=y.display,fe=y.doc,ue=Cs(y);if(y.options.moveInputWithCursor){var Se=ji(y,fe.sel.primary().head,"div"),ze=b.wrapper.getBoundingClientRect(),it=b.lineDiv.getBoundingClientRect();ue.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,Se.top+it.top-ze.top)),ue.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,Se.left+it.left-ze.left))}return ue},oi.prototype.showSelection=function(y){var b=this.cm,fe=b.display;Ce(fe.cursorDiv,y.cursors),Ce(fe.selectionDiv,y.selection),y.teTop!=null&&(this.wrapper.style.top=y.teTop+"px",this.wrapper.style.left=y.teLeft+"px")},oi.prototype.reset=function(y){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var fe=b.getSelection();this.textarea.value=fe,b.state.focused&&He(this.textarea),xe&&z>=9&&(this.hasSelection=fe)}else y||(this.prevInput=this.textarea.value="",xe&&z>=9&&(this.hasSelection=null))}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!se||Ae()!=this.textarea))try{this.textarea.focus()}catch(y){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var y=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){y.poll(),y.cm.state.focused&&y.slowPoll()})},oi.prototype.fastPoll=function(){var y=!1,b=this;b.pollingFast=!0;function fe(){var ue=b.poll();!ue&&!y?(y=!0,b.polling.set(60,fe)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,fe)},oi.prototype.poll=function(){var y=this,b=this.cm,fe=this.textarea,ue=this.prevInput;if(this.contextMenuPending||!b.state.focused||yr(fe)&&!ue&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var Se=fe.value;if(Se==ue&&!b.somethingSelected())return!1;if(xe&&z>=9&&this.hasSelection===Se||ce&&/[\uf700-\uf7ff]/.test(Se))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var ze=Se.charCodeAt(0);if(ze==8203&&!ue&&(ue="\u200B"),ze==8666)return this.reset(),this.cm.execCommand("undo")}for(var it=0,ut=Math.min(ue.length,Se.length);it<ut&&ue.charCodeAt(it)==Se.charCodeAt(it);)++it;return $i(b,function(){gs(b,Se.slice(it),ue.length-it,null,y.composing?"*compose":null),Se.length>1e3||Se.indexOf(`
`)>-1?fe.value=y.prevInput="":y.prevInput=Se,y.composing&&(y.composing.range.clear(),y.composing.range=b.markText(y.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){xe&&z>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(y){var b=this,fe=b.cm,ue=fe.display,Se=b.textarea;b.contextMenuPending&&b.contextMenuPending();var ze=So(fe,y),it=ue.scroller.scrollTop;if(!ze||ee)return;var ut=fe.options.resetSelectionOnContextMenu;ut&&fe.doc.sel.contains(ze)==-1&&hi(fe,Si)(fe.doc,po(ze),Ge);var dt=Se.style.cssText,mt=b.wrapper.style.cssText,Ft=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",Se.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(y.clientY-Ft.top-5)+"px; left: "+(y.clientX-Ft.left-5)+`px;
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Zt;E&&(Zt=window.scrollY),ue.input.focus(),E&&window.scrollTo(null,Zt),ue.input.reset(),fe.somethingSelected()||(Se.value=b.prevInput=" "),b.contextMenuPending=rr,ue.selForContextMenu=fe.doc.sel,clearTimeout(ue.detectingSelectAll);function nr(){if(Se.selectionStart!=null){var Mr=fe.somethingSelected(),zr="\u200B"+(Mr?Se.value:"");Se.value="\u21DA",Se.value=zr,b.prevInput=Mr?"":"\u200B",Se.selectionStart=1,Se.selectionEnd=zr.length,ue.selForContextMenu=fe.doc.sel}}function rr(){if(b.contextMenuPending==rr&&(b.contextMenuPending=!1,b.wrapper.style.cssText=mt,Se.style.cssText=dt,xe&&z<9&&ue.scrollbars.setScrollTop(ue.scroller.scrollTop=it),Se.selectionStart!=null)){(!xe||xe&&z<9)&&nr();var Mr=0,zr=function(){ue.selForContextMenu==fe.doc.sel&&Se.selectionStart==0&&Se.selectionEnd>0&&b.prevInput=="\u200B"?hi(fe,rl)(fe):Mr++<10?ue.detectingSelectAll=setTimeout(zr,500):(ue.selForContextMenu=null,ue.input.reset())};ue.detectingSelectAll=setTimeout(zr,200)}}if(xe&&z>=9&&nr(),Pe){vt(y);var Sr=function(){Dt(window,"mouseup",Sr),setTimeout(rr,20)};Ot(window,"mouseup",Sr)}else setTimeout(rr,50)},oi.prototype.readOnlyChanged=function(y){y||this.reset(),this.textarea.disabled=y=="nocursor",this.textarea.readOnly=!!y},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function Ju(y,b){if(b=b?ot(b):{},b.value=y.value,!b.tabindex&&y.tabIndex&&(b.tabindex=y.tabIndex),!b.placeholder&&y.placeholder&&(b.placeholder=y.placeholder),b.autofocus==null){var fe=Ae();b.autofocus=fe==y||y.getAttribute("autofocus")!=null&&fe==document.body}function ue(){y.value=ut.getValue()}var Se;if(y.form&&(Ot(y.form,"submit",ue),!b.leaveSubmitMethodAlone)){var ze=y.form;Se=ze.submit;try{var it=ze.submit=function(){ue(),ze.submit=Se,ze.submit(),ze.submit=it}}catch(dt){}}b.finishInit=function(dt){dt.save=ue,dt.getTextArea=function(){return y},dt.toTextArea=function(){dt.toTextArea=isNaN,ue(),y.parentNode.removeChild(dt.getWrapperElement()),y.style.display="",y.form&&(Dt(y.form,"submit",ue),!b.leaveSubmitMethodAlone&&typeof y.form.submit=="function"&&(y.form.submit=Se))}},y.style.display="none";var ut=Jn(function(dt){return y.parentNode.insertBefore(dt,y.nextSibling)},b);return ut}function Qu(y){y.off=Dt,y.on=Ot,y.wheelEventPixels=ou,y.Doc=Di,y.splitLines=fr,y.countColumn=Fe,y.findColumn=tt,y.isWordChar=Re,y.Pass=et,y.signal=Et,y.Line=_n,y.changeEnd=mo,y.scrollbarModel=Ds,y.Pos=wt,y.cmpPos=Nt,y.modes=qt,y.mimeModes=Xt,y.resolveMode=ar,y.getMode=Cr,y.modeExtensions=Ar,y.extendMode=Tr,y.copyState=Nr,y.startState=Zr,y.innerMode=jr,y.commands=ha,y.keyMap=ao,y.keyName=yl,y.isModifierKey=vl,y.lookupKey=Wo,y.normalizeKeyMap=Au,y.StringStream=Wr,y.SharedTextMarker=ca,y.TextMarker=go,y.LineWidget=ua,y.e_preventDefault=Ct,y.e_stopPropagation=Ht,y.e_stop=vt,y.addClass=ve,y.contains=Be,y.rmClass=_e,y.keyNames=yo}Uu(Jn),Ku(Jn);var qu="iter insert remove copy getEditor constructor".split(" ");for(var Ua in Di.prototype)Di.prototype.hasOwnProperty(Ua)&&rt(qu,Ua)<0&&(Jn.prototype[Ua]=function(y){return function(){return y.apply(this.doc,arguments)}}(Di.prototype[Ua]));return ht(Di),Jn.inputStyles={textarea:oi,contenteditable:Kn},Jn.defineMode=function(y){!Jn.defaults.mode&&y!="null"&&(Jn.defaults.mode=y),ur.apply(this,arguments)},Jn.defineMIME=lr,Jn.defineMode("null",function(){return{token:function(y){return y.skipToEnd()}}}),Jn.defineMIME("text/plain","null"),Jn.defineExtension=function(y,b){Jn.prototype[y]=b},Jn.defineDocExtension=function(y,b){Di.prototype[y]=b},Jn.fromTextArea=Ju,Qu(Jn),Jn.version="5.58.2",Jn})},25419:function(Jt,jt,Ie){(function(ge){ge(Ie(89780),Ie(15525),Ie(98101))})(function(ge){"use strict";ge.defineMode("markdown",function(gt,a){var Te=ge.getMode(gt,"text/html"),xe=Te.name=="null";function z(Fe){if(ge.findModeByName){var Ke=ge.findModeByName(Fe);Ke&&(Fe=Ke.mime||Ke.mimes[0])}var rt=ge.getMode(gt,Fe);return rt.name=="null"?null:rt}a.highlightFormatting===void 0&&(a.highlightFormatting=!1),a.maxBlockquoteDepth===void 0&&(a.maxBlockquoteDepth=0),a.taskLists===void 0&&(a.taskLists=!1),a.strikethrough===void 0&&(a.strikethrough=!1),a.emoji===void 0&&(a.emoji=!1),a.fencedCodeBlockHighlighting===void 0&&(a.fencedCodeBlockHighlighting=!0),a.fencedCodeBlockDefaultMode===void 0&&(a.fencedCodeBlockDefaultMode="text/plain"),a.xml===void 0&&(a.xml=!0),a.tokenTypeOverrides===void 0&&(a.tokenTypeOverrides={});var E={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 oe in E)E.hasOwnProperty(oe)&&a.tokenTypeOverrides[oe]&&(E[oe]=a.tokenTypeOverrides[oe]);var ie=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,le=/^\[(x| )\](?=\s)/i,x=a.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ne=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,ae=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,se=/^\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]/,pe=" ";function me(Fe,Ke,rt){return Ke.f=Ke.inline=rt,rt(Fe,Ke)}function he(Fe,Ke,rt){return Ke.f=Ke.block=rt,rt(Fe,Ke)}function be(Fe){return!Fe||!/\S/.test(Fe.string)}function Pe(Fe){if(Fe.linkTitle=!1,Fe.linkHref=!1,Fe.linkText=!1,Fe.em=!1,Fe.strong=!1,Fe.strikethrough=!1,Fe.quote=0,Fe.indentedCode=!1,Fe.f==_e){var Ke=xe;if(!Ke){var rt=ge.innerMode(Te,Fe.htmlState);Ke=rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText}Ke&&(Fe.f=je,Fe.block=Me,Fe.htmlState=null)}return Fe.trailingSpace=0,Fe.trailingSpaceNewLine=!1,Fe.prevLine=Fe.thisLine,Fe.thisLine={stream:null},null}function Me(Fe,Ke){var rt=Fe.column()===Ke.indentation,nt=be(Ke.prevLine.stream),et=Ke.indentedCode,Ge=Ke.prevLine.hr,Xe=Ke.list!==!1,Ve=(Ke.listStack[Ke.listStack.length-1]||0)+3;Ke.indentedCode=!1;var tt=Ke.indentation;if(Ke.indentationDiff===null&&(Ke.indentationDiff=Ke.indentation,Xe)){for(Ke.list=null;tt<Ke.listStack[Ke.listStack.length-1];)Ke.listStack.pop(),Ke.listStack.length?Ke.indentation=Ke.listStack[Ke.listStack.length-1]:Ke.list=!1;Ke.list!==!1&&(Ke.indentationDiff=tt-Ke.listStack[Ke.listStack.length-1])}var Qe=!nt&&!Ge&&!Ke.prevLine.header&&(!Xe||!et)&&!Ke.prevLine.fencedCodeEnd,ct=(Ke.list===!1||Ge||nt)&&Ke.indentation<=Ve&&Fe.match(ie),at=null;if(Ke.indentationDiff>=4&&(et||Ke.prevLine.fencedCodeEnd||Ke.prevLine.header||nt))return Fe.skipToEnd(),Ke.indentedCode=!0,E.code;if(Fe.eatSpace())return null;if(rt&&Ke.indentation<=Ve&&(at=Fe.match(x))&&at[1].length<=6)return Ke.quote=0,Ke.header=at[1].length,Ke.thisLine.header=!0,a.highlightFormatting&&(Ke.formatting="header"),Ke.f=Ke.inline,Ce(Ke);if(Ke.indentation<=Ve&&Fe.eat(">"))return Ke.quote=rt?1:Ke.quote+1,a.highlightFormatting&&(Ke.formatting="quote"),Fe.eatSpace(),Ce(Ke);if(!ct&&!Ke.setext&&rt&&Ke.indentation<=Ve&&(at=Fe.match(ee))){var qe=at[1]?"ol":"ul";return Ke.indentation=tt+Fe.current().length,Ke.list=!0,Ke.quote=0,Ke.listStack.push(Ke.indentation),Ke.em=!1,Ke.strong=!1,Ke.code=!1,Ke.strikethrough=!1,a.taskLists&&Fe.match(le,!1)&&(Ke.taskList=!0),Ke.f=Ke.inline,a.highlightFormatting&&(Ke.formatting=["list","list-"+qe]),Ce(Ke)}else{if(rt&&Ke.indentation<=Ve&&(at=Fe.match(ae,!0)))return Ke.quote=0,Ke.fencedEndRE=new RegExp(at[1]+"+ *$"),Ke.localMode=a.fencedCodeBlockHighlighting&&z(at[2]||a.fencedCodeBlockDefaultMode),Ke.localMode&&(Ke.localState=ge.startState(Ke.localMode)),Ke.f=Ke.block=De,a.highlightFormatting&&(Ke.formatting="code-block"),Ke.code=-1,Ce(Ke);if(Ke.setext||(!Qe||!Xe)&&!Ke.quote&&Ke.list===!1&&!Ke.code&&!ct&&!se.test(Fe.string)&&(at=Fe.lookAhead(1))&&(at=at.match(ne)))return Ke.setext?(Ke.header=Ke.setext,Ke.setext=0,Fe.skipToEnd(),a.highlightFormatting&&(Ke.formatting="header")):(Ke.header=at[0].charAt(0)=="="?1:2,Ke.setext=Ke.header),Ke.thisLine.header=!0,Ke.f=Ke.inline,Ce(Ke);if(ct)return Fe.skipToEnd(),Ke.hr=!0,Ke.thisLine.hr=!0,E.hr;if(Fe.peek()==="[")return me(Fe,Ke,Ue)}return me(Fe,Ke,Ke.inline)}function _e(Fe,Ke){var rt=Te.token(Fe,Ke.htmlState);if(!xe){var nt=ge.innerMode(Te,Ke.htmlState);(nt.mode.name=="xml"&&nt.state.tagStart===null&&!nt.state.context&&nt.state.tokenize.isInText||Ke.md_inside&&Fe.current().indexOf(">")>-1)&&(Ke.f=je,Ke.block=Me,Ke.htmlState=null)}return rt}function De(Fe,Ke){var rt=Ke.listStack[Ke.listStack.length-1]||0,nt=Ke.indentation<rt,et=rt+3;if(Ke.fencedEndRE&&Ke.indentation<=et&&(nt||Fe.match(Ke.fencedEndRE))){a.highlightFormatting&&(Ke.formatting="code-block");var Ge;return nt||(Ge=Ce(Ke)),Ke.localMode=Ke.localState=null,Ke.block=Me,Ke.f=je,Ke.fencedEndRE=null,Ke.code=0,Ke.thisLine.fencedCodeEnd=!0,nt?he(Fe,Ke,Ke.block):Ge}else return Ke.localMode?Ke.localMode.token(Fe,Ke.localState):(Fe.skipToEnd(),E.code)}function Ce(Fe){var Ke=[];if(Fe.formatting){Ke.push(E.formatting),typeof Fe.formatting=="string"&&(Fe.formatting=[Fe.formatting]);for(var rt=0;rt<Fe.formatting.length;rt++)Ke.push(E.formatting+"-"+Fe.formatting[rt]),Fe.formatting[rt]==="header"&&Ke.push(E.formatting+"-"+Fe.formatting[rt]+"-"+Fe.header),Fe.formatting[rt]==="quote"&&(!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Fe.quote?Ke.push(E.formatting+"-"+Fe.formatting[rt]+"-"+Fe.quote):Ke.push("error"))}if(Fe.taskOpen)return Ke.push("meta"),Ke.length?Ke.join(" "):null;if(Fe.taskClosed)return Ke.push("property"),Ke.length?Ke.join(" "):null;if(Fe.linkHref?Ke.push(E.linkHref,"url"):(Fe.strong&&Ke.push(E.strong),Fe.em&&Ke.push(E.em),Fe.strikethrough&&Ke.push(E.strikethrough),Fe.emoji&&Ke.push(E.emoji),Fe.linkText&&Ke.push(E.linkText),Fe.code&&Ke.push(E.code),Fe.image&&Ke.push(E.image),Fe.imageAltText&&Ke.push(E.imageAltText,"link"),Fe.imageMarker&&Ke.push(E.imageMarker)),Fe.header&&Ke.push(E.header,E.header+"-"+Fe.header),Fe.quote&&(Ke.push(E.quote),!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Fe.quote?Ke.push(E.quote+"-"+Fe.quote):Ke.push(E.quote+"-"+a.maxBlockquoteDepth)),Fe.list!==!1){var nt=(Fe.listStack.length-1)%3;nt?nt===1?Ke.push(E.list2):Ke.push(E.list3):Ke.push(E.list1)}return Fe.trailingSpaceNewLine?Ke.push("trailing-space-new-line"):Fe.trailingSpace&&Ke.push("trailing-space-"+(Fe.trailingSpace%2?"a":"b")),Ke.length?Ke.join(" "):null}function Ee(Fe,Ke){if(Fe.match(re,!0))return Ce(Ke)}function je(Fe,Ke){var rt=Ke.text(Fe,Ke);if(typeof rt!="undefined")return rt;if(Ke.list)return Ke.list=null,Ce(Ke);if(Ke.taskList){var nt=Fe.match(le,!0)[1]===" ";return nt?Ke.taskOpen=!0:Ke.taskClosed=!0,a.highlightFormatting&&(Ke.formatting="task"),Ke.taskList=!1,Ce(Ke)}if(Ke.taskOpen=!1,Ke.taskClosed=!1,Ke.header&&Fe.match(/^#+$/,!0))return a.highlightFormatting&&(Ke.formatting="header"),Ce(Ke);var et=Fe.next();if(Ke.linkTitle){Ke.linkTitle=!1;var Ge=et;et==="("&&(Ge=")"),Ge=(Ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Xe="^\\s*(?:[^"+Ge+"\\\\]+|\\\\\\\\|\\\\.)"+Ge;if(Fe.match(new RegExp(Xe),!0))return E.linkHref}if(et==="`"){var Ve=Ke.formatting;a.highlightFormatting&&(Ke.formatting="code"),Fe.eatWhile("`");var tt=Fe.current().length;if(Ke.code==0&&(!Ke.quote||tt==1))return Ke.code=tt,Ce(Ke);if(tt==Ke.code){var Qe=Ce(Ke);return Ke.code=0,Qe}else return Ke.formatting=Ve,Ce(Ke)}else if(Ke.code)return Ce(Ke);if(et==="\\"&&(Fe.next(),a.highlightFormatting)){var ct=Ce(Ke),at=E.formatting+"-escape";return ct?ct+" "+at:at}if(et==="!"&&Fe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ke.imageMarker=!0,Ke.image=!0,a.highlightFormatting&&(Ke.formatting="image"),Ce(Ke);if(et==="["&&Ke.imageMarker&&Fe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ke.imageMarker=!1,Ke.imageAltText=!0,a.highlightFormatting&&(Ke.formatting="image"),Ce(Ke);if(et==="]"&&Ke.imageAltText){a.highlightFormatting&&(Ke.formatting="image");var ct=Ce(Ke);return Ke.imageAltText=!1,Ke.image=!1,Ke.inline=Ke.f=Be,ct}if(et==="["&&!Ke.image)return Ke.linkText&&Fe.match(/^.*?\]/)||(Ke.linkText=!0,a.highlightFormatting&&(Ke.formatting="link")),Ce(Ke);if(et==="]"&&Ke.linkText){a.highlightFormatting&&(Ke.formatting="link");var ct=Ce(Ke);return Ke.linkText=!1,Ke.inline=Ke.f=Fe.match(/\(.*?\)| ?\[.*?\]/,!1)?Be:je,ct}if(et==="<"&&Fe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ke.f=Ke.inline=ke,a.highlightFormatting&&(Ke.formatting="link");var ct=Ce(Ke);return ct?ct+=" ":ct="",ct+E.linkInline}if(et==="<"&&Fe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ke.f=Ke.inline=ke,a.highlightFormatting&&(Ke.formatting="link");var ct=Ce(Ke);return ct?ct+=" ":ct="",ct+E.linkEmail}if(a.xml&&et==="<"&&Fe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var qe=Fe.string.indexOf(">",Fe.pos);if(qe!=-1){var Le=Fe.string.substring(Fe.start,qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Le)&&(Ke.md_inside=!0)}return Fe.backUp(1),Ke.htmlState=ge.startState(Te),he(Fe,Ke,_e)}if(a.xml&&et==="<"&&Fe.match(/^\/\w*?>/))return Ke.md_inside=!1,"tag";if(et==="*"||et==="_"){for(var Ne=1,te=Fe.pos==1?" ":Fe.string.charAt(Fe.pos-2);Ne<3&&Fe.eat(et);)Ne++;var de=Fe.peek()||" ",Re=!/\s/.test(de)&&(!ce.test(de)||/\s/.test(te)||ce.test(te)),We=!/\s/.test(te)&&(!ce.test(te)||/\s/.test(de)||ce.test(de)),we=null,ye=null;if(Ne%2&&(!Ke.em&&Re&&(et==="*"||!We||ce.test(te))?we=!0:Ke.em==et&&We&&(et==="*"||!Re||ce.test(de))&&(we=!1)),Ne>1&&(!Ke.strong&&Re&&(et==="*"||!We||ce.test(te))?ye=!0:Ke.strong==et&&We&&(et==="*"||!Re||ce.test(de))&&(ye=!1)),ye!=null||we!=null){a.highlightFormatting&&(Ke.formatting=we==null?"strong":ye==null?"em":"strong em"),we===!0&&(Ke.em=et),ye===!0&&(Ke.strong=et);var Qe=Ce(Ke);return we===!1&&(Ke.em=!1),ye===!1&&(Ke.strong=!1),Qe}}else if(et===" "&&(Fe.eat("*")||Fe.eat("_"))){if(Fe.peek()===" ")return Ce(Ke);Fe.backUp(1)}if(a.strikethrough){if(et==="~"&&Fe.eatWhile(et)){if(Ke.strikethrough){a.highlightFormatting&&(Ke.formatting="strikethrough");var Qe=Ce(Ke);return Ke.strikethrough=!1,Qe}else if(Fe.match(/^[^\s]/,!1))return Ke.strikethrough=!0,a.highlightFormatting&&(Ke.formatting="strikethrough"),Ce(Ke)}else if(et===" "&&Fe.match(/^~~/,!0)){if(Fe.peek()===" ")return Ce(Ke);Fe.backUp(2)}}if(a.emoji&&et===":"&&Fe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ke.emoji=!0,a.highlightFormatting&&(Ke.formatting="emoji");var Oe=Ce(Ke);return Ke.emoji=!1,Oe}return et===" "&&(Fe.match(/^ +$/,!1)?Ke.trailingSpace++:Ke.trailingSpace&&(Ke.trailingSpaceNewLine=!0)),Ce(Ke)}function ke(Fe,Ke){var rt=Fe.next();if(rt===">"){Ke.f=Ke.inline=je,a.highlightFormatting&&(Ke.formatting="link");var nt=Ce(Ke);return nt?nt+=" ":nt="",nt+E.linkInline}return Fe.match(/^[^>]+/,!0),E.linkInline}function Be(Fe,Ke){if(Fe.eatSpace())return null;var rt=Fe.next();return rt==="("||rt==="["?(Ke.f=Ke.inline=ve(rt==="("?")":"]"),a.highlightFormatting&&(Ke.formatting="link-string"),Ke.linkHref=!0,Ce(Ke)):"error"}var Ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ve(Fe){return function(Ke,rt){var nt=Ke.next();if(nt===Fe){rt.f=rt.inline=je,a.highlightFormatting&&(rt.formatting="link-string");var et=Ce(rt);return rt.linkHref=!1,et}return Ke.match(Ae[Fe]),rt.linkHref=!0,Ce(rt)}}function Ue(Fe,Ke){return Fe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ke.f=He,Fe.next(),a.highlightFormatting&&(Ke.formatting="link"),Ke.linkText=!0,Ce(Ke)):me(Fe,Ke,je)}function He(Fe,Ke){if(Fe.match(/^\]:/,!0)){Ke.f=Ke.inline=Ye,a.highlightFormatting&&(Ke.formatting="link");var rt=Ce(Ke);return Ke.linkText=!1,rt}return Fe.match(/^([^\]\\]|\\.)+/,!0),E.linkText}function Ye(Fe,Ke){return Fe.eatSpace()?null:(Fe.match(/^[^\s]+/,!0),Fe.peek()===void 0?Ke.linkTitle=!0:Fe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ke.f=Ke.inline=je,E.linkHref+" url")}var ot={startState:function(){return{f:Me,prevLine:{stream:null},thisLine:{stream:null},block:Me,htmlState:null,indentation:0,inline:je,text:Ee,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(Fe){return{f:Fe.f,prevLine:Fe.prevLine,thisLine:Fe.thisLine,block:Fe.block,htmlState:Fe.htmlState&&ge.copyState(Te,Fe.htmlState),indentation:Fe.indentation,localMode:Fe.localMode,localState:Fe.localMode?ge.copyState(Fe.localMode,Fe.localState):null,inline:Fe.inline,text:Fe.text,formatting:!1,linkText:Fe.linkText,linkTitle:Fe.linkTitle,linkHref:Fe.linkHref,code:Fe.code,em:Fe.em,strong:Fe.strong,strikethrough:Fe.strikethrough,emoji:Fe.emoji,header:Fe.header,setext:Fe.setext,hr:Fe.hr,taskList:Fe.taskList,list:Fe.list,listStack:Fe.listStack.slice(0),quote:Fe.quote,indentedCode:Fe.indentedCode,trailingSpace:Fe.trailingSpace,trailingSpaceNewLine:Fe.trailingSpaceNewLine,md_inside:Fe.md_inside,fencedEndRE:Fe.fencedEndRE}},token:function(Fe,Ke){if(Ke.formatting=!1,Fe!=Ke.thisLine.stream){if(Ke.header=0,Ke.hr=!1,Fe.match(/^\s*$/,!0))return Pe(Ke),null;if(Ke.prevLine=Ke.thisLine,Ke.thisLine={stream:Fe},Ke.taskList=!1,Ke.trailingSpace=0,Ke.trailingSpaceNewLine=!1,!Ke.localState&&(Ke.f=Ke.block,Ke.f!=_e)){var rt=Fe.match(/^\s*/,!0)[0].replace(/\t/g,pe).length;if(Ke.indentation=rt,Ke.indentationDiff=null,rt>0)return null}}return Ke.f(Fe,Ke)},innerMode:function(Fe){return Fe.block==_e?{state:Fe.htmlState,mode:Te}:Fe.localState?{state:Fe.localState,mode:Fe.localMode}:{state:Fe,mode:ot}},indent:function(Fe,Ke,rt){return Fe.block==_e&&Te.indent?Te.indent(Fe.htmlState,Ke,rt):Fe.localState&&Fe.localMode.indent?Fe.localMode.indent(Fe.localState,Ke,rt):ge.Pass},blankLine:Pe,getType:Ce,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ot},"xml"),ge.defineMIME("text/markdown","markdown"),ge.defineMIME("text/x-markdown","markdown")})},98101:function(Jt,jt,Ie){(function(ge){ge(Ie(89780))})(function(ge){"use strict";ge.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 gt=0;gt<ge.modeInfo.length;gt++){var a=ge.modeInfo[gt];a.mimes&&(a.mime=a.mimes[0])}ge.findModeByMIME=function(Te){Te=Te.toLowerCase();for(var xe=0;xe<ge.modeInfo.length;xe++){var z=ge.modeInfo[xe];if(z.mime==Te)return z;if(z.mimes){for(var E=0;E<z.mimes.length;E++)if(z.mimes[E]==Te)return z}}if(/\+xml$/.test(Te))return ge.findModeByMIME("application/xml");if(/\+json$/.test(Te))return ge.findModeByMIME("application/json")},ge.findModeByExtension=function(Te){Te=Te.toLowerCase();for(var xe=0;xe<ge.modeInfo.length;xe++){var z=ge.modeInfo[xe];if(z.ext){for(var E=0;E<z.ext.length;E++)if(z.ext[E]==Te)return z}}},ge.findModeByFileName=function(Te){for(var xe=0;xe<ge.modeInfo.length;xe++){var z=ge.modeInfo[xe];if(z.file&&z.file.test(Te))return z}var E=Te.lastIndexOf("."),oe=E>-1&&Te.substring(E+1,Te.length);if(oe)return ge.findModeByExtension(oe)},ge.findModeByName=function(Te){Te=Te.toLowerCase();for(var xe=0;xe<ge.modeInfo.length;xe++){var z=ge.modeInfo[xe];if(z.name.toLowerCase()==Te)return z;if(z.alias){for(var E=0;E<z.alias.length;E++)if(z.alias[E].toLowerCase()==Te)return z}}}})},67549:function(Jt,jt,Ie){(function(ge){ge(Ie(89780))})(function(ge){"use strict";ge.defineMode("stex",function(gt,a){"use strict";function Te(re,ae){re.cmdState.push(ae)}function xe(re){return re.cmdState.length>0?re.cmdState[re.cmdState.length-1]:null}function z(re){var ae=re.cmdState.pop();ae&&ae.closeBracket()}function E(re){for(var ae=re.cmdState,se=ae.length-1;se>=0;se--){var ce=ae[se];if(ce.name!="DEFAULT")return ce}return{styleIdentifier:function(){return null}}}function oe(re,ae,se){return function(){this.name=re,this.bracketNo=0,this.style=ae,this.styles=se,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ie={};ie.importmodule=oe("importmodule","tag",["string","builtin"]),ie.documentclass=oe("documentclass","tag",["","atom"]),ie.usepackage=oe("usepackage","tag",["atom"]),ie.begin=oe("begin","tag",["atom"]),ie.end=oe("end","tag",["atom"]),ie.label=oe("label","tag",["atom"]),ie.ref=oe("ref","tag",["atom"]),ie.eqref=oe("eqref","tag",["atom"]),ie.cite=oe("cite","tag",["atom"]),ie.bibitem=oe("bibitem","tag",["atom"]),ie.Bibitem=oe("Bibitem","tag",["atom"]),ie.RBibitem=oe("RBibitem","tag",["atom"]),ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(re,ae){re.f=ae}function le(re,ae){var se;if(re.match(/^\\[a-zA-Z@]+/)){var ce=re.current().slice(1);return se=ie.hasOwnProperty(ce)?ie[ce]:ie.DEFAULT,se=new se,Te(ae,se),ee(ae,ne),se.style}if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/\\]/))return"tag";if(re.match("\\["))return ee(ae,function(me,he){return x(me,he,"\\]")}),"keyword";if(re.match("\\("))return ee(ae,function(me,he){return x(me,he,"\\)")}),"keyword";if(re.match("$$"))return ee(ae,function(me,he){return x(me,he,"$$")}),"keyword";if(re.match("$"))return ee(ae,function(me,he){return x(me,he,"$")}),"keyword";var pe=re.next();if(pe=="%")return re.skipToEnd(),"comment";if(pe=="}"||pe=="]"){if(se=xe(ae),se)se.closeBracket(pe),ee(ae,ne);else return"error";return"bracket"}else return pe=="{"||pe=="["?(se=ie.DEFAULT,se=new se,Te(ae,se),"bracket"):/\d/.test(pe)?(re.eatWhile(/[\w.%]/),"atom"):(re.eatWhile(/[\w\-_]/),se=E(ae),se.name=="begin"&&(se.argument=re.current()),se.styleIdentifier())}function x(re,ae,se){if(re.eatSpace())return null;if(se&&re.match(se))return ee(ae,le),"keyword";if(re.match(/^\\[a-zA-Z@]+/))return"tag";if(re.match(/^[a-zA-Z]+/))return"variable-2";if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/]/)||re.match(/^[\^_&]/))return"tag";if(re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ce=re.next();return ce=="{"||ce=="}"||ce=="["||ce=="]"||ce=="("||ce==")"?"bracket":ce=="%"?(re.skipToEnd(),"comment"):"error"}function ne(re,ae){var se=re.peek(),ce;return se=="{"||se=="["?(ce=xe(ae),ce.openBracket(se),re.eat(se),ee(ae,le),"bracket"):/[ \t\r]/.test(se)?(re.eat(se),null):(ee(ae,le),z(ae),le(re,ae))}return{startState:function(){var re=a.inMathMode?function(ae,se){return x(ae,se)}:le;return{cmdState:[],f:re}},copyState:function(re){return{cmdState:re.cmdState.slice(),f:re.f}},token:function(re,ae){return ae.f(re,ae)},blankLine:function(re){re.f=le,re.cmdState.length=0},lineComment:"%"}}),ge.defineMIME("text/x-stex","stex"),ge.defineMIME("text/x-latex","stex")})},15525:function(Jt,jt,Ie){(function(ge){ge(Ie(89780))})(function(ge){"use strict";var gt={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},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ge.defineMode("xml",function(Te,xe){var z=Te.indentUnit,E={},oe=xe.htmlMode?gt:a;for(var ie in oe)E[ie]=oe[ie];for(var ie in xe)E[ie]=xe[ie];var ee,le;function x(ke,Be){function Ae(He){return Be.tokenize=He,He(ke,Be)}var ve=ke.next();if(ve=="<")return ke.eat("!")?ke.eat("[")?ke.match("CDATA[")?Ae(ae("atom","]]>")):null:ke.match("--")?Ae(ae("comment","-->")):ke.match("DOCTYPE",!0,!0)?(ke.eatWhile(/[\w\._\-]/),Ae(se(1))):null:ke.eat("?")?(ke.eatWhile(/[\w\._\-]/),Be.tokenize=ae("meta","?>"),"meta"):(ee=ke.eat("/")?"closeTag":"openTag",Be.tokenize=ne,"tag bracket");if(ve=="&"){var Ue;return ke.eat("#")?ke.eat("x")?Ue=ke.eatWhile(/[a-fA-F\d]/)&&ke.eat(";"):Ue=ke.eatWhile(/[\d]/)&&ke.eat(";"):Ue=ke.eatWhile(/[\w\.\-:]/)&&ke.eat(";"),Ue?"atom":"error"}else return ke.eatWhile(/[^&<]/),null}x.isInText=!0;function ne(ke,Be){var Ae=ke.next();if(Ae==">"||Ae=="/"&&ke.eat(">"))return Be.tokenize=x,ee=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return ee="equals",null;if(Ae=="<"){Be.tokenize=x,Be.state=he,Be.tagName=Be.tagStart=null;var ve=Be.tokenize(ke,Be);return ve?ve+" tag error":"tag error"}else return/[\'\"]/.test(Ae)?(Be.tokenize=re(Ae),Be.stringStartCol=ke.column(),Be.tokenize(ke,Be)):(ke.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(ke){var Be=function(Ae,ve){for(;!Ae.eol();)if(Ae.next()==ke){ve.tokenize=ne;break}return"string"};return Be.isInAttribute=!0,Be}function ae(ke,Be){return function(Ae,ve){for(;!Ae.eol();){if(Ae.match(Be)){ve.tokenize=x;break}Ae.next()}return ke}}function se(ke){return function(Be,Ae){for(var ve;(ve=Be.next())!=null;){if(ve=="<")return Ae.tokenize=se(ke+1),Ae.tokenize(Be,Ae);if(ve==">")if(ke==1){Ae.tokenize=x;break}else return Ae.tokenize=se(ke-1),Ae.tokenize(Be,Ae)}return"meta"}}function ce(ke,Be,Ae){this.prev=ke.context,this.tagName=Be,this.indent=ke.indented,this.startOfLine=Ae,(E.doNotIndent.hasOwnProperty(Be)||ke.context&&ke.context.noIndent)&&(this.noIndent=!0)}function pe(ke){ke.context&&(ke.context=ke.context.prev)}function me(ke,Be){for(var Ae;;){if(!ke.context||(Ae=ke.context.tagName,!E.contextGrabbers.hasOwnProperty(Ae)||!E.contextGrabbers[Ae].hasOwnProperty(Be)))return;pe(ke)}}function he(ke,Be,Ae){return ke=="openTag"?(Ae.tagStart=Be.column(),be):ke=="closeTag"?Pe:he}function be(ke,Be,Ae){return ke=="word"?(Ae.tagName=Be.current(),le="tag",De):E.allowMissingTagName&&ke=="endTag"?(le="tag bracket",De(ke,Be,Ae)):(le="error",be)}function Pe(ke,Be,Ae){if(ke=="word"){var ve=Be.current();return Ae.context&&Ae.context.tagName!=ve&&E.implicitlyClosed.hasOwnProperty(Ae.context.tagName)&&pe(Ae),Ae.context&&Ae.context.tagName==ve||E.matchClosing===!1?(le="tag",Me):(le="tag error",_e)}else return E.allowMissingTagName&&ke=="endTag"?(le="tag bracket",Me(ke,Be,Ae)):(le="error",_e)}function Me(ke,Be,Ae){return ke!="endTag"?(le="error",Me):(pe(Ae),he)}function _e(ke,Be,Ae){return le="error",Me(ke,Be,Ae)}function De(ke,Be,Ae){if(ke=="word")return le="attribute",Ce;if(ke=="endTag"||ke=="selfcloseTag"){var ve=Ae.tagName,Ue=Ae.tagStart;return Ae.tagName=Ae.tagStart=null,ke=="selfcloseTag"||E.autoSelfClosers.hasOwnProperty(ve)?me(Ae,ve):(me(Ae,ve),Ae.context=new ce(Ae,ve,Ue==Ae.indented)),he}return le="error",De}function Ce(ke,Be,Ae){return ke=="equals"?Ee:(E.allowMissing||(le="error"),De(ke,Be,Ae))}function Ee(ke,Be,Ae){return ke=="string"?je:ke=="word"&&E.allowUnquoted?(le="string",De):(le="error",De(ke,Be,Ae))}function je(ke,Be,Ae){return ke=="string"?je:De(ke,Be,Ae)}return{startState:function(ke){var Be={tokenize:x,state:he,indented:ke||0,tagName:null,tagStart:null,context:null};return ke!=null&&(Be.baseIndent=ke),Be},token:function(ke,Be){if(!Be.tagName&&ke.sol()&&(Be.indented=ke.indentation()),ke.eatSpace())return null;ee=null;var Ae=Be.tokenize(ke,Be);return(Ae||ee)&&Ae!="comment"&&(le=null,Be.state=Be.state(ee||Ae,ke,Be),le&&(Ae=le=="error"?Ae+" error":le)),Ae},indent:function(ke,Be,Ae){var ve=ke.context;if(ke.tokenize.isInAttribute)return ke.tagStart==ke.indented?ke.stringStartCol+1:ke.indented+z;if(ve&&ve.noIndent)return ge.Pass;if(ke.tokenize!=ne&&ke.tokenize!=x)return Ae?Ae.match(/^(\s*)/)[0].length:0;if(ke.tagName)return E.multilineTagIndentPastTag!==!1?ke.tagStart+ke.tagName.length+2:ke.tagStart+z*(E.multilineTagIndentFactor||1);if(E.alignCDATA&&/<!\[CDATA\[/.test(Be))return 0;var Ue=Be&&/^<(\/)?([\w_:\.-]*)/.exec(Be);if(Ue&&Ue[1])for(;ve;)if(ve.tagName==Ue[2]){ve=ve.prev;break}else if(E.implicitlyClosed.hasOwnProperty(ve.tagName))ve=ve.prev;else break;else if(Ue)for(;ve;){var He=E.contextGrabbers[ve.tagName];if(He&&He.hasOwnProperty(Ue[2]))ve=ve.prev;else break}for(;ve&&ve.prev&&!ve.startOfLine;)ve=ve.prev;return ve?ve.indent+z:ke.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:E.htmlMode?"html":"xml",helperType:E.htmlMode?"html":"xml",skipAttribute:function(ke){ke.state==Ee&&(ke.state=De)},xmlCurrentTag:function(ke){return ke.tagName?{name:ke.tagName,close:ke.type=="closeTag"}:null},xmlCurrentContext:function(ke){for(var Be=[],Ae=ke.context;Ae;Ae=Ae.prev)Ae.tagName&&Be.push(Ae.tagName);return Be.reverse()}}}),ge.defineMIME("text/xml","xml"),ge.defineMIME("application/xml","xml"),ge.mimeModes.hasOwnProperty("text/html")||ge.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Jt,jt,Ie){var ge,gt;(function(a,Te){Jt.exports=Te(a)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ie.g!="undefined"?Ie.g:this,function(a){"use strict";a=a||{};var Te=a.Base64,xe="2.6.4",z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=function(Ae){for(var ve={},Ue=0,He=Ae.length;Ue<He;Ue++)ve[Ae.charAt(Ue)]=Ue;return ve}(z),oe=String.fromCharCode,ie=function(Ae){if(Ae.length<2){var ve=Ae.charCodeAt(0);return ve<128?Ae:ve<2048?oe(192|ve>>>6)+oe(128|ve&63):oe(224|ve>>>12&15)+oe(128|ve>>>6&63)+oe(128|ve&63)}else{var ve=65536+(Ae.charCodeAt(0)-55296)*1024+(Ae.charCodeAt(1)-56320);return oe(240|ve>>>18&7)+oe(128|ve>>>12&63)+oe(128|ve>>>6&63)+oe(128|ve&63)}},ee=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,le=function(Ae){return Ae.replace(ee,ie)},x=function(Ae){var ve=[0,2,1][Ae.length%3],Ue=Ae.charCodeAt(0)<<16|(Ae.length>1?Ae.charCodeAt(1):0)<<8|(Ae.length>2?Ae.charCodeAt(2):0),He=[z.charAt(Ue>>>18),z.charAt(Ue>>>12&63),ve>=2?"=":z.charAt(Ue>>>6&63),ve>=1?"=":z.charAt(Ue&63)];return He.join("")},ne=a.btoa&&typeof a.btoa=="function"?function(Ae){return a.btoa(Ae)}:function(Ae){if(Ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ae.replace(/[\s\S]{1,3}/g,x)},re=function(Ae){return ne(le(String(Ae)))},ae=function(Ae){return Ae.replace(/[+\/]/g,function(ve){return ve=="+"?"-":"_"}).replace(/=/g,"")},se=function(Ae,ve){return ve?ae(re(Ae)):re(Ae)},ce=function(Ae){return se(Ae,!0)},pe;a.Uint8Array&&(pe=function(Ae,ve){for(var Ue="",He=0,Ye=Ae.length;He<Ye;He+=3){var ot=Ae[He],Fe=Ae[He+1],Ke=Ae[He+2],rt=ot<<16|Fe<<8|Ke;Ue+=z.charAt(rt>>>18)+z.charAt(rt>>>12&63)+(typeof Fe!="undefined"?z.charAt(rt>>>6&63):"=")+(typeof Ke!="undefined"?z.charAt(rt&63):"=")}return ve?ae(Ue):Ue});var me=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,he=function(Ae){switch(Ae.length){case 4:var ve=(7&Ae.charCodeAt(0))<<18|(63&Ae.charCodeAt(1))<<12|(63&Ae.charCodeAt(2))<<6|63&Ae.charCodeAt(3),Ue=ve-65536;return oe((Ue>>>10)+55296)+oe((Ue&1023)+56320);case 3:return oe((15&Ae.charCodeAt(0))<<12|(63&Ae.charCodeAt(1))<<6|63&Ae.charCodeAt(2));default:return oe((31&Ae.charCodeAt(0))<<6|63&Ae.charCodeAt(1))}},be=function(Ae){return Ae.replace(me,he)},Pe=function(Ae){var ve=Ae.length,Ue=ve%4,He=(ve>0?E[Ae.charAt(0)]<<18:0)|(ve>1?E[Ae.charAt(1)]<<12:0)|(ve>2?E[Ae.charAt(2)]<<6:0)|(ve>3?E[Ae.charAt(3)]:0),Ye=[oe(He>>>16),oe(He>>>8&255),oe(He&255)];return Ye.length-=[0,0,2,1][Ue],Ye.join("")},Me=a.atob&&typeof a.atob=="function"?function(Ae){return a.atob(Ae)}:function(Ae){return Ae.replace(/\S{1,4}/g,Pe)},_e=function(Ae){return Me(String(Ae).replace(/[^A-Za-z0-9\+\/]/g,""))},De=function(Ae){return be(Me(Ae))},Ce=function(Ae){return String(Ae).replace(/[-_]/g,function(ve){return ve=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Ae){return De(Ce(Ae))},je;a.Uint8Array&&(je=function(Ae){return Uint8Array.from(_e(Ce(Ae)),function(ve){return ve.charCodeAt(0)})});var ke=function(){var Ae=a.Base64;return a.Base64=Te,Ae};if(a.Base64={VERSION:xe,atob:_e,btoa:ne,fromBase64:Ee,toBase64:se,utob:le,encode:se,encodeURI:ce,btou:be,decode:Ee,noConflict:ke,fromUint8Array:pe,toUint8Array:je},typeof Object.defineProperty=="function"){var Be=function(Ae){return{value:Ae,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Be(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",Be(function(Ae){return se(this,Ae)})),Object.defineProperty(String.prototype,"toBase64URI",Be(function(){return se(this,!0)}))}}return a.Meteor&&(Base64=a.Base64),Jt.exports?Jt.exports.Base64=a.Base64:(ge=[],gt=function(){return a.Base64}.apply(jt,ge),gt!==void 0&&(Jt.exports=gt)),{Base64:a.Base64}})},2859:function(Jt,jt,Ie){"use strict";Ie.d(jt,{hP:function(){return Le}});var ge=function(Ne,te){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,Re){de.__proto__=Re}||function(de,Re){for(var We in Re)Object.prototype.hasOwnProperty.call(Re,We)&&(de[We]=Re[We])})(Ne,te)};function gt(Ne,te){function de(){this.constructor=Ne}ge(Ne,te),Ne.prototype=te===null?Object.create(te):(de.prototype=te.prototype,new de)}function a(Ne,te,de,Re){return new(de||(de=Promise))(function(We,we){function ye(Ze){try{$e(Re.next(Ze))}catch(Je){we(Je)}}function Oe(Ze){try{$e(Re.throw(Ze))}catch(Je){we(Je)}}function $e(Ze){var Je;Ze.done?We(Ze.value):(Je=Ze.value,Je instanceof de?Je:new de(function(st){st(Je)})).then(ye,Oe)}$e((Re=Re.apply(Ne,te||[])).next())})}function Te(Ne,te){var de,Re,We,we,ye={label:0,sent:function(){if(1&We[0])throw We[1];return We[1]},trys:[],ops:[]};return we={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function Oe($e){return function(Ze){return function(Je){if(de)throw new TypeError("Generator is already executing.");for(;ye;)try{if(de=1,Re&&(We=2&Je[0]?Re.return:Je[0]?Re.throw||((We=Re.return)&&We.call(Re),0):Re.next)&&!(We=We.call(Re,Je[1])).done)return We;switch(Re=0,We&&(Je=[2&Je[0],We.value]),Je[0]){case 0:case 1:We=Je;break;case 4:return ye.label++,{value:Je[1],done:!1};case 5:ye.label++,Re=Je[1],Je=[0];continue;case 7:Je=ye.ops.pop(),ye.trys.pop();continue;default:if(We=ye.trys,!((We=We.length>0&&We[We.length-1])||Je[0]!==6&&Je[0]!==2)){ye=0;continue}if(Je[0]===3&&(!We||Je[1]>We[0]&&Je[1]<We[3])){ye.label=Je[1];break}if(Je[0]===6&&ye.label<We[1]){ye.label=We[1],We=Je;break}if(We&&ye.label<We[2]){ye.label=We[2],ye.ops.push(Je);break}We[2]&&ye.ops.pop(),ye.trys.pop();continue}Je=te.call(Ne,ye)}catch(st){Je=[6,st],Re=0}finally{de=We=0}if(5&Je[0])throw Je[1];return{value:Je[0]?Je[1]:void 0,done:!0}}([$e,Ze])}}}function xe(){for(var Ne=0,te=0,de=arguments.length;te<de;te++)Ne+=arguments[te].length;var Re=Array(Ne),We=0;for(te=0;te<de;te++)for(var we=arguments[te],ye=0,Oe=we.length;ye<Oe;ye++,We++)Re[We]=we[ye];return Re}var z=function(){function Ne(){}return Ne.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ne.setAttributes=function(te,de){for(var Re=0,We=de;Re<We.length;Re++){var we=We[Re],ye=we[0],Oe=we[1];te.setAttribute(ye,Oe)}},Ne.createRect=function(te,de,Re){var We=document.createElementNS("http://www.w3.org/2000/svg","rect");return We.setAttribute("width",te.toString()),We.setAttribute("height",de.toString()),Re&&Ne.setAttributes(We,Re),We},Ne.createLine=function(te,de,Re,We,we){var ye=document.createElementNS("http://www.w3.org/2000/svg","line");return ye.setAttribute("x1",te.toString()),ye.setAttribute("y1",de.toString()),ye.setAttribute("x2",Re.toString()),ye.setAttribute("y2",We.toString()),we&&Ne.setAttributes(ye,we),ye},Ne.createPolygon=function(te,de){var Re=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Re.setAttribute("points",te),de&&Ne.setAttributes(Re,de),Re},Ne.createCircle=function(te,de){var Re=document.createElementNS("http://www.w3.org/2000/svg","circle");return Re.setAttribute("cx",(te/2).toString()),Re.setAttribute("cy",(te/2).toString()),Re.setAttribute("r",te.toString()),de&&Ne.setAttributes(Re,de),Re},Ne.createEllipse=function(te,de,Re){var We=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return We.setAttribute("cx",(te/2).toString()),We.setAttribute("cy",(de/2).toString()),We.setAttribute("rx",(te/2).toString()),We.setAttribute("ry",(de/2).toString()),Re&&Ne.setAttributes(We,Re),We},Ne.createGroup=function(te){var de=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&Ne.setAttributes(de,te),de},Ne.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ne.createMarker=function(te,de,Re,We,we,ye,Oe){var $e=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ne.setAttributes($e,[["id",te],["orient",de],["markerWidth",Re.toString()],["markerHeight",We.toString()],["refX",we.toString()],["refY",ye.toString()]]),$e.appendChild(Oe),$e},Ne.createText=function(te){var de=document.createElementNS("http://www.w3.org/2000/svg","text");return de.setAttribute("x","0"),de.setAttribute("y","0"),te&&Ne.setAttributes(de,te),de},Ne.createTSpan=function(te,de){var Re=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Re.textContent=te,de&&Ne.setAttributes(Re,de),Re},Ne.createImage=function(te){var de=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&Ne.setAttributes(de,te),de},Ne.createPoint=function(te,de){var Re=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Re.x=te,Re.y=de,Re},Ne.createPath=function(te,de){var Re=document.createElementNS("http://www.w3.org/2000/svg","path");return Re.setAttribute("d",te),de&&Ne.setAttributes(Re,de),Re},Ne}(),E=function(){function Ne(){}return Ne.addKey=function(te){Ne.key=te},Object.defineProperty(Ne,"isLicensed",{get:function(){return!!Ne.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ne.key)},enumerable:!1,configurable:!0}),Ne}(),oe=function(){function Ne(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ne.prototype.rasterize=function(te,de,Re){var We=this;return new Promise(function(we){var ye=Re!==void 0?Re:document.createElement("canvas");te===null&&(We.markersOnly=!0,We.naturalSize=!1);var Oe=document.createElementNS("http://www.w3.org/2000/svg","svg");Oe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Oe.setAttribute("width",de.width.baseVal.valueAsString),Oe.setAttribute("height",de.height.baseVal.valueAsString),Oe.setAttribute("viewBox","0 0 "+de.viewBox.baseVal.width.toString()+" "+de.viewBox.baseVal.height.toString()),Oe.innerHTML=de.innerHTML,We.naturalSize===!0?(Oe.width.baseVal.value=te.naturalWidth,Oe.height.baseVal.value=te.naturalHeight):We.width!==void 0&&We.height!==void 0&&(Oe.width.baseVal.value=We.width,Oe.height.baseVal.value=We.height),ye.width=Oe.width.baseVal.value,ye.height=Oe.height.baseVal.value;var $e=Oe.outerHTML,Ze=ye.getContext("2d");We.markersOnly!==!0&&Ze.drawImage(te,0,0,ye.width,ye.height);var Je=window.URL,st=new Image(ye.width,ye.height);st.setAttribute("crossOrigin","anonymous");var lt=new Blob([$e],{type:"image/svg+xml"}),ft=Je.createObjectURL(lt);st.onload=function(){Ze.drawImage(st,0,0),Je.revokeObjectURL(ft);var Tt=ye.toDataURL(We.imageType,We.imageQuality);we(Tt)},st.src=ft})},Ne}(),ie=function(){},ee=function(){function Ne(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(Ne.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.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(Ne.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ne.prototype.addClass=function(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},Ne.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},Ne.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new le("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new le("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new le("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new x("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new x("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Ne.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ne}(),le=function(Ne,te){this.selector=Ne,this.style=te},x=function(Ne,te){this.localName=Ne,this.style=te},ne=function(){function Ne(te,de,Re,We,we){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=de,this.markerItems=Re,this.uiStyleSettings=We,this.styles=we,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ne.prototype.show=function(te){var de=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Re=document.createElement("div");Re.className=this.toolbarBlockStyleClass.name,Re.style.whiteSpace="nowrap",this.uiContainer.appendChild(Re),this.addActionButton(Re,'<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(Re,'<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(Re,'<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(Re,'<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(Re,'<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(Re,'<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(Re,'<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(Re,'<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(we){var ye=document.createElement("div");ye.className=""+de.toolbarButtonStyleClass.name,ye.setAttribute("data-type-name",we.typeName),ye.innerHTML=we.icon,ye.addEventListener("click",function(){de.markerToolbarButtonClicked(ye,we)}),de.buttons.push(ye),de.markerButtons.push(ye)}),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 We=document.createElement("div");We.className=this.toolbarBlockStyleClass.name,We.style.whiteSpace="nowrap",We.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(We),this.addActionButton(We,'<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(We,'<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()},Ne.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},Ne.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},Ne.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ne.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var de=0;de<this.markerButtons.length;de++)de<te||de===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[de]):(de===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[de]))}},Ne.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")},Ne.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(de){de.className=de.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),de.className=de.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),de.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},Ne.prototype.addActionButton=function(te,de,Re){var We=this,we=document.createElement("div");switch(we.className=""+this.toolbarButtonStyleClass.name,we.innerHTML=de,we.setAttribute("data-action",Re),we.addEventListener("click",function(){We.actionToolbarButtonClicked(we,Re)}),Re){case"select":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":we.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":we.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":we.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(we),this.buttons.push(we)},Ne.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new x("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 x("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new x("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new x("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 x("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new x("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
padding: `+te+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new x("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new x("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new le("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new le("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Ne.prototype.markerToolbarButtonClicked=function(te,de){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Re){return Re("marker",de)}),this.markerButtonOverflowBlock.style.display="none"},Ne.prototype.actionToolbarButtonClicked=function(te,de){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Re){return Re("action",de)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ne.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ne.prototype.setActiveMarkerButton=function(te){var de=this.markerButtons.find(function(Re){return Re.getAttribute("data-type-name")===te});de&&this.setActiveButton(de)},Ne.prototype.setCurrentMarker=function(te){var de=this;this.currentMarker=te,this.buttons.filter(function(Re){return/delete|notes/.test(Re.getAttribute("data-action"))}).forEach(function(Re){de.currentMarker===void 0?(Re.style.fillOpacity="0.4",Re.style.pointerEvents="none"):(Re.style.fillOpacity="1",Re.style.pointerEvents="all")})},Ne}(),re=function(){function Ne(te,de,Re,We){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=de,this.uiStyleSettings=Re,this.styles=We,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ne.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new x("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 x("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var de=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new x("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new x("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new x("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 x("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new x("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
padding: `+de+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new x("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new x("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new le("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new le("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Ne.prototype.show=function(te){var de;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((de=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&de!==void 0?de:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ne.prototype.setPanelButtons=function(te){var de,Re,We=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((de=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&de!==void 0?de:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Re=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Re!==void 0?Re:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(we){var ye;we.uiStyleSettings=We.uiStyleSettings;var Oe=document.createElement("div");Oe.className=We.toolboxButtonStyleClass.name+" "+((ye=We.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ye!==void 0?ye:We.toolboxButtonStyleColorsClass.name),Oe.innerHTML=we.icon,Oe.title=we.title,Oe.addEventListener("click",function(){We.panelButtonClick(we)}),We.panelButtons.push(Oe),We.buttonRow.appendChild(Oe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ne.prototype.panelButtonClick=function(te){var de=this,Re=-1;if(te!==this.activePanel){Re=this.panels.indexOf(te),this.panelRow.innerHTML="";var We=te.getUi();We.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(We),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=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){de.displayMode==="inline"?de.panelRow.style.display="none":de.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(we,ye){var Oe,$e;we.className=de.toolboxButtonStyleClass.name+" "+(ye===Re?""+((Oe=de.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Oe!==void 0?Oe:de.toolboxActiveButtonStyleColorsClass.name):""+(($e=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&$e!==void 0?$e:de.toolboxButtonStyleColorsClass.name))})},Ne}(),ae=function(Ne,te){this.title=Ne,this.icon=te},se=function(Ne){function te(de,Re,We,we){var ye=Ne.call(this,de,we||'<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 ye.colors=[],ye.addTransparent=!1,ye.colorBoxes=[],ye.colors=Re,ye.currentColor=We,ye.setCurrentColor=ye.setCurrentColor.bind(ye),ye.getColorBox=ye.getColorBox.bind(ye),ye}return gt(te,Ne),te.prototype.getUi=function(){var de=this,Re=document.createElement("div");return Re.style.overflow="hidden",Re.style.whiteSpace="nowrap",this.colors.forEach(function(We){var we=de.getColorBox(We);Re.appendChild(we),de.colorBoxes.push(we)}),Re},te.prototype.getColorBox=function(de){var Re=this,We=this.uiStyleSettings.toolbarHeight/4,we=this.uiStyleSettings.toolbarHeight-We,ye=document.createElement("div");ye.style.display="inline-block",ye.style.boxSizing="content-box",ye.style.width=we-2+"px",ye.style.height=we-2+"px",ye.style.padding="1px",ye.style.marginRight="2px",ye.style.marginBottom="2px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.borderRadius=(we+2)/2+"px",ye.style.borderColor=de===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){Re.setCurrentColor(de,ye)});var Oe=document.createElement("div");return Oe.style.display="inline-block",Oe.style.width=we-2+"px",Oe.style.height=we-2+"px",Oe.style.backgroundColor=de,Oe.style.borderRadius=we/2+"px",de==="transparent"&&(Oe.style.fill=this.uiStyleSettings.toolboxAccentColor,Oe.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>`),ye.appendChild(Oe),ye},te.prototype.setCurrentColor=function(de,Re){var We=this;this.currentColor=de,this.colorBoxes.forEach(function(we){we.style.borderColor=we===Re?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(de)},te}(ae),ce=function(){function Ne(te,de,Re){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=de,this.globalSettings=Re,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ne.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ne.prototype.ownsTarget=function(te){return!1},Object.defineProperty(Ne.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ne.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ne.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ne.prototype.pointerDown=function(te,de){},Ne.prototype.dblClick=function(te,de){},Ne.prototype.manipulate=function(te){},Ne.prototype.pointerUp=function(te){this.stateChanged()},Ne.prototype.dispose=function(){},Ne.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},Ne.prototype.getState=function(){return{typeName:Ne.typeName,state:this.state,notes:this.notes}},Ne.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},Ne.prototype.scale=function(te,de){},Ne.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},Ne.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},Ne.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},Ne.typeName="MarkerBase",Ne}(),pe=function(){function Ne(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ne.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},Ne}(),me=function(){function Ne(){this.GRIP_SIZE=10,this.visual=z.createGroup(),this.visual.appendChild(z.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(z.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ne.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},Ne}(),he=function(){function Ne(){}return Ne.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},Ne.toSVGMatrix=function(te,de){return te.a=de.a,te.b=de.b,te.c=de.c,te.d=de.d,te.e=de.e,te.f=de.f,te},Ne}(),be=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.left=0,we.top=0,we.width=0,we.height=0,we.defaultSize={x:50,y:20},we.offsetX=0,we.offsetY=0,we.rotationAngle=0,we.CB_DISTANCE=10,we._suppressMarkerCreateEvent=!1,we.container.transform.baseVal.appendItem(z.createTransform()),we.setupControlBox(),we}return gt(te,Ne),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(de){this._visual=de;var Re=z.createTransform();this._visual.transform.baseVal.appendItem(Re)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(de){return!!Ne.prototype.ownsTarget.call(this,de)||!!(this.controlGrips.findGripByVisual(de)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(de))},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.state==="new"&&(this.left=de.x,this.top=de.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var We=this.unrotatePoint(de);if(this.manipulationStartX=We.x,this.manipulationStartY=We.y,this.offsetX=We.x-this.left,this.offsetY=We.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Re),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Re)){this.activeGrip=this.rotatorGrip;var we=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=we.x-this.width/2,this.top=we.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ye=this.container.transform.baseVal.getItem(0);ye.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ye,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(de){var Re=this.state;Ne.prototype.pointerUp.call(this,de),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(de),this._state="select",Re==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(de){this.visual.style.transform="translate("+de.x+"px, "+de.y+"px)"},te.prototype.manipulate=function(de){var Re=this.unrotatePoint(de);this.state==="creating"?this.resize(de):this.state==="move"?(this.left=this.manipulationStartLeft+(Re.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Re.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Re):this.state==="rotate"&&this.rotate(de)},te.prototype.resize=function(de){var Re=this.manipulationStartLeft,We=this.manipulationStartWidth,we=this.manipulationStartTop,ye=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Re=this.manipulationStartLeft+de.x-this.manipulationStartX,We=this.manipulationStartWidth+this.manipulationStartLeft-Re;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:We=this.manipulationStartWidth+de.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:we=this.manipulationStartTop+de.y-this.manipulationStartY,ye=this.manipulationStartHeight+this.manipulationStartTop-we;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ye=this.manipulationStartHeight+de.y-this.manipulationStartY}We>=0?(this.left=Re,this.width=We):(this.left=Re+We,this.width=-We),ye>=0?(this.top=we,this.height=ye):(this.top=we+ye,this.height=-ye),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(de){if(Math.abs(de.x-this.centerX)>.1){var Re=Math.sign(de.x-this.centerX);this.rotationAngle=180*Math.atan((de.y-this.centerY)/(de.x-this.centerX))/Math.PI+90*Re,this.applyRotation()}},te.prototype.applyRotation=function(){var de=this.container.transform.baseVal.getItem(0);de.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(de,0)},te.prototype.rotatePoint=function(de){if(this.rotationAngle===0)return de;var Re=this.container.getCTM(),We=z.createPoint(de.x,de.y);return{x:(We=We.matrixTransform(Re)).x,y:We.y}},te.prototype.unrotatePoint=function(de){if(this.rotationAngle===0)return de;var Re=this.container.getCTM();Re=Re.inverse();var We=z.createPoint(de.x,de.y);return{x:(We=We.matrixTransform(Re)).x,y:We.y}},te.prototype.select=function(){Ne.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){Ne.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=z.createGroup();var de=z.createTransform();de.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(de),this.container.appendChild(this.controlBox),this.controlRect=z.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=z.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 pe,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var de=this.controlBox.transform.baseVal.getItem(0);de.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(de,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()},te.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()},te.prototype.createGrip=function(){var de=new me;return de.visual.transform.baseVal.appendItem(z.createTransform()),this.controlBox.appendChild(de.visual),de},te.prototype.positionGrips=function(){var de=this.controlGrips.topLeft.GRIP_SIZE,Re=-de/2,We=Re,we=(this.width+this.CB_DISTANCE)/2-de/2,ye=(this.height+this.CB_DISTANCE)/2-de/2,Oe=this.height+this.CB_DISTANCE-de/2,$e=this.width+this.CB_DISTANCE-de/2;this.positionGrip(this.controlGrips.topLeft.visual,Re,We),this.positionGrip(this.controlGrips.topCenter.visual,we,We),this.positionGrip(this.controlGrips.topRight.visual,$e,We),this.positionGrip(this.controlGrips.centerLeft.visual,Re,ye),this.positionGrip(this.controlGrips.centerRight.visual,$e,ye),this.positionGrip(this.controlGrips.bottomLeft.visual,Re,Oe),this.positionGrip(this.controlGrips.bottomCenter.visual,we,Oe),this.positionGrip(this.controlGrips.bottomRight.visual,$e,Oe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,we,We-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(de,Re,We){var we=de.transform.baseVal.getItem(0);we.setTranslate(Re,We),de.transform.baseVal.replaceItem(we,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:he.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:he.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ne.prototype.getState.call(this))},te.prototype.restoreState=function(de){Ne.prototype.restoreState.call(this,de);var Re=de;this.left=Re.left,this.top=Re.top,this.width=Re.width,this.height=Re.height,this.rotationAngle=Re.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(he.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Re.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(he.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Re.containerTransformMatrix))},te.prototype.scale=function(de,Re){Ne.prototype.scale.call(this,de,Re);var We=this.rotatePoint({x:this.left,y:this.top}),we=this.unrotatePoint({x:We.x*de,y:We.y*Re});this.left=we.x,this.top=we.y,this.width=this.width*de,this.height=this.height*Re,this.adjustControlBox()},te}(ce),Pe=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we}return gt(te,Ne),te.prototype.ownsTarget=function(de){return!(!Ne.prototype.ownsTarget.call(this,de)&&de!==this.visual)},te.prototype.createVisual=function(){this.visual=z.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)},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.state==="new"&&(this.createVisual(),this.moveVisual(de),this._state="creating")},te.prototype.manipulate=function(de){Ne.prototype.manipulate.call(this,de)},te.prototype.resize=function(de){Ne.prototype.resize.call(this,de),this.setSize()},te.prototype.setSize=function(){Ne.prototype.setSize.call(this),z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(de){Ne.prototype.pointerUp.call(this,de),this.setSize()},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.visual&&z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(de),this.stateChanged()},te.prototype.setFillColor=function(de){this.fillColor=de,this.visual&&z.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.visual&&z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.visual&&z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ne.prototype.getState.call(this))},te.prototype.restoreState=function(de){var Re=de;this.fillColor=Re.fillColor,this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.strokeDasharray,this.opacity=Re.opacity,this.createVisual(),Ne.prototype.restoreState.call(this,de),this.setSize()},te.prototype.scale=function(de,Re){Ne.prototype.scale.call(this,de,Re),this.setSize()},te.title="Rectangle marker",te}(be),Me=function(Ne){function te(de,Re,We,we){var ye=Ne.call(this,de,we||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ye.widths=[],ye.widthBoxes=[],ye.widths=Re,ye.currentWidth=We,ye.setCurrentWidth=ye.setCurrentWidth.bind(ye),ye}return gt(te,Ne),te.prototype.getUi=function(){var de=this,Re=document.createElement("div");return Re.style.display="flex",Re.style.overflow="hidden",Re.style.flexGrow="2",this.widths.forEach(function(We){var we=document.createElement("div");we.style.display="flex",we.style.flexGrow="2",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=We===de.currentWidth?de.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){de.setCurrentWidth(We,we)}),Re.appendChild(we);var ye=document.createElement("div");ye.innerText=We.toString(),ye.style.marginRight="5px",we.appendChild(ye);var Oe=document.createElement("div");Oe.style.minHeight="20px",Oe.style.flexGrow="2",Oe.style.display="flex",Oe.style.alignItems="center";var $e=document.createElement("hr");$e.style.minWidth="20px",$e.style.border="0px",$e.style.borderTop=We+"px solid "+de.uiStyleSettings.toolboxColor,$e.style.flexGrow="2",Oe.appendChild($e),we.appendChild(Oe),de.widthBoxes.push(we)}),Re},te.prototype.setCurrentWidth=function(de,Re){var We=this;this.currentWidth=de,this.widthBoxes.forEach(function(we){we.style.borderColor=we===Re?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(ae),_e=function(Ne){function te(de,Re,We,we){var ye=Ne.call(this,de,we||'<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 ye.styles=[],ye.styleBoxes=[],ye.styles=Re,ye.currentStyle=We,ye.setCurrentStyle=ye.setCurrentStyle.bind(ye),ye}return gt(te,Ne),te.prototype.getUi=function(){var de=this,Re=document.createElement("div");return Re.style.display="flex",Re.style.overflow="hidden",Re.style.flexGrow="2",this.styles.forEach(function(We){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/de.styles.length-5+"%",we.style.borderColor=We===de.currentStyle?de.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){de.setCurrentStyle(We,we)}),Re.appendChild(we);var ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.overflow="hidden";var Oe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+de.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(We!==""?'stroke-dasharray="'+We+'"':"")+` />
</svg>`;ye.innerHTML=Oe,we.appendChild(ye),de.styleBoxes.push(we)}),Re},te.prototype.setCurrentStyle=function(de,Re){var We=this;this.currentStyle=de,this.styleBoxes.forEach(function(we){we.style.borderColor=we===Re?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(ae),De=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.strokePanel=new se("Line color",We.defaultColorSet,We.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new Me("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new _e("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return gt(te,Ne),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Ne.prototype.getState.call(this);return de.typeName=te.typeName,de},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(Pe),Ce=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"},Ee=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.x1=0,we.y1=0,we.x2=0,we.y2=0,we.defaultLength=50,we.manipulationStartX=0,we.manipulationStartY=0,we.manipulationStartX1=0,we.manipulationStartY1=0,we.manipulationStartX2=0,we.manipulationStartY2=0,we.setupControlBox(),we}return gt(te,Ne),te.prototype.ownsTarget=function(de){return!!Ne.prototype.ownsTarget.call(this,de)||!(!this.grip1.ownsTarget(de)&&!this.grip2.ownsTarget(de))},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.state==="new"&&(this.x1=de.x,this.y1=de.y,this.x2=de.x,this.y2=de.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(Re)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Re)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(de){var Re=this.state;Ne.prototype.pointerUp.call(this,de),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(de),this._state="select",Re==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(de){this.state==="creating"?this.resize(de):this.state==="move"?(this.x1=this.manipulationStartX1+de.x-this.manipulationStartX,this.y1=this.manipulationStartY1+de.y-this.manipulationStartY,this.x2=this.manipulationStartX2+de.x-this.manipulationStartX,this.y2=this.manipulationStartY2+de.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(de)},te.prototype.resize=function(de){switch(this.activeGrip){case this.grip1:this.x1=de.x,this.y1=de.y;break;case this.grip2:case void 0:this.x2=de.x,this.y2=de.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){Ne.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){Ne.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=z.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var de=new me;return de.visual.transform.baseVal.appendItem(z.createTransform()),this.controlBox.appendChild(de.visual),de},te.prototype.positionGrips=function(){var de=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-de/2,this.y1-de/2),this.positionGrip(this.grip2.visual,this.x2-de/2,this.y2-de/2)},te.prototype.positionGrip=function(de,Re,We){var we=de.transform.baseVal.getItem(0);we.setTranslate(Re,We),de.transform.baseVal.replaceItem(we,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ne.prototype.getState.call(this))},te.prototype.restoreState=function(de){Ne.prototype.restoreState.call(this,de);var Re=de;this.x1=Re.x1,this.y1=Re.y1,this.x2=Re.x2,this.y2=Re.y2},te.prototype.scale=function(de,Re){Ne.prototype.scale.call(this,de,Re),this.x1=this.x1*de,this.y1=this.y1*Re,this.x2=this.x2*de,this.y2=this.y2*Re,this.adjustVisual(),this.adjustControlBox()},te}(ce),je=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.strokePanel=new se("Line color",We.defaultColorSet,We.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new Me("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new _e("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return gt(te,Ne),te.prototype.ownsTarget=function(de){return!(!Ne.prototype.ownsTarget.call(this,de)&&de!==this.visual&&de!==this.selectorLine&&de!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.selectorLine=z.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=z.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)},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.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()),z.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),z.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),z.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.adjustVisual(),this.colorChanged(de)},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.adjustVisual()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ne.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){Ne.prototype.restoreState.call(this,de);var Re=de;this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(Ee),ke=function(Ne){function te(de,Re,We,we){var ye=Ne.call(this,de,we||'<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 ye.fonts=[],ye.fontBoxes=[],ye.fonts=Re,ye.currentFont=We,ye.setCurrentFont=ye.setCurrentFont.bind(ye),ye}return gt(te,Ne),te.prototype.getUi=function(){var de=this,Re=document.createElement("div");return Re.style.overflow="hidden",Re.style.flexGrow="2",this.fonts.forEach(function(We){var we=document.createElement("div");we.style.display="inline-block",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/de.fonts.length-5+"%",we.style.borderColor=We===de.currentFont?de.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){de.setCurrentFont(We,we)}),Re.appendChild(we);var ye=document.createElement("div");ye.style.display="flex",ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.fontFamily=We,ye.style.overflow="hidden";var Oe=document.createElement("div");Oe.style.whiteSpace="nowrap",Oe.style.overflow="hidden",Oe.style.textOverflow="ellipsis",Oe.innerHTML="The quick brown fox jumps over the lazy dog",ye.appendChild(Oe),we.appendChild(ye),de.fontBoxes.push(we)}),Re},te.prototype.setCurrentFont=function(de,Re){var We=this;this.currentFont=de,this.fontBoxes.forEach(function(we){we.style.borderColor=we===Re?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(ae),Be=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.color="transparent",we.padding=5,we.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",we.text=we.DEFAULT_TEXT,we.isMoved=!1,we.color=We.defaultColor,we.fontFamily=We.defaultFontFamily,we.defaultSize={x:100,y:30},we.setColor=we.setColor.bind(we),we.setFont=we.setFont.bind(we),we.renderText=we.renderText.bind(we),we.sizeText=we.sizeText.bind(we),we.textEditDivClicked=we.textEditDivClicked.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.setSize=we.setSize.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.colorPanel=new se("Color",We.defaultColorSet,We.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.fontFamilyPanel=new ke("Font",We.defaultFontFamilies,We.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we}return gt(te,Ne),te.prototype.ownsTarget=function(de){if(Ne.prototype.ownsTarget.call(this,de)||de===this.visual||de===this.textElement||de===this.bgRectangle)return!0;var Re=!1;return this.textElement.childNodes.forEach(function(We){We===de&&(Re=!0)}),Re},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.bgRectangle=z.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=z.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(z.createTransform()),this.textElement.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.isMoved=!1,this.pointerDownPoint=de,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(de),this._state="creating")},te.prototype.renderText=function(){var de=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(Re){de.textElement.appendChild(z.createTSpan(Re.trim()===""?" ":Re.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var de=this.textElement.getBBox(),Re=1;if(de.width>0&&de.height>0){var We=(1*this.width-this.width*this.padding*2/100)/de.width,we=(1*this.height-this.height*this.padding*2/100)/de.height;Re=Math.min(We,we)}return Re},te.prototype.getTextPosition=function(de){var Re=this.textElement.getBBox(),We=0,we=0;return Re.width>0&&Re.height>0&&(We=(this.width-Re.width*de)/2,we=this.height/2-Re.height*de/2),{x:We,y:we}},te.prototype.sizeText=function(){var de=this.textElement.getBBox(),Re=this.getTextScale(),We=this.getTextPosition(Re);We.y-=de.y*Re,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+We.x+"px, "+We.y+"px) scale("+Re+", "+Re+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(We.x,We.y),this.textElement.transform.baseVal.getItem(1).setScale(Re,Re))},te.prototype.manipulate=function(de){Ne.prototype.manipulate.call(this,de),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(de.x-this.pointerDownPoint.x)>5||Math.abs(de.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(de){Ne.prototype.resize.call(this,de),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){Ne.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(de){var Re=this.state;Re==="creating"&&(this._suppressMarkerCreateEvent=!0),Ne.prototype.pointerUp.call(this,de),this.setSize(),(Re==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var de=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(Re){Re.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Re=Number.parseFloat(de.textEditor.style.fontSize);de.textEditor.clientWidth>=Number.parseInt(de.textEditor.style.maxWidth)&&Re>.9;)Re-=.1,de.textEditor.style.fontSize=Math.max(Re,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Re){Re.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Re){if(Re.clipboardData){var We=Re.clipboardData.getData("text"),we=window.getSelection();if(!we.rangeCount)return!1;we.deleteFromDocument(),we.getRangeAt(0).insertNode(document.createTextNode(We)),Re.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){de.textEditDivClicked(de.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var de=this.getTextScale(),Re=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),We=this.textElement.getBBox(),we={x:We.width*de,y:We.height*de};Re.x-=we.x/2,Re.y-=we.y/2,this.textEditor.style.top=Re.y+"px",this.textEditor.style.left=Re.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Re.x+"px",this.textEditor.style.fontSize=Math.max(16*de,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(de){this.text=de.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){Ne.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ne.prototype.deselect.call(this)},te.prototype.dblClick=function(de,Re){Ne.prototype.dblClick.call(this,de,Re),this.showTextEditor()},te.prototype.setColor=function(de){this.textElement&&z.setAttributes(this.textElement,[["fill",de]]),this.color=de,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(de)},te.prototype.setFont=function(de){this.textElement&&z.setAttributes(this.textElement,[["font-family",de]]),this.fontFamily=de,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ne.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){var Re=de;this.color=Re.color,this.fontFamily=Re.fontFamily,this.padding=Re.padding,this.text=Re.text,this.createVisual(),Ne.prototype.restoreState.call(this,de),this.setSize()},te.prototype.scale=function(de,Re){Ne.prototype.scale.call(this,de,Re),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.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>',te}(be),Ae=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.color="transparent",we.lineWidth=3,we.drawing=!1,we.pixelRatio=1,we.color=We.defaultColor,we.lineWidth=We.defaultStrokeWidth,we.pixelRatio=We.freehandPixelRatio,we.setColor=we.setColor.bind(we),we.addCanvas=we.addCanvas.bind(we),we.finishCreation=we.finishCreation.bind(we),we.setLineWidth=we.setLineWidth.bind(we),we.colorPanel=new se("Color",We.defaultColorSet,We.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.lineWidthPanel=new Me("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.lineWidthPanel.onWidthChanged=we.setLineWidth,we}return gt(te,Ne),te.prototype.ownsTarget=function(de){return!(!Ne.prototype.ownsTarget.call(this,de)&&de!==this.visual&&de!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.drawingImage=z.createImage(),this.visual.appendChild(this.drawingImage);var de=z.createTransform();this.visual.transform.baseVal.appendItem(de),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(de,Re){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(de.x,de.y),this.drawing=!0):Ne.prototype.pointerDown.call(this,de,Re)},te.prototype.manipulate=function(de){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(de.x,de.y),this.canvasContext.stroke()):Ne.prototype.manipulate.call(this,de)},te.prototype.resize=function(de){Ne.prototype.resize.call(this,de),z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(de){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ne.prototype.pointerUp.call(this,de)},te.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)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ne.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ne.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var de=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Re=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],We=Re[0],we=Re[1],ye=Re[2],Oe=Re[3],$e=!1,Ze=0;Ze<this.canvasElement.height;Ze++)for(var Je=0;Je<this.canvasElement.width;Je++)de.data[Ze*this.canvasElement.width*4+4*Je+3]>0&&($e=!0,Ze<we&&(we=Ze),Je<We&&(We=Je),Ze>Oe&&(Oe=Ze),Je>ye&&(ye=Je));if($e){this.left=We/this.pixelRatio,this.top=we/this.pixelRatio,this.width=(ye-We)/this.pixelRatio,this.height=(Oe-we)/this.pixelRatio;var st=document.createElement("canvas");st.width=ye-We,st.height=Oe-we,st.getContext("2d").putImageData(this.canvasContext.getImageData(We,we,ye-We,Oe-we),0,0),this.drawingImgUrl=st.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(de){this.color=de,this.colorChanged(de)},te.prototype.setLineWidth=function(de){this.lineWidth=de},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({drawingImgUrl:this.drawingImgUrl},Ne.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){this.createVisual(),Ne.prototype.restoreState.call(this,de),this.drawingImgUrl=de.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(de,Re){Ne.prototype.scale.call(this,de,Re),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.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>',te}(be),ve=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,We||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return we.typeBoxes=[],we.currentType=Re,we.setCurrentType=we.setCurrentType.bind(we),we}return gt(te,Ne),te.prototype.getUi=function(){var de=this,Re=document.createElement("div");Re.style.display="flex",Re.style.overflow="hidden",Re.style.flexGrow="2";for(var We=function(Oe){var $e="both";switch(Oe){case 0:$e="both";break;case 1:$e="start";break;case 2:$e="end";break;case 3:$e="none"}var Ze=document.createElement("div");if(Ze.style.display="flex",Ze.style.flexGrow="2",Ze.style.alignItems="center",Ze.style.justifyContent="space-between",Ze.style.padding="5px",Ze.style.borderWidth="2px",Ze.style.borderStyle="solid",Ze.style.borderColor=$e===we.currentType?we.uiStyleSettings.toolboxAccentColor:"transparent",Ze.addEventListener("click",function(){de.setCurrentType($e,Ze)}),Re.appendChild(Ze),$e==="both"||$e==="start"){var Je=document.createElement("div");Je.style.display="flex",Je.style.alignItems="center",Je.style.minHeight="20px",Je.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="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Je.style.marginLeft="5px",Ze.appendChild(Je)}var st=document.createElement("div");st.style.display="flex",st.style.alignItems="center",st.style.minHeight="20px",st.style.flexGrow="2";var lt=document.createElement("hr");if(lt.style.minWidth="20px",lt.style.border="0px",lt.style.borderTop="3px solid "+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee"),lt.style.flexGrow="2",st.appendChild(lt),Ze.appendChild(st),$e==="both"||$e==="end"){var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.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="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ft.style.marginRight="5px",Ze.appendChild(ft)}we.typeBoxes.push(Ze)},we=this,ye=0;ye<4;ye++)We(ye);return Re},te.prototype.setCurrentType=function(de,Re){var We=this;this.currentType=de,this.typeBoxes.forEach(function(we){we.style.borderColor=we===Re?We.uiStyleSettings!==void 0?We.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(ae),Ue=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.arrowType="end",we.arrowBaseHeight=10,we.arrowBaseWidth=10,we.getArrowPoints=we.getArrowPoints.bind(we),we.setArrowType=we.setArrowType.bind(we),we.arrowTypePanel=new ve("Arrow type","end"),we.arrowTypePanel.onArrowTypeChanged=we.setArrowType,we}return gt(te,Ne),te.prototype.ownsTarget=function(de){return!(!Ne.prototype.ownsTarget.call(this,de)&&de!==this.arrow1&&de!==this.arrow2)},te.prototype.getArrowPoints=function(de,Re){var We=this.arrowBaseWidth+2*this.strokeWidth,we=this.arrowBaseHeight+2*this.strokeWidth;return de-We/2+","+(Re+we/2)+" "+de+","+(Re-we/2)+" "+(de+We/2)+","+(Re+we/2)},te.prototype.createTips=function(){this.arrow1=z.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=z.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(Ne.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",z.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),z.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var de=0;Math.abs(this.x1-this.x2)>.1&&(de=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Re=this.arrow1.transform.baseVal.getItem(0);Re.setRotate(de,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Re,0);var We=this.arrow2.transform.baseVal.getItem(0);We.setRotate(de+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(We,0)}},te.prototype.setArrowType=function(de){this.arrowType=de,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({arrowType:this.arrowType},Ne.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){Ne.prototype.restoreState.call(this,de);var Re=de;this.arrowType=Re.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(je),He=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.fillColor=We.defaultFillColor,we.strokeWidth=0,we.fillPanel=new se("Color",We.defaultColorSet,We.defaultFillColor),we.fillPanel.onColorChanged=we.setFillColor,we}return gt(te,Ne),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Ne.prototype.getState.call(this);return de.typeName=te.typeName,de},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(Pe),Ye=function(Ne){function te(de,Re,We,we){var ye=Ne.call(this,de,we||'<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 ye.opacities=[],ye.opacityBoxes=[],ye.opacities=Re,ye.currentOpacity=We,ye.setCurrentOpacity=ye.setCurrentOpacity.bind(ye),ye}return gt(te,Ne),te.prototype.getUi=function(){var de=this,Re=document.createElement("div");return Re.style.display="flex",Re.style.overflow="hidden",Re.style.flexGrow="2",Re.style.justifyContent="space-between",this.opacities.forEach(function(We){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="center",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=We===de.currentOpacity?de.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){de.setCurrentOpacity(We,we)}),Re.appendChild(we);var ye=document.createElement("div");ye.innerText=100*We+"%",we.appendChild(ye),de.opacityBoxes.push(we)}),Re},te.prototype.setCurrentOpacity=function(de,Re){var We=this;this.currentOpacity=de,this.opacityBoxes.forEach(function(we){we.style.borderColor=we===Re?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(ae),ot=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.setOpacity=we.setOpacity.bind(we),we.fillColor=We.defaultHighlightColor,we.strokeWidth=0,we.opacity=We.defaultHighlightOpacity,we.fillPanel=new se("Color",We.defaultColorSet,we.fillColor),we.fillPanel.onColorChanged=we.setFillColor,we.opacityPanel=new Ye("Opacity",We.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return gt(te,Ne),te.prototype.setOpacity=function(de){this.opacity=de,this.visual&&z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Ne.prototype.getState.call(this);return de.typeName=te.typeName,de},te.typeName="HighlightMarker",te.title="Highlight marker",te.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>',te}(He),Fe='<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>',Ke='<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>',rt=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.bgColor="transparent",we.tipPosition={x:0,y:0},we.tipBase1Position={x:0,y:0},we.tipBase2Position={x:0,y:0},we.tipMoving=!1,we.color=We.defaultStrokeColor,we.bgColor=We.defaultFillColor,we.fontFamily=We.defaultFontFamily,we.defaultSize={x:100,y:30},we.setBgColor=we.setBgColor.bind(we),we.getTipPoints=we.getTipPoints.bind(we),we.positionTip=we.positionTip.bind(we),we.setTipPoints=we.setTipPoints.bind(we),we.colorPanel=new se("Text color",We.defaultColorSet,we.color,Fe),we.colorPanel.onColorChanged=we.setColor,we.bgColorPanel=new se("Fill color",We.defaultColorSet,we.bgColor,Ke),we.bgColorPanel.onColorChanged=we.setBgColor,we.fontFamilyPanel=new ke("Font",We.defaultFontFamilies,We.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.tipGrip=new me,we.tipGrip.visual.transform.baseVal.appendItem(z.createTransform()),we.controlBox.appendChild(we.tipGrip.visual),we}return gt(te,Ne),te.prototype.ownsTarget=function(de){return Ne.prototype.ownsTarget.call(this,de)||this.tipGrip.ownsTarget(de)||this.tip===de},te.prototype.createTip=function(){z.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=z.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(de,Re){this.state==="new"&&Ne.prototype.pointerDown.call(this,de,Re),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Re)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ne.prototype.pointerDown.call(this,de,Re)},te.prototype.pointerUp=function(de){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ne.prototype.pointerUp.call(this,de);else{var Re=this.state==="creating";Ne.prototype.pointerUp.call(this,de),this.setTipPoints(Re),this.positionTip()}},te.prototype.manipulate=function(de){if(this.tipMoving){var Re=this.unrotatePoint(de);this.tipPosition={x:Re.x-this.manipulationStartLeft,y:Re.y-this.manipulationStartTop},this.positionTip()}else Ne.prototype.manipulate.call(this,de)},te.prototype.setBgColor=function(de){this.bgRectangle&&this.tip&&(z.setAttributes(this.bgRectangle,[["fill",de]]),z.setAttributes(this.tip,[["fill",de]])),this.bgColor=de,this.fillColorChanged(de)},te.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},te.prototype.setTipPoints=function(de){de===void 0&&(de=!1);var Re=Math.min(this.height/2,15),We=this.height/5;de&&(this.tipPosition={x:Re+We/2,y:this.height+20});var we=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(We=this.width/5,Re=Math.min(this.width/2,15),this.tipBase1Position={x:Re,y:0},this.tipBase2Position={x:Re+We,y:0}):(this.tipBase1Position={x:0,y:Re},this.tipBase2Position={x:0,y:Re+We}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(We=this.width/5,Re=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Re-We,y:0},this.tipBase2Position={x:this.width-Re,y:0}):(this.tipBase1Position={x:this.width,y:Re},this.tipBase2Position={x:this.width,y:Re+We}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?we<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(We=this.width/5,Re=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Re-We,y:this.height},this.tipBase2Position={x:this.width-Re,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Re-We},this.tipBase2Position={x:this.width,y:this.height-Re}):we<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(We=this.width/5,Re=Math.min(this.width/2,15),this.tipBase1Position={x:Re,y:this.height},this.tipBase2Position={x:Re+We,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Re},this.tipBase2Position={x:0,y:this.height-Re-We})},te.prototype.resize=function(de){Ne.prototype.resize.call(this,de),this.positionTip()},te.prototype.positionTip=function(){z.setAttributes(this.tip,[["points",this.getTipPoints()]]);var de=this.tipGrip.visual.transform.baseVal.getItem(0);de.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(de,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),Ne.prototype.select.call(this)},te.prototype.getState=function(){var de=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ne.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){var Re=de;this.bgColor=Re.bgColor,this.tipPosition=Re.tipPosition,Ne.prototype.restoreState.call(this,de),this.createTip(),this.setTipPoints()},te.prototype.scale=function(de,Re){Ne.prototype.scale.call(this,de,Re),this.tipPosition={x:this.tipPosition.x*de,y:this.tipPosition.y*Re},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.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>',te}(Be),nt=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.fillColor=We.defaultFillColor,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.setOpacity=we.setOpacity.bind(we),we.createVisual=we.createVisual.bind(we),we.strokePanel=new se("Line color",xe(We.defaultColorSet,["transparent"]),We.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new se("Fill color",xe(We.defaultColorSet,["transparent"]),we.fillColor,Ke),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new Me("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new _e("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.opacityPanel=new Ye("Opacity",We.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return gt(te,Ne),te.prototype.ownsTarget=function(de){return!(!Ne.prototype.ownsTarget.call(this,de)&&de!==this.visual)},te.prototype.createVisual=function(){this.visual=z.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)},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.state==="new"&&(this.createVisual(),this.moveVisual(de),this._state="creating")},te.prototype.manipulate=function(de){Ne.prototype.manipulate.call(this,de)},te.prototype.resize=function(de){Ne.prototype.resize.call(this,de),this.setSize()},te.prototype.setSize=function(){Ne.prototype.setSize.call(this),z.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(de){Ne.prototype.pointerUp.call(this,de),this.setSize()},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.visual&&z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(de),this.stateChanged()},te.prototype.setFillColor=function(de){this.fillColor=de,this.visual&&z.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(de),this.stateChanged()},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.visual&&z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.visual&&z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(de){this.opacity=de,this.visual&&z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ne.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){var Re=de;this.fillColor=Re.fillColor,this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.strokeDasharray,this.opacity=Re.opacity,this.createVisual(),Ne.prototype.restoreState.call(this,de),this.setSize()},te.prototype.scale=function(de,Re){Ne.prototype.scale.call(this,de,Re),this.setSize()},te.typeName="EllipseMarker",te.title="Ellipse marker",te.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>',te}(be),et=function(Ne){function te(de,Re,We){return Ne.call(this,de,Re,We)||this}return gt(te,Ne),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(de){return!(!Ne.prototype.ownsTarget.call(this,de)&&de!==this.tip1&&de!==this.tip2)},te.prototype.createTips=function(){this.tip1=z.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(z.createTransform()),this.visual.appendChild(this.tip1),this.tip2=z.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(z.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(Ne.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(z.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()]]),z.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 de=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Re=this.tip1.transform.baseVal.getItem(0);Re.setRotate(de,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Re,0);var We=this.tip2.transform.baseVal.getItem(0);We.setRotate(de+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(We,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Ne.prototype.getState.call(this);return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){Ne.prototype.restoreState.call(this,de),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.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>',te}(je),Ge=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.strokePanel.colors=We.defaultColorSet,we.fillColor="transparent",we}return gt(te,Ne),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Ne.prototype.getState.call(this);return de.typeName=te.typeName,de},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.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>',te}(nt),Xe=function(){function Ne(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ne.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ne.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},Ne.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},Ne.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ne.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ne.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ne}(),Ve=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.curveX=0,we.curveY=0,we.manipulationStartCurveX=0,we.manipulationStartCurveY=0,we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.positionGrips=we.positionGrips.bind(we),we.addControlGrips=we.addControlGrips.bind(we),we.adjustVisual=we.adjustVisual.bind(we),we.setupControlBox=we.setupControlBox.bind(we),we.resize=we.resize.bind(we),we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.strokePanel=new se("Line color",We.defaultColorSet,We.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new Me("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new _e("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return gt(te,Ne),te.prototype.ownsTarget=function(de){return!(!Ne.prototype.ownsTarget.call(this,de)&&de!==this.visual&&de!==this.selectorCurve&&de!==this.visibleCurve&&!this.curveGrip.ownsTarget(de))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.selectorCurve=z.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=z.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)},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=de.x,this.curveY=de.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Re)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),z.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),z.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),z.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){Ne.prototype.setupControlBox.call(this),this.curveControlLine1=z.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=z.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)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ne.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){Ne.prototype.positionGrips.call(this);var de=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-de/2,this.curveY-de/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()))},te.prototype.manipulate=function(de){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+de.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+de.y-this.manipulationStartY),Ne.prototype.manipulate.call(this,de)},te.prototype.resize=function(de){this.activeGrip===this.curveGrip&&(this.curveX=de.x,this.curveY=de.y),Ne.prototype.resize.call(this,de),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.adjustVisual(),this.colorChanged(de)},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.adjustVisual()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.adjustVisual()},te.prototype.scale=function(de,Re){this.curveX=this.curveX*de,this.curveY=this.curveY*Re,Ne.prototype.scale.call(this,de,Re)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ne.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){Ne.prototype.restoreState.call(this,de);var Re=de;this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.strokeDasharray,this.curveX=Re.curveX,this.curveY=Re.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.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>',te}(Ee),tt=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,Re,We)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.textColor="transparent",we.fontSize="1rem",we.isMoved=!1,we.captionText="Caption",we.PADDING=5,we.captionBoxWidth=0,we.captionBoxHeight=0,we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.fillColor=We.defaultFillColor,we.textColor=We.defaultStrokeColor,we.fontFamily=We.defaultFontFamily,we.fontSize=We.defaultCaptionFontSize,we.captionText=We.defaultCaptionText,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we.sizeCaption=we.sizeCaption.bind(we),we.setCaptionText=we.setCaptionText.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.finishTextEditing=we.finishTextEditing.bind(we),we.setFont=we.setFont.bind(we),we.setTextColor=we.setTextColor.bind(we),we.strokePanel=new se("Line color",xe(We.defaultColorSet,["transparent"]),we.strokeColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new se("Fill color",xe(We.defaultColorSet,["transparent"]),we.fillColor,Ke),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new Me("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new _e("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.fontFamilyPanel=new ke("Font",We.defaultFontFamilies,We.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.textColorPanel=new se("Text color",We.defaultColorSet,we.textColor,Fe),we.textColorPanel.onColorChanged=we.setTextColor,we}return gt(te,Ne),te.prototype.ownsTarget=function(de){return!(!Ne.prototype.ownsTarget.call(this,de)&&de!==this.visual&&de!==this.frame&&de!==this.captionBg&&de!==this.captionElement)},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=z.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=z.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=z.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()},te.prototype.setCaptionText=function(de){this.captionText=de,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(de,Re){Ne.prototype.pointerDown.call(this,de,Re),this.isMoved=!1,this.pointerDownPoint=de,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(de),this._state="creating")},te.prototype.manipulate=function(de){Ne.prototype.manipulate.call(this,de),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(de.x-this.pointerDownPoint.x)>5||Math.abs(de.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(de){Ne.prototype.resize.call(this,de),this.setSize()},te.prototype.sizeCaption=function(){var de=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=de.width+2*this.PADDING,this.captionBoxHeight=de.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),z.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')"]]),z.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')"]])},te.prototype.showTextEditor=function(){var de=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(Re){Re.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Re){Re.key==="Enter"&&de.finishTextEditing(de.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Re){Re.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){de.finishTextEditing(de.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){de.finishTextEditing(de.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.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"))},te.prototype.finishTextEditing=function(de){this.setCaptionText(de.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(de){this.captionElement&&z.setAttributes(this.captionElement,[["font-family",de]]),this.fontFamily=de,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(de){this.captionElement&&z.setAttributes(this.captionElement,[["fill",de]]),this.textColor=de,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){Ne.prototype.setSize.call(this),z.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(de){Ne.prototype.pointerUp.call(this,de),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(de,Re){Ne.prototype.dblClick.call(this,de,Re),this.showTextEditor()},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.frame&&z.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(de),this.stateChanged()},te.prototype.setFillColor=function(de){this.fillColor=de,this.captionBg&&z.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(de),this.stateChanged()},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.frame&&z.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.frame&&z.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=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},Ne.prototype.getState.call(this));return de.typeName=this.typeName,de},te.prototype.restoreState=function(de){var Re=de;this.fillColor=Re.fillColor,this.strokeColor=Re.strokeColor,this.strokeWidth=Re.strokeWidth,this.strokeDasharray=Re.strokeDasharray,this.textColor=Re.textColor,this.fontFamily=Re.fontFamily,this.captionText=Re.captionText,this.fontSize=Re.fontSize,this.createVisual(),Ne.prototype.restoreState.call(this,de),this.setSize()},te.prototype.scale=function(de,Re){Ne.prototype.scale.call(this,de,Re),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.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>',te}(be),Qe=function(){function Ne(te,de){de===void 0&&(de=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=de}return Object.defineProperty(Ne.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ne.prototype.preventDefault=function(){this._defaultPrevented=!0},Ne}(),ct=function(Ne){function te(de,Re,We){var we=Ne.call(this,de,!1)||this;return we.dataUrl=Re,we.state=We,we}return gt(te,Ne),te}(Qe),at=function(Ne){function te(de,Re,We){We===void 0&&(We=!1);var we=Ne.call(this,de,We)||this;return we.marker=Re,we}return gt(te,Ne),te}(Qe),qe=function(){function Ne(){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 Ne.prototype.addEventListener=function(te,de){this[te].push(de)},Ne.prototype.removeEventListener=function(te,de){var Re=this[te].indexOf(de);Re>-1&&this[te].splice(Re,1)},Ne}(),Le=function(){function Ne(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ce,this._isOpen=!1,this.undoRedoManager=new Xe,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 qe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ne.instanceCounter++,this.styles=new ee(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.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(Ne.prototype,"ALL_MARKER_TYPES",{get:function(){return[De,Ae,Ue,Be,Ge,nt,ot,rt,et,He,je,Ve,tt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[De,Ae,Ue,Be,nt,ot,rt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"BASIC_MARKER_TYPES",{get:function(){return[De,Ae,Ue,Be,ot]},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var de=this;this._availableMarkerTypes.splice(0),te.forEach(function(Re){if(typeof Re=="string"){var We=de.ALL_MARKER_TYPES.find(function(we){return we.typeName===Re});We!==void 0&&de._availableMarkerTypes.push(We)}else de._availableMarkerTypes.push(Re)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ne.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,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(Ne.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ne.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),E.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ne.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(de){return de(new Qe(te))})},Ne.prototype.render=function(){return a(this,void 0,void 0,function(){var te;return Te(this,function(de){switch(de.label){case 0:return this.setCurrentMarker(),(te=new oe).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return de.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,de.sent()]}})})},Ne.prototype.close=function(te){var de=this;if(te===void 0&&(te=!1),this.isOpen){var Re=!1;te||this.eventListeners.beforeclose.forEach(function(We){var we=new Qe(de,!0);We(we),we.defaultPrevented&&(Re=!0)}),Re||(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(We){return We(new Qe(de))}),this.detachEvents(),this._isOpen=!1)}},Ne.prototype.addMarkersToToolbar=function(){for(var te,de=[],Re=0;Re<arguments.length;Re++)de[Re]=arguments[Re];(te=this._availableMarkerTypes).push.apply(te,de)},Ne.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(de){te(de.dataUrl,de.state)})},Ne.prototype.removeRenderEventListener=function(te){},Ne.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},Ne.prototype.removeCloseEventListener=function(te){},Ne.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ne.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,de=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,Re=de<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(de,Re)},Ne.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ne.prototype.resize=function(te,de){this._isResizing=!0;var Re=te/this.imageWidth,We=de/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(de),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(Re,We),this._isResizing=!1},Ne.prototype.scaleMarkers=function(te,de){var Re,We=this;this._currentMarker&&this._currentMarker instanceof Be?this._currentMarker.scale(te,de):(Re=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(we){we!==We._currentMarker&&we.scale(te,de)}),Re!==void 0&&this.setCurrentMarker(Re)},Ne.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"},Ne.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),de=this.editorCanvas.getBoundingClientRect();this.left=te.left-de.left,this.top=te.top-de.top},Ne.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)},Ne.prototype.addDefs=function(){for(var te,de=[],Re=0;Re<arguments.length;Re++)de[Re]=arguments[Re];this.defs=z.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,de)},Ne.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ne.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)},Ne.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ne.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ne.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)},Ne.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ne.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)},Ne.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 te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.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>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ne.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")},Ne.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"},Ne.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ne.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 te=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=te+"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 ne(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 re(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ne.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ne.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},Ne.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())},Ne.prototype.toolbarButtonClicked=function(te,de){if(te==="marker"&&de!==void 0)this.createNewMarker(de);else if(te==="action")switch(de){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()}},Ne.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var de=!1;if(this.eventListeners.markerbeforedelete.forEach(function(We){var we=new at(te,te._currentMarker,!0);We(we),we.defaultPrevented&&(de=!0)}),!de){var Re=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(We){return We(new at(te,Re))})}}},Ne.prototype.clear=function(){var te=this,de=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ye){var Oe=new at(te,void 0,!0);ye(Oe),Oe.defaultPrevented&&(de=!0)}),!de)){this.setCurrentMarker();for(var Re=function(ye){var Oe=We.markers[ye];We.setCurrentMarker(We.markers[ye]),We._currentMarker.dispose(),We.markerImage.removeChild(We._currentMarker.container),We.markers.splice(We.markers.indexOf(We._currentMarker),1),We.eventListeners.markerdelete.forEach(function($e){return $e(new at(te,Oe))})},We=this,we=this.markers.length-1;we>=0;we--)Re(we);this.addUndoStep()}},Object.defineProperty(Ne.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ne.prototype.showNotesEditor=function(){var te;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=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},Ne.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)},Ne.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ne.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var de=this.getState(),Re=this.undoRedoManager.getLastUndoStep();if(!Re||Re.width===de.width&&Re.height===de.height){var We=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(de),We<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(we){return we(new Qe(te))})}else this.undoRedoManager.replaceLastUndoStep(de),this.eventListeners.statechange.forEach(function(we){return we(new Qe(te))})}},Ne.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ne.prototype.undoStep=function(){var te=this,de=this.undoRedoManager.undo();de!==void 0&&(this.restoreState(de),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Re){return Re(new Qe(te))}))},Ne.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ne.prototype.redoStep=function(){var te=this,de=this.undoRedoManager.redo();de!==void 0&&(this.restoreState(de),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Re){return Re(new Qe(te))}))},Ne.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},Ne.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},Ne.prototype.startRenderAndClose=function(){return a(this,void 0,void 0,function(){var te,de,Re=this;return Te(this,function(We){switch(We.label){case 0:return[4,this.render()];case 1:return te=We.sent(),de=this.getState(),this.eventListeners.render.forEach(function(we){return we(new ct(Re,te,de))}),this.close(!0),[2]}})})},Ne.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var de={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Re){return de.markers.push(Re.getState())}),de},Ne.prototype.restoreState=function(te){var de=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(Re){var We=de._availableMarkerTypes.find(function(ye){return ye.typeName===Re.typeName});if(We!==void 0){var we=de.addNewMarker(We);we.restoreState(Re),de.markers.push(we)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(Re){return Re(new Qe(de))})},Ne.prototype.addNewMarker=function(te){var de=z.createGroup();return this.markerImage.appendChild(de),new te(de,this.overlayContainer,this.settings)},Ne.prototype.createNewMarker=function(te){var de,Re=this;(de=typeof te=="string"?this._availableMarkerTypes.find(function(We){return We.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(de),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(de.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(We){return We(new at(Re,Re._currentMarker))}))},Ne.prototype.markerCreated=function(te){var de=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof Ae&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ae):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Re){return Re(new at(de,de._currentMarker))})},Ne.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},Ne.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},Ne.prototype.markerStateChanged=function(te){var de=this;this.eventListeners.markerchange.forEach(function(Re){return Re(new at(de,te))})},Ne.prototype.setCurrentMarker=function(te){var de=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Re){return Re(new at(de,de._currentMarker))})),this._currentMarker=te,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(Re){return Re(new at(de,de._currentMarker))}))},Ne.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var de=this.markers.find(function(Re){return Re.ownsTarget(te.target)});de!==void 0?(this.setCurrentMarker(de),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},Ne.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var de=this.markers.find(function(Re){return Re.ownsTarget(te.target)});de!==void 0&&de!==this._currentMarker&&this.setCurrentMarker(de),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},Ne.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},Ne.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},Ne.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ne.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},Ne.prototype.clientToLocalCoordinates=function(te,de){var Re=this.markerImage.getBoundingClientRect();return{x:(te-Re.left)/this.zoomLevel,y:(de-Re.top)/this.zoomLevel}},Ne.prototype.onWindowResize=function(){this.positionUI()},Ne.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"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()},Ne.prototype.addLicenseKey=function(te){E.addKey(te)},Ne.prototype.addEventListener=function(te,de){this.eventListeners.addEventListener(te,de)},Ne.prototype.removeEventListener=function(te,de){this.eventListeners.removeEventListener(te,de)},Ne.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ne.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ne.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(de){return de(new Qe(te))}))},Ne.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(de){return de(new Qe(te))}))},Ne.instanceCounter=0,Ne}()},6551:function(Jt,jt,Ie){"use strict";Ie.d(jt,{ZP:function(){return E}});var ge=Ie(72190),gt=Ie(59301),a=Ie(47273),Te=0,xe=(0,a.Z)();function z(){var oe;return xe?(oe=Te,Te+=1):oe="TEST_OR_SSR",oe}function E(oe){var ie=gt.useState(),ee=(0,ge.Z)(ie,2),le=ee[0],x=ee[1];return gt.useEffect(function(){x("rc_select_".concat(z()))},[]),oe||le}},37463:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Ac:function(){return xt},Xo:function(){return It},Wx:function(){return Ct},ZP:function(){return xr},lk:function(){return he}});var ge=Ie(60499),gt=Ie(77654),a=Ie(18642),Te=Ie(85899),xe=Ie(72190),z=Ie(42244),E=Ie(43749),oe=Ie(18929),ie=Ie(48736),ee=Ie(59301),le=Ie(92310),x=Ie.n(le),ne=Ie(34280),re=Ie(49658),ae=Ie(8654),se=function(Lt){var bt=Lt.className,Mt=Lt.customizeIcon,wt=Lt.customizeIconProps,Nt=Lt.children,pt=Lt.onMouseDown,Bt=Lt.onClick,Wt=typeof Mt=="function"?Mt(wt):Mt;return ee.createElement("span",{className:bt,onMouseDown:function(zt){zt.preventDefault(),pt==null||pt(zt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Bt,"aria-hidden":!0},Wt!==void 0?Wt:ee.createElement("span",{className:x()(bt.split(/\s+/).map(function(Gt){return"".concat(Gt,"-icon")}))},Nt))},ce=se,pe=function(Lt,bt,Mt,wt,Nt){var pt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Bt=arguments.length>6?arguments[6]:void 0,Wt=arguments.length>7?arguments[7]:void 0,Gt=ee.useMemo(function(){if((0,E.Z)(wt)==="object")return wt.clearIcon;if(Nt)return Nt},[wt,Nt]),zt=ee.useMemo(function(){return!!(!pt&&wt&&(Mt.length||Bt)&&!(Wt==="combobox"&&Bt===""))},[wt,pt,Mt.length,Bt,Wt]);return{allowClear:zt,clearIcon:ee.createElement(ce,{className:"".concat(Lt,"-clear"),onMouseDown:bt,customizeIcon:Gt},"\xD7")}},me=ee.createContext(null);function he(){return ee.useContext(me)}function be(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Lt=ee.useState(!1),bt=(0,xe.Z)(Lt,2),Mt=bt[0],wt=bt[1],Nt=ee.useRef(null),pt=function(){window.clearTimeout(Nt.current)};ee.useEffect(function(){return pt},[]);var Bt=function(Gt,zt){pt(),Nt.current=window.setTimeout(function(){wt(Gt),zt&&zt()},Pt)};return[Mt,Bt,pt]}function Pe(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Lt=ee.useRef(null),bt=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(bt.current)}},[]);function Mt(wt){(wt||Lt.current===null)&&(Lt.current=wt),window.clearTimeout(bt.current),bt.current=window.setTimeout(function(){Lt.current=null},Pt)}return[function(){return Lt.current},Mt]}function Me(Pt,Lt,bt,Mt){var wt=ee.useRef(null);wt.current={open:Lt,triggerOpen:bt,customizedTrigger:Mt},ee.useEffect(function(){function Nt(pt){var Bt;if(!((Bt=wt.current)!==null&&Bt!==void 0&&Bt.customizedTrigger)){var Wt=pt.target;Wt.shadowRoot&&pt.composed&&(Wt=pt.composedPath()[0]||Wt),wt.current.open&&Pt().filter(function(Gt){return Gt}).every(function(Gt){return!Gt.contains(Wt)&&Gt!==Wt})&&wt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Nt),function(){return window.removeEventListener("mousedown",Nt)}},[])}var _e=Ie(10228);function De(Pt){return Pt&&![_e.Z.ESC,_e.Z.SHIFT,_e.Z.BACKSPACE,_e.Z.TAB,_e.Z.WIN_KEY,_e.Z.ALT,_e.Z.META,_e.Z.WIN_KEY_RIGHT,_e.Z.CTRL,_e.Z.SEMICOLON,_e.Z.EQUALS,_e.Z.CAPS_LOCK,_e.Z.CONTEXT_MENU,_e.Z.F1,_e.Z.F2,_e.Z.F3,_e.Z.F4,_e.Z.F5,_e.Z.F6,_e.Z.F7,_e.Z.F8,_e.Z.F9,_e.Z.F10,_e.Z.F11,_e.Z.F12].includes(Pt)}var Ce=Ie(26112),Ee=Ie(83836);function je(Pt,Lt,bt){var Mt=(0,Te.Z)((0,Te.Z)({},Pt),bt?Lt:{});return Object.keys(Lt).forEach(function(wt){var Nt=Lt[wt];typeof Nt=="function"&&(Mt[wt]=function(){for(var pt,Bt=arguments.length,Wt=new Array(Bt),Gt=0;Gt<Bt;Gt++)Wt[Gt]=arguments[Gt];return Nt.apply(void 0,Wt),(pt=Pt[wt])===null||pt===void 0?void 0:pt.call.apply(pt,[Pt].concat(Wt))})}),Mt}var ke=je,Be=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ae=function(Lt,bt){var Mt=Lt.prefixCls,wt=Lt.id,Nt=Lt.inputElement,pt=Lt.autoFocus,Bt=Lt.autoComplete,Wt=Lt.editable,Gt=Lt.activeDescendantId,zt=Lt.value,Rt=Lt.open,_t=Lt.attrs,Ut=(0,z.Z)(Lt,Be),dr=Nt||ee.createElement("input",null),cr=dr,hr=cr.ref,Br=cr.props;return(0,ie.Kp)(!("maxLength"in dr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),dr=ee.cloneElement(dr,(0,Te.Z)((0,Te.Z)((0,Te.Z)({type:"search"},ke(Ut,Br,!0)),{},{id:wt,ref:(0,ae.sQ)(bt,hr),autoComplete:Bt||"off",autoFocus:pt,className:x()("".concat(Mt,"-selection-search-input"),Br==null?void 0:Br.className),role:"combobox","aria-expanded":Rt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(wt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(wt,"_list"),"aria-activedescendant":Rt?Gt:void 0},_t),{},{value:Wt?zt:"",readOnly:!Wt,unselectable:Wt?null:"on",style:(0,Te.Z)((0,Te.Z)({},Br.style),{},{opacity:Wt?null:0})})),dr},ve=ee.forwardRef(Ae),Ue=ve;function He(Pt){return Array.isArray(Pt)?Pt:Pt!==void 0?[Pt]:[]}var Ye=typeof window!="undefined"&&window.document&&window.document.documentElement,ot=Ye;function Fe(Pt){return Pt!=null}function Ke(Pt){return!Pt&&Pt!==0}function rt(Pt){return["string","number"].includes((0,E.Z)(Pt))}function nt(Pt){var Lt=void 0;return Pt&&(rt(Pt.title)?Lt=Pt.title.toString():rt(Pt.label)&&(Lt=Pt.label.toString())),Lt}function et(Pt,Lt){ot?ee.useLayoutEffect(Pt,Lt):ee.useEffect(Pt,Lt)}function Ge(Pt){var Lt;return(Lt=Pt.key)!==null&&Lt!==void 0?Lt:Pt.value}var Xe=function(Lt){Lt.preventDefault(),Lt.stopPropagation()},Ve=function(Lt){var bt=Lt.id,Mt=Lt.prefixCls,wt=Lt.values,Nt=Lt.open,pt=Lt.searchValue,Bt=Lt.autoClearSearchValue,Wt=Lt.inputRef,Gt=Lt.placeholder,zt=Lt.disabled,Rt=Lt.mode,_t=Lt.showSearch,Ut=Lt.autoFocus,dr=Lt.autoComplete,cr=Lt.activeDescendantId,hr=Lt.tabIndex,Br=Lt.removeIcon,Fr=Lt.maxTagCount,Hr=Lt.maxTagTextLength,_r=Lt.maxTagPlaceholder,Pr=_r===void 0?function(Er){return"+ ".concat(Er.length," ...")}:_r,Rr=Lt.tagRender,Ur=Lt.onToggleOpen,Qr=Lt.onRemove,Vr=Lt.onInputChange,Jr=Lt.onInputPaste,Dr=Lt.onInputKeyDown,tn=Lt.onInputMouseDown,Gr=Lt.onInputCompositionStart,fn=Lt.onInputCompositionEnd,pn=Lt.onInputBlur,ln=ee.useRef(null),un=(0,ee.useState)(0),yn=(0,xe.Z)(un,2),sn=yn[0],dn=yn[1],en=(0,ee.useState)(!1),mn=(0,xe.Z)(en,2),bn=mn[0],Fn=mn[1],En="".concat(Mt,"-selection"),Mn=Nt||Rt==="multiple"&&Bt===!1||Rt==="tags"?pt:"",On=Rt==="tags"||Rt==="multiple"&&Bt===!1||_t&&(Nt||bn);et(function(){dn(ln.current.scrollWidth)},[Mn]);var In=function(pr,$r,Kr,wr,mr){return ee.createElement("span",{title:nt(pr),className:x()("".concat(En,"-item"),(0,a.Z)({},"".concat(En,"-item-disabled"),Kr))},ee.createElement("span",{className:"".concat(En,"-item-content")},$r),wr&&ee.createElement(ce,{className:"".concat(En,"-item-remove"),onMouseDown:Xe,onClick:mr,customizeIcon:Br},"\xD7"))},on=function(pr,$r,Kr,wr,mr,kr){var Lr=function(Pn){Xe(Pn),Ur(!Nt)};return ee.createElement("span",{onMouseDown:Lr},Rr({label:$r,value:pr,disabled:Kr,closable:wr,onClose:mr,isMaxTag:!!kr}))},nn=function(pr){var $r=pr.disabled,Kr=pr.label,wr=pr.value,mr=!zt&&!$r,kr=Kr;if(typeof Hr=="number"&&(typeof Kr=="string"||typeof Kr=="number")){var Lr=String(kr);Lr.length>Hr&&(kr="".concat(Lr.slice(0,Hr),"..."))}var cn=function(Tn){Tn&&Tn.stopPropagation(),Qr(pr)};return typeof Rr=="function"?on(wr,kr,$r,mr,cn):In(pr,kr,$r,mr,cn)},qr=function(pr){if(!wt.length)return null;var $r=typeof Pr=="function"?Pr(pr):Pr;return typeof Rr=="function"?on(void 0,$r,!1,!1,void 0,!0):In({title:$r},$r,!1)},vr=ee.createElement("div",{className:"".concat(En,"-search"),style:{width:sn},onFocus:function(){Fn(!0)},onBlur:function(){Fn(!1)}},ee.createElement(Ue,{ref:Wt,open:Nt,prefixCls:Mt,id:bt,inputElement:null,disabled:zt,autoFocus:Ut,autoComplete:dr,editable:On,activeDescendantId:cr,value:Mn,onKeyDown:Dr,onMouseDown:tn,onChange:Vr,onPaste:Jr,onCompositionStart:Gr,onCompositionEnd:fn,onBlur:pn,tabIndex:hr,attrs:(0,Ce.Z)(Lt,!0)}),ee.createElement("span",{ref:ln,className:"".concat(En,"-search-mirror"),"aria-hidden":!0},Mn,"\xA0")),Or=ee.createElement(Ee.Z,{prefixCls:"".concat(En,"-overflow"),data:wt,renderItem:nn,renderRest:qr,suffix:vr,itemKey:Ge,maxCount:Fr});return ee.createElement("span",{className:"".concat(En,"-wrap")},Or,!wt.length&&!Mn&&ee.createElement("span",{className:"".concat(En,"-placeholder")},Gt))},tt=Ve,Qe=function(Lt){var bt=Lt.inputElement,Mt=Lt.prefixCls,wt=Lt.id,Nt=Lt.inputRef,pt=Lt.disabled,Bt=Lt.autoFocus,Wt=Lt.autoComplete,Gt=Lt.activeDescendantId,zt=Lt.mode,Rt=Lt.open,_t=Lt.values,Ut=Lt.placeholder,dr=Lt.tabIndex,cr=Lt.showSearch,hr=Lt.searchValue,Br=Lt.activeValue,Fr=Lt.maxLength,Hr=Lt.onInputKeyDown,_r=Lt.onInputMouseDown,Pr=Lt.onInputChange,Rr=Lt.onInputPaste,Ur=Lt.onInputCompositionStart,Qr=Lt.onInputCompositionEnd,Vr=Lt.onInputBlur,Jr=Lt.title,Dr=ee.useState(!1),tn=(0,xe.Z)(Dr,2),Gr=tn[0],fn=tn[1],pn=zt==="combobox",ln=pn||cr,un=_t[0],yn=hr||"";pn&&Br&&!Gr&&(yn=Br),ee.useEffect(function(){pn&&fn(!1)},[pn,Br]);var sn=zt!=="combobox"&&!Rt&&!cr?!1:!!yn,dn=Jr===void 0?nt(un):Jr,en=ee.useMemo(function(){return un?null:ee.createElement("span",{className:"".concat(Mt,"-selection-placeholder"),style:sn?{visibility:"hidden"}:void 0},Ut)},[un,sn,Ut,Mt]);return ee.createElement("span",{className:"".concat(Mt,"-selection-wrap")},ee.createElement("span",{className:"".concat(Mt,"-selection-search")},ee.createElement(Ue,{ref:Nt,prefixCls:Mt,id:wt,open:Rt,inputElement:bt,disabled:pt,autoFocus:Bt,autoComplete:Wt,editable:ln,activeDescendantId:Gt,value:yn,onKeyDown:Hr,onMouseDown:_r,onChange:function(bn){fn(!0),Pr(bn)},onPaste:Rr,onCompositionStart:Ur,onCompositionEnd:Qr,onBlur:Vr,tabIndex:dr,attrs:(0,Ce.Z)(Lt,!0),maxLength:pn?Fr:void 0})),!pn&&un?ee.createElement("span",{className:"".concat(Mt,"-selection-item"),title:dn,style:sn?{visibility:"hidden"}:void 0},un.label):null,en)},ct=Qe,at=function(Lt,bt){var Mt=(0,ee.useRef)(null),wt=(0,ee.useRef)(!1),Nt=Lt.prefixCls,pt=Lt.open,Bt=Lt.mode,Wt=Lt.showSearch,Gt=Lt.tokenWithEnter,zt=Lt.disabled,Rt=Lt.prefix,_t=Lt.autoClearSearchValue,Ut=Lt.onSearch,dr=Lt.onSearchSubmit,cr=Lt.onToggleOpen,hr=Lt.onInputKeyDown,Br=Lt.onInputBlur,Fr=Lt.domRef;ee.useImperativeHandle(bt,function(){return{focus:function(dn){Mt.current.focus(dn)},blur:function(){Mt.current.blur()}}});var Hr=Pe(0),_r=(0,xe.Z)(Hr,2),Pr=_r[0],Rr=_r[1],Ur=function(dn){var en=dn.which,mn=Mt.current instanceof HTMLTextAreaElement;!mn&&pt&&(en===_e.Z.UP||en===_e.Z.DOWN)&&dn.preventDefault(),hr&&hr(dn),en===_e.Z.ENTER&&Bt==="tags"&&!wt.current&&!pt&&(dr==null||dr(dn.target.value)),!(mn&&!pt&&~[_e.Z.UP,_e.Z.DOWN,_e.Z.LEFT,_e.Z.RIGHT].indexOf(en))&&De(en)&&cr(!0)},Qr=function(){Rr(!0)},Vr=(0,ee.useRef)(null),Jr=function(dn){Ut(dn,!0,wt.current)!==!1&&cr(!0)},Dr=function(){wt.current=!0},tn=function(dn){wt.current=!1,Bt!=="combobox"&&Jr(dn.target.value)},Gr=function(dn){var en=dn.target.value;if(Gt&&Vr.current&&/[\r\n]/.test(Vr.current)){var mn=Vr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");en=en.replace(mn,Vr.current)}Vr.current=null,Jr(en)},fn=function(dn){var en=dn.clipboardData,mn=en==null?void 0:en.getData("text");Vr.current=mn||""},pn=function(dn){var en=dn.target;if(en!==Mt.current){var mn=document.body.style.msTouchAction!==void 0;mn?setTimeout(function(){Mt.current.focus()}):Mt.current.focus()}},ln=function(dn){var en=Pr();dn.target!==Mt.current&&!en&&!(Bt==="combobox"&&zt)&&dn.preventDefault(),(Bt!=="combobox"&&(!Wt||!en)||!pt)&&(pt&&_t!==!1&&Ut("",!0,!1),cr())},un={inputRef:Mt,onInputKeyDown:Ur,onInputMouseDown:Qr,onInputChange:Gr,onInputPaste:fn,onInputCompositionStart:Dr,onInputCompositionEnd:tn,onInputBlur:Br},yn=Bt==="multiple"||Bt==="tags"?ee.createElement(tt,(0,ge.Z)({},Lt,un)):ee.createElement(ct,(0,ge.Z)({},Lt,un));return ee.createElement("div",{ref:Fr,className:"".concat(Nt,"-selector"),onClick:pn,onMouseDown:ln},Rt&&ee.createElement("div",{className:"".concat(Nt,"-prefix")},Rt),yn)},qe=ee.forwardRef(at),Le=qe,Ne=Ie(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],de=function(Lt){var bt=Lt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"}}},Re=function(Lt,bt){var Mt=Lt.prefixCls,wt=Lt.disabled,Nt=Lt.visible,pt=Lt.children,Bt=Lt.popupElement,Wt=Lt.animation,Gt=Lt.transitionName,zt=Lt.dropdownStyle,Rt=Lt.dropdownClassName,_t=Lt.direction,Ut=_t===void 0?"ltr":_t,dr=Lt.placement,cr=Lt.builtinPlacements,hr=Lt.dropdownMatchSelectWidth,Br=Lt.dropdownRender,Fr=Lt.dropdownAlign,Hr=Lt.getPopupContainer,_r=Lt.empty,Pr=Lt.getTriggerDOMNode,Rr=Lt.onPopupVisibleChange,Ur=Lt.onPopupMouseEnter,Qr=(0,z.Z)(Lt,te),Vr="".concat(Mt,"-dropdown"),Jr=Bt;Br&&(Jr=Br(Bt));var Dr=ee.useMemo(function(){return cr||de(hr)},[cr,hr]),tn=Wt?"".concat(Vr,"-").concat(Wt):Gt,Gr=typeof hr=="number",fn=ee.useMemo(function(){return Gr?null:hr===!1?"minWidth":"width"},[hr,Gr]),pn=zt;Gr&&(pn=(0,Te.Z)((0,Te.Z)({},pn),{},{width:hr}));var ln=ee.useRef(null);return ee.useImperativeHandle(bt,function(){return{getPopupElement:function(){var yn;return(yn=ln.current)===null||yn===void 0?void 0:yn.popupElement}}}),ee.createElement(Ne.Z,(0,ge.Z)({},Qr,{showAction:Rr?["click"]:[],hideAction:Rr?["click"]:[],popupPlacement:dr||(Ut==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Dr,prefixCls:Vr,popupTransitionName:tn,popup:ee.createElement("div",{onMouseEnter:Ur},Jr),ref:ln,stretch:fn,popupAlign:Fr,popupVisible:Nt,getPopupContainer:Hr,popupClassName:x()(Rt,(0,a.Z)({},"".concat(Vr,"-empty"),_r)),popupStyle:pn,getTriggerDOMNode:Pr,onPopupVisibleChange:Rr}),pt)},We=ee.forwardRef(Re),we=We,ye=Ie(48745);function Oe(Pt,Lt){var bt=Pt.key,Mt;return"value"in Pt&&(Mt=Pt.value),bt!=null?bt:Mt!==void 0?Mt:"rc-index-key-".concat(Lt)}function $e(Pt){return typeof Pt!="undefined"&&!Number.isNaN(Pt)}function Ze(Pt,Lt){var bt=Pt||{},Mt=bt.label,wt=bt.value,Nt=bt.options,pt=bt.groupLabel,Bt=Mt||(Lt?"children":"label");return{label:Bt,value:wt||"value",options:Nt||"options",groupLabel:pt||Bt}}function Je(Pt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},bt=Lt.fieldNames,Mt=Lt.childrenAsData,wt=[],Nt=Ze(bt,!1),pt=Nt.label,Bt=Nt.value,Wt=Nt.options,Gt=Nt.groupLabel;function zt(Rt,_t){Array.isArray(Rt)&&Rt.forEach(function(Ut){if(_t||!(Wt in Ut)){var dr=Ut[Bt];wt.push({key:Oe(Ut,wt.length),groupOption:_t,data:Ut,label:Ut[pt],value:dr})}else{var cr=Ut[Gt];cr===void 0&&Mt&&(cr=Ut.label),wt.push({key:Oe(Ut,wt.length),group:!0,data:Ut,label:cr}),zt(Ut[Wt],!0)}})}return zt(Pt,!1),wt}function st(Pt){var Lt=(0,Te.Z)({},Pt);return"props"in Lt||Object.defineProperty(Lt,"props",{get:function(){return(0,ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Lt}}),Lt}var lt=function(Lt,bt,Mt){if(!bt||!bt.length)return null;var wt=!1,Nt=function Bt(Wt,Gt){var zt=(0,ye.Z)(Gt),Rt=zt[0],_t=zt.slice(1);if(!Rt)return[Wt];var Ut=Wt.split(Rt);return wt=wt||Ut.length>1,Ut.reduce(function(dr,cr){return[].concat((0,gt.Z)(dr),(0,gt.Z)(Bt(cr,_t)))},[]).filter(Boolean)},pt=Nt(Lt,bt);return wt?typeof Mt!="undefined"?pt.slice(0,Mt):pt:null},ft=ee.createContext(null),Tt=ft;function St(Pt){var Lt=Pt.visible,bt=Pt.values;if(!Lt)return null;var Mt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(bt.slice(0,Mt).map(function(wt){var Nt=wt.label,pt=wt.value;return["number","string"].includes((0,E.Z)(Nt))?Nt:pt}).join(", ")),bt.length>Mt?", ...":null)}var Ot=["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"],yt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Dt=function(Lt){return Lt==="tags"||Lt==="multiple"},Et=ee.forwardRef(function(Pt,Lt){var bt,Mt=Pt.id,wt=Pt.prefixCls,Nt=Pt.className,pt=Pt.showSearch,Bt=Pt.tagRender,Wt=Pt.direction,Gt=Pt.omitDomProps,zt=Pt.displayValues,Rt=Pt.onDisplayValuesChange,_t=Pt.emptyOptions,Ut=Pt.notFoundContent,dr=Ut===void 0?"Not Found":Ut,cr=Pt.onClear,hr=Pt.mode,Br=Pt.disabled,Fr=Pt.loading,Hr=Pt.getInputElement,_r=Pt.getRawInputElement,Pr=Pt.open,Rr=Pt.defaultOpen,Ur=Pt.onDropdownVisibleChange,Qr=Pt.activeValue,Vr=Pt.onActiveValueChange,Jr=Pt.activeDescendantId,Dr=Pt.searchValue,tn=Pt.autoClearSearchValue,Gr=Pt.onSearch,fn=Pt.onSearchSplit,pn=Pt.tokenSeparators,ln=Pt.allowClear,un=Pt.prefix,yn=Pt.suffixIcon,sn=Pt.clearIcon,dn=Pt.OptionList,en=Pt.animation,mn=Pt.transitionName,bn=Pt.dropdownStyle,Fn=Pt.dropdownClassName,En=Pt.dropdownMatchSelectWidth,Mn=Pt.dropdownRender,On=Pt.dropdownAlign,In=Pt.placement,on=Pt.builtinPlacements,nn=Pt.getPopupContainer,qr=Pt.showAction,vr=qr===void 0?[]:qr,Or=Pt.onFocus,Er=Pt.onBlur,pr=Pt.onKeyUp,$r=Pt.onKeyDown,Kr=Pt.onMouseDown,wr=(0,z.Z)(Pt,Ot),mr=Dt(hr),kr=(pt!==void 0?pt:mr)||hr==="combobox",Lr=(0,Te.Z)({},wr);yt.forEach(function(zn){delete Lr[zn]}),Gt==null||Gt.forEach(function(zn){delete Lr[zn]});var cn=ee.useState(!1),Pn=(0,xe.Z)(cn,2),Tn=Pn[0],_n=Pn[1];ee.useEffect(function(){_n((0,re.Z)())},[]);var Nn=ee.useRef(null),Bn=ee.useRef(null),Zn=ee.useRef(null),$n=ee.useRef(null),Vn=ee.useRef(null),ti=ee.useRef(!1),Ei=be(),Ri=(0,xe.Z)(Ei,3),xi=Ri[0],li=Ri[1],_i=Ri[2];ee.useImperativeHandle(Lt,function(){var zn,jn;return{focus:(zn=$n.current)===null||zn===void 0?void 0:zn.focus,blur:(jn=$n.current)===null||jn===void 0?void 0:jn.blur,scrollTo:function(wi){var ii;return(ii=Vn.current)===null||ii===void 0?void 0:ii.scrollTo(wi)},nativeElement:Nn.current||Bn.current}});var Wn=ee.useMemo(function(){var zn;if(hr!=="combobox")return Dr;var jn=(zn=zt[0])===null||zn===void 0?void 0:zn.value;return typeof jn=="string"||typeof jn=="number"?String(jn):""},[Dr,hr,zt]),Ki=hr==="combobox"&&typeof Hr=="function"&&Hr()||null,qn=typeof _r=="function"&&_r(),xn=(0,ae.x1)(Bn,qn==null||(bt=qn.props)===null||bt===void 0?void 0:bt.ref),Ln=ee.useState(!1),Hn=(0,xe.Z)(Ln,2),Sn=Hn[0],Rn=Hn[1];(0,ne.Z)(function(){Rn(!0)},[]);var Dn=(0,oe.Z)(!1,{defaultValue:Rr,value:Pr}),ui=(0,xe.Z)(Dn,2),Ii=ui[0],di=ui[1],ri=Sn?Ii:!1,xo=!dr&&_t;(Br||xo&&ri&&hr==="combobox")&&(ri=!1);var lo=xo?!1:ri,vn=ee.useCallback(function(zn){var jn=zn!==void 0?zn:!ri;Br||(di(jn),ri!==jn&&(Ur==null||Ur(jn)))},[Br,ri,di,Ur]),An=ee.useMemo(function(){return(pn||[]).some(function(zn){return[`
`,`\r
`].includes(zn)})},[pn]),wn=ee.useContext(Tt)||{},Cn=wn.maxCount,Un=wn.rawValues,Xn=function(jn,yi,wi){if(!(mr&&$e(Cn)&&(Un==null?void 0:Un.size)>=Cn)){var ii=!0,ci=jn;Vr==null||Vr(null);var Yi=lt(jn,pn,$e(Cn)?Cn-Un.size:void 0),Gi=wi?null:Yi;return hr!=="combobox"&&Gi&&(ci="",fn==null||fn(Gi),vn(!1),ii=!1),Gr&&Wn!==ci&&Gr(ci,{source:yi?"typing":"effect"}),ii}},Vi=function(jn){!jn||!jn.trim()||Gr(jn,{source:"submit"})};ee.useEffect(function(){!ri&&!mr&&hr!=="combobox"&&Xn("",!1,!1)},[ri]),ee.useEffect(function(){Ii&&Br&&di(!1),Br&&!ti.current&&li(!1)},[Br]);var Oi=Pe(),gi=(0,xe.Z)(Oi,2),ni=gi[0],Hi=gi[1],eo=ee.useRef(!1),Bi=function(jn){var yi=ni(),wi=jn.key,ii=wi==="Enter";if(ii&&(hr!=="combobox"&&jn.preventDefault(),ri||vn(!0)),Hi(!!Wn),wi==="Backspace"&&!yi&&mr&&!Wn&&zt.length){for(var ci=(0,gt.Z)(zt),Yi=null,Gi=ci.length-1;Gi>=0;Gi-=1){var oo=ci[Gi];if(!oo.disabled){ci.splice(Gi,1),Yi=oo;break}}Yi&&Rt(ci,{type:"remove",values:[Yi]})}for(var Li=arguments.length,Fi=new Array(Li>1?Li-1:0),Ji=1;Ji<Li;Ji++)Fi[Ji-1]=arguments[Ji];if(ri&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=Vn.current)===null||co===void 0||co.onKeyDown.apply(co,[jn].concat(Fi))}$r==null||$r.apply(void 0,[jn].concat(Fi))},to=function(jn){for(var yi=arguments.length,wi=new Array(yi>1?yi-1:0),ii=1;ii<yi;ii++)wi[ii-1]=arguments[ii];if(ri){var ci;(ci=Vn.current)===null||ci===void 0||ci.onKeyUp.apply(ci,[jn].concat(wi))}jn.key==="Enter"&&(eo.current=!1),pr==null||pr.apply(void 0,[jn].concat(wi))},io=function(jn){var yi=zt.filter(function(wi){return wi!==jn});Rt(yi,{type:"remove",values:[jn]})},Xi=function(){eo.current=!1},Po=ee.useRef(!1),Ha=function(){li(!0),Br||(Or&&!Po.current&&Or.apply(void 0,arguments),vr.includes("focus")&&vn(!0)),Po.current=!0},ya=function(){ti.current=!0,li(!1,function(){Po.current=!1,ti.current=!1,vn(!1)}),!Br&&(Wn&&(hr==="tags"?Gr(Wn,{source:"submit"}):hr==="multiple"&&Gr("",{source:"blur"})),Er&&Er.apply(void 0,arguments))},ro=[];ee.useEffect(function(){return function(){ro.forEach(function(zn){return clearTimeout(zn)}),ro.splice(0,ro.length)}},[]);var uo=function(jn){var yi,wi=jn.target,ii=(yi=Zn.current)===null||yi===void 0?void 0:yi.getPopupElement();if(ii&&ii.contains(wi)){var ci=setTimeout(function(){var Li=ro.indexOf(ci);if(Li!==-1&&ro.splice(Li,1),_i(),!Tn&&!ii.contains(document.activeElement)){var Fi;(Fi=$n.current)===null||Fi===void 0||Fi.focus()}});ro.push(ci)}for(var Yi=arguments.length,Gi=new Array(Yi>1?Yi-1:0),oo=1;oo<Yi;oo++)Gi[oo-1]=arguments[oo];Kr==null||Kr.apply(void 0,[jn].concat(Gi))},Zi=ee.useState({}),ba=(0,xe.Z)(Zi,2),xa=ba[1];function Za(){xa({})}var wa;qn&&(wa=function(jn){vn(jn)}),Me(function(){var zn;return[Nn.current,(zn=Zn.current)===null||zn===void 0?void 0:zn.getPopupElement()]},lo,vn,!!qn);var Ga=ee.useMemo(function(){return(0,Te.Z)((0,Te.Z)({},Pt),{},{notFoundContent:dr,open:ri,triggerOpen:lo,id:Mt,showSearch:kr,multiple:mr,toggleOpen:vn})},[Pt,dr,lo,ri,Mt,kr,mr,vn]),Ko=!!yn||Fr,Vo;Ko&&(Vo=ee.createElement(ce,{className:x()("".concat(wt,"-arrow"),(0,a.Z)({},"".concat(wt,"-arrow-loading"),Fr)),customizeIcon:yn,customizeIconProps:{loading:Fr,searchValue:Wn,open:ri,focused:xi,showSearch:kr}}));var wo=function(){var jn;cr==null||cr(),(jn=$n.current)===null||jn===void 0||jn.focus(),Rt([],{type:"clear",values:zt}),Xn("",!1,!1)},Xo=pe(wt,wo,zt,ln,sn,Br,Wn,hr),Sa=Xo.allowClear,Yo=Xo.clearIcon,Do=ee.createElement(dn,{ref:Vn}),Ca=x()(wt,Nt,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(wt,"-focused"),xi),"".concat(wt,"-multiple"),mr),"".concat(wt,"-single"),!mr),"".concat(wt,"-allow-clear"),ln),"".concat(wt,"-show-arrow"),Ko),"".concat(wt,"-disabled"),Br),"".concat(wt,"-loading"),Fr),"".concat(wt,"-open"),ri),"".concat(wt,"-customize-input"),Ki),"".concat(wt,"-show-search"),kr)),ko=ee.createElement(we,{ref:Zn,disabled:Br,prefixCls:wt,visible:lo,popupElement:Do,animation:en,transitionName:mn,dropdownStyle:bn,dropdownClassName:Fn,direction:Wt,dropdownMatchSelectWidth:En,dropdownRender:Mn,dropdownAlign:On,placement:In,builtinPlacements:on,getPopupContainer:nn,empty:_t,getTriggerDOMNode:function(jn){return Bn.current||jn},onPopupVisibleChange:wa,onPopupMouseEnter:Za},qn?ee.cloneElement(qn,{ref:xn}):ee.createElement(Le,(0,ge.Z)({},Pt,{domRef:Bn,prefixCls:wt,inputElement:Ki,ref:$n,id:Mt,prefix:un,showSearch:kr,autoClearSearchValue:tn,mode:hr,activeDescendantId:Jr,tagRender:Bt,values:zt,open:ri,onToggleOpen:vn,activeValue:Qr,searchValue:Wn,onSearch:Xn,onSearchSubmit:Vi,onRemove:io,tokenWithEnter:An,onInputBlur:Xi}))),ji;return qn?ji=ko:ji=ee.createElement("div",(0,ge.Z)({className:Ca},Lr,{ref:Nn,onMouseDown:uo,onKeyDown:Bi,onKeyUp:to,onFocus:Ha,onBlur:ya}),ee.createElement(St,{visible:xi&&!ri,values:zt}),ko,Vo,Sa&&Yo),ee.createElement(me.Provider,{value:Ga},ji)}),xt=Et,At=function(){return null};At.isSelectOptGroup=!0;var It=At,ht=function(){return null};ht.isSelectOption=!0;var Ct=ht,Ht=Ie(80547),Vt=Ie(2738),vt=Ie(48911);function kt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var $t=["disabled","title","children","style","className"];function Kt(Pt){return typeof Pt=="string"||typeof Pt=="number"}var tr=function(Lt,bt){var Mt=he(),wt=Mt.prefixCls,Nt=Mt.id,pt=Mt.open,Bt=Mt.multiple,Wt=Mt.mode,Gt=Mt.searchValue,zt=Mt.toggleOpen,Rt=Mt.notFoundContent,_t=Mt.onPopupScroll,Ut=ee.useContext(Tt),dr=Ut.maxCount,cr=Ut.flattenOptions,hr=Ut.onActiveValue,Br=Ut.defaultActiveFirstOption,Fr=Ut.onSelect,Hr=Ut.menuItemSelectedIcon,_r=Ut.rawValues,Pr=Ut.fieldNames,Rr=Ut.virtual,Ur=Ut.direction,Qr=Ut.listHeight,Vr=Ut.listItemHeight,Jr=Ut.optionRender,Dr="".concat(wt,"-item"),tn=(0,Ht.Z)(function(){return cr},[pt,cr],function(qr,vr){return vr[0]&&qr[1]!==vr[1]}),Gr=ee.useRef(null),fn=ee.useMemo(function(){return Bt&&$e(dr)&&(_r==null?void 0:_r.size)>=dr},[Bt,dr,_r==null?void 0:_r.size]),pn=function(vr){vr.preventDefault()},ln=function(vr){var Or;(Or=Gr.current)===null||Or===void 0||Or.scrollTo(typeof vr=="number"?{index:vr}:vr)},un=ee.useCallback(function(qr){return Wt==="combobox"?!1:_r.has(qr)},[Wt,(0,gt.Z)(_r).toString(),_r.size]),yn=function(vr){for(var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Er=tn.length,pr=0;pr<Er;pr+=1){var $r=(vr+pr*Or+Er)%Er,Kr=tn[$r]||{},wr=Kr.group,mr=Kr.data;if(!wr&&!(mr!=null&&mr.disabled)&&(un(mr.value)||!fn))return $r}return-1},sn=ee.useState(function(){return yn(0)}),dn=(0,xe.Z)(sn,2),en=dn[0],mn=dn[1],bn=function(vr){var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mn(vr);var Er={source:Or?"keyboard":"mouse"},pr=tn[vr];if(!pr){hr(null,-1,Er);return}hr(pr.value,vr,Er)};(0,ee.useEffect)(function(){bn(Br!==!1?yn(0):-1)},[tn.length,Gt]);var Fn=ee.useCallback(function(qr){return Wt==="combobox"?String(qr).toLowerCase()===Gt.toLowerCase():_r.has(qr)},[Wt,Gt,(0,gt.Z)(_r).toString(),_r.size]);(0,ee.useEffect)(function(){var qr=setTimeout(function(){if(!Bt&&pt&&_r.size===1){var Or=Array.from(_r)[0],Er=tn.findIndex(function(pr){var $r=pr.data;return Gt?String($r.value).startsWith(Gt):$r.value===Or});Er!==-1&&(bn(Er),ln(Er))}});if(pt){var vr;(vr=Gr.current)===null||vr===void 0||vr.scrollTo(void 0)}return function(){return clearTimeout(qr)}},[pt,Gt]);var En=function(vr){vr!==void 0&&Fr(vr,{selected:!_r.has(vr)}),Bt||zt(!1)};if(ee.useImperativeHandle(bt,function(){return{onKeyDown:function(vr){var Or=vr.which,Er=vr.ctrlKey;switch(Or){case _e.Z.N:case _e.Z.P:case _e.Z.UP:case _e.Z.DOWN:{var pr=0;if(Or===_e.Z.UP?pr=-1:Or===_e.Z.DOWN?pr=1:kt()&&Er&&(Or===_e.Z.N?pr=1:Or===_e.Z.P&&(pr=-1)),pr!==0){var $r=yn(en+pr,pr);ln($r),bn($r,!0)}break}case _e.Z.TAB:case _e.Z.ENTER:{var Kr,wr=tn[en];wr&&!(wr!=null&&(Kr=wr.data)!==null&&Kr!==void 0&&Kr.disabled)&&!fn?En(wr.value):En(void 0),pt&&vr.preventDefault();break}case _e.Z.ESC:zt(!1),pt&&vr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vr){ln(vr)}}}),tn.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(Nt,"_list"),className:"".concat(Dr,"-empty"),onMouseDown:pn},Rt);var Mn=Object.keys(Pr).map(function(qr){return Pr[qr]}),On=function(vr){return vr.label};function In(qr,vr){var Or=qr.group;return{role:Or?"presentation":"option",id:"".concat(Nt,"_list_").concat(vr)}}var on=function(vr){var Or=tn[vr];if(!Or)return null;var Er=Or.data||{},pr=Er.value,$r=Or.group,Kr=(0,Ce.Z)(Er,!0),wr=On(Or);return Or?ee.createElement("div",(0,ge.Z)({"aria-label":typeof wr=="string"&&!$r?wr:null},Kr,{key:vr},In(Or,vr),{"aria-selected":Fn(pr)}),pr):null},nn={role:"listbox",id:"".concat(Nt,"_list")};return ee.createElement(ee.Fragment,null,Rr&&ee.createElement("div",(0,ge.Z)({},nn,{style:{height:0,width:0,overflow:"hidden"}}),on(en-1),on(en),on(en+1)),ee.createElement(vt.Z,{itemKey:"key",ref:Gr,data:tn,height:Qr,itemHeight:Vr,fullHeight:!1,onMouseDown:pn,onScroll:_t,virtual:Rr,direction:Ur,innerProps:Rr?null:nn},function(qr,vr){var Or=qr.group,Er=qr.groupOption,pr=qr.data,$r=qr.label,Kr=qr.value,wr=pr.key;if(Or){var mr,kr=(mr=pr.title)!==null&&mr!==void 0?mr:Kt($r)?$r.toString():void 0;return ee.createElement("div",{className:x()(Dr,"".concat(Dr,"-group"),pr.className),title:kr},$r!==void 0?$r:wr)}var Lr=pr.disabled,cn=pr.title,Pn=pr.children,Tn=pr.style,_n=pr.className,Nn=(0,z.Z)(pr,$t),Bn=(0,Vt.Z)(Nn,Mn),Zn=un(Kr),$n=Lr||!Zn&&fn,Vn="".concat(Dr,"-option"),ti=x()(Dr,Vn,_n,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(Vn,"-grouped"),Er),"".concat(Vn,"-active"),en===vr&&!$n),"".concat(Vn,"-disabled"),$n),"".concat(Vn,"-selected"),Zn)),Ei=On(qr),Ri=!Hr||typeof Hr=="function"||Zn,xi=typeof Ei=="number"?Ei:Ei||Kr,li=Kt(xi)?xi.toString():void 0;return cn!==void 0&&(li=cn),ee.createElement("div",(0,ge.Z)({},(0,Ce.Z)(Bn),Rr?{}:In(qr,vr),{"aria-selected":Fn(Kr),className:ti,title:li,onMouseMove:function(){en===vr||$n||bn(vr)},onClick:function(){$n||En(Kr)},style:Tn}),ee.createElement("div",{className:"".concat(Vn,"-content")},typeof Jr=="function"?Jr(qr,{index:vr}):xi),ee.isValidElement(Hr)||Zn,Ri&&ee.createElement(ce,{className:"".concat(Dr,"-option-state"),customizeIcon:Hr,customizeIconProps:{value:Kr,disabled:$n,isSelected:Zn}},Zn?"\u2713":null))}))},sr=ee.forwardRef(tr),gr=sr,br=function(Pt,Lt){var bt=ee.useRef({values:new Map,options:new Map}),Mt=ee.useMemo(function(){var Nt=bt.current,pt=Nt.values,Bt=Nt.options,Wt=Pt.map(function(Rt){if(Rt.label===void 0){var _t;return(0,Te.Z)((0,Te.Z)({},Rt),{},{label:(_t=pt.get(Rt.value))===null||_t===void 0?void 0:_t.label})}return Rt}),Gt=new Map,zt=new Map;return Wt.forEach(function(Rt){Gt.set(Rt.value,Rt),zt.set(Rt.value,Lt.get(Rt.value)||Bt.get(Rt.value))}),bt.current.values=Gt,bt.current.options=zt,Wt},[Pt,Lt]),wt=ee.useCallback(function(Nt){return Lt.get(Nt)||bt.current.options.get(Nt)},[Lt]);return[Mt,wt]};function fr(Pt,Lt){return He(Pt).join("").toUpperCase().includes(Lt)}var yr=function(Pt,Lt,bt,Mt,wt){return ee.useMemo(function(){if(!bt||Mt===!1)return Pt;var Nt=Lt.options,pt=Lt.label,Bt=Lt.value,Wt=[],Gt=typeof Mt=="function",zt=bt.toUpperCase(),Rt=Gt?Mt:function(Ut,dr){return wt?fr(dr[wt],zt):dr[Nt]?fr(dr[pt!=="children"?pt:"label"],zt):fr(dr[Bt],zt)},_t=Gt?function(Ut){return st(Ut)}:function(Ut){return Ut};return Pt.forEach(function(Ut){if(Ut[Nt]){var dr=Rt(bt,_t(Ut));if(dr)Wt.push(Ut);else{var cr=Ut[Nt].filter(function(hr){return Rt(bt,_t(hr))});cr.length&&Wt.push((0,Te.Z)((0,Te.Z)({},Ut),{},(0,a.Z)({},Nt,cr)))}return}Rt(bt,_t(Ut))&&Wt.push(Ut)}),Wt},[Pt,Mt,wt,bt,Lt])},ir=Ie(6551),Yt=Ie(11592),Qt=["children","value"],qt=["children"];function Xt(Pt){var Lt=Pt,bt=Lt.key,Mt=Lt.props,wt=Mt.children,Nt=Mt.value,pt=(0,z.Z)(Mt,Qt);return(0,Te.Z)({key:bt,value:Nt!==void 0?Nt:bt,children:wt},pt)}function ur(Pt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Yt.Z)(Pt).map(function(bt,Mt){if(!ee.isValidElement(bt)||!bt.type)return null;var wt=bt,Nt=wt.type.isSelectOptGroup,pt=wt.key,Bt=wt.props,Wt=Bt.children,Gt=(0,z.Z)(Bt,qt);return Lt||!Nt?Xt(bt):(0,Te.Z)((0,Te.Z)({key:"__RC_SELECT_GRP__".concat(pt===null?Mt:pt,"__"),label:pt},Gt),{},{options:ur(Wt)})}).filter(function(bt){return bt})}var lr=function(Lt,bt,Mt,wt,Nt){return ee.useMemo(function(){var pt=Lt,Bt=!Lt;Bt&&(pt=ur(bt));var Wt=new Map,Gt=new Map,zt=function(Ut,dr,cr){cr&&typeof cr=="string"&&Ut.set(dr[cr],dr)},Rt=function _t(Ut){for(var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cr=0;cr<Ut.length;cr+=1){var hr=Ut[cr];!hr[Mt.options]||dr?(Wt.set(hr[Mt.value],hr),zt(Gt,hr,Mt.label),zt(Gt,hr,wt),zt(Gt,hr,Nt)):_t(hr[Mt.options],!0)}};return Rt(pt),{options:pt,valueOptions:Wt,labelOptions:Gt}},[Lt,bt,Mt,wt,Nt])},ar=lr;function Cr(Pt){var Lt=ee.useRef();Lt.current=Pt;var bt=ee.useCallback(function(){return Lt.current.apply(Lt,arguments)},[]);return bt}function Ar(Pt){var Lt=Pt.mode,bt=Pt.options,Mt=Pt.children,wt=Pt.backfill,Nt=Pt.allowClear,pt=Pt.placeholder,Bt=Pt.getInputElement,Wt=Pt.showSearch,Gt=Pt.onSearch,zt=Pt.defaultOpen,Rt=Pt.autoFocus,_t=Pt.labelInValue,Ut=Pt.value,dr=Pt.inputValue,cr=Pt.optionLabelProp,hr=isMultiple(Lt),Br=Wt!==void 0?Wt:hr||Lt==="combobox",Fr=bt||convertChildrenToData(Mt);if(warning(Lt!=="tags"||Fr.every(function(Rr){return!Rr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Lt==="tags"||Lt==="combobox"){var Hr=Fr.some(function(Rr){return Rr.options?Rr.options.some(function(Ur){return typeof("value"in Ur?Ur.value:Ur.key)=="number"}):typeof("value"in Rr?Rr.value:Rr.key)=="number"});warning(!Hr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Lt!=="combobox"||!cr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Lt==="combobox"||!wt,"`backfill` only works with `combobox` mode."),warning(Lt==="combobox"||!Bt,"`getInputElement` only work with `combobox` mode."),noteOnce(Lt!=="combobox"||!Bt||!Nt||!pt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Gt&&!Br&&Lt!=="combobox"&&Lt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!zt||Rt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ut!=null){var _r=toArray(Ut);warning(!_t||_r.every(function(Rr){return _typeof(Rr)==="object"&&("key"in Rr||"value"in Rr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!hr||Array.isArray(Ut),"`value` should be array when `mode` is `multiple` or `tags`")}if(Mt){var Pr=null;toNodeArray(Mt).some(function(Rr){if(!React.isValidElement(Rr)||!Rr.type)return!1;var Ur=Rr,Qr=Ur.type;if(Qr.isSelectOption)return!1;if(Qr.isSelectOptGroup){var Vr=toNodeArray(Rr.props.children).every(function(Jr){return!React.isValidElement(Jr)||!Rr.type||Jr.type.isSelectOption?!0:(Pr=Jr.type,!1)});return!Vr}return Pr=Qr,!0}),Pr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Pr.displayName||Pr.name||Pr,"`.")),warning(dr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Tr(Pt,Lt){if(Pt){var bt=function Mt(wt){for(var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pt=0;pt<wt.length;pt++){var Bt=wt[pt];if(Bt[Lt==null?void 0:Lt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Nt&&Array.isArray(Bt[Lt==null?void 0:Lt.options])&&Mt(Bt[Lt==null?void 0:Lt.options],!0))break}};bt(Pt)}}var Nr=null,jr=["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"],Zr=["inputValue"];function Wr(Pt){return!Pt||(0,E.Z)(Pt)!=="object"}var er=ee.forwardRef(function(Pt,Lt){var bt=Pt.id,Mt=Pt.mode,wt=Pt.prefixCls,Nt=wt===void 0?"rc-select":wt,pt=Pt.backfill,Bt=Pt.fieldNames,Wt=Pt.inputValue,Gt=Pt.searchValue,zt=Pt.onSearch,Rt=Pt.autoClearSearchValue,_t=Rt===void 0?!0:Rt,Ut=Pt.onSelect,dr=Pt.onDeselect,cr=Pt.dropdownMatchSelectWidth,hr=cr===void 0?!0:cr,Br=Pt.filterOption,Fr=Pt.filterSort,Hr=Pt.optionFilterProp,_r=Pt.optionLabelProp,Pr=Pt.options,Rr=Pt.optionRender,Ur=Pt.children,Qr=Pt.defaultActiveFirstOption,Vr=Pt.menuItemSelectedIcon,Jr=Pt.virtual,Dr=Pt.direction,tn=Pt.listHeight,Gr=tn===void 0?200:tn,fn=Pt.listItemHeight,pn=fn===void 0?20:fn,ln=Pt.labelRender,un=Pt.value,yn=Pt.defaultValue,sn=Pt.labelInValue,dn=Pt.onChange,en=Pt.maxCount,mn=(0,z.Z)(Pt,jr),bn=(0,ir.ZP)(bt),Fn=Dt(Mt),En=!!(!Pr&&Ur),Mn=ee.useMemo(function(){return Br===void 0&&Mt==="combobox"?!1:Br},[Br,Mt]),On=ee.useMemo(function(){return Ze(Bt,En)},[JSON.stringify(Bt),En]),In=(0,oe.Z)("",{value:Gt!==void 0?Gt:Wt,postState:function(An){return An||""}}),on=(0,xe.Z)(In,2),nn=on[0],qr=on[1],vr=ar(Pr,Ur,On,Hr,_r),Or=vr.valueOptions,Er=vr.labelOptions,pr=vr.options,$r=ee.useCallback(function(vn){var An=He(vn);return An.map(function(wn){var Cn,Un,Xn,Vi,Oi;if(Wr(wn))Cn=wn;else{var gi;Xn=wn.key,Un=wn.label,Cn=(gi=wn.value)!==null&&gi!==void 0?gi:Xn}var ni=Or.get(Cn);if(ni){var Hi;if(Un===void 0&&(Un=ni==null?void 0:ni[_r||On.label]),Xn===void 0&&(Xn=(Hi=ni==null?void 0:ni.key)!==null&&Hi!==void 0?Hi:Cn),Vi=ni==null?void 0:ni.disabled,Oi=ni==null?void 0:ni.title,0)var eo}return{label:Un,value:Cn,key:Xn,disabled:Vi,title:Oi}})},[On,_r,Or]),Kr=(0,oe.Z)(yn,{value:un}),wr=(0,xe.Z)(Kr,2),mr=wr[0],kr=wr[1],Lr=ee.useMemo(function(){var vn,An=Fn&&mr===null?[]:mr,wn=$r(An);return Mt==="combobox"&&Ke((vn=wn[0])===null||vn===void 0?void 0:vn.value)?[]:wn},[mr,$r,Mt,Fn]),cn=br(Lr,Or),Pn=(0,xe.Z)(cn,2),Tn=Pn[0],_n=Pn[1],Nn=ee.useMemo(function(){if(!Mt&&Tn.length===1){var vn=Tn[0];if(vn.value===null&&(vn.label===null||vn.label===void 0))return[]}return Tn.map(function(An){var wn;return(0,Te.Z)((0,Te.Z)({},An),{},{label:(wn=typeof ln=="function"?ln(An):An.label)!==null&&wn!==void 0?wn:An.value})})},[Mt,Tn,ln]),Bn=ee.useMemo(function(){return new Set(Tn.map(function(vn){return vn.value}))},[Tn]);ee.useEffect(function(){if(Mt==="combobox"){var vn,An=(vn=Tn[0])===null||vn===void 0?void 0:vn.value;qr(Fe(An)?String(An):"")}},[Tn]);var Zn=Cr(function(vn,An){var wn=An!=null?An:vn;return(0,a.Z)((0,a.Z)({},On.value,vn),On.label,wn)}),$n=ee.useMemo(function(){if(Mt!=="tags")return pr;var vn=(0,gt.Z)(pr),An=function(Cn){return Or.has(Cn)};return(0,gt.Z)(Tn).sort(function(wn,Cn){return wn.value<Cn.value?-1:1}).forEach(function(wn){var Cn=wn.value;An(Cn)||vn.push(Zn(Cn,wn.label))}),vn},[Zn,pr,Or,Tn,Mt]),Vn=yr($n,On,nn,Mn,Hr),ti=ee.useMemo(function(){return Mt!=="tags"||!nn||Vn.some(function(vn){return vn[Hr||"value"]===nn})||Vn.some(function(vn){return vn[On.value]===nn})?Vn:[Zn(nn)].concat((0,gt.Z)(Vn))},[Zn,Hr,Mt,Vn,nn,On]),Ei=function vn(An){var wn=(0,gt.Z)(An).sort(function(Cn,Un){return Fr(Cn,Un,{searchValue:nn})});return wn.map(function(Cn){return Array.isArray(Cn.options)?(0,Te.Z)((0,Te.Z)({},Cn),{},{options:Cn.options.length>0?vn(Cn.options):Cn.options}):Cn})},Ri=ee.useMemo(function(){return Fr?Ei(ti):ti},[ti,Fr,nn]),xi=ee.useMemo(function(){return Je(Ri,{fieldNames:On,childrenAsData:En})},[Ri,On,En]),li=function(An){var wn=$r(An);if(kr(wn),dn&&(wn.length!==Tn.length||wn.some(function(Xn,Vi){var Oi;return((Oi=Tn[Vi])===null||Oi===void 0?void 0:Oi.value)!==(Xn==null?void 0:Xn.value)}))){var Cn=sn?wn:wn.map(function(Xn){return Xn.value}),Un=wn.map(function(Xn){return st(_n(Xn.value))});dn(Fn?Cn:Cn[0],Fn?Un:Un[0])}},_i=ee.useState(null),Wn=(0,xe.Z)(_i,2),Ki=Wn[0],qn=Wn[1],xn=ee.useState(0),Ln=(0,xe.Z)(xn,2),Hn=Ln[0],Sn=Ln[1],Rn=Qr!==void 0?Qr:Mt!=="combobox",Dn=ee.useCallback(function(vn,An){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Cn=wn.source,Un=Cn===void 0?"keyboard":Cn;Sn(An),pt&&Mt==="combobox"&&vn!==null&&Un==="keyboard"&&qn(String(vn))},[pt,Mt]),ui=function(An,wn,Cn){var Un=function(){var io,Xi=_n(An);return[sn?{label:Xi==null?void 0:Xi[On.label],value:An,key:(io=Xi==null?void 0:Xi.key)!==null&&io!==void 0?io:An}:An,st(Xi)]};if(wn&&Ut){var Xn=Un(),Vi=(0,xe.Z)(Xn,2),Oi=Vi[0],gi=Vi[1];Ut(Oi,gi)}else if(!wn&&dr&&Cn!=="clear"){var ni=Un(),Hi=(0,xe.Z)(ni,2),eo=Hi[0],Bi=Hi[1];dr(eo,Bi)}},Ii=Cr(function(vn,An){var wn,Cn=Fn?An.selected:!0;Cn?wn=Fn?[].concat((0,gt.Z)(Tn),[vn]):[vn]:wn=Tn.filter(function(Un){return Un.value!==vn}),li(wn),ui(vn,Cn),Mt==="combobox"?qn(""):(!Dt||_t)&&(qr(""),qn(""))}),di=function(An,wn){li(An);var Cn=wn.type,Un=wn.values;(Cn==="remove"||Cn==="clear")&&Un.forEach(function(Xn){ui(Xn.value,!1,Cn)})},ri=function(An,wn){if(qr(An),qn(null),wn.source==="submit"){var Cn=(An||"").trim();if(Cn){var Un=Array.from(new Set([].concat((0,gt.Z)(Bn),[Cn])));li(Un),ui(Cn,!0),qr("")}return}wn.source!=="blur"&&(Mt==="combobox"&&li(An),zt==null||zt(An))},xo=function(An){var wn=An;Mt!=="tags"&&(wn=An.map(function(Un){var Xn=Er.get(Un);return Xn==null?void 0:Xn.value}).filter(function(Un){return Un!==void 0}));var Cn=Array.from(new Set([].concat((0,gt.Z)(Bn),(0,gt.Z)(wn))));li(Cn),Cn.forEach(function(Un){ui(Un,!0)})},lo=ee.useMemo(function(){var vn=Jr!==!1&&hr!==!1;return(0,Te.Z)((0,Te.Z)({},vr),{},{flattenOptions:xi,onActiveValue:Dn,defaultActiveFirstOption:Rn,onSelect:Ii,menuItemSelectedIcon:Vr,rawValues:Bn,fieldNames:On,virtual:vn,direction:Dr,listHeight:Gr,listItemHeight:pn,childrenAsData:En,maxCount:en,optionRender:Rr})},[en,vr,xi,Dn,Rn,Ii,Vr,Bn,On,Jr,hr,Dr,Gr,pn,En,Rr]);return ee.createElement(Tt.Provider,{value:lo},ee.createElement(xt,(0,ge.Z)({},mn,{id:bn,prefixCls:Nt,ref:Lt,omitDomProps:Zr,mode:Mt,displayValues:Nn,onDisplayValuesChange:di,direction:Dr,searchValue:nn,onSearch:ri,autoClearSearchValue:_t,onSearchSplit:xo,dropdownMatchSelectWidth:hr,OptionList:gr,emptyOptions:!xi.length,activeValue:Ki,activeDescendantId:"".concat(bn,"_list_").concat(Hn)})))}),or=er;or.Option=Ct,or.OptGroup=It;var Ir=or,xr=Ir},22711:function(Jt,jt,Ie){"use strict";Ie.r(jt),Ie.d(jt,{ResizableTextArea:function(){return ke},default:function(){return Ue}});var ge=Ie(60499),gt=Ie(18642),a=Ie(85899),Te=Ie(77654),xe=Ie(72190),z=Ie(42244),E=Ie(92310),oe=Ie.n(E),ie=Ie(36901),ee=Ie(66003),le=Ie(30292),x=Ie(18929),ne=Ie(59301),re=Ie(43749),ae=Ie(29301),se=Ie(34280),ce=Ie(16089),pe=`
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;
`,me=["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"],he={},be;function Pe(He){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=He.getAttribute("id")||He.getAttribute("data-reactid")||He.getAttribute("name");if(Ye&&he[ot])return he[ot];var Fe=window.getComputedStyle(He),Ke=Fe.getPropertyValue("box-sizing")||Fe.getPropertyValue("-moz-box-sizing")||Fe.getPropertyValue("-webkit-box-sizing"),rt=parseFloat(Fe.getPropertyValue("padding-bottom"))+parseFloat(Fe.getPropertyValue("padding-top")),nt=parseFloat(Fe.getPropertyValue("border-bottom-width"))+parseFloat(Fe.getPropertyValue("border-top-width")),et=me.map(function(Xe){return"".concat(Xe,":").concat(Fe.getPropertyValue(Xe))}).join(";"),Ge={sizingStyle:et,paddingSize:rt,borderSize:nt,boxSizing:Ke};return Ye&&ot&&(he[ot]=Ge),Ge}function Me(He){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),be.setAttribute("name","hiddenTextarea"),document.body.appendChild(be)),He.getAttribute("wrap")?be.setAttribute("wrap",He.getAttribute("wrap")):be.removeAttribute("wrap");var Ke=Pe(He,Ye),rt=Ke.paddingSize,nt=Ke.borderSize,et=Ke.boxSizing,Ge=Ke.sizingStyle;be.setAttribute("style","".concat(Ge,";").concat(pe)),be.value=He.value||He.placeholder||"";var Xe=void 0,Ve=void 0,tt,Qe=be.scrollHeight;if(et==="border-box"?Qe+=nt:et==="content-box"&&(Qe-=rt),ot!==null||Fe!==null){be.value=" ";var ct=be.scrollHeight-rt;ot!==null&&(Xe=ct*ot,et==="border-box"&&(Xe=Xe+rt+nt),Qe=Math.max(Xe,Qe)),Fe!==null&&(Ve=ct*Fe,et==="border-box"&&(Ve=Ve+rt+nt),tt=Qe>Ve?"":"hidden",Qe=Math.min(Ve,Qe))}var at={height:Qe,overflowY:tt,resize:"none"};return Xe&&(at.minHeight=Xe),Ve&&(at.maxHeight=Ve),at}var _e=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],De=0,Ce=1,Ee=2,je=ne.forwardRef(function(He,Ye){var ot=He,Fe=ot.prefixCls,Ke=ot.defaultValue,rt=ot.value,nt=ot.autoSize,et=ot.onResize,Ge=ot.className,Xe=ot.style,Ve=ot.disabled,tt=ot.onChange,Qe=ot.onInternalAutoSize,ct=(0,z.Z)(ot,_e),at=(0,x.Z)(Ke,{value:rt,postState:function(Ct){return Ct!=null?Ct:""}}),qe=(0,xe.Z)(at,2),Le=qe[0],Ne=qe[1],te=function(Ct){Ne(Ct.target.value),tt==null||tt(Ct)},de=ne.useRef();ne.useImperativeHandle(Ye,function(){return{textArea:de.current}});var Re=ne.useMemo(function(){return nt&&(0,re.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),We=(0,xe.Z)(Re,2),we=We[0],ye=We[1],Oe=!!nt,$e=function(){try{if(document.activeElement===de.current){var Ct=de.current,Ht=Ct.selectionStart,Vt=Ct.selectionEnd,vt=Ct.scrollTop;de.current.setSelectionRange(Ht,Vt),de.current.scrollTop=vt}}catch(kt){}},Ze=ne.useState(Ee),Je=(0,xe.Z)(Ze,2),st=Je[0],lt=Je[1],ft=ne.useState(),Tt=(0,xe.Z)(ft,2),St=Tt[0],Ot=Tt[1],yt=function(){lt(De)};(0,se.Z)(function(){Oe&&yt()},[rt,we,ye,Oe]),(0,se.Z)(function(){if(st===De)lt(Ce);else if(st===Ce){var ht=Me(de.current,!1,we,ye);lt(Ee),Ot(ht)}else $e()},[st]);var Dt=ne.useRef(),Et=function(){ce.Z.cancel(Dt.current)},xt=function(Ct){st===Ee&&(et==null||et(Ct),nt&&(Et(),Dt.current=(0,ce.Z)(function(){yt()})))};ne.useEffect(function(){return Et},[]);var At=Oe?St:null,It=(0,a.Z)((0,a.Z)({},Xe),At);return(st===De||st===Ce)&&(It.overflowY="hidden",It.overflowX="hidden"),ne.createElement(ae.Z,{onResize:xt,disabled:!(nt||et)},ne.createElement("textarea",(0,ge.Z)({},ct,{ref:de,style:It,className:oe()(Fe,Ge,(0,gt.Z)({},"".concat(Fe,"-disabled"),Ve)),disabled:Ve,value:Le,onChange:te})))}),ke=je,Be=["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"],Ae=ne.forwardRef(function(He,Ye){var ot,Fe=He.defaultValue,Ke=He.value,rt=He.onFocus,nt=He.onBlur,et=He.onChange,Ge=He.allowClear,Xe=He.maxLength,Ve=He.onCompositionStart,tt=He.onCompositionEnd,Qe=He.suffix,ct=He.prefixCls,at=ct===void 0?"rc-textarea":ct,qe=He.showCount,Le=He.count,Ne=He.className,te=He.style,de=He.disabled,Re=He.hidden,We=He.classNames,we=He.styles,ye=He.onResize,Oe=He.onClear,$e=He.onPressEnter,Ze=He.readOnly,Je=He.autoSize,st=He.onKeyDown,lt=(0,z.Z)(He,Be),ft=(0,x.Z)(Fe,{value:Ke,defaultValue:Fe}),Tt=(0,xe.Z)(ft,2),St=Tt[0],Ot=Tt[1],yt=St==null?"":String(St),Dt=ne.useState(!1),Et=(0,xe.Z)(Dt,2),xt=Et[0],At=Et[1],It=ne.useRef(!1),ht=ne.useState(null),Ct=(0,xe.Z)(ht,2),Ht=Ct[0],Vt=Ct[1],vt=(0,ne.useRef)(null),kt=(0,ne.useRef)(null),$t=function(){var or;return(or=kt.current)===null||or===void 0?void 0:or.textArea},Kt=function(){$t().focus()};(0,ne.useImperativeHandle)(Ye,function(){var er;return{resizableTextArea:kt.current,focus:Kt,blur:function(){$t().blur()},nativeElement:((er=vt.current)===null||er===void 0?void 0:er.nativeElement)||$t()}}),(0,ne.useEffect)(function(){At(function(er){return!de&&er})},[de]);var tr=ne.useState(null),sr=(0,xe.Z)(tr,2),gr=sr[0],br=sr[1];ne.useEffect(function(){if(gr){var er;(er=$t()).setSelectionRange.apply(er,(0,Te.Z)(gr))}},[gr]);var fr=(0,ee.Z)(Le,qe),yr=(ot=fr.max)!==null&&ot!==void 0?ot:Xe,ir=Number(yr)>0,Yt=fr.strategy(yt),Qt=!!yr&&Yt>yr,qt=function(or,Ir){var xr=Ir;!It.current&&fr.exceedFormatter&&fr.max&&fr.strategy(Ir)>fr.max&&(xr=fr.exceedFormatter(Ir,{max:fr.max}),Ir!==xr&&br([$t().selectionStart||0,$t().selectionEnd||0])),Ot(xr),(0,le.rJ)(or.currentTarget,or,et,xr)},Xt=function(or){It.current=!0,Ve==null||Ve(or)},ur=function(or){It.current=!1,qt(or,or.currentTarget.value),tt==null||tt(or)},lr=function(or){qt(or,or.target.value)},ar=function(or){or.key==="Enter"&&$e&&$e(or),st==null||st(or)},Cr=function(or){At(!0),rt==null||rt(or)},Ar=function(or){At(!1),nt==null||nt(or)},Tr=function(or){Ot(""),Kt(),(0,le.rJ)($t(),or,et)},Nr=Qe,jr;fr.show&&(fr.showFormatter?jr=fr.showFormatter({value:yt,count:Yt,maxLength:yr}):jr="".concat(Yt).concat(ir?" / ".concat(yr):""),Nr=ne.createElement(ne.Fragment,null,Nr,ne.createElement("span",{className:oe()("".concat(at,"-data-count"),We==null?void 0:We.count),style:we==null?void 0:we.count},jr)));var Zr=function(or){var Ir;ye==null||ye(or),(Ir=$t())!==null&&Ir!==void 0&&Ir.style.height&&Vt(!0)},Wr=!Je&&!qe&&!Ge;return ne.createElement(ie.BaseInput,{ref:vt,value:yt,allowClear:Ge,handleReset:Tr,suffix:Nr,prefixCls:at,classNames:(0,a.Z)((0,a.Z)({},We),{},{affixWrapper:oe()(We==null?void 0:We.affixWrapper,(0,gt.Z)((0,gt.Z)({},"".concat(at,"-show-count"),qe),"".concat(at,"-textarea-allow-clear"),Ge))}),disabled:de,focused:xt,className:oe()(Ne,Qt&&"".concat(at,"-out-of-range")),style:(0,a.Z)((0,a.Z)({},te),Ht&&!Wr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof jr=="string"?jr:void 0}},hidden:Re,readOnly:Ze,onClear:Oe},ne.createElement(ke,(0,ge.Z)({},lt,{autoSize:Je,maxLength:Xe,onKeyDown:ar,onChange:lr,onFocus:Cr,onBlur:Ar,onCompositionStart:Xt,onCompositionEnd:ur,className:oe()(We==null?void 0:We.textarea),style:(0,a.Z)((0,a.Z)({},we==null?void 0:we.textarea),{},{resize:te==null?void 0:te.resize}),disabled:de,prefixCls:at,onResize:Zr,ref:kt,readOnly:Ze})))}),ve=Ae,Ue=ve},639:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return he}});var ge=Ie(60499),gt=Ie(18642),a=Ie(85899),Te=Ie(72190),xe=Ie(42244),z=Ie(59301),E=Ie(92310),oe=Ie.n(E),ie=Ie(26112),ee=Ie(30699),le=function(Pe){for(var Me=Pe.prefixCls,_e=Pe.level,De=Pe.isStart,Ce=Pe.isEnd,Ee="".concat(Me,"-indent-unit"),je=[],ke=0;ke<_e;ke+=1)je.push(z.createElement("span",{key:ke,className:oe()(Ee,(0,gt.Z)((0,gt.Z)({},"".concat(Ee,"-start"),De[ke]),"".concat(Ee,"-end"),Ce[ke]))}));return z.createElement("span",{"aria-hidden":"true",className:"".concat(Me,"-indent")},je)},x=z.memo(le),ne=Ie(65065),re=Ie(34061),ae=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],se="open",ce="close",pe="---",me=function(Pe){var Me,_e,De,Ce=Pe.eventKey,Ee=Pe.className,je=Pe.style,ke=Pe.dragOver,Be=Pe.dragOverGapTop,Ae=Pe.dragOverGapBottom,ve=Pe.isLeaf,Ue=Pe.isStart,He=Pe.isEnd,Ye=Pe.expanded,ot=Pe.selected,Fe=Pe.checked,Ke=Pe.halfChecked,rt=Pe.loading,nt=Pe.domRef,et=Pe.active,Ge=Pe.data,Xe=Pe.onMouseMove,Ve=Pe.selectable,tt=(0,xe.Z)(Pe,ae),Qe=z.useContext(ee.k),ct=z.useContext(ee.y),at=z.useRef(null),qe=z.useState(!1),Le=(0,Te.Z)(qe,2),Ne=Le[0],te=Le[1],de=!!(Qe.disabled||Pe.disabled||(Me=ct.nodeDisabled)!==null&&Me!==void 0&&Me.call(ct,Ge)),Re=z.useMemo(function(){return!Qe.checkable||Pe.checkable===!1?!1:Qe.checkable},[Qe.checkable,Pe.checkable]),We=function(Yt){de||Qe.onNodeSelect(Yt,(0,re.F)(Pe))},we=function(Yt){de||!Re||Pe.disableCheckbox||Qe.onNodeCheck(Yt,(0,re.F)(Pe),!Fe)},ye=z.useMemo(function(){return typeof Ve=="boolean"?Ve:Qe.selectable},[Ve,Qe.selectable]),Oe=function(Yt){Qe.onNodeClick(Yt,(0,re.F)(Pe)),ye?We(Yt):we(Yt)},$e=function(Yt){Qe.onNodeDoubleClick(Yt,(0,re.F)(Pe))},Ze=function(Yt){Qe.onNodeMouseEnter(Yt,(0,re.F)(Pe))},Je=function(Yt){Qe.onNodeMouseLeave(Yt,(0,re.F)(Pe))},st=function(Yt){Qe.onNodeContextMenu(Yt,(0,re.F)(Pe))},lt=z.useMemo(function(){return!!(Qe.draggable&&(!Qe.draggable.nodeDraggable||Qe.draggable.nodeDraggable(Ge)))},[Qe.draggable,Ge]),ft=function(Yt){Yt.stopPropagation(),te(!0),Qe.onNodeDragStart(Yt,Pe);try{Yt.dataTransfer.setData("text/plain","")}catch(Qt){}},Tt=function(Yt){Yt.preventDefault(),Yt.stopPropagation(),Qe.onNodeDragEnter(Yt,Pe)},St=function(Yt){Yt.preventDefault(),Yt.stopPropagation(),Qe.onNodeDragOver(Yt,Pe)},Ot=function(Yt){Yt.stopPropagation(),Qe.onNodeDragLeave(Yt,Pe)},yt=function(Yt){Yt.stopPropagation(),te(!1),Qe.onNodeDragEnd(Yt,Pe)},Dt=function(Yt){Yt.preventDefault(),Yt.stopPropagation(),te(!1),Qe.onNodeDrop(Yt,Pe)},Et=function(Yt){rt||Qe.onNodeExpand(Yt,(0,re.F)(Pe))},xt=z.useMemo(function(){var ir=(0,ne.Z)(Qe.keyEntities,Ce)||{},Yt=ir.children;return!!(Yt||[]).length},[Qe.keyEntities,Ce]),At=z.useMemo(function(){return ve===!1?!1:ve||!Qe.loadData&&!xt||Qe.loadData&&Pe.loaded&&!xt},[ve,Qe.loadData,xt,Pe.loaded]);z.useEffect(function(){rt||typeof Qe.loadData=="function"&&Ye&&!At&&!Pe.loaded&&Qe.onNodeLoad((0,re.F)(Pe))},[rt,Qe.loadData,Qe.onNodeLoad,Ye,At,Pe]);var It=z.useMemo(function(){var ir;return(ir=Qe.draggable)!==null&&ir!==void 0&&ir.icon?z.createElement("span",{className:"".concat(Qe.prefixCls,"-draggable-icon")},Qe.draggable.icon):null},[Qe.draggable]),ht=function(Yt){var Qt=Pe.switcherIcon||Qe.switcherIcon;return typeof Qt=="function"?Qt((0,a.Z)((0,a.Z)({},Pe),{},{isLeaf:Yt})):Qt},Ct=function(){if(At){var Yt=ht(!0);return Yt!==!1?z.createElement("span",{className:oe()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher-noop"))},Yt):null}var Qt=ht(!1);return Qt!==!1?z.createElement("span",{onClick:Et,className:oe()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher_").concat(Ye?se:ce))},Qt):null},Ht=z.useMemo(function(){if(!Re)return null;var ir=typeof Re!="boolean"?Re:null;return z.createElement("span",{className:oe()("".concat(Qe.prefixCls,"-checkbox"),(0,gt.Z)((0,gt.Z)((0,gt.Z)({},"".concat(Qe.prefixCls,"-checkbox-checked"),Fe),"".concat(Qe.prefixCls,"-checkbox-indeterminate"),!Fe&&Ke),"".concat(Qe.prefixCls,"-checkbox-disabled"),de||Pe.disableCheckbox)),onClick:we,role:"checkbox","aria-checked":Ke?"mixed":Fe,"aria-disabled":de||Pe.disableCheckbox,"aria-label":"Select ".concat(typeof Pe.title=="string"?Pe.title:"tree node")},ir)},[Re,Fe,Ke,de,Pe.disableCheckbox,Pe.title]),Vt=z.useMemo(function(){return At?null:Ye?se:ce},[At,Ye]),vt=z.useMemo(function(){return z.createElement("span",{className:oe()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__").concat(Vt||"docu"),(0,gt.Z)({},"".concat(Qe.prefixCls,"-icon_loading"),rt))})},[Qe.prefixCls,Vt,rt]),kt=z.useMemo(function(){var ir=!!Qe.draggable,Yt=!Pe.disabled&&ir&&Qe.dragOverNodeKey===Ce;return Yt?Qe.dropIndicatorRender({dropPosition:Qe.dropPosition,dropLevelOffset:Qe.dropLevelOffset,indent:Qe.indent,prefixCls:Qe.prefixCls,direction:Qe.direction}):null},[Qe.dropPosition,Qe.dropLevelOffset,Qe.indent,Qe.prefixCls,Qe.direction,Qe.draggable,Qe.dragOverNodeKey,Qe.dropIndicatorRender]),$t=z.useMemo(function(){var ir=Pe.title,Yt=ir===void 0?pe:ir,Qt="".concat(Qe.prefixCls,"-node-content-wrapper"),qt;if(Qe.showIcon){var Xt=Pe.icon||Qe.icon;qt=Xt?z.createElement("span",{className:oe()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__customize"))},typeof Xt=="function"?Xt(Pe):Xt):vt}else Qe.loadData&&rt&&(qt=vt);var ur;return typeof Yt=="function"?ur=Yt(Ge):Qe.titleRender?ur=Qe.titleRender(Ge):ur=Yt,z.createElement("span",{ref:at,title:typeof Yt=="string"?Yt:"",className:oe()(Qt,"".concat(Qt,"-").concat(Vt||"normal"),(0,gt.Z)({},"".concat(Qe.prefixCls,"-node-selected"),!de&&(ot||Ne))),onMouseEnter:Ze,onMouseLeave:Je,onContextMenu:st,onClick:Oe,onDoubleClick:$e},qt,z.createElement("span",{className:"".concat(Qe.prefixCls,"-title")},ur),kt)},[Qe.prefixCls,Qe.showIcon,Pe,Qe.icon,vt,Qe.titleRender,Ge,Vt,Ze,Je,st,Oe,$e]),Kt=(0,ie.Z)(tt,{aria:!0,data:!0}),tr=(0,ne.Z)(Qe.keyEntities,Ce)||{},sr=tr.level,gr=He[He.length-1],br=!de&&lt,fr=Qe.draggingNodeKey===Ce,yr=Ve!==void 0?{"aria-selected":!!Ve}:void 0;return z.createElement("div",(0,ge.Z)({ref:nt,role:"treeitem","aria-expanded":ve?void 0:Ye,className:oe()(Ee,"".concat(Qe.prefixCls,"-treenode"),(De={},(0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)(De,"".concat(Qe.prefixCls,"-treenode-disabled"),de),"".concat(Qe.prefixCls,"-treenode-switcher-").concat(Ye?"open":"close"),!ve),"".concat(Qe.prefixCls,"-treenode-checkbox-checked"),Fe),"".concat(Qe.prefixCls,"-treenode-checkbox-indeterminate"),Ke),"".concat(Qe.prefixCls,"-treenode-selected"),ot),"".concat(Qe.prefixCls,"-treenode-loading"),rt),"".concat(Qe.prefixCls,"-treenode-active"),et),"".concat(Qe.prefixCls,"-treenode-leaf-last"),gr),"".concat(Qe.prefixCls,"-treenode-draggable"),lt),"dragging",fr),(0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)(De,"drop-target",Qe.dropTargetKey===Ce),"drop-container",Qe.dropContainerKey===Ce),"drag-over",!de&&ke),"drag-over-gap-top",!de&&Be),"drag-over-gap-bottom",!de&&Ae),"filter-node",(_e=Qe.filterTreeNode)===null||_e===void 0?void 0:_e.call(Qe,(0,re.F)(Pe))),"".concat(Qe.prefixCls,"-treenode-leaf"),At))),style:je,draggable:br,onDragStart:br?ft:void 0,onDragEnter:lt?Tt:void 0,onDragOver:lt?St:void 0,onDragLeave:lt?Ot:void 0,onDrop:lt?Dt:void 0,onDragEnd:lt?yt:void 0,onMouseMove:Xe},yr,Kt),z.createElement(x,{prefixCls:Qe.prefixCls,level:sr,isStart:Ue,isEnd:He}),It,Ct(),Ht,$t)};me.isTreeNode=1;var he=me},30699:function(Jt,jt,Ie){"use strict";Ie.d(jt,{k:function(){return gt},y:function(){return a}});var ge=Ie(59301),gt=ge.createContext(null),a=ge.createContext({})},87632:function(Jt,jt,Ie){"use strict";Ie.d(jt,{OF:function(){return Ce.Z},y6:function(){return ce.y},ZP:function(){return de}});var ge=Ie(60499),gt=Ie(43749),a=Ie(85899),Te=Ie(77654),xe=Ie(38705),z=Ie(17212),E=Ie(15793),oe=Ie(39153),ie=Ie(55401),ee=Ie(18642),le=Ie(92310),x=Ie.n(le),ne=Ie(10228),re=Ie(26112),ae=Ie(48736),se=Ie(59301),ce=Ie(30699),pe=function(We){var we=We.dropPosition,ye=We.dropLevelOffset,Oe=We.indent,$e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(we){case-1:$e.top=0,$e.left=-ye*Oe;break;case 1:$e.bottom=0,$e.left=-ye*Oe;break;case 0:$e.bottom=0,$e.left=Oe;break}return se.createElement("div",{style:$e})},me=pe;function he(Re){if(Re==null)throw new TypeError("Cannot destructure "+Re)}var be=Ie(72190),Pe=Ie(42244),Me=Ie(34280),_e=Ie(48911),De=Ie(77900),Ce=Ie(639);function Ee(Re,We){var we=se.useState(!1),ye=(0,be.Z)(we,2),Oe=ye[0],$e=ye[1];(0,Me.Z)(function(){if(Oe)return Re(),function(){We()}},[Oe]),(0,Me.Z)(function(){return $e(!0),function(){$e(!1)}},[])}var je=Ee,ke=Ie(34061),Be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ae=se.forwardRef(function(Re,We){var we=Re.className,ye=Re.style,Oe=Re.motion,$e=Re.motionNodes,Ze=Re.motionType,Je=Re.onMotionStart,st=Re.onMotionEnd,lt=Re.active,ft=Re.treeNodeRequiredProps,Tt=(0,Pe.Z)(Re,Be),St=se.useState(!0),Ot=(0,be.Z)(St,2),yt=Ot[0],Dt=Ot[1],Et=se.useContext(ce.k),xt=Et.prefixCls,At=$e&&Ze!=="hide";(0,Me.Z)(function(){$e&&At!==yt&&Dt(At)},[$e]);var It=function(){$e&&Je()},ht=se.useRef(!1),Ct=function(){$e&&!ht.current&&(ht.current=!0,st())};je(It,Ct);var Ht=function(vt){At===vt&&Ct()};return $e?se.createElement(De.default,(0,ge.Z)({ref:We,visible:yt},Oe,{motionAppear:Ze==="show",onVisibleChanged:Ht}),function(Vt,vt){var kt=Vt.className,$t=Vt.style;return se.createElement("div",{ref:vt,className:x()("".concat(xt,"-treenode-motion"),kt),style:$t},$e.map(function(Kt){var tr=Object.assign({},(he(Kt.data),Kt.data)),sr=Kt.title,gr=Kt.key,br=Kt.isStart,fr=Kt.isEnd;delete tr.children;var yr=(0,ke.H8)(gr,ft);return se.createElement(Ce.Z,(0,ge.Z)({},tr,yr,{title:sr,active:lt,data:Kt.data,key:gr,isStart:br,isEnd:fr}))}))}):se.createElement(Ce.Z,(0,ge.Z)({domRef:We,className:we,style:ye},Tt,{active:lt}))}),ve=Ae;function Ue(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],we=Re.length,ye=We.length;if(Math.abs(we-ye)!==1)return{add:!1,key:null};function Oe($e,Ze){var Je=new Map;$e.forEach(function(lt){Je.set(lt,!0)});var st=Ze.filter(function(lt){return!Je.has(lt)});return st.length===1?st[0]:null}return we<ye?{add:!0,key:Oe(Re,We)}:{add:!1,key:Oe(We,Re)}}function He(Re,We,we){var ye=Re.findIndex(function(Je){return Je.key===we}),Oe=Re[ye+1],$e=We.findIndex(function(Je){return Je.key===we});if(Oe){var Ze=We.findIndex(function(Je){return Je.key===Oe.key});return We.slice($e+1,Ze)}return We.slice($e+1)}var Ye=["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"],ot={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Fe=function(){},Ke="RC_TREE_MOTION_".concat(Math.random()),rt={key:Ke},nt={key:Ke,level:0,index:0,pos:"0",node:rt,nodes:[rt]},et={parent:null,children:[],pos:nt.pos,data:rt,title:null,key:Ke,isStart:[],isEnd:[]};function Ge(Re,We,we,ye){return We===!1||!we?Re:Re.slice(0,Math.ceil(we/ye)+1)}function Xe(Re){var We=Re.key,we=Re.pos;return(0,ke.km)(We,we)}function Ve(Re){for(var We=String(Re.data.key),we=Re;we.parent;)we=we.parent,We="".concat(we.data.key," > ").concat(We);return We}var tt=se.forwardRef(function(Re,We){var we=Re.prefixCls,ye=Re.data,Oe=Re.selectable,$e=Re.checkable,Ze=Re.expandedKeys,Je=Re.selectedKeys,st=Re.checkedKeys,lt=Re.loadedKeys,ft=Re.loadingKeys,Tt=Re.halfCheckedKeys,St=Re.keyEntities,Ot=Re.disabled,yt=Re.dragging,Dt=Re.dragOverNodeKey,Et=Re.dropPosition,xt=Re.motion,At=Re.height,It=Re.itemHeight,ht=Re.virtual,Ct=Re.scrollWidth,Ht=Re.focusable,Vt=Re.activeItem,vt=Re.focused,kt=Re.tabIndex,$t=Re.onKeyDown,Kt=Re.onFocus,tr=Re.onBlur,sr=Re.onActiveChange,gr=Re.onListChangeStart,br=Re.onListChangeEnd,fr=(0,Pe.Z)(Re,Ye),yr=se.useRef(null),ir=se.useRef(null);se.useImperativeHandle(We,function(){return{scrollTo:function(Bt){yr.current.scrollTo(Bt)},getIndentWidth:function(){return ir.current.offsetWidth}}});var Yt=se.useState(Ze),Qt=(0,be.Z)(Yt,2),qt=Qt[0],Xt=Qt[1],ur=se.useState(ye),lr=(0,be.Z)(ur,2),ar=lr[0],Cr=lr[1],Ar=se.useState(ye),Tr=(0,be.Z)(Ar,2),Nr=Tr[0],jr=Tr[1],Zr=se.useState([]),Wr=(0,be.Z)(Zr,2),er=Wr[0],or=Wr[1],Ir=se.useState(null),xr=(0,be.Z)(Ir,2),Pt=xr[0],Lt=xr[1],bt=se.useRef(ye);bt.current=ye;function Mt(){var pt=bt.current;Cr(pt),jr(pt),or([]),Lt(null),br()}(0,Me.Z)(function(){Xt(Ze);var pt=Ue(qt,Ze);if(pt.key!==null)if(pt.add){var Bt=ar.findIndex(function(Ut){var dr=Ut.key;return dr===pt.key}),Wt=Ge(He(ar,ye,pt.key),ht,At,It),Gt=ar.slice();Gt.splice(Bt+1,0,et),jr(Gt),or(Wt),Lt("show")}else{var zt=ye.findIndex(function(Ut){var dr=Ut.key;return dr===pt.key}),Rt=Ge(He(ye,ar,pt.key),ht,At,It),_t=ye.slice();_t.splice(zt+1,0,et),jr(_t),or(Rt),Lt("hide")}else ar!==ye&&(Cr(ye),jr(ye))},[Ze,ye]),se.useEffect(function(){yt||Mt()},[yt]);var wt=xt?Nr:ye,Nt={expandedKeys:Ze,selectedKeys:Je,loadedKeys:lt,loadingKeys:ft,checkedKeys:st,halfCheckedKeys:Tt,dragOverNodeKey:Dt,dropPosition:Et,keyEntities:St};return se.createElement(se.Fragment,null,vt&&Vt&&se.createElement("span",{style:ot,"aria-live":"assertive"},Ve(Vt)),se.createElement("div",null,se.createElement("input",{style:ot,disabled:Ht===!1||Ot,tabIndex:Ht!==!1?kt:null,onKeyDown:$t,onFocus:Kt,onBlur:tr,value:"",onChange:Fe,"aria-label":"for screen reader"})),se.createElement("div",{className:"".concat(we,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},se.createElement("div",{className:"".concat(we,"-indent")},se.createElement("div",{ref:ir,className:"".concat(we,"-indent-unit")}))),se.createElement(_e.Z,(0,ge.Z)({},fr,{data:wt,itemKey:Xe,height:At,fullHeight:!1,virtual:ht,itemHeight:It,scrollWidth:Ct,prefixCls:"".concat(we,"-list"),ref:yr,role:"tree",onVisibleChange:function(Bt){Bt.every(function(Wt){return Xe(Wt)!==Ke})&&Mt()}}),function(pt){var Bt=pt.pos,Wt=Object.assign({},(he(pt.data),pt.data)),Gt=pt.title,zt=pt.key,Rt=pt.isStart,_t=pt.isEnd,Ut=(0,ke.km)(zt,Bt);delete Wt.key,delete Wt.children;var dr=(0,ke.H8)(Ut,Nt);return se.createElement(ve,(0,ge.Z)({},Wt,dr,{title:Gt,active:!!Vt&&zt===Vt.key,pos:Bt,data:pt.data,isStart:Rt,isEnd:_t,motion:xt,motionNodes:zt===Ke?er:null,motionType:Pt,onMotionStart:gr,onMotionEnd:Mt,treeNodeRequiredProps:Nt,onMouseMove:function(){sr(null)}}))}))}),Qe=tt,ct=Ie(82661),at=Ie(34643),qe=Ie(65065),Le=10,Ne=function(Re){(0,oe.Z)(we,Re);var We=(0,ie.Z)(we);function we(){var ye;(0,xe.Z)(this,we);for(var Oe=arguments.length,$e=new Array(Oe),Ze=0;Ze<Oe;Ze++)$e[Ze]=arguments[Ze];return ye=We.call.apply(We,[this].concat($e)),(0,ee.Z)((0,E.Z)(ye),"destroyed",!1),(0,ee.Z)((0,E.Z)(ye),"delayedDragEnterLogic",void 0),(0,ee.Z)((0,E.Z)(ye),"loadingRetryTimes",{}),(0,ee.Z)((0,E.Z)(ye),"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,ke.w$)()}),(0,ee.Z)((0,E.Z)(ye),"dragStartMousePosition",null),(0,ee.Z)((0,E.Z)(ye),"dragNodeProps",null),(0,ee.Z)((0,E.Z)(ye),"currentMouseOverDroppableNodeKey",null),(0,ee.Z)((0,E.Z)(ye),"listRef",se.createRef()),(0,ee.Z)((0,E.Z)(ye),"onNodeDragStart",function(Je,st){var lt=ye.state,ft=lt.expandedKeys,Tt=lt.keyEntities,St=ye.props.onDragStart,Ot=st.eventKey;ye.dragNodeProps=st,ye.dragStartMousePosition={x:Je.clientX,y:Je.clientY};var yt=(0,ct._5)(ft,Ot);ye.setState({draggingNodeKey:Ot,dragChildrenKeys:(0,ct.wA)(Ot,Tt),indent:ye.listRef.current.getIndentWidth()}),ye.setExpandedKeys(yt),window.addEventListener("dragend",ye.onWindowDragEnd),St==null||St({event:Je,node:(0,ke.F)(st)})}),(0,ee.Z)((0,E.Z)(ye),"onNodeDragEnter",function(Je,st){var lt=ye.state,ft=lt.expandedKeys,Tt=lt.keyEntities,St=lt.dragChildrenKeys,Ot=lt.flattenNodes,yt=lt.indent,Dt=ye.props,Et=Dt.onDragEnter,xt=Dt.onExpand,At=Dt.allowDrop,It=Dt.direction,ht=st.pos,Ct=st.eventKey;if(ye.currentMouseOverDroppableNodeKey!==Ct&&(ye.currentMouseOverDroppableNodeKey=Ct),!ye.dragNodeProps){ye.resetDragState();return}var Ht=(0,ct.OM)(Je,ye.dragNodeProps,st,yt,ye.dragStartMousePosition,At,Ot,Tt,ft,It),Vt=Ht.dropPosition,vt=Ht.dropLevelOffset,kt=Ht.dropTargetKey,$t=Ht.dropContainerKey,Kt=Ht.dropTargetPos,tr=Ht.dropAllowed,sr=Ht.dragOverNodeKey;if(St.includes(kt)||!tr){ye.resetDragState();return}if(ye.delayedDragEnterLogic||(ye.delayedDragEnterLogic={}),Object.keys(ye.delayedDragEnterLogic).forEach(function(gr){clearTimeout(ye.delayedDragEnterLogic[gr])}),ye.dragNodeProps.eventKey!==st.eventKey&&(Je.persist(),ye.delayedDragEnterLogic[ht]=window.setTimeout(function(){if(ye.state.draggingNodeKey!==null){var gr=(0,Te.Z)(ft),br=(0,qe.Z)(Tt,st.eventKey);br&&(br.children||[]).length&&(gr=(0,ct.L0)(ft,st.eventKey)),ye.props.hasOwnProperty("expandedKeys")||ye.setExpandedKeys(gr),xt==null||xt(gr,{node:(0,ke.F)(st),expanded:!0,nativeEvent:Je.nativeEvent})}},800)),ye.dragNodeProps.eventKey===kt&&vt===0){ye.resetDragState();return}ye.setState({dragOverNodeKey:sr,dropPosition:Vt,dropLevelOffset:vt,dropTargetKey:kt,dropContainerKey:$t,dropTargetPos:Kt,dropAllowed:tr}),Et==null||Et({event:Je,node:(0,ke.F)(st),expandedKeys:ft})}),(0,ee.Z)((0,E.Z)(ye),"onNodeDragOver",function(Je,st){var lt=ye.state,ft=lt.dragChildrenKeys,Tt=lt.flattenNodes,St=lt.keyEntities,Ot=lt.expandedKeys,yt=lt.indent,Dt=ye.props,Et=Dt.onDragOver,xt=Dt.allowDrop,At=Dt.direction;if(ye.dragNodeProps){var It=(0,ct.OM)(Je,ye.dragNodeProps,st,yt,ye.dragStartMousePosition,xt,Tt,St,Ot,At),ht=It.dropPosition,Ct=It.dropLevelOffset,Ht=It.dropTargetKey,Vt=It.dropContainerKey,vt=It.dropTargetPos,kt=It.dropAllowed,$t=It.dragOverNodeKey;ft.includes(Ht)||!kt||(ye.dragNodeProps.eventKey===Ht&&Ct===0?ye.state.dropPosition===null&&ye.state.dropLevelOffset===null&&ye.state.dropTargetKey===null&&ye.state.dropContainerKey===null&&ye.state.dropTargetPos===null&&ye.state.dropAllowed===!1&&ye.state.dragOverNodeKey===null||ye.resetDragState():ht===ye.state.dropPosition&&Ct===ye.state.dropLevelOffset&&Ht===ye.state.dropTargetKey&&Vt===ye.state.dropContainerKey&&vt===ye.state.dropTargetPos&&kt===ye.state.dropAllowed&&$t===ye.state.dragOverNodeKey||ye.setState({dropPosition:ht,dropLevelOffset:Ct,dropTargetKey:Ht,dropContainerKey:Vt,dropTargetPos:vt,dropAllowed:kt,dragOverNodeKey:$t}),Et==null||Et({event:Je,node:(0,ke.F)(st)}))}}),(0,ee.Z)((0,E.Z)(ye),"onNodeDragLeave",function(Je,st){ye.currentMouseOverDroppableNodeKey===st.eventKey&&!Je.currentTarget.contains(Je.relatedTarget)&&(ye.resetDragState(),ye.currentMouseOverDroppableNodeKey=null);var lt=ye.props.onDragLeave;lt==null||lt({event:Je,node:(0,ke.F)(st)})}),(0,ee.Z)((0,E.Z)(ye),"onWindowDragEnd",function(Je){ye.onNodeDragEnd(Je,null,!0),window.removeEventListener("dragend",ye.onWindowDragEnd)}),(0,ee.Z)((0,E.Z)(ye),"onNodeDragEnd",function(Je,st){var lt=ye.props.onDragEnd;ye.setState({dragOverNodeKey:null}),ye.cleanDragState(),lt==null||lt({event:Je,node:(0,ke.F)(st)}),ye.dragNodeProps=null,window.removeEventListener("dragend",ye.onWindowDragEnd)}),(0,ee.Z)((0,E.Z)(ye),"onNodeDrop",function(Je,st){var lt,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Tt=ye.state,St=Tt.dragChildrenKeys,Ot=Tt.dropPosition,yt=Tt.dropTargetKey,Dt=Tt.dropTargetPos,Et=Tt.dropAllowed;if(Et){var xt=ye.props.onDrop;if(ye.setState({dragOverNodeKey:null}),ye.cleanDragState(),yt!==null){var At=(0,a.Z)((0,a.Z)({},(0,ke.H8)(yt,ye.getTreeNodeRequiredProps())),{},{active:((lt=ye.getActiveItem())===null||lt===void 0?void 0:lt.key)===yt,data:(0,qe.Z)(ye.state.keyEntities,yt).node}),It=St.includes(yt);(0,ae.ZP)(!It,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ht=(0,ct.yx)(Dt),Ct={event:Je,node:(0,ke.F)(At),dragNode:ye.dragNodeProps?(0,ke.F)(ye.dragNodeProps):null,dragNodesKeys:[ye.dragNodeProps.eventKey].concat(St),dropToGap:Ot!==0,dropPosition:Ot+Number(ht[ht.length-1])};ft||xt==null||xt(Ct),ye.dragNodeProps=null}}}),(0,ee.Z)((0,E.Z)(ye),"cleanDragState",function(){var Je=ye.state.draggingNodeKey;Je!==null&&ye.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ye.dragStartMousePosition=null,ye.currentMouseOverDroppableNodeKey=null}),(0,ee.Z)((0,E.Z)(ye),"triggerExpandActionExpand",function(Je,st){var lt=ye.state,ft=lt.expandedKeys,Tt=lt.flattenNodes,St=st.expanded,Ot=st.key,yt=st.isLeaf;if(!(yt||Je.shiftKey||Je.metaKey||Je.ctrlKey)){var Dt=Tt.filter(function(xt){return xt.key===Ot})[0],Et=(0,ke.F)((0,a.Z)((0,a.Z)({},(0,ke.H8)(Ot,ye.getTreeNodeRequiredProps())),{},{data:Dt.data}));ye.setExpandedKeys(St?(0,ct._5)(ft,Ot):(0,ct.L0)(ft,Ot)),ye.onNodeExpand(Je,Et)}}),(0,ee.Z)((0,E.Z)(ye),"onNodeClick",function(Je,st){var lt=ye.props,ft=lt.onClick,Tt=lt.expandAction;Tt==="click"&&ye.triggerExpandActionExpand(Je,st),ft==null||ft(Je,st)}),(0,ee.Z)((0,E.Z)(ye),"onNodeDoubleClick",function(Je,st){var lt=ye.props,ft=lt.onDoubleClick,Tt=lt.expandAction;Tt==="doubleClick"&&ye.triggerExpandActionExpand(Je,st),ft==null||ft(Je,st)}),(0,ee.Z)((0,E.Z)(ye),"onNodeSelect",function(Je,st){var lt=ye.state.selectedKeys,ft=ye.state,Tt=ft.keyEntities,St=ft.fieldNames,Ot=ye.props,yt=Ot.onSelect,Dt=Ot.multiple,Et=st.selected,xt=st[St.key],At=!Et;At?Dt?lt=(0,ct.L0)(lt,xt):lt=[xt]:lt=(0,ct._5)(lt,xt);var It=lt.map(function(ht){var Ct=(0,qe.Z)(Tt,ht);return Ct?Ct.node:null}).filter(Boolean);ye.setUncontrolledState({selectedKeys:lt}),yt==null||yt(lt,{event:"select",selected:At,node:st,selectedNodes:It,nativeEvent:Je.nativeEvent})}),(0,ee.Z)((0,E.Z)(ye),"onNodeCheck",function(Je,st,lt){var ft=ye.state,Tt=ft.keyEntities,St=ft.checkedKeys,Ot=ft.halfCheckedKeys,yt=ye.props,Dt=yt.checkStrictly,Et=yt.onCheck,xt=st.key,At,It={event:"check",node:st,checked:lt,nativeEvent:Je.nativeEvent};if(Dt){var ht=lt?(0,ct.L0)(St,xt):(0,ct._5)(St,xt),Ct=(0,ct._5)(Ot,xt);At={checked:ht,halfChecked:Ct},It.checkedNodes=ht.map(function(Kt){return(0,qe.Z)(Tt,Kt)}).filter(Boolean).map(function(Kt){return Kt.node}),ye.setUncontrolledState({checkedKeys:ht})}else{var Ht=(0,at.S)([].concat((0,Te.Z)(St),[xt]),!0,Tt),Vt=Ht.checkedKeys,vt=Ht.halfCheckedKeys;if(!lt){var kt=new Set(Vt);kt.delete(xt);var $t=(0,at.S)(Array.from(kt),{checked:!1,halfCheckedKeys:vt},Tt);Vt=$t.checkedKeys,vt=$t.halfCheckedKeys}At=Vt,It.checkedNodes=[],It.checkedNodesPositions=[],It.halfCheckedKeys=vt,Vt.forEach(function(Kt){var tr=(0,qe.Z)(Tt,Kt);if(tr){var sr=tr.node,gr=tr.pos;It.checkedNodes.push(sr),It.checkedNodesPositions.push({node:sr,pos:gr})}}),ye.setUncontrolledState({checkedKeys:Vt},!1,{halfCheckedKeys:vt})}Et==null||Et(At,It)}),(0,ee.Z)((0,E.Z)(ye),"onNodeLoad",function(Je){var st,lt=Je.key,ft=ye.state.keyEntities,Tt=(0,qe.Z)(ft,lt);if(!(Tt!=null&&(st=Tt.children)!==null&&st!==void 0&&st.length)){var St=new Promise(function(Ot,yt){ye.setState(function(Dt){var Et=Dt.loadedKeys,xt=Et===void 0?[]:Et,At=Dt.loadingKeys,It=At===void 0?[]:At,ht=ye.props,Ct=ht.loadData,Ht=ht.onLoad;if(!Ct||xt.includes(lt)||It.includes(lt))return null;var Vt=Ct(Je);return Vt.then(function(){var vt=ye.state.loadedKeys,kt=(0,ct.L0)(vt,lt);Ht==null||Ht(kt,{event:"load",node:Je}),ye.setUncontrolledState({loadedKeys:kt}),ye.setState(function($t){return{loadingKeys:(0,ct._5)($t.loadingKeys,lt)}}),Ot()}).catch(function(vt){if(ye.setState(function($t){return{loadingKeys:(0,ct._5)($t.loadingKeys,lt)}}),ye.loadingRetryTimes[lt]=(ye.loadingRetryTimes[lt]||0)+1,ye.loadingRetryTimes[lt]>=Le){var kt=ye.state.loadedKeys;(0,ae.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ye.setUncontrolledState({loadedKeys:(0,ct.L0)(kt,lt)}),Ot()}yt(vt)}),{loadingKeys:(0,ct.L0)(It,lt)}})});return St.catch(function(){}),St}}),(0,ee.Z)((0,E.Z)(ye),"onNodeMouseEnter",function(Je,st){var lt=ye.props.onMouseEnter;lt==null||lt({event:Je,node:st})}),(0,ee.Z)((0,E.Z)(ye),"onNodeMouseLeave",function(Je,st){var lt=ye.props.onMouseLeave;lt==null||lt({event:Je,node:st})}),(0,ee.Z)((0,E.Z)(ye),"onNodeContextMenu",function(Je,st){var lt=ye.props.onRightClick;lt&&(Je.preventDefault(),lt({event:Je,node:st}))}),(0,ee.Z)((0,E.Z)(ye),"onFocus",function(){var Je=ye.props.onFocus;ye.setState({focused:!0});for(var st=arguments.length,lt=new Array(st),ft=0;ft<st;ft++)lt[ft]=arguments[ft];Je==null||Je.apply(void 0,lt)}),(0,ee.Z)((0,E.Z)(ye),"onBlur",function(){var Je=ye.props.onBlur;ye.setState({focused:!1}),ye.onActiveChange(null);for(var st=arguments.length,lt=new Array(st),ft=0;ft<st;ft++)lt[ft]=arguments[ft];Je==null||Je.apply(void 0,lt)}),(0,ee.Z)((0,E.Z)(ye),"getTreeNodeRequiredProps",function(){var Je=ye.state,st=Je.expandedKeys,lt=Je.selectedKeys,ft=Je.loadedKeys,Tt=Je.loadingKeys,St=Je.checkedKeys,Ot=Je.halfCheckedKeys,yt=Je.dragOverNodeKey,Dt=Je.dropPosition,Et=Je.keyEntities;return{expandedKeys:st||[],selectedKeys:lt||[],loadedKeys:ft||[],loadingKeys:Tt||[],checkedKeys:St||[],halfCheckedKeys:Ot||[],dragOverNodeKey:yt,dropPosition:Dt,keyEntities:Et}}),(0,ee.Z)((0,E.Z)(ye),"setExpandedKeys",function(Je){var st=ye.state,lt=st.treeData,ft=st.fieldNames,Tt=(0,ke.oH)(lt,Je,ft);ye.setUncontrolledState({expandedKeys:Je,flattenNodes:Tt},!0)}),(0,ee.Z)((0,E.Z)(ye),"onNodeExpand",function(Je,st){var lt=ye.state.expandedKeys,ft=ye.state,Tt=ft.listChanging,St=ft.fieldNames,Ot=ye.props,yt=Ot.onExpand,Dt=Ot.loadData,Et=st.expanded,xt=st[St.key];if(!Tt){var At=lt.includes(xt),It=!Et;if((0,ae.ZP)(Et&&At||!Et&&!At,"Expand state not sync with index check"),lt=It?(0,ct.L0)(lt,xt):(0,ct._5)(lt,xt),ye.setExpandedKeys(lt),yt==null||yt(lt,{node:st,expanded:It,nativeEvent:Je.nativeEvent}),It&&Dt){var ht=ye.onNodeLoad(st);ht&&ht.then(function(){var Ct=(0,ke.oH)(ye.state.treeData,lt,St);ye.setUncontrolledState({flattenNodes:Ct})}).catch(function(){var Ct=ye.state.expandedKeys,Ht=(0,ct._5)(Ct,xt);ye.setExpandedKeys(Ht)})}}}),(0,ee.Z)((0,E.Z)(ye),"onListChangeStart",function(){ye.setUncontrolledState({listChanging:!0})}),(0,ee.Z)((0,E.Z)(ye),"onListChangeEnd",function(){setTimeout(function(){ye.setUncontrolledState({listChanging:!1})})}),(0,ee.Z)((0,E.Z)(ye),"onActiveChange",function(Je){var st=ye.state.activeKey,lt=ye.props,ft=lt.onActiveChange,Tt=lt.itemScrollOffset,St=Tt===void 0?0:Tt;st!==Je&&(ye.setState({activeKey:Je}),Je!==null&&ye.scrollTo({key:Je,offset:St}),ft==null||ft(Je))}),(0,ee.Z)((0,E.Z)(ye),"getActiveItem",function(){var Je=ye.state,st=Je.activeKey,lt=Je.flattenNodes;return st===null?null:lt.find(function(ft){var Tt=ft.key;return Tt===st})||null}),(0,ee.Z)((0,E.Z)(ye),"offsetActiveKey",function(Je){var st=ye.state,lt=st.flattenNodes,ft=st.activeKey,Tt=lt.findIndex(function(yt){var Dt=yt.key;return Dt===ft});Tt===-1&&Je<0&&(Tt=lt.length),Tt=(Tt+Je+lt.length)%lt.length;var St=lt[Tt];if(St){var Ot=St.key;ye.onActiveChange(Ot)}else ye.onActiveChange(null)}),(0,ee.Z)((0,E.Z)(ye),"onKeyDown",function(Je){var st=ye.state,lt=st.activeKey,ft=st.expandedKeys,Tt=st.checkedKeys,St=st.fieldNames,Ot=ye.props,yt=Ot.onKeyDown,Dt=Ot.checkable,Et=Ot.selectable;switch(Je.which){case ne.Z.UP:{ye.offsetActiveKey(-1),Je.preventDefault();break}case ne.Z.DOWN:{ye.offsetActiveKey(1),Je.preventDefault();break}}var xt=ye.getActiveItem();if(xt&&xt.data){var At=ye.getTreeNodeRequiredProps(),It=xt.data.isLeaf===!1||!!(xt.data[St.children]||[]).length,ht=(0,ke.F)((0,a.Z)((0,a.Z)({},(0,ke.H8)(lt,At)),{},{data:xt.data,active:!0}));switch(Je.which){case ne.Z.LEFT:{It&&ft.includes(lt)?ye.onNodeExpand({},ht):xt.parent&&ye.onActiveChange(xt.parent.key),Je.preventDefault();break}case ne.Z.RIGHT:{It&&!ft.includes(lt)?ye.onNodeExpand({},ht):xt.children&&xt.children.length&&ye.onActiveChange(xt.children[0].key),Je.preventDefault();break}case ne.Z.ENTER:case ne.Z.SPACE:{Dt&&!ht.disabled&&ht.checkable!==!1&&!ht.disableCheckbox?ye.onNodeCheck({},ht,!Tt.includes(lt)):!Dt&&Et&&!ht.disabled&&ht.selectable!==!1&&ye.onNodeSelect({},ht);break}}}yt==null||yt(Je)}),(0,ee.Z)((0,E.Z)(ye),"setUncontrolledState",function(Je){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ye.destroyed){var ft=!1,Tt=!0,St={};Object.keys(Je).forEach(function(Ot){if(ye.props.hasOwnProperty(Ot)){Tt=!1;return}ft=!0,St[Ot]=Je[Ot]}),ft&&(!st||Tt)&&ye.setState((0,a.Z)((0,a.Z)({},St),lt))}}),(0,ee.Z)((0,E.Z)(ye),"scrollTo",function(Je){ye.listRef.current.scrollTo(Je)}),ye}return(0,z.Z)(we,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Oe=this.props,$e=Oe.activeKey,Ze=Oe.itemScrollOffset,Je=Ze===void 0?0:Ze;$e!==void 0&&$e!==this.state.activeKey&&(this.setState({activeKey:$e}),$e!==null&&this.scrollTo({key:$e,offset:Je}))}},{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 Oe=this.state,$e=Oe.focused,Ze=Oe.flattenNodes,Je=Oe.keyEntities,st=Oe.draggingNodeKey,lt=Oe.activeKey,ft=Oe.dropLevelOffset,Tt=Oe.dropContainerKey,St=Oe.dropTargetKey,Ot=Oe.dropPosition,yt=Oe.dragOverNodeKey,Dt=Oe.indent,Et=this.props,xt=Et.prefixCls,At=Et.className,It=Et.style,ht=Et.showLine,Ct=Et.focusable,Ht=Et.tabIndex,Vt=Ht===void 0?0:Ht,vt=Et.selectable,kt=Et.showIcon,$t=Et.icon,Kt=Et.switcherIcon,tr=Et.draggable,sr=Et.checkable,gr=Et.checkStrictly,br=Et.disabled,fr=Et.motion,yr=Et.loadData,ir=Et.filterTreeNode,Yt=Et.height,Qt=Et.itemHeight,qt=Et.scrollWidth,Xt=Et.virtual,ur=Et.titleRender,lr=Et.dropIndicatorRender,ar=Et.onContextMenu,Cr=Et.onScroll,Ar=Et.direction,Tr=Et.rootClassName,Nr=Et.rootStyle,jr=(0,re.Z)(this.props,{aria:!0,data:!0}),Zr;tr&&((0,gt.Z)(tr)==="object"?Zr=tr:typeof tr=="function"?Zr={nodeDraggable:tr}:Zr={});var Wr={prefixCls:xt,selectable:vt,showIcon:kt,icon:$t,switcherIcon:Kt,draggable:Zr,draggingNodeKey:st,checkable:sr,checkStrictly:gr,disabled:br,keyEntities:Je,dropLevelOffset:ft,dropContainerKey:Tt,dropTargetKey:St,dropPosition:Ot,dragOverNodeKey:yt,indent:Dt,direction:Ar,dropIndicatorRender:lr,loadData:yr,filterTreeNode:ir,titleRender:ur,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 se.createElement(ce.k.Provider,{value:Wr},se.createElement("div",{className:x()(xt,At,Tr,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(xt,"-show-line"),ht),"".concat(xt,"-focused"),$e),"".concat(xt,"-active-focused"),lt!==null)),style:Nr},se.createElement(Qe,(0,ge.Z)({ref:this.listRef,prefixCls:xt,style:It,data:Ze,disabled:br,selectable:vt,checkable:!!sr,motion:fr,dragging:st!==null,height:Yt,itemHeight:Qt,virtual:Xt,focusable:Ct,focused:$e,tabIndex:Vt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ar,onScroll:Cr,scrollWidth:qt},this.getTreeNodeRequiredProps(),jr))))}}],[{key:"getDerivedStateFromProps",value:function(Oe,$e){var Ze=$e.prevProps,Je={prevProps:Oe};function st(Vt){return!Ze&&Oe.hasOwnProperty(Vt)||Ze&&Ze[Vt]!==Oe[Vt]}var lt,ft=$e.fieldNames;if(st("fieldNames")&&(ft=(0,ke.w$)(Oe.fieldNames),Je.fieldNames=ft),st("treeData")?lt=Oe.treeData:st("children")&&((0,ae.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),lt=(0,ke.zn)(Oe.children)),lt){Je.treeData=lt;var Tt=(0,ke.I8)(lt,{fieldNames:ft});Je.keyEntities=(0,a.Z)((0,ee.Z)({},Ke,nt),Tt.keyEntities)}var St=Je.keyEntities||$e.keyEntities;if(st("expandedKeys")||Ze&&st("autoExpandParent"))Je.expandedKeys=Oe.autoExpandParent||!Ze&&Oe.defaultExpandParent?(0,ct.r7)(Oe.expandedKeys,St):Oe.expandedKeys;else if(!Ze&&Oe.defaultExpandAll){var Ot=(0,a.Z)({},St);delete Ot[Ke];var yt=[];Object.keys(Ot).forEach(function(Vt){var vt=Ot[Vt];vt.children&&vt.children.length&&yt.push(vt.key)}),Je.expandedKeys=yt}else!Ze&&Oe.defaultExpandedKeys&&(Je.expandedKeys=Oe.autoExpandParent||Oe.defaultExpandParent?(0,ct.r7)(Oe.defaultExpandedKeys,St):Oe.defaultExpandedKeys);if(Je.expandedKeys||delete Je.expandedKeys,lt||Je.expandedKeys){var Dt=(0,ke.oH)(lt||$e.treeData,Je.expandedKeys||$e.expandedKeys,ft);Je.flattenNodes=Dt}if(Oe.selectable&&(st("selectedKeys")?Je.selectedKeys=(0,ct.BT)(Oe.selectedKeys,Oe):!Ze&&Oe.defaultSelectedKeys&&(Je.selectedKeys=(0,ct.BT)(Oe.defaultSelectedKeys,Oe))),Oe.checkable){var Et;if(st("checkedKeys")?Et=(0,ct.E6)(Oe.checkedKeys)||{}:!Ze&&Oe.defaultCheckedKeys?Et=(0,ct.E6)(Oe.defaultCheckedKeys)||{}:lt&&(Et=(0,ct.E6)(Oe.checkedKeys)||{checkedKeys:$e.checkedKeys,halfCheckedKeys:$e.halfCheckedKeys}),Et){var xt=Et,At=xt.checkedKeys,It=At===void 0?[]:At,ht=xt.halfCheckedKeys,Ct=ht===void 0?[]:ht;if(!Oe.checkStrictly){var Ht=(0,at.S)(It,!0,St);It=Ht.checkedKeys,Ct=Ht.halfCheckedKeys}Je.checkedKeys=It,Je.halfCheckedKeys=Ct}}return st("loadedKeys")&&(Je.loadedKeys=Oe.loadedKeys),Je}}]),we}(se.Component);(0,ee.Z)(Ne,"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:me,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(Ne,"TreeNode",Ce.Z);var te=Ne,de=te},82661:function(Jt,jt,Ie){"use strict";Ie.d(jt,{BT:function(){return se},E6:function(){return me},L0:function(){return ee},OM:function(){return ae},_5:function(){return ie},r7:function(){return he},wA:function(){return x},yx:function(){return le}});var ge=Ie(77654),gt=Ie(43749),a=Ie(48736),Te=Ie(59301),xe=Ie(639),z=Ie(65065),E=Ie(34061),oe=null;function ie(be,Pe){if(!be)return[];var Me=be.slice(),_e=Me.indexOf(Pe);return _e>=0&&Me.splice(_e,1),Me}function ee(be,Pe){var Me=(be||[]).slice();return Me.indexOf(Pe)===-1&&Me.push(Pe),Me}function le(be){return be.split("-")}function x(be,Pe){var Me=[],_e=(0,z.Z)(Pe,be);function De(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ce.forEach(function(Ee){var je=Ee.key,ke=Ee.children;Me.push(je),De(ke)})}return De(_e.children),Me}function ne(be){if(be.parent){var Pe=le(be.pos);return Number(Pe[Pe.length-1])===be.parent.children.length-1}return!1}function re(be){var Pe=le(be.pos);return Number(Pe[Pe.length-1])===0}function ae(be,Pe,Me,_e,De,Ce,Ee,je,ke,Be){var Ae,ve=be.clientX,Ue=be.clientY,He=be.target.getBoundingClientRect(),Ye=He.top,ot=He.height,Fe=(Be==="rtl"?-1:1)*(((De==null?void 0:De.x)||0)-ve),Ke=(Fe-12)/_e,rt=ke.filter(function(de){var Re;return(Re=je[de])===null||Re===void 0||(Re=Re.children)===null||Re===void 0?void 0:Re.length}),nt=(0,z.Z)(je,Me.eventKey);if(Ue<Ye+ot/2){var et=Ee.findIndex(function(de){return de.key===nt.key}),Ge=et<=0?0:et-1,Xe=Ee[Ge].key;nt=(0,z.Z)(je,Xe)}var Ve=nt.key,tt=nt,Qe=nt.key,ct=0,at=0;if(!rt.includes(Ve))for(var qe=0;qe<Ke&&ne(nt);qe+=1)nt=nt.parent,at+=1;var Le=Pe.data,Ne=nt.node,te=!0;return re(nt)&&nt.level===0&&Ue<Ye+ot/2&&Ce({dragNode:Le,dropNode:Ne,dropPosition:-1})&&nt.key===Me.eventKey?ct=-1:(tt.children||[]).length&&rt.includes(Qe)?Ce({dragNode:Le,dropNode:Ne,dropPosition:0})?ct=0:te=!1:at===0?Ke>-1.5?Ce({dragNode:Le,dropNode:Ne,dropPosition:1})?ct=1:te=!1:Ce({dragNode:Le,dropNode:Ne,dropPosition:0})?ct=0:Ce({dragNode:Le,dropNode:Ne,dropPosition:1})?ct=1:te=!1:Ce({dragNode:Le,dropNode:Ne,dropPosition:1})?ct=1:te=!1,{dropPosition:ct,dropLevelOffset:at,dropTargetKey:nt.key,dropTargetPos:nt.pos,dragOverNodeKey:Qe,dropContainerKey:ct===0?null:((Ae=nt.parent)===null||Ae===void 0?void 0:Ae.key)||null,dropAllowed:te}}function se(be,Pe){if(be){var Me=Pe.multiple;return Me?be.slice():be.length?[be[0]]:be}}var ce=function(Pe){return Pe};function pe(be,Pe){if(!be)return[];var Me=Pe||{},_e=Me.processProps,De=_e===void 0?ce:_e,Ce=Array.isArray(be)?be:[be];return Ce.map(function(Ee){var je=Ee.children,ke=_objectWithoutProperties(Ee,oe),Be=pe(je,Pe);return React.createElement(TreeNode,_extends({key:ke.key},De(ke)),Be)})}function me(be){if(!be)return null;var Pe;if(Array.isArray(be))Pe={checkedKeys:be,halfCheckedKeys:void 0};else if((0,gt.Z)(be)==="object")Pe={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,a.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Pe}function he(be,Pe){var Me=new Set;function _e(De){if(!Me.has(De)){var Ce=(0,z.Z)(Pe,De);if(Ce){Me.add(De);var Ee=Ce.parent,je=Ce.node;je.disabled||Ee&&_e(Ee.key)}}}return(be||[]).forEach(function(De){_e(De)}),(0,ge.Z)(Me)}},34643:function(Jt,jt,Ie){"use strict";Ie.d(jt,{S:function(){return E}});var ge=Ie(48736),gt=Ie(65065);function a(oe,ie){var ee=new Set;return oe.forEach(function(le){ie.has(le)||ee.add(le)}),ee}function Te(oe){var ie=oe||{},ee=ie.disabled,le=ie.disableCheckbox,x=ie.checkable;return!!(ee||le)||x===!1}function xe(oe,ie,ee,le){for(var x=new Set(oe),ne=new Set,re=0;re<=ee;re+=1){var ae=ie.get(re)||new Set;ae.forEach(function(me){var he=me.key,be=me.node,Pe=me.children,Me=Pe===void 0?[]:Pe;x.has(he)&&!le(be)&&Me.filter(function(_e){return!le(_e.node)}).forEach(function(_e){x.add(_e.key)})})}for(var se=new Set,ce=ee;ce>=0;ce-=1){var pe=ie.get(ce)||new Set;pe.forEach(function(me){var he=me.parent,be=me.node;if(!(le(be)||!me.parent||se.has(me.parent.key))){if(le(me.parent.node)){se.add(he.key);return}var Pe=!0,Me=!1;(he.children||[]).filter(function(_e){return!le(_e.node)}).forEach(function(_e){var De=_e.key,Ce=x.has(De);Pe&&!Ce&&(Pe=!1),!Me&&(Ce||ne.has(De))&&(Me=!0)}),Pe&&x.add(he.key),Me&&ne.add(he.key),se.add(he.key)}})}return{checkedKeys:Array.from(x),halfCheckedKeys:Array.from(a(ne,x))}}function z(oe,ie,ee,le,x){for(var ne=new Set(oe),re=new Set(ie),ae=0;ae<=le;ae+=1){var se=ee.get(ae)||new Set;se.forEach(function(he){var be=he.key,Pe=he.node,Me=he.children,_e=Me===void 0?[]:Me;!ne.has(be)&&!re.has(be)&&!x(Pe)&&_e.filter(function(De){return!x(De.node)}).forEach(function(De){ne.delete(De.key)})})}re=new Set;for(var ce=new Set,pe=le;pe>=0;pe-=1){var me=ee.get(pe)||new Set;me.forEach(function(he){var be=he.parent,Pe=he.node;if(!(x(Pe)||!he.parent||ce.has(he.parent.key))){if(x(he.parent.node)){ce.add(be.key);return}var Me=!0,_e=!1;(be.children||[]).filter(function(De){return!x(De.node)}).forEach(function(De){var Ce=De.key,Ee=ne.has(Ce);Me&&!Ee&&(Me=!1),!_e&&(Ee||re.has(Ce))&&(_e=!0)}),Me||ne.delete(be.key),_e&&re.add(be.key),ce.add(be.key)}})}return{checkedKeys:Array.from(ne),halfCheckedKeys:Array.from(a(re,ne))}}function E(oe,ie,ee,le){var x=[],ne;le?ne=le:ne=Te;var re=new Set(oe.filter(function(pe){var me=!!(0,gt.Z)(ee,pe);return me||x.push(pe),me})),ae=new Map,se=0;Object.keys(ee).forEach(function(pe){var me=ee[pe],he=me.level,be=ae.get(he);be||(be=new Set,ae.set(he,be)),be.add(me),se=Math.max(se,he)}),(0,ge.ZP)(!x.length,"Tree missing follow keys: ".concat(x.slice(0,100).map(function(pe){return"'".concat(pe,"'")}).join(", ")));var ce;return ie===!0?ce=xe(re,ae,se,ne):ce=z(re,ie.halfCheckedKeys,ae,se,ne),ce}},65065:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return ge}});function ge(gt,a){return gt[a]}},34061:function(Jt,jt,Ie){"use strict";Ie.d(jt,{F:function(){return he},H8:function(){return me},I8:function(){return pe},km:function(){return x},oH:function(){return se},w$:function(){return ne},zn:function(){return ae}});var ge=Ie(43749),gt=Ie(77654),a=Ie(85899),Te=Ie(42244),xe=Ie(11592),z=Ie(2738),E=Ie(48736),oe=Ie(65065),ie=["children"];function ee(be,Pe){return"".concat(be,"-").concat(Pe)}function le(be){return be&&be.type&&be.type.isTreeNode}function x(be,Pe){return be!=null?be:Pe}function ne(be){var Pe=be||{},Me=Pe.title,_e=Pe._title,De=Pe.key,Ce=Pe.children,Ee=Me||"title";return{title:Ee,_title:_e||[Ee],key:De||"key",children:Ce||"children"}}function re(be,Pe){var Me=new Map;function _e(De){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(De||[]).forEach(function(Ee){var je=Ee[Pe.key],ke=Ee[Pe.children];warning(je!=null,"Tree node must have a certain key: [".concat(Ce).concat(je,"]"));var Be=String(je);warning(!Me.has(Be)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(Be)),Me.set(Be,!0),_e(ke,"".concat(Ce).concat(Be," > "))})}_e(be)}function ae(be){function Pe(Me){var _e=(0,xe.Z)(Me);return _e.map(function(De){if(!le(De))return(0,E.ZP)(!De,"Tree/TreeNode can only accept TreeNode as children."),null;var Ce=De.key,Ee=De.props,je=Ee.children,ke=(0,Te.Z)(Ee,ie),Be=(0,a.Z)({key:Ce},ke),Ae=Pe(je);return Ae.length&&(Be.children=Ae),Be}).filter(function(De){return De})}return Pe(be)}function se(be,Pe,Me){var _e=ne(Me),De=_e._title,Ce=_e.key,Ee=_e.children,je=new Set(Pe===!0?[]:Pe),ke=[];function Be(Ae){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Ue,He){for(var Ye=ee(ve?ve.pos:"0",He),ot=x(Ue[Ce],Ye),Fe,Ke=0;Ke<De.length;Ke+=1){var rt=De[Ke];if(Ue[rt]!==void 0){Fe=Ue[rt];break}}var nt=Object.assign((0,z.Z)(Ue,[].concat((0,gt.Z)(De),[Ce,Ee])),{title:Fe,key:ot,parent:ve,pos:Ye,children:null,data:Ue,isStart:[].concat((0,gt.Z)(ve?ve.isStart:[]),[He===0]),isEnd:[].concat((0,gt.Z)(ve?ve.isEnd:[]),[He===Ae.length-1])});return ke.push(nt),Pe===!0||je.has(ot)?nt.children=Be(Ue[Ee]||[],nt):nt.children=[],nt})}return Be(be),ke}function ce(be,Pe,Me){var _e={};(0,ge.Z)(Me)==="object"?_e=Me:_e={externalGetKey:Me},_e=_e||{};var De=_e,Ce=De.childrenPropName,Ee=De.externalGetKey,je=De.fieldNames,ke=ne(je),Be=ke.key,Ae=ke.children,ve=Ce||Ae,Ue;Ee?typeof Ee=="string"?Ue=function(ot){return ot[Ee]}:typeof Ee=="function"&&(Ue=function(ot){return Ee(ot)}):Ue=function(ot,Fe){return x(ot[Be],Fe)};function He(Ye,ot,Fe,Ke){var rt=Ye?Ye[ve]:be,nt=Ye?ee(Fe.pos,ot):"0",et=Ye?[].concat((0,gt.Z)(Ke),[Ye]):[];if(Ye){var Ge=Ue(Ye,nt),Xe={node:Ye,index:ot,pos:nt,key:Ge,parentPos:Fe.node?Fe.pos:null,level:Fe.level+1,nodes:et};Pe(Xe)}rt&&rt.forEach(function(Ve,tt){He(Ve,tt,{node:Ye,pos:nt,level:Fe?Fe.level+1:-1},et)})}He(null)}function pe(be){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=Pe.initWrapper,_e=Pe.processEntity,De=Pe.onProcessFinished,Ce=Pe.externalGetKey,Ee=Pe.childrenPropName,je=Pe.fieldNames,ke=arguments.length>2?arguments[2]:void 0,Be=Ce||ke,Ae={},ve={},Ue={posEntities:Ae,keyEntities:ve};return Me&&(Ue=Me(Ue)||Ue),ce(be,function(He){var Ye=He.node,ot=He.index,Fe=He.pos,Ke=He.key,rt=He.parentPos,nt=He.level,et=He.nodes,Ge={node:Ye,nodes:et,index:ot,key:Ke,pos:Fe,level:nt},Xe=x(Ke,Fe);Ae[Fe]=Ge,ve[Xe]=Ge,Ge.parent=Ae[rt],Ge.parent&&(Ge.parent.children=Ge.parent.children||[],Ge.parent.children.push(Ge)),_e&&_e(Ge,Ue)},{externalGetKey:Be,childrenPropName:Ee,fieldNames:je}),De&&De(Ue),Ue}function me(be,Pe){var Me=Pe.expandedKeys,_e=Pe.selectedKeys,De=Pe.loadedKeys,Ce=Pe.loadingKeys,Ee=Pe.checkedKeys,je=Pe.halfCheckedKeys,ke=Pe.dragOverNodeKey,Be=Pe.dropPosition,Ae=Pe.keyEntities,ve=(0,oe.Z)(Ae,be),Ue={eventKey:be,expanded:Me.indexOf(be)!==-1,selected:_e.indexOf(be)!==-1,loaded:De.indexOf(be)!==-1,loading:Ce.indexOf(be)!==-1,checked:Ee.indexOf(be)!==-1,halfChecked:je.indexOf(be)!==-1,pos:String(ve?ve.pos:""),dragOver:ke===be&&Be===0,dragOverGapTop:ke===be&&Be===-1,dragOverGapBottom:ke===be&&Be===1};return Ue}function he(be){var Pe=be.data,Me=be.expanded,_e=be.selected,De=be.checked,Ce=be.loaded,Ee=be.loading,je=be.halfChecked,ke=be.dragOver,Be=be.dragOverGapTop,Ae=be.dragOverGapBottom,ve=be.pos,Ue=be.active,He=be.eventKey,Ye=(0,a.Z)((0,a.Z)({},Pe),{},{expanded:Me,selected:_e,checked:De,loaded:Ce,loading:Ee,halfChecked:je,dragOver:ke,dragOverGapTop:Be,dragOverGapBottom:Ae,pos:ve,active:Ue,key:He});return"props"in Ye||Object.defineProperty(Ye,"props",{get:function(){return(0,E.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),Ye}},48911:function(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return Le}});var ge=Ie(60499),gt=Ie(43749),a=Ie(85899),Te=Ie(18642),xe=Ie(72190),z=Ie(42244),E=Ie(92310),oe=Ie.n(E),ie=Ie(29301),ee=Ie(70425),le=Ie(34280),x=Ie(59301),ne=Ie(4676),re=x.forwardRef(function(Ne,te){var de=Ne.height,Re=Ne.offsetY,We=Ne.offsetX,we=Ne.children,ye=Ne.prefixCls,Oe=Ne.onInnerResize,$e=Ne.innerProps,Ze=Ne.rtl,Je=Ne.extra,st={},lt={display:"flex",flexDirection:"column"};return Re!==void 0&&(st={height:de,position:"relative",overflow:"hidden"},lt=(0,a.Z)((0,a.Z)({},lt),{},(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({transform:"translateY(".concat(Re,"px)")},Ze?"marginRight":"marginLeft",-We),"position","absolute"),"left",0),"right",0),"top",0))),x.createElement("div",{style:st},x.createElement(ie.Z,{onResize:function(Tt){var St=Tt.offsetHeight;St&&Oe&&Oe()}},x.createElement("div",(0,ge.Z)({style:lt,className:oe()((0,Te.Z)({},"".concat(ye,"-holder-inner"),ye)),ref:te},$e),we,Je)))});re.displayName="Filler";var ae=re;function se(Ne){var te=Ne.children,de=Ne.setRef,Re=x.useCallback(function(We){de(We)},[]);return x.cloneElement(te,{ref:Re})}function ce(Ne,te,de,Re,We,we,ye,Oe){var $e=Oe.getKey;return Ne.slice(te,de+1).map(function(Ze,Je){var st=te+Je,lt=ye(Ze,st,{style:{width:Re},offsetX:We}),ft=$e(Ze);return x.createElement(se,{key:ft,setRef:function(St){return we(Ze,St)}},lt)})}function pe(Ne,te,de,Re){var We=de-Ne,we=te-de,ye=Math.min(We,we)*2;if(Re<=ye){var Oe=Math.floor(Re/2);return Re%2?de+Oe+1:de-Oe}return We>we?de-(Re-we):de+(Re-We)}function me(Ne,te,de){var Re=Ne.length,We=te.length,we,ye;if(Re===0&&We===0)return null;Re<We?(we=Ne,ye=te):(we=te,ye=Ne);var Oe={__EMPTY_ITEM__:!0};function $e(Tt){return Tt!==void 0?de(Tt):Oe}for(var Ze=null,Je=Math.abs(Re-We)!==1,st=0;st<ye.length;st+=1){var lt=$e(we[st]),ft=$e(ye[st]);if(lt!==ft){Ze=st,Je=Je||lt!==$e(ye[st+1]);break}}return Ze===null?null:{index:Ze,multiple:Je}}function he(Ne,te,de){var Re=x.useState(Ne),We=(0,xe.Z)(Re,2),we=We[0],ye=We[1],Oe=x.useState(null),$e=(0,xe.Z)(Oe,2),Ze=$e[0],Je=$e[1];return x.useEffect(function(){var st=me(we||[],Ne||[],te);(st==null?void 0:st.index)!==void 0&&(de==null||de(st.index),Je(Ne[st.index])),ye(Ne)},[Ne]),[Ze]}var be=Ie(16089),Pe=(typeof navigator=="undefined"?"undefined":(0,gt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Me=Pe,_e=function(Ne,te,de,Re){var We=(0,x.useRef)(!1),we=(0,x.useRef)(null);function ye(){clearTimeout(we.current),We.current=!0,we.current=setTimeout(function(){We.current=!1},50)}var Oe=(0,x.useRef)({top:Ne,bottom:te,left:de,right:Re});return Oe.current.top=Ne,Oe.current.bottom=te,Oe.current.left=de,Oe.current.right=Re,function($e,Ze){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,st=$e?Ze<0&&Oe.current.left||Ze>0&&Oe.current.right:Ze<0&&Oe.current.top||Ze>0&&Oe.current.bottom;return Je&&st?(clearTimeout(we.current),We.current=!1):(!st||We.current)&&ye(),!We.current&&st}};function De(Ne,te,de,Re,We,we,ye){var Oe=(0,x.useRef)(0),$e=(0,x.useRef)(null),Ze=(0,x.useRef)(null),Je=(0,x.useRef)(!1),st=_e(te,de,Re,We);function lt(Dt,Et){if(be.Z.cancel($e.current),!st(!1,Et)){var xt=Dt;if(!xt._virtualHandled)xt._virtualHandled=!0;else return;Oe.current+=Et,Ze.current=Et,Me||xt.preventDefault(),$e.current=(0,be.Z)(function(){var At=Je.current?10:1;ye(Oe.current*At,!1),Oe.current=0})}}function ft(Dt,Et){ye(Et,!0),Me||Dt.preventDefault()}var Tt=(0,x.useRef)(null),St=(0,x.useRef)(null);function Ot(Dt){if(Ne){be.Z.cancel(St.current),St.current=(0,be.Z)(function(){Tt.current=null},2);var Et=Dt.deltaX,xt=Dt.deltaY,At=Dt.shiftKey,It=Et,ht=xt;(Tt.current==="sx"||!Tt.current&&At&&xt&&!Et)&&(It=xt,ht=0,Tt.current="sx");var Ct=Math.abs(It),Ht=Math.abs(ht);Tt.current===null&&(Tt.current=we&&Ct>Ht?"x":"y"),Tt.current==="y"?lt(Dt,ht):ft(Dt,It)}}function yt(Dt){Ne&&(Je.current=Dt.detail===Ze.current)}return[Ot,yt]}function Ce(Ne,te,de,Re){var We=x.useMemo(function(){return[new Map,[]]},[Ne,de.id,Re]),we=(0,xe.Z)(We,2),ye=we[0],Oe=we[1],$e=function(Je){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Je,lt=ye.get(Je),ft=ye.get(st);if(lt===void 0||ft===void 0)for(var Tt=Ne.length,St=Oe.length;St<Tt;St+=1){var Ot,yt=Ne[St],Dt=te(yt);ye.set(Dt,St);var Et=(Ot=de.get(Dt))!==null&&Ot!==void 0?Ot:Re;if(Oe[St]=(Oe[St-1]||0)+Et,Dt===Je&&(lt=St),Dt===st&&(ft=St),lt!==void 0&&ft!==void 0)break}return{top:Oe[lt-1]||0,bottom:Oe[ft]}};return $e}var Ee=Ie(38705),je=Ie(17212),ke=function(){function Ne(){(0,Ee.Z)(this,Ne),(0,Te.Z)(this,"maps",void 0),(0,Te.Z)(this,"id",0),(0,Te.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,je.Z)(Ne,[{key:"set",value:function(de,Re){this.diffRecords.set(de,this.maps[de]),this.maps[de]=Re,this.id+=1}},{key:"get",value:function(de){return this.maps[de]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Ne}(),Be=ke;function Ae(Ne){var te=parseFloat(Ne);return isNaN(te)?0:te}function ve(Ne,te,de){var Re=x.useState(0),We=(0,xe.Z)(Re,2),we=We[0],ye=We[1],Oe=(0,x.useRef)(new Map),$e=(0,x.useRef)(new Be),Ze=(0,x.useRef)(0);function Je(){Ze.current+=1}function st(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Je();var Tt=function(){var yt=!1;Oe.current.forEach(function(Dt,Et){if(Dt&&Dt.offsetParent){var xt=Dt.offsetHeight,At=getComputedStyle(Dt),It=At.marginTop,ht=At.marginBottom,Ct=Ae(It),Ht=Ae(ht),Vt=xt+Ct+Ht;$e.current.get(Et)!==Vt&&($e.current.set(Et,Vt),yt=!0)}}),yt&&ye(function(Dt){return Dt+1})};if(ft)Tt();else{Ze.current+=1;var St=Ze.current;Promise.resolve().then(function(){St===Ze.current&&Tt()})}}function lt(ft,Tt){var St=Ne(ft),Ot=Oe.current.get(St);Tt?(Oe.current.set(St,Tt),st()):Oe.current.delete(St),!Ot!=!Tt&&(Tt?te==null||te(ft):de==null||de(ft))}return(0,x.useEffect)(function(){return Je},[]),[lt,st,$e.current,we]}var Ue=14/15;function He(Ne,te,de){var Re=(0,x.useRef)(!1),We=(0,x.useRef)(0),we=(0,x.useRef)(0),ye=(0,x.useRef)(null),Oe=(0,x.useRef)(null),$e,Ze=function(ft){if(Re.current){var Tt=Math.ceil(ft.touches[0].pageX),St=Math.ceil(ft.touches[0].pageY),Ot=We.current-Tt,yt=we.current-St,Dt=Math.abs(Ot)>Math.abs(yt);Dt?We.current=Tt:we.current=St;var Et=de(Dt,Dt?Ot:yt,!1,ft);Et&&ft.preventDefault(),clearInterval(Oe.current),Et&&(Oe.current=setInterval(function(){Dt?Ot*=Ue:yt*=Ue;var xt=Math.floor(Dt?Ot:yt);(!de(Dt,xt,!0)||Math.abs(xt)<=.1)&&clearInterval(Oe.current)},16))}},Je=function(){Re.current=!1,$e()},st=function(ft){$e(),ft.touches.length===1&&!Re.current&&(Re.current=!0,We.current=Math.ceil(ft.touches[0].pageX),we.current=Math.ceil(ft.touches[0].pageY),ye.current=ft.target,ye.current.addEventListener("touchmove",Ze,{passive:!1}),ye.current.addEventListener("touchend",Je,{passive:!0}))};$e=function(){ye.current&&(ye.current.removeEventListener("touchmove",Ze),ye.current.removeEventListener("touchend",Je))},(0,le.Z)(function(){return Ne&&te.current.addEventListener("touchstart",st,{passive:!0}),function(){var lt;(lt=te.current)===null||lt===void 0||lt.removeEventListener("touchstart",st),$e(),clearInterval(Oe.current)}},[Ne])}function Ye(Ne){return Math.floor(Math.pow(Ne,.5))}function ot(Ne,te){var de="touches"in Ne?Ne.touches[0]:Ne;return de[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function Fe(Ne,te,de){x.useEffect(function(){var Re=te.current;if(Ne&&Re){var We=!1,we,ye,Oe=function(){be.Z.cancel(we)},$e=function lt(){Oe(),we=(0,be.Z)(function(){de(ye),lt()})},Ze=function(){We=!1,Oe()},Je=function(ft){if(!(ft.target.draggable||ft.button!==0)){var Tt=ft;Tt._virtualHandled||(Tt._virtualHandled=!0,We=!0)}},st=function(ft){if(We){var Tt=ot(ft,!1),St=Re.getBoundingClientRect(),Ot=St.top,yt=St.bottom;if(Tt<=Ot){var Dt=Ot-Tt;ye=-Ye(Dt),$e()}else if(Tt>=yt){var Et=Tt-yt;ye=Ye(Et),$e()}else Oe()}};return Re.addEventListener("mousedown",Je),Re.ownerDocument.addEventListener("mouseup",Ze),Re.ownerDocument.addEventListener("mousemove",st),Re.ownerDocument.addEventListener("dragend",Ze),function(){Re.removeEventListener("mousedown",Je),Re.ownerDocument.removeEventListener("mouseup",Ze),Re.ownerDocument.removeEventListener("mousemove",st),Re.ownerDocument.removeEventListener("dragend",Ze),Oe()}}},[Ne])}var Ke=10;function rt(Ne,te,de,Re,We,we,ye,Oe){var $e=x.useRef(),Ze=x.useState(null),Je=(0,xe.Z)(Ze,2),st=Je[0],lt=Je[1];return(0,le.Z)(function(){if(st&&st.times<Ke){if(!Ne.current){lt(function(fr){return(0,a.Z)({},fr)});return}we();var ft=st.targetAlign,Tt=st.originAlign,St=st.index,Ot=st.offset,yt=Ne.current.clientHeight,Dt=!1,Et=ft,xt=null;if(yt){for(var At=ft||Tt,It=0,ht=0,Ct=0,Ht=Math.min(te.length-1,St),Vt=0;Vt<=Ht;Vt+=1){var vt=We(te[Vt]);ht=It;var kt=de.get(vt);Ct=ht+(kt===void 0?Re:kt),It=Ct}for(var $t=At==="top"?Ot:yt-Ot,Kt=Ht;Kt>=0;Kt-=1){var tr=We(te[Kt]),sr=de.get(tr);if(sr===void 0){Dt=!0;break}if($t-=sr,$t<=0)break}switch(At){case"top":xt=ht-Ot;break;case"bottom":xt=Ct-yt+Ot;break;default:{var gr=Ne.current.scrollTop,br=gr+yt;ht<gr?Et="top":Ct>br&&(Et="bottom")}}xt!==null&&ye(xt),xt!==st.lastTop&&(Dt=!0)}Dt&&lt((0,a.Z)((0,a.Z)({},st),{},{times:st.times+1,targetAlign:Et,lastTop:xt}))}},[st,Ne.current]),function(ft){if(ft==null){Oe();return}if(be.Z.cancel($e.current),typeof ft=="number")ye(ft);else if(ft&&(0,gt.Z)(ft)==="object"){var Tt,St=ft.align;"index"in ft?Tt=ft.index:Tt=te.findIndex(function(Dt){return We(Dt)===ft.key});var Ot=ft.offset,yt=Ot===void 0?0:Ot;lt({times:0,index:Tt,offset:yt,originAlign:St})}}}var nt=x.forwardRef(function(Ne,te){var de=Ne.prefixCls,Re=Ne.rtl,We=Ne.scrollOffset,we=Ne.scrollRange,ye=Ne.onStartMove,Oe=Ne.onStopMove,$e=Ne.onScroll,Ze=Ne.horizontal,Je=Ne.spinSize,st=Ne.containerSize,lt=Ne.style,ft=Ne.thumbStyle,Tt=Ne.showScrollBar,St=x.useState(!1),Ot=(0,xe.Z)(St,2),yt=Ot[0],Dt=Ot[1],Et=x.useState(null),xt=(0,xe.Z)(Et,2),At=xt[0],It=xt[1],ht=x.useState(null),Ct=(0,xe.Z)(ht,2),Ht=Ct[0],Vt=Ct[1],vt=!Re,kt=x.useRef(),$t=x.useRef(),Kt=x.useState(Tt),tr=(0,xe.Z)(Kt,2),sr=tr[0],gr=tr[1],br=x.useRef(),fr=function(){Tt===!0||Tt===!1||(clearTimeout(br.current),gr(!0),br.current=setTimeout(function(){gr(!1)},3e3))},yr=we-st||0,ir=st-Je||0,Yt=x.useMemo(function(){if(We===0||yr===0)return 0;var Tr=We/yr;return Tr*ir},[We,yr,ir]),Qt=function(Nr){Nr.stopPropagation(),Nr.preventDefault()},qt=x.useRef({top:Yt,dragging:yt,pageY:At,startTop:Ht});qt.current={top:Yt,dragging:yt,pageY:At,startTop:Ht};var Xt=function(Nr){Dt(!0),It(ot(Nr,Ze)),Vt(qt.current.top),ye(),Nr.stopPropagation(),Nr.preventDefault()};x.useEffect(function(){var Tr=function(Wr){Wr.preventDefault()},Nr=kt.current,jr=$t.current;return Nr.addEventListener("touchstart",Tr,{passive:!1}),jr.addEventListener("touchstart",Xt,{passive:!1}),function(){Nr.removeEventListener("touchstart",Tr),jr.removeEventListener("touchstart",Xt)}},[]);var ur=x.useRef();ur.current=yr;var lr=x.useRef();lr.current=ir,x.useEffect(function(){if(yt){var Tr,Nr=function(Wr){var er=qt.current,or=er.dragging,Ir=er.pageY,xr=er.startTop;be.Z.cancel(Tr);var Pt=kt.current.getBoundingClientRect(),Lt=st/(Ze?Pt.width:Pt.height);if(or){var bt=(ot(Wr,Ze)-Ir)*Lt,Mt=xr;!vt&&Ze?Mt-=bt:Mt+=bt;var wt=ur.current,Nt=lr.current,pt=Nt?Mt/Nt:0,Bt=Math.ceil(pt*wt);Bt=Math.max(Bt,0),Bt=Math.min(Bt,wt),Tr=(0,be.Z)(function(){$e(Bt,Ze)})}},jr=function(){Dt(!1),Oe()};return window.addEventListener("mousemove",Nr,{passive:!0}),window.addEventListener("touchmove",Nr,{passive:!0}),window.addEventListener("mouseup",jr,{passive:!0}),window.addEventListener("touchend",jr,{passive:!0}),function(){window.removeEventListener("mousemove",Nr),window.removeEventListener("touchmove",Nr),window.removeEventListener("mouseup",jr),window.removeEventListener("touchend",jr),be.Z.cancel(Tr)}}},[yt]),x.useEffect(function(){return fr(),function(){clearTimeout(br.current)}},[We]),x.useImperativeHandle(te,function(){return{delayHidden:fr}});var ar="".concat(de,"-scrollbar"),Cr={position:"absolute",visibility:sr?null:"hidden"},Ar={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ze?(Object.assign(Cr,{height:8,left:0,right:0,bottom:0}),Object.assign(Ar,(0,Te.Z)({height:"100%",width:Je},vt?"left":"right",Yt))):(Object.assign(Cr,(0,Te.Z)({width:8,top:0,bottom:0},vt?"right":"left",0)),Object.assign(Ar,{width:"100%",height:Je,top:Yt})),x.createElement("div",{ref:kt,className:oe()(ar,(0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(ar,"-horizontal"),Ze),"".concat(ar,"-vertical"),!Ze),"".concat(ar,"-visible"),sr)),style:(0,a.Z)((0,a.Z)({},Cr),lt),onMouseDown:Qt,onMouseMove:fr},x.createElement("div",{ref:$t,className:oe()("".concat(ar,"-thumb"),(0,Te.Z)({},"".concat(ar,"-thumb-moving"),yt)),style:(0,a.Z)((0,a.Z)({},Ar),ft),onMouseDown:Xt}))}),et=nt,Ge=20;function Xe(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,de=Ne/te*Ne;return isNaN(de)&&(de=0),de=Math.max(de,Ge),Math.floor(de)}var Ve=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],tt=[],Qe={overflowY:"auto",overflowAnchor:"none"};function ct(Ne,te){var de=Ne.prefixCls,Re=de===void 0?"rc-virtual-list":de,We=Ne.className,we=Ne.height,ye=Ne.itemHeight,Oe=Ne.fullHeight,$e=Oe===void 0?!0:Oe,Ze=Ne.style,Je=Ne.data,st=Ne.children,lt=Ne.itemKey,ft=Ne.virtual,Tt=Ne.direction,St=Ne.scrollWidth,Ot=Ne.component,yt=Ot===void 0?"div":Ot,Dt=Ne.onScroll,Et=Ne.onVirtualScroll,xt=Ne.onVisibleChange,At=Ne.innerProps,It=Ne.extraRender,ht=Ne.styles,Ct=Ne.showScrollBar,Ht=Ct===void 0?"optional":Ct,Vt=(0,z.Z)(Ne,Ve),vt=x.useCallback(function(vr){return typeof lt=="function"?lt(vr):vr==null?void 0:vr[lt]},[lt]),kt=ve(vt,null,null),$t=(0,xe.Z)(kt,4),Kt=$t[0],tr=$t[1],sr=$t[2],gr=$t[3],br=!!(ft!==!1&&we&&ye),fr=x.useMemo(function(){return Object.values(sr.maps).reduce(function(vr,Or){return vr+Or},0)},[sr.id,sr.maps]),yr=br&&Je&&(Math.max(ye*Je.length,fr)>we||!!St),ir=Tt==="rtl",Yt=oe()(Re,(0,Te.Z)({},"".concat(Re,"-rtl"),ir),We),Qt=Je||tt,qt=(0,x.useRef)(),Xt=(0,x.useRef)(),ur=(0,x.useRef)(),lr=(0,x.useState)(0),ar=(0,xe.Z)(lr,2),Cr=ar[0],Ar=ar[1],Tr=(0,x.useState)(0),Nr=(0,xe.Z)(Tr,2),jr=Nr[0],Zr=Nr[1],Wr=(0,x.useState)(!1),er=(0,xe.Z)(Wr,2),or=er[0],Ir=er[1],xr=function(){Ir(!0)},Pt=function(){Ir(!1)},Lt={getKey:vt};function bt(vr){Ar(function(Or){var Er;typeof vr=="function"?Er=vr(Or):Er=vr;var pr=Qr(Er);return qt.current.scrollTop=pr,pr})}var Mt=(0,x.useRef)({start:0,end:Qt.length}),wt=(0,x.useRef)(),Nt=he(Qt,vt),pt=(0,xe.Z)(Nt,1),Bt=pt[0];wt.current=Bt;var Wt=x.useMemo(function(){if(!br)return{scrollHeight:void 0,start:0,end:Qt.length-1,offset:void 0};if(!yr){var vr;return{scrollHeight:((vr=Xt.current)===null||vr===void 0?void 0:vr.offsetHeight)||0,start:0,end:Qt.length-1,offset:void 0}}for(var Or=0,Er,pr,$r,Kr=Qt.length,wr=0;wr<Kr;wr+=1){var mr=Qt[wr],kr=vt(mr),Lr=sr.get(kr),cn=Or+(Lr===void 0?ye:Lr);cn>=Cr&&Er===void 0&&(Er=wr,pr=Or),cn>Cr+we&&$r===void 0&&($r=wr),Or=cn}return Er===void 0&&(Er=0,pr=0,$r=Math.ceil(we/ye)),$r===void 0&&($r=Qt.length-1),$r=Math.min($r+1,Qt.length-1),{scrollHeight:Or,start:Er,end:$r,offset:pr}},[yr,br,Cr,Qt,gr,we]),Gt=Wt.scrollHeight,zt=Wt.start,Rt=Wt.end,_t=Wt.offset;Mt.current.start=zt,Mt.current.end=Rt,x.useLayoutEffect(function(){var vr=sr.getRecord();if(vr.size===1){var Or=Array.from(vr.keys())[0],Er=vr.get(Or),pr=Qt[zt];if(pr&&Er===void 0){var $r=vt(pr);if($r===Or){var Kr=sr.get(Or),wr=Kr-ye;bt(function(mr){return mr+wr})}}}sr.resetRecord()},[Gt]);var Ut=x.useState({width:0,height:we}),dr=(0,xe.Z)(Ut,2),cr=dr[0],hr=dr[1],Br=function(Or){hr({width:Or.offsetWidth,height:Or.offsetHeight})},Fr=(0,x.useRef)(),Hr=(0,x.useRef)(),_r=x.useMemo(function(){return Xe(cr.width,St)},[cr.width,St]),Pr=x.useMemo(function(){return Xe(cr.height,Gt)},[cr.height,Gt]),Rr=Gt-we,Ur=(0,x.useRef)(Rr);Ur.current=Rr;function Qr(vr){var Or=vr;return Number.isNaN(Ur.current)||(Or=Math.min(Or,Ur.current)),Or=Math.max(Or,0),Or}var Vr=Cr<=0,Jr=Cr>=Rr,Dr=jr<=0,tn=jr>=St,Gr=_e(Vr,Jr,Dr,tn),fn=function(){return{x:ir?-jr:jr,y:Cr}},pn=(0,x.useRef)(fn()),ln=(0,ee.zX)(function(vr){if(Et){var Or=(0,a.Z)((0,a.Z)({},fn()),vr);(pn.current.x!==Or.x||pn.current.y!==Or.y)&&(Et(Or),pn.current=Or)}});function un(vr,Or){var Er=vr;Or?((0,ne.flushSync)(function(){Zr(Er)}),ln()):bt(Er)}function yn(vr){var Or=vr.currentTarget.scrollTop;Or!==Cr&&bt(Or),Dt==null||Dt(vr),ln()}var sn=function(Or){var Er=Or,pr=St?St-cr.width:0;return Er=Math.max(Er,0),Er=Math.min(Er,pr),Er},dn=(0,ee.zX)(function(vr,Or){Or?((0,ne.flushSync)(function(){Zr(function(Er){var pr=Er+(ir?-vr:vr);return sn(pr)})}),ln()):bt(function(Er){var pr=Er+vr;return pr})}),en=De(br,Vr,Jr,Dr,tn,!!St,dn),mn=(0,xe.Z)(en,2),bn=mn[0],Fn=mn[1];He(br,qt,function(vr,Or,Er,pr){var $r=pr;return Gr(vr,Or,Er)?!1:!$r||!$r._virtualHandled?($r&&($r._virtualHandled=!0),bn({preventDefault:function(){},deltaX:vr?Or:0,deltaY:vr?0:Or}),!0):!1}),Fe(yr,qt,function(vr){bt(function(Or){return Or+vr})}),(0,le.Z)(function(){function vr(Er){var pr=Vr&&Er.detail<0,$r=Jr&&Er.detail>0;br&&!pr&&!$r&&Er.preventDefault()}var Or=qt.current;return Or.addEventListener("wheel",bn,{passive:!1}),Or.addEventListener("DOMMouseScroll",Fn,{passive:!0}),Or.addEventListener("MozMousePixelScroll",vr,{passive:!1}),function(){Or.removeEventListener("wheel",bn),Or.removeEventListener("DOMMouseScroll",Fn),Or.removeEventListener("MozMousePixelScroll",vr)}},[br,Vr,Jr]),(0,le.Z)(function(){if(St){var vr=sn(jr);Zr(vr),ln({x:vr})}},[cr.width,St]);var En=function(){var Or,Er;(Or=Fr.current)===null||Or===void 0||Or.delayHidden(),(Er=Hr.current)===null||Er===void 0||Er.delayHidden()},Mn=rt(qt,Qt,sr,ye,vt,function(){return tr(!0)},bt,En);x.useImperativeHandle(te,function(){return{nativeElement:ur.current,getScrollInfo:fn,scrollTo:function(Or){function Er(pr){return pr&&(0,gt.Z)(pr)==="object"&&("left"in pr||"top"in pr)}Er(Or)?(Or.left!==void 0&&Zr(sn(Or.left)),Mn(Or.top)):Mn(Or)}}}),(0,le.Z)(function(){if(xt){var vr=Qt.slice(zt,Rt+1);xt(vr,Qt)}},[zt,Rt,Qt]);var On=Ce(Qt,vt,sr,ye),In=It==null?void 0:It({start:zt,end:Rt,virtual:yr,offsetX:jr,offsetY:_t,rtl:ir,getSize:On}),on=ce(Qt,zt,Rt,St,jr,Kt,st,Lt),nn=null;we&&(nn=(0,a.Z)((0,Te.Z)({},$e?"height":"maxHeight",we),Qe),br&&(nn.overflowY="hidden",St&&(nn.overflowX="hidden"),or&&(nn.pointerEvents="none")));var qr={};return ir&&(qr.dir="rtl"),x.createElement("div",(0,ge.Z)({ref:ur,style:(0,a.Z)((0,a.Z)({},Ze),{},{position:"relative"}),className:Yt},qr,Vt),x.createElement(ie.Z,{onResize:Br},x.createElement(yt,{className:"".concat(Re,"-holder"),style:nn,ref:qt,onScroll:yn,onMouseEnter:En},x.createElement(ae,{prefixCls:Re,height:Gt,offsetX:jr,offsetY:_t,scrollWidth:St,onInnerResize:tr,ref:Xt,innerProps:At,rtl:ir,extra:In},on))),yr&&Gt>we&&x.createElement(et,{ref:Fr,prefixCls:Re,scrollOffset:Cr,scrollRange:Gt,rtl:ir,onScroll:un,onStartMove:xr,onStopMove:Pt,spinSize:Pr,containerSize:cr.height,style:ht==null?void 0:ht.verticalScrollBar,thumbStyle:ht==null?void 0:ht.verticalScrollBarThumb,showScrollBar:Ht}),yr&&St>cr.width&&x.createElement(et,{ref:Hr,prefixCls:Re,scrollOffset:jr,scrollRange:St,rtl:ir,onScroll:un,onStartMove:xr,onStopMove:Pt,spinSize:_r,containerSize:cr.width,horizontal:!0,style:ht==null?void 0:ht.horizontalScrollBar,thumbStyle:ht==null?void 0:ht.horizontalScrollBarThumb,showScrollBar:Ht}))}var at=x.forwardRef(ct);at.displayName="List";var qe=at,Le=qe},7062:function(Jt,jt,Ie){var ge=Ie(19637),gt=Ie(97573),a=[Ie(96627)];Jt.exports=ge.createStore(gt,a)},96627:function(Jt,jt,Ie){Jt.exports=ge;function ge(){return Ie(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(Jt){return Jt<10?"0"+Jt:Jt}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(Jt){return rx_escapable.lastIndex=0,rx_escapable.test(Jt)?'"'+Jt.replace(rx_escapable,function(jt){var Ie=meta[jt];return typeof Ie=="string"?Ie:"\\u"+("0000"+jt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Jt+'"'}function str(Jt,jt){var Ie,ge,gt,a,Te=gap,xe,z=jt[Jt];switch(z&&typeof z=="object"&&typeof z.toJSON=="function"&&(z=z.toJSON(Jt)),typeof rep=="function"&&(z=rep.call(jt,Jt,z)),typeof z){case"string":return quote(z);case"number":return isFinite(z)?String(z):"null";case"boolean":case"null":return String(z);case"object":if(!z)return"null";if(gap+=indent,xe=[],Object.prototype.toString.apply(z)==="[object Array]"){for(a=z.length,Ie=0;Ie<a;Ie+=1)xe[Ie]=str(Ie,z)||"null";return gt=xe.length===0?"[]":gap?`[
`+gap+xe.join(`,
`+gap)+`
`+Te+"]":"["+xe.join(",")+"]",gap=Te,gt}if(rep&&typeof rep=="object")for(a=rep.length,Ie=0;Ie<a;Ie+=1)typeof rep[Ie]=="string"&&(ge=rep[Ie],gt=str(ge,z),gt&&xe.push(quote(ge)+(gap?": ":":")+gt));else for(ge in z)Object.prototype.hasOwnProperty.call(z,ge)&&(gt=str(ge,z),gt&&xe.push(quote(ge)+(gap?": ":":")+gt));return gt=xe.length===0?"{}":gap?`{
`+gap+xe.join(`,
`+gap)+`
`+Te+"}":"{"+xe.join(",")+"}",gap=Te,gt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Jt,jt,Ie){var ge;if(gap="",indent="",typeof Ie=="number")for(ge=0;ge<Ie;ge+=1)indent+=" ";else typeof Ie=="string"&&(indent=Ie);if(rep=jt,jt&&typeof jt!="function"&&(typeof jt!="object"||typeof jt.length!="number"))throw new Error("JSON.stringify");return str("",{"":Jt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Jt,jt){var Ie,ge,gt=Jt[jt];if(gt&&typeof gt=="object")for(Ie in gt)Object.prototype.hasOwnProperty.call(gt,Ie)&&(ge=walk(gt,Ie),ge!==void 0?gt[Ie]=ge:delete gt[Ie]);return reviver.call(Jt,jt,gt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Jt){return"\\u"+("0000"+Jt.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(Jt,jt,Ie){var ge=Ie(67039),gt=ge.slice,a=ge.pluck,Te=ge.each,xe=ge.bind,z=ge.create,E=ge.isList,oe=ge.isFunction,ie=ge.isObject;Jt.exports={createStore:x};var ee={version:"2.0.12",enabled:!1,get:function(ne,re){var ae=this.storage.read(this._namespacePrefix+ne);return this._deserialize(ae,re)},set:function(ne,re){return re===void 0?this.remove(ne):(this.storage.write(this._namespacePrefix+ne,this._serialize(re)),re)},remove:function(ne){this.storage.remove(this._namespacePrefix+ne)},each:function(ne){var re=this;this.storage.each(function(ae,se){ne.call(re,re._deserialize(ae),(se||"").replace(re._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(ne){return this._namespacePrefix=="__storejs_"+ne+"_"},createStore:function(){return x.apply(this,arguments)},addPlugin:function(ne){this._addPlugin(ne)},namespace:function(ne){return x(this.storage,this.plugins,ne)}};function le(){var ne=typeof console=="undefined"?null:console;if(ne){var re=ne.warn?ne.warn:ne.log;re.apply(ne,arguments)}}function x(ne,re,ae){ae||(ae=""),ne&&!E(ne)&&(ne=[ne]),re&&!E(re)&&(re=[re]);var se=ae?"__storejs_"+ae+"_":"",ce=ae?new RegExp("^"+se):null,pe=/^[a-zA-Z0-9_\-]*$/;if(!pe.test(ae))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var me={_namespacePrefix:se,_namespaceRegexp:ce,_testStorage:function(be){try{var Pe="__storejs__test__";be.write(Pe,Pe);var Me=be.read(Pe)===Pe;return be.remove(Pe),Me}catch(_e){return!1}},_assignPluginFnProp:function(be,Pe){var Me=this[Pe];this[Pe]=function(){var De=gt(arguments,0),Ce=this;function Ee(){if(Me)return Te(arguments,function(ke,Be){De[Be]=ke}),Me.apply(Ce,De)}var je=[Ee].concat(De);return be.apply(Ce,je)}},_serialize:function(be){return JSON.stringify(be)},_deserialize:function(be,Pe){if(!be)return Pe;var Me="";try{Me=JSON.parse(be)}catch(_e){Me=be}return Me!==void 0?Me:Pe},_addStorage:function(be){this.enabled||this._testStorage(be)&&(this.storage=be,this.enabled=!0)},_addPlugin:function(be){var Pe=this;if(E(be)){Te(be,function(De){Pe._addPlugin(De)});return}var Me=a(this.plugins,function(De){return be===De});if(!Me){if(this.plugins.push(be),!oe(be))throw new Error("Plugins must be function values that return objects");var _e=be.call(this);if(!ie(_e))throw new Error("Plugins must return an object of function properties");Te(_e,function(De,Ce){if(!oe(De))throw new Error("Bad plugin property: "+Ce+" from plugin "+be.name+". Plugins should only return functions.");Pe._assignPluginFnProp(De,Ce)})}},addStorage:function(be){le("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(be)}},he=z(me,ee,{plugins:[]});return he.raw={},Te(he,function(be,Pe){oe(be)&&(he.raw[Pe]=xe(he,be))}),Te(ne,function(be){he._addStorage(be)}),Te(re,function(be){he._addPlugin(be)}),he}},67039:function(Jt,jt,Ie){var ge=xe(),gt=z(),a=E(),Te=typeof window!="undefined"?window:Ie.g;Jt.exports={assign:ge,create:gt,trim:a,bind:oe,slice:ie,each:ee,map:le,pluck:x,isList:ne,isFunction:re,isObject:ae,Global:Te};function xe(){return Object.assign?Object.assign:function(ce,pe,me,he){for(var be=1;be<arguments.length;be++)ee(Object(arguments[be]),function(Pe,Me){ce[Me]=Pe});return ce}}function z(){if(Object.create)return function(pe,me,he,be){var Pe=ie(arguments,1);return ge.apply(this,[Object.create(pe)].concat(Pe))};{let ce=function(){};var se=ce;return function(me,he,be,Pe){var Me=ie(arguments,1);return ce.prototype=me,ge.apply(this,[new ce].concat(Me))}}}function E(){return String.prototype.trim?function(ce){return String.prototype.trim.call(ce)}:function(ce){return ce.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function oe(se,ce){return function(){return ce.apply(se,Array.prototype.slice.call(arguments,0))}}function ie(se,ce){return Array.prototype.slice.call(se,ce||0)}function ee(se,ce){x(se,function(pe,me){return ce(pe,me),!1})}function le(se,ce){var pe=ne(se)?[]:{};return x(se,function(me,he){return pe[he]=ce(me,he),!1}),pe}function x(se,ce){if(ne(se)){for(var pe=0;pe<se.length;pe++)if(ce(se[pe],pe))return se[pe]}else for(var me in se)if(se.hasOwnProperty(me)&&ce(se[me],me))return se[me]}function ne(se){return se!=null&&typeof se!="function"&&typeof se.length=="number"}function re(se){return se&&{}.toString.call(se)==="[object Function]"}function ae(se){return se&&{}.toString.call(se)==="[object Object]"}},97573:function(Jt,jt,Ie){Jt.exports=[Ie(52496),Ie(16436),Ie(76673),Ie(35701),Ie(65578),Ie(65300)]},35701:function(Jt,jt,Ie){var ge=Ie(67039),gt=ge.Global,a=ge.trim;Jt.exports={name:"cookieStorage",read:xe,write:E,each:z,remove:oe,clearAll:ie};var Te=gt.document;function xe(le){if(!le||!ee(le))return null;var x="(?:^|.*;\\s*)"+escape(le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Te.cookie.replace(new RegExp(x),"$1"))}function z(le){for(var x=Te.cookie.split(/; ?/g),ne=x.length-1;ne>=0;ne--)if(a(x[ne])){var re=x[ne].split("="),ae=unescape(re[0]),se=unescape(re[1]);le(se,ae)}}function E(le,x){le&&(Te.cookie=escape(le)+"="+escape(x)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function oe(le){!le||!ee(le)||(Te.cookie=escape(le)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ie(){z(function(le,x){oe(x)})}function ee(le){return new RegExp("(?:^|;\\s*)"+escape(le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Te.cookie)}},52496:function(Jt,jt,Ie){var ge=Ie(67039),gt=ge.Global;Jt.exports={name:"localStorage",read:Te,write:xe,each:z,remove:E,clearAll:oe};function a(){return gt.localStorage}function Te(ie){return a().getItem(ie)}function xe(ie,ee){return a().setItem(ie,ee)}function z(ie){for(var ee=a().length-1;ee>=0;ee--){var le=a().key(ee);ie(Te(le),le)}}function E(ie){return a().removeItem(ie)}function oe(){return a().clear()}},65300:function(Jt){Jt.exports={name:"memoryStorage",read:Ie,write:ge,each:gt,remove:a,clearAll:Te};var jt={};function Ie(xe){return jt[xe]}function ge(xe,z){jt[xe]=z}function gt(xe){for(var z in jt)jt.hasOwnProperty(z)&&xe(jt[z],z)}function a(xe){delete jt[xe]}function Te(xe){jt={}}},16436:function(Jt,jt,Ie){var ge=Ie(67039),gt=ge.Global;Jt.exports={name:"oldFF-globalStorage",read:Te,write:xe,each:z,remove:E,clearAll:oe};var a=gt.globalStorage;function Te(ie){return a[ie]}function xe(ie,ee){a[ie]=ee}function z(ie){for(var ee=a.length-1;ee>=0;ee--){var le=a.key(ee);ie(a[le],le)}}function E(ie){return a.removeItem(ie)}function oe(){z(function(ie,ee){delete a[ie]})}},76673:function(Jt,jt,Ie){var ge=Ie(67039),gt=ge.Global;Jt.exports={name:"oldIE-userDataStorage",write:E,read:oe,each:ie,remove:ee,clearAll:le};var a="storejs",Te=gt.document,xe=re(),z=(gt.navigator?gt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function E(ae,se){if(!z){var ce=ne(ae);xe(function(pe){pe.setAttribute(ce,se),pe.save(a)})}}function oe(ae){if(!z){var se=ne(ae),ce=null;return xe(function(pe){ce=pe.getAttribute(se)}),ce}}function ie(ae){xe(function(se){for(var ce=se.XMLDocument.documentElement.attributes,pe=ce.length-1;pe>=0;pe--){var me=ce[pe];ae(se.getAttribute(me.name),me.name)}})}function ee(ae){var se=ne(ae);xe(function(ce){ce.removeAttribute(se),ce.save(a)})}function le(){xe(function(ae){var se=ae.XMLDocument.documentElement.attributes;ae.load(a);for(var ce=se.length-1;ce>=0;ce--)ae.removeAttribute(se[ce].name);ae.save(a)})}var x=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ne(ae){return ae.replace(/^\d/,"___$&").replace(x,"___")}function re(){if(!Te||!Te.documentElement||!Te.documentElement.addBehavior)return null;var ae="script",se,ce,pe;try{ce=new ActiveXObject("htmlfile"),ce.open(),ce.write("<"+ae+">document.w=window</"+ae+'><iframe src="/favicon.ico"></iframe>'),ce.close(),se=ce.w.frames[0].document,pe=se.createElement("div")}catch(me){pe=Te.createElement("div"),se=Te.body}return function(me){var he=[].slice.call(arguments,0);he.unshift(pe),se.appendChild(pe),pe.addBehavior("#default#userData"),pe.load(a),me.apply(this,he),se.removeChild(pe)}}},65578:function(Jt,jt,Ie){var ge=Ie(67039),gt=ge.Global;Jt.exports={name:"sessionStorage",read:Te,write:xe,each:z,remove:E,clearAll:oe};function a(){return gt.sessionStorage}function Te(ie){return a().getItem(ie)}function xe(ie,ee){return a().setItem(ie,ee)}function z(ie){for(var ee=a().length-1;ee>=0;ee--){var le=a().key(ee);ie(Te(le),le)}}function E(ie){return a().removeItem(ie)}function oe(){return a().clear()}},93314:function(Jt){"use strict";Jt.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(Jt,jt,Ie){"use strict";Ie.d(jt,{Z:function(){return oe}});const ge=ie=>typeof ie=="object"&&ie!=null&&ie.nodeType===1,gt=(ie,ee)=>(!ee||ie!=="hidden")&&ie!=="visible"&&ie!=="clip",a=(ie,ee)=>{if(ie.clientHeight<ie.scrollHeight||ie.clientWidth<ie.scrollWidth){const le=getComputedStyle(ie,null);return gt(le.overflowY,ee)||gt(le.overflowX,ee)||(x=>{const ne=(re=>{if(!re.ownerDocument||!re.ownerDocument.defaultView)return null;try{return re.ownerDocument.defaultView.frameElement}catch(ae){return null}})(x);return!!ne&&(ne.clientHeight<x.scrollHeight||ne.clientWidth<x.scrollWidth)})(ie)}return!1},Te=(ie,ee,le,x,ne,re,ae,se)=>re<ie&&ae>ee||re>ie&&ae<ee?0:re<=ie&&se<=le||ae>=ee&&se>=le?re-ie-x:ae>ee&&se<le||re<ie&&se>le?ae-ee+ne:0,xe=ie=>{const ee=ie.parentElement;return ee==null?ie.getRootNode().host||null:ee},z=(ie,ee)=>{var le,x,ne,re;if(typeof document=="undefined")return[];const{scrollMode:ae,block:se,inline:ce,boundary:pe,skipOverflowHiddenElements:me}=ee,he=typeof pe=="function"?pe:et=>et!==pe;if(!ge(ie))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Pe=[];let Me=ie;for(;ge(Me)&&he(Me);){if(Me=xe(Me),Me===be){Pe.push(Me);break}Me!=null&&Me===document.body&&a(Me)&&!a(document.documentElement)||Me!=null&&a(Me,me)&&Pe.push(Me)}const _e=(x=(le=window.visualViewport)==null?void 0:le.width)!=null?x:innerWidth,De=(re=(ne=window.visualViewport)==null?void 0:ne.height)!=null?re:innerHeight,{scrollX:Ce,scrollY:Ee}=window,{height:je,width:ke,top:Be,right:Ae,bottom:ve,left:Ue}=ie.getBoundingClientRect(),{top:He,right:Ye,bottom:ot,left:Fe}=(et=>{const Ge=window.getComputedStyle(et);return{top:parseFloat(Ge.scrollMarginTop)||0,right:parseFloat(Ge.scrollMarginRight)||0,bottom:parseFloat(Ge.scrollMarginBottom)||0,left:parseFloat(Ge.scrollMarginLeft)||0}})(ie);let Ke=se==="start"||se==="nearest"?Be-He:se==="end"?ve+ot:Be+je/2-He+ot,rt=ce==="center"?Ue+ke/2-Fe+Ye:ce==="end"?Ae+Ye:Ue-Fe;const nt=[];for(let et=0;et<Pe.length;et++){const Ge=Pe[et],{height:Xe,width:Ve,top:tt,right:Qe,bottom:ct,left:at}=Ge.getBoundingClientRect();if(ae==="if-needed"&&Be>=0&&Ue>=0&&ve<=De&&Ae<=_e&&(Ge===be&&!a(Ge)||Be>=tt&&ve<=ct&&Ue>=at&&Ae<=Qe))return nt;const qe=getComputedStyle(Ge),Le=parseInt(qe.borderLeftWidth,10),Ne=parseInt(qe.borderTopWidth,10),te=parseInt(qe.borderRightWidth,10),de=parseInt(qe.borderBottomWidth,10);let Re=0,We=0;const we="offsetWidth"in Ge?Ge.offsetWidth-Ge.clientWidth-Le-te:0,ye="offsetHeight"in Ge?Ge.offsetHeight-Ge.clientHeight-Ne-de:0,Oe="offsetWidth"in Ge?Ge.offsetWidth===0?0:Ve/Ge.offsetWidth:0,$e="offsetHeight"in Ge?Ge.offsetHeight===0?0:Xe/Ge.offsetHeight:0;if(be===Ge)Re=se==="start"?Ke:se==="end"?Ke-De:se==="nearest"?Te(Ee,Ee+De,De,Ne,de,Ee+Ke,Ee+Ke+je,je):Ke-De/2,We=ce==="start"?rt:ce==="center"?rt-_e/2:ce==="end"?rt-_e:Te(Ce,Ce+_e,_e,Le,te,Ce+rt,Ce+rt+ke,ke),Re=Math.max(0,Re+Ee),We=Math.max(0,We+Ce);else{Re=se==="start"?Ke-tt-Ne:se==="end"?Ke-ct+de+ye:se==="nearest"?Te(tt,ct,Xe,Ne,de+ye,Ke,Ke+je,je):Ke-(tt+Xe/2)+ye/2,We=ce==="start"?rt-at-Le:ce==="center"?rt-(at+Ve/2)+we/2:ce==="end"?rt-Qe+te+we:Te(at,Qe,Ve,Le,te+we,rt,rt+ke,ke);const{scrollLeft:Ze,scrollTop:Je}=Ge;Re=$e===0?0:Math.max(0,Math.min(Je+Re/$e,Ge.scrollHeight-Xe/$e+ye)),We=Oe===0?0:Math.max(0,Math.min(Ze+We/Oe,Ge.scrollWidth-Ve/Oe+we)),Ke+=Je-Re,rt+=Ze-We}nt.push({el:Ge,top:Re,left:We})}return nt},E=ie=>ie===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(ie)?ie:{block:"start",inline:"nearest"};function oe(ie,ee){if(!ie.isConnected||!(ne=>{let re=ne;for(;re&&re.parentNode;){if(re.parentNode===document)return!0;re=re.parentNode instanceof ShadowRoot?re.parentNode.host:re.parentNode}return!1})(ie))return;const le=(ne=>{const re=window.getComputedStyle(ne);return{top:parseFloat(re.scrollMarginTop)||0,right:parseFloat(re.scrollMarginRight)||0,bottom:parseFloat(re.scrollMarginBottom)||0,left:parseFloat(re.scrollMarginLeft)||0}})(ie);if((ne=>typeof ne=="object"&&typeof ne.behavior=="function")(ee))return ee.behavior(z(ie,ee));const x=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:ne,top:re,left:ae}of z(ie,E(ee))){const se=re-le.top+le.bottom,ce=ae-le.left+le.right;ne.scroll({top:se,left:ce,behavior:x})}}}}]);