/*! For license information please see 80955.6e00b5fc.js.LICENSE.txt */ !function(t,e){"object"==typeof module&&"object"==typeof module.exports?e():"function"==typeof define&&define.amd?define([],e):(t="undefined"!=typeof globalThis?globalThis:t||self)&&e()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).xss={})}(this,function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,r=1,n=arguments.length;r/g,a=/&#([a-zA-Z0-9]*);?/gim,s=/"/g,l=/:?/gim,c=/&newline;?/gim,u=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,f=/u\s*r\s*l\s*\(.*/gi,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,d=/"/g,p=function(t){return t.replace(o,"<").replace(i,">")},v={indexOf:function(t,e){var r,n;for(r=0,n=t.length;r127&&n<2048?e+=String.fromCharCode(n>>6|192)+String.fromCharCode(63&n|128):e+=String.fromCharCode(n>>12|224)+String.fromCharCode(n>>6&63|128)+String.fromCharCode(63&n|128)}return e}(t);u>2,i=(3&e)<<4|(r=t.charCodeAt(u++))>>4,a=(15&r)<<2|(n=t.charCodeAt(u++))>>6,s=63&n,isNaN(r)?a=s=64:isNaN(n)&&(s=64),c=c+l.charAt(o)+l.charAt(i)+l.charAt(a)+l.charAt(s);return c}function b(t){var e,r,n,o,i,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");c>4,r=(15&o)<<4|(i=s.indexOf(t.charAt(c++)))>>2,n=(3&i)<<6|(a=s.indexOf(t.charAt(c++))),l+=String.fromCharCode(e),64!==i&&(l+=String.fromCharCode(r)),64!==a&&(l+=String.fromCharCode(n));return function(t){for(var e="",r=0,n=0,o=0,i=0;r191&&n<224?(e+=String.fromCharCode((31&n)<<6|63&(i=t.charCodeAt(r+1))),r+=2):(i=t.charCodeAt(r+1),e+=String.fromCharCode((15&n)<<12|(63&i)<<6|63&(o=t.charCodeAt(r+2))),r+=3);return e}(l)}function _(t,e,r){var n="",o=0,i=!1,a=!1,s=0,l=t.length,c="",u="";t:for(s=0;s"===f||s===l-1){n+=r(t.slice(o,i)),c=function(t){var e,r=v.spaceIndex(t);return e=-1===r?t.slice(1,-1):t.slice(1,r+1),"/"===(e=v.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}(u=t.slice(i,s+1)),n+=e(i,n.length,c,u,"0;e--){var r=t[e];if(" "!==r)return"="===r?e:-1}return -1}(t,c-1))){l(a,y(v.trim(t.slice(r,c)))),a=!1,r=c+1;continue}}}else{if(-1===(f=t.indexOf(u,c+1)))break;l(a,v.trim(t.slice(o+1,f))),a=!1,r=(c=f)+1}}else a=t.slice(r,c),r=c+1,o='"'===t.charAt(r)||"'"===t.charAt(r)?r:function(t,e){for(;et.charCodeAt(r)?" ":t.charAt(r);return v.trim(e)}(t=(t=(t=t.replace(s,'"')).replace(a,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})).replace(l,":").replace(c," "))}(r),"href"===e||"src"===e){if("#"===(r=v.trim(r)))return"#";if("http://"!==r.substr(0,7)&&"https://"!==r.substr(0,8)&&"mailto:"!==r.substr(0,7)&&"tel:"!==r.substr(0,4)&&"data:image/"!==r.substr(0,11)&&"ftp://"!==r.substr(0,6)&&"./"!==r.substr(0,2)&&"../"!==r.substr(0,3)&&"#"!==r[0]&&"/"!==r[0])return""}else if("background"===e){if(u.lastIndex=0,u.test(r))return""}else if("style"===e&&(h.lastIndex=0,h.test(r)||(f.lastIndex=0,f.test(r)&&(u.lastIndex=0,u.test(r)))))return"";return r=function(t){return t=p(t=t.replace(d,"""))}(r)}var O=function(t){return"string"==typeof t?t.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},C=function(){function t(t){var e=function(t){var e={};for(var r in t)e[r]=t[r];return e}(t||{});e.stripIgnoreTag&&(e.onIgnoreTag,e.onIgnoreTag=function(){return""}),e.whiteList={},e.onTag=function(){},e.onTagAttr=function(){},e.onIgnoreTag=function(){},e.onIgnoreTagAttr=function(){},e.safeAttrValue=w,e.escapeHtml=p,this.options=Object.assign(e,t)}return t.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e,r,n,o,i,a,s=this.options,l=s.whiteList,c=s.onTag,u=s.onIgnoreTag,f=s.onTagAttr,h=s.onIgnoreTagAttr,d=s.safeAttrValue,p=s.escapeHtml;s.stripBlankChar&&(t=(e=(e=t.split("")).filter(function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)})).join("")),s.allowCommentTag||(t=function(t){for(var e="",r=0;r");var s=function(t){var e=v.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var r="/"===(t=v.trim(t.slice(e+1,-1)))[t.length-1];return r&&(t=v.trim(t.slice(0,-1))),{html:t,closing:r}}(n),g=l[r],y=E(s.html,function(t,e){var n=-1!==v.indexOf(g,t),o=f(r,t,e,n);return null==o?n?(e=d(r,t,e,null))?"".concat(t,'="').concat(e,'"'):t:null==(o=h(r,t,e,n))?void 0:o:o});return n="<".concat(r),y&&(n+=" ".concat(y)),s.closing&&(n+=" /"),n+=">"}return null==(a=u(r,n,i))?p(n):a},p);return g&&(y=g.remove(y)),y},t}(),S=Function("\nvar _checkXSS = function (it) {\n return it && it.Math == Math && it;\n};\nreturn _checkXSS(typeof globalThis === 'object' && globalThis) ||\n_checkXSS(typeof window === 'object' && window) ||\n_checkXSS(typeof self === 'object' && self) ||\n_checkXSS(typeof global === 'object' && global) ||\nFunction('return this')();\n")(),A=new(function(){function t(){var t=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var e,r,n="douyin_web";if(!v.includes(n,"bid"))return n;if(t.config&&t.config.bid)return t.config.bid;if(S&&S._xssBid)return S._xssBid;if(S&&S.slardar&&"function"==typeof S.slardar.config){var o=(S.slardar.config()||{}).bid;if(o)return o}if(S&&S.Slardar&&"function"==typeof S.Slardar.config){var i=(S.Slardar.config()||{}).bid;if(i)return i}return(null===(r=null===(e=null==S?void 0:S.Slardar)||void 0===e?void 0:e._baseParams)||void 0===r?void 0:r.bid)||"argus"},this.getConfigRegion=function(){var e;return v.includes("cn","region")?t.config&&t.config.region?t.config.region:((null===(e=null==S?void 0:S.gfdatav1)||void 0===e?void 0:e.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var e={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[t.getConfigRegion()];if(e)return e+t.getSlardarBid()}}return t.prototype.setConfig=function(t){this.config=t},t.prototype.upload=function(){var t=this,e=this.gerReportUrl();!this.lock&&e&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var r=t.batchData.slice(0,100);t.batchData=t.batchData.slice(100),S.fetch(e,{method:"post",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).catch(function(t){}),t.lock=!1,t.upload()},this.timeout))},t.prototype.generateKey=function(t){return t.collectKey?[t.collectMode,t.collectKey].join("___"):""},t.prototype.push=function(t){this.batchData.push(t),this.upload()},t.prototype.report=function(t){var e=this.generateKey(t);if(S.fetch&&t.collectKey){var r="object"==typeof window?window.location.href:"SSR";t.documentUrl=r;var n={age:Math.floor(Date.now()),type:"xss",url:r,body:t,"user-agent":""};"enforce"===t.disposition&&"SSR"!==r||(n.url=e),"SSR"===r&&(n.url="SSR___".concat(n.url),n.body.ssr=!0),this.push(n)}},t}()),T=function(t){for(var e=0,r=function(r){Array.isArray(t[r])?0===t[r].length?delete t[r]:(t[r]=v.from(v.uniq(t[r])),e+=t[r].length):0===v.keys(t[r]).length?delete t[r]:v.keys(t[r]).forEach(function(n){t[r][n]=v.from(v.uniq(t[r][n])),e+=t[r][n].length})},n=0,o=v.keys(t);n0)return e&&e("javascript:"),!1;if(/^javascript:/i.test(t)){var o=t.slice(11).replace(/\s/g,"").trim();return!!v.some(["void","void(0)","void0","false","undefined",";"],function(t){return t===o})||(e&&e("javascript:"),!1)}return!0}var L=function(t,e){var r,n,o="<%= isSaveValidUrl =>";if("string"!=typeof t||(n=Number("<%= urlLimit =>"),void 0!==r&&(n=r),"NaN"!==t.toString()&&-1!==n&&t.length>=n)||N(t,e))return t;try{if(!0===(o=JSON.parse(o))||"true"===o){var i=new URL(t);return i.origin+i.pathname}}catch(t){}return"#"};function R(t,e,n){if(void 0===t&&(t=""),void 0===e&&(e=[]),"string"!=typeof t)return!0;if(!N(t=P(t)))return!1;var o,i={url:(o=t.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:o[1],slash:o[2],host:o[3],port:o[4],path:o[5],query:o[6],hash:o[7]},a=i.scheme,s=i.host;return n?!!n(t):!(!a||!s)&&(!v.includes(["http","https","file"],a)||("object"==typeof window&&window&&(e=r(r([],e,!0),[location.host],!1)),v.some(e,function(t){return!!(t instanceof RegExp&&t.test(s))||t===s})))}var I={a:["target","title","spellcheck","rel"],canvas:[],abbr:["title"],address:[],area:["shape","coords","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:["dir"],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["alt","title","width","height","decoding"],ins:["datetime"],li:[],mark:[],nav:[],ol:["start"],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],delete:[],form:[],strong:[],mask:["maskunits","x","y","width","height","fill"],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],wbr:[],video:["autoplay","controls","loop","preload","height","width"],svg:["viewBox","version","xmlns","fill","width","height","stroke","stroke-width","style"],path:["d","fill","opacity","stroke","p-id","fill-rule","clip-rule","stroke-width","stroke-linecap","stroke-linejoin","fill-opacity","mask"],rect:["x","y","width","height","fill","stroke","rx"],g:[]},k={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var t=T(this.collect),e=t.count,r=t.ret;return this.collect=null,{collectKey:0===e?null:JSON.stringify(r),collectMode:"white"}},onIgnoreTagAttr:function(t,e,n){return t&&v.indexOf(["href","src"],e)>-1?k.domainWhiteList&&Array.isArray(k.domainWhiteList)&&k.domainWhiteList.length>0&&!R(n,r([],k.domainWhiteList,!0))?"":"".concat(e,'="').concat(L(n,function(t){var e;null===(e=k.collect)||void 0===e||e.filterProtocol.push(t)}),'"'):t&&(v.indexOf(["style","class","id"],e)>-1||e.indexOf("data-")>-1)?"".concat(e,'="').concat(n,'"'):(k.collect.whiteList[t]=k.collect.whiteList[t]||[],void k.collect.whiteList[t].push(e))},onIgnoreTag:function(t,e){if("style"===t)return e;_(e,function(t,e,r,n){E(j(n).html.replace("/",""),function(t){k.collect.whiteList[r]=k.collect.whiteList[r]||[],k.collect.whiteList[r].push(t)})},p)},whiteList:I,mergeWhiteList:function(t){for(var e,r={},n=0,o=v.keys(I);n");var i=j(n),a=E(i.html,function(t,e){var n,o=0;if(U.blackList[r]&&v.includes(U.blackList[r],t)&&($.collect.blackList[r]=$.collect.blackList[r]||[],$.collect.blackList[r].push(t),o++),U.blackAttrRegExps.length&&U.blackAttrRegExps.some(function(e){return e.test(t)})&&v.forEach(U.blackAttrRegExps,function(e){e.test(t)&&($.collect.blackAttrRegExps.push("".concat(e.toString(),"->").concat(t)),o++)}),U.blackAttrs.length&&v.includes(U.blackAttrs,t)&&(U.blackAttrs.push(t),o++),!o){if(U.filterList&&U.filterList[r]&&v.includes(U.filterList[r],t)){var i=L(e,function(t){var e;null===(e=$.collect)||void 0===e||e.filterProtocol.push(t)});return i!==e&&($.collect.filterList[r]=$.collect.filterList[r]||[],$.collect.filterList[r].push(t)),e?"".concat(t,"='").concat(i,"'"):t}return U.filterAttrs&&v.includes(U.filterAttrs,t)?((i=L(e,function(t){var e;null===(e=$.collect)||void 0===e||e.filterProtocol.push(t)}))!==e&&(null===(n=$.collect)||void 0===n||n.filterAttrs.push(t)),e?"".concat(t,"='").concat(i,"'"):t):e?"".concat(t,"='").concat(e,"'"):t}});return n="<".concat(r),a&&(n+=" ".concat(a)),i.closing&&(n+=" /"),n+=">"},p);null===(r=$.collect)||void 0===r||r.blackTags.push(t)}},K=function(t){var e=t.reportOnly,r=void 0===e||e,n=t.block;return r&&"all"===r?"report":("string"==typeof r&&("true"===r&&(r=!0),"false"===r&&(r=!1)),n?"enforce":r?"report":"enforce")},Y=function(t){return function(r,n,o){if(!r||"string"!=typeof r)return r;var i=n;t===x&&(i=k).initCollect();var a=t(r,i);if(O(a)===O(r))return r;if(!o)return a;var s=o.logType,l=K(o),c=i.removeCollect();return A.report(e(e({type:s,disposition:l},c),{sourceText:m(r),filterText:m(a)})),"enforce"===l?a:r}},B=Y(function(t,e){return void 0===e&&(e={}),e&&e.whiteList||(e.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}),new C(e).process(t)}),H=Y(x),z=function(t,e,r){var n=[],o=L(t,function(t){n.push(t)});if(o===t)return t;n=v.from(v.uniq(n));var i=e||r||{};if(!i)return o;var a=i.logType,s=K(r);return A.report({type:a,disposition:s,collectKey:n.join("___"),collectData:JSON.stringify(n),collectMode:"black",sourceText:m(t),filterText:m(o)}),"enforce"===s?o:t},X=S._xssProject||{},G=S.xssNamespace||{},V="3.0.26",J={FilterXSS:C,version:V,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:B,_filterXSS:H,filterUrl:z,Config:k,BlackConfig:$,project:X,setProjectName:function(t){X[t]=this,S._xssProjectName=t}};G.douyin_web=J,S.xssNamespace=G,S.Math&&!S.Math.xssNamespace&&(S.Math.xssNamespace=G),X[V]=J,S.globalThis=S,S.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:J},S.xss=J,S.isSafeUrl=R,S.isSafeDomain=R,S.isSafeProtocol=N,S._xssProject=X,S._xssProjectName&&(X[S._xssProjectName]=J);var q=J.setProjectName.bind(J);t.BlackConfig=$,t.Config=k,t.FilterXSS=C,t._filterXSS=H,t.filterUrl=z,t.filterXSS=B,t.isSafeDomain=R,t.isSafeProtocol=N,t.isSafeUrl=R,t.project=X,t.setProjectName=q,t.setXssNamespace=function(t){var e=t.appId,r=t.bid,n=t.region;G[e]=J;k.bid=r,k.region=n,k.enabled=!0},t.xssNamespace=G,Object.defineProperty(t,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["80955"],{289516:function(t,e,r){"use strict";var n=r(101199),o=r(994298);let i=(0,o.A)(function(t){return n.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},t),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12c0-.83.67-1.5 1.5-1.5h15.38l-6.44-6.44a1.5 1.5 0 0 1 2.12-2.12l9 9a1.5 1.5 0 0 1 0 2.12l-9 9a1.5 1.5 0 0 1-2.12-2.12l6.44-6.44H2.5A1.5 1.5 0 0 1 1 12Z",fill:"currentColor"}))},"arrow_right");e.Z=i},564469:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hashCanvasValue=void 0;let n=r(602767);e.hashCanvasValue=function(t){if(!(null==t?void 0:t.geometry)||!(null==t?void 0:t.text))return t;let e=(0,n.x64Hash128)(t.geometry),r=(0,n.x64Hash128)(t.text);return Object.assign(Object.assign({},t),{text:r,geometry:e})}},232910:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(870108),o=r(144256);function i(t,e){(0,o.Z)(2,arguments);var r=(0,n.Z)(t),i=(0,n.Z)(e);return r.getTime()===i.getTime()}},781954:function(t,e,r){"use strict";var n=r(37976);function o(t,e,r){var o="eeee p";return(0,n.Z)(t,e,r)?o:t.getTime()>e.getTime()?"'下个'"+o:"'上个'"+o}var i={lastWeek:o,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:o,other:"PP p"};e.Z=function(t,e,r,n){var o=i[t];return"function"==typeof o?o(e,r,n):o}},279026:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(726588),o=r(144256);function i(t){(0,o.Z)(1,arguments);var e=(0,n.Z)(t);return e.setMilliseconds(0),e}},273460:function(t){var e,r;e=0,r=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var a=o.prototype;i.utc=function(t){var e={date:t,utc:!0,args:arguments};return new o(e)},a.utc=function(e){var r=i(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var l=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(n,o){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&null===(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(n)))return this;var a=16>=Math.abs(n)?60*n:n,s=this;if(o)return s.$offset=a,s.$u=0===n,s;if(0!==n){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,t)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=a.diff;a.diff=function(t,e,r){if(t&&this.$u===t.$u)return h.call(this,t,e,r);var n=this.local(),o=i(t).local();return h.call(n,o,e,r)}}},t.exports=r()},666599:function(t,e,r){"use strict";var n=r(634233),o={function:!0,object:!0};t.exports=function(t){return n(t)&&o[typeof t]||!1}},358506:function(t,e,r){"use strict";var n,o,i,a,s,l,c,u=r(802532),f=r(497346),h=Function.prototype.apply,d=Function.prototype.call,p=Object.create,v=Object.defineProperty,g=Object.defineProperties,y=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};n=function(t,e){var r;return f(e),y.call(this,"__ee__")?r=this.__ee__:(r=m.value=p(null),v(this,"__ee__",m),m.value=null),r[t]?"object"==typeof r[t]?r[t].push(e):r[t]=[r[t],e]:r[t]=e,this},o=function(t,e){var r,o;return f(e),o=this,n.call(this,t,r=function(){i.call(o,t,r),h.call(e,this,arguments)}),r.__eeOnceListener__=e,this},s={on:n,once:o,off:i=function(t,e){var r,n,o,i;if(f(e),!y.call(this,"__ee__")||!(r=this.__ee__)[t])return this;if("object"==typeof(n=r[t]))for(i=0;o=n[i];++i)(o===e||o.__eeOnceListener__===e)&&(2===n.length?r[t]=n[i?0:1]:n.splice(i,1));else(n===e||n.__eeOnceListener__===e)&&delete r[t];return this},emit:a=function(t){var e,r,n,o,i;if(!!y.call(this,"__ee__")){if(o=this.__ee__[t]){if("object"==typeof o){for(e=1,r=arguments.length,i=Array(r-1);e="0"&&s<="9";)o+=s,h();if("."===s)for(o+=".";h()&&s>="0"&&s<="9";)o+=s;if("e"===s||"E"===s)for(o+=s,h(),("-"===s||"+"===s)&&(o+=s,h());s>="0"&&s<="9";)o+=s,h();if(isFinite(t=+o))return(null==n&&(n=r(870127)),o.length>15)?e.storeAsString?o:e.useNativeBigInt?BigInt(o):new n(o):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(t):new n(t):t;f("Bad number")},p=function(){var t,e,r,n="";if('"'===s){for(var o=a;h();){if('"'===s)return a-1>o&&(n+=l.substring(o,a-1)),h(),n;if("\\"===s){if(a-1>o&&(n+=l.substring(o,a-1)),h(),"u"===s){for(e=0,r=0;e<4&&isFinite(t=parseInt(h(),16));e+=1){;r=16*r+t}n+=String.fromCharCode(r)}else if("string"==typeof u[s])n+=u[s];else break;o=a}}}f("Bad string")},v=function(){for(;s&&s<=" ";)h()},g=function(){switch(s){case"t":return h("t"),h("r"),h("u"),h("e"),!0;case"f":return h("f"),h("a"),h("l"),h("s"),h("e"),!1;case"n":return h("n"),h("u"),h("l"),h("l"),null}f("Unexpected '"+s+"'")},y=function(){var t=[];if("["===s){if(h("["),v(),"]"===s)return h("]"),t;for(;s;){if(t.push(c()),v(),"]"===s)return h("]"),t;h(","),v()}}f("Bad array")},m=function(){var t,r=Object.create(null);if("{"===s){if(h("{"),v(),"}"===s)return h("}"),r;for(;s;){if(t=p(),v(),h(":"),!0===e.strict&&Object.hasOwnProperty.call(r,t)&&f('Duplicate key "'+t+'"'),!0===o.test(t)?"error"===e.protoAction?f("Object contains forbidden prototype property"):"ignore"===e.protoAction?c():r[t]=c():!0===i.test(t)?"error"===e.constructorAction?f("Object contains forbidden constructor property"):"ignore"===e.constructorAction?c():r[t]=c():r[t]=c(),v(),"}"===s)return h("}"),r;h(","),v()}}f("Bad object")};return c=function(){switch(v(),s){case"{":return m();case"[":return y();case'"':return p();case"-":return d();default:return s>="0"&&s<="9"?d():g()}},function(t,e){var r;return l=t+"",a=0,s=" ",r=c(),v(),s&&f("Syntax error"),"function"==typeof e?function t(r,n){var o,i=r[n];return i&&"object"==typeof i&&Object.keys(i).forEach(function(e){void 0!==(o=t(i,e))?i[e]=o:delete i[e]}),e.call(r,n,i)}({"":r},""):r}}},195195:function(t,e,r){t=r.nmd(t);var n,o,i,a,s="__lodash_hash_undefined__",l="[object Arguments]",c="[object Array]",u="[object Boolean]",f="[object Date]",h="[object Error]",d="[object Function]",p="[object Map]",v="[object Number]",g="[object Object]",y="[object Promise]",m="[object RegExp]",b="[object Set]",_="[object String]",E="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",C=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[l]=A[c]=A[w]=A[u]=A[O]=A[f]=A[h]=A[d]=A[p]=A[v]=A[g]=A[m]=A[b]=A[_]=A[E]=!1;var T="object"==typeof window&&window&&window.Object===Object&&window,x="object"==typeof self&&self&&self.Object===Object&&self,j=T||x||Function("return this")(),P=e&&!e.nodeType&&e,N=P&&t&&!t.nodeType&&t,L=N&&N.exports===P,R=L&&T.process,I=function(){try{return R&&R.binding&&R.binding("util")}catch(t){}}(),k=I&&I.isTypedArray;function M(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function D(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var Z=Array.prototype,U=Function.prototype,F=Object.prototype,W=j["__core-js_shared__"],$=U.toString,K=F.hasOwnProperty;var Y=(n=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",B=F.toString,H=RegExp("^"+$.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=L?j.Buffer:void 0,X=j.Symbol,G=j.Uint8Array,V=F.propertyIsEnumerable,J=Z.splice,q=X?X.toStringTag:void 0;var Q=Object.getOwnPropertySymbols,tt=z?z.isBuffer:void 0,te=(o=Object.keys,i=Object,function(t){return o(i(t))}),tr=tA(j,"DataView"),tn=tA(j,"Map"),to=tA(j,"Promise"),ti=tA(j,"Set"),ta=tA(j,"WeakMap"),ts=tA(Object,"create"),tl=tj(tr),tc=tj(tn),tu=tj(to),tf=tj(ti),th=tj(ta),td=X?X.prototype:void 0,tp=td?td.valueOf:void 0;function tv(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1},tg.prototype.set=function(t,e){var r=this.__data__,n=t_(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function tm(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ty;++es))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var u=-1,f=!0,h=2&r?new tm:void 0;for(i.set(t,e),i.set(e,t);++u-1&&t%1==0&&t<=9007199254740991}function tM(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tD(t){return null!=t&&"object"==typeof t}var tZ=k?(a=k,function(t){return a(t)}):function(t){return tD(t)&&tk(t.length)&&!!A[tE(t)]};function tU(t){var e;return null!=(e=t)&&tk(e.length)&&!tI(e)?function(t,e){var r=tL(t),n=!r&&tN(t),o=!r&&!n&&tR(t),i=!r&&!n&&!o&&tZ(t),a=r||n||o||i,s=a?function(t,e){for(var r=-1,n=Array(t);++r-1&&t%1==0&&t=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}function i(t,e,r,n,o,i,a){try{var s=t[i](a),l=s.value}catch(t){r(t);return}s.done?e(l):Promise.resolve(l).then(n,o)}r.d(e,{T:function(){return u}});function a(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{!a&&null!=r.return&&r.return()}finally{if(s)throw i}}}}(document.styleSheets);try{for(s.s();!(a=s.n()).done;)!function(){var t=a.value;try{var r=Array.from(t.cssRules);r.length>0&&n.push(r.map(function(t){return t.cssText}).join(""))}catch(r){if(t.href){var s=document.createElement("link");s.rel="stylesheet",s.type=t.type||"text/css",s.media=t.media.mediaText||"all",s.href=t.href,s.onload=function(){i--,0===i&&e()},s.onerror=function(){i--,0===i&&e()},o.push(s),i++}}}()}catch(t){s.e(t)}finally{s.f()}if(o.forEach(function(t){return r.appendChild(t)}),n.length>0){var l=document.createElement("style");l.textContent=n.join("\n"),r.appendChild(l)}t.document.head.appendChild(r),0===i&&e()})}(e);case 7:h=document.createElement("style"),d=["body{padding:0; margin:0;}"],i?(p="","string"==typeof i?p=i:"function"==typeof i&&(p=i.call(a)),p&&d.push(p)):s===(null==f?void 0:f.root)&&d.push(".xgplayer{width: 100%!important; height: 100%!important;}"),h.textContent=d.join("\n"),e.document.head.append(h),n.attachPlayer(f,{element:s,window:e,onEnter:l,onLeave:u}),null==l||l({documentPictureInPictureWindow:e});case 14:case"end":return t.stop()}},t)}),function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function s(t){i(a,n,o,s,l,"next",t)}function l(t){i(a,n,o,s,l,"throw",t)}s(void 0)})}),function(t){return r.apply(this,arguments)})),h}},{key:"exit",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null===(t=this.window)||void 0===t||t.close(),e&&this._onLeave()}},{key:"attachEl",value:function(t){if(!!t&&!!this.window){var e=t.parentElement,r=t.nextSibling;this.window.document.body.append(t),this.currentElement_={element:t,parentNode:e,nextSibling:r}}}},{key:"detachEl",value:function(t){var e,r=this;if(!!this.currentElement_&&(!t||t===(null===(e=this.currentElement_)||void 0===e?void 0:e.element))){var n=this.currentElement_,o=n.element,i=n.parentNode,a=n.nextSibling;return i&&(i.isConnected?i.insertBefore(o,a):o.remove?o.remove():o.parentNode.removeChild(o)),Object.keys(this.currentElement_).forEach(function(t){r.currentElement_[t]=null}),this.currentElement_=null,o}}},{key:"attachPlayer",value:function(t,e){var r,n=e.element,o=e.window,i=e.onEnter,a=e.onLeave;if(!this.window||o===this.window)o&&(this.window=o),this.currentOptions_&&(i&&(this.currentOptions_.onEnter=i),a&&(this.currentOptions_.onLeave=a),t&&(this.currentOptions_.player=t)),n&&n!==(null===(r=this.currentElement_)||void 0===r?void 0:r.element)&&(this.detachEl(),this.attachEl(n))}},{key:"detachPlayer",value:function(t){if(!!t){(null===(e=this.currentOptions_)||void 0===e?void 0:e.player)===t&&(this.currentOptions_.player=null);var e,r,n=null===(r=this.currentElement_)||void 0===r?void 0:r.element;n&&(n===t.root||n.contains(t.root))&&this.detachEl()}}}],a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}())},343032:function(t,e,r){"use strict";r.r(e)},787831:function(t,e,r){"use strict";r.r(e)},275408:function(t,e,r){"use strict";r.r(e)},261890:function(t,e,r){"use strict";r.d(e,{_:function(){return n}});let n=r(101199).createContext({})},402964:function(t,e,r){"use strict";r(932651),r(968336),r(76375);var n=r(101199),o=r(793545),i=r(426337),a=r(969527),s=r(892639),l=r(131995),c=r(434763),u=r(469935),f=r.n(u);r(564873);var h=r(431380),d=r(619050),p=r(829840);class v extends i.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyChange:t=>{var e,r;null===(r=(e=this.props).onChange)||void 0===r||r.call(e,t)}})}renderPicker(){var t,e,r,o,i;let{className:u}=this.props,d=f()(`${h.U.PREFIX}`,u),p=this.foundation.getCurrentColor();return n.createElement("div",{className:d},this.props.topSlot,n.createElement(a.Z,{hsva:p.hsva,foundation:this.foundation,onChange:t=>{let{s:e,v:r}=t;this.foundation.handleChange({s:e,v:r,a:p.hsva.a,h:p.hsva.h},"hsva")},handleSize:20,width:null!==(t=this.props.width)&&void 0!==t?t:280,height:null!==(e=this.props.height)&&void 0!==e?e:280}),n.createElement(l.Z,{width:null!==(r=this.props.width)&&void 0!==r?r:280,height:10,handleSize:18,hue:p.hsva.h,className:"colorSliderWrapper",foundation:this.foundation}),this.props.alpha&&n.createElement(s.Z,{width:null!==(o=this.props.width)&&void 0!==o?o:280,height:10,handleSize:18,hsva:p.hsva,className:"alphaSliderWrapper",foundation:this.foundation}),n.createElement(c.Z,{currentColor:p,eyeDropper:this.props.eyeDropper,alpha:this.props.alpha,width:null!==(i=this.props.width)&&void 0!==i?i:280,foundation:this.foundation,defaultFormat:this.props.defaultFormat}),this.props.bottomSlot)}render(){var t,e;let r=this.foundation.getCurrentColor();return this.props.usePopover?n.createElement(d.Z,Object.assign({},this.props.popoverProps,{className:f()(`${h.U.PREFIX}-popover`,null===(t=this.props.popoverProps)||void 0===t?void 0:t.className),content:this.renderPicker()}),null!==(e=this.props.children)&&void 0!==e?e:n.createElement("div",{style:{backgroundColor:r.hex},className:f()(`${h.U.PREFIX}-popover-defaultChildren`)})):this.renderPicker()}constructor(t){var e;super(t),this.foundation=new o.Z(this.adapter);let r=null!==(e=t.value)&&void 0!==e?e:t.defaultValue;this.state={currentColor:r}}}v.__SemiComponentName__="ColorPicker",v.defaultProps={defaultValue:{hsva:{h:176,s:71,v:77,a:1},rgba:{r:57,g:197,b:187,a:1},hex:"#39c5bb"},eyeDropper:!0,defaultFormat:"hex"},v.colorStringToValue=t=>{if(t.startsWith("#"))return{hsva:(0,p.HW)(t),rgba:(0,p.a7)(t),hex:t};if(t.startsWith("rgba")){let e=(0,p.fT)(t);return{hsva:(0,p.QU)(t),rgba:e,hex:(0,p.s)(e)}}if(t.startsWith("rgb")){let e=(0,p.aD)(t);return{hsva:(0,p.LR)(t),rgba:e,hex:(0,p.s)(e)}}else if(t.startsWith("hsv")){let e=(0,p.Ev)(t),r=(0,p.MA)(e),n=(0,p.A)(e);return{hsva:e,rgba:r,hex:n}}else throw Error("Semi ColorPicker: error on static colorStringToValue method, input value is invalid: "+t)},e.Z=v},913584:function(t,e,r){"use strict";r(932651);var n=r(876553),o=r.n(n),i=r(877866),a=r.n(i),s=r(795233),l=r.n(s),c=r(101199),u=r(622689),f=r.n(u),h=r(800658),d=r(426337),p=r(731510),v=r(848667),g=r(395664),y=r(148574),m=r(158871),b=r(151943),_=r(707852),E=r(708863),w=r(994625),O=r(78430),C=r(109242);let S=`${_.T}-datepicker`;class A extends d.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(t,e)=>this.setState({currentYear:t},e),setCurrentMonth:t=>this.setState({currentMonth:t}),setCurrentYearAndMonth:(t,e)=>this.setState({currentYear:t,currentMonth:e}),notifySelectYear:t=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:t}),notifySelectMonth:t=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:t}),notifySelectYearAndMonth:(t,e)=>this.props.onSelect({currentYear:t,currentMonth:e}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(t,e){let r={},{year:n,month:i}=(0,g.Z)(t.currentYear,t.currentMonth);return!o()(t.currentYear,e.currentYear)&&(r.currentYear=n),!o()(t.currentMonth,e.currentMonth)&&(r.currentMonth=i),r}renderColYear(t){let{years:e,currentYear:r,currentMonth:n,months:o}=this.state,{disabledDate:i,localeCode:a,yearCycled:s,yearAndMonthOpts:l}=this.props,u=(0,E.Z)(Date.now(),n[t]-1),f=C.j2.PANEL_TYPE_LEFT,h=C.j2.PANEL_TYPE_RIGHT,d=e=>t===h&&!!r[f]&&r[f]>e,p=e.map(t=>{let{value:e,year:r}=t,n=o.every(t=>{let{month:e}=t;return i((0,w.Z)(u,{year:r,month:e-1}))}),a=d(r);return{year:r,value:e,disabled:n||a}}),g=t=>t;return("zh-CN"===a||"zh-TW"===a)&&(g=t=>`${t}年`),c.createElement(v.Z,Object.assign({ref:this.yearRef,cycled:s,list:p,transform:g,selectedIndex:e.findIndex(e=>e.value===r[t]),type:"year",onSelect:e=>this.selectYear(e,t),mode:"normal"},l))}renderColMonth(t){let{months:e,currentMonth:r,currentYear:n}=this.state,{locale:o,localeCode:i,monthCycled:a,disabledDate:s,yearAndMonthOpts:l}=this.props,u=t=>t,f=(0,O.Z)(Date.now(),n[t]),h=C.j2.PANEL_TYPE_LEFT,d=C.j2.PANEL_TYPE_RIGHT;("zh-CN"===i||"zh-TW"===i)&&(u=t=>`${t}月`);let p=e.map(e=>{let{value:i,month:a}=e,l=t===d&&r[h]&&n[h]===n[d]&&r[h]>a;return{month:a,disabled:s((0,E.Z)(f,a-1))||l,value:o.fullMonths[i]}}),g=p.findIndex(e=>e.month===r[t]);return c.createElement(v.Z,Object.assign({ref:this.monthRef,cycled:a,list:p,transform:u,selectedIndex:g,type:"month",onSelect:e=>this.selectMonth(e,t),mode:"normal"},l))}renderPanel(t){return c.createElement(c.Fragment,null,c.createElement(p.Z,null,this.renderColYear(t),this.renderColMonth(t)))}render(){let{locale:t,noBackBtn:e,density:r,presetPosition:n,renderQuickControls:o,renderDateInput:i,type:a}=this.props,s=`${S}-yearmonth-header`,l=`${S}-yearmonth-body`,u=t.selectDate,f=C.j2.PANEL_TYPE_LEFT,h=C.j2.PANEL_TYPE_RIGHT,d=null;return d="month"===a?this.renderPanel(f):c.createElement("div",{className:l},this.renderPanel(f),this.renderPanel(h)),c.createElement(c.Fragment,null,e?null:c.createElement("div",{className:s},c.createElement(m.Z,{noHorizontalPadding:!1,icon:c.createElement(b.Z,{"aria-hidden":!0,size:"compact"===r?"default":"large"}),size:"compact"===r?"small":"default",onClick:this.backToMain},c.createElement("span",null,u))),n?c.createElement("div",{style:{display:"flex"}},"left"===n&&"monthRange"!==a&&o,c.createElement("div",null,i,d),"right"===n&&"monthRange"!==a&&o):c.createElement(c.Fragment,null,i,d))}constructor(t){super(t),this.selectYear=(t,e)=>{this.foundation.selectYear(t,e)},this.selectMonth=(t,e)=>{this.foundation.selectMonth(t,e)},this.reselect=()=>{["yearRef","monthRef"].forEach(t=>{let e=this[t];e&&e.current&&e.current.scrollToIndex&&e.current.scrollToIndex()})},this.backToMain=t=>{t.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};let{currentYear:e,currentMonth:r}=t,{year:n,month:o}=(0,g.Z)(e,r);this.state={years:(0,y.Z)(t.startYear,t.endYear).map(t=>({value:t,year:t})),months:Array(12).fill(0).map((t,e)=>({value:e+1,month:e+1})),currentYear:n,currentMonth:o},this.yearRef=c.createRef(),this.monthRef=c.createRef(),this.foundation=new h.Z(this.adapter)}}A.propTypes={currentYear:f().object,currentMonth:f().object,onSelect:f().func,locale:f().object,localeCode:f().string,monthCycled:f().bool,yearCycled:f().bool,noBackBtn:f().bool,disabledDate:f().func,density:f().string,presetPosition:f().oneOf(C.j2.PRESET_POSITION_SET),renderQuickControls:f().node,renderDateInput:f().node,type:f().oneOf(C.j2.TYPE_SET),startYear:f().number,endYear:f().number},A.defaultProps={disabledDate:a(),monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:l(),type:"month"},e.Z=A},579683:function(t,e,r){"use strict";var n=r(101199),o=r(492839);e.Z=function(){return(0,n.useContext)(o.f5)}},320530:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(101199),o=r(492839);function i(){return(0,n.useContext)(o.mC)}},505699:function(t,e,r){"use strict";r(490629),r(932651);var n=r(101199),o=r(469935),i=r.n(o),a=r(622689),s=r.n(a),l=r(588799),c=r(791436);r(68823);let u=l.U.PREFIX;class f extends n.PureComponent{render(){let{searchWords:t,sourceString:e,component:r,highlightClassName:n,highlightStyle:o,caseSensitive:a,autoEscape:s}=this.props,l=i()({[`${u}-tag`]:!0},n);return this.getHighLightTextHTML({sourceString:e,searchWords:t,option:{highlightTag:r,highlightClassName:l,highlightStyle:o,caseSensitive:a,autoEscape:s}})}constructor(){super(...arguments),this.getHighLightTextHTML=t=>{let{sourceString:e="",searchWords:r=[],option:o={autoEscape:!0,caseSensitive:!1}}=t,i=new c.Z().findAll(Object.assign({sourceString:e,searchWords:r},o)),a=o.highlightTag||"mark",s=o.highlightClassName||"",l=o.highlightStyle||{};return i.map((t,r)=>{let{end:o,start:i,highlight:c,style:u,className:f}=t,h=e.substr(i,o-i);return c?n.createElement(a,{style:Object.assign(Object.assign({},l),u),className:`${s} ${f||""}`.trim(),key:h+r},h):h})}}}f.propTypes={style:s().object,className:s().string,autoEscape:s().bool,caseSensitive:s().bool,sourceString:s().string,searchWords:s().arrayOf(s().string),highlightStyle:s().object,highlightClassName:s().string,component:s().string},f.defaultProps={component:"mark",autoEscape:!0,caseSensitive:!1,sourceString:""},e.Z=f},856130:function(t,e,r){"use strict";r(490629),r(932651);var n=r(101199),o=r(750066),i=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oe.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r};e.Z=n.forwardRef((t,e)=>{var{afterClose:r,config:a}=t;i(t,["afterClose","config"]);let[s,l]=n.useState(a);return n.useImperativeHandle(e,()=>({destroy:()=>{l(t=>Object.assign(Object.assign({},t),{visible:!1}))},update:t=>{l(e=>Object.assign(Object.assign({},e),t))}})),n.createElement(o.Z,Object.assign({},s,{afterClose:()=>{var t;null===(t=null==a?void 0:a.afterClose)||void 0===t||t.call(a),r()}}))})},365830:function(t,e,r){"use strict";r(490629),r(932651),r(679308),r(374954);var n=r(876553),o=r.n(n),i=r(198412),a=r.n(i),s=r(795233),l=r.n(s),c=r(426337),u=r(101199),f=r(622689),h=r.n(f),d=r(469935),p=r.n(d),v=r(590608),g=r(318330),y=r(638297),m=r(739697),b=r(231844),_=r(419974),E=r(549644),w=r(209873);r(985650);var O=r(678503),C=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oe.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r};function S(t,e){return function(){let r=new Set(t.state[e]);for(var n=arguments.length,o=Array(n),i=0;it&&r.add(t)),t.setState({[e]:Array.from(r)})}}function A(t,e){return function(){let r=new Set(t.state[e]);for(var n=arguments.length,o=Array(n),i=0;it&&r.delete(t)),t.setState({[e]:Array.from(r)})}}let{hasOwnProperty:T}=Object.prototype;class x extends c.Z{static getDerivedStateFromProps(t,e){let r={};return T.call(t,"isCollapsed")&&t.isCollapsed!==e.isCollapsed&&(r.isCollapsed=t.isCollapsed),r}componentDidMount(){}componentDidUpdate(t){if(t.items!==this.props.items||t.children!==this.props.children)this.foundation.init();else{if(this.foundation.handleItemsChange(!1),this.props.selectedKeys&&!o()(t.selectedKeys,this.props.selectedKeys)){this.adapter.updateSelectedKeys(this.props.selectedKeys);let t=this.foundation.getWillOpenKeys(this.state.itemKeysMap);this.adapter.updateOpenKeys(t)}this.props.openKeys&&!o()(t.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys)}}get adapter(){var t=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return t.props.onSelect(...arguments)},notifyOpenChange:function(){return t.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return t.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:S(this,"selectedKeys"),removeSelectedKeys:A(this,"selectedKeys"),updateSelectedKeys:function(e){let r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=e;if(r){let r=t.foundation.selectLevelZeroParentKeys(null,e);n=Array.from(new Set(e.concat(r)))}t.setState({selectedKeys:n})},updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:S(this,"openKeys"),removeOpenKeys:A(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,{expandIcon:r,subDropdownProps:n}=this.props;return u.createElement(u.Fragment,null,t.map((t,o)=>Array.isArray(t.items)&&t.items.length?u.createElement(y.Z,Object.assign({key:t.itemKey||String(e)+o},t,{level:e,expandIcon:r,subDropdownProps:n}),this.renderItems(t.items,e+1)):u.createElement(m.Z,Object.assign({key:t.itemKey||String(e)+o},t,{level:e}))))}render(){let t=this.props,{children:e,mode:r,onOpenChange:n,onSelect:o,onClick:i,style:s,className:l,subNavCloseDelay:c,subNavOpenDelay:f,subNavMotion:h,tooltipShowDelay:d,tooltipHideDelay:v,prefixCls:g,bodyStyle:y,footer:m,header:O,toggleIconPosition:S,limitIndent:A,renderWrapper:T,getPopupContainer:x}=t,j=C(t,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:P,openKeys:N,items:L,isCollapsed:R}=this.state,{updateOpenKeys:I,addOpenKeys:k,removeOpenKeys:M,updateSelectedKeys:D,addSelectedKeys:Z,removeSelectedKeys:U}=this.adapter,F=Object.assign({},s),W=u.Children.toArray(e),$=[],K=[];if(u.isValidElement(m)?$.push(u.createElement(b.Z,{key:0},m)):m&&"object"==typeof m&&$.push(u.createElement(b.Z,Object.assign({key:0},m))),u.isValidElement(O)?K.push(u.createElement(_.Z,{key:0},O)):O&&"object"==typeof O&&K.push(u.createElement(_.Z,Object.assign({key:0},O))),Array.isArray(W)&&W.length){let t=(W=[...W]).length;for(let e=0;eu.createElement(E.Z.Provider,{value:{subNavCloseDelay:c,subNavOpenDelay:f,subNavMotion:h,tooltipShowDelay:d,tooltipHideDelay:v,openKeys:N,openKeysIsControlled:this.isControlled("openKeys")&&"vertical"===r&&!R,canUpdateOpenKeys:!0,selectedKeys:P,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:R,onCollapseChange:this.onCollapseChange,mode:r,onSelect:o,onOpenChange:n,updateOpenKeys:I,addOpenKeys:k,removeOpenKeys:M,updateSelectedKeys:D,addSelectedKeys:Z,removeSelectedKeys:U,onClick:i,locale:t,prefixCls:g,toggleIconPosition:S,limitIndent:A,renderWrapper:T,getPopupContainer:x}},u.createElement("div",Object.assign({className:Y,style:F},this.getDataAttr(j)),u.createElement("div",{className:`${g}-inner`},u.createElement("div",{className:B},K,u.createElement("div",{style:y,className:`${g}-list-wrapper`},u.createElement("ul",{role:"menu","aria-orientation":r,className:`${g}-list`},this.adapter.getCache("itemElems"),W))),$))))}constructor(t){super(t),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new v.Z(this.adapter),this.itemsChanged=!0;let{isCollapsed:e,defaultIsCollapsed:r,items:n,children:o}=t,i={isCollapsed:!!(this.isControlled("isCollapsed")?e:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},i),n&&n.length||o){let t=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},i),t)}}}x.Sub=y.Z,x.Item=m.Z,x.Header=_.Z,x.Footer=b.Z,x.propTypes={collapseIcon:h().node,defaultOpenKeys:h().arrayOf(h().oneOfType([h().string,h().number])),openKeys:h().arrayOf(h().oneOfType([h().string,h().number])),defaultSelectedKeys:h().arrayOf(h().oneOfType([h().string,h().number])),expandIcon:h().node,selectedKeys:h().arrayOf(h().oneOfType([h().string,h().number])),mode:h().oneOf([...g.j2.MODE]),onSelect:h().func,onClick:h().func,onOpenChange:h().func,items:h().array,isCollapsed:h().bool,defaultIsCollapsed:h().bool,onCollapseChange:h().func,multiple:h().bool,onDeselect:h().func,subNavMotion:h().oneOfType([h().bool,h().object,h().func]),subNavCloseDelay:h().number,subNavOpenDelay:h().number,tooltipShowDelay:h().number,tooltipHideDelay:h().number,children:h().node,style:h().object,bodyStyle:h().object,className:h().string,toggleIconPosition:h().string,prefixCls:h().string,header:h().oneOfType([h().node,h().object]),footer:h().oneOfType([h().node,h().object]),limitIndent:h().bool,getPopupContainer:h().func},x.__SemiComponentName__="Navigation",x.defaultProps=(0,O.GW)(x.__SemiComponentName__,{subNavCloseDelay:g.KT.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:g.KT.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:g.KT.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:g.KT.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:l(),onSelect:l(),onClick:l(),onOpenChange:l(),toggleIconPosition:"right",limitIndent:!0,prefixCls:g.UX.PREFIX,subNavMotion:!0,mode:g.j2.MODE_VERTICAL}),e.Z=x},731510:function(t,e,r){"use strict";r(932651);var n=r(101199),o=r(426337),i=r(83652),a=r(469935),s=r.n(a),l=r(622689),c=r.n(l),u=r(848667),f=r(750240);r(730746);var h=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oe.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r};class d extends o.Z{render(){let t=this.props,{children:e,header:r,footer:o,prefixCls:a,bodyHeight:l,className:c,style:u}=t,f=h(t,["children","header","footer","prefixCls","bodyHeight","className","style"]),d=s()(c,{[a||i.UX.PREFIX]:!0}),p=s()({[`${a||i.UX.PREFIX}-header`]:!0});return n.createElement("div",Object.assign({className:d,style:u},this.getDataAttr(f)),r?n.createElement("div",{className:p},n.createElement("div",{className:`${p}-title`,"x-semi-prop":this.props["x-semi-header-alias"]||"header"},r),n.createElement("div",{className:`${d}-line`})):null,n.createElement("div",{className:`${d}-body`,style:{height:l||""},"x-semi-prop":"children"},e),o?n.createElement("div",{className:`${d}-footer`,"x-semi-prop":this.props["x-semi-footer-alias"]||"footer"},o):null)}constructor(t){super(t),this.foundation=new f.Z(this.adapter)}}d.Item=u.Z,d.propTypes={className:c().string,header:c().node,footer:c().node,children:c().node,bodyHeight:c().oneOfType([c().number,c().string])},e.Z=d},706093:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}}),r(932651);var n=r(198412),o=r.n(n),i=r(101199),a=r(209873),s=r(159460),l=r(230720),c=r(678503);class u extends i.PureComponent{render(){let{type:t}=this.props;return i.createElement(l.Z.Consumer,null,e=>{let{timeZone:r}=e;return i.createElement(a.Z,{componentName:"TimePicker"},(e,n,a)=>i.createElement(s.Z,Object.assign({timeZone:r,placeholder:o()(e,["placeholder",t])},this.props,{locale:e,localeCode:n,dateFnsLocale:a})))})}}u.propTypes=s.Z.propTypes,u.__SemiComponentName__="TimePicker",u.defaultProps=(0,c.GW)(u.__SemiComponentName__,s.Z.defaultProps)},204982:function(t,e,r){"use strict";r.d(e,{AK:function(){return c},I6:function(){return d},UM:function(){return s},WN:function(){return u},nI:function(){return l},wq:function(){return h}}),r(228983),r(759943),r(240148),r(683656),r(14275),r(780582),r(591964);let n=/^#(EXT[^:]*)(?::(.*))?$/,o=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g,i=/^(?:[a-zA-Z0-9+\-.]+:)?\/\//,a=/^((?:[a-zA-Z0-9+\-.]+:)?\/\/[^/?#]*)?([^?#]*\/)?/;function s(t){return t.split(/[\r\n]/).map(t=>t.trim()).filter(Boolean)}function l(t){let e=t.match(n);if(e&&e[1])return[e[1].replace("EXT-X-",""),e[2]]}function c(t){let e={},r=o.exec(t);for(;r;)e[r[1]]=r[2]||r[3],r=o.exec(t);return e}function u(t,e){if(!e||!t||i.test(t))return t;let r=a.exec(e);return r?"/"===t[0]?r[1]+t:r[1]+r[2]+t:t}let f={audio:[/^mp4a/,/^vorbis$/,/^opus$/,/^flac$/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function h(t,e){let r=f[t];if(r&&e&&e.length){for(let t=0;t(t[e.toLowerCase()]=!0,t),e)}(t.CUE||t["X-CUE"],{pre:!1,post:!1,once:!1});return!!t.ID&&!r&&Number.isFinite(t._startDate.getTime())&&(null===n||n>=0)&&("YES"!==t.END_ON_NEXT||!!t.CLASS)&&(!t.CUE||!o.pre&&!o.post||o.pre!==o.post)&&("com.apple.hls.interstitial"!==t.CLASS||"X-ASSET-URI"in t||"X-ASSET-LIST"in t)}},347862:function(t,e,r){"use strict";r.d(e,{Fc:function(){return i},wb:function(){return n}}),r(76375);let n={MANIFEST:"manifest",NETWORK:"network",NETWORK_TIMEOUT:"network_timeout",NETWORK_FORBIDDEN:"network_forbidden",NETWORK_NOTFOUND:"network_notfound",NETWROK_RANGE_NOT_SATISFIABLE:"network_range_not_satisfiable",DEMUX:"demux",REMUX:"remux",MEDIA:"media",DRM:"drm",OTHER:"other",RUNTIME:"runtime",SUB_TYPES:{FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",MSE_CHANGE_TYPE:"MSE_CHANGE_TYPE",OPTION:"OPTION",DASH:"DASH",LICENSE:"LICENSE",CUSTOM_LICENSE:"CUSTOM_LICENSE",MSE_HIJACK:"MSE_HIJACK",EME_HIJACK:"EME_HIJACK",SIDX:"SIDX",NO_CANPLAY_ERROR:"NO_CANPLAY_ERROR",BUFFERBREAK_ERROR:"BUFFERBREAK_ERROR",WAITING_TIMEOUT_ERROR:"WAITING_TIMEOUT_ERROR",MEDIA_ERR_ABORTED:"MEDIA_ERR_ABORTED",MEDIA_ERR_NETWORK:"MEDIA_ERR_NETWORK",MEDIA_ERR_DECODE:"MEDIA_ERR_DECODE",MEDIA_ERR_SRC_NOT_SUPPORTED:"MEDIA_ERR_SRC_NOT_SUPPORTED",MEDIA_ERR_CODEC_NOT_SUPPORTED:"MEDIA_ERR_CODEC_NOT_SUPPORTED",MEDIA_ERR_URL_EMPTY:"MEDIA_ERR_URL_EMPTY"}},o={[n.MANIFEST]:{HLS:1100,DASH:1200},[n.NETWORK]:2100,[n.NETWORK_TIMEOUT]:2101,[n.NETWORK_FORBIDDEN]:2103,[n.NETWORK_NOTFOUND]:2104,[n.NETWROK_RANGE_NOT_SATISFIABLE]:2116,[n.DEMUX]:{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410},[n.REMUX]:{FMP4:4100,MP4:4200},[n.MEDIA]:{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,MSE_CHANGE_TYPE:5205,EME_HIJACK:5301},[n.DRM]:{LICENSE:7100,CUSTOM_LICENSE:7200},[n.OTHER]:8e3,[n.RUNTIME]:{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}};class i extends Error{static create(t,e,r,o,a){return t instanceof i?t:(t instanceof Error&&(r=t,t=""),!t&&(t=n.OTHER),new i(t,e,r,o,a))}static network(t){var e;return new i((null==t?void 0:t.isTimeout)?n.NETWORK_TIMEOUT:n.NETWORK,null,t instanceof Error?t:null,{url:null==t?void 0:t.url,response:null==t?void 0:t.response,httpCode:null==t?void 0:null===(e=t.response)||void 0===e?void 0:e.status})}constructor(t,e,r,i,a){super(a||(null==r?void 0:r.message)),this.errorType=t===n.NETWORK_TIMEOUT?n.NETWORK:t,this.originError=r,this.ext=i,this.errorCode=o[t][e]||o[t],this.errorMessage=this.message,!this.errorCode&&(this.errorType=n.OTHER,this.errorCode=o[this.errorType])}}},629937:function(t,e,r){"use strict";r.d(e,{U:function(){return o}});var n=r(707852);let o={PREFIX:`${n.T}-backtop`}},162361:function(t,e,r){"use strict";r(490629),r(932651);var n=r(856445),o=r(182811);class i extends n.Z{static get checkboxGroupDefaultAdapter(){return{}}init(){let{defaultValue:t,value:e}=this.getProps();void 0!==t&&!Array.isArray(t)&&(0,o.Z)(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),void 0!==e&&!Array.isArray(e)&&(0,o.Z)(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(t){this._adapter.notifyChange(t)}handleChange(t){let e=this.getState("value"),r=[];!Array.isArray(e)&&(r=[e]),r=t.target.checked?[...e,t.target.value]:e.filter((e,r)=>e!==t.target.value),"value"in this.getProps()||this._adapter.updateGroupValue(r),this.notifyChange(r)}getFormatName(){let t=this.getProp("name");return t||"default"}handlePropValueChange(t){Array.isArray(t)?this._adapter.updateGroupValue(t):(void 0===t&&this._adapter.updateGroupValue([]),(0,o.Z)(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}constructor(t){super(Object.assign(Object.assign({},i.checkboxGroupDefaultAdapter),t))}}e.Z=i},417057:function(t,e,r){"use strict";r.d(e,{GN:function(){return o},fQ:function(){return a},zW:function(){return n}}),r(679308),r(706056),r(656562),r(992871),r(490629),r(374954);let n=(t,e)=>{let r=null==t?void 0:t.composedPath();return null==r?void 0:r.slice(0,r.length-4).some(t=>!!t.className&&"string"==typeof t.className&&e.some(e=>t.className.includes(e)))},o=(t,e,r)=>{var n,o,i,a;return n=void 0,o=void 0,i=void 0,a=function*(){try{let n=yield fetch(t);if(n.ok){let t=yield n.blob(),r=URL.createObjectURL(t),o=document.createElement("a");o.href=r,o.download=e,o.click(),URL.revokeObjectURL(r),o.remove()}else r(t)}catch(e){r(t)}},new(i||(i=Promise))(function(t,e){function r(t){try{l(a.next(t))}catch(t){e(t)}}function s(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(r,s)}l((a=a.apply(n,o||[])).next())})},i=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=t.length,o=e.length;return Array(n<=o?n:o).fill(0).forEach((n,o)=>{r.push(e[o]),r.push(t[o])}),n>o?r=r.concat(t.slice(o,n)):n{let o=e-r,a=e+r,s=t.length,l=[],c=[];return r>=Math.floor(s/2)?n?(l=t.concat(t).slice(o+s<0?0:o+s,e+s),c=t.concat(t).slice(e+1,a+1<2*s?a+1:2*s)):(l=t.slice(0,e),c=t.slice(e+1,s)):n?(l=t.concat(t).slice(o+s,e+s),c=t.concat(t).slice(e+1,a+1)):o>=0&&a{if(!t)return[];let r=[];for(let n=0;n""===t?a:[a,t].join("/"))),i&&l.push(...s),l.map(t=>e.startsWith("/")&&""===t?"/":t)}},f:function(){return function t(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return e.forEach((e,i)=>{let a={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(a.relativePath=a.relativePath.slice(o.length));let s=u([o,a.relativePath]),c=n.concat(a);if(e.children&&e.children.length>0&&t(e.children,r,c,s),null!=e.path||!!e.index)r.push({path:l(s),score:function(t,e){let r=t.split("/"),n=r.length;return r.some(h)&&(n+=-2),e&&(n+=2),r.filter(t=>!h(t)).reduce((t,e)=>t+(f.test(e)?3:""===e?1:10),n)}(s,e.index),routesMeta:c})}),r}},g:function(){return p},j:function(){return s}}),r(559561),r(14275),r(759943),r(490629),r(228983),r(968336),r(683656),r(591964),r(374954),r(240148),r(117232);let n=/\/$|\/\?/;function o(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?n.test(t):t.endsWith("/")}function i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(!function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.startsWith("/")}(t)?t:t.slice(1))||"/"}var a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split("://").map(t=>t.replace(/\/{2,}/g,"/")).join("://")},s=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n{var e;return(e=t)&&"/"!==e}))a=a?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return t.endsWith("/")?t:t+"/";if(o(t,!0))return t||"/";let[r,...n]=t.split("?");return r+"/"+(n.length>0?`?${n.join("?")}`:"")}(a)+i(t):t;return a},l=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return(o(t)?t.slice(0,-1):t)||"/";if(!o(t,!0))return t||"/";let[r,...n]=t.split("?");return(r.slice(0,-1)||"/")+(n.length>0?`?${n.join("?")}`:"")};let c=/\//g,u=t=>t.join("/").replace(/\/\/+/g,"/"),f=/^:\w+$/,h=t=>"*"===t;function d(t){return(t.match(c)||[]).length}function p(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return[];let r=new Set([]);for(let n of t){let{route:{path:t}}=n,o=a(i(`${e}/${null!=t?t:""}`));r.add(o),e=o}return Array.from(r=new Set(Array.from(r).map(t=>{let e=t.split("/");return(e=e.map(t=>t.startsWith(":")?t:t.toLowerCase())).join("/")}).sort((t,e)=>d(t)-d(e))))}},44277:function(t,e,r){"use strict";function n(t,e){let r=["start","end","loc","range"],n=-1;for(;++n