misaki-studio-internal 0.1.23 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("next/router"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","next/router","react-dom"],t);else{var n="object"==typeof exports?t(require("react"),require("next/router"),require("react-dom")):t(e.react,e["next/router"],e["react-dom"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(e,t,n)=>(()=>{var r,o,i={12(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15(e,t,n){"use strict";var r=n(516),o=n(12),i=n(536),a=n(343),s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(987));s.Axios=i,s.Cancel=n(928),s.CancelToken=n(191),s.isCancel=n(864),s.VERSION=n(641).version,s.all=function(e){return Promise.all(e)},s.spread=n(980),s.isAxiosError=n(19),e.exports=s,e.exports.default=s},18(e,t,n){"use strict";var r=n(516);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},19(e,t,n){"use strict";var r=n(516);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},56(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},72(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var u=e[s],c=r.base?u[0]+r.base:u[0],l=i[c]||0,f="".concat(c," ").concat(l);i[c]=l+1;var p=n(f),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var d=o(h,r);r.byIndex=s,t.splice(s,0,{identifier:f,updater:d,references:1})}a.push(f)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var u=r(e,o),c=0;c<i.length;c++){var l=n(i[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=u}}},106(e,t,n){"use strict";var r=n(516);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},137(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},155(t){"use strict";t.exports=e},191(e,t,n){"use strict";var r=n(928);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,r=new Promise(function(e){n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},202(e,t,n){"use strict";var r=n(516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},343(e,t,n){"use strict";var r=n(516);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function u(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==u||(n[e]=o)}),n}},449(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},471(e,t,n){"use strict";var r=n(516);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},490(e,t,n){"use strict";var r=n(516),o=n(881),i=n(864),a=n(987),s=n(928);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},505(e,t,n){e.exports=n(15)},514(e){"use strict";e.exports=n},516(e,t,n){"use strict";var r=n(12),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===o.call(e)}function u(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===o.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return u(e)&&l(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===o.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:f,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)f(arguments[r],n);return t},extend:function(e,t,n){return f(t,function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},522(e,t,n){"use strict";var r=n(763);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},531(e){"use strict";e.exports=t},536(e,t,n){"use strict";var r=n(516),o=n(106),i=n(471),a=n(490),s=n(343),u=n(841),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))});var i,l=[];if(this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)}),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var p=t;r.length;){var h=r.shift(),d=r.shift();try{p=h(p)}catch(e){d(e);break}}try{i=a(p)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},l.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=l},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},543(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,h=4294967295,d=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",E="[object Map]",x="[object Number]",S="[object Object]",T="[object Promise]",R="[object RegExp]",A="[object Set]",O="[object String]",I="[object Symbol]",C="[object WeakMap]",L="[object ArrayBuffer]",N="[object DataView]",k="[object Float32Array]",P="[object Float64Array]",j="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",$="[object Uint8Array]",z="[object Uint8ClampedArray]",B="[object Uint16Array]",U="[object Uint32Array]",F=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(H.source),X=RegExp(Y.source),V=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="["+we+"]",Ie="["+Ae+"]",Ce="["+Ee+"]",Le="\\d+",Ne="["+xe+"]",ke="["+Se+"]",Pe="[^"+we+Ae+Le+xe+Se+Te+"]",je="\\ud83c[\\udffb-\\udfff]",De="[^"+we+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",$e="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Te+"]",Be="\\u200d",Ue="(?:"+ke+"|"+Pe+")",Fe="(?:"+ze+"|"+Pe+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Ce+"|"+je+")?",Ye="["+Re+"]?",Ge=Ye+He+"(?:"+Be+"(?:"+[De,Me,$e].join("|")+")"+Ye+He+")*",Xe="(?:"+[Ne,Me,$e].join("|")+")"+Ge,Ve="(?:"+[De+Ce+"?",Ce,Me,$e,Oe].join("|")+")",Ze=RegExp("['’]","g"),Ke=RegExp(Ce,"g"),Je=RegExp(je+"(?="+je+")|"+Ve+Ge,"g"),Qe=RegExp([ze+"?"+ke+"+"+We+"(?="+[Ie,ze,"$"].join("|")+")",Fe+"+"+qe+"(?="+[Ie,ze+Ue,"$"].join("|")+")",ze+"?"+Ue+"+"+We,ze+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Xe].join("|"),"g"),et=RegExp("["+Be+we+Ee+Re+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[k]=ot[P]=ot[j]=ot[D]=ot[M]=ot[$]=ot[z]=ot[B]=ot[U]=!0,ot[m]=ot[g]=ot[L]=ot[v]=ot[N]=ot[y]=ot[b]=ot[_]=ot[E]=ot[x]=ot[S]=ot[R]=ot[A]=ot[O]=ot[C]=!1;var it={};it[m]=it[g]=it[L]=it[N]=it[v]=it[y]=it[k]=it[P]=it[j]=it[D]=it[M]=it[E]=it[x]=it[S]=it[R]=it[A]=it[O]=it[I]=it[$]=it[z]=it[B]=it[U]=!0,it[b]=it[_]=it[C]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),pt=t&&!t.nodeType&&t,ht=pt&&e&&!e.nodeType&&e,dt=ht&&ht.exports===pt,mt=dt&&ct.process,gt=function(){try{return ht&&ht.require&&ht.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&&gt.isArrayBuffer,yt=gt&&gt.isDate,bt=gt&&gt.isMap,_t=gt&&gt.isRegExp,wt=gt&&gt.isSet,Et=gt&&gt.isTypedArray;function xt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function It(e,t){return!(null==e||!e.length)&&zt(e,t,0)>-1}function Ct(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Lt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Nt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function kt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Pt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function jt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Dt=Wt("length");function Mt(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function $t(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function zt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):$t(e,Ut,n)}function Bt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ut(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function Wt(e){return function(t){return null==t?o:t[e]}}function qt(e){return function(t){return null==e?o:e[t]}}function Ht(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Xt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Zt(e,t){return Lt(t,function(t){return e[t]})}function Kt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var en=qt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=qt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function un(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function ln(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Dt(e)}function fn(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var hn=qt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),dn=function e(t){var n,r=(t=null==t?ft:dn.defaults(ft.Object(),t,dn.pick(ft,nt))).Array,oe=t.Date,we=t.Error,Ee=t.Function,xe=t.Math,Se=t.Object,Te=t.RegExp,Re=t.String,Ae=t.TypeError,Oe=r.prototype,Ie=Ee.prototype,Ce=Se.prototype,Le=t["__core-js_shared__"],Ne=Ie.toString,ke=Ce.hasOwnProperty,Pe=0,je=(n=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Ce.toString,Me=Ne.call(Se),$e=ft._,ze=Te("^"+Ne.call(ke).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=dt?t.Buffer:o,Ue=t.Symbol,Fe=t.Uint8Array,We=Be?Be.allocUnsafe:o,qe=an(Se.getPrototypeOf,Se),He=Se.create,Ye=Ce.propertyIsEnumerable,Ge=Oe.splice,Xe=Ue?Ue.isConcatSpreadable:o,Ve=Ue?Ue.iterator:o,Je=Ue?Ue.toStringTag:o,et=function(){try{var e=ci(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=xe.ceil,ht=xe.floor,mt=Se.getOwnPropertySymbols,gt=Be?Be.isBuffer:o,Dt=t.isFinite,qt=Oe.join,mn=an(Se.keys,Se),gn=xe.max,vn=xe.min,yn=oe.now,bn=t.parseInt,_n=xe.random,wn=Oe.reverse,En=ci(t,"DataView"),xn=ci(t,"Map"),Sn=ci(t,"Promise"),Tn=ci(t,"Set"),Rn=ci(t,"WeakMap"),An=ci(Se,"create"),On=Rn&&new Rn,In={},Cn=Mi(En),Ln=Mi(xn),Nn=Mi(Sn),kn=Mi(Tn),Pn=Mi(Rn),jn=Ue?Ue.prototype:o,Dn=jn?jn.valueOf:o,Mn=jn?jn.toString:o;function $n(e){if(es(e)&&!Wa(e)&&!(e instanceof Fn)){if(e instanceof Un)return e;if(ke.call(e,"__wrapped__"))return $i(e)}return new Un(e)}var zn=function(){function e(){}return function(t){if(!Qa(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Bn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Fn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new qn(e);this.size=t.size}function Xn(e,t){var n=Wa(e),r=!n&&Fa(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Gt(e.length,Re):[],u=s.length;for(var c in e)!t&&!ke.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gi(c,u))||s.push(c);return s}function Vn(e){var t=e.length;return t?e[Hr(0,t-1)]:o}function Zn(e,t){return Ni(Ao(e),ir(t,0,e.length))}function Kn(e){return Ni(Ao(e))}function Jn(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&rr(e,t,n)}function Qn(e,t,n){var r=e[t];ke.call(e,t)&&za(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,function(e,o,i){t(r,e,n(e),i)}),r}function nr(e,t){return e&&Oo(t,Cs(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Ts(e,t[n]);return a}function ir(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ar(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Qa(e))return e;var f=Wa(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Ao(e,s)}else{var p=pi(e),h=p==_||p==w;if(Ga(e))return wo(e,u);if(p==S||p==m||h&&!i){if(s=c||h?{}:di(e),!u)return c?function(e,t){return Oo(e,fi(e),t)}(e,function(e,t){return e&&Oo(t,Ls(t),e)}(s,e)):function(e,t){return Oo(e,li(e),t)}(e,nr(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case L:return Eo(e);case v:case y:return new o(+e);case N:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case P:case j:case D:case M:case $:case z:case B:case U:return xo(e,n);case E:return new o;case x:case O:return new o(e);case R:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new o;case I:return r=e,Dn?Se(Dn.call(r)):{}}}(e,p,u)}}a||(a=new Gn);var d=a.get(e);if(d)return d;a.set(e,s),is(e)?e.forEach(function(r){s.add(ar(r,t,n,r,e,a))}):ts(e)&&e.forEach(function(r,o){s.set(o,ar(r,t,n,o,e,a))});var g=f?o:(l?c?ni:ti:c?Ls:Cs)(e);return Tt(g||e,function(r,o){g&&(r=e[o=r]),Qn(s,o,ar(r,t,n,o,e,a))}),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ae(i);return Oi(function(){e.apply(o,n)},t)}function cr(e,t,n,r){var o=-1,i=It,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Lt(t,Vt(n))),r?(i=Ct,a=!1):t.length>=200&&(i=Kt,a=!1,t=new Yn(t));e:for(;++o<s;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else i(t,f,r)||u.push(l)}return u}$n.templateSettings={escape:V,evaluate:Z,interpolate:K,variable:"",imports:{_:$n}},$n.prototype=Bn.prototype,$n.prototype.constructor=$n,Un.prototype=zn(Bn.prototype),Un.prototype.constructor=Un,Fn.prototype=zn(Bn.prototype),Fn.prototype.constructor=Fn,Wn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===a?o:n}return ke.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return An?t[e]!==o:ke.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},qn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return er(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(xn||qn),string:new Wn}},Hn.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return si(this,e).get(e)},Hn.prototype.has=function(e){return si(this,e).has(e)},Hn.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new qn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var lr=Lo(yr),fr=Lo(br,!0);function pr(e,t){var n=!0;return lr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!ss(s):n(s,u)))var u=s,c=a}return c}function dr(e,t){var n=[];return lr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):Nt(o,s):r||(o[o.length]=s)}return o}var gr=No(),vr=No(!0);function yr(e,t){return e&&gr(e,t,Cs)}function br(e,t){return e&&vr(e,t,Cs)}function _r(e,t){return Ot(t,function(t){return Za(e[t])})}function wr(e,t){for(var n=0,r=(t=vo(t,e)).length;null!=e&&n<r;)e=e[Di(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Wa(e)?r:Nt(r,n(e))}function xr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in Se(e)?function(e){var t=ke.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var i=De.call(e);return r&&(t?e[Je]=n:delete e[Je]),i}(e):function(e){return De.call(e)}(e)}function Sr(e,t){return e>t}function Tr(e,t){return null!=e&&ke.call(e,t)}function Rr(e,t){return null!=e&&t in Se(e)}function Ar(e,t,n){for(var i=n?Ct:It,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Lt(p,Vt(t))),l=vn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Yn(u&&p):o}p=e[0];var h=-1,d=c[0];e:for(;++h<a&&f.length<l;){var m=p[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(d?Kt(d,g):i(f,g,n))){for(u=s;--u;){var v=c[u];if(!(v?Kt(v,g):i(e[u],g,n)))continue e}d&&d.push(g),f.push(m)}}return f}function Or(e,t,n){var r=null==(e=Ti(e,t=vo(t,e)))?e:e[Di(Vi(t))];return null==r?o:xt(r,e,n)}function Ir(e){return es(e)&&xr(e)==m}function Cr(e,t,n,r,i){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Wa(e),u=Wa(t),c=s?g:pi(e),l=u?g:pi(t),f=(c=c==m?S:c)==S,p=(l=l==m?S:l)==S,h=c==l;if(h&&Ga(e)){if(!Ga(t))return!1;s=!0,f=!1}if(h&&!f)return a||(a=new Gn),s||us(e)?Qo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!i(new Fe(e),new Fe(t)));case v:case y:case x:return za(+e,+t);case b:return e.name==t.name&&e.message==t.message;case R:case O:return e==t+"";case E:var s=on;case A:var u=1&r;if(s||(s=un),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Qo(s(e),s(t),r,o,i,a);return a.delete(e),l;case I:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var d=f&&ke.call(e,"__wrapped__"),_=p&&ke.call(t,"__wrapped__");if(d||_){var w=d?e.value():e,T=_?t.value():t;return a||(a=new Gn),i(w,T,n,r,a)}}return!!h&&(a||(a=new Gn),function(e,t,n,r,i,a){var s=1&n,u=ti(e),c=u.length;if(c!=ti(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:ke.call(t,f)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var d=!0;a.set(e,t),a.set(t,e);for(var m=s;++l<c;){var g=e[f=u[l]],v=t[f];if(r)var y=s?r(v,g,f,t,e,a):r(g,v,f,e,t,a);if(!(y===o?g===v||i(g,v,n,r,a):y)){d=!1;break}m||(m="constructor"==f)}if(d&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,r,i,a))}(e,t,n,r,Cr,i))}function Lr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Se(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var p=new Gn;if(r)var h=r(l,f,c,e,t,p);if(!(h===o?Cr(f,l,3,r,p):h))return!1}}return!0}function Nr(e){return!(!Qa(e)||(t=e,je&&je in t))&&(Za(e)?ze:me).test(Mi(e));var t}function kr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?Wa(e)?$r(e[0],e[1]):Mr(e):fu(e)}function Pr(e){if(!wi(e))return mn(e);var t=[];for(var n in Se(e))ke.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e,t){return e<t}function Dr(e,t){var n=-1,o=Ha(e)?r(e.length):[];return lr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function Mr(e){var t=ui(e);return 1==t.length&&t[0][2]?xi(t[0][0],t[0][1]):function(n){return n===e||Lr(n,e,t)}}function $r(e,t){return yi(e)&&Ei(t)?xi(Di(e),t):function(n){var r=Ts(n,e);return r===o&&r===t?Rs(n,e):Cr(t,r,3)}}function zr(e,t,n,r,i){e!==t&&gr(t,function(a,s){if(i||(i=new Gn),Qa(a))!function(e,t,n,r,i,a,s){var u=Ri(e,n),c=Ri(t,n),l=s.get(c);if(l)Jn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):o,p=f===o;if(p){var h=Wa(c),d=!h&&Ga(c),m=!h&&!d&&us(c);f=c,h||d||m?Wa(u)?f=u:Ya(u)?f=Ao(u):d?(p=!1,f=wo(c,!0)):m?(p=!1,f=xo(c,!0)):f=[]:rs(c)||Fa(c)?(f=u,Fa(u)?f=gs(u):Qa(u)&&!Za(u)||(f=di(c))):p=!1}p&&(s.set(c,f),i(f,c,r,a,s),s.delete(c)),Jn(e,n,f)}}(e,t,s,n,zr,r,i);else{var u=r?r(Ri(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Jn(e,s,u)}},Ls)}function Br(e,t){var n=e.length;if(n)return gi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Lt(t,function(e){return Wa(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e}):[nu];var r=-1;t=Lt(t,Vt(ai()));var o=Dr(e,function(e,n,o){var i=Lt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=So(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(o)}function Fr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=wr(e,a);n(s,a)&&Zr(i,vo(a,e),s)}return i}function Wr(e,t,n,r){var o=r?Bt:zt,i=-1,a=t.length,s=e;for(e===t&&(t=Ao(t)),n&&(s=Lt(e,Vt(n)));++i<a;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(s,l,u,r))>-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;gi(o)?Ge.call(e,o,1):uo(e,o)}}return e}function Hr(e,t){return e+ht(_n()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Ii(Si(e,t,nu),e+"")}function Xr(e){return Vn(zs(e))}function Vr(e,t){var n=zs(e);return Ni(n,ir(t,0,n.length))}function Zr(e,t,n,r){if(!Qa(e))return e;for(var i=-1,a=(t=vo(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=Di(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=Qa(f)?f:gi(t[i+1])?[]:{})}Qn(u,c,l),u=u[c]}return e}var Kr=On?function(e,t){return On.set(e,t),e}:nu,Jr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:nu;function Qr(e){return Ni(zs(e))}function eo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function to(e,t){var n;return lr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ro(e,t,nu,n)}function ro(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=ss(t),l=t===o;i<a;){var f=ht((i+a)/2),p=n(e[f]),h=p!==o,d=null===p,m=p==p,g=ss(p);if(s)var v=r||m;else v=l?m&&(r||h):u?m&&h&&(r||!d):c?m&&h&&!d&&(r||!g):!d&&!g&&(r?p<=t:p<t);v?i=f+1:a=f}return vn(a,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function io(e){return"number"==typeof e?e:ss(e)?p:+e}function ao(e){if("string"==typeof e)return e;if(Wa(e))return Lt(e,ao)+"";if(ss(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=It,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Ct;else if(i>=200){var c=t?null:Go(e);if(c)return un(c);a=!1,o=Kt,u=new Yn}else u=t?[]:s;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else o(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function uo(e,t){return null==(e=Ti(e,t=vo(t,e)))||delete e[Di(Vi(t))]}function co(e,t,n,r){return Zr(e,t,n(wr(e,t)),r)}function lo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?eo(e,r?0:i,r?i+1:o):eo(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof Fn&&(n=n.value()),kt(t,function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))},n)}function po(e,t,n){var o=e.length;if(o<2)return o?so(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=cr(a[i]||s,e[u],t,n));return so(mr(a,1),t,n)}function ho(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function mo(e){return Ya(e)?e:[]}function go(e){return"function"==typeof e?e:nu}function vo(e,t){return Wa(e)?e:yi(e,t)?[e]:ji(vs(e))}var yo=Gr;function bo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:eo(e,t,n)}var _o=at||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Eo(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function xo(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function So(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ss(e),s=t!==o,u=null===t,c=t==t,l=ss(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function To(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=gn(a-s,0),f=r(c+l),p=!o;++u<c;)f[u]=t[u];for(;++i<s;)(p||i<a)&&(f[n[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function Ro(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=gn(a-u,0),p=r(f+l),h=!o;++i<f;)p[i]=e[i];for(var d=i;++c<l;)p[d+c]=t[c];for(;++s<u;)(h||i<a)&&(p[d+n[s]]=e[i++]);return p}function Ao(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Oo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?rr(n,u,c):Qn(n,u,c)}return n}function Io(e,t){return function(n,r){var o=Wa(n)?St:tr,i=t?t():{};return o(n,e,ai(r,2),i)}}function Co(e){return Gr(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&vi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Se(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}function Lo(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Se(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function No(e){return function(t,n,r){for(var o=-1,i=Se(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function ko(e){return function(t){var n=rn(t=vs(t))?fn(t):o,r=n?n[0]:t.charAt(0),i=n?bo(n,1).join(""):t.slice(1);return r[e]()+i}}function Po(e){return function(t){return kt(Zs(Fs(t).replace(Ze,"")),e,"")}}function jo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function Do(e){return function(t,n,r){var i=Se(t);if(!Ha(t)){var a=ai(n,3);t=Cs(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Mo(e){return ei(function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ae(i);if(a&&!u&&"wrapper"==oi(s))var u=new Un([],!0)}for(r=u?r:n;++r<n;){var c=oi(s=t[r]),l="wrapper"==c?ri(s):o;u=l&&bi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oi(l[0])].apply(u,l[3]):1==s.length&&bi(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Wa(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function $o(e,t,n,i,a,s,u,l,f,p){var h=t&c,d=1&t,m=2&t,g=24&t,v=512&t,y=m?o:jo(e);return function c(){for(var b=arguments.length,_=r(b),w=b;w--;)_[w]=arguments[w];if(g)var E=ii(c),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,E);if(i&&(_=To(_,i,a,g)),s&&(_=Ro(_,s,u,g)),b-=x,g&&b<p){var S=sn(_,E);return Ho(e,t,$o,c.placeholder,n,_,S,l,f,p-b)}var T=d?n:this,R=m?T[e]:e;return b=_.length,l?_=function(e,t){for(var n=e.length,r=vn(t.length,n),i=Ao(e);r--;){var a=t[r];e[r]=gi(a,n)?i[a]:o}return e}(_,l):v&&b>1&&_.reverse(),h&&f<b&&(_.length=f),this&&this!==ft&&this instanceof c&&(R=y||jo(R)),R.apply(T,_)}}function zo(e,t){return function(n,r){return function(e,t,n,r){return yr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function Bo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=ao(n),r=ao(r)):(n=io(n),r=io(r)),i=e(n,r)}return i}}function Uo(e){return ei(function(t){return t=Lt(t,Vt(ai())),Gr(function(n){var r=this;return e(t,function(e){return xt(e,r,n)})})})}function Fo(e,t){var n=(t=t===o?" ":ao(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,pt(e/ln(t)));return rn(t)?bo(fn(r),0,e).join(""):r.slice(0,e)}function Wo(e){return function(t,n,i){return i&&"number"!=typeof i&&vi(t,n,i)&&(n=i=o),t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n,o){for(var i=-1,a=gn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ps(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Ho(e,t,n,r,i,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var h=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,l,f],d=n.apply(o,h);return bi(e)&&Ai(d,h),d.placeholder=r,Ci(d,e,t)}function Yo(e){var t=xe[e];return function(e,n){if(e=ms(e),(n=null==n?0:vn(hs(n),292))&&Dt(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=Tn&&1/un(new Tn([,-0]))[1]==l?function(e){return new Tn(e)}:su;function Xo(e){return function(t){var n=pi(t);return n==E?on(t):n==A?cn(t):function(e,t){return Lt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Vo(e,t,n,a,l,f,p,h){var d=2&t;if(!d&&"function"!=typeof e)throw new Ae(i);var m=a?a.length:0;if(m||(t&=-97,a=l=o),p=p===o?p:gn(hs(p),0),h=h===o?h:hs(h),m-=l?l.length:0,64&t){var g=a,v=l;a=l=o}var y=d?o:ri(e),b=[e,t,n,a,l,g,v,f,p,h];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?To(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ro(l,u,t[6]):u,e[6]=l?sn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(h=b[9]=b[9]===o?d?0:e.length:gn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var i=jo(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=ii(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:sn(u,l);return(s-=f.length)<n?Ho(e,t,$o,a.placeholder,o,u,f,o,o,n-s):xt(this&&this!==ft&&this instanceof a?i:e,this,u)}}(e,t,h):t!=u&&33!=t||l.length?$o.apply(o,b):function(e,t,n,o){var i=1&t,a=jo(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=o.length,f=r(l+u),p=this&&this!==ft&&this instanceof t?a:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++s];return xt(p,i?n:this,f)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=jo(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ci((y?Kr:Ai)(_,b),e,t)}function Zo(e,t,n,r){return e===o||za(e,Ce[n])&&!ke.call(r,n)?t:e}function Ko(e,t,n,r,i,a){return Qa(e)&&Qa(t)&&(a.set(t,e),zr(e,t,o,Ko,a),a.delete(t)),e}function Jo(e){return rs(e)?o:e}function Qo(e,t,n,r,i,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,h=!0,d=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++p<u;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,a):r(m,g,p,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(d){if(!jt(t,function(e,t){if(!Kt(d,t)&&(m===e||i(m,e,n,r,a)))return d.push(t)})){h=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ei(e){return Ii(Si(e,o,qi),e+"")}function ti(e){return Er(e,Cs,li)}function ni(e){return Er(e,Ls,fi)}var ri=On?function(e){return On.get(e)}:su;function oi(e){for(var t=e.name+"",n=In[t],r=ke.call(In,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(ke.call($n,"placeholder")?$n:e).placeholder}function ai(){var e=$n.iteratee||ru;return e=e===ru?kr:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Cs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ei(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Nr(n)?n:o}var li=mt?function(e){return null==e?[]:(e=Se(e),Ot(mt(e),function(t){return Ye.call(e,t)}))}:du,fi=mt?function(e){for(var t=[];e;)Nt(t,li(e)),e=qe(e);return t}:du,pi=xr;function hi(e,t,n){for(var r=-1,o=(t=vo(t,e)).length,i=!1;++r<o;){var a=Di(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ja(o)&&gi(a,o)&&(Wa(e)||Fa(e))}function di(e){return"function"!=typeof e.constructor||wi(e)?{}:zn(qe(e))}function mi(e){return Wa(e)||Fa(e)||!!(Xe&&e&&e[Xe])}function gi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!Qa(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&gi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function yi(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||Q.test(e)||!J.test(e)||null!=t&&e in Se(t)}function bi(e){var t=oi(e),n=$n[t];if("function"!=typeof n||!(t in Fn.prototype))return!1;if(e===n)return!0;var r=ri(n);return!!r&&e===r[0]}(En&&pi(new En(new ArrayBuffer(1)))!=N||xn&&pi(new xn)!=E||Sn&&pi(Sn.resolve())!=T||Tn&&pi(new Tn)!=A||Rn&&pi(new Rn)!=C)&&(pi=function(e){var t=xr(e),n=t==S?e.constructor:o,r=n?Mi(n):"";if(r)switch(r){case Cn:return N;case Ln:return E;case Nn:return T;case kn:return A;case Pn:return C}return t});var _i=Le?Za:mu;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)}function Ei(e){return e==e&&!Qa(e)}function xi(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Se(n))}}function Si(e,t,n){return t=gn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=gn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),xt(e,this,u)}}function Ti(e,t){return t.length<2?e:wr(e,eo(t,0,-1))}function Ri(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ai=Li(Kr),Oi=lt||function(e,t){return ft.setTimeout(e,t)},Ii=Li(Jr);function Ci(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(d,function(n){var r="_."+n[0];t&n[1]&&!It(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Li(e){var t=0,n=0;return function(){var r=yn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ni(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Hr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var ki,Pi,ji=(ki=ka(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)}),t},function(e){return 500===Pi.size&&Pi.clear(),e}),Pi=ki.cache,ki);function Di(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mi(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $i(e){if(e instanceof Fn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Ao(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Gr(function(e,t){return Ya(e)?cr(e,mr(t,1,Ya,!0)):[]}),Bi=Gr(function(e,t){var n=Vi(t);return Ya(n)&&(n=o),Ya(e)?cr(e,mr(t,1,Ya,!0),ai(n,2)):[]}),Ui=Gr(function(e,t){var n=Vi(t);return Ya(n)&&(n=o),Ya(e)?cr(e,mr(t,1,Ya,!0),o,n):[]});function Fi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=gn(r+o,0)),$t(e,ai(t,3),o)}function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=hs(n),i=n<0?gn(r+i,0):vn(i,r-1)),$t(e,ai(t,3),i,!0)}function qi(e){return null!=e&&e.length?mr(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Yi=Gr(function(e){var t=Lt(e,mo);return t.length&&t[0]===e[0]?Ar(t):[]}),Gi=Gr(function(e){var t=Vi(e),n=Lt(e,mo);return t===Vi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ar(n,ai(t,2)):[]}),Xi=Gr(function(e){var t=Vi(e),n=Lt(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Ar(n,o,t):[]});function Vi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Gr(Ki);function Ki(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Ji=ei(function(e,t){var n=null==e?0:e.length,r=or(e,t);return qr(e,Lt(t,function(e){return gi(e,n)?+e:e}).sort(So)),r});function Qi(e){return null==e?e:wn.call(e)}var ea=Gr(function(e){return so(mr(e,1,Ya,!0))}),ta=Gr(function(e){var t=Vi(e);return Ya(t)&&(t=o),so(mr(e,1,Ya,!0),ai(t,2))}),na=Gr(function(e){var t=Vi(e);return t="function"==typeof t?t:o,so(mr(e,1,Ya,!0),o,t)});function ra(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,function(e){if(Ya(e))return t=gn(e.length,t),!0}),Gt(t,function(t){return Lt(e,Wt(t))})}function oa(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Lt(n,function(e){return xt(t,o,e)})}var ia=Gr(function(e,t){return Ya(e)?cr(e,t):[]}),aa=Gr(function(e){return po(Ot(e,Ya))}),sa=Gr(function(e){var t=Vi(e);return Ya(t)&&(t=o),po(Ot(e,Ya),ai(t,2))}),ua=Gr(function(e){var t=Vi(e);return t="function"==typeof t?t:o,po(Ot(e,Ya),o,t)}),ca=Gr(ra),la=Gr(function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,oa(e,n)});function fa(e){var t=$n(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ha=ei(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Fn&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),da=Io(function(e,t,n){ke.call(e,n)?++e[n]:rr(e,n,1)}),ma=Do(Fi),ga=Do(Wi);function va(e,t){return(Wa(e)?Tt:lr)(e,ai(t,3))}function ya(e,t){return(Wa(e)?Rt:fr)(e,ai(t,3))}var ba=Io(function(e,t,n){ke.call(e,n)?e[n].push(t):rr(e,n,[t])}),_a=Gr(function(e,t,n){var o=-1,i="function"==typeof t,a=Ha(e)?r(e.length):[];return lr(e,function(e){a[++o]=i?xt(t,e,n):Or(e,t,n)}),a}),wa=Io(function(e,t,n){rr(e,n,t)});function Ea(e,t){return(Wa(e)?Lt:Dr)(e,ai(t,3))}var xa=Io(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Sa=Gr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,mr(t,1),[])}),Ta=ct||function(){return ft.Date.now()};function Ra(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Vo(e,c,o,o,o,o,t)}function Aa(e,t){var n;if("function"!=typeof t)throw new Ae(i);return e=hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Oa=Gr(function(e,t,n){var r=1;if(n.length){var o=sn(n,ii(Oa));r|=u}return Vo(e,r,t,n,o)}),Ia=Gr(function(e,t,n){var r=3;if(n.length){var o=sn(n,ii(Ia));r|=u}return Vo(t,r,e,n,o)});function Ca(e,t,n){var r,a,s,u,c,l,f=0,p=!1,h=!1,d=!0;if("function"!=typeof e)throw new Ae(i);function m(t){var n=r,i=a;return r=a=o,f=t,u=e.apply(i,n)}function g(e){var n=e-l;return l===o||n>=t||n<0||h&&e-f>=s}function v(){var e=Ta();if(g(e))return y(e);c=Oi(v,function(e){var n=t-(e-l);return h?vn(n,s-(e-f)):n}(e))}function y(e){return c=o,d&&r?m(e):(r=a=o,u)}function b(){var e=Ta(),n=g(e);if(r=arguments,a=this,l=e,n){if(c===o)return function(e){return f=e,c=Oi(v,t),p?m(e):u}(l);if(h)return _o(c),c=Oi(v,t),m(l)}return c===o&&(c=Oi(v,t)),u}return t=ms(t)||0,Qa(n)&&(p=!!n.leading,s=(h="maxWait"in n)?gn(ms(n.maxWait)||0,t):s,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==o&&_o(c),f=0,r=l=a=c=o},b.flush=function(){return c===o?u:y(Ta())},b}var La=Gr(function(e,t){return ur(e,1,t)}),Na=Gr(function(e,t,n){return ur(e,ms(t)||0,n)});function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ka.Cache||Hn),n}function Pa(e){if("function"!=typeof e)throw new Ae(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ka.Cache=Hn;var ja=yo(function(e,t){var n=(t=1==t.length&&Wa(t[0])?Lt(t[0],Vt(ai())):Lt(mr(t,1),Vt(ai()))).length;return Gr(function(r){for(var o=-1,i=vn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return xt(e,this,r)})}),Da=Gr(function(e,t){var n=sn(t,ii(Da));return Vo(e,u,o,t,n)}),Ma=Gr(function(e,t){var n=sn(t,ii(Ma));return Vo(e,64,o,t,n)}),$a=ei(function(e,t){return Vo(e,256,o,o,o,t)});function za(e,t){return e===t||e!=e&&t!=t}var Ba=qo(Sr),Ua=qo(function(e,t){return e>=t}),Fa=Ir(function(){return arguments}())?Ir:function(e){return es(e)&&ke.call(e,"callee")&&!Ye.call(e,"callee")},Wa=r.isArray,qa=vt?Vt(vt):function(e){return es(e)&&xr(e)==L};function Ha(e){return null!=e&&Ja(e.length)&&!Za(e)}function Ya(e){return es(e)&&Ha(e)}var Ga=gt||mu,Xa=yt?Vt(yt):function(e){return es(e)&&xr(e)==y};function Va(e){if(!es(e))return!1;var t=xr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Za(e){if(!Qa(e))return!1;var t=xr(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==hs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Vt(bt):function(e){return es(e)&&pi(e)==E};function ns(e){return"number"==typeof e||es(e)&&xr(e)==x}function rs(e){if(!es(e)||xr(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Me}var os=_t?Vt(_t):function(e){return es(e)&&xr(e)==R},is=wt?Vt(wt):function(e){return es(e)&&pi(e)==A};function as(e){return"string"==typeof e||!Wa(e)&&es(e)&&xr(e)==O}function ss(e){return"symbol"==typeof e||es(e)&&xr(e)==I}var us=Et?Vt(Et):function(e){return es(e)&&Ja(e.length)&&!!ot[xr(e)]},cs=qo(jr),ls=qo(function(e,t){return e<=t});function fs(e){if(!e)return[];if(Ha(e))return as(e)?fn(e):Ao(e);if(Ve&&e[Ve])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ve]());var t=pi(e);return(t==E?on:t==A?un:zs)(e)}function ps(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function ds(e){return e?ir(hs(e),0,h):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return p;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=de.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):he.test(e)?p:+e}function gs(e){return Oo(e,Ls(e))}function vs(e){return null==e?"":ao(e)}var ys=Co(function(e,t){if(wi(t)||Ha(t))Oo(t,Cs(t),e);else for(var n in t)ke.call(t,n)&&Qn(e,n,t[n])}),bs=Co(function(e,t){Oo(t,Ls(t),e)}),_s=Co(function(e,t,n,r){Oo(t,Ls(t),e,r)}),ws=Co(function(e,t,n,r){Oo(t,Cs(t),e,r)}),Es=ei(or),xs=Gr(function(e,t){e=Se(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&vi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ls(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||za(f,Ce[l])&&!ke.call(e,l))&&(e[l]=a[l])}return e}),Ss=Gr(function(e){return e.push(o,Ko),xt(ks,o,e)});function Ts(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function Rs(e,t){return null!=e&&hi(e,t,Rr)}var As=zo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n},Qs(nu)),Os=zo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),ke.call(e,t)?e[t].push(n):e[t]=[n]},ai),Is=Gr(Or);function Cs(e){return Ha(e)?Xn(e):Pr(e)}function Ls(e){return Ha(e)?Xn(e,!0):function(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&ke.call(e,r))&&n.push(r);return n}(e)}var Ns=Co(function(e,t,n){zr(e,t,n)}),ks=Co(function(e,t,n,r){zr(e,t,n,r)}),Ps=ei(function(e,t){var n={};if(null==e)return n;var r=!1;t=Lt(t,function(t){return t=vo(t,e),r||(r=t.length>1),t}),Oo(e,ni(e),n),r&&(n=ar(n,7,Jo));for(var o=t.length;o--;)uo(n,t[o]);return n}),js=ei(function(e,t){return null==e?{}:function(e,t){return Fr(e,t,function(t,n){return Rs(e,n)})}(e,t)});function Ds(e,t){if(null==e)return{};var n=Lt(ni(e),function(e){return[e]});return t=ai(t),Fr(e,n,function(e,n){return t(e,n[0])})}var Ms=Xo(Cs),$s=Xo(Ls);function zs(e){return null==e?[]:Zt(e,Cs(e))}var Bs=Po(function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)});function Us(e){return Vs(vs(e).toLowerCase())}function Fs(e){return(e=vs(e))&&e.replace(ye,en).replace(Ke,"")}var Ws=Po(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),qs=Po(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Hs=ko("toLowerCase"),Ys=Po(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Gs=Po(function(e,t,n){return e+(n?" ":"")+Vs(t)}),Xs=Po(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Vs=ko("toUpperCase");function Zs(e,t,n){return e=vs(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ks=Gr(function(e,t){try{return xt(e,o,t)}catch(e){return Va(e)?e:new we(e)}}),Js=ei(function(e,t){return Tt(t,function(t){t=Di(t),rr(e,t,Oa(e[t],e))}),e});function Qs(e){return function(){return e}}var eu=Mo(),tu=Mo(!0);function nu(e){return e}function ru(e){return kr("function"==typeof e?e:ar(e,1))}var ou=Gr(function(e,t){return function(n){return Or(n,e,t)}}),iu=Gr(function(e,t){return function(n){return Or(e,n,t)}});function au(e,t,n){var r=Cs(t),o=_r(t,r);null!=n||Qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Cs(t)));var i=!(Qa(n)&&"chain"in n&&!n.chain),a=Za(e);return Tt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ao(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})}),e}function su(){}var uu=Uo(Lt),cu=Uo(At),lu=Uo(jt);function fu(e){return yi(e)?Wt(Di(e)):function(e){return function(t){return wr(t,e)}}(e)}var pu=Wo(),hu=Wo(!0);function du(){return[]}function mu(){return!1}var gu,vu=Bo(function(e,t){return e+t},0),yu=Yo("ceil"),bu=Bo(function(e,t){return e/t},1),_u=Yo("floor"),wu=Bo(function(e,t){return e*t},1),Eu=Yo("round"),xu=Bo(function(e,t){return e-t},0);return $n.after=function(e,t){if("function"!=typeof t)throw new Ae(i);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=Ra,$n.assign=ys,$n.assignIn=bs,$n.assignInWith=_s,$n.assignWith=ws,$n.at=Es,$n.before=Aa,$n.bind=Oa,$n.bindAll=Js,$n.bindKey=Ia,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},$n.chain=fa,$n.chunk=function(e,t,n){t=(n?vi(e,t,n):t===o)?1:gn(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(pt(i/t));a<i;)u[s++]=eo(e,a,a+=t);return u},$n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},$n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Nt(Wa(n)?Ao(n):[n],mr(t,1))},$n.cond=function(e){var t=null==e?0:e.length,n=ai();return e=t?Lt(e,function(e){if("function"!=typeof e[1])throw new Ae(i);return[n(e[0]),e[1]]}):[],Gr(function(n){for(var r=-1;++r<t;){var o=e[r];if(xt(o[0],this,n))return xt(o[1],this,n)}})},$n.conforms=function(e){return function(e){var t=Cs(e);return function(n){return sr(n,e,t)}}(ar(e,1))},$n.constant=Qs,$n.countBy=da,$n.create=function(e,t){var n=zn(e);return null==t?n:nr(n,t)},$n.curry=function e(t,n,r){var i=Vo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},$n.curryRight=function e(t,n,r){var i=Vo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},$n.debounce=Ca,$n.defaults=xs,$n.defaultsDeep=Ss,$n.defer=La,$n.delay=Na,$n.difference=zi,$n.differenceBy=Bi,$n.differenceWith=Ui,$n.drop=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=n||t===o?1:hs(t))<0?0:t,r):[]},$n.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,0,(t=r-(t=n||t===o?1:hs(t)))<0?0:t):[]},$n.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},$n.dropWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0):[]},$n.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&vi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=hs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:hs(r))<0&&(r+=i),r=n>r?0:ds(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},$n.filter=function(e,t){return(Wa(e)?Ot:dr)(e,ai(t,3))},$n.flatMap=function(e,t){return mr(Ea(e,t),1)},$n.flatMapDeep=function(e,t){return mr(Ea(e,t),l)},$n.flatMapDepth=function(e,t,n){return n=n===o?1:hs(n),mr(Ea(e,t),n)},$n.flatten=qi,$n.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},$n.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:hs(t)):[]},$n.flip=function(e){return Vo(e,512)},$n.flow=eu,$n.flowRight=tu,$n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},$n.functions=function(e){return null==e?[]:_r(e,Cs(e))},$n.functionsIn=function(e){return null==e?[]:_r(e,Ls(e))},$n.groupBy=ba,$n.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},$n.intersection=Yi,$n.intersectionBy=Gi,$n.intersectionWith=Xi,$n.invert=As,$n.invertBy=Os,$n.invokeMap=_a,$n.iteratee=ru,$n.keyBy=wa,$n.keys=Cs,$n.keysIn=Ls,$n.map=Ea,$n.mapKeys=function(e,t){var n={};return t=ai(t,3),yr(e,function(e,r,o){rr(n,t(e,r,o),e)}),n},$n.mapValues=function(e,t){var n={};return t=ai(t,3),yr(e,function(e,r,o){rr(n,r,t(e,r,o))}),n},$n.matches=function(e){return Mr(ar(e,1))},$n.matchesProperty=function(e,t){return $r(e,ar(t,1))},$n.memoize=ka,$n.merge=Ns,$n.mergeWith=ks,$n.method=ou,$n.methodOf=iu,$n.mixin=au,$n.negate=Pa,$n.nthArg=function(e){return e=hs(e),Gr(function(t){return Br(t,e)})},$n.omit=Ps,$n.omitBy=function(e,t){return Ds(e,Pa(ai(t)))},$n.once=function(e){return Aa(2,e)},$n.orderBy=function(e,t,n,r){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},$n.over=uu,$n.overArgs=ja,$n.overEvery=cu,$n.overSome=lu,$n.partial=Da,$n.partialRight=Ma,$n.partition=xa,$n.pick=js,$n.pickBy=Ds,$n.property=fu,$n.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},$n.pull=Zi,$n.pullAll=Ki,$n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,ai(n,2)):e},$n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,o,n):e},$n.pullAt=Ji,$n.range=pu,$n.rangeRight=hu,$n.rearg=$a,$n.reject=function(e,t){return(Wa(e)?Ot:dr)(e,Pa(ai(t,3)))},$n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ai(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return qr(e,o),n},$n.rest=function(e,t){if("function"!=typeof e)throw new Ae(i);return Gr(e,t=t===o?t:hs(t))},$n.reverse=Qi,$n.sampleSize=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:hs(t),(Wa(e)?Zn:Vr)(e,t)},$n.set=function(e,t,n){return null==e?e:Zr(e,t,n)},$n.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},$n.shuffle=function(e){return(Wa(e)?Kn:Qr)(e)},$n.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vi(e,t,n)?(t=0,n=r):(t=null==t?0:hs(t),n=n===o?r:hs(n)),eo(e,t,n)):[]},$n.sortBy=Sa,$n.sortedUniq=function(e){return e&&e.length?oo(e):[]},$n.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(t,2)):[]},$n.split=function(e,t,n){return n&&"number"!=typeof n&&vi(e,t,n)&&(t=n=o),(n=n===o?h:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ao(t))&&rn(e)?bo(fn(e),0,n):e.split(t,n):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new Ae(i);return t=null==t?0:gn(hs(t),0),Gr(function(n){var r=n[t],o=bo(n,0,t);return r&&Nt(o,r),xt(e,this,o)})},$n.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},$n.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:hs(t))<0?0:t):[]},$n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:hs(t)))<0?0:t,r):[]},$n.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?lo(e,ai(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ae(i);return Qa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ca(e,t,{leading:r,maxWait:t,trailing:o})},$n.thru=pa,$n.toArray=fs,$n.toPairs=Ms,$n.toPairsIn=$s,$n.toPath=function(e){return Wa(e)?Lt(e,Di):ss(e)?[e]:Ao(ji(vs(e)))},$n.toPlainObject=gs,$n.transform=function(e,t,n){var r=Wa(e),o=r||Ga(e)||us(e);if(t=ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Qa(e)&&Za(i)?zn(qe(e)):{}}return(o?Tt:yr)(e,function(e,r,o){return t(n,e,r,o)}),n},$n.unary=function(e){return Ra(e,1)},$n.union=ea,$n.unionBy=ta,$n.unionWith=na,$n.uniq=function(e){return e&&e.length?so(e):[]},$n.uniqBy=function(e,t){return e&&e.length?so(e,ai(t,2)):[]},$n.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},$n.unset=function(e,t){return null==e||uo(e,t)},$n.unzip=ra,$n.unzipWith=oa,$n.update=function(e,t,n){return null==e?e:co(e,t,go(n))},$n.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,go(n),r)},$n.values=zs,$n.valuesIn=function(e){return null==e?[]:Zt(e,Ls(e))},$n.without=ia,$n.words=Zs,$n.wrap=function(e,t){return Da(go(t),e)},$n.xor=aa,$n.xorBy=sa,$n.xorWith=ua,$n.zip=ca,$n.zipObject=function(e,t){return ho(e||[],t||[],Qn)},$n.zipObjectDeep=function(e,t){return ho(e||[],t||[],Zr)},$n.zipWith=la,$n.entries=Ms,$n.entriesIn=$s,$n.extend=bs,$n.extendWith=_s,au($n,$n),$n.add=vu,$n.attempt=Ks,$n.camelCase=Bs,$n.capitalize=Us,$n.ceil=yu,$n.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ms(n))==n?n:0),t!==o&&(t=(t=ms(t))==t?t:0),ir(ms(e),t,n)},$n.clone=function(e){return ar(e,4)},$n.cloneDeep=function(e){return ar(e,5)},$n.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},$n.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},$n.conformsTo=function(e,t){return null==t||sr(e,t,Cs(t))},$n.deburr=Fs,$n.defaultTo=function(e,t){return null==e||e!=e?t:e},$n.divide=bu,$n.endsWith=function(e,t,n){e=vs(e),t=ao(t);var r=e.length,i=n=n===o?r:ir(hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},$n.eq=za,$n.escape=function(e){return(e=vs(e))&&X.test(e)?e.replace(Y,tn):e},$n.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},$n.every=function(e,t,n){var r=Wa(e)?At:pr;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},$n.find=ma,$n.findIndex=Fi,$n.findKey=function(e,t){return Mt(e,ai(t,3),yr)},$n.findLast=ga,$n.findLastIndex=Wi,$n.findLastKey=function(e,t){return Mt(e,ai(t,3),br)},$n.floor=_u,$n.forEach=va,$n.forEachRight=ya,$n.forIn=function(e,t){return null==e?e:gr(e,ai(t,3),Ls)},$n.forInRight=function(e,t){return null==e?e:vr(e,ai(t,3),Ls)},$n.forOwn=function(e,t){return e&&yr(e,ai(t,3))},$n.forOwnRight=function(e,t){return e&&br(e,ai(t,3))},$n.get=Ts,$n.gt=Ba,$n.gte=Ua,$n.has=function(e,t){return null!=e&&hi(e,t,Tr)},$n.hasIn=Rs,$n.head=Hi,$n.identity=nu,$n.includes=function(e,t,n,r){e=Ha(e)?e:zs(e),n=n&&!r?hs(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),as(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&zt(e,t,n)>-1},$n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=gn(r+o,0)),zt(e,t,o)},$n.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ms(e),t,n)},$n.invoke=Is,$n.isArguments=Fa,$n.isArray=Wa,$n.isArrayBuffer=qa,$n.isArrayLike=Ha,$n.isArrayLikeObject=Ya,$n.isBoolean=function(e){return!0===e||!1===e||es(e)&&xr(e)==v},$n.isBuffer=Ga,$n.isDate=Xa,$n.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},$n.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||us(e)||Fa(e)))return!e.length;var t=pi(e);if(t==E||t==A)return!e.size;if(wi(e))return!Pr(e).length;for(var n in e)if(ke.call(e,n))return!1;return!0},$n.isEqual=function(e,t){return Cr(e,t)},$n.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Cr(e,t,o,n):!!r},$n.isError=Va,$n.isFinite=function(e){return"number"==typeof e&&Dt(e)},$n.isFunction=Za,$n.isInteger=Ka,$n.isLength=Ja,$n.isMap=ts,$n.isMatch=function(e,t){return e===t||Lr(e,t,ui(t))},$n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Lr(e,t,ui(t),n)},$n.isNaN=function(e){return ns(e)&&e!=+e},$n.isNative=function(e){if(_i(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},$n.isNil=function(e){return null==e},$n.isNull=function(e){return null===e},$n.isNumber=ns,$n.isObject=Qa,$n.isObjectLike=es,$n.isPlainObject=rs,$n.isRegExp=os,$n.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=f},$n.isSet=is,$n.isString=as,$n.isSymbol=ss,$n.isTypedArray=us,$n.isUndefined=function(e){return e===o},$n.isWeakMap=function(e){return es(e)&&pi(e)==C},$n.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==xr(e)},$n.join=function(e,t){return null==e?"":qt.call(e,t)},$n.kebabCase=Ws,$n.last=Vi,$n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=hs(n))<0?gn(r+i,0):vn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):$t(e,Ut,i,!0)},$n.lowerCase=qs,$n.lowerFirst=Hs,$n.lt=cs,$n.lte=ls,$n.max=function(e){return e&&e.length?hr(e,nu,Sr):o},$n.maxBy=function(e,t){return e&&e.length?hr(e,ai(t,2),Sr):o},$n.mean=function(e){return Ft(e,nu)},$n.meanBy=function(e,t){return Ft(e,ai(t,2))},$n.min=function(e){return e&&e.length?hr(e,nu,jr):o},$n.minBy=function(e,t){return e&&e.length?hr(e,ai(t,2),jr):o},$n.stubArray=du,$n.stubFalse=mu,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=wu,$n.nth=function(e,t){return e&&e.length?Br(e,hs(t)):o},$n.noConflict=function(){return ft._===this&&(ft._=$e),this},$n.noop=su,$n.now=Ta,$n.pad=function(e,t,n){e=vs(e);var r=(t=hs(t))?ln(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Fo(ht(o),n)+e+Fo(pt(o),n)},$n.padEnd=function(e,t,n){e=vs(e);var r=(t=hs(t))?ln(e):0;return t&&r<t?e+Fo(t-r,n):e},$n.padStart=function(e,t,n){e=vs(e);var r=(t=hs(t))?ln(e):0;return t&&r<t?Fo(t-r,n)+e:e},$n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(vs(e).replace(re,""),t||0)},$n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return vn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Hr(e,t)},$n.reduce=function(e,t,n){var r=Wa(e)?kt:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,lr)},$n.reduceRight=function(e,t,n){var r=Wa(e)?Pt:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},$n.repeat=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:hs(t),Yr(vs(e),t)},$n.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(e,t,n){var r=-1,i=(t=vo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Di(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},$n.round=Eu,$n.runInContext=e,$n.sample=function(e){return(Wa(e)?Vn:Xr)(e)},$n.size=function(e){if(null==e)return 0;if(Ha(e))return as(e)?ln(e):e.length;var t=pi(e);return t==E||t==A?e.size:Pr(e).length},$n.snakeCase=Ys,$n.some=function(e,t,n){var r=Wa(e)?jt:to;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},$n.sortedIndex=function(e,t){return no(e,t)},$n.sortedIndexBy=function(e,t,n){return ro(e,t,ai(n,2))},$n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&za(e[r],t))return r}return-1},$n.sortedLastIndex=function(e,t){return no(e,t,!0)},$n.sortedLastIndexBy=function(e,t,n){return ro(e,t,ai(n,2),!0)},$n.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if(za(e[n],t))return n}return-1},$n.startCase=Gs,$n.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:ir(hs(n),0,e.length),t=ao(t),e.slice(n,n+t.length)==t},$n.subtract=xu,$n.sum=function(e){return e&&e.length?Yt(e,nu):0},$n.sumBy=function(e,t){return e&&e.length?Yt(e,ai(t,2)):0},$n.template=function(e,t,n){var r=$n.templateSettings;n&&vi(e,t,n)&&(t=o),e=vs(e),t=_s({},t,r,Zo);var i,a,s=_s({},t.imports,r.imports,Zo),u=Cs(s),c=Zt(s,u),l=0,f=t.interpolate||be,p="__p += '",h=Te((t.escape||be).source+"|"+f.source+"|"+(f===K?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),d="//# sourceURL="+(ke.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(h,function(t,n,r,o,s,u){return r||(r=o),p+=e.slice(l,u).replace(_e,nn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t}),p+="';\n";var m=ke.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(F,""):p).replace(W,"$1").replace(q,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Ks(function(){return Ee(u,d+"return "+p).apply(o,c)});if(g.source=p,Va(g))throw g;return g},$n.times=function(e,t){if((e=hs(e))<1||e>f)return[];var n=h,r=vn(e,h);t=ai(t),e-=h;for(var o=Gt(r,t);++n<e;)t(n);return o},$n.toFinite=ps,$n.toInteger=hs,$n.toLength=ds,$n.toLower=function(e){return vs(e).toLowerCase()},$n.toNumber=ms,$n.toSafeInteger=function(e){return e?ir(hs(e),-9007199254740991,f):0===e?e:0},$n.toString=vs,$n.toUpper=function(e){return vs(e).toUpperCase()},$n.trim=function(e,t,n){if((e=vs(e))&&(n||t===o))return Xt(e);if(!e||!(t=ao(t)))return e;var r=fn(e),i=fn(t);return bo(r,Jt(r,i),Qt(r,i)+1).join("")},$n.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===o))return e.slice(0,pn(e)+1);if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,0,Qt(r,fn(t))+1).join("")},$n.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,Jt(r,fn(t))).join("")},$n.truncate=function(e,t){var n=30,r="...";if(Qa(t)){var i="separator"in t?t.separator:i;n="length"in t?hs(t.length):n,r="omission"in t?ao(t.omission):r}var a=(e=vs(e)).length;if(rn(e)){var s=fn(e);a=s.length}if(n>=a)return e;var u=n-ln(r);if(u<1)return r;var c=s?bo(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),os(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Te(i.source,vs(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(ao(i),u)!=u){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},$n.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(H,hn):e},$n.uniqueId=function(e){var t=++Pe;return vs(e)+t},$n.upperCase=Xs,$n.upperFirst=Vs,$n.each=va,$n.eachRight=ya,$n.first=Hi,au($n,(gu={},yr($n,function(e,t){ke.call($n.prototype,t)||(gu[t]=e)}),gu),{chain:!1}),$n.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){$n[e].placeholder=$n}),Tt(["drop","take"],function(e,t){Fn.prototype[e]=function(n){n=n===o?1:gn(hs(n),0);var r=this.__filtered__&&!t?new Fn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Fn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Tt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Fn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Tt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Fn.prototype[e]=function(){return this[n](1).value()[0]}}),Tt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Fn.prototype[e]=function(){return this.__filtered__?new Fn(this):this[n](1)}}),Fn.prototype.compact=function(){return this.filter(nu)},Fn.prototype.find=function(e){return this.filter(e).head()},Fn.prototype.findLast=function(e){return this.reverse().find(e)},Fn.prototype.invokeMap=Gr(function(e,t){return"function"==typeof e?new Fn(this):this.map(function(n){return Or(n,e,t)})}),Fn.prototype.reject=function(e){return this.filter(Pa(ai(e)))},Fn.prototype.slice=function(e,t){e=hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Fn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Fn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Fn.prototype.toArray=function(){return this.take(h)},yr(Fn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=$n[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&($n.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Fn,c=s[0],l=u||Wa(t),f=function(e){var t=i.apply($n,Nt([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,h=!!this.__actions__.length,d=a&&!p,m=u&&!h;if(!a&&l){t=m?t:new Fn(this);var g=e.apply(t,s);return g.__actions__.push({func:pa,args:[f],thisArg:o}),new Un(g,p)}return d&&m?e.apply(this,s):(g=this.thru(f),d?r?g.value()[0]:g.value():g)})}),Tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n](function(n){return t.apply(Wa(n)?n:[],e)})}}),yr(Fn.prototype,function(e,t){var n=$n[t];if(n){var r=n.name+"";ke.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}}),In[$o(o,2).name]=[{name:"wrapper",func:o}],Fn.prototype.clone=function(){var e=new Fn(this.__wrapped__);return e.__actions__=Ao(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ao(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ao(this.__views__),e},Fn.prototype.reverse=function(){if(this.__filtered__){var e=new Fn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Fn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,h=vn(u,this.__takeCount__);if(!n||!r&&o==u&&h==u)return fo(e,this.__actions__);var d=[];e:for(;u--&&p<h;){for(var m=-1,g=e[c+=t];++m<f;){var v=l[m],y=v.iteratee,b=v.type,_=y(g);if(2==b)g=_;else if(!_){if(1==b)continue e;break e}}d[p++]=g}return d},$n.prototype.at=ha,$n.prototype.chain=function(){return fa(this)},$n.prototype.commit=function(){return new Un(this.value(),this.__chain__)},$n.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},$n.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=$i(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},$n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Fn){var t=e;return this.__actions__.length&&(t=new Fn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Qi],thisArg:o}),new Un(t,this.__chain__)}return this.thru(Qi)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Ve&&($n.prototype[Ve]=function(){return this}),$n}();ft._=dn,(r=function(){return dn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},592(e,t,n){"use strict";var r=n(516),o=n(522),i=n(948),a=n(106),s=n(615),u=n(631),c=n(202),l=n(763),f=n(987),p=n(928);e.exports=function(e){return new Promise(function(t,n){var h,d=e.data,m=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(d)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+_)}var w=s(e.baseURL,e.url);function E(){if(y){var r="getAllResponseHeaders"in y?u(y.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};o(function(e){t(e),v()},function(e){n(e),v()},i),y=null}}if(y.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=E:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(E)},y.onabort=function(){y&&(n(l("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(l("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||c(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;x&&(m[e.xsrfHeaderName]=x)}"setRequestHeader"in y&&r.forEach(m,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),g&&"json"!==g&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){y&&(n(!e||e&&e.type?new p("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),d||(d=null),y.send(d)})}},601(e){"use strict";e.exports=function(e){return e[1]}},615(e,t,n){"use strict";var r=n(137),o=n(680);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},631(e,t,n){"use strict";var r=n(516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},641(e){e.exports={version:"0.25.0"}},659(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},680(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},763(e,t,n){"use strict";var r=n(449);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},833(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var c=i[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(o=n?n.call(r,l,f,c):void 0)||void 0===o&&l!==f)return!1}return!0}},841(e,t,n){"use strict";var r=n(641).version,o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},864(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},881(e,t,n){"use strict";var r=n(516),o=n(987);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,function(n){e=n.call(i,e,t)}),e}},928(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},948(e,t,n){"use strict";var r=n(516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},980(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},983(e,t,n){"use strict";n.d(t,{Ay:()=>l,IX:()=>u,Tp:()=>s,zr:()=>c});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,".UuBeegOGBV3_X4prw8pl{position:absolute;background-color:#fff;border:1px solid #999;width:auto;height:auto;min-width:min(100% - 120px,600px);min-height:min(100% - 120px,400px);top:var(--top-value, 50%);left:var(--left-value, 50%);border-radius:14px;box-shadow:0px 5px 25px rgba(0,0,0,.07);transition-delay:150ms;transition:all 300ms;transform:var(--transform-value, translateX(-50%) translateY(-50%) scale(0.9));opacity:var(--opacity-value, 0)}.XpiOnHrggFQPieURIrko{position:absolute;background-color:#fff;border:1px solid #ddd;width:auto;height:auto;border-radius:8px;box-shadow:0px 5px 25px rgba(0,0,0,.07);opacity:0;padding:8px;z-index:100000;box-sizing:border-box}.XpiOnHrggFQPieURIrko:empty{opacity:0}.pTtg4ffSEaTQOBV90PRY{position:absolute;width:100%;height:100%;transition:background-color 150ms;background-color:var(--background-color, rgba(0, 0, 0, 0.4))}",""]);var s="UuBeegOGBV3_X4prw8pl",u="XpiOnHrggFQPieURIrko",c="pTtg4ffSEaTQOBV90PRY";const l=a},987(e,t,n){"use strict";var r=n(516),o=n(18),i=n(449),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(592)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){c.headers[e]={}}),r.forEach(["post","put","patch"],function(e){c.headers[e]=r.merge(a)}),e.exports=c}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);s.r(n);var i={};r=r||[null,o({}),o([]),o(o)];for(var a=2&t&&e;("object"==typeof a||"function"==typeof a)&&!~r.indexOf(a);a=o(a))Object.getOwnPropertyNames(a).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,s.d(n,i),n},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.nc=void 0;var u={};return(()=>{"use strict";s.r(u),s.d(u,{api:()=>e,appear:()=>t,blog:()=>n,document:()=>r,operations:()=>o,popup:()=>a,resizeDetecter:()=>l,storage:()=>f,timeline:()=>p,types:()=>h,useResize:()=>c,utils:()=>d});var e={};s.r(e),s.d(e,{ApiLoader:()=>Z,useApi:()=>K});var t={};s.r(t),s.d(t,{onAppear:()=>J});var n={};s.r(n),s.d(n,{BlogItem:()=>Bn,BlogList:()=>Un,BlogSideBar:()=>Fn,Item:()=>zn});var r={};s.r(r),s.d(r,{Body:()=>mi,Code:()=>Si,DocWrapper:()=>Ri,Image:()=>wi,Separator:()=>Ei,Text:()=>_i,TextSize:()=>gi,TextStyle:()=>vi,YoutubeVideo:()=>Ti,emptyBulletSvg:()=>yi,solidBulletSvg:()=>bi});var o={};s.r(o),s.d(o,{default:()=>Oi});var i={};s.r(i),s.d(i,{background:()=>Fi.Tp,default:()=>qi,"popup-element":()=>Fi.IX,root:()=>Fi.zr});var a={};s.r(a),s.d(a,{Overlay:()=>nu,ReactRootElement:()=>Vs,ReactRootElementPopup:()=>Zs,TooltipBoolean:()=>tu,TooltipClick:()=>eu,TooltipHover:()=>Qs});var c={};s.r(c),s.d(c,{useResizeDetecter:()=>ou});var l={};s.r(l),s.d(l,{ResizeDetecter:()=>lu});var f={};s.r(f),s.d(f,{Storage:()=>vu,useStates:()=>bu,useStorage:()=>yu});var p={};s.r(p),s.d(p,{ElementEnterLeave:()=>Cf,ElementEnterLeaveXValues:()=>Nf,ElementEnterLeaveYValues:()=>Lf,ScrollCoordinateType:()=>Rf,ScrollDirection:()=>Sf,ScrollModel:()=>Ef,SyncSmoothness:()=>Pf,TimelineAutoPlay:()=>Af,TimelineCommandOption:()=>Of,TimelineCommandOptionLabel:()=>If,TimelineConfigType:()=>Tf,TimelineDirection:()=>jf,TimelineDirectionValue:()=>Df,TimelineScreenType:()=>xf,getEnterLeaveConfigValue:()=>kf,getTimelineElements:()=>Mf,useTimeline:()=>$f});var h={};s.r(h);var d={};s.r(d),s.d(d,{ScrollElementConfig:()=>Xf,ScrollElementOrator:()=>Vf,getCount:()=>Bf,loopOnArray:()=>Hf,loopOnObject:()=>qf,loopOnRange:()=>Ff,loopOnString:()=>Wf,prepareFocusEvent:()=>ep,prepareInputChangeEvent:()=>Jf,prepareKeyboardEvent:()=>Qf,prepareMouseEvent:()=>Kf,prepareUIEvent:()=>tp,scrollTo:()=>Zf,toStyle:()=>Gf,toText:()=>Yf,useDidUpdateEffect:()=>Uf});var m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty;function y(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function b(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var s=e(t,n,r);return o.delete(t),o.delete(n),s}}function _(e){return m(e).concat(g(e))}var w=Object.hasOwn||function(e,t){return v.call(e,t)};function E(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var x="_owner",S=Object.getOwnPropertyDescriptor,T=Object.keys;function R(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function A(e,t){return E(e.getTime(),t.getTime())}function O(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),s=0;(r=a.next())&&!r.done;){for(var u=t.entries(),c=!1,l=0;(o=u.next())&&!o.done;){var f=r.value,p=f[0],h=f[1],d=o.value,m=d[0],g=d[1];c||i[l]||!(c=n.equals(p,m,s,l,e,t,n)&&n.equals(h,g,p,m,e,t,n))||(i[l]=!0),l++}if(!c)return!1;s++}return!0}function I(e,t,n){var r,o=T(e),i=o.length;if(T(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===x&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!w(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function C(e,t,n){var r,o,i,a=_(e),s=a.length;if(_(t).length!==s)return!1;for(;s-- >0;){if((r=a[s])===x&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!w(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=S(e,r),i=S(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function L(e,t){return E(e.valueOf(),t.valueOf())}function N(e,t){return e.source===t.source&&e.flags===t.flags}function k(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var s=t.values(),u=!1,c=0;(o=s.next())&&!o.done;)u||i[c]||!(u=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[c]=!0),c++;if(!u)return!1}return!0}function P(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var j=Array.isArray,D="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,M=Object.assign,$=Object.prototype.toString.call.bind(Object.prototype.toString),z=B();function B(e){void 0===e&&(e={});var t,n=e.circular,r=void 0!==n&&n,o=e.createInternalComparator,i=e.createState,a=e.strict,s=void 0!==a&&a,u=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?C:R,areDatesEqual:A,areMapsEqual:r?y(O,C):O,areObjectsEqual:r?C:I,arePrimitiveWrappersEqual:L,areRegExpsEqual:N,areSetsEqual:r?y(k,C):k,areTypedArraysEqual:r?C:P};if(n&&(o=M({},o,n(o))),t){var i=b(o.areArraysEqual),a=b(o.areMapsEqual),s=b(o.areObjectsEqual),u=b(o.areSetsEqual);o=M({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:u})}return o}(e),c=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,u=e.areTypedArraysEqual;return function(e,c,l){if(e===c)return!0;if(null==e||null==c||"object"!=typeof e||"object"!=typeof c)return e!=e&&c!=c;var f=e.constructor;if(f!==c.constructor)return!1;if(f===Object)return o(e,c,l);if(j(e))return t(e,c,l);if(null!=D&&D(e))return u(e,c,l);if(f===Date)return n(e,c,l);if(f===RegExp)return a(e,c,l);if(f===Map)return r(e,c,l);if(f===Set)return s(e,c,l);var p=$(e);return"[object Date]"===p?n(e,c,l):"[object RegExp]"===p?a(e,c,l):"[object Map]"===p?r(e,c,l):"[object Set]"===p?s(e,c,l):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof c.then&&o(e,c,l):"[object Arguments]"===p?o(e,c,l):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(e,c,l)}}(u),l=o?o(c):(t=c,function(e,n,r,o,i,a,s){return t(e,n,s)});return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var s=r(),u=s.cache,c=void 0===u?t?new WeakMap:void 0:u,l=s.meta;return n(e,a,{cache:c,equals:o,meta:l,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:r,comparator:c,createState:i,equals:l,strict:s})}B({strict:!0}),B({circular:!0}),B({circular:!0,strict:!0}),B({createInternalComparator:function(){return E}}),B({strict:!0,createInternalComparator:function(){return E}}),B({circular:!0,createInternalComparator:function(){return E}}),B({circular:!0,createInternalComparator:function(){return E},strict:!0});var U=s(155),F=s.t(U,2),W=s.n(U),q=s(505),H=s.n(q);function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Z=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),X(this,"response",void 0),X(this,"error",void 0),X(this,"loading",!1),X(this,"onUpdate",void 0),X(this,"request",void 0),X(this,"controller",new AbortController),this.onUpdate=t}var t,n;return t=e,n=[{key:"load",value:function(e){var t,n=this;if(!z(e,this.request)){this.loading&&this.controller.abort(),this.controller=new AbortController,this.request=e,this.loading=!0,null===(t=this.onUpdate)||void 0===t||t.call(this);var r=e.config,o=e.body,i=Object.entries(e.query||{}).reduce(function(e,t,n){var r=V(t,2),o=r[0],i=r[1];return 0===n?"?".concat(o,"=").concat(i):"".concat(e,"&").concat(o,"=").concat(i)},"");H()({signal:this.controller.signal,method:"post",url:"".concat(r.host,"/").concat(r.path.startsWith("/")?r.path.slice(1):r.path).concat(i),headers:{"Content-Type":"application/json"},data:o}).then(function(e){var t,r;n.response=e.data,n.error=void 0,n.loading=!1,null===(t=(r=n).onUpdate)||void 0===t||t.call(r)}).catch(function(e){var t,r;n.response=void 0,n.error=(null==e?void 0:e.message)||"Unknown Error",n.loading=!1,null===(t=(r=n).onUpdate)||void 0===t||t.call(r)})}}}],n&&G(t.prototype,n),e}(),K=function(e){var t=V((0,U.useState)({}),2)[1],n=(0,U.useMemo)(function(){return new Z(function(){t({})})},[]);return n.load(e),{loading:n.loading,response:{body:n.response},error:n.error,request:n.request}},J=function(){return e=window,t=null,n=0,r={},addEventListener("scroll",function(){var o=e.scrollY||e.pageYOffset;null!=t&&(r.velocity=o-t,r.delta=r.velocity>=0?r.velocity:-1*r.velocity),t=o,n&&clearTimeout(n),n=setTimeout(function(){t=null},30)},!1),function(t){return function(){var t,n,o,i=!1,a=[],s=[],u=0,c=0,l={};function f(){r.delta<l.delta.speed&&(n||(n=!0,d(),setTimeout(function(){n=!1},l.delta.timeout))),d()}function p(){setTimeout(function(){d()},100),addEventListener("scroll",f,!1),addEventListener("wheel",f,!1),addEventListener("resize",f,!1)}function h(){removeEventListener("scroll",f,!1),removeEventListener("resize",f,!1)}function d(){o||(a.forEach(function(t,n){var r,o,i;t&&(r=t,o=l.bounds,(i=r.getBoundingClientRect()).top+i.height>=0&&i.left+i.width>=0&&i.bottom-i.height<=(e.innerHeight||document.documentElement.clientHeight)+o&&i.right-i.width<=(e.innerWidth||document.documentElement.clientWidth)+o)?s[n]&&(s[n]=!1,u++,l.appear&&l.appear(t),l.disappear||l.reappear||(a[n]=null)):(!1===s[n]&&(l.disappear&&l.disappear(t),c++,l.reappear||(a[n]=null)),s[n]=!0)}),l.reappear||l.appear&&(!l.appear||u!==t)||l.disappear&&(!l.disappear||c!==t)||(o=!0,h(),l.done&&l.done()))}function m(){var e;if(!i&&(i=!0,l.init&&l.init(),e="function"==typeof l.elements?l.elements():l.elements)){t=e.length;for(var n=0;n<t;n+=1)a.push(e[n]),s.push(!0);p()}}return function(e){l={init:(e=e||{}).init,elements:e.elements,appear:e.appear,disappear:e.disappear,done:e.done,reappear:e.reappear,bounds:e.bounds||0,debounce:e.debounce||50,delta:{speed:e.deltaSpeed||50,timeout:e.deltaTimeout||500}},addEventListener("DOMContentLoaded",m,!1);var t=!1;Function("/*@cc_on return document.documentMode===10@*/")()&&(t=!0);var n="complete"===document.readyState||"loaded"===document.readyState;return t?n&&m():(n||"interactive"===document.readyState)&&m(),{trigger:function(){d()},pause:function(){h()},resume:function(){p()},destroy:function(){a=[],h()}}}}()(t)};var e,t,n,r},Q=s(531),ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ee.apply(this,arguments)};function te(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var ne=s(833),re=s.n(ne),oe="-ms-",ie="-moz-",ae="-webkit-",se="comm",ue="rule",ce="decl",le="@keyframes",fe=Math.abs,pe=String.fromCharCode,he=Object.assign;function de(e){return e.trim()}function me(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function ve(e,t,n){return e.indexOf(t,n)}function ye(e,t){return 0|e.charCodeAt(t)}function be(e,t,n){return e.slice(t,n)}function _e(e){return e.length}function we(e){return e.length}function Ee(e,t){return t.push(e),e}function xe(e,t){return e.filter(function(e){return!me(e,t)})}var Se=1,Te=1,Re=0,Ae=0,Oe=0,Ie="";function Ce(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Se,column:Te,length:a,return:"",siblings:s}}function Le(e,t){return he(Ce("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ne(e){for(;e.root;)e=Le(e.root,{children:[e]});Ee(e,e.siblings)}function ke(){return Oe=Ae>0?ye(Ie,--Ae):0,Te--,10===Oe&&(Te=1,Se--),Oe}function Pe(){return Oe=Ae<Re?ye(Ie,Ae++):0,Te++,10===Oe&&(Te=1,Se++),Oe}function je(){return ye(Ie,Ae)}function De(){return Ae}function Me(e,t){return be(Ie,e,t)}function $e(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ze(e){return de(Me(Ae-1,Fe(91===e?e+2:40===e?e+1:e)))}function Be(e){for(;(Oe=je())&&Oe<33;)Pe();return $e(e)>2||$e(Oe)>3?"":" "}function Ue(e,t){for(;--t&&Pe()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return Me(e,De()+(t<6&&32==je()&&32==Pe()))}function Fe(e){for(;Pe();)switch(Oe){case e:return Ae;case 34:case 39:34!==e&&39!==e&&Fe(Oe);break;case 40:41===e&&Fe(e);break;case 92:Pe()}return Ae}function We(e,t){for(;Pe()&&e+Oe!==57&&(e+Oe!==84||47!==je()););return"/*"+Me(t,Ae-1)+"*"+pe(47===e?e:Pe())}function qe(e){for(;!$e(je());)Pe();return Me(e,Ae)}function He(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ye(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ce:return e.return=e.return||e.value;case se:return"";case le:return e.return=e.value+"{"+He(e.children,r)+"}";case ue:if(!_e(e.value=e.props.join(",")))return""}return _e(n=He(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ge(e,t,n){switch(function(e,t){return 45^ye(e,0)?(((t<<2^ye(e,0))<<2^ye(e,1))<<2^ye(e,2))<<2^ye(e,3):0}(e,t)){case 5103:return ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ae+e+e;case 4789:return ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+ie+e+oe+e+e;case 5936:switch(ye(e,t+11)){case 114:return ae+e+oe+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+oe+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+oe+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ae+e+oe+e+e;case 6165:return ae+e+oe+"flex-"+e+e;case 5187:return ae+e+ge(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+oe+"flex-$1$2")+e;case 5443:return ae+e+oe+"flex-item-"+ge(e,/flex-|-self/g,"")+(me(e,/flex-|baseline/)?"":oe+"grid-row-"+ge(e,/flex-|-self/g,""))+e;case 4675:return ae+e+oe+"flex-line-pack"+ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return ae+e+oe+ge(e,"shrink","negative")+e;case 5292:return ae+e+oe+ge(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+ge(e,"-grow","")+ae+e+oe+ge(e,"grow","positive")+e;case 4554:return ae+ge(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+oe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4200:if(!me(e,/flex-|baseline/))return oe+"grid-column-align"+be(e,t)+e;break;case 2592:case 3360:return oe+ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,me(e.props,/grid-\w+-end/)})?~ve(e+(n=n[t].value),"span",0)?e:oe+ge(e,"-start","")+e+oe+"grid-row-span:"+(~ve(n,"span",0)?me(n,/\d+/):+me(n,/\d+/)-+me(e,/\d+/))+";":oe+ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return me(e.props,/grid-\w+-start/)})?e:oe+ge(ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_e(e)-1-t>6)switch(ye(e,t+1)){case 109:if(45!==ye(e,t+4))break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+ie+(108==ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ve(e,"stretch",0)?Ge(ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,s){return oe+n+":"+r+s+(o?oe+n+"-span:"+(i?a:+a-+r)+s:"")+e});case 4949:if(121===ye(e,t+6))return ge(e,":",":"+ae)+e;break;case 6444:switch(ye(e,45===ye(e,14)?18:11)){case 120:return ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ae+(45===ye(e,14)?"inline-":"")+"box$3$1"+ae+"$2$3$1"+oe+"$2box$3")+e;case 100:return ge(e,":",":"+oe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ge(e,"scroll-","scroll-snap-")+e}return e}function Xe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ce:return void(e.return=Ge(e.value,e.length,n));case le:return He([Le(e,{value:ge(e.value,"@","@"+ae)})],r);case ue:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(me(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ne(Le(e,{props:[ge(t,/:(read-\w+)/,":-moz-$1")]})),Ne(Le(e,{props:[t]})),he(e,{props:xe(n,r)});break;case"::placeholder":Ne(Le(e,{props:[ge(t,/:(plac\w+)/,":"+ae+"input-$1")]})),Ne(Le(e,{props:[ge(t,/:(plac\w+)/,":-moz-$1")]})),Ne(Le(e,{props:[ge(t,/:(plac\w+)/,oe+"input-$1")]})),Ne(Le(e,{props:[t]})),he(e,{props:xe(n,r)})}return""})}}function Ve(e){return function(e){return Ie="",e}(Ze("",null,null,null,[""],e=function(e){return Se=Te=1,Re=_e(Ie=e),Ae=0,[]}(e),0,[0],e))}function Ze(e,t,n,r,o,i,a,s,u){for(var c=0,l=0,f=a,p=0,h=0,d=0,m=1,g=1,v=1,y=0,b="",_=o,w=i,E=r,x=b;g;)switch(d=y,y=Pe()){case 40:if(108!=d&&58==ye(x,f-1)){-1!=ve(x+=ge(ze(y),"&","&\f"),"&\f",fe(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:x+=ze(y);break;case 9:case 10:case 13:case 32:x+=Be(d);break;case 92:x+=Ue(De()-1,7);continue;case 47:switch(je()){case 42:case 47:Ee(Je(We(Pe(),De()),t,n,u),u);break;default:x+="/"}break;case 123*m:s[c++]=_e(x)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:-1==v&&(x=ge(x,/\f/g,"")),h>0&&_e(x)-f&&Ee(h>32?Qe(x+";",r,n,f-1,u):Qe(ge(x," ","")+";",r,n,f-2,u),u);break;case 59:x+=";";default:if(Ee(E=Ke(x,t,n,c,l,o,s,b,_=[],w=[],f,i),i),123===y)if(0===l)Ze(x,t,E,E,_,i,f,s,w);else switch(99===p&&110===ye(x,3)?100:p){case 100:case 108:case 109:case 115:Ze(e,E,E,r&&Ee(Ke(e,E,E,0,0,o,s,b,o,_=[],f,w),w),o,w,f,s,r?_:w);break;default:Ze(x,E,E,E,[""],w,0,s,w)}}c=l=h=0,m=v=1,b=x="",f=a;break;case 58:f=1+_e(x),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ke())continue;switch(x+=pe(y),y*m){case 38:v=l>0?1:(x+="\f",-1);break;case 44:s[c++]=(_e(x)-1)*v,v=1;break;case 64:45===je()&&(x+=ze(Pe())),p=je(),l=f=_e(b=x+=qe(De())),y++;break;case 45:45===d&&2==_e(x)&&(m=0)}}return i}function Ke(e,t,n,r,o,i,a,s,u,c,l,f){for(var p=o-1,h=0===o?i:[""],d=we(h),m=0,g=0,v=0;m<r;++m)for(var y=0,b=be(e,p+1,p=fe(g=a[m])),_=e;y<d;++y)(_=de(g>0?h[y]+" "+b:ge(b,/&\f/g,h[y])))&&(u[v++]=_);return Ce(e,t,n,0===o?ue:s,u,c,l,f)}function Je(e,t,n,r){return Ce(e,t,n,se,pe(Oe),be(e,2,-2),0,r)}function Qe(e,t,n,r,o){return Ce(e,t,n,ce,be(e,0,r),be(e,r+1,-1),r,o)}var et={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",nt="active",rt="data-styled-version",ot="6.1.11",it="/*!sc*/\n",at="undefined"!=typeof window&&"HTMLElement"in window,st=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),ut=(new Set,Object.freeze([])),ct=Object.freeze({});var lt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ft=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pt=/(^-|-$)/g;function ht(e){return e.replace(ft,"-").replace(pt,"")}var dt=/(a)(d)/gi,mt=function(e){return String.fromCharCode(e+(e>25?39:97))};function gt(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=mt(t%52)+n;return(mt(t%52)+n).replace(dt,"$1-$2")}var vt,yt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},bt=function(e){return yt(5381,e)};function _t(e){return"string"==typeof e&&!0}var wt="function"==typeof Symbol&&Symbol.for,Et=wt?Symbol.for("react.memo"):60115,xt=wt?Symbol.for("react.forward_ref"):60112,St={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Tt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Rt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},At=((vt={})[xt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vt[Et]=Rt,vt);function Ot(e){return("type"in(t=e)&&t.type.$$typeof)===Et?Rt:"$$typeof"in e?At[e.$$typeof]:St;var t}var It=Object.defineProperty,Ct=Object.getOwnPropertyNames,Lt=Object.getOwnPropertySymbols,Nt=Object.getOwnPropertyDescriptor,kt=Object.getPrototypeOf,Pt=Object.prototype;function jt(e,t,n){if("string"!=typeof t){if(Pt){var r=kt(t);r&&r!==Pt&&jt(e,r,n)}var o=Ct(t);Lt&&(o=o.concat(Lt(t)));for(var i=Ot(e),a=Ot(t),s=0;s<o.length;++s){var u=o[s];if(!(u in Tt||n&&n[u]||a&&u in a||i&&u in i)){var c=Nt(t,u);try{It(e,u,c)}catch(e){}}}}return e}function Dt(e){return"function"==typeof e}function Mt(e){return"object"==typeof e&&"styledComponentId"in e}function $t(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function zt(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Bt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ut(e,t,n){if(void 0===n&&(n=!1),!n&&!Bt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ut(e[r],t[r]);else if(Bt(t))for(var r in t)e[r]=Ut(e[r],t[r]);return e}function Ft(e,t){Object.defineProperty(e,"toString",{value:t})}function Wt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var qt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Wt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(it);return t},e}(),Ht=new Map,Yt=new Map,Gt=1,Xt=function(e){if(Ht.has(e))return Ht.get(e);for(;Yt.has(Gt);)Gt++;var t=Gt++;return Ht.set(e,t),Yt.set(t,e),t},Vt=function(e,t){Gt=t+1,Ht.set(e,t),Yt.set(t,e)},Zt="style[".concat(tt,"][").concat(rt,'="').concat(ot,'"]'),Kt=new RegExp("^".concat(tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Jt=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Qt=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(it),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var u=s.match(Kt);if(u){var c=0|parseInt(u[1],10),l=u[2];0!==c&&(Vt(l,c),Jt(e,l,u[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}};function en(){return s.nc}var tn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(tt,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(tt,nt),r.setAttribute(rt,ot);var a=en();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},nn=function(){function e(e){this.element=tn(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Wt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),rn=function(){function e(e){this.element=tn(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),on=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),an=at,sn={isServer:!at,useCSSOMInjection:!st},un=function(){function e(e,t,n){void 0===e&&(e=ct),void 0===t&&(t={});var r=this;this.options=ee(ee({},sn),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&at&&an&&(an=!1,function(e){for(var t=document.querySelectorAll(Zt),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(tt)!==nt&&(Qt(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Ft(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Yt.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(tt,".g").concat(n,'[id="').concat(o,'"]'),u="";void 0!==i&&i.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),r+="".concat(a).concat(s,'{content:"').concat(u,'"}').concat(it)},i=0;i<n;i++)o(i);return r}(r)})}return e.registerId=function(e){return Xt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ee(ee({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new on(n):t?new nn(n):new rn(n)}(this.options),new qt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Xt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Xt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Xt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),cn=/&/g,ln=/^\s*\/\/.*$/gm;function fn(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=fn(e.children,t)),e})}function pn(e){var t,n,r,o=void 0===e?ct:e,i=o.options,a=void 0===i?ct:i,s=o.plugins,u=void 0===s?ut:s,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},l=u.slice();l.push(function(e){e.type===ue&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(cn,n).replace(r,c))}),a.prefix&&l.push(Xe),l.push(Ye);var f=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var u=e.replace(ln,""),c=Ve(i||o?"".concat(i," ").concat(o," { ").concat(u," }"):u);a.namespace&&(c=fn(c,a.namespace));var f,p,h,d=[];return He(c,(f=l.concat((h=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&h(e)})),p=we(f),function(e,t,n,r){for(var o="",i=0;i<p;i++)o+=f[i](e,t,n,r)||"";return o})),d};return f.hash=u.length?u.reduce(function(e,t){return t.name||Wt(15),yt(e,t.name)},5381).toString():"",f}var hn=new un,dn=pn(),mn=W().createContext({shouldForwardProp:void 0,styleSheet:hn,stylis:dn}),gn=(mn.Consumer,W().createContext(void 0));function vn(){return(0,U.useContext)(mn)}function yn(e){var t=(0,U.useState)(e.stylisPlugins),n=t[0],r=t[1],o=vn().styleSheet,i=(0,U.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=(0,U.useMemo)(function(){return pn({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,U.useEffect)(function(){re()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var s=(0,U.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return W().createElement(mn.Provider,{value:s},W().createElement(gn.Provider,{value:a},e.children))}var bn=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=dn);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ft(this,function(){throw Wt(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=dn),this.name+e.hash},e}(),_n=function(e){return e>="A"&&e<="Z"};function wn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;_n(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var En=function(e){return null==e||!1===e||""===e},xn=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!En(i)&&(Array.isArray(i)&&i.isCss||Dt(i)?r.push("".concat(wn(o),":"),i,";"):Bt(i)?r.push.apply(r,te(te(["".concat(o," {")],xn(i),!1),["}"],!1)):r.push("".concat(wn(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in et||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Sn(e,t,n,r){return En(e)?[]:Mt(e)?[".".concat(e.styledComponentId)]:Dt(e)?!Dt(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Sn(e(t),t,n,r):e instanceof bn?n?(e.inject(n,r),[e.getName(r)]):[e]:Bt(e)?xn(e):Array.isArray(e)?Array.prototype.concat.apply(ut,e.map(function(e){return Sn(e,t,n,r)})):[e.toString()];var o}function Tn(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Dt(n)&&!Mt(n))return!1}return!0}var Rn=bt(ot),An=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Tn(e),this.componentId=t,this.baseHash=yt(Rn,t),this.baseStyle=n,un.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=$t(r,this.staticRulesId);else{var o=zt(Sn(this.rules,e,t,n)),i=gt(yt(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=$t(r,i),this.staticRulesId=i}else{for(var s=yt(this.baseHash,n.hash),u="",c=0;c<this.rules.length;c++){var l=this.rules[c];if("string"==typeof l)u+=l;else if(l){var f=zt(Sn(l,e,t,n));s=yt(s,f+c),u+=f}}if(u){var p=gt(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(u,".".concat(p),void 0,this.componentId)),r=$t(r,p)}}return r},e}(),On=W().createContext(void 0);On.Consumer;var In={};function Cn(e,t,n){var r=Mt(e),o=e,i=!_t(e),a=t.attrs,s=void 0===a?ut:a,u=t.componentId,c=void 0===u?function(e,t){var n="string"!=typeof e?"sc":ht(e);In[n]=(In[n]||0)+1;var r="".concat(n,"-").concat(function(e){return gt(bt(e)>>>0)}(ot+n+In[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):u,l=t.displayName,f=void 0===l?function(e){return _t(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):l,p=t.displayName&&t.componentId?"".concat(ht(t.displayName),"-").concat(t.componentId):t.componentId||c,h=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,d=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;d=function(e,t){return m(e,t)&&g(e,t)}}else d=m}var v=new An(n,p,r?o.componentStyle:void 0);function y(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,u=e.target,c=W().useContext(On),l=vn(),f=e.shouldForwardProp||l.shouldForwardProp,p=function(e,t,n){return void 0===n&&(n=ct),e.theme!==n.theme&&e.theme||t||n.theme}(t,c,i)||ct,h=function(e,t,n){for(var r,o=ee(ee({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Dt(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?$t(o[s],a[s]):"style"===s?ee(ee({},o[s]),a[s]):a[s]}return t.className&&(o.className=$t(o.className,t.className)),o}(r,t,p),d=h.as||u,m={};for(var g in h)void 0===h[g]||"$"===g[0]||"as"===g||"theme"===g&&h.theme===p||("forwardedAs"===g?m.as=h.forwardedAs:f&&!f(g,d)||(m[g]=h[g]));var v=function(e,t){var n=vn();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,h),y=$t(a,s);return v&&(y+=" "+v),h.className&&(y+=" "+h.className),m[_t(d)&&!lt.has(d)?"class":"className"]=y,m.ref=n,(0,U.createElement)(d,m)}(b,e,t)}y.displayName=f;var b=W().forwardRef(y);return b.attrs=h,b.componentStyle=v,b.displayName=f,b.shouldForwardProp=d,b.foldedComponentIds=r?$t(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=p,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ut(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Ft(b,function(){return".".concat(b.styledComponentId)}),i&&jt(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function Ln(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var Nn=function(e){return Object.assign(e,{isCss:!0})};function kn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Dt(e)||Bt(e))return Nn(Sn(Ln(ut,te([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Sn(r):Nn(Sn(Ln(r,t)))}function Pn(e,t,n){if(void 0===n&&(n=ct),!t)throw Wt(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,kn.apply(void 0,te([r],o,!1)))};return r.attrs=function(r){return Pn(e,t,ee(ee({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Pn(e,t,ee(ee({},n),r))},r}var jn=function(e){return Pn(Cn,e)},Dn=jn;function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $n(){var e,t,n=(e=["\n display: flex;\n flex-direction: row;\n justify-content: start;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: start;\n align-items: center;\n box-sizing: border-box;\n cursor: pointer;\n border-radius: 8px;\n height: auto;\n &.hide-arrow {\n > .icon {\n display: none;\n }\n > .text {\n padding-left: 8px;\n }\n }\n > .icon {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: 30px;\n height: 30px;\n &.open {\n rotate: 90deg;\n }\n &.hide {\n user-select: none;\n opacity: 0;\n }\n }\n > .text {\n display: flex;\n flex-direction: row;\n justify-content: start;\n align-items: center;\n width: auto;\n height: 30px;\n padding: 8px;\n padding-left: 0px;\n flex: 1;\n }\n &:hover {\n background-color: #0000000a;\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return $n=function(){return n},n}lt.forEach(function(e){Dn[e]=jn(e)}),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Tn(e),un.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,r){var o=r(zt(Sn(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&un.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=en(),r=zt([n&&'nonce="'.concat(n,'"'),"".concat(tt,'="true"'),"".concat(rt,'="').concat(ot,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Wt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Wt(2);var n=((t={})[tt]="",t[rt]=ot,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=en();return r&&(n.nonce=r),[W().createElement("style",ee({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new un({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Wt(2);return W().createElement(yn,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Wt(3)}}(),"__sc-".concat(tt,"__");var zn=Dn.div($n()),Bn=function(e){var t,n,r,o,i=e.item,a=e.level,s=e.onClick,u=e.itemWrapper,c=e.isRoot,l=(0,Q.useRouter)(),f=location.pathname.slice(0,-1),p=location.pathname.startsWith(i.pagePath)&&f!==i.pagePath,h=(r=(0,U.useState)(p),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mn(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=h[0],m=h[1],g=u,v=c?i.pagePath.split("/").slice(0,-1).join("/"):void 0,y=l.asPath===i.pagePath||v===l.asPath;return React.createElement(React.Fragment,null,g?React.createElement(g,{properties:{title:i.name,isSelected:y},events:{click:function(){s?s(i.pagePath):l.push(i.pagePath)}},style:{paddingLeft:"".concat(15*a,"px")}}):React.createElement(zn,{style:{paddingLeft:"".concat(15*a,"px")}},React.createElement("div",{onClick:function(){return m(!d)},className:"icon ".concat(d?"open":"close")},(null===(t=i.children)||void 0===t?void 0:t.length)?React.createElement("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M0.0854187 1.36887L0.746734 0.696899L6.09215 5.95757L5.43083 6.62954L0.0854187 1.36887Z",fill:"black"}),React.createElement("path",{d:"M5.42025 5.29636L6.09215 5.95757L0.831473 11.3032L0.159501 10.6419L5.42025 5.29636Z",fill:"black"})):React.createElement("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{cx:"3.44977",cy:"2.93213",r:"2",stroke:"#666666"}))),React.createElement("div",{onClick:function(){s?s(i.pagePath):l.push(i.pagePath)},className:"text"},i.name)),!!(null===(n=i.children)||void 0===n?void 0:n.length)&&d&&React.createElement(Un,{onClick:s,list:i.children,level:a+1,itemWrapper:u}))},Un=function(e){return React.createElement(React.Fragment,null,e.list.map(function(t,n){return React.createElement(Bn,{item:t,onClick:e.onClick,key:t.pagePath,level:e.level,itemWrapper:e.itemWrapper,isRoot:0===n&&e.isRoot})}))},Fn=function(e){return React.createElement(React.Fragment,null,React.createElement(Un,{onClick:e.onClick,list:e.list,level:0,itemWrapper:e.itemWrapper,isRoot:!0}))},Wn=Object.defineProperty,qn=(e,t)=>()=>(e&&(t=e(e=0)),t),Hn=(e,t)=>{for(var n in t)Wn(e,n,{get:t[n],enumerable:!0})},Yn={};Hn(Yn,{default:()=>Gn});var Gn,Xn=qn(()=>{Gn=[{type:"cmnt",match:/(;|#).*/gm},{expand:"str"},{expand:"num"},{type:"num",match:/\$[\da-fA-F]*\b/g},{type:"kwd",match:/^[a-z]+\s+[a-z.]+\b/gm,sub:[{type:"func",match:/^[a-z]+/g}]},{type:"kwd",match:/^\t*[a-z][a-z\d]*\b/gm},{match:/%|\$/g,type:"oper"}]}),Vn={};Hn(Vn,{default:()=>Kn});var Zn,Kn,Jn=qn(()=>{Kn=[{sub:"todo",match:/#.*/g},{type:"str",match:/(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,sub:[Zn={type:"var",match:/\$\w+|\${[^}]*}|\$\([^)]*\)/g}]},{type:"oper",match:/(?<=\s|^)\.*\/[a-z/_.-]+/gi},{type:"kwd",match:/\s-[a-zA-Z]+|$<|[&|;]+|\b(unset|readonly|shift|export|if|fi|else|elif|while|do|done|for|until|case|esac|break|continue|exit|return|trap|wait|eval|exec|then|declare|enable|local|select|typeset|time|add|remove|install|update|delete)(?=\s|$)/g},{expand:"num"},{type:"func",match:/(?<=(^|\||\&\&|\;)\s*)[a-z_.-]+(?=\s|$)/gim},{type:"bool",match:/(?<=\s|^)(true|false)(?=\s|$)/g},{type:"oper",match:/[=(){}<>!]+/g},{type:"var",match:/(?<=\s|^)[\w_]+(?=\s*=)/g},Zn]}),Qn={};Hn(Qn,{default:()=>er});var er,tr=qn(()=>{er=[{match:/[^\[\->+.<\]\s].*/g,sub:"todo"},{type:"func",match:/\.+/g},{type:"kwd",match:/[<>]+/g},{type:"oper",match:/[+-]+/g}]}),nr={};Hn(nr,{default:()=>rr});var rr,or=qn(()=>{rr=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/#\s*include (<.*>|".*")/g,sub:[{type:"str",match:/(<|").*/g}]},{match:/asm\s*{[^}]*}/g,sub:[{type:"kwd",match:/^asm/g},{match:/[^{}]*(?=}$)/g,sub:"asm"}]},{type:"kwd",match:/\*|&|#[a-z]+\b|\b(asm|auto|double|int|struct|break|else|long|switch|case|enum|register|typedef|char|extern|return|union|const|float|short|unsigned|continue|for|signed|void|default|goto|sizeof|volatile|do|if|static|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),ir={};Hn(ir,{default:()=>ar});var ar,sr=qn(()=>{ar=[{match:/\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/@\w+\b|\b(and|not|only|or)\b|\b[a-z-]+(?=[^{}]*{)/g},{type:"var",match:/\b[\w-]+(?=\s*:)|(::?|\.)[\w-]+(?=[^{}]*{)/g},{type:"func",match:/#[\w-]+(?=[^{}]*{)/g},{type:"num",match:/#[\da-f]{3,8}/g},{type:"num",match:/\d+(\.\d+)?(cm|mm|in|px|pt|pc|em|ex|ch|rem|vm|vh|vmin|vmax|%)?/g,sub:[{type:"var",match:/[a-z]+|%/g}]},{match:/url\([^)]*\)/g,sub:[{type:"func",match:/url(?=\()/g},{type:"str",match:/[^()]+/g}]},{type:"func",match:/\b[a-zA-Z]\w*(?=\s*\()/g},{type:"num",match:/\b[a-z-]+\b/g}]}),ur={};Hn(ur,{default:()=>cr});var cr,lr=qn(()=>{cr=[{expand:"strDouble"},{type:"oper",match:/,/g}]}),fr={};Hn(fr,{default:()=>pr});var pr,hr=qn(()=>{pr=[{type:"deleted",match:/^[-<].*/gm},{type:"insert",match:/^[+>].*/gm},{type:"kwd",match:/!.*/gm},{type:"section",match:/^@@.*@@$|^\d.*|^([*-+])\1\1.*/gm}]}),dr={};Hn(dr,{default:()=>mr});var mr,gr=qn(()=>{Jn(),mr=[{type:"kwd",match:/^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)\b/gim},...Kn]}),vr={};Hn(vr,{default:()=>yr});var yr,br=qn(()=>{hr(),yr=[{match:/^#.*/gm,sub:"todo"},{expand:"str"},...pr,{type:"func",match:/^(\$ )?git(\s.*)?$/gm},{type:"kwd",match:/^commit \w+$/gm}]}),_r={};Hn(_r,{default:()=>wr});var wr,Er=qn(()=>{wr=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\*|&|\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go|goto|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"oper",match:/[+\-*\/%&|^~=!<>.^-]+/g}]}),xr={};Hn(xr,{default:()=>Ar,name:()=>Sr,properties:()=>Tr,xmlElement:()=>Rr});var Sr,Tr,Rr,Ar,Or=qn(()=>{Tr=`\\s*(\\s+${Sr=`[${":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�"}][:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.0-9·̀-ͯ‿-⁀]*`}\\s*(=\\s*([^"']\\S*|("|')(\\\\[^]|(?!\\4)[^])*\\4?)?)?\\s*)*`,Rr={match:RegExp(`<[/!?]?${Sr}${Tr}[/!?]?>`,"g"),sub:[{type:"var",match:RegExp(`^<[/!?]?${Sr}`,"g"),sub:[{type:"oper",match:/^<[\/!?]?/g}]},{type:"str",match:/=\s*([^"']\S*|("|')(\\[^]|(?!\2)[^])*\2?)/g,sub:[{type:"oper",match:/^=/g}]},{type:"oper",match:/[\/!?]?>/g},{type:"class",match:RegExp(Sr,"g")}]},Ar=[{match:/<!--((?!-->)[^])*-->/g,sub:"todo"},{type:"class",match:/<!\[CDATA\[[\s\S]*?\]\]>/gi},Rr,{type:"str",match:RegExp(`<\\?${Sr}([^?]|\\?[^?>])*\\?+>`,"g"),sub:[{type:"var",match:RegExp(`^<\\?${Sr}`,"g"),sub:[{type:"oper",match:/^<\?/g}]},{type:"oper",match:/\?+>$/g}]},{type:"var",match:/&(#x?)?[\da-z]{1,8};/gi}]}),Ir={};Hn(Ir,{default:()=>Cr});var Cr,Lr,Nr,kr=qn(()=>{Or(),Cr=[{type:"class",match:/<!DOCTYPE("[^"]*"|'[^']*'|[^"'>])*>/gi,sub:[{type:"str",match:/"[^"]*"|'[^']*'/g},{type:"oper",match:/^<!|>$/g},{type:"var",match:/DOCTYPE/gi}]},{match:RegExp(`<style${Tr}>((?!</style>)[^])*</style\\s*>`,"g"),sub:[{match:RegExp(`^<style${Tr}>`,"g"),sub:Rr.sub},{match:RegExp(`${Rr.match}|[^]*(?=</style\\s*>$)`,"g"),sub:"css"},Rr]},{match:RegExp(`<script${Tr}>((?!<\/script>)[^])*</script\\s*>`,"g"),sub:[{match:RegExp(`^<script${Tr}>`,"g"),sub:Rr.sub},{match:RegExp(`${Rr.match}|[^]*(?=</script\\s*>$)`,"g"),sub:"js"},Rr]},...Ar]}),Pr=qn(()=>{Lr=[["bash",[/#!(\/usr)?\/bin\/bash/g,500],[/\b(if|elif|then|fi|echo)\b|\$/g,10]],["html",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^\s+<!DOCTYPE\s+html/g,500]],["http",[/^(GET|HEAD|POST|PUT|DELETE|PATCH|HTTP)\b/g,500]],["js",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require)\b/g,10]],["ts",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require|implements|interface|namespace)\b/g,10]],["py",[/\b(def|print|class|and|or|lambda)\b/g,10]],["sql",[/\b(SELECT|INSERT|FROM)\b/g,50]],["pl",[/#!(\/usr)?\/bin\/perl/g,500],[/\b(use|print)\b|\$/g,10]],["lua",[/#!(\/usr)?\/bin\/lua/g,500]],["make",[/\b(ifneq|endif|if|elif|then|fi|echo|.PHONY|^[a-z]+ ?:$)\b|\$/gm,10]],["uri",[/https?:|mailto:|tel:|ftp:/g,30]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["diff",[/^[+><-]/gm,10],[/^@@ ?[-+,0-9 ]+ ?@@/gm,25]],["md",[/^(>|\t\*|\t\d+.)/gm,10],[/\[.*\](.*)/g,10]],["docker",[/^(FROM|ENTRYPOINT|RUN)/gm,500]],["xml",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^<\?xml/g,500]],["c",[/#include\b|\bprintf\s+\(/g,100]],["rs",[/^\s+(use|fn|mut|match)\b/gm,100]],["go",[/\b(func|fmt|package)\b/g,100]],["java",[/^import\s+java/gm,500]],["asm",[/^(section|global main|extern|\t(call|mov|ret))/gm,100]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["json",[/\b(true|false|null|\{})\b|\"[^"]+\":/g,10]],["yaml",[/^(\s+)?[a-z][a-z0-9]*:/gim,10]]],Nr=e=>Lr.map(([t,...n])=>[t,n.reduce((t,[n,r])=>t+[...e.matchAll(n)].length*r,0)]).filter(([e,t])=>t>20).sort((e,t)=>t[1]-e[1])[0]?.[0]||"plain"}),jr={};Hn(jr,{default:()=>Dr});var Dr,Mr=qn(()=>{Pr(),Dr=[{type:"kwd",match:/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI|SEARCH)\b/gm},{expand:"str"},{type:"section",match:/\bHTTP\/[\d.]+\b/g},{expand:"num"},{type:"oper",match:/[,;:=]/g},{type:"var",match:/[a-zA-Z][\w-]*(?=:)/g},{match:/\n\n[^]*/g,sub:Nr}]}),$r={};Hn($r,{default:()=>zr});var zr,Br=qn(()=>{zr=[{match:/(^[ \f\t\v]*)[#;].*/gm,sub:"todo"},{type:"str",match:/.*/g},{type:"var",match:/.*(?==)/g},{type:"section",match:/^\s*\[.+\]\s*$/gm},{type:"oper",match:/=/g}]}),Ur={};Hn(Ur,{default:()=>Fr});var Fr,Wr=qn(()=>{Fr=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(abstract|assert|boolean|break|byte|case|catch|char|class|continue|const|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|package|private|protected|public|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|transient|try|var|void|volatile|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),qr={};Hn(qr,{default:()=>Hr});var Hr,Yr=qn(()=>{Hr=[{match:/\/\*\*((?!\*\/)[^])*(\*\/)?/g,sub:"jsdoc"},{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{match:/`((?!`)[^]|\\[^])*`?/g,sub:"js_template_literals"},{type:"kwd",match:/=>|\b(this|set|get|as|async|await|break|case|catch|class|const|constructor|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|if|implements|import|in|instanceof|interface|let|var|of|new|package|private|protected|public|return|static|super|switch|throw|throws|try|typeof|void|while|with|yield)\b/g},{match:/\/((?!\/)[^\r\n\\]|\\.)+\/[dgimsuy]*/g,sub:"regex"},{expand:"num"},{type:"num",match:/\b(NaN|null|undefined|[A-Z][A-Z_]*)\b/g},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z$_][\w$_]*(?=\s*((\?\.)?\s*\(|=\s*(\(?[\w,{}\[\])]+\)? =>|function\b)))/g}]}),Gr={};Hn(Gr,{default:()=>Xr,type:()=>Vr});var Xr,Vr,Zr=qn(()=>{Xr=[{match:new class{exec(e){let t,n=this.lastIndex,r=t=>{for(;++n<e.length-2;)if("{"==e[n])r();else if("}"==e[n])return};for(;n<e.length;++n)if("\\"!=e[n-1]&&"$"==e[n]&&"{"==e[n+1])return t=n++,r(n),this.lastIndex=n+1,{index:t,0:e.slice(t,n+1)};return null}},sub:[{type:"kwd",match:/^\${|}$/g},{match:/(?!^\$|{)[^]+(?=}$)/g,sub:"js"}]}],Vr="str"}),Kr={};Hn(Kr,{default:()=>Jr,type:()=>Qr});var Jr,Qr,eo=qn(()=>{Jr=[{type:"err",match:/\b(TODO|FIXME|DEBUG|OPTIMIZE|WARNING|XXX|BUG)\b/g},{type:"class",match:/\bIDEA\b/g},{type:"insert",match:/\b(CHANGED|FIX|CHANGE)\b/g},{type:"oper",match:/\bQUESTION\b/g}],Qr="cmnt"}),to={};Hn(to,{default:()=>no,type:()=>ro});var no,ro,oo=qn(()=>{eo(),no=[{type:"kwd",match:/@\w+/g},{type:"class",match:/{[\w\s|<>,.@\[\]]+}/g},{type:"var",match:/\[[\w\s="']+\]/g},...Jr],ro="cmnt"}),io={};Hn(io,{default:()=>ao});var ao,so=qn(()=>{ao=[{type:"var",match:/("|')?[a-zA-Z]\w*\1(?=\s*:)/g},{expand:"str"},{expand:"num"},{type:"num",match:/\bnull\b/g},{type:"bool",match:/\b(true|false)\b/g}]}),uo={};Hn(uo,{default:()=>co});var co,lo=qn(()=>{Pr(),co=[{type:"cmnt",match:/^>.*|(=|-)\1+/gm},{type:"class",match:/\*\*((?!\*\*).)*\*\*/g},{match:/```((?!```)[^])*\n```/g,sub:e=>({type:"kwd",sub:[{match:/\n[^]*(?=```)/g,sub:e.split("\n")[0].slice(3)||Nr(e)}]})},{type:"str",match:/`[^`]*`/g},{type:"var",match:/~~((?!~~).)*~~/g},{type:"kwd",match:/_[^_]*_|\*[^*]*\*/g},{type:"kwd",match:/^\s*(\*|\d+\.)\s/gm},{type:"oper",match:/\[[^\]]*]/g},{type:"func",match:/\([^)]*\)/g}]}),fo={};Hn(fo,{default:()=>po});var po,ho=qn(()=>{lo(),Pr(),po=[{type:"insert",match:/(leanpub-start-insert)((?!leanpub-end-insert)[^])*(leanpub-end-insert)?/g,sub:[{type:"insert",match:/leanpub-(start|end)-insert/g},{match:/(?!leanpub-start-insert)((?!leanpub-end-insert)[^])*/g,sub:Nr}]},{type:"deleted",match:/(leanpub-start-delete)((?!leanpub-end-delete)[^])*(leanpub-end-delete)?/g,sub:[{type:"deleted",match:/leanpub-(start|end)-delete/g},{match:/(?!leanpub-start-delete)((?!leanpub-end-delete)[^])*/g,sub:Nr}]},...co]}),mo={};Hn(mo,{default:()=>go});var go,vo=qn(()=>{go=[{type:"cmnt",match:/^#.*/gm},{expand:"strDouble"},{expand:"num"},{type:"err",match:/\b(err(or)?|[a-z_-]*exception|warn|warning|failed|ko|invalid|not ?found|alert|fatal)\b/gi},{type:"num",match:/\b(null|undefined)\b/gi},{type:"bool",match:/\b(false|true|yes|no)\b/gi},{type:"oper",match:/\.|,/g}]}),yo={};Hn(yo,{default:()=>bo});var bo,_o=qn(()=>{bo=[{match:/^#!.*|--(\[(=*)\[((?!--\]\2\])[^])*--\]\2\]|.*)/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/\b(and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|return|then|until|while)\b/g},{type:"bool",match:/\b(true|false|nil)\b/g},{type:"oper",match:/[+*/%^#=~<>:,.-]+/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*[({])/g}]}),wo={};Hn(wo,{default:()=>Eo});var Eo,xo=qn(()=>{Eo=[{match:/^\s*#.*/gm,sub:"todo"},{expand:"str"},{type:"oper",match:/[${}()]+/g},{type:"class",match:/.PHONY:/gm},{type:"section",match:/^[\w.]+:/gm},{type:"kwd",match:/\b(ifneq|endif)\b/g},{expand:"num"},{type:"var",match:/[A-Z_]+(?=\s*=)/g},{match:/^.*$/gm,sub:"bash"}]}),So={};Hn(So,{default:()=>To});var To,Ro=qn(()=>{To=[{match:/#.*/g,sub:"todo"},{type:"str",match:/(["'])(\\[^]|(?!\1)[^])*\1?/g},{expand:"num"},{type:"kwd",match:/\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while|not|and|or|xor)\b/g},{type:"oper",match:/[-+*/%~!&<>|=?,]+/g},{type:"func",match:/[a-z_]+(?=\s*\()/g}]}),Ao={};Hn(Ao,{default:()=>Oo});var Oo,Io=qn(()=>{Oo=[{expand:"strDouble"}]}),Co={};Hn(Co,{default:()=>Lo});var Lo,No=qn(()=>{Lo=[{match:/#.*/g,sub:"todo"},{match:/("""|''')(\\[^]|(?!\1)[^])*\1?/g,sub:"todo"},{type:"str",match:/f("|')(\\[^]|(?!\1).)*\1?|f((["'])\4\4)(\\[^]|(?!\3)[^])*\3?/gi,sub:[{type:"var",match:/{[^{}]*}/g,sub:[{match:/(?!^{)[^]*(?=}$)/g,sub:"py"}]}]},{expand:"str"},{type:"kwd",match:/\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\b/g},{type:"bool",match:/\b(False|True|None)\b/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*\()/g},{type:"oper",match:/[-/*+<>,=!&|^%]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),ko={};Hn(ko,{default:()=>Po,type:()=>jo});var Po,jo,Do=qn(()=>{Po=[{match:/^(?!\/).*/gm,sub:"todo"},{type:"num",match:/\[((?!\])[^\\]|\\.)*\]/g},{type:"kwd",match:/\||\^|\$|\\.|\w+($|\r|\n)/g},{type:"var",match:/\*|\+|\{\d+,\d+\}/g}],jo="oper"}),Mo={};Hn(Mo,{default:()=>$o});var $o,zo=qn(()=>{$o=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(as|break|const|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|move|mut|pub|ref|return|self|Self|static|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|final|macro|override|priv|typeof|unsized|virtual|yield|try)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*!?\s*\()/g}]}),Bo={};Hn(Bo,{default:()=>Uo});var Uo,Fo=qn(()=>{Uo=[{match:/--.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"func",match:/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/g},{type:"kwd",match:/\b(ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|kwdS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/g},{type:"num",match:/\.?\d[\d.oxa-fA-F-]*|\bNULL\b/g},{type:"bool",match:/\b(TRUE|FALSE)\b/g},{type:"oper",match:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/g},{type:"var",match:/@\S+/g}]}),Wo={};Hn(Wo,{default:()=>qo});var qo,Ho=qn(()=>{qo=[{match:/#.*/g,sub:"todo"},{type:"str",match:/("""|''')((?!\1)[^]|\\[^])*\1?/g},{expand:"str"},{type:"section",match:/^\[.+\]\s*$/gm},{type:"num",match:/\b(inf|nan)\b|\d[\d:ZT.-]*/g},{expand:"num"},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[+,.=-]/g},{type:"var",match:/\w+(?= \=)/g}]}),Yo={};Hn(Yo,{default:()=>Go});var Go,Xo=qn(()=>{Yr(),Go=[{type:"type",match:/:\s*(any|void|number|boolean|string|object|never|enum)\b/g},{type:"kwd",match:/\b(type|namespace|typedef|interface|public|private|protected|implements|declare|abstract|readonly)\b/g},...Hr]}),Vo={};Hn(Vo,{default:()=>Zo});var Zo,Ko=qn(()=>{Zo=[{match:/^#.*/gm,sub:"todo"},{type:"class",match:/^\w+(?=:?)/gm},{type:"num",match:/:\d+/g},{type:"oper",match:/[:/&?]|\w+=/g},{type:"func",match:/[.\w]+@|#[\w]+$/gm},{type:"var",match:/\w+\.\w+(\.\w+)*/g}]}),Jo={};Hn(Jo,{default:()=>Qo});var Qo,ei,ti=qn(()=>{Qo=[{match:/#.*/g,sub:"todo"},{expand:"str"},{type:"str",match:/(>|\|)\r?\n((\s[^\n]*)?(\r?\n|$))*/g},{type:"type",match:/!![a-z]+/g},{type:"bool",match:/\b(Yes|No)\b/g},{type:"oper",match:/[+:-]/g},{expand:"num"},{type:"var",match:/[a-zA-Z]\w*(?=:)/g}]}),ni={num:{type:"num",match:/(\.e?|\b)\d(e-|[\d.oxa-fA-F_])*(\.|\b)/g},str:{type:"str",match:/(["'])(\\[^]|(?!\1)[^\r\n\\])*\1?/g},strDouble:{type:"str",match:/"((?!")[^\r\n\\]|\\[^])*"?/g}},ri=(ei={"./languages/asm.js":()=>Promise.resolve().then(()=>(Xn(),Yn)),"./languages/bash.js":()=>Promise.resolve().then(()=>(Jn(),Vn)),"./languages/bf.js":()=>Promise.resolve().then(()=>(tr(),Qn)),"./languages/c.js":()=>Promise.resolve().then(()=>(or(),nr)),"./languages/css.js":()=>Promise.resolve().then(()=>(sr(),ir)),"./languages/csv.js":()=>Promise.resolve().then(()=>(lr(),ur)),"./languages/diff.js":()=>Promise.resolve().then(()=>(hr(),fr)),"./languages/docker.js":()=>Promise.resolve().then(()=>(gr(),dr)),"./languages/git.js":()=>Promise.resolve().then(()=>(br(),vr)),"./languages/go.js":()=>Promise.resolve().then(()=>(Er(),_r)),"./languages/html.js":()=>Promise.resolve().then(()=>(kr(),Ir)),"./languages/http.js":()=>Promise.resolve().then(()=>(Mr(),jr)),"./languages/ini.js":()=>Promise.resolve().then(()=>(Br(),$r)),"./languages/java.js":()=>Promise.resolve().then(()=>(Wr(),Ur)),"./languages/js.js":()=>Promise.resolve().then(()=>(Yr(),qr)),"./languages/js_template_literals.js":()=>Promise.resolve().then(()=>(Zr(),Gr)),"./languages/jsdoc.js":()=>Promise.resolve().then(()=>(oo(),to)),"./languages/json.js":()=>Promise.resolve().then(()=>(so(),io)),"./languages/leanpub-md.js":()=>Promise.resolve().then(()=>(ho(),fo)),"./languages/log.js":()=>Promise.resolve().then(()=>(vo(),mo)),"./languages/lua.js":()=>Promise.resolve().then(()=>(_o(),yo)),"./languages/make.js":()=>Promise.resolve().then(()=>(xo(),wo)),"./languages/md.js":()=>Promise.resolve().then(()=>(lo(),uo)),"./languages/pl.js":()=>Promise.resolve().then(()=>(Ro(),So)),"./languages/plain.js":()=>Promise.resolve().then(()=>(Io(),Ao)),"./languages/py.js":()=>Promise.resolve().then(()=>(No(),Co)),"./languages/regex.js":()=>Promise.resolve().then(()=>(Do(),ko)),"./languages/rs.js":()=>Promise.resolve().then(()=>(zo(),Mo)),"./languages/sql.js":()=>Promise.resolve().then(()=>(Fo(),Bo)),"./languages/todo.js":()=>Promise.resolve().then(()=>(eo(),Kr)),"./languages/toml.js":()=>Promise.resolve().then(()=>(Ho(),Wo)),"./languages/ts.js":()=>Promise.resolve().then(()=>(Xo(),Yo)),"./languages/uri.js":()=>Promise.resolve().then(()=>(Ko(),Vo)),"./languages/xml.js":()=>Promise.resolve().then(()=>(Or(),xr)),"./languages/yaml.js":()=>Promise.resolve().then(()=>(ti(),Jo))},e=>{var t=ei[e];if(t)return t();throw new Error("Module not found in bundle: "+e)}),oi={};async function ii(e,t,n){try{let r,o,i,a={},s=[],u=0,c="string"==typeof t?await(oi[t]??(oi[t]=ri(`./languages/${t}.js`))):t,l=[..."string"==typeof t?c.default:t.sub];for(;u<e.length;){for(a.index=null,r=l.length;r-- >0;){if(o=l[r].expand?ni[l[r].expand]:l[r],void 0===s[r]||s[r].match.index<u){if(o.match.lastIndex=u,i=o.match.exec(e),null===i){l.splice(r,1),s.splice(r,1);continue}s[r]={match:i,lastIndex:o.match.lastIndex}}s[r].match[0]&&(s[r].match.index<=a.index||null===a.index)&&(a={part:o,index:s[r].match.index,match:s[r].match[0],end:s[r].lastIndex})}if(null===a.index)break;n(e.slice(u,a.index),c.type),u=a.end,a.part.sub?await ii(a.match,"string"==typeof a.part.sub?a.part.sub:"function"==typeof a.part.sub?a.part.sub(a.match):a.part,n):n(a.match,a.part.type)}n(e.slice(u,e.length),c.type)}catch{n(e)}}async function ai(e,t,n=!0,r={}){let o="";return await ii(e,t,(e,t)=>o+=((e,t)=>t?`<span class="shj-syn-${t}">${e}</span>`:e)(((e="")=>e.replaceAll("&","&#38;").replaceAll?.("<","&lt;").replaceAll?.(">","&gt;"))(e),t)),n?`<div><div class="shj-numbers">${"<div></div>".repeat(!r.hideLineNumbers&&e.split("\n").length)}</div><div>${o}</div></div>`:o}function si(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ui(){var e=si(["\n position: relative;\n display: block;\n flex-direction: row;\n user-select: none;\n"]);return ui=function(){return e},e}function ci(){var e=si(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 4px;\n padding-bottom: 4px;\n user-select: none;\n white-space: pre-line;\n &.text-"," {\n --font-size: 96px;\n --line-height: 112px;\n }\n &.text-"," {\n --font-size: 60px;\n --line-height: 70px;\n }\n &.text-"," {\n --font-size: 48px;\n --line-height: 56px;\n }\n &.text-"," {\n --font-size: 34px;\n --line-height: 40px;\n }\n &.text-"," {\n --font-size: 24px;\n --line-height: 28px;\n }\n &.text-"," {\n --font-size: 20px;\n --line-height: 23px;\n }\n &.text-"," {\n --font-size: 14px;\n --line-height: 24px;\n }\n &.text-",' {\n --font-size: 12px;\n --line-height: 20px;\n }\n font-size: var(--font-size);\n > .bullet {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n max-height: var(--line-height);\n user-select: none;\n }\n > .content {\n display: inline-block;\n flex-direction: row;\n justify-content: start;\n align-items: center;\n flex: 1;\n font-weight: 400;\n user-select: text;\n min-height: var(--line-height);\n line-height: var(--line-height);\n > span:first-child:empty::before {\n content: " ";\n }\n > span {\n &.S'," {\n font-weight: bold;\n }\n &.S"," {\n font-style: italic;\n }\n &.S"," {\n text-decoration: underline;\n }\n &.S"," {\n text-decoration: line-through;\n }\n &.S",".S"," {\n text-decoration: underline line-through;\n }\n }\n }\n"]);return ci=function(){return e},e}function li(){var e=si(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding: 2px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: center;\n align-items: center;\n padding-top: 10px;\n padding-bottom: 10px;\n border-radius: 8px;\n box-sizing: border-box;\n &:hover {\n background-color: transparent;\n }\n > div {\n display: flex;\n width: 100%;\n padding: 4px;\n border-radius: 8px;\n border: 1px solid #ddd;\n background-color: #fcfcfc;\n position: relative;\n > .image {\n width: 100%;\n border-radius: 4px;\n height: auto;\n }\n > .place-holder {\n min-width: 150px;\n min-height: 150px;\n min-width: 100%;\n border-radius: 4px;\n padding: 10px;\n box-sizing: border-box;\n color: #999;\n }\n }\n &.size-2 > div {\n max-width: calc(100% / 2);\n }\n &.size-3 > div {\n max-width: calc(100% / 3);\n }\n &.size-4 > div {\n max-width: calc(100% / 4);\n }\n &.size-5 > div {\n max-width: calc(100% / 5);\n }\n &.align-left {\n justify-content: left;\n }\n &.align-right > div {\n justify-content: right;\n }\n"]);return li=function(){return e},e}function fi(){var e=si(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 4px;\n padding-bottom: 4px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: 22px;\n justify-content: center;\n align-items: center;\n > .line {\n width: 100%;\n background-color: #eee;\n height: 2px;\n }\n"]);return fi=function(){return e},e}function pi(){var e=si(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding: 2px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: center;\n align-items: center;\n padding: 10px;\n border-radius: 8px;\n box-sizing: border-box;\n &:hover {\n background-color: transparent;\n }\n > div {\n width: 100%;\n padding: 4px;\n border-radius: 8px;\n border: 1px solid #ddd;\n background-color: #fcfcfc;\n > .iframe {\n min-height: 150px;\n min-width: 100%;\n max-width: 100%;\n border-radius: 4px;\n aspect-ratio: 1.7;\n border: 0px;\n }\n > .place-holder {\n min-width: 100%;\n border-radius: 4px;\n padding: 10px;\n box-sizing: border-box;\n color: #999;\n margin: 0px !important;\n box-shadow: none;\n font-family: monospace;\n font-size: 14px;\n background: transparent;\n user-select: text;\n }\n }\n"]);return pi=function(){return e},e}function hi(){var e=si(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding: 2px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: center;\n align-items: center;\n padding: 10px;\n border-radius: 8px;\n box-sizing: border-box;\n &:hover {\n background-color: transparent;\n }\n > div {\n background-color: #fff;\n width: 100%;\n padding: 4px;\n border-radius: 8px;\n border: 1px solid #000;\n display: flex;\n > .iframe {\n min-height: 150px;\n min-width: 100%;\n max-width: 100%;\n border-radius: 4px;\n aspect-ratio: 1.7;\n border: 0px;\n }\n > .place-holder {\n min-width: 150px;\n min-height: 150px;\n min-width: 100%;\n border-radius: 4px;\n padding: 10px;\n box-sizing: border-box;\n color: #999;\n }\n }\n"]);return hi=function(){return e},e}function di(){var e=si(["\n position: relative;\n display: flex;\n flex-direction: column;\n transition: all 250ms;\n width: 100%;\n min-height: 100%;\n > .tiptap {\n position: relative;\n display: flex;\n transition: all 250ms;\n flex: auto;\n > div {\n position: relative;\n display: block;\n transition: all 250ms;\n flex: auto;\n font-size: 14px;\n color: #32302c;\n caret-color: #000;\n &:first-child > * {\n padding-top: 8px;\n padding-bottom: 8px;\n margin: 0;\n }\n &:first-child > div {\n display: flex;\n flex-direction: row;\n min-height: fit-content;\n }\n\n .youtube-wrapper {\n border: 1px solid #ddd;\n padding: 4px;\n border-radius: 8px;\n width: 100%;\n height: auto;\n display: flex;\n &.empty {\n padding: 10px;\n font-size: 12px;\n color: #999;\n }\n &.selected-node {\n border: 1px solid #0094e8;\n }\n > iframe {\n width: 100%;\n aspect-ratio: 1.85/1;\n border-radius: 4px;\n }\n &.selected-node {\n border: 1px solid #333;\n }\n &.size-2 {\n max-width: calc(100% / 2);\n }\n &.size-3 {\n max-width: calc(100% / 3);\n }\n &.size-4 {\n max-width: calc(100% / 4);\n }\n &.size-5 {\n max-width: calc(100% / 5);\n }\n }\n\n .image-wrapper {\n border: 1px solid #ddd;\n padding: 4px;\n border-radius: 8px;\n width: 100%;\n height: auto;\n display: flex;\n &.empty {\n padding: 10px;\n font-size: 12px;\n color: #999;\n }\n > img {\n width: 100%;\n border-radius: 4px;\n }\n &.selected-node {\n border: 1px solid#0094E8;\n }\n &.size-2 {\n max-width: calc(100% / 2);\n }\n &.size-3 {\n max-width: calc(100% / 3);\n }\n &.size-4 {\n max-width: calc(100% / 4);\n }\n &.size-5 {\n max-width: calc(100% / 5);\n }\n &.align-left {\n justify-content: left;\n }\n &.align-right > div {\n justify-content: right;\n }\n }\n\n h1,\n h2,\n h3,\n h4 {\n display: inline-block;\n padding-top: 20px !important;\n padding-bottom: 8px;\n font-weight: normal;\n }\n\n h5,\n h6 {\n display: inline-block;\n padding-top: 8px !important;\n padding-bottom: 8px;\n font-weight: normal;\n }\n\n p.is-editor-empty:first-child:before {\n color: #999;\n content: attr(data-placeholder);\n float: left;\n height: 0;\n pointer-events: none;\n }\n p {\n font-size: 15px;\n line-height: 24px;\n padding-top: 2px;\n padding-bottom: 2px;\n margin: 0;\n }\n h1 {\n font-size: 96px;\n }\n h2 {\n font-size: 60px;\n }\n h3 {\n font-size: 48px;\n }\n h4 {\n font-size: 34px;\n }\n h5 {\n font-size: 24px;\n }\n h6 {\n font-size: 24px;\n }\n a {\n font-weight: 500;\n text-decoration: underline;\n cursor: pointer;\n }\n ul {\n padding-left: 16px;\n }\n ul {\n list-style-type: disc;\n ul {\n list-style-type: circle;\n ul {\n list-style-type: square;\n }\n }\n }\n }\n > div > .drag {\n padding-right: 20px;\n > .menu {\n width: 24px;\n height: 24px;\n display: flex;\n flex-direction: row;\n background: #fff;\n border: 1px solid #f0f0f0;\n box-shadow: rgba(0, 0, 0, 0.07) 0px 5px 30px 0px;\n padding: 8px;\n border-radius: 16px;\n gap: 6px;\n }\n }\n }\n .drag-handle {\n width: 20px;\n height: 20px;\n }\n .prosemirror-dropcursor-block {\n background-color: #ddd !important;\n height: 2px !important;\n border-radius: 2px;\n }\n"]);return di=function(){return e},e}var mi=Dn.div(ui()),gi=function(e){return e[e.HEADLINE_1=0]="HEADLINE_1",e[e.HEADLINE_2=1]="HEADLINE_2",e[e.HEADLINE_3=2]="HEADLINE_3",e[e.HEADLINE_4=3]="HEADLINE_4",e[e.HEADLINE_5=4]="HEADLINE_5",e[e.HEADLINE_6=5]="HEADLINE_6",e[e.BODY_1=6]="BODY_1",e[e.BODY_2=7]="BODY_2",e}({}),vi=function(e){return e[e.BOLD=0]="BOLD",e[e.UNDERLINE=1]="UNDERLINE",e[e.LINE_THRONG=2]="LINE_THRONG",e[e.ITALIC=3]="ITALIC",e}({}),yi=function(){return React.createElement("svg",{width:"7",height:"7",viewBox:"0 0 7 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:"0.5",y:"0.5",width:"6",height:"6",rx:"3",fill:"#000000",stroke:"black"}))},bi=React.createElement("svg",{width:"7",height:"7",viewBox:"0 0 7 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("rect",{x:"0.5",y:"0.5",width:"6",height:"6",rx:"3",stroke:"black"})),_i=Dn.div(ci(),0,1,2,3,4,5,6,7,0,3,1,2,1,2),wi=Dn.div(li()),Ei=Dn.div(fi()),xi=Dn.div(pi()),Si=function(e){var t=e.code,n=(0,U.useRef)(null);return(0,U.useLayoutEffect)(function(){var e=n.current;e&&(t?async function(e,t=e.className.match(/shj-lang-([\w-]+)/)?.[1],n,r){let o=e.textContent;n??(n=("CODE"==e.tagName?"in":o.split("\n").length<2?"one":"multi")+"line"),e.dataset.lang=t,e.className=`${[...e.classList].filter(e=>!e.startsWith("shj-")).join(" ")} shj-lang-${t} shj-${n}`,e.innerHTML=await ai(o,t,"multiline"==n,r)}(e,"js"):e.innerText="Code is not set.")},[t]),React.createElement(xi,null,React.createElement("div",null,React.createElement("link",{rel:"stylesheet",href:"https://cdn.jsdelivr.net/gh/speed-highlight/core/dist/themes/github-light.css"}),React.createElement("div",{ref:n,className:"place-holder header shj-lang-js shj-multiline fira"},!!t&&t)))},Ti=Dn.div(hi()),Ri=Dn.div(di()),Ai=function(e,t){};const Oi={canPush:Ai,canRemove:Ai,canRemoveAll:Ai,canPushAt:function(e,t,n){},canRemoveAt:function(e,t){},canMath:function(e,t){},canCall:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]},isType:function(e){return e},isArrayType:function(e){return e}};var Ii=s(514),Ci=s(72),Li=s.n(Ci),Ni=s(825),ki=s.n(Ni),Pi=s(659),ji=s.n(Pi),Di=s(56),Mi=s.n(Di),$i=s(540),zi=s.n($i),Bi=s(113),Ui=s.n(Bi),Fi=s(983),Wi={};Wi.styleTagTransform=Ui(),Wi.setAttributes=Mi(),Wi.insert=ji().bind(null,"head"),Wi.domAPI=ki(),Wi.insertStyleElement=zi(),Li()(Fi.Ay,Wi);const qi=Fi.Ay&&Fi.Ay.locals?Fi.Ay.locals:void 0;function Hi(){return"undefined"!=typeof window}function Yi(e){return Vi(e)?(e.nodeName||"").toLowerCase():"#document"}function Gi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xi(e){var t;return null==(t=(Vi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Vi(e){return!!Hi()&&(e instanceof Node||e instanceof Gi(e).Node)}function Zi(e){return!!Hi()&&(e instanceof Element||e instanceof Gi(e).Element)}function Ki(e){return!!Hi()&&(e instanceof HTMLElement||e instanceof Gi(e).HTMLElement)}function Ji(e){return!(!Hi()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Gi(e).ShadowRoot)}const Qi=new Set(["inline","contents"]);function ea(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Qi.has(o)}const ta=new Set(["table","td","th"]);function na(e){return ta.has(Yi(e))}const ra=[":popover-open",":modal"];function oa(e){return ra.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const ia=["transform","translate","scale","rotate","perspective"],aa=["transform","translate","scale","rotate","perspective","filter"],sa=["paint","layout","strict","content"];function ua(e){const t=ca(),n=Zi(e)?pa(e):e;return ia.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||aa.some(e=>(n.willChange||"").includes(e))||sa.some(e=>(n.contain||"").includes(e))}function ca(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const la=new Set(["html","body","#document"]);function fa(e){return la.has(Yi(e))}function pa(e){return Gi(e).getComputedStyle(e)}function ha(e){return Zi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function da(e){if("html"===Yi(e))return e;const t=e.assignedSlot||e.parentNode||Ji(e)&&e.host||Xi(e);return Ji(t)?t.host:t}function ma(e){const t=da(e);return fa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ki(t)&&ea(t)?t:ma(t)}function ga(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ma(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Gi(o);if(i){const e=va(a);return t.concat(a,a.visualViewport||[],ea(o)?o:[],e&&n?ga(e):[])}return t.concat(o,ga(o,[],n))}function va(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ya(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ji(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ba(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function _a(e){return(null==e?void 0:e.ownerDocument)||document}function wa(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Ea(e){return"composedPath"in e?e.composedPath()[0]:e.target}const xa=Math.min,Sa=Math.max,Ta=Math.round,Ra=(Math.floor,e=>({x:e,y:e}));function Aa(e,t,n){return Sa(e,xa(t,n))}function Oa(e,t){return"function"==typeof e?e(t):e}function Ia(e){return e.split("-")[0]}function Ca(e){return e.split("-")[1]}function La(e){return"x"===e?"y":"x"}const Na=new Set(["top","bottom"]);function ka(e){return Na.has(Ia(e))?"y":"x"}function Pa(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ja(e,t,n){let{reference:r,floating:o}=e;const i=ka(t),a=function(e){return La(ka(e))}(t),s="y"===a?"height":"width",u=Ia(t),c="y"===i,l=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(u){case"top":h={x:l,y:r.y-o.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Ca(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}const Da=new Set(["left","top"]);function Ma(e){const t=pa(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ki(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ta(n)!==i||Ta(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function $a(e){return Zi(e)?e:e.contextElement}function za(e){const t=$a(e);if(!Ki(t))return Ra(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ma(t);let a=(i?Ta(n.width):n.width)/r,s=(i?Ta(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ba=Ra(0);function Ua(e){const t=Gi(e);return ca()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ba}function Fa(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=$a(e);let a=Ra(1);t&&(r?Zi(r)&&(a=za(r)):a=za(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Gi(e))&&t}(i,n,r)?Ua(i):Ra(0);let u=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,l=o.width/a.x,f=o.height/a.y;if(i){const e=Gi(i),t=r&&Zi(r)?Gi(r):r;let n=e,o=va(n);for(;o&&r&&t!==n;){const e=za(o),t=o.getBoundingClientRect(),r=pa(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,l*=e.x,f*=e.y,u+=i,c+=a,n=Gi(o),o=va(n)}}return Pa({width:l,height:f,x:u,y:c})}function Wa(e,t){const n=ha(e).scrollLeft;return t?t.left+n:Fa(Xi(e)).left+n}function qa(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Wa(e,n),y:n.top+t.scrollTop}}const Ha=new Set(["absolute","fixed"]);function Ya(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Gi(e),r=Xi(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;const e=ca();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}const c=Wa(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:u}}(e,n);else if("document"===t)r=function(e){const t=Xi(e),n=ha(e),r=e.ownerDocument.body,o=Sa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Sa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Wa(e);const s=-n.scrollTop;return"rtl"===pa(r).direction&&(a+=Sa(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Xi(e));else if(Zi(t))r=function(e,t){const n=Fa(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ki(e)?za(e):Ra(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ua(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Pa(r)}function Ga(e,t){const n=da(e);return!(n===t||!Zi(n)||fa(n))&&("fixed"===pa(n).position||Ga(n,t))}function Xa(e,t,n){const r=Ki(t),o=Xi(t),i="fixed"===n,a=Fa(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const u=Ra(0);function c(){u.x=Wa(o)}if(r||!r&&!i)if(("body"!==Yi(t)||ea(o))&&(s=ha(t)),r){const e=Fa(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const l=!o||r||i?Ra(0):qa(o,s);return{x:a.left+s.scrollLeft-u.x-l.x,y:a.top+s.scrollTop-u.y-l.y,width:a.width,height:a.height}}function Va(e){return"static"===pa(e).position}function Za(e,t){if(!Ki(e)||"fixed"===pa(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Xi(e)===n&&(n=n.ownerDocument.body),n}function Ka(e,t){const n=Gi(e);if(oa(e))return n;if(!Ki(e)){let t=da(e);for(;t&&!fa(t);){if(Zi(t)&&!Va(t))return t;t=da(t)}return n}let r=Za(e,t);for(;r&&na(r)&&Va(r);)r=Za(r,t);return r&&fa(r)&&Va(r)&&!ua(r)?n:r||function(e){let t=da(e);for(;Ki(t)&&!fa(t);){if(ua(t))return t;if(oa(t))return null;t=da(t)}return null}(e)||n}const Ja={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Xi(r),s=!!t&&oa(t.floating);if(r===a||s&&i)return n;let u={scrollLeft:0,scrollTop:0},c=Ra(1);const l=Ra(0),f=Ki(r);if((f||!f&&!i)&&(("body"!==Yi(r)||ea(a))&&(u=ha(r)),Ki(r))){const e=Fa(r);c=za(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const p=!a||f||i?Ra(0):qa(a,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+l.x+p.x,y:n.y*c.y-u.scrollTop*c.y+l.y+p.y}},getDocumentElement:Xi,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?oa(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ga(e,[],!1).filter(e=>Zi(e)&&"body"!==Yi(e)),o=null;const i="fixed"===pa(e).position;let a=i?da(e):e;for(;Zi(a)&&!fa(a);){const t=pa(a),n=ua(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Ha.has(o.position)||ea(a)&&!n&&Ga(e,a))?r=r.filter(e=>e!==a):o=t,a=da(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Ya(t,n,o);return e.top=Sa(r.top,e.top),e.right=xa(r.right,e.right),e.bottom=xa(r.bottom,e.bottom),e.left=Sa(r.left,e.left),e},Ya(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ka,getElementRects:async function(e){const t=this.getOffsetParent||Ka,n=this.getDimensions,r=await n(e.floating);return{reference:Xa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ma(e);return{width:t,height:n}},getScale:za,isElement:Zi,isRTL:function(e){return"rtl"===pa(e).direction}},Qa=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,u=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Ia(n),s=Ca(n),u="y"===ka(n),c=Da.has(a)?-1:1,l=i&&u?-1:1,f=Oa(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof d&&(h="end"===s?-1*d:d),u?{x:h*l,y:p*c}:{x:p*c,y:h*l}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},es=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=Oa(e,t),c={x:n,y:r},l=await async function(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Oa(t,e),d=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(h),m=s[p?"floating"===f?"reference":"floating":f],g=Pa(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:u})),v="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},_=Pa(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:u}):v);return{top:(g.top-_.top+d.top)/b.y,bottom:(_.bottom-g.bottom+d.bottom)/b.y,left:(g.left-_.left+d.left)/b.x,right:(_.right-g.right+d.right)/b.x}}(t,u),f=ka(Ia(o)),p=La(f);let h=c[p],d=c[f];if(i){const e="y"===p?"bottom":"right";h=Aa(h+l["y"===p?"top":"left"],h,h-l[e])}if(a){const e="y"===f?"bottom":"right";d=Aa(d+l["y"===f?"top":"left"],d,d-l[e])}const m=s.fn({...t,[p]:h,[f]:d});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:i,[f]:a}}}}}},ts=(e,t,n)=>{const r=new Map,o={platform:Ja,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),u=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:f}=ja(c,r,u),p=r,h={},d=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:l,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});l=null!=g?g:l,f=null!=v?v:f,h={...h,[i]:{...h[i],...y}},b&&d<=50&&(d++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:f}=ja(c,p,u))),n=-1)}return{x:l,y:f,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var ns="undefined"!=typeof document?U.useLayoutEffect:function(){};function rs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!rs(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||rs(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function os(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function is(e,t){const n=os(e);return Math.round(t*n)/n}function as(e){const t=U.useRef(e);return ns(()=>{t.current=e}),t}const ss=(e,t)=>({...Qa(e),options:[e,t]}),us=(e,t)=>({...es(e),options:[e,t]}),cs={...F},ls=cs.useInsertionEffect||(e=>e());function fs(e){const t=U.useRef(()=>{});return ls(()=>{t.current=e}),U.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var ps="undefined"!=typeof document?U.useLayoutEffect:U.useEffect;let hs=!1,ds=0;const ms=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ds++,gs=cs.useId||function(){const[e,t]=U.useState(()=>hs?ms():void 0);return ps(()=>{null==e&&t(ms())},[]),U.useEffect(()=>{hs=!0},[]),e};const vs=U.createContext(null),ys=U.createContext(null),bs=()=>{var e;return(null==(e=U.useContext(vs))?void 0:e.id)||null},_s=()=>U.useContext(ys);function ws(e){return"data-floating-ui-"+e}function Es(e){const t=(0,U.useRef)(e);return ps(()=>{t.current=e}),t}const xs=ws("safe-polygon");function Ss(e,t,n){return n&&!ba(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Ts(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}const Rs="data-floating-ui-focusable";function As(e){return Ki(e.target)&&"BUTTON"===e.target.tagName}function Os(e){return function(e){return Ki(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}(e)}const Is={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Cs={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ls=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Ns(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:u=!0,outsidePressEvent:c="pointerdown",referencePress:l=!1,referencePressEvent:f="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:d}=t,m=_s(),g=fs("function"==typeof u?u:()=>!1),v="function"==typeof u?g:u,y=U.useRef(!1),b=U.useRef(!1),{escapeKey:_,outsidePress:w}=Ls(h),{escapeKey:E,outsidePress:x}=Ls(d),S=U.useRef(!1),T=fs(e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;if(S.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,u=m?Ts(m.nodesRef.current,o):[];if(!_&&(e.stopPropagation(),u.length>0)){let e=!0;if(u.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),R=fs(e=>{var t;const n=()=>{var t;T(e),null==(t=Ea(e))||t.removeEventListener("keydown",n)};null==(t=Ea(e))||t.addEventListener("keydown",n)}),A=fs(e=>{var t;const n=y.current;y.current=!1;const a=b.current;if(b.current=!1,"click"===c&&a)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=Ea(e),u="["+ws("inert")+"]",l=_a(o.floating).querySelectorAll(u);let f=Zi(s)?s:null;for(;f&&!fa(f);){const e=da(f);if(fa(e)||!Zi(e))break;f=e}if(l.length&&Zi(s)&&!s.matches("html,body")&&!ya(s,o.floating)&&Array.from(l).every(e=>!ya(f,e)))return;if(Ki(s)&&C){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===pa(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,h=m&&Ts(m.nodesRef.current,p).some(t=>{var n;return wa(e,null==(n=t.context)?void 0:n.elements.floating)});if(wa(e,o.floating)||wa(e,o.domReference)||h)return;const d=m?Ts(m.nodesRef.current,p):[];if(d.length>0){let e=!0;if(d.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),O=fs(e=>{var t;const n=()=>{var t;A(e),null==(t=Ea(e))||t.removeEventListener(c,n)};null==(t=Ea(e))||t.addEventListener(c,n)});U.useEffect(()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function u(){window.clearTimeout(e),S.current=!0}function l(){e=window.setTimeout(()=>{S.current=!1},ca()?5:0)}const f=_a(o.floating);s&&(f.addEventListener("keydown",E?R:T,E),f.addEventListener("compositionstart",u),f.addEventListener("compositionend",l)),v&&f.addEventListener(c,x?O:A,x);let h=[];return p&&(Zi(o.domReference)&&(h=ga(o.domReference)),Zi(o.floating)&&(h=h.concat(ga(o.floating))),!Zi(o.reference)&&o.reference&&o.reference.contextElement&&(h=h.concat(ga(o.reference.contextElement)))),h=h.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)}),h.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{s&&(f.removeEventListener("keydown",E?R:T,E),f.removeEventListener("compositionstart",u),f.removeEventListener("compositionend",l)),v&&f.removeEventListener(c,x?O:A,x),h.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,s,v,c,n,r,p,a,_,w,T,E,R,A,x,O]),U.useEffect(()=>{y.current=!1},[v,c]);const I=U.useMemo(()=>({onKeyDown:T,[Is[f]]:e=>{l&&r(!1,e.nativeEvent,"reference-press")}}),[T,r,l,f]),C=U.useMemo(()=>({onKeyDown:T,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[Cs[c]]:()=>{y.current=!0}}),[T,c]);return U.useMemo(()=>a?{reference:I,floating:C}:{},[a,I,C])}function ks(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=gs(),i=U.useRef({}),[a]=U.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),s=null!=bs(),[u,c]=U.useState(r.reference),l=fs((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),f=U.useMemo(()=>({setPositionReference:c}),[]),p=U.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return U.useMemo(()=>({dataRef:i,open:t,onOpenChange:l,elements:p,events:a,floatingId:o,refs:f}),[t,l,p,a,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=U.useState(null),[s,u]=U.useState(null),c=(null==o?void 0:o.reference)||i,l=U.useRef(null),f=_s();ps(()=>{c&&(l.current=c)},[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[l,f]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=U.useState(r);rs(p,r)||h(r);const[d,m]=U.useState(null),[g,v]=U.useState(null),y=U.useCallback(e=>{e!==E.current&&(E.current=e,m(e))},[]),b=U.useCallback(e=>{e!==x.current&&(x.current=e,v(e))},[]),_=i||d,w=a||g,E=U.useRef(null),x=U.useRef(null),S=U.useRef(l),T=null!=u,R=as(u),A=as(o),O=as(c),I=U.useCallback(()=>{if(!E.current||!x.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),ts(E.current,x.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};C.current&&!rs(S.current,t)&&(S.current=t,Ii.flushSync(()=>{f(t)}))})},[p,t,n,A,O]);ns(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);const C=U.useRef(!1);ns(()=>(C.current=!0,()=>{C.current=!1}),[]),ns(()=>{if(_&&(E.current=_),w&&(x.current=w),_&&w){if(R.current)return R.current(_,w,I);I()}},[_,w,I,R,T]);const L=U.useMemo(()=>({reference:E,floating:x,setReference:y,setFloating:b}),[y,b]),N=U.useMemo(()=>({reference:_,floating:w}),[_,w]),k=U.useMemo(()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=is(N.floating,l.x),r=is(N.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...os(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,N.floating,l.x,l.y]);return U.useMemo(()=>({...l,update:I,refs:L,elements:N,floatingStyles:k}),[l,I,L,N,k])}({...e,elements:{...o,...s&&{reference:s}}}),h=U.useCallback(e=>{const t=Zi(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),p.refs.setReference(t)},[p.refs]),d=U.useCallback(e=>{(Zi(e)||null===e)&&(l.current=e,a(e)),(Zi(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Zi(e))&&p.refs.setReference(e)},[p.refs]),m=U.useMemo(()=>({...p.refs,setReference:d,setPositionReference:h,domReference:l}),[p.refs,d,h]),g=U.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),v=U.useMemo(()=>({...p,...r,refs:m,elements:g,nodeId:t}),[p,m,g,t,r]);return ps(()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),U.useMemo(()=>({...p,context:v,refs:m,elements:g}),[p,m,g,v])}const Ps="active",js="selected";function Ds(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Ps]:t,[js]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Rs]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var a;o&&[Ps,js].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function Ms(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=U.useCallback(t=>Ds(t,e,"reference"),t),i=U.useCallback(t=>Ds(t,e,"floating"),n),a=U.useCallback(t=>Ds(t,e,"item"),r);return U.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}function $s(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[u,c]=t[a]||[0,0];s>=r!=c>=r&&n<=(u-i)*(r-s)/(c-s)+i&&(o=!o)}return o}function zs(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,u=performance.now();const c=e=>{let{x:n,y:c,placement:l,elements:f,onClose:p,nodeId:h,tree:d}=e;return function(e){function m(){clearTimeout(o),p()}if(clearTimeout(o),!f.domReference||!f.floating||null==l||null==n||null==c)return;const{clientX:g,clientY:v}=e,y=[g,v],b=Ea(e),_="mouseleave"===e.type,w=ya(f.floating,b),E=ya(f.domReference,b),x=f.domReference.getBoundingClientRect(),S=f.floating.getBoundingClientRect(),T=l.split("-")[0],R=n>S.right-S.width/2,A=c>S.bottom-S.height/2,O=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,x),I=S.width>x.width,C=S.height>x.height,L=(I?x:S).left,N=(I?x:S).right,k=(C?x:S).top,P=(C?x:S).bottom;if(w&&(i=!0,!_))return;if(E&&(i=!1),E&&!_)return void(i=!0);if(_&&Zi(e.relatedTarget)&&ya(f.floating,e.relatedTarget))return;if(d&&Ts(d.nodesRef.current,h).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===T&&c>=x.bottom-1||"bottom"===T&&c<=x.top+1||"left"===T&&n>=x.right-1||"right"===T&&n<=x.left+1)return m();let j=[];switch(T){case"top":j=[[L,x.top+1],[L,S.bottom-1],[N,S.bottom-1],[N,x.top+1]];break;case"bottom":j=[[L,S.top+1],[L,x.bottom-1],[N,x.bottom-1],[N,S.top+1]];break;case"left":j=[[S.right-1,P],[S.right-1,k],[x.left+1,k],[x.left+1,P]];break;case"right":j=[[x.right-1,P],[x.right-1,k],[S.left+1,k],[S.left+1,P]]}if(!$s([g,v],j)){if(i&&!O)return m();if(!_&&r){const t=function(e,t){const n=performance.now(),r=n-u;if(null===a||null===s||0===r)return a=e,s=t,u=n,null;const o=e-a,i=t-s,c=Math.sqrt(o*o+i*i);return a=e,s=t,u=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}$s([g,v],function(e){let[n,r]=e;switch(T){case"top":return[[I?n+t/2:R?n+4*t:n-4*t,r+t+1],[I?n-t/2:R?n+4*t:n-4*t,r+t+1],[S.left,R||I?S.bottom-t:S.top],[S.right,R?I?S.bottom-t:S.top:S.bottom-t]];case"bottom":return[[I?n+t/2:R?n+4*t:n-4*t,r-t],[I?n-t/2:R?n+4*t:n-4*t,r-t],[S.left,R||I?S.top+t:S.bottom],[S.right,R?I?S.top+t:S.bottom:S.top+t]];case"left":{const e=[n+t+1,C?r+t/2:A?r+4*t:r-4*t],o=[n+t+1,C?r-t/2:A?r+4*t:r-4*t];return[[A||C?S.right-t:S.left,S.top],[A?C?S.right-t:S.left:S.right-t,S.bottom],e,o]}case"right":return[[n-t,C?r+t/2:A?r+4*t:r-4*t],[n-t,C?r-t/2:A?r+4*t:r-4*t],[A||C?S.left+t:S.right,S.top],[A?C?S.left+t:S.right:S.left+t,S.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(m,40)):m()}}};return c.__options={blockPointerEvents:n},c}function Bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Us(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Fs(e,t,n[t])})}return e}function qs(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Hs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||Gs(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ys(e){return function(e){if(Array.isArray(e))return Bs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gs(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gs(e,t){if(e){if("string"==typeof e)return Bs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bs(e,t):void 0}}var Xs=i,Vs=function(e){var t=e.top,n=e.left,r=e.isVisible,o=void 0!==r&&r,i=e.children,a=e.style,s=Hs((0,U.useState)(!0),2),u=s[0],c=s[1],l=Hs((0,U.useState)(!0),2),f=l[0],p=l[1];return(0,U.useEffect)(function(){p(!0),o?setTimeout(function(){c(!1)},50):(setTimeout(function(){c(!0)},50),setTimeout(function(){p(!1)},300))},[o]),W().createElement(W().Fragment,null,f&&(0,Ii.createPortal)(W().createElement("div",{className:Xs.root,style:qs(Ws({},null==a?void 0:a.root),{"--background-color":u?"rgba(0, 0, 0, 0.0)":"rgba(0, 0, 0, 0.4)"})},W().createElement("div",{className:Xs.background,property:u?"--top-value: 50%":"--top-value: ".concat(t),style:qs(Ws({},null==a?void 0:a.background),{"--top-value":u?"50%":t,"--left-value":u?"50%":n,"--transform-value":u?"translateX(-50%) translateY(-50%) scale(.9)":"translateX(-50%) translateY(-50%) scale(1)","--opacity-value":u?"0":"1"})},i())),document.body))},Zs=function(e){var t=e.children,n=e.parent,r=e.onChange,o=e.popupAlignmentProps,i=e.isVisible,a=e.action,s=void 0===a?"click":a,u=e.onInteractOutsidePopup,c=Hs((0,U.useState)(null),2),l=c[0],f=c[1],p=(0,U.useRef)(null),h=Hs((0,U.useState)(i||!1),2),d=h[0],m=h[1],g=null==n?void 0:n({isOpen:d,setRef:function(e){return f(e)},remove:function(){return m(!1)}});return(0,U.useEffect)(function(){var e;return d&&p.current&&l&&(e=new Js({popupAlignmentProps:o,element:p.current,parent:l,autoRemove:!i,filterElementOnAutoRemove:[l],onRemove:function(){m(!1)},onInteractOutside:function(){null==u||u(p.current||void 0)}})),function(){null==e||e.remove()}},[d,p.current,l]),(0,U.useEffect)(function(){var e=function(){return m(!d)},t=l;return t&&(null==t||t.addEventListener(s,e)),function(){null==t||t.removeEventListener(s,e)}},[l,d]),(0,U.useEffect)(function(){var e=function(){return m(!d)},t=l;return t&&(null==t||t.addEventListener(s,e)),function(){null==t||t.removeEventListener(s,e)}},[l,d]),(0,U.useEffect)(function(){void 0!==i&&m(i)},[i]),(0,U.useEffect)(function(){null==r||r(d)},[d]),W().createElement(W().Fragment,null,g,d&&(0,Ii.createPortal)(W().createElement("div",{className:Xs["popup-element"],style:o.style,ref:p},t({remove:function(){return m(!1)},parentRef:l||void 0})),document.body))},Ks=[],Js=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Fs(this,"onDown",function(e){var t=parseInt(n.element.style.left),r=parseInt(n.element.style.top),o=function(o){n.element.style.left=t-(e.clientX-o.clientX)+"px",n.element.style.top=r-(e.clientY-o.clientY)+"px"},i=function(){a()},a=function(){window.removeEventListener("mousemove",o),window.addEventListener("mouseup",i)};window.addEventListener("mousemove",o),window.addEventListener("mouseup",i)}),Fs(this,"resizeObserver",new ResizeObserver(function(e){n.onResize()})),Fs(this,"onRemove",void 0),Fs(this,"element",void 0),Fs(this,"parent",void 0),Fs(this,"popupAlignmentProps",void 0),Fs(this,"filterElementOnAutoRemove",[]),Fs(this,"autoRemove",void 0),Fs(this,"onInteractOutside",void 0),Fs(this,"onDownElement",!1),Fs(this,"onElementMousedown",function(){n.onDownElement=!0}),Fs(this,"onWindowMousedown",function(e){var t=Ys(n.filterElementOnAutoRemove||[]).concat(Ys(Ks)),r=t?document.elementsFromPoint(e.clientX,e.clientY).filter(function(e){return null==t?void 0:t.includes(e)}):[];!1!==n.onDownElement||r.length||(n.autoRemove&&n.remove(),n.onInteractOutside&&n.onInteractOutside()),n.onDownElement=!1}),Fs(this,"onWindowResize",function(){n.onResize&&window.requestAnimationFrame(function(){n.onResize()})}),Fs(this,"onWindowWheel",function(){n.onResize&&window.requestAnimationFrame(function(){n.onResize()})}),this.element=t.element,this.parent=t.parent,Ks.push(t.element),Ks.push(t.parent),this.onRemove=t.onRemove,this.popupAlignmentProps=t.popupAlignmentProps,this.autoRemove=t.autoRemove,this.onInteractOutside=t.onInteractOutside,this.filterElementOnAutoRemove=t.filterElementOnAutoRemove,(t.autoRemove||t.onInteractOutside)&&(this.element.addEventListener("mousedown",this.onElementMousedown),window.addEventListener("mousedown",this.onWindowMousedown),window.addEventListener("resize",this.onWindowResize),window.addEventListener("wheel",this.onWindowWheel)),this.onResize(),this.resizeObserver.observe(t.element),this.resizeObserver.observe(t.parent)}var t,n;return t=e,n=[{key:"setMovable",value:function(){this.element.addEventListener("mousedown",this.onDown)}},{key:"adjustElement",value:function(e){var t=e.getBoundingClientRect(),n={top:t.top,left:t.left,height:t.height,width:t.width,right:0,bottom:0};n.bottom=n.top+n.height,n.right=n.left+n.width;var r=document.body.offsetWidth-10,o=document.body.offsetHeight-10,i=e.offsetTop,a=e.offsetLeft;if(n.height<o)n.top<10?e.style.top="10px":n.bottom>o&&(e.style.top=i-(n.bottom-o)+"px");else if(n.height>o){e.style.top="0px";var s=e.getBoundingClientRect();s.top<0&&(e.style.top=-s.top+"px")}if(n.width<r)n.left<10?e.style.left="10px":n.right>r&&(e.style.left=a-(n.right-r)+"px");else if(n.width>r){e.style.left="0px";var u=e.getBoundingClientRect();u.left<0&&(e.style.left=-u.left+"px")}}},{key:"onResize",value:function(){var e=this.popupAlignmentProps,t=e.yType,n=void 0===t?"top-edge":t,r=e.xType,o=void 0===r?"left-edge":r,i=e.yMargin,a=void 0===i?0:i,s=e.xMargin,u=void 0===s?0:s,c=e.width,l=e.minWidth,f=e.height,p=e.minHeight,h=this.element,d=this.parent.getBoundingClientRect();h.style.contain="layout",c&&(h.style.width="auto"===c?"auto":"".concat(d.width,"px")),l&&(h.style.minWidth="auto"===l?"auto":"".concat(d.width,"px")),f&&(h.style.height="auto"===f?"auto":"".concat(d.height,"px")),p&&(h.style.minHeight="auto"===p?"auto":"".concat(d.height,"px"));var m=h.getBoundingClientRect();if("left"===o)h.style.left="".concat((d.left<1?0:d.left)-m.width+u,"px");else if("left-edge"===o)h.style.left="".concat((d.left<1?0:d.left)+u,"px");else if("right-edge"===o)h.style.left="".concat((d.left<1?0:d.left)-m.width+d.width+u,"px");else if("center"===o){var g=d.width/2-m.width/2;h.style.left="".concat((d.left<1?0:d.left)+g+u,"px")}else h.style.left="".concat((d.right<1?0:d.right)+u,"px");if("top"===n)h.style.top="".concat((d.top<1?0:d.top)-m.height+a,"px");else if("top-edge"===n)h.style.top="".concat((d.top<1?0:d.top)+a,"px");else if("bottom-edge"===n)h.style.top="".concat((d.top<1?0:d.top)-m.height+d.height+a,"px");else if("center"===n){var v=d.height/2-m.height/2;h.style.top="".concat((d.top<1?0:d.top)+v+a,"px")}else h.style.top="".concat((d.bottom<1?0:d.bottom)+a,"px");h.style.scale=(d.width/this.parent.offsetWidth).toString(),this.adjustElement(h),h.style.opacity="1"}},{key:"setXY",value:function(e,t){this.element.style.top=t+"px",this.element.style.left=e+"px"}},{key:"setXYString",value:function(e,t){this.element.style.top=t,this.element.style.left=e}},{key:"remove",value:function(){var e,t=this;Ks=Ks.filter(function(e){return e!==t.element&&e!==t.parent}),this.element.removeEventListener("mousedown",this.onElementMousedown),window.removeEventListener("mousedown",this.onWindowMousedown),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("wheel",this.onWindowWheel),null===(e=this.onRemove)||void 0===e||e.call(this)}}],n&&Us(t.prototype,n),e}(),Qs=function(e){var t=Hs((0,U.useState)(!1),2),n=t[0],r=t[1],o=(0,U.useRef)(),i=ks({open:n,onOpenChange:r,middleware:[us(),ss(e.offset||0)],placement:e.placement}),a=i.refs,s=i.x,u=i.y,c=i.strategy,l=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:u=0,handleClose:c=null,mouseOnly:l=!1,restMs:f=0,move:p=!0}=t,h=_s(),d=bs(),m=Es(c),g=Es(u),v=Es(n),y=U.useRef(),b=U.useRef(-1),_=U.useRef(),w=U.useRef(-1),E=U.useRef(!0),x=U.useRef(!1),S=U.useRef(()=>{}),T=U.useRef(!1),R=U.useCallback(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[o]);U.useEffect(()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(w.current),E.current=!0,T.current=!1)}},[s,i]),U.useEffect(()=>{if(!s)return;if(!m.current)return;if(!n)return;function e(e){R()&&r(!1,e,"hover")}const t=_a(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,r,s,m,R]);const A=U.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Ss(g.current,"close",y.current);o&&!_.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(b.current),r(!1,e,n))},[g,r]),O=fs(()=>{S.current(),_.current=void 0}),I=fs(()=>{if(x.current){const e=_a(a.floating).body;e.style.pointerEvents="",e.removeAttribute(xs),x.current=!1}});U.useEffect(()=>{if(s&&Zi(a.domReference)){var e;const t=a.domReference;return n&&t.addEventListener("mouseleave",c),null==(e=a.floating)||e.addEventListener("mouseleave",c),p&&t.addEventListener("mousemove",i,{once:!0}),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",u),()=>{var e;n&&t.removeEventListener("mouseleave",c),null==(e=a.floating)||e.removeEventListener("mouseleave",c),p&&t.removeEventListener("mousemove",i),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",u)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(e){if(clearTimeout(b.current),E.current=!1,l&&!ba(y.current)||f>0&&!Ss(g.current,"open"))return;const t=Ss(g.current,"open",y.current);t?b.current=window.setTimeout(()=>{v.current||r(!0,e,"hover")},t):r(!0,e,"hover")}function u(e){if(t())return;S.current();const r=_a(a.floating);if(clearTimeout(w.current),T.current=!1,m.current&&o.current.floatingContext){n||clearTimeout(b.current),_.current=m.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){I(),O(),A(e,!0,"safe-polygon")}});const t=_.current;return r.addEventListener("mousemove",t),void(S.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==y.current||!ya(a.floating,e.relatedTarget))&&A(e)}function c(e){t()||o.current.floatingContext&&(null==m.current||m.current({...o.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){I(),O(),A(e)}})(e))}},[a,s,e,l,f,p,A,O,I,r,n,v,h,g,m,o]),ps(()=>{var e;if(s&&n&&null!=(e=m.current)&&e.__options.blockPointerEvents&&R()){x.current=!0;const e=a.floating;if(Zi(a.domReference)&&e){var t;const n=_a(a.floating).body;n.setAttribute(xs,"");const r=a.domReference,o=null==h||null==(t=h.nodesRef.current.find(e=>e.id===d))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,n,d,a,h,m,R]),ps(()=>{n||(y.current=void 0,T.current=!1,O(),I())},[n,O,I]),U.useEffect(()=>()=>{O(),clearTimeout(b.current),clearTimeout(w.current),I()},[s,a.domReference,O,I]);const C=U.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){E.current||v.current||r(!0,t,"hover")}l&&!ba(y.current)||n||0===f||T.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(w.current),"touch"===y.current?o():(T.current=!0,w.current=window.setTimeout(o,f)))}}},[l,r,n,v,f]),L=U.useMemo(()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){A(e.nativeEvent,!1)}}),[A]);return U.useMemo(()=>s?{reference:C,floating:L}:{},[s,C,L])}(i.context,{handleClose:zs({requireIntent:!1})}),f=Ms([l]),p=f.getReferenceProps,h=f.getFloatingProps,d=p(),m=d.onMouseMove,g=d.onPointerDown,v=d.onPointerEnter,y=o.current;return(0,U.useLayoutEffect)(function(){return null==y||y.addEventListener("mousemove",m),null==y||y.addEventListener("pointerdown",g),null==y||y.addEventListener("pointerenter",v),function(){null==y||y.removeEventListener("mousemove",m),null==y||y.removeEventListener("pointerdown",g),null==y||y.removeEventListener("pointerenter",v)}},[y,m,g,v]),W().createElement(W().Fragment,null,e.children(function(e){o.current=e,a.setReference(e)}),n&&(0,Ii.createPortal)(W().createElement("div",Ws({ref:a.setFloating,style:{position:c,top:null!=u?u:0,left:null!=s?s:0,zIndex:1e3}},h()),e.element),document.body))},eu=function(e){var t=Hs((0,U.useState)(!1),2),n=t[0],r=t[1],o=(0,U.useRef)(),i=ks({open:n,onOpenChange:r,middleware:[us(),ss(e.offset||0)],placement:e.placement}),a=i.refs,s=i.x,u=i.y,c=i.strategy,l=i.context,f=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:u=!0,ignoreMouse:c=!1,keyboardHandlers:l=!0}=t,f=U.useRef(),p=U.useRef(!1),h=U.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==s&&(ba(t,!0)&&c||(!n||!u||o.current.openEvent&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===s&&f.current?f.current=void 0:ba(t,!0)&&c||(!n||!u||o.current.openEvent&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!l||As(e)||(" "!==e.key||Os(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&r(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!l||As(e)||Os(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!u,e.nativeEvent,"click"))}}),[o,i,s,c,l,r,n,u]);return U.useMemo(()=>a?{reference:h}:{},[a,h])}(l),p=Ms([f,Ns(l)]),h=p.getReferenceProps,d=p.getFloatingProps,m=h(),g=m.onPointerDown,v=m.onMouseDown,y=m.onClick,b=m.onKeyDown,_=m.onKeyUp,w=o.current;return(0,U.useLayoutEffect)(function(){return null==w||w.addEventListener("pointerdown",g),null==w||w.addEventListener("click",y),null==w||w.addEventListener("mousedown",v),null==w||w.addEventListener("keydown",b),null==w||w.addEventListener("keyup",_),function(){null==w||w.removeEventListener("pointerdown",g),null==w||w.removeEventListener("click",y),null==w||w.removeEventListener("mousedown",v),null==w||w.removeEventListener("keydown",b),null==w||w.removeEventListener("keyup",_)}},[w,g,v,y,b,_]),W().createElement(W().Fragment,null,e.children(function(e){o.current=e,a.setReference(e)}),n&&(0,Ii.createPortal)(W().createElement("div",Ws({ref:a.setFloating,style:{position:c,top:null!=u?u:0,left:null!=s?s:0,zIndex:1e3}},d()),e.element),document.body))},tu=function(e){var t=(0,U.useRef)(),n=ks({open:e.isOpen,middleware:[us(),ss(e.offset||0)],placement:e.placement,onOpenChange:function(n,r,o){var i;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t.current)}}),r=n.refs,o=n.x,i=n.y,a=n.strategy,s=Ms([Ns(n.context)]),u=s.getReferenceProps,c=s.getFloatingProps,l=u(),f=l.onPointerDown,p=l.onKeyDown,h=t.current;return(0,U.useLayoutEffect)(function(){return null==h||h.addEventListener("pointerdown",f),null==h||h.addEventListener("keydown",p),function(){null==h||h.removeEventListener("pointerdown",f),null==h||h.removeEventListener("keydown",p)}},[h,f,p]),W().createElement(W().Fragment,null,e.children(function(e){t.current=e,r.setReference(e)}),e.isOpen&&(0,Ii.createPortal)(W().createElement("div",Ws({ref:r.setFloating,style:{position:a,top:null!=i?i:0,left:null!=o?o:0,zIndex:1e3}},c()),e.element),document.body))},nu=function(e){var t=e.children,n=document.body,r=Hs((0,U.useState)({}),2)[1];return(0,U.useEffect)(function(){n.style.overflow="hidden";var e=new ResizeObserver(function(e){r({})});return e.observe(n),function(){n.style.overflow="",e.disconnect()}},[n]),W().createElement(W().Fragment,null,(0,Ii.createPortal)(W().createElement("div",{style:{top:"".concat(n.scrollTop,"px"),left:"".concat(n.scrollLeft,"px"),width:"".concat(n.scrollWidth,"px"),height:"".concat(n.scrollHeight,"px"),position:"absolute",zIndex:1e3}},W().createElement("div",{style:{top:"0px",left:"0px",width:"".concat(n.clientWidth,"px"),height:"".concat(n.clientHeight,"px"),position:"absolute"}},t)),n))},ru=function(e,t){return"%"===(null==t?void 0:t.unit)?e*((t.value||0)/100):(null==t?void 0:t.value)||0},ou=function(e,t,n){var r=0,o=function(o){var i=e.find(function(e,n,r){var o=t.clientWidth,i=t.computedStyleMap(),a=i.get("padding-left"),s=i.get("padding-left");if(o=o-ru(o,a)-ru(o,s),0===n)return o>=e;if(r.length===n+1)return!0;var u=r[n-1];return o>=e&&o<u||void 0});r!==i&&(n(o,r,i),r=i)},i=new ResizeObserver(function(){o(!1)});return o(!0),i.observe(t),i};function iu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function su(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uu(e){return function(e){if(Array.isArray(e))return iu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||cu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cu(e,t){if(e){if("string"==typeof e)return iu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iu(e,t):void 0}}var lu=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),su(this,"elements",{}),su(this,"update",void 0),su(this,"getValue",function(){return Object.values(t.elements).filter(function(e){return e.size}).map(function(e){return e.size}).join(",")}),su(this,"lastValue",""),su(this,"onUpdate",function(){var e,n,r=t.getValue();t.lastValue!==r&&(t.lastValue=r,null===(e=(n=t).update)||void 0===e||e.call(n,r))})}var t,n;return t=e,n=[{key:"render",value:function(e,t){if(e.nodeId)if(this.elements[e.nodeId]){var n=this.elements[e.nodeId];n.rendered=!0,n.item=e}else this.elements[e.nodeId]={rendered:!0,item:e,sizes:t}}},{key:"finish",value:function(){var e=this;Object.values(this.elements).map(function(e){return!!e.item.ref}).includes(!1)||Object.entries(this.elements).forEach(function(t){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(n,r)||cu(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];if(a.rendered){var s,u=a.item.ref;u&&(a.size&&u.classList.add("w".concat(a.size,"px")),a.resizeObserver&&a.item.ref===a.element||(null===(s=a.resizeObserver)||void 0===s||s.disconnect(),a.element=u,a.resizeObserver=ou(a.sizes.map(function(e){return e.width}),u,function(t,n,r){window.requestAnimationFrame(function(){var t,o,i=a.sizes.find(function(e){return e.width===n}),s=a.sizes.find(function(e){return e.width===r});(null==i?void 0:i.className)&&(null==u||(t=u.classList).remove.apply(t,uu(null==i?void 0:i.className))),(null==s?void 0:s.className)&&(null==u||(o=u.classList).add.apply(o,uu(null==s?void 0:s.className))),a.size=r,e.onUpdate()})})))}else{var c;null===(c=a.resizeObserver)||void 0===c||c.disconnect(),delete e.elements[i]}a.rendered=!1})}},{key:"remove",value:function(){Object.values(this.elements).forEach(function(e){var t;null===(t=e.resizeObserver)||void 0===t||t.disconnect()})}}],n&&au(t.prototype,n),e}(),fu=s(543),pu=s.n(fu);function hu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var vu=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mu(this,"baseState",void 0),mu(this,"bank",{}),mu(this,"getApisRequest",void 0),mu(this,"collectResponse",function(e){return Object.entries(e).reduce(function(e,t){var n=gu(t,2),r=n[0],o=n[1];return e[r]={loading:o.loading,response:{body:o.response},error:o.error,request:o.request},e},{})}),mu(this,"validateRequest",function(e,t,n){var o=r.getApisRequest(n);Object.entries(t).forEach(function(e){var t=gu(e,2),n=t[0];t[1].load(o[n])}),r.bank[e].apis=r.collectResponse(t)}),mu(this,"emit",function(e,t){r.bank[e].events.forEach(function(e){t&&t===e||e()})}),this.baseState=t,this.getApisRequest=n}var t,n;return t=e,n=[{key:"mount",value:function(e,t){var n=this;if(this.bank[e])this.bank[e].events.includes(t)||this.bank[e].events.push(t);else{var r=pu().cloneDeep(this.baseState),o=this.getApisRequest(r),i=Object.entries(o).reduce(function(t,r){var o=gu(r,2),i=o[0],a=o[1],s=new Z(function(){n.emit(e)});return s.load(a),t[i]=s,t},{});this.bank[e]={state:r,mutated:r,apiLoaders:i,apis:this.collectResponse(i),events:[t]}}}},{key:"unMount",value:function(e,t){if(this.bank[e]){var n=this.bank[e].events.indexOf(t);-1!==n&&this.bank[e].events.splice(n,1)}}},{key:"set",value:function(e,t,n){var r=this.bank[e];this.validateRequest(e,r.apiLoaders,t),this.emit(e,n)}}],n&&du(t.prototype,n),e}(),yu=function(e,t){var n=gu((0,U.useState)({}),2),r=(n[0],n[1]),o=(0,U.useMemo)(function(){var n=function(){return r({})};return t.mount(e,n),n},[e]);return(0,U.useEffect)(function(){},[o,e]),{state:t.bank[e].mutated,apis:t.bank[e].apis,set:function(n,r){return t.set(e,n,r?o:void 0),!0},setState:function(n){var r=t.bank[e].state;return n(r),t.set(e,r),!0},get:function(){return t.bank[e].state}}},bu=function(e){var t=gu((0,U.useState)({}),2),n=(t[0],t[1]),r=(0,U.useMemo)(function(){return pu().cloneDeep(e)},[]);return{state:r,getState:function(){return r},setState:function(e){return n({}),!0}}};const _u="undefined"!=typeof window,wu=_u?window:null,Eu=_u?document:null,xu={replace:0,none:1,blend:2},Su=Symbol(),Tu=Symbol(),Ru=Symbol(),Au=Symbol(),Ou=(Symbol(),Symbol()),Iu=1e-11,Cu=1e12,Lu=1e3,Nu="",ku=new Map;ku.set("x","translateX"),ku.set("y","translateY"),ku.set("z","translateZ");const Pu=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],ju=Pu.reduce((e,t)=>({...e,[t]:t+"("}),{}),Du=()=>{},Mu=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,$u=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,zu=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Bu=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,Uu=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Fu=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,Wu=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,qu=/([a-z])([A-Z])/g,Hu=/(\w+)(\([^)]+\)+)/g,Yu=/(\*=|\+=|-=)/,Gu={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:120,loop:0,reversed:!1,alternate:!1,autoplay:!0,duration:Lu,delay:0,loopDelay:0,ease:"out(2)",composition:xu.replace,modifier:e=>e,onBegin:Du,onBeforeUpdate:Du,onUpdate:Du,onLoop:Du,onPause:Du,onComplete:Du,onRender:Du},Xu={defaults:Gu,root:Eu,scope:null,precision:4,timeScale:1,tickThreshold:200},Vu={version:"4.0.0",engine:null};_u&&(wu.AnimeJS||(wu.AnimeJS=[]),wu.AnimeJS.push(Vu));const Zu=(e,t)=>0===e.indexOf(t),Ku=Date.now,Ju=Array.isArray,Qu=e=>e&&e.constructor===Object,ec=e=>"number"==typeof e&&!isNaN(e),tc=e=>"string"==typeof e,nc=e=>"function"==typeof e,rc=e=>void 0===e,oc=e=>rc(e)||null===e,ic=e=>_u&&e instanceof SVGElement,ac=e=>Mu.test(e),sc=e=>Zu(e,"rgb"),uc=e=>Zu(e,"hsl"),cc=e=>!Xu.defaults.hasOwnProperty(e),lc=e=>tc(e)?parseFloat(e):e,fc=Math.pow,pc=Math.sqrt,hc=Math.sin,dc=Math.cos,mc=Math.abs,gc=(Math.exp,Math.ceil),vc=Math.floor,yc=Math.asin,bc=(Math.max,Math.atan2,Math.PI),_c=Math.round,wc=(e,t,n)=>e<t?t:e>n?n:e,Ec={},xc=(e,t)=>{if(t<0)return e;if(!t)return _c(e);let n=Ec[t];return n||(n=Ec[t]=10**t),_c(e*n)/n},Sc=(e,t,n)=>e+(t-e)*n,Tc=e=>e===1/0?Cu:e===-1/0?-1e12:e,Rc=e=>e<Iu?Iu:e,Ac=e=>Ju(e)?[...e]:e,Oc=(e,t)=>{const n={...e};for(let r in t){const o=e[r];n[r]=rc(o)?t[r]:o}return n},Ic=(e,t,n,r="_prev",o="_next")=>{let i=e._head,a=o;for(n&&(i=e._tail,a=r);i;){const e=i[a];t(i),i=e}},Cc=(e,t,n="_prev",r="_next")=>{const o=t[n],i=t[r];o?o[r]=i:e._head=i,i?i[n]=o:e._tail=o,t[n]=null,t[r]=null},Lc=(e,t,n,r="_prev",o="_next")=>{let i=e._tail;for(;i&&n&&n(i,t);)i=i[r];const a=i?i[o]:e._head;i?i[o]=t:e._head=t,a?a[r]=t:e._tail=t,t[r]=i,t[o]=a};class Nc{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=xc(Lu/120,0),this._fps=120,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){const t=this._frameDuration,n=+e,r=n<Iu?Iu:n,o=xc(Lu/r,0);this._fps=r,this._frameDuration=o,this._scheduledTime+=o-t}get speed(){return this._speed}set speed(e){const t=+e;this._speed=t<Iu?Iu:t}requestTick(e){const t=this._scheduledTime,n=this._elapsedTime;if(this._elapsedTime+=e-n,n<t)return 0;const r=this._frameDuration,o=n-t;return this._scheduledTime+=o<r?r:o,1}computeDeltaTime(e){const t=e-this._lastTime;return this.deltaTime=t,this._lastTime=e,t}}const kc=(e,t,n,r,o)=>{const i=e.parent,a=e.duration,s=e.completed,u=e.iterationDuration,c=e.iterationCount,l=e._currentIteration,f=e._loopDelay,p=e._reversed,h=e._alternate,d=e._hasChildren,m=e._delay,g=e._currentTime,v=m+u,y=t-m,b=wc(g,-m,a),_=wc(y,-m,a),w=y-g,E=_>0,x=_>=a,S=a<=Iu,T=2===o;let R=0,A=y,O=0;if(c>1){const t=~~(_/(u+(x?0:f)));e._currentIteration=wc(t,0,c),x&&e._currentIteration--,R=e._currentIteration%2,A=_%(u+f)||0}const I=p^(h&&R),C=e._ease;let L=x?I?0:a:I?u-A:A;C&&(L=u*C(L/u)||0);const N=(i?i.backwards:y<g)?!I:!!I;if(e._currentTime=y,e._iterationTime=L,e.backwards=N,E&&!e.began?(e.began=!0,n||i&&(N||!i.began)||e.onBegin(e)):y<=0&&(e.began=!1),n||d||!E||e._currentIteration===l||e.onLoop(e),T||1===o&&(t>=m&&t<=v||t<=m&&b>m||t>=v&&b!==a)||L>=v&&b!==a||L<=m&&b>0||t<=b&&b===a&&s||x&&!s&&S){if(E&&(e.computeDeltaTime(b),n||e.onBeforeUpdate(e)),!d){const t=T||(N?-1*w:w)>=Xu.tickThreshold,o=e._offset+(i?i._offset:0)+m+L;let a,s,u,c,l=e._head,f=0;for(;l;){const e=l._composition,n=l._currentTime,i=l._changeDuration,p=l._absoluteStartTime+l._changeDuration,h=l._nextRep,d=l._prevRep,m=e!==xu.none;if((t||(n!==i||o<=p+(h?h._delay:0))&&(0!==n||o>=l._absoluteStartTime))&&(!m||!l._isOverridden&&(!l._isOverlapped||o<=p)&&(!h||h._isOverridden||o<=h._absoluteStartTime)&&(!d||d._isOverridden||o>=d._absoluteStartTime+d._changeDuration+l._delay))){const t=l._currentTime=wc(L-l._startTime,0,i),n=l._ease(t/l._updateDuration),o=l._modifier,p=l._valueType,h=l._tweenType,d=0===h,g=0===p,v=g&&d||0===n||1===n?-1:Xu.precision;let y,b;if(g)y=b=o(xc(Sc(l._fromNumber,l._toNumber,n),v));else if(1===p)b=o(xc(Sc(l._fromNumber,l._toNumber,n),v)),y=`${b}${l._unit}`;else if(2===p){const e=l._fromNumbers,t=l._toNumbers,r=xc(wc(o(Sc(e[0],t[0],n)),0,255),0),i=xc(wc(o(Sc(e[1],t[1],n)),0,255),0),a=xc(wc(o(Sc(e[2],t[2],n)),0,255),0),s=wc(o(xc(Sc(e[3],t[3],n),v)),0,1);if(y=`rgba(${r},${i},${a},${s})`,m){const e=l._numbers;e[0]=r,e[1]=i,e[2]=a,e[3]=s}}else if(3===p){y=l._strings[0];for(let e=0,t=l._toNumbers.length;e<t;e++){const t=o(xc(Sc(l._fromNumbers[e],l._toNumbers[e],n),v)),r=l._strings[e+1];y+=`${r?t+r:t}`,m&&(l._numbers[e]=t)}}if(m&&(l._number=b),r||e===xu.blend)l._value=y;else{const e=l.property;a=l.target,d?a[e]=y:1===h?a.setAttribute(e,y):(s=a.style,3===h?(a!==u&&(u=a,c=a[Au]),c[e]=y,f=1):2===h?s[e]=y:4===h&&s.setProperty(e,y)),E&&(O=1)}}if(f&&l._renderTransforms){let e=Nu;for(let t in c)e+=`${ju[t]}${c[t]}) `;s.transform=e,f=0}l=l._next}!n&&O&&e.onRender(e)}!n&&E&&e.onUpdate(e)}return i&&S?!n&&(i.began&&!N&&y>=a&&!s||N&&y<=Iu&&s)&&(e.onComplete(e),e.completed=!N):E&&x?c===1/0?e._startTime+=e.duration:e._currentIteration>=c-1&&(e.paused=!0,s||d||(e.completed=!0,n||i&&(N||!i.began)||(e.onComplete(e),e._resolve(e)))):e.completed=!1,O},Pc=(e,t,n,r,o)=>{const i=e._currentIteration;if(kc(e,t,n,r,o),e._hasChildren){const a=e,s=a.backwards,u=r?t:a._iterationTime,c=Ku();let l=0,f=!0;if(!r&&a._currentIteration!==i){const e=a.iterationDuration;Ic(a,t=>{if(s){const r=t.duration,o=t._offset+t._delay;n||!(r<=Iu)||o&&o+r!==e||t.onComplete(t)}else!t.completed&&!t.backwards&&t._currentTime<t.iterationDuration&&kc(t,e,n,1,2),t.began=!1,t.completed=!1}),n||a.onLoop(a)}Ic(a,e=>{const t=xc((u-e._offset)*e._speed,12),i=e._fps<a._fps?e.requestTick(c):o;l+=kc(e,t,n,r,i),!e.completed&&f&&(f=!1)},s),!n&&l&&a.onRender(a),f&&a._currentTime>=a.duration&&(a.paused=!0,a.completed||(a.completed=!0,n||(a.onComplete(a),a._resolve(a))))}},jc={animation:null,update:Du},Dc=_u?requestAnimationFrame:setImmediate,Mc=_u?cancelAnimationFrame:clearImmediate;class $c extends Nc{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=Gu,this.paused=!(!_u||!Eu.hidden),this.reqId=null}update(){const e=this._currentTime=Ku();if(this.requestTick(e)){this.computeDeltaTime(e);const t=this._speed,n=this._fps;let r=this._head;for(;r;){const o=r._next;r.paused?(Cc(this,r),this._hasChildren=!!this._tail,r._running=!1,r.completed&&!r._cancelled&&r.cancel()):Pc(r,(e-r._startTime)*r._speed*t,0,0,r._fps<n?r.requestTick(e):1),r=o}jc.update()}}wake(){return!this.useDefaultMainLoop||this.reqId||this.paused||(this.reqId=Dc(Bc)),this}pause(){return this.paused=!0,Uc()}resume(){if(this.paused)return this.paused=!1,Ic(this,e=>e.resetTime()),this.wake()}get speed(){return this._speed*(1===Xu.timeScale?1:Lu)}set speed(e){this._speed=e*Xu.timeScale,Ic(this,e=>e.speed=e._speed)}get timeUnit(){return 1===Xu.timeScale?"ms":"s"}set timeUnit(e){const t="s"===e,n=t?.001:1;if(Xu.timeScale!==n){Xu.timeScale=n,Xu.tickThreshold=200*n;const e=t?.001:Lu;this.defaults.duration*=e,this._speed*=e}}get precision(){return Xu.precision}set precision(e){Xu.precision=e}}const zc=(()=>{const e=new $c(Ku());return _u&&(Vu.engine=e,Eu.addEventListener("visibilitychange",()=>{e.pauseOnDocumentHidden&&(Eu.hidden?e.pause():e.resume())})),e})(),Bc=()=>{zc._head?(zc.reqId=Dc(Bc),zc.update()):zc.reqId=0},Uc=()=>(Mc(zc.reqId),zc.reqId=0,zc);function Fc(e){const t=tc(e)?Xu.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function Wc(e){if(oc(e))return[];if(Ju(e)){const t=e.flat(1/0),n=[];for(let e=0,r=t.length;e<r;e++){const r=t[e];if(!oc(r)){const e=Fc(r);if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];if(!oc(r)){let e=!1;for(let t=0,o=n.length;t<o;t++)if(n[t]===r){e=!0;break}e||n.push(r)}}else{let e=!1;for(let t=0,o=n.length;t<o;t++)if(n[t]===r){e=!0;break}e||n.push(r)}}}return n}if(!_u)return[e];const t=Fc(e);return t?Array.from(t):[e]}function qc(e){const t=Wc(e),n=t.length;if(n)for(let e=0;e<n;e++){const n=t[e];if(!n[Su]){n[Su]=!0;const e=ic(n);(n.nodeType||e)&&(n[Tu]=!0,n[Ru]=e,n[Au]={})}}return t}const Hc=["opacity","rotate","overflow","color"],Yc=(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),Gc=(e,t)=>rc(e)?t:e,Xc=(e,t,n,r,o)=>{if(nc(e)){const i=()=>{const o=e(t,n,r);return isNaN(+o)?o||0:+o};return o&&(o.func=i),i()}return e},Vc=(e,t)=>e[Tu]?e[Ru]&&((e,t)=>{if(Hc.includes(t))return!1;if(e.getAttribute(t)||t in e){if("scale"===t){const t=e.parentNode;return t&&"filter"===t.tagName}return!0}})(e,t)?1:Pu.includes(t)||ku.get(t)?3:Zu(t,"--")?4:t in e.style?2:t in e?0:1:0,Zc=(e,t,n)=>{const r=e.style[t];r&&n&&(n[t]=r);const o=r||getComputedStyle(e[Ou]||e).getPropertyValue(t);return"auto"===o?"0":o},Kc=(e,t,n,r)=>{const o=rc(n)?Vc(e,t):n;return 0===o?e[t]||0:1===o?e.getAttribute(t):3===o?((e,t,n)=>{const r=e.style.transform;let o;if(r){const i=e[Au];let a;for(;a=Hu.exec(r);){const e=a[1],r=a[2].slice(1,-1);i[e]=r,e===t&&(o=r,n&&(n[t]=r))}}return r&&!rc(o)?o:Zu(t,"scale")?"1":Zu(t,"rotate")||Zu(t,"skew")?"0deg":"0px"})(e,t,r):4===o?Zc(e,t,r).trimStart():Zc(e,t,r)},Jc=(e,t,n)=>"-"===n?e-t:"+"===n?e+t:e*t,Qc=(e,t)=>{if(t.t=0,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;const n=+e;if(isNaN(n)){let n=e;"="===n[1]&&(t.o=n[0],n=n.slice(2));const o=!n.includes(" ")&&Wu.exec(n);if(o)return t.t=1,t.n=+o[1],t.u=o[2],t;if(t.o)return t.n=+n,t;if((e=>ac(e)||sc(e)||uc(e))(n))return t.t=2,t.d=sc(r=n)?(e=>{const t=$u.exec(e)||zu.exec(e),n=rc(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],n]})(r):ac(r)?(e=>{const t=e.length,n=4===t||5===t;return[+("0x"+e[1]+e[n?1:2]),+("0x"+e[n?2:3]+e[n?2:4]),+("0x"+e[n?3:5]+e[n?3:6]),5===t||9===t?+(+("0x"+e[n?4:7]+e[n?4:8])/255).toFixed(3):1]})(r):uc(r)?(e=>{const t=Bu.exec(e)||Uu.exec(e),n=+t[1]/360,r=+t[2]/100,o=+t[3]/100,i=rc(t[4])?1:+t[4];let a,s,u;if(0===r)a=s=u=o;else{const e=o<.5?o*(1+r):o+r-o*r,t=2*o-e;a=xc(255*Yc(t,e,n+1/3),0),s=xc(255*Yc(t,e,n),0),u=xc(255*Yc(t,e,n-1/3),0)}return[a,s,u,i]})(r):[0,0,0,1],t;{const e=n.match(Fu);return t.t=3,t.d=e?e.map(Number):[],t.s=n.split(Fu)||[],t}}var r;return t.n=n,t},el=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=Ac(e._toNumbers),t.s=Ac(e._strings),t),tl={t:0,n:0,u:null,o:null,d:null,s:null},nl={_rep:new WeakMap,_add:new Map},rl=(e,t,n="_rep")=>{const r=nl[n];let o=r.get(e);return o||(o={},r.set(e,o)),o[t]?o[t]:o[t]={_head:null,_tail:null}},ol=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,il=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=Iu,e._currentTime=Iu},al=(e,t)=>{const n=e._composition;if(n===xu.replace){const n=e._absoluteStartTime;Lc(t,e,ol,"_prevRep","_nextRep");const r=e._prevRep;if(r){const t=r.parent,o=r._absoluteStartTime+r._changeDuration;if(e.parent.id!==t.id&&t.iterationCount>1&&o+(t.duration-t.iterationDuration)>n){il(r);let e=r._prevRep;for(;e&&e.parent.id===t.id;)il(e),e=e._prevRep}const i=n-e._delay;if(o>i){const e=r._startTime,t=o-(e+r._updateDuration);r._changeDuration=i-t-e,r._currentTime=r._changeDuration,r._isOverlapped=1,r._changeDuration<Iu&&il(r)}let a=!0;if(Ic(t,e=>{e._isOverlapped||(a=!1)}),a){const e=t.parent;if(e){let n=!0;Ic(e,e=>{e!==t&&Ic(e,e=>{e._isOverlapped||(n=!1)})}),n&&e.cancel()}else t.cancel()}}}else if(n===xu.blend){const t=rl(e.target,e.property,"_add"),n=(e=>{let t=jc.animation;return t||(t={duration:Iu,computeDeltaTime:Du,_offset:0,_delay:0,_head:null,_tail:null},jc.animation=t,jc.update=()=>{e.forEach(e=>{for(let t in e){const n=e[t],r=n._head;if(r){const e=r._valueType,t=3===e||2===e?Ac(r._fromNumbers):null;let o=r._fromNumber,i=n._tail;for(;i&&i!==r;){if(t)for(let e=0,n=i._numbers.length;e<n;e++)t[e]+=i._numbers[e];else o+=i._number;i=i._prevAdd}r._toNumber=o,r._toNumbers=t}}}),kc(t,1,1,0,2)}),t})(nl._add);let r=t._head;r||(r={...e},r._composition=xu.replace,r._updateDuration=Iu,r._startTime=0,r._numbers=Ac(e._fromNumbers),r._number=0,r._next=null,r._prev=null,Lc(t,r),Lc(n,r));const o=e._toNumber;if(e._fromNumber=r._fromNumber-o,e._toNumber=0,e._numbers=Ac(e._fromNumbers),e._number=0,r._fromNumber=o,e._toNumbers){const t=Ac(e._toNumbers);t&&t.forEach((t,n)=>{e._fromNumbers[n]=r._fromNumbers[n]-t,e._toNumbers[n]=0}),r._fromNumbers=t}Lc(t,e,null,"_prevAdd","_nextAdd")}return e},sl=e=>{const t=e._composition;if(t!==xu.none){const n=e.target,r=e.property,o=nl._rep.get(n)[r];if(Cc(o,e,"_prevRep","_nextRep"),t===xu.blend){const t=nl._add,o=t.get(n);if(!o)return;const i=o[r],a=jc.animation;Cc(i,e,"_prevAdd","_nextAdd");const s=i._head;if(s&&s===i._tail){Cc(i,s,"_prevAdd","_nextAdd"),Cc(a,s);let e=!0;for(let t in o)if(o[t]._head){e=!1;break}e&&t.delete(n)}}}return e},ul=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),cl=e=>e._cancelled?(e._hasChildren?Ic(e,cl):Ic(e,e=>{e._composition!==xu.none&&al(e,rl(e.target,e.property))}),e._cancelled=0,e):e;let ll=0;class fl extends Nc{constructor(e={},t=null,n=0){super(0);const{id:r,delay:o,duration:i,reversed:a,alternate:s,loop:u,loopDelay:c,autoplay:l,frameRate:f,playbackRate:p,onComplete:h,onLoop:d,onPause:m,onBegin:g,onBeforeUpdate:v,onUpdate:y}=e;Xu.scope&&Xu.scope.revertibles.push(this);const b=t?0:zc._elapsedTime,_=t?t.defaults:Xu.defaults,w=nc(o)||rc(o)?_.delay:+o,E=nc(i)||rc(i)?1/0:+i,x=Gc(u,_.loop),S=Gc(c,_.loopDelay),T=!0===x||x===1/0||x<0?1/0:x+1;let R=0;if(t)R=n;else{let e=Ku();zc.paused&&(zc.requestTick(e),e=zc._elapsedTime),R=e-zc._startTime}this.id=rc(r)?++ll:r,this.parent=t,this.duration=Tc((E+S)*T-S)||Iu,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=g||_.onBegin,this.onBeforeUpdate=v||_.onBeforeUpdate,this.onUpdate=y||_.onUpdate,this.onLoop=d||_.onLoop,this.onPause=m||_.onPause,this.onComplete=h||_.onComplete,this.iterationDuration=E,this.iterationCount=T,this._autoplay=!t&&Gc(l,_.autoplay),this._offset=R,this._delay=w,this._loopDelay=S,this._iterationTime=0,this._currentIteration=0,this._resolve=Du,this._running=!1,this._reversed=+Gc(a,_.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=Gc(s,_.alternate),this._prev=null,this._next=null,this._elapsedTime=b,this._startTime=b,this._lastTime=b,this._fps=Gc(f,_.frameRate),this._speed=Gc(p,_.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(1).play()}get currentTime(){return wc(xc(this._currentTime,Xu.precision),-this._delay,this.duration)}set currentTime(e){const t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return xc(this._iterationTime,Xu.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return wc(xc(this._currentTime/this.duration,5),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return wc(xc(this._iterationTime/this.iterationDuration,5),0,1)}set iterationProgress(e){const t=this.iterationDuration;this.currentTime=t*this._currentIteration+t*e}get currentIteration(){return this._currentIteration}set currentIteration(e){this.currentTime=this.iterationDuration*wc(+e,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(e){e?this.reverse():this.play()}get speed(){return super.speed}set speed(e){super.speed=e,this.resetTime()}reset(e=0){return cl(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,Pc(this,0,1,e,2),ul(this),this._hasChildren&&Ic(this,ul),this}init(e=0){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&Pc(this,this.duration,1,e,2),this.reset(e);const t=this._autoplay;return!0===t?this.resume():t&&!rc(t.linked)&&t.link(this),this}resetTime(){const e=1/(this._speed*zc._speed);return this._startTime=Ku()-(this._currentTime+this._delay)*e,this}pause(){return this.paused||(this.paused=!0,this.onPause(this)),this}resume(){return this.paused?(this.paused=!1,this.duration<=Iu&&!this._hasChildren?Pc(this,Iu,0,0,2):(this._running||(Lc(zc,this),zc._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,zc.wake()),this):this}restart(){return this.reset(0).resume()}seek(e,t=0,n=0){cl(this),this.completed=!1;const r=this.paused;return this.paused=!0,Pc(this,e+this._delay,~~t,~~n,1),r?this:this.resume()}alternate(){const e=this._reversed,t=this.iterationCount,n=this.iterationDuration,r=t===1/0?vc(Cu/n):t;return this._reversed=+(!this._alternate||r%2?!e:e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(n*r-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?Ic(this,e=>e.cancel(),!0):Ic(this,sl),this._cancelled=1,this.pause()}stretch(e){const t=this.duration;if(t===Rc(e))return this;const n=e/t,r=e<=Iu;return this.duration=r?Iu:Rc(Tc(xc(t*n,12))),this.iterationDuration=r?Iu:Rc(Tc(xc(this.iterationDuration*n,12))),this._offset*=n,this._delay*=n,this._loopDelay*=n,this}revert(){Pc(this,0,1,0,1);const e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(){return this.seek(this.duration).cancel()}then(e=Du){const t=this.then,n=()=>{this.then=null,e(this),this.then=t,this._resolve=Du};return new Promise(e=>(this._resolve=()=>e(n()),this.completed&&this._resolve(),this))}}const pl=e=>e,hl=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,dl=(e=.5,t=0,n=.5,r=1)=>e===t&&n===r?pl:o=>0===o||1===o?o:hl(((e,t,n)=>{let r,o,i=0,a=1,s=0;do{o=i+(a-i)/2,r=hl(o,t,n)-e,r>0?a=o:i=o}while(mc(r)>1e-7&&++s<100);return o})(o,e,n),t,r),ml=(e=10,t)=>{const n=t?gc:vc;return t=>n(wc(t,0,1)*e)*(1/e)},gl=(...e)=>{const t=e.length;if(!t)return pl;const n=t-1,r=e[0],o=e[n],i=[0],a=[lc(r)];for(let t=1;t<n;t++){const r=e[t],o=tc(r)?r.trim().split(" "):[r],s=o[0],u=o[1];i.push(rc(u)?t/n:lc(u)/100),a.push(lc(s))}return a.push(lc(o)),i.push(1),function(e){for(let t=1,n=i.length;t<n;t++){const n=i[t];if(e<=n){const r=i[t-1],o=a[t-1];return o+(a[t]-o)*(e-r)/(n-r)}}return a[a.length-1]}},vl=(e=10,t=1)=>{const n=[0],r=e-1;for(let e=1;e<r;e++){const o=n[e-1],i=e/r,a=i*(1-t)+(i+((e+1)/r-i)*Math.random())*t;n.push(wc(a,o,1))}return n.push(1),gl(...n)},yl=bc/2,bl=2*bc,_l=(e=1.68)=>t=>fc(t,+e),wl={[Nu]:_l,Quad:_l(2),Cubic:_l(3),Quart:_l(4),Quint:_l(5),Sine:e=>1-dc(e*yl),Circ:e=>1-pc(1-e*e),Expo:e=>e?fc(2,10*e-10):0,Bounce:e=>{let t,n=4;for(;e<((t=fc(2,--n))-1)/11;);return 1/fc(4,3-n)-7.5625*fc((3*t-2)/22-e,2)},Back:(e=1.70158)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{const n=wc(+e,1,10),r=wc(+t,Iu,2),o=r/bl*yc(1/n),i=bl/r;return e=>0===e||1===e?e:-n*fc(2,-10*(1-e))*hc((1-e-o)*i)}},El={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(2*t)/2:1-e(-2*t+2)/2,outIn:e=>t=>t<.5?(1-e(1-2*t))/2:(e(2*t-1)+1)/2},xl=(()=>{const e={linear:gl,irregular:vl,steps:ml,cubicBezier:dl};for(let t in El)for(let n in wl){const r=wl[n],o=El[t];e[t+n]=n===Nu||"Back"===n||"Elastic"===n?(e,t)=>o(r(e,t)):o(r)}return e})(),Sl={linear:pl},Tl=e=>nc(e)?e:tc(e)?((e,t,n)=>{if(n[e])return n[e];if(e.indexOf("(")<=-1){const r=El[e]||e.includes("Back")||e.includes("Elastic")?t[e]():t[e];return r?n[e]=r:pl}{const r=e.slice(0,-1).split("("),o=t[r[0]];return o?n[e]=o(...r[1].split(",")):pl}})(e,xl,Sl):pl,Rl={},Al=(e,t,n)=>{if(3===n){return ku.get(e)||e}if(2===n||1===n&&ic(t)&&e in t.style){const t=Rl[e];if(t)return t;{const t=e?e.replace(qu,"$1-$2").toLowerCase():e;return Rl[e]=t,t}}return e},Ol={deg:1,rad:180/bc,turn:360},Il={},Cl=(e,t,n,r=!1)=>{const o=t.u,i=t.n;if(1===t.t&&o===n)return t;const a=i+o+n,s=Il[a];if(rc(s)||r){let r;if(o in Ol)r=i*Ol[o]/Ol[n];else{const t=100,a=e.cloneNode(),s=e.parentNode,u=s&&s!==Eu?s:Eu.body;u.appendChild(a);const c=a.style;c.width=t+o;const l=a.offsetWidth||t;c.width=t+n;const f=l/(a.offsetWidth||t);u.removeChild(a),r=f*i}t.n=r,Il[a]=r}else t.n=s;return t.t,t.u=n,t},Ll=e=>{if(e._hasChildren)Ic(e,Ll,!0);else{const t=e;t.pause(),Ic(t,e=>{const n=e.property,r=e.target;if(r[Tu]){const o=r.style,i=t._inlineStyles[n];if(3===e._tweenType){const t=r[Au];if(rc(i)||i===Nu?delete t[n]:t[n]=i,e._renderTransforms)if(Object.keys(t).length){let e=Nu;for(let n in t)e+=ju[n]+t[n]+") ";o.transform=e}else o.removeProperty("transform")}else rc(i)||i===Nu?o.removeProperty(n):o[n]=i;t._tail===e&&t.targets.forEach(e=>{e.getAttribute&&e.getAttribute("style")===Nu&&e.removeAttribute("style")})}})}return e},Nl={t:0,n:0,u:null,o:null,d:null,s:null},kl={t:0,n:0,u:null,o:null,d:null,s:null},Pl={func:null},jl=[null],Dl=[null,null],Ml={to:null};let $l,zl,Bl=0;class Ul extends fl{constructor(e,t,n,r,o=!1,i=0,a=0){super(t,n,r);const s=qc(e),u=s.length,c=t.keyframes,l=c?Oc(((e,t)=>{const n={};if(Ju(e)){const t=[].concat(...e.map(e=>Object.keys(e))).filter(cc);for(let r=0,o=t.length;r<o;r++){const o=t[r],i=e.map(e=>{const t={};for(let n in e){const r=e[n];cc(n)?n===o&&(t.to=r):t[n]=r}return t});n[o]=i}}else{const r=Gc(t.duration,Xu.defaults.duration),o=Object.keys(e).map(t=>({o:parseFloat(t)/100,p:e[t]})).sort((e,t)=>e.o-t.o);o.forEach(e=>{const t=e.o,o=e.p;for(let e in o)if(cc(e)){let i=n[e];i||(i=n[e]=[]);const a=t*r;let s=i.length,u=i[s-1];const c={to:o[e]};let l=0;for(let e=0;e<s;e++)l+=i[e].duration;1===s&&(c.from=u.to),o.ease&&(c.ease=o.ease),c.duration=a-(s?l:0),i.push(c)}return e});for(let e in n){const t=n[e];let r;for(let e=0,n=t.length;e<n;e++){const n=t[e],o=n.ease;n.ease=r||void 0,r=o}t[0].duration||t.shift()}}return n})(c,t),t):t,{delay:f,duration:p,ease:h,playbackEase:d,modifier:m,composition:g,onRender:v}=l,y=n?n.defaults:Xu.defaults,b=Gc(d,y.playbackEase),_=b?Tl(b):null,w=!rc(h)&&!rc(h.ease),E=w?h.ease:Gc(h,_?"linear":y.ease),x=w?h.duration:Gc(p,y.duration),S=Gc(f,y.delay),T=m||y.modifier,R=rc(g)&&u>=Lu?xu.none:rc(g)?y.composition:g,A={},O=this._offset+(n?n._offset:0);let I=NaN,C=NaN,L=0,N=0;for(let e=0;e<u;e++){const t=s[e],r=i||e,c=a||u;let f=NaN,p=NaN;for(let e in l)if(cc(e)){const i=Vc(t,e),a=Al(e,t,i);let s=l[e];const u=Ju(s);if(o&&!u&&(Dl[0]=s,Dl[1]=s,s=Dl),u){const e=s.length,t=!Qu(s[0]);2===e&&t?(Ml.to=s,jl[0]=Ml,$l=jl):e>2&&t?($l=[],s.forEach((e,t)=>{t?1===t?(Dl[1]=e,$l.push(Dl)):$l.push(e):Dl[0]=e})):$l=s}else jl[0]=s,$l=jl;let h=null,d=null,m=NaN,g=0,v=0;for(let e=$l.length;v<e;v++){const o=$l[v];Qu(o)?zl=o:(Ml.to=o,zl=Ml),Pl.func=null;const s=Xc(zl.to,t,r,c,Pl);let u;Qu(s)&&!rc(s.to)?(zl=s,u=s.to):u=s;const l=Xc(zl.from,t,r,c),f=zl.ease,p=!rc(f)&&!rc(f.ease),y=p?f.ease:f||E,b=p?f.duration:Xc(Gc(zl.duration,e>1?Xc(x,t,r,c)/e:x),t,r,c),_=Xc(Gc(zl.delay,v?0:S),t,r,c),w=Xc(Gc(zl.composition,R),t,r,c),I=ec(w)?w:xu[w],C=zl.modifier||T,k=!rc(l),P=!rc(u),j=Ju(u),D=j||k&&P,M=d?g+_:_,$=O+M;N||!k&&!j||(N=1);let z=d;if(I!==xu.none){h||(h=rl(t,a));let e=h._head;for(;e&&!e._isOverridden&&e._absoluteStartTime<=$;)if(z=e,e=e._nextRep,e&&e._absoluteStartTime>=$)for(;e;)il(e),e=e._nextRep}if(D?(Qc(j?Xc(u[0],t,r,c):l,Nl),Qc(j?Xc(u[1],t,r,c,Pl):u,kl),0===Nl.t&&(z?1===z._valueType&&(Nl.t=1,Nl.u=z._unit):(Qc(Kc(t,a,i,A),tl),1===tl.t&&(Nl.t=1,Nl.u=tl.u)))):(P?Qc(u,kl):d?el(d,kl):Qc(n&&z&&z.parent.parent===n?z._value:Kc(t,a,i,A),kl),k?Qc(l,Nl):d?el(d,Nl):Qc(n&&z&&z.parent.parent===n?z._value:Kc(t,a,i,A),Nl)),Nl.o&&(Nl.n=Jc(z?z._toNumber:Qc(Kc(t,a,i,A),tl).n,Nl.n,Nl.o)),kl.o&&(kl.n=Jc(Nl.n,kl.n,kl.o)),Nl.t!==kl.t)if(3===Nl.t||3===kl.t){const e=3===Nl.t?Nl:kl,t=3===Nl.t?kl:Nl;t.t=3,t.s=Ac(e.s),t.d=e.d.map(()=>t.n)}else if(1===Nl.t||1===kl.t){const e=1===Nl.t?Nl:kl,t=1===Nl.t?kl:Nl;t.t=1,t.u=e.u}else if(2===Nl.t||2===kl.t){const e=2===Nl.t?Nl:kl,t=2===Nl.t?kl:Nl;t.t=2,t.s=e.s,t.d=[0,0,0,1]}if(Nl.u!==kl.u){let e=kl.u?Nl:kl;e=Cl(t,e,kl.u?kl.u:Nl.u,!1)}if(kl.d&&Nl.d&&kl.d.length!==Nl.d.length){const e=Nl.d.length>kl.d.length?Nl:kl,t=e===Nl?kl:Nl;t.d=e.d.map((e,n)=>rc(t.d[n])?0:t.d[n]),t.s=Ac(e.s)}const B=xc(+b||Iu,12),U={parent:this,id:Bl++,property:a,target:t,_value:null,_func:Pl.func,_ease:Tl(y),_fromNumbers:Ac(Nl.d),_toNumbers:Ac(kl.d),_strings:Ac(kl.s),_fromNumber:Nl.n,_toNumber:kl.n,_numbers:Ac(Nl.d),_number:Nl.n,_unit:kl.u,_modifier:C,_currentTime:0,_startTime:M,_delay:+_,_updateDuration:B,_changeDuration:B,_absoluteStartTime:$,_tweenType:i,_valueType:kl.t,_composition:I,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};I!==xu.none&&al(U,h),isNaN(m)&&(m=U._startTime),g=xc(M+B,12),d=U,L++,Lc(this,U)}(isNaN(C)||m<C)&&(C=m),(isNaN(I)||g>I)&&(I=g),3===i&&(f=L-v,p=L)}if(!isNaN(f)){let e=0;Ic(this,t=>{e>=f&&e<p&&(t._renderTransforms=1,t._composition===xu.blend&&Ic(jc.animation,e=>{e.id===t.id&&(e._renderTransforms=1)})),e++})}}u||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),C?(Ic(this,e=>{e._startTime-e._delay||(e._delay-=C),e._startTime-=C}),I-=C):C=0,I||(I=Iu,this.iterationCount=0),this.targets=s,this.duration=I===Iu?Iu:Tc((I+this._loopDelay)*this.iterationCount-this._loopDelay)||Iu,this.onRender=v||y.onRender,this._ease=_,this._delay=C,this.iterationDuration=I,this._inlineStyles=A,!this._autoplay&&N&&this.onRender(this)}stretch(e){const t=this.duration;if(t===Rc(e))return this;const n=e/t;return Ic(this,e=>{e._updateDuration=Rc(xc(e._updateDuration*n,12)),e._changeDuration=Rc(xc(e._changeDuration*n,12)),e._currentTime*=n,e._startTime*=n,e._absoluteStartTime*=n}),super.stretch(e)}refresh(){return Ic(this,e=>{const t=Kc(e.target,e.property,e._tweenType);Qc(t,tl),e._fromNumbers=Ac(tl.d),e._fromNumber=tl.n,e._func&&(Qc(e._func(),kl),e._toNumbers=Ac(kl.d),e._strings=Ac(kl.s),e._toNumber=kl.n)}),this}revert(){return super.revert(),Ll(this)}then(e){return super.then(e)}}Pu.filter(e=>["X","Y","Z"].some(t=>e.endsWith(t))),_u&&(rc(CSS)||Object.hasOwnProperty.call(CSS,"registerProperty"));const Fl={_head:null,_tail:null},Wl=(e,t,n)=>{let r=Fl._head;for(;r;){const o=r._next,i=r.$el===e,a=!t||r.property===t,s=!n||r.parent===n;if(i&&a&&s){const e=r.animation;try{e.commitStyles()}catch{}e.cancel(),Cc(Fl,r);const t=r.parent;t&&(t._completed++,t.animations.length===t._completed&&(t.completed=!0,t.muteCallbacks||(t.paused=!0,t.onComplete(t),t._resolve(t))))}r=o}},ql=(e=Du)=>new fl({duration:1*Xu.timeScale,onComplete:e},null,0).resume();function Hl(e,t,n){const r=qc(e);if(!r.length)return;const[o]=r,i=Vc(o,t),a=Al(t,o,i);let s=Kc(o,a);if(rc(n))return s;if(Qc(s,tl),0===tl.t||1===tl.t){if(!1===n)return tl.n;{const e=Cl(o,tl,n,!1);return`${xc(e.n,Xu.precision)}${e.u}`}}}const Yl=(e,t)=>{if(!rc(t))return t.duration=Iu,t.composition=Gc(t.composition,xu.none),new Ul(e,t,null,0,!0).resume()},Gl=(e,t,n)=>{let r=!1;return Ic(t,o=>{const i=o.target;if(e.includes(i)){const e=o.property,a=o._tweenType,s=Al(n,i,a);(!s||s&&s===e)&&(o.parent._tail===o&&3===o._tweenType&&o._prev&&3===o._prev._tweenType&&(o._prev._renderTransforms=1),Cc(t,o),sl(o),r=!0)}},!0),r},Xl=(e,t,n)=>{const r=Wc(e),o=t||zc,i=t&&t.controlAnimation&&t;for(let e=0,t=r.length;e<t;e++){const t=r[e];Wl(t,n,i)}let a;if(o._hasChildren){let t=0;Ic(o,i=>{if(!i._hasChildren)if(a=Gl(r,i,n),a&&!i._head)i.cancel(),Cc(o,i);else{const e=i._offset+i._delay+i.duration;e>t&&(t=e)}i._head?Xl(e,i,n):i._hasChildren=!1},!0),rc(o.iterationDuration)||(o.iterationDuration=t)}else a=Gl(r,o,n);return a&&!o._head&&(o._hasChildren=!1,o.cancel&&o.cancel()),r},Vl=(e,t,n)=>{const r=10**(n||0);return vc((Math.random()*(t-e+1/r)+e)*r)/r},Zl=(e,t,n,r)=>{let o=Lu/Xu.defaults.frameRate;if(!1!==r){const e=r||zc._hasChildren&&zc;e&&e.deltaTime&&(o=e.deltaTime)}const i=1-Math.exp(-n*o*.1);return n?1===n?t:(1-i)*e+i*t:e},Kl=e=>(...t)=>{const n=e(...t);return new Proxy(Du,{apply:(e,t,[r])=>n(r),get:(e,t)=>Kl((...e)=>{const r=Ql[t](...e);return e=>r(n(e))})})},Jl=(e,t=0)=>(...n)=>(n.length<e.length?Kl(((e,t=0)=>(...n)=>t?t=>e(...n,t):t=>e(t,...n))(e,t)):e)(...n),Ql={$:qc,get:Hl,set:Yl,remove:Xl,cleanInlineStyles:Ll,random:Vl,randomPick:e=>e[Vl(0,e.length-1)],shuffle:e=>{let t,n,r=e.length;for(;r;)n=Vl(0,--r),t=e[r],e[r]=e[n],e[n]=t;return e},lerp:Zl,sync:ql,clamp:Jl(wc),round:Jl(xc),snap:Jl((e,t)=>Ju(t)?t.reduce((t,n)=>mc(n-e)<mc(t-e)?n:t):t?_c(e/t)*t:e),wrap:Jl((e,t,n)=>((e-t)%(n-t)+(n-t))%(n-t)+t),interpolate:Jl(Sc,1),mapRange:Jl((e,t,n,r,o)=>r+(e-t)/(n-t)*(o-r)),roundPad:Jl((e,t)=>(+e).toFixed(t)),padStart:Jl((e,t,n)=>`${e}`.padStart(t,n)),padEnd:Jl((e,t,n)=>`${e}`.padEnd(t,n)),degToRad:Jl(e=>e*bc/180),radToDeg:Jl(e=>180*e/bc)},ef=(e,t)=>{let n=e.iterationDuration;if(n===Iu&&(n=0),rc(t))return n;if(ec(+t))return+t;const r=t,o=e?e.labels:null,i=!oc(o),a=((e,t)=>{if(Zu(t,"<")){const n="<"===t[1],r=e._tail,o=r?r._offset+r._delay:0;return n?o:o+r.duration}})(e,r),s=!rc(a),u=Yu.exec(r);if(u){const e=u[0],t=r.split(e),c=i&&t[0]?o[t[0]]:n,l=s?a:i?c:n,f=+t[1];return Jc(l,f,e[0])}return s?a:i?rc(o[r])?n:o[r]:n};function tf(e,t,n,r,o,i){const a=ec(e.duration)&&e.duration<=Iu?n-Iu:n;Pc(t,a,1,1,1);const s=r?new Ul(r,e,t,a,!1,o,i):new fl(e,t,a);return s.init(1),Lc(t,s),Ic(t,e=>{const n=e._offset+e._delay+e.duration;n>t.iterationDuration&&(t.iterationDuration=n)}),t.duration=function(e){return Tc((e.iterationDuration+e._loopDelay)*e.iterationCount-e._loopDelay)||Iu}(t),t}class nf extends fl{constructor(e={}){super(e,null,0),this.duration=0,this.labels={};const t=e.defaults,n=Xu.defaults;this.defaults=t?Oc(t,n):n,this.onRender=e.onRender||n.onRender;const r=Gc(e.playbackEase,n.playbackEase);this._ease=r?Tl(r):null,this.iterationDuration=0}add(e,t,n){const r=Qu(t),o=Qu(e);if(r||o){if(this._hasChildren=!0,r){const r=t;if(nc(n)){const t=n,o=Wc(e),i=this.duration,a=this.iterationDuration,s=r.id;let u=0;const c=o.length;o.forEach(e=>{const n={...r};this.duration=i,this.iterationDuration=a,rc(s)||(n.id=s+"-"+u),tf(n,this,t(e,u,c,this),e,u,c),u++})}else tf(r,this,ef(this,n),e)}else tf(e,this,ef(this,t));return this.init(1)}}sync(e,t){if(rc(e)||e&&rc(e.pause))return this;e.pause();const n=+(e.effect?e.effect.getTiming().duration:e.duration);return this.add(e,{currentTime:[0,n],duration:n,ease:"linear"},t)}set(e,t,n){return rc(t)?this:(t.duration=Iu,t.composition=xu.replace,this.add(e,t,n))}call(e,t){return rc(e)||e&&!nc(e)?this:this.add({duration:0,onComplete:()=>e(this)},t)}label(e,t){return rc(e)||e&&!tc(e)||(this.labels[e]=ef(this,t)),this}remove(e,t){return Xl(e,this,t),this}stretch(e){const t=this.duration;if(t===Rc(e))return this;const n=e/t,r=this.labels;Ic(this,e=>{e.stretch(e.duration*n)});for(let e in r)r[e]*=n;return super.stretch(e)}refresh(){return Ic(this,e=>{e.refresh&&e.refresh()}),this}revert(){return super.revert(),Ic(this,e=>e.revert,!0),Ll(this)}then(e){return super.then(e)}}const rf=(e,t)=>e&&nc(e)?e(t):e,of=new Map;class af{constructor(e){this.element=e,this.useWin=this.element===Eu.body,this.winWidth=0,this.winHeight=0,this.width=0,this.height=0,this.left=0,this.top=0,this.zIndex=0,this.scrollX=0,this.scrollY=0,this.prevScrollX=0,this.prevScrollY=0,this.scrollWidth=0,this.scrollHeight=0,this.velocity=0,this.backwardX=!1,this.backwardY=!1,this.scrollTicker=new fl({autoplay:!1,onBegin:()=>this.dataTimer.resume(),onUpdate:()=>{const e=this.backwardX||this.backwardY;Ic(this,e=>e.handleScroll(),e)},onComplete:()=>this.dataTimer.pause()}).init(),this.dataTimer=new fl({autoplay:!1,frameRate:30,onUpdate:e=>{const t=e.deltaTime,n=this.prevScrollX,r=this.prevScrollY,o=this.scrollX,i=this.scrollY,a=n-o,s=r-i;this.prevScrollX=o,this.prevScrollY=i,a&&(this.backwardX=n>o),s&&(this.backwardY=r>i),this.velocity=xc(t>0?Math.sqrt(a*a+s*s)/t:0,5)}}).init(),this.resizeTicker=new fl({autoplay:!1,duration:250*Xu.timeScale,onComplete:()=>{this.updateWindowBounds(),this.refreshScrollObservers(),this.handleScroll()}}).init(),this.wakeTicker=new fl({autoplay:!1,duration:500*Xu.timeScale,onBegin:()=>{this.scrollTicker.resume()},onComplete:()=>{this.scrollTicker.pause()}}).init(),this._head=null,this._tail=null,this.updateScrollCoords(),this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll(),this.resizeObserver=new ResizeObserver(()=>this.resizeTicker.restart()),this.resizeObserver.observe(this.element),(this.useWin?wu:this.element).addEventListener("scroll",this,!1)}updateScrollCoords(){const e=this.useWin,t=this.element;this.scrollX=xc(e?wu.scrollX:t.scrollLeft,0),this.scrollY=xc(e?wu.scrollY:t.scrollTop,0)}updateWindowBounds(){this.winWidth=wu.innerWidth,this.winHeight=(()=>{const e=document.createElement("div");Eu.body.appendChild(e),e.style.height="100lvh";const t=e.offsetHeight;return Eu.body.removeChild(e),t})()}updateBounds(){const e=getComputedStyle(this.element),t=this.element;let n,r;if(this.scrollWidth=t.scrollWidth+parseFloat(e.marginLeft)+parseFloat(e.marginRight),this.scrollHeight=t.scrollHeight+parseFloat(e.marginTop)+parseFloat(e.marginBottom),this.updateWindowBounds(),this.useWin)n=this.winWidth,r=this.winHeight;else{const e=t.getBoundingClientRect();n=e.width,r=e.height,this.top=e.top,this.left=e.left}this.width=n,this.height=r}refreshScrollObservers(){Ic(this,e=>{e._debug&&e.removeDebug()}),this.updateBounds(),Ic(this,e=>{e.refresh(),e._debug&&e.debug()})}refresh(){this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll()}handleScroll(){this.updateScrollCoords(),this.wakeTicker.restart()}handleEvent(e){"scroll"===e.type&&this.handleScroll()}revert(){this.scrollTicker.cancel(),this.dataTimer.cancel(),this.resizeTicker.cancel(),this.wakeTicker.cancel(),this.resizeObserver.unobserve(this.element),(this.useWin?wu:this.element).removeEventListener("scroll",this),of.delete(this.element)}}const sf=(e,t,n,r,o)=>{const i="min"===t,a="max"===t,s="top"===t||"left"===t||"start"===t||i?0:"bottom"===t||"right"===t||"end"===t||a?"100%":"center"===t?"50%":t,{n:u,u:c}=Qc(s,tl);let l=u;return"%"===c?l=u/100*n:c&&(l=Cl(e,tl,"px",!0).n),a&&r<0&&(l+=r),i&&o>0&&(l+=o),l},uf=(e,t,n,r,o)=>{let i;if(tc(t)){const a=Yu.exec(t);if(a){const s=a[0],u=s[0],c=t.split(s),l="min"===c[0],f="max"===c[0],p=sf(e,c[0],n,r,o),h=sf(e,c[1],n,r,o);if(l){const t=Jc(sf(e,"min",n),h,u);i=t<p?p:t}else if(f){const t=Jc(sf(e,"max",n),h,u);i=t>p?p:t}else i=Jc(p,h,u)}else i=sf(e,t,n,r,o)}else i=t;return xc(i,0)},cf=e=>{let t;const n=e.targets;for(let e=0,r=n.length;e<r;e++){const r=n[e];if(r[Tu]){t=r;break}}return t};let lf=0;const ff=["#FF4B4B","#FF971B","#FFC730","#F9F640","#7AFF5A","#18FF74","#17E09B","#3CFFEC","#05DBE9","#33B3F1","#638CF9","#C563FE","#FF4FCF","#F93F8A"];class pf{constructor(e={}){Xu.scope&&Xu.scope.revertibles.push(this);const t=Gc(e.sync,"play pause"),n=t?Tl(t):null,r=t&&("linear"===t||t===pl),o=t&&!(n===pl&&!r),i=t&&(ec(t)||!0===t||r),a=t&&tc(t)&&!o&&!i,s=a?t.split(" ").map(e=>()=>{const t=this.linked;return t&&t[e]?t[e]():null}):null,u=a&&s.length>2;this.index=lf++,this.id=rc(e.id)?this.index:e.id,this.container=(e=>{const t=e&&Wc(e)[0]||Eu.body;let n=of.get(t);return n||(n=new af(t),of.set(t,n)),n})(e.container),this.target=null,this.linked=null,this.repeat=null,this.horizontal=null,this.enter=null,this.leave=null,this.sync=o||i||!!s,this.syncEase=o?n:null,this.syncSmooth=i?!0===t||r?1:t:null,this.onSyncEnter=s&&!u&&s[0]?s[0]:Du,this.onSyncLeave=s&&!u&&s[1]?s[1]:Du,this.onSyncEnterForward=s&&u&&s[0]?s[0]:Du,this.onSyncLeaveForward=s&&u&&s[1]?s[1]:Du,this.onSyncEnterBackward=s&&u&&s[2]?s[2]:Du,this.onSyncLeaveBackward=s&&u&&s[3]?s[3]:Du,this.onEnter=e.onEnter||Du,this.onLeave=e.onLeave||Du,this.onEnterForward=e.onEnterForward||Du,this.onLeaveForward=e.onLeaveForward||Du,this.onEnterBackward=e.onEnterBackward||Du,this.onLeaveBackward=e.onLeaveBackward||Du,this.onUpdate=e.onUpdate||Du,this.onSyncComplete=e.onSyncComplete||Du,this.reverted=!1,this.completed=!1,this.began=!1,this.isInView=!1,this.forceEnter=!1,this.hasEntered=!1,this.offsets=[],this.offset=0,this.offsetStart=0,this.offsetEnd=0,this.distance=0,this.prevProgress=0,this.thresholds=["start","end","end","start"],this.coords=[0,0,0,0],this.debugStyles=null,this.$debug=null,this._params=e,this._debug=Gc(e.debug,!1),this._next=null,this._prev=null,Lc(this.container,this),ql(()=>{if(!this.reverted){if(!this.target){const t=Wc(e.target)[0];this.target=t||Eu.body,this.refresh()}this._debug&&this.debug()}})}link(e){if(e&&(e.pause(),this.linked=e,!this._params.target)){let t;rc(e.targets)?Ic(e,e=>{e.targets&&!t&&(t=cf(e))}):t=cf(e),this.target=t||Eu.body,this.refresh()}return this}get velocity(){return this.container.velocity}get backward(){return this.horizontal?this.container.backwardX:this.container.backwardY}get scroll(){return this.horizontal?this.container.scrollX:this.container.scrollY}get progress(){const e=(this.scroll-this.offsetStart)/this.distance;return e===1/0||isNaN(e)?0:xc(wc(e,0,1),6)}refresh(){this.reverted=!1;const e=this._params;return this.repeat=Gc(rf(e.repeat,this),!0),this.horizontal="x"===Gc(rf(e.axis,this),"y"),this.enter=Gc(rf(e.enter,this),"end start"),this.leave=Gc(rf(e.leave,this),"start end"),this.updateBounds(),this.handleScroll(),this}removeDebug(){return this.$debug&&(this.$debug.parentNode.removeChild(this.$debug),this.$debug=null),this.debugStyles&&(this.debugStyles.revert(),this.$debug=null),this}debug(){this.removeDebug();const e=this.container,t=this.horizontal,n=e.element.querySelector(":scope > .animejs-onscroll-debug"),r=Eu.createElement("div"),o=Eu.createElement("div"),i=Eu.createElement("div"),a=ff[this.index%ff.length],s=e.useWin,u=s?e.winWidth:e.width,c=s?e.winHeight:e.height,l=e.scrollWidth,f=e.scrollHeight,p=this.container.width>360?320:260,h=t?0:10,d=t?10:0,m=t?24:p/2,g=t?m:15,v=t?60:m,y=t?v:g,b=t?"repeat-x":"repeat-y",_=e=>t?"0px "+e+"px":e+"px 2px",w=e=>`linear-gradient(${t?90:0}deg, ${e} 2px, transparent 1px)`,E=(e,t,n,r,o)=>`position:${e};left:${t}px;top:${n}px;width:${r}px;height:${o}px;`;r.style.cssText=`${E("absolute",h,d,t?l:p,t?p:f)}\n pointer-events: none;\n z-index: ${this.container.zIndex++};\n display: flex;\n flex-direction: ${t?"column":"row"};\n filter: drop-shadow(0px 1px 0px rgba(0,0,0,.75));\n `,o.style.cssText=`${E("sticky",0,0,t?u:m,t?m:c)}`,n||(o.style.cssText+=`background:\n ${w("#FFFF")}${_(m-10)} / 100px 100px ${b},\n ${w("#FFF8")}${_(m-10)} / 10px 10px ${b};\n `),i.style.cssText=`${E("relative",0,0,t?l:m,t?m:f)}`,n||(i.style.cssText+=`background:\n ${w("#FFFF")}${_(0)} / ${t?"100px 10px":"10px 100px"} ${b},\n ${w("#FFF8")}${_(0)} / ${t?"10px 0px":"0px 10px"} ${b};\n `);const x=[" enter: "," leave: "];this.coords.forEach((e,n)=>{const r=n>1,s=(r?0:this.offset)+e,h=n%2,d=s<y,m=s>(r?t?u:c:t?l:f)-y,b=(r?h&&!d:!h&&!d)||m,_=Eu.createElement("div"),w=Eu.createElement("div"),S=t?b?"right":"left":b?"bottom":"top",T=b?(t?v:g)+(r?t?-1:m?0:-2:t?-1:-2):t?1:0;w.innerHTML=`${this.id}${x[h]}${this.thresholds[n]}`,_.style.cssText=`${E("absolute",0,0,v,g)}\n display: flex;\n flex-direction: ${t?"column":"row"};\n justify-content: flex-${r?"start":"end"};\n align-items: flex-${b?"end":"start"};\n border-${S}: 2px solid ${a};\n `,w.style.cssText=`\n overflow: hidden;\n max-width: ${p/2-10}px;\n height: ${g};\n margin-${t?b?"right":"left":b?"bottom":"top"}: -2px;\n padding: 1px;\n font-family: ui-monospace, monospace;\n font-size: 10px;\n letter-spacing: -.025em;\n line-height: 9px;\n font-weight: 600;\n text-align: ${t&&b||!t&&!r?"right":"left"};\n white-space: pre;\n text-overflow: ellipsis;\n color: ${h?a:"rgba(0,0,0,.75)"};\n background-color: ${h?"rgba(0,0,0,.65)":a};\n border: 2px solid ${h?a:"transparent"};\n border-${t?b?"top-left":"top-right":b?"top-left":"bottom-left"}-radius: 5px;\n border-${t?b?"bottom-left":"bottom-right":b?"top-right":"bottom-right"}-radius: 5px;\n `,_.appendChild(w);let R=s-T+(t?1:0);_.style[t?"left":"top"]=`${R}px`,(r?o:i).appendChild(_)}),r.appendChild(o),r.appendChild(i),e.element.appendChild(r),n||r.classList.add("animejs-onscroll-debug"),this.$debug=r,"static"===Hl(e.element,"position")&&(this.debugStyles=Yl(e.element,{position:"relative "}))}updateBounds(){let e;this._debug&&this.removeDebug();const t=this.target,n=this.container,r=this.horizontal,o=this.linked;let i,a=t,s=0,u=0,c=a;o&&(i=o.currentTime,o.seek(0,!0));const l="static"===Hl(n.element,"position")&&Yl(n.element,{position:"relative "});for(;a&&a!==n.element&&a!==Eu.body;){const t="sticky"===Hl(a,"position")&&Yl(a,{position:"static"});a===c&&(s+=a.offsetLeft||0,u+=a.offsetTop||0,c=a.offsetParent),a=a.parentElement,t&&(e||(e=[]),e.push(t))}l&&l.revert();const f=r?s:u,p=r?t.offsetWidth:t.offsetHeight,h=r?n.width:n.height,d=(r?n.scrollWidth:n.scrollHeight)-h,m=this.enter,g=this.leave;let v="start",y="end",b="end",_="start";if(tc(m)){const e=m.split(" ");b=e[0],v=e.length>1?e[1]:v}else if(Qu(m)){const e=m;rc(e.container)||(b=e.container),rc(e.target)||(v=e.target)}else ec(m)&&(b=m);if(tc(g)){const e=g.split(" ");_=e[0],y=e.length>1?e[1]:y}else if(Qu(g)){const e=g;rc(e.container)||(_=e.container),rc(e.target)||(y=e.target)}else ec(g)&&(_=g);const w=uf(t,v,p),E=uf(t,y,p),x=w+f-h,S=E+f-d,T=uf(t,b,h,x,S),R=uf(t,_,h,x,S),A=w+f-T,O=E+f-R,I=O-A;this.offsets[0]=s,this.offsets[1]=u,this.offset=f,this.offsetStart=A,this.offsetEnd=O,this.distance=I<=0?0:I,this.thresholds=[v,y,b,_],this.coords=[w,E,T,R],e&&e.forEach(e=>e.revert()),o&&o.seek(i,!0),this._debug&&this.debug()}handleScroll(){const e=this.linked,t=this.sync,n=this.syncEase,r=this.syncSmooth,o=e&&(n||r),i=this.horizontal,a=this.container,s=this.scroll,u=s<=this.offsetStart,c=s>=this.offsetEnd,l=!u&&!c,f=s===this.offsetStart||s===this.offsetEnd,p=!this.hasEntered&&f,h=this._debug&&this.$debug;let d=!1,m=!1,g=this.progress;if(u&&this.began&&(this.began=!1),g>0&&!this.began&&(this.began=!0),o){const t=e.progress;if(r&&ec(r)){if(r<1){const e=t<g&&1===g?1e-4:t>g&&!g?-1e-4:0;g=xc(Zl(t,g,Sc(.01,.2,r),!1)+e,6)}}else n&&(g=n(g));d=g!==this.prevProgress,m=1===t,d&&!m&&r&&t&&a.wakeTicker.restart()}if(h){const e=i?a.scrollY:a.scrollX;h.style[i?"top":"left"]=e+10+"px"}(l&&!this.isInView||p&&!this.forceEnter&&!this.hasEntered)&&(l&&(this.isInView=!0),this.forceEnter&&this.hasEntered?l&&(this.forceEnter=!1):(h&&l&&(h.style.zIndex=""+this.container.zIndex++),this.onSyncEnter(this),this.onEnter(this),this.backward?(this.onSyncEnterBackward(this),this.onEnterBackward(this)):(this.onSyncEnterForward(this),this.onEnterForward(this)),this.hasEntered=!0,p&&(this.forceEnter=!0))),(l||!l&&this.isInView)&&(d=!0),d&&(o&&e.seek(e.duration*g),this.onUpdate(this)),!l&&this.isInView&&(this.isInView=!1,this.onSyncLeave(this),this.onLeave(this),this.backward?(this.onSyncLeaveBackward(this),this.onLeaveBackward(this)):(this.onSyncLeaveForward(this),this.onLeaveForward(this)),t&&!r&&(m=!0)),g>=1&&this.began&&!this.completed&&(t&&m||!t)&&(t&&this.onSyncComplete(this),this.completed=!0,(!this.repeat&&!e||!this.repeat&&e&&e.completed)&&this.revert()),g<1&&this.completed&&(this.completed=!1),this.prevProgress=g}revert(){if(this.reverted)return;const e=this.container;return Cc(e,this),e._head||e.revert(),this._debug&&this.removeDebug(),this.reverted=!0,this}}const hf=(e={})=>new pf(e);function df(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||vf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vf(e,t){if(e){if("string"==typeof e)return df(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?df(e,t):void 0}}var yf,bf,_f,wf,Ef=function(e){return e[e.XY=1]="XY",e[e.SIZE=2]="SIZE",e}({}),xf=function(e){return e[e.ALL=1]="ALL",e[e.SEPARATE=2]="SEPARATE",e}({}),Sf=function(e){return e[e.X=1]="X",e[e.Y=2]="Y",e}({}),Tf=function(e){return e[e.AUTOPLAY=1]="AUTOPLAY",e[e.SCROLL_SYNC=2]="SCROLL_SYNC",e[e.STATES=3]="STATES",e[e.NONE=4]="NONE",e}({}),Rf=function(e){return e[e.FIXED=1]="FIXED",e[e.RELATIVE=2]="RELATIVE",e}({}),Af=function(e){return e[e.APPEAR=1]="APPEAR",e[e.MOUNT=2]="MOUNT",e}({}),Of=function(e){return e[e.PLAY=1]="PLAY",e[e.PAUSE=2]="PAUSE",e[e.REVERSE=3]="REVERSE",e[e.IGNORE=4]="IGNORE",e[e.DESTROY=5]="DESTROY",e[e.INIT=6]="INIT",e[e.RE_PLAY=7]="RE_PLAY",e}({}),If=(mf(yf={},1,"play"),mf(yf,2,"pause"),mf(yf,3,"reverse"),mf(yf,4,"ignore"),mf(yf,5,"destroy"),mf(yf,6,"init"),mf(yf,7,"re_play"),yf),Cf=function(e){return e[e.FIXED=0]="FIXED",e[e.PERCENTAGE=1]="PERCENTAGE",e[e.START=2]="START",e[e.START_PLUS=3]="START_PLUS",e[e.END=4]="END",e[e.END_PLUS=5]="END_PLUS",e}({}),Lf=(mf(bf={},0,""),mf(bf,1,"%"),mf(bf,2,"top"),mf(bf,3,"+=top"),mf(bf,4,"bottom"),mf(bf,5,"+=bottom"),bf),Nf=(mf(_f={},0,""),mf(_f,1,"%"),mf(_f,2,"top"),mf(_f,3,"+=left"),mf(_f,4,"right"),mf(_f,5,"+=right"),_f),kf=function(e,t,n){var r=2===e?Lf:Nf;return 2===t||4===t?"".concat(r[t]):"".concat(null!=n?n:"").concat(r[t])},Pf=function(e){return e[e.SMOOTH=0]="SMOOTH",e[e.INSTANT=1]="INSTANT",e}({}),jf=function(e){return e[e.NORMAL=1]="NORMAL",e[e.REVERSE=2]="REVERSE",e[e.ALTERNATE=3]="ALTERNATE",e}({}),Df=(mf(wf={},1,"normal"),mf(wf,2,"reverse"),mf(wf,3,"alternate"),wf),Mf=function(e){var t=[];return e.forEach(function(e){var n,r;Array.isArray(e.targets)?(n=t).push.apply(n,function(e){if(Array.isArray(e))return df(e)}(r=e.targets)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||vf(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):"string"==typeof e.targets&&t.push(e.targets)}),t.map(function(e){return document.querySelector(e)}).filter(function(e){return null!=e})},$f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=Object.entries(t).reduce(function(e,t){var n=gf(t,2),r=n[0],o=n[1];return e[r]=If[o],e},{}),o=gf((0,U.useState)({}),2),i=(o[0],o[1]),a=(0,U.useMemo)(function(){var t=Object.entries(e).reduce(function(e,t){return e[gf(t,1)[0]]={complete:!1},e},{}),o={},s={},u=function(r,a){var u,c=r.name,l=o[c];if(!l){var f,p=Df[r.direction||1];s[c]={direction:p};var h=!1,d=r.config;if(2===d.type_){var m,g=1===d.smoothness.type||d.smoothness.value||0,v=(null==d?void 0:d.container.element)?"."+n["E".concat(null==d?void 0:d.container.element)]:"#__next",y=null!==(m=null==d?void 0:d.target.element)&&void 0!==m?m:"-",b=kf(d.direction,d.container.enter.type,d.container.enter.value),_=kf(d.direction,d.container.leave.type,d.container.leave.value),w=kf(d.direction,d.target.enter.type,d.target.enter.value),E=kf(d.direction,d.target.leave.type,d.target.leave.value);h=hf({axis:2===d.direction?"y":"x",container:v,target:y,sync:g,enter:"".concat(b," ").concat(w),leave:"".concat(_," ").concat(E)})}else if(1===d.type_&&1===d.on.type_){var x,S,T,R,A=(null===(x=d.on)||void 0===x?void 0:x.container.element)?"."+n["E".concat(null===(S=d.on)||void 0===S?void 0:S.container.element)]:"#__next",O=null!==(R=null===(T=d.on)||void 0===T?void 0:T.target.element)&&void 0!==R?R:"-",I=kf(d.on.direction,d.on.container.enter.type,d.on.container.enter.value),C=kf(d.on.direction,d.on.container.leave.type,d.on.container.leave.value),L=kf(d.on.direction,d.on.target.enter.type,d.on.target.enter.value),N=kf(d.on.direction,d.on.target.leave.type,d.on.target.leave.value);h=hf({axis:2===d.on.direction?"y":"x",container:A,target:O,sync:!0,enter:"".concat(I," ").concat(L),leave:"".concat(C," ").concat(N)})}else 1===d.type_&&2===d.on.type_&&(h=!0);var k=(u={autoplay:h,loop:!!r.loop,onBegin:function(){t[r.name].begin=!0,t[r.name].complete=!1,r.listener&&i({})},onUpdate:function(e){1===e.progress&&(t[r.name].begin=!0,t[r.name].complete=!0,r.listener&&i({}))},defaults:{duration:1e3*r.seconds}},new nf(u).init());null===(f=Object.values(e).find(function(e){return e.node===r}))||void 0===f||f.data.forEach(function(e){k.add(e.targets,e.params,0)}),l={node:r,instance:k,elements:a},o[c]=l,l.instance.onComplete=function(){s[c].playing=!1}}return l.instance};return{player:r,states:t,list:o,play:function(e,t){var n=u(e),r=e.name;"play"!==s[r].state&&(s[r].state="play",s[r].reverse||t&&n.paused&&n.restart(),n.play(),s[r].reverse=!1,s[r].playing=!0)},pause:function(e){var t=e.name;"pause"!==s[t].state&&(s[t].state="pause",u(e).pause(),s[t].playing=!1)},reverse:function(e){var t=e.name;"reverse"!==s[t].state&&(s[t].state="reverse",u(e).reverse(),s[t].reverse=!0,s[t].playing=!0)},get:u,destroy:function(e){var t=o[e.name];t&&(delete s[e.name],delete o[e.name],t.instance.pause())},direction:function(e){return s[e.name].direction},clean:function(){return Object.entries(a.list).forEach(function(t){var n,r,o=gf(t,2),i=o[0],s=o[1],u=e[i],c=u?Mf(u.data):[];((null===(n=s.elements)||void 0===n?void 0:n.length)!==c.length||(null===(r=s.elements)||void 0===r?void 0:r.map(function(e){return c.includes(e)}).includes(!1)))&&a.destroy(s.node)})}}},[]);return a.player=r,{instances:a,scan:function(){Object.entries(t).forEach(function(t){var n=gf(t,2),r=n[0],o=n[1],i=e[r];if(i&&4!==o)if(5!==o){var s=Mf(i.data);s.length?(a.get(i.node,s),1===o?i&&a.play(i.node):2===o?i&&a.pause(i.node):7===o?i&&a.play(i.node,!0):3===o&&i&&a.reverse(i.node)):a.destroy(i.node)}else a.destroy(i.node)})}}},zf=0,Bf=function(){return(0,U.useMemo)(function(){return"C".concat(++zf)},[])},Uf=function(e){var t=(0,U.useRef)(!1);(0,U.useEffect)(function(){t.current=!0},[]),(0,U.useEffect)(function(){if(!t.current||e.option.runOnInit)return e.on();t.current=!1},e.values)},Ff=function(e,t,n){var r=[],o=t<e?t-e:e-t;r.length=o;for(var i=0;i<o;i++)r[i]=n(i);return r},Wf=function(e,t){var n=[],r=e.length;n.length=r;for(var o=0;o<r;o++)n[o]=t(e[o],o);return n},qf=function(e,t){var n=[],r=Object.entries(e),o=r.length;n.length=o;for(var i=0;i<o;i++)n[i]=t(r[i][0],r[i][1],i);return n},Hf=function(e,t){var n=[],r=e.length;n.length=r;for(var o=0;o<r;o++)n[o]=t(e[o],o,r===o+1);return n},Yf=function(e){return"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?e.toString():void 0},Gf=function(e){return{width:(null==e?void 0:e.width)?e.width.value+e.width.type:void 0,height:(null==e?void 0:e.height)?e.height.value+e.height.type:void 0,backgroundColor:null==e?void 0:e.fill,backgroundImage:null==e?void 0:e.image}},Xf=function(e){return e[e.TOP=1]="TOP",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT",e[e.BOTTOM=4]="BOTTOM",e}({}),Vf=function(e){return e[e.PLUS=1]="PLUS",e[e.MINUS=2]="MINUS",e}({}),Zf=function(e){var t=e.container?document.querySelector(e.container):document.querySelector("#__next"),n=e.value||0,r=e.target?document.querySelector(e.target):void 0;if(t){var o=0,i=t.getBoundingClientRect();if(r){var a=r.getBoundingClientRect();1===e.config?o=Number(t.scrollTop+(a.top-i.top)):4===e.config?o=Number(t.scrollTop+(a.bottom-i.top)):2===e.config?o=Number(t.scrollLeft+(a.left-i.left)):3===e.config&&(o=Number(t.scrollLeft+(a.right-i.left))),1===e.operator?o+=n:2===e.operator&&(o-=n)}else 1===e.config?o=0:4===e.config?o=-t.scrollHeight:2===e.config?o=0:3===e.config&&(o=-t.scrollWidth),1===e.operator?o+=n:2===e.operator&&(o-=n);1===e.config||4===e.config?t.scrollTo({behavior:"instant",top:o}):t.scrollTo({behavior:"instant",left:o})}},Kf=function(e){return{text:e.currentTarget.value||"",element:e.currentTarget}},Jf=function(e){return{text:e.currentTarget.value||"",element:e.currentTarget}},Qf=function(e){return{element:e.currentTarget}},ep=function(e){return{element:e.currentTarget}},tp=function(e){return{element:e.currentTarget}}})(),u})());
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("next/router"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","next/router","react-dom"],t);else{var n="object"==typeof exports?t(require("react"),require("next/router"),require("react-dom")):t(e.react,e["next/router"],e["react-dom"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(e,t,n)=>(()=>{var r,o,i={12(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15(e,t,n){"use strict";var r=n(516),o=n(12),i=n(536),s=n(343),a=function e(t){var n=new i(t),a=o(i.prototype.request,n);return r.extend(a,i.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(987));a.Axios=i,a.Cancel=n(928),a.CancelToken=n(191),a.isCancel=n(864),a.VERSION=n(641).version,a.all=function(e){return Promise.all(e)},a.spread=n(980),a.isAxiosError=n(19),e.exports=a,e.exports.default=a},18(e,t,n){"use strict";var r=n(516);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},19(e,t,n){"use strict";var r=n(516);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},56(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},72(e){"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},s=[],a=0;a<e.length;a++){var u=e[a],c=r.base?u[0]+r.base:u[0],l=i[c]||0,f="".concat(c," ").concat(l);i[c]=l+1;var p=n(f),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var h=o(d,r);r.byIndex=a,t.splice(a,0,{identifier:f,updater:h,references:1})}s.push(f)}return s}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=n(i[s]);t[a].references--}for(var u=r(e,o),c=0;c<i.length;c++){var l=n(i[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=u}}},85(e,t,n){"use strict";e.exports=n(335)},106(e,t,n){"use strict";var r=n(516);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))}))}),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},137(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},155(t){"use strict";t.exports=e},191(e,t,n){"use strict";var r=n(928);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,r=new Promise(function(e){n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},202(e,t,n){"use strict";var r=n(516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&s[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},335(e,t,n){"use strict";var r=n(155),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},343(e,t,n){"use strict";var r=n(516);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function s(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function u(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==u||(n[e]=o)}),n}},449(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},471(e,t,n){"use strict";var r=n(516);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},490(e,t,n){"use strict";var r=n(516),o=n(881),i=n(864),s=n(987),a=n(928);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},505(e,t,n){e.exports=n(15)},514(e){"use strict";e.exports=n},516(e,t,n){"use strict";var r=n(12),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function s(e){return void 0===e}function a(e){return"[object ArrayBuffer]"===o.call(e)}function u(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:a,isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===o.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&a(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:u,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return u(e)&&l(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===o.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:f,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)f(arguments[r],n);return t},extend:function(e,t,n){return f(t,function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},522(e,t,n){"use strict";var r=n(763);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},531(e){"use strict";e.exports=t},536(e,t,n){"use strict";var r=n(516),o=n(106),i=n(471),s=n(490),a=n(343),u=n(841),c=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))});var i,l=[];if(this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)}),!o){var f=[s,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var p=t;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(e){h(e);break}}try{i=s(p)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},l.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}}),e.exports=l},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},543(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",x="[object Function]",_="[object GeneratorFunction]",w="[object Map]",E="[object Number]",T="[object Object]",S="[object Promise]",R="[object RegExp]",A="[object Set]",O="[object String]",I="[object Symbol]",L="[object WeakMap]",N="[object ArrayBuffer]",C="[object DataView]",k="[object Float32Array]",P="[object Float64Array]",j="[object Int8Array]",D="[object Int16Array]",z="[object Int32Array]",M="[object Uint8Array]",$="[object Uint8ClampedArray]",B="[object Uint16Array]",U="[object Uint32Array]",F=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(q.source),X=RegExp(Y.source),V=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="["+_e+"]",Ie="["+Ae+"]",Le="["+we+"]",Ne="\\d+",Ce="["+Ee+"]",ke="["+Te+"]",Pe="[^"+_e+Ae+Ne+Ee+Te+Se+"]",je="\\ud83c[\\udffb-\\udfff]",De="[^"+_e+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Se+"]",Be="\\u200d",Ue="(?:"+ke+"|"+Pe+")",Fe="(?:"+$e+"|"+Pe+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Le+"|"+je+")?",Ye="["+Re+"]?",Ge=Ye+qe+"(?:"+Be+"(?:"+[De,ze,Me].join("|")+")"+Ye+qe+")*",Xe="(?:"+[Ce,ze,Me].join("|")+")"+Ge,Ve="(?:"+[De+Le+"?",Le,ze,Me,Oe].join("|")+")",Ze=RegExp("['’]","g"),Ke=RegExp(Le,"g"),Je=RegExp(je+"(?="+je+")|"+Ve+Ge,"g"),Qe=RegExp([$e+"?"+ke+"+"+We+"(?="+[Ie,$e,"$"].join("|")+")",Fe+"+"+He+"(?="+[Ie,$e+Ue,"$"].join("|")+")",$e+"?"+Ue+"+"+We,$e+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Xe].join("|"),"g"),et=RegExp("["+Be+_e+we+Re+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[k]=ot[P]=ot[j]=ot[D]=ot[z]=ot[M]=ot[$]=ot[B]=ot[U]=!0,ot[g]=ot[m]=ot[N]=ot[v]=ot[C]=ot[y]=ot[b]=ot[x]=ot[w]=ot[E]=ot[T]=ot[R]=ot[A]=ot[O]=ot[L]=!1;var it={};it[g]=it[m]=it[N]=it[C]=it[v]=it[y]=it[k]=it[P]=it[j]=it[D]=it[z]=it[w]=it[E]=it[T]=it[R]=it[A]=it[O]=it[I]=it[M]=it[$]=it[B]=it[U]=!0,it[b]=it[x]=it[L]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,gt=ht&&ct.process,mt=function(){try{return dt&&dt.require&&dt.require("util").types||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),vt=mt&&mt.isArrayBuffer,yt=mt&&mt.isDate,bt=mt&&mt.isMap,xt=mt&&mt.isRegExp,_t=mt&&mt.isSet,wt=mt&&mt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function It(e,t){return!(null==e||!e.length)&&$t(e,t,0)>-1}function Lt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Nt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ct(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function kt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Pt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function jt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Dt=Wt("length");function zt(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Mt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function $t(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Mt(e,Ut,n)}function Bt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ut(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:p}function Wt(e){return function(t){return null==t?o:t[e]}}function Ht(e){return function(t){return null==e?o:e[t]}}function qt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Xt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Vt(e){return function(t){return e(t)}}function Zt(e,t){return Nt(t,function(t){return e[t]})}function Kt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&$t(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&$t(t,e[n],0)>-1;);return n}var en=Ht({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function un(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function ln(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Dt(e)}function fn(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function e(t){var n,r=(t=null==t?ft:hn.defaults(ft.Object(),t,hn.pick(ft,nt))).Array,oe=t.Date,_e=t.Error,we=t.Function,Ee=t.Math,Te=t.Object,Se=t.RegExp,Re=t.String,Ae=t.TypeError,Oe=r.prototype,Ie=we.prototype,Le=Te.prototype,Ne=t["__core-js_shared__"],Ce=Ie.toString,ke=Le.hasOwnProperty,Pe=0,je=(n=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Le.toString,ze=Ce.call(Te),Me=ft._,$e=Se("^"+Ce.call(ke).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ht?t.Buffer:o,Ue=t.Symbol,Fe=t.Uint8Array,We=Be?Be.allocUnsafe:o,He=sn(Te.getPrototypeOf,Te),qe=Te.create,Ye=Le.propertyIsEnumerable,Ge=Oe.splice,Xe=Ue?Ue.isConcatSpreadable:o,Ve=Ue?Ue.iterator:o,Je=Ue?Ue.toStringTag:o,et=function(){try{var e=ci(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=Ee.ceil,dt=Ee.floor,gt=Te.getOwnPropertySymbols,mt=Be?Be.isBuffer:o,Dt=t.isFinite,Ht=Oe.join,gn=sn(Te.keys,Te),mn=Ee.max,vn=Ee.min,yn=oe.now,bn=t.parseInt,xn=Ee.random,_n=Oe.reverse,wn=ci(t,"DataView"),En=ci(t,"Map"),Tn=ci(t,"Promise"),Sn=ci(t,"Set"),Rn=ci(t,"WeakMap"),An=ci(Te,"create"),On=Rn&&new Rn,In={},Ln=zi(wn),Nn=zi(En),Cn=zi(Tn),kn=zi(Sn),Pn=zi(Rn),jn=Ue?Ue.prototype:o,Dn=jn?jn.valueOf:o,zn=jn?jn.toString:o;function Mn(e){if(ea(e)&&!Ws(e)&&!(e instanceof Fn)){if(e instanceof Un)return e;if(ke.call(e,"__wrapped__"))return Mi(e)}return new Un(e)}var $n=function(){function e(){}return function(t){if(!Qs(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Bn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Fn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Xn(e,t){var n=Ws(e),r=!n&&Fs(e),o=!n&&!r&&Gs(e),i=!n&&!r&&!o&&ua(e),s=n||r||o||i,a=s?Gt(e.length,Re):[],u=a.length;for(var c in e)!t&&!ke.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mi(c,u))||a.push(c);return a}function Vn(e){var t=e.length;return t?e[qr(0,t-1)]:o}function Zn(e,t){return Ci(Ao(e),ir(t,0,e.length))}function Kn(e){return Ci(Ao(e))}function Jn(e,t,n){(n!==o&&!$s(e[t],n)||n===o&&!(t in e))&&rr(e,t,n)}function Qn(e,t,n){var r=e[t];ke.call(e,t)&&$s(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if($s(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,function(e,o,i){t(r,e,n(e),i)}),r}function nr(e,t){return e&&Oo(t,La(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,i=t.length,s=r(i),a=null==e;++n<i;)s[n]=a?o:Sa(e,t[n]);return s}function ir(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,s){var a,u=1&t,c=2&t,l=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!Qs(e))return e;var f=Ws(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Ao(e,a)}else{var p=pi(e),d=p==x||p==_;if(Gs(e))return _o(e,u);if(p==T||p==g||d&&!i){if(a=c||d?{}:hi(e),!u)return c?function(e,t){return Oo(e,fi(e),t)}(e,function(e,t){return e&&Oo(t,Na(t),e)}(a,e)):function(e,t){return Oo(e,li(e),t)}(e,nr(a,e))}else{if(!it[p])return i?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case N:return wo(e);case v:case y:return new o(+e);case C:return function(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case P:case j:case D:case z:case M:case $:case B:case U:return Eo(e,n);case w:return new o;case E:case O:return new o(e);case R:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new o;case I:return r=e,Dn?Te(Dn.call(r)):{}}}(e,p,u)}}s||(s=new Gn);var h=s.get(e);if(h)return h;s.set(e,a),ia(e)?e.forEach(function(r){a.add(sr(r,t,n,r,e,s))}):ta(e)&&e.forEach(function(r,o){a.set(o,sr(r,t,n,o,e,s))});var m=f?o:(l?c?ni:ti:c?Na:La)(e);return St(m||e,function(r,o){m&&(r=e[o=r]),Qn(a,o,sr(r,t,n,o,e,s))}),a}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ae(i);return Oi(function(){e.apply(o,n)},t)}function cr(e,t,n,r){var o=-1,i=It,s=!0,a=e.length,u=[],c=t.length;if(!a)return u;n&&(t=Nt(t,Vt(n))),r?(i=Lt,s=!1):t.length>=200&&(i=Kt,s=!1,t=new Yn(t));e:for(;++o<a;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,s&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else i(t,f,r)||u.push(l)}return u}Mn.templateSettings={escape:V,evaluate:Z,interpolate:K,variable:"",imports:{_:Mn}},Mn.prototype=Bn.prototype,Mn.prototype.constructor=Mn,Un.prototype=$n(Bn.prototype),Un.prototype.constructor=Un,Fn.prototype=$n(Bn.prototype),Fn.prototype.constructor=Fn,Wn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===s?o:n}return ke.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return An?t[e]!==o:ke.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&t===o?s:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Hn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?o:t[n][1]},Hn.prototype.has=function(e){return er(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(En||Hn),string:new Wn}},qn.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ai(this,e).get(e)},qn.prototype.has=function(e){return ai(this,e).has(e)},qn.prototype.set=function(e,t){var n=ai(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,s),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var lr=No(yr),fr=No(br,!0);function pr(e,t){var n=!0;return lr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function dr(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(null!=a&&(u===o?a==a&&!aa(a):n(a,u)))var u=a,c=s}return c}function hr(e,t){var n=[];return lr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function gr(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=gi),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?gr(a,t-1,n,r,o):Ct(o,a):r||(o[o.length]=a)}return o}var mr=Co(),vr=Co(!0);function yr(e,t){return e&&mr(e,t,La)}function br(e,t){return e&&vr(e,t,La)}function xr(e,t){return Ot(t,function(t){return Zs(e[t])})}function _r(e,t){for(var n=0,r=(t=vo(t,e)).length;null!=e&&n<r;)e=e[Di(t[n++])];return n&&n==r?e:o}function wr(e,t,n){var r=t(e);return Ws(e)?r:Ct(r,n(e))}function Er(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in Te(e)?function(e){var t=ke.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var i=De.call(e);return r&&(t?e[Je]=n:delete e[Je]),i}(e):function(e){return De.call(e)}(e)}function Tr(e,t){return e>t}function Sr(e,t){return null!=e&&ke.call(e,t)}function Rr(e,t){return null!=e&&t in Te(e)}function Ar(e,t,n){for(var i=n?Lt:It,s=e[0].length,a=e.length,u=a,c=r(a),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Nt(p,Vt(t))),l=vn(p.length,l),c[u]=!n&&(t||s>=120&&p.length>=120)?new Yn(u&&p):o}p=e[0];var d=-1,h=c[0];e:for(;++d<s&&f.length<l;){var g=p[d],m=t?t(g):g;if(g=n||0!==g?g:0,!(h?Kt(h,m):i(f,m,n))){for(u=a;--u;){var v=c[u];if(!(v?Kt(v,m):i(e[u],m,n)))continue e}h&&h.push(m),f.push(g)}}return f}function Or(e,t,n){var r=null==(e=Si(e,t=vo(t,e)))?e:e[Di(Vi(t))];return null==r?o:Et(r,e,n)}function Ir(e){return ea(e)&&Er(e)==g}function Lr(e,t,n,r,i){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var a=Ws(e),u=Ws(t),c=a?m:pi(e),l=u?m:pi(t),f=(c=c==g?T:c)==T,p=(l=l==g?T:l)==T,d=c==l;if(d&&Gs(e)){if(!Gs(t))return!1;a=!0,f=!1}if(d&&!f)return s||(s=new Gn),a||ua(e)?Qo(e,t,n,r,i,s):function(e,t,n,r,o,i,s){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!i(new Fe(e),new Fe(t)));case v:case y:case E:return $s(+e,+t);case b:return e.name==t.name&&e.message==t.message;case R:case O:return e==t+"";case w:var a=on;case A:var u=1&r;if(a||(a=un),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var l=Qo(a(e),a(t),r,o,i,s);return s.delete(e),l;case I:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,c,n,r,i,s);if(!(1&n)){var h=f&&ke.call(e,"__wrapped__"),x=p&&ke.call(t,"__wrapped__");if(h||x){var _=h?e.value():e,S=x?t.value():t;return s||(s=new Gn),i(_,S,n,r,s)}}return!!d&&(s||(s=new Gn),function(e,t,n,r,i,s){var a=1&n,u=ti(e),c=u.length;if(c!=ti(t).length&&!a)return!1;for(var l=c;l--;){var f=u[l];if(!(a?f in t:ke.call(t,f)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var h=!0;s.set(e,t),s.set(t,e);for(var g=a;++l<c;){var m=e[f=u[l]],v=t[f];if(r)var y=a?r(v,m,f,t,e,s):r(m,v,f,e,t,s);if(!(y===o?m===v||i(m,v,n,r,s):y)){h=!1;break}g||(g="constructor"==f)}if(h&&!g){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,r,i,s))}(e,t,n,r,Lr,i))}function Nr(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;for(e=Te(e);i--;){var u=n[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var c=(u=n[i])[0],l=e[c],f=u[1];if(a&&u[2]){if(l===o&&!(c in e))return!1}else{var p=new Gn;if(r)var d=r(l,f,c,e,t,p);if(!(d===o?Lr(f,l,3,r,p):d))return!1}}return!0}function Cr(e){return!(!Qs(e)||(t=e,je&&je in t))&&(Zs(e)?$e:ge).test(zi(e));var t}function kr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?Ws(e)?Mr(e[0],e[1]):zr(e):fu(e)}function Pr(e){if(!_i(e))return gn(e);var t=[];for(var n in Te(e))ke.call(e,n)&&"constructor"!=n&&t.push(n);return t}function jr(e,t){return e<t}function Dr(e,t){var n=-1,o=qs(e)?r(e.length):[];return lr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function zr(e){var t=ui(e);return 1==t.length&&t[0][2]?Ei(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Mr(e,t){return yi(e)&&wi(t)?Ei(Di(e),t):function(n){var r=Sa(n,e);return r===o&&r===t?Ra(n,e):Lr(t,r,3)}}function $r(e,t,n,r,i){e!==t&&mr(t,function(s,a){if(i||(i=new Gn),Qs(s))!function(e,t,n,r,i,s,a){var u=Ri(e,n),c=Ri(t,n),l=a.get(c);if(l)Jn(e,n,l);else{var f=s?s(u,c,n+"",e,t,a):o,p=f===o;if(p){var d=Ws(c),h=!d&&Gs(c),g=!d&&!h&&ua(c);f=c,d||h||g?Ws(u)?f=u:Ys(u)?f=Ao(u):h?(p=!1,f=_o(c,!0)):g?(p=!1,f=Eo(c,!0)):f=[]:ra(c)||Fs(c)?(f=u,Fs(u)?f=ma(u):Qs(u)&&!Zs(u)||(f=hi(c))):p=!1}p&&(a.set(c,f),i(f,c,r,s,a),a.delete(c)),Jn(e,n,f)}}(e,t,a,n,$r,r,i);else{var u=r?r(Ri(e,a),s,a+"",e,t,i):o;u===o&&(u=s),Jn(e,a,u)}},Na)}function Br(e,t){var n=e.length;if(n)return mi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Nt(t,function(e){return Ws(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e}):[nu];var r=-1;t=Nt(t,Vt(si()));var o=Dr(e,function(e,n,o){var i=Nt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e){var t=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;++r<s;){var u=To(o[r],i[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(o)}function Fr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=_r(e,s);n(a,s)&&Zr(i,vo(s,e),a)}return i}function Wr(e,t,n,r){var o=r?Bt:$t,i=-1,s=t.length,a=e;for(e===t&&(t=Ao(t)),n&&(a=Nt(e,Vt(n)));++i<s;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(a,l,u,r))>-1;)a!==e&&Ge.call(a,u,1),Ge.call(e,u,1);return e}function Hr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;mi(o)?Ge.call(e,o,1):uo(e,o)}}return e}function qr(e,t){return e+dt(xn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Ii(Ti(e,t,nu),e+"")}function Xr(e){return Vn($a(e))}function Vr(e,t){var n=$a(e);return Ci(n,ir(t,0,n.length))}function Zr(e,t,n,r){if(!Qs(e))return e;for(var i=-1,s=(t=vo(t,e)).length,a=s-1,u=e;null!=u&&++i<s;){var c=Di(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=Qs(f)?f:mi(t[i+1])?[]:{})}Qn(u,c,l),u=u[c]}return e}var Kr=On?function(e,t){return On.set(e,t),e}:nu,Jr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qa(t),writable:!0})}:nu;function Qr(e){return Ci($a(e))}function eo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o<i;)s[o]=e[o+t];return s}function to(e,t){var n;return lr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!aa(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return ro(e,t,nu,n)}function ro(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,u=null===t,c=aa(t),l=t===o;i<s;){var f=dt((i+s)/2),p=n(e[f]),d=p!==o,h=null===p,g=p==p,m=aa(p);if(a)var v=r||g;else v=l?g&&(r||d):u?g&&d&&(r||!h):c?g&&d&&!h&&(r||!m):!h&&!m&&(r?p<=t:p<t);v?i=f+1:s=f}return vn(s,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!$s(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function io(e){return"number"==typeof e?e:aa(e)?p:+e}function so(e){if("string"==typeof e)return e;if(Ws(e))return Nt(e,so)+"";if(aa(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ao(e,t,n){var r=-1,o=It,i=e.length,s=!0,a=[],u=a;if(n)s=!1,o=Lt;else if(i>=200){var c=t?null:Go(e);if(c)return un(c);s=!1,o=Kt,u=new Yn}else u=t?[]:a;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,s&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),a.push(l)}else o(u,f,n)||(u!==a&&u.push(f),a.push(l))}return a}function uo(e,t){return null==(e=Si(e,t=vo(t,e)))||delete e[Di(Vi(t))]}function co(e,t,n,r){return Zr(e,t,n(_r(e,t)),r)}function lo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?eo(e,r?0:i,r?i+1:o):eo(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof Fn&&(n=n.value()),kt(t,function(e,t){return t.func.apply(t.thisArg,Ct([e],t.args))},n)}function po(e,t,n){var o=e.length;if(o<2)return o?ao(e[0]):[];for(var i=-1,s=r(o);++i<o;)for(var a=e[i],u=-1;++u<o;)u!=i&&(s[i]=cr(s[i]||a,e[u],t,n));return ao(gr(s,1),t,n)}function ho(e,t,n){for(var r=-1,i=e.length,s=t.length,a={};++r<i;){var u=r<s?t[r]:o;n(a,e[r],u)}return a}function go(e){return Ys(e)?e:[]}function mo(e){return"function"==typeof e?e:nu}function vo(e,t){return Ws(e)?e:yi(e,t)?[e]:ji(va(e))}var yo=Gr;function bo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:eo(e,t,n)}var xo=st||function(e){return ft.clearTimeout(e)};function _o(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function wo(e){var t=new e.constructor(e.byteLength);return new Fe(t).set(new Fe(e)),t}function Eo(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,s=aa(e),a=t!==o,u=null===t,c=t==t,l=aa(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!s&&!l&&e<t||l&&n&&i&&!r&&!s||u&&n&&i||!a&&i||!c)return-1}return 0}function So(e,t,n,o){for(var i=-1,s=e.length,a=n.length,u=-1,c=t.length,l=mn(s-a,0),f=r(c+l),p=!o;++u<c;)f[u]=t[u];for(;++i<a;)(p||i<s)&&(f[n[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function Ro(e,t,n,o){for(var i=-1,s=e.length,a=-1,u=n.length,c=-1,l=t.length,f=mn(s-u,0),p=r(f+l),d=!o;++i<f;)p[i]=e[i];for(var h=i;++c<l;)p[h+c]=t[c];for(;++a<u;)(d||i<s)&&(p[h+n[a]]=e[i++]);return p}function Ao(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Oo(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var u=t[s],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?rr(n,u,c):Qn(n,u,c)}return n}function Io(e,t){return function(n,r){var o=Ws(n)?Tt:tr,i=t?t():{};return o(n,e,si(r,2),i)}}function Lo(e){return Gr(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&vi(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Te(t);++r<i;){var u=n[r];u&&e(t,u,r,s)}return t})}function No(e,t){return function(n,r){if(null==n)return n;if(!qs(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Te(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Co(e){return function(t,n,r){for(var o=-1,i=Te(t),s=r(t),a=s.length;a--;){var u=s[e?a:++o];if(!1===n(i[u],u,i))break}return t}}function ko(e){return function(t){var n=rn(t=va(t))?fn(t):o,r=n?n[0]:t.charAt(0),i=n?bo(n,1).join(""):t.slice(1);return r[e]()+i}}function Po(e){return function(t){return kt(Za(Fa(t).replace(Ze,"")),e,"")}}function jo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return Qs(r)?r:n}}function Do(e){return function(t,n,r){var i=Te(t);if(!qs(t)){var s=si(n,3);t=La(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function zo(e){return ei(function(t){var n=t.length,r=n,s=Un.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Ae(i);if(s&&!u&&"wrapper"==oi(a))var u=new Un([],!0)}for(r=u?r:n;++r<n;){var c=oi(a=t[r]),l="wrapper"==c?ri(a):o;u=l&&bi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oi(l[0])].apply(u,l[3]):1==a.length&&bi(a)?u[c]():u.thru(a)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Ws(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function Mo(e,t,n,i,s,a,u,l,f,p){var d=t&c,h=1&t,g=2&t,m=24&t,v=512&t,y=g?o:jo(e);return function c(){for(var b=arguments.length,x=r(b),_=b;_--;)x[_]=arguments[_];if(m)var w=ii(c),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,w);if(i&&(x=So(x,i,s,m)),a&&(x=Ro(x,a,u,m)),b-=E,m&&b<p){var T=an(x,w);return qo(e,t,Mo,c.placeholder,n,x,T,l,f,p-b)}var S=h?n:this,R=g?S[e]:e;return b=x.length,l?x=function(e,t){for(var n=e.length,r=vn(t.length,n),i=Ao(e);r--;){var s=t[r];e[r]=mi(s,n)?i[s]:o}return e}(x,l):v&&b>1&&x.reverse(),d&&f<b&&(x.length=f),this&&this!==ft&&this instanceof c&&(R=y||jo(R)),R.apply(S,x)}}function $o(e,t){return function(n,r){return function(e,t,n,r){return yr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function Bo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=io(n),r=io(r)),i=e(n,r)}return i}}function Uo(e){return ei(function(t){return t=Nt(t,Vt(si())),Gr(function(n){var r=this;return e(t,function(e){return Et(e,r,n)})})})}function Fo(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,pt(e/ln(t)));return rn(t)?bo(fn(r),0,e).join(""):r.slice(0,e)}function Wo(e){return function(t,n,i){return i&&"number"!=typeof i&&vi(t,n,i)&&(n=i=o),t=pa(t),n===o?(n=t,t=0):n=pa(n),function(e,t,n,o){for(var i=-1,s=mn(pt((t-e)/(n||1)),0),a=r(s);s--;)a[o?s:++i]=e,e+=n;return a}(t,n,i=i===o?t<n?1:-1:pa(i),e)}}function Ho(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ga(t),n=ga(n)),e(t,n)}}function qo(e,t,n,r,i,s,a,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,i,p?s:o,p?a:o,p?o:s,p?o:a,c,l,f],h=n.apply(o,d);return bi(e)&&Ai(h,d),h.placeholder=r,Li(h,e,t)}function Yo(e){var t=Ee[e];return function(e,n){if(e=ga(e),(n=null==n?0:vn(da(n),292))&&Dt(e)){var r=(va(e)+"e").split("e");return+((r=(va(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=Sn&&1/un(new Sn([,-0]))[1]==l?function(e){return new Sn(e)}:au;function Xo(e){return function(t){var n=pi(t);return n==w?on(t):n==A?cn(t):function(e,t){return Nt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Vo(e,t,n,s,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Ae(i);var g=s?s.length:0;if(g||(t&=-97,s=l=o),p=p===o?p:mn(da(p),0),d=d===o?d:da(d),g-=l?l.length:0,64&t){var m=s,v=l;s=l=o}var y=h?o:ri(e),b=[e,t,n,s,l,m,v,f,p,d];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?So(l,u,t[4]):u,e[4]=l?an(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ro(l,u,t[6]):u,e[6]=l?an(e[5],a):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,y),e=b[0],t=b[1],n=b[2],s=b[3],l=b[4],!(d=b[9]=b[9]===o?h?0:e.length:mn(b[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?function(e,t,n){var i=jo(e);return function s(){for(var a=arguments.length,u=r(a),c=a,l=ii(s);c--;)u[c]=arguments[c];var f=a<3&&u[0]!==l&&u[a-1]!==l?[]:an(u,l);return(a-=f.length)<n?qo(e,t,Mo,s.placeholder,o,u,f,o,o,n-a):Et(this&&this!==ft&&this instanceof s?i:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?Mo.apply(o,b):function(e,t,n,o){var i=1&t,s=jo(e);return function t(){for(var a=-1,u=arguments.length,c=-1,l=o.length,f=r(l+u),p=this&&this!==ft&&this instanceof t?s:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++a];return Et(p,i?n:this,f)}}(e,t,n,s);else var x=function(e,t,n){var r=1&t,o=jo(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Li((y?Kr:Ai)(x,b),e,t)}function Zo(e,t,n,r){return e===o||$s(e,Le[n])&&!ke.call(r,n)?t:e}function Ko(e,t,n,r,i,s){return Qs(e)&&Qs(t)&&(s.set(t,e),$r(e,t,o,Ko,s),s.delete(t)),e}function Jo(e){return ra(e)?o:e}function Qo(e,t,n,r,i,s){var a=1&n,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var l=s.get(e),f=s.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Yn:o;for(s.set(e,t),s.set(t,e);++p<u;){var g=e[p],m=t[p];if(r)var v=a?r(m,g,p,t,e,s):r(g,m,p,e,t,s);if(v!==o){if(v)continue;d=!1;break}if(h){if(!jt(t,function(e,t){if(!Kt(h,t)&&(g===e||i(g,e,n,r,s)))return h.push(t)})){d=!1;break}}else if(g!==m&&!i(g,m,n,r,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function ei(e){return Ii(Ti(e,o,Hi),e+"")}function ti(e){return wr(e,La,li)}function ni(e){return wr(e,Na,fi)}var ri=On?function(e){return On.get(e)}:au;function oi(e){for(var t=e.name+"",n=In[t],r=ke.call(In,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(ke.call(Mn,"placeholder")?Mn:e).placeholder}function si(){var e=Mn.iteratee||ru;return e=e===ru?kr:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=La(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,wi(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Cr(n)?n:o}var li=gt?function(e){return null==e?[]:(e=Te(e),Ot(gt(e),function(t){return Ye.call(e,t)}))}:hu,fi=gt?function(e){for(var t=[];e;)Ct(t,li(e)),e=He(e);return t}:hu,pi=Er;function di(e,t,n){for(var r=-1,o=(t=vo(t,e)).length,i=!1;++r<o;){var s=Di(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Js(o)&&mi(s,o)&&(Ws(e)||Fs(e))}function hi(e){return"function"!=typeof e.constructor||_i(e)?{}:$n(He(e))}function gi(e){return Ws(e)||Fs(e)||!!(Xe&&e&&e[Xe])}function mi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!Qs(n))return!1;var r=typeof t;return!!("number"==r?qs(n)&&mi(t,n.length):"string"==r&&t in n)&&$s(n[t],e)}function yi(e,t){if(Ws(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!aa(e))||Q.test(e)||!J.test(e)||null!=t&&e in Te(t)}function bi(e){var t=oi(e),n=Mn[t];if("function"!=typeof n||!(t in Fn.prototype))return!1;if(e===n)return!0;var r=ri(n);return!!r&&e===r[0]}(wn&&pi(new wn(new ArrayBuffer(1)))!=C||En&&pi(new En)!=w||Tn&&pi(Tn.resolve())!=S||Sn&&pi(new Sn)!=A||Rn&&pi(new Rn)!=L)&&(pi=function(e){var t=Er(e),n=t==T?e.constructor:o,r=n?zi(n):"";if(r)switch(r){case Ln:return C;case Nn:return w;case Cn:return S;case kn:return A;case Pn:return L}return t});var xi=Ne?Zs:gu;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function wi(e){return e==e&&!Qs(e)}function Ei(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Te(n))}}function Ti(e,t,n){return t=mn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=mn(o.length-t,0),a=r(s);++i<s;)a[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(a),Et(e,this,u)}}function Si(e,t){return t.length<2?e:_r(e,eo(t,0,-1))}function Ri(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ai=Ni(Kr),Oi=lt||function(e,t){return ft.setTimeout(e,t)},Ii=Ni(Jr);function Li(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(h,function(n){var r="_."+n[0];t&n[1]&&!It(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function Ni(e){var t=0,n=0;return function(){var r=yn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ci(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var s=qr(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var ki,Pi,ji=(ki=ks(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)}),t},function(e){return 500===Pi.size&&Pi.clear(),e}),Pi=ki.cache,ki);function Di(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function zi(e){if(null!=e){try{return Ce.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Mi(e){if(e instanceof Fn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Ao(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $i=Gr(function(e,t){return Ys(e)?cr(e,gr(t,1,Ys,!0)):[]}),Bi=Gr(function(e,t){var n=Vi(t);return Ys(n)&&(n=o),Ys(e)?cr(e,gr(t,1,Ys,!0),si(n,2)):[]}),Ui=Gr(function(e,t){var n=Vi(t);return Ys(n)&&(n=o),Ys(e)?cr(e,gr(t,1,Ys,!0),o,n):[]});function Fi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:da(n);return o<0&&(o=mn(r+o,0)),Mt(e,si(t,3),o)}function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=da(n),i=n<0?mn(r+i,0):vn(i,r-1)),Mt(e,si(t,3),i,!0)}function Hi(e){return null!=e&&e.length?gr(e,1):[]}function qi(e){return e&&e.length?e[0]:o}var Yi=Gr(function(e){var t=Nt(e,go);return t.length&&t[0]===e[0]?Ar(t):[]}),Gi=Gr(function(e){var t=Vi(e),n=Nt(e,go);return t===Vi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ar(n,si(t,2)):[]}),Xi=Gr(function(e){var t=Vi(e),n=Nt(e,go);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Ar(n,o,t):[]});function Vi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Gr(Ki);function Ki(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Ji=ei(function(e,t){var n=null==e?0:e.length,r=or(e,t);return Hr(e,Nt(t,function(e){return mi(e,n)?+e:e}).sort(To)),r});function Qi(e){return null==e?e:_n.call(e)}var es=Gr(function(e){return ao(gr(e,1,Ys,!0))}),ts=Gr(function(e){var t=Vi(e);return Ys(t)&&(t=o),ao(gr(e,1,Ys,!0),si(t,2))}),ns=Gr(function(e){var t=Vi(e);return t="function"==typeof t?t:o,ao(gr(e,1,Ys,!0),o,t)});function rs(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,function(e){if(Ys(e))return t=mn(e.length,t),!0}),Gt(t,function(t){return Nt(e,Wt(t))})}function os(e,t){if(!e||!e.length)return[];var n=rs(e);return null==t?n:Nt(n,function(e){return Et(t,o,e)})}var is=Gr(function(e,t){return Ys(e)?cr(e,t):[]}),ss=Gr(function(e){return po(Ot(e,Ys))}),as=Gr(function(e){var t=Vi(e);return Ys(t)&&(t=o),po(Ot(e,Ys),si(t,2))}),us=Gr(function(e){var t=Vi(e);return t="function"==typeof t?t:o,po(Ot(e,Ys),o,t)}),cs=Gr(rs),ls=Gr(function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,os(e,n)});function fs(e){var t=Mn(e);return t.__chain__=!0,t}function ps(e,t){return t(e)}var ds=ei(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Fn&&mi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ps,args:[i],thisArg:o}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),hs=Io(function(e,t,n){ke.call(e,n)?++e[n]:rr(e,n,1)}),gs=Do(Fi),ms=Do(Wi);function vs(e,t){return(Ws(e)?St:lr)(e,si(t,3))}function ys(e,t){return(Ws(e)?Rt:fr)(e,si(t,3))}var bs=Io(function(e,t,n){ke.call(e,n)?e[n].push(t):rr(e,n,[t])}),xs=Gr(function(e,t,n){var o=-1,i="function"==typeof t,s=qs(e)?r(e.length):[];return lr(e,function(e){s[++o]=i?Et(t,e,n):Or(e,t,n)}),s}),_s=Io(function(e,t,n){rr(e,n,t)});function ws(e,t){return(Ws(e)?Nt:Dr)(e,si(t,3))}var Es=Io(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ts=Gr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,gr(t,1),[])}),Ss=ct||function(){return ft.Date.now()};function Rs(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Vo(e,c,o,o,o,o,t)}function As(e,t){var n;if("function"!=typeof t)throw new Ae(i);return e=da(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Os=Gr(function(e,t,n){var r=1;if(n.length){var o=an(n,ii(Os));r|=u}return Vo(e,r,t,n,o)}),Is=Gr(function(e,t,n){var r=3;if(n.length){var o=an(n,ii(Is));r|=u}return Vo(t,r,e,n,o)});function Ls(e,t,n){var r,s,a,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ae(i);function g(t){var n=r,i=s;return r=s=o,f=t,u=e.apply(i,n)}function m(e){var n=e-l;return l===o||n>=t||n<0||d&&e-f>=a}function v(){var e=Ss();if(m(e))return y(e);c=Oi(v,function(e){var n=t-(e-l);return d?vn(n,a-(e-f)):n}(e))}function y(e){return c=o,h&&r?g(e):(r=s=o,u)}function b(){var e=Ss(),n=m(e);if(r=arguments,s=this,l=e,n){if(c===o)return function(e){return f=e,c=Oi(v,t),p?g(e):u}(l);if(d)return xo(c),c=Oi(v,t),g(l)}return c===o&&(c=Oi(v,t)),u}return t=ga(t)||0,Qs(n)&&(p=!!n.leading,a=(d="maxWait"in n)?mn(ga(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&xo(c),f=0,r=l=s=c=o},b.flush=function(){return c===o?u:y(Ss())},b}var Ns=Gr(function(e,t){return ur(e,1,t)}),Cs=Gr(function(e,t,n){return ur(e,ga(t)||0,n)});function ks(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(ks.Cache||qn),n}function Ps(e){if("function"!=typeof e)throw new Ae(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ks.Cache=qn;var js=yo(function(e,t){var n=(t=1==t.length&&Ws(t[0])?Nt(t[0],Vt(si())):Nt(gr(t,1),Vt(si()))).length;return Gr(function(r){for(var o=-1,i=vn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Et(e,this,r)})}),Ds=Gr(function(e,t){var n=an(t,ii(Ds));return Vo(e,u,o,t,n)}),zs=Gr(function(e,t){var n=an(t,ii(zs));return Vo(e,64,o,t,n)}),Ms=ei(function(e,t){return Vo(e,256,o,o,o,t)});function $s(e,t){return e===t||e!=e&&t!=t}var Bs=Ho(Tr),Us=Ho(function(e,t){return e>=t}),Fs=Ir(function(){return arguments}())?Ir:function(e){return ea(e)&&ke.call(e,"callee")&&!Ye.call(e,"callee")},Ws=r.isArray,Hs=vt?Vt(vt):function(e){return ea(e)&&Er(e)==N};function qs(e){return null!=e&&Js(e.length)&&!Zs(e)}function Ys(e){return ea(e)&&qs(e)}var Gs=mt||gu,Xs=yt?Vt(yt):function(e){return ea(e)&&Er(e)==y};function Vs(e){if(!ea(e))return!1;var t=Er(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Zs(e){if(!Qs(e))return!1;var t=Er(e);return t==x||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ks(e){return"number"==typeof e&&e==da(e)}function Js(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=bt?Vt(bt):function(e){return ea(e)&&pi(e)==w};function na(e){return"number"==typeof e||ea(e)&&Er(e)==E}function ra(e){if(!ea(e)||Er(e)!=T)return!1;var t=He(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ce.call(n)==ze}var oa=xt?Vt(xt):function(e){return ea(e)&&Er(e)==R},ia=_t?Vt(_t):function(e){return ea(e)&&pi(e)==A};function sa(e){return"string"==typeof e||!Ws(e)&&ea(e)&&Er(e)==O}function aa(e){return"symbol"==typeof e||ea(e)&&Er(e)==I}var ua=wt?Vt(wt):function(e){return ea(e)&&Js(e.length)&&!!ot[Er(e)]},ca=Ho(jr),la=Ho(function(e,t){return e<=t});function fa(e){if(!e)return[];if(qs(e))return sa(e)?fn(e):Ao(e);if(Ve&&e[Ve])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ve]());var t=pi(e);return(t==w?on:t==A?un:$a)(e)}function pa(e){return e?(e=ga(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function da(e){var t=pa(e),n=t%1;return t==t?n?t-n:t:0}function ha(e){return e?ir(da(e),0,d):0}function ga(e){if("number"==typeof e)return e;if(aa(e))return p;if(Qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=he.test(e);return n||me.test(e)?ut(e.slice(2),n?2:8):de.test(e)?p:+e}function ma(e){return Oo(e,Na(e))}function va(e){return null==e?"":so(e)}var ya=Lo(function(e,t){if(_i(t)||qs(t))Oo(t,La(t),e);else for(var n in t)ke.call(t,n)&&Qn(e,n,t[n])}),ba=Lo(function(e,t){Oo(t,Na(t),e)}),xa=Lo(function(e,t,n,r){Oo(t,Na(t),e,r)}),_a=Lo(function(e,t,n,r){Oo(t,La(t),e,r)}),wa=ei(or),Ea=Gr(function(e,t){e=Te(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&vi(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],a=Na(s),u=-1,c=a.length;++u<c;){var l=a[u],f=e[l];(f===o||$s(f,Le[l])&&!ke.call(e,l))&&(e[l]=s[l])}return e}),Ta=Gr(function(e){return e.push(o,Ko),Et(ka,o,e)});function Sa(e,t,n){var r=null==e?o:_r(e,t);return r===o?n:r}function Ra(e,t){return null!=e&&di(e,t,Rr)}var Aa=$o(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n},Qa(nu)),Oa=$o(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),ke.call(e,t)?e[t].push(n):e[t]=[n]},si),Ia=Gr(Or);function La(e){return qs(e)?Xn(e):Pr(e)}function Na(e){return qs(e)?Xn(e,!0):function(e){if(!Qs(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=_i(e),n=[];for(var r in e)("constructor"!=r||!t&&ke.call(e,r))&&n.push(r);return n}(e)}var Ca=Lo(function(e,t,n){$r(e,t,n)}),ka=Lo(function(e,t,n,r){$r(e,t,n,r)}),Pa=ei(function(e,t){var n={};if(null==e)return n;var r=!1;t=Nt(t,function(t){return t=vo(t,e),r||(r=t.length>1),t}),Oo(e,ni(e),n),r&&(n=sr(n,7,Jo));for(var o=t.length;o--;)uo(n,t[o]);return n}),ja=ei(function(e,t){return null==e?{}:function(e,t){return Fr(e,t,function(t,n){return Ra(e,n)})}(e,t)});function Da(e,t){if(null==e)return{};var n=Nt(ni(e),function(e){return[e]});return t=si(t),Fr(e,n,function(e,n){return t(e,n[0])})}var za=Xo(La),Ma=Xo(Na);function $a(e){return null==e?[]:Zt(e,La(e))}var Ba=Po(function(e,t,n){return t=t.toLowerCase(),e+(n?Ua(t):t)});function Ua(e){return Va(va(e).toLowerCase())}function Fa(e){return(e=va(e))&&e.replace(ye,en).replace(Ke,"")}var Wa=Po(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ha=Po(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),qa=ko("toLowerCase"),Ya=Po(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ga=Po(function(e,t,n){return e+(n?" ":"")+Va(t)}),Xa=Po(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Va=ko("toUpperCase");function Za(e,t,n){return e=va(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ka=Gr(function(e,t){try{return Et(e,o,t)}catch(e){return Vs(e)?e:new _e(e)}}),Ja=ei(function(e,t){return St(t,function(t){t=Di(t),rr(e,t,Os(e[t],e))}),e});function Qa(e){return function(){return e}}var eu=zo(),tu=zo(!0);function nu(e){return e}function ru(e){return kr("function"==typeof e?e:sr(e,1))}var ou=Gr(function(e,t){return function(n){return Or(n,e,t)}}),iu=Gr(function(e,t){return function(n){return Or(e,n,t)}});function su(e,t,n){var r=La(t),o=xr(t,r);null!=n||Qs(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,La(t)));var i=!(Qs(n)&&"chain"in n&&!n.chain),s=Zs(e);return St(o,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ao(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ct([this.value()],arguments))})}),e}function au(){}var uu=Uo(Nt),cu=Uo(At),lu=Uo(jt);function fu(e){return yi(e)?Wt(Di(e)):function(e){return function(t){return _r(t,e)}}(e)}var pu=Wo(),du=Wo(!0);function hu(){return[]}function gu(){return!1}var mu,vu=Bo(function(e,t){return e+t},0),yu=Yo("ceil"),bu=Bo(function(e,t){return e/t},1),xu=Yo("floor"),_u=Bo(function(e,t){return e*t},1),wu=Yo("round"),Eu=Bo(function(e,t){return e-t},0);return Mn.after=function(e,t){if("function"!=typeof t)throw new Ae(i);return e=da(e),function(){if(--e<1)return t.apply(this,arguments)}},Mn.ary=Rs,Mn.assign=ya,Mn.assignIn=ba,Mn.assignInWith=xa,Mn.assignWith=_a,Mn.at=wa,Mn.before=As,Mn.bind=Os,Mn.bindAll=Ja,Mn.bindKey=Is,Mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ws(e)?e:[e]},Mn.chain=fs,Mn.chunk=function(e,t,n){t=(n?vi(e,t,n):t===o)?1:mn(da(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,u=r(pt(i/t));s<i;)u[a++]=eo(e,s,s+=t);return u},Mn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Mn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ct(Ws(n)?Ao(n):[n],gr(t,1))},Mn.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?Nt(e,function(e){if("function"!=typeof e[1])throw new Ae(i);return[n(e[0]),e[1]]}):[],Gr(function(n){for(var r=-1;++r<t;){var o=e[r];if(Et(o[0],this,n))return Et(o[1],this,n)}})},Mn.conforms=function(e){return function(e){var t=La(e);return function(n){return ar(n,e,t)}}(sr(e,1))},Mn.constant=Qa,Mn.countBy=hs,Mn.create=function(e,t){var n=$n(e);return null==t?n:nr(n,t)},Mn.curry=function e(t,n,r){var i=Vo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Mn.curryRight=function e(t,n,r){var i=Vo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Mn.debounce=Ls,Mn.defaults=Ea,Mn.defaultsDeep=Ta,Mn.defer=Ns,Mn.delay=Cs,Mn.difference=$i,Mn.differenceBy=Bi,Mn.differenceWith=Ui,Mn.drop=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=n||t===o?1:da(t))<0?0:t,r):[]},Mn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,0,(t=r-(t=n||t===o?1:da(t)))<0?0:t):[]},Mn.dropRightWhile=function(e,t){return e&&e.length?lo(e,si(t,3),!0,!0):[]},Mn.dropWhile=function(e,t){return e&&e.length?lo(e,si(t,3),!0):[]},Mn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&vi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=da(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:da(r))<0&&(r+=i),r=n>r?0:ha(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Mn.filter=function(e,t){return(Ws(e)?Ot:hr)(e,si(t,3))},Mn.flatMap=function(e,t){return gr(ws(e,t),1)},Mn.flatMapDeep=function(e,t){return gr(ws(e,t),l)},Mn.flatMapDepth=function(e,t,n){return n=n===o?1:da(n),gr(ws(e,t),n)},Mn.flatten=Hi,Mn.flattenDeep=function(e){return null!=e&&e.length?gr(e,l):[]},Mn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===o?1:da(t)):[]},Mn.flip=function(e){return Vo(e,512)},Mn.flow=eu,Mn.flowRight=tu,Mn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Mn.functions=function(e){return null==e?[]:xr(e,La(e))},Mn.functionsIn=function(e){return null==e?[]:xr(e,Na(e))},Mn.groupBy=bs,Mn.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Mn.intersection=Yi,Mn.intersectionBy=Gi,Mn.intersectionWith=Xi,Mn.invert=Aa,Mn.invertBy=Oa,Mn.invokeMap=xs,Mn.iteratee=ru,Mn.keyBy=_s,Mn.keys=La,Mn.keysIn=Na,Mn.map=ws,Mn.mapKeys=function(e,t){var n={};return t=si(t,3),yr(e,function(e,r,o){rr(n,t(e,r,o),e)}),n},Mn.mapValues=function(e,t){var n={};return t=si(t,3),yr(e,function(e,r,o){rr(n,r,t(e,r,o))}),n},Mn.matches=function(e){return zr(sr(e,1))},Mn.matchesProperty=function(e,t){return Mr(e,sr(t,1))},Mn.memoize=ks,Mn.merge=Ca,Mn.mergeWith=ka,Mn.method=ou,Mn.methodOf=iu,Mn.mixin=su,Mn.negate=Ps,Mn.nthArg=function(e){return e=da(e),Gr(function(t){return Br(t,e)})},Mn.omit=Pa,Mn.omitBy=function(e,t){return Da(e,Ps(si(t)))},Mn.once=function(e){return As(2,e)},Mn.orderBy=function(e,t,n,r){return null==e?[]:(Ws(t)||(t=null==t?[]:[t]),Ws(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Mn.over=uu,Mn.overArgs=js,Mn.overEvery=cu,Mn.overSome=lu,Mn.partial=Ds,Mn.partialRight=zs,Mn.partition=Es,Mn.pick=ja,Mn.pickBy=Da,Mn.property=fu,Mn.propertyOf=function(e){return function(t){return null==e?o:_r(e,t)}},Mn.pull=Zi,Mn.pullAll=Ki,Mn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,si(n,2)):e},Mn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,o,n):e},Mn.pullAt=Ji,Mn.range=pu,Mn.rangeRight=du,Mn.rearg=Ms,Mn.reject=function(e,t){return(Ws(e)?Ot:hr)(e,Ps(si(t,3)))},Mn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return Hr(e,o),n},Mn.rest=function(e,t){if("function"!=typeof e)throw new Ae(i);return Gr(e,t=t===o?t:da(t))},Mn.reverse=Qi,Mn.sampleSize=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:da(t),(Ws(e)?Zn:Vr)(e,t)},Mn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Mn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},Mn.shuffle=function(e){return(Ws(e)?Kn:Qr)(e)},Mn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vi(e,t,n)?(t=0,n=r):(t=null==t?0:da(t),n=n===o?r:da(n)),eo(e,t,n)):[]},Mn.sortBy=Ts,Mn.sortedUniq=function(e){return e&&e.length?oo(e):[]},Mn.sortedUniqBy=function(e,t){return e&&e.length?oo(e,si(t,2)):[]},Mn.split=function(e,t,n){return n&&"number"!=typeof n&&vi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=so(t))&&rn(e)?bo(fn(e),0,n):e.split(t,n):[]},Mn.spread=function(e,t){if("function"!=typeof e)throw new Ae(i);return t=null==t?0:mn(da(t),0),Gr(function(n){var r=n[t],o=bo(n,0,t);return r&&Ct(o,r),Et(e,this,o)})},Mn.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Mn.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:da(t))<0?0:t):[]},Mn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:da(t)))<0?0:t,r):[]},Mn.takeRightWhile=function(e,t){return e&&e.length?lo(e,si(t,3),!1,!0):[]},Mn.takeWhile=function(e,t){return e&&e.length?lo(e,si(t,3)):[]},Mn.tap=function(e,t){return t(e),e},Mn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ae(i);return Qs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ls(e,t,{leading:r,maxWait:t,trailing:o})},Mn.thru=ps,Mn.toArray=fa,Mn.toPairs=za,Mn.toPairsIn=Ma,Mn.toPath=function(e){return Ws(e)?Nt(e,Di):aa(e)?[e]:Ao(ji(va(e)))},Mn.toPlainObject=ma,Mn.transform=function(e,t,n){var r=Ws(e),o=r||Gs(e)||ua(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Qs(e)&&Zs(i)?$n(He(e)):{}}return(o?St:yr)(e,function(e,r,o){return t(n,e,r,o)}),n},Mn.unary=function(e){return Rs(e,1)},Mn.union=es,Mn.unionBy=ts,Mn.unionWith=ns,Mn.uniq=function(e){return e&&e.length?ao(e):[]},Mn.uniqBy=function(e,t){return e&&e.length?ao(e,si(t,2)):[]},Mn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},Mn.unset=function(e,t){return null==e||uo(e,t)},Mn.unzip=rs,Mn.unzipWith=os,Mn.update=function(e,t,n){return null==e?e:co(e,t,mo(n))},Mn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,mo(n),r)},Mn.values=$a,Mn.valuesIn=function(e){return null==e?[]:Zt(e,Na(e))},Mn.without=is,Mn.words=Za,Mn.wrap=function(e,t){return Ds(mo(t),e)},Mn.xor=ss,Mn.xorBy=as,Mn.xorWith=us,Mn.zip=cs,Mn.zipObject=function(e,t){return ho(e||[],t||[],Qn)},Mn.zipObjectDeep=function(e,t){return ho(e||[],t||[],Zr)},Mn.zipWith=ls,Mn.entries=za,Mn.entriesIn=Ma,Mn.extend=ba,Mn.extendWith=xa,su(Mn,Mn),Mn.add=vu,Mn.attempt=Ka,Mn.camelCase=Ba,Mn.capitalize=Ua,Mn.ceil=yu,Mn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ga(n))==n?n:0),t!==o&&(t=(t=ga(t))==t?t:0),ir(ga(e),t,n)},Mn.clone=function(e){return sr(e,4)},Mn.cloneDeep=function(e){return sr(e,5)},Mn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Mn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Mn.conformsTo=function(e,t){return null==t||ar(e,t,La(t))},Mn.deburr=Fa,Mn.defaultTo=function(e,t){return null==e||e!=e?t:e},Mn.divide=bu,Mn.endsWith=function(e,t,n){e=va(e),t=so(t);var r=e.length,i=n=n===o?r:ir(da(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Mn.eq=$s,Mn.escape=function(e){return(e=va(e))&&X.test(e)?e.replace(Y,tn):e},Mn.escapeRegExp=function(e){return(e=va(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Mn.every=function(e,t,n){var r=Ws(e)?At:pr;return n&&vi(e,t,n)&&(t=o),r(e,si(t,3))},Mn.find=gs,Mn.findIndex=Fi,Mn.findKey=function(e,t){return zt(e,si(t,3),yr)},Mn.findLast=ms,Mn.findLastIndex=Wi,Mn.findLastKey=function(e,t){return zt(e,si(t,3),br)},Mn.floor=xu,Mn.forEach=vs,Mn.forEachRight=ys,Mn.forIn=function(e,t){return null==e?e:mr(e,si(t,3),Na)},Mn.forInRight=function(e,t){return null==e?e:vr(e,si(t,3),Na)},Mn.forOwn=function(e,t){return e&&yr(e,si(t,3))},Mn.forOwnRight=function(e,t){return e&&br(e,si(t,3))},Mn.get=Sa,Mn.gt=Bs,Mn.gte=Us,Mn.has=function(e,t){return null!=e&&di(e,t,Sr)},Mn.hasIn=Ra,Mn.head=qi,Mn.identity=nu,Mn.includes=function(e,t,n,r){e=qs(e)?e:$a(e),n=n&&!r?da(n):0;var o=e.length;return n<0&&(n=mn(o+n,0)),sa(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&$t(e,t,n)>-1},Mn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:da(n);return o<0&&(o=mn(r+o,0)),$t(e,t,o)},Mn.inRange=function(e,t,n){return t=pa(t),n===o?(n=t,t=0):n=pa(n),function(e,t,n){return e>=vn(t,n)&&e<mn(t,n)}(e=ga(e),t,n)},Mn.invoke=Ia,Mn.isArguments=Fs,Mn.isArray=Ws,Mn.isArrayBuffer=Hs,Mn.isArrayLike=qs,Mn.isArrayLikeObject=Ys,Mn.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Er(e)==v},Mn.isBuffer=Gs,Mn.isDate=Xs,Mn.isElement=function(e){return ea(e)&&1===e.nodeType&&!ra(e)},Mn.isEmpty=function(e){if(null==e)return!0;if(qs(e)&&(Ws(e)||"string"==typeof e||"function"==typeof e.splice||Gs(e)||ua(e)||Fs(e)))return!e.length;var t=pi(e);if(t==w||t==A)return!e.size;if(_i(e))return!Pr(e).length;for(var n in e)if(ke.call(e,n))return!1;return!0},Mn.isEqual=function(e,t){return Lr(e,t)},Mn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Lr(e,t,o,n):!!r},Mn.isError=Vs,Mn.isFinite=function(e){return"number"==typeof e&&Dt(e)},Mn.isFunction=Zs,Mn.isInteger=Ks,Mn.isLength=Js,Mn.isMap=ta,Mn.isMatch=function(e,t){return e===t||Nr(e,t,ui(t))},Mn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Nr(e,t,ui(t),n)},Mn.isNaN=function(e){return na(e)&&e!=+e},Mn.isNative=function(e){if(xi(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Cr(e)},Mn.isNil=function(e){return null==e},Mn.isNull=function(e){return null===e},Mn.isNumber=na,Mn.isObject=Qs,Mn.isObjectLike=ea,Mn.isPlainObject=ra,Mn.isRegExp=oa,Mn.isSafeInteger=function(e){return Ks(e)&&e>=-9007199254740991&&e<=f},Mn.isSet=ia,Mn.isString=sa,Mn.isSymbol=aa,Mn.isTypedArray=ua,Mn.isUndefined=function(e){return e===o},Mn.isWeakMap=function(e){return ea(e)&&pi(e)==L},Mn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Er(e)},Mn.join=function(e,t){return null==e?"":Ht.call(e,t)},Mn.kebabCase=Wa,Mn.last=Vi,Mn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=da(n))<0?mn(r+i,0):vn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Mt(e,Ut,i,!0)},Mn.lowerCase=Ha,Mn.lowerFirst=qa,Mn.lt=ca,Mn.lte=la,Mn.max=function(e){return e&&e.length?dr(e,nu,Tr):o},Mn.maxBy=function(e,t){return e&&e.length?dr(e,si(t,2),Tr):o},Mn.mean=function(e){return Ft(e,nu)},Mn.meanBy=function(e,t){return Ft(e,si(t,2))},Mn.min=function(e){return e&&e.length?dr(e,nu,jr):o},Mn.minBy=function(e,t){return e&&e.length?dr(e,si(t,2),jr):o},Mn.stubArray=hu,Mn.stubFalse=gu,Mn.stubObject=function(){return{}},Mn.stubString=function(){return""},Mn.stubTrue=function(){return!0},Mn.multiply=_u,Mn.nth=function(e,t){return e&&e.length?Br(e,da(t)):o},Mn.noConflict=function(){return ft._===this&&(ft._=Me),this},Mn.noop=au,Mn.now=Ss,Mn.pad=function(e,t,n){e=va(e);var r=(t=da(t))?ln(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Fo(dt(o),n)+e+Fo(pt(o),n)},Mn.padEnd=function(e,t,n){e=va(e);var r=(t=da(t))?ln(e):0;return t&&r<t?e+Fo(t-r,n):e},Mn.padStart=function(e,t,n){e=va(e);var r=(t=da(t))?ln(e):0;return t&&r<t?Fo(t-r,n)+e:e},Mn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(va(e).replace(re,""),t||0)},Mn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=pa(e),t===o?(t=e,e=0):t=pa(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=xn();return vn(e+i*(t-e+at("1e-"+((i+"").length-1))),t)}return qr(e,t)},Mn.reduce=function(e,t,n){var r=Ws(e)?kt:qt,o=arguments.length<3;return r(e,si(t,4),n,o,lr)},Mn.reduceRight=function(e,t,n){var r=Ws(e)?Pt:qt,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Mn.repeat=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:da(t),Yr(va(e),t)},Mn.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mn.result=function(e,t,n){var r=-1,i=(t=vo(t,e)).length;for(i||(i=1,e=o);++r<i;){var s=null==e?o:e[Di(t[r])];s===o&&(r=i,s=n),e=Zs(s)?s.call(e):s}return e},Mn.round=wu,Mn.runInContext=e,Mn.sample=function(e){return(Ws(e)?Vn:Xr)(e)},Mn.size=function(e){if(null==e)return 0;if(qs(e))return sa(e)?ln(e):e.length;var t=pi(e);return t==w||t==A?e.size:Pr(e).length},Mn.snakeCase=Ya,Mn.some=function(e,t,n){var r=Ws(e)?jt:to;return n&&vi(e,t,n)&&(t=o),r(e,si(t,3))},Mn.sortedIndex=function(e,t){return no(e,t)},Mn.sortedIndexBy=function(e,t,n){return ro(e,t,si(n,2))},Mn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&$s(e[r],t))return r}return-1},Mn.sortedLastIndex=function(e,t){return no(e,t,!0)},Mn.sortedLastIndexBy=function(e,t,n){return ro(e,t,si(n,2),!0)},Mn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if($s(e[n],t))return n}return-1},Mn.startCase=Ga,Mn.startsWith=function(e,t,n){return e=va(e),n=null==n?0:ir(da(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Mn.subtract=Eu,Mn.sum=function(e){return e&&e.length?Yt(e,nu):0},Mn.sumBy=function(e,t){return e&&e.length?Yt(e,si(t,2)):0},Mn.template=function(e,t,n){var r=Mn.templateSettings;n&&vi(e,t,n)&&(t=o),e=va(e),t=xa({},t,r,Zo);var i,s,a=xa({},t.imports,r.imports,Zo),u=La(a),c=Zt(a,u),l=0,f=t.interpolate||be,p="__p += '",d=Se((t.escape||be).source+"|"+f.source+"|"+(f===K?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(ke.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,function(t,n,r,o,a,u){return r||(r=o),p+=e.slice(l,u).replace(xe,nn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t}),p+="';\n";var g=ke.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(F,""):p).replace(W,"$1").replace(H,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Ka(function(){return we(u,h+"return "+p).apply(o,c)});if(m.source=p,Vs(m))throw m;return m},Mn.times=function(e,t){if((e=da(e))<1||e>f)return[];var n=d,r=vn(e,d);t=si(t),e-=d;for(var o=Gt(r,t);++n<e;)t(n);return o},Mn.toFinite=pa,Mn.toInteger=da,Mn.toLength=ha,Mn.toLower=function(e){return va(e).toLowerCase()},Mn.toNumber=ga,Mn.toSafeInteger=function(e){return e?ir(da(e),-9007199254740991,f):0===e?e:0},Mn.toString=va,Mn.toUpper=function(e){return va(e).toUpperCase()},Mn.trim=function(e,t,n){if((e=va(e))&&(n||t===o))return Xt(e);if(!e||!(t=so(t)))return e;var r=fn(e),i=fn(t);return bo(r,Jt(r,i),Qt(r,i)+1).join("")},Mn.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===o))return e.slice(0,pn(e)+1);if(!e||!(t=so(t)))return e;var r=fn(e);return bo(r,0,Qt(r,fn(t))+1).join("")},Mn.trimStart=function(e,t,n){if((e=va(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=fn(e);return bo(r,Jt(r,fn(t))).join("")},Mn.truncate=function(e,t){var n=30,r="...";if(Qs(t)){var i="separator"in t?t.separator:i;n="length"in t?da(t.length):n,r="omission"in t?so(t.omission):r}var s=(e=va(e)).length;if(rn(e)){var a=fn(e);s=a.length}if(n>=s)return e;var u=n-ln(r);if(u<1)return r;var c=a?bo(a,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(a&&(u+=c.length-u),oa(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Se(i.source,va(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(so(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},Mn.unescape=function(e){return(e=va(e))&&G.test(e)?e.replace(q,dn):e},Mn.uniqueId=function(e){var t=++Pe;return va(e)+t},Mn.upperCase=Xa,Mn.upperFirst=Va,Mn.each=vs,Mn.eachRight=ys,Mn.first=qi,su(Mn,(mu={},yr(Mn,function(e,t){ke.call(Mn.prototype,t)||(mu[t]=e)}),mu),{chain:!1}),Mn.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Mn[e].placeholder=Mn}),St(["drop","take"],function(e,t){Fn.prototype[e]=function(n){n=n===o?1:mn(da(n),0);var r=this.__filtered__&&!t?new Fn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Fn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),St(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Fn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),St(["head","last"],function(e,t){var n="take"+(t?"Right":"");Fn.prototype[e]=function(){return this[n](1).value()[0]}}),St(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Fn.prototype[e]=function(){return this.__filtered__?new Fn(this):this[n](1)}}),Fn.prototype.compact=function(){return this.filter(nu)},Fn.prototype.find=function(e){return this.filter(e).head()},Fn.prototype.findLast=function(e){return this.reverse().find(e)},Fn.prototype.invokeMap=Gr(function(e,t){return"function"==typeof e?new Fn(this):this.map(function(n){return Or(n,e,t)})}),Fn.prototype.reject=function(e){return this.filter(Ps(si(e)))},Fn.prototype.slice=function(e,t){e=da(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Fn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=da(t))<0?n.dropRight(-t):n.take(t-e)),n)},Fn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Fn.prototype.toArray=function(){return this.take(d)},yr(Fn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Mn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Mn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Fn,c=a[0],l=u||Ws(t),f=function(e){var t=i.apply(Mn,Ct([e],a));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=s&&!p,g=u&&!d;if(!s&&l){t=g?t:new Fn(this);var m=e.apply(t,a);return m.__actions__.push({func:ps,args:[f],thisArg:o}),new Un(m,p)}return h&&g?e.apply(this,a):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})}),St(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Mn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ws(o)?o:[],e)}return this[n](function(n){return t.apply(Ws(n)?n:[],e)})}}),yr(Fn.prototype,function(e,t){var n=Mn[t];if(n){var r=n.name+"";ke.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}}),In[Mo(o,2).name]=[{name:"wrapper",func:o}],Fn.prototype.clone=function(){var e=new Fn(this.__wrapped__);return e.__actions__=Ao(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ao(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ao(this.__views__),e},Fn.prototype.reverse=function(){if(this.__filtered__){var e=new Fn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Fn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ws(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=vn(t,e+s);break;case"takeRight":e=mn(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,c=r?a:s-1,l=this.__iteratees__,f=l.length,p=0,d=vn(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return fo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var g=-1,m=e[c+=t];++g<f;){var v=l[g],y=v.iteratee,b=v.type,x=y(m);if(2==b)m=x;else if(!x){if(1==b)continue e;break e}}h[p++]=m}return h},Mn.prototype.at=ds,Mn.prototype.chain=function(){return fs(this)},Mn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Mn.prototype.next=function(){this.__values__===o&&(this.__values__=fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Mn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Mi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Mn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Fn){var t=e;return this.__actions__.length&&(t=new Fn(this)),(t=t.reverse()).__actions__.push({func:ps,args:[Qi],thisArg:o}),new Un(t,this.__chain__)}return this.thru(Qi)},Mn.prototype.toJSON=Mn.prototype.valueOf=Mn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Mn.prototype.first=Mn.prototype.head,Ve&&(Mn.prototype[Ve]=function(){return this}),Mn}();ft._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},592(e,t,n){"use strict";var r=n(516),o=n(522),i=n(948),s=n(106),a=n(615),u=n(631),c=n(202),l=n(763),f=n(987),p=n(928);e.exports=function(e){return new Promise(function(t,n){var d,h=e.data,g=e.headers,m=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(h)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+x)}var _=a(e.baseURL,e.url);function w(){if(y){var r="getAllResponseHeaders"in y?u(y.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};o(function(e){t(e),v()},function(e){n(e),v()},i),y=null}}if(y.open(e.method.toUpperCase(),s(_,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(w)},y.onabort=function(){y&&(n(l("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(l("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||c(_))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in y&&r.forEach(g,function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){y&&(n(!e||e&&e.type?new p("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),y.send(h)})}},601(e){"use strict";e.exports=function(e){return e[1]}},615(e,t,n){"use strict";var r=n(137),o=n(680);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},631(e,t,n){"use strict";var r=n(516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}}),s):s}},641(e){e.exports={version:"0.25.0"}},659(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},680(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},763(e,t,n){"use strict";var r=n(449);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},833(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var c=i[u];if(!a(c))return!1;var l=e[c],f=t[c];if(!1===(o=n?n.call(r,l,f,c):void 0)||void 0===o&&l!==f)return!1}return!0}},841(e,t,n){"use strict";var r=n(641).version,o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},864(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},881(e,t,n){"use strict";var r=n(516),o=n(987);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,function(n){e=n.call(i,e,t)}),e}},928(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},948(e,t,n){"use strict";var r=n(516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},980(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},983(e,t,n){"use strict";n.d(t,{Ay:()=>l,IX:()=>u,Tp:()=>a,zr:()=>c});var r=n(601),o=n.n(r),i=n(314),s=n.n(i)()(o());s.push([e.id,".UuBeegOGBV3_X4prw8pl{position:absolute;background-color:#fff;border:1px solid #999;width:auto;height:auto;min-width:min(100% - 120px,600px);min-height:min(100% - 120px,400px);top:var(--top-value, 50%);left:var(--left-value, 50%);border-radius:14px;box-shadow:0px 5px 25px rgba(0,0,0,.07);transition-delay:150ms;transition:all 300ms;transform:var(--transform-value, translateX(-50%) translateY(-50%) scale(0.9));opacity:var(--opacity-value, 0)}.XpiOnHrggFQPieURIrko{position:absolute;background-color:#fff;border:1px solid #ddd;width:auto;height:auto;border-radius:8px;box-shadow:0px 5px 25px rgba(0,0,0,.07);opacity:0;padding:8px;z-index:100000;box-sizing:border-box}.XpiOnHrggFQPieURIrko:empty{opacity:0}.pTtg4ffSEaTQOBV90PRY{position:absolute;width:100%;height:100%;transition:background-color 150ms;background-color:var(--background-color, rgba(0, 0, 0, 0.4))}",""]);var a="UuBeegOGBV3_X4prw8pl",u="XpiOnHrggFQPieURIrko",c="pTtg4ffSEaTQOBV90PRY";const l=s},987(e,t,n){"use strict";var r=n(516),o=n(18),i=n(449),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(592)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){c.headers[e]={}}),r.forEach(["post","put","patch"],function(e){c.headers[e]=r.merge(s)}),e.exports=c}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var n=Object.create(null);a.r(n);var i={};r=r||[null,o({}),o([]),o(o)];for(var s=2&t&&e;("object"==typeof s||"function"==typeof s)&&!~r.indexOf(s);s=o(s))Object.getOwnPropertyNames(s).forEach(t=>i[t]=()=>e[t]);return i.default=()=>e,a.d(n,i),n},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.nc=void 0;var u={};return(()=>{"use strict";a.r(u),a.d(u,{api:()=>e,appear:()=>t,blog:()=>n,document:()=>r,operations:()=>o,popup:()=>s,resizeDetecter:()=>l,storage:()=>f,timeline:()=>p,types:()=>d,useResize:()=>c,utils:()=>h});var e={};a.r(e),a.d(e,{ApiLoader:()=>Y,useApi:()=>G});var t={};a.r(t),a.d(t,{onAppear:()=>X});var n={};a.r(n),a.d(n,{BlogItem:()=>Mn,BlogList:()=>$n,BlogSideBar:()=>Bn,Item:()=>zn});var r={};a.r(r),a.d(r,{Body:()=>ui,Code:()=>wi,DocWrapper:()=>Ti,Image:()=>bi,Separator:()=>xi,Text:()=>yi,TextSize:()=>ii,TextStyle:()=>si,YoutubeVideo:()=>Ei,emptyBulletSvg:()=>mi,solidBulletSvg:()=>vi});var o={};a.r(o),a.d(o,{default:()=>Ri});var i={};a.r(i),a.d(i,{background:()=>Bi.Tp,default:()=>Fi,"popup-element":()=>Bi.IX,root:()=>Bi.zr});var s={};a.r(s),a.d(s,{Overlay:()=>Xa,ReactRootElement:()=>Ua,ReactRootElementPopup:()=>Fa,TooltipBoolean:()=>Ga,TooltipClick:()=>Ya,TooltipHover:()=>qa});var c={};a.r(c),a.d(c,{useResizeDetecter:()=>Za});var l={};a.r(l),a.d(l,{ResizeDetecter:()=>Ka});var f={};a.r(f),a.d(f,{Storage:()=>eu,useStates:()=>nu,useStorage:()=>tu});var p={};a.r(p),a.d(p,{ElementEnterLeave:()=>uf,ElementEnterLeaveXValues:()=>df,ElementEnterLeaveYValues:()=>pf,ScrollCoordinateType:()=>of,ScrollDirection:()=>nf,ScrollModel:()=>ef,SyncSmoothness:()=>lf,TimelineAutoPlay:()=>sf,TimelineCommandOption:()=>af,TimelineCommandOptionLabel:()=>cf,TimelineConfigType:()=>rf,TimelineDirection:()=>ff,TimelineDirectionValue:()=>vf,TimelineScreenType:()=>tf,getEnterLeaveConfigValue:()=>hf,getTimelineElements:()=>yf,useTimeline:()=>bf});var d={};a.r(d);var h={};a.r(h),a.d(h,{ScrollElementConfig:()=>gf,ScrollElementOrator:()=>mf,getCount:()=>_f,loopOnArray:()=>Rf,loopOnObject:()=>Sf,loopOnRange:()=>Ef,loopOnString:()=>Tf,prepareFocusEvent:()=>kf,prepareInputChangeEvent:()=>Nf,prepareKeyboardEvent:()=>Cf,prepareMouseEvent:()=>Lf,prepareUIEvent:()=>Pf,scrollTo:()=>If,toStyle:()=>Of,toText:()=>Af,useDidUpdateEffect:()=>wf});var g=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty;function y(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function b(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),s=o.get(n);if(i&&s)return i===n&&s===t;o.set(t,n),o.set(n,t);var a=e(t,n,r);return o.delete(t),o.delete(n),a}}function x(e){return g(e).concat(m(e))}var _=Object.hasOwn||function(e,t){return v.call(e,t)};function w(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var E="_owner",T=Object.getOwnPropertyDescriptor,S=Object.keys;function R(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function A(e,t){return w(e.getTime(),t.getTime())}function O(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},s=e.entries(),a=0;(r=s.next())&&!r.done;){for(var u=t.entries(),c=!1,l=0;(o=u.next())&&!o.done;){var f=r.value,p=f[0],d=f[1],h=o.value,g=h[0],m=h[1];c||i[l]||!(c=n.equals(p,g,a,l,e,t,n)&&n.equals(d,m,p,g,e,t,n))||(i[l]=!0),l++}if(!c)return!1;a++}return!0}function I(e,t,n){var r,o=S(e),i=o.length;if(S(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===E&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!_(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function L(e,t,n){var r,o,i,s=x(e),a=s.length;if(x(t).length!==a)return!1;for(;a-- >0;){if((r=s[a])===E&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!_(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=T(e,r),i=T(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function N(e,t){return w(e.valueOf(),t.valueOf())}function C(e,t){return e.source===t.source&&e.flags===t.flags}function k(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},s=e.values();(r=s.next())&&!r.done;){for(var a=t.values(),u=!1,c=0;(o=a.next())&&!o.done;)u||i[c]||!(u=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[c]=!0),c++;if(!u)return!1}return!0}function P(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var j=Array.isArray,D="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,z=Object.assign,M=Object.prototype.toString.call.bind(Object.prototype.toString),$=B();function B(e){void 0===e&&(e={});var t,n=e.circular,r=void 0!==n&&n,o=e.createInternalComparator,i=e.createState,s=e.strict,a=void 0!==s&&s,u=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?L:R,areDatesEqual:A,areMapsEqual:r?y(O,L):O,areObjectsEqual:r?L:I,arePrimitiveWrappersEqual:N,areRegExpsEqual:C,areSetsEqual:r?y(k,L):k,areTypedArraysEqual:r?L:P};if(n&&(o=z({},o,n(o))),t){var i=b(o.areArraysEqual),s=b(o.areMapsEqual),a=b(o.areObjectsEqual),u=b(o.areSetsEqual);o=z({},o,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:a,areSetsEqual:u})}return o}(e),c=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,a=e.areSetsEqual,u=e.areTypedArraysEqual;return function(e,c,l){if(e===c)return!0;if(null==e||null==c||"object"!=typeof e||"object"!=typeof c)return e!=e&&c!=c;var f=e.constructor;if(f!==c.constructor)return!1;if(f===Object)return o(e,c,l);if(j(e))return t(e,c,l);if(null!=D&&D(e))return u(e,c,l);if(f===Date)return n(e,c,l);if(f===RegExp)return s(e,c,l);if(f===Map)return r(e,c,l);if(f===Set)return a(e,c,l);var p=M(e);return"[object Date]"===p?n(e,c,l):"[object RegExp]"===p?s(e,c,l):"[object Map]"===p?r(e,c,l):"[object Set]"===p?a(e,c,l):"[object Object]"===p?"function"!=typeof e.then&&"function"!=typeof c.then&&o(e,c,l):"[object Arguments]"===p?o(e,c,l):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(e,c,l)}}(u),l=o?o(c):(t=c,function(e,n,r,o,i,s,a){return t(e,n,a)});return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,s){var a=r(),u=a.cache,c=void 0===u?t?new WeakMap:void 0:u,l=a.meta;return n(e,s,{cache:c,equals:o,meta:l,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var s={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,s)}}({circular:r,comparator:c,createState:i,equals:l,strict:a})}B({strict:!0}),B({circular:!0}),B({circular:!0,strict:!0}),B({createInternalComparator:function(){return w}}),B({strict:!0,createInternalComparator:function(){return w}}),B({circular:!0,createInternalComparator:function(){return w}}),B({circular:!0,createInternalComparator:function(){return w},strict:!0});var U=a(155),F=a.t(U,2),W=a.n(U),H=a(505),q=a.n(H),Y=function(){function e(e){this.loading=!1,this.controller=new AbortController,this.onUpdate=e}return e.prototype.load=function(e){var t,n=this;if(!$(e,this.request)){this.loading&&this.controller.abort(),this.controller=new AbortController,this.request=e,this.loading=!0,null===(t=this.onUpdate)||void 0===t||t.call(this);var r=e.config,o=e.body,i=Object.entries(e.query||{}).reduce(function(e,t,n){var r=t[0],o=t[1];return 0===n?"?".concat(r,"=").concat(o):"".concat(e,"&").concat(r,"=").concat(o)},"");q()({signal:this.controller.signal,method:"post",url:"".concat(r.host,"/").concat(r.path.startsWith("/")?r.path.slice(1):r.path).concat(i),headers:{"Content-Type":"application/json"},data:o}).then(function(e){var t;n.response=e.data,n.error=void 0,n.loading=!1,null===(t=n.onUpdate)||void 0===t||t.call(n)}).catch(function(e){var t;n.response=void 0,n.error=(null==e?void 0:e.message)||"Unknown Error",n.loading=!1,null===(t=n.onUpdate)||void 0===t||t.call(n)})}},e}(),G=function(e){var t=(0,U.useState)({})[1],n=(0,U.useMemo)(function(){return new Y(function(){t({})})},[]);return n.load(e),{loading:n.loading,response:{body:n.response},error:n.error,request:n.request}},X=function(){return function(e){var t=null,n=0,r={};return addEventListener("scroll",function(){var o=e.scrollY||e.pageYOffset;null!=t&&(r.velocity=o-t,r.delta=r.velocity>=0?r.velocity:-1*r.velocity),t=o,n&&clearTimeout(n),n=setTimeout(function(){t=null},30)},!1),function(t){return function(){var t,n,o,i=!1,s=[],a=[],u=0,c=0,l={};function f(){r.delta<l.delta.speed&&(n||(n=!0,h(),setTimeout(function(){n=!1},l.delta.timeout))),h()}function p(){setTimeout(function(){h()},100),addEventListener("scroll",f,!1),addEventListener("wheel",f,!1),addEventListener("resize",f,!1)}function d(){removeEventListener("scroll",f,!1),removeEventListener("resize",f,!1)}function h(){o||(s.forEach(function(t,n){var r,o,i;t&&(r=t,o=l.bounds,(i=r.getBoundingClientRect()).top+i.height>=0&&i.left+i.width>=0&&i.bottom-i.height<=(e.innerHeight||document.documentElement.clientHeight)+o&&i.right-i.width<=(e.innerWidth||document.documentElement.clientWidth)+o)?a[n]&&(a[n]=!1,u++,l.appear&&l.appear(t),l.disappear||l.reappear||(s[n]=null)):(!1===a[n]&&(l.disappear&&l.disappear(t),c++,l.reappear||(s[n]=null)),a[n]=!0)}),l.reappear||l.appear&&(!l.appear||u!==t)||l.disappear&&(!l.disappear||c!==t)||(o=!0,d(),l.done&&l.done()))}function g(){var e;if(!i&&(i=!0,l.init&&l.init(),e="function"==typeof l.elements?l.elements():l.elements)){t=e.length;for(var n=0;n<t;n+=1)s.push(e[n]),a.push(!0);p()}}return function(e){l={init:(e=e||{}).init,elements:e.elements,appear:e.appear,disappear:e.disappear,done:e.done,reappear:e.reappear,bounds:e.bounds||0,debounce:e.debounce||50,delta:{speed:e.deltaSpeed||50,timeout:e.deltaTimeout||500}},addEventListener("DOMContentLoaded",g,!1);var t=!1;Function("/*@cc_on return document.documentMode===10@*/")()&&(t=!0);var n="complete"===document.readyState||"loaded"===document.readyState;return t?n&&g():(n||"interactive"===document.readyState)&&g(),{trigger:function(){h()},pause:function(){d()},resume:function(){p()},destroy:function(){s=[],d()}}}}()(t)}}(window)},V=a(85),Z=a(531),K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},K.apply(this,arguments)};function J(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Q=a(833),ee=a.n(Q),te="-ms-",ne="-moz-",re="-webkit-",oe="comm",ie="rule",se="decl",ae="@keyframes",ue=Math.abs,ce=String.fromCharCode,le=Object.assign;function fe(e){return e.trim()}function pe(e,t){return(e=t.exec(e))?e[0]:e}function de(e,t,n){return e.replace(t,n)}function he(e,t,n){return e.indexOf(t,n)}function ge(e,t){return 0|e.charCodeAt(t)}function me(e,t,n){return e.slice(t,n)}function ve(e){return e.length}function ye(e){return e.length}function be(e,t){return t.push(e),e}function xe(e,t){return e.filter(function(e){return!pe(e,t)})}var _e=1,we=1,Ee=0,Te=0,Se=0,Re="";function Ae(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:_e,column:we,length:s,return:"",siblings:a}}function Oe(e,t){return le(Ae("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ie(e){for(;e.root;)e=Oe(e.root,{children:[e]});be(e,e.siblings)}function Le(){return Se=Te>0?ge(Re,--Te):0,we--,10===Se&&(we=1,_e--),Se}function Ne(){return Se=Te<Ee?ge(Re,Te++):0,we++,10===Se&&(we=1,_e++),Se}function Ce(){return ge(Re,Te)}function ke(){return Te}function Pe(e,t){return me(Re,e,t)}function je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function De(e){return fe(Pe(Te-1,$e(91===e?e+2:40===e?e+1:e)))}function ze(e){for(;(Se=Ce())&&Se<33;)Ne();return je(e)>2||je(Se)>3?"":" "}function Me(e,t){for(;--t&&Ne()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return Pe(e,ke()+(t<6&&32==Ce()&&32==Ne()))}function $e(e){for(;Ne();)switch(Se){case e:return Te;case 34:case 39:34!==e&&39!==e&&$e(Se);break;case 40:41===e&&$e(e);break;case 92:Ne()}return Te}function Be(e,t){for(;Ne()&&e+Se!==57&&(e+Se!==84||47!==Ce()););return"/*"+Pe(t,Te-1)+"*"+ce(47===e?e:Ne())}function Ue(e){for(;!je(Ce());)Ne();return Pe(e,Te)}function Fe(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function We(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case se:return e.return=e.return||e.value;case oe:return"";case ae:return e.return=e.value+"{"+Fe(e.children,r)+"}";case ie:if(!ve(e.value=e.props.join(",")))return""}return ve(n=Fe(e.children,r))?e.return=e.value+"{"+n+"}":""}function He(e,t,n){switch(function(e,t){return 45^ge(e,0)?(((t<<2^ge(e,0))<<2^ge(e,1))<<2^ge(e,2))<<2^ge(e,3):0}(e,t)){case 5103:return re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return re+e+e;case 4789:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+ne+e+te+e+e;case 5936:switch(ge(e,t+11)){case 114:return re+e+te+de(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+te+de(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+te+de(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return re+e+te+e+e;case 6165:return re+e+te+"flex-"+e+e;case 5187:return re+e+de(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+te+"flex-$1$2")+e;case 5443:return re+e+te+"flex-item-"+de(e,/flex-|-self/g,"")+(pe(e,/flex-|baseline/)?"":te+"grid-row-"+de(e,/flex-|-self/g,""))+e;case 4675:return re+e+te+"flex-line-pack"+de(e,/align-content|flex-|-self/g,"")+e;case 5548:return re+e+te+de(e,"shrink","negative")+e;case 5292:return re+e+te+de(e,"basis","preferred-size")+e;case 6060:return re+"box-"+de(e,"-grow","")+re+e+te+de(e,"grow","positive")+e;case 4554:return re+de(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return de(de(de(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return de(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return de(de(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4200:if(!pe(e,/flex-|baseline/))return te+"grid-column-align"+me(e,t)+e;break;case 2592:case 3360:return te+de(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,pe(e.props,/grid-\w+-end/)})?~he(e+(n=n[t].value),"span",0)?e:te+de(e,"-start","")+e+te+"grid-row-span:"+(~he(n,"span",0)?pe(n,/\d+/):+pe(n,/\d+/)-+pe(e,/\d+/))+";":te+de(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return pe(e.props,/grid-\w+-start/)})?e:te+de(de(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return de(e,/(.+)-inline(.+)/,re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ve(e)-1-t>6)switch(ge(e,t+1)){case 109:if(45!==ge(e,t+4))break;case 102:return de(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+ne+(108==ge(e,t+3)?"$3":"$2-$3"))+e;case 115:return~he(e,"stretch",0)?He(de(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return de(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,s,a){return te+n+":"+r+a+(o?te+n+"-span:"+(i?s:+s-+r)+a:"")+e});case 4949:if(121===ge(e,t+6))return de(e,":",":"+re)+e;break;case 6444:switch(ge(e,45===ge(e,14)?18:11)){case 120:return de(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+re+(45===ge(e,14)?"inline-":"")+"box$3$1"+re+"$2$3$1"+te+"$2box$3")+e;case 100:return de(e,":",":"+te)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return de(e,"scroll-","scroll-snap-")+e}return e}function qe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case se:return void(e.return=He(e.value,e.length,n));case ae:return Fe([Oe(e,{value:de(e.value,"@","@"+re)})],r);case ie:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(pe(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ie(Oe(e,{props:[de(t,/:(read-\w+)/,":-moz-$1")]})),Ie(Oe(e,{props:[t]})),le(e,{props:xe(n,r)});break;case"::placeholder":Ie(Oe(e,{props:[de(t,/:(plac\w+)/,":"+re+"input-$1")]})),Ie(Oe(e,{props:[de(t,/:(plac\w+)/,":-moz-$1")]})),Ie(Oe(e,{props:[de(t,/:(plac\w+)/,te+"input-$1")]})),Ie(Oe(e,{props:[t]})),le(e,{props:xe(n,r)})}return""})}}function Ye(e){return function(e){return Re="",e}(Ge("",null,null,null,[""],e=function(e){return _e=we=1,Ee=ve(Re=e),Te=0,[]}(e),0,[0],e))}function Ge(e,t,n,r,o,i,s,a,u){for(var c=0,l=0,f=s,p=0,d=0,h=0,g=1,m=1,v=1,y=0,b="",x=o,_=i,w=r,E=b;m;)switch(h=y,y=Ne()){case 40:if(108!=h&&58==ge(E,f-1)){-1!=he(E+=de(De(y),"&","&\f"),"&\f",ue(c?a[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:E+=De(y);break;case 9:case 10:case 13:case 32:E+=ze(h);break;case 92:E+=Me(ke()-1,7);continue;case 47:switch(Ce()){case 42:case 47:be(Ve(Be(Ne(),ke()),t,n,u),u);break;default:E+="/"}break;case 123*g:a[c++]=ve(E)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+l:-1==v&&(E=de(E,/\f/g,"")),d>0&&ve(E)-f&&be(d>32?Ze(E+";",r,n,f-1,u):Ze(de(E," ","")+";",r,n,f-2,u),u);break;case 59:E+=";";default:if(be(w=Xe(E,t,n,c,l,o,a,b,x=[],_=[],f,i),i),123===y)if(0===l)Ge(E,t,w,w,x,i,f,a,_);else switch(99===p&&110===ge(E,3)?100:p){case 100:case 108:case 109:case 115:Ge(e,w,w,r&&be(Xe(e,w,w,0,0,o,a,b,o,x=[],f,_),_),o,_,f,a,r?x:_);break;default:Ge(E,w,w,w,[""],_,0,a,_)}}c=l=d=0,g=v=1,b=E="",f=s;break;case 58:f=1+ve(E),d=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==Le())continue;switch(E+=ce(y),y*g){case 38:v=l>0?1:(E+="\f",-1);break;case 44:a[c++]=(ve(E)-1)*v,v=1;break;case 64:45===Ce()&&(E+=De(Ne())),p=Ce(),l=f=ve(b=E+=Ue(ke())),y++;break;case 45:45===h&&2==ve(E)&&(g=0)}}return i}function Xe(e,t,n,r,o,i,s,a,u,c,l,f){for(var p=o-1,d=0===o?i:[""],h=ye(d),g=0,m=0,v=0;g<r;++g)for(var y=0,b=me(e,p+1,p=ue(m=s[g])),x=e;y<h;++y)(x=fe(m>0?d[y]+" "+b:de(b,/&\f/g,d[y])))&&(u[v++]=x);return Ae(e,t,n,0===o?ie:a,u,c,l,f)}function Ve(e,t,n,r){return Ae(e,t,n,oe,ce(Se),me(e,2,-2),0,r)}function Ze(e,t,n,r,o){return Ae(e,t,n,se,me(e,0,r),me(e,r+1,-1),r,o)}var Ke={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Je="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Qe="active",et="data-styled-version",tt="6.1.11",nt="/*!sc*/\n",rt="undefined"!=typeof window&&"HTMLElement"in window,ot=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),it=(new Set,Object.freeze([])),st=Object.freeze({});var at=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ut=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ct=/(^-|-$)/g;function lt(e){return e.replace(ut,"-").replace(ct,"")}var ft=/(a)(d)/gi,pt=function(e){return String.fromCharCode(e+(e>25?39:97))};function dt(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=pt(t%52)+n;return(pt(t%52)+n).replace(ft,"$1-$2")}var ht,gt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},mt=function(e){return gt(5381,e)};function vt(e){return"string"==typeof e&&!0}var yt="function"==typeof Symbol&&Symbol.for,bt=yt?Symbol.for("react.memo"):60115,xt=yt?Symbol.for("react.forward_ref"):60112,_t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Et={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tt=((ht={})[xt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ht[bt]=Et,ht);function St(e){return("type"in(t=e)&&t.type.$$typeof)===bt?Et:"$$typeof"in e?Tt[e.$$typeof]:_t;var t}var Rt=Object.defineProperty,At=Object.getOwnPropertyNames,Ot=Object.getOwnPropertySymbols,It=Object.getOwnPropertyDescriptor,Lt=Object.getPrototypeOf,Nt=Object.prototype;function Ct(e,t,n){if("string"!=typeof t){if(Nt){var r=Lt(t);r&&r!==Nt&&Ct(e,r,n)}var o=At(t);Ot&&(o=o.concat(Ot(t)));for(var i=St(e),s=St(t),a=0;a<o.length;++a){var u=o[a];if(!(u in wt||n&&n[u]||s&&u in s||i&&u in i)){var c=It(t,u);try{Rt(e,u,c)}catch(e){}}}}return e}function kt(e){return"function"==typeof e}function Pt(e){return"object"==typeof e&&"styledComponentId"in e}function jt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Dt(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function zt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Mt(e,t,n){if(void 0===n&&(n=!1),!n&&!zt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Mt(e[r],t[r]);else if(zt(t))for(var r in t)e[r]=Mt(e[r],t[r]);return e}function $t(e,t){Object.defineProperty(e,"toString",{value:t})}function Bt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ut=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Bt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(nt);return t},e}(),Ft=new Map,Wt=new Map,Ht=1,qt=function(e){if(Ft.has(e))return Ft.get(e);for(;Wt.has(Ht);)Ht++;var t=Ht++;return Ft.set(e,t),Wt.set(t,e),t},Yt=function(e,t){Ht=t+1,Ft.set(e,t),Wt.set(t,e)},Gt="style[".concat(Je,"][").concat(et,'="').concat(tt,'"]'),Xt=new RegExp("^".concat(Je,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Vt=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},Zt=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(nt),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var u=a.match(Xt);if(u){var c=0|parseInt(u[1],10),l=u[2];0!==c&&(Yt(l,c),Vt(e,l,u[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(a)}}};function Kt(){return a.nc}var Jt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Je,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Je,Qe),r.setAttribute(et,tt);var s=Kt();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},Qt=function(){function e(e){this.element=Jt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Bt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),en=function(){function e(e){this.element=Jt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),tn=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),nn=rt,rn={isServer:!rt,useCSSOMInjection:!ot},on=function(){function e(e,t,n){void 0===e&&(e=st),void 0===t&&(t={});var r=this;this.options=K(K({},rn),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&rt&&nn&&(nn=!1,function(e){for(var t=document.querySelectorAll(Gt),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Je)!==Qe&&(Zt(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),$t(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Wt.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||0===s.length)return"continue";var a="".concat(Je,".g").concat(n,'[id="').concat(o,'"]'),u="";void 0!==i&&i.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(u,'"}').concat(nt)},i=0;i<n;i++)o(i);return r}(r)})}return e.registerId=function(e){return qt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(K(K({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new tn(n):t?new Qt(n):new en(n)}(this.options),new Ut(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(qt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(qt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(qt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),sn=/&/g,an=/^\s*\/\/.*$/gm;function un(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=un(e.children,t)),e})}function cn(e){var t,n,r,o=void 0===e?st:e,i=o.options,s=void 0===i?st:i,a=o.plugins,u=void 0===a?it:a,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},l=u.slice();l.push(function(e){e.type===ie&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(sn,n).replace(r,c))}),s.prefix&&l.push(qe),l.push(We);var f=function(e,o,i,a){void 0===o&&(o=""),void 0===i&&(i=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var u=e.replace(an,""),c=Ye(i||o?"".concat(i," ").concat(o," { ").concat(u," }"):u);s.namespace&&(c=un(c,s.namespace));var f,p,d,h=[];return Fe(c,(f=l.concat((d=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&d(e)})),p=ye(f),function(e,t,n,r){for(var o="",i=0;i<p;i++)o+=f[i](e,t,n,r)||"";return o})),h};return f.hash=u.length?u.reduce(function(e,t){return t.name||Bt(15),gt(e,t.name)},5381).toString():"",f}var ln=new on,fn=cn(),pn=W().createContext({shouldForwardProp:void 0,styleSheet:ln,stylis:fn}),dn=(pn.Consumer,W().createContext(void 0));function hn(){return(0,U.useContext)(pn)}function gn(e){var t=(0,U.useState)(e.stylisPlugins),n=t[0],r=t[1],o=hn().styleSheet,i=(0,U.useMemo)(function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,o]),s=(0,U.useMemo)(function(){return cn({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,U.useEffect)(function(){ee()(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var a=(0,U.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:s}},[e.shouldForwardProp,i,s]);return W().createElement(pn.Provider,{value:a},W().createElement(dn.Provider,{value:s},e.children))}var mn=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=fn);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,$t(this,function(){throw Bt(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=fn),this.name+e.hash},e}(),vn=function(e){return e>="A"&&e<="Z"};function yn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;vn(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var bn=function(e){return null==e||!1===e||""===e},xn=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!bn(i)&&(Array.isArray(i)&&i.isCss||kt(i)?r.push("".concat(yn(o),":"),i,";"):zt(i)?r.push.apply(r,J(J(["".concat(o," {")],xn(i),!1),["}"],!1)):r.push("".concat(yn(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Ke||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function _n(e,t,n,r){return bn(e)?[]:Pt(e)?[".".concat(e.styledComponentId)]:kt(e)?!kt(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:_n(e(t),t,n,r):e instanceof mn?n?(e.inject(n,r),[e.getName(r)]):[e]:zt(e)?xn(e):Array.isArray(e)?Array.prototype.concat.apply(it,e.map(function(e){return _n(e,t,n,r)})):[e.toString()];var o}function wn(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(kt(n)&&!Pt(n))return!1}return!0}var En=mt(tt),Tn=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&wn(e),this.componentId=t,this.baseHash=gt(En,t),this.baseStyle=n,on.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=jt(r,this.staticRulesId);else{var o=Dt(_n(this.rules,e,t,n)),i=dt(gt(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var s=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,s)}r=jt(r,i),this.staticRulesId=i}else{for(var a=gt(this.baseHash,n.hash),u="",c=0;c<this.rules.length;c++){var l=this.rules[c];if("string"==typeof l)u+=l;else if(l){var f=Dt(_n(l,e,t,n));a=gt(a,f+c),u+=f}}if(u){var p=dt(a>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(u,".".concat(p),void 0,this.componentId)),r=jt(r,p)}}return r},e}(),Sn=W().createContext(void 0);Sn.Consumer;var Rn={};function An(e,t,n){var r=Pt(e),o=e,i=!vt(e),s=t.attrs,a=void 0===s?it:s,u=t.componentId,c=void 0===u?function(e,t){var n="string"!=typeof e?"sc":lt(e);Rn[n]=(Rn[n]||0)+1;var r="".concat(n,"-").concat(function(e){return dt(mt(e)>>>0)}(tt+n+Rn[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):u,l=t.displayName,f=void 0===l?function(e){return vt(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):l,p=t.displayName&&t.componentId?"".concat(lt(t.displayName),"-").concat(t.componentId):t.componentId||c,d=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var g=o.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;h=function(e,t){return g(e,t)&&m(e,t)}}else h=g}var v=new Tn(n,p,r?o.componentStyle:void 0);function y(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,s=e.foldedComponentIds,a=e.styledComponentId,u=e.target,c=W().useContext(Sn),l=hn(),f=e.shouldForwardProp||l.shouldForwardProp,p=function(e,t,n){return void 0===n&&(n=st),e.theme!==n.theme&&e.theme||t||n.theme}(t,c,i)||st,d=function(e,t,n){for(var r,o=K(K({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var s=kt(r=e[i])?r(o):r;for(var a in s)o[a]="className"===a?jt(o[a],s[a]):"style"===a?K(K({},o[a]),s[a]):s[a]}return t.className&&(o.className=jt(o.className,t.className)),o}(r,t,p),h=d.as||u,g={};for(var m in d)void 0===d[m]||"$"===m[0]||"as"===m||"theme"===m&&d.theme===p||("forwardedAs"===m?g.as=d.forwardedAs:f&&!f(m,h)||(g[m]=d[m]));var v=function(e,t){var n=hn();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,d),y=jt(s,a);return v&&(y+=" "+v),d.className&&(y+=" "+d.className),g[vt(h)&&!at.has(h)?"class":"className"]=y,g.ref=n,(0,U.createElement)(h,g)}(b,e,t)}y.displayName=f;var b=W().forwardRef(y);return b.attrs=d,b.componentStyle=v,b.displayName=f,b.shouldForwardProp=h,b.foldedComponentIds=r?jt(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=p,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Mt(e,o[r],!0);return e}({},o.defaultProps,e):e}}),$t(b,function(){return".".concat(b.styledComponentId)}),i&&Ct(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function On(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var In=function(e){return Object.assign(e,{isCss:!0})};function Ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(kt(e)||zt(e))return In(_n(On(it,J([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?_n(r):In(_n(On(r,t)))}function Nn(e,t,n){if(void 0===n&&(n=st),!t)throw Bt(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Ln.apply(void 0,J([r],o,!1)))};return r.attrs=function(r){return Nn(e,t,K(K({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Nn(e,t,K(K({},n),r))},r}var Cn=function(e){return Nn(An,e)},kn=Cn;at.forEach(function(e){kn[e]=Cn(e)}),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=wn(e),on.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,r){var o=r(Dt(_n(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&on.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=Kt(),r=Dt([n&&'nonce="'.concat(n,'"'),"".concat(Je,'="true"'),"".concat(et,'="').concat(tt,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Bt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Bt(2);var n=((t={})[Je]="",t[et]=tt,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=Kt();return r&&(n.nonce=r),[W().createElement("style",K({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new on({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Bt(2);return W().createElement(gn,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Bt(3)}}(),"__sc-".concat(Je,"__");var Pn,jn,Dn,zn=kn.div(Pn||(jn=["\n display: flex;\n flex-direction: row;\n justify-content: start;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: start;\n align-items: center;\n box-sizing: border-box;\n cursor: pointer;\n border-radius: 8px;\n height: auto;\n &.hide-arrow {\n > .icon {\n display: none;\n }\n > .text {\n padding-left: 8px;\n }\n }\n > .icon {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: 30px;\n height: 30px;\n &.open {\n rotate: 90deg;\n }\n &.hide {\n user-select: none;\n opacity: 0;\n }\n }\n > .text {\n display: flex;\n flex-direction: row;\n justify-content: start;\n align-items: center;\n width: auto;\n height: 30px;\n padding: 8px;\n padding-left: 0px;\n flex: 1;\n }\n &:hover {\n background-color: #0000000a;\n }\n"],Dn=["\n display: flex;\n flex-direction: row;\n justify-content: start;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: start;\n align-items: center;\n box-sizing: border-box;\n cursor: pointer;\n border-radius: 8px;\n height: auto;\n &.hide-arrow {\n > .icon {\n display: none;\n }\n > .text {\n padding-left: 8px;\n }\n }\n > .icon {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: 30px;\n height: 30px;\n &.open {\n rotate: 90deg;\n }\n &.hide {\n user-select: none;\n opacity: 0;\n }\n }\n > .text {\n display: flex;\n flex-direction: row;\n justify-content: start;\n align-items: center;\n width: auto;\n height: 30px;\n padding: 8px;\n padding-left: 0px;\n flex: 1;\n }\n &:hover {\n background-color: #0000000a;\n }\n"],Object.defineProperty?Object.defineProperty(jn,"raw",{value:Dn}):jn.raw=Dn,Pn=jn)),Mn=function(e){var t,n,r=e.item,o=e.level,i=e.onClick,s=e.itemWrapper,a=e.isRoot,u=(0,Z.useRouter)(),c=location.pathname.slice(0,-1),l=location.pathname.startsWith(r.pagePath)&&c!==r.pagePath,f=(0,U.useState)(l),p=f[0],d=f[1],h=s,g=a?r.pagePath.split("/").slice(0,-1).join("/"):void 0,m=u.asPath===r.pagePath||g===u.asPath;return(0,V.jsxs)(V.Fragment,{children:[h?(0,V.jsx)(h,{properties:{title:r.name,isSelected:m},events:{click:function(){i?i(r.pagePath):u.push(r.pagePath)}},style:{paddingLeft:"".concat(15*o,"px")}}):(0,V.jsxs)(zn,{style:{paddingLeft:"".concat(15*o,"px")},children:[(0,V.jsx)("div",{onClick:function(){return d(!p)},className:"icon ".concat(p?"open":"close"),children:(null===(t=r.children)||void 0===t?void 0:t.length)?(0,V.jsxs)("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,V.jsx)("path",{d:"M0.0854187 1.36887L0.746734 0.696899L6.09215 5.95757L5.43083 6.62954L0.0854187 1.36887Z",fill:"black"}),(0,V.jsx)("path",{d:"M5.42025 5.29636L6.09215 5.95757L0.831473 11.3032L0.159501 10.6419L5.42025 5.29636Z",fill:"black"})]}):(0,V.jsx)("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,V.jsx)("circle",{cx:"3.44977",cy:"2.93213",r:"2",stroke:"#666666"})})}),(0,V.jsx)("div",{onClick:function(){i?i(r.pagePath):u.push(r.pagePath)},className:"text",children:r.name})]}),!!(null===(n=r.children)||void 0===n?void 0:n.length)&&p&&(0,V.jsx)($n,{onClick:i,list:r.children,level:o+1,itemWrapper:s})]})},$n=function(e){return(0,V.jsx)(V.Fragment,{children:e.list.map(function(t,n){return(0,V.jsx)(Mn,{item:t,onClick:e.onClick,level:e.level,itemWrapper:e.itemWrapper,isRoot:0===n&&e.isRoot},t.pagePath)})})},Bn=function(e){return(0,V.jsx)(V.Fragment,{children:(0,V.jsx)($n,{onClick:e.onClick,list:e.list,level:0,itemWrapper:e.itemWrapper,isRoot:!0})})},Un=Object.defineProperty,Fn=(e,t)=>()=>(e&&(t=e(e=0)),t),Wn=(e,t)=>{for(var n in t)Un(e,n,{get:t[n],enumerable:!0})},Hn={};Wn(Hn,{default:()=>qn});var qn,Yn=Fn(()=>{qn=[{type:"cmnt",match:/(;|#).*/gm},{expand:"str"},{expand:"num"},{type:"num",match:/\$[\da-fA-F]*\b/g},{type:"kwd",match:/^[a-z]+\s+[a-z.]+\b/gm,sub:[{type:"func",match:/^[a-z]+/g}]},{type:"kwd",match:/^\t*[a-z][a-z\d]*\b/gm},{match:/%|\$/g,type:"oper"}]}),Gn={};Wn(Gn,{default:()=>Vn});var Xn,Vn,Zn=Fn(()=>{Vn=[{sub:"todo",match:/#.*/g},{type:"str",match:/(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,sub:[Xn={type:"var",match:/\$\w+|\${[^}]*}|\$\([^)]*\)/g}]},{type:"oper",match:/(?<=\s|^)\.*\/[a-z/_.-]+/gi},{type:"kwd",match:/\s-[a-zA-Z]+|$<|[&|;]+|\b(unset|readonly|shift|export|if|fi|else|elif|while|do|done|for|until|case|esac|break|continue|exit|return|trap|wait|eval|exec|then|declare|enable|local|select|typeset|time|add|remove|install|update|delete)(?=\s|$)/g},{expand:"num"},{type:"func",match:/(?<=(^|\||\&\&|\;)\s*)[a-z_.-]+(?=\s|$)/gim},{type:"bool",match:/(?<=\s|^)(true|false)(?=\s|$)/g},{type:"oper",match:/[=(){}<>!]+/g},{type:"var",match:/(?<=\s|^)[\w_]+(?=\s*=)/g},Xn]}),Kn={};Wn(Kn,{default:()=>Jn});var Jn,Qn=Fn(()=>{Jn=[{match:/[^\[\->+.<\]\s].*/g,sub:"todo"},{type:"func",match:/\.+/g},{type:"kwd",match:/[<>]+/g},{type:"oper",match:/[+-]+/g}]}),er={};Wn(er,{default:()=>tr});var tr,nr=Fn(()=>{tr=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/#\s*include (<.*>|".*")/g,sub:[{type:"str",match:/(<|").*/g}]},{match:/asm\s*{[^}]*}/g,sub:[{type:"kwd",match:/^asm/g},{match:/[^{}]*(?=}$)/g,sub:"asm"}]},{type:"kwd",match:/\*|&|#[a-z]+\b|\b(asm|auto|double|int|struct|break|else|long|switch|case|enum|register|typedef|char|extern|return|union|const|float|short|unsigned|continue|for|signed|void|default|goto|sizeof|volatile|do|if|static|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),rr={};Wn(rr,{default:()=>or});var or,ir=Fn(()=>{or=[{match:/\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/@\w+\b|\b(and|not|only|or)\b|\b[a-z-]+(?=[^{}]*{)/g},{type:"var",match:/\b[\w-]+(?=\s*:)|(::?|\.)[\w-]+(?=[^{}]*{)/g},{type:"func",match:/#[\w-]+(?=[^{}]*{)/g},{type:"num",match:/#[\da-f]{3,8}/g},{type:"num",match:/\d+(\.\d+)?(cm|mm|in|px|pt|pc|em|ex|ch|rem|vm|vh|vmin|vmax|%)?/g,sub:[{type:"var",match:/[a-z]+|%/g}]},{match:/url\([^)]*\)/g,sub:[{type:"func",match:/url(?=\()/g},{type:"str",match:/[^()]+/g}]},{type:"func",match:/\b[a-zA-Z]\w*(?=\s*\()/g},{type:"num",match:/\b[a-z-]+\b/g}]}),sr={};Wn(sr,{default:()=>ar});var ar,ur=Fn(()=>{ar=[{expand:"strDouble"},{type:"oper",match:/,/g}]}),cr={};Wn(cr,{default:()=>lr});var lr,fr=Fn(()=>{lr=[{type:"deleted",match:/^[-<].*/gm},{type:"insert",match:/^[+>].*/gm},{type:"kwd",match:/!.*/gm},{type:"section",match:/^@@.*@@$|^\d.*|^([*-+])\1\1.*/gm}]}),pr={};Wn(pr,{default:()=>dr});var dr,hr=Fn(()=>{Zn(),dr=[{type:"kwd",match:/^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)\b/gim},...Vn]}),gr={};Wn(gr,{default:()=>mr});var mr,vr=Fn(()=>{fr(),mr=[{match:/^#.*/gm,sub:"todo"},{expand:"str"},...lr,{type:"func",match:/^(\$ )?git(\s.*)?$/gm},{type:"kwd",match:/^commit \w+$/gm}]}),yr={};Wn(yr,{default:()=>br});var br,xr=Fn(()=>{br=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\*|&|\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go|goto|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"oper",match:/[+\-*\/%&|^~=!<>.^-]+/g}]}),_r={};Wn(_r,{default:()=>Sr,name:()=>wr,properties:()=>Er,xmlElement:()=>Tr});var wr,Er,Tr,Sr,Rr=Fn(()=>{Er=`\\s*(\\s+${wr=`[${":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�"}][:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.0-9·̀-ͯ‿-⁀]*`}\\s*(=\\s*([^"']\\S*|("|')(\\\\[^]|(?!\\4)[^])*\\4?)?)?\\s*)*`,Tr={match:RegExp(`<[/!?]?${wr}${Er}[/!?]?>`,"g"),sub:[{type:"var",match:RegExp(`^<[/!?]?${wr}`,"g"),sub:[{type:"oper",match:/^<[\/!?]?/g}]},{type:"str",match:/=\s*([^"']\S*|("|')(\\[^]|(?!\2)[^])*\2?)/g,sub:[{type:"oper",match:/^=/g}]},{type:"oper",match:/[\/!?]?>/g},{type:"class",match:RegExp(wr,"g")}]},Sr=[{match:/<!--((?!-->)[^])*-->/g,sub:"todo"},{type:"class",match:/<!\[CDATA\[[\s\S]*?\]\]>/gi},Tr,{type:"str",match:RegExp(`<\\?${wr}([^?]|\\?[^?>])*\\?+>`,"g"),sub:[{type:"var",match:RegExp(`^<\\?${wr}`,"g"),sub:[{type:"oper",match:/^<\?/g}]},{type:"oper",match:/\?+>$/g}]},{type:"var",match:/&(#x?)?[\da-z]{1,8};/gi}]}),Ar={};Wn(Ar,{default:()=>Or});var Or,Ir,Lr,Nr=Fn(()=>{Rr(),Or=[{type:"class",match:/<!DOCTYPE("[^"]*"|'[^']*'|[^"'>])*>/gi,sub:[{type:"str",match:/"[^"]*"|'[^']*'/g},{type:"oper",match:/^<!|>$/g},{type:"var",match:/DOCTYPE/gi}]},{match:RegExp(`<style${Er}>((?!</style>)[^])*</style\\s*>`,"g"),sub:[{match:RegExp(`^<style${Er}>`,"g"),sub:Tr.sub},{match:RegExp(`${Tr.match}|[^]*(?=</style\\s*>$)`,"g"),sub:"css"},Tr]},{match:RegExp(`<script${Er}>((?!<\/script>)[^])*</script\\s*>`,"g"),sub:[{match:RegExp(`^<script${Er}>`,"g"),sub:Tr.sub},{match:RegExp(`${Tr.match}|[^]*(?=</script\\s*>$)`,"g"),sub:"js"},Tr]},...Sr]}),Cr=Fn(()=>{Ir=[["bash",[/#!(\/usr)?\/bin\/bash/g,500],[/\b(if|elif|then|fi|echo)\b|\$/g,10]],["html",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^\s+<!DOCTYPE\s+html/g,500]],["http",[/^(GET|HEAD|POST|PUT|DELETE|PATCH|HTTP)\b/g,500]],["js",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require)\b/g,10]],["ts",[/\b(console|await|async|function|export|import|this|class|for|let|const|map|join|require|implements|interface|namespace)\b/g,10]],["py",[/\b(def|print|class|and|or|lambda)\b/g,10]],["sql",[/\b(SELECT|INSERT|FROM)\b/g,50]],["pl",[/#!(\/usr)?\/bin\/perl/g,500],[/\b(use|print)\b|\$/g,10]],["lua",[/#!(\/usr)?\/bin\/lua/g,500]],["make",[/\b(ifneq|endif|if|elif|then|fi|echo|.PHONY|^[a-z]+ ?:$)\b|\$/gm,10]],["uri",[/https?:|mailto:|tel:|ftp:/g,30]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["diff",[/^[+><-]/gm,10],[/^@@ ?[-+,0-9 ]+ ?@@/gm,25]],["md",[/^(>|\t\*|\t\d+.)/gm,10],[/\[.*\](.*)/g,10]],["docker",[/^(FROM|ENTRYPOINT|RUN)/gm,500]],["xml",[/<\/?[a-z-]+[^\n>]*>/g,10],[/^<\?xml/g,500]],["c",[/#include\b|\bprintf\s+\(/g,100]],["rs",[/^\s+(use|fn|mut|match)\b/gm,100]],["go",[/\b(func|fmt|package)\b/g,100]],["java",[/^import\s+java/gm,500]],["asm",[/^(section|global main|extern|\t(call|mov|ret))/gm,100]],["css",[/^(@import|@page|@media|(\.|#)[a-z]+)/gm,20]],["json",[/\b(true|false|null|\{})\b|\"[^"]+\":/g,10]],["yaml",[/^(\s+)?[a-z][a-z0-9]*:/gim,10]]],Lr=e=>Ir.map(([t,...n])=>[t,n.reduce((t,[n,r])=>t+[...e.matchAll(n)].length*r,0)]).filter(([e,t])=>t>20).sort((e,t)=>t[1]-e[1])[0]?.[0]||"plain"}),kr={};Wn(kr,{default:()=>Pr});var Pr,jr=Fn(()=>{Cr(),Pr=[{type:"kwd",match:/^(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH|PRI|SEARCH)\b/gm},{expand:"str"},{type:"section",match:/\bHTTP\/[\d.]+\b/g},{expand:"num"},{type:"oper",match:/[,;:=]/g},{type:"var",match:/[a-zA-Z][\w-]*(?=:)/g},{match:/\n\n[^]*/g,sub:Lr}]}),Dr={};Wn(Dr,{default:()=>zr});var zr,Mr=Fn(()=>{zr=[{match:/(^[ \f\t\v]*)[#;].*/gm,sub:"todo"},{type:"str",match:/.*/g},{type:"var",match:/.*(?==)/g},{type:"section",match:/^\s*\[.+\]\s*$/gm},{type:"oper",match:/=/g}]}),$r={};Wn($r,{default:()=>Br});var Br,Ur=Fn(()=>{Br=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(abstract|assert|boolean|break|byte|case|catch|char|class|continue|const|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|package|private|protected|public|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|transient|try|var|void|volatile|while)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*\()/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),Fr={};Wn(Fr,{default:()=>Wr});var Wr,Hr=Fn(()=>{Wr=[{match:/\/\*\*((?!\*\/)[^])*(\*\/)?/g,sub:"jsdoc"},{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{match:/`((?!`)[^]|\\[^])*`?/g,sub:"js_template_literals"},{type:"kwd",match:/=>|\b(this|set|get|as|async|await|break|case|catch|class|const|constructor|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|if|implements|import|in|instanceof|interface|let|var|of|new|package|private|protected|public|return|static|super|switch|throw|throws|try|typeof|void|while|with|yield)\b/g},{match:/\/((?!\/)[^\r\n\\]|\\.)+\/[dgimsuy]*/g,sub:"regex"},{expand:"num"},{type:"num",match:/\b(NaN|null|undefined|[A-Z][A-Z_]*)\b/g},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z$_][\w$_]*(?=\s*((\?\.)?\s*\(|=\s*(\(?[\w,{}\[\])]+\)? =>|function\b)))/g}]}),qr={};Wn(qr,{default:()=>Yr,type:()=>Gr});var Yr,Gr,Xr=Fn(()=>{Yr=[{match:new class{exec(e){let t,n=this.lastIndex,r=t=>{for(;++n<e.length-2;)if("{"==e[n])r();else if("}"==e[n])return};for(;n<e.length;++n)if("\\"!=e[n-1]&&"$"==e[n]&&"{"==e[n+1])return t=n++,r(n),this.lastIndex=n+1,{index:t,0:e.slice(t,n+1)};return null}},sub:[{type:"kwd",match:/^\${|}$/g},{match:/(?!^\$|{)[^]+(?=}$)/g,sub:"js"}]}],Gr="str"}),Vr={};Wn(Vr,{default:()=>Zr,type:()=>Kr});var Zr,Kr,Jr=Fn(()=>{Zr=[{type:"err",match:/\b(TODO|FIXME|DEBUG|OPTIMIZE|WARNING|XXX|BUG)\b/g},{type:"class",match:/\bIDEA\b/g},{type:"insert",match:/\b(CHANGED|FIX|CHANGE)\b/g},{type:"oper",match:/\bQUESTION\b/g}],Kr="cmnt"}),Qr={};Wn(Qr,{default:()=>eo,type:()=>to});var eo,to,no=Fn(()=>{Jr(),eo=[{type:"kwd",match:/@\w+/g},{type:"class",match:/{[\w\s|<>,.@\[\]]+}/g},{type:"var",match:/\[[\w\s="']+\]/g},...Zr],to="cmnt"}),ro={};Wn(ro,{default:()=>oo});var oo,io=Fn(()=>{oo=[{type:"var",match:/("|')?[a-zA-Z]\w*\1(?=\s*:)/g},{expand:"str"},{expand:"num"},{type:"num",match:/\bnull\b/g},{type:"bool",match:/\b(true|false)\b/g}]}),so={};Wn(so,{default:()=>ao});var ao,uo=Fn(()=>{Cr(),ao=[{type:"cmnt",match:/^>.*|(=|-)\1+/gm},{type:"class",match:/\*\*((?!\*\*).)*\*\*/g},{match:/```((?!```)[^])*\n```/g,sub:e=>({type:"kwd",sub:[{match:/\n[^]*(?=```)/g,sub:e.split("\n")[0].slice(3)||Lr(e)}]})},{type:"str",match:/`[^`]*`/g},{type:"var",match:/~~((?!~~).)*~~/g},{type:"kwd",match:/_[^_]*_|\*[^*]*\*/g},{type:"kwd",match:/^\s*(\*|\d+\.)\s/gm},{type:"oper",match:/\[[^\]]*]/g},{type:"func",match:/\([^)]*\)/g}]}),co={};Wn(co,{default:()=>lo});var lo,fo=Fn(()=>{uo(),Cr(),lo=[{type:"insert",match:/(leanpub-start-insert)((?!leanpub-end-insert)[^])*(leanpub-end-insert)?/g,sub:[{type:"insert",match:/leanpub-(start|end)-insert/g},{match:/(?!leanpub-start-insert)((?!leanpub-end-insert)[^])*/g,sub:Lr}]},{type:"deleted",match:/(leanpub-start-delete)((?!leanpub-end-delete)[^])*(leanpub-end-delete)?/g,sub:[{type:"deleted",match:/leanpub-(start|end)-delete/g},{match:/(?!leanpub-start-delete)((?!leanpub-end-delete)[^])*/g,sub:Lr}]},...ao]}),po={};Wn(po,{default:()=>ho});var ho,go=Fn(()=>{ho=[{type:"cmnt",match:/^#.*/gm},{expand:"strDouble"},{expand:"num"},{type:"err",match:/\b(err(or)?|[a-z_-]*exception|warn|warning|failed|ko|invalid|not ?found|alert|fatal)\b/gi},{type:"num",match:/\b(null|undefined)\b/gi},{type:"bool",match:/\b(false|true|yes|no)\b/gi},{type:"oper",match:/\.|,/g}]}),mo={};Wn(mo,{default:()=>vo});var vo,yo=Fn(()=>{vo=[{match:/^#!.*|--(\[(=*)\[((?!--\]\2\])[^])*--\]\2\]|.*)/g,sub:"todo"},{expand:"str"},{type:"kwd",match:/\b(and|break|do|else|elseif|end|for|function|if|in|local|not|or|repeat|return|then|until|while)\b/g},{type:"bool",match:/\b(true|false|nil)\b/g},{type:"oper",match:/[+*/%^#=~<>:,.-]+/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*[({])/g}]}),bo={};Wn(bo,{default:()=>xo});var xo,_o=Fn(()=>{xo=[{match:/^\s*#.*/gm,sub:"todo"},{expand:"str"},{type:"oper",match:/[${}()]+/g},{type:"class",match:/.PHONY:/gm},{type:"section",match:/^[\w.]+:/gm},{type:"kwd",match:/\b(ifneq|endif)\b/g},{expand:"num"},{type:"var",match:/[A-Z_]+(?=\s*=)/g},{match:/^.*$/gm,sub:"bash"}]}),wo={};Wn(wo,{default:()=>Eo});var Eo,To=Fn(()=>{Eo=[{match:/#.*/g,sub:"todo"},{type:"str",match:/(["'])(\\[^]|(?!\1)[^])*\1?/g},{expand:"num"},{type:"kwd",match:/\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while|not|and|or|xor)\b/g},{type:"oper",match:/[-+*/%~!&<>|=?,]+/g},{type:"func",match:/[a-z_]+(?=\s*\()/g}]}),So={};Wn(So,{default:()=>Ro});var Ro,Ao=Fn(()=>{Ro=[{expand:"strDouble"}]}),Oo={};Wn(Oo,{default:()=>Io});var Io,Lo=Fn(()=>{Io=[{match:/#.*/g,sub:"todo"},{match:/("""|''')(\\[^]|(?!\1)[^])*\1?/g,sub:"todo"},{type:"str",match:/f("|')(\\[^]|(?!\1).)*\1?|f((["'])\4\4)(\\[^]|(?!\3)[^])*\3?/gi,sub:[{type:"var",match:/{[^{}]*}/g,sub:[{match:/(?!^{)[^]*(?=}$)/g,sub:"py"}]}]},{expand:"str"},{type:"kwd",match:/\b(and|as|assert|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\b/g},{type:"bool",match:/\b(False|True|None)\b/g},{expand:"num"},{type:"func",match:/[a-z_]+(?=\s*\()/g},{type:"oper",match:/[-/*+<>,=!&|^%]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g}]}),No={};Wn(No,{default:()=>Co,type:()=>ko});var Co,ko,Po=Fn(()=>{Co=[{match:/^(?!\/).*/gm,sub:"todo"},{type:"num",match:/\[((?!\])[^\\]|\\.)*\]/g},{type:"kwd",match:/\||\^|\$|\\.|\w+($|\r|\n)/g},{type:"var",match:/\*|\+|\{\d+,\d+\}/g}],ko="oper"}),jo={};Wn(jo,{default:()=>Do});var Do,zo=Fn(()=>{Do=[{match:/\/\/.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{expand:"num"},{type:"kwd",match:/\b(as|break|const|continue|crate|else|enum|extern|false|fn|for|if|impl|in|let|loop|match|mod|move|mut|pub|ref|return|self|Self|static|struct|super|trait|true|type|unsafe|use|where|while|async|await|dyn|abstract|become|box|do|final|macro|override|priv|typeof|unsized|virtual|yield|try)\b/g},{type:"oper",match:/[/*+:?&|%^~=!,<>.^-]+/g},{type:"class",match:/\b[A-Z][\w_]*\b/g},{type:"func",match:/[a-zA-Z_][\w_]*(?=\s*!?\s*\()/g}]}),Mo={};Wn(Mo,{default:()=>$o});var $o,Bo=Fn(()=>{$o=[{match:/--.*\n?|\/\*((?!\*\/)[^])*(\*\/)?/g,sub:"todo"},{expand:"str"},{type:"func",match:/\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/g},{type:"kwd",match:/\b(ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|kwdS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/g},{type:"num",match:/\.?\d[\d.oxa-fA-F-]*|\bNULL\b/g},{type:"bool",match:/\b(TRUE|FALSE)\b/g},{type:"oper",match:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/g},{type:"var",match:/@\S+/g}]}),Uo={};Wn(Uo,{default:()=>Fo});var Fo,Wo=Fn(()=>{Fo=[{match:/#.*/g,sub:"todo"},{type:"str",match:/("""|''')((?!\1)[^]|\\[^])*\1?/g},{expand:"str"},{type:"section",match:/^\[.+\]\s*$/gm},{type:"num",match:/\b(inf|nan)\b|\d[\d:ZT.-]*/g},{expand:"num"},{type:"bool",match:/\b(true|false)\b/g},{type:"oper",match:/[+,.=-]/g},{type:"var",match:/\w+(?= \=)/g}]}),Ho={};Wn(Ho,{default:()=>qo});var qo,Yo=Fn(()=>{Hr(),qo=[{type:"type",match:/:\s*(any|void|number|boolean|string|object|never|enum)\b/g},{type:"kwd",match:/\b(type|namespace|typedef|interface|public|private|protected|implements|declare|abstract|readonly)\b/g},...Wr]}),Go={};Wn(Go,{default:()=>Xo});var Xo,Vo=Fn(()=>{Xo=[{match:/^#.*/gm,sub:"todo"},{type:"class",match:/^\w+(?=:?)/gm},{type:"num",match:/:\d+/g},{type:"oper",match:/[:/&?]|\w+=/g},{type:"func",match:/[.\w]+@|#[\w]+$/gm},{type:"var",match:/\w+\.\w+(\.\w+)*/g}]}),Zo={};Wn(Zo,{default:()=>Ko});var Ko,Jo,Qo=Fn(()=>{Ko=[{match:/#.*/g,sub:"todo"},{expand:"str"},{type:"str",match:/(>|\|)\r?\n((\s[^\n]*)?(\r?\n|$))*/g},{type:"type",match:/!![a-z]+/g},{type:"bool",match:/\b(Yes|No)\b/g},{type:"oper",match:/[+:-]/g},{expand:"num"},{type:"var",match:/[a-zA-Z]\w*(?=:)/g}]}),ei={num:{type:"num",match:/(\.e?|\b)\d(e-|[\d.oxa-fA-F_])*(\.|\b)/g},str:{type:"str",match:/(["'])(\\[^]|(?!\1)[^\r\n\\])*\1?/g},strDouble:{type:"str",match:/"((?!")[^\r\n\\]|\\[^])*"?/g}},ti=(Jo={"./languages/asm.js":()=>Promise.resolve().then(()=>(Yn(),Hn)),"./languages/bash.js":()=>Promise.resolve().then(()=>(Zn(),Gn)),"./languages/bf.js":()=>Promise.resolve().then(()=>(Qn(),Kn)),"./languages/c.js":()=>Promise.resolve().then(()=>(nr(),er)),"./languages/css.js":()=>Promise.resolve().then(()=>(ir(),rr)),"./languages/csv.js":()=>Promise.resolve().then(()=>(ur(),sr)),"./languages/diff.js":()=>Promise.resolve().then(()=>(fr(),cr)),"./languages/docker.js":()=>Promise.resolve().then(()=>(hr(),pr)),"./languages/git.js":()=>Promise.resolve().then(()=>(vr(),gr)),"./languages/go.js":()=>Promise.resolve().then(()=>(xr(),yr)),"./languages/html.js":()=>Promise.resolve().then(()=>(Nr(),Ar)),"./languages/http.js":()=>Promise.resolve().then(()=>(jr(),kr)),"./languages/ini.js":()=>Promise.resolve().then(()=>(Mr(),Dr)),"./languages/java.js":()=>Promise.resolve().then(()=>(Ur(),$r)),"./languages/js.js":()=>Promise.resolve().then(()=>(Hr(),Fr)),"./languages/js_template_literals.js":()=>Promise.resolve().then(()=>(Xr(),qr)),"./languages/jsdoc.js":()=>Promise.resolve().then(()=>(no(),Qr)),"./languages/json.js":()=>Promise.resolve().then(()=>(io(),ro)),"./languages/leanpub-md.js":()=>Promise.resolve().then(()=>(fo(),co)),"./languages/log.js":()=>Promise.resolve().then(()=>(go(),po)),"./languages/lua.js":()=>Promise.resolve().then(()=>(yo(),mo)),"./languages/make.js":()=>Promise.resolve().then(()=>(_o(),bo)),"./languages/md.js":()=>Promise.resolve().then(()=>(uo(),so)),"./languages/pl.js":()=>Promise.resolve().then(()=>(To(),wo)),"./languages/plain.js":()=>Promise.resolve().then(()=>(Ao(),So)),"./languages/py.js":()=>Promise.resolve().then(()=>(Lo(),Oo)),"./languages/regex.js":()=>Promise.resolve().then(()=>(Po(),No)),"./languages/rs.js":()=>Promise.resolve().then(()=>(zo(),jo)),"./languages/sql.js":()=>Promise.resolve().then(()=>(Bo(),Mo)),"./languages/todo.js":()=>Promise.resolve().then(()=>(Jr(),Vr)),"./languages/toml.js":()=>Promise.resolve().then(()=>(Wo(),Uo)),"./languages/ts.js":()=>Promise.resolve().then(()=>(Yo(),Ho)),"./languages/uri.js":()=>Promise.resolve().then(()=>(Vo(),Go)),"./languages/xml.js":()=>Promise.resolve().then(()=>(Rr(),_r)),"./languages/yaml.js":()=>Promise.resolve().then(()=>(Qo(),Zo))},e=>{var t=Jo[e];if(t)return t();throw new Error("Module not found in bundle: "+e)}),ni={};async function ri(e,t,n){try{let r,o,i,s={},a=[],u=0,c="string"==typeof t?await(ni[t]??(ni[t]=ti(`./languages/${t}.js`))):t,l=[..."string"==typeof t?c.default:t.sub];for(;u<e.length;){for(s.index=null,r=l.length;r-- >0;){if(o=l[r].expand?ei[l[r].expand]:l[r],void 0===a[r]||a[r].match.index<u){if(o.match.lastIndex=u,i=o.match.exec(e),null===i){l.splice(r,1),a.splice(r,1);continue}a[r]={match:i,lastIndex:o.match.lastIndex}}a[r].match[0]&&(a[r].match.index<=s.index||null===s.index)&&(s={part:o,index:a[r].match.index,match:a[r].match[0],end:a[r].lastIndex})}if(null===s.index)break;n(e.slice(u,s.index),c.type),u=s.end,s.part.sub?await ri(s.match,"string"==typeof s.part.sub?s.part.sub:"function"==typeof s.part.sub?s.part.sub(s.match):s.part,n):n(s.match,s.part.type)}n(e.slice(u,e.length),c.type)}catch{n(e)}}async function oi(e,t,n=!0,r={}){let o="";return await ri(e,t,(e,t)=>o+=((e,t)=>t?`<span class="shj-syn-${t}">${e}</span>`:e)(((e="")=>e.replaceAll("&","&#38;").replaceAll?.("<","&lt;").replaceAll?.(">","&gt;"))(e),t)),n?`<div><div class="shj-numbers">${"<div></div>".repeat(!r.hideLineNumbers&&e.split("\n").length)}</div><div>${o}</div></div>`:o}var ii,si,ai=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},ui=kn.div(ci||(ci=ai(["\n position: relative;\n display: block;\n flex-direction: row;\n user-select: none;\n"],["\n position: relative;\n display: block;\n flex-direction: row;\n user-select: none;\n"])));!function(e){e[e.HEADLINE_1=0]="HEADLINE_1",e[e.HEADLINE_2=1]="HEADLINE_2",e[e.HEADLINE_3=2]="HEADLINE_3",e[e.HEADLINE_4=3]="HEADLINE_4",e[e.HEADLINE_5=4]="HEADLINE_5",e[e.HEADLINE_6=5]="HEADLINE_6",e[e.BODY_1=6]="BODY_1",e[e.BODY_2=7]="BODY_2"}(ii||(ii={})),function(e){e[e.BOLD=0]="BOLD",e[e.UNDERLINE=1]="UNDERLINE",e[e.LINE_THRONG=2]="LINE_THRONG",e[e.ITALIC=3]="ITALIC"}(si||(si={}));var ci,li,fi,pi,di,hi,gi,mi=function(){return(0,V.jsx)("svg",{width:"7",height:"7",viewBox:"0 0 7 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,V.jsx)("rect",{x:"0.5",y:"0.5",width:"6",height:"6",rx:"3",fill:"#000000",stroke:"black"})})},vi=(0,V.jsx)("svg",{width:"7",height:"7",viewBox:"0 0 7 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,V.jsx)("rect",{x:"0.5",y:"0.5",width:"6",height:"6",rx:"3",stroke:"black"})}),yi=kn.div(li||(li=ai(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 4px;\n padding-bottom: 4px;\n user-select: none;\n white-space: pre-line;\n &.text-"," {\n --font-size: 96px;\n --line-height: 112px;\n }\n &.text-"," {\n --font-size: 60px;\n --line-height: 70px;\n }\n &.text-"," {\n --font-size: 48px;\n --line-height: 56px;\n }\n &.text-"," {\n --font-size: 34px;\n --line-height: 40px;\n }\n &.text-"," {\n --font-size: 24px;\n --line-height: 28px;\n }\n &.text-"," {\n --font-size: 20px;\n --line-height: 23px;\n }\n &.text-"," {\n --font-size: 14px;\n --line-height: 24px;\n }\n &.text-",' {\n --font-size: 12px;\n --line-height: 20px;\n }\n font-size: var(--font-size);\n > .bullet {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n max-height: var(--line-height);\n user-select: none;\n }\n > .content {\n display: inline-block;\n flex-direction: row;\n justify-content: start;\n align-items: center;\n flex: 1;\n font-weight: 400;\n user-select: text;\n min-height: var(--line-height);\n line-height: var(--line-height);\n > span:first-child:empty::before {\n content: " ";\n }\n > span {\n &.S'," {\n font-weight: bold;\n }\n &.S"," {\n font-style: italic;\n }\n &.S"," {\n text-decoration: underline;\n }\n &.S"," {\n text-decoration: line-through;\n }\n &.S",".S"," {\n text-decoration: underline line-through;\n }\n }\n }\n"],["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 4px;\n padding-bottom: 4px;\n user-select: none;\n white-space: pre-line;\n &.text-"," {\n --font-size: 96px;\n --line-height: 112px;\n }\n &.text-"," {\n --font-size: 60px;\n --line-height: 70px;\n }\n &.text-"," {\n --font-size: 48px;\n --line-height: 56px;\n }\n &.text-"," {\n --font-size: 34px;\n --line-height: 40px;\n }\n &.text-"," {\n --font-size: 24px;\n --line-height: 28px;\n }\n &.text-"," {\n --font-size: 20px;\n --line-height: 23px;\n }\n &.text-"," {\n --font-size: 14px;\n --line-height: 24px;\n }\n &.text-",' {\n --font-size: 12px;\n --line-height: 20px;\n }\n font-size: var(--font-size);\n > .bullet {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n max-height: var(--line-height);\n user-select: none;\n }\n > .content {\n display: inline-block;\n flex-direction: row;\n justify-content: start;\n align-items: center;\n flex: 1;\n font-weight: 400;\n user-select: text;\n min-height: var(--line-height);\n line-height: var(--line-height);\n > span:first-child:empty::before {\n content: " ";\n }\n > span {\n &.S'," {\n font-weight: bold;\n }\n &.S"," {\n font-style: italic;\n }\n &.S"," {\n text-decoration: underline;\n }\n &.S"," {\n text-decoration: line-through;\n }\n &.S",".S"," {\n text-decoration: underline line-through;\n }\n }\n }\n"])),ii.HEADLINE_1,ii.HEADLINE_2,ii.HEADLINE_3,ii.HEADLINE_4,ii.HEADLINE_5,ii.HEADLINE_6,ii.BODY_1,ii.BODY_2,si.BOLD,si.ITALIC,si.UNDERLINE,si.LINE_THRONG,si.UNDERLINE,si.LINE_THRONG),bi=kn.div(fi||(fi=ai(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding: 2px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: center;\n align-items: center;\n padding-top: 10px;\n padding-bottom: 10px;\n border-radius: 8px;\n box-sizing: border-box;\n &:hover {\n background-color: transparent;\n }\n > div {\n display: flex;\n width: 100%;\n padding: 4px;\n border-radius: 8px;\n border: 1px solid #ddd;\n background-color: #fcfcfc;\n position: relative;\n > .image {\n width: 100%;\n border-radius: 4px;\n height: auto;\n }\n > .place-holder {\n min-width: 150px;\n min-height: 150px;\n min-width: 100%;\n border-radius: 4px;\n padding: 10px;\n box-sizing: border-box;\n color: #999;\n }\n }\n &.size-2 > div {\n max-width: calc(100% / 2);\n }\n &.size-3 > div {\n max-width: calc(100% / 3);\n }\n &.size-4 > div {\n max-width: calc(100% / 4);\n }\n &.size-5 > div {\n max-width: calc(100% / 5);\n }\n &.align-left {\n justify-content: left;\n }\n &.align-right > div {\n justify-content: right;\n }\n"],["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding: 2px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: center;\n align-items: center;\n padding-top: 10px;\n padding-bottom: 10px;\n border-radius: 8px;\n box-sizing: border-box;\n &:hover {\n background-color: transparent;\n }\n > div {\n display: flex;\n width: 100%;\n padding: 4px;\n border-radius: 8px;\n border: 1px solid #ddd;\n background-color: #fcfcfc;\n position: relative;\n > .image {\n width: 100%;\n border-radius: 4px;\n height: auto;\n }\n > .place-holder {\n min-width: 150px;\n min-height: 150px;\n min-width: 100%;\n border-radius: 4px;\n padding: 10px;\n box-sizing: border-box;\n color: #999;\n }\n }\n &.size-2 > div {\n max-width: calc(100% / 2);\n }\n &.size-3 > div {\n max-width: calc(100% / 3);\n }\n &.size-4 > div {\n max-width: calc(100% / 4);\n }\n &.size-5 > div {\n max-width: calc(100% / 5);\n }\n &.align-left {\n justify-content: left;\n }\n &.align-right > div {\n justify-content: right;\n }\n"]))),xi=kn.div(pi||(pi=ai(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 4px;\n padding-bottom: 4px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: 22px;\n justify-content: center;\n align-items: center;\n > .line {\n width: 100%;\n background-color: #eee;\n height: 2px;\n }\n"],["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 4px;\n padding-bottom: 4px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: 22px;\n justify-content: center;\n align-items: center;\n > .line {\n width: 100%;\n background-color: #eee;\n height: 2px;\n }\n"]))),_i=kn.div(di||(di=ai(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding: 2px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: center;\n align-items: center;\n padding: 10px;\n border-radius: 8px;\n box-sizing: border-box;\n &:hover {\n background-color: transparent;\n }\n > div {\n width: 100%;\n padding: 4px;\n border-radius: 8px;\n border: 1px solid #ddd;\n background-color: #fcfcfc;\n > .iframe {\n min-height: 150px;\n min-width: 100%;\n max-width: 100%;\n border-radius: 4px;\n aspect-ratio: 1.7;\n border: 0px;\n }\n > .place-holder {\n min-width: 100%;\n border-radius: 4px;\n padding: 10px;\n box-sizing: border-box;\n color: #999;\n margin: 0px !important;\n box-shadow: none;\n font-family: monospace;\n font-size: 14px;\n background: transparent;\n user-select: text;\n }\n }\n"],["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding: 2px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: center;\n align-items: center;\n padding: 10px;\n border-radius: 8px;\n box-sizing: border-box;\n &:hover {\n background-color: transparent;\n }\n > div {\n width: 100%;\n padding: 4px;\n border-radius: 8px;\n border: 1px solid #ddd;\n background-color: #fcfcfc;\n > .iframe {\n min-height: 150px;\n min-width: 100%;\n max-width: 100%;\n border-radius: 4px;\n aspect-ratio: 1.7;\n border: 0px;\n }\n > .place-holder {\n min-width: 100%;\n border-radius: 4px;\n padding: 10px;\n box-sizing: border-box;\n color: #999;\n margin: 0px !important;\n box-shadow: none;\n font-family: monospace;\n font-size: 14px;\n background: transparent;\n user-select: text;\n }\n }\n"]))),wi=function(e){var t=e.code,n=(0,U.useRef)(null);return(0,U.useLayoutEffect)(function(){var e=n.current;e&&(t?async function(e,t=e.className.match(/shj-lang-([\w-]+)/)?.[1],n,r){let o=e.textContent;n??(n=("CODE"==e.tagName?"in":o.split("\n").length<2?"one":"multi")+"line"),e.dataset.lang=t,e.className=`${[...e.classList].filter(e=>!e.startsWith("shj-")).join(" ")} shj-lang-${t} shj-${n}`,e.innerHTML=await oi(o,t,"multiline"==n,r)}(e,"js"):e.innerText="Code is not set.")},[t]),(0,V.jsx)(_i,{children:(0,V.jsxs)("div",{children:[(0,V.jsx)("link",{rel:"stylesheet",href:"https://cdn.jsdelivr.net/gh/speed-highlight/core/dist/themes/github-light.css"}),(0,V.jsx)("div",{ref:n,className:"place-holder header shj-lang-js shj-multiline fira",children:!!t&&t})]})})},Ei=kn.div(hi||(hi=ai(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding: 2px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: center;\n align-items: center;\n padding: 10px;\n border-radius: 8px;\n box-sizing: border-box;\n &:hover {\n background-color: transparent;\n }\n > div {\n background-color: #fff;\n width: 100%;\n padding: 4px;\n border-radius: 8px;\n border: 1px solid #000;\n display: flex;\n > .iframe {\n min-height: 150px;\n min-width: 100%;\n max-width: 100%;\n border-radius: 4px;\n aspect-ratio: 1.7;\n border: 0px;\n }\n > .place-holder {\n min-width: 150px;\n min-height: 150px;\n min-width: 100%;\n border-radius: 4px;\n padding: 10px;\n box-sizing: border-box;\n color: #999;\n }\n }\n"],["\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: start;\n padding: 2px;\n user-select: none;\n white-space: pre-line;\n width: 100%;\n height: auto;\n justify-content: center;\n align-items: center;\n padding: 10px;\n border-radius: 8px;\n box-sizing: border-box;\n &:hover {\n background-color: transparent;\n }\n > div {\n background-color: #fff;\n width: 100%;\n padding: 4px;\n border-radius: 8px;\n border: 1px solid #000;\n display: flex;\n > .iframe {\n min-height: 150px;\n min-width: 100%;\n max-width: 100%;\n border-radius: 4px;\n aspect-ratio: 1.7;\n border: 0px;\n }\n > .place-holder {\n min-width: 150px;\n min-height: 150px;\n min-width: 100%;\n border-radius: 4px;\n padding: 10px;\n box-sizing: border-box;\n color: #999;\n }\n }\n"]))),Ti=kn.div(gi||(gi=ai(["\n position: relative;\n display: flex;\n flex-direction: column;\n transition: all 250ms;\n width: 100%;\n min-height: 100%;\n > .tiptap {\n position: relative;\n display: flex;\n transition: all 250ms;\n flex: auto;\n > div {\n position: relative;\n display: block;\n transition: all 250ms;\n flex: auto;\n font-size: 14px;\n color: #32302c;\n caret-color: #000;\n &:first-child > * {\n padding-top: 8px;\n padding-bottom: 8px;\n margin: 0;\n }\n &:first-child > div {\n display: flex;\n flex-direction: row;\n min-height: fit-content;\n }\n\n .youtube-wrapper {\n border: 1px solid #ddd;\n padding: 4px;\n border-radius: 8px;\n width: 100%;\n height: auto;\n display: flex;\n &.empty {\n padding: 10px;\n font-size: 12px;\n color: #999;\n }\n &.selected-node {\n border: 1px solid #0094e8;\n }\n > iframe {\n width: 100%;\n aspect-ratio: 1.85/1;\n border-radius: 4px;\n }\n &.selected-node {\n border: 1px solid #333;\n }\n &.size-2 {\n max-width: calc(100% / 2);\n }\n &.size-3 {\n max-width: calc(100% / 3);\n }\n &.size-4 {\n max-width: calc(100% / 4);\n }\n &.size-5 {\n max-width: calc(100% / 5);\n }\n }\n\n .image-wrapper {\n border: 1px solid #ddd;\n padding: 4px;\n border-radius: 8px;\n width: 100%;\n height: auto;\n display: flex;\n &.empty {\n padding: 10px;\n font-size: 12px;\n color: #999;\n }\n > img {\n width: 100%;\n border-radius: 4px;\n }\n &.selected-node {\n border: 1px solid#0094E8;\n }\n &.size-2 {\n max-width: calc(100% / 2);\n }\n &.size-3 {\n max-width: calc(100% / 3);\n }\n &.size-4 {\n max-width: calc(100% / 4);\n }\n &.size-5 {\n max-width: calc(100% / 5);\n }\n &.align-left {\n justify-content: left;\n }\n &.align-right > div {\n justify-content: right;\n }\n }\n\n h1,\n h2,\n h3,\n h4 {\n display: inline-block;\n padding-top: 20px !important;\n padding-bottom: 8px;\n font-weight: normal;\n }\n\n h5,\n h6 {\n display: inline-block;\n padding-top: 8px !important;\n padding-bottom: 8px;\n font-weight: normal;\n }\n\n p.is-editor-empty:first-child:before {\n color: #999;\n content: attr(data-placeholder);\n float: left;\n height: 0;\n pointer-events: none;\n }\n p {\n font-size: 15px;\n line-height: 24px;\n padding-top: 2px;\n padding-bottom: 2px;\n margin: 0;\n }\n h1 {\n font-size: 96px;\n }\n h2 {\n font-size: 60px;\n }\n h3 {\n font-size: 48px;\n }\n h4 {\n font-size: 34px;\n }\n h5 {\n font-size: 24px;\n }\n h6 {\n font-size: 24px;\n }\n a {\n font-weight: 500;\n text-decoration: underline;\n cursor: pointer;\n }\n ul {\n padding-left: 16px;\n }\n ul {\n list-style-type: disc;\n ul {\n list-style-type: circle;\n ul {\n list-style-type: square;\n }\n }\n }\n }\n > div > .drag {\n padding-right: 20px;\n > .menu {\n width: 24px;\n height: 24px;\n display: flex;\n flex-direction: row;\n background: #fff;\n border: 1px solid #f0f0f0;\n box-shadow: rgba(0, 0, 0, 0.07) 0px 5px 30px 0px;\n padding: 8px;\n border-radius: 16px;\n gap: 6px;\n }\n }\n }\n .drag-handle {\n width: 20px;\n height: 20px;\n }\n .prosemirror-dropcursor-block {\n background-color: #ddd !important;\n height: 2px !important;\n border-radius: 2px;\n }\n"],["\n position: relative;\n display: flex;\n flex-direction: column;\n transition: all 250ms;\n width: 100%;\n min-height: 100%;\n > .tiptap {\n position: relative;\n display: flex;\n transition: all 250ms;\n flex: auto;\n > div {\n position: relative;\n display: block;\n transition: all 250ms;\n flex: auto;\n font-size: 14px;\n color: #32302c;\n caret-color: #000;\n &:first-child > * {\n padding-top: 8px;\n padding-bottom: 8px;\n margin: 0;\n }\n &:first-child > div {\n display: flex;\n flex-direction: row;\n min-height: fit-content;\n }\n\n .youtube-wrapper {\n border: 1px solid #ddd;\n padding: 4px;\n border-radius: 8px;\n width: 100%;\n height: auto;\n display: flex;\n &.empty {\n padding: 10px;\n font-size: 12px;\n color: #999;\n }\n &.selected-node {\n border: 1px solid #0094e8;\n }\n > iframe {\n width: 100%;\n aspect-ratio: 1.85/1;\n border-radius: 4px;\n }\n &.selected-node {\n border: 1px solid #333;\n }\n &.size-2 {\n max-width: calc(100% / 2);\n }\n &.size-3 {\n max-width: calc(100% / 3);\n }\n &.size-4 {\n max-width: calc(100% / 4);\n }\n &.size-5 {\n max-width: calc(100% / 5);\n }\n }\n\n .image-wrapper {\n border: 1px solid #ddd;\n padding: 4px;\n border-radius: 8px;\n width: 100%;\n height: auto;\n display: flex;\n &.empty {\n padding: 10px;\n font-size: 12px;\n color: #999;\n }\n > img {\n width: 100%;\n border-radius: 4px;\n }\n &.selected-node {\n border: 1px solid#0094E8;\n }\n &.size-2 {\n max-width: calc(100% / 2);\n }\n &.size-3 {\n max-width: calc(100% / 3);\n }\n &.size-4 {\n max-width: calc(100% / 4);\n }\n &.size-5 {\n max-width: calc(100% / 5);\n }\n &.align-left {\n justify-content: left;\n }\n &.align-right > div {\n justify-content: right;\n }\n }\n\n h1,\n h2,\n h3,\n h4 {\n display: inline-block;\n padding-top: 20px !important;\n padding-bottom: 8px;\n font-weight: normal;\n }\n\n h5,\n h6 {\n display: inline-block;\n padding-top: 8px !important;\n padding-bottom: 8px;\n font-weight: normal;\n }\n\n p.is-editor-empty:first-child:before {\n color: #999;\n content: attr(data-placeholder);\n float: left;\n height: 0;\n pointer-events: none;\n }\n p {\n font-size: 15px;\n line-height: 24px;\n padding-top: 2px;\n padding-bottom: 2px;\n margin: 0;\n }\n h1 {\n font-size: 96px;\n }\n h2 {\n font-size: 60px;\n }\n h3 {\n font-size: 48px;\n }\n h4 {\n font-size: 34px;\n }\n h5 {\n font-size: 24px;\n }\n h6 {\n font-size: 24px;\n }\n a {\n font-weight: 500;\n text-decoration: underline;\n cursor: pointer;\n }\n ul {\n padding-left: 16px;\n }\n ul {\n list-style-type: disc;\n ul {\n list-style-type: circle;\n ul {\n list-style-type: square;\n }\n }\n }\n }\n > div > .drag {\n padding-right: 20px;\n > .menu {\n width: 24px;\n height: 24px;\n display: flex;\n flex-direction: row;\n background: #fff;\n border: 1px solid #f0f0f0;\n box-shadow: rgba(0, 0, 0, 0.07) 0px 5px 30px 0px;\n padding: 8px;\n border-radius: 16px;\n gap: 6px;\n }\n }\n }\n .drag-handle {\n width: 20px;\n height: 20px;\n }\n .prosemirror-dropcursor-block {\n background-color: #ddd !important;\n height: 2px !important;\n border-radius: 2px;\n }\n"]))),Si=function(e,t){};const Ri={canPush:Si,canRemove:Si,canRemoveAll:Si,canPushAt:function(e,t,n){},canRemoveAt:function(e,t){},canMath:function(e,t){},canCall:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},isType:function(e){return e},isArrayType:function(e){return e}};var Ai=a(514),Oi=a(72),Ii=a.n(Oi),Li=a(825),Ni=a.n(Li),Ci=a(659),ki=a.n(Ci),Pi=a(56),ji=a.n(Pi),Di=a(540),zi=a.n(Di),Mi=a(113),$i=a.n(Mi),Bi=a(983),Ui={};Ui.styleTagTransform=$i(),Ui.setAttributes=ji(),Ui.insert=ki().bind(null,"head"),Ui.domAPI=Ni(),Ui.insertStyleElement=zi(),Ii()(Bi.Ay,Ui);const Fi=Bi.Ay&&Bi.Ay.locals?Bi.Ay.locals:void 0;function Wi(){return"undefined"!=typeof window}function Hi(e){return Gi(e)?(e.nodeName||"").toLowerCase():"#document"}function qi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Yi(e){var t;return null==(t=(Gi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Gi(e){return!!Wi()&&(e instanceof Node||e instanceof qi(e).Node)}function Xi(e){return!!Wi()&&(e instanceof Element||e instanceof qi(e).Element)}function Vi(e){return!!Wi()&&(e instanceof HTMLElement||e instanceof qi(e).HTMLElement)}function Zi(e){return!(!Wi()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof qi(e).ShadowRoot)}const Ki=new Set(["inline","contents"]);function Ji(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ls(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ki.has(o)}const Qi=new Set(["table","td","th"]);function es(e){return Qi.has(Hi(e))}const ts=[":popover-open",":modal"];function ns(e){return ts.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const rs=["transform","translate","scale","rotate","perspective"],os=["transform","translate","scale","rotate","perspective","filter"],is=["paint","layout","strict","content"];function ss(e){const t=as(),n=Xi(e)?ls(e):e;return rs.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||os.some(e=>(n.willChange||"").includes(e))||is.some(e=>(n.contain||"").includes(e))}function as(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const us=new Set(["html","body","#document"]);function cs(e){return us.has(Hi(e))}function ls(e){return qi(e).getComputedStyle(e)}function fs(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ps(e){if("html"===Hi(e))return e;const t=e.assignedSlot||e.parentNode||Zi(e)&&e.host||Yi(e);return Zi(t)?t.host:t}function ds(e){const t=ps(e);return cs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vi(t)&&Ji(t)?t:ds(t)}function hs(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ds(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=qi(o);if(i){const e=gs(s);return t.concat(s,s.visualViewport||[],Ji(o)?o:[],e&&n?hs(e):[])}return t.concat(o,hs(o,[],n))}function gs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ms(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Zi(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function vs(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function ys(e){return(null==e?void 0:e.ownerDocument)||document}function bs(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function xs(e){return"composedPath"in e?e.composedPath()[0]:e.target}const _s=Math.min,ws=Math.max,Es=Math.round,Ts=(Math.floor,e=>({x:e,y:e}));function Ss(e,t,n){return ws(e,_s(t,n))}function Rs(e,t){return"function"==typeof e?e(t):e}function As(e){return e.split("-")[0]}function Os(e){return e.split("-")[1]}function Is(e){return"x"===e?"y":"x"}const Ls=new Set(["top","bottom"]);function Ns(e){return Ls.has(As(e))?"y":"x"}function Cs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ks(e,t,n){let{reference:r,floating:o}=e;const i=Ns(t),s=function(e){return Is(Ns(e))}(t),a="y"===s?"height":"width",u=As(t),c="y"===i,l=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let d;switch(u){case"top":d={x:l,y:r.y-o.height};break;case"bottom":d={x:l,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-o.width,y:f};break;default:d={x:r.x,y:r.y}}switch(Os(t)){case"start":d[s]-=p*(n&&c?-1:1);break;case"end":d[s]+=p*(n&&c?-1:1)}return d}const Ps=new Set(["left","top"]);function js(e){const t=ls(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Vi(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Es(n)!==i||Es(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ds(e){return Xi(e)?e:e.contextElement}function zs(e){const t=Ds(e);if(!Vi(t))return Ts(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=js(t);let s=(i?Es(n.width):n.width)/r,a=(i?Es(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Ms=Ts(0);function $s(e){const t=qi(e);return as()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ms}function Bs(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ds(e);let s=Ts(1);t&&(r?Xi(r)&&(s=zs(r)):s=zs(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==qi(e))&&t}(i,n,r)?$s(i):Ts(0);let u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,l=o.width/s.x,f=o.height/s.y;if(i){const e=qi(i),t=r&&Xi(r)?qi(r):r;let n=e,o=gs(n);for(;o&&r&&t!==n;){const e=zs(o),t=o.getBoundingClientRect(),r=ls(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,l*=e.x,f*=e.y,u+=i,c+=s,n=qi(o),o=gs(n)}}return Cs({width:l,height:f,x:u,y:c})}function Us(e,t){const n=fs(e).scrollLeft;return t?t.left+n:Bs(Yi(e)).left+n}function Fs(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Us(e,n),y:n.top+t.scrollTop}}const Ws=new Set(["absolute","fixed"]);function Hs(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=qi(e),r=Yi(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const e=as();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}const c=Us(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:u}}(e,n);else if("document"===t)r=function(e){const t=Yi(e),n=fs(e),r=e.ownerDocument.body,o=ws(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ws(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Us(e);const a=-n.scrollTop;return"rtl"===ls(r).direction&&(s+=ws(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Yi(e));else if(Xi(t))r=function(e,t){const n=Bs(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Vi(e)?zs(e):Ts(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=$s(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Cs(r)}function qs(e,t){const n=ps(e);return!(n===t||!Xi(n)||cs(n))&&("fixed"===ls(n).position||qs(n,t))}function Ys(e,t,n){const r=Vi(t),o=Yi(t),i="fixed"===n,s=Bs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=Ts(0);function c(){u.x=Us(o)}if(r||!r&&!i)if(("body"!==Hi(t)||Ji(o))&&(a=fs(t)),r){const e=Bs(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const l=!o||r||i?Ts(0):Fs(o,a);return{x:s.left+a.scrollLeft-u.x-l.x,y:s.top+a.scrollTop-u.y-l.y,width:s.width,height:s.height}}function Gs(e){return"static"===ls(e).position}function Xs(e,t){if(!Vi(e)||"fixed"===ls(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Yi(e)===n&&(n=n.ownerDocument.body),n}function Vs(e,t){const n=qi(e);if(ns(e))return n;if(!Vi(e)){let t=ps(e);for(;t&&!cs(t);){if(Xi(t)&&!Gs(t))return t;t=ps(t)}return n}let r=Xs(e,t);for(;r&&es(r)&&Gs(r);)r=Xs(r,t);return r&&cs(r)&&Gs(r)&&!ss(r)?n:r||function(e){let t=ps(e);for(;Vi(t)&&!cs(t);){if(ss(t))return t;if(ns(t))return null;t=ps(t)}return null}(e)||n}const Zs={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Yi(r),a=!!t&&ns(t.floating);if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=Ts(1);const l=Ts(0),f=Vi(r);if((f||!f&&!i)&&(("body"!==Hi(r)||Ji(s))&&(u=fs(r)),Vi(r))){const e=Bs(r);c=zs(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const p=!s||f||i?Ts(0):Fs(s,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+l.x+p.x,y:n.y*c.y-u.scrollTop*c.y+l.y+p.y}},getDocumentElement:Yi,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ns(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=hs(e,[],!1).filter(e=>Xi(e)&&"body"!==Hi(e)),o=null;const i="fixed"===ls(e).position;let s=i?ps(e):e;for(;Xi(s)&&!cs(s);){const t=ls(s),n=ss(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Ws.has(o.position)||Ji(s)&&!n&&qs(e,s))?r=r.filter(e=>e!==s):o=t,s=ps(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce((e,n)=>{const r=Hs(t,n,o);return e.top=ws(r.top,e.top),e.right=_s(r.right,e.right),e.bottom=_s(r.bottom,e.bottom),e.left=ws(r.left,e.left),e},Hs(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Vs,getElementRects:async function(e){const t=this.getOffsetParent||Vs,n=this.getDimensions,r=await n(e.floating);return{reference:Ys(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=js(e);return{width:t,height:n}},getScale:zs,isElement:Xi,isRTL:function(e){return"rtl"===ls(e).direction}},Ks=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=As(n),a=Os(n),u="y"===Ns(n),c=Ps.has(s)?-1:1,l=i&&u?-1:1,f=Rs(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(d="end"===a?-1*h:h),u?{x:d*l,y:p*c}:{x:p*c,y:d*l}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},Js=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=Rs(e,t),c={x:n,y:r},l=await async function(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=Rs(t,e),h=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(d),g=a[p?"floating"===f?"reference":"floating":f],m=Cs(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:u})),v="floating"===f?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=Cs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:u}):v);return{top:(m.top-x.top+h.top)/b.y,bottom:(x.bottom-m.bottom+h.bottom)/b.y,left:(m.left-x.left+h.left)/b.x,right:(x.right-m.right+h.right)/b.x}}(t,u),f=Ns(As(o)),p=Is(f);let d=c[p],h=c[f];if(i){const e="y"===p?"bottom":"right";d=Ss(d+l["y"===p?"top":"left"],d,d-l[e])}if(s){const e="y"===f?"bottom":"right";h=Ss(h+l["y"===f?"top":"left"],h,h-l[e])}const g=a.fn({...t,[p]:d,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[f]:s}}}}}},Qs=(e,t,n)=>{const r=new Map,o={platform:Zs,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),u=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:f}=ks(c,r,u),p=r,d={},h=0;for(let n=0;n<a.length;n++){const{name:i,fn:g}=a[n],{x:m,y:v,data:y,reset:b}=await g({x:l,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:d,rects:c,platform:s,elements:{reference:e,floating:t}});l=null!=m?m:l,f=null!=v?v:f,d={...d,[i]:{...d[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:f}=ks(c,p,u))),n=-1)}return{x:l,y:f,placement:p,strategy:o,middlewareData:d}})(e,t,{...o,platform:i})};var ea="undefined"!=typeof document?U.useLayoutEffect:function(){};function ta(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ta(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||ta(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function na(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ra(e,t){const n=na(e);return Math.round(t*n)/n}function oa(e){const t=U.useRef(e);return ea(()=>{t.current=e}),t}const ia=(e,t)=>({...Ks(e),options:[e,t]}),sa=(e,t)=>({...Js(e),options:[e,t]}),aa={...F},ua=aa.useInsertionEffect||(e=>e());function ca(e){const t=U.useRef(()=>{});return ua(()=>{t.current=e}),U.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var la="undefined"!=typeof document?U.useLayoutEffect:U.useEffect;let fa=!1,pa=0;const da=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+pa++,ha=aa.useId||function(){const[e,t]=U.useState(()=>fa?da():void 0);return la(()=>{null==e&&t(da())},[]),U.useEffect(()=>{fa=!0},[]),e};const ga=U.createContext(null),ma=U.createContext(null),va=()=>{var e;return(null==(e=U.useContext(ga))?void 0:e.id)||null},ya=()=>U.useContext(ma);function ba(e){return"data-floating-ui-"+e}function xa(e){const t=(0,U.useRef)(e);return la(()=>{t.current=e}),t}const _a=ba("safe-polygon");function wa(e,t,n){return n&&!vs(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Ea(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}const Ta="data-floating-ui-focusable";function Sa(e){return Vi(e.target)&&"BUTTON"===e.target.tagName}function Ra(e){return function(e){return Vi(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}(e)}const Aa={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Oa={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ia=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function La(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:u=!0,outsidePressEvent:c="pointerdown",referencePress:l=!1,referencePressEvent:f="pointerdown",ancestorScroll:p=!1,bubbles:d,capture:h}=t,g=ya(),m=ca("function"==typeof u?u:()=>!1),v="function"==typeof u?m:u,y=U.useRef(!1),b=U.useRef(!1),{escapeKey:x,outsidePress:_}=Ia(d),{escapeKey:w,outsidePress:E}=Ia(h),T=U.useRef(!1),S=ca(e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(T.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,u=g?Ea(g.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),u.length>0)){let e=!0;if(u.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),R=ca(e=>{var t;const n=()=>{var t;S(e),null==(t=xs(e))||t.removeEventListener("keydown",n)};null==(t=xs(e))||t.addEventListener("keydown",n)}),A=ca(e=>{var t;const n=y.current;y.current=!1;const s=b.current;if(b.current=!1,"click"===c&&s)return;if(n)return;if("function"==typeof v&&!v(e))return;const a=xs(e),u="["+ba("inert")+"]",l=ys(o.floating).querySelectorAll(u);let f=Xi(a)?a:null;for(;f&&!cs(f);){const e=ps(f);if(cs(e)||!Xi(e))break;f=e}if(l.length&&Xi(a)&&!a.matches("html,body")&&!ms(a,o.floating)&&Array.from(l).every(e=>!ms(f,e)))return;if(Vi(a)&&L){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===ls(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,d=g&&Ea(g.nodesRef.current,p).some(t=>{var n;return bs(e,null==(n=t.context)?void 0:n.elements.floating)});if(bs(e,o.floating)||bs(e,o.domReference)||d)return;const h=g?Ea(g.nodesRef.current,p):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),O=ca(e=>{var t;const n=()=>{var t;A(e),null==(t=xs(e))||t.removeEventListener(c,n)};null==(t=xs(e))||t.addEventListener(c,n)});U.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=_;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function u(){window.clearTimeout(e),T.current=!0}function l(){e=window.setTimeout(()=>{T.current=!1},as()?5:0)}const f=ys(o.floating);a&&(f.addEventListener("keydown",w?R:S,w),f.addEventListener("compositionstart",u),f.addEventListener("compositionend",l)),v&&f.addEventListener(c,E?O:A,E);let d=[];return p&&(Xi(o.domReference)&&(d=hs(o.domReference)),Xi(o.floating)&&(d=d.concat(hs(o.floating))),!Xi(o.reference)&&o.reference&&o.reference.contextElement&&(d=d.concat(hs(o.reference.contextElement)))),d=d.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)}),d.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{a&&(f.removeEventListener("keydown",w?R:S,w),f.removeEventListener("compositionstart",u),f.removeEventListener("compositionend",l)),v&&f.removeEventListener(c,E?O:A,E),d.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,v,c,n,r,p,s,x,_,S,w,R,A,E,O]),U.useEffect(()=>{y.current=!1},[v,c]);const I=U.useMemo(()=>({onKeyDown:S,[Aa[f]]:e=>{l&&r(!1,e.nativeEvent,"reference-press")}}),[S,r,l,f]),L=U.useMemo(()=>({onKeyDown:S,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[Oa[c]]:()=>{y.current=!0}}),[S,c]);return U.useMemo(()=>s?{reference:I,floating:L}:{},[s,I,L])}function Na(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=ha(),i=U.useRef({}),[s]=U.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),a=null!=va(),[u,c]=U.useState(r.reference),l=ca((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),f=U.useMemo(()=>({setPositionReference:c}),[]),p=U.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return U.useMemo(()=>({dataRef:i,open:t,onOpenChange:l,elements:p,events:s,floatingId:o,refs:f}),[t,l,p,s,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=U.useState(null),[a,u]=U.useState(null),c=(null==o?void 0:o.reference)||i,l=U.useRef(null),f=ya();la(()=>{c&&(l.current=c)},[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[l,f]=U.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,d]=U.useState(r);ta(p,r)||d(r);const[h,g]=U.useState(null),[m,v]=U.useState(null),y=U.useCallback(e=>{e!==w.current&&(w.current=e,g(e))},[]),b=U.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),x=i||h,_=s||m,w=U.useRef(null),E=U.useRef(null),T=U.useRef(l),S=null!=u,R=oa(u),A=oa(o),O=oa(c),I=U.useCallback(()=>{if(!w.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),Qs(w.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};L.current&&!ta(T.current,t)&&(T.current=t,Ai.flushSync(()=>{f(t)}))})},[p,t,n,A,O]);ea(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);const L=U.useRef(!1);ea(()=>(L.current=!0,()=>{L.current=!1}),[]),ea(()=>{if(x&&(w.current=x),_&&(E.current=_),x&&_){if(R.current)return R.current(x,_,I);I()}},[x,_,I,R,S]);const N=U.useMemo(()=>({reference:w,floating:E,setReference:y,setFloating:b}),[y,b]),C=U.useMemo(()=>({reference:x,floating:_}),[x,_]),k=U.useMemo(()=>{const e={position:n,left:0,top:0};if(!C.floating)return e;const t=ra(C.floating,l.x),r=ra(C.floating,l.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...na(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,C.floating,l.x,l.y]);return U.useMemo(()=>({...l,update:I,refs:N,elements:C,floatingStyles:k}),[l,I,N,C,k])}({...e,elements:{...o,...a&&{reference:a}}}),d=U.useCallback(e=>{const t=Xi(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),p.refs.setReference(t)},[p.refs]),h=U.useCallback(e=>{(Xi(e)||null===e)&&(l.current=e,s(e)),(Xi(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Xi(e))&&p.refs.setReference(e)},[p.refs]),g=U.useMemo(()=>({...p.refs,setReference:h,setPositionReference:d,domReference:l}),[p.refs,h,d]),m=U.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),v=U.useMemo(()=>({...p,...r,refs:g,elements:m,nodeId:t}),[p,g,m,t,r]);return la(()=>{r.dataRef.current.floatingContext=v;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),U.useMemo(()=>({...p,context:v,refs:g,elements:m}),[p,g,m,v])}const Ca="active",ka="selected";function Pa(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Ca]:t,[ka]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Ta]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var s;o&&[Ca,ka].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function ja(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=U.useCallback(t=>Pa(t,e,"reference"),t),i=U.useCallback(t=>Pa(t,e,"floating"),n),s=U.useCallback(t=>Pa(t,e,"item"),r);return U.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}function Da(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e<i;s=e++){const[i,a]=t[e]||[0,0],[u,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(u-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function za(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,u=performance.now();const c=e=>{let{x:n,y:c,placement:l,elements:f,onClose:p,nodeId:d,tree:h}=e;return function(e){function g(){clearTimeout(o),p()}if(clearTimeout(o),!f.domReference||!f.floating||null==l||null==n||null==c)return;const{clientX:m,clientY:v}=e,y=[m,v],b=xs(e),x="mouseleave"===e.type,_=ms(f.floating,b),w=ms(f.domReference,b),E=f.domReference.getBoundingClientRect(),T=f.floating.getBoundingClientRect(),S=l.split("-")[0],R=n>T.right-T.width/2,A=c>T.bottom-T.height/2,O=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,E),I=T.width>E.width,L=T.height>E.height,N=(I?E:T).left,C=(I?E:T).right,k=(L?E:T).top,P=(L?E:T).bottom;if(_&&(i=!0,!x))return;if(w&&(i=!1),w&&!x)return void(i=!0);if(x&&Xi(e.relatedTarget)&&ms(f.floating,e.relatedTarget))return;if(h&&Ea(h.nodesRef.current,d).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===S&&c>=E.bottom-1||"bottom"===S&&c<=E.top+1||"left"===S&&n>=E.right-1||"right"===S&&n<=E.left+1)return g();let j=[];switch(S){case"top":j=[[N,E.top+1],[N,T.bottom-1],[C,T.bottom-1],[C,E.top+1]];break;case"bottom":j=[[N,T.top+1],[N,E.bottom-1],[C,E.bottom-1],[C,T.top+1]];break;case"left":j=[[T.right-1,P],[T.right-1,k],[E.left+1,k],[E.left+1,P]];break;case"right":j=[[E.right-1,P],[E.right-1,k],[T.left+1,k],[T.left+1,P]]}if(!Da([m,v],j)){if(i&&!O)return g();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-u;if(null===s||null===a||0===r)return s=e,a=t,u=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,u=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}Da([m,v],function(e){let[n,r]=e;switch(S){case"top":return[[I?n+t/2:R?n+4*t:n-4*t,r+t+1],[I?n-t/2:R?n+4*t:n-4*t,r+t+1],[T.left,R||I?T.bottom-t:T.top],[T.right,R?I?T.bottom-t:T.top:T.bottom-t]];case"bottom":return[[I?n+t/2:R?n+4*t:n-4*t,r-t],[I?n-t/2:R?n+4*t:n-4*t,r-t],[T.left,R||I?T.top+t:T.bottom],[T.right,R?I?T.top+t:T.bottom:T.top+t]];case"left":{const e=[n+t+1,L?r+t/2:A?r+4*t:r-4*t],o=[n+t+1,L?r-t/2:A?r+4*t:r-4*t];return[[A||L?T.right-t:T.left,T.top],[A?L?T.right-t:T.left:T.right-t,T.bottom],e,o]}case"right":return[[n-t,L?r+t/2:A?r+4*t:r-4*t],[n-t,L?r-t/2:A?r+4*t:r-4*t],[A||L?T.left+t:T.right,T.top],[A?L?T.left+t:T.right:T.left+t,T.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(g,40)):g()}}};return c.__options={blockPointerEvents:n},c}var Ma=function(){return Ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ma.apply(this,arguments)},$a=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Ba=i,Ua=function(e){var t=e.top,n=e.left,r=e.isVisible,o=void 0!==r&&r,i=e.children,s=e.style,a=(0,U.useState)(!0),u=a[0],c=a[1],l=(0,U.useState)(!0),f=l[0],p=l[1];return(0,U.useEffect)(function(){p(!0),o?setTimeout(function(){c(!1)},50):(setTimeout(function(){c(!0)},50),setTimeout(function(){p(!1)},300))},[o]),(0,V.jsx)(V.Fragment,{children:f&&(0,Ai.createPortal)((0,V.jsx)("div",{className:Ba.root,style:Ma(Ma({},null==s?void 0:s.root),{"--background-color":u?"rgba(0, 0, 0, 0.0)":"rgba(0, 0, 0, 0.4)"}),children:(0,V.jsx)("div",{className:Ba.background,property:u?"--top-value: 50%":"--top-value: ".concat(t),style:Ma(Ma({},null==s?void 0:s.background),{"--top-value":u?"50%":t,"--left-value":u?"50%":n,"--transform-value":u?"translateX(-50%) translateY(-50%) scale(.9)":"translateX(-50%) translateY(-50%) scale(1)","--opacity-value":u?"0":"1"}),children:i()})}),document.body)})},Fa=function(e){var t=e.children,n=e.parent,r=e.onChange,o=e.popupAlignmentProps,i=e.isVisible,s=e.action,a=void 0===s?"click":s,u=e.onInteractOutsidePopup,c=(0,U.useState)(null),l=c[0],f=c[1],p=(0,U.useRef)(null),d=(0,U.useState)(i||!1),h=d[0],g=d[1],m=null==n?void 0:n({isOpen:h,setRef:function(e){return f(e)},remove:function(){return g(!1)}});return(0,U.useEffect)(function(){var e;return h&&p.current&&l&&(e=new Ha({popupAlignmentProps:o,element:p.current,parent:l,autoRemove:!i,filterElementOnAutoRemove:[l],onRemove:function(){g(!1)},onInteractOutside:function(){null==u||u(p.current||void 0)}})),function(){null==e||e.remove()}},[h,p.current,l]),(0,U.useEffect)(function(){var e=function(){return g(!h)},t=l;return t&&(null==t||t.addEventListener(a,e)),function(){null==t||t.removeEventListener(a,e)}},[l,h]),(0,U.useEffect)(function(){var e=function(){return g(!h)},t=l;return t&&(null==t||t.addEventListener(a,e)),function(){null==t||t.removeEventListener(a,e)}},[l,h]),(0,U.useEffect)(function(){void 0!==i&&g(i)},[i]),(0,U.useEffect)(function(){null==r||r(h)},[h]),(0,V.jsxs)(V.Fragment,{children:[m,h&&(0,Ai.createPortal)((0,V.jsx)("div",{className:Ba["popup-element"],style:o.style,ref:p,children:t({remove:function(){return g(!1)},parentRef:l||void 0})}),document.body)]})},Wa=[],Ha=function(){function e(e){var t=this;this.onDown=function(e){var n=parseInt(t.element.style.left),r=parseInt(t.element.style.top),o=function(o){t.element.style.left=n-(e.clientX-o.clientX)+"px",t.element.style.top=r-(e.clientY-o.clientY)+"px"},i=function(){s()},s=function(){window.removeEventListener("mousemove",o),window.addEventListener("mouseup",i)};window.addEventListener("mousemove",o),window.addEventListener("mouseup",i)},this.resizeObserver=new ResizeObserver(function(e){t.onResize()}),this.filterElementOnAutoRemove=[],this.onDownElement=!1,this.onElementMousedown=function(){t.onDownElement=!0},this.onWindowMousedown=function(e){var n=$a($a([],t.filterElementOnAutoRemove||[],!0),Wa,!0),r=n?document.elementsFromPoint(e.clientX,e.clientY).filter(function(e){return null==n?void 0:n.includes(e)}):[];!1!==t.onDownElement||r.length||(t.autoRemove&&t.remove(),t.onInteractOutside&&t.onInteractOutside()),t.onDownElement=!1},this.onWindowResize=function(){t.onResize&&window.requestAnimationFrame(function(){t.onResize()})},this.onWindowWheel=function(){t.onResize&&window.requestAnimationFrame(function(){t.onResize()})},this.element=e.element,this.parent=e.parent,Wa.push(e.element),Wa.push(e.parent),this.onRemove=e.onRemove,this.popupAlignmentProps=e.popupAlignmentProps,this.autoRemove=e.autoRemove,this.onInteractOutside=e.onInteractOutside,this.filterElementOnAutoRemove=e.filterElementOnAutoRemove,(e.autoRemove||e.onInteractOutside)&&(this.element.addEventListener("mousedown",this.onElementMousedown),window.addEventListener("mousedown",this.onWindowMousedown),window.addEventListener("resize",this.onWindowResize),window.addEventListener("wheel",this.onWindowWheel)),this.onResize(),this.resizeObserver.observe(e.element),this.resizeObserver.observe(e.parent)}return e.prototype.setMovable=function(){this.element.addEventListener("mousedown",this.onDown)},e.prototype.adjustElement=function(e){var t=e.getBoundingClientRect(),n={top:t.top,left:t.left,height:t.height,width:t.width,right:0,bottom:0};n.bottom=n.top+n.height,n.right=n.left+n.width;var r=document.body.offsetWidth-10,o=document.body.offsetHeight-10,i=e.offsetTop,s=e.offsetLeft;if(n.height<o)n.top<10?e.style.top="10px":n.bottom>o&&(e.style.top=i-(n.bottom-o)+"px");else if(n.height>o){e.style.top="0px";var a=e.getBoundingClientRect();a.top<0&&(e.style.top=-a.top+"px")}if(n.width<r)n.left<10?e.style.left="10px":n.right>r&&(e.style.left=s-(n.right-r)+"px");else if(n.width>r){e.style.left="0px";var u=e.getBoundingClientRect();u.left<0&&(e.style.left=-u.left+"px")}},e.prototype.onResize=function(){var e=this.popupAlignmentProps,t=e.yType,n=void 0===t?"top-edge":t,r=e.xType,o=void 0===r?"left-edge":r,i=e.yMargin,s=void 0===i?0:i,a=e.xMargin,u=void 0===a?0:a,c=e.width,l=e.minWidth,f=e.height,p=e.minHeight,d=this.element,h=this.parent.getBoundingClientRect();d.style.contain="layout",c&&(d.style.width="auto"===c?"auto":"".concat(h.width,"px")),l&&(d.style.minWidth="auto"===l?"auto":"".concat(h.width,"px")),f&&(d.style.height="auto"===f?"auto":"".concat(h.height,"px")),p&&(d.style.minHeight="auto"===p?"auto":"".concat(h.height,"px"));var g=d.getBoundingClientRect();if("left"===o)d.style.left="".concat((h.left<1?0:h.left)-g.width+u,"px");else if("left-edge"===o)d.style.left="".concat((h.left<1?0:h.left)+u,"px");else if("right-edge"===o)d.style.left="".concat((h.left<1?0:h.left)-g.width+h.width+u,"px");else if("center"===o){var m=h.width/2-g.width/2;d.style.left="".concat((h.left<1?0:h.left)+m+u,"px")}else d.style.left="".concat((h.right<1?0:h.right)+u,"px");"top"===n?d.style.top="".concat((h.top<1?0:h.top)-g.height+s,"px"):"top-edge"===n?d.style.top="".concat((h.top<1?0:h.top)+s,"px"):"bottom-edge"===n?d.style.top="".concat((h.top<1?0:h.top)-g.height+h.height+s,"px"):"center"===n?(m=h.height/2-g.height/2,d.style.top="".concat((h.top<1?0:h.top)+m+s,"px")):d.style.top="".concat((h.bottom<1?0:h.bottom)+s,"px"),d.style.scale=(h.width/this.parent.offsetWidth).toString(),this.adjustElement(d),d.style.opacity="1"},e.prototype.setXY=function(e,t){this.element.style.top=t+"px",this.element.style.left=e+"px"},e.prototype.setXYString=function(e,t){this.element.style.top=t,this.element.style.left=e},e.prototype.remove=function(){var e,t=this;Wa=Wa.filter(function(e){return e!==t.element&&e!==t.parent}),this.element.removeEventListener("mousedown",this.onElementMousedown),window.removeEventListener("mousedown",this.onWindowMousedown),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("wheel",this.onWindowWheel),null===(e=this.onRemove)||void 0===e||e.call(this)},e}(),qa=function(e){var t=(0,U.useState)(!1),n=t[0],r=t[1],o=(0,U.useRef)(),i=Na({open:n,onOpenChange:r,middleware:[sa(),ia(e.offset||0)],placement:e.placement}),s=i.refs,a=i.x,u=i.y,c=i.strategy,l=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:a=!0,delay:u=0,handleClose:c=null,mouseOnly:l=!1,restMs:f=0,move:p=!0}=t,d=ya(),h=va(),g=xa(c),m=xa(u),v=xa(n),y=U.useRef(),b=U.useRef(-1),x=U.useRef(),_=U.useRef(-1),w=U.useRef(!0),E=U.useRef(!1),T=U.useRef(()=>{}),S=U.useRef(!1),R=U.useCallback(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[o]);U.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(b.current),clearTimeout(_.current),w.current=!0,S.current=!1)}},[a,i]),U.useEffect(()=>{if(!a)return;if(!g.current)return;if(!n)return;function e(e){R()&&r(!1,e,"hover")}const t=ys(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,n,r,a,g,R]);const A=U.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=wa(m.current,"close",y.current);o&&!x.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(b.current),r(!1,e,n))},[m,r]),O=ca(()=>{T.current(),x.current=void 0}),I=ca(()=>{if(E.current){const e=ys(s.floating).body;e.style.pointerEvents="",e.removeAttribute(_a),E.current=!1}});U.useEffect(()=>{if(a&&Xi(s.domReference)){var e;const t=s.domReference;return n&&t.addEventListener("mouseleave",c),null==(e=s.floating)||e.addEventListener("mouseleave",c),p&&t.addEventListener("mousemove",i,{once:!0}),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",u),()=>{var e;n&&t.removeEventListener("mouseleave",c),null==(e=s.floating)||e.removeEventListener("mouseleave",c),p&&t.removeEventListener("mousemove",i),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",u)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(e){if(clearTimeout(b.current),w.current=!1,l&&!vs(y.current)||f>0&&!wa(m.current,"open"))return;const t=wa(m.current,"open",y.current);t?b.current=window.setTimeout(()=>{v.current||r(!0,e,"hover")},t):r(!0,e,"hover")}function u(e){if(t())return;T.current();const r=ys(s.floating);if(clearTimeout(_.current),S.current=!1,g.current&&o.current.floatingContext){n||clearTimeout(b.current),x.current=g.current({...o.current.floatingContext,tree:d,x:e.clientX,y:e.clientY,onClose(){I(),O(),A(e,!0,"safe-polygon")}});const t=x.current;return r.addEventListener("mousemove",t),void(T.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==y.current||!ms(s.floating,e.relatedTarget))&&A(e)}function c(e){t()||o.current.floatingContext&&(null==g.current||g.current({...o.current.floatingContext,tree:d,x:e.clientX,y:e.clientY,onClose(){I(),O(),A(e)}})(e))}},[s,a,e,l,f,p,A,O,I,r,n,v,d,m,g,o]),la(()=>{var e;if(a&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&R()){E.current=!0;const e=s.floating;if(Xi(s.domReference)&&e){var t;const n=ys(s.floating).body;n.setAttribute(_a,"");const r=s.domReference,o=null==d||null==(t=d.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,n,h,s,d,g,R]),la(()=>{n||(y.current=void 0,S.current=!1,O(),I())},[n,O,I]),U.useEffect(()=>()=>{O(),clearTimeout(b.current),clearTimeout(_.current),I()},[a,s.domReference,O,I]);const L=U.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){w.current||v.current||r(!0,t,"hover")}l&&!vs(y.current)||n||0===f||S.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(_.current),"touch"===y.current?o():(S.current=!0,_.current=window.setTimeout(o,f)))}}},[l,r,n,v,f]),N=U.useMemo(()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(e){A(e.nativeEvent,!1)}}),[A]);return U.useMemo(()=>a?{reference:L,floating:N}:{},[a,L,N])}(i.context,{handleClose:za({requireIntent:!1})}),f=ja([l]),p=f.getReferenceProps,d=f.getFloatingProps,h=p(),g=h.onMouseMove,m=h.onPointerDown,v=h.onPointerEnter,y=o.current;return(0,U.useLayoutEffect)(function(){return null==y||y.addEventListener("mousemove",g),null==y||y.addEventListener("pointerdown",m),null==y||y.addEventListener("pointerenter",v),function(){null==y||y.removeEventListener("mousemove",g),null==y||y.removeEventListener("pointerdown",m),null==y||y.removeEventListener("pointerenter",v)}},[y,g,m,v]),(0,V.jsxs)(V.Fragment,{children:[e.children(function(e){o.current=e,s.setReference(e)}),n&&(0,Ai.createPortal)((0,V.jsx)("div",Ma({ref:s.setFloating,style:{position:c,top:null!=u?u:0,left:null!=a?a:0,zIndex:1e3}},d(),{children:e.element})),document.body)]})},Ya=function(e){var t=(0,U.useState)(!1),n=t[0],r=t[1],o=(0,U.useRef)(),i=Na({open:n,onOpenChange:r,middleware:[sa(),ia(e.offset||0)],placement:e.placement}),s=i.refs,a=i.x,u=i.y,c=i.strategy,l=i.context,f=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:a="click",toggle:u=!0,ignoreMouse:c=!1,keyboardHandlers:l=!0}=t,f=U.useRef(),p=U.useRef(!1),d=U.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&(vs(t,!0)&&c||(!n||!u||o.current.openEvent&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===a&&f.current?f.current=void 0:vs(t,!0)&&c||(!n||!u||o.current.openEvent&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!l||Sa(e)||(" "!==e.key||Ra(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&r(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!l||Sa(e)||Ra(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!u,e.nativeEvent,"click"))}}),[o,i,a,c,l,r,n,u]);return U.useMemo(()=>s?{reference:d}:{},[s,d])}(l),p=ja([f,La(l)]),d=p.getReferenceProps,h=p.getFloatingProps,g=d(),m=g.onPointerDown,v=g.onMouseDown,y=g.onClick,b=g.onKeyDown,x=g.onKeyUp,_=o.current;return(0,U.useLayoutEffect)(function(){return null==_||_.addEventListener("pointerdown",m),null==_||_.addEventListener("click",y),null==_||_.addEventListener("mousedown",v),null==_||_.addEventListener("keydown",b),null==_||_.addEventListener("keyup",x),function(){null==_||_.removeEventListener("pointerdown",m),null==_||_.removeEventListener("click",y),null==_||_.removeEventListener("mousedown",v),null==_||_.removeEventListener("keydown",b),null==_||_.removeEventListener("keyup",x)}},[_,m,v,y,b,x]),(0,V.jsxs)(V.Fragment,{children:[e.children(function(e){o.current=e,s.setReference(e)}),n&&(0,Ai.createPortal)((0,V.jsx)("div",Ma({ref:s.setFloating,style:{position:c,top:null!=u?u:0,left:null!=a?a:0,zIndex:1e3}},h(),{children:e.element})),document.body)]})},Ga=function(e){var t=(0,U.useRef)(),n=Na({open:e.isOpen,middleware:[sa(),ia(e.offset||0)],placement:e.placement,onOpenChange:function(n,r,o){var i;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t.current)}}),r=n.refs,o=n.x,i=n.y,s=n.strategy,a=ja([La(n.context)]),u=a.getReferenceProps,c=a.getFloatingProps,l=u(),f=l.onPointerDown,p=l.onKeyDown,d=t.current;return(0,U.useLayoutEffect)(function(){return null==d||d.addEventListener("pointerdown",f),null==d||d.addEventListener("keydown",p),function(){null==d||d.removeEventListener("pointerdown",f),null==d||d.removeEventListener("keydown",p)}},[d,f,p]),(0,V.jsxs)(V.Fragment,{children:[e.children(function(e){t.current=e,r.setReference(e)}),e.isOpen&&(0,Ai.createPortal)((0,V.jsx)("div",Ma({ref:r.setFloating,style:{position:s,top:null!=i?i:0,left:null!=o?o:0,zIndex:1e3}},c(),{children:e.element})),document.body)]})},Xa=function(e){var t=e.children,n=document.body,r=(0,U.useState)({})[1];return(0,U.useEffect)(function(){n.style.overflow="hidden";var e=new ResizeObserver(function(e){r({})});return e.observe(n),function(){n.style.overflow="",e.disconnect()}},[n]),(0,V.jsx)(V.Fragment,{children:(0,Ai.createPortal)((0,V.jsx)("div",{style:{top:"".concat(n.scrollTop,"px"),left:"".concat(n.scrollLeft,"px"),width:"".concat(n.scrollWidth,"px"),height:"".concat(n.scrollHeight,"px"),position:"absolute",zIndex:1e3},children:(0,V.jsx)("div",{style:{top:"0px",left:"0px",width:"".concat(n.clientWidth,"px"),height:"".concat(n.clientHeight,"px"),position:"absolute"},children:t})}),n)})},Va=function(e,t){return"%"===(null==t?void 0:t.unit)?e*((t.value||0)/100):(null==t?void 0:t.value)||0},Za=function(e,t,n){var r=0,o=function(o){var i=e.find(function(e,n,r){var o=t.clientWidth,i=t.computedStyleMap(),s=i.get("padding-left"),a=i.get("padding-left");if(o=o-Va(o,s)-Va(o,a),0===n)return o>=e;if(r.length===n+1)return!0;var u=r[n-1];return o>=e&&o<u||void 0});r!==i&&(n(o,r,i),r=i)},i=new ResizeObserver(function(){o(!1)});return o(!0),i.observe(t),i},Ka=function(){function e(){var e=this;this.elements={},this.getValue=function(){return Object.values(e.elements).filter(function(e){return e.size}).map(function(e){return e.size}).join(",")},this.lastValue="",this.onUpdate=function(){var t,n=e.getValue();e.lastValue!==n&&(e.lastValue=n,null===(t=e.update)||void 0===t||t.call(e,n))}}return e.prototype.render=function(e,t){if(e.nodeId)if(this.elements[e.nodeId]){var n=this.elements[e.nodeId];n.rendered=!0,n.item=e}else this.elements[e.nodeId]={rendered:!0,item:e,sizes:t}},e.prototype.finish=function(){var e=this;Object.values(this.elements).map(function(e){return!!e.item.ref}).includes(!1)||Object.entries(this.elements).forEach(function(t){var n,r,o=t[0],i=t[1];if(i.rendered){var s=i.item.ref;s&&(i.size&&s.classList.add("w".concat(i.size,"px")),i.resizeObserver&&i.item.ref===i.element||(null===(r=i.resizeObserver)||void 0===r||r.disconnect(),i.element=s,i.resizeObserver=Za(i.sizes.map(function(e){return e.width}),s,function(t,n,r){window.requestAnimationFrame(function(){var t,o,a=i.sizes.find(function(e){return e.width===n}),u=i.sizes.find(function(e){return e.width===r});(null==a?void 0:a.className)&&(null==s||(t=s.classList).remove.apply(t,null==a?void 0:a.className)),(null==u?void 0:u.className)&&(null==s||(o=s.classList).add.apply(o,null==u?void 0:u.className)),i.size=r,e.onUpdate()})})))}else null===(n=i.resizeObserver)||void 0===n||n.disconnect(),delete e.elements[o];i.rendered=!1})},e.prototype.remove=function(){Object.values(this.elements).forEach(function(e){var t;null===(t=e.resizeObserver)||void 0===t||t.disconnect()})},e}(),Ja=a(543),Qa=a.n(Ja),eu=function(){function e(e,t){var n=this;this.bank={},this.collectResponse=function(e){return Object.entries(e).reduce(function(e,t){var n=t[0],r=t[1];return e[n]={loading:r.loading,response:{body:r.response},error:r.error,request:r.request},e},{})},this.validateRequest=function(e,t,r){var o=n.getApisRequest(r);Object.entries(t).forEach(function(e){var t=e[0];e[1].load(o[t])}),n.bank[e].apis=n.collectResponse(t)},this.emit=function(e,t){n.bank[e].events.forEach(function(e){t&&t===e||e()})},this.baseState=e,this.getApisRequest=t}return e.prototype.mount=function(e,t){var n=this;if(this.bank[e])this.bank[e].events.includes(t)||this.bank[e].events.push(t);else{var r=Qa().cloneDeep(this.baseState),o=this.getApisRequest(r),i=Object.entries(o).reduce(function(t,r){var o=r[0],i=r[1],s=new Y(function(){n.emit(e)});return s.load(i),t[o]=s,t},{});this.bank[e]={state:r,mutated:r,apiLoaders:i,apis:this.collectResponse(i),events:[t]}}},e.prototype.unMount=function(e,t){if(this.bank[e]){var n=this.bank[e].events.indexOf(t);-1!==n&&this.bank[e].events.splice(n,1)}},e.prototype.set=function(e,t,n){var r=this.bank[e];this.validateRequest(e,r.apiLoaders,t),this.emit(e,n)},e}(),tu=function(e,t){var n=(0,U.useState)({}),r=(n[0],n[1]),o=(0,U.useMemo)(function(){var n=function(){return r({})};return t.mount(e,n),n},[e]);return(0,U.useEffect)(function(){},[o,e]),{state:t.bank[e].mutated,apis:t.bank[e].apis,set:function(n,r){return t.set(e,n,r?o:void 0),!0},setState:function(n){var r=t.bank[e].state;return n(r),t.set(e,r),!0},get:function(){return t.bank[e].state}}},nu=function(e){var t=(0,U.useState)({}),n=(t[0],t[1]),r=(0,U.useMemo)(function(){return Qa().cloneDeep(e)},[]);return{state:r,getState:function(){return r},setState:function(e){return n({}),!0}}};const ru="undefined"!=typeof window,ou=ru?window:null,iu=ru?document:null,su={replace:0,none:1,blend:2},au=Symbol(),uu=Symbol(),cu=Symbol(),lu=Symbol(),fu=(Symbol(),Symbol()),pu=1e-11,du=1e12,hu=1e3,gu="",mu=new Map;mu.set("x","translateX"),mu.set("y","translateY"),mu.set("z","translateZ");const vu=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],yu=vu.reduce((e,t)=>({...e,[t]:t+"("}),{}),bu=()=>{},xu=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,_u=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,wu=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Eu=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,Tu=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Su=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,Ru=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,Au=/([a-z])([A-Z])/g,Ou=/(\w+)(\([^)]+\)+)/g,Iu=/(\*=|\+=|-=)/,Lu={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:120,loop:0,reversed:!1,alternate:!1,autoplay:!0,duration:hu,delay:0,loopDelay:0,ease:"out(2)",composition:su.replace,modifier:e=>e,onBegin:bu,onBeforeUpdate:bu,onUpdate:bu,onLoop:bu,onPause:bu,onComplete:bu,onRender:bu},Nu={defaults:Lu,root:iu,scope:null,precision:4,timeScale:1,tickThreshold:200},Cu={version:"4.0.0",engine:null};ru&&(ou.AnimeJS||(ou.AnimeJS=[]),ou.AnimeJS.push(Cu));const ku=(e,t)=>0===e.indexOf(t),Pu=Date.now,ju=Array.isArray,Du=e=>e&&e.constructor===Object,zu=e=>"number"==typeof e&&!isNaN(e),Mu=e=>"string"==typeof e,$u=e=>"function"==typeof e,Bu=e=>void 0===e,Uu=e=>Bu(e)||null===e,Fu=e=>ru&&e instanceof SVGElement,Wu=e=>xu.test(e),Hu=e=>ku(e,"rgb"),qu=e=>ku(e,"hsl"),Yu=e=>!Nu.defaults.hasOwnProperty(e),Gu=e=>Mu(e)?parseFloat(e):e,Xu=Math.pow,Vu=Math.sqrt,Zu=Math.sin,Ku=Math.cos,Ju=Math.abs,Qu=(Math.exp,Math.ceil),ec=Math.floor,tc=Math.asin,nc=(Math.max,Math.atan2,Math.PI),rc=Math.round,oc=(e,t,n)=>e<t?t:e>n?n:e,ic={},sc=(e,t)=>{if(t<0)return e;if(!t)return rc(e);let n=ic[t];return n||(n=ic[t]=10**t),rc(e*n)/n},ac=(e,t,n)=>e+(t-e)*n,uc=e=>e===1/0?du:e===-1/0?-1e12:e,cc=e=>e<pu?pu:e,lc=e=>ju(e)?[...e]:e,fc=(e,t)=>{const n={...e};for(let r in t){const o=e[r];n[r]=Bu(o)?t[r]:o}return n},pc=(e,t,n,r="_prev",o="_next")=>{let i=e._head,s=o;for(n&&(i=e._tail,s=r);i;){const e=i[s];t(i),i=e}},dc=(e,t,n="_prev",r="_next")=>{const o=t[n],i=t[r];o?o[r]=i:e._head=i,i?i[n]=o:e._tail=o,t[n]=null,t[r]=null},hc=(e,t,n,r="_prev",o="_next")=>{let i=e._tail;for(;i&&n&&n(i,t);)i=i[r];const s=i?i[o]:e._head;i?i[o]=t:e._head=t,s?s[r]=t:e._tail=t,t[r]=i,t[o]=s};class gc{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=sc(hu/120,0),this._fps=120,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(e){const t=this._frameDuration,n=+e,r=n<pu?pu:n,o=sc(hu/r,0);this._fps=r,this._frameDuration=o,this._scheduledTime+=o-t}get speed(){return this._speed}set speed(e){const t=+e;this._speed=t<pu?pu:t}requestTick(e){const t=this._scheduledTime,n=this._elapsedTime;if(this._elapsedTime+=e-n,n<t)return 0;const r=this._frameDuration,o=n-t;return this._scheduledTime+=o<r?r:o,1}computeDeltaTime(e){const t=e-this._lastTime;return this.deltaTime=t,this._lastTime=e,t}}const mc=(e,t,n,r,o)=>{const i=e.parent,s=e.duration,a=e.completed,u=e.iterationDuration,c=e.iterationCount,l=e._currentIteration,f=e._loopDelay,p=e._reversed,d=e._alternate,h=e._hasChildren,g=e._delay,m=e._currentTime,v=g+u,y=t-g,b=oc(m,-g,s),x=oc(y,-g,s),_=y-m,w=x>0,E=x>=s,T=s<=pu,S=2===o;let R=0,A=y,O=0;if(c>1){const t=~~(x/(u+(E?0:f)));e._currentIteration=oc(t,0,c),E&&e._currentIteration--,R=e._currentIteration%2,A=x%(u+f)||0}const I=p^(d&&R),L=e._ease;let N=E?I?0:s:I?u-A:A;L&&(N=u*L(N/u)||0);const C=(i?i.backwards:y<m)?!I:!!I;if(e._currentTime=y,e._iterationTime=N,e.backwards=C,w&&!e.began?(e.began=!0,n||i&&(C||!i.began)||e.onBegin(e)):y<=0&&(e.began=!1),n||h||!w||e._currentIteration===l||e.onLoop(e),S||1===o&&(t>=g&&t<=v||t<=g&&b>g||t>=v&&b!==s)||N>=v&&b!==s||N<=g&&b>0||t<=b&&b===s&&a||E&&!a&&T){if(w&&(e.computeDeltaTime(b),n||e.onBeforeUpdate(e)),!h){const t=S||(C?-1*_:_)>=Nu.tickThreshold,o=e._offset+(i?i._offset:0)+g+N;let s,a,u,c,l=e._head,f=0;for(;l;){const e=l._composition,n=l._currentTime,i=l._changeDuration,p=l._absoluteStartTime+l._changeDuration,d=l._nextRep,h=l._prevRep,g=e!==su.none;if((t||(n!==i||o<=p+(d?d._delay:0))&&(0!==n||o>=l._absoluteStartTime))&&(!g||!l._isOverridden&&(!l._isOverlapped||o<=p)&&(!d||d._isOverridden||o<=d._absoluteStartTime)&&(!h||h._isOverridden||o>=h._absoluteStartTime+h._changeDuration+l._delay))){const t=l._currentTime=oc(N-l._startTime,0,i),n=l._ease(t/l._updateDuration),o=l._modifier,p=l._valueType,d=l._tweenType,h=0===d,m=0===p,v=m&&h||0===n||1===n?-1:Nu.precision;let y,b;if(m)y=b=o(sc(ac(l._fromNumber,l._toNumber,n),v));else if(1===p)b=o(sc(ac(l._fromNumber,l._toNumber,n),v)),y=`${b}${l._unit}`;else if(2===p){const e=l._fromNumbers,t=l._toNumbers,r=sc(oc(o(ac(e[0],t[0],n)),0,255),0),i=sc(oc(o(ac(e[1],t[1],n)),0,255),0),s=sc(oc(o(ac(e[2],t[2],n)),0,255),0),a=oc(o(sc(ac(e[3],t[3],n),v)),0,1);if(y=`rgba(${r},${i},${s},${a})`,g){const e=l._numbers;e[0]=r,e[1]=i,e[2]=s,e[3]=a}}else if(3===p){y=l._strings[0];for(let e=0,t=l._toNumbers.length;e<t;e++){const t=o(sc(ac(l._fromNumbers[e],l._toNumbers[e],n),v)),r=l._strings[e+1];y+=`${r?t+r:t}`,g&&(l._numbers[e]=t)}}if(g&&(l._number=b),r||e===su.blend)l._value=y;else{const e=l.property;s=l.target,h?s[e]=y:1===d?s.setAttribute(e,y):(a=s.style,3===d?(s!==u&&(u=s,c=s[lu]),c[e]=y,f=1):2===d?a[e]=y:4===d&&a.setProperty(e,y)),w&&(O=1)}}if(f&&l._renderTransforms){let e=gu;for(let t in c)e+=`${yu[t]}${c[t]}) `;a.transform=e,f=0}l=l._next}!n&&O&&e.onRender(e)}!n&&w&&e.onUpdate(e)}return i&&T?!n&&(i.began&&!C&&y>=s&&!a||C&&y<=pu&&a)&&(e.onComplete(e),e.completed=!C):w&&E?c===1/0?e._startTime+=e.duration:e._currentIteration>=c-1&&(e.paused=!0,a||h||(e.completed=!0,n||i&&(C||!i.began)||(e.onComplete(e),e._resolve(e)))):e.completed=!1,O},vc=(e,t,n,r,o)=>{const i=e._currentIteration;if(mc(e,t,n,r,o),e._hasChildren){const s=e,a=s.backwards,u=r?t:s._iterationTime,c=Pu();let l=0,f=!0;if(!r&&s._currentIteration!==i){const e=s.iterationDuration;pc(s,t=>{if(a){const r=t.duration,o=t._offset+t._delay;n||!(r<=pu)||o&&o+r!==e||t.onComplete(t)}else!t.completed&&!t.backwards&&t._currentTime<t.iterationDuration&&mc(t,e,n,1,2),t.began=!1,t.completed=!1}),n||s.onLoop(s)}pc(s,e=>{const t=sc((u-e._offset)*e._speed,12),i=e._fps<s._fps?e.requestTick(c):o;l+=mc(e,t,n,r,i),!e.completed&&f&&(f=!1)},a),!n&&l&&s.onRender(s),f&&s._currentTime>=s.duration&&(s.paused=!0,s.completed||(s.completed=!0,n||(s.onComplete(s),s._resolve(s))))}},yc={animation:null,update:bu},bc=ru?requestAnimationFrame:setImmediate,xc=ru?cancelAnimationFrame:clearImmediate;class _c extends gc{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=Lu,this.paused=!(!ru||!iu.hidden),this.reqId=null}update(){const e=this._currentTime=Pu();if(this.requestTick(e)){this.computeDeltaTime(e);const t=this._speed,n=this._fps;let r=this._head;for(;r;){const o=r._next;r.paused?(dc(this,r),this._hasChildren=!!this._tail,r._running=!1,r.completed&&!r._cancelled&&r.cancel()):vc(r,(e-r._startTime)*r._speed*t,0,0,r._fps<n?r.requestTick(e):1),r=o}yc.update()}}wake(){return!this.useDefaultMainLoop||this.reqId||this.paused||(this.reqId=bc(Ec)),this}pause(){return this.paused=!0,Tc()}resume(){if(this.paused)return this.paused=!1,pc(this,e=>e.resetTime()),this.wake()}get speed(){return this._speed*(1===Nu.timeScale?1:hu)}set speed(e){this._speed=e*Nu.timeScale,pc(this,e=>e.speed=e._speed)}get timeUnit(){return 1===Nu.timeScale?"ms":"s"}set timeUnit(e){const t="s"===e,n=t?.001:1;if(Nu.timeScale!==n){Nu.timeScale=n,Nu.tickThreshold=200*n;const e=t?.001:hu;this.defaults.duration*=e,this._speed*=e}}get precision(){return Nu.precision}set precision(e){Nu.precision=e}}const wc=(()=>{const e=new _c(Pu());return ru&&(Cu.engine=e,iu.addEventListener("visibilitychange",()=>{e.pauseOnDocumentHidden&&(iu.hidden?e.pause():e.resume())})),e})(),Ec=()=>{wc._head?(wc.reqId=bc(Ec),wc.update()):wc.reqId=0},Tc=()=>(xc(wc.reqId),wc.reqId=0,wc);function Sc(e){const t=Mu(e)?Nu.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function Rc(e){if(Uu(e))return[];if(ju(e)){const t=e.flat(1/0),n=[];for(let e=0,r=t.length;e<r;e++){const r=t[e];if(!Uu(r)){const e=Sc(r);if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];if(!Uu(r)){let e=!1;for(let t=0,o=n.length;t<o;t++)if(n[t]===r){e=!0;break}e||n.push(r)}}else{let e=!1;for(let t=0,o=n.length;t<o;t++)if(n[t]===r){e=!0;break}e||n.push(r)}}}return n}if(!ru)return[e];const t=Sc(e);return t?Array.from(t):[e]}function Ac(e){const t=Rc(e),n=t.length;if(n)for(let e=0;e<n;e++){const n=t[e];if(!n[au]){n[au]=!0;const e=Fu(n);(n.nodeType||e)&&(n[uu]=!0,n[cu]=e,n[lu]={})}}return t}const Oc=["opacity","rotate","overflow","color"],Ic=(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),Lc=(e,t)=>Bu(e)?t:e,Nc=(e,t,n,r,o)=>{if($u(e)){const i=()=>{const o=e(t,n,r);return isNaN(+o)?o||0:+o};return o&&(o.func=i),i()}return e},Cc=(e,t)=>e[uu]?e[cu]&&((e,t)=>{if(Oc.includes(t))return!1;if(e.getAttribute(t)||t in e){if("scale"===t){const t=e.parentNode;return t&&"filter"===t.tagName}return!0}})(e,t)?1:vu.includes(t)||mu.get(t)?3:ku(t,"--")?4:t in e.style?2:t in e?0:1:0,kc=(e,t,n)=>{const r=e.style[t];r&&n&&(n[t]=r);const o=r||getComputedStyle(e[fu]||e).getPropertyValue(t);return"auto"===o?"0":o},Pc=(e,t,n,r)=>{const o=Bu(n)?Cc(e,t):n;return 0===o?e[t]||0:1===o?e.getAttribute(t):3===o?((e,t,n)=>{const r=e.style.transform;let o;if(r){const i=e[lu];let s;for(;s=Ou.exec(r);){const e=s[1],r=s[2].slice(1,-1);i[e]=r,e===t&&(o=r,n&&(n[t]=r))}}return r&&!Bu(o)?o:ku(t,"scale")?"1":ku(t,"rotate")||ku(t,"skew")?"0deg":"0px"})(e,t,r):4===o?kc(e,t,r).trimStart():kc(e,t,r)},jc=(e,t,n)=>"-"===n?e-t:"+"===n?e+t:e*t,Dc=(e,t)=>{if(t.t=0,t.n=0,t.u=null,t.o=null,t.d=null,t.s=null,!e)return t;const n=+e;if(isNaN(n)){let n=e;"="===n[1]&&(t.o=n[0],n=n.slice(2));const o=!n.includes(" ")&&Ru.exec(n);if(o)return t.t=1,t.n=+o[1],t.u=o[2],t;if(t.o)return t.n=+n,t;if((e=>Wu(e)||Hu(e)||qu(e))(n))return t.t=2,t.d=Hu(r=n)?(e=>{const t=_u.exec(e)||wu.exec(e),n=Bu(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],n]})(r):Wu(r)?(e=>{const t=e.length,n=4===t||5===t;return[+("0x"+e[1]+e[n?1:2]),+("0x"+e[n?2:3]+e[n?2:4]),+("0x"+e[n?3:5]+e[n?3:6]),5===t||9===t?+(+("0x"+e[n?4:7]+e[n?4:8])/255).toFixed(3):1]})(r):qu(r)?(e=>{const t=Eu.exec(e)||Tu.exec(e),n=+t[1]/360,r=+t[2]/100,o=+t[3]/100,i=Bu(t[4])?1:+t[4];let s,a,u;if(0===r)s=a=u=o;else{const e=o<.5?o*(1+r):o+r-o*r,t=2*o-e;s=sc(255*Ic(t,e,n+1/3),0),a=sc(255*Ic(t,e,n),0),u=sc(255*Ic(t,e,n-1/3),0)}return[s,a,u,i]})(r):[0,0,0,1],t;{const e=n.match(Su);return t.t=3,t.d=e?e.map(Number):[],t.s=n.split(Su)||[],t}}var r;return t.n=n,t},zc=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=lc(e._toNumbers),t.s=lc(e._strings),t),Mc={t:0,n:0,u:null,o:null,d:null,s:null},$c={_rep:new WeakMap,_add:new Map},Bc=(e,t,n="_rep")=>{const r=$c[n];let o=r.get(e);return o||(o={},r.set(e,o)),o[t]?o[t]:o[t]={_head:null,_tail:null}},Uc=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,Fc=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=pu,e._currentTime=pu},Wc=(e,t)=>{const n=e._composition;if(n===su.replace){const n=e._absoluteStartTime;hc(t,e,Uc,"_prevRep","_nextRep");const r=e._prevRep;if(r){const t=r.parent,o=r._absoluteStartTime+r._changeDuration;if(e.parent.id!==t.id&&t.iterationCount>1&&o+(t.duration-t.iterationDuration)>n){Fc(r);let e=r._prevRep;for(;e&&e.parent.id===t.id;)Fc(e),e=e._prevRep}const i=n-e._delay;if(o>i){const e=r._startTime,t=o-(e+r._updateDuration);r._changeDuration=i-t-e,r._currentTime=r._changeDuration,r._isOverlapped=1,r._changeDuration<pu&&Fc(r)}let s=!0;if(pc(t,e=>{e._isOverlapped||(s=!1)}),s){const e=t.parent;if(e){let n=!0;pc(e,e=>{e!==t&&pc(e,e=>{e._isOverlapped||(n=!1)})}),n&&e.cancel()}else t.cancel()}}}else if(n===su.blend){const t=Bc(e.target,e.property,"_add"),n=(e=>{let t=yc.animation;return t||(t={duration:pu,computeDeltaTime:bu,_offset:0,_delay:0,_head:null,_tail:null},yc.animation=t,yc.update=()=>{e.forEach(e=>{for(let t in e){const n=e[t],r=n._head;if(r){const e=r._valueType,t=3===e||2===e?lc(r._fromNumbers):null;let o=r._fromNumber,i=n._tail;for(;i&&i!==r;){if(t)for(let e=0,n=i._numbers.length;e<n;e++)t[e]+=i._numbers[e];else o+=i._number;i=i._prevAdd}r._toNumber=o,r._toNumbers=t}}}),mc(t,1,1,0,2)}),t})($c._add);let r=t._head;r||(r={...e},r._composition=su.replace,r._updateDuration=pu,r._startTime=0,r._numbers=lc(e._fromNumbers),r._number=0,r._next=null,r._prev=null,hc(t,r),hc(n,r));const o=e._toNumber;if(e._fromNumber=r._fromNumber-o,e._toNumber=0,e._numbers=lc(e._fromNumbers),e._number=0,r._fromNumber=o,e._toNumbers){const t=lc(e._toNumbers);t&&t.forEach((t,n)=>{e._fromNumbers[n]=r._fromNumbers[n]-t,e._toNumbers[n]=0}),r._fromNumbers=t}hc(t,e,null,"_prevAdd","_nextAdd")}return e},Hc=e=>{const t=e._composition;if(t!==su.none){const n=e.target,r=e.property,o=$c._rep.get(n)[r];if(dc(o,e,"_prevRep","_nextRep"),t===su.blend){const t=$c._add,o=t.get(n);if(!o)return;const i=o[r],s=yc.animation;dc(i,e,"_prevAdd","_nextAdd");const a=i._head;if(a&&a===i._tail){dc(i,a,"_prevAdd","_nextAdd"),dc(s,a);let e=!0;for(let t in o)if(o[t]._head){e=!1;break}e&&t.delete(n)}}}return e},qc=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),Yc=e=>e._cancelled?(e._hasChildren?pc(e,Yc):pc(e,e=>{e._composition!==su.none&&Wc(e,Bc(e.target,e.property))}),e._cancelled=0,e):e;let Gc=0;class Xc extends gc{constructor(e={},t=null,n=0){super(0);const{id:r,delay:o,duration:i,reversed:s,alternate:a,loop:u,loopDelay:c,autoplay:l,frameRate:f,playbackRate:p,onComplete:d,onLoop:h,onPause:g,onBegin:m,onBeforeUpdate:v,onUpdate:y}=e;Nu.scope&&Nu.scope.revertibles.push(this);const b=t?0:wc._elapsedTime,x=t?t.defaults:Nu.defaults,_=$u(o)||Bu(o)?x.delay:+o,w=$u(i)||Bu(i)?1/0:+i,E=Lc(u,x.loop),T=Lc(c,x.loopDelay),S=!0===E||E===1/0||E<0?1/0:E+1;let R=0;if(t)R=n;else{let e=Pu();wc.paused&&(wc.requestTick(e),e=wc._elapsedTime),R=e-wc._startTime}this.id=Bu(r)?++Gc:r,this.parent=t,this.duration=uc((w+T)*S-T)||pu,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=m||x.onBegin,this.onBeforeUpdate=v||x.onBeforeUpdate,this.onUpdate=y||x.onUpdate,this.onLoop=h||x.onLoop,this.onPause=g||x.onPause,this.onComplete=d||x.onComplete,this.iterationDuration=w,this.iterationCount=S,this._autoplay=!t&&Lc(l,x.autoplay),this._offset=R,this._delay=_,this._loopDelay=T,this._iterationTime=0,this._currentIteration=0,this._resolve=bu,this._running=!1,this._reversed=+Lc(s,x.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=Lc(a,x.alternate),this._prev=null,this._next=null,this._elapsedTime=b,this._startTime=b,this._lastTime=b,this._fps=Lc(f,x.frameRate),this._speed=Lc(p,x.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(1).play()}get currentTime(){return oc(sc(this._currentTime,Nu.precision),-this._delay,this.duration)}set currentTime(e){const t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return sc(this._iterationTime,Nu.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return oc(sc(this._currentTime/this.duration,5),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return oc(sc(this._iterationTime/this.iterationDuration,5),0,1)}set iterationProgress(e){const t=this.iterationDuration;this.currentTime=t*this._currentIteration+t*e}get currentIteration(){return this._currentIteration}set currentIteration(e){this.currentTime=this.iterationDuration*oc(+e,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(e){e?this.reverse():this.play()}get speed(){return super.speed}set speed(e){super.speed=e,this.resetTime()}reset(e=0){return Yc(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,vc(this,0,1,e,2),qc(this),this._hasChildren&&pc(this,qc),this}init(e=0){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&vc(this,this.duration,1,e,2),this.reset(e);const t=this._autoplay;return!0===t?this.resume():t&&!Bu(t.linked)&&t.link(this),this}resetTime(){const e=1/(this._speed*wc._speed);return this._startTime=Pu()-(this._currentTime+this._delay)*e,this}pause(){return this.paused||(this.paused=!0,this.onPause(this)),this}resume(){return this.paused?(this.paused=!1,this.duration<=pu&&!this._hasChildren?vc(this,pu,0,0,2):(this._running||(hc(wc,this),wc._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,wc.wake()),this):this}restart(){return this.reset(0).resume()}seek(e,t=0,n=0){Yc(this),this.completed=!1;const r=this.paused;return this.paused=!0,vc(this,e+this._delay,~~t,~~n,1),r?this:this.resume()}alternate(){const e=this._reversed,t=this.iterationCount,n=this.iterationDuration,r=t===1/0?ec(du/n):t;return this._reversed=+(!this._alternate||r%2?!e:e),t===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(n*r-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?pc(this,e=>e.cancel(),!0):pc(this,Hc),this._cancelled=1,this.pause()}stretch(e){const t=this.duration;if(t===cc(e))return this;const n=e/t,r=e<=pu;return this.duration=r?pu:cc(uc(sc(t*n,12))),this.iterationDuration=r?pu:cc(uc(sc(this.iterationDuration*n,12))),this._offset*=n,this._delay*=n,this._loopDelay*=n,this}revert(){vc(this,0,1,0,1);const e=this._autoplay;return e&&e.linked&&e.linked===this&&e.revert(),this.cancel()}complete(){return this.seek(this.duration).cancel()}then(e=bu){const t=this.then,n=()=>{this.then=null,e(this),this.then=t,this._resolve=bu};return new Promise(e=>(this._resolve=()=>e(n()),this.completed&&this._resolve(),this))}}const Vc=e=>e,Zc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Kc=(e=.5,t=0,n=.5,r=1)=>e===t&&n===r?Vc:o=>0===o||1===o?o:Zc(((e,t,n)=>{let r,o,i=0,s=1,a=0;do{o=i+(s-i)/2,r=Zc(o,t,n)-e,r>0?s=o:i=o}while(Ju(r)>1e-7&&++a<100);return o})(o,e,n),t,r),Jc=(e=10,t)=>{const n=t?Qu:ec;return t=>n(oc(t,0,1)*e)*(1/e)},Qc=(...e)=>{const t=e.length;if(!t)return Vc;const n=t-1,r=e[0],o=e[n],i=[0],s=[Gu(r)];for(let t=1;t<n;t++){const r=e[t],o=Mu(r)?r.trim().split(" "):[r],a=o[0],u=o[1];i.push(Bu(u)?t/n:Gu(u)/100),s.push(Gu(a))}return s.push(Gu(o)),i.push(1),function(e){for(let t=1,n=i.length;t<n;t++){const n=i[t];if(e<=n){const r=i[t-1],o=s[t-1];return o+(s[t]-o)*(e-r)/(n-r)}}return s[s.length-1]}},el=(e=10,t=1)=>{const n=[0],r=e-1;for(let e=1;e<r;e++){const o=n[e-1],i=e/r,s=i*(1-t)+(i+((e+1)/r-i)*Math.random())*t;n.push(oc(s,o,1))}return n.push(1),Qc(...n)},tl=nc/2,nl=2*nc,rl=(e=1.68)=>t=>Xu(t,+e),ol={[gu]:rl,Quad:rl(2),Cubic:rl(3),Quart:rl(4),Quint:rl(5),Sine:e=>1-Ku(e*tl),Circ:e=>1-Vu(1-e*e),Expo:e=>e?Xu(2,10*e-10):0,Bounce:e=>{let t,n=4;for(;e<((t=Xu(2,--n))-1)/11;);return 1/Xu(4,3-n)-7.5625*Xu((3*t-2)/22-e,2)},Back:(e=1.70158)=>t=>(+e+1)*t*t*t-+e*t*t,Elastic:(e=1,t=.3)=>{const n=oc(+e,1,10),r=oc(+t,pu,2),o=r/nl*tc(1/n),i=nl/r;return e=>0===e||1===e?e:-n*Xu(2,-10*(1-e))*Zu((1-e-o)*i)}},il={in:e=>t=>e(t),out:e=>t=>1-e(1-t),inOut:e=>t=>t<.5?e(2*t)/2:1-e(-2*t+2)/2,outIn:e=>t=>t<.5?(1-e(1-2*t))/2:(e(2*t-1)+1)/2},sl=(()=>{const e={linear:Qc,irregular:el,steps:Jc,cubicBezier:Kc};for(let t in il)for(let n in ol){const r=ol[n],o=il[t];e[t+n]=n===gu||"Back"===n||"Elastic"===n?(e,t)=>o(r(e,t)):o(r)}return e})(),al={linear:Vc},ul=e=>$u(e)?e:Mu(e)?((e,t,n)=>{if(n[e])return n[e];if(e.indexOf("(")<=-1){const r=il[e]||e.includes("Back")||e.includes("Elastic")?t[e]():t[e];return r?n[e]=r:Vc}{const r=e.slice(0,-1).split("("),o=t[r[0]];return o?n[e]=o(...r[1].split(",")):Vc}})(e,sl,al):Vc,cl={},ll=(e,t,n)=>{if(3===n){return mu.get(e)||e}if(2===n||1===n&&Fu(t)&&e in t.style){const t=cl[e];if(t)return t;{const t=e?e.replace(Au,"$1-$2").toLowerCase():e;return cl[e]=t,t}}return e},fl={deg:1,rad:180/nc,turn:360},pl={},dl=(e,t,n,r=!1)=>{const o=t.u,i=t.n;if(1===t.t&&o===n)return t;const s=i+o+n,a=pl[s];if(Bu(a)||r){let r;if(o in fl)r=i*fl[o]/fl[n];else{const t=100,s=e.cloneNode(),a=e.parentNode,u=a&&a!==iu?a:iu.body;u.appendChild(s);const c=s.style;c.width=t+o;const l=s.offsetWidth||t;c.width=t+n;const f=l/(s.offsetWidth||t);u.removeChild(s),r=f*i}t.n=r,pl[s]=r}else t.n=a;return t.t,t.u=n,t},hl=e=>{if(e._hasChildren)pc(e,hl,!0);else{const t=e;t.pause(),pc(t,e=>{const n=e.property,r=e.target;if(r[uu]){const o=r.style,i=t._inlineStyles[n];if(3===e._tweenType){const t=r[lu];if(Bu(i)||i===gu?delete t[n]:t[n]=i,e._renderTransforms)if(Object.keys(t).length){let e=gu;for(let n in t)e+=yu[n]+t[n]+") ";o.transform=e}else o.removeProperty("transform")}else Bu(i)||i===gu?o.removeProperty(n):o[n]=i;t._tail===e&&t.targets.forEach(e=>{e.getAttribute&&e.getAttribute("style")===gu&&e.removeAttribute("style")})}})}return e},gl={t:0,n:0,u:null,o:null,d:null,s:null},ml={t:0,n:0,u:null,o:null,d:null,s:null},vl={func:null},yl=[null],bl=[null,null],xl={to:null};let _l,wl,El=0;class Tl extends Xc{constructor(e,t,n,r,o=!1,i=0,s=0){super(t,n,r);const a=Ac(e),u=a.length,c=t.keyframes,l=c?fc(((e,t)=>{const n={};if(ju(e)){const t=[].concat(...e.map(e=>Object.keys(e))).filter(Yu);for(let r=0,o=t.length;r<o;r++){const o=t[r],i=e.map(e=>{const t={};for(let n in e){const r=e[n];Yu(n)?n===o&&(t.to=r):t[n]=r}return t});n[o]=i}}else{const r=Lc(t.duration,Nu.defaults.duration),o=Object.keys(e).map(t=>({o:parseFloat(t)/100,p:e[t]})).sort((e,t)=>e.o-t.o);o.forEach(e=>{const t=e.o,o=e.p;for(let e in o)if(Yu(e)){let i=n[e];i||(i=n[e]=[]);const s=t*r;let a=i.length,u=i[a-1];const c={to:o[e]};let l=0;for(let e=0;e<a;e++)l+=i[e].duration;1===a&&(c.from=u.to),o.ease&&(c.ease=o.ease),c.duration=s-(a?l:0),i.push(c)}return e});for(let e in n){const t=n[e];let r;for(let e=0,n=t.length;e<n;e++){const n=t[e],o=n.ease;n.ease=r||void 0,r=o}t[0].duration||t.shift()}}return n})(c,t),t):t,{delay:f,duration:p,ease:d,playbackEase:h,modifier:g,composition:m,onRender:v}=l,y=n?n.defaults:Nu.defaults,b=Lc(h,y.playbackEase),x=b?ul(b):null,_=!Bu(d)&&!Bu(d.ease),w=_?d.ease:Lc(d,x?"linear":y.ease),E=_?d.duration:Lc(p,y.duration),T=Lc(f,y.delay),S=g||y.modifier,R=Bu(m)&&u>=hu?su.none:Bu(m)?y.composition:m,A={},O=this._offset+(n?n._offset:0);let I=NaN,L=NaN,N=0,C=0;for(let e=0;e<u;e++){const t=a[e],r=i||e,c=s||u;let f=NaN,p=NaN;for(let e in l)if(Yu(e)){const i=Cc(t,e),s=ll(e,t,i);let a=l[e];const u=ju(a);if(o&&!u&&(bl[0]=a,bl[1]=a,a=bl),u){const e=a.length,t=!Du(a[0]);2===e&&t?(xl.to=a,yl[0]=xl,_l=yl):e>2&&t?(_l=[],a.forEach((e,t)=>{t?1===t?(bl[1]=e,_l.push(bl)):_l.push(e):bl[0]=e})):_l=a}else yl[0]=a,_l=yl;let d=null,h=null,g=NaN,m=0,v=0;for(let e=_l.length;v<e;v++){const o=_l[v];Du(o)?wl=o:(xl.to=o,wl=xl),vl.func=null;const a=Nc(wl.to,t,r,c,vl);let u;Du(a)&&!Bu(a.to)?(wl=a,u=a.to):u=a;const l=Nc(wl.from,t,r,c),f=wl.ease,p=!Bu(f)&&!Bu(f.ease),y=p?f.ease:f||w,b=p?f.duration:Nc(Lc(wl.duration,e>1?Nc(E,t,r,c)/e:E),t,r,c),x=Nc(Lc(wl.delay,v?0:T),t,r,c),_=Nc(Lc(wl.composition,R),t,r,c),I=zu(_)?_:su[_],L=wl.modifier||S,k=!Bu(l),P=!Bu(u),j=ju(u),D=j||k&&P,z=h?m+x:x,M=O+z;C||!k&&!j||(C=1);let $=h;if(I!==su.none){d||(d=Bc(t,s));let e=d._head;for(;e&&!e._isOverridden&&e._absoluteStartTime<=M;)if($=e,e=e._nextRep,e&&e._absoluteStartTime>=M)for(;e;)Fc(e),e=e._nextRep}if(D?(Dc(j?Nc(u[0],t,r,c):l,gl),Dc(j?Nc(u[1],t,r,c,vl):u,ml),0===gl.t&&($?1===$._valueType&&(gl.t=1,gl.u=$._unit):(Dc(Pc(t,s,i,A),Mc),1===Mc.t&&(gl.t=1,gl.u=Mc.u)))):(P?Dc(u,ml):h?zc(h,ml):Dc(n&&$&&$.parent.parent===n?$._value:Pc(t,s,i,A),ml),k?Dc(l,gl):h?zc(h,gl):Dc(n&&$&&$.parent.parent===n?$._value:Pc(t,s,i,A),gl)),gl.o&&(gl.n=jc($?$._toNumber:Dc(Pc(t,s,i,A),Mc).n,gl.n,gl.o)),ml.o&&(ml.n=jc(gl.n,ml.n,ml.o)),gl.t!==ml.t)if(3===gl.t||3===ml.t){const e=3===gl.t?gl:ml,t=3===gl.t?ml:gl;t.t=3,t.s=lc(e.s),t.d=e.d.map(()=>t.n)}else if(1===gl.t||1===ml.t){const e=1===gl.t?gl:ml,t=1===gl.t?ml:gl;t.t=1,t.u=e.u}else if(2===gl.t||2===ml.t){const e=2===gl.t?gl:ml,t=2===gl.t?ml:gl;t.t=2,t.s=e.s,t.d=[0,0,0,1]}if(gl.u!==ml.u){let e=ml.u?gl:ml;e=dl(t,e,ml.u?ml.u:gl.u,!1)}if(ml.d&&gl.d&&ml.d.length!==gl.d.length){const e=gl.d.length>ml.d.length?gl:ml,t=e===gl?ml:gl;t.d=e.d.map((e,n)=>Bu(t.d[n])?0:t.d[n]),t.s=lc(e.s)}const B=sc(+b||pu,12),U={parent:this,id:El++,property:s,target:t,_value:null,_func:vl.func,_ease:ul(y),_fromNumbers:lc(gl.d),_toNumbers:lc(ml.d),_strings:lc(ml.s),_fromNumber:gl.n,_toNumber:ml.n,_numbers:lc(gl.d),_number:gl.n,_unit:ml.u,_modifier:L,_currentTime:0,_startTime:z,_delay:+x,_updateDuration:B,_changeDuration:B,_absoluteStartTime:M,_tweenType:i,_valueType:ml.t,_composition:I,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};I!==su.none&&Wc(U,d),isNaN(g)&&(g=U._startTime),m=sc(z+B,12),h=U,N++,hc(this,U)}(isNaN(L)||g<L)&&(L=g),(isNaN(I)||m>I)&&(I=m),3===i&&(f=N-v,p=N)}if(!isNaN(f)){let e=0;pc(this,t=>{e>=f&&e<p&&(t._renderTransforms=1,t._composition===su.blend&&pc(yc.animation,e=>{e.id===t.id&&(e._renderTransforms=1)})),e++})}}u||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),L?(pc(this,e=>{e._startTime-e._delay||(e._delay-=L),e._startTime-=L}),I-=L):L=0,I||(I=pu,this.iterationCount=0),this.targets=a,this.duration=I===pu?pu:uc((I+this._loopDelay)*this.iterationCount-this._loopDelay)||pu,this.onRender=v||y.onRender,this._ease=x,this._delay=L,this.iterationDuration=I,this._inlineStyles=A,!this._autoplay&&C&&this.onRender(this)}stretch(e){const t=this.duration;if(t===cc(e))return this;const n=e/t;return pc(this,e=>{e._updateDuration=cc(sc(e._updateDuration*n,12)),e._changeDuration=cc(sc(e._changeDuration*n,12)),e._currentTime*=n,e._startTime*=n,e._absoluteStartTime*=n}),super.stretch(e)}refresh(){return pc(this,e=>{const t=Pc(e.target,e.property,e._tweenType);Dc(t,Mc),e._fromNumbers=lc(Mc.d),e._fromNumber=Mc.n,e._func&&(Dc(e._func(),ml),e._toNumbers=lc(ml.d),e._strings=lc(ml.s),e._toNumber=ml.n)}),this}revert(){return super.revert(),hl(this)}then(e){return super.then(e)}}vu.filter(e=>["X","Y","Z"].some(t=>e.endsWith(t))),ru&&(Bu(CSS)||Object.hasOwnProperty.call(CSS,"registerProperty"));const Sl={_head:null,_tail:null},Rl=(e,t,n)=>{let r=Sl._head;for(;r;){const o=r._next,i=r.$el===e,s=!t||r.property===t,a=!n||r.parent===n;if(i&&s&&a){const e=r.animation;try{e.commitStyles()}catch{}e.cancel(),dc(Sl,r);const t=r.parent;t&&(t._completed++,t.animations.length===t._completed&&(t.completed=!0,t.muteCallbacks||(t.paused=!0,t.onComplete(t),t._resolve(t))))}r=o}},Al=(e=bu)=>new Xc({duration:1*Nu.timeScale,onComplete:e},null,0).resume();function Ol(e,t,n){const r=Ac(e);if(!r.length)return;const[o]=r,i=Cc(o,t),s=ll(t,o,i);let a=Pc(o,s);if(Bu(n))return a;if(Dc(a,Mc),0===Mc.t||1===Mc.t){if(!1===n)return Mc.n;{const e=dl(o,Mc,n,!1);return`${sc(e.n,Nu.precision)}${e.u}`}}}const Il=(e,t)=>{if(!Bu(t))return t.duration=pu,t.composition=Lc(t.composition,su.none),new Tl(e,t,null,0,!0).resume()},Ll=(e,t,n)=>{let r=!1;return pc(t,o=>{const i=o.target;if(e.includes(i)){const e=o.property,s=o._tweenType,a=ll(n,i,s);(!a||a&&a===e)&&(o.parent._tail===o&&3===o._tweenType&&o._prev&&3===o._prev._tweenType&&(o._prev._renderTransforms=1),dc(t,o),Hc(o),r=!0)}},!0),r},Nl=(e,t,n)=>{const r=Rc(e),o=t||wc,i=t&&t.controlAnimation&&t;for(let e=0,t=r.length;e<t;e++){const t=r[e];Rl(t,n,i)}let s;if(o._hasChildren){let t=0;pc(o,i=>{if(!i._hasChildren)if(s=Ll(r,i,n),s&&!i._head)i.cancel(),dc(o,i);else{const e=i._offset+i._delay+i.duration;e>t&&(t=e)}i._head?Nl(e,i,n):i._hasChildren=!1},!0),Bu(o.iterationDuration)||(o.iterationDuration=t)}else s=Ll(r,o,n);return s&&!o._head&&(o._hasChildren=!1,o.cancel&&o.cancel()),r},Cl=(e,t,n)=>{const r=10**(n||0);return ec((Math.random()*(t-e+1/r)+e)*r)/r},kl=(e,t,n,r)=>{let o=hu/Nu.defaults.frameRate;if(!1!==r){const e=r||wc._hasChildren&&wc;e&&e.deltaTime&&(o=e.deltaTime)}const i=1-Math.exp(-n*o*.1);return n?1===n?t:(1-i)*e+i*t:e},Pl=e=>(...t)=>{const n=e(...t);return new Proxy(bu,{apply:(e,t,[r])=>n(r),get:(e,t)=>Pl((...e)=>{const r=Dl[t](...e);return e=>r(n(e))})})},jl=(e,t=0)=>(...n)=>(n.length<e.length?Pl(((e,t=0)=>(...n)=>t?t=>e(...n,t):t=>e(t,...n))(e,t)):e)(...n),Dl={$:Ac,get:Ol,set:Il,remove:Nl,cleanInlineStyles:hl,random:Cl,randomPick:e=>e[Cl(0,e.length-1)],shuffle:e=>{let t,n,r=e.length;for(;r;)n=Cl(0,--r),t=e[r],e[r]=e[n],e[n]=t;return e},lerp:kl,sync:Al,clamp:jl(oc),round:jl(sc),snap:jl((e,t)=>ju(t)?t.reduce((t,n)=>Ju(n-e)<Ju(t-e)?n:t):t?rc(e/t)*t:e),wrap:jl((e,t,n)=>((e-t)%(n-t)+(n-t))%(n-t)+t),interpolate:jl(ac,1),mapRange:jl((e,t,n,r,o)=>r+(e-t)/(n-t)*(o-r)),roundPad:jl((e,t)=>(+e).toFixed(t)),padStart:jl((e,t,n)=>`${e}`.padStart(t,n)),padEnd:jl((e,t,n)=>`${e}`.padEnd(t,n)),degToRad:jl(e=>e*nc/180),radToDeg:jl(e=>180*e/nc)},zl=(e,t)=>{let n=e.iterationDuration;if(n===pu&&(n=0),Bu(t))return n;if(zu(+t))return+t;const r=t,o=e?e.labels:null,i=!Uu(o),s=((e,t)=>{if(ku(t,"<")){const n="<"===t[1],r=e._tail,o=r?r._offset+r._delay:0;return n?o:o+r.duration}})(e,r),a=!Bu(s),u=Iu.exec(r);if(u){const e=u[0],t=r.split(e),c=i&&t[0]?o[t[0]]:n,l=a?s:i?c:n,f=+t[1];return jc(l,f,e[0])}return a?s:i?Bu(o[r])?n:o[r]:n};function Ml(e,t,n,r,o,i){const s=zu(e.duration)&&e.duration<=pu?n-pu:n;vc(t,s,1,1,1);const a=r?new Tl(r,e,t,s,!1,o,i):new Xc(e,t,s);return a.init(1),hc(t,a),pc(t,e=>{const n=e._offset+e._delay+e.duration;n>t.iterationDuration&&(t.iterationDuration=n)}),t.duration=function(e){return uc((e.iterationDuration+e._loopDelay)*e.iterationCount-e._loopDelay)||pu}(t),t}class $l extends Xc{constructor(e={}){super(e,null,0),this.duration=0,this.labels={};const t=e.defaults,n=Nu.defaults;this.defaults=t?fc(t,n):n,this.onRender=e.onRender||n.onRender;const r=Lc(e.playbackEase,n.playbackEase);this._ease=r?ul(r):null,this.iterationDuration=0}add(e,t,n){const r=Du(t),o=Du(e);if(r||o){if(this._hasChildren=!0,r){const r=t;if($u(n)){const t=n,o=Rc(e),i=this.duration,s=this.iterationDuration,a=r.id;let u=0;const c=o.length;o.forEach(e=>{const n={...r};this.duration=i,this.iterationDuration=s,Bu(a)||(n.id=a+"-"+u),Ml(n,this,t(e,u,c,this),e,u,c),u++})}else Ml(r,this,zl(this,n),e)}else Ml(e,this,zl(this,t));return this.init(1)}}sync(e,t){if(Bu(e)||e&&Bu(e.pause))return this;e.pause();const n=+(e.effect?e.effect.getTiming().duration:e.duration);return this.add(e,{currentTime:[0,n],duration:n,ease:"linear"},t)}set(e,t,n){return Bu(t)?this:(t.duration=pu,t.composition=su.replace,this.add(e,t,n))}call(e,t){return Bu(e)||e&&!$u(e)?this:this.add({duration:0,onComplete:()=>e(this)},t)}label(e,t){return Bu(e)||e&&!Mu(e)||(this.labels[e]=zl(this,t)),this}remove(e,t){return Nl(e,this,t),this}stretch(e){const t=this.duration;if(t===cc(e))return this;const n=e/t,r=this.labels;pc(this,e=>{e.stretch(e.duration*n)});for(let e in r)r[e]*=n;return super.stretch(e)}refresh(){return pc(this,e=>{e.refresh&&e.refresh()}),this}revert(){return super.revert(),pc(this,e=>e.revert,!0),hl(this)}then(e){return super.then(e)}}const Bl=(e,t)=>e&&$u(e)?e(t):e,Ul=new Map;class Fl{constructor(e){this.element=e,this.useWin=this.element===iu.body,this.winWidth=0,this.winHeight=0,this.width=0,this.height=0,this.left=0,this.top=0,this.zIndex=0,this.scrollX=0,this.scrollY=0,this.prevScrollX=0,this.prevScrollY=0,this.scrollWidth=0,this.scrollHeight=0,this.velocity=0,this.backwardX=!1,this.backwardY=!1,this.scrollTicker=new Xc({autoplay:!1,onBegin:()=>this.dataTimer.resume(),onUpdate:()=>{const e=this.backwardX||this.backwardY;pc(this,e=>e.handleScroll(),e)},onComplete:()=>this.dataTimer.pause()}).init(),this.dataTimer=new Xc({autoplay:!1,frameRate:30,onUpdate:e=>{const t=e.deltaTime,n=this.prevScrollX,r=this.prevScrollY,o=this.scrollX,i=this.scrollY,s=n-o,a=r-i;this.prevScrollX=o,this.prevScrollY=i,s&&(this.backwardX=n>o),a&&(this.backwardY=r>i),this.velocity=sc(t>0?Math.sqrt(s*s+a*a)/t:0,5)}}).init(),this.resizeTicker=new Xc({autoplay:!1,duration:250*Nu.timeScale,onComplete:()=>{this.updateWindowBounds(),this.refreshScrollObservers(),this.handleScroll()}}).init(),this.wakeTicker=new Xc({autoplay:!1,duration:500*Nu.timeScale,onBegin:()=>{this.scrollTicker.resume()},onComplete:()=>{this.scrollTicker.pause()}}).init(),this._head=null,this._tail=null,this.updateScrollCoords(),this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll(),this.resizeObserver=new ResizeObserver(()=>this.resizeTicker.restart()),this.resizeObserver.observe(this.element),(this.useWin?ou:this.element).addEventListener("scroll",this,!1)}updateScrollCoords(){const e=this.useWin,t=this.element;this.scrollX=sc(e?ou.scrollX:t.scrollLeft,0),this.scrollY=sc(e?ou.scrollY:t.scrollTop,0)}updateWindowBounds(){this.winWidth=ou.innerWidth,this.winHeight=(()=>{const e=document.createElement("div");iu.body.appendChild(e),e.style.height="100lvh";const t=e.offsetHeight;return iu.body.removeChild(e),t})()}updateBounds(){const e=getComputedStyle(this.element),t=this.element;let n,r;if(this.scrollWidth=t.scrollWidth+parseFloat(e.marginLeft)+parseFloat(e.marginRight),this.scrollHeight=t.scrollHeight+parseFloat(e.marginTop)+parseFloat(e.marginBottom),this.updateWindowBounds(),this.useWin)n=this.winWidth,r=this.winHeight;else{const e=t.getBoundingClientRect();n=e.width,r=e.height,this.top=e.top,this.left=e.left}this.width=n,this.height=r}refreshScrollObservers(){pc(this,e=>{e._debug&&e.removeDebug()}),this.updateBounds(),pc(this,e=>{e.refresh(),e._debug&&e.debug()})}refresh(){this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll()}handleScroll(){this.updateScrollCoords(),this.wakeTicker.restart()}handleEvent(e){"scroll"===e.type&&this.handleScroll()}revert(){this.scrollTicker.cancel(),this.dataTimer.cancel(),this.resizeTicker.cancel(),this.wakeTicker.cancel(),this.resizeObserver.unobserve(this.element),(this.useWin?ou:this.element).removeEventListener("scroll",this),Ul.delete(this.element)}}const Wl=(e,t,n,r,o)=>{const i="min"===t,s="max"===t,a="top"===t||"left"===t||"start"===t||i?0:"bottom"===t||"right"===t||"end"===t||s?"100%":"center"===t?"50%":t,{n:u,u:c}=Dc(a,Mc);let l=u;return"%"===c?l=u/100*n:c&&(l=dl(e,Mc,"px",!0).n),s&&r<0&&(l+=r),i&&o>0&&(l+=o),l},Hl=(e,t,n,r,o)=>{let i;if(Mu(t)){const s=Iu.exec(t);if(s){const a=s[0],u=a[0],c=t.split(a),l="min"===c[0],f="max"===c[0],p=Wl(e,c[0],n,r,o),d=Wl(e,c[1],n,r,o);if(l){const t=jc(Wl(e,"min",n),d,u);i=t<p?p:t}else if(f){const t=jc(Wl(e,"max",n),d,u);i=t>p?p:t}else i=jc(p,d,u)}else i=Wl(e,t,n,r,o)}else i=t;return sc(i,0)},ql=e=>{let t;const n=e.targets;for(let e=0,r=n.length;e<r;e++){const r=n[e];if(r[uu]){t=r;break}}return t};let Yl=0;const Gl=["#FF4B4B","#FF971B","#FFC730","#F9F640","#7AFF5A","#18FF74","#17E09B","#3CFFEC","#05DBE9","#33B3F1","#638CF9","#C563FE","#FF4FCF","#F93F8A"];class Xl{constructor(e={}){Nu.scope&&Nu.scope.revertibles.push(this);const t=Lc(e.sync,"play pause"),n=t?ul(t):null,r=t&&("linear"===t||t===Vc),o=t&&!(n===Vc&&!r),i=t&&(zu(t)||!0===t||r),s=t&&Mu(t)&&!o&&!i,a=s?t.split(" ").map(e=>()=>{const t=this.linked;return t&&t[e]?t[e]():null}):null,u=s&&a.length>2;this.index=Yl++,this.id=Bu(e.id)?this.index:e.id,this.container=(e=>{const t=e&&Rc(e)[0]||iu.body;let n=Ul.get(t);return n||(n=new Fl(t),Ul.set(t,n)),n})(e.container),this.target=null,this.linked=null,this.repeat=null,this.horizontal=null,this.enter=null,this.leave=null,this.sync=o||i||!!a,this.syncEase=o?n:null,this.syncSmooth=i?!0===t||r?1:t:null,this.onSyncEnter=a&&!u&&a[0]?a[0]:bu,this.onSyncLeave=a&&!u&&a[1]?a[1]:bu,this.onSyncEnterForward=a&&u&&a[0]?a[0]:bu,this.onSyncLeaveForward=a&&u&&a[1]?a[1]:bu,this.onSyncEnterBackward=a&&u&&a[2]?a[2]:bu,this.onSyncLeaveBackward=a&&u&&a[3]?a[3]:bu,this.onEnter=e.onEnter||bu,this.onLeave=e.onLeave||bu,this.onEnterForward=e.onEnterForward||bu,this.onLeaveForward=e.onLeaveForward||bu,this.onEnterBackward=e.onEnterBackward||bu,this.onLeaveBackward=e.onLeaveBackward||bu,this.onUpdate=e.onUpdate||bu,this.onSyncComplete=e.onSyncComplete||bu,this.reverted=!1,this.completed=!1,this.began=!1,this.isInView=!1,this.forceEnter=!1,this.hasEntered=!1,this.offsets=[],this.offset=0,this.offsetStart=0,this.offsetEnd=0,this.distance=0,this.prevProgress=0,this.thresholds=["start","end","end","start"],this.coords=[0,0,0,0],this.debugStyles=null,this.$debug=null,this._params=e,this._debug=Lc(e.debug,!1),this._next=null,this._prev=null,hc(this.container,this),Al(()=>{if(!this.reverted){if(!this.target){const t=Rc(e.target)[0];this.target=t||iu.body,this.refresh()}this._debug&&this.debug()}})}link(e){if(e&&(e.pause(),this.linked=e,!this._params.target)){let t;Bu(e.targets)?pc(e,e=>{e.targets&&!t&&(t=ql(e))}):t=ql(e),this.target=t||iu.body,this.refresh()}return this}get velocity(){return this.container.velocity}get backward(){return this.horizontal?this.container.backwardX:this.container.backwardY}get scroll(){return this.horizontal?this.container.scrollX:this.container.scrollY}get progress(){const e=(this.scroll-this.offsetStart)/this.distance;return e===1/0||isNaN(e)?0:sc(oc(e,0,1),6)}refresh(){this.reverted=!1;const e=this._params;return this.repeat=Lc(Bl(e.repeat,this),!0),this.horizontal="x"===Lc(Bl(e.axis,this),"y"),this.enter=Lc(Bl(e.enter,this),"end start"),this.leave=Lc(Bl(e.leave,this),"start end"),this.updateBounds(),this.handleScroll(),this}removeDebug(){return this.$debug&&(this.$debug.parentNode.removeChild(this.$debug),this.$debug=null),this.debugStyles&&(this.debugStyles.revert(),this.$debug=null),this}debug(){this.removeDebug();const e=this.container,t=this.horizontal,n=e.element.querySelector(":scope > .animejs-onscroll-debug"),r=iu.createElement("div"),o=iu.createElement("div"),i=iu.createElement("div"),s=Gl[this.index%Gl.length],a=e.useWin,u=a?e.winWidth:e.width,c=a?e.winHeight:e.height,l=e.scrollWidth,f=e.scrollHeight,p=this.container.width>360?320:260,d=t?0:10,h=t?10:0,g=t?24:p/2,m=t?g:15,v=t?60:g,y=t?v:m,b=t?"repeat-x":"repeat-y",x=e=>t?"0px "+e+"px":e+"px 2px",_=e=>`linear-gradient(${t?90:0}deg, ${e} 2px, transparent 1px)`,w=(e,t,n,r,o)=>`position:${e};left:${t}px;top:${n}px;width:${r}px;height:${o}px;`;r.style.cssText=`${w("absolute",d,h,t?l:p,t?p:f)}\n pointer-events: none;\n z-index: ${this.container.zIndex++};\n display: flex;\n flex-direction: ${t?"column":"row"};\n filter: drop-shadow(0px 1px 0px rgba(0,0,0,.75));\n `,o.style.cssText=`${w("sticky",0,0,t?u:g,t?g:c)}`,n||(o.style.cssText+=`background:\n ${_("#FFFF")}${x(g-10)} / 100px 100px ${b},\n ${_("#FFF8")}${x(g-10)} / 10px 10px ${b};\n `),i.style.cssText=`${w("relative",0,0,t?l:g,t?g:f)}`,n||(i.style.cssText+=`background:\n ${_("#FFFF")}${x(0)} / ${t?"100px 10px":"10px 100px"} ${b},\n ${_("#FFF8")}${x(0)} / ${t?"10px 0px":"0px 10px"} ${b};\n `);const E=[" enter: "," leave: "];this.coords.forEach((e,n)=>{const r=n>1,a=(r?0:this.offset)+e,d=n%2,h=a<y,g=a>(r?t?u:c:t?l:f)-y,b=(r?d&&!h:!d&&!h)||g,x=iu.createElement("div"),_=iu.createElement("div"),T=t?b?"right":"left":b?"bottom":"top",S=b?(t?v:m)+(r?t?-1:g?0:-2:t?-1:-2):t?1:0;_.innerHTML=`${this.id}${E[d]}${this.thresholds[n]}`,x.style.cssText=`${w("absolute",0,0,v,m)}\n display: flex;\n flex-direction: ${t?"column":"row"};\n justify-content: flex-${r?"start":"end"};\n align-items: flex-${b?"end":"start"};\n border-${T}: 2px solid ${s};\n `,_.style.cssText=`\n overflow: hidden;\n max-width: ${p/2-10}px;\n height: ${m};\n margin-${t?b?"right":"left":b?"bottom":"top"}: -2px;\n padding: 1px;\n font-family: ui-monospace, monospace;\n font-size: 10px;\n letter-spacing: -.025em;\n line-height: 9px;\n font-weight: 600;\n text-align: ${t&&b||!t&&!r?"right":"left"};\n white-space: pre;\n text-overflow: ellipsis;\n color: ${d?s:"rgba(0,0,0,.75)"};\n background-color: ${d?"rgba(0,0,0,.65)":s};\n border: 2px solid ${d?s:"transparent"};\n border-${t?b?"top-left":"top-right":b?"top-left":"bottom-left"}-radius: 5px;\n border-${t?b?"bottom-left":"bottom-right":b?"top-right":"bottom-right"}-radius: 5px;\n `,x.appendChild(_);let R=a-S+(t?1:0);x.style[t?"left":"top"]=`${R}px`,(r?o:i).appendChild(x)}),r.appendChild(o),r.appendChild(i),e.element.appendChild(r),n||r.classList.add("animejs-onscroll-debug"),this.$debug=r,"static"===Ol(e.element,"position")&&(this.debugStyles=Il(e.element,{position:"relative "}))}updateBounds(){let e;this._debug&&this.removeDebug();const t=this.target,n=this.container,r=this.horizontal,o=this.linked;let i,s=t,a=0,u=0,c=s;o&&(i=o.currentTime,o.seek(0,!0));const l="static"===Ol(n.element,"position")&&Il(n.element,{position:"relative "});for(;s&&s!==n.element&&s!==iu.body;){const t="sticky"===Ol(s,"position")&&Il(s,{position:"static"});s===c&&(a+=s.offsetLeft||0,u+=s.offsetTop||0,c=s.offsetParent),s=s.parentElement,t&&(e||(e=[]),e.push(t))}l&&l.revert();const f=r?a:u,p=r?t.offsetWidth:t.offsetHeight,d=r?n.width:n.height,h=(r?n.scrollWidth:n.scrollHeight)-d,g=this.enter,m=this.leave;let v="start",y="end",b="end",x="start";if(Mu(g)){const e=g.split(" ");b=e[0],v=e.length>1?e[1]:v}else if(Du(g)){const e=g;Bu(e.container)||(b=e.container),Bu(e.target)||(v=e.target)}else zu(g)&&(b=g);if(Mu(m)){const e=m.split(" ");x=e[0],y=e.length>1?e[1]:y}else if(Du(m)){const e=m;Bu(e.container)||(x=e.container),Bu(e.target)||(y=e.target)}else zu(m)&&(x=m);const _=Hl(t,v,p),w=Hl(t,y,p),E=_+f-d,T=w+f-h,S=Hl(t,b,d,E,T),R=Hl(t,x,d,E,T),A=_+f-S,O=w+f-R,I=O-A;this.offsets[0]=a,this.offsets[1]=u,this.offset=f,this.offsetStart=A,this.offsetEnd=O,this.distance=I<=0?0:I,this.thresholds=[v,y,b,x],this.coords=[_,w,S,R],e&&e.forEach(e=>e.revert()),o&&o.seek(i,!0),this._debug&&this.debug()}handleScroll(){const e=this.linked,t=this.sync,n=this.syncEase,r=this.syncSmooth,o=e&&(n||r),i=this.horizontal,s=this.container,a=this.scroll,u=a<=this.offsetStart,c=a>=this.offsetEnd,l=!u&&!c,f=a===this.offsetStart||a===this.offsetEnd,p=!this.hasEntered&&f,d=this._debug&&this.$debug;let h=!1,g=!1,m=this.progress;if(u&&this.began&&(this.began=!1),m>0&&!this.began&&(this.began=!0),o){const t=e.progress;if(r&&zu(r)){if(r<1){const e=t<m&&1===m?1e-4:t>m&&!m?-1e-4:0;m=sc(kl(t,m,ac(.01,.2,r),!1)+e,6)}}else n&&(m=n(m));h=m!==this.prevProgress,g=1===t,h&&!g&&r&&t&&s.wakeTicker.restart()}if(d){const e=i?s.scrollY:s.scrollX;d.style[i?"top":"left"]=e+10+"px"}(l&&!this.isInView||p&&!this.forceEnter&&!this.hasEntered)&&(l&&(this.isInView=!0),this.forceEnter&&this.hasEntered?l&&(this.forceEnter=!1):(d&&l&&(d.style.zIndex=""+this.container.zIndex++),this.onSyncEnter(this),this.onEnter(this),this.backward?(this.onSyncEnterBackward(this),this.onEnterBackward(this)):(this.onSyncEnterForward(this),this.onEnterForward(this)),this.hasEntered=!0,p&&(this.forceEnter=!0))),(l||!l&&this.isInView)&&(h=!0),h&&(o&&e.seek(e.duration*m),this.onUpdate(this)),!l&&this.isInView&&(this.isInView=!1,this.onSyncLeave(this),this.onLeave(this),this.backward?(this.onSyncLeaveBackward(this),this.onLeaveBackward(this)):(this.onSyncLeaveForward(this),this.onLeaveForward(this)),t&&!r&&(g=!0)),m>=1&&this.began&&!this.completed&&(t&&g||!t)&&(t&&this.onSyncComplete(this),this.completed=!0,(!this.repeat&&!e||!this.repeat&&e&&e.completed)&&this.revert()),m<1&&this.completed&&(this.completed=!1),this.prevProgress=m}revert(){if(this.reverted)return;const e=this.container;return dc(e,this),e._head||e.revert(),this._debug&&this.removeDebug(),this.reverted=!0,this}}const Vl=(e={})=>new Xl(e);var Zl,Kl,Jl,Ql,ef,tf,nf,rf,of,sf,af;!function(e){e[e.XY=1]="XY",e[e.SIZE=2]="SIZE"}(ef||(ef={})),function(e){e[e.ALL=1]="ALL",e[e.SEPARATE=2]="SEPARATE"}(tf||(tf={})),function(e){e[e.X=1]="X",e[e.Y=2]="Y"}(nf||(nf={})),function(e){e[e.AUTOPLAY=1]="AUTOPLAY",e[e.SCROLL_SYNC=2]="SCROLL_SYNC",e[e.STATES=3]="STATES",e[e.NONE=4]="NONE"}(rf||(rf={})),function(e){e[e.FIXED=1]="FIXED",e[e.RELATIVE=2]="RELATIVE"}(of||(of={})),function(e){e[e.APPEAR=1]="APPEAR",e[e.MOUNT=2]="MOUNT"}(sf||(sf={})),function(e){e[e.PLAY=1]="PLAY",e[e.PAUSE=2]="PAUSE",e[e.REVERSE=3]="REVERSE",e[e.IGNORE=4]="IGNORE",e[e.DESTROY=5]="DESTROY",e[e.INIT=6]="INIT",e[e.RE_PLAY=7]="RE_PLAY"}(af||(af={}));var uf,cf=((Zl={})[af.PLAY]="play",Zl[af.PAUSE]="pause",Zl[af.REVERSE]="reverse",Zl[af.IGNORE]="ignore",Zl[af.DESTROY]="destroy",Zl[af.INIT]="init",Zl[af.RE_PLAY]="re_play",Zl);!function(e){e[e.FIXED=0]="FIXED",e[e.PERCENTAGE=1]="PERCENTAGE",e[e.START=2]="START",e[e.START_PLUS=3]="START_PLUS",e[e.END=4]="END",e[e.END_PLUS=5]="END_PLUS"}(uf||(uf={}));var lf,ff,pf=((Kl={})[uf.FIXED]="",Kl[uf.PERCENTAGE]="%",Kl[uf.START]="top",Kl[uf.START_PLUS]="+=top",Kl[uf.END]="bottom",Kl[uf.END_PLUS]="+=bottom",Kl),df=((Jl={})[uf.FIXED]="",Jl[uf.PERCENTAGE]="%",Jl[uf.START]="top",Jl[uf.START_PLUS]="+=left",Jl[uf.END]="right",Jl[uf.END_PLUS]="+=right",Jl),hf=function(e,t,n){var r=e===nf.Y?pf:df;return t===uf.START||t===uf.END?"".concat(r[t]):"".concat(null!=n?n:"").concat(r[t])};!function(e){e[e.SMOOTH=0]="SMOOTH",e[e.INSTANT=1]="INSTANT"}(lf||(lf={})),function(e){e[e.NORMAL=1]="NORMAL",e[e.REVERSE=2]="REVERSE",e[e.ALTERNATE=3]="ALTERNATE"}(ff||(ff={}));var gf,mf,vf=((Ql={})[ff.NORMAL]="normal",Ql[ff.REVERSE]="reverse",Ql[ff.ALTERNATE]="alternate",Ql),yf=function(e){var t=[];return e.forEach(function(e){Array.isArray(e.targets)?t.push.apply(t,e.targets):"string"==typeof e.targets&&t.push(e.targets)}),t.map(function(e){return document.querySelector(e)}).filter(function(e){return null!=e})},bf=function(e,t,n){void 0===t&&(t={});var r=Object.entries(t).reduce(function(e,t){var n=t[0],r=t[1];return e[n]=cf[r],e},{}),o=(0,U.useState)({}),i=(o[0],o[1]),s=(0,U.useMemo)(function(){var t=Object.entries(e).reduce(function(e,t){return e[t[0]]={complete:!1},e},{}),o={},a={},u=function(r,s){var u,c,l,f,p,d,h,g=r.name,m=o[g];if(!m){var v=vf[r.direction||ff.NORMAL];a[g]={direction:v};var y=!1,b=r.config;if(b.type_===rf.SCROLL_SYNC){var x=b.smoothness.type===lf.INSTANT||b.smoothness.value||0,_=(null==b?void 0:b.container.element)?"."+n["E".concat(null==b?void 0:b.container.element)]:"#__next",w=null!==(u=null==b?void 0:b.target.element)&&void 0!==u?u:"-",E=hf(b.direction,b.container.enter.type,b.container.enter.value),T=hf(b.direction,b.container.leave.type,b.container.leave.value),S=hf(b.direction,b.target.enter.type,b.target.enter.value),R=hf(b.direction,b.target.leave.type,b.target.leave.value);y=Vl({axis:b.direction===nf.Y?"y":"x",container:_,target:w,sync:x,enter:"".concat(E," ").concat(S),leave:"".concat(T," ").concat(R)})}else b.type_===rf.AUTOPLAY&&b.on.type_===sf.APPEAR?(_=(null===(c=b.on)||void 0===c?void 0:c.container.element)?"."+n["E".concat(null===(l=b.on)||void 0===l?void 0:l.container.element)]:"#__next",w=null!==(p=null===(f=b.on)||void 0===f?void 0:f.target.element)&&void 0!==p?p:"-",E=hf(b.on.direction,b.on.container.enter.type,b.on.container.enter.value),T=hf(b.on.direction,b.on.container.leave.type,b.on.container.leave.value),S=hf(b.on.direction,b.on.target.enter.type,b.on.target.enter.value),R=hf(b.on.direction,b.on.target.leave.type,b.on.target.leave.value),y=Vl({axis:b.on.direction===nf.Y?"y":"x",container:_,target:w,sync:!0,enter:"".concat(E," ").concat(S),leave:"".concat(T," ").concat(R)})):b.type_===rf.AUTOPLAY&&b.on.type_===sf.MOUNT&&(y=!0);var A=(h={autoplay:y,loop:!!r.loop,onBegin:function(){t[r.name].begin=!0,t[r.name].complete=!1,r.listener&&i({})},onUpdate:function(e){1===e.progress&&(t[r.name].begin=!0,t[r.name].complete=!0,r.listener&&i({}))},defaults:{duration:1e3*r.seconds}},new $l(h).init());null===(d=Object.values(e).find(function(e){return e.node===r}))||void 0===d||d.data.forEach(function(e){A.add(e.targets,e.params,0)}),m={node:r,instance:A,elements:s},o[g]=m,m.instance.onComplete=function(){a[g].playing=!1}}return m.instance};return{player:r,states:t,list:o,play:function(e,t){var n=u(e),r=e.name;"play"!==a[r].state&&(a[r].state="play",a[r].reverse||t&&n.paused&&n.restart(),n.play(),a[r].reverse=!1,a[r].playing=!0)},pause:function(e){var t=e.name;"pause"!==a[t].state&&(a[t].state="pause",u(e).pause(),a[t].playing=!1)},reverse:function(e){var t=e.name;"reverse"!==a[t].state&&(a[t].state="reverse",u(e).reverse(),a[t].reverse=!0,a[t].playing=!0)},get:u,destroy:function(e){var t=o[e.name];t&&(delete a[e.name],delete o[e.name],t.instance.pause())},direction:function(e){return a[e.name].direction},clean:function(){return Object.entries(s.list).forEach(function(t){var n,r,o=t[0],i=t[1],a=e[o],u=a?yf(a.data):[];((null===(n=i.elements)||void 0===n?void 0:n.length)!==u.length||(null===(r=i.elements)||void 0===r?void 0:r.map(function(e){return u.includes(e)}).includes(!1)))&&s.destroy(i.node)})}}},[]);return s.player=r,{instances:s,scan:function(){Object.entries(t).forEach(function(t){var n=t[0],r=t[1],o=e[n];if(o&&r!==af.IGNORE)if(r!==af.DESTROY){var i=yf(o.data);i.length?(s.get(o.node,i),r===af.PLAY?o&&s.play(o.node):r===af.PAUSE?o&&s.pause(o.node):r===af.RE_PLAY?o&&s.play(o.node,!0):r===af.REVERSE&&o&&s.reverse(o.node)):s.destroy(o.node)}else s.destroy(o.node)})}}},xf=0,_f=function(){return(0,U.useMemo)(function(){return"C".concat(++xf)},[])},wf=function(e){var t=(0,U.useRef)(!1);(0,U.useEffect)(function(){t.current=!0},[]),(0,U.useEffect)(function(){if(!t.current||e.option.runOnInit)return e.on();t.current=!1},e.values)},Ef=function(e,t,n){var r=[],o=t<e?t-e:e-t;r.length=o;for(var i=0;i<o;i++)r[i]=n(i);return r},Tf=function(e,t){var n=[],r=e.length;n.length=r;for(var o=0;o<r;o++)n[o]=t(e[o],o);return n},Sf=function(e,t){var n=[],r=Object.entries(e),o=r.length;n.length=o;for(var i=0;i<o;i++)n[i]=t(r[i][0],r[i][1],i);return n},Rf=function(e,t){var n=[],r=e.length;n.length=r;for(var o=0;o<r;o++)n[o]=t(e[o],o,r===o+1);return n},Af=function(e){return"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?e.toString():void 0},Of=function(e){return{width:(null==e?void 0:e.width)?e.width.value+e.width.type:void 0,height:(null==e?void 0:e.height)?e.height.value+e.height.type:void 0,backgroundColor:null==e?void 0:e.fill,backgroundImage:null==e?void 0:e.image}};!function(e){e[e.TOP=1]="TOP",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT",e[e.BOTTOM=4]="BOTTOM"}(gf||(gf={})),function(e){e[e.PLUS=1]="PLUS",e[e.MINUS=2]="MINUS"}(mf||(mf={}));var If=function(e){var t=e.container?document.querySelector(e.container):document.querySelector("#__next"),n=e.value||0,r=e.target?document.querySelector(e.target):void 0;if(t){var o=0,i=t.getBoundingClientRect();if(r){var s=r.getBoundingClientRect();e.config===gf.TOP?o=Number(t.scrollTop+(s.top-i.top)):e.config===gf.BOTTOM?o=Number(t.scrollTop+(s.bottom-i.top)):e.config===gf.LEFT?o=Number(t.scrollLeft+(s.left-i.left)):e.config===gf.RIGHT&&(o=Number(t.scrollLeft+(s.right-i.left))),e.operator===mf.PLUS?o+=n:e.operator===mf.MINUS&&(o-=n)}else e.config===gf.TOP?o=0:e.config===gf.BOTTOM?o=-t.scrollHeight:e.config===gf.LEFT?o=0:e.config===gf.RIGHT&&(o=-t.scrollWidth),e.operator===mf.PLUS?o+=n:e.operator===mf.MINUS&&(o-=n);e.config===gf.TOP||e.config===gf.BOTTOM?t.scrollTo({behavior:"instant",top:o}):t.scrollTo({behavior:"instant",left:o})}},Lf=function(e){return{text:e.currentTarget.value||"",element:e.currentTarget}},Nf=function(e){return{text:e.currentTarget.value||"",element:e.currentTarget}},Cf=function(e){return{element:e.currentTarget}},kf=function(e){return{element:e.currentTarget}},Pf=function(e){return{element:e.currentTarget}}})(),u})());