/*! For license information please see 24963.8c31627d.js.LICENSE.txt */ !function(e,t){"object"==typeof module&&"object"==typeof module.exports?t():"function"==typeof define&&define.amd?define([],t):(e="undefined"!=typeof globalThis?globalThis:e||self)&&t()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).xss={})}(this,function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n/g,o=/&#([a-zA-Z0-9]*);?/gim,l=/"/g,s=/:?/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,d=/u\s*r\s*l\s*\(.*/gi,p=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,h=/"/g,f=function(e){return e.replace(i,"<").replace(a,">")},g={indexOf:function(e,t){var n,r;for(n=0,r=e.length;n127&&r<2048?t+=String.fromCharCode(r>>6|192)+String.fromCharCode(63&r|128):t+=String.fromCharCode(r>>12|224)+String.fromCharCode(r>>6&63|128)+String.fromCharCode(63&r|128)}return t}(e);u>2,a=(3&t)<<4|(n=e.charCodeAt(u++))>>4,o=(15&n)<<2|(r=e.charCodeAt(u++))>>6,l=63&r,isNaN(n)?o=l=64:isNaN(r)&&(l=64),c=c+s.charAt(i)+s.charAt(a)+s.charAt(o)+s.charAt(l);return c}function b(e){var t,n,r,i,a,o,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="",c=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");c>4,n=(15&i)<<4|(a=l.indexOf(e.charAt(c++)))>>2,r=(3&a)<<6|(o=l.indexOf(e.charAt(c++))),s+=String.fromCharCode(t),64!==a&&(s+=String.fromCharCode(n)),64!==o&&(s+=String.fromCharCode(r));return function(e){for(var t="",n=0,r=0,i=0,a=0;n191&&r<224?(t+=String.fromCharCode((31&r)<<6|63&(a=e.charCodeAt(n+1))),n+=2):(a=e.charCodeAt(n+1),t+=String.fromCharCode((15&r)<<12|(63&a)<<6|63&(i=e.charCodeAt(n+2))),n+=3);return t}(s)}function x(e,t,n){var r="",i=0,a=!1,o=!1,l=0,s=e.length,c="",u="";e:for(l=0;l"===d||l===s-1){r+=n(e.slice(i,a)),c=function(e){var t,n=g.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=g.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(u=e.slice(a,l+1)),r+=t(a,r.length,c,u,"0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,c-1))){s(o,y(g.trim(e.slice(n,c)))),o=!1,n=c+1;continue}}}else{if(-1===(d=e.indexOf(u,c+1)))break;s(o,g.trim(e.slice(i+1,d))),o=!1,n=(c=d)+1}}else o=e.slice(n,c),n=c+1,i='"'===e.charAt(n)||"'"===e.charAt(n)?n:function(e,t){for(;te.charCodeAt(n)?" ":e.charAt(n);return g.trim(t)}(e=(e=(e=e.replace(l,'"')).replace(o,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})).replace(s,":").replace(c," "))}(n),"href"===t||"src"===t){if("#"===(n=g.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(u.lastIndex=0,u.test(n))return""}else if("style"===t&&(p.lastIndex=0,p.test(n)||(d.lastIndex=0,d.test(n)&&(u.lastIndex=0,u.test(n)))))return"";return n=function(e){return e=f(e=e.replace(h,"""))}(n)}var E=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},k=function(){function e(e){var t=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{});t.stripIgnoreTag&&(t.onIgnoreTag,t.onIgnoreTag=function(){return""}),t.whiteList={},t.onTag=function(){},t.onTagAttr=function(){},t.onIgnoreTag=function(){},t.onIgnoreTagAttr=function(){},t.safeAttrValue=w,t.escapeHtml=f,this.options=Object.assign(t,e)}return e.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t,n,r,i,a,o,l=this.options,s=l.whiteList,c=l.onTag,u=l.onIgnoreTag,d=l.onTagAttr,p=l.onIgnoreTagAttr,h=l.safeAttrValue,f=l.escapeHtml;l.stripBlankChar&&(e=(t=(t=e.split("")).filter(function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)})).join("")),l.allowCommentTag||(e=function(e){for(var t="",n=0;n");var l=function(e){var t=g.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=g.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=g.trim(e.slice(0,-1))),{html:e,closing:n}}(r),m=s[n],y=S(l.html,function(e,t){var r=-1!==g.indexOf(m,e),i=d(n,e,t,r);return null==i?r?(t=h(n,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(i=p(n,e,t,r))?void 0:i:i});return r="<".concat(n),y&&(r+=" ".concat(y)),l.closing&&(r+=" /"),r+=">"}return null==(o=u(n,r,a))?f(r):o},f);return m&&(y=m.remove(y)),y},e}(),C=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")(),O=new(function(){function e(){var e=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var t,n,r="douyin_web";if(!g.includes(r,"bid"))return r;if(e.config&&e.config.bid)return e.config.bid;if(C&&C._xssBid)return C._xssBid;if(C&&C.slardar&&"function"==typeof C.slardar.config){var i=(C.slardar.config()||{}).bid;if(i)return i}if(C&&C.Slardar&&"function"==typeof C.Slardar.config){var a=(C.Slardar.config()||{}).bid;if(a)return a}return(null===(n=null===(t=null==C?void 0:C.Slardar)||void 0===t?void 0:t._baseParams)||void 0===n?void 0:n.bid)||"argus"},this.getConfigRegion=function(){var t;return g.includes("cn","region")?e.config&&e.config.region?e.config.region:((null===(t=null==C?void 0:C.gfdatav1)||void 0===t?void 0:t.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var t={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[e.getConfigRegion()];if(t)return t+e.getSlardarBid()}}return e.prototype.setConfig=function(e){this.config=e},e.prototype.upload=function(){var e=this,t=this.gerReportUrl();!this.lock&&t&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var n=e.batchData.slice(0,100);e.batchData=e.batchData.slice(100),C.fetch(t,{method:"post",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}).catch(function(e){}),e.lock=!1,e.upload()},this.timeout))},e.prototype.generateKey=function(e){return e.collectKey?[e.collectMode,e.collectKey].join("___"):""},e.prototype.push=function(e){this.batchData.push(e),this.upload()},e.prototype.report=function(e){var t=this.generateKey(e);if(C.fetch&&e.collectKey){var n="object"==typeof window?window.location.href:"SSR";e.documentUrl=n;var r={age:Math.floor(Date.now()),type:"xss",url:n,body:e,"user-agent":""};"enforce"===e.disposition&&"SSR"!==n||(r.url=t),"SSR"===n&&(r.url="SSR___".concat(r.url),r.body.ssr=!0),this.push(r)}},e}()),P=function(e){for(var t=0,n=function(n){Array.isArray(e[n])?0===e[n].length?delete e[n]:(e[n]=g.from(g.uniq(e[n])),t+=e[n].length):0===g.keys(e[n]).length?delete e[n]:g.keys(e[n]).forEach(function(r){e[n][r]=g.from(g.uniq(e[n][r])),t+=e[n][r].length})},r=0,i=g.keys(e);r0)return t&&t("javascript:"),!1;if(/^javascript:/i.test(e)){var i=e.slice(11).replace(/\s/g,"").trim();return!!g.some(["void","void(0)","void0","false","undefined",";"],function(e){return e===i})||(t&&t("javascript:"),!1)}return!0}var I=function(e,t){var n,r,i="<%= isSaveValidUrl =>";if("string"!=typeof e||(r=Number("<%= urlLimit =>"),void 0!==n&&(r=n),"NaN"!==e.toString()&&-1!==r&&e.length>=r)||R(e,t))return e;try{if(!0===(i=JSON.parse(i))||"true"===i){var a=new URL(e);return a.origin+a.pathname}}catch(e){}return"#"};function L(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!R(e=j(e)))return!1;var i,a={url:(i=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:i[1],slash:i[2],host:i[3],port:i[4],path:i[5],query:i[6],hash:i[7]},o=a.scheme,l=a.host;return r?!!r(e):!(!o||!l)&&(!g.includes(["http","https","file"],o)||("object"==typeof window&&window&&(t=n(n([],t,!0),[location.host],!1)),g.some(t,function(e){return!!(e instanceof RegExp&&e.test(l))||e===l})))}var _={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:[]},D={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=P(this.collect),t=e.count,n=e.ret;return this.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"white"}},onIgnoreTagAttr:function(e,t,r){return e&&g.indexOf(["href","src"],t)>-1?D.domainWhiteList&&Array.isArray(D.domainWhiteList)&&D.domainWhiteList.length>0&&!L(r,n([],D.domainWhiteList,!0))?"":"".concat(t,'="').concat(I(r,function(e){var t;null===(t=D.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(g.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(r,'"'):(D.collect.whiteList[e]=D.collect.whiteList[e]||[],void D.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;x(t,function(e,t,n,r){S(T(r).html.replace("/",""),function(e){D.collect.whiteList[n]=D.collect.whiteList[n]||[],D.collect.whiteList[n].push(e)})},f)},whiteList:_,mergeWhiteList:function(e){for(var t,n={},r=0,i=g.keys(_);r");var a=T(r),o=S(a.html,function(e,t){var r,i=0;if($.blackList[n]&&g.includes($.blackList[n],e)&&(V.collect.blackList[n]=V.collect.blackList[n]||[],V.collect.blackList[n].push(e),i++),$.blackAttrRegExps.length&&$.blackAttrRegExps.some(function(t){return t.test(e)})&&g.forEach($.blackAttrRegExps,function(t){t.test(e)&&(V.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),i++)}),$.blackAttrs.length&&g.includes($.blackAttrs,e)&&($.blackAttrs.push(e),i++),!i){if($.filterList&&$.filterList[n]&&g.includes($.filterList[n],e)){var a=I(t,function(e){var t;null===(t=V.collect)||void 0===t||t.filterProtocol.push(e)});return a!==t&&(V.collect.filterList[n]=V.collect.filterList[n]||[],V.collect.filterList[n].push(e)),t?"".concat(e,"='").concat(a,"'"):e}return $.filterAttrs&&g.includes($.filterAttrs,e)?((a=I(t,function(e){var t;null===(t=V.collect)||void 0===t||t.filterProtocol.push(e)}))!==t&&(null===(r=V.collect)||void 0===r||r.filterAttrs.push(e)),t?"".concat(e,"='").concat(a,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return r="<".concat(n),o&&(r+=" ".concat(o)),a.closing&&(r+=" /"),r+=">"},f);null===(n=V.collect)||void 0===n||n.blackTags.push(e)}},X=function(e){var t=e.reportOnly,n=void 0===t||t,r=e.block;return n&&"all"===n?"report":("string"==typeof n&&("true"===n&&(n=!0),"false"===n&&(n=!1)),r?"enforce":n?"report":"enforce")},W=function(e){return function(n,r,i){if(!n||"string"!=typeof n)return n;var a=r;e===N&&(a=D).initCollect();var o=e(n,a);if(E(o)===E(n))return n;if(!i)return o;var l=i.logType,s=X(i),c=a.removeCollect();return O.report(t(t({type:l,disposition:s},c),{sourceText:v(n),filterText:v(o)})),"enforce"===s?o:n}},H=W(function(e,t){return void 0===t&&(t={}),t&&t.whiteList||(t.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 k(t).process(e)}),z=W(N),J=function(e,t,n){var r=[],i=I(e,function(e){r.push(e)});if(i===e)return e;r=g.from(g.uniq(r));var a=t||n||{};if(!a)return i;var o=a.logType,l=X(n);return O.report({type:o,disposition:l,collectKey:r.join("___"),collectData:JSON.stringify(r),collectMode:"black",sourceText:v(e),filterText:v(i)}),"enforce"===l?i:e},B=C._xssProject||{},U=C.xssNamespace||{},G="3.0.26",Y={FilterXSS:k,version:G,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:H,_filterXSS:z,filterUrl:J,Config:D,BlackConfig:V,project:B,setProjectName:function(e){B[e]=this,C._xssProjectName=e}};U.douyin_web=Y,C.xssNamespace=U,C.Math&&!C.Math.xssNamespace&&(C.Math.xssNamespace=U),B[G]=Y,C.globalThis=C,C.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:Y},C.xss=Y,C.isSafeUrl=L,C.isSafeDomain=L,C.isSafeProtocol=R,C._xssProject=B,C._xssProjectName&&(B[C._xssProjectName]=Y);var q=Y.setProjectName.bind(Y);e.BlackConfig=V,e.Config=D,e.FilterXSS=k,e._filterXSS=z,e.filterUrl=J,e.filterXSS=H,e.isSafeDomain=L,e.isSafeProtocol=R,e.isSafeUrl=L,e.project=B,e.setProjectName=q,e.setXssNamespace=function(e){var t=e.appId,n=e.bid,r=e.region;U[t]=Y;D.bid=n,D.region=r,D.enabled=!0},e.xssNamespace=U,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["24963"],{181150:function(e,t,n){"use strict";var r=n(101199),i=n(994298);let a=(0,i.A)(function(e){return r.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},e),r.createElement("path",{d:"M7 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z",fill:"currentColor"}),r.createElement("path",{d:"M14.5 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z",fill:"currentColor"}),r.createElement("path",{d:"M19.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",fill:"currentColor"}))},"more");t.Z=a},354629:function(e,t,n){"use strict";n.d(t,{jv:function(){return a}});var r=function(e){var t;try{t=new URL(e)}catch(e){return!1}return"https:"===t.protocol},i=[],a=function(e){var t=r(e),n=!0,a=!1,o=void 0;try{for(var l,s=i[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var c=function(){var n=l.value;if(!1===t)return"break";t=!0===t?n(e):t.then(function(t){return t&&n(e)})}();if("break"===c)break}}catch(e){a=!0,o=e}finally{try{!n&&null!=s.return&&s.return()}finally{if(a)throw o}}return t}},107599:function(e,t,n){"use strict";n.d(t,{Fo:function(){return h},U2:function(){return s},is:function(){return E},nB:function(){return x},qw:function(){return u}});var r=n(101199),i=n(970004),a=n(282723);function o(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e){return null!==e&&e>=0}let s=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=o(t,r,n),l=t[i],s=a[i];return s&&l?{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}:null},c={scaleX:1,scaleY:1},u=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:a,overIndex:o}=e,l=null!=(t=a[n])?t:r;if(!l)return null;if(i===n){let e=a[o];return e?{x:0,y:nn&&i<=o?{x:0,y:-l.height-s,...c}:i=o?{x:0,y:l.height+s,...c}:{x:0,y:0,...c}},d="Sortable",p=r.createContext({activeIndex:-1,containerId:d,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:s,disabled:{draggable:!1,droppable:!1}});function h(e){var t;let{children:n,id:o,items:l,strategy:c=s,disabled:u=!1}=e,{active:h,dragOverlay:f,droppableRects:g,over:m,measureDroppableContainers:y}=(0,i.Cj)(),v=(0,a.Ld)(d,o),b=null!==f.rect,x=(0,r.useMemo)(()=>l.map(e=>"object"==typeof e&&"id"in e?e.id:e),[l]),S=null!=h,w=h?x.indexOf(h.id):-1,E=m?x.indexOf(m.id):-1,k=(0,r.useRef)(x),C=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{C&&S&&y(x)},[C,x,S,y]),(0,r.useEffect)(()=>{k.current=x},[x]);let N=(0,r.useMemo)(()=>{var e,t;return{activeIndex:w,containerId:v,disabled:P,disableTransforms:O,items:x,overIndex:E,useDragOverlay:b,sortedRects:(e=x,t=g,e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))),strategy:c}},[w,v,P.draggable,P.droppable,O,x,E,g,b,c]);return r.createElement(p.Provider,{value:N},n)}let f=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return o(n,r,i).indexOf(t)},g=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:l,previousContainerId:s,transition:c}=e;return!!c&&!!r&&(l===a||i!==o)&&(!!n||o!==i&&t===s)},m={duration:200,easing:"ease"},y="transform",v=a.ux.Transition.toString({property:y,duration:0,easing:"linear"}),b={roleDescription:"sortable"};function x(e){let{animateLayoutChanges:t=g,attributes:n,disabled:o,data:s,getNewIndex:c=f,id:u,strategy:d,resizeObserverConfig:h,transition:x=m}=e,{items:S,containerId:w,activeIndex:E,disabled:k,disableTransforms:C,sortedRects:O,overIndex:P,useDragOverlay:N,strategy:T}=(0,r.useContext)(p),j=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(o,k),R=S.indexOf(u),I=(0,r.useMemo)(()=>({sortable:{containerId:w,index:R,items:S},...s}),[w,s,R,S]),L=(0,r.useMemo)(()=>S.slice(S.indexOf(u)),[S,u]),{rect:_,node:D,isOver:A,setNodeRef:K}=(0,i.Zj)({id:u,data:I,disabled:j.droppable,resizeObserverConfig:{updateMeasurementsFor:L,...h}}),{active:Z,activatorEvent:$,activeNodeRect:M,attributes:F,setNodeRef:V,listeners:X,isDragging:W,over:H,setActivatorNodeRef:z,transform:J}=(0,i.O1)({id:u,data:I,attributes:{...b,...n},disabled:j.draggable}),B=(0,a.HB)(K,V),U=!!Z,G=U&&!C&&l(E)&&l(P),Y=!N&&W,q=Y&&G?J:null,Q=G?null!=q?q:(null!=d?d:T)({rects:O,activeNodeRect:M,activeIndex:E,overIndex:P,index:R}):null,ee=l(E)&&l(P)?c({id:u,items:S,activeIndex:E,overIndex:P}):R,et=null==Z?void 0:Z.id,en=(0,r.useRef)({activeId:et,items:S,newIndex:ee,containerId:w}),er=S!==en.current.items,ei=t({active:Z,containerId:w,isDragging:W,isSorting:U,id:u,index:R,items:S,newIndex:en.current.newIndex,previousItems:en.current.items,previousContainerId:en.current.containerId,transition:x,wasDragging:null!=en.current.activeId}),ea=function(e){let{disabled:t,index:n,node:o,rect:l}=e,[s,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,a.LI)(()=>{if(!t&&n!==u.current&&o.current){let e=l.current;if(e){let t=(0,i.VK)(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)},[t,n,o,l]),(0,r.useEffect)(()=>{s&&c(null)},[s]),s}({disabled:!ei,index:R,node:D,rect:_});return(0,r.useEffect)(()=>{U&&en.current.newIndex!==ee&&(en.current.newIndex=ee),w!==en.current.containerId&&(en.current.containerId=w),S!==en.current.items&&(en.current.items=S)},[U,ee,w,S]),(0,r.useEffect)(()=>{if(et===en.current.activeId)return;if(et&&!en.current.activeId){en.current.activeId=et;return}let e=setTimeout(()=>{en.current.activeId=et},50);return()=>clearTimeout(e)},[et]),{active:Z,activeIndex:E,attributes:F,data:I,rect:_,index:R,newIndex:ee,items:S,isOver:A,isSorting:U,isDragging:W,listeners:X,node:D,overIndex:P,over:H,setNodeRef:B,setActivatorNodeRef:z,setDroppableNodeRef:K,setDraggableNodeRef:V,transform:null!=ea?ea:Q,transition:function(){return ea||er&&en.current.newIndex===R?v:(!Y||(0,a.vd)($))&&x?U||ei?a.ux.Transition.toString({...x,property:y}):void 0:void 0}()}}function S(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable||!1}let w=[i.g4.Down,i.g4.Right,i.g4.Up,i.g4.Left],E=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:l,over:s,scrollableAncestors:c}}=t;if(w.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];l.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;let a=o.get(n.id);if(!!a)switch(e.code){case i.g4.Down:r.topa.top&&t.push(n);break;case i.g4.Left:r.left>a.left&&t.push(n);break;case i.g4.Right:r.left1&&(d=u[1].id),null!=d){let e=l.get(n.id),t=l.get(d),s=t?o.get(t.id):null,u=null==t?void 0:t.node.current;if(u&&s&&e&&t){let n=(0,i.hI)(u).some((e,t)=>c[t]!==e),o=k(e,t),l=function(e,t){return!!(S(e)&&S(t)&&k(e,t))&&e.data.current.sortable.index{this.off(e,t)}}once(e,t){var n;let r=null!=(n=this.listeners.get(e))?n:[],i=(...n)=>(this.off(e,i),t(...n));return r.push(i),this.listeners.set(e,r),()=>{this.off(e,i)}}off(e,t){var n;if(t){let r=null!=(n=this.listeners.get(e))?n:[],i=r.indexOf(t);if(-1===i)return this;r.splice(i,1),this.listeners.set(e,r)}else"*"===e?this.listeners.clear():this.listeners.delete(e);return this}emit(e,...t){var n,r;return(null!=(n=this.listeners.get(e))?n:[]).forEach(e=>{var n;try{e(...t)}catch(t){null==(n=this._debug)||n.call(this,"emit_error",t,e)}}),null==(r=this._debug)||r.call(this,e,...t),this}has(e){var t,n;return(null!=(n=null==(t=this.listeners.get(e))?void 0:t.length)?n:0)>0}debug(e){return this._debug=e,this}};r.VERSION="0.1.10";let i=r},734835:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});let r=()=>new Promise(e=>{if("undefined"!=typeof window||"undefined"!=typeof window){window.setTimeout(e,0);return}e()})},233044:function(e,t,n){"use strict";var r=n(177405).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)({},e)};var i=r(n(394301));e.exports=t.default},46731:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(726588),i=n(462796),a=n(751004),o=n(144256);function l(e,t){(0,o.Z)(1,arguments);var n=(0,r.Z)(e);return Math.round(((0,i.Z)(n,t).getTime()-(0,a.Z)(n,t).getTime())/6048e5)+1}},211084:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(559445),i=n(731278),a=n(144256);function o(e,t,n){(0,a.Z)(2,arguments);var o=(0,r.Z)(e,n),l=(0,r.Z)(t,n);return Math.round((o.getTime()-(0,i.Z)(o)-(l.getTime()-(0,i.Z)(l)))/6048e5)}},92184:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(277430),i=n(647566),a=n(726588),o=n(594691),l=n(519879),s=n(731278),c=n(768587),u=n(557094),d=n(144256),p=n(588736),h=n(672097),f=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,v=/[a-zA-Z]/;function b(e,t,n){(0,d.Z)(2,arguments);var b,x,S,w,E,k,C,O,P,N,T,j,R,I,L,_,D,A,K=String(t),Z=(0,p.j)(),$=null!==(b=null!==(x=null==n?void 0:n.locale)&&void 0!==x?x:Z.locale)&&void 0!==b?b:h.Z,M=(0,u.Z)(null!==(S=null!==(w=null!==(E=null!==(k=null==n?void 0:n.firstWeekContainsDate)&&void 0!==k?k:null==n?void 0:null===(C=n.locale)||void 0===C?void 0:null===(O=C.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==E?E:Z.firstWeekContainsDate)&&void 0!==w?w:null===(P=Z.locale)||void 0===P?void 0:null===(N=P.options)||void 0===N?void 0:N.firstWeekContainsDate)&&void 0!==S?S:1);if(!(M>=1&&M<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=(0,u.Z)(null!==(T=null!==(j=null!==(R=null!==(I=null==n?void 0:n.weekStartsOn)&&void 0!==I?I:null==n?void 0:null===(L=n.locale)||void 0===L?void 0:null===(_=L.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==R?R:Z.weekStartsOn)&&void 0!==j?j:null===(D=Z.locale)||void 0===D?void 0:null===(A=D.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==T?T:0);if(!(F>=0&&F<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw RangeError("locale must contain localize property");if(!$.formatLong)throw RangeError("locale must contain formatLong property");var V=(0,a.Z)(e);if(!(0,r.Z)(V))throw RangeError("Invalid time value");var X=(0,s.Z)(V),W=(0,i.Z)(V,X),H={firstWeekContainsDate:M,weekStartsOn:F,locale:$,_originalDate:V};return K.match(g).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,l.Z[t])(e,$.formatLong):e}).join("").match(f).map(function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(m);return t?t[1].replace(y,"'"):e}(r);var a=o.Z[i];if(a)return!(null!=n&&n.useAdditionalWeekYearTokens)&&(0,c.Do)(r)&&(0,c.qp)(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&(0,c.Iu)(r)&&(0,c.qp)(r,t,String(e)),a(W,r,$.localize,H);if(i.match(v))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r}).join("")}},32956:function(e){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},17751:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},602213:function(e,t,n){var r=n(364953),i=n(946798),a=n(79594),o=n(431356);e.exports=function(e,t){return(o(e)?r:i)(e,a(t,3))}},293137:function(e,t,n){var r=n(390063),i=n(331085);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},5903:function(e,t,n){"use strict";t.__esModule=!0,t.resizableProps=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(622689));n(901547);var i={axis:r.default.oneOf(["both","x","y","none"]),className:r.default.string,children:r.default.element.isRequired,draggableOpts:r.default.shape({allowAnyClick:r.default.bool,cancel:r.default.string,children:r.default.node,disabled:r.default.bool,enableUserSelectHack:r.default.bool,offsetParent:r.default.node,grid:r.default.arrayOf(r.default.number),handle:r.default.string,nodeRef:r.default.object,onStart:r.default.func,onDrag:r.default.func,onStop:r.default.func,onMouseDown:r.default.func,scale:r.default.number}),height:function(){for(var e,t=arguments.length,n=Array(t),i=0;i`${e<1?100*e:100}%`,b=`${h.U.PREFIX}-week`,x=`${h.U.PREFIX}-all-day`;class S extends f.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{setRangeData:e=>{this.RangeData=e},getRangeData:()=>this.RangeData,updateScrollHeight:e=>{this.setState({scrollHeight:e})},setParsedEvents:e=>{this.setState({parsedEvents:e})},cacheEventKeys:e=>{this.setState({cachedKeys:e})}})}componentDidMount(){this.foundation.init();let{scrollHeight:e}=this.scrollDom.current;this.dom.current.scrollTop=this.props.scrollTop,this.foundation.notifyScrollHeight(e),this.foundation.parseRangeEvents()}componentDidUpdate(e,t){let n=t.cachedKeys,r=this.props.events.map(e=>e.key);(!i()(n,r)||!i()(e.range,this.props.range))&&this.foundation.parseRangeEvents()}componentWillUnmount(){this.foundation.destroy()}render(){let{renderTimeDisplay:e,className:t,height:n,width:r,style:i,header:o}=this.props,s=l()(b,t),c=Object.assign({height:n,width:r},i);return a.createElement(d.Z,{componentName:"Calendar"},(t,n,r)=>a.createElement("div",Object.assign({className:s,style:c,ref:this.dom},this.getDataAttr(this.props)),a.createElement("div",{className:`${b}-sticky-top`},o,this.renderHeader(r),this.renderAllDay(t)),a.createElement("div",{className:`${b}-scroll-wrapper`},a.createElement("div",{className:`${b}-scroll`,ref:this.scrollDom},a.createElement(m.Z,{className:`${b}-sticky-left`,renderTimeDisplay:e}),this.renderDayGrid()))))}constructor(e){super(e),this.handleClick=(e,t)=>{let{onClick:n}=this.props,r=this.foundation.formatCbValue(t);n&&n(e,r)},this.renderDayGrid=()=>{let{parsedEvents:e}=this.state,t=e.day,{week:n}=this.RangeData,{markWeekend:r,dateGridRender:i,minEventHeight:o}=this.props;return n.map(e=>{let n=e.date.toString(),l=t.has(n)?t.get(n):[],s=this.foundation.getParseDailyEvents(l,e.date);return a.createElement(g.Z,{key:`${n}-weekday`,displayValue:e.date,scrollHeight:this.state.scrollHeight,handleClick:this.handleClick,events:s.day,showCurrTime:this.props.showCurrTime,isWeekend:r&&e.isWeekend,dateGridRender:i,minEventHeight:o})})},this.renderHeader=e=>{let{markWeekend:t,range:n,renderDateDisplay:r}=this.props,{month:i,week:o}=this.foundation.getRangeData(n[0],e);return a.createElement("div",{className:`${b}-header`},a.createElement("ul",{className:`${h.U.PREFIX}-tag ${b}-tag ${b}-sticky-left`},a.createElement("span",null,i)),a.createElement("div",{role:"gridcell",className:`${b}-grid`},a.createElement("ul",{className:`${b}-grid-row`},o.map(e=>{let{date:n,dayString:i,weekday:o,isToday:s}=e,c=l()({[`${h.U.PREFIX}-today`]:s,[`${h.U.PREFIX}-weekend`]:t&&e.isWeekend}),u=r?r(n):a.createElement(a.Fragment,null,a.createElement("span",{className:`${h.U.PREFIX}-today-date`},i),a.createElement("span",null,o));return a.createElement("li",{key:`${n.toString()}-weekheader`,className:c},u)}))))},this.renderAllDayEvents=e=>this.props.allDayEventsRender?this.props.allDayEventsRender(this.props.events):e.map((e,t)=>{let{leftPos:n,width:r,topInd:i,children:o}=e,l=`${i}em`,s={left:v(n),width:v(r),top:l};return a.createElement("li",{className:`${h.U.PREFIX}-event-item ${h.U.PREFIX}-event-allday`,key:`allDay-${t}`,style:s},o)}),this.renderAllDay=e=>{let{allDayEventsRender:t}=this.props,{allDay:n}=this.state.parsedEvents,r=this.foundation.parseRangeAllDayEvents(n),i=t?null:{height:`${(0,y.yb)(r)}em`},{markWeekend:o}=this.props,{week:s}=this.RangeData;return a.createElement("div",{className:`${x}`,style:i},a.createElement("ul",{className:`${h.U.PREFIX}-tag ${x}-tag ${b}-sticky-left`},a.createElement("span",null,e.allDay)),a.createElement("div",{role:"gridcell",className:`${h.U.PREFIX}-content ${x}-content`},a.createElement("ul",{className:`${x}-skeleton`},Object.keys(s).map((e,t)=>{let n=l()({[`${h.U.PREFIX}-weekend`]:o&&s[e].isWeekend});return a.createElement("li",{key:`${e}-weekgrid`,className:n})})),a.createElement("ul",{className:`${h.U.PREFIX}-event-items`},this.renderAllDayEvents(r))))},this.state={scrollHeight:0,parsedEvents:{day:new Map,allDay:new Map},cachedKeys:[]},this.foundation=new u.Z(this.adapter),this.dom=a.createRef(),this.scrollDom=a.createRef(),this.handleClick=this.handleClick.bind(this),this.allDayRowHeight=1}}S.propTypes={range:c().array,header:c().node,events:c().array,mode:c().string,showCurrTime:c().bool,markWeekend:c().bool,scrollTop:c().number,renderTimeDisplay:c().func,renderDateDisplay:c().func,dateGridRender:c().func,allDayEventsRender:c().func,width:c().oneOfType([c().number,c().string]),height:c().oneOfType([c().number,c().string]),style:c().object,className:c().string},S.defaultProps={events:[],mode:"range"},S.contextType=p.Z},840234:function(e,t,n){"use strict";n.d(t,{C:function(){return u},Z:function(){return d}}),n(932651);var r=n(101199),i=n(622689),a=n.n(i),o=n(707852),l=n(779374),s=n(230720),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let u=s.Z.Consumer;class d extends r.Component{renderChildren(){let{direction:e,children:t}=this.props;return"rtl"===e?r.createElement("div",{className:`${o.T}-rtl`},t):t}render(){let e=this.props,{children:t,direction:n}=e,i=c(e,["children","direction"]);return r.createElement(s.Z.Provider,{value:Object.assign({direction:n},i)},this.renderChildren())}constructor(e){super(e)}}d.propTypes={locale:a().object,timeZone:a().oneOfType([a().string,a().number]),getPopupContainer:a().func,direction:a().oneOf(["ltr","rtl"])},d.defaultProps={locale:l.Z,direction:"ltr"}},730540:function(e,t,n){"use strict";var r=n(214907);t.Z=r.ZPm},551758:function(e,t,n){"use strict";n.d(t,{r:function(){return l}}),n(932651),n(679308),n(374954);var r=n(101199),i=n(182811),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let o=(e,t,n,r)=>{let i=e.props;if(!e||!i)return null;let a=Object.assign(Object.assign({value:i.value,label:i.label||i.children||i.value,_show:!0,_selected:!1,_scrollIndex:n},i),{_parentGroup:t});return a._keyInJsx=r||e.key,a},l=e=>{let t=[],n=[],l={label:"",children:[],_show:!1},s=r.Children.toArray(e);s=s.filter(e=>e&&e.props);let c="",u=-1;return s.forEach(e=>{if(e.type.isSelectOption){c="option";let t=o(e,void 0,++u);l.children.push(t),n.push(t)}else if(e.type.isSelectOptionGroup){c="group";let i=e.props,{children:l}=i,s=a(i,["children"]),d=[];Array.isArray(l)?d=l.map(e=>e.key):d.push(l.key);let p=(l=r.Children.toArray(l)).map((t,n)=>{let r=t.key;return null===d[n]&&(r=e.key+""+t.key),o(t,s,++u,r)}),h=Object.assign(Object.assign({},e.props),{children:p,key:e.key});t.push(h),n=n.concat(p)}else(0,i.Z)(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),"option"===c&&(t=[l]),{optionGroups:t,options:n}}},76518:function(e,t,n){"use strict";n(932651),n(490629),n(706056),n(374954),n(112459),n(759943),n(679308),n(414931);var r=n(72137),i=n.n(r),a=n(61766),o=n.n(a),l=n(92122),s=n.n(l),c=n(390063),u=n.n(c),d=n(198412),p=n.n(d),h=n(795233),f=n.n(h),g=n(85079),m=n.n(g),y=n(22186),v=n.n(y),b=n(876553),x=n.n(b),S=n(101199),w=n(890710),E=n(469935),k=n.n(E),C=n(622689),O=n.n(C),P=n(769045),N=n(933057),T=n(844572),j=n(932083),R=n(493272);n(839092),n(436948);var I=n(426337),L=n(230720),_=n(837423),D=n(235806),A=n(975044),K=n(792210),Z=n(377254),$=n(115993),M=n(427998),F=n(908403),V=n(209873),X=n(111748),W=n(496414),H=n(678503),z=n(329206),J=n(877004),B=n(343388),U=n(634166),G=n(619050),Y=n(267983),q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let Q=T.UX.PREFIX,ee=T.UX.PREFIX_TREE;class et extends I.Z{static getDerivedStateFromProps(e,t){let n;let{prevProps:r,rePosKey:i}=t,{keyMaps:a}=e,o=t=>!r&&t in e||r&&!x()(r[t],e[t]),l=e.onChangeWithObject,s=t.keyEntities||{},c=t.cachedKeyValuePairs||{},u={prevProps:e},d=o("treeData"),p=o("expandedKeys"),h=!!(e.filterTreeNode&&t.inputValue&&t.inputValue.length);if(d){n=e.treeData,u.treeData=n;let t=(0,N.I8)(n,a);u.keyEntities=Object.assign({},t.keyEntities),s=u.keyEntities,u.cachedKeyValuePairs=Object.assign({},t.valueEntities),c=u.cachedKeyValuePairs}n&&e.motion&&!x()(Object.keys(u.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(u.motionKeys=new Set([]),u.motionType=null);let f=d&&e.expandAll;if(h){let i;if(n&&(i=(0,N.lH)({treeData:n,inputValue:t.inputValue,filterTreeNode:e.filterTreeNode,filterProps:e.treeNodeFilterProp,showFilteredOnly:e.showFilteredOnly,keyEntities:u.keyEntities,prevExpandedKeys:[...t.filteredExpandedKeys],keyMaps:a}),u.flattenNodes=i.flattenNodes,u.motionKeys=new Set([]),u.filteredKeys=i.filteredKeys,u.filteredShownKeys=i.filteredShownKeys,u.filteredExpandedKeys=i.filteredExpandedKeys),e.expandedKeys){if(u.filteredExpandedKeys=(0,N.G$)(e.expandedKeys,s,e.autoExpandParent||!r),r&&e.motion){let r=t?t.filteredExpandedKeys:new Set([]);if(!n){let n=(0,N.qG)(r,u.filteredExpandedKeys,s),{motionKeys:i}=n,{motionType:a}=n;e.showFilteredOnly&&(i=i.filter(e=>t.filteredShownKeys.has(e))),"hide"===a&&(u.cachedFlattenNodes=(0,F.X)(t.flattenNodes)),u.motionKeys=new Set(i),u.motionType=a}}u.flattenNodes=(0,N.oH)(n||t.treeData,u.filteredExpandedKeys||t.filteredExpandedKeys,a,e.showFilteredOnly&&t.filteredShownKeys)}}else{if(p||r&&o("autoExpandParent")){if(u.expandedKeys=(0,N.G$)(e.expandedKeys,s,e.autoExpandParent||!r),r&&e.motion&&!n){let{motionKeys:e,motionType:n}=(0,N.qG)(t.expandedKeys,u.expandedKeys,s);u.motionKeys=new Set(e),u.motionType=n,"hide"===n&&(u.cachedFlattenNodes=(0,F.X)(t.flattenNodes))}}else!r&&(e.defaultExpandAll||e.expandAll)||f?u.expandedKeys=new Set(Object.keys(s)):!r&&e.defaultExpandedKeys?u.expandedKeys=(0,N.G$)(e.defaultExpandedKeys,s):!r&&e.defaultValue?u.expandedKeys=(0,N.MP)((0,N._1)(e.defaultValue,l,a),s,e.multiple,c):!r&&e.value&&(u.expandedKeys=(0,N.MP)((0,N._1)(e.value,l,a),s,e.multiple,c));if(!u.expandedKeys&&delete u.expandedKeys,n||u.expandedKeys){let e=(0,N.oH)(n||t.treeData,u.expandedKeys||t.expandedKeys,a);u.flattenNodes=e}}let g=e.multiple;if(g){let i;if(o("value")?i=(0,N.af)((0,N._1)(e.value,l,a),c,g):!r&&e.defaultValue?i=(0,N.af)((0,N._1)(e.defaultValue,l,a),c,g):n&&(i=e.value?(0,N.af)((0,N._1)(e.value,l,a)||[],c,g):(0,N.tS)("related"===e.checkRelation?t.checkedKeys:t.realCheckedKeys,s)),i){if("unRelated"===e.checkRelation)u.realCheckedKeys=new Set(i);else if("related"===e.checkRelation){let{checkedKeys:e,halfCheckedKeys:t}=(0,N.fM)(i,s);u.checkedKeys=e,u.halfCheckedKeys=t}}}else o("value")?u.selectedKeys=(0,N.af)((0,N._1)(e.value,l,a),c,g):!r&&e.defaultValue?u.selectedKeys=(0,N.af)((0,N._1)(e.defaultValue,l,a),c,g):n&&(e.value?u.selectedKeys=(0,N.af)((0,N._1)(e.value,l,a)||"",c,g):u.selectedKeys=(0,N.tS)(t.selectedKeys,s));return o("loadedKeys")&&(u.loadedKeys=new Set(e.loadedKeys)),(d||o("value"))&&(u.rePosKey=i+1),n&&e.disableStrictly&&"related"===e.checkRelation&&(u.disabledKeys=(0,N.vP)(s,a)),u}get adapter(){var e=this;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),{updateInputValue:e=>{this.setState({inputValue:e})}}),{registerClickOutsideHandler:e=>{this.adapter.unregisterClickOutsideHandler();let t=t=>{let n=this.optionsRef&&this.optionsRef.current,r=this.triggerRef&&this.triggerRef.current,i=w.findDOMNode(n),a=t.target,o=t.composedPath&&t.composedPath()||[a];i&&(!i.contains(a)||!i.contains(a.parentNode))&&r&&!r.contains(a)&&!(o.includes(r)||o.includes(i))&&e(t)};this.clickOutsideHandler=t,document.addEventListener("mousedown",t,!1)},unregisterClickOutsideHandler:()=>{if(!!this.clickOutsideHandler)document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:e}=this.state;e+=1,this.setState({rePosKey:e})}}),{updateState:e=>{this.setState(Object.assign({},e))},notifySelect:(e,t,n)=>{this.props.onSelect&&this.props.onSelect(e,t,n)},notifySearch:(e,t,n)=>{this.props.onSearch&&this.props.onSearch(e,t,n)},cacheFlattenNodes:e=>{this.setState({cachedFlattenNodes:e?(0,F.X)(this.state.flattenNodes):void 0})},notifyLoad:(e,t)=>{let{onLoad:n}=this.props;u()(n)&&n(e,t)},notifyClear:e=>{this.props.onClear&&this.props.onClear(e)}}),{updateLoadKeys:(e,t)=>{this.setState(n=>{let{loadedKeys:r,loadingKeys:i}=n;return this.foundation.handleNodeLoad(r,i,e,t)})},updateState:e=>{this.setState(Object.assign({},e))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:e=>{this.setState({isOpen:!1},()=>{e&&e(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{let e=this.triggerRef.current;return e&&e.getBoundingClientRect().width},setOptionWrapperWidth:e=>{this.setState({dropdownMinWidth:e})},notifyChange:(e,t,n)=>{this.props.onChange&&this.props.onChange(e,t,n)},notifyChangeWithObject:(e,t)=>{this.props.onChange&&this.props.onChange(e,t)},notifyExpand:(e,t)=>{let{expanded:n,node:r}=t;this.props.onExpand&&this.props.onExpand([...e],{expanded:n,node:r}),n&&this.props.loadData&&this.onNodeLoad(r)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:e=>{this.setState({isHovering:e})},updateInputFocus:e=>{if(e){if(this.inputRef&&this.inputRef.current){let{preventScroll:e}=this.props;this.inputRef.current.focus({preventScroll:e})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:e=>{this.setState({isFocus:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){let e=this.renderContent(),{motion:t,zIndex:n,mouseLeaveDelay:r,mouseEnterDelay:i,autoAdjustOverflow:a,stopPropagation:o,getPopupContainer:l,dropdownMargin:s,position:c}=this.props,{isOpen:u,rePosKey:d}=this.state,p=this.renderSelection();return S.createElement(G.Z,{stopPropagation:o,getPopupContainer:l,zIndex:n,motion:t,margin:s,ref:this.optionsRef,content:e,visible:u,trigger:"custom",rePosKey:d,position:c||"bottomLeft",autoAdjustOverflow:a,mouseLeaveDelay:r,mouseEnterDelay:i,onVisibleChange:this.handlePopoverVisibleChange,afterClose:this.afterClose},p)}constructor(e){super(e),this.renderSuffix=()=>{let{suffix:e}=this.props,t=k()({[`${Q}-suffix`]:!0,[`${Q}-suffix-text`]:e&&v()(e),[`${Q}-suffix-icon`]:(0,H.ID)(e)});return S.createElement("div",{className:t,"x-semi-prop":"suffix"},e)},this.renderPrefix=()=>{let{prefix:e,insetLabel:t,insetLabelId:n}=this.props,r=e||t,i=k()({[`${Q}-prefix`]:!0,[`${Q}-inset-label`]:t,[`${Q}-prefix-text`]:r&&v()(r),[`${Q}-prefix-icon`]:(0,H.ID)(r)});return S.createElement("div",{className:i,id:n,"x-semi-prop":"prefix,insetLabel"},r)},this.renderContent=()=>{let{dropdownMinWidth:e}=this.state,{dropdownStyle:t,dropdownClassName:n}=this.props,r=Object.assign({minWidth:e},t),i=k()(n,`${Q}-popover`);return S.createElement("div",{className:i,style:r,onKeyDown:this.foundation.handleKeyDown},this.renderTree())},this.removeTag=e=>{this.foundation.removeTag(e)},this.handleClick=e=>{this.foundation.handleClick(e)},this.getDataForKeyNotInKeyEntities=e=>this.foundation.getDataForKeyNotInKeyEntities(e),this.handleSelectionEnterPress=e=>{this.foundation.handleSelectionEnterPress(e)},this.hasValue=()=>{let{multiple:e,checkRelation:t}=this.props,{realCheckedKeys:n,checkedKeys:r,selectedKeys:i}=this.state,a=!1;return e?"related"===t?a=!!r.size:"unRelated"===t&&(a=!!n.size):a=!!i.length,a},this.showClearBtn=()=>{let{showClear:e,disabled:t,searchPosition:n}=this.props,{inputValue:r,isOpen:i,isHovering:a}=this.state,o=n===T.j2.SEARCH_POSITION_TRIGGER&&r;return e&&(this.hasValue()||o)&&!t&&(i||a)},this.renderTagList=e=>{let{keyEntities:t,disabledKeys:n}=this.state,{treeNodeLabelProp:r,leafOnly:i,disabled:a,disableStrictly:l,size:c,renderSelectedItem:d,keyMaps:h}=this.props,f=p()(h,"label",r),g=u()(d)?d:e=>({isRenderInTag:!0,content:p()(e,f,null)}),m=[];return e.forEach((e,r)=>{let i=t[e]&&t[e].key===e?t[e].data:this.getDataForKeyNotInKeyEntities(e),u=(t,n)=>{n&&"function"==typeof n.preventDefault&&n.preventDefault(),this.removeTag(e)},{content:d,isRenderInTag:p}=i?g(i,{index:r,onClose:u}):{};if(o()(d)||s()(d))return;let h={closable:!(a||i.disabled||l&&n.has(i.key)),color:"white",visible:!0,onClose:u,key:`tag-${e}-${r}`,size:"small"===c?"small":"large"};p?m.push(S.createElement(D.Z,Object.assign({},h),d)):m.push(d)}),m},this.renderSingleTriggerSearchItem=()=>{let{placeholder:e,disabled:t}=this.props,{inputTriggerFocus:n}=this.state,r=this.foundation.getRenderTextInSingle(),i=k()(`${Q}-selection-TriggerSearchItem`,{[`${Q}-selection-TriggerSearchItem-placeholder`]:(n||!r)&&!t,[`${Q}-selection-TriggerSearchItem-disabled`]:t});return S.createElement("span",{className:i,onClick:this.foundation.onClickSingleTriggerSearchItem},r||e)},this.renderSingleTriggerSearch=()=>{let{inputValue:e}=this.state;return S.createElement(S.Fragment,null,this.renderInput(),!e&&this.renderSingleTriggerSearchItem())},this.renderSelectContent=e=>{let{multiple:t,placeholder:n,maxTagCount:r,searchPosition:i,filterTreeNode:a,showRestTagsPopover:o,restTagsPopoverProps:l}=this.props;if(a&&i===T.j2.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput(e):this.renderSingleTriggerSearch();if(!t||!this.hasValue()){let e=this.foundation.getRenderTextInSingle(),t=k()(`${Q}-selection-content`,{[`${Q}-selection-placeholder`]:!e});return S.createElement("span",{className:t},e||n)}let s=this.renderTagList(e);return S.createElement(_.Z,{maxTagCount:r,tagList:s,size:"large",mode:"custom",showPopover:o,popoverProps:l})},this.handleClear=e=>{e&&e.stopPropagation(),this.foundation.handleClear(e)},this.handleClearEnterPress=e=>{e&&e.stopPropagation(),this.foundation.handleClearEnterPress(e)},this.handleMouseOver=e=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=e=>{this.foundation.toggleHoverState(!1)},this.search=e=>{let{isOpen:t}=this.state;!t&&this.foundation.open(),this.foundation.handleInputChange(e)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{let e=this.showClearBtn(),{arrowIcon:t}=this.props;return e?null:t?S.createElement("div",{className:k()(`${Q}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderClearBtn=()=>{let e=this.showClearBtn(),{clearIcon:t}=this.props,n=k()(`${Q}-clearbtn`);return e?S.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:n,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},t||S.createElement(z.Z,null)):null},this.renderSelection=()=>{let e;let t=this.props,{disabled:n,multiple:r,filterTreeNode:i,validateStatus:a,prefix:o,suffix:l,style:s,size:c,insetLabel:u,className:d,placeholder:h,showClear:f,leafOnly:g,searchPosition:y,triggerRender:v,borderless:b,autoMergeValue:x,checkRelation:w}=t,E=q(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless","autoMergeValue","checkRelation"]),{inputValue:C,selectedKeys:O,checkedKeys:P,keyEntities:j,isFocus:R,realCheckedKeys:I}=this.state,L=!!i,_="function"==typeof v,D=y===T.j2.SEARCH_POSITION_TRIGGER&&L,A=D&&m()(P),K=D&&!m()(P),Z=_?k()(d):k()(Q,{[`${Q}-borderless`]:b,[`${Q}-focus`]:R,[`${Q}-disabled`]:n,[`${Q}-single`]:!r,[`${Q}-multiple`]:r,[`${Q}-multiple-tagInput-empty`]:r&&A,[`${Q}-multiple-tagInput-notEmpty`]:r&&K,[`${Q}-filterable`]:L,[`${Q}-error`]:"error"===a,[`${Q}-warning`]:"warning"===a,[`${Q}-small`]:"small"===c,[`${Q}-large`]:"large"===c,[`${Q}-with-prefix`]:o||u,[`${Q}-with-suffix`]:l,[`${Q}-with-suffix`]:l},d),$=[];r?x?"related"===w?$=(0,N.yI)([...P],j,g,!0):"unRelated"===w&&($=[...I]):$=[...P]:$=O,e=_?S.createElement(X.Z,{inputValue:C,value:$.map(e=>p()(j,[e,"data"])),disabled:n,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:v,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[S.createElement(S.Fragment,{key:"prefix"},o||u?this.renderPrefix():null),S.createElement(S.Fragment,{key:"selection"},S.createElement("div",{className:`${Q}-selection`},this.renderSelectContent($))),S.createElement(S.Fragment,{key:"suffix"},l?this.renderSuffix():null),S.createElement(S.Fragment,{key:"clearBtn"},f||D&&C?this.renderClearBtn():null),S.createElement(S.Fragment,{key:"arrow"},this.renderArrow())];let M=n?null:0;return S.createElement("div",Object.assign({role:"combobox","aria-disabled":n,"aria-haspopup":"tree",tabIndex:M,className:Z,style:s,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,onKeyDown:this.foundation.handleKeyDown,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},f?{onMouseEnter:e=>this.handleMouseOver(e),onMouseLeave:e=>this.handleMouseLeave(e)}:{},this.getDataAttr(E)),e)},this.renderTagItem=(e,t)=>{let{keyEntities:n,disabledKeys:r}=this.state,{size:i,leafOnly:a,disabled:o,disableStrictly:l,renderSelectedItem:s,treeNodeLabelProp:c,keyMaps:d}=this.props,h=p()(d,"label",c),f=(0,N.yI)([e],n,a,!0).map(t=>n[e]&&n[e].key===e?n[e].data:this.getDataForKeyNotInKeyEntities(e)),g=(0,N.gy)(f,d),y=k()(`${Q}-selection-tag`,{[`${Q}-selection-tag-disabled`]:o}),v=!m()(f)&&!m()(f[0]),b=l&&v&&r.has(f[0].key),x=v&&!f[0].disabled&&!o&&!b,w=(t,n)=>{n.preventDefault(),this.removeTag(e)},E={size:"small"===i?"small":"large",key:`tag-${g}-${t}`,color:"white",className:y,closable:x,onClose:w},C=f[0],O=u()(s)?s:e=>({isRenderInTag:!0,content:p()(e,h,null)});if(u()(O)){let{content:e,isRenderInTag:n}=C?O(C,{index:t,onClose:w}):{};return n?S.createElement(D.Z,Object.assign({},E),e):e}return S.createElement(D.Z,Object.assign({},E),g)},this.renderTagInput=e=>{let{disabled:t,size:n,searchAutoFocus:r,placeholder:i,maxTagCount:a,showRestTagsPopover:o,restTagsPopoverProps:l,searchPosition:s,filterTreeNode:c,preventScroll:u}=this.props,{inputValue:d}=this.state,p=c&&s===T.j2.SEARCH_POSITION_TRIGGER?r:void 0;return S.createElement(W.Z,{maxTagCount:a,disabled:t,onInputChange:e=>this.search(e),ref:this.tagInputRef,placeholder:i,value:e,inputValue:d,size:n,showRestTagsPopover:o,restTagsPopoverProps:l,autoFocus:p,renderTagItem:(e,t)=>this.renderTagItem(e,t),onRemove:e=>this.removeTag(e),expandRestTagsOnClick:!1,preventScroll:u})},this.renderInput=()=>{let{searchPlaceholder:e,searchRender:t,showSearchClear:n,searchPosition:r,searchAutoFocus:i,multiple:a,disabled:o,preventScroll:l}=this.props,{inputValue:s,inputTriggerFocus:c}=this.state,u=r===T.j2.SEARCH_POSITION_DROPDOWN,d={value:s,className:k()({[`${ee}-input`]:u,[`${Q}-inputTrigger`]:!u}),preventScroll:l,onChange:e=>this.search(e)},p={showClear:n,prefix:S.createElement(J.Z,null)},h=u?p:{autofocus:i,onFocus:e=>this.foundation.handleInputTriggerFocus(),onBlur:e=>this.foundation.handleInputTriggerBlur(),disabled:o},f=k()({[`${ee}-search-wrapper`]:u,[`${Q}-triggerSingleSearch-wrapper`]:!u&&!a,[`${Q}-triggerSingleSearch-upper`]:!u&&c}),g="function"==typeof t||"boolean"==typeof t;return g&&!t?null:S.createElement("div",{className:f},S.createElement(V.Z,{componentName:"TreeSelect"},n=>{let r=u?e||n.searchPlaceholder:"";return g?t(Object.assign(Object.assign(Object.assign({},h),d),{placeholder:r})):S.createElement(A.Z,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:r},d,h))}))},this.renderEmpty=()=>{let{emptyContent:e}=this.props;return null===e?null:e?S.createElement($.Z,{empty:!0,emptyContent:this.props.emptyContent}):S.createElement(V.Z,{componentName:"Tree"},e=>S.createElement($.Z,{empty:!0,emptyContent:e.emptyText}))},this.onNodeLoad=e=>new Promise(t=>this.foundation.setLoadKeys(e,t)),this.onNodeSelect=(e,t)=>{this.foundation.handleNodeSelect(e,t)},this.onNodeCheck=(e,t)=>{this.foundation.handleNodeSelect(e,t)},this.onNodeExpand=(e,t)=>{this.foundation.handleNodeExpand(e,t)},this.getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,checkedKeys:n,halfCheckedKeys:r,keyEntities:i,filteredKeys:a}=this.state;return{expandedKeys:e||new Set,selectedKeys:t||[],checkedKeys:n||new Set,halfCheckedKeys:r||new Set,filteredKeys:a||new Set,keyEntities:i}},this.getTreeNodeKey=e=>{let{data:t}=e,{key:n}=t;return n},this.handlePopoverVisibleChange=e=>{this.foundation.handlePopoverVisibleChange(e)},this.afterClose=()=>{this.foundation.handleAfterClose()},this.renderTreeNode=(e,t,n)=>{let{data:r,key:a}=e,o=this.foundation.getTreeNodeProps(a),{showLine:l}=this.props;if(!o)return null;let c=i()(e,["key","label","disabled","isLeaf","icon","isEnd"]),{keyMaps:u,expandIcon:d}=this.props,h=r[p()(u,"children","children")];return s()(h)||(c.children=h),S.createElement($.Z,Object.assign({},o,r,c,{data:r,style:n,showLine:l,expandIcon:d}))},this.itemKey=(e,t)=>{let{visibleOptions:n}=t;return n[e].key},this.renderNodeList=()=>{let{flattenNodes:e,cachedFlattenNodes:t,motionKeys:n,motionType:r,filteredKeys:i}=this.state,{direction:a}=this.context,{virtualize:o,motionExpand:l}=this.props,s="expandedKeys"in this.props;if(!o||m()(o))return S.createElement(M.Z,{flattenNodes:e,flattenList:t,motionKeys:l?n:new Set([]),motionType:r,searchTargetIsDeep:s&&l&&m()(n)&&!m()(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});let c={visibleOptions:e,renderOption:this.renderTreeNode};return S.createElement(K.Z,{defaultHeight:o.height,defaultWidth:o.width},t=>{let{height:n,width:r}=t;return S.createElement(R.t7,{itemCount:e.length,itemSize:o.itemSize,height:n,width:r,itemKey:this.itemKey,itemData:c,className:`${ee}-virtual-list`,style:{direction:a}},Y.Z)})},this.renderTree=()=>{let{keyEntities:e,motionKeys:t,motionType:n,inputValue:r,filteredKeys:i,flattenNodes:a,checkedKeys:o,realCheckedKeys:l}=this.state,{loadData:s,filterTreeNode:c,disabled:u,multiple:d,showFilteredOnly:p,motionExpand:h,outerBottomSlot:g,outerTopSlot:y,expandAction:v,labelEllipsis:b,virtualize:x,optionListStyle:w,searchPosition:E,renderLabel:C,renderFullLabel:O,checkRelation:P,emptyContent:N}=this.props,j=k()(`${ee}-wrapper`),R=!!r&&!i.size,I=m()(a)||p&&R,L=E===T.j2.SEARCH_POSITION_DROPDOWN,_=k()(`${ee}-option-list ${ee}-option-list-block`,{[`${ee}-option-list-hidden`]:null===N&&I});return S.createElement(Z.Z.Provider,{value:{loadData:s,treeDisabled:u,motion:h,motionKeys:t,motionType:n,expandAction:v,filterTreeNode:c,keyEntities:e,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:f(),onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:d,showFilteredOnly:p,isSearching:!!r,renderLabel:C,renderFullLabel:O,labelEllipsis:void 0===b?x:b}},S.createElement("div",{className:j},y,!y&&c&&L&&this.renderInput(),S.createElement("div",{className:_,role:"tree","aria-multiselectable":!!d,style:w},I?this.renderEmpty():d?S.createElement(U.Z,{value:Array.from("related"===P?o:l)},this.renderNodeList()):this.renderNodeList()),g))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:0,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],cachedFlattenNodes:void 0,selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=S.createRef(),this.tagInputRef=S.createRef(),this.triggerRef=S.createRef(),this.optionsRef=S.createRef(),this.clickOutsideHandler=null,this.foundation=new P.Z(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}}et.contextType=L.Z,et.propTypes={"aria-describedby":O().string,"aria-errormessage":O().string,"aria-invalid":O().bool,"aria-labelledby":O().string,"aria-required":O().bool,borderless:O().bool,loadedKeys:O().arrayOf(O().string),loadData:O().func,onLoad:O().func,arrowIcon:O().node,clearIcon:O().node,defaultOpen:O().bool,defaultValue:O().oneOfType([O().string,O().array,O().object]),defaultExpandAll:O().bool,defaultExpandedKeys:O().array,expandAll:O().bool,disabled:O().bool,disableStrictly:O().bool,filterTreeNode:O().oneOfType([O().func,O().bool]),multiple:O().bool,searchPlaceholder:O().string,searchAutoFocus:O().bool,virtualize:O().object,treeNodeFilterProp:O().string,onChange:O().func,onClear:O().func,onSearch:O().func,onSelect:O().func,onExpand:O().func,onChangeWithObject:O().bool,onBlur:O().func,onFocus:O().func,value:O().oneOfType([O().string,O().number,O().array,O().object]),expandedKeys:O().array,autoExpandParent:O().bool,showClear:O().bool,showSearchClear:O().bool,autoAdjustOverflow:O().bool,showFilteredOnly:O().bool,showLine:O().bool,motionExpand:O().bool,emptyContent:O().node,keyMaps:O().object,leafOnly:O().bool,treeData:O().arrayOf(O().shape({key:O().string,value:O().oneOfType([O().string,O().number]),label:O().any})),dropdownClassName:O().string,dropdownStyle:O().object,dropdownMargin:O().oneOfType([O().number,O().object]),motion:O().bool,placeholder:O().string,maxTagCount:O().number,size:O().oneOf(T.j2.SIZE_SET),className:O().string,style:O().object,treeNodeLabelProp:O().string,suffix:O().node,prefix:O().node,insetLabel:O().node,insetLabelId:O().string,zIndex:O().number,getPopupContainer:O().func,dropdownMatchSelectWidth:O().bool,validateStatus:O().oneOf(T.j2.STATUS),mouseEnterDelay:O().number,mouseLeaveDelay:O().number,triggerRender:O().func,stopPropagation:O().oneOfType([O().bool,O().string]),outerBottomSlot:O().node,outerTopSlot:O().node,onVisibleChange:O().func,expandAction:O().oneOf(["click","doubleClick",!1]),searchPosition:O().oneOf([T.j2.SEARCH_POSITION_DROPDOWN,T.j2.SEARCH_POSITION_TRIGGER]),clickToHide:O().bool,renderLabel:O().func,renderFullLabel:O().func,labelEllipsis:O().bool,optionListStyle:O().object,searchRender:O().oneOfType([O().func,O().bool]),renderSelectedItem:O().func,checkRelation:O().string,"aria-label":O().string,showRestTagsPopover:O().bool,restTagsPopoverProps:O().object,preventScroll:O().bool,clickTriggerToHide:O().bool,autoMergeValue:O().bool},et.defaultProps={borderless:!1,searchPosition:T.j2.SEARCH_POSITION_DROPDOWN,arrowIcon:S.createElement(B.Z,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:j.KT.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:f(),expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0,autoMergeValue:!0},t.Z=et},392129:function(e,t,n){"use strict";var r=n(372653),i=n(640269),a=n(18656),o=n(506688),l=n(160552);let s=r.Z;s.Text=i.Z,s.Title=a.Z,s.Paragraph=o.Z,s.Numeral=l.Z,t.Z=s},732399:function(e,t,n){"use strict";n.d(t,{m:function(){return r}}),n(414931);let r=e=>{if(isNaN(e))return"00:00";let t=Math.floor(e/3600);if(t>0){let n=Math.floor((e-3600*t)/60),r=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}{let t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}}},538979:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(480333),i=n(835054);class a{reset(){this.sequenceNumber=0,this.timescale=0,this.sampleDuration=0,this.sampleRate=0,this.channelCount=0,this.baseMediaDecodeTime=0,this.present=!1,this.pid=-1,this.codec="",this.samples=[],this.config=[],this.warnings=[]}exist(){return!!(this.sampleRate&&this.channelCount&&(this.codec||this.container)&&(this.codecType===i.yQ.AAC||this.codecType===i.yQ.G711PCMA||this.codecType===i.yQ.G711PCMU||this.codecType===i.yQ.OPUS||this.codecType===i.yQ.MP3))}hasSample(){return!!this.samples.length}get isEncryption(){return this.isAudioEncryption}get firstDts(){return this.samples.length?this.samples[0].dts:null}get firstPts(){return this.samples.length?this.samples[0].pts:null}get samplesDuration(){if(this.samples.length>0){let e=this.samples[0],t=this.samples[this.samples.length-1];return t.dts-e.dts+t.duration}return 0}constructor(){(0,r._)(this,"id",2),(0,r._)(this,"type",i.Vc.AUDIO),(0,r._)(this,"codecType",i.yQ.AAC),(0,r._)(this,"pid",-1),(0,r._)(this,"codec",""),(0,r._)(this,"container",""),(0,r._)(this,"sequenceNumber",0),(0,r._)(this,"sampleDuration",0),(0,r._)(this,"timescale",0),(0,r._)(this,"formatTimescale",0),(0,r._)(this,"baseMediaDecodeTime",0),(0,r._)(this,"duration",0),(0,r._)(this,"warnings",[]),(0,r._)(this,"samples",[]),(0,r._)(this,"baseDts",0),(0,r._)(this,"sampleSize",16),(0,r._)(this,"sampleRate",0),(0,r._)(this,"channelCount",0),(0,r._)(this,"objectType",0),(0,r._)(this,"sampleRateIndex",0),(0,r._)(this,"config",[]),(0,r._)(this,"present",!1),(0,r._)(this,"isVideoEncryption",!1),(0,r._)(this,"isAudioEncryption",!1),(0,r._)(this,"kid",null),(0,r._)(this,"ext",void 0)}}},499401:function(e,t,n){"use strict";n.d(t,{y:function(){return l}});var r=n(480333);n(490629);var i=n(685334),a=n(990958),o=n(216308);class l extends o.Z{get currentKBps(){let e=0,t=0;for(let n of this.samplers.values())e+=n.currentKBps,t+=1;return Math.floor(e/t)}get averageKBps(){let e=0,t=0;for(let n of this.samplers.values())e+=n.averageKBps,t+=1;return Math.floor(e/t)}get gapTotalBytes(){let e=0;for(let t of this.samplers.values())e+=t.gapTotalBytes;return e}start(e){var t;null===(t=this.getSampler(e||a.L2.CDN))||void 0===t||t.start()}end(e){var t;null===(t=this.getSampler(e||a.L2.CDN))||void 0===t||t.end()}addBytes(e,t){let n=this.samplers.get(t||a.L2.CDN);n&&n.addBytes(e)}getSampler(e){return this.samplers.get(e||a.L2.CDN)}addSample(e){var t;null===(t=this.getSampler(e||a.L2.CDN))||void 0===t||t.addSample()}getCurrentKBps(e){var t;return(null===(t=this.getSampler(e))||void 0===t?void 0:t.currentKBps)||0}getAverageKBpsBy(e){var t;return(null===(t=this.getSampler(e))||void 0===t?void 0:t.averageKBps)||0}getGapTotalBytes(e){var t;return(null===(t=this.getSampler(e||a.L2.CDN))||void 0===t?void 0:t.gapTotalBytes)||0}reset(){for(let e of this.samplers.values())e.reset()}destroy(){if(this.samplers.size>0){for(let e of this.samplers.values())e.off("sample",this.emitSampleEvent),e.destroy();this.samplers.clear()}}constructor(){for(let e of(super(),(0,r._)(this,"samplers",new Map),(0,r._)(this,"emitSampleEvent",e=>{this.emit("sample",e)}),Object.keys(a.L2).forEach(e=>{let t=e.toLowerCase();this.samplers.set(t,new i.E(t))}),this.samplers.values()))e.on("sample",this.emitSampleEvent)}}},351741:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n(490629),n(104882);var r=n(856445);class i extends r.Z{constructor(){super(...arguments),this.changeSliderValue=e=>{let{zoom:t,step:n,min:r,max:i}=this.getProps(),a="plus"===e?t+n:t-n;a>i?a=i:a{let{onZoomIn:t,onZoomOut:n,zoom:r}=this.getProps();e>r?t(Number((e/100).toFixed(2))):n(Number((e/100).toFixed(2)))},this.handleRatioClick=()=>{let{ratio:e,onAdjustRatio:t}=this.getProps();t("adaptation"===e?"realSize":"adaptation")},this.handleRotate=e=>{let{onRotate:t}=this.getProps();t&&t(e)}}}},627658:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n(932651);var r=n(856445);class i extends r.Z{init(){let e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){let e;let{value:t,defaultValue:n}=this.getProps();return"value"in this.getProps()?e=t:"defaultValue"in this.getProps()&&(e=n),e}handleChange(e){let t=this.getProp("mode"),n=this.getState("value"),{checked:r,value:i}=e.target,a=this._adapter.isInProps("value"),o=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});"advanced"===t&&!r&&(o.target.value=void 0),!a&&("advanced"!==t||r?this._setValue(i):this._setValue(void 0)),("advanced"===t||n!==i)&&this._adapter.notifyChange(o)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}constructor(e){super(Object.assign({},e))}}},696128:function(e,t,n){"use strict";n.d(t,{W:function(){return l}}),n(490629),n(518330);var r=n(320165),i=n(705998),a=n(101199),o=n(509608);function l(e){let{chapters:t,showPaidDot:n,previewPaidTime:l}=e;t=t||[];let[s,c]=(0,a.useState)(),[u,d]=(0,a.useState)(0),{playerRef:p}=(0,a.useContext)(o.E),h=(0,i.DM)(e=>{let n=t.findLast(t=>e>t.timestamp);c(null==n?void 0:n.desc)}),f=(0,r.jsx)("div",{className:"douyin-player-progress-chapter",children:(0,r.jsx)("div",{className:"douyin-player-progress-chapter-inner",children:(0,r.jsx)("span",{className:"douyin-player-progress-chapter-text",children:s})})}),g=(0,r.jsxs)(r.Fragment,{children:[t.map(e=>(0,r.jsx)("div",{"data-time":e.timestamp,className:"douyin-player-progress-chapter-dot",style:{left:e.timestamp/u*100+"%"}},e.timestamp)),n&&l&&(0,r.jsx)("div",{"data-time":l,className:"douyin-player-progress-pay-dot",style:{left:l/u*100+"%"}})]});return(0,o.T)(()=>{let e=p.current,t=()=>{var e;d(1e3*((null===(e=p.current)||void 0===e?void 0:e.duration)||0))};return e.on("durationchange",t),()=>{var e;null===(e=p.current)||void 0===e||e.off("durationchange",t)}}),{updateChapter:h,ChapterNode:s?f:null,DotsNode:t.length>0||n&&l?g:null}}},859234:function(e,t,n){"use strict";let r;n.d(t,{q:function(){return o},w:function(){return i}});let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return`${t?".":""}douyin-player-${e}`};let a=()=>(!r&&(r=document.createElement("template")),r),o=e=>{let t=a();return t.innerHTML=e,t.content.firstElementChild}},496556:function(e,t,n){"use strict";n.d(t,{p:function(){return r}}),n(302356),n(656562),n(992871),n(490629);function r(e,t){!function(e,t){let n=globalThis.URL||globalThis.webkitURL,r=e.type,i="application/octet-stream";r&&r!=i&&(e=(e.slice||e.webkitSlice||e.mozSlice).call(e,0,e.size,i));let a=n.createObjectURL(e),o=document.createElementNS("http://www.w3.org/1999/xhtml","a");o.href=a,o.download=t,o.rel="noopener",!function(e){let t;try{t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})}catch(e){(t=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null)}e.dispatchEvent(t)}(o),setTimeout(()=>{n.revokeObjectURL(a)},1e4)}(new Blob([t],{type:"text/plain"}),e)}},153526:function(e,t,n){"use strict";n(679308),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,784141)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,522573)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,735608)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,825710)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,671195)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,66425)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,787831)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,595980)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,619619)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,138440)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,915669)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,571508)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,869275)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,26604)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,415134)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,945173)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,621401)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,695755)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,526317)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,530266)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,586441)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,983190)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,304495)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,310443)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,105345)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,180388)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,766903)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,364759)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,631214)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,24913)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,893933)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,140939)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,524491)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,315659)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,51600)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,522030)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,865525)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,593870)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,130289)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,497409)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,631056)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,588386)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,93458)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,225479)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,769591)),Promise.all([n.e("74792"),n.e("41162"),n.e("42794"),n.e("27195"),n.e("51163")]).then(n.bind(n,124653))},753378:function(e,t,n){"use strict";n(679308),n.e("41107").then(n.bind(n,405062))},282875:function(e,t,n){"use strict";function r(e,t){if(void 0===e)throw TypeError("attempted to "+t+" private static field before its declaration")}n.d(t,{_:function(){return r}})},189566:function(e,t,n){"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{_:function(){return r}})},54212:function(e,t,n){"use strict";n.d(t,{g:function(){return l}});var r=n(882742),i=n(261626),a=n(99186);let o=/@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;function l(e,t){let n=t||{},i="automatic"===n.runtime,l={},d={};(0,a._)(e,{enter(e){if("Program"===e.type){let t=e.comments||[],n=-1;for(;++n0){let r=0;for(;r0&&f.push({type:"Property",key:{type:"Identifier",name:"children"},value:p.length>1?{type:"ArrayExpression",elements:p}:p[0],kind:"init",method:!1,shorthand:!1,computed:!1}):g=p,i){g.push({type:"ObjectExpression",properties:f}),a?g.push(a):n.development&&g.push({type:"Identifier",name:"undefined"});let t=p.length>1;if(n.development){d.jsxDEV=!0,o={type:"Identifier",name:"_jsxDEV"},g.push({type:"Literal",value:t});let r={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:n.filePath||""}}]};e.loc&&r.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:e.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:e.loc.start.column+1}}),g.push(r,{type:"ThisExpression"})}else t?(d.jsxs=!0,o={type:"Identifier",name:"_jsxs"}):(d.jsx=!0,o={type:"Identifier",name:"_jsx"})}else f.length>0?g.unshift({type:"ObjectExpression",properties:f}):g.length>0&&g.unshift({type:"Literal",value:null}),o=c(l.jsx||n.pragma||"React.createElement");g.unshift(t);let m={type:"CallExpression",callee:o,arguments:g,optional:!1};u(e,m),this.replace(m)}})}function s(e){let t;if("JSXMemberExpression"===e.type){let n=s(e.property);t={type:"MemberExpression",object:s(e.object),property:n,computed:"Literal"===n.type,optional:!1}}else t="JSXNamespacedName"===e.type?{type:"Literal",value:e.namespace.name+":"+e.name.name}:(0,i.u2)(e.name)?{type:"Identifier",name:e.name}:{type:"Literal",value:e.name};return u(e,t),t}function c(e){let t;let n=e.split("."),a=-1;for(;++at.length;o&&t.push(r);try{a=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}!o&&(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){!n&&(n=!0,t(e,...i))}function i(e){r(null,e)}})(l,i)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}n.d(t,{r:function(){return r}})},339808:function(e,t,n){"use strict";n.r(t),n.d(t,{N:function(){return f},O:function(){return E},R:function(){return m},a:function(){return v},b:function(){return S},c:function(){return k},d:function(){return w},u:function(){return b}}),n(490629),n(362051),n(683656),n(759943),n(374954),n(112459),n(679308);var r,i=n(650639),a=n(101199);let o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:l,useEffect:s,useLayoutEffect:c,useDebugValue:u}=r||(r=n.t(a,2));function d(e){let t=e.getSnapshot,n=e.value;try{let e=t();return!o(n,e)}catch(e){return!0}}let p=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),h=p?function(e,t,n){let r=t(),[{inst:i},a]=l({inst:{value:r,getSnapshot:t}});return c(()=>{i.value=r,i.getSnapshot=t,d(i)&&a({inst:i})},[e,r,t]),s(()=>(d(i)&&a({inst:i}),e(()=>{d(i)&&a({inst:i})})),[e]),u(r),r}:function(e,t,n){return t()};"useSyncExternalStore"in(r||(r=n.t(a,2)))&&(r||(r=n.t(a,2))).useSyncExternalStore;let f=a.createContext(null),g=a.createContext(null),m=a.createContext({outlet:null,matches:[]});function y(){return null!=a.useContext(g)}function v(){return y()||(0,i.i)(!1),a.useContext(g).location}function b(){y()||(0,i.i)(!1);let{basename:e,navigator:t}=a.useContext(f),{matches:n}=a.useContext(m),{pathname:r}=v(),o=JSON.stringify((0,i.a)(n).map(e=>e.pathnameBase)),l=a.useRef(!1);return a.useEffect(()=>{l.current=!0}),a.useCallback(function(n,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof n){t.go(n);return}let s=(0,i.r)(n,JSON.parse(o),r,"path"===a.relative);"/"!==e&&(s.pathname="/"===s.pathname?e:(0,i.j)([e,s.pathname])),(a.replace?t.replace:t.push)(s,a.state,a)},[e,t,o,r])}let x=a.createContext(null);function S(e){let t=a.useContext(m).outlet;return t?a.createElement(x.Provider,{value:e},t):t}function w(){let{matches:e}=a.useContext(m),t=e[e.length-1];return t?t.params:{}}function E(e){return S(e.context)}function k(e){let{basename:t="/",children:n=null,location:r,navigationType:o=i.A.Pop,navigator:l,static:s=!1}=e;y()&&(0,i.i)(!1);let c=t.replace(/^\/*/,"/"),u=a.useMemo(()=>({basename:c,navigator:l,static:s}),[c,l,s]);"string"==typeof r&&(r=(0,i.p)(r));let{pathname:d="/",search:p="",hash:h="",state:m=null,key:v="default"}=r,b=a.useMemo(()=>{let e=(0,i.s)(d,c);return null==e?null:{pathname:e,search:p,hash:h,state:m,key:v}},[c,d,p,h,m,v]);return null==b?null:a.createElement(f.Provider,{value:u},a.createElement(g.Provider,{children:n,value:{location:b,navigationType:o}}))}new Promise(()=>{})}}]);