misaki-studio-internal 0.1.26 → 0.1.28
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 +1 -1
- package/dist/utils/blog.d.ts +19 -0
- package/dist/utils/utils.d.ts +10 -0
- package/package.json +1 -1
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),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=s,t.splice(s,0,{identifier:f,updater:h,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}}},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 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}},335(e,t,n){"use strict";var r=n(155),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=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)a.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:s.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 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 d=r.shift(),h=r.shift();try{p=d(p)}catch(e){h(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,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?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,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 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,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&>.binding&>.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 a=e[o];t(r,a,n(a),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 a=e[n];t(a,n,e)&&(i[o++]=a)}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 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 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({"&":"&","<":"<",">":">",'"':""","'":"'"});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 dn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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=an(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){}}(),at=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=an(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(es(e)&&!Wa(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(!Qa(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=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)||mi(c,u))||s.push(c);return s}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&&!$a(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)&&$a(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if($a(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,Ls(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:Ss(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),d=p==x||p==_;if(Ga(e))return _o(e,u);if(p==T||p==g||d&&!i){if(s=c||d?{}:hi(e),!u)return c?function(e,t){return Oo(e,fi(e),t)}(e,function(e,t){return e&&Oo(t,Ns(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 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)}}a||(a=new Gn);var h=a.get(e);if(h)return h;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 m=f?o:(l?c?ni:ti:c?Ns:Ls)(e);return St(m||e,function(r,o){m&&(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=Te(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=Nt(t,Vt(n))),r?(i=Lt,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}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===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},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=si(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return si(this,e).get(e)},qn.prototype.has=function(e){return si(this,e).has(e)},qn.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 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 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 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,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?gr(s,t-1,n,r,o):Ct(o,s):r||(o[o.length]=s)}return o}var mr=Co(),vr=Co(!0);function yr(e,t){return e&&mr(e,t,Ls)}function br(e,t){return e&&vr(e,t,Ls)}function xr(e,t){return Ot(t,function(t){return Za(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 Wa(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,a=e[0].length,s=e.length,u=s,c=r(s),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||a>=120&&p.length>=120)?new Yn(u&&p):o}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&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=s;--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 es(e)&&Er(e)==g}function Lr(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?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&&Ga(e)){if(!Ga(t))return!1;s=!0,f=!1}if(d&&!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 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 $a(+e,+t);case b:return e.name==t.name&&e.message==t.message;case R:case O:return e==t+"";case w: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 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 a||(a=new Gn),i(_,S,n,r,a)}}return!!d&&(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),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var g=s;++l<c;){var m=e[f=u[l]],v=t[f];if(r)var y=s?r(v,m,f,t,e,a):r(m,v,f,e,t,a);if(!(y===o?m===v||i(m,v,n,r,a):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 a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Lr,i))}function Nr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Te(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 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!(!Qa(e)||(t=e,je&&je in t))&&(Za(e)?$e:ge).test(zi(e));var t}function kr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?Wa(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=qa(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=Ss(n,e);return r===o&&r===t?Rs(n,e):Lr(t,r,3)}}function $r(e,t,n,r,i){e!==t&&mr(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 d=Wa(c),h=!d&&Ga(c),g=!d&&!h&&us(c);f=c,d||h||g?Wa(u)?f=u:Ya(u)?f=Ao(u):h?(p=!1,f=_o(c,!0)):g?(p=!1,f=Eo(c,!0)):f=[]:rs(c)||Fa(c)?(f=u,Fa(u)?f=ms(u):Qa(u)&&!Za(u)||(f=hi(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,$r,r,i);else{var u=r?r(Ri(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Jn(e,s,u)}},Ns)}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 Wa(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e}):[nu];var r=-1;t=Nt(t,Vt(ai()));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,a=o.length,s=n.length;++r<a;){var u=To(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=_r(e,a);n(s,a)&&Zr(i,vo(a,e),s)}return i}function Wr(e,t,n,r){var o=r?Bt:$t,i=-1,a=t.length,s=e;for(e===t&&(t=Ao(t)),n&&(s=Nt(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 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($s(e))}function Vr(e,t){var n=$s(e);return Ci(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: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:Qs(t),writable:!0})}:nu;function Qr(e){return Ci($s(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=dt((i+a)/2),p=n(e[f]),d=p!==o,h=null===p,g=p==p,m=ss(p);if(s)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: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||!$a(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 Nt(e,ao)+"";if(ss(e))return zn?zn.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=Lt;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=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?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(gr(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 go(e){return Ya(e)?e:[]}function mo(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 xo=at||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,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 So(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=mn(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=mn(a-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(;++s<u;)(d||i<a)&&(p[h+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)?Tt:tr,i=t?t():{};return o(n,e,ai(r,2),i)}}function Lo(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=Te(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}function No(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Te(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Co(e){return function(t,n,r){for(var o=-1,i=Te(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=$n(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function Do(e){return function(t,n,r){var i=Te(t);if(!qa(t)){var a=ai(n,3);t=Ls(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 zo(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 Mo(e,t,n,i,a,s,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,a,m)),s&&(x=Ro(x,s,u,m)),b-=E,m&&b<p){var T=sn(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 a=t[r];e[r]=mi(a,n)?i[a]: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=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=Nt(t,Vt(ai())),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?" ":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=mn(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 Ho(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function qo(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 d=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,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=gs(e),(n=null==n?0:vn(ds(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=Sn&&1/un(new Sn([,-0]))[1]==l?function(e){return new Sn(e)}:su;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,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Ae(i);var g=a?a.length:0;if(g||(t&=-97,a=l=o),p=p===o?p:mn(ds(p),0),d=d===o?d:ds(d),g-=l?l.length:0,64&t){var m=a,v=l;a=l=o}var y=h?o:ri(e),b=[e,t,n,a,l,m,v,f,p,d];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?So(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],!(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 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?qo(e,t,Mo,a.placeholder,o,u,f,o,o,n-s):Et(this&&this!==ft&&this instanceof a?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,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 Et(p,i?n:this,f)}}(e,t,n,a);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||$a(e,Le[n])&&!ke.call(r,n)?t:e}function Ko(e,t,n,r,i,a){return Qa(e)&&Qa(t)&&(a.set(t,e),$r(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,d=!0,h=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++p<u;){var g=e[p],m=t[p];if(r)var v=s?r(m,g,p,t,e,a):r(g,m,p,e,t,a);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,a)))return h.push(t)})){d=!1;break}}else if(g!==m&&!i(g,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ei(e){return Ii(Ti(e,o,Hi),e+"")}function ti(e){return wr(e,Ls,li)}function ni(e){return wr(e,Ns,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(Mn,"placeholder")?Mn:e).placeholder}function ai(){var e=Mn.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=Ls(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 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)&&mi(a,o)&&(Wa(e)||Fa(e))}function hi(e){return"function"!=typeof e.constructor||_i(e)?{}:$n(He(e))}function gi(e){return Wa(e)||Fa(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(!Qa(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&mi(t,n.length):"string"==r&&t in n)&&$a(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 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?Za:gu;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function wi(e){return e==e&&!Qa(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,a=mn(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),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(ae);return t?t[1].split(se):[]}(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 a=qr(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 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 Ya(e)?cr(e,gr(t,1,Ya,!0)):[]}),Bi=Gr(function(e,t){var n=Vi(t);return Ya(n)&&(n=o),Ya(e)?cr(e,gr(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,gr(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:ds(n);return o<0&&(o=mn(r+o,0)),Mt(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=ds(n),i=n<0?mn(r+i,0):vn(i,r-1)),Mt(e,ai(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,ai(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 ea=Gr(function(e){return so(gr(e,1,Ya,!0))}),ta=Gr(function(e){var t=Vi(e);return Ya(t)&&(t=o),so(gr(e,1,Ya,!0),ai(t,2))}),na=Gr(function(e){var t=Vi(e);return t="function"==typeof t?t:o,so(gr(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=mn(e.length,t),!0}),Gt(t,function(t){return Nt(e,Wt(t))})}function oa(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Nt(n,function(e){return Et(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=Mn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var da=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:pa,args:[i],thisArg:o}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),ha=Io(function(e,t,n){ke.call(e,n)?++e[n]:rr(e,n,1)}),ga=Do(Fi),ma=Do(Wi);function va(e,t){return(Wa(e)?St: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])}),xa=Gr(function(e,t,n){var o=-1,i="function"==typeof t,a=qa(e)?r(e.length):[];return lr(e,function(e){a[++o]=i?Et(t,e,n):Or(e,t,n)}),a}),_a=Io(function(e,t,n){rr(e,n,t)});function wa(e,t){return(Wa(e)?Nt:Dr)(e,ai(t,3))}var Ea=Io(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ta=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),[])}),Sa=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=ds(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 La(e,t,n){var r,a,s,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=a;return r=a=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>=s}function v(){var e=Sa();if(m(e))return y(e);c=Oi(v,function(e){var n=t-(e-l);return d?vn(n,s-(e-f)):n}(e))}function y(e){return c=o,h&&r?g(e):(r=a=o,u)}function b(){var e=Sa(),n=m(e);if(r=arguments,a=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=gs(t)||0,Qa(n)&&(p=!!n.leading,s=(d="maxWait"in n)?mn(gs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&xo(c),f=0,r=l=a=c=o},b.flush=function(){return c===o?u:y(Sa())},b}var Na=Gr(function(e,t){return ur(e,1,t)}),Ca=Gr(function(e,t,n){return ur(e,gs(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||qn),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=qn;var ja=yo(function(e,t){var n=(t=1==t.length&&Wa(t[0])?Nt(t[0],Vt(ai())):Nt(gr(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 Et(e,this,r)})}),Da=Gr(function(e,t){var n=sn(t,ii(Da));return Vo(e,u,o,t,n)}),za=Gr(function(e,t){var n=sn(t,ii(za));return Vo(e,64,o,t,n)}),Ma=ei(function(e,t){return Vo(e,256,o,o,o,t)});function $a(e,t){return e===t||e!=e&&t!=t}var Ba=Ho(Tr),Ua=Ho(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,Ha=vt?Vt(vt):function(e){return es(e)&&Er(e)==N};function qa(e){return null!=e&&Ja(e.length)&&!Za(e)}function Ya(e){return es(e)&&qa(e)}var Ga=mt||gu,Xa=yt?Vt(yt):function(e){return es(e)&&Er(e)==y};function Va(e){if(!es(e))return!1;var t=Er(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=Er(e);return t==x||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==ds(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)==w};function ns(e){return"number"==typeof e||es(e)&&Er(e)==E}function rs(e){if(!es(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 os=xt?Vt(xt):function(e){return es(e)&&Er(e)==R},is=_t?Vt(_t):function(e){return es(e)&&pi(e)==A};function as(e){return"string"==typeof e||!Wa(e)&&es(e)&&Er(e)==O}function ss(e){return"symbol"==typeof e||es(e)&&Er(e)==I}var us=wt?Vt(wt):function(e){return es(e)&&Ja(e.length)&&!!ot[Er(e)]},cs=Ho(jr),ls=Ho(function(e,t){return e<=t});function fs(e){if(!e)return[];if(qa(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==w?on:t==A?un:$s)(e)}function ps(e){return e?(e=gs(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ir(ds(e),0,d):0}function gs(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=he.test(e);return n||me.test(e)?ut(e.slice(2),n?2:8):de.test(e)?p:+e}function ms(e){return Oo(e,Ns(e))}function vs(e){return null==e?"":ao(e)}var ys=Lo(function(e,t){if(_i(t)||qa(t))Oo(t,Ls(t),e);else for(var n in t)ke.call(t,n)&&Qn(e,n,t[n])}),bs=Lo(function(e,t){Oo(t,Ns(t),e)}),xs=Lo(function(e,t,n,r){Oo(t,Ns(t),e,r)}),_s=Lo(function(e,t,n,r){Oo(t,Ls(t),e,r)}),ws=ei(or),Es=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 a=t[n],s=Ns(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||$a(f,Le[l])&&!ke.call(e,l))&&(e[l]=a[l])}return e}),Ts=Gr(function(e){return e.push(o,Ko),Et(ks,o,e)});function Ss(e,t,n){var r=null==e?o:_r(e,t);return r===o?n:r}function Rs(e,t){return null!=e&&di(e,t,Rr)}var As=$o(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n},Qs(nu)),Os=$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]},ai),Is=Gr(Or);function Ls(e){return qa(e)?Xn(e):Pr(e)}function Ns(e){return qa(e)?Xn(e,!0):function(e){if(!Qa(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 Cs=Lo(function(e,t,n){$r(e,t,n)}),ks=Lo(function(e,t,n,r){$r(e,t,n,r)}),Ps=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=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=Nt(ni(e),function(e){return[e]});return t=ai(t),Fr(e,n,function(e,n){return t(e,n[0])})}var zs=Xo(Ls),Ms=Xo(Ns);function $s(e){return null==e?[]:Zt(e,Ls(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()}),Hs=Po(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),qs=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 Et(e,o,t)}catch(e){return Va(e)?e:new _e(e)}}),Js=ei(function(e,t){return St(t,function(t){t=Di(t),rr(e,t,Oa(e[t],e))}),e});function Qs(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: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=Ls(t),o=xr(t,r);null!=n||Qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Ls(t)));var i=!(Qa(n)&&"chain"in n&&!n.chain),a=Za(e);return St(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,Ct([this.value()],arguments))})}),e}function su(){}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=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Mn.ary=Ra,Mn.assign=ys,Mn.assignIn=bs,Mn.assignInWith=xs,Mn.assignWith=_s,Mn.at=ws,Mn.before=Aa,Mn.bind=Oa,Mn.bindAll=Js,Mn.bindKey=Ia,Mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Mn.chain=fa,Mn.chunk=function(e,t,n){t=(n?vi(e,t,n):t===o)?1:mn(ds(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},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(Wa(n)?Ao(n):[n],gr(t,1))},Mn.cond=function(e){var t=null==e?0:e.length,n=ai();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=Ls(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Mn.constant=Qs,Mn.countBy=ha,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=La,Mn.defaults=Es,Mn.defaultsDeep=Ts,Mn.defer=Na,Mn.delay=Ca,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:ds(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:ds(t)))<0?0:t):[]},Mn.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},Mn.dropWhile=function(e,t){return e&&e.length?lo(e,ai(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=ds(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ds(r))<0&&(r+=i),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Mn.filter=function(e,t){return(Wa(e)?Ot:hr)(e,ai(t,3))},Mn.flatMap=function(e,t){return gr(wa(e,t),1)},Mn.flatMapDeep=function(e,t){return gr(wa(e,t),l)},Mn.flatMapDepth=function(e,t,n){return n=n===o?1:ds(n),gr(wa(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:ds(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,Ls(e))},Mn.functionsIn=function(e){return null==e?[]:xr(e,Ns(e))},Mn.groupBy=ba,Mn.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Mn.intersection=Yi,Mn.intersectionBy=Gi,Mn.intersectionWith=Xi,Mn.invert=As,Mn.invertBy=Os,Mn.invokeMap=xa,Mn.iteratee=ru,Mn.keyBy=_a,Mn.keys=Ls,Mn.keysIn=Ns,Mn.map=wa,Mn.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},Mn.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},Mn.matches=function(e){return zr(ar(e,1))},Mn.matchesProperty=function(e,t){return Mr(e,ar(t,1))},Mn.memoize=ka,Mn.merge=Cs,Mn.mergeWith=ks,Mn.method=ou,Mn.methodOf=iu,Mn.mixin=au,Mn.negate=Pa,Mn.nthArg=function(e){return e=ds(e),Gr(function(t){return Br(t,e)})},Mn.omit=Ps,Mn.omitBy=function(e,t){return Ds(e,Pa(ai(t)))},Mn.once=function(e){return Aa(2,e)},Mn.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))},Mn.over=uu,Mn.overArgs=ja,Mn.overEvery=cu,Mn.overSome=lu,Mn.partial=Da,Mn.partialRight=za,Mn.partition=Ea,Mn.pick=js,Mn.pickBy=Ds,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,ai(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=Ma,Mn.reject=function(e,t){return(Wa(e)?Ot:hr)(e,Pa(ai(t,3)))},Mn.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 Hr(e,o),n},Mn.rest=function(e,t){if("function"!=typeof e)throw new Ae(i);return Gr(e,t=t===o?t:ds(t))},Mn.reverse=Qi,Mn.sampleSize=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:ds(t),(Wa(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(Wa(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:ds(t),n=n===o?r:ds(n)),eo(e,t,n)):[]},Mn.sortBy=Ta,Mn.sortedUniq=function(e){return e&&e.length?oo(e):[]},Mn.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(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=vs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ao(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(ds(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:ds(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:ds(t)))<0?0:t,r):[]},Mn.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},Mn.takeWhile=function(e,t){return e&&e.length?lo(e,ai(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 Qa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),La(e,t,{leading:r,maxWait:t,trailing:o})},Mn.thru=pa,Mn.toArray=fs,Mn.toPairs=zs,Mn.toPairsIn=Ms,Mn.toPath=function(e){return Wa(e)?Nt(e,Di):ss(e)?[e]:Ao(ji(vs(e)))},Mn.toPlainObject=ms,Mn.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)?$n(He(e)):{}}return(o?St:yr)(e,function(e,r,o){return t(n,e,r,o)}),n},Mn.unary=function(e){return Ra(e,1)},Mn.union=ea,Mn.unionBy=ta,Mn.unionWith=na,Mn.uniq=function(e){return e&&e.length?so(e):[]},Mn.uniqBy=function(e,t){return e&&e.length?so(e,ai(t,2)):[]},Mn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},Mn.unset=function(e,t){return null==e||uo(e,t)},Mn.unzip=ra,Mn.unzipWith=oa,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=$s,Mn.valuesIn=function(e){return null==e?[]:Zt(e,Ns(e))},Mn.without=ia,Mn.words=Zs,Mn.wrap=function(e,t){return Da(mo(t),e)},Mn.xor=aa,Mn.xorBy=sa,Mn.xorWith=ua,Mn.zip=ca,Mn.zipObject=function(e,t){return ho(e||[],t||[],Qn)},Mn.zipObjectDeep=function(e,t){return ho(e||[],t||[],Zr)},Mn.zipWith=la,Mn.entries=zs,Mn.entriesIn=Ms,Mn.extend=bs,Mn.extendWith=xs,au(Mn,Mn),Mn.add=vu,Mn.attempt=Ks,Mn.camelCase=Bs,Mn.capitalize=Us,Mn.ceil=yu,Mn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gs(n))==n?n:0),t!==o&&(t=(t=gs(t))==t?t:0),ir(gs(e),t,n)},Mn.clone=function(e){return ar(e,4)},Mn.cloneDeep=function(e){return ar(e,5)},Mn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},Mn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},Mn.conformsTo=function(e,t){return null==t||sr(e,t,Ls(t))},Mn.deburr=Fs,Mn.defaultTo=function(e,t){return null==e||e!=e?t:e},Mn.divide=bu,Mn.endsWith=function(e,t,n){e=vs(e),t=ao(t);var r=e.length,i=n=n===o?r:ir(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Mn.eq=$a,Mn.escape=function(e){return(e=vs(e))&&X.test(e)?e.replace(Y,tn):e},Mn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Mn.every=function(e,t,n){var r=Wa(e)?At:pr;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},Mn.find=ga,Mn.findIndex=Fi,Mn.findKey=function(e,t){return zt(e,ai(t,3),yr)},Mn.findLast=ma,Mn.findLastIndex=Wi,Mn.findLastKey=function(e,t){return zt(e,ai(t,3),br)},Mn.floor=xu,Mn.forEach=va,Mn.forEachRight=ya,Mn.forIn=function(e,t){return null==e?e:mr(e,ai(t,3),Ns)},Mn.forInRight=function(e,t){return null==e?e:vr(e,ai(t,3),Ns)},Mn.forOwn=function(e,t){return e&&yr(e,ai(t,3))},Mn.forOwnRight=function(e,t){return e&&br(e,ai(t,3))},Mn.get=Ss,Mn.gt=Ba,Mn.gte=Ua,Mn.has=function(e,t){return null!=e&&di(e,t,Sr)},Mn.hasIn=Rs,Mn.head=qi,Mn.identity=nu,Mn.includes=function(e,t,n,r){e=qa(e)?e:$s(e),n=n&&!r?ds(n):0;var o=e.length;return n<0&&(n=mn(o+n,0)),as(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:ds(n);return o<0&&(o=mn(r+o,0)),$t(e,t,o)},Mn.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<mn(t,n)}(e=gs(e),t,n)},Mn.invoke=Is,Mn.isArguments=Fa,Mn.isArray=Wa,Mn.isArrayBuffer=Ha,Mn.isArrayLike=qa,Mn.isArrayLikeObject=Ya,Mn.isBoolean=function(e){return!0===e||!1===e||es(e)&&Er(e)==v},Mn.isBuffer=Ga,Mn.isDate=Xa,Mn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Mn.isEmpty=function(e){if(null==e)return!0;if(qa(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==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=Va,Mn.isFinite=function(e){return"number"==typeof e&&Dt(e)},Mn.isFunction=Za,Mn.isInteger=Ka,Mn.isLength=Ja,Mn.isMap=ts,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 ns(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=ns,Mn.isObject=Qa,Mn.isObjectLike=es,Mn.isPlainObject=rs,Mn.isRegExp=os,Mn.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=f},Mn.isSet=is,Mn.isString=as,Mn.isSymbol=ss,Mn.isTypedArray=us,Mn.isUndefined=function(e){return e===o},Mn.isWeakMap=function(e){return es(e)&&pi(e)==L},Mn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Er(e)},Mn.join=function(e,t){return null==e?"":Ht.call(e,t)},Mn.kebabCase=Ws,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=ds(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=Hs,Mn.lowerFirst=qs,Mn.lt=cs,Mn.lte=ls,Mn.max=function(e){return e&&e.length?dr(e,nu,Tr):o},Mn.maxBy=function(e,t){return e&&e.length?dr(e,ai(t,2),Tr):o},Mn.mean=function(e){return Ft(e,nu)},Mn.meanBy=function(e,t){return Ft(e,ai(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,ai(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,ds(t)):o},Mn.noConflict=function(){return ft._===this&&(ft._=Me),this},Mn.noop=su,Mn.now=Sa,Mn.pad=function(e,t,n){e=vs(e);var r=(t=ds(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=vs(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?e+Fo(t-r,n):e},Mn.padStart=function(e,t,n){e=vs(e);var r=(t=ds(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(vs(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=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=xn();return vn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return qr(e,t)},Mn.reduce=function(e,t,n){var r=Wa(e)?kt:qt,o=arguments.length<3;return r(e,ai(t,4),n,o,lr)},Mn.reduceRight=function(e,t,n){var r=Wa(e)?Pt:qt,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},Mn.repeat=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:ds(t),Yr(vs(e),t)},Mn.replace=function(){var e=arguments,t=vs(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 a=null==e?o:e[Di(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Mn.round=wu,Mn.runInContext=e,Mn.sample=function(e){return(Wa(e)?Vn:Xr)(e)},Mn.size=function(e){if(null==e)return 0;if(qa(e))return as(e)?ln(e):e.length;var t=pi(e);return t==w||t==A?e.size:Pr(e).length},Mn.snakeCase=Ys,Mn.some=function(e,t,n){var r=Wa(e)?jt:to;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},Mn.sortedIndex=function(e,t){return no(e,t)},Mn.sortedIndexBy=function(e,t,n){return ro(e,t,ai(n,2))},Mn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&$a(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,ai(n,2),!0)},Mn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if($a(e[n],t))return n}return-1},Mn.startCase=Gs,Mn.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:ir(ds(n),0,e.length),t=ao(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,ai(t,2)):0},Mn.template=function(e,t,n){var r=Mn.templateSettings;n&&vi(e,t,n)&&(t=o),e=vs(e),t=xs({},t,r,Zo);var i,a,s=xs({},t.imports,r.imports,Zo),u=Ls(s),c=Zt(s,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,s,u){return r||(r=o),p+=e.slice(l,u).replace(xe,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 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=(a?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":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Ks(function(){return we(u,h+"return "+p).apply(o,c)});if(m.source=p,Va(m))throw m;return m},Mn.times=function(e,t){if((e=ds(e))<1||e>f)return[];var n=d,r=vn(e,d);t=ai(t),e-=d;for(var o=Gt(r,t);++n<e;)t(n);return o},Mn.toFinite=ps,Mn.toInteger=ds,Mn.toLength=hs,Mn.toLower=function(e){return vs(e).toLowerCase()},Mn.toNumber=gs,Mn.toSafeInteger=function(e){return e?ir(ds(e),-9007199254740991,f):0===e?e:0},Mn.toString=vs,Mn.toUpper=function(e){return vs(e).toUpperCase()},Mn.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("")},Mn.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("")},Mn.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("")},Mn.truncate=function(e,t){var n=30,r="...";if(Qa(t)){var i="separator"in t?t.separator:i;n="length"in t?ds(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=Se(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 d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},Mn.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(q,dn):e},Mn.uniqueId=function(e){var t=++Pe;return vs(e)+t},Mn.upperCase=Xs,Mn.upperFirst=Vs,Mn.each=va,Mn.eachRight=ya,Mn.first=qi,au(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(ds(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:ai(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(Pa(ai(e)))},Fn.prototype.slice=function(e,t){e=ds(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=ds(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],a=r||/^find/.test(t);i&&(Mn.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(Mn,Ct([e],s));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=a&&!p,g=u&&!d;if(!a&&l){t=g?t:new Fn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[f],thisArg:o}),new Un(m,p)}return h&&g?e.apply(this,s):(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(Wa(o)?o:[],e)}return this[n](function(n){return t.apply(Wa(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=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=mn(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,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=da,Mn.prototype.chain=function(){return fa(this)},Mn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Mn.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__++]}},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:pa,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),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 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 _=s(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(),a(_,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,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:()=>d,useResize:()=>c,utils:()=>h});var e={};s.r(e),s.d(e,{ApiLoader:()=>Y,useApi:()=>G});var t={};s.r(t),s.d(t,{onAppear:()=>X});var n={};s.r(n),s.d(n,{BlogItem:()=>Mn,BlogList:()=>$n,BlogSideBar:()=>Bn,Item:()=>zn});var r={};s.r(r),s.d(r,{Body:()=>ui,Code:()=>wi,DocWrapper:()=>Ti,Image:()=>bi,Separator:()=>xi,Text:()=>yi,TextSize:()=>ii,TextStyle:()=>ai,YoutubeVideo:()=>Ei,emptyBulletSvg:()=>mi,solidBulletSvg:()=>vi});var o={};s.r(o),s.d(o,{default:()=>Ri});var i={};s.r(i),s.d(i,{background:()=>Bi.Tp,default:()=>Fi,"popup-element":()=>Bi.IX,root:()=>Bi.zr});var a={};s.r(a),s.d(a,{Overlay:()=>Xs,ReactRootElement:()=>Us,ReactRootElementPopup:()=>Fs,TooltipBoolean:()=>Gs,TooltipClick:()=>Ys,TooltipHover:()=>qs});var c={};s.r(c),s.d(c,{useResizeDetecter:()=>Zs});var l={};s.r(l),s.d(l,{ResizeDetecter:()=>Ks});var f={};s.r(f),s.d(f,{Storage:()=>eu,useStates:()=>nu,useStorage:()=>tu});var p={};s.r(p),s.d(p,{ElementEnterLeave:()=>uf,ElementEnterLeaveXValues:()=>df,ElementEnterLeaveYValues:()=>pf,ScrollCoordinateType:()=>of,ScrollDirection:()=>nf,ScrollModel:()=>ef,SyncSmoothness:()=>lf,TimelineAutoPlay:()=>af,TimelineCommandOption:()=>sf,TimelineCommandOptionLabel:()=>cf,TimelineConfigType:()=>rf,TimelineDirection:()=>ff,TimelineDirectionValue:()=>vf,TimelineScreenType:()=>tf,getEnterLeaveConfigValue:()=>hf,getTimelineElements:()=>yf,useTimeline:()=>bf});var d={};s.r(d);var h={};s.r(h),s.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),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 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={},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],d=f[1],h=o.value,g=h[0],m=h[1];c||i[l]||!(c=n.equals(p,g,s,l,e,t,n)&&n.equals(d,m,p,g,e,t,n))||(i[l]=!0),l++}if(!c)return!1;s++}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,a=x(e),s=a.length;if(x(t).length!==s)return!1;for(;s-- >0;){if((r=a[s])===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={},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,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,a=e.strict,s=void 0!==a&&a,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),a=b(o.areMapsEqual),s=b(o.areObjectsEqual),u=b(o.areSetsEqual);o=z({},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=M(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 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=s(155),F=s.t(U,2),W=s.n(U),H=s(505),q=s.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,a=[],s=[],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||(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,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)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",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(){a=[],d()}}}}()(t)}}(window)},V=s(85),Z=s(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=s(833),ee=s.n(Q),te="-ms-",ne="-moz-",re="-webkit-",oe="comm",ie="rule",ae="decl",se="@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,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:_e,column:we,length:a,return:"",siblings:s}}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 ae:return e.return=e.return||e.value;case oe:return"";case se: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,a,s){return te+n+":"+r+s+(o?te+n+"-span:"+(i?a:+a-+r)+s:"")+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 ae:return void(e.return=He(e.value,e.length,n));case se: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,a,s,u){for(var c=0,l=0,f=a,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?s[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:s[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,s,b,x=[],_=[],f,i),i),123===y)if(0===l)Ge(E,t,w,w,x,i,f,s,_);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,s,b,o,x=[],f,_),_),o,_,f,s,r?x:_);break;default:Ge(E,w,w,w,[""],_,0,s,_)}}c=l=d=0,g=v=1,b=E="",f=a;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:s[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,a,s,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=a[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:s,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,ae,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([])),at=Object.freeze({});var st=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),a=St(t),s=0;s<o.length;++s){var u=o[s];if(!(u in wt||n&&n[u]||a&&u in a||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 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(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,a=o.length;i<a;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,a=r.length;i<a;i++){var s=r[i].trim();if(s){var u=s.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(s)}}};function Kt(){return s.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 a=Kt();return a&&r.setAttribute("nonce",a),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=at),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),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(Je,".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(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}(),an=/&/g,sn=/^\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?at:e,i=o.options,a=void 0===i?at:i,s=o.plugins,u=void 0===s?it: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===ie&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(an,n).replace(r,c))}),a.prefix&&l.push(qe),l.push(We);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(sn,""),c=Ye(i||o?"".concat(i," ").concat(o," { ").concat(u," }"):u);a.namespace&&(c=un(c,a.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]),a=(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 s=(0,U.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return W().createElement(pn.Provider,{value:s},W().createElement(dn.Provider,{value:a},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 a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=jt(r,i),this.staticRulesId=i}else{for(var s=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));s=gt(s,f+c),u+=f}}if(u){var p=dt(s>>>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),a=t.attrs,s=void 0===a?it:a,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(s).filter(Boolean):s,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,a=e.foldedComponentIds,s=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=at),e.theme!==n.theme&&e.theme||t||n.theme}(t,c,i)||at,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 a=kt(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?jt(o[s],a[s]):"style"===s?K(K({},o[s]),a[s]):a[s]}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(a,s);return v&&(y+=" "+v),d.className&&(y+=" "+d.className),g[vt(h)&&!st.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=at),!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;st.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,o=e.needDecoration,i=e.selectedPath,a=e.item,s=e.level,u=e.onClick,c=e.parentPath,l=e.itemWrapper,f=e.isRoot,p=(e.parents,"".concat(c,"/").concat(a.pagePath)),d=(i&&p.startsWith(i),(0,Z.useRouter)()),h=location.pathname.slice(0,-1),g=location.pathname.startsWith(a.pagePath)&&h!==a.pagePath,m=(0,U.useState)(g),v=m[0],y=m[1],b=l,x=f?a.pagePath.split("/").slice(0,-1).join("/"):void 0,_=u?i===p||void 0===i&&!0===f:d.asPath===a.pagePath||x===d.asPath;return(0,V.jsxs)(V.Fragment,{children:[b?(0,V.jsx)(b,{properties:{title:a.name,isSelected:_,icon:o&&(null===(t=a.children)||void 0===t?void 0:t.length)?v?"bottom":"right":o?"round":void 0},events:{click:function(){y(!v),u?u(a.pagePath,p):d.push(a.pagePath)}},style:{paddingLeft:"".concat(15*s,"px")}},"".concat(a.pagePath," ").concat(_," ").concat(v)):(0,V.jsxs)(zn,{style:{paddingLeft:"".concat(15*s,"px")},children:[(0,V.jsx)("div",{onClick:function(){return y(!v)},className:"icon ".concat(v?"open":"close"),children:(null===(n=a.children)||void 0===n?void 0:n.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(){u?u(a.pagePath,h):d.push(a.pagePath)},className:"text",children:a.name})]}),!!(null===(r=a.children)||void 0===r?void 0:r.length)&&v&&(0,V.jsx)($n,{onClick:u,list:a.children,level:s+1,itemWrapper:l,parentPath:p,selectedPath:i})]})},$n=function(e){var t=void 0!==e.list.find(function(e){var t;return null===(t=e.children)||void 0===t?void 0:t.length});return(0,V.jsx)(V.Fragment,{children:e.list.map(function(n,r){return(0,V.jsx)(Mn,{needDecoration:t,selectedPath:e.selectedPath,item:n,onClick:e.onClick,level:e.level,itemWrapper:e.itemWrapper,isRoot:0===r&&e.isRoot,parentPath:e.parentPath},"".concat(r,"/").concat(n.pagePath))})})},Bn=function(e){var t=(0,U.useState)(void 0),n=t[0],r=t[1];return(0,V.jsx)(V.Fragment,{children:(0,V.jsx)($n,{onClick:e.onClick?function(t,n){var o;r(n),null===(o=e.onClick)||void 0===o||o.call(e,t)}:void 0,selectedPath:n,list:e.list,level:0,itemWrapper:e.itemWrapper,isRoot:!0,parentPath:""})})},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}]}),ar={};Wn(ar,{default:()=>sr});var sr,ur=Fn(()=>{sr=[{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}]}),ao={};Wn(ao,{default:()=>so});var so,uo=Fn(()=>{Cr(),so=[{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}]},...so]}),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(),ar)),"./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(),ao)),"./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,a={},s=[],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(a.index=null,r=l.length;r-- >0;){if(o=l[r].expand?ei[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 ri(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 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("&","&").replaceAll?.("<","<").replaceAll?.(">",">"))(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,ai,si=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},ui=kn.div(ci||(ci=si(["\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"}(ai||(ai={}));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=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"],["\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,ai.BOLD,ai.ITALIC,ai.UNDERLINE,ai.LINE_THRONG,ai.UNDERLINE,ai.LINE_THRONG),bi=kn.div(fi||(fi=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"],["\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=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"],["\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=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"],["\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=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"],["\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=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"],["\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=s(514),Oi=s(72),Ii=s.n(Oi),Li=s(825),Ni=s.n(Li),Ci=s(659),ki=s.n(Ci),Pi=s(56),ji=s.n(Pi),Di=s(540),zi=s.n(Di),Mi=s(113),$i=s.n(Mi),Bi=s(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}=la(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ki.has(o)}const Qi=new Set(["table","td","th"]);function ea(e){return Qi.has(Hi(e))}const ta=[":popover-open",":modal"];function na(e){return ta.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const ra=["transform","translate","scale","rotate","perspective"],oa=["transform","translate","scale","rotate","perspective","filter"],ia=["paint","layout","strict","content"];function aa(e){const t=sa(),n=Xi(e)?la(e):e;return ra.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||oa.some(e=>(n.willChange||"").includes(e))||ia.some(e=>(n.contain||"").includes(e))}function sa(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ua=new Set(["html","body","#document"]);function ca(e){return ua.has(Hi(e))}function la(e){return qi(e).getComputedStyle(e)}function fa(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pa(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 da(e){const t=pa(e);return ca(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vi(t)&&Ji(t)?t:da(t)}function ha(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=da(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=qi(o);if(i){const e=ga(a);return t.concat(a,a.visualViewport||[],Ji(o)?o:[],e&&n?ha(e):[])}return t.concat(o,ha(o,[],n))}function ga(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ma(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 va(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function ya(e){return(null==e?void 0:e.ownerDocument)||document}function ba(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 xa(e){return"composedPath"in e?e.composedPath()[0]:e.target}const _a=Math.min,wa=Math.max,Ea=Math.round,Ta=(Math.floor,e=>({x:e,y:e}));function Sa(e,t,n){return wa(e,_a(t,n))}function Ra(e,t){return"function"==typeof e?e(t):e}function Aa(e){return e.split("-")[0]}function Oa(e){return e.split("-")[1]}function Ia(e){return"x"===e?"y":"x"}const La=new Set(["top","bottom"]);function Na(e){return La.has(Aa(e))?"y":"x"}function Ca(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 ka(e,t,n){let{reference:r,floating:o}=e;const i=Na(t),a=function(e){return Ia(Na(e))}(t),s="y"===a?"height":"width",u=Aa(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 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(Oa(t)){case"start":d[a]-=p*(n&&c?-1:1);break;case"end":d[a]+=p*(n&&c?-1:1)}return d}const Pa=new Set(["left","top"]);function ja(e){const t=la(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Vi(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ea(n)!==i||Ea(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Da(e){return Xi(e)?e:e.contextElement}function za(e){const t=Da(e);if(!Vi(t))return Ta(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ja(t);let a=(i?Ea(n.width):n.width)/r,s=(i?Ea(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ma=Ta(0);function $a(e){const t=qi(e);return sa()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ma}function Ba(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Da(e);let a=Ta(1);t&&(r?Xi(r)&&(a=za(r)):a=za(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==qi(e))&&t}(i,n,r)?$a(i):Ta(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=qi(i),t=r&&Xi(r)?qi(r):r;let n=e,o=ga(n);for(;o&&r&&t!==n;){const e=za(o),t=o.getBoundingClientRect(),r=la(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=qi(o),o=ga(n)}}return Ca({width:l,height:f,x:u,y:c})}function Ua(e,t){const n=fa(e).scrollLeft;return t?t.left+n:Ba(Yi(e)).left+n}function Fa(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ua(e,n),y:n.top+t.scrollTop}}const Wa=new Set(["absolute","fixed"]);function Ha(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,a=r.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;const e=sa();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}const c=Ua(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=Yi(e),n=fa(e),r=e.ownerDocument.body,o=wa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=wa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ua(e);const s=-n.scrollTop;return"rtl"===la(r).direction&&(a+=wa(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Yi(e));else if(Xi(t))r=function(e,t){const n=Ba(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Vi(e)?za(e):Ta(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=$a(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ca(r)}function qa(e,t){const n=pa(e);return!(n===t||!Xi(n)||ca(n))&&("fixed"===la(n).position||qa(n,t))}function Ya(e,t,n){const r=Vi(t),o=Yi(t),i="fixed"===n,a=Ba(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const u=Ta(0);function c(){u.x=Ua(o)}if(r||!r&&!i)if(("body"!==Hi(t)||Ji(o))&&(s=fa(t)),r){const e=Ba(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?Ta(0):Fa(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 Ga(e){return"static"===la(e).position}function Xa(e,t){if(!Vi(e)||"fixed"===la(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Yi(e)===n&&(n=n.ownerDocument.body),n}function Va(e,t){const n=qi(e);if(na(e))return n;if(!Vi(e)){let t=pa(e);for(;t&&!ca(t);){if(Xi(t)&&!Ga(t))return t;t=pa(t)}return n}let r=Xa(e,t);for(;r&&ea(r)&&Ga(r);)r=Xa(r,t);return r&&ca(r)&&Ga(r)&&!aa(r)?n:r||function(e){let t=pa(e);for(;Vi(t)&&!ca(t);){if(aa(t))return t;if(na(t))return null;t=pa(t)}return null}(e)||n}const Za={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Yi(r),s=!!t&&na(t.floating);if(r===a||s&&i)return n;let u={scrollLeft:0,scrollTop:0},c=Ta(1);const l=Ta(0),f=Vi(r);if((f||!f&&!i)&&(("body"!==Hi(r)||Ji(a))&&(u=fa(r)),Vi(r))){const e=Ba(r);c=za(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const p=!a||f||i?Ta(0):Fa(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:Yi,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?na(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ha(e,[],!1).filter(e=>Xi(e)&&"body"!==Hi(e)),o=null;const i="fixed"===la(e).position;let a=i?pa(e):e;for(;Xi(a)&&!ca(a);){const t=la(a),n=aa(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Wa.has(o.position)||Ji(a)&&!n&&qa(e,a))?r=r.filter(e=>e!==a):o=t,a=pa(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Ha(t,n,o);return e.top=wa(r.top,e.top),e.right=_a(r.right,e.right),e.bottom=_a(r.bottom,e.bottom),e.left=wa(r.left,e.left),e},Ha(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Va,getElementRects:async function(e){const t=this.getOffsetParent||Va,n=this.getDimensions,r=await n(e.floating);return{reference:Ya(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}=ja(e);return{width:t,height:n}},getScale:za,isElement:Xi,isRTL:function(e){return"rtl"===la(e).direction}},Ka=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=Aa(n),s=Oa(n),u="y"===Na(n),c=Pa.has(a)?-1:1,l=i&&u?-1:1,f=Ra(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 s&&"number"==typeof h&&(d="end"===s?-1*h:h),u?{x:d*l,y:p*c}:{x:p*c,y:d*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}}}}},Ja=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}=Ra(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:d=0}=Ra(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=s[p?"floating"===f?"reference":"floating":f],m=Ca(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(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},x=Ca(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,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=Na(Aa(o)),p=Ia(f);let d=c[p],h=c[f];if(i){const e="y"===p?"bottom":"right";d=Sa(d+l["y"===p?"top":"left"],d,d-l[e])}if(a){const e="y"===f?"bottom":"right";h=Sa(h+l["y"===f?"top":"left"],h,h-l[e])}const g=s.fn({...t,[p]:d,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[f]:a}}}}}},Qa=(e,t,n)=>{const r=new Map,o={platform:Za,...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}=ka(c,r,u),p=r,d={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[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:a,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 a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:f}=ka(c,p,u))),n=-1)}return{x:l,y:f,placement:p,strategy:o,middlewareData:d}})(e,t,{...o,platform:i})};var es="undefined"!=typeof document?U.useLayoutEffect:function(){};function ts(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(!ts(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||ts(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function ns(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rs(e,t){const n=ns(e);return Math.round(t*n)/n}function os(e){const t=U.useRef(e);return es(()=>{t.current=e}),t}const is=(e,t)=>({...Ka(e),options:[e,t]}),as=(e,t)=>({...Ja(e),options:[e,t]}),ss={...F},us=ss.useInsertionEffect||(e=>e());function cs(e){const t=U.useRef(()=>{});return us(()=>{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 ls="undefined"!=typeof document?U.useLayoutEffect:U.useEffect;let fs=!1,ps=0;const ds=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ps++,hs=ss.useId||function(){const[e,t]=U.useState(()=>fs?ds():void 0);return ls(()=>{null==e&&t(ds())},[]),U.useEffect(()=>{fs=!0},[]),e};const gs=U.createContext(null),ms=U.createContext(null),vs=()=>{var e;return(null==(e=U.useContext(gs))?void 0:e.id)||null},ys=()=>U.useContext(ms);function bs(e){return"data-floating-ui-"+e}function xs(e){const t=(0,U.useRef)(e);return ls(()=>{t.current=e}),t}const _s=bs("safe-polygon");function ws(e,t,n){return n&&!va(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Es(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 Ts="data-floating-ui-focusable";function Ss(e){return Vi(e.target)&&"BUTTON"===e.target.tagName}function Rs(e){return function(e){return Vi(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}(e)}const As={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Os={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Is=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 Ls(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:d,capture:h}=t,g=ys(),m=cs("function"==typeof u?u:()=>!1),v="function"==typeof u?m:u,y=U.useRef(!1),b=U.useRef(!1),{escapeKey:x,outsidePress:_}=Is(d),{escapeKey:w,outsidePress:E}=Is(h),T=U.useRef(!1),S=cs(e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;if(T.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,u=g?Es(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=cs(e=>{var t;const n=()=>{var t;S(e),null==(t=xa(e))||t.removeEventListener("keydown",n)};null==(t=xa(e))||t.addEventListener("keydown",n)}),A=cs(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=xa(e),u="["+bs("inert")+"]",l=ya(o.floating).querySelectorAll(u);let f=Xi(s)?s:null;for(;f&&!ca(f);){const e=pa(f);if(ca(e)||!Xi(e))break;f=e}if(l.length&&Xi(s)&&!s.matches("html,body")&&!ma(s,o.floating)&&Array.from(l).every(e=>!ma(f,e)))return;if(Vi(s)&&L){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"===la(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,d=g&&Es(g.nodesRef.current,p).some(t=>{var n;return ba(e,null==(n=t.context)?void 0:n.elements.floating)});if(ba(e,o.floating)||ba(e,o.domReference)||d)return;const h=g?Es(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=cs(e=>{var t;const n=()=>{var t;A(e),null==(t=xa(e))||t.removeEventListener(c,n)};null==(t=xa(e))||t.addEventListener(c,n)});U.useEffect(()=>{if(!n||!a)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},sa()?5:0)}const f=ya(o.floating);s&&(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=ha(o.domReference)),Xi(o.floating)&&(d=d.concat(ha(o.floating))),!Xi(o.reference)&&o.reference&&o.reference.contextElement&&(d=d.concat(ha(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})}),()=>{s&&(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,s,v,c,n,r,p,a,x,_,S,w,R,A,E,O]),U.useEffect(()=>{y.current=!1},[v,c]);const I=U.useMemo(()=>({onKeyDown:S,[As[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},[Os[c]]:()=>{y.current=!0}}),[S,c]);return U.useMemo(()=>a?{reference:I,floating:L}:{},[a,I,L])}function Ns(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=hs(),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!=vs(),[u,c]=U.useState(r.reference),l=cs((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=ys();ls(()=>{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,d]=U.useState(r);ts(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,_=a||m,w=U.useRef(null),E=U.useRef(null),T=U.useRef(l),S=null!=u,R=os(u),A=os(o),O=os(c),I=U.useCallback(()=>{if(!w.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),Qa(w.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};L.current&&!ts(T.current,t)&&(T.current=t,Ai.flushSync(()=>{f(t)}))})},[p,t,n,A,O]);es(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);const L=U.useRef(!1);es(()=>(L.current=!0,()=>{L.current=!1}),[]),es(()=>{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=rs(C.floating,l.x),r=rs(C.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ns(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,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,...s&&{reference:s}}}),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,a(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 ls(()=>{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 Cs="active",ks="selected";function Ps(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Cs]:t,[ks]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Ts]:""},...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&&[Cs,ks].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 js(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=>Ps(t,e,"reference"),t),i=U.useCallback(t=>Ps(t,e,"floating"),n),a=U.useCallback(t=>Ps(t,e,"item"),r);return U.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}function Ds(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: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=xa(e),x="mouseleave"===e.type,_=ma(f.floating,b),w=ma(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)&&ma(f.floating,e.relatedTarget))return;if(h&&Es(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(!Ds([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===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 g()}Ds([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 Ms=function(){return Ms=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},Ms.apply(this,arguments)},$s=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))},Bs=i,Us=function(e){var t=e.top,n=e.left,r=e.isVisible,o=void 0!==r&&r,i=e.children,a=e.style,s=(0,U.useState)(!0),u=s[0],c=s[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:Bs.root,style:Ms(Ms({},null==a?void 0:a.root),{"--background-color":u?"rgba(0, 0, 0, 0.0)":"rgba(0, 0, 0, 0.4)"}),children:(0,V.jsx)("div",{className:Bs.background,property:u?"--top-value: 50%":"--top-value: ".concat(t),style:Ms(Ms({},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"}),children:i()})}),document.body)})},Fs=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=(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 Hs({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(s,e)),function(){null==t||t.removeEventListener(s,e)}},[l,h]),(0,U.useEffect)(function(){var e=function(){return g(!h)},t=l;return t&&(null==t||t.addEventListener(s,e)),function(){null==t||t.removeEventListener(s,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:Bs["popup-element"],style:o.style,ref:p,children:t({remove:function(){return g(!1)},parentRef:l||void 0})}),document.body)]})},Ws=[],Hs=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(){a()},a=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=$s($s([],t.filterElementOnAutoRemove||[],!0),Ws,!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,Ws.push(e.element),Ws.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,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")}},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,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,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+a,"px"):"top-edge"===n?d.style.top="".concat((h.top<1?0:h.top)+a,"px"):"bottom-edge"===n?d.style.top="".concat((h.top<1?0:h.top)-g.height+h.height+a,"px"):"center"===n?(m=h.height/2-g.height/2,d.style.top="".concat((h.top<1?0:h.top)+m+a,"px")):d.style.top="".concat((h.bottom<1?0:h.bottom)+a,"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;Ws=Ws.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}(),qs=function(e){var t=(0,U.useState)(!1),n=t[0],r=t[1],o=(0,U.useRef)(),i=Ns({open:n,onOpenChange:r,middleware:[as(),is(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,d=ys(),h=vs(),g=xs(c),m=xs(u),v=xs(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(s)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)}},[s,i]),U.useEffect(()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){R()&&r(!1,e,"hover")}const t=ya(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,r,s,g,R]);const A=U.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=ws(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=cs(()=>{T.current(),x.current=void 0}),I=cs(()=>{if(E.current){const e=ya(a.floating).body;e.style.pointerEvents="",e.removeAttribute(_s),E.current=!1}});U.useEffect(()=>{if(s&&Xi(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),w.current=!1,l&&!va(y.current)||f>0&&!ws(m.current,"open"))return;const t=ws(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=ya(a.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||!ma(a.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))}},[a,s,e,l,f,p,A,O,I,r,n,v,d,m,g,o]),ls(()=>{var e;if(s&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&R()){E.current=!0;const e=a.floating;if(Xi(a.domReference)&&e){var t;const n=ya(a.floating).body;n.setAttribute(_s,"");const r=a.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=""}}}},[s,n,h,a,d,g,R]),ls(()=>{n||(y.current=void 0,S.current=!1,O(),I())},[n,O,I]),U.useEffect(()=>()=>{O(),clearTimeout(b.current),clearTimeout(_.current),I()},[s,a.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&&!va(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(()=>s?{reference:L,floating:N}:{},[s,L,N])}(i.context,{handleClose:zs({requireIntent:!1})}),f=js([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,a.setReference(e)}),n&&(0,Ai.createPortal)((0,V.jsx)("div",Ms({ref:a.setFloating,style:{position:c,top:null!=u?u:0,left:null!=s?s:0,zIndex:1e3}},d(),{children:e.element})),document.body)]})},Ys=function(e){var t=(0,U.useState)(!1),n=t[0],r=t[1],o=(0,U.useRef)(),i=Ns({open:n,onOpenChange:r,middleware:[as(),is(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),d=U.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==s&&(va(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:va(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||Ss(e)||(" "!==e.key||Rs(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&r(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!l||Ss(e)||Rs(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:d}:{},[a,d])}(l),p=js([f,Ls(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,a.setReference(e)}),n&&(0,Ai.createPortal)((0,V.jsx)("div",Ms({ref:a.setFloating,style:{position:c,top:null!=u?u:0,left:null!=s?s:0,zIndex:1e3}},h(),{children:e.element})),document.body)]})},Gs=function(e){var t=(0,U.useRef)(),n=Ns({open:e.isOpen,middleware:[as(),is(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=js([Ls(n.context)]),u=s.getReferenceProps,c=s.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",Ms({ref:r.setFloating,style:{position:a,top:null!=i?i:0,left:null!=o?o:0,zIndex:1e3}},c(),{children:e.element})),document.body)]})},Xs=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)})},Vs=function(e,t){return"%"===(null==t?void 0:t.unit)?e*((t.value||0)/100):(null==t?void 0:t.value)||0},Zs=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-Vs(o,a)-Vs(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},Ks=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 a=i.item.ref;a&&(i.size&&a.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=a,i.resizeObserver=Zs(i.sizes.map(function(e){return e.width}),a,function(t,n,r){window.requestAnimationFrame(function(){var t,o,s=i.sizes.find(function(e){return e.width===n}),u=i.sizes.find(function(e){return e.width===r});(null==s?void 0:s.className)&&(null==a||(t=a.classList).remove.apply(t,null==s?void 0:s.className)),(null==u?void 0:u.className)&&(null==a||(o=a.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}(),Js=s(543),Qs=s.n(Js),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=Qs().cloneDeep(this.baseState),o=this.getApisRequest(r),i=Object.entries(o).reduce(function(t,r){var o=r[0],i=r[1],a=new Y(function(){n.emit(e)});return a.load(i),t[o]=a,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 Qs().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,au={replace:0,none:1,blend:2},su=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:au.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={},ac=(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},sc=(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,a=o;for(n&&(i=e._tail,a=r);i;){const e=i[a];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 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 gc{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=ac(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=ac(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,a=e.duration,s=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,a),x=oc(y,-g,a),_=y-m,w=x>0,E=x>=a,T=a<=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:a: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!==a)||N>=v&&b!==a||N<=g&&b>0||t<=b&&b===a&&s||E&&!s&&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 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,d=l._nextRep,h=l._prevRep,g=e!==au.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(ac(sc(l._fromNumber,l._toNumber,n),v));else if(1===p)b=o(ac(sc(l._fromNumber,l._toNumber,n),v)),y=`${b}${l._unit}`;else if(2===p){const e=l._fromNumbers,t=l._toNumbers,r=ac(oc(o(sc(e[0],t[0],n)),0,255),0),i=ac(oc(o(sc(e[1],t[1],n)),0,255),0),a=ac(oc(o(sc(e[2],t[2],n)),0,255),0),s=oc(o(ac(sc(e[3],t[3],n),v)),0,1);if(y=`rgba(${r},${i},${a},${s})`,g){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(ac(sc(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===au.blend)l._value=y;else{const e=l.property;a=l.target,h?a[e]=y:1===d?a.setAttribute(e,y):(s=a.style,3===d?(a!==u&&(u=a,c=a[lu]),c[e]=y,f=1):2===d?s[e]=y:4===d&&s.setProperty(e,y)),w&&(O=1)}}if(f&&l._renderTransforms){let e=gu;for(let t in c)e+=`${yu[t]}${c[t]}) `;s.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>=a&&!s||C&&y<=pu&&s)&&(e.onComplete(e),e.completed=!C):w&&E?c===1/0?e._startTime+=e.duration:e._currentIteration>=c-1&&(e.paused=!0,s||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 a=e,s=a.backwards,u=r?t:a._iterationTime,c=Pu();let l=0,f=!0;if(!r&&a._currentIteration!==i){const e=a.iterationDuration;pc(a,t=>{if(s){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||a.onLoop(a)}pc(a,e=>{const t=ac((u-e._offset)*e._speed,12),i=e._fps<a._fps?e.requestTick(c):o;l+=mc(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))))}},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[su]){n[su]=!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 a;for(;a=Ou.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&&!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 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=ac(255*Ic(t,e,n+1/3),0),s=ac(255*Ic(t,e,n),0),u=ac(255*Ic(t,e,n-1/3),0)}return[a,s,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===au.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 a=!0;if(pc(t,e=>{e._isOverlapped||(a=!1)}),a){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===au.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=au.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!==au.none){const n=e.target,r=e.property,o=$c._rep.get(n)[r];if(dc(o,e,"_prevRep","_nextRep"),t===au.blend){const t=$c._add,o=t.get(n);if(!o)return;const i=o[r],a=yc.animation;dc(i,e,"_prevAdd","_nextAdd");const s=i._head;if(s&&s===i._tail){dc(i,s,"_prevAdd","_nextAdd"),dc(a,s);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!==au.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:a,alternate:s,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(a,x.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=Lc(s,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(ac(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 ac(this._iterationTime,Nu.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return oc(ac(this._currentTime/this.duration,5),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return oc(ac(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(ac(t*n,12))),this.iterationDuration=r?pu:cc(uc(ac(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,a=1,s=0;do{o=i+(a-i)/2,r=Zc(o,t,n)-e,r>0?a=o:i=o}while(Ju(r)>1e-7&&++s<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],a=[Gu(r)];for(let t=1;t<n;t++){const r=e[t],o=Mu(r)?r.trim().split(" "):[r],s=o[0],u=o[1];i.push(Bu(u)?t/n:Gu(u)/100),a.push(Gu(s))}return a.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=a[t-1];return o+(a[t]-o)*(e-r)/(n-r)}}return a[a.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,a=i*(1-t)+(i+((e+1)/r-i)*Math.random())*t;n.push(oc(a,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},al=(()=>{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})(),sl={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,al,sl):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 a=i+o+n,s=pl[a];if(Bu(s)||r){let r;if(o in fl)r=i*fl[o]/fl[n];else{const t=100,a=e.cloneNode(),s=e.parentNode,u=s&&s!==iu?s:iu.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,pl[a]=r}else t.n=s;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,a=0){super(t,n,r);const s=Ac(e),u=s.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 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: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?au.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=s[e],r=i||e,c=a||u;let f=NaN,p=NaN;for(let e in l)if(Yu(e)){const i=Cc(t,e),a=ll(e,t,i);let s=l[e];const u=ju(s);if(o&&!u&&(bl[0]=s,bl[1]=s,s=bl),u){const e=s.length,t=!Du(s[0]);2===e&&t?(xl.to=s,yl[0]=xl,_l=yl):e>2&&t?(_l=[],s.forEach((e,t)=>{t?1===t?(bl[1]=e,_l.push(bl)):_l.push(e):bl[0]=e})):_l=s}else yl[0]=s,_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 s=Nc(wl.to,t,r,c,vl);let u;Du(s)&&!Bu(s.to)?(wl=s,u=s.to):u=s;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(_)?_:au[_],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!==au.none){d||(d=Bc(t,a));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,a,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,a,i,A),ml),k?Dc(l,gl):h?zc(h,gl):Dc(n&&$&&$.parent.parent===n?$._value:Pc(t,a,i,A),gl)),gl.o&&(gl.n=jc($?$._toNumber:Dc(Pc(t,a,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=ac(+b||pu,12),U={parent:this,id:El++,property:a,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!==au.none&&Wc(U,d),isNaN(g)&&(g=U._startTime),m=ac(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===au.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=s,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(ac(e._updateDuration*n,12)),e._changeDuration=cc(ac(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,a=!t||r.property===t,s=!n||r.parent===n;if(i&&a&&s){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),a=ll(t,o,i);let s=Pc(o,a);if(Bu(n))return s;if(Dc(s,Mc),0===Mc.t||1===Mc.t){if(!1===n)return Mc.n;{const e=dl(o,Mc,n,!1);return`${ac(e.n,Nu.precision)}${e.u}`}}}const Il=(e,t)=>{if(!Bu(t))return t.duration=pu,t.composition=Lc(t.composition,au.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,a=o._tweenType,s=ll(n,i,a);(!s||s&&s===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 a;if(o._hasChildren){let t=0;pc(o,i=>{if(!i._hasChildren)if(a=Ll(r,i,n),a&&!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 a=Ll(r,o,n);return a&&!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(ac),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(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*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),a=((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),s=!Bu(a),u=Iu.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?Bu(o[r])?n:o[r]:n};function Ml(e,t,n,r,o,i){const a=zu(e.duration)&&e.duration<=pu?n-pu:n;vc(t,a,1,1,1);const s=r?new Tl(r,e,t,a,!1,o,i):new Xc(e,t,a);return s.init(1),hc(t,s),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,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,Bu(s)||(n.id=s+"-"+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=au.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,a=n-o,s=r-i;this.prevScrollX=o,this.prevScrollY=i,a&&(this.backwardX=n>o),s&&(this.backwardY=r>i),this.velocity=ac(t>0?Math.sqrt(a*a+s*s)/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=ac(e?ou.scrollX:t.scrollLeft,0),this.scrollY=ac(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,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}=Dc(s,Mc);let l=u;return"%"===c?l=u/100*n:c&&(l=dl(e,Mc,"px",!0).n),a&&r<0&&(l+=r),i&&o>0&&(l+=o),l},Hl=(e,t,n,r,o)=>{let i;if(Mu(t)){const a=Iu.exec(t);if(a){const s=a[0],u=s[0],c=t.split(s),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 ac(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),a=t&&Mu(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=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||!!s,this.syncEase=o?n:null,this.syncSmooth=i?!0===t||r?1:t:null,this.onSyncEnter=s&&!u&&s[0]?s[0]:bu,this.onSyncLeave=s&&!u&&s[1]?s[1]:bu,this.onSyncEnterForward=s&&u&&s[0]?s[0]:bu,this.onSyncLeaveForward=s&&u&&s[1]?s[1]:bu,this.onSyncEnterBackward=s&&u&&s[2]?s[2]:bu,this.onSyncLeaveBackward=s&&u&&s[3]?s[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:ac(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"),a=Gl[this.index%Gl.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,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,s=(r?0:this.offset)+e,d=n%2,h=s<y,g=s>(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 ${a};\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?a:"rgba(0,0,0,.75)"};\n background-color: ${d?"rgba(0,0,0,.65)":a};\n border: 2px solid ${d?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 `,x.appendChild(_);let R=s-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,a=t,s=0,u=0,c=a;o&&(i=o.currentTime,o.seek(0,!0));const l="static"===Ol(n.element,"position")&&Il(n.element,{position:"relative "});for(;a&&a!==n.element&&a!==iu.body;){const t="sticky"===Ol(a,"position")&&Il(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,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]=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,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,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,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=ac(kl(t,m,sc(.01,.2,r),!1)+e,6)}}else n&&(m=n(m));h=m!==this.prevProgress,g=1===t,h&&!g&&r&&t&&a.wakeTicker.restart()}if(d){const e=i?a.scrollY:a.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,af,sf;!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"}(af||(af={})),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"}(sf||(sf={}));var uf,cf=((Zl={})[sf.PLAY]="play",Zl[sf.PAUSE]="pause",Zl[sf.REVERSE]="reverse",Zl[sf.IGNORE]="ignore",Zl[sf.DESTROY]="destroy",Zl[sf.INIT]="init",Zl[sf.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]),a=(0,U.useMemo)(function(){var t=Object.entries(e).reduce(function(e,t){return e[t[0]]={complete:!1},e},{}),o={},s={},u=function(r,a){var u,c,l,f,p,d,h,g=r.name,m=o[g];if(!m){var v=vf[r.direction||ff.NORMAL];s[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_===af.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_===af.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:a},o[g]=m,m.instance.onComplete=function(){s[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"!==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=t[0],i=t[1],s=e[o],u=s?yf(s.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)))&&a.destroy(i.node)})}}},[]);return a.player=r,{instances:a,scan:function(){Object.entries(t).forEach(function(t){var n=t[0],r=t[1],o=e[n];if(o&&r!==sf.IGNORE)if(r!==sf.DESTROY){var i=yf(o.data);i.length?(a.get(o.node,i),r===sf.PLAY?o&&a.play(o.node):r===sf.PAUSE?o&&a.pause(o.node):r===sf.RE_PLAY?o&&a.play(o.node,!0):r===sf.REVERSE&&o&&a.reverse(o.node)):a.destroy(o.node)}else a.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 a=r.getBoundingClientRect();e.config===gf.TOP?o=Number(t.scrollTop+(a.top-i.top)):e.config===gf.BOTTOM?o=Number(t.scrollTop+(a.bottom-i.top)):e.config===gf.LEFT?o=Number(t.scrollLeft+(a.left-i.left)):e.config===gf.RIGHT&&(o=Number(t.scrollLeft+(a.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})());
|
|
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),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=s,t.splice(s,0,{identifier:f,updater:h,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}}},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 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}},335(e,t,n){"use strict";var r=n(155),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=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)a.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:s.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 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 d=r.shift(),h=r.shift();try{p=d(p)}catch(e){h(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,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]",O="[object Set]",A="[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?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,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",Oe="\\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",Ae="["+_e+"]",Ie="["+Oe+"]",Le="["+we+"]",Ne="\\d+",Ce="["+Ee+"]",ke="["+Te+"]",Pe="[^"+_e+Oe+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,Ae].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[O]=ot[A]=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[O]=it[A]=it[I]=it[M]=it[$]=it[B]=it[U]=!0,it[b]=it[x]=it[L]=!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,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&>.binding&>.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 a=e[o];t(r,a,n(a),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 Ot(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 At(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)&&$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 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 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({"&":"&","<":"<",">":">",'"':""","'":"'"});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 dn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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,Oe=t.TypeError,Ae=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=an(Te.getPrototypeOf,Te),qe=Te.create,Ye=Le.propertyIsEnumerable,Ge=Ae.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){}}(),at=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=Ae.join,gn=an(Te.keys,Te),mn=Ee.max,vn=Ee.min,yn=oe.now,bn=t.parseInt,xn=Ee.random,_n=Ae.reverse,wn=ci(t,"DataView"),En=ci(t,"Map"),Tn=ci(t,"Promise"),Sn=ci(t,"Set"),Rn=ci(t,"WeakMap"),On=ci(Te,"create"),An=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(es(e)&&!Wa(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(!Qa(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=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)||mi(c,u))||s.push(c);return s}function Vn(e){var t=e.length;return t?e[qr(0,t-1)]:o}function Zn(e,t){return Ci(Oo(e),ir(t,0,e.length))}function Kn(e){return Ci(Oo(e))}function Jn(e,t,n){(n!==o&&!$a(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)&&$a(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if($a(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&&Ao(t,Ls(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:Ss(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 Oo(e,s)}else{var p=pi(e),d=p==x||p==_;if(Ga(e))return _o(e,u);if(p==T||p==g||d&&!i){if(s=c||d?{}:hi(e),!u)return c?function(e,t){return Ao(e,fi(e),t)}(e,function(e,t){return e&&Ao(t,Ns(t),e)}(s,e)):function(e,t){return Ao(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 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 A: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 O:return new o;case I:return r=e,Dn?Te(Dn.call(r)):{}}}(e,p,u)}}a||(a=new Gn);var h=a.get(e);if(h)return h;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 m=f?o:(l?c?ni:ti:c?Ns:Ls)(e);return St(m||e,function(r,o){m&&(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=Te(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 Oe(i);return Ai(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=Nt(t,Vt(n))),r?(i=Lt,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}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__=On?On(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(On){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 On?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]=On&&t===o?a: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=si(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return si(this,e).get(e)},qn.prototype.has=function(e){return si(this,e).has(e)},qn.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 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 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 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,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?gr(s,t-1,n,r,o):Ct(o,s):r||(o[o.length]=s)}return o}var mr=Co(),vr=Co(!0);function yr(e,t){return e&&mr(e,t,Ls)}function br(e,t){return e&&vr(e,t,Ls)}function xr(e,t){return At(t,function(t){return Za(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 Wa(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 Or(e,t,n){for(var i=n?Lt: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=Nt(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 d=-1,h=c[0];e:for(;++d<a&&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=s;--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 Ar(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 es(e)&&Er(e)==g}function Lr(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?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&&Ga(e)){if(!Ga(t))return!1;s=!0,f=!1}if(d&&!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 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 $a(+e,+t);case b:return e.name==t.name&&e.message==t.message;case R:case A:return e==t+"";case w:var s=on;case O: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 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 a||(a=new Gn),i(_,S,n,r,a)}}return!!d&&(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),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var g=s;++l<c;){var m=e[f=u[l]],v=t[f];if(r)var y=s?r(v,m,f,t,e,a):r(m,v,f,e,t,a);if(!(y===o?m===v||i(m,v,n,r,a):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 a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Lr,i))}function Nr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Te(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 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!(!Qa(e)||(t=e,je&&je in t))&&(Za(e)?$e:ge).test(zi(e));var t}function kr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?Wa(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=qa(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=Ss(n,e);return r===o&&r===t?Rs(n,e):Lr(t,r,3)}}function $r(e,t,n,r,i){e!==t&&mr(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 d=Wa(c),h=!d&&Ga(c),g=!d&&!h&&us(c);f=c,d||h||g?Wa(u)?f=u:Ya(u)?f=Oo(u):h?(p=!1,f=_o(c,!0)):g?(p=!1,f=Eo(c,!0)):f=[]:rs(c)||Fa(c)?(f=u,Fa(u)?f=ms(u):Qa(u)&&!Za(u)||(f=hi(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,$r,r,i);else{var u=r?r(Ri(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Jn(e,s,u)}},Ns)}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 Wa(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e}):[nu];var r=-1;t=Nt(t,Vt(ai()));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,a=o.length,s=n.length;++r<a;){var u=To(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=_r(e,a);n(s,a)&&Zr(i,vo(a,e),s)}return i}function Wr(e,t,n,r){var o=r?Bt:$t,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=Nt(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 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($s(e))}function Vr(e,t){var n=$s(e);return Ci(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:mi(t[i+1])?[]:{})}Qn(u,c,l),u=u[c]}return e}var Kr=An?function(e,t){return An.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 Ci($s(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=dt((i+a)/2),p=n(e[f]),d=p!==o,h=null===p,g=p==p,m=ss(p);if(s)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: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||!$a(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 Nt(e,ao)+"";if(ss(e))return zn?zn.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=Lt;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=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?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(gr(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 go(e){return Ya(e)?e:[]}function mo(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 xo=at||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,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 So(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=mn(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=mn(a-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(;++s<u;)(d||i<a)&&(p[h+n[s]]=e[i++]);return p}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Ao(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)?Tt:tr,i=t?t():{};return o(n,e,ai(r,2),i)}}function Lo(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=Te(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}function No(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Te(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Co(e){return function(t,n,r){for(var o=-1,i=Te(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=$n(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function Do(e){return function(t,n,r){var i=Te(t);if(!qa(t)){var a=ai(n,3);t=Ls(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 zo(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 Oe(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 Mo(e,t,n,i,a,s,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,a,m)),s&&(x=Ro(x,s,u,m)),b-=E,m&&b<p){var T=sn(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=Oo(e);r--;){var a=t[r];e[r]=mi(a,n)?i[a]: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=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=Nt(t,Vt(ai())),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?" ":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=mn(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 Ho(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function qo(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 d=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,l,f],h=n.apply(o,d);return bi(e)&&Oi(h,d),h.placeholder=r,Li(h,e,t)}function Yo(e){var t=Ee[e];return function(e,n){if(e=gs(e),(n=null==n?0:vn(ds(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=Sn&&1/un(new Sn([,-0]))[1]==l?function(e){return new Sn(e)}:su;function Xo(e){return function(t){var n=pi(t);return n==w?on(t):n==O?cn(t):function(e,t){return Nt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Vo(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Oe(i);var g=a?a.length:0;if(g||(t&=-97,a=l=o),p=p===o?p:mn(ds(p),0),d=d===o?d:ds(d),g-=l?l.length:0,64&t){var m=a,v=l;a=l=o}var y=h?o:ri(e),b=[e,t,n,a,l,m,v,f,p,d];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?So(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],!(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 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?qo(e,t,Mo,a.placeholder,o,u,f,o,o,n-s):Et(this&&this!==ft&&this instanceof a?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,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 Et(p,i?n:this,f)}}(e,t,n,a);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:Oi)(x,b),e,t)}function Zo(e,t,n,r){return e===o||$a(e,Le[n])&&!ke.call(r,n)?t:e}function Ko(e,t,n,r,i,a){return Qa(e)&&Qa(t)&&(a.set(t,e),$r(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,d=!0,h=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++p<u;){var g=e[p],m=t[p];if(r)var v=s?r(m,g,p,t,e,a):r(g,m,p,e,t,a);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,a)))return h.push(t)})){d=!1;break}}else if(g!==m&&!i(g,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ei(e){return Ii(Ti(e,o,Hi),e+"")}function ti(e){return wr(e,Ls,li)}function ni(e){return wr(e,Ns,fi)}var ri=An?function(e){return An.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(Mn,"placeholder")?Mn:e).placeholder}function ai(){var e=Mn.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=Ls(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),At(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 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)&&mi(a,o)&&(Wa(e)||Fa(e))}function hi(e){return"function"!=typeof e.constructor||_i(e)?{}:$n(He(e))}function gi(e){return Wa(e)||Fa(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(!Qa(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&mi(t,n.length):"string"==r&&t in n)&&$a(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 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)!=O||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 O;case Pn:return L}return t});var xi=Ne?Za:gu;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function wi(e){return e==e&&!Qa(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,a=mn(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),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 Oi=Ni(Kr),Ai=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(ae);return t?t[1].split(se):[]}(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 a=qr(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 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__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $i=Gr(function(e,t){return Ya(e)?cr(e,gr(t,1,Ya,!0)):[]}),Bi=Gr(function(e,t){var n=Vi(t);return Ya(n)&&(n=o),Ya(e)?cr(e,gr(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,gr(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:ds(n);return o<0&&(o=mn(r+o,0)),Mt(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=ds(n),i=n<0?mn(r+i,0):vn(i,r-1)),Mt(e,ai(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]?Or(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]?Or(n,ai(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]?Or(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 ea=Gr(function(e){return so(gr(e,1,Ya,!0))}),ta=Gr(function(e){var t=Vi(e);return Ya(t)&&(t=o),so(gr(e,1,Ya,!0),ai(t,2))}),na=Gr(function(e){var t=Vi(e);return t="function"==typeof t?t:o,so(gr(e,1,Ya,!0),o,t)});function ra(e){if(!e||!e.length)return[];var t=0;return e=At(e,function(e){if(Ya(e))return t=mn(e.length,t),!0}),Gt(t,function(t){return Nt(e,Wt(t))})}function oa(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Nt(n,function(e){return Et(t,o,e)})}var ia=Gr(function(e,t){return Ya(e)?cr(e,t):[]}),aa=Gr(function(e){return po(At(e,Ya))}),sa=Gr(function(e){var t=Vi(e);return Ya(t)&&(t=o),po(At(e,Ya),ai(t,2))}),ua=Gr(function(e){var t=Vi(e);return t="function"==typeof t?t:o,po(At(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=Mn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var da=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:pa,args:[i],thisArg:o}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),ha=Io(function(e,t,n){ke.call(e,n)?++e[n]:rr(e,n,1)}),ga=Do(Fi),ma=Do(Wi);function va(e,t){return(Wa(e)?St: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])}),xa=Gr(function(e,t,n){var o=-1,i="function"==typeof t,a=qa(e)?r(e.length):[];return lr(e,function(e){a[++o]=i?Et(t,e,n):Ar(e,t,n)}),a}),_a=Io(function(e,t,n){rr(e,n,t)});function wa(e,t){return(Wa(e)?Nt:Dr)(e,ai(t,3))}var Ea=Io(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ta=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),[])}),Sa=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 Oa(e,t){var n;if("function"!=typeof t)throw new Oe(i);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Aa=Gr(function(e,t,n){var r=1;if(n.length){var o=sn(n,ii(Aa));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 La(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Oe(i);function g(t){var n=r,i=a;return r=a=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>=s}function v(){var e=Sa();if(m(e))return y(e);c=Ai(v,function(e){var n=t-(e-l);return d?vn(n,s-(e-f)):n}(e))}function y(e){return c=o,h&&r?g(e):(r=a=o,u)}function b(){var e=Sa(),n=m(e);if(r=arguments,a=this,l=e,n){if(c===o)return function(e){return f=e,c=Ai(v,t),p?g(e):u}(l);if(d)return xo(c),c=Ai(v,t),g(l)}return c===o&&(c=Ai(v,t)),u}return t=gs(t)||0,Qa(n)&&(p=!!n.leading,s=(d="maxWait"in n)?mn(gs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&xo(c),f=0,r=l=a=c=o},b.flush=function(){return c===o?u:y(Sa())},b}var Na=Gr(function(e,t){return ur(e,1,t)}),Ca=Gr(function(e,t,n){return ur(e,gs(t)||0,n)});function ka(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(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||qn),n}function Pa(e){if("function"!=typeof e)throw new Oe(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=qn;var ja=yo(function(e,t){var n=(t=1==t.length&&Wa(t[0])?Nt(t[0],Vt(ai())):Nt(gr(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 Et(e,this,r)})}),Da=Gr(function(e,t){var n=sn(t,ii(Da));return Vo(e,u,o,t,n)}),za=Gr(function(e,t){var n=sn(t,ii(za));return Vo(e,64,o,t,n)}),Ma=ei(function(e,t){return Vo(e,256,o,o,o,t)});function $a(e,t){return e===t||e!=e&&t!=t}var Ba=Ho(Tr),Ua=Ho(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,Ha=vt?Vt(vt):function(e){return es(e)&&Er(e)==N};function qa(e){return null!=e&&Ja(e.length)&&!Za(e)}function Ya(e){return es(e)&&qa(e)}var Ga=mt||gu,Xa=yt?Vt(yt):function(e){return es(e)&&Er(e)==y};function Va(e){if(!es(e))return!1;var t=Er(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=Er(e);return t==x||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==ds(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)==w};function ns(e){return"number"==typeof e||es(e)&&Er(e)==E}function rs(e){if(!es(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 os=xt?Vt(xt):function(e){return es(e)&&Er(e)==R},is=_t?Vt(_t):function(e){return es(e)&&pi(e)==O};function as(e){return"string"==typeof e||!Wa(e)&&es(e)&&Er(e)==A}function ss(e){return"symbol"==typeof e||es(e)&&Er(e)==I}var us=wt?Vt(wt):function(e){return es(e)&&Ja(e.length)&&!!ot[Er(e)]},cs=Ho(jr),ls=Ho(function(e,t){return e<=t});function fs(e){if(!e)return[];if(qa(e))return as(e)?fn(e):Oo(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==O?un:$s)(e)}function ps(e){return e?(e=gs(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ir(ds(e),0,d):0}function gs(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=he.test(e);return n||me.test(e)?ut(e.slice(2),n?2:8):de.test(e)?p:+e}function ms(e){return Ao(e,Ns(e))}function vs(e){return null==e?"":ao(e)}var ys=Lo(function(e,t){if(_i(t)||qa(t))Ao(t,Ls(t),e);else for(var n in t)ke.call(t,n)&&Qn(e,n,t[n])}),bs=Lo(function(e,t){Ao(t,Ns(t),e)}),xs=Lo(function(e,t,n,r){Ao(t,Ns(t),e,r)}),_s=Lo(function(e,t,n,r){Ao(t,Ls(t),e,r)}),ws=ei(or),Es=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 a=t[n],s=Ns(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||$a(f,Le[l])&&!ke.call(e,l))&&(e[l]=a[l])}return e}),Ts=Gr(function(e){return e.push(o,Ko),Et(ks,o,e)});function Ss(e,t,n){var r=null==e?o:_r(e,t);return r===o?n:r}function Rs(e,t){return null!=e&&di(e,t,Rr)}var Os=$o(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n},Qs(nu)),As=$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]},ai),Is=Gr(Ar);function Ls(e){return qa(e)?Xn(e):Pr(e)}function Ns(e){return qa(e)?Xn(e,!0):function(e){if(!Qa(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 Cs=Lo(function(e,t,n){$r(e,t,n)}),ks=Lo(function(e,t,n,r){$r(e,t,n,r)}),Ps=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}),Ao(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=Nt(ni(e),function(e){return[e]});return t=ai(t),Fr(e,n,function(e,n){return t(e,n[0])})}var zs=Xo(Ls),Ms=Xo(Ns);function $s(e){return null==e?[]:Zt(e,Ls(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()}),Hs=Po(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),qs=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 Et(e,o,t)}catch(e){return Va(e)?e:new _e(e)}}),Js=ei(function(e,t){return St(t,function(t){t=Di(t),rr(e,t,Aa(e[t],e))}),e});function Qs(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:ar(e,1))}var ou=Gr(function(e,t){return function(n){return Ar(n,e,t)}}),iu=Gr(function(e,t){return function(n){return Ar(e,n,t)}});function au(e,t,n){var r=Ls(t),o=xr(t,r);null!=n||Qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Ls(t)));var i=!(Qa(n)&&"chain"in n&&!n.chain),a=Za(e);return St(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__=Oo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ct([this.value()],arguments))})}),e}function su(){}var uu=Uo(Nt),cu=Uo(Ot),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 Oe(i);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Mn.ary=Ra,Mn.assign=ys,Mn.assignIn=bs,Mn.assignInWith=xs,Mn.assignWith=_s,Mn.at=ws,Mn.before=Oa,Mn.bind=Aa,Mn.bindAll=Js,Mn.bindKey=Ia,Mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Mn.chain=fa,Mn.chunk=function(e,t,n){t=(n?vi(e,t,n):t===o)?1:mn(ds(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},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(Wa(n)?Oo(n):[n],gr(t,1))},Mn.cond=function(e){var t=null==e?0:e.length,n=ai();return e=t?Nt(e,function(e){if("function"!=typeof e[1])throw new Oe(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=Ls(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Mn.constant=Qs,Mn.countBy=ha,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=La,Mn.defaults=Es,Mn.defaultsDeep=Ts,Mn.defer=Na,Mn.delay=Ca,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:ds(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:ds(t)))<0?0:t):[]},Mn.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},Mn.dropWhile=function(e,t){return e&&e.length?lo(e,ai(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=ds(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ds(r))<0&&(r+=i),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Mn.filter=function(e,t){return(Wa(e)?At:hr)(e,ai(t,3))},Mn.flatMap=function(e,t){return gr(wa(e,t),1)},Mn.flatMapDeep=function(e,t){return gr(wa(e,t),l)},Mn.flatMapDepth=function(e,t,n){return n=n===o?1:ds(n),gr(wa(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:ds(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,Ls(e))},Mn.functionsIn=function(e){return null==e?[]:xr(e,Ns(e))},Mn.groupBy=ba,Mn.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Mn.intersection=Yi,Mn.intersectionBy=Gi,Mn.intersectionWith=Xi,Mn.invert=Os,Mn.invertBy=As,Mn.invokeMap=xa,Mn.iteratee=ru,Mn.keyBy=_a,Mn.keys=Ls,Mn.keysIn=Ns,Mn.map=wa,Mn.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},Mn.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},Mn.matches=function(e){return zr(ar(e,1))},Mn.matchesProperty=function(e,t){return Mr(e,ar(t,1))},Mn.memoize=ka,Mn.merge=Cs,Mn.mergeWith=ks,Mn.method=ou,Mn.methodOf=iu,Mn.mixin=au,Mn.negate=Pa,Mn.nthArg=function(e){return e=ds(e),Gr(function(t){return Br(t,e)})},Mn.omit=Ps,Mn.omitBy=function(e,t){return Ds(e,Pa(ai(t)))},Mn.once=function(e){return Oa(2,e)},Mn.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))},Mn.over=uu,Mn.overArgs=ja,Mn.overEvery=cu,Mn.overSome=lu,Mn.partial=Da,Mn.partialRight=za,Mn.partition=Ea,Mn.pick=js,Mn.pickBy=Ds,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,ai(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=Ma,Mn.reject=function(e,t){return(Wa(e)?At:hr)(e,Pa(ai(t,3)))},Mn.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 Hr(e,o),n},Mn.rest=function(e,t){if("function"!=typeof e)throw new Oe(i);return Gr(e,t=t===o?t:ds(t))},Mn.reverse=Qi,Mn.sampleSize=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:ds(t),(Wa(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(Wa(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:ds(t),n=n===o?r:ds(n)),eo(e,t,n)):[]},Mn.sortBy=Ta,Mn.sortedUniq=function(e){return e&&e.length?oo(e):[]},Mn.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(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=vs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ao(t))&&rn(e)?bo(fn(e),0,n):e.split(t,n):[]},Mn.spread=function(e,t){if("function"!=typeof e)throw new Oe(i);return t=null==t?0:mn(ds(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:ds(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:ds(t)))<0?0:t,r):[]},Mn.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},Mn.takeWhile=function(e,t){return e&&e.length?lo(e,ai(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 Oe(i);return Qa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),La(e,t,{leading:r,maxWait:t,trailing:o})},Mn.thru=pa,Mn.toArray=fs,Mn.toPairs=zs,Mn.toPairsIn=Ms,Mn.toPath=function(e){return Wa(e)?Nt(e,Di):ss(e)?[e]:Oo(ji(vs(e)))},Mn.toPlainObject=ms,Mn.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)?$n(He(e)):{}}return(o?St:yr)(e,function(e,r,o){return t(n,e,r,o)}),n},Mn.unary=function(e){return Ra(e,1)},Mn.union=ea,Mn.unionBy=ta,Mn.unionWith=na,Mn.uniq=function(e){return e&&e.length?so(e):[]},Mn.uniqBy=function(e,t){return e&&e.length?so(e,ai(t,2)):[]},Mn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},Mn.unset=function(e,t){return null==e||uo(e,t)},Mn.unzip=ra,Mn.unzipWith=oa,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=$s,Mn.valuesIn=function(e){return null==e?[]:Zt(e,Ns(e))},Mn.without=ia,Mn.words=Zs,Mn.wrap=function(e,t){return Da(mo(t),e)},Mn.xor=aa,Mn.xorBy=sa,Mn.xorWith=ua,Mn.zip=ca,Mn.zipObject=function(e,t){return ho(e||[],t||[],Qn)},Mn.zipObjectDeep=function(e,t){return ho(e||[],t||[],Zr)},Mn.zipWith=la,Mn.entries=zs,Mn.entriesIn=Ms,Mn.extend=bs,Mn.extendWith=xs,au(Mn,Mn),Mn.add=vu,Mn.attempt=Ks,Mn.camelCase=Bs,Mn.capitalize=Us,Mn.ceil=yu,Mn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gs(n))==n?n:0),t!==o&&(t=(t=gs(t))==t?t:0),ir(gs(e),t,n)},Mn.clone=function(e){return ar(e,4)},Mn.cloneDeep=function(e){return ar(e,5)},Mn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},Mn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},Mn.conformsTo=function(e,t){return null==t||sr(e,t,Ls(t))},Mn.deburr=Fs,Mn.defaultTo=function(e,t){return null==e||e!=e?t:e},Mn.divide=bu,Mn.endsWith=function(e,t,n){e=vs(e),t=ao(t);var r=e.length,i=n=n===o?r:ir(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Mn.eq=$a,Mn.escape=function(e){return(e=vs(e))&&X.test(e)?e.replace(Y,tn):e},Mn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Mn.every=function(e,t,n){var r=Wa(e)?Ot:pr;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},Mn.find=ga,Mn.findIndex=Fi,Mn.findKey=function(e,t){return zt(e,ai(t,3),yr)},Mn.findLast=ma,Mn.findLastIndex=Wi,Mn.findLastKey=function(e,t){return zt(e,ai(t,3),br)},Mn.floor=xu,Mn.forEach=va,Mn.forEachRight=ya,Mn.forIn=function(e,t){return null==e?e:mr(e,ai(t,3),Ns)},Mn.forInRight=function(e,t){return null==e?e:vr(e,ai(t,3),Ns)},Mn.forOwn=function(e,t){return e&&yr(e,ai(t,3))},Mn.forOwnRight=function(e,t){return e&&br(e,ai(t,3))},Mn.get=Ss,Mn.gt=Ba,Mn.gte=Ua,Mn.has=function(e,t){return null!=e&&di(e,t,Sr)},Mn.hasIn=Rs,Mn.head=qi,Mn.identity=nu,Mn.includes=function(e,t,n,r){e=qa(e)?e:$s(e),n=n&&!r?ds(n):0;var o=e.length;return n<0&&(n=mn(o+n,0)),as(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:ds(n);return o<0&&(o=mn(r+o,0)),$t(e,t,o)},Mn.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<mn(t,n)}(e=gs(e),t,n)},Mn.invoke=Is,Mn.isArguments=Fa,Mn.isArray=Wa,Mn.isArrayBuffer=Ha,Mn.isArrayLike=qa,Mn.isArrayLikeObject=Ya,Mn.isBoolean=function(e){return!0===e||!1===e||es(e)&&Er(e)==v},Mn.isBuffer=Ga,Mn.isDate=Xa,Mn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Mn.isEmpty=function(e){if(null==e)return!0;if(qa(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==w||t==O)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=Va,Mn.isFinite=function(e){return"number"==typeof e&&Dt(e)},Mn.isFunction=Za,Mn.isInteger=Ka,Mn.isLength=Ja,Mn.isMap=ts,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 ns(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=ns,Mn.isObject=Qa,Mn.isObjectLike=es,Mn.isPlainObject=rs,Mn.isRegExp=os,Mn.isSafeInteger=function(e){return Ka(e)&&e>=-9007199254740991&&e<=f},Mn.isSet=is,Mn.isString=as,Mn.isSymbol=ss,Mn.isTypedArray=us,Mn.isUndefined=function(e){return e===o},Mn.isWeakMap=function(e){return es(e)&&pi(e)==L},Mn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Er(e)},Mn.join=function(e,t){return null==e?"":Ht.call(e,t)},Mn.kebabCase=Ws,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=ds(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=Hs,Mn.lowerFirst=qs,Mn.lt=cs,Mn.lte=ls,Mn.max=function(e){return e&&e.length?dr(e,nu,Tr):o},Mn.maxBy=function(e,t){return e&&e.length?dr(e,ai(t,2),Tr):o},Mn.mean=function(e){return Ft(e,nu)},Mn.meanBy=function(e,t){return Ft(e,ai(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,ai(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,ds(t)):o},Mn.noConflict=function(){return ft._===this&&(ft._=Me),this},Mn.noop=su,Mn.now=Sa,Mn.pad=function(e,t,n){e=vs(e);var r=(t=ds(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=vs(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?e+Fo(t-r,n):e},Mn.padStart=function(e,t,n){e=vs(e);var r=(t=ds(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(vs(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=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=xn();return vn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return qr(e,t)},Mn.reduce=function(e,t,n){var r=Wa(e)?kt:qt,o=arguments.length<3;return r(e,ai(t,4),n,o,lr)},Mn.reduceRight=function(e,t,n){var r=Wa(e)?Pt:qt,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},Mn.repeat=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:ds(t),Yr(vs(e),t)},Mn.replace=function(){var e=arguments,t=vs(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 a=null==e?o:e[Di(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Mn.round=wu,Mn.runInContext=e,Mn.sample=function(e){return(Wa(e)?Vn:Xr)(e)},Mn.size=function(e){if(null==e)return 0;if(qa(e))return as(e)?ln(e):e.length;var t=pi(e);return t==w||t==O?e.size:Pr(e).length},Mn.snakeCase=Ys,Mn.some=function(e,t,n){var r=Wa(e)?jt:to;return n&&vi(e,t,n)&&(t=o),r(e,ai(t,3))},Mn.sortedIndex=function(e,t){return no(e,t)},Mn.sortedIndexBy=function(e,t,n){return ro(e,t,ai(n,2))},Mn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&$a(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,ai(n,2),!0)},Mn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if($a(e[n],t))return n}return-1},Mn.startCase=Gs,Mn.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:ir(ds(n),0,e.length),t=ao(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,ai(t,2)):0},Mn.template=function(e,t,n){var r=Mn.templateSettings;n&&vi(e,t,n)&&(t=o),e=vs(e),t=xs({},t,r,Zo);var i,a,s=xs({},t.imports,r.imports,Zo),u=Ls(s),c=Zt(s,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,s,u){return r||(r=o),p+=e.slice(l,u).replace(xe,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 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=(a?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":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Ks(function(){return we(u,h+"return "+p).apply(o,c)});if(m.source=p,Va(m))throw m;return m},Mn.times=function(e,t){if((e=ds(e))<1||e>f)return[];var n=d,r=vn(e,d);t=ai(t),e-=d;for(var o=Gt(r,t);++n<e;)t(n);return o},Mn.toFinite=ps,Mn.toInteger=ds,Mn.toLength=hs,Mn.toLower=function(e){return vs(e).toLowerCase()},Mn.toNumber=gs,Mn.toSafeInteger=function(e){return e?ir(ds(e),-9007199254740991,f):0===e?e:0},Mn.toString=vs,Mn.toUpper=function(e){return vs(e).toUpperCase()},Mn.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("")},Mn.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("")},Mn.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("")},Mn.truncate=function(e,t){var n=30,r="...";if(Qa(t)){var i="separator"in t?t.separator:i;n="length"in t?ds(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=Se(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 d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},Mn.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(q,dn):e},Mn.uniqueId=function(e){var t=++Pe;return vs(e)+t},Mn.upperCase=Xs,Mn.upperFirst=Vs,Mn.each=va,Mn.eachRight=ya,Mn.first=qi,au(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(ds(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:ai(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 Ar(n,e,t)})}),Fn.prototype.reject=function(e){return this.filter(Pa(ai(e)))},Fn.prototype.slice=function(e,t){e=ds(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=ds(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],a=r||/^find/.test(t);i&&(Mn.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(Mn,Ct([e],s));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=a&&!p,g=u&&!d;if(!a&&l){t=g?t:new Fn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[f],thisArg:o}),new Un(m,p)}return h&&g?e.apply(this,s):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})}),St(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ae[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(Wa(o)?o:[],e)}return this[n](function(n){return t.apply(Wa(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__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(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=mn(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,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=da,Mn.prototype.chain=function(){return fa(this)},Mn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Mn.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__++]}},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:pa,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),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 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 _=s(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(),a(_,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,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:()=>d,useResize:()=>c,utils:()=>h});var e={};s.r(e),s.d(e,{ApiLoader:()=>Y,useApi:()=>G});var t={};s.r(t),s.d(t,{onAppear:()=>X});var n={};s.r(n),s.d(n,{BlogItem:()=>Bn,BlogList:()=>Un,BlogSideBar:()=>Fn,BlogSummary:()=>Hn,Item:()=>$n,SummaryItem:()=>Wn});var r={};s.r(r),s.d(r,{Body:()=>pi,Code:()=>Ri,DocWrapper:()=>Ai,Image:()=>Ei,Separator:()=>Ti,Text:()=>wi,TextSize:()=>ci,TextStyle:()=>li,YoutubeVideo:()=>Oi,emptyBulletSvg:()=>xi,solidBulletSvg:()=>_i});var o={};s.r(o),s.d(o,{default:()=>Li});var i={};s.r(i),s.d(i,{background:()=>Hi.Tp,default:()=>Yi,"popup-element":()=>Hi.IX,root:()=>Hi.zr});var a={};s.r(a),s.d(a,{Overlay:()=>Js,ReactRootElement:()=>qs,ReactRootElementPopup:()=>Ys,TooltipBoolean:()=>Ks,TooltipClick:()=>Zs,TooltipHover:()=>Vs});var c={};s.r(c),s.d(c,{useResizeDetecter:()=>eu});var l={};s.r(l),s.d(l,{ResizeDetecter:()=>tu});var f={};s.r(f),s.d(f,{Storage:()=>nu,useStates:()=>ou,useStorage:()=>ru});var p={};s.r(p),s.d(p,{ElementEnterLeave:()=>lf,ElementEnterLeaveXValues:()=>gf,ElementEnterLeaveYValues:()=>hf,ScrollCoordinateType:()=>sf,ScrollDirection:()=>of,ScrollModel:()=>nf,SyncSmoothness:()=>pf,TimelineAutoPlay:()=>uf,TimelineCommandOption:()=>cf,TimelineCommandOptionLabel:()=>ff,TimelineConfigType:()=>af,TimelineDirection:()=>df,TimelineDirectionValue:()=>bf,TimelineScreenType:()=>rf,getEnterLeaveConfigValue:()=>mf,getTimelineElements:()=>xf,useTimeline:()=>_f});var d={};s.r(d);var h={};s.r(h),s.d(h,{ScrollElementConfig:()=>vf,ScrollElementOrator:()=>yf,getCount:()=>Ef,loopOnArray:()=>Af,loopOnObject:()=>Of,loopOnRange:()=>Sf,loopOnString:()=>Rf,prepareFocusEvent:()=>jf,prepareInputChangeEvent:()=>kf,prepareKeyboardEvent:()=>Pf,prepareMouseEvent:()=>Cf,prepareUIEvent:()=>Df,scrollTo:()=>Nf,toStyle:()=>Lf,toText:()=>If,useDidUpdateEffect:()=>Tf});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),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 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 O(e,t){return w(e.getTime(),t.getTime())}function A(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],d=f[1],h=o.value,g=h[0],m=h[1];c||i[l]||!(c=n.equals(p,g,s,l,e,t,n)&&n.equals(d,m,p,g,e,t,n))||(i[l]=!0),l++}if(!c)return!1;s++}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,a=x(e),s=a.length;if(x(t).length!==s)return!1;for(;s-- >0;){if((r=a[s])===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={},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,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,a=e.strict,s=void 0!==a&&a,u=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?L:R,areDatesEqual:O,areMapsEqual:r?y(A,L):A,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),a=b(o.areMapsEqual),s=b(o.areObjectsEqual),u=b(o.areSetsEqual);o=z({},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=M(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 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=s(155),F=s.t(U,2),W=s.n(U),H=s(505),q=s.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,a=[],s=[],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||(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,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)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",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(){a=[],d()}}}}()(t)}}(window)},V=s(85),Z=s(543),K=s.n(Z),J=s(531),Q=function(){return Q=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},Q.apply(this,arguments)};function ee(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 te=s(833),ne=s.n(te),re="-ms-",oe="-moz-",ie="-webkit-",ae="comm",se="rule",ue="decl",ce="@keyframes",le=Math.abs,fe=String.fromCharCode,pe=Object.assign;function de(e){return e.trim()}function he(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function me(e,t,n){return e.indexOf(t,n)}function ve(e,t){return 0|e.charCodeAt(t)}function ye(e,t,n){return e.slice(t,n)}function be(e){return e.length}function xe(e){return e.length}function _e(e,t){return t.push(e),e}function we(e,t){return e.filter(function(e){return!he(e,t)})}var Ee=1,Te=1,Se=0,Re=0,Oe=0,Ae="";function Ie(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ee,column:Te,length:a,return:"",siblings:s}}function Le(e,t){return pe(Ie("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ne(e){for(;e.root;)e=Le(e.root,{children:[e]});_e(e,e.siblings)}function Ce(){return Oe=Re>0?ve(Ae,--Re):0,Te--,10===Oe&&(Te=1,Ee--),Oe}function ke(){return Oe=Re<Se?ve(Ae,Re++):0,Te++,10===Oe&&(Te=1,Ee++),Oe}function Pe(){return ve(Ae,Re)}function je(){return Re}function De(e,t){return ye(Ae,e,t)}function ze(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 Me(e){return de(De(Re-1,Ue(91===e?e+2:40===e?e+1:e)))}function $e(e){for(;(Oe=Pe())&&Oe<33;)ke();return ze(e)>2||ze(Oe)>3?"":" "}function Be(e,t){for(;--t&&ke()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return De(e,je()+(t<6&&32==Pe()&&32==ke()))}function Ue(e){for(;ke();)switch(Oe){case e:return Re;case 34:case 39:34!==e&&39!==e&&Ue(Oe);break;case 40:41===e&&Ue(e);break;case 92:ke()}return Re}function Fe(e,t){for(;ke()&&e+Oe!==57&&(e+Oe!==84||47!==Pe()););return"/*"+De(t,Re-1)+"*"+fe(47===e?e:ke())}function We(e){for(;!ze(Pe());)ke();return De(e,Re)}function He(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function qe(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ue:return e.return=e.return||e.value;case ae:return"";case ce:return e.return=e.value+"{"+He(e.children,r)+"}";case se:if(!be(e.value=e.props.join(",")))return""}return be(n=He(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ye(e,t,n){switch(function(e,t){return 45^ve(e,0)?(((t<<2^ve(e,0))<<2^ve(e,1))<<2^ve(e,2))<<2^ve(e,3):0}(e,t)){case 5103:return ie+"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 ie+e+e;case 4789:return oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+e+oe+e+re+e+e;case 5936:switch(ve(e,t+11)){case 114:return ie+e+re+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+re+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+re+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ie+e+re+e+e;case 6165:return ie+e+re+"flex-"+e+e;case 5187:return ie+e+ge(e,/(\w+).+(:[^]+)/,ie+"box-$1$2"+re+"flex-$1$2")+e;case 5443:return ie+e+re+"flex-item-"+ge(e,/flex-|-self/g,"")+(he(e,/flex-|baseline/)?"":re+"grid-row-"+ge(e,/flex-|-self/g,""))+e;case 4675:return ie+e+re+"flex-line-pack"+ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return ie+e+re+ge(e,"shrink","negative")+e;case 5292:return ie+e+re+ge(e,"basis","preferred-size")+e;case 6060:return ie+"box-"+ge(e,"-grow","")+ie+e+re+ge(e,"grow","positive")+e;case 4554:return ie+ge(e,/([^-])(transform)/g,"$1"+ie+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+e+e;case 4200:if(!he(e,/flex-|baseline/))return re+"grid-column-align"+ye(e,t)+e;break;case 2592:case 3360:return re+ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,he(e.props,/grid-\w+-end/)})?~me(e+(n=n[t].value),"span",0)?e:re+ge(e,"-start","")+e+re+"grid-row-span:"+(~me(n,"span",0)?he(n,/\d+/):+he(n,/\d+/)-+he(e,/\d+/))+";":re+ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return he(e.props,/grid-\w+-start/)})?e:re+ge(ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,ie+"$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(be(e)-1-t>6)switch(ve(e,t+1)){case 109:if(45!==ve(e,t+4))break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+oe+(108==ve(e,t+3)?"$3":"$2-$3"))+e;case 115:return~me(e,"stretch",0)?Ye(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 re+n+":"+r+s+(o?re+n+"-span:"+(i?a:+a-+r)+s:"")+e});case 4949:if(121===ve(e,t+6))return ge(e,":",":"+ie)+e;break;case 6444:switch(ve(e,45===ve(e,14)?18:11)){case 120:return ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ie+(45===ve(e,14)?"inline-":"")+"box$3$1"+ie+"$2$3$1"+re+"$2box$3")+e;case 100:return ge(e,":",":"+re)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ge(e,"scroll-","scroll-snap-")+e}return e}function Ge(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ue:return void(e.return=Ye(e.value,e.length,n));case ce:return He([Le(e,{value:ge(e.value,"@","@"+ie)})],r);case se:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(he(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]})),pe(e,{props:we(n,r)});break;case"::placeholder":Ne(Le(e,{props:[ge(t,/:(plac\w+)/,":"+ie+"input-$1")]})),Ne(Le(e,{props:[ge(t,/:(plac\w+)/,":-moz-$1")]})),Ne(Le(e,{props:[ge(t,/:(plac\w+)/,re+"input-$1")]})),Ne(Le(e,{props:[t]})),pe(e,{props:we(n,r)})}return""})}}function Xe(e){return function(e){return Ae="",e}(Ve("",null,null,null,[""],e=function(e){return Ee=Te=1,Se=be(Ae=e),Re=0,[]}(e),0,[0],e))}function Ve(e,t,n,r,o,i,a,s,u){for(var c=0,l=0,f=a,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=ke()){case 40:if(108!=h&&58==ve(E,f-1)){-1!=me(E+=ge(Me(y),"&","&\f"),"&\f",le(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:E+=Me(y);break;case 9:case 10:case 13:case 32:E+=$e(h);break;case 92:E+=Be(je()-1,7);continue;case 47:switch(Pe()){case 42:case 47:_e(Ke(Fe(ke(),je()),t,n,u),u);break;default:E+="/"}break;case 123*g:s[c++]=be(E)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+l:-1==v&&(E=ge(E,/\f/g,"")),d>0&&be(E)-f&&_e(d>32?Je(E+";",r,n,f-1,u):Je(ge(E," ","")+";",r,n,f-2,u),u);break;case 59:E+=";";default:if(_e(w=Ze(E,t,n,c,l,o,s,b,x=[],_=[],f,i),i),123===y)if(0===l)Ve(E,t,w,w,x,i,f,s,_);else switch(99===p&&110===ve(E,3)?100:p){case 100:case 108:case 109:case 115:Ve(e,w,w,r&&_e(Ze(e,w,w,0,0,o,s,b,o,x=[],f,_),_),o,_,f,s,r?x:_);break;default:Ve(E,w,w,w,[""],_,0,s,_)}}c=l=d=0,g=v=1,b=E="",f=a;break;case 58:f=1+be(E),d=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==Ce())continue;switch(E+=fe(y),y*g){case 38:v=l>0?1:(E+="\f",-1);break;case 44:s[c++]=(be(E)-1)*v,v=1;break;case 64:45===Pe()&&(E+=Me(ke())),p=Pe(),l=f=be(b=E+=We(je())),y++;break;case 45:45===h&&2==be(E)&&(g=0)}}return i}function Ze(e,t,n,r,o,i,a,s,u,c,l,f){for(var p=o-1,d=0===o?i:[""],h=xe(d),g=0,m=0,v=0;g<r;++g)for(var y=0,b=ye(e,p+1,p=le(m=a[g])),x=e;y<h;++y)(x=de(m>0?d[y]+" "+b:ge(b,/&\f/g,d[y])))&&(u[v++]=x);return Ie(e,t,n,0===o?se:s,u,c,l,f)}function Ke(e,t,n,r){return Ie(e,t,n,ae,fe(Oe),ye(e,2,-2),0,r)}function Je(e,t,n,r,o){return Ie(e,t,n,ue,ye(e,0,r),ye(e,r+1,-1),r,o)}var Qe={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},et="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",tt="active",nt="data-styled-version",rt="6.1.11",ot="/*!sc*/\n",it="undefined"!=typeof window&&"HTMLElement"in window,at=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),st=(new Set,Object.freeze([])),ut=Object.freeze({});var ct=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"]),lt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ft=/(^-|-$)/g;function pt(e){return e.replace(lt,"-").replace(ft,"")}var dt=/(a)(d)/gi,ht=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=ht(t%52)+n;return(ht(t%52)+n).replace(dt,"$1-$2")}var mt,vt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},yt=function(e){return vt(5381,e)};function bt(e){return"string"==typeof e&&!0}var xt="function"==typeof Symbol&&Symbol.for,_t=xt?Symbol.for("react.memo"):60115,wt=xt?Symbol.for("react.forward_ref"):60112,Et={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},St={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Rt=((mt={})[wt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mt[_t]=St,mt);function Ot(e){return("type"in(t=e)&&t.type.$$typeof)===_t?St:"$$typeof"in e?Rt[e.$$typeof]:Et;var t}var At=Object.defineProperty,It=Object.getOwnPropertyNames,Lt=Object.getOwnPropertySymbols,Nt=Object.getOwnPropertyDescriptor,Ct=Object.getPrototypeOf,kt=Object.prototype;function Pt(e,t,n){if("string"!=typeof t){if(kt){var r=Ct(t);r&&r!==kt&&Pt(e,r,n)}var o=It(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{At(e,u,c)}catch(e){}}}}return e}function jt(e){return"function"==typeof e}function Dt(e){return"object"==typeof e&&"styledComponentId"in e}function zt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Mt(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 $t(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Bt(e,t,n){if(void 0===n&&(n=!1),!n&&!$t(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Bt(e[r],t[r]);else if($t(t))for(var r in t)e[r]=Bt(e[r],t[r]);return e}function Ut(e,t){Object.defineProperty(e,"toString",{value:t})}function Ft(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 Wt=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 Ft(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(ot);return t},e}(),Ht=new Map,qt=new Map,Yt=1,Gt=function(e){if(Ht.has(e))return Ht.get(e);for(;qt.has(Yt);)Yt++;var t=Yt++;return Ht.set(e,t),qt.set(t,e),t},Xt=function(e,t){Yt=t+1,Ht.set(e,t),qt.set(t,e)},Vt="style[".concat(et,"][").concat(nt,'="').concat(rt,'"]'),Zt=new RegExp("^".concat(et,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Kt=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)},Jt=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(ot),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var u=s.match(Zt);if(u){var c=0|parseInt(u[1],10),l=u[2];0!==c&&(Xt(l,c),Kt(e,l,u[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}};function Qt(){return s.nc}var en=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(et,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(et,tt),r.setAttribute(nt,rt);var a=Qt();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},tn=function(){function e(e){this.element=en(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 Ft(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}(),nn=function(){function e(e){this.element=en(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}(),rn=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}(),on=it,an={isServer:!it,useCSSOMInjection:!at},sn=function(){function e(e,t,n){void 0===e&&(e=ut),void 0===t&&(t={});var r=this;this.options=Q(Q({},an),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&it&&on&&(on=!1,function(e){for(var t=document.querySelectorAll(Vt),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(et)!==tt&&(Jt(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Ut(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return qt.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(et,".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(ot)},i=0;i<n;i++)o(i);return r}(r)})}return e.registerId=function(e){return Gt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Q(Q({},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 rn(n):t?new tn(n):new nn(n)}(this.options),new Wt(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(Gt(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(Gt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Gt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),un=/&/g,cn=/^\s*\/\/.*$/gm;function ln(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=ln(e.children,t)),e})}function fn(e){var t,n,r,o=void 0===e?ut:e,i=o.options,a=void 0===i?ut:i,s=o.plugins,u=void 0===s?st: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===se&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(un,n).replace(r,c))}),a.prefix&&l.push(Ge),l.push(qe);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(cn,""),c=Xe(i||o?"".concat(i," ").concat(o," { ").concat(u," }"):u);a.namespace&&(c=ln(c,a.namespace));var f,p,d,h=[];return He(c,(f=l.concat((d=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&d(e)})),p=xe(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||Ft(15),vt(e,t.name)},5381).toString():"",f}var pn=new sn,dn=fn(),hn=W().createContext({shouldForwardProp:void 0,styleSheet:pn,stylis:dn}),gn=(hn.Consumer,W().createContext(void 0));function mn(){return(0,U.useContext)(hn)}function vn(e){var t=(0,U.useState)(e.stylisPlugins),n=t[0],r=t[1],o=mn().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 fn({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);(0,U.useEffect)(function(){ne()(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(hn.Provider,{value:s},W().createElement(gn.Provider,{value:a},e.children))}var yn=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,Ut(this,function(){throw Ft(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=dn),this.name+e.hash},e}(),bn=function(e){return e>="A"&&e<="Z"};function xn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;bn(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var _n=function(e){return null==e||!1===e||""===e},wn=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!_n(i)&&(Array.isArray(i)&&i.isCss||jt(i)?r.push("".concat(xn(o),":"),i,";"):$t(i)?r.push.apply(r,ee(ee(["".concat(o," {")],wn(i),!1),["}"],!1)):r.push("".concat(xn(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Qe||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function En(e,t,n,r){return _n(e)?[]:Dt(e)?[".".concat(e.styledComponentId)]:jt(e)?!jt(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:En(e(t),t,n,r):e instanceof yn?n?(e.inject(n,r),[e.getName(r)]):[e]:$t(e)?wn(e):Array.isArray(e)?Array.prototype.concat.apply(st,e.map(function(e){return En(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(jt(n)&&!Dt(n))return!1}return!0}var Sn=yt(rt),Rn=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=vt(Sn,t),this.baseStyle=n,sn.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=zt(r,this.staticRulesId);else{var o=Mt(En(this.rules,e,t,n)),i=gt(vt(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=zt(r,i),this.staticRulesId=i}else{for(var s=vt(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=Mt(En(l,e,t,n));s=vt(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=zt(r,p)}}return r},e}(),On=W().createContext(void 0);On.Consumer;var An={};function In(e,t,n){var r=Dt(e),o=e,i=!bt(e),a=t.attrs,s=void 0===a?st:a,u=t.componentId,c=void 0===u?function(e,t){var n="string"!=typeof e?"sc":pt(e);An[n]=(An[n]||0)+1;var r="".concat(n,"-").concat(function(e){return gt(yt(e)>>>0)}(rt+n+An[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):u,l=t.displayName,f=void 0===l?function(e){return bt(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):l,p=t.displayName&&t.componentId?"".concat(pt(t.displayName),"-").concat(t.componentId):t.componentId||c,d=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,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 Rn(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=mn(),f=e.shouldForwardProp||l.shouldForwardProp,p=function(e,t,n){return void 0===n&&(n=ut),e.theme!==n.theme&&e.theme||t||n.theme}(t,c,i)||ut,d=function(e,t,n){for(var r,o=Q(Q({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=jt(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?zt(o[s],a[s]):"style"===s?Q(Q({},o[s]),a[s]):a[s]}return t.className&&(o.className=zt(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=mn();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,d),y=zt(a,s);return v&&(y+=" "+v),d.className&&(y+=" "+d.className),g[bt(h)&&!ct.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?zt(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++)Bt(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Ut(b,function(){return".".concat(b.styledComponentId)}),i&&Pt(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 Cn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(jt(e)||$t(e))return Nn(En(Ln(st,ee([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?En(r):Nn(En(Ln(r,t)))}function kn(e,t,n){if(void 0===n&&(n=ut),!t)throw Ft(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Cn.apply(void 0,ee([r],o,!1)))};return r.attrs=function(r){return kn(e,t,Q(Q({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return kn(e,t,Q(Q({},n),r))},r}var Pn=function(e){return kn(In,e)},jn=Pn;ct.forEach(function(e){jn[e]=Pn(e)}),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Tn(e),sn.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,r){var o=r(Mt(En(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&&sn.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=Qt(),r=Mt([n&&'nonce="'.concat(n,'"'),"".concat(et,'="true"'),"".concat(nt,'="').concat(rt,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Ft(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Ft(2);var n=((t={})[et]="",t[nt]=rt,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=Qt();return r&&(n.nonce=r),[W().createElement("style",Q({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new sn({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Ft(2);return W().createElement(vn,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Ft(3)}}(),"__sc-".concat(et,"__");var Dn,zn,Mn=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},$n=jn.div(Dn||(Dn=Mn(["\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"],["\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"]))),Bn=function(e){var t,n,r,o=e.needDecoration,i=e.selectedPath,a=e.item,s=e.level,u=e.onClick,c=e.parentPath,l=e.itemWrapper,f=e.isRoot,p=(e.parents,"".concat(c,"/").concat(a.pagePath)),d=(i&&p.startsWith(i),(0,J.useRouter)()),h=location.pathname.slice(0,-1),g=location.pathname.startsWith(a.pagePath)&&h!==a.pagePath,m=(0,U.useState)(g),v=m[0],y=m[1],b=l,x=f?a.pagePath.split("/").slice(0,-1).join("/"):void 0,_=d.asPath.endsWith("/")?d.asPath.slice(0,-1):d.asPath,w=u?i===p||void 0===i&&!0===f:_===a.pagePath||x===_;return(0,V.jsxs)(V.Fragment,{children:[b?(0,V.jsx)(b,{properties:{title:a.name,isSelected:w,icon:o&&(null===(t=a.children)||void 0===t?void 0:t.length)?v?"bottom":"right":o?"round":void 0},events:{click:function(){y(!v),u?u(a.pagePath,p):d.push(a.pagePath)}},style:{paddingLeft:"".concat(15*s,"px")}},"".concat(a.pagePath," ").concat(w," ").concat(v)):(0,V.jsxs)($n,{style:{paddingLeft:"".concat(15*s,"px")},children:[(0,V.jsx)("div",{onClick:function(){return y(!v)},className:"icon ".concat(v?"open":"close"),children:(null===(n=a.children)||void 0===n?void 0:n.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(){u?u(a.pagePath,h):d.push(a.pagePath)},className:"text",children:a.name})]}),!!(null===(r=a.children)||void 0===r?void 0:r.length)&&v&&(0,V.jsx)(Un,{onClick:u,list:a.children,level:s+1,itemWrapper:l,parentPath:p,selectedPath:i})]})},Un=function(e){var t=void 0!==e.list.find(function(e){var t;return null===(t=e.children)||void 0===t?void 0:t.length});return(0,V.jsx)(V.Fragment,{children:e.list.map(function(n,r){return(0,V.jsx)(Bn,{needDecoration:t,selectedPath:e.selectedPath,item:n,onClick:e.onClick,level:e.level,itemWrapper:e.itemWrapper,isRoot:0===r&&e.isRoot,parentPath:e.parentPath},"".concat(r,"/").concat(n.pagePath))})})},Fn=function(e){var t=(0,U.useState)(void 0),n=t[0],r=t[1];return(0,V.jsx)(V.Fragment,{children:(0,V.jsx)(Un,{onClick:e.onClick?function(t,n){var o;r(n),null===(o=e.onClick)||void 0===o||o.call(e,t)}:void 0,selectedPath:n,list:e.list,level:0,itemWrapper:e.itemWrapper,isRoot:!0,parentPath:""})})},Wn=jn.div(zn||(zn=Mn(["\n height: auto;\n width: 100%;\n justify-content: start;\n align-items: start;\n box-sizing: border-box;\n flex-direction: column;\n display: inline;\n white-space: pre;\n line-height: 20px;\n font-size: 13px;\n padding-top: 3px;\n padding-bottom: 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n color: #666;\n cursor: pointer;\n font-weight: 400;\n border-radius: 0px;\n padding-right: 10px;\n border-left: 1px solid #ddd;\n &:hover {\n color: #000;\n }\n &.Selected {\n color: #000;\n border-left: 2px solid #666;\n font-weight: 500;\n }\n"],["\n height: auto;\n width: 100%;\n justify-content: start;\n align-items: start;\n box-sizing: border-box;\n flex-direction: column;\n display: inline;\n white-space: pre;\n line-height: 20px;\n font-size: 13px;\n padding-top: 3px;\n padding-bottom: 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n color: #666;\n cursor: pointer;\n font-weight: 400;\n border-radius: 0px;\n padding-right: 10px;\n border-left: 1px solid #ddd;\n &:hover {\n color: #000;\n }\n &.Selected {\n color: #000;\n border-left: 2px solid #666;\n font-weight: 500;\n }\n"]))),Hn=(0,U.memo)(function(e){var t=e.list,n=e.itemWrapper,r=(0,U.useState)(0),o=r[0],i=r[1];return(0,U.useEffect)(function(){var e=K().throttle(function(){var e=t.find(function(e,t){e.level,e.text;var n=e.id,r=document.querySelector('[data-id="'.concat(n,'"]'));if(r&&function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(r))return!0}),n=o;e&&(n=t.indexOf(e)),o!==n&&i(n)},100);return window.addEventListener("resize",e),window.addEventListener("wheel",e),window.addEventListener("scroll",e),function(){window.removeEventListener("resize",e),window.removeEventListener("wheel",e),window.removeEventListener("scroll",e)}},[U.memo,o,i]),(0,V.jsx)(V.Fragment,{children:t.map(function(e,t){var r=e.level,a=e.text,s=e.id,u=t===o;if(n){var c=n;return(0,V.jsx)(c,{properties:{title:a,isSelected:u},events:{click:function(){var e=document.querySelector('[data-id="'.concat(s,'"]'));null==e||e.scrollIntoView({behavior:"smooth",block:"start"}),i(t)}},style:{paddingLeft:"".concat(18*r+18,"px")}},"".concat(s,"/").concat(t===o))}return(0,V.jsx)(Wn,{className:"".concat(u?"Selected":""),onClick:function(){var e=document.querySelector('[data-id="'.concat(s,'"]'));null==e||e.scrollIntoView({behavior:"smooth",block:"start"}),i(t)},style:{paddingLeft:"".concat(18*r+18,"px")},children:a},"".concat(s,"/").concat(u))})})}),qn=Object.defineProperty,Yn=(e,t)=>()=>(e&&(t=e(e=0)),t),Gn=(e,t)=>{for(var n in t)qn(e,n,{get:t[n],enumerable:!0})},Xn={};Gn(Xn,{default:()=>Vn});var Vn,Zn=Yn(()=>{Vn=[{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"}]}),Kn={};Gn(Kn,{default:()=>Qn});var Jn,Qn,er=Yn(()=>{Qn=[{sub:"todo",match:/#.*/g},{type:"str",match:/(["'])((?!\1)[^\r\n\\]|\\[^])*\1?/g,sub:[Jn={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},Jn]}),tr={};Gn(tr,{default:()=>nr});var nr,rr=Yn(()=>{nr=[{match:/[^\[\->+.<\]\s].*/g,sub:"todo"},{type:"func",match:/\.+/g},{type:"kwd",match:/[<>]+/g},{type:"oper",match:/[+-]+/g}]}),or={};Gn(or,{default:()=>ir});var ir,ar=Yn(()=>{ir=[{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}]}),sr={};Gn(sr,{default:()=>ur});var ur,cr=Yn(()=>{ur=[{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}]}),lr={};Gn(lr,{default:()=>fr});var fr,pr=Yn(()=>{fr=[{expand:"strDouble"},{type:"oper",match:/,/g}]}),dr={};Gn(dr,{default:()=>hr});var hr,gr=Yn(()=>{hr=[{type:"deleted",match:/^[-<].*/gm},{type:"insert",match:/^[+>].*/gm},{type:"kwd",match:/!.*/gm},{type:"section",match:/^@@.*@@$|^\d.*|^([*-+])\1\1.*/gm}]}),mr={};Gn(mr,{default:()=>vr});var vr,yr=Yn(()=>{er(),vr=[{type:"kwd",match:/^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)\b/gim},...Qn]}),br={};Gn(br,{default:()=>xr});var xr,_r=Yn(()=>{gr(),xr=[{match:/^#.*/gm,sub:"todo"},{expand:"str"},...hr,{type:"func",match:/^(\$ )?git(\s.*)?$/gm},{type:"kwd",match:/^commit \w+$/gm}]}),wr={};Gn(wr,{default:()=>Er});var Er,Tr=Yn(()=>{Er=[{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}]}),Sr={};Gn(Sr,{default:()=>Ir,name:()=>Rr,properties:()=>Or,xmlElement:()=>Ar});var Rr,Or,Ar,Ir,Lr=Yn(()=>{Or=`\\s*(\\s+${Rr=`[${":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�"}][:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�\\-\\.0-9·̀-ͯ‿-⁀]*`}\\s*(=\\s*([^"']\\S*|("|')(\\\\[^]|(?!\\4)[^])*\\4?)?)?\\s*)*`,Ar={match:RegExp(`<[/!?]?${Rr}${Or}[/!?]?>`,"g"),sub:[{type:"var",match:RegExp(`^<[/!?]?${Rr}`,"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(Rr,"g")}]},Ir=[{match:/<!--((?!-->)[^])*-->/g,sub:"todo"},{type:"class",match:/<!\[CDATA\[[\s\S]*?\]\]>/gi},Ar,{type:"str",match:RegExp(`<\\?${Rr}([^?]|\\?[^?>])*\\?+>`,"g"),sub:[{type:"var",match:RegExp(`^<\\?${Rr}`,"g"),sub:[{type:"oper",match:/^<\?/g}]},{type:"oper",match:/\?+>$/g}]},{type:"var",match:/&(#x?)?[\da-z]{1,8};/gi}]}),Nr={};Gn(Nr,{default:()=>Cr});var Cr,kr,Pr,jr=Yn(()=>{Lr(),Cr=[{type:"class",match:/<!DOCTYPE("[^"]*"|'[^']*'|[^"'>])*>/gi,sub:[{type:"str",match:/"[^"]*"|'[^']*'/g},{type:"oper",match:/^<!|>$/g},{type:"var",match:/DOCTYPE/gi}]},{match:RegExp(`<style${Or}>((?!</style>)[^])*</style\\s*>`,"g"),sub:[{match:RegExp(`^<style${Or}>`,"g"),sub:Ar.sub},{match:RegExp(`${Ar.match}|[^]*(?=</style\\s*>$)`,"g"),sub:"css"},Ar]},{match:RegExp(`<script${Or}>((?!<\/script>)[^])*</script\\s*>`,"g"),sub:[{match:RegExp(`^<script${Or}>`,"g"),sub:Ar.sub},{match:RegExp(`${Ar.match}|[^]*(?=</script\\s*>$)`,"g"),sub:"js"},Ar]},...Ir]}),Dr=Yn(()=>{kr=[["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]]],Pr=e=>kr.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"}),zr={};Gn(zr,{default:()=>Mr});var Mr,$r=Yn(()=>{Dr(),Mr=[{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:Pr}]}),Br={};Gn(Br,{default:()=>Ur});var Ur,Fr=Yn(()=>{Ur=[{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}]}),Wr={};Gn(Wr,{default:()=>Hr});var Hr,qr=Yn(()=>{Hr=[{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}]}),Yr={};Gn(Yr,{default:()=>Gr});var Gr,Xr=Yn(()=>{Gr=[{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}]}),Vr={};Gn(Vr,{default:()=>Zr,type:()=>Kr});var Zr,Kr,Jr=Yn(()=>{Zr=[{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"}]}],Kr="str"}),Qr={};Gn(Qr,{default:()=>eo,type:()=>to});var eo,to,no=Yn(()=>{eo=[{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}],to="cmnt"}),ro={};Gn(ro,{default:()=>oo,type:()=>io});var oo,io,ao=Yn(()=>{no(),oo=[{type:"kwd",match:/@\w+/g},{type:"class",match:/{[\w\s|<>,.@\[\]]+}/g},{type:"var",match:/\[[\w\s="']+\]/g},...eo],io="cmnt"}),so={};Gn(so,{default:()=>uo});var uo,co=Yn(()=>{uo=[{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}]}),lo={};Gn(lo,{default:()=>fo});var fo,po=Yn(()=>{Dr(),fo=[{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)||Pr(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}]}),ho={};Gn(ho,{default:()=>go});var go,mo=Yn(()=>{po(),Dr(),go=[{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:Pr}]},{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:Pr}]},...fo]}),vo={};Gn(vo,{default:()=>yo});var yo,bo=Yn(()=>{yo=[{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}]}),xo={};Gn(xo,{default:()=>_o});var _o,wo=Yn(()=>{_o=[{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}]}),Eo={};Gn(Eo,{default:()=>To});var To,So=Yn(()=>{To=[{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"}]}),Ro={};Gn(Ro,{default:()=>Oo});var Oo,Ao=Yn(()=>{Oo=[{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}]}),Io={};Gn(Io,{default:()=>Lo});var Lo,No=Yn(()=>{Lo=[{expand:"strDouble"}]}),Co={};Gn(Co,{default:()=>ko});var ko,Po=Yn(()=>{ko=[{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}]}),jo={};Gn(jo,{default:()=>Do,type:()=>zo});var Do,zo,Mo=Yn(()=>{Do=[{match:/^(?!\/).*/gm,sub:"todo"},{type:"num",match:/\[((?!\])[^\\]|\\.)*\]/g},{type:"kwd",match:/\||\^|\$|\\.|\w+($|\r|\n)/g},{type:"var",match:/\*|\+|\{\d+,\d+\}/g}],zo="oper"}),$o={};Gn($o,{default:()=>Bo});var Bo,Uo=Yn(()=>{Bo=[{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}]}),Fo={};Gn(Fo,{default:()=>Wo});var Wo,Ho=Yn(()=>{Wo=[{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}]}),qo={};Gn(qo,{default:()=>Yo});var Yo,Go=Yn(()=>{Yo=[{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}]}),Xo={};Gn(Xo,{default:()=>Vo});var Vo,Zo=Yn(()=>{Xr(),Vo=[{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},...Gr]}),Ko={};Gn(Ko,{default:()=>Jo});var Jo,Qo=Yn(()=>{Jo=[{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}]}),ei={};Gn(ei,{default:()=>ti});var ti,ni,ri=Yn(()=>{ti=[{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}]}),oi={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}},ii=(ni={"./languages/asm.js":()=>Promise.resolve().then(()=>(Zn(),Xn)),"./languages/bash.js":()=>Promise.resolve().then(()=>(er(),Kn)),"./languages/bf.js":()=>Promise.resolve().then(()=>(rr(),tr)),"./languages/c.js":()=>Promise.resolve().then(()=>(ar(),or)),"./languages/css.js":()=>Promise.resolve().then(()=>(cr(),sr)),"./languages/csv.js":()=>Promise.resolve().then(()=>(pr(),lr)),"./languages/diff.js":()=>Promise.resolve().then(()=>(gr(),dr)),"./languages/docker.js":()=>Promise.resolve().then(()=>(yr(),mr)),"./languages/git.js":()=>Promise.resolve().then(()=>(_r(),br)),"./languages/go.js":()=>Promise.resolve().then(()=>(Tr(),wr)),"./languages/html.js":()=>Promise.resolve().then(()=>(jr(),Nr)),"./languages/http.js":()=>Promise.resolve().then(()=>($r(),zr)),"./languages/ini.js":()=>Promise.resolve().then(()=>(Fr(),Br)),"./languages/java.js":()=>Promise.resolve().then(()=>(qr(),Wr)),"./languages/js.js":()=>Promise.resolve().then(()=>(Xr(),Yr)),"./languages/js_template_literals.js":()=>Promise.resolve().then(()=>(Jr(),Vr)),"./languages/jsdoc.js":()=>Promise.resolve().then(()=>(ao(),ro)),"./languages/json.js":()=>Promise.resolve().then(()=>(co(),so)),"./languages/leanpub-md.js":()=>Promise.resolve().then(()=>(mo(),ho)),"./languages/log.js":()=>Promise.resolve().then(()=>(bo(),vo)),"./languages/lua.js":()=>Promise.resolve().then(()=>(wo(),xo)),"./languages/make.js":()=>Promise.resolve().then(()=>(So(),Eo)),"./languages/md.js":()=>Promise.resolve().then(()=>(po(),lo)),"./languages/pl.js":()=>Promise.resolve().then(()=>(Ao(),Ro)),"./languages/plain.js":()=>Promise.resolve().then(()=>(No(),Io)),"./languages/py.js":()=>Promise.resolve().then(()=>(Po(),Co)),"./languages/regex.js":()=>Promise.resolve().then(()=>(Mo(),jo)),"./languages/rs.js":()=>Promise.resolve().then(()=>(Uo(),$o)),"./languages/sql.js":()=>Promise.resolve().then(()=>(Ho(),Fo)),"./languages/todo.js":()=>Promise.resolve().then(()=>(no(),Qr)),"./languages/toml.js":()=>Promise.resolve().then(()=>(Go(),qo)),"./languages/ts.js":()=>Promise.resolve().then(()=>(Zo(),Xo)),"./languages/uri.js":()=>Promise.resolve().then(()=>(Qo(),Ko)),"./languages/xml.js":()=>Promise.resolve().then(()=>(Lr(),Sr)),"./languages/yaml.js":()=>Promise.resolve().then(()=>(ri(),ei))},e=>{var t=ni[e];if(t)return t();throw new Error("Module not found in bundle: "+e)}),ai={};async function si(e,t,n){try{let r,o,i,a={},s=[],u=0,c="string"==typeof t?await(ai[t]??(ai[t]=ii(`./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?oi[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 si(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 ui(e,t,n=!0,r={}){let o="";return await si(e,t,(e,t)=>o+=((e,t)=>t?`<span class="shj-syn-${t}">${e}</span>`:e)(((e="")=>e.replaceAll("&","&").replaceAll?.("<","<").replaceAll?.(">",">"))(e),t)),n?`<div><div class="shj-numbers">${"<div></div>".repeat(!r.hideLineNumbers&&e.split("\n").length)}</div><div>${o}</div></div>`:o}var ci,li,fi=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},pi=jn.div(di||(di=fi(["\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"}(ci||(ci={})),function(e){e[e.BOLD=0]="BOLD",e[e.UNDERLINE=1]="UNDERLINE",e[e.LINE_THRONG=2]="LINE_THRONG",e[e.ITALIC=3]="ITALIC"}(li||(li={}));var di,hi,gi,mi,vi,yi,bi,xi=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"})})},_i=(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"})}),wi=jn.div(hi||(hi=fi(["\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"])),ci.HEADLINE_1,ci.HEADLINE_2,ci.HEADLINE_3,ci.HEADLINE_4,ci.HEADLINE_5,ci.HEADLINE_6,ci.BODY_1,ci.BODY_2,li.BOLD,li.ITALIC,li.UNDERLINE,li.LINE_THRONG,li.UNDERLINE,li.LINE_THRONG),Ei=jn.div(gi||(gi=fi(["\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"]))),Ti=jn.div(mi||(mi=fi(["\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"]))),Si=jn.div(vi||(vi=fi(["\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"]))),Ri=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 ui(o,t,"multiline"==n,r)}(e,"js"):e.innerText="Code is not set.")},[t]),(0,V.jsx)(Si,{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})]})})},Oi=jn.div(yi||(yi=fi(["\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"]))),Ai=jn.div(bi||(bi=fi(["\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"]))),Ii=function(e,t){};const Li={canPush:Ii,canRemove:Ii,canRemoveAll:Ii,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 Ni=s(514),Ci=s(72),ki=s.n(Ci),Pi=s(825),ji=s.n(Pi),Di=s(659),zi=s.n(Di),Mi=s(56),$i=s.n(Mi),Bi=s(540),Ui=s.n(Bi),Fi=s(113),Wi=s.n(Fi),Hi=s(983),qi={};qi.styleTagTransform=Wi(),qi.setAttributes=$i(),qi.insert=zi().bind(null,"head"),qi.domAPI=ji(),qi.insertStyleElement=Ui(),ki()(Hi.Ay,qi);const Yi=Hi.Ay&&Hi.Ay.locals?Hi.Ay.locals:void 0;function Gi(){return"undefined"!=typeof window}function Xi(e){return Ki(e)?(e.nodeName||"").toLowerCase():"#document"}function Vi(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Zi(e){var t;return null==(t=(Ki(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ki(e){return!!Gi()&&(e instanceof Node||e instanceof Vi(e).Node)}function Ji(e){return!!Gi()&&(e instanceof Element||e instanceof Vi(e).Element)}function Qi(e){return!!Gi()&&(e instanceof HTMLElement||e instanceof Vi(e).HTMLElement)}function ea(e){return!(!Gi()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Vi(e).ShadowRoot)}const ta=new Set(["inline","contents"]);function na(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ha(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ta.has(o)}const ra=new Set(["table","td","th"]);function oa(e){return ra.has(Xi(e))}const ia=[":popover-open",":modal"];function aa(e){return ia.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const sa=["transform","translate","scale","rotate","perspective"],ua=["transform","translate","scale","rotate","perspective","filter"],ca=["paint","layout","strict","content"];function la(e){const t=fa(),n=Ji(e)?ha(e):e;return sa.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ua.some(e=>(n.willChange||"").includes(e))||ca.some(e=>(n.contain||"").includes(e))}function fa(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const pa=new Set(["html","body","#document"]);function da(e){return pa.has(Xi(e))}function ha(e){return Vi(e).getComputedStyle(e)}function ga(e){return Ji(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ma(e){if("html"===Xi(e))return e;const t=e.assignedSlot||e.parentNode||ea(e)&&e.host||Zi(e);return ea(t)?t.host:t}function va(e){const t=ma(e);return da(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qi(t)&&na(t)?t:va(t)}function ya(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=va(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Vi(o);if(i){const e=ba(a);return t.concat(a,a.visualViewport||[],na(o)?o:[],e&&n?ya(e):[])}return t.concat(o,ya(o,[],n))}function ba(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xa(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ea(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function _a(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function wa(e){return(null==e?void 0:e.ownerDocument)||document}function Ea(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 Ta(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Sa=Math.min,Ra=Math.max,Oa=Math.round,Aa=(Math.floor,e=>({x:e,y:e}));function Ia(e,t,n){return Ra(e,Sa(t,n))}function La(e,t){return"function"==typeof e?e(t):e}function Na(e){return e.split("-")[0]}function Ca(e){return e.split("-")[1]}function ka(e){return"x"===e?"y":"x"}const Pa=new Set(["top","bottom"]);function ja(e){return Pa.has(Na(e))?"y":"x"}function Da(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 za(e,t,n){let{reference:r,floating:o}=e;const i=ja(t),a=function(e){return ka(ja(e))}(t),s="y"===a?"height":"width",u=Na(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 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(Ca(t)){case"start":d[a]-=p*(n&&c?-1:1);break;case"end":d[a]+=p*(n&&c?-1:1)}return d}const Ma=new Set(["left","top"]);function $a(e){const t=ha(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qi(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Oa(n)!==i||Oa(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Ba(e){return Ji(e)?e:e.contextElement}function Ua(e){const t=Ba(e);if(!Qi(t))return Aa(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=$a(t);let a=(i?Oa(n.width):n.width)/r,s=(i?Oa(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Fa=Aa(0);function Wa(e){const t=Vi(e);return fa()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Fa}function Ha(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ba(e);let a=Aa(1);t&&(r?Ji(r)&&(a=Ua(r)):a=Ua(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Vi(e))&&t}(i,n,r)?Wa(i):Aa(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=Vi(i),t=r&&Ji(r)?Vi(r):r;let n=e,o=ba(n);for(;o&&r&&t!==n;){const e=Ua(o),t=o.getBoundingClientRect(),r=ha(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=Vi(o),o=ba(n)}}return Da({width:l,height:f,x:u,y:c})}function qa(e,t){const n=ga(e).scrollLeft;return t?t.left+n:Ha(Zi(e)).left+n}function Ya(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-qa(e,n),y:n.top+t.scrollTop}}const Ga=new Set(["absolute","fixed"]);function Xa(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Vi(e),r=Zi(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=fa();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}const c=qa(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=Zi(e),n=ga(e),r=e.ownerDocument.body,o=Ra(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ra(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+qa(e);const s=-n.scrollTop;return"rtl"===ha(r).direction&&(a+=Ra(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Zi(e));else if(Ji(t))r=function(e,t){const n=Ha(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Qi(e)?Ua(e):Aa(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=Wa(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Da(r)}function Va(e,t){const n=ma(e);return!(n===t||!Ji(n)||da(n))&&("fixed"===ha(n).position||Va(n,t))}function Za(e,t,n){const r=Qi(t),o=Zi(t),i="fixed"===n,a=Ha(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const u=Aa(0);function c(){u.x=qa(o)}if(r||!r&&!i)if(("body"!==Xi(t)||na(o))&&(s=ga(t)),r){const e=Ha(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?Aa(0):Ya(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 Ka(e){return"static"===ha(e).position}function Ja(e,t){if(!Qi(e)||"fixed"===ha(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Zi(e)===n&&(n=n.ownerDocument.body),n}function Qa(e,t){const n=Vi(e);if(aa(e))return n;if(!Qi(e)){let t=ma(e);for(;t&&!da(t);){if(Ji(t)&&!Ka(t))return t;t=ma(t)}return n}let r=Ja(e,t);for(;r&&oa(r)&&Ka(r);)r=Ja(r,t);return r&&da(r)&&Ka(r)&&!la(r)?n:r||function(e){let t=ma(e);for(;Qi(t)&&!da(t);){if(la(t))return t;if(aa(t))return null;t=ma(t)}return null}(e)||n}const es={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Zi(r),s=!!t&&aa(t.floating);if(r===a||s&&i)return n;let u={scrollLeft:0,scrollTop:0},c=Aa(1);const l=Aa(0),f=Qi(r);if((f||!f&&!i)&&(("body"!==Xi(r)||na(a))&&(u=ga(r)),Qi(r))){const e=Ha(r);c=Ua(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const p=!a||f||i?Aa(0):Ya(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:Zi,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?aa(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ya(e,[],!1).filter(e=>Ji(e)&&"body"!==Xi(e)),o=null;const i="fixed"===ha(e).position;let a=i?ma(e):e;for(;Ji(a)&&!da(a);){const t=ha(a),n=la(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Ga.has(o.position)||na(a)&&!n&&Va(e,a))?r=r.filter(e=>e!==a):o=t,a=ma(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Xa(t,n,o);return e.top=Ra(r.top,e.top),e.right=Sa(r.right,e.right),e.bottom=Sa(r.bottom,e.bottom),e.left=Ra(r.left,e.left),e},Xa(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Qa,getElementRects:async function(e){const t=this.getOffsetParent||Qa,n=this.getDimensions,r=await n(e.floating);return{reference:Za(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}=$a(e);return{width:t,height:n}},getScale:Ua,isElement:Ji,isRTL:function(e){return"rtl"===ha(e).direction}},ts=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=Na(n),s=Ca(n),u="y"===ja(n),c=Ma.has(a)?-1:1,l=i&&u?-1:1,f=La(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 s&&"number"==typeof h&&(d="end"===s?-1*h:h),u?{x:d*l,y:p*c}:{x:p*c,y:d*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}}}}},ns=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}=La(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:d=0}=La(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=s[p?"floating"===f?"reference":"floating":f],m=Da(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(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},x=Da(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,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=ja(Na(o)),p=ka(f);let d=c[p],h=c[f];if(i){const e="y"===p?"bottom":"right";d=Ia(d+l["y"===p?"top":"left"],d,d-l[e])}if(a){const e="y"===f?"bottom":"right";h=Ia(h+l["y"===f?"top":"left"],h,h-l[e])}const g=s.fn({...t,[p]:d,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[f]:a}}}}}},rs=(e,t,n)=>{const r=new Map,o={platform:es,...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}=za(c,r,u),p=r,d={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[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:a,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 a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:f}=za(c,p,u))),n=-1)}return{x:l,y:f,placement:p,strategy:o,middlewareData:d}})(e,t,{...o,platform:i})};var os="undefined"!=typeof document?U.useLayoutEffect:function(){};function is(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(!is(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||is(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function as(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ss(e,t){const n=as(e);return Math.round(t*n)/n}function us(e){const t=U.useRef(e);return os(()=>{t.current=e}),t}const cs=(e,t)=>({...ts(e),options:[e,t]}),ls=(e,t)=>({...ns(e),options:[e,t]}),fs={...F},ps=fs.useInsertionEffect||(e=>e());function ds(e){const t=U.useRef(()=>{});return ps(()=>{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 hs="undefined"!=typeof document?U.useLayoutEffect:U.useEffect;let gs=!1,ms=0;const vs=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ms++,ys=fs.useId||function(){const[e,t]=U.useState(()=>gs?vs():void 0);return hs(()=>{null==e&&t(vs())},[]),U.useEffect(()=>{gs=!0},[]),e};const bs=U.createContext(null),xs=U.createContext(null),_s=()=>{var e;return(null==(e=U.useContext(bs))?void 0:e.id)||null},ws=()=>U.useContext(xs);function Es(e){return"data-floating-ui-"+e}function Ts(e){const t=(0,U.useRef)(e);return hs(()=>{t.current=e}),t}const Ss=Es("safe-polygon");function Rs(e,t,n){return n&&!_a(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Os(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 As="data-floating-ui-focusable";function Is(e){return Qi(e.target)&&"BUTTON"===e.target.tagName}function Ls(e){return function(e){return Qi(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}(e)}const Ns={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Cs={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ks=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 Ps(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:d,capture:h}=t,g=ws(),m=ds("function"==typeof u?u:()=>!1),v="function"==typeof u?m:u,y=U.useRef(!1),b=U.useRef(!1),{escapeKey:x,outsidePress:_}=ks(d),{escapeKey:w,outsidePress:E}=ks(h),T=U.useRef(!1),S=ds(e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;if(T.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,u=g?Os(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=ds(e=>{var t;const n=()=>{var t;S(e),null==(t=Ta(e))||t.removeEventListener("keydown",n)};null==(t=Ta(e))||t.addEventListener("keydown",n)}),O=ds(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=Ta(e),u="["+Es("inert")+"]",l=wa(o.floating).querySelectorAll(u);let f=Ji(s)?s:null;for(;f&&!da(f);){const e=ma(f);if(da(e)||!Ji(e))break;f=e}if(l.length&&Ji(s)&&!s.matches("html,body")&&!xa(s,o.floating)&&Array.from(l).every(e=>!xa(f,e)))return;if(Qi(s)&&L){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"===ha(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,d=g&&Os(g.nodesRef.current,p).some(t=>{var n;return Ea(e,null==(n=t.context)?void 0:n.elements.floating)});if(Ea(e,o.floating)||Ea(e,o.domReference)||d)return;const h=g?Os(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")}),A=ds(e=>{var t;const n=()=>{var t;O(e),null==(t=Ta(e))||t.removeEventListener(c,n)};null==(t=Ta(e))||t.addEventListener(c,n)});U.useEffect(()=>{if(!n||!a)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},fa()?5:0)}const f=wa(o.floating);s&&(f.addEventListener("keydown",w?R:S,w),f.addEventListener("compositionstart",u),f.addEventListener("compositionend",l)),v&&f.addEventListener(c,E?A:O,E);let d=[];return p&&(Ji(o.domReference)&&(d=ya(o.domReference)),Ji(o.floating)&&(d=d.concat(ya(o.floating))),!Ji(o.reference)&&o.reference&&o.reference.contextElement&&(d=d.concat(ya(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})}),()=>{s&&(f.removeEventListener("keydown",w?R:S,w),f.removeEventListener("compositionstart",u),f.removeEventListener("compositionend",l)),v&&f.removeEventListener(c,E?A:O,E),d.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,s,v,c,n,r,p,a,x,_,S,w,R,O,E,A]),U.useEffect(()=>{y.current=!1},[v,c]);const I=U.useMemo(()=>({onKeyDown:S,[Ns[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},[Cs[c]]:()=>{y.current=!0}}),[S,c]);return U.useMemo(()=>a?{reference:I,floating:L}:{},[a,I,L])}function js(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=ys(),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!=_s(),[u,c]=U.useState(r.reference),l=ds((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=ws();hs(()=>{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,d]=U.useState(r);is(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,_=a||m,w=U.useRef(null),E=U.useRef(null),T=U.useRef(l),S=null!=u,R=us(u),O=us(o),A=us(c),I=U.useCallback(()=>{if(!w.current||!E.current)return;const e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),rs(w.current,E.current,e).then(e=>{const t={...e,isPositioned:!1!==A.current};L.current&&!is(T.current,t)&&(T.current=t,Ni.flushSync(()=>{f(t)}))})},[p,t,n,O,A]);os(()=>{!1===c&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);const L=U.useRef(!1);os(()=>(L.current=!0,()=>{L.current=!1}),[]),os(()=>{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=ss(C.floating,l.x),r=ss(C.floating,l.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...as(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,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,...s&&{reference:s}}}),d=U.useCallback(e=>{const t=Ji(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),p.refs.setReference(t)},[p.refs]),h=U.useCallback(e=>{(Ji(e)||null===e)&&(l.current=e,a(e)),(Ji(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Ji(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 hs(()=>{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 Ds="active",zs="selected";function Ms(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Ds]:t,[zs]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[As]:""},...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&&[Ds,zs].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 $s(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=>Ms(t,e,"reference"),t),i=U.useCallback(t=>Ms(t,e,"floating"),n),a=U.useCallback(t=>Ms(t,e,"item"),r);return U.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}function Bs(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 Us(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: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=Ta(e),x="mouseleave"===e.type,_=xa(f.floating,b),w=xa(f.domReference,b),E=f.domReference.getBoundingClientRect(),T=f.floating.getBoundingClientRect(),S=l.split("-")[0],R=n>T.right-T.width/2,O=c>T.bottom-T.height/2,A=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&&Ji(e.relatedTarget)&&xa(f.floating,e.relatedTarget))return;if(h&&Os(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(!Bs([m,v],j)){if(i&&!A)return g();if(!x&&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 g()}Bs([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:O?r+4*t:r-4*t],o=[n+t+1,L?r-t/2:O?r+4*t:r-4*t];return[[O||L?T.right-t:T.left,T.top],[O?L?T.right-t:T.left:T.right-t,T.bottom],e,o]}case"right":return[[n-t,L?r+t/2:O?r+4*t:r-4*t],[n-t,L?r-t/2:O?r+4*t:r-4*t],[O||L?T.left+t:T.right,T.top],[O?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 Fs=function(){return Fs=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},Fs.apply(this,arguments)},Ws=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))},Hs=i,qs=function(e){var t=e.top,n=e.left,r=e.isVisible,o=void 0!==r&&r,i=e.children,a=e.style,s=(0,U.useState)(!0),u=s[0],c=s[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,Ni.createPortal)((0,V.jsx)("div",{className:Hs.root,style:Fs(Fs({},null==a?void 0:a.root),{"--background-color":u?"rgba(0, 0, 0, 0.0)":"rgba(0, 0, 0, 0.4)"}),children:(0,V.jsx)("div",{className:Hs.background,property:u?"--top-value: 50%":"--top-value: ".concat(t),style:Fs(Fs({},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"}),children:i()})}),document.body)})},Ys=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=(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 Xs({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(s,e)),function(){null==t||t.removeEventListener(s,e)}},[l,h]),(0,U.useEffect)(function(){var e=function(){return g(!h)},t=l;return t&&(null==t||t.addEventListener(s,e)),function(){null==t||t.removeEventListener(s,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,Ni.createPortal)((0,V.jsx)("div",{className:Hs["popup-element"],style:o.style,ref:p,children:t({remove:function(){return g(!1)},parentRef:l||void 0})}),document.body)]})},Gs=[],Xs=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(){a()},a=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=Ws(Ws([],t.filterElementOnAutoRemove||[],!0),Gs,!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,Gs.push(e.element),Gs.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,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")}},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,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,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+a,"px"):"top-edge"===n?d.style.top="".concat((h.top<1?0:h.top)+a,"px"):"bottom-edge"===n?d.style.top="".concat((h.top<1?0:h.top)-g.height+h.height+a,"px"):"center"===n?(m=h.height/2-g.height/2,d.style.top="".concat((h.top<1?0:h.top)+m+a,"px")):d.style.top="".concat((h.bottom<1?0:h.bottom)+a,"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;Gs=Gs.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}(),Vs=function(e){var t=(0,U.useState)(!1),n=t[0],r=t[1],o=(0,U.useRef)(),i=js({open:n,onOpenChange:r,middleware:[ls(),cs(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,d=ws(),h=_s(),g=Ts(c),m=Ts(u),v=Ts(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(s)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)}},[s,i]),U.useEffect(()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){R()&&r(!1,e,"hover")}const t=wa(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,r,s,g,R]);const O=U.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Rs(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]),A=ds(()=>{T.current(),x.current=void 0}),I=ds(()=>{if(E.current){const e=wa(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Ss),E.current=!1}});U.useEffect(()=>{if(s&&Ji(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),w.current=!1,l&&!_a(y.current)||f>0&&!Rs(m.current,"open"))return;const t=Rs(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=wa(a.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(),A(),O(e,!0,"safe-polygon")}});const t=x.current;return r.addEventListener("mousemove",t),void(T.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==y.current||!xa(a.floating,e.relatedTarget))&&O(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(),A(),O(e)}})(e))}},[a,s,e,l,f,p,O,A,I,r,n,v,d,m,g,o]),hs(()=>{var e;if(s&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&R()){E.current=!0;const e=a.floating;if(Ji(a.domReference)&&e){var t;const n=wa(a.floating).body;n.setAttribute(Ss,"");const r=a.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=""}}}},[s,n,h,a,d,g,R]),hs(()=>{n||(y.current=void 0,S.current=!1,A(),I())},[n,A,I]),U.useEffect(()=>()=>{A(),clearTimeout(b.current),clearTimeout(_.current),I()},[s,a.domReference,A,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&&!_a(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){O(e.nativeEvent,!1)}}),[O]);return U.useMemo(()=>s?{reference:L,floating:N}:{},[s,L,N])}(i.context,{handleClose:Us({requireIntent:!1})}),f=$s([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,a.setReference(e)}),n&&(0,Ni.createPortal)((0,V.jsx)("div",Fs({ref:a.setFloating,style:{position:c,top:null!=u?u:0,left:null!=s?s:0,zIndex:1e3}},d(),{children:e.element})),document.body)]})},Zs=function(e){var t=(0,U.useState)(!1),n=t[0],r=t[1],o=(0,U.useRef)(),i=js({open:n,onOpenChange:r,middleware:[ls(),cs(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),d=U.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==s&&(_a(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:_a(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||Is(e)||(" "!==e.key||Ls(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&r(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!l||Is(e)||Ls(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:d}:{},[a,d])}(l),p=$s([f,Ps(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,a.setReference(e)}),n&&(0,Ni.createPortal)((0,V.jsx)("div",Fs({ref:a.setFloating,style:{position:c,top:null!=u?u:0,left:null!=s?s:0,zIndex:1e3}},h(),{children:e.element})),document.body)]})},Ks=function(e){var t=(0,U.useRef)(),n=js({open:e.isOpen,middleware:[ls(),cs(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=$s([Ps(n.context)]),u=s.getReferenceProps,c=s.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,Ni.createPortal)((0,V.jsx)("div",Fs({ref:r.setFloating,style:{position:a,top:null!=i?i:0,left:null!=o?o:0,zIndex:1e3}},c(),{children:e.element})),document.body)]})},Js=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,Ni.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)})},Qs=function(e,t){return"%"===(null==t?void 0:t.unit)?e*((t.value||0)/100):(null==t?void 0:t.value)||0},eu=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-Qs(o,a)-Qs(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},tu=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 a=i.item.ref;a&&(i.size&&a.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=a,i.resizeObserver=eu(i.sizes.map(function(e){return e.width}),a,function(t,n,r){window.requestAnimationFrame(function(){var t,o,s=i.sizes.find(function(e){return e.width===n}),u=i.sizes.find(function(e){return e.width===r});(null==s?void 0:s.className)&&(null==a||(t=a.classList).remove.apply(t,null==s?void 0:s.className)),(null==u?void 0:u.className)&&(null==a||(o=a.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}(),nu=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=K().cloneDeep(this.baseState),o=this.getApisRequest(r),i=Object.entries(o).reduce(function(t,r){var o=r[0],i=r[1],a=new Y(function(){n.emit(e)});return a.load(i),t[o]=a,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}(),ru=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}}},ou=function(e){var t=(0,U.useState)({}),n=(t[0],t[1]),r=(0,U.useMemo)(function(){return K().cloneDeep(e)},[]);return{state:r,getState:function(){return r},setState:function(e){return n({}),!0}}};const iu="undefined"!=typeof window,au=iu?window:null,su=iu?document:null,uu={replace:0,none:1,blend:2},cu=Symbol(),lu=Symbol(),fu=Symbol(),pu=Symbol(),du=(Symbol(),Symbol()),hu=1e-11,gu=1e12,mu=1e3,vu="",yu=new Map;yu.set("x","translateX"),yu.set("y","translateY"),yu.set("z","translateZ");const bu=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],xu=bu.reduce((e,t)=>({...e,[t]:t+"("}),{}),_u=()=>{},wu=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,Eu=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,Tu=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Su=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,Ru=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,Ou=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,Au=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,Iu=/([a-z])([A-Z])/g,Lu=/(\w+)(\([^)]+\)+)/g,Nu=/(\*=|\+=|-=)/,Cu={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:120,loop:0,reversed:!1,alternate:!1,autoplay:!0,duration:mu,delay:0,loopDelay:0,ease:"out(2)",composition:uu.replace,modifier:e=>e,onBegin:_u,onBeforeUpdate:_u,onUpdate:_u,onLoop:_u,onPause:_u,onComplete:_u,onRender:_u},ku={defaults:Cu,root:su,scope:null,precision:4,timeScale:1,tickThreshold:200},Pu={version:"4.0.0",engine:null};iu&&(au.AnimeJS||(au.AnimeJS=[]),au.AnimeJS.push(Pu));const ju=(e,t)=>0===e.indexOf(t),Du=Date.now,zu=Array.isArray,Mu=e=>e&&e.constructor===Object,$u=e=>"number"==typeof e&&!isNaN(e),Bu=e=>"string"==typeof e,Uu=e=>"function"==typeof e,Fu=e=>void 0===e,Wu=e=>Fu(e)||null===e,Hu=e=>iu&&e instanceof SVGElement,qu=e=>wu.test(e),Yu=e=>ju(e,"rgb"),Gu=e=>ju(e,"hsl"),Xu=e=>!ku.defaults.hasOwnProperty(e),Vu=e=>Bu(e)?parseFloat(e):e,Zu=Math.pow,Ku=Math.sqrt,Ju=Math.sin,Qu=Math.cos,ec=Math.abs,tc=(Math.exp,Math.ceil),nc=Math.floor,rc=Math.asin,oc=(Math.max,Math.atan2,Math.PI),ic=Math.round,ac=(e,t,n)=>e<t?t:e>n?n:e,sc={},uc=(e,t)=>{if(t<0)return e;if(!t)return ic(e);let n=sc[t];return n||(n=sc[t]=10**t),ic(e*n)/n},cc=(e,t,n)=>e+(t-e)*n,lc=e=>e===1/0?gu:e===-1/0?-1e12:e,fc=e=>e<hu?hu:e,pc=e=>zu(e)?[...e]:e,dc=(e,t)=>{const n={...e};for(let r in t){const o=e[r];n[r]=Fu(o)?t[r]:o}return n},hc=(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}},gc=(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},mc=(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 vc{constructor(e=0){this.deltaTime=0,this._currentTime=e,this._elapsedTime=e,this._startTime=e,this._lastTime=e,this._scheduledTime=0,this._frameDuration=uc(mu/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<hu?hu:n,o=uc(mu/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<hu?hu: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 yc=(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,d=e._alternate,h=e._hasChildren,g=e._delay,m=e._currentTime,v=g+u,y=t-g,b=ac(m,-g,a),x=ac(y,-g,a),_=y-m,w=x>0,E=x>=a,T=a<=hu,S=2===o;let R=0,O=y,A=0;if(c>1){const t=~~(x/(u+(E?0:f)));e._currentIteration=ac(t,0,c),E&&e._currentIteration--,R=e._currentIteration%2,O=x%(u+f)||0}const I=p^(d&&R),L=e._ease;let N=E?I?0:a:I?u-O:O;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!==a)||N>=v&&b!==a||N<=g&&b>0||t<=b&&b===a&&s||E&&!s&&T){if(w&&(e.computeDeltaTime(b),n||e.onBeforeUpdate(e)),!h){const t=S||(C?-1*_:_)>=ku.tickThreshold,o=e._offset+(i?i._offset:0)+g+N;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,d=l._nextRep,h=l._prevRep,g=e!==uu.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=ac(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:ku.precision;let y,b;if(m)y=b=o(uc(cc(l._fromNumber,l._toNumber,n),v));else if(1===p)b=o(uc(cc(l._fromNumber,l._toNumber,n),v)),y=`${b}${l._unit}`;else if(2===p){const e=l._fromNumbers,t=l._toNumbers,r=uc(ac(o(cc(e[0],t[0],n)),0,255),0),i=uc(ac(o(cc(e[1],t[1],n)),0,255),0),a=uc(ac(o(cc(e[2],t[2],n)),0,255),0),s=ac(o(uc(cc(e[3],t[3],n),v)),0,1);if(y=`rgba(${r},${i},${a},${s})`,g){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(uc(cc(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===uu.blend)l._value=y;else{const e=l.property;a=l.target,h?a[e]=y:1===d?a.setAttribute(e,y):(s=a.style,3===d?(a!==u&&(u=a,c=a[pu]),c[e]=y,f=1):2===d?s[e]=y:4===d&&s.setProperty(e,y)),w&&(A=1)}}if(f&&l._renderTransforms){let e=vu;for(let t in c)e+=`${xu[t]}${c[t]}) `;s.transform=e,f=0}l=l._next}!n&&A&&e.onRender(e)}!n&&w&&e.onUpdate(e)}return i&&T?!n&&(i.began&&!C&&y>=a&&!s||C&&y<=hu&&s)&&(e.onComplete(e),e.completed=!C):w&&E?c===1/0?e._startTime+=e.duration:e._currentIteration>=c-1&&(e.paused=!0,s||h||(e.completed=!0,n||i&&(C||!i.began)||(e.onComplete(e),e._resolve(e)))):e.completed=!1,A},bc=(e,t,n,r,o)=>{const i=e._currentIteration;if(yc(e,t,n,r,o),e._hasChildren){const a=e,s=a.backwards,u=r?t:a._iterationTime,c=Du();let l=0,f=!0;if(!r&&a._currentIteration!==i){const e=a.iterationDuration;hc(a,t=>{if(s){const r=t.duration,o=t._offset+t._delay;n||!(r<=hu)||o&&o+r!==e||t.onComplete(t)}else!t.completed&&!t.backwards&&t._currentTime<t.iterationDuration&&yc(t,e,n,1,2),t.began=!1,t.completed=!1}),n||a.onLoop(a)}hc(a,e=>{const t=uc((u-e._offset)*e._speed,12),i=e._fps<a._fps?e.requestTick(c):o;l+=yc(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))))}},xc={animation:null,update:_u},_c=iu?requestAnimationFrame:setImmediate,wc=iu?cancelAnimationFrame:clearImmediate;class Ec extends vc{constructor(e){super(e),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=Cu,this.paused=!(!iu||!su.hidden),this.reqId=null}update(){const e=this._currentTime=Du();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?(gc(this,r),this._hasChildren=!!this._tail,r._running=!1,r.completed&&!r._cancelled&&r.cancel()):bc(r,(e-r._startTime)*r._speed*t,0,0,r._fps<n?r.requestTick(e):1),r=o}xc.update()}}wake(){return!this.useDefaultMainLoop||this.reqId||this.paused||(this.reqId=_c(Sc)),this}pause(){return this.paused=!0,Rc()}resume(){if(this.paused)return this.paused=!1,hc(this,e=>e.resetTime()),this.wake()}get speed(){return this._speed*(1===ku.timeScale?1:mu)}set speed(e){this._speed=e*ku.timeScale,hc(this,e=>e.speed=e._speed)}get timeUnit(){return 1===ku.timeScale?"ms":"s"}set timeUnit(e){const t="s"===e,n=t?.001:1;if(ku.timeScale!==n){ku.timeScale=n,ku.tickThreshold=200*n;const e=t?.001:mu;this.defaults.duration*=e,this._speed*=e}}get precision(){return ku.precision}set precision(e){ku.precision=e}}const Tc=(()=>{const e=new Ec(Du());return iu&&(Pu.engine=e,su.addEventListener("visibilitychange",()=>{e.pauseOnDocumentHidden&&(su.hidden?e.pause():e.resume())})),e})(),Sc=()=>{Tc._head?(Tc.reqId=_c(Sc),Tc.update()):Tc.reqId=0},Rc=()=>(wc(Tc.reqId),Tc.reqId=0,Tc);function Oc(e){const t=Bu(e)?ku.root.querySelectorAll(e):e;if(t instanceof NodeList||t instanceof HTMLCollection)return t}function Ac(e){if(Wu(e))return[];if(zu(e)){const t=e.flat(1/0),n=[];for(let e=0,r=t.length;e<r;e++){const r=t[e];if(!Wu(r)){const e=Oc(r);if(e)for(let t=0,r=e.length;t<r;t++){const r=e[t];if(!Wu(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(!iu)return[e];const t=Oc(e);return t?Array.from(t):[e]}function Ic(e){const t=Ac(e),n=t.length;if(n)for(let e=0;e<n;e++){const n=t[e];if(!n[cu]){n[cu]=!0;const e=Hu(n);(n.nodeType||e)&&(n[lu]=!0,n[fu]=e,n[pu]={})}}return t}const Lc=["opacity","rotate","overflow","color"],Nc=(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),Cc=(e,t)=>Fu(e)?t:e,kc=(e,t,n,r,o)=>{if(Uu(e)){const i=()=>{const o=e(t,n,r);return isNaN(+o)?o||0:+o};return o&&(o.func=i),i()}return e},Pc=(e,t)=>e[lu]?e[fu]&&((e,t)=>{if(Lc.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:bu.includes(t)||yu.get(t)?3:ju(t,"--")?4:t in e.style?2:t in e?0:1:0,jc=(e,t,n)=>{const r=e.style[t];r&&n&&(n[t]=r);const o=r||getComputedStyle(e[du]||e).getPropertyValue(t);return"auto"===o?"0":o},Dc=(e,t,n,r)=>{const o=Fu(n)?Pc(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[pu];let a;for(;a=Lu.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&&!Fu(o)?o:ju(t,"scale")?"1":ju(t,"rotate")||ju(t,"skew")?"0deg":"0px"})(e,t,r):4===o?jc(e,t,r).trimStart():jc(e,t,r)},zc=(e,t,n)=>"-"===n?e-t:"+"===n?e+t:e*t,Mc=(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(" ")&&Au.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=>qu(e)||Yu(e)||Gu(e))(n))return t.t=2,t.d=Yu(r=n)?(e=>{const t=Eu.exec(e)||Tu.exec(e),n=Fu(t[4])?1:+t[4];return[+t[1],+t[2],+t[3],n]})(r):qu(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):Gu(r)?(e=>{const t=Su.exec(e)||Ru.exec(e),n=+t[1]/360,r=+t[2]/100,o=+t[3]/100,i=Fu(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=uc(255*Nc(t,e,n+1/3),0),s=uc(255*Nc(t,e,n),0),u=uc(255*Nc(t,e,n-1/3),0)}return[a,s,u,i]})(r):[0,0,0,1],t;{const e=n.match(Ou);return t.t=3,t.d=e?e.map(Number):[],t.s=n.split(Ou)||[],t}}var r;return t.n=n,t},$c=(e,t)=>(t.t=e._valueType,t.n=e._toNumber,t.u=e._unit,t.o=null,t.d=pc(e._toNumbers),t.s=pc(e._strings),t),Bc={t:0,n:0,u:null,o:null,d:null,s:null},Uc={_rep:new WeakMap,_add:new Map},Fc=(e,t,n="_rep")=>{const r=Uc[n];let o=r.get(e);return o||(o={},r.set(e,o)),o[t]?o[t]:o[t]={_head:null,_tail:null}},Wc=(e,t)=>e._isOverridden||e._absoluteStartTime>t._absoluteStartTime,Hc=e=>{e._isOverlapped=1,e._isOverridden=1,e._changeDuration=hu,e._currentTime=hu},qc=(e,t)=>{const n=e._composition;if(n===uu.replace){const n=e._absoluteStartTime;mc(t,e,Wc,"_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){Hc(r);let e=r._prevRep;for(;e&&e.parent.id===t.id;)Hc(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<hu&&Hc(r)}let a=!0;if(hc(t,e=>{e._isOverlapped||(a=!1)}),a){const e=t.parent;if(e){let n=!0;hc(e,e=>{e!==t&&hc(e,e=>{e._isOverlapped||(n=!1)})}),n&&e.cancel()}else t.cancel()}}}else if(n===uu.blend){const t=Fc(e.target,e.property,"_add"),n=(e=>{let t=xc.animation;return t||(t={duration:hu,computeDeltaTime:_u,_offset:0,_delay:0,_head:null,_tail:null},xc.animation=t,xc.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?pc(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}}}),yc(t,1,1,0,2)}),t})(Uc._add);let r=t._head;r||(r={...e},r._composition=uu.replace,r._updateDuration=hu,r._startTime=0,r._numbers=pc(e._fromNumbers),r._number=0,r._next=null,r._prev=null,mc(t,r),mc(n,r));const o=e._toNumber;if(e._fromNumber=r._fromNumber-o,e._toNumber=0,e._numbers=pc(e._fromNumbers),e._number=0,r._fromNumber=o,e._toNumbers){const t=pc(e._toNumbers);t&&t.forEach((t,n)=>{e._fromNumbers[n]=r._fromNumbers[n]-t,e._toNumbers[n]=0}),r._fromNumbers=t}mc(t,e,null,"_prevAdd","_nextAdd")}return e},Yc=e=>{const t=e._composition;if(t!==uu.none){const n=e.target,r=e.property,o=Uc._rep.get(n)[r];if(gc(o,e,"_prevRep","_nextRep"),t===uu.blend){const t=Uc._add,o=t.get(n);if(!o)return;const i=o[r],a=xc.animation;gc(i,e,"_prevAdd","_nextAdd");const s=i._head;if(s&&s===i._tail){gc(i,s,"_prevAdd","_nextAdd"),gc(a,s);let e=!0;for(let t in o)if(o[t]._head){e=!1;break}e&&t.delete(n)}}}return e},Gc=e=>(e.paused=!0,e.began=!1,e.completed=!1,e),Xc=e=>e._cancelled?(e._hasChildren?hc(e,Xc):hc(e,e=>{e._composition!==uu.none&&qc(e,Fc(e.target,e.property))}),e._cancelled=0,e):e;let Vc=0;class Zc extends vc{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:d,onLoop:h,onPause:g,onBegin:m,onBeforeUpdate:v,onUpdate:y}=e;ku.scope&&ku.scope.revertibles.push(this);const b=t?0:Tc._elapsedTime,x=t?t.defaults:ku.defaults,_=Uu(o)||Fu(o)?x.delay:+o,w=Uu(i)||Fu(i)?1/0:+i,E=Cc(u,x.loop),T=Cc(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=Du();Tc.paused&&(Tc.requestTick(e),e=Tc._elapsedTime),R=e-Tc._startTime}this.id=Fu(r)?++Vc:r,this.parent=t,this.duration=lc((w+T)*S-T)||hu,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&&Cc(l,x.autoplay),this._offset=R,this._delay=_,this._loopDelay=T,this._iterationTime=0,this._currentIteration=0,this._resolve=_u,this._running=!1,this._reversed=+Cc(a,x.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=Cc(s,x.alternate),this._prev=null,this._next=null,this._elapsedTime=b,this._startTime=b,this._lastTime=b,this._fps=Cc(f,x.frameRate),this._speed=Cc(p,x.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(e){e?this.cancel():this.reset(1).play()}get currentTime(){return ac(uc(this._currentTime,ku.precision),-this._delay,this.duration)}set currentTime(e){const t=this.paused;this.pause().seek(+e),t||this.resume()}get iterationCurrentTime(){return uc(this._iterationTime,ku.precision)}set iterationCurrentTime(e){this.currentTime=this.iterationDuration*this._currentIteration+e}get progress(){return ac(uc(this._currentTime/this.duration,5),0,1)}set progress(e){this.currentTime=this.duration*e}get iterationProgress(){return ac(uc(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*ac(+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 Xc(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,bc(this,0,1,e,2),Gc(this),this._hasChildren&&hc(this,Gc),this}init(e=0){this.fps=this._fps,this.speed=this._speed,!e&&this._hasChildren&&bc(this,this.duration,1,e,2),this.reset(e);const t=this._autoplay;return!0===t?this.resume():t&&!Fu(t.linked)&&t.link(this),this}resetTime(){const e=1/(this._speed*Tc._speed);return this._startTime=Du()-(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<=hu&&!this._hasChildren?bc(this,hu,0,0,2):(this._running||(mc(Tc,this),Tc._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,Tc.wake()),this):this}restart(){return this.reset(0).resume()}seek(e,t=0,n=0){Xc(this),this.completed=!1;const r=this.paused;return this.paused=!0,bc(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?nc(gu/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?hc(this,e=>e.cancel(),!0):hc(this,Yc),this._cancelled=1,this.pause()}stretch(e){const t=this.duration;if(t===fc(e))return this;const n=e/t,r=e<=hu;return this.duration=r?hu:fc(lc(uc(t*n,12))),this.iterationDuration=r?hu:fc(lc(uc(this.iterationDuration*n,12))),this._offset*=n,this._delay*=n,this._loopDelay*=n,this}revert(){bc(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=_u){const t=this.then,n=()=>{this.then=null,e(this),this.then=t,this._resolve=_u};return new Promise(e=>(this._resolve=()=>e(n()),this.completed&&this._resolve(),this))}}const Kc=e=>e,Jc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qc=(e=.5,t=0,n=.5,r=1)=>e===t&&n===r?Kc:o=>0===o||1===o?o:Jc(((e,t,n)=>{let r,o,i=0,a=1,s=0;do{o=i+(a-i)/2,r=Jc(o,t,n)-e,r>0?a=o:i=o}while(ec(r)>1e-7&&++s<100);return o})(o,e,n),t,r),el=(e=10,t)=>{const n=t?tc:nc;return t=>n(ac(t,0,1)*e)*(1/e)},tl=(...e)=>{const t=e.length;if(!t)return Kc;const n=t-1,r=e[0],o=e[n],i=[0],a=[Vu(r)];for(let t=1;t<n;t++){const r=e[t],o=Bu(r)?r.trim().split(" "):[r],s=o[0],u=o[1];i.push(Fu(u)?t/n:Vu(u)/100),a.push(Vu(s))}return a.push(Vu(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]}},nl=(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(ac(a,o,1))}return n.push(1),tl(...n)},rl=oc/2,ol=2*oc,il=(e=1.68)=>t=>Zu(t,+e),al={[vu]:il,Quad:il(2),Cubic:il(3),Quart:il(4),Quint:il(5),Sine:e=>1-Qu(e*rl),Circ:e=>1-Ku(1-e*e),Expo:e=>e?Zu(2,10*e-10):0,Bounce:e=>{let t,n=4;for(;e<((t=Zu(2,--n))-1)/11;);return 1/Zu(4,3-n)-7.5625*Zu((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=ac(+e,1,10),r=ac(+t,hu,2),o=r/ol*rc(1/n),i=ol/r;return e=>0===e||1===e?e:-n*Zu(2,-10*(1-e))*Ju((1-e-o)*i)}},sl={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},ul=(()=>{const e={linear:tl,irregular:nl,steps:el,cubicBezier:Qc};for(let t in sl)for(let n in al){const r=al[n],o=sl[t];e[t+n]=n===vu||"Back"===n||"Elastic"===n?(e,t)=>o(r(e,t)):o(r)}return e})(),cl={linear:Kc},ll=e=>Uu(e)?e:Bu(e)?((e,t,n)=>{if(n[e])return n[e];if(e.indexOf("(")<=-1){const r=sl[e]||e.includes("Back")||e.includes("Elastic")?t[e]():t[e];return r?n[e]=r:Kc}{const r=e.slice(0,-1).split("("),o=t[r[0]];return o?n[e]=o(...r[1].split(",")):Kc}})(e,ul,cl):Kc,fl={},pl=(e,t,n)=>{if(3===n){return yu.get(e)||e}if(2===n||1===n&&Hu(t)&&e in t.style){const t=fl[e];if(t)return t;{const t=e?e.replace(Iu,"$1-$2").toLowerCase():e;return fl[e]=t,t}}return e},dl={deg:1,rad:180/oc,turn:360},hl={},gl=(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=hl[a];if(Fu(s)||r){let r;if(o in dl)r=i*dl[o]/dl[n];else{const t=100,a=e.cloneNode(),s=e.parentNode,u=s&&s!==su?s:su.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,hl[a]=r}else t.n=s;return t.t,t.u=n,t},ml=e=>{if(e._hasChildren)hc(e,ml,!0);else{const t=e;t.pause(),hc(t,e=>{const n=e.property,r=e.target;if(r[lu]){const o=r.style,i=t._inlineStyles[n];if(3===e._tweenType){const t=r[pu];if(Fu(i)||i===vu?delete t[n]:t[n]=i,e._renderTransforms)if(Object.keys(t).length){let e=vu;for(let n in t)e+=xu[n]+t[n]+") ";o.transform=e}else o.removeProperty("transform")}else Fu(i)||i===vu?o.removeProperty(n):o[n]=i;t._tail===e&&t.targets.forEach(e=>{e.getAttribute&&e.getAttribute("style")===vu&&e.removeAttribute("style")})}})}return e},vl={t:0,n:0,u:null,o:null,d:null,s:null},yl={t:0,n:0,u:null,o:null,d:null,s:null},bl={func:null},xl=[null],_l=[null,null],wl={to:null};let El,Tl,Sl=0;class Rl extends Zc{constructor(e,t,n,r,o=!1,i=0,a=0){super(t,n,r);const s=Ic(e),u=s.length,c=t.keyframes,l=c?dc(((e,t)=>{const n={};if(zu(e)){const t=[].concat(...e.map(e=>Object.keys(e))).filter(Xu);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];Xu(n)?n===o&&(t.to=r):t[n]=r}return t});n[o]=i}}else{const r=Cc(t.duration,ku.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(Xu(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:d,playbackEase:h,modifier:g,composition:m,onRender:v}=l,y=n?n.defaults:ku.defaults,b=Cc(h,y.playbackEase),x=b?ll(b):null,_=!Fu(d)&&!Fu(d.ease),w=_?d.ease:Cc(d,x?"linear":y.ease),E=_?d.duration:Cc(p,y.duration),T=Cc(f,y.delay),S=g||y.modifier,R=Fu(m)&&u>=mu?uu.none:Fu(m)?y.composition:m,O={},A=this._offset+(n?n._offset:0);let I=NaN,L=NaN,N=0,C=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(Xu(e)){const i=Pc(t,e),a=pl(e,t,i);let s=l[e];const u=zu(s);if(o&&!u&&(_l[0]=s,_l[1]=s,s=_l),u){const e=s.length,t=!Mu(s[0]);2===e&&t?(wl.to=s,xl[0]=wl,El=xl):e>2&&t?(El=[],s.forEach((e,t)=>{t?1===t?(_l[1]=e,El.push(_l)):El.push(e):_l[0]=e})):El=s}else xl[0]=s,El=xl;let d=null,h=null,g=NaN,m=0,v=0;for(let e=El.length;v<e;v++){const o=El[v];Mu(o)?Tl=o:(wl.to=o,Tl=wl),bl.func=null;const s=kc(Tl.to,t,r,c,bl);let u;Mu(s)&&!Fu(s.to)?(Tl=s,u=s.to):u=s;const l=kc(Tl.from,t,r,c),f=Tl.ease,p=!Fu(f)&&!Fu(f.ease),y=p?f.ease:f||w,b=p?f.duration:kc(Cc(Tl.duration,e>1?kc(E,t,r,c)/e:E),t,r,c),x=kc(Cc(Tl.delay,v?0:T),t,r,c),_=kc(Cc(Tl.composition,R),t,r,c),I=$u(_)?_:uu[_],L=Tl.modifier||S,k=!Fu(l),P=!Fu(u),j=zu(u),D=j||k&&P,z=h?m+x:x,M=A+z;C||!k&&!j||(C=1);let $=h;if(I!==uu.none){d||(d=Fc(t,a));let e=d._head;for(;e&&!e._isOverridden&&e._absoluteStartTime<=M;)if($=e,e=e._nextRep,e&&e._absoluteStartTime>=M)for(;e;)Hc(e),e=e._nextRep}if(D?(Mc(j?kc(u[0],t,r,c):l,vl),Mc(j?kc(u[1],t,r,c,bl):u,yl),0===vl.t&&($?1===$._valueType&&(vl.t=1,vl.u=$._unit):(Mc(Dc(t,a,i,O),Bc),1===Bc.t&&(vl.t=1,vl.u=Bc.u)))):(P?Mc(u,yl):h?$c(h,yl):Mc(n&&$&&$.parent.parent===n?$._value:Dc(t,a,i,O),yl),k?Mc(l,vl):h?$c(h,vl):Mc(n&&$&&$.parent.parent===n?$._value:Dc(t,a,i,O),vl)),vl.o&&(vl.n=zc($?$._toNumber:Mc(Dc(t,a,i,O),Bc).n,vl.n,vl.o)),yl.o&&(yl.n=zc(vl.n,yl.n,yl.o)),vl.t!==yl.t)if(3===vl.t||3===yl.t){const e=3===vl.t?vl:yl,t=3===vl.t?yl:vl;t.t=3,t.s=pc(e.s),t.d=e.d.map(()=>t.n)}else if(1===vl.t||1===yl.t){const e=1===vl.t?vl:yl,t=1===vl.t?yl:vl;t.t=1,t.u=e.u}else if(2===vl.t||2===yl.t){const e=2===vl.t?vl:yl,t=2===vl.t?yl:vl;t.t=2,t.s=e.s,t.d=[0,0,0,1]}if(vl.u!==yl.u){let e=yl.u?vl:yl;e=gl(t,e,yl.u?yl.u:vl.u,!1)}if(yl.d&&vl.d&&yl.d.length!==vl.d.length){const e=vl.d.length>yl.d.length?vl:yl,t=e===vl?yl:vl;t.d=e.d.map((e,n)=>Fu(t.d[n])?0:t.d[n]),t.s=pc(e.s)}const B=uc(+b||hu,12),U={parent:this,id:Sl++,property:a,target:t,_value:null,_func:bl.func,_ease:ll(y),_fromNumbers:pc(vl.d),_toNumbers:pc(yl.d),_strings:pc(yl.s),_fromNumber:vl.n,_toNumber:yl.n,_numbers:pc(vl.d),_number:vl.n,_unit:yl.u,_modifier:L,_currentTime:0,_startTime:z,_delay:+x,_updateDuration:B,_changeDuration:B,_absoluteStartTime:M,_tweenType:i,_valueType:yl.t,_composition:I,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};I!==uu.none&&qc(U,d),isNaN(g)&&(g=U._startTime),m=uc(z+B,12),h=U,N++,mc(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;hc(this,t=>{e>=f&&e<p&&(t._renderTransforms=1,t._composition===uu.blend&&hc(xc.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?(hc(this,e=>{e._startTime-e._delay||(e._delay-=L),e._startTime-=L}),I-=L):L=0,I||(I=hu,this.iterationCount=0),this.targets=s,this.duration=I===hu?hu:lc((I+this._loopDelay)*this.iterationCount-this._loopDelay)||hu,this.onRender=v||y.onRender,this._ease=x,this._delay=L,this.iterationDuration=I,this._inlineStyles=O,!this._autoplay&&C&&this.onRender(this)}stretch(e){const t=this.duration;if(t===fc(e))return this;const n=e/t;return hc(this,e=>{e._updateDuration=fc(uc(e._updateDuration*n,12)),e._changeDuration=fc(uc(e._changeDuration*n,12)),e._currentTime*=n,e._startTime*=n,e._absoluteStartTime*=n}),super.stretch(e)}refresh(){return hc(this,e=>{const t=Dc(e.target,e.property,e._tweenType);Mc(t,Bc),e._fromNumbers=pc(Bc.d),e._fromNumber=Bc.n,e._func&&(Mc(e._func(),yl),e._toNumbers=pc(yl.d),e._strings=pc(yl.s),e._toNumber=yl.n)}),this}revert(){return super.revert(),ml(this)}then(e){return super.then(e)}}bu.filter(e=>["X","Y","Z"].some(t=>e.endsWith(t))),iu&&(Fu(CSS)||Object.hasOwnProperty.call(CSS,"registerProperty"));const Ol={_head:null,_tail:null},Al=(e,t,n)=>{let r=Ol._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(),gc(Ol,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}},Il=(e=_u)=>new Zc({duration:1*ku.timeScale,onComplete:e},null,0).resume();function Ll(e,t,n){const r=Ic(e);if(!r.length)return;const[o]=r,i=Pc(o,t),a=pl(t,o,i);let s=Dc(o,a);if(Fu(n))return s;if(Mc(s,Bc),0===Bc.t||1===Bc.t){if(!1===n)return Bc.n;{const e=gl(o,Bc,n,!1);return`${uc(e.n,ku.precision)}${e.u}`}}}const Nl=(e,t)=>{if(!Fu(t))return t.duration=hu,t.composition=Cc(t.composition,uu.none),new Rl(e,t,null,0,!0).resume()},Cl=(e,t,n)=>{let r=!1;return hc(t,o=>{const i=o.target;if(e.includes(i)){const e=o.property,a=o._tweenType,s=pl(n,i,a);(!s||s&&s===e)&&(o.parent._tail===o&&3===o._tweenType&&o._prev&&3===o._prev._tweenType&&(o._prev._renderTransforms=1),gc(t,o),Yc(o),r=!0)}},!0),r},kl=(e,t,n)=>{const r=Ac(e),o=t||Tc,i=t&&t.controlAnimation&&t;for(let e=0,t=r.length;e<t;e++){const t=r[e];Al(t,n,i)}let a;if(o._hasChildren){let t=0;hc(o,i=>{if(!i._hasChildren)if(a=Cl(r,i,n),a&&!i._head)i.cancel(),gc(o,i);else{const e=i._offset+i._delay+i.duration;e>t&&(t=e)}i._head?kl(e,i,n):i._hasChildren=!1},!0),Fu(o.iterationDuration)||(o.iterationDuration=t)}else a=Cl(r,o,n);return a&&!o._head&&(o._hasChildren=!1,o.cancel&&o.cancel()),r},Pl=(e,t,n)=>{const r=10**(n||0);return nc((Math.random()*(t-e+1/r)+e)*r)/r},jl=(e,t,n,r)=>{let o=mu/ku.defaults.frameRate;if(!1!==r){const e=r||Tc._hasChildren&&Tc;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},Dl=e=>(...t)=>{const n=e(...t);return new Proxy(_u,{apply:(e,t,[r])=>n(r),get:(e,t)=>Dl((...e)=>{const r=Ml[t](...e);return e=>r(n(e))})})},zl=(e,t=0)=>(...n)=>(n.length<e.length?Dl(((e,t=0)=>(...n)=>t?t=>e(...n,t):t=>e(t,...n))(e,t)):e)(...n),Ml={$:Ic,get:Ll,set:Nl,remove:kl,cleanInlineStyles:ml,random:Pl,randomPick:e=>e[Pl(0,e.length-1)],shuffle:e=>{let t,n,r=e.length;for(;r;)n=Pl(0,--r),t=e[r],e[r]=e[n],e[n]=t;return e},lerp:jl,sync:Il,clamp:zl(ac),round:zl(uc),snap:zl((e,t)=>zu(t)?t.reduce((t,n)=>ec(n-e)<ec(t-e)?n:t):t?ic(e/t)*t:e),wrap:zl((e,t,n)=>((e-t)%(n-t)+(n-t))%(n-t)+t),interpolate:zl(cc,1),mapRange:zl((e,t,n,r,o)=>r+(e-t)/(n-t)*(o-r)),roundPad:zl((e,t)=>(+e).toFixed(t)),padStart:zl((e,t,n)=>`${e}`.padStart(t,n)),padEnd:zl((e,t,n)=>`${e}`.padEnd(t,n)),degToRad:zl(e=>e*oc/180),radToDeg:zl(e=>180*e/oc)},$l=(e,t)=>{let n=e.iterationDuration;if(n===hu&&(n=0),Fu(t))return n;if($u(+t))return+t;const r=t,o=e?e.labels:null,i=!Wu(o),a=((e,t)=>{if(ju(t,"<")){const n="<"===t[1],r=e._tail,o=r?r._offset+r._delay:0;return n?o:o+r.duration}})(e,r),s=!Fu(a),u=Nu.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 zc(l,f,e[0])}return s?a:i?Fu(o[r])?n:o[r]:n};function Bl(e,t,n,r,o,i){const a=$u(e.duration)&&e.duration<=hu?n-hu:n;bc(t,a,1,1,1);const s=r?new Rl(r,e,t,a,!1,o,i):new Zc(e,t,a);return s.init(1),mc(t,s),hc(t,e=>{const n=e._offset+e._delay+e.duration;n>t.iterationDuration&&(t.iterationDuration=n)}),t.duration=function(e){return lc((e.iterationDuration+e._loopDelay)*e.iterationCount-e._loopDelay)||hu}(t),t}class Ul extends Zc{constructor(e={}){super(e,null,0),this.duration=0,this.labels={};const t=e.defaults,n=ku.defaults;this.defaults=t?dc(t,n):n,this.onRender=e.onRender||n.onRender;const r=Cc(e.playbackEase,n.playbackEase);this._ease=r?ll(r):null,this.iterationDuration=0}add(e,t,n){const r=Mu(t),o=Mu(e);if(r||o){if(this._hasChildren=!0,r){const r=t;if(Uu(n)){const t=n,o=Ac(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,Fu(s)||(n.id=s+"-"+u),Bl(n,this,t(e,u,c,this),e,u,c),u++})}else Bl(r,this,$l(this,n),e)}else Bl(e,this,$l(this,t));return this.init(1)}}sync(e,t){if(Fu(e)||e&&Fu(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 Fu(t)?this:(t.duration=hu,t.composition=uu.replace,this.add(e,t,n))}call(e,t){return Fu(e)||e&&!Uu(e)?this:this.add({duration:0,onComplete:()=>e(this)},t)}label(e,t){return Fu(e)||e&&!Bu(e)||(this.labels[e]=$l(this,t)),this}remove(e,t){return kl(e,this,t),this}stretch(e){const t=this.duration;if(t===fc(e))return this;const n=e/t,r=this.labels;hc(this,e=>{e.stretch(e.duration*n)});for(let e in r)r[e]*=n;return super.stretch(e)}refresh(){return hc(this,e=>{e.refresh&&e.refresh()}),this}revert(){return super.revert(),hc(this,e=>e.revert,!0),ml(this)}then(e){return super.then(e)}}const Fl=(e,t)=>e&&Uu(e)?e(t):e,Wl=new Map;class Hl{constructor(e){this.element=e,this.useWin=this.element===su.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 Zc({autoplay:!1,onBegin:()=>this.dataTimer.resume(),onUpdate:()=>{const e=this.backwardX||this.backwardY;hc(this,e=>e.handleScroll(),e)},onComplete:()=>this.dataTimer.pause()}).init(),this.dataTimer=new Zc({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=uc(t>0?Math.sqrt(a*a+s*s)/t:0,5)}}).init(),this.resizeTicker=new Zc({autoplay:!1,duration:250*ku.timeScale,onComplete:()=>{this.updateWindowBounds(),this.refreshScrollObservers(),this.handleScroll()}}).init(),this.wakeTicker=new Zc({autoplay:!1,duration:500*ku.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?au:this.element).addEventListener("scroll",this,!1)}updateScrollCoords(){const e=this.useWin,t=this.element;this.scrollX=uc(e?au.scrollX:t.scrollLeft,0),this.scrollY=uc(e?au.scrollY:t.scrollTop,0)}updateWindowBounds(){this.winWidth=au.innerWidth,this.winHeight=(()=>{const e=document.createElement("div");su.body.appendChild(e),e.style.height="100lvh";const t=e.offsetHeight;return su.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(){hc(this,e=>{e._debug&&e.removeDebug()}),this.updateBounds(),hc(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?au:this.element).removeEventListener("scroll",this),Wl.delete(this.element)}}const ql=(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}=Mc(s,Bc);let l=u;return"%"===c?l=u/100*n:c&&(l=gl(e,Bc,"px",!0).n),a&&r<0&&(l+=r),i&&o>0&&(l+=o),l},Yl=(e,t,n,r,o)=>{let i;if(Bu(t)){const a=Nu.exec(t);if(a){const s=a[0],u=s[0],c=t.split(s),l="min"===c[0],f="max"===c[0],p=ql(e,c[0],n,r,o),d=ql(e,c[1],n,r,o);if(l){const t=zc(ql(e,"min",n),d,u);i=t<p?p:t}else if(f){const t=zc(ql(e,"max",n),d,u);i=t>p?p:t}else i=zc(p,d,u)}else i=ql(e,t,n,r,o)}else i=t;return uc(i,0)},Gl=e=>{let t;const n=e.targets;for(let e=0,r=n.length;e<r;e++){const r=n[e];if(r[lu]){t=r;break}}return t};let Xl=0;const Vl=["#FF4B4B","#FF971B","#FFC730","#F9F640","#7AFF5A","#18FF74","#17E09B","#3CFFEC","#05DBE9","#33B3F1","#638CF9","#C563FE","#FF4FCF","#F93F8A"];class Zl{constructor(e={}){ku.scope&&ku.scope.revertibles.push(this);const t=Cc(e.sync,"play pause"),n=t?ll(t):null,r=t&&("linear"===t||t===Kc),o=t&&!(n===Kc&&!r),i=t&&($u(t)||!0===t||r),a=t&&Bu(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=Xl++,this.id=Fu(e.id)?this.index:e.id,this.container=(e=>{const t=e&&Ac(e)[0]||su.body;let n=Wl.get(t);return n||(n=new Hl(t),Wl.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]:_u,this.onSyncLeave=s&&!u&&s[1]?s[1]:_u,this.onSyncEnterForward=s&&u&&s[0]?s[0]:_u,this.onSyncLeaveForward=s&&u&&s[1]?s[1]:_u,this.onSyncEnterBackward=s&&u&&s[2]?s[2]:_u,this.onSyncLeaveBackward=s&&u&&s[3]?s[3]:_u,this.onEnter=e.onEnter||_u,this.onLeave=e.onLeave||_u,this.onEnterForward=e.onEnterForward||_u,this.onLeaveForward=e.onLeaveForward||_u,this.onEnterBackward=e.onEnterBackward||_u,this.onLeaveBackward=e.onLeaveBackward||_u,this.onUpdate=e.onUpdate||_u,this.onSyncComplete=e.onSyncComplete||_u,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=Cc(e.debug,!1),this._next=null,this._prev=null,mc(this.container,this),Il(()=>{if(!this.reverted){if(!this.target){const t=Ac(e.target)[0];this.target=t||su.body,this.refresh()}this._debug&&this.debug()}})}link(e){if(e&&(e.pause(),this.linked=e,!this._params.target)){let t;Fu(e.targets)?hc(e,e=>{e.targets&&!t&&(t=Gl(e))}):t=Gl(e),this.target=t||su.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:uc(ac(e,0,1),6)}refresh(){this.reverted=!1;const e=this._params;return this.repeat=Cc(Fl(e.repeat,this),!0),this.horizontal="x"===Cc(Fl(e.axis,this),"y"),this.enter=Cc(Fl(e.enter,this),"end start"),this.leave=Cc(Fl(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=su.createElement("div"),o=su.createElement("div"),i=su.createElement("div"),a=Vl[this.index%Vl.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,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,s=(r?0:this.offset)+e,d=n%2,h=s<y,g=s>(r?t?u:c:t?l:f)-y,b=(r?d&&!h:!d&&!h)||g,x=su.createElement("div"),_=su.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 ${a};\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?a:"rgba(0,0,0,.75)"};\n background-color: ${d?"rgba(0,0,0,.65)":a};\n border: 2px solid ${d?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 `,x.appendChild(_);let R=s-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"===Ll(e.element,"position")&&(this.debugStyles=Nl(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"===Ll(n.element,"position")&&Nl(n.element,{position:"relative "});for(;a&&a!==n.element&&a!==su.body;){const t="sticky"===Ll(a,"position")&&Nl(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,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(Bu(g)){const e=g.split(" ");b=e[0],v=e.length>1?e[1]:v}else if(Mu(g)){const e=g;Fu(e.container)||(b=e.container),Fu(e.target)||(v=e.target)}else $u(g)&&(b=g);if(Bu(m)){const e=m.split(" ");x=e[0],y=e.length>1?e[1]:y}else if(Mu(m)){const e=m;Fu(e.container)||(x=e.container),Fu(e.target)||(y=e.target)}else $u(m)&&(x=m);const _=Yl(t,v,p),w=Yl(t,y,p),E=_+f-d,T=w+f-h,S=Yl(t,b,d,E,T),R=Yl(t,x,d,E,T),O=_+f-S,A=w+f-R,I=A-O;this.offsets[0]=s,this.offsets[1]=u,this.offset=f,this.offsetStart=O,this.offsetEnd=A,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,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,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&&$u(r)){if(r<1){const e=t<m&&1===m?1e-4:t>m&&!m?-1e-4:0;m=uc(jl(t,m,cc(.01,.2,r),!1)+e,6)}}else n&&(m=n(m));h=m!==this.prevProgress,g=1===t,h&&!g&&r&&t&&a.wakeTicker.restart()}if(d){const e=i?a.scrollY:a.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 gc(e,this),e._head||e.revert(),this._debug&&this.removeDebug(),this.reverted=!0,this}}const Kl=(e={})=>new Zl(e);var Jl,Ql,ef,tf,nf,rf,of,af,sf,uf,cf;!function(e){e[e.XY=1]="XY",e[e.SIZE=2]="SIZE"}(nf||(nf={})),function(e){e[e.ALL=1]="ALL",e[e.SEPARATE=2]="SEPARATE"}(rf||(rf={})),function(e){e[e.X=1]="X",e[e.Y=2]="Y"}(of||(of={})),function(e){e[e.AUTOPLAY=1]="AUTOPLAY",e[e.SCROLL_SYNC=2]="SCROLL_SYNC",e[e.STATES=3]="STATES",e[e.NONE=4]="NONE"}(af||(af={})),function(e){e[e.FIXED=1]="FIXED",e[e.RELATIVE=2]="RELATIVE"}(sf||(sf={})),function(e){e[e.APPEAR=1]="APPEAR",e[e.MOUNT=2]="MOUNT"}(uf||(uf={})),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"}(cf||(cf={}));var lf,ff=((Jl={})[cf.PLAY]="play",Jl[cf.PAUSE]="pause",Jl[cf.REVERSE]="reverse",Jl[cf.IGNORE]="ignore",Jl[cf.DESTROY]="destroy",Jl[cf.INIT]="init",Jl[cf.RE_PLAY]="re_play",Jl);!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"}(lf||(lf={}));var pf,df,hf=((Ql={})[lf.FIXED]="",Ql[lf.PERCENTAGE]="%",Ql[lf.START]="top",Ql[lf.START_PLUS]="+=top",Ql[lf.END]="bottom",Ql[lf.END_PLUS]="+=bottom",Ql),gf=((ef={})[lf.FIXED]="",ef[lf.PERCENTAGE]="%",ef[lf.START]="top",ef[lf.START_PLUS]="+=left",ef[lf.END]="right",ef[lf.END_PLUS]="+=right",ef),mf=function(e,t,n){var r=e===of.Y?hf:gf;return t===lf.START||t===lf.END?"".concat(r[t]):"".concat(null!=n?n:"").concat(r[t])};!function(e){e[e.SMOOTH=0]="SMOOTH",e[e.INSTANT=1]="INSTANT"}(pf||(pf={})),function(e){e[e.NORMAL=1]="NORMAL",e[e.REVERSE=2]="REVERSE",e[e.ALTERNATE=3]="ALTERNATE"}(df||(df={}));var vf,yf,bf=((tf={})[df.NORMAL]="normal",tf[df.REVERSE]="reverse",tf[df.ALTERNATE]="alternate",tf),xf=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})},_f=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]=ff[r],e},{}),o=(0,U.useState)({}),i=(o[0],o[1]),a=(0,U.useMemo)(function(){var t=Object.entries(e).reduce(function(e,t){return e[t[0]]={complete:!1},e},{}),o={},s={},u=function(r,a){var u,c,l,f,p,d,h,g=r.name,m=o[g];if(!m){var v=bf[r.direction||df.NORMAL];s[g]={direction:v};var y=!1,b=r.config;if(b.type_===af.SCROLL_SYNC){var x=b.smoothness.type===pf.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=mf(b.direction,b.container.enter.type,b.container.enter.value),T=mf(b.direction,b.container.leave.type,b.container.leave.value),S=mf(b.direction,b.target.enter.type,b.target.enter.value),R=mf(b.direction,b.target.leave.type,b.target.leave.value);y=Kl({axis:b.direction===of.Y?"y":"x",container:_,target:w,sync:x,enter:"".concat(E," ").concat(S),leave:"".concat(T," ").concat(R)})}else b.type_===af.AUTOPLAY&&b.on.type_===uf.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=mf(b.on.direction,b.on.container.enter.type,b.on.container.enter.value),T=mf(b.on.direction,b.on.container.leave.type,b.on.container.leave.value),S=mf(b.on.direction,b.on.target.enter.type,b.on.target.enter.value),R=mf(b.on.direction,b.on.target.leave.type,b.on.target.leave.value),y=Kl({axis:b.on.direction===of.Y?"y":"x",container:_,target:w,sync:!0,enter:"".concat(E," ").concat(S),leave:"".concat(T," ").concat(R)})):b.type_===af.AUTOPLAY&&b.on.type_===uf.MOUNT&&(y=!0);var O=(h={alternate:"alternate"===v,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 Ul(h).init());null===(d=Object.values(e).find(function(e){return e.node===r}))||void 0===d||d.data.forEach(function(e){O.add(e.targets,e.params,0)}),m={node:r,instance:O,elements:a},o[g]=m,m.instance.onComplete=function(){s[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"!==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=t[0],i=t[1],s=e[o],u=s?xf(s.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)))&&a.destroy(i.node)})}}},[]);return a.player=r,{instances:a,scan:function(){Object.entries(t).forEach(function(t){var n=t[0],r=t[1],o=e[n];if(o&&r!==cf.IGNORE)if(r!==cf.DESTROY){var i=xf(o.data);i.length?(a.get(o.node,i),r===cf.PLAY?o&&a.play(o.node):r===cf.PAUSE?o&&a.pause(o.node):r===cf.RE_PLAY?o&&a.play(o.node,!0):r===cf.REVERSE&&o&&a.reverse(o.node)):a.destroy(o.node)}else a.destroy(o.node)})}}},wf=0,Ef=function(){return(0,U.useMemo)(function(){return"C".concat(++wf)},[])},Tf=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)},Sf=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},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);return n},Of=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},Af=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},If=function(e){return"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?e.toString():void 0},Lf=function(e){return{top:(null==e?void 0:e.top)?e.top.value+e.top.type:void 0,left:(null==e?void 0:e.left)?e.left.value+e.left.type:void 0,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"}(vf||(vf={})),function(e){e[e.PLUS=1]="PLUS",e[e.MINUS=2]="MINUS"}(yf||(yf={}));var Nf=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();e.config===vf.TOP?o=Number(t.scrollTop+(a.top-i.top)):e.config===vf.BOTTOM?o=Number(t.scrollTop+(a.bottom-i.top)):e.config===vf.LEFT?o=Number(t.scrollLeft+(a.left-i.left)):e.config===vf.RIGHT&&(o=Number(t.scrollLeft+(a.right-i.left))),e.operator===yf.PLUS?o+=n:e.operator===yf.MINUS&&(o-=n)}else e.config===vf.TOP?o=0:e.config===vf.BOTTOM?o=-t.scrollHeight:e.config===vf.LEFT?o=0:e.config===vf.RIGHT&&(o=-t.scrollWidth),e.operator===yf.PLUS?o+=n:e.operator===yf.MINUS&&(o-=n);e.config===vf.TOP||e.config===vf.BOTTOM?t.scrollTo({behavior:"instant",top:o}):t.scrollTo({behavior:"instant",left:o})}},Cf=function(e){return{text:e.currentTarget.value||"",element:e.currentTarget}},kf=function(e){return{text:e.currentTarget.value||"",element:e.currentTarget}},Pf=function(e){return{element:e.currentTarget}},jf=function(e){return{element:e.currentTarget}},Df=function(e){return{element:e.currentTarget}}})(),u})());
|