diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000000000000000000000000000000000000..31f8e4285ee196a185f7fa9dd30b75d73f04fccb
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,11 @@
+.DS_Store
+
+.git/
+.idea/
+.run/
+.github/
+
+venv/
+build/
+dist/
+*.egg-info/
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
new file mode 100644
index 0000000000000000000000000000000000000000..273a41abc7332add05bf79ad65171a9f7066151a
--- /dev/null
+++ b/.github/workflows/docker-publish.yml
@@ -0,0 +1,94 @@
+name: Push Docker Image
+
+on:
+ workflow_dispatch:
+
+ release:
+ types: [ published ]
+
+permissions:
+ packages: write
+ contents: read
+
+env:
+ IMAGE_NAME: pandora
+ PLATFORMS: linux/amd64,linux/arm64
+
+jobs:
+ get-tags:
+ runs-on: ubuntu-latest
+ outputs:
+ image_version: ${{ steps.get_image_version.outputs.image_version }}
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Get Image Version
+ id: get_image_version
+ run: |
+ # Strip git ref prefix from version
+ IMAGE_VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
+
+ # Strip "v" prefix from tag name
+ [[ "${{ github.ref }}" == "refs/tags/"* ]] && IMAGE_VERSION=$(echo $IMAGE_VERSION | sed -e 's/^v//')
+
+ echo VERSION=$IMAGE_VERSION
+ echo "image_version=${IMAGE_VERSION}" >> $GITHUB_OUTPUT
+
+ push-ghcr:
+ needs: get-tags
+ runs-on: ubuntu-latest
+ env:
+ REGISTRY: ghcr.io
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Docker Setup QEMU
+ uses: docker/setup-qemu-action@v2
+
+ - name: Set up Docker BuildX
+ uses: docker/setup-buildx-action@v2
+
+ - name: Docker Login
+ uses: docker/login-action@v2
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Build and Push
+ uses: docker/build-push-action@v4
+ with:
+ push: true
+ platforms: ${{ env.PLATFORMS }}
+ tags: |
+ ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ needs.get-tags.outputs.image_version }}
+ ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
+
+ push-docker-hub:
+ needs: get-tags
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Docker Setup QEMU
+ uses: docker/setup-qemu-action@v2
+
+ - name: Set up Docker BuildX
+ uses: docker/setup-buildx-action@v2
+
+ - name: Docker Login
+ uses: docker/login-action@v2
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ - name: Build and Push
+ uses: docker/build-push-action@v4
+ with:
+ push: true
+ platforms: ${{ env.PLATFORMS }}
+ tags: |
+ ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ needs.get-tags.outputs.image_version }}
+ ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:latest
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
new file mode 100644
index 0000000000000000000000000000000000000000..a422da646c51396bc0e71a34f297964df4d0a9b0
--- /dev/null
+++ b/.github/workflows/python-publish.yml
@@ -0,0 +1,36 @@
+name: Upload Python Package
+
+on:
+ workflow_dispatch:
+
+ release:
+ types: [ published ]
+
+permissions:
+ contents: read
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: 3.7
+
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install build
+
+ - name: Build package
+ run: python -m build
+
+ - name: Publish package
+ uses: pypa/gh-action-pypi-publish@release/v1
+ with:
+ user: __token__
+ password: ${{ secrets.PYPI_API_TOKEN }}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..f24b476958840f70779118fc8e259a2648d7c981
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,135 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+pip-wheel-metadata/
+share/python-wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+#Usually these files are written by a python script from a template
+#before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.nox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+*.py,cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+db.sqlite3-journal
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# IPython
+profile_default/
+ipython_config.py
+
+# pyenv
+.python-version
+
+# pipenv
+# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
+# However, in case of collaboration, if having platform-specific dependencies or dependencies
+# having no cross-platform support, pipenv may install dependencies that don't work, or not
+# install all needed dependencies.
+# Pipfile.lock
+
+# PEP 582; used by e.g. github.com/David-OConnor/pyflow
+__pypackages__/
+
+# Celery stuff
+celerybeat-schedule
+celerybeat.pid
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+ .spyderproject
+ .spyproject
+
+# Rope project settings
+ .ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+.dmypy.json
+dmypy.json
+
+# Pyre type checker
+.pyre/
+
+# JetBrains IDEs configuration
+.idea/
+
+# macOS
+.DS_Store
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..d81102933798e611d777c5b8e6e1d8a021f2d6ca
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,13 @@
+FROM python:3.9-slim@sha256:5f0192a4f58a6ce99f732fe05e3b3d00f12ae62e183886bca3ebe3d202686c7f
+
+MAINTAINER "Neo Peng
+
+ 一个不只是命令行的 "ChatGPT"
+
+
+潘多拉 Pandora
+
+ Wiki in English »
+
+
+ 查看Demo
+ ·
+ 报告Bug
+ ·
+ 提出新特性
+
+
+Pandora, talking with ChatGPT in command lines, and with more surprises.
+
+ Wiki in 中文 »
+
+
+ Demo View
+ ·
+ Bug Report
+ ·
+ Feature Request
+
9007199254740991)throw n("Maximum allowed index exceeded");return e}},52964:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},84295:function(e,n,r){var a=r(76702);e.exports=a("navigator","userAgent")||""},51920:function(e,n,r){var a,i,o=r(25822),s=r(84295),l=o.process,u=o.Deno,c=l&&l.versions||u&&u.version,p=c&&c.v8;p&&(i=(a=p.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!i&&s&&(!(a=s.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=s.match(/Chrome\/(\d+)/))&&(i=+a[1]),e.exports=i},44767:function(e,n,r){var a=r(50349);e.exports=function(e){return a[e+"Prototype"]}},9949:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},65079:function(e,n,r){"use strict";var a=r(25822),i=r(58917),o=r(8697),s=r(420),l=r(12689).f,u=r(17199),c=r(50349),p=r(89684),m=r(44489),d=r(66810),h=function(e){var n=function(r,a,o){if(this instanceof n){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,a)}return new e(r,a,o)}return i(e,this,arguments)};return n.prototype=e.prototype,n};e.exports=function(e,n){var r,i,f,g,b,k,y,v,E,T=e.target,_=e.global,x=e.stat,w=e.proto,A=_?a:x?a[T]:(a[T]||{}).prototype,j=_?c:c[T]||m(c,T,{})[T],S=j.prototype;for(g in n)i=!u(_?g:T+(x?".":"#")+g,e.forced)&&A&&d(A,g),k=j[g],i&&(y=e.dontCallGetSet?(E=l(A,g))&&E.value:A[g]),b=i&&y?y:n[g],(!i||typeof k!=typeof b)&&(v=e.bind&&i?p(b,a):e.wrap&&i?h(b):w&&s(b)?o(b):b,(e.sham||b&&b.sham||k&&k.sham)&&m(v,"sham",!0),m(j,g,v),w&&(d(c,f=T+"Prototype")||m(c,f,{}),m(c[f],g,b),e.real&&S&&!S[g]&&m(S,g,b)))}},95522:function(e){e.exports=function(e){try{return!!e()}catch(n){return!0}}},58917:function(e,n,r){var a=r(20770),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(a?s.bind(o):function(){return s.apply(o,arguments)})},89684:function(e,n,r){var a=r(8697),i=r(50869),o=r(20770),s=a(a.bind);e.exports=function(e,n){return i(e),void 0===n?e:o?s(e,n):function(){return e.apply(n,arguments)}}},20770:function(e,n,r){var a=r(95522);e.exports=!a(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},21296:function(e,n,r){var a=r(20770),i=Function.prototype.call;e.exports=a?i.bind(i):function(){return i.apply(i,arguments)}},26901:function(e,n,r){var a=r(91370),i=r(66810),o=Function.prototype,s=a&&Object.getOwnPropertyDescriptor,l=i(o,"name"),u=l&&(!a||a&&s(o,"name").configurable);e.exports={EXISTS:l,PROPER:l&&"something"===(function(){}).name,CONFIGURABLE:u}},8697:function(e,n,r){var a=r(20770),i=Function.prototype,o=i.bind,s=i.call,l=a&&o.bind(s,s);e.exports=a?function(e){return e&&l(e)}:function(e){return e&&function(){return s.apply(e,arguments)}}},76702:function(e,n,r){var a=r(50349),i=r(25822),o=r(420),s=function(e){return o(e)?e:void 0};e.exports=function(e,n){return arguments.length<2?s(a[e])||s(i[e]):a[e]&&a[e][n]||i[e]&&i[e][n]}},575:function(e,n,r){var a=r(50377),i=r(87537),o=r(60047),s=r(70964),l=r(83355)("iterator");e.exports=function(e){if(!o(e))return i(e,l)||i(e,"@@iterator")||s[a(e)]}},72697:function(e,n,r){var a=r(21296),i=r(50869),o=r(99933),s=r(74647),l=r(575),u=TypeError;e.exports=function(e,n){var r=arguments.length<2?l(e):n;if(i(r))return o(a(r,e));throw u(s(e)+" is not iterable")}},87537:function(e,n,r){var a=r(50869),i=r(60047);e.exports=function(e,n){var r=e[n];return i(r)?void 0:a(r)}},25822:function(e,n,r){var a=function(e){return e&&e.Math==Math&&e};e.exports=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},66810:function(e,n,r){var a=r(8697),i=r(2236),o=a({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,n){return o(i(e),n)}},38573:function(e){e.exports={}},99561:function(e,n,r){var a=r(76702);e.exports=a("document","documentElement")},7252:function(e,n,r){var a=r(91370),i=r(95522),o=r(6115);e.exports=!a&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},31852:function(e,n,r){var a=r(8697),i=r(95522),o=r(5376),s=Object,l=a("".split);e.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?l(e,""):s(e)}:s},87929:function(e,n,r){var a=r(8697),i=r(420),o=r(13404),s=a(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},98199:function(e,n,r){var a,i,o,s=r(77014),l=r(25822),u=r(8697),c=r(59722),p=r(44489),m=r(66810),d=r(13404),h=r(2514),f=r(38573),g="Object already initialized",b=l.TypeError,k=l.WeakMap,y=function(e){return o(e)?i(e):a(e,{})},v=function(e){return function(n){var r;if(!c(n)||(r=i(n)).type!==e)throw b("Incompatible receiver, "+e+" required");return r}};if(s||d.state){var E=d.state||(d.state=new k),T=u(E.get),_=u(E.has),x=u(E.set);a=function(e,n){if(_(E,e))throw b(g);return n.facade=e,x(E,e,n),n},i=function(e){return T(E,e)||{}},o=function(e){return _(E,e)}}else{var w=h("state");f[w]=!0,a=function(e,n){if(m(e,w))throw b(g);return n.facade=e,p(e,w,n),n},i=function(e){return m(e,w)?e[w]:{}},o=function(e){return m(e,w)}}e.exports={set:a,get:i,has:o,enforce:y,getterFor:v}},13444:function(e,n,r){var a=r(83355),i=r(70964),o=a("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},70837:function(e,n,r){var a=r(5376);e.exports=Array.isArray||function(e){return"Array"==a(e)}},420:function(e,n,r){var a=r(40),i=a.all;e.exports=a.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},8615:function(e,n,r){var a=r(8697),i=r(95522),o=r(420),s=r(50377),l=r(76702),u=r(87929),c=function(){},p=[],m=l("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=a(d.exec),f=!d.exec(c),g=function(e){if(!o(e))return!1;try{return m(c,p,e),!0}catch(n){return!1}},b=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,u(e))}catch(n){return!0}};b.sham=!0,e.exports=!m||i(function(){var e;return g(g.call)||!g(Object)||!g(function(){e=!0})||e})?b:g},17199:function(e,n,r){var a=r(95522),i=r(420),o=/#|\.prototype\./,s=function(e,n){var r=u[l(e)];return r==p||r!=c&&(i(n)?a(n):!!n)},l=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",p=s.POLYFILL="P";e.exports=s},60047:function(e){e.exports=function(e){return null==e}},59722:function(e,n,r){var a=r(420),i=r(40),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:a(e)||e===o}:function(e){return"object"==typeof e?null!==e:a(e)}},1847:function(e){e.exports=!0},48826:function(e,n,r){var a=r(76702),i=r(420),o=r(44948),s=r(29170),l=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var n=a("Symbol");return i(n)&&o(n.prototype,l(e))}},80956:function(e,n,r){var a=r(21296),i=r(99933),o=r(87537);e.exports=function(e,n,r){var s,l;i(e);try{if(!(s=o(e,"return"))){if("throw"===n)throw r;return r}s=a(s,e)}catch(u){l=!0,s=u}if("throw"===n)throw r;if(l)throw s;return i(s),r}},12770:function(e,n,r){"use strict";var a=r(37895).IteratorPrototype,i=r(53796),o=r(79341),s=r(2515),l=r(70964),u=function(){return this};e.exports=function(e,n,r,c){var p=n+" Iterator";return e.prototype=i(a,{next:o(+!c,r)}),s(e,p,!1,!0),l[p]=u,e}},89840:function(e,n,r){"use strict";var a=r(65079),i=r(21296),o=r(1847),s=r(26901),l=r(420),u=r(12770),c=r(60214),p=r(88992),m=r(2515),d=r(44489),h=r(59282),f=r(83355),g=r(70964),b=r(37895),k=s.PROPER,y=s.CONFIGURABLE,v=b.IteratorPrototype,E=b.BUGGY_SAFARI_ITERATORS,T=f("iterator"),_="keys",x="values",w="entries",A=function(){return this};e.exports=function(e,n,r,s,f,b,j){u(r,n,s);var S,C,N,O=function(e){if(e===f&&P)return P;if(!E&&e in M)return M[e];switch(e){case _:case x:case w:return function(){return new r(this,e)}}return function(){return new r(this)}},I=n+" Iterator",R=!1,M=e.prototype,L=M[T]||M["@@iterator"]||f&&M[f],P=!E&&L||O(f),D="Array"==n&&M.entries||L;if(D&&(S=c(D.call(new e)))!==Object.prototype&&S.next&&(o||c(S)===v||(p?p(S,v):l(S[T])||h(S,T,A)),m(S,I,!0,!0),o&&(g[I]=A)),k&&f==x&&L&&L.name!==x&&(!o&&y?d(M,"name",x):(R=!0,P=function(){return i(L,this)})),f){if(C={values:O(x),keys:b?P:O(_),entries:O(w)},j)for(N in C)!E&&!R&&N in M||h(M,N,C[N]);else a({target:n,proto:!0,forced:E||R},C)}return(!o||j)&&M[T]!==P&&h(M,T,P,{name:f}),g[n]=P,C}},37895:function(e,n,r){"use strict";var a,i,o,s=r(95522),l=r(420),u=r(59722),c=r(53796),p=r(60214),m=r(59282),d=r(83355),h=r(1847),f=d("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(i=p(p(o)))!==Object.prototype&&(a=i):g=!0),!u(a)||s(function(){var e={};return a[f].call(e)!==e})?a={}:h&&(a=c(a)),l(a[f])||m(a,f,function(){return this}),e.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:g}},70964:function(e){e.exports={}},38830:function(e,n,r){var a=r(19153);e.exports=function(e){return a(e.length)}},20754:function(e){e.exports=Math.sign||function(e){var n=+e;return 0==n||n!=n?n:n<0?-1:1}},42661:function(e){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var a=+e;return(a>0?r:n)(a)}},53796:function(e,n,r){var a,i=r(99933),o=r(44512),s=r(9949),l=r(38573),u=r(99561),c=r(6115),p=r(2514),m="prototype",d="script",h=p("IE_PROTO"),f=function(){},g=function(e){return"<"+d+">"+e+""+d+">"},b=function(e){e.write(g("")),e.close();var n=e.parentWindow.Object;return e=null,n},k=function(){var e,n=c("iframe");return n.style.display="none",u.appendChild(n),n.src=String("java"+d+":"),(e=n.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},y=function(){try{a=new ActiveXObject("htmlfile")}catch(e){}y="undefined"!=typeof document?document.domain&&a?b(a):k():b(a);for(var n=s.length;n--;)delete y[m][s[n]];return y()};l[h]=!0,e.exports=Object.create||function(e,n){var r;return null!==e?(f[m]=i(e),r=new f,f[m]=null,r[h]=e):r=y(),void 0===n?r:o.f(r,n)}},44512:function(e,n,r){var a=r(91370),i=r(14390),o=r(59186),s=r(99933),l=r(7322),u=r(3637);n.f=a&&!i?Object.defineProperties:function(e,n){s(e);for(var r,a=l(n),i=u(n),c=i.length,p=0;c>p;)o.f(e,r=i[p++],a[r]);return e}},59186:function(e,n,r){var a=r(91370),i=r(7252),o=r(14390),s=r(99933),l=r(3061),u=TypeError,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,m="enumerable",d="configurable",h="writable";n.f=a?o?function(e,n,r){if(s(e),n=l(n),s(r),"function"==typeof e&&"prototype"===n&&"value"in r&&h in r&&!r[h]){var a=p(e,n);a&&a[h]&&(e[n]=r.value,r={configurable:d in r?r[d]:a[d],enumerable:m in r?r[m]:a[m],writable:!1})}return c(e,n,r)}:c:function(e,n,r){if(s(e),n=l(n),s(r),i)try{return c(e,n,r)}catch(a){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(e[n]=r.value),e}},12689:function(e,n,r){var a=r(91370),i=r(21296),o=r(51492),s=r(79341),l=r(7322),u=r(3061),c=r(66810),p=r(7252),m=Object.getOwnPropertyDescriptor;n.f=a?m:function(e,n){if(e=l(e),n=u(n),p)try{return m(e,n)}catch(r){}if(c(e,n))return s(!i(o.f,e,n),e[n])}},47768:function(e,n,r){var a=r(5376),i=r(7322),o=r(39906).f,s=r(28234),l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(n){return s(l)}};e.exports.f=function(e){return l&&"Window"==a(e)?u(e):o(i(e))}},39906:function(e,n,r){var a=r(47648),i=r(9949).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return a(e,i)}},56241:function(e,n){n.f=Object.getOwnPropertySymbols},60214:function(e,n,r){var a=r(66810),i=r(420),o=r(2236),s=r(2514),l=r(57381),u=s("IE_PROTO"),c=Object,p=c.prototype;e.exports=l?c.getPrototypeOf:function(e){var n=o(e);if(a(n,u))return n[u];var r=n.constructor;return i(r)&&n instanceof r?r.prototype:n instanceof c?p:null}},44948:function(e,n,r){var a=r(8697);e.exports=a({}.isPrototypeOf)},47648:function(e,n,r){var a=r(8697),i=r(66810),o=r(7322),s=r(62335).indexOf,l=r(38573),u=a([].push);e.exports=function(e,n){var r,a=o(e),c=0,p=[];for(r in a)!i(l,r)&&i(a,r)&&u(p,r);for(;n.length>c;)i(a,r=n[c++])&&(~s(p,r)||u(p,r));return p}},3637:function(e,n,r){var a=r(47648),i=r(9949);e.exports=Object.keys||function(e){return a(e,i)}},51492:function(e,n){"use strict";var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!r.call({1:2},1);n.f=i?function(e){var n=a(this,e);return!!n&&n.enumerable}:r},88992:function(e,n,r){var a=r(8697),i=r(99933),o=r(37681);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,n=!1,r={};try{(e=a(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),n=r instanceof Array}catch(s){}return function(r,a){return i(r),o(a),n?e(r,a):r.__proto__=a,r}}():void 0)},33611:function(e,n,r){"use strict";var a=r(49228),i=r(50377);e.exports=a?({}).toString:function(){return"[object "+i(this)+"]"}},93578:function(e,n,r){var a=r(21296),i=r(420),o=r(59722),s=TypeError;e.exports=function(e,n){var r,l;if("string"===n&&i(r=e.toString)&&!o(l=a(r,e))||i(r=e.valueOf)&&!o(l=a(r,e))||"string"!==n&&i(r=e.toString)&&!o(l=a(r,e)))return l;throw s("Can't convert object to primitive value")}},84618:function(e,n,r){var a=r(76702),i=r(8697),o=r(39906),s=r(56241),l=r(99933),u=i([].concat);e.exports=a("Reflect","ownKeys")||function(e){var n=o.f(l(e)),r=s.f;return r?u(n,r(e)):n}},50349:function(e){e.exports={}},41653:function(e,n,r){var a=r(60047),i=TypeError;e.exports=function(e){if(a(e))throw i("Can't call method on "+e);return e}},17839:function(e,n,r){var a=r(25822),i=r(58917),o=r(420),s=r(84295),l=r(7942),u=r(62258),c=/MSIE .\./.test(s),p=a.Function,m=function(e){return c?function(n,r){var a=u(arguments.length,1)>2,s=o(n)?n:p(n),c=a?l(arguments,2):void 0;return e(a?function(){i(s,this,c)}:s,r)}:e};e.exports={setTimeout:m(a.setTimeout),setInterval:m(a.setInterval)}},2515:function(e,n,r){var a=r(49228),i=r(59186).f,o=r(44489),s=r(66810),l=r(33611),u=r(83355)("toStringTag");e.exports=function(e,n,r,c){if(e){var p=r?e:e.prototype;s(p,u)||i(p,u,{configurable:!0,value:n}),c&&!a&&o(p,"toString",l)}}},2514:function(e,n,r){var a=r(51019),i=r(33852),o=a("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},13404:function(e,n,r){var a=r(25822),i=r(81673),o="__core-js_shared__",s=a[o]||i(o,{});e.exports=s},51019:function(e,n,r){var a=r(1847),i=r(13404);(e.exports=function(e,n){return i[e]||(i[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.25.2",mode:a?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE",source:"https://github.com/zloirock/core-js"})},46437:function(e,n,r){var a=r(8697),i=r(50485),o=r(39752),s=r(41653),l=a("".charAt),u=a("".charCodeAt),c=a("".slice),p=function(e){return function(n,r){var a,p,m=o(s(n)),d=i(r),h=m.length;return d<0||d>=h?e?"":void 0:(a=u(m,d))<55296||a>56319||d+1===h||(p=u(m,d+1))<56320||p>57343?e?l(m,d):a:e?c(m,d,d+2):(a-55296<<10)+(p-56320)+65536}};e.exports={codeAt:p(!1),charAt:p(!0)}},38726:function(e,n,r){var a=r(51920),i=r(95522);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol();return!String(e)||!(Object(e) instanceof Symbol)||!Symbol.sham&&a&&a<41})},52726:function(e,n,r){var a=r(21296),i=r(76702),o=r(83355),s=r(59282);e.exports=function(){var e=i("Symbol"),n=e&&e.prototype,r=n&&n.valueOf,l=o("toPrimitive");n&&!n[l]&&s(n,l,function(e){return a(r,this)},{arity:1})}},95542:function(e,n,r){var a=r(38726);e.exports=a&&!!Symbol.for&&!!Symbol.keyFor},10205:function(e,n,r){var a=r(50485),i=Math.max,o=Math.min;e.exports=function(e,n){var r=a(e);return r<0?i(r+n,0):o(r,n)}},7322:function(e,n,r){var a=r(31852),i=r(41653);e.exports=function(e){return a(i(e))}},50485:function(e,n,r){var a=r(42661);e.exports=function(e){var n=+e;return n!=n||0===n?0:a(n)}},19153:function(e,n,r){var a=r(50485),i=Math.min;e.exports=function(e){return e>0?i(a(e),9007199254740991):0}},2236:function(e,n,r){var a=r(41653),i=Object;e.exports=function(e){return i(a(e))}},37508:function(e,n,r){var a=r(21296),i=r(59722),o=r(48826),s=r(87537),l=r(93578),u=r(83355),c=TypeError,p=u("toPrimitive");e.exports=function(e,n){if(!i(e)||o(e))return e;var r,u=s(e,p);if(u){if(void 0===n&&(n="default"),r=a(u,e,n),!i(r)||o(r))return r;throw c("Can't convert object to primitive value")}return void 0===n&&(n="number"),l(e,n)}},3061:function(e,n,r){var a=r(37508),i=r(48826);e.exports=function(e){var n=a(e,"string");return i(n)?n:n+""}},49228:function(e,n,r){var a=r(83355)("toStringTag"),i={};i[a]="z",e.exports="[object z]"===String(i)},39752:function(e,n,r){var a=r(50377),i=String;e.exports=function(e){if("Symbol"===a(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},74647:function(e){var n=String;e.exports=function(e){try{return n(e)}catch(r){return"Object"}}},33852:function(e,n,r){var a=r(8697),i=0,o=Math.random(),s=a(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},29170:function(e,n,r){var a=r(38726);e.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},14390:function(e,n,r){var a=r(91370),i=r(95522);e.exports=a&&i(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},62258:function(e){var n=TypeError;e.exports=function(e,r){if(e=128&&c("not-basic"),n.push(e.charCodeAt(u));for(let p=s>0?s+1:0;p{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,n,r,a){es(e,n,r,a)}}class rp extends ru{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(P.has(n)){let r=(0,nX.A)(n);return r&&r.default||0}return n=el.has(n)?n:eo(n),e.getAttribute(n)}measureInstanceViewportBox(){return tR()}scrapeMotionValuesFromProps(e,n){return ep(e,n)}build(e,n,r,a){en(e,n,r,this.isSVGTag,a.transformTemplate)}renderInstance(e,n,r,a){eu(e,n,r,a)}mount(e){this.isSVGTag=ea(e.tagName),super.mount(e)}}let rm=(e,n)=>R(e)?new rp(n,{enableHardwareAcceleration:!1}):new rc(n,{enableHardwareAcceleration:!0}),rd={animation:{Feature:class extends eO{constructor(e){super(e),e.animationState||(e.animationState=function(e){var n;let r=n=>Promise.all(n.map(({animation:n,options:r})=>(function(e,n,r={}){e.notify("AnimationStart",n);let a;if(Array.isArray(n)){let i=n.map(n=>e6(e,n,r));a=Promise.all(i)}else if("string"==typeof n)a=e6(e,n,r);else{let o="function"==typeof n?e1(e,n,r.custom):n;a=e7(e,o,r)}return a.then(()=>e.notify("AnimationComplete",n))})(e,n,r))),a={[s.Animate]:ti(!0),[s.InView]:ti(),[s.Hover]:ti(),[s.Tap]:ti(),[s.Drag]:ti(),[s.Focus]:ti(),[s.Exit]:ti()},i=!0,o=(n,r)=>{let a=e1(e,r);if(a){let{transition:i,transitionEnd:o,...s}=a;n={...n,...s,...o}}return n};function l(n,s){let l=e.getProps(),u=e.getVariantContext(!0)||{},c=[],p=new Set,m={},d=1/0;for(let h=0;hd&&v,w=Array.isArray(y)?y:[y],A=w.reduce(o,{});!1===E&&(A={});let{prevResolvedValues:j={}}=g,S={...j,...A},C=e=>{x=!0,p.delete(e),g.needsAnimating[e]=!0};for(let N in S){let O=A[N],I=j[N];m.hasOwnProperty(N)||(O!==I?ed(O)&&ed(I)?!eH(O,I)||_?C(N):g.protectedKeys[N]=!0:void 0!==O?C(N):p.add(N):void 0!==O&&p.has(N)?C(N):g.protectedKeys[N]=!0)}g.prevProp=y,g.prevResolvedValues=A,g.isActive&&(m={...m,...A}),i&&e.blockInitialAnimation&&(x=!1),x&&!T&&c.push(...w.map(e=>({animation:e,options:{type:f,...n}})))}if(p.size){let R={};p.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(R[n]=r)}),c.push({animation:R})}let M=Boolean(c.length);return i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(M=!1),i=!1,M?r(c):Promise.resolve()}return{animateChanges:l,setActive:function(n,r,i){if(a[n].isActive===r)return Promise.resolve();e.variantChildren&&e.variantChildren.forEach(e=>{e.animationState&&e.animationState.setActive(n,r)}),a[n].isActive=r;let o=l(i,n);for(let s in a)a[s].protectedKeys={};return o},setAnimateFunction:function(n){r=n(e)},getState:()=>a}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),k(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends eO{constructor(){super(...arguments),this.id=to++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===a)return;let i=this.node.animationState.setActive(s.Exit,!e,{custom:null!=r?r:this.node.getProps().custom});n&&!e&&i.then(()=>n(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends eO{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;let{onViewportEnter:e}=this.node.getProps();e&&e(null),this.node.animationState&&this.node.animationState.setActive(s.InView,!0)})}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i,fallback:o=!0}=e;if("undefined"==typeof IntersectionObserver){o&&this.viewportFallback();return}let l={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof a?a:eB[a]},u=e=>{let{isIntersecting:n}=e;if(this.isInView===n||(this.isInView=n,i&&!n&&this.hasEnteredView))return;n&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(s.InView,n);let{onViewportEnter:r,onViewportLeave:a}=this.node.getProps(),o=n?r:a;o&&o(e)};return function(e,n,r){let a=function({root:e,...n}){let r=e||document;eD.has(r)||eD.set(r,{});let a=eD.get(r),i=JSON.stringify(n);return a[i]||(a[i]=new IntersectionObserver(eF,{root:e,...n})),a[i]}(n);return eP.set(e,r),a.observe(e),()=>{eP.delete(e),a.unobserve(e)}}(this.node.current,l,u)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:n}=this.node,r=["amount","margin","root"].some(function({viewport:e={}},{viewport:n={}}={}){return r=>e[r]!==n[r]}(e,n));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends eO{constructor(){super(...arguments),this.removeStartListeners=eM.Z,this.removeEndListeners=eM.Z,this.removeAccessibleListeners=eM.Z,this.startPointerPress=(e,n)=>{if(this.removeEndListeners(),this.isPressing)return;let r=this.node.getProps(),a=(e,n)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:a}=this.node.getProps();eR(this.node.current,e.target)?r&&r(e,n):a&&a(e,n)},i=ex(window,"pointerup",a,{passive:!(r.onTap||r.onPointerUp)}),o=ex(window,"pointercancel",(e,n)=>this.cancelPress(e,n),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=(0,ew.z)(i,o),this.startPress(e,n)},this.startAccessiblePress=()=>{let e=e=>{if("Enter"!==e.key||this.isPressing)return;let n=e=>{"Enter"===e.key&&this.checkPressEnd()&&eL("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=ev(this.node.current,"keyup",n),eL("down",(e,n)=>{this.startPress(e,n)})},n=ev(this.node.current,"keydown",e),r=()=>{this.isPressing&&eL("cancel",(e,n)=>this.cancelPress(e,n))},a=ev(this.node.current,"blur",r);this.removeAccessibleListeners=(0,ew.z)(n,a)}}startPress(e,n){this.isPressing=!0;let{onTapStart:r,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive(s.Tap,!0),r&&r(e,n)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive(s.Tap,!1),!eN()}cancelPress(e,n){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&r(e,n)}mount(){let e=this.node.getProps(),n=ex(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=ev(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,ew.z)(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends eO{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(n){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(s.Focus,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(s.Focus,!1),this.isActive=!1)}mount(){this.unmount=(0,ew.z)(ev(this.node.current,"focus",()=>this.onFocus()),ev(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends eO{mount(){this.unmount=(0,ew.z)(eI(this.node,!0),eI(this.node,!1))}unmount(){}}},pan:{Feature:class extends eO{constructor(){super(...arguments),this.removePointerDownListener=eM.Z}onPointerDown(e){this.session=new tp(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:e,onStart:n,onMove:r,onEnd:(e,n)=>{delete this.session,a&&a(e,n)}}}mount(){this.removePointerDownListener=ex(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends eO{constructor(e){super(e),this.removeGroupControls=eM.Z,this.removeListeners=eM.Z,this.controls=new tX(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eM.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:nZ,MeasureLayout:t6},layout:{ProjectionNode:nZ,MeasureLayout:t6}},rh=function(e){function n(n,r={}){return function({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:a,Component:i}){e&&function(e){for(let n in e)x[n]={...x[n],...e[n]}}(e);let o=(0,u.forwardRef)(function(o,s){var l,k,y;let E,_={...(0,u.useContext)(c._),...o,layoutId:function({layoutId:e}){let n=(0,u.useContext)(C).id;return n&&void 0!==e?n+"-"+e:e}(o)},{isStatic:x}=_,w=function(e){let{initial:n,animate:r}=function(e,n){if(v(e)){let{initial:r,animate:a}=e;return{initial:!1===r||b(r)?r:void 0,animate:b(a)?a:void 0}}return!1!==e.inherit?n:{}}(e,(0,u.useContext)(p));return(0,u.useMemo)(()=>({initial:n,animate:r}),[T(n),T(r)])}(o),O=x?void 0:(0,A.h)(()=>{if(j.hasEverUpdated)return S++}),I=a(o,x);if(!x&&d){w.visualElement=function(e,n,r,a){let i=(0,u.useContext)(p).visualElement,o=(0,u.useContext)(f),s=(0,u.useContext)(m),l=(0,u.useContext)(c._).reducedMotion,d=(0,u.useRef)();a=a||o.renderer,!d.current&&a&&(d.current=a(e,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));let g=d.current;(0,u.useInsertionEffect)(()=>{g&&g.update(r,s)}),h(()=>{g&&g.render()}),(0,u.useEffect)(()=>{g&&g.updateFeatures()});let b=window.HandoffAppearAnimations?h:u.useEffect;return b(()=>{g&&g.animationState&&g.animationState.animateChanges()}),g}(i,I,_,n);let R=(0,u.useContext)(N),M=(0,u.useContext)(f).strict;w.visualElement&&(E=w.visualElement.loadFeatures(_,M,e,O,R))}return u.createElement(p.Provider,{value:w},E&&w.visualElement?u.createElement(E,{visualElement:w.visualElement,..._}):null,r(i,o,O,(k=w.visualElement,y=s,(0,u.useCallback)(e=>{e&&I.mount&&I.mount(e),k&&(e?k.mount(e):k.unmount()),y&&("function"==typeof y?y(e):g(y)&&(y.current=e))},[k])),I,x,w.visualElement))});return o[O]=i,o}(e(n,r))}if("undefined"==typeof Proxy)return n;let r=new Map;return new Proxy(n,{get:(e,a)=>(r.has(a)||r.set(a,n(a)),r.get(a))})}((e,n)=>(function(e,{forwardMotionProps:n=!1},r,a){let i=R(e)?ek:ey;return{...i,preloadedFeatures:r,useRender:function(e=!1){let n=(n,r,a,i,{latestValues:o},s)=>{let l=R(n)?ei:q,c=l(r,o,s,n),p=function(e,n,r){let a={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(Q(i)||!0===r&&Y(i)||!n&&!Y(i)||e.draggable&&i.startsWith("onDrag"))&&(a[i]=e[i]);return a}(r,"string"==typeof n,e),m={...p,...c,ref:i},{children:d}=r,h=(0,u.useMemo)(()=>(0,z.i)(d)?d.get():d,[d]);return a&&(m["data-projection-id"]=a),(0,u.createElement)(n,{...m,children:h})};return n}(n),createVisualElement:a,Component:e}})(e,n,rd,rm))},80287:function(e,n,r){"use strict";r.d(n,{T:function(){return s}});var a=r(47197),i=r(9397),o=r(45385);function s(e,n){let r=(0,o.A)(e);return r!==i.h&&(r=a.P),r.getAnimatableNone?r.getAnimatableNone(n):void 0}},45385:function(e,n,r){"use strict";r.d(n,{A:function(){return l}});var a=r(48045),i=r(9397),o=r(57825);let s={...o.j,color:a.$,backgroundColor:a.$,outlineColor:a.$,fill:a.$,stroke:a.$,borderColor:a.$,borderTopColor:a.$,borderRightColor:a.$,borderBottomColor:a.$,borderLeftColor:a.$,filter:i.h,WebkitFilter:i.h},l=e=>s[e]},57825:function(e,n,r){"use strict";r.d(n,{j:function(){return s}});var a=r(53348),i=r(21771);let o={...a.Rx,transform:Math.round},s={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:a.bA,scaleX:a.bA,scaleY:a.bA,scaleZ:a.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:a.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:o,fillOpacity:a.Fq,strokeOpacity:a.Fq,numOctaves:o}},50933:function(e,n,r){"use strict";function a(e,n){-1===e.indexOf(n)&&e.push(n)}function i(e,n){let r=e.indexOf(n);r>-1&&e.splice(r,1)}r.d(n,{cl:function(){return i},y4:function(){return a}})},63768:function(e,n,r){"use strict";r.d(n,{u:function(){return a}});let a=(e,n,r)=>Math.min(Math.max(r,e),n)},91843:function(e,n,r){"use strict";r.d(n,{g:function(){return i}});var a=r(32996);function i(e,n){let r=performance.now(),i=({timestamp:o})=>{let s=o-r;s>=n&&(a.qY.read(i),e(s-n))};return a.Z_.read(i,!0),()=>a.qY.read(i)}},25270:function(e,n,r){"use strict";r.d(n,{C:function(){return a}});let a=(e,n,r)=>-r*e+r*n+e},14632:function(e,n,r){"use strict";r.d(n,{Z:function(){return a}});let a=e=>e},80275:function(e,n,r){"use strict";r.d(n,{z:function(){return i}});let a=(e,n)=>r=>n(e(r)),i=(...e)=>e.reduce(a)},6131:function(e,n,r){"use strict";r.d(n,{Y:function(){return a}});let a=(e,n,r)=>{let a=n-e;return 0===a?1:(r-e)/a}},9994:function(e,n,r){"use strict";r.d(n,{L:function(){return i}});var a=r(50933);class i{constructor(){this.subscriptions=[]}add(e){return(0,a.y4)(this.subscriptions,e),()=>(0,a.cl)(this.subscriptions,e)}notify(e,n,r){let a=this.subscriptions.length;if(a){if(1===a)this.subscriptions[0](e,n,r);else for(let i=0;i1e3*e},36963:function(e,n,r){"use strict";r.d(n,{h:function(){return i}});var a=r(70079);function i(e){let n=(0,a.useRef)(null);return null===n.current&&(n.current=e()),n.current}},75270:function(e,n,r){"use strict";function a(e,n){return n?e*(1e3/n):0}r.d(n,{R:function(){return a}})},37700:function(e,n,r){"use strict";r.d(n,{B:function(){return c}});var a=r(97935),i=r(32996),o=r(9994),s=r(75270);let l=e=>!isNaN(parseFloat(e));class u{constructor(e,n={}){this.version="9.0.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,n=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:o}=a.w;this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o,i.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>i.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=l(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new o.L);let r=this.events[e].add(n);return"change"===e?()=>{r(),i.Z_.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){n&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,n)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,s.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,n){return new u(e,n)}},12047:function(e,n,r){"use strict";r.d(n,{$:function(){return o}});var a=r(19403),i=r(43574);let o={test:(0,i.i)("#"),parse:function(e){let n="",r="",a="",i="";return e.length>5?(n=e.substring(1,3),r=e.substring(3,5),a=e.substring(5,7),i=e.substring(7,9)):(n=e.substring(1,2),r=e.substring(2,3),a=e.substring(3,4),i=e.substring(4,5),n+=n,r+=r,a+=a,i+=i),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(a,16),alpha:i?parseInt(i,16)/255:1}},transform:a.m.transform}},79197:function(e,n,r){"use strict";r.d(n,{J:function(){return l}});var a=r(53348),i=r(21771),o=r(35921),s=r(43574);let l={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+i.aQ.transform((0,o.Nw)(n))+", "+i.aQ.transform((0,o.Nw)(r))+", "+(0,o.Nw)(a.Fq.transform(s))+")"}},48045:function(e,n,r){"use strict";r.d(n,{$:function(){return l}});var a=r(35921),i=r(12047),o=r(79197),s=r(19403);let l={test:e=>s.m.test(e)||i.$.test(e)||o.J.test(e),parse:e=>s.m.test(e)?s.m.parse(e):o.J.test(e)?o.J.parse(e):i.$.parse(e),transform:e=>(0,a.HD)(e)?e:e.hasOwnProperty("red")?s.m.transform(e):o.J.transform(e)}},19403:function(e,n,r){"use strict";r.d(n,{m:function(){return c}});var a=r(63768),i=r(53348),o=r(35921),s=r(43574);let l=e=>(0,a.u)(0,255,e),u={...i.Rx,transform:e=>Math.round(l(e))},c={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:e,green:n,blue:r,alpha:a=1})=>"rgba("+u.transform(e)+", "+u.transform(n)+", "+u.transform(r)+", "+(0,o.Nw)(i.Fq.transform(a))+")"}},43574:function(e,n,r){"use strict";r.d(n,{d:function(){return o},i:function(){return i}});var a=r(35921);let i=(e,n)=>r=>Boolean((0,a.HD)(r)&&a.mj.test(r)&&r.startsWith(e)||n&&Object.prototype.hasOwnProperty.call(r,n)),o=(e,n,r)=>i=>{if(!(0,a.HD)(i))return i;let[o,s,l,u]=i.match(a.KP);return{[e]:parseFloat(o),[n]:parseFloat(s),[r]:parseFloat(l),alpha:void 0!==u?parseFloat(u):1}}},9397:function(e,n,r){"use strict";r.d(n,{h:function(){return u}});var a=r(47197),i=r(35921);let o=new Set(["brightness","contrast","saturate","opacity"]);function s(e){let[n,r]=e.slice(0,-1).split("(");if("drop-shadow"===n)return e;let[a]=r.match(i.KP)||[];if(!a)return e;let s=r.replace(a,""),l=o.has(n)?1:0;return a!==r&&(l*=100),n+"("+l+s+")"}let l=/([a-z-]*)\(.*?\)/g,u={...a.P,getAnimatableNone(e){let n=e.match(l);return n?n.map(s).join(" "):e}}},47197:function(e,n,r){"use strict";r.d(n,{P:function(){return d},V:function(){return u}});var a=r(48045),i=r(53348),o=r(35921);let s="${c}",l="${n}";function u(e){"number"==typeof e&&(e=`${e}`);let n=[],r=0,u=0,c=e.match(o.dA);c&&(r=c.length,e=e.replace(o.dA,s),n.push(...c.map(a.$.parse)));let p=e.match(o.KP);return p&&(u=p.length,e=e.replace(o.KP,l),n.push(...p.map(i.Rx.parse))),{values:n,numColors:r,numNumbers:u,tokenised:e}}function c(e){return u(e).values}function p(e){let{values:n,numColors:r,tokenised:i}=u(e),c=n.length;return e=>{let n=i;for(let u=0;u