agenttwin 0.3.30 → 0.3.32
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/api.js +1743 -722
- package/dist/dashboard/assets/next/static/chunks/{1ea884a0-6818287fac0ec05c.js → 0e5ce63c-707674e8817dc2e1.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{4420.2441fa8cd44d835a.js → 1018.4871a8dd0f112c38.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/1255-d4ec8dbb0865c655.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/1937-6c86fddc443de922.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/2743-a0efd6f4aeb11cc5.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{6873.a1a49381240b52fe.js → 4055.1056568a41510e92.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/424-83736cfafc224fc6.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/4343.023a18f52318dbad.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{aebece07-770806e0a96e6d1a.js → 4bd1b696-f785427dddbba9fb.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/5258-3d0060b41be9ad97.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/6751.613adb085c9a5b06.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/6787-c85d7f794360b672.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{3184-58f1813266829219.js → 7772-f2d773cd3e94eea6.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{5361.3484c495efb7fd7d.js → 8975.5be81ec8b09e3b45.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{3619.50dfe4e6fa916c52.js → 9013.0f2be1cc70029afa.js} +2 -2
- package/dist/dashboard/assets/next/static/chunks/{5203.7a7ffc7f10d89929.js → 9675.d833ca9b2d89cf8a.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-5d1ba67144da5868.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/about/page-b09a2d8452522c20.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/account/password/{page-5775ac3aa5e4562f.js → page-b9ca284314cace59.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/auth/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-mockoon/{page-9f75918bfb87ef66.js → page-11a5fdc2662ff51d.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-pact/{page-9f75918bfb87ef66.js → page-11a5fdc2662ff51d.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-testcontainers/{page-9f75918bfb87ef66.js → page-11a5fdc2662ff51d.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-wiremock/{page-9f75918bfb87ef66.js → page-11a5fdc2662ff51d.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/choose-first-agent-workflow-test/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/clean-baseline-before-fault-injection/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/idempotency-keys-and-safe-retries/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/keep-real-service-tests-with-digital-twins/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/keploy-alternatives-for-database-and-payment-workflows/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/layout-b095a34d742bd1fd.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/read-workflow-test-receipts/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/reset-test-environment-between-runs/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/simulate-timeouts-and-duplicate-events/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/test-boundaries-for-ai-agents/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/workflow-testing-evaluation-checklist/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/write-better-workflow-assertions/page-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/compare/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/contact/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-820e83f47c1bfe08.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-8b436163bc85e182.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/demo/page-ef75632088a6ea0b.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-c25a8cab5ab065c4.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dpa/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-91c6176f28dfdccd.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/layout-be64d3e50db4b7a9.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/login/page-7ee25051f2743d68.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/not-found-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-26b963fb1dc02cc7.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/page-ede77810f4904ea5.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/{about/page-f24aa0d77f7fa73c.js → pricing/page-535834810dc4bee1.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/security/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-7ee25051f2743d68.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/sitemap.xml/route-11a5fdc2662ff51d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/status/{page-7ce6f0e1c434b71e.js → page-569ae36bd08d867c.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/terms/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-b92ad482b0164f93.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-b1341267b2478360.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-edb84faba63372b4.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-bfbe86a28adc6d30.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-79cd80f87d39230d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-1391f1ae01a91dc0.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-bfbe86a28adc6d30.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-94d508052ae30dcb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{2db4c2cd.95079e665828175d.js → b468fba8.437b212aae4abcf8.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/framework-e54b663a2888b5de.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/main-5aa70aa3d6a46aa0.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/main-app-b4faf61f2e1c2b6d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/pages/_app-6c8c2371b16a04b8.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/pages/_error-94812ad32cad7365.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/webpack-53525dd96c1c1e70.js +1 -0
- package/dist/dashboard/assets/next/static/css/542f5281c59de6ae.css +1 -0
- package/dist/dashboard/assets/next/static/css/605ac70c9cf7a260.css +1 -0
- package/dist/dashboard/assets/next/static/css/734b61a26b31f1d1.css +1 -0
- package/dist/dashboard/assets/next/static/dQPcd2gl7ABZiL9lr9ruM/_buildManifest.js +1 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/engine.js +5506 -1828
- package/dist/gateway.js +1741 -720
- package/dist/twins/catalog.json +115 -115
- package/dist/twins/packs/slack/NOTICE +1 -1
- package/dist/twins/packs/slack/index.mjs +8 -8
- package/dist/twins/packs/stripe/NOTICE +1 -1
- package/dist/twins/packs/stripe/index.mjs +8 -8
- package/dist/worker.js +1240 -478
- package/dist/world-host.js +1382 -519
- package/package.json +2 -1
- package/dist/dashboard/assets/next/static/c1e-XsXauzTgZ5LPHO9qr/_buildManifest.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/3023-f8f4e462320a2292.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/3054-936b20c5b915b68e.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/3269.db5e9e84abf99c14.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/5153-306b5cc29af7b739.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/5301-889a97570ecc1207.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/709.2c0acddce9cffa19.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/7796-dcf7d396bd4449c0.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/9029-e0ae3088a6980a25.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-abd7b06b013b863e.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/auth/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/choose-first-agent-workflow-test/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/clean-baseline-before-fault-injection/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/idempotency-keys-and-safe-retries/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/keep-real-service-tests-with-digital-twins/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/keploy-alternatives-for-database-and-payment-workflows/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/layout-c4d11b2d8403020d.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/read-workflow-test-receipts/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/reset-test-environment-between-runs/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/simulate-timeouts-and-duplicate-events/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/test-boundaries-for-ai-agents/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/workflow-testing-evaluation-checklist/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/write-better-workflow-assertions/page-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/compare/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/contact/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-039b7665231d6e02.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-651d698c70c4751d.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/demo/page-823ab04e4ce3d98d.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-257fb2b60b9c51ea.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dpa/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-3b10665bd391180f.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/layout-d5b27156a3186b08.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/login/page-b7e1d396e6b8f1e5.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/not-found-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-3a50aee18c830bd9.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/page-f8bd9dabf8d184f0.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/pricing/page-832b691ac0762fc1.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/security/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-b7e1d396e6b8f1e5.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/sitemap.xml/route-9f75918bfb87ef66.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/terms/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-3578b0057d2de8c7.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-7bb4b6860280b5cc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-fbf2197ee73a9b94.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-830a35428306a169.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-8f78f1d869d1c720.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-e538ea410a189bb5.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-830a35428306a169.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-4a176798090a08d6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/framework-7f628fc50ede2b81.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/main-app-c4d1f57d693643d5.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/main-b1bb212229d52cfe.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/pages/_app-76810ca023f9add6.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/pages/_error-81ac1dd3015ead4e.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/webpack-cf0b56829d9b93b8.js +0 -1
- package/dist/dashboard/assets/next/static/css/83930ae013ae9eac.css +0 -1
- package/dist/dashboard/assets/next/static/css/846a3ee2626b9e08.css +0 -1
- /package/dist/dashboard/assets/next/static/{c1e-XsXauzTgZ5LPHO9qr → dQPcd2gl7ABZiL9lr9ruM}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5258],{737:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(8140)._(r(2115)).default.createContext({})},821:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"assets/next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},861:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},1124:(e,t)=>{function r(e){var t;let{config:r,src:n,width:o,quality:i}=e,a=i||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+o+"&q="+a+(n.startsWith("assets/next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},1262:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(2115),o=n.useLayoutEffect,i=n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},1356:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let n=r(8140),o=r(9417),i=r(5155),a=o._(r(2115)),l=n._(r(7650)),u=n._(r(4841)),s=r(5040),c=r(821),d=r(3455);r(4781);let f=r(9862),p=n._(r(1124)),m=r(3011),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"assets/next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,r,n,o,i,a){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:o,height:l,width:u,decoding:s,className:c,style:d,fetchPriority:f,placeholder:p,loading:h,unoptimized:v,fill:b,onLoadRef:w,onLoadingCompleteRef:P,setBlurComplete:_,setShowAltText:j,sizesInput:S,onLoad:x,onError:C,...O}=e,E=(0,a.useCallback)(e=>{e&&(C&&(e.src=e.src),e.complete&&g(e,p,w,P,_,v,S))},[r,p,w,P,_,C,v,S]),k=(0,m.useMergedRef)(t,E);return(0,i.jsx)("img",{...O,...y(f),loading:h,width:u,height:l,decoding:s,"data-nimg":b?"fill":"1",className:c,style:d,sizes:o,srcSet:n,src:r,ref:k,onLoad:e=>{g(e.currentTarget,p,w,P,_,v,S)},onError:e=>{j(!0),"empty"!==p&&_(!0),C&&C(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&l.default.preload?(l.default.preload(r.src,n),null):(0,i.jsx)(u.default,{children:(0,i.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let w=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{var e;let t=h||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),o=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:o,qualities:i}},[n]),{onLoad:l,onLoadingComplete:u}=e,m=(0,a.useRef)(l);(0,a.useEffect)(()=>{m.current=l},[l]);let g=(0,a.useRef)(u);(0,a.useEffect)(()=>{g.current=u},[u]);let[y,w]=(0,a.useState)(!1),[P,_]=(0,a.useState)(!1),{props:j,meta:S}=(0,s.getImgProps)(e,{defaultLoader:p.default,imgConf:o,blurComplete:y,showAltText:P});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{...j,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:_,sizesInput:e.sizes,ref:t}),S.priority?(0,i.jsx)(b,{isAppRouter:!r,imgAttributes:j}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return m},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return h},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return u},getLocationOrigin:function(){return a},getURL:function(){return l},isAbsoluteUrl:function(){return i},isResSent:function(){return s},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Object.defineProperty(Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class h extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},2619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},useLinkStatus:function(){return v}});let n=r(9417),o=r(5155),i=n._(r(2115)),a=r(7670),l=r(6752),u=r(3011),s=r(2296),c=r(6058);r(4781);let d=r(3499),f=r(8607),p=r(1807);r(7045);let m=r(6048);function h(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function g(e){var t;let r,n,a,[g,v]=(0,i.useOptimistic)(d.IDLE_LINK_STATUS),b=(0,i.useRef)(null),{href:w,as:P,children:_,prefetch:j=null,passHref:S,replace:x,shallow:C,scroll:O,onClick:E,onMouseEnter:k,onTouchStart:R,legacyBehavior:M=!1,onNavigate:T,ref:A,unstable_dynamicOnHover:N,...L}=e;r=_,M&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let z=i.default.useContext(l.AppRouterContext),I=!1!==j,D=!1!==j?null===(t=j)||"auto"===t?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:U,as:F}=i.default.useMemo(()=>{let e=h(w);return{href:e,as:P?h(P):e}},[w,P]);M&&(n=i.default.Children.only(r));let W=M?n&&"object"==typeof n&&n.ref:A,B=i.default.useCallback(e=>(null!==z&&(b.current=(0,d.mountLinkInstance)(e,U,z,D,I,v)),()=>{b.current&&((0,d.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,d.unmountPrefetchableInstance)(e)}),[I,U,z,D,v]),q={ref:(0,u.useMergedRef)(B,W),onClick(e){M||"function"!=typeof E||E(e),M&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),z&&(e.defaultPrevented||function(e,t,r,n,o,a,l){let{nodeName:u}=e.currentTarget;if(!("A"===u.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,f.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}i.default.startTransition(()=>{(0,p.dispatchNavigateAction)(r||t,o?"replace":"push",null==a||a,n.current)})}}(e,U,F,b,x,O,T))},onMouseEnter(e){M||"function"!=typeof k||k(e),M&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),z&&I&&(0,d.onNavigationIntent)(e.currentTarget,!0===N)},onTouchStart:function(e){M||"function"!=typeof R||R(e),M&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),z&&I&&(0,d.onNavigationIntent)(e.currentTarget,!0===N)}};return(0,s.isAbsoluteUrl)(F)?q.href=F:M&&!S&&("a"!==n.type||"href"in n.props)||(q.href=(0,c.addBasePath)(F)),a=M?i.default.cloneElement(n,q):(0,o.jsx)("a",{...L,...q,children:r}),(0,o.jsx)(y.Provider,{value:g,children:a})}let y=(0,i.createContext)(d.IDLE_LINK_STATUS),v=()=>(0,i.useContext)(y);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3011:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=r(2115);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3078:(e,t)=>{function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},3352:(e,t,r)=>{r.d(t,{default:()=>l});var n=r(2115);let o=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()},i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},a=(0,n.createContext)({}),l=(0,n.forwardRef)((e,t)=>{var r,l,u;let{color:s,size:c,width:d,height:f,strokeWidth:p,absoluteStrokeWidth:m,nonScalingStroke:h,className:g="",children:y,iconNode:v=[],icon:b={node:v,aliases:[],size:24},...w}=e,{size:P=24,strokeWidth:_=2,absoluteStrokeWidth:j=!1,nonScalingStroke:S=!1,color:x="currentColor",className:C=""}=null!=(r=(0,n.useContext)(a))?r:{},O=!!y||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(w),[E,k,R=[]]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){var t,r,n,a,l,u,s,c,d,f,p,m,h,g,y;let v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=null!=(n=v.attributeNames)?n:{},w=e=>{var t;return null!=(t=b[e])?t:e},P=null!=(l=null!=(a=e.size)?a:e.width)?l:i.width,_=null!=(s=null!=(u=e.size)?u:e.height)?s:i.height,j=null!=(c=null==(t=e.aliases)?void 0:t.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>"lucide-".concat(e)))?c:[],S=[...e.name?["lucide-".concat(e.name)]:[],...j],x=null!=(d=null==(r=v.className)?void 0:r.split(" ").filter(Boolean))?d:[],C=!1===v.includeDefaultClasses?o(...x):o("lucide",...S,...x),O=v.absoluteStrokeWidth?Number(null!=(f=v.strokeWidth)?f:i["stroke-width"])*Number(null!=(m=null!=(p=e.size)?p:e.width)?m:i.width)/Number(null!=(g=null!=(h=v.size)?h:v.width)?g:i.width):null!=(y=v.strokeWidth)?y:i["stroke-width"];return["svg",{...Object.entries(i).reduce((e,t)=>{let[r,n]=t;return e[w(r)]=n,e},{}),..."color"in v&&v.color&&{[w("stroke")]:v.color},..."size"in v&&null!=v.size&&{[w("width")]:v.size,[w("height")]:v.size},..."width"in v&&null!=v.width&&{[w("width")]:v.width},..."height"in v&&null!=v.height&&{[w("height")]:v.height},[w("stroke-width")]:O,...C&&{[w("class")]:C},[w("viewBox")]:"0 0 ".concat(P," ").concat(_),...!1===v.hasA11yProp?{[w("aria-hidden")]:"true"}:{},..."attributes"in v&&v.attributes},e.node.map(e=>{let[t,r,n]=e,o=v.nonScalingStroke?{[w("vector-effect")]:"non-scaling-stroke",...r}:r;return n?[t,o,n]:[t,o]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(b,{color:null!=s?s:x,width:null!=(l=null!=d?d:c)?l:P,height:null!=(u=null!=f?f:c)?u:P,strokeWidth:null!=p?p:_,absoluteStrokeWidth:null!=m?m:j,nonScalingStroke:null!=h?h:S,className:o(C,g),hasA11yProp:O,attributes:w});return(0,n.createElement)(E,{ref:t,...k},[...R.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(y)?y:[y]])})},3455:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let n=r(8140)._(r(2115)),o=r(821),i=n.default.createContext(o.imageConfigDefault)},3700:(e,t,r)=>{r.d(t,{Uy:()=>l,a8:()=>u,q6:()=>c,rd:()=>s});var n=r(2115),o=r(5155),i=()=>{throw Error("You need to wrap your application inside `FrameworkProvider`.")},a=c("FrameworkContext",{useParams:i,useRouter:i,usePathname:i});function l({Link:e,useRouter:t,useParams:r,usePathname:i,Image:l,children:u}){let s=n.useMemo(()=>({usePathname:i,useRouter:t,Link:e,Image:l,useParams:r}),[e,i,t,r,l]);return(0,o.jsx)(a.Provider,{value:s,children:u})}function u(){return a.use().usePathname()}function s(){return a.use().useRouter()}function c(e,t){let r=n.createContext(t);return{Provider:e=>(0,o.jsx)(r.Provider,{value:e.value,children:e.children}),use:t=>{let o=n.useContext(r);if(!o)throw Error(t??`Provider of ${e} is required but missing.`);return o}}}},3878:(e,t,r)=>{r.d(t,{Cr:()=>o,bN:()=>a,gJ:()=>i,s9:()=>l});var n=r(2115);let o={search:"Search",searchNoResult:"No results found",toc:"On this page",tocNoHeadings:"No Headings",lastUpdate:"Last updated on",chooseLanguage:"Choose a language",nextPage:"Next Page",previousPage:"Previous Page",chooseTheme:"Theme",editOnGithub:"Edit on GitHub"},i=(0,n.createContext)({text:o});function a(e){let{text:t}=l();return t[e.label]}function l(){return(0,n.useContext)(i)}},4105:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=n?40*n:t,u=o?40*o:r,s=l&&u?"viewBox='0 0 "+l+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+s+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(s?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},4394:(e,t,r)=>{r.d(t,{P$:()=>s,f1:()=>c});var n=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,s=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},c=(e,t,r)=>(r=null!=e?n(l(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of a(t))u.call(e,l)||l===r||o(e,l,{get:()=>t[l],enumerable:!(n=i(t,l))||n.enumerable});return e})(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e))},4652:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},getImageProps:function(){return l}});let n=r(8140),o=r(5040),i=r(1356),a=n._(r(1124));function l(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"assets/next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=i.Image},4841:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return h},defaultHead:function(){return d}});let n=r(8140),o=r(9417),i=r(5155),a=o._(r(2115)),l=n._(r(1262)),u=r(737),s=r(2073),c=r(861);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(4781);let p=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let i=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(o.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?i=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;("name"!==t||!a)&&r.has(e)?i=!1:(r.add(e),n[t]=r)}}}return i}}()).reverse().map((e,t)=>{let r=e.key||t;return a.default.cloneElement(e,{key:r})})}let h=function(e){let{children:t}=e,r=(0,a.useContext)(u.AmpStateContext),n=(0,a.useContext)(s.HeadManagerContext);return(0,i.jsx)(l.default,{reduceComponentsToState:m,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5040:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return u}}),r(4781);let n=r(4105),o=r(821),i=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u(e,t){var r,u;let s,c,d,{src:f,sizes:p,unoptimized:m=!1,priority:h=!1,loading:g,className:y,quality:v,width:b,height:w,fill:P=!1,style:_,overrideSrc:j,onLoad:S,onLoadingComplete:x,placeholder:C="empty",blurDataURL:O,fetchPriority:E,decoding:k="async",layout:R,objectFit:M,objectPosition:T,lazyBoundary:A,lazyRoot:N,...L}=e,{imgConf:z,showAltText:I,blurComplete:D,defaultLoader:U}=t,F=z||o.imageConfigDefault;if("allSizes"in F)s=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),n=null==(r=F.qualities)?void 0:r.sort((e,t)=>e-t);s={...F,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===U)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let W=L.loader||U;delete L.loader,delete L.srcSet;let B="__next_img_default"in W;if(B){if("custom"===s.loader)throw Object.defineProperty(Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=W;W=t=>{let{config:r,...n}=t;return e(n)}}if(R){"fill"===R&&(P=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];e&&(_={..._,...e});let t={responsive:"100vw",fill:"100vw"}[R];t&&!p&&(p=t)}let q="",K=l(b),G=l(w),H=!1;if((u=f)&&"object"==typeof u&&(a(u)||void 0!==u.src)){let e=a(f)?f.default:f;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,O=O||e.blurDataURL,q=e.src,H=/\.avif(?:\?|$)/i.test(q),!P)if(K||G){if(K&&!G){let t=K/e.width;G=Math.round(e.height*t)}else if(!K&&G){let t=G/e.height;K=Math.round(e.width*t)}}else K=e.width,G=e.height}H&&"blur"===C&&!O&&(C="empty");let V=!h&&("lazy"===g||void 0===g);(!(f="string"==typeof f?f:q)||f.startsWith("data:")||f.startsWith("blob:"))&&(m=!0,V=!1),s.unoptimized&&(m=!0),B&&!s.dangerouslyAllowSVG&&f.split("?",1)[0].endsWith(".svg")&&(m=!0);let J=l(v),$=Object.assign(P?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:T}:{},I?{}:{color:"transparent"},_),X=D||"empty"===C?null:"blur"===C?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:K,heightInt:G,blurWidth:c,blurHeight:d,blurDataURL:O||"",objectFit:$.objectFit})+'")':'url("'+C+'")',Q=i.includes($.objectFit)?"fill"===$.objectFit?"100% 100%":"cover":$.objectFit,Y=X?{backgroundSize:Q,backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Z=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,a),c=u.length-1;return{sizes:a||"w"!==s?a:"100vw",srcSet:u.map((e,n)=>l({config:t,src:r,quality:i,width:e})+" "+("w"===s?e:n+1)+s).join(", "),src:l({config:t,src:r,quality:i,width:u[c]})}}({config:s,src:f,unoptimized:m,width:K,quality:J,sizes:p,loader:W});return{props:{...L,loading:V?"lazy":g,fetchPriority:E,width:K,height:G,decoding:k,className:y,style:{...$,...Y},sizes:Z.sizes,srcSet:Z.srcSet,src:j||Z.src},meta:{unoptimized:m,priority:h,placeholder:C,fill:P}}}},5379:(e,t,r)=>{r.d(t,{D:()=>s,N:()=>c});var n=r(2115),o=(e,t,r,n,o,i,a,l)=>{let u=document.documentElement,s=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&i?o.map(e=>i[e]||e):o;r?(u.classList.remove(...n),u.classList.add(i&&i[t]?i[t]:t)):u.setAttribute(e,t)}),r=t,l&&s.includes(r)&&(u.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},i=["light","dark"],a="(prefers-color-scheme: dark)",l=n.createContext(void 0),u={setTheme:e=>{},themes:[]},s=()=>{var e;return null!=(e=n.useContext(l))?e:u},c=e=>n.useContext(l)?n.createElement(n.Fragment,null,e.children):n.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:o=!0,enableColorScheme:u=!0,storageKey:s="theme",themes:c=d,defaultTheme:f=o?"system":"light",attribute:y="data-theme",value:v,children:b,nonce:w,scriptProps:P}=e,[_,j]=n.useState(()=>m(s,f)),[S,x]=n.useState(()=>"system"===_?g():_),C=v?Object.values(v):c,O=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=g());let n=v?v[t]:t,a=r?h(w):null,l=document.documentElement,s=e=>{"class"===e?(l.classList.remove(...C),n&&l.classList.add(n)):e.startsWith("data-")&&(n?l.setAttribute(e,n):l.removeAttribute(e))};if(Array.isArray(y)?y.forEach(s):s(y),u){let e=i.includes(f)?f:null,r=i.includes(t)?t:e;l.style.colorScheme=r}null==a||a()},[w]),E=n.useCallback(e=>{let t="function"==typeof e?e(_):e;j(t);try{localStorage.setItem(s,t)}catch(e){}},[_]),k=n.useCallback(e=>{x(g(e)),"system"===_&&o&&!t&&O("system")},[_,t]);n.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(k),k(e),()=>e.removeListener(k)},[k]),n.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?j(e.newValue):E(f))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[E]),n.useEffect(()=>{O(null!=t?t:_)},[t,_]);let R=n.useMemo(()=>({theme:_,setTheme:E,forcedTheme:t,resolvedTheme:"system"===_?S:_,themes:o?[...c,"system"]:c,systemTheme:o?S:void 0}),[_,E,t,S,o,c]);return n.createElement(l.Provider,{value:R},n.createElement(p,{forcedTheme:t,storageKey:s,attribute:y,enableSystem:o,enableColorScheme:u,defaultTheme:f,value:v,themes:c,nonce:w,scriptProps:P}),b)},p=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:i,enableSystem:a,enableColorScheme:l,defaultTheme:u,value:s,themes:c,nonce:d,scriptProps:f}=e,p=JSON.stringify([i,r,u,t,c,s,a,l]).slice(1,-1);return n.createElement("script",{...f,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(p,")")}})}),m=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t},h=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},g=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},6259:(e,t,r)=>{r.d(t,{RootProvider:()=>E});var n=r(5155),o=r(5379),i=r(2115),a=Object.defineProperty,l=(e,t)=>a(e,"name",{value:t,configurable:!0}),u={LTR:"ltr"},s=i.createContext(void 0),c=l(e=>{let{dir:t,children:r}=e;return(0,n.jsx)(s.Provider,{value:t,children:r})},"DirectionProvider");l(function(e){let t=i.useContext(s);return e||t||u.LTR},"useDirection");var d=r(9987),f=r(9384);let p=(0,d.q6)("SidebarContext");function m(e){let{children:t}=e,r=(0,i.useRef)(!0),[o,a]=(0,i.useState)(!1),[l,u]=(0,i.useState)(!1),s=(0,d.a8)();return(0,f.T)(s,()=>{r.current&&a(!1),r.current=!0}),(0,n.jsx)(p.Provider,{value:(0,i.useMemo)(()=>({open:o,setOpen:a,collapsed:l,setCollapsed:u,closeOnRedirect:r}),[o,l]),children:t})}let h=(0,d.q6)("SearchContext",{enabled:!1,hotKey:[],setOpenSearch:()=>void 0});function g(){let[e,t]=(0,i.useState)("⌘");return(0,i.useEffect)(()=>{window.navigator.userAgent.includes("Windows")&&t("Ctrl")},[]),e}function y(e){let{SearchDialog:t,children:r,preload:o=!0,options:a,hotKey:l=[{key:e=>e.metaKey||e.ctrlKey,display:(0,n.jsx)(g,{})},{key:"k",display:"K"}],links:u}=e,[s,c]=(0,i.useState)(!o&&void 0);return(0,i.useEffect)(()=>{let e=e=>{l.every(t=>"string"==typeof t.key?e.key===t.key:t.key(e))&&(c(!0),e.preventDefault())};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[l]),(0,n.jsxs)(h.Provider,{value:(0,i.useMemo)(()=>({enabled:!0,hotKey:l,setOpenSearch:c}),[l]),children:[void 0!==s&&(0,n.jsx)(t,{open:s,onOpenChange:c,links:u,...a}),r]})}var v=r(3878);let b=(0,i.lazy)(()=>Promise.all([r.e(2743),r.e(1018)]).then(r.bind(r,1018)));function w(e){let{children:t,dir:r="ltr",theme:i={},search:a,i18n:l}=e,u=t;return(null==a?void 0:a.enabled)!==!1&&(u=(0,n.jsx)(y,{SearchDialog:b,...a,children:u})),(null==i?void 0:i.enabled)!==!1&&(u=(0,n.jsx)(o.N,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...i,children:u})),l&&(u=(0,n.jsx)(P,{...l,children:u})),(0,n.jsx)(c,{dir:r,children:(0,n.jsx)(m,{children:u})})}function P(e){let{locales:t=[],locale:r,onLocaleChange:o,children:a,translations:l}=e,u=(0,d.rd)(),s=(0,d.a8)(),c=e=>{if(o)return o(e);let t=s.split("/").filter(e=>e.length>0);t[0]!==r?t.unshift(e):t[0]=e,u.push("/".concat(t.join("/")))},f=(0,i.useRef)(c);return f.current=c,(0,n.jsx)(v.gJ.Provider,{value:(0,i.useMemo)(()=>({locale:r,locales:t,text:{...v.Cr,...l},onChange:e=>f.current(e)}),[r,t,l]),children:a})}var _=r(3700);r(4394);var j=r(7260),S=r(2619),x=r(4652),C=r.n(x);function O(e){let{children:t}=e;return(0,n.jsx)(_.Uy,{usePathname:j.usePathname,useRouter:j.useRouter,useParams:j.useParams,Link:S,Image:C(),children:t})}function E(e){return(0,n.jsx)(O,{children:(0,n.jsx)(w,{...e,children:e.children})})}},7045:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},7670:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return l},urlObjectKeys:function(){return a}});let n=r(9417)._(r(3078)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(n.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+i+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return i(e)}},8607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=r(2296),o=r(2929);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},8950:(e,t,r)=>{r.d(t,{T:()=>o});var n=r(2115);function o(e,t,r=function e(t,r){return Array.isArray(t)&&Array.isArray(r)?r.length!==t.length||t.some((t,n)=>e(t,r[n])):t!==r}){let[i,a]=(0,n.useState)(e);r(i,e)&&(t(e,i),a(e))}},9384:(e,t,r)=>{r.d(t,{T:()=>n.T});var n=r(8950);r(4394)},9862:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(8140)._(r(2115)).default.createContext(null)},9987:(e,t,r)=>{r.d(t,{a8:()=>n.a8,q6:()=>n.q6,rd:()=>n.rd});var n=r(3700);r(4394)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6751],{1223:(t,e,n)=>{function r(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(t){let e="string"==typeof t?function(t){let e=t.trim();if(0===e.length)return null;let n=Array.from(new Set(e.split(/\s+/).map(t=>t.trim()).filter(Boolean)));if(0===n.length)return null;let i=n.map(r).join("|");return RegExp(`(${i})`,"gi")}(t):t;return{highlight(t){if(!e)return[{type:"text",content:t}];let n=[],r=0;for(let i of t.matchAll(e))r<i.index&&n.push({type:"text",content:t.substring(r,i.index)}),n.push({type:"text",content:i[0],styles:{highlight:!0}}),r=i.index+i[0].length;return r<t.length&&n.push({type:"text",content:t.substring(r)}),n}}}n.d(e,{r:()=>i})},6751:(t,e,n)=>{n.d(e,{searchDocs:()=>i});var r=n(1223);async function i(t,{indexName:e,onSearch:n,client:i,locale:l,tag:u}){if(0===t.trim().length)return[];let s=n?await n(t,u,l):await i.searchForHits({requests:[{type:"default",indexName:e,query:t,distinct:5,hitsPerPage:10,filters:u?`tag:${u}`:void 0}]}),h=(0,r.r)(t);return(function(t){let e=[],n=new Set;for(let r of t)n.has(r.url)||(n.add(r.url),e.push({id:r.url,type:"page",breadcrumbs:r.breadcrumbs,url:r.url,content:r.title})),e.push({id:r.objectID,type:r.content===r.section?"heading":"text",url:r.section_id?`${r.url}#${r.section_id}`:r.url,content:r.content});return e})(s.results[0].hits).flatMap(t=>"page"===t.type?{...t,contentWithHighlights:t.contentWithHighlights??h.highlight(t.content)}:[])}n(4394)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6787],{709:()=>{},1261:()=>{},6787:(e,t,n)=>{"use strict";n.d(t,{n:()=>u,default:()=>c});var i=n(5155),a=n(2115);function o(e){var t;let{api:n,signup:o,onboarding:s,pending:r,setPending:l,setError:u}=e,[c,d]=(0,a.useState)([]),[p,h]=(0,a.useState)([]),[f,g]=(0,a.useState)("loading"),[m,x]=(0,a.useState)(0),[b,v]=(0,a.useState)(null),[y,w]=(0,a.useState)(null);async function _(e,t){if(!r){if("google"===e&&!c.includes("google")&&y)return void location.assign(y);u(""),l(!0);try{let i=await fetch(n+"/v1/auth/oauth/"+e+"/start",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({signup:o,onboarding:s,..."sso"===e&&t?{realm:t}:{}}),signal:AbortSignal.timeout(2e4)}),a=await i.json();if(!i.ok)throw Error([401,404].includes(i.status)?"This sign-in provider is not available yet. Continue with email.":a.error||"Could not start sign-in. Please try again.");let r=new URL(a.url);if("https:"!==r.protocol&&!("http:"===r.protocol&&["localhost","127.0.0.1"].includes(r.hostname)))throw Error("The sign-in provider returned an invalid address.");location.assign(r.href)}catch(e){u(e instanceof TypeError?"Could not connect to AgentTwin. Please try again.":e instanceof Error?e.message:"Could not start sign-in."),l(!1)}}}(0,a.useEffect)(()=>{let e=new AbortController;g("loading"),w(["localhost","127.0.0.1"].includes(location.hostname)&&/^http:\/\/(localhost|127\.0\.0\.1):[0-9]+$/.test(n)?"https://agenttwin.si/".concat(o?"signup":"login","/").concat(s?"?next=onboarding":""):null),d([]),h([]),v(["localhost","127.0.0.1"].includes(location.hostname)&&"https://api.agenttwin.si"===n?"https://agenttwin.si/".concat(o?"signup":"login","/").concat(s?"?next=onboarding":""):null);let t=!0,i=setTimeout(()=>e.abort(),1e4);return fetch(n+"/v1/auth/providers",{signal:e.signal,cache:"no-store"}).then(async t=>{if(!t.ok)throw Error("provider_status_unavailable");let n=await t.json();if(!Array.isArray(null==n?void 0:n.providers))throw Error("invalid_provider_status");e.signal.aborted||(d(n.providers.filter(e=>!0===e.enabled).map(e=>e.id)),h(Array.isArray(n.ssoRealms)?n.ssoRealms.filter(e=>"string"==typeof(null==e?void 0:e.id)&&e.id&&"string"==typeof(null==e?void 0:e.organization)).map(e=>({id:e.id,organization:e.organization})):[]),g("ready"))}).catch(()=>{t&&g("error")}).finally(()=>clearTimeout(i)),()=>{t=!1,clearTimeout(i),e.abort()}},[n,o,s,m]);let k="loading"===f?"Checking availability…":"error"===f?"Sign-in service could not be reached.":"Not configured. Continue with email.",j=(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,i.jsx)("rect",{x:"5",y:"10",width:"14",height:"11",rx:"2"}),(0,i.jsx)("path",{d:"M8 10V7a4 4 0 0 1 8 0v3M12 14v3"})]});return(0,i.jsxs)("div",{className:"auth-providers","aria-label":"Other sign-in options","aria-busy":r||"loading"===f,children:["loading"===f&&(0,i.jsx)("p",{className:"auth-provider-note",role:"status",children:"Checking sign-in options…"}),"error"===f&&(0,i.jsx)("p",{className:"auth-provider-note",role:"status",children:b?(0,i.jsxs)(i.Fragment,{children:["This local preview cannot connect to production sign-in. ",(0,i.jsx)("a",{href:b,children:"Continue on agenttwin.si ↗"})]}):(0,i.jsxs)(i.Fragment,{children:["Could not load sign-in options. ",(0,i.jsx)("button",{type:"button",className:"auth-text-button",onClick:()=>x(e=>e+1),children:"Try again"})]})}),"ready"===f&&0===c.length&&!y&&(0,i.jsx)("p",{className:"auth-provider-note",children:"Use email to continue. Other sign-in providers are not configured."}),(0,i.jsxs)("button",{type:"button",className:"auth-provider",onClick:()=>_("google"),disabled:r||!c.includes("google")&&!y,title:y&&!c.includes("google")?"Continue on agenttwin.si":c.includes("google")?void 0:k,children:[(0,i.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,i.jsx)("path",{fill:"#4285F4",d:"M21.6 12.23c0-.71-.06-1.39-.18-2.05H12v3.88h5.38a4.6 4.6 0 0 1-2 3.02v2.51h3.24c1.9-1.75 2.98-4.33 2.98-7.36Z"}),(0,i.jsx)("path",{fill:"#34A853",d:"M12 22c2.7 0 4.97-.9 6.63-2.42l-3.24-2.5c-.9.6-2.06.96-3.39.96-2.6 0-4.81-1.76-5.6-4.12H3.05v2.6A10 10 0 0 0 12 22Z"}),(0,i.jsx)("path",{fill:"#FBBC05",d:"M6.4 13.92a6 6 0 0 1 0-3.84v-2.6H3.05a10 10 0 0 0 0 9.04l3.35-2.6Z"}),(0,i.jsx)("path",{fill:"#EA4335",d:"M12 5.96c1.47 0 2.79.5 3.83 1.51l2.87-2.87A9.6 9.6 0 0 0 12 2a10 10 0 0 0-8.95 5.48l3.35 2.6C7.19 7.72 9.4 5.96 12 5.96Z"})]}),"Continue with Google",y&&!c.includes("google")&&(0,i.jsx)("span",{"aria-hidden":"true",children:"↗"})]}),y&&!c.includes("google")&&(0,i.jsx)("p",{className:"auth-provider-note",children:"Google sign-in opens agenttwin.si. Your local workspace stays separate."}),(0,i.jsxs)("button",{type:"button",className:"auth-provider",onClick:()=>_("github"),disabled:r||!c.includes("github"),title:c.includes("github")?void 0:k,children:[(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,i.jsx)("path",{d:"M12 .9a11.1 11.1 0 0 0-3.51 21.63c.55.1.76-.24.76-.54v-2.07c-3.09.67-3.74-1.32-3.74-1.32-.5-1.28-1.24-1.62-1.24-1.62-1.02-.7.08-.68.08-.68 1.13.08 1.72 1.16 1.72 1.16 1 1.71 2.6 1.22 3.23.93.1-.73.4-1.22.71-1.5-2.46-.28-5.05-1.23-5.05-5.49 0-1.21.43-2.2 1.14-2.97-.11-.28-.5-1.41.11-2.94 0 0 .93-.3 3.05 1.14a10.6 10.6 0 0 1 5.55 0c2.12-1.44 3.05-1.14 3.05-1.14.61 1.53.22 2.66.11 2.94.71.77 1.14 1.76 1.14 2.97 0 4.27-2.6 5.21-5.08 5.48.4.35.75 1.02.75 2.06v3.05c0 .3.2.64.77.53A11.1 11.1 0 0 0 12 .9Z"})}),"Continue with GitHub"]}),p.length>1?p.map(e=>(0,i.jsxs)("button",{type:"button",className:"auth-provider",onClick:()=>_("sso",e.id),disabled:r||!c.includes("sso"),title:c.includes("sso")?void 0:k,children:[j,"Continue with ",e.organization||e.id," sign-in"]},e.id)):(0,i.jsxs)("button",{type:"button",className:"auth-provider",onClick:()=>{var e;return _("sso",null==(e=p[0])?void 0:e.id)},disabled:r||!c.includes("sso"),title:c.includes("sso")?void 0:k,children:[j,"Continue with ",(null==(t=p[0])?void 0:t.organization)?p[0].organization+" ":"","SSO"]})]})}let s={check:"M5.5 12.5l4 4L18.5 8",alert:"M12 8v4.5M12 16h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"};function r(e){let{length:t=6,separator:n=!1,numeric:o=!0,value:r,defaultValue:u="",onChange:c,onComplete:d,status:p="idle",errorMessage:h="That code didn't work. Try again.",clearOnError:f=!0,successLabel:g="Verified",onResend:m,resendIn:x=30,align:b="start",disabled:v=!1,autoFocus:y=!1,label:w="Verification code",className:_}=e,k=e=>{let n="";for(let i of e){let e=o?/[0-9]/.test(i)?i:"":/[a-z0-9]/i.test(i)?i.toUpperCase():"";e&&n.length<t&&(n+=e)}return n},[j,C]=(0,a.useState)(()=>k(u)),N=k(null!=r?r:j),[S,T]=(0,a.useState)(Math.min(N.length,t-1)),[E,A]=(0,a.useState)(!1),[z,R]=(0,a.useState)(!1),[M,L]=(0,a.useState)(!1),[P,O]=(0,a.useState)(!1),[B,U]=(0,a.useState)(x),[D,F]=(0,a.useState)(""),I=(0,a.useRef)(null),X=(0,a.useRef)(null),V=(0,a.useRef)(null),q=(0,a.useRef)(null),H=(0,a.useRef)(null),W=(0,a.useRef)([]),Y=(0,a.useRef)([]),G=(0,a.useId)(),K=(0,a.useRef)(N),Z=(0,a.useRef)([]),J=(0,a.useRef)([]),$=(0,a.useRef)(0);if(K.current!==N){let e=K.current,t=[...N].map((t,n)=>t!==e[n]),n=t.indexOf(!0),i=t.filter(Boolean).length>1;t.forEach((e,t)=>{e&&(Z.current[t]=++$.current,J.current[t]=i?(t-n)*45:0)}),K.current=N}let Q=Math.min(S,N.length,t-1),ee=!0===n?Math.floor(t/2):"number"==typeof n?n:0,et="verifying"===p||"success"===p,en=et||P||v,ei="error"===p&&z,ea=!et&&!v&&(E||N.length>0&&N.length<t),eo=function(e,n){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];void 0===r&&C(e),e!==N&&(null==c||c(e)),T(Math.max(0,Math.min(n,e.length,t-1))),i&&(z&&e.length&&R(!1),e.length===t&&e!==N&&(null==d||d(e)))},es=()=>{let e=I.current;if(!e||document.activeElement!==e)return;let n=Math.min(S,N.length,t-1);n<N.length?e.setSelectionRange(n,n+1):e.setSelectionRange(n,n)};(0,a.useLayoutEffect)(es),(0,a.useEffect)(()=>{var e;y&&(null==(e=I.current)||e.focus({preventScroll:!0}))},[y]),(0,a.useLayoutEffect)(()=>{let e=V.current,t=W.current[Q];if(e&&t){let n=!e.dataset.ready;n&&(e.style.transition="none"),e.style.width="".concat(t.offsetWidth,"px"),e.style.height="".concat(t.offsetHeight,"px"),e.style.transform="translate(".concat(t.offsetLeft,"px, ").concat(t.offsetTop,"px)"),n&&(e.dataset.ready="1",e.offsetWidth,e.style.transition="")}let n=q.current,i=X.current;n&&i&&H.current&&(n.style.width="".concat("success"===p?H.current.offsetWidth:i.offsetWidth,"px"))}),(0,a.useEffect)(()=>{let e=X.current;if(!e)return;let t=new ResizeObserver(()=>{let t=V.current,n=W.current[Q];t&&n&&(t.style.width="".concat(n.offsetWidth,"px"),t.style.height="".concat(n.offsetHeight,"px"),t.style.transform="translate(".concat(n.offsetLeft,"px, ").concat(n.offsetTop,"px)")),q.current&&"success"!==p&&(q.current.style.width="".concat(e.offsetWidth,"px"))});return t.observe(e),()=>t.disconnect()},[Q,p]);let er=(0,a.useRef)(p);(0,a.useEffect)(()=>{let e=er.current;if(er.current=p,p!==e){if("verifying"===p&&F("Verifying code"),"success"===p&&F(g),"error"!==p)return void R(!1);if(R(!0),F("string"==typeof h?h:"That code didn't work"),!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var t;null==(t=X.current)||t.animate([{transform:"none"},{transform:"translateX(-6px)"},{transform:"translateX(5px)"},{transform:"translateX(-3px)"},{transform:"translateX(2px)"},{transform:"none"}],{duration:420,easing:"ease-out"})}f&&(O(!0),Y.current.push(window.setTimeout(()=>L(!0),700),window.setTimeout(()=>{L(!1),O(!1),eo("",0,!1)},980)))}},[p]),(0,a.useEffect)(()=>()=>Y.current.forEach(clearTimeout),[]),(0,a.useEffect)(()=>{if(B<=0){m&&x>0&&F("You can resend the code now");return}let e=window.setTimeout(()=>U(e=>e-1),1e3);return()=>clearTimeout(e)},[B]);let el=[];for(let e=0;e<t;e++){var eu;ee>0&&ee<t&&e===ee&&el.push((0,i.jsx)("span",{className:"ui-otp__sep"},"sep"));let n=N[e];el.push((0,i.jsx)("span",{ref:t=>{W.current[e]=t},className:"ui-otp__box","data-filled":n?"":void 0,style:{"--i":e},children:n&&(0,i.jsx)("span",{className:"ui-otp__char",style:{animationDelay:"".concat(null!=(eu=J.current[e])?eu:0,"ms")},children:n},Z.current[e])},e))}return(0,i.jsxs)("div",{className:["ui-otp",_].filter(Boolean).join(" "),"data-status":p,"data-error":ei||void 0,"data-align":b,"data-disabled":v||void 0,children:[(0,i.jsx)("style",{href:"ui-otp-input",precedence:"default",children:l}),(0,i.jsx)("div",{className:"ui-otp__field",children:(0,i.jsxs)("div",{ref:X,className:"ui-otp__slots","data-clearing":M||void 0,style:{"--n":t,"--sep-w":ee>0&&ee<t?"calc(var(--ui-otp-gap) + 10px)":"0px"},children:[el,(0,i.jsx)("span",{ref:V,className:"ui-otp__ring","data-show":ea||void 0,"aria-hidden":"true",children:(0,i.jsx)("span",{className:"ui-otp__caret","data-show":E&&!N[Q]&&!en||void 0})}),(0,i.jsx)("span",{ref:q,className:"ui-otp__pill","aria-hidden":"true",children:(0,i.jsxs)("span",{ref:H,className:"ui-otp__pill-inner",children:[(0,i.jsx)("svg",{viewBox:"0 0 24 24",className:"ui-otp__check","aria-hidden":"true",children:(0,i.jsx)("path",{d:s.check,pathLength:1})}),g]})}),(0,i.jsx)("input",{ref:I,className:"ui-otp__input",type:"text",value:N,inputMode:o?"numeric":"text",pattern:o?"[0-9]*":void 0,autoComplete:"one-time-code",autoCapitalize:o?"off":"characters",autoCorrect:"off",spellCheck:!1,enterKeyHint:"done","aria-label":"".concat(w,", ").concat(t," ").concat(o?"digits":"characters"),"aria-invalid":ei||void 0,"aria-describedby":ei?"".concat(G,"-msg"):void 0,disabled:v,readOnly:et||P,onChange:e=>(e=>{var t;if(en)return;let n=e.value,i=null!=(t=e.selectionStart)?t:n.length,a=k(n),o=k(n.slice(0,i)).length;if(a===N){e.value=N,es();return}eo(a,o)})(e.currentTarget),onPaste:e=>{if(e.preventDefault(),en)return;let n=k(e.clipboardData.getData("text"));if(n){if(n.length>=t)return eo(n.slice(0,t),t-1);eo((N.slice(0,Q)+n+N.slice(Q+n.length)).slice(0,t),Q+n.length)}},onKeyDown:e=>{let n=Math.min(N.length,t-1),i={ArrowLeft:Q-1,ArrowRight:Q+1,Home:0,End:n,ArrowUp:0,ArrowDown:n};e.key in i&&!e.shiftKey&&!e.metaKey&&(e.preventDefault(),T(Math.max(0,Math.min(i[e.key],n))))},onFocus:()=>{A(!0),requestAnimationFrame(es)},onBlur:()=>A(!1),onPointerUp:e=>{var n;let i;return n=e.clientX,void((i=W.current.findIndex(e=>e&&n<e.getBoundingClientRect().right+4))<0&&(i=t-1),T(Math.min(i,N.length,t-1)),requestAnimationFrame(es))},onSelect:e=>{let t=e.currentTarget,n=Q<N.length?[Q,Q+1]:[Q,Q];(t.selectionStart!==n[0]||t.selectionEnd!==n[1])&&es()}})]})}),(0,i.jsx)("div",{className:"ui-otp__msg","data-show":ei||void 0,children:(0,i.jsx)("div",{className:"ui-otp__msg-inner",children:(0,i.jsxs)("p",{id:"".concat(G,"-msg"),className:"ui-otp__msg-text",children:[(0,i.jsx)("svg",{viewBox:"0 0 24 24",className:"ui-otp__alert","aria-hidden":"true",children:(0,i.jsx)("path",{d:s.alert})}),(0,i.jsx)("span",{children:h})]})})}),m&&(0,i.jsxs)("div",{className:"ui-otp__resend","data-hidden":"success"===p||void 0,children:[(0,i.jsx)("span",{className:"ui-otp__resend-q",children:"Didn't get a code?"})," ",B>0?(0,i.jsxs)("span",{className:"ui-otp__swap ui-otp__wait",children:["Resend in","\xa0",(0,i.jsx)("span",{className:"ui-otp__time",children:"".concat(Math.floor(B/60),":").concat(String(B%60).padStart(2,"0"))})]},"wait"):(0,i.jsx)("button",{type:"button",className:"ui-otp__swap ui-otp__resend-btn",onClick:()=>{null==m||m(),U(x),F("A new code is on its way")},disabled:v||et,children:"Resend code"},"go")]}),(0,i.jsx)("span",{className:"ui-otp__live","aria-live":"polite",children:D})]})}let l='\n/* Colors, size and motion as variables – override them on .ui-otp */\n.ui-otp {\n --ui-otp-box: 48px;\n --ui-otp-gap: 8px;\n --ui-otp-bg: #fafafa;\n --ui-otp-card: #ffffff;\n --ui-otp-line: #e4e4e7;\n --ui-otp-line-strong: #cfcfd4;\n --ui-otp-ink: #171717;\n --ui-otp-text: #404040;\n --ui-otp-muted: #8f8f8f;\n --ui-otp-faint: #c4c4c8;\n --ui-otp-halo: rgba(23, 23, 23, 0.07);\n --ui-otp-wait: #f2f2f3;\n --ui-otp-shine: rgba(255, 255, 255, 0.95);\n --ui-otp-danger: #e5484d;\n --ui-otp-danger-line: rgba(229, 72, 77, 0.6);\n --ui-otp-danger-halo: rgba(229, 72, 77, 0.12);\n --ui-otp-success: #2f9e5b;\n --ui-otp-accent: #2f6bff;\n --ui-otp-focus: rgba(23, 23, 23, 0.22);\n --ui-otp-ease: cubic-bezier(0.22, 1, 0.36, 1);\n box-sizing: border-box;\n container-type: inline-size;\n display: grid;\n justify-self: stretch; /* it sizes the boxes from its own width, so it must never shrink to fit them */\n width: 100%;\n font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;\n font-size: 13.5px;\n line-height: 1.45;\n color: var(--ui-otp-text);\n -webkit-font-smoothing: antialiased;\n}\n.ui-otp *, .ui-otp *::before, .ui-otp *::after { box-sizing: border-box; }\n.ui-otp[data-align="center"] { justify-items: center; text-align: center; }\n.ui-otp[data-disabled] { opacity: 0.55; }\n\n.ui-otp__field { display: flex; min-width: 0; }\n.ui-otp[data-align="center"] .ui-otp__field { justify-content: center; }\n\n/* The boxes scale down to fit their container (phones at 320px), up to --ui-otp-box */\n.ui-otp__slots {\n --size: min(var(--ui-otp-box), calc((100cqi - (var(--n) - 1) * var(--ui-otp-gap) - var(--sep-w)) / var(--n)));\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--ui-otp-gap);\n}\n.ui-otp__box {\n position: relative;\n display: grid;\n place-items: center;\n flex: none;\n width: var(--size);\n height: calc(var(--size) * 1.18);\n overflow: hidden;\n border-radius: calc(var(--size) * 0.24);\n background: var(--ui-otp-bg);\n box-shadow: inset 0 0 0 1px var(--ui-otp-line);\n font-size: calc(var(--size) * 0.46);\n font-weight: 500;\n font-variant-numeric: tabular-nums;\n color: var(--ui-otp-ink);\n transition: box-shadow 220ms ease, background-color 220ms ease, transform 380ms var(--ui-otp-ease), opacity 260ms ease;\n}\n.ui-otp__box[data-filled] { background: var(--ui-otp-card); box-shadow: inset 0 0 0 1px var(--ui-otp-line-strong); }\n.ui-otp__sep { flex: none; width: 10px; height: 2px; border-radius: 1px; background: var(--ui-otp-faint); transition: opacity 200ms ease; }\n\n/* Digits pop in – a small lift out of a blur, no bounce */\n.ui-otp__char { display: block; animation: ui-otp-pop 280ms var(--ui-otp-ease) both; }\n.ui-otp__slots[data-clearing] .ui-otp__char { animation: ui-otp-out 240ms ease both; animation-delay: calc((var(--n) - var(--i)) * 22ms) !important; }\n\n/* One ring glides from box to box; its caret blinks softly in an empty box */\n.ui-otp__ring {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n display: grid;\n place-items: center;\n border-radius: calc(var(--size) * 0.24);\n box-shadow: inset 0 0 0 1.5px var(--ui-otp-ink), 0 0 0 4px var(--ui-otp-halo);\n opacity: 0;\n pointer-events: none;\n transition: transform 260ms var(--ui-otp-ease), width 260ms var(--ui-otp-ease), opacity 180ms ease, box-shadow 220ms ease;\n}\n.ui-otp__ring[data-show] { opacity: 1; }\n.ui-otp__caret { width: 1.5px; height: 40%; border-radius: 1px; background: var(--ui-otp-ink); opacity: 0; }\n.ui-otp__caret[data-show] { animation: ui-otp-blink 1.1s ease-in-out infinite; }\n\n/* The real input lies over the boxes, invisible – it takes taps, keys, paste and SMS autofill */\n.ui-otp__input {\n position: absolute;\n inset: 0;\n z-index: 2;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n border: 0;\n outline: none;\n background: transparent;\n color: transparent;\n -webkit-text-fill-color: transparent;\n caret-color: transparent;\n font-size: 16px; /* iOS doesn\'t zoom into inputs of 16px and up */\n letter-spacing: -1em;\n cursor: text;\n appearance: none;\n}\n.ui-otp__input::selection { background: transparent; }\n.ui-otp__input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px transparent inset; transition: background-color 9999s; }\n.ui-otp__input[readonly], .ui-otp__input:disabled { cursor: default; }\n/* Keyboard focus is shown by the ring – a thin outline joins it for keyboard users */\n.ui-otp__slots:has(.ui-otp__input:focus-visible) .ui-otp__ring { box-shadow: inset 0 0 0 1.5px var(--ui-otp-ink), 0 0 0 4px var(--ui-otp-halo), 0 0 0 6px var(--ui-otp-focus); }\n\n/* Verifying: a soft light passes over the boxes, one after another */\n.ui-otp__box::after {\n content: "";\n position: absolute;\n inset: 0;\n background: linear-gradient(100deg, transparent 20%, var(--ui-otp-shine) 50%, transparent 80%);\n transform: translateX(-120%);\n opacity: 0;\n pointer-events: none;\n}\n.ui-otp[data-status="verifying"] .ui-otp__box::after { opacity: 1; animation: ui-otp-shimmer 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms); }\n.ui-otp[data-status="verifying"] .ui-otp__box { background: var(--ui-otp-wait); box-shadow: inset 0 0 0 1px var(--ui-otp-line); color: var(--ui-otp-text); }\n\n/* Error: only the borders turn red */\n.ui-otp[data-error] .ui-otp__box { box-shadow: inset 0 0 0 1px var(--ui-otp-danger-line); }\n.ui-otp[data-error] .ui-otp__ring { box-shadow: inset 0 0 0 1.5px var(--ui-otp-danger), 0 0 0 4px var(--ui-otp-danger-halo); }\n.ui-otp[data-error] .ui-otp__caret { background: var(--ui-otp-danger); }\n\n/* Success: the boxes slide together and fade while one frame morphs into the "Verified" pill */\n.ui-otp__pill {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 1;\n display: grid;\n place-items: center;\n height: calc(var(--size) * 1.18);\n overflow: hidden;\n border-radius: calc(var(--size) * 0.24);\n background: var(--ui-otp-card);\n box-shadow: inset 0 0 0 1px var(--ui-otp-line-strong);\n opacity: 0;\n transform: translate(-50%, -50%);\n pointer-events: none;\n transition: width 300ms var(--ui-otp-ease), border-radius 300ms var(--ui-otp-ease), opacity 160ms ease 140ms;\n}\n.ui-otp__pill-inner {\n display: inline-flex;\n align-items: center;\n gap: 7px;\n padding: 0 18px 0 15px;\n font-size: 14px;\n font-weight: 500;\n white-space: nowrap;\n color: var(--ui-otp-ink);\n opacity: 0;\n transition: opacity 160ms ease;\n}\n.ui-otp__check { width: 17px; height: 17px; fill: none; stroke: var(--ui-otp-success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }\n.ui-otp__check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 120ms ease; }\n.ui-otp[data-status="success"] .ui-otp__box {\n transform: translateX(calc(((var(--n) - 1) / 2 - var(--i)) * (var(--size) + var(--ui-otp-gap)))) scale(0.7);\n opacity: 0;\n transition: transform 340ms var(--ui-otp-ease), opacity 220ms ease 120ms;\n}\n.ui-otp[data-status="success"] .ui-otp__sep { opacity: 0; }\n.ui-otp[data-status="success"] .ui-otp__pill {\n border-radius: 999px;\n opacity: 1;\n transition: width 460ms var(--ui-otp-ease) 220ms, border-radius 460ms var(--ui-otp-ease) 220ms, opacity 160ms ease 120ms;\n}\n.ui-otp[data-status="success"] .ui-otp__pill-inner { opacity: 1; transition: opacity 240ms ease 460ms; }\n.ui-otp[data-status="success"] .ui-otp__check path { stroke-dashoffset: 0; transition: stroke-dashoffset 380ms var(--ui-otp-ease) 560ms; }\n\n/* The error message grows in below, then folds away */\n.ui-otp__msg { display: grid; grid-template-rows: 0fr; width: 100%; transition: grid-template-rows 300ms var(--ui-otp-ease); }\n.ui-otp__msg[data-show] { grid-template-rows: 1fr; }\n.ui-otp__msg-inner { min-height: 0; overflow: hidden; }\n.ui-otp__msg-text {\n margin: 0;\n padding-top: 10px;\n font-size: 13px;\n text-wrap: balance;\n color: var(--ui-otp-text);\n opacity: 0;\n transform: translateY(-4px);\n transition: opacity 200ms ease, transform 300ms var(--ui-otp-ease);\n}\n.ui-otp__msg[data-show] .ui-otp__msg-text { opacity: 1; transform: none; transition-delay: 60ms; }\n/* The icon sits inline, so a wrapped message stays centered with it */\n.ui-otp__alert { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; fill: none; stroke: var(--ui-otp-danger); stroke-width: 2; stroke-linecap: round; }\n\n/* Resend: a countdown that turns into a button */\n.ui-otp__resend { margin-top: 14px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ui-otp-muted); transition: opacity 220ms ease; }\n.ui-otp__resend[data-hidden] { opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 0s 220ms; }\n.ui-otp__swap { display: inline-block; animation: ui-otp-in 260ms var(--ui-otp-ease) both; }\n.ui-otp__wait { color: var(--ui-otp-text); }\n.ui-otp__time { display: inline-block; min-width: 3.4ch; text-align: left; }\n.ui-otp__resend-btn {\n position: relative;\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n font: inherit;\n font-weight: 500;\n color: var(--ui-otp-accent);\n cursor: pointer;\n}\n.ui-otp__resend-btn::before { content: ""; position: absolute; inset: -6px -8px; border-radius: 8px; }\n.ui-otp__resend-btn:hover { text-decoration: underline; text-underline-offset: 3px; }\n.ui-otp__resend-btn:focus-visible { outline: 2px solid var(--ui-otp-focus); outline-offset: 3px; border-radius: 4px; }\n.ui-otp__resend-btn:disabled { color: var(--ui-otp-muted); cursor: default; text-decoration: none; }\n.ui-otp__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n\n@keyframes ui-otp-pop { from { opacity: 0; transform: translateY(4px) scale(0.7); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }\n@keyframes ui-otp-out { to { opacity: 0; transform: translateY(-4px) scale(0.8); filter: blur(2px); } }\n@keyframes ui-otp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }\n@keyframes ui-otp-shimmer { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }\n@keyframes ui-otp-in { from { opacity: 0; transform: translateY(3px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }\n\n/* Narrow containers (phones): tighter gaps, the question before "Resend" drops first */\n@container (max-width: 360px) {\n .ui-otp__slots { --ui-otp-gap: 6px; }\n .ui-otp__sep { width: 8px; }\n}\n@container (max-width: 250px) {\n .ui-otp__resend-q { display: none; }\n}\n/* Touch screens: a bigger target for Resend */\n@media (hover: none) and (pointer: coarse) {\n .ui-otp__resend-btn::before { inset: -11px -12px; }\n}\n@media (prefers-reduced-motion: reduce) {\n .ui-otp *, .ui-otp *::before, .ui-otp *::after { animation: none !important; transition: none !important; }\n .ui-otp__caret[data-show] { opacity: 1; }\n}\n\n/* Dark mode: follows a .dark class or data-theme="dark" on any ancestor, e.g. <html> */\n:where(.dark, [data-theme="dark"]) .ui-otp {\n --ui-otp-bg: #1d1d20;\n --ui-otp-card: #19191b;\n --ui-otp-line: #2a2a2e;\n --ui-otp-line-strong: #3a3a40;\n --ui-otp-ink: #ededed;\n --ui-otp-text: #c8c8cc;\n --ui-otp-muted: #8b8b92;\n --ui-otp-faint: #4a4a50;\n --ui-otp-halo: rgba(255, 255, 255, 0.08);\n --ui-otp-wait: #1d1d20;\n --ui-otp-shine: rgba(255, 255, 255, 0.07);\n --ui-otp-danger: #ff6369;\n --ui-otp-danger-line: rgba(255, 99, 105, 0.55);\n --ui-otp-danger-halo: rgba(255, 99, 105, 0.14);\n --ui-otp-success: #4cc38a;\n --ui-otp-accent: #6d8bff;\n --ui-otp-focus: rgba(255, 255, 255, 0.3);\n}\n';n(1261),n(709);let u=n(5704).env.NEXT_PUBLIC_AGENTTWIN_API_URL||"https://api.agenttwin.si";function c(e){let{signup:t=!1}=e,[n,s]=(0,a.useState)(t),[l,c]=(0,a.useState)("email"),[d,p]=(0,a.useState)(""),[h,f]=(0,a.useState)(!1),[g,m]=(0,a.useState)(""),[x,b]=(0,a.useState)(""),[v,y]=(0,a.useState)(!1),[w,_]=(0,a.useState)(""),[k,j]=(0,a.useState)(!1),C=(0,a.useRef)(null);async function N(){let e=await fetch(u+"/v1/auth/email/start",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:g.trim().toLowerCase()}),signal:AbortSignal.timeout(2e4)}),t=await e.json();if(!e.ok)throw Error(404===e.status?"Email verification is being updated. Please use Google sign-in for now.":t.error||"Could not send your code.");m(g.trim().toLowerCase()),p(""),f(!1),c("code")}async function S(e){if(!v&&!h&&8===e.length){y(!0),_("");try{let t=await fetch(u+"/v1/auth/email/verify",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e}),signal:AbortSignal.timeout(2e4)}),n=await t.json();if(!t.ok)throw Error(n.error||"Could not verify your email.");("signup"===n.next||"login"===n.next)&&s("signup"===n.next),f(!0),await new Promise(e=>setTimeout(e,850)),p(""),c("password")}catch(e){_(e instanceof Error?e.message:"Could not verify your email.")}finally{y(!1)}}}async function T(e){if(e.preventDefault(),!v){if("code"===l)return void await S(d);_(""),y(!0);try{if("email"===l){if("demo@agenttwin.si"===g.trim().toLowerCase()){s(!1),c("password");return}await N();return}let e=await fetch(u+"/v1/auth/"+(n?"signup":"login"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:g,password:x}),signal:AbortSignal.timeout(2e4)}),t=await e.json();if(!e.ok)throw Error(t.error||"Unable to sign in. Please try again.");if(!(await fetch(u+"/v1/auth/me",{credentials:"include",signal:AbortSignal.timeout(1e4)})).ok)throw Error("Your browser could not save the session. Allow cookies for AgentTwin and try again.");location.assign(n||k?"/onboarding/":"/dashboard/#home")}catch(e){_(e instanceof TypeError?"Could not connect to AgentTwin. Please try again.":e instanceof Error?e.message:"Unable to connect. Please try again.")}finally{y(!1)}}}(0,a.useEffect)(()=>{let e=new URLSearchParams(location.search);j("onboarding"===e.get("next"));let t=e.get("auth_error");t&&_("existing_account"===t?"An account already uses this email. Sign in with the method you used to create it.":"verified_email"===t?"Your provider must supply a verified email address. Verify your email there or continue with email.":"Provider sign-in was cancelled or could not be completed. Please try again.")},[]),(0,a.useEffect)(()=>{var e;"email"!==l&&(null==(e=C.current)||e.focus())},[l]);let E="code"===l?"Check your email":n?"Create your account":"Log in to AgentTwin",A=(n?"/login/":"/signup/")+(k?"?next=onboarding":"");return(0,i.jsxs)("main",{className:"auth-page auth-entry vercel-auth vercel-entry".concat(n?" vercel-signup":" vercel-login"),children:[(0,i.jsxs)("header",{className:"auth-header",children:[(0,i.jsx)("a",{className:"auth-brand",href:"/","aria-label":"AgentTwin home",children:(0,i.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"26",height:"26",alt:""})}),(0,i.jsx)("a",{className:"auth-header-link",href:A,children:n?"Log in":"Sign up"})]}),(0,i.jsxs)("section",{className:"auth-card auth-entry-card","aria-labelledby":"auth-title",children:[(0,i.jsx)("h1",{id:"auth-title",ref:C,tabIndex:-1,children:E}),"email"!==l&&(0,i.jsxs)("div",{className:"auth-email-summary",children:[(0,i.jsx)("span",{children:g}),(0,i.jsx)("button",{type:"button",className:"auth-text-button",onClick:()=>{_(""),c("email")},disabled:v,children:"Change"})]}),(0,i.jsxs)("form",{onSubmit:T,"aria-busy":v,children:[!n&&"password"===l&&(0,i.jsx)("p",{className:"auth-provider-note",children:"Use your AgentTwin password. If you joined with Google, sign in with Google and create a password in Settings first."}),"email"===l&&(0,i.jsxs)("label",{htmlFor:"auth-email",children:["Email address",(0,i.jsx)("input",{id:"auth-email",name:"email",type:"email",autoComplete:"email",placeholder:"Email Address",value:g,onChange:e=>m(e.target.value),required:!0,maxLength:254})]}),"code"===l&&(0,i.jsxs)("div",{className:"auth-otp dark",children:[(0,i.jsxs)("p",{className:"auth-otp-description",children:["Enter the code sent to your email.",(0,i.jsx)("br",{}),"It expires in 10 minutes."]}),(0,i.jsx)(r,{length:8,separator:!0,value:d,align:"center",autoFocus:!0,status:h?"success":v?"verifying":w?"error":"idle",errorMessage:w,onChange:e=>{p(e),w&&_("")},onComplete:S,resendIn:60,onResend:async()=>{if(!v){y(!0),_("");try{await N()}catch(e){_(e instanceof Error?e.message:"Could not resend your code.")}finally{y(!1)}}}})]}),"password"===l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("label",{htmlFor:"auth-password",children:[n?"Create a password":"Password",(0,i.jsx)("input",{id:"auth-password",name:"password",type:"password",autoComplete:n?"new-password":"current-password",value:x,onChange:e=>b(e.target.value),minLength:12,maxLength:128,required:!0,"aria-describedby":n?"password-hint":void 0})]}),n&&(0,i.jsx)("small",{id:"password-hint",children:"Use at least 12 characters."})]}),w&&"code"!==l&&(0,i.jsx)("p",{role:"alert",className:"auth-error",children:w}),(0,i.jsx)("button",{className:"auth-primary",type:"submit",disabled:v||"code"===l&&8!==d.length,children:v?"code"===l?"Verifying…":"Connecting…":"email"===l?"Continue with Email":"code"===l?"Verify email":n?"Create account":"Log in"}),"email"!==l&&(0,i.jsx)("button",{className:"auth-text-button auth-step-back",type:"button",onClick:function(){_(""),c("email")},disabled:v,children:"Back"})]}),"email"===l&&(0,i.jsx)(o,{api:u,signup:n,onboarding:k,pending:v,setPending:y,setError:_}),(0,i.jsxs)("p",{className:"auth-switch",children:[n?"Already have an account?":"New to AgentTwin?"," ",(0,i.jsx)("a",{href:A,children:n?"Log in":"Sign up"})]})]}),(0,i.jsxs)("footer",{className:"auth-footer",children:[(0,i.jsx)("a",{href:"/docs/",children:"Documentation"}),(0,i.jsx)("a",{href:"/",children:"Back to AgentTwin"})]})]})}}}]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3184],{7277:(e,t,n)=>{function r(e,t){this.v=e,this.k=t}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t,n;function i(t,n){try{var o=e[t](n),a=o.value,s=a instanceof r;Promise.resolve(s?a.v:a).then(function(n){if(s){var r="return"===t&&a.k?t:"next";if(!a.k||n.done)return i(r,n);n=e[r](n).value}l(!!o.done,n)},function(e){i("throw",e)})}catch(e){l(2,e)}}function l(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(l,o){var a={key:e,arg:r,resolve:l,reject:o,next:null};n?n=n.next=a:(t=n=a,i(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}n.d(t,{A:()=>eT}),l.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},l.prototype.next=function(e){return this._invoke("next",e)},l.prototype.throw=function(e){return this._invoke("throw",e)},l.prototype.return=function(e){return this._invoke("return",e)};let o=Object.entries,a=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,p=Object.freeze,h=Object.seal,f=Object.create,d="undefined"!=typeof Reflect&&Reflect,g=d.apply,m=d.construct;p||(p=function(e){return e}),h||(h=function(e){return e}),g||(g=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),m||(m=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let k=F(Array.prototype.forEach);Array.prototype.indexOf;let b=F(Array.prototype.lastIndexOf),x=F(Array.prototype.pop),y=F(Array.prototype.push),w=F(Array.prototype.slice),S=F(Array.prototype.splice),T=Array.isArray,A=j(Set),_=F(Set.prototype.add),R=F(Set.prototype.has),E=F(String.prototype.toLowerCase),v=F(String.prototype.toString),z=F(String.prototype.match),$=F(String.prototype.replace),C=F(String.prototype.indexOf),P=F(String.prototype.trim),I=F(Number.prototype.toString),O=F(Boolean.prototype.toString),D="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),N=F(Object.prototype.hasOwnProperty),M=F(Object.prototype.toString),B=F(RegExp.prototype.test),U=j(TypeError);function F(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return g(e,t,r)}}function j(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(e,n)}}function q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;if(a&&a(e,null),!T(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(s(t)||(t[r]=e),i=e)}e[i]=!0}return e}function H(e){let t=f(null);for(let r of o(e)){var n=function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,o,a=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(r,2)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let l=n[0],o=n[1];N(e,l)&&(T(o)?t[l]=function(e){for(let t=0;t<e.length;t++)N(e,t)||(e[t]=null);return e}(o):o&&"object"==typeof o&&o.constructor===Object?t[l]=H(o):t[l]=o)}return t}function Z(e,t){for(;null!==e;){let n=u(e,t);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}e=c(e)}return function(){return null}}let W=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),G=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Y=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Q=p(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),X=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),K=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=p(["#text"]),J=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ee=p(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),et=p(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),en=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),er=h(/{{[\w\W]*|^[\w\W]*}}/g),ei=h(/<%[\w\W]*|^[\w\W]*%>/g),el=h(/\${[\w\W]*/g),eo=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),ea=h(/^aria-[\-\w]+$/),es=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ec=h(/^(?:\w+script|data):/i),eu=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ep=h(/^html$/i),eh=h(/^[a-z][.\w]*(-[.\w]+)+$/i),ef=h(/<[/\w!]/g),ed=h(/<[/\w]/g),eg=h(/<\/no(script|embed|frames)/i),em=h(/\/>/i),ek={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},eb=p(q({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),ex=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ey=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ew=function(e,t,n,r){return N(e,t)&&T(e[t])?q(r.base?H(r.base):{},e[t],r.transform):n},eS=function(e,t,n){let r=N(e,t)?e[t]:void 0;return r&&"object"==typeof r?H(r):n()};var eT=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.4.17",i.removed=[],!r||!r.document||r.document.nodeType!==ek.document||!r.Element)return i.isSupported=!1,i;let l=r.document,a=l,s=a.currentScript;r.DocumentFragment;let d=r.HTMLTemplateElement,g=r.Node,m=r.Element,j=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let eT=r.DOMParser,eA=r.trustedTypes,e_=m.prototype,eR=Z(e_,"cloneNode"),eE=Z(e_,"remove"),ev=Z(e_,"removeAttributeNode"),ez=Z(e_,"nextSibling"),e$=Z(e_,"childNodes"),eC=Z(e_,"parentNode"),eP=Z(e_,"shadowRoot"),eI=Z(e_,"attributes"),eO=g&&g.prototype?Z(g.prototype,"nodeType"):null,eD=g&&g.prototype?Z(g.prototype,"nodeName"):null,eL=g&&g.prototype?Z(g.prototype,"ownerDocument"):null,eN=function(e){return eO?eO(e):e.nodeType},eM=function(e){return eD?eD(e):e.nodeName},eB=function(e,t){for(;null!==e;){let n=u(e,t);if(n)return n.get?F(n.get):null;e=c(e)}return null}(e_,"namespaceURI"),eU=function(e){return eB?eB(e):e.namespaceURI};if("function"==typeof d){let e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}let eF="",ej=!1,eq=0,eH=function(){if(eq>0)throw U('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eZ=function(e){eH(),eq++;try{return t.createHTML(e)}finally{eq--}},eW=function(e){eH(),eq++;try{return t.createScriptURL(e)}finally{eq--}},eG=l,eY=eG.implementation,eQ=eG.createNodeIterator,eX=eG.createDocumentFragment,eK=eG.getElementsByTagName,eV=a.importNode,eJ=ey();i.isSupported="function"==typeof o&&"function"==typeof eC&&eY&&void 0!==eY.createHTMLDocument;let e0=es,e1=null,e3=q({},[...W,...G,...Y,...X,...V]),e2=null,e9=q({},[...J,...ee,...et,...en]),e4=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),e6=null,e7=null,e5=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),e8=!0,te=!0,tt=!1,tn=!0,tr=!1,ti=!0,tl=!1,to=!1,ta=null,ts=null,tc=!1,tu=!1,tp=!1,th=!1,tf=!0,td=!1,tg="user-content-",tm=!0,tk=!1,tb=null,tx={},ty=null,tw=q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),tS=null,tT=q({},["audio","video","img","source","image","track"]),tA=null,t_=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tR="http://www.w3.org/1998/Math/MathML",tE="http://www.w3.org/2000/svg",tv="http://www.w3.org/1999/xhtml",tz=tv,t$=!1,tC=null,tP=q({},[tR,tE,tv],v),tI=p(["mi","mo","mn","ms","mtext"]),tO=q({},tI),tD=p(["annotation-xml"]),tL=q({},tD),tN=q({},["title","style","font","a","script"]),tM=null,tB=["application/xhtml+xml","text/html"],tU=null,tF=null,tj=l.createElement("form"),tq=function(e){return e instanceof RegExp||e instanceof Function},tH=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tF&&tF===e)return;e&&"object"==typeof e||(e={}),e=H(e),tU="application/xhtml+xml"===(tM=-1===tB.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?v:E,e1=ew(e,"ALLOWED_TAGS",e3,{transform:tU}),e2=ew(e,"ALLOWED_ATTR",e9,{transform:tU}),tC=ew(e,"ALLOWED_NAMESPACES",tP,{transform:v}),tA=ew(e,"ADD_URI_SAFE_ATTR",t_,{transform:tU,base:t_}),tS=ew(e,"ADD_DATA_URI_TAGS",tT,{transform:tU,base:tT}),ty=ew(e,"FORBID_CONTENTS",tw,{transform:tU}),e6=ew(e,"FORBID_TAGS",H({}),{transform:tU}),e7=ew(e,"FORBID_ATTR",H({}),{transform:tU}),tx=!!N(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?H(e.USE_PROFILES):e.USE_PROFILES),e8=!1!==e.ALLOW_ARIA_ATTR,te=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tn=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,tr=e.SAFE_FOR_TEMPLATES||!1,ti=!1!==e.SAFE_FOR_XML,tl=e.WHOLE_DOCUMENT||!1,tu=e.RETURN_DOM||!1,tp=e.RETURN_DOM_FRAGMENT||!1,th=e.RETURN_TRUSTED_TYPE||!1,tc=e.FORCE_BODY||!1,tf=!1!==e.SANITIZE_DOM,td=e.SANITIZE_NAMED_PROPS||!1,tm=!1!==e.KEEP_CONTENT,tk=e.IN_PLACE||!1,e0=!function(e){try{return B(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?es:e.ALLOWED_URI_REGEXP,tz="string"==typeof e.NAMESPACE?e.NAMESPACE:tv,tO=eS(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>q({},tI)),tL=eS(e,"HTML_INTEGRATION_POINTS",()=>q({},tD));let r=eS(e,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(e4=f(null),N(r,"tagNameCheck")&&tq(r.tagNameCheck)&&(e4.tagNameCheck=r.tagNameCheck),N(r,"attributeNameCheck")&&tq(r.attributeNameCheck)&&(e4.attributeNameCheck=r.attributeNameCheck),N(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(e4.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),h(e4),tr&&(te=!1),tp&&(tu=!0),tx&&(e1=q({},V),e2=f(null),!0===tx.html&&(q(e1,W),q(e2,J)),!0===tx.svg&&(q(e1,G),q(e2,ee),q(e2,en)),!0===tx.svgFilters&&(q(e1,Y),q(e2,ee),q(e2,en)),!0===tx.mathMl&&(q(e1,X),q(e2,et),q(e2,en))),e5.tagCheck=null,e5.attributeCheck=null,N(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?e5.tagCheck=e.ADD_TAGS:T(e.ADD_TAGS)&&(e1===e3&&(e1=H(e1)),q(e1,e.ADD_TAGS,tU))),N(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?e5.attributeCheck=e.ADD_ATTR:T(e.ADD_ATTR)&&(e2===e9&&(e2=H(e2)),q(e2,e.ADD_ATTR,tU))),N(e,"ADD_FORBID_CONTENTS")&&T(e.ADD_FORBID_CONTENTS)&&(ty===tw&&(ty=H(ty)),q(ty,e.ADD_FORBID_CONTENTS,tU)),tm&&(e1["#text"]=!0),tl&&q(e1,["html","head","body"]),e1.table&&(q(e1,["tbody"]),delete e6.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{eF=eZ("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eF=""):(void 0===t&&(ej||(n=ex(eA,s),ej=!0),t=n),t&&"string"==typeof eF&&(eF=eZ("")));p&&p(e),tF=e},tZ=q({},[...G,...Y,...Q]),tW=q({},[...X,...K]),tG=function(e){var t,n,r,i,l,o;let a,s,c=eU(e),u=E(eM(e)),p=eC(e);return p&&eN(p)===ek.element?(a={namespaceURI:eU(p)},s=E(eM(p))):(a={namespaceURI:tz},s="template"),!!tC[c]&&(c===tE?(t=a,n=s,t.namespaceURI===tv?"svg"===u:t.namespaceURI===tR?"svg"===u&&("annotation-xml"===n||tO[n]):!!tZ[u]):c===tR?(r=a,i=s,r.namespaceURI===tv?"math"===u:r.namespaceURI===tE?"math"===u&&tL[i]:!!tW[u]):c===tv?(l=a,o=s,(l.namespaceURI!==tE||!!tL[o])&&(l.namespaceURI!==tR||!!tO[o])&&!tW[u]&&(tN[u]||!tZ[u])):"application/xhtml+xml"===tM&&!!tC[c])},tY=function(e){y(i.removed,{element:e});try{eC(e).removeChild(e)}catch(t){if(eE(e),!eC(e))throw U("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tQ=function(e,t,n){try{ev(e,t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tX=function(e){t0(e);let t=e$(e);t&&k(w(t),e=>{try{eE(e)}catch(e){}});let n=eN(e)===ek.element?eI(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;"string"==typeof i&&tQ(e,r,i)}},tK=function(e,t,n){if(!n)try{n=t.getAttributeNode(e)}catch(e){n=null}y(i.removed,{attribute:n||null,from:t});try{n?ev(t,n):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(tu||tp)try{tY(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tV=function(e){let t=eI(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;"string"!=typeof i||e2[tU(i)]||tQ(e,r,i)}},tJ=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(!1===t(e))continue;if(n&&eN(e)===ek.element){let t=eP(e);nl(t)&&r.push(t)}let i=e$(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},t0=function(e){tJ(e,e=>{eN(e)===ek.element&&tV(e)})},t1=function(e){let t=[];return tJ(e,e=>{t.push(e)},!0),t},t3=function(e,t){let n=A();k(t1(e),e=>{eN(e)===ek.element&&_(n,e)}),k(t,e=>{eN(e)!==ek.element||R(n,e)||tV(e)})},t2=function(e,t){let n=!1;return k(i.removed,t=>{t.element&&(n=n||t.element===e,t0(t.element))}),t3(e,t),n},t9=function(e,t){let n=tb,r=null,i=()=>(r||(r=A(),k(t,e=>{_(r,e)})),r);for(let t=0;;t++){let r=t1(e),l=[e],o=!1;if(k(r,e=>{eN(e)===ek.documentFragment?y(l,e):o||R(n,e)||(o=R(i(),e))}),!o)return;if(t>=8)throw U("the tree kept changing during in-place sanitization; refusing to return it");k(l,(t,n)=>{t4(t,n>0,e,i())})}},t4=function(e,t,n,r){let i,l=ne(e);for(;i=l.nextNode();)!(!R(r,i)||R(tb,i))&&(t&&na(eJ.uponSanitizeShadowNode,i,null),nh(i,n),nx(i,n),nl(i.content)&&ny(i.content))},t6=function(e){tb&&_(tb,e)},t7=function(e,t){return!!ti&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},t5=function(e){ti&&tJ(e,e=>{let t=eN(e);if(t===ek.processingInstruction||t===ek.comment&&B(ed,e.data)){try{eE(e)}catch(e){}return!1}if(t===ek.element){let t=tU(eM(e));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&t7("for",t)&&e.removeAttribute("for")}catch(e){}}return!0})},t8=function(e){let n=null,r=null;if(tc)e="<remove></remove>"+e;else{let t=z(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tM&&tz===tv&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?eZ(e):e;if(tz===tv)try{n=new eT().parseFromString(i,tM)}catch(e){}if(!n||!n.documentElement){n=eY.createDocument(tz,"template",null);try{n.documentElement.innerHTML=t$?eF:i}catch(e){}}let o=n.body||n.documentElement;return(e&&r&&o.insertBefore(l.createTextNode(r),o.childNodes[0]||null),tz===tv)?eK.call(n,tl?"html":"body")[0]:tl?n.documentElement:o},ne=function(e){let t=eL?eL(e):e.ownerDocument;return eQ.call(t||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},nt=function(e){return e=$(e,er," "),e=$(e,ei," "),e=$(e,el," ")},nn=function(e){var t;nr(e);let n=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");n&&k(n,e=>{nl(e.content)&&nn(e.content)})},nr=function(e){e.normalize();let t=eL?eL(e):e.ownerDocument,n=eQ.call(t||e,e,j.SHOW_TEXT|j.SHOW_COMMENT|j.SHOW_CDATA_SECTION|j.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=nt(r.data),r=n.nextNode()},ni=function(e){let t=eD?eD(e):null;return"string"==typeof t&&"form"===tU(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eI(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eO(e)||e.childNodes!==e$(e))},nl=function(e){if(!eO||"object"!=typeof e||null===e)return!1;try{return eO(e)===ek.documentFragment}catch(e){return!1}},no=function(e){if(!eO||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eO(e)}catch(e){return!1}};function na(e,t,n){0!==e.length&&k(e,e=>{e.call(i,t,n,tF)})}let ns=function(e,t){if(e instanceof RegExp)return B(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},nc=function(e,t,n){if(!e6[t]&&ng(t)&&ns(e4.tagNameCheck,t))return!1;if(tm&&!ty[t]&&!ty[E(t)]){let t=eC(e),r=e$(e);if(r&&t){let i=r.length;for(let l=i-1;l>=0;--l){let i=e===n?eR(r[l],!0):r[l];t.insertBefore(i,ez(e))}}}return tY(e),!0},nu=function(e,t,n,r){return 0===e.length?t:t===n||t===r?H(t):t},np=function(e,t){return e!==t&&null===eC(e)&&(tk&&t0(e),!0)},nh=function(e,t){if(t6(e),na(eJ.beforeSanitizeElements,e,null),np(e,t))return!0;if(ni(e))return tY(e),!0;let n=tU(eM(e));if(e1=nu(eJ.uponSanitizeElement,e1,e3,ta),na(eJ.uponSanitizeElement,e,{tagName:n,allowedTags:e1}),np(e,t))return!0;if(ti&&e.hasChildNodes()&&!no(e.firstElementChild)&&B(ef,e.textContent)&&B(ef,e.innerHTML)||ti&&eb[n]&&eN(e)===ek.element&&eU(e)===tv&&(no(e.firstElementChild)||"string"==typeof e.textContent&&B(ef,e.textContent))||e.nodeType===ek.processingInstruction||ti&&e.nodeType===ek.comment&&B(ed,e.data))return tY(e),!0;if(e6[n]||!(e5.tagCheck instanceof Function&&e5.tagCheck(n))&&!e1[n]){let r=nc(e,n,t);return!!(!1===r&&(na(eJ.afterSanitizeElements,e,null),np(e,t)))||r}if(eN(e)===ek.element&&!tG(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&B(eg,e.innerHTML))return tY(e),!0;if(tr&&e.nodeType===ek.text){let t=nt(e.textContent);e.textContent!==t&&(y(i.removed,{element:e.cloneNode()}),e.textContent=t)}return na(eJ.afterSanitizeElements,e,null),np(e,t)},nf=function(e,t,n){if(e7[t]||t7(t,e)||tf&&("id"===t||"name"===t)&&(n in l||n in tj))return!1;let r=e2[t]||e5.attributeCheck instanceof Function&&e5.attributeCheck(t,e);return!!(te&&B(eo,t)||e8&&B(ea,t))||(r?!(!(tA[t]||B(e0,$(n,eu,"")))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!tS[e])&&(!tt||B(ec,$(n,eu,""))))||!n:ng(e)&&ns(e4.tagNameCheck,e)&&ns(e4.attributeNameCheck,t,e)||"is"===t&&e4.allowCustomizedBuiltInElements&&ns(e4.tagNameCheck,n))},nd=q({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ng=function(e){return!nd[E(e)]&&B(eh,e)},nm=function(e,n,r,i){if(t&&"object"==typeof eA&&"function"==typeof eA.getAttributeType&&!r)switch(eA.getAttributeType(e,n)){case"TrustedHTML":return eZ(i);case"TrustedScriptURL":return eW(i)}return i},nk=function(e,t,n,r){try{if(n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),ni(e))return tY(e),!1;return!0}catch(n){return tK(t,e),!1}},nb=function(e,t){return!!(ti&&B(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t))||"attributename"===E(e)&&null!==z(t,"href")},nx=function(e,t){if(na(eJ.beforeSanitizeAttributes,e,null),np(e,t))return;let n=e.attributes;if(!n||ni(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:e2=nu(eJ.uponSanitizeAttribute,e2,e9,ts),forceKeepAttr:void 0},l=n.length,o=tU(e.nodeName);for(;l--;){let t=n[l],a=t.name,s=t.namespaceURI,c=t.value,u=tU(a),p="value"===a?c:P(c),h=!1;if(r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,na(eJ.uponSanitizeAttribute,e,r),p=r.attrValue,td&&("id"===u||"name"===u)&&0!==C(p,tg)&&(tK(a,e,t),p=tg+p,h=!0),nb(a,p)){tK(a,e,t);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!tn&&B(em,p)||(tr&&(p=nt(p)),!nf(o,u,p))){tK(a,e,t);continue}(p=nm(o,u,s,p))!==c&&nk(e,a,s,p)&&h&&x(i.removed)}}na(eJ.afterSanitizeAttributes,e,null),np(e,t)},ny=function(e){let t=null,n=ne(e);for(na(eJ.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(na(eJ.uponSanitizeShadowNode,t,null),nh(t,e),nx(t,e),nl(t.content)&&ny(t.content),eN(t)===ek.element){let e=eP(t);nl(e)&&(nw(e),ny(e))}tr&&nr(e),na(eJ.afterSanitizeShadowDOM,e,null)},nw=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){ny(e.shadow);continue}let n=e.node,r=eN(n)===ek.element,i=e$(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=eD?eD(n):null;if("string"==typeof e&&"template"===tU(e)){let e=n.content;nl(e)&&t.push({node:e,shadow:null})}}if(r){let e=eP(n);nl(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,l=null,o=null,s=null;if((t$=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!no(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return I(e);case"boolean":return O(e);case"bigint":return D?D(e):"0";case"symbol":return L?L(e):"Symbol()";case"undefined":default:return M(e);case"function":case"object":{if(null===e)return M(e);let t=Z(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:M(n)}return M(e)}}}(e)))throw U("dirty is not a string, aborting");if(!i.isSupported)return e;to?(e1=ta,e2=ts):tH(n),(eJ.uponSanitizeElement.length>0||eJ.uponSanitizeAttribute.length>0)&&(e1=H(e1)),eJ.uponSanitizeAttribute.length>0&&(e2=H(e2)),i.removed=[];let c=tk&&"string"!=typeof e&&no(e),u=[],p=tb;if(c){t5(e);let t=eM(e);if("string"==typeof t){let n=tU(t);if(!e1[n]||e6[n])throw tX(e),U("root node is forbidden and cannot be sanitized in-place")}if(ni(e))throw tX(e),U("root node is clobbered and cannot be sanitized in-place");u=t1(e),tb=A()}else if(no(e))(l=(r=t8("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===ek.element&&"BODY"===l.nodeName||"HTML"===l.nodeName?r=l:r.appendChild(l),nw(r);else{if(!tu&&!tr&&!tl&&-1===e.indexOf("<"))return t&&th?eZ(e):e;if(!(r=t8(e)))return tu?null:th?eF:""}r&&tc&&tY(r.firstChild);let h=c?e:r;try{c&&nw(e);let t=ne(h);for(;o=t.nextNode();)nh(o,h),nx(o,h),nl(o.content)&&ny(o.content);c&&t9(e,u)}catch(t){throw c&&(tX(e),t2(e,u)),t}finally{tb=p}if(c){if(t2(e,u))throw U("a node selected for removal could not be safely returned; refusing to sanitize in place");return tr&&nn(e),e}if(tu){if(tr&&nn(r),tp)for(s=eX.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(e2.shadowroot||e2.shadowrootmode)&&(s=eV.call(a,s,!0)),s}let f=tl?r.outerHTML:r.innerHTML;return tl&&e1["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&B(ep,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),tr&&(f=nt(f)),t&&th?eZ(f):f},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tH(e),to=!0,ta=e1,ts=e2},i.clearConfig=function(){tF=null,to=!1,ta=null,ts=null,t=n,eF=""},i.isValidAttribute=function(e,t,n){tF||tH({});let r=tU(e),i=tU(t);return!("string"==typeof n&&(nb(t,n)||!tn&&B(em,n)))&&nf(r,i,n)},i.addHook=function(e,t){"function"==typeof t&&N(eJ,e)&&y(eJ[e],t)},i.removeHook=function(e,t){if(N(eJ,e)){if(void 0!==t){let n=b(eJ[e],t);return -1===n?void 0:S(eJ[e],n,1)[0]}return x(eJ[e])}},i.removeHooks=function(e){N(eJ,e)&&(eJ[e]=[])},i.removeAllHooks=function(){eJ=ey()},i}()},7844:(e,t,n)=>{function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{xI:()=>eI});var i=r(),l={exec:()=>null};function o(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function a(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(c.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var s=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),c={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:o(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:o(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:o(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:</?(?:${x})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:o(e=>RegExp(`^ {0,${e}}>`))},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,h=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=a(h).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d=a(h).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,m=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,k=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=a(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),x="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",y=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,w=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",y).replace("tag",x).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S=e=>a(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex(),T=S(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),A=S(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),_={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:k,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:w,lheading:f,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:T,table:l,text:/^[^\n]+/},R=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex(),E={..._,lheading:d,table:R,paragraph:a(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex()},v={..._,html:a(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",y).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(g).replace("hr",u).replace("heading",` *#{1,6} *[^
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7772],{2931:(e,t,n)=>{function r(e,t){this.v=e,this.k=t}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t,n;function i(t,n){try{var o=e[t](n),a=o.value,s=a instanceof r;Promise.resolve(s?a.v:a).then(function(n){if(s){var r="return"===t&&a.k?t:"next";if(!a.k||n.done)return i(r,n);n=e[r](n).value}l(!!o.done,n)},function(e){i("throw",e)})}catch(e){l(2,e)}}function l(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(l,o){var a={key:e,arg:r,resolve:l,reject:o,next:null};n?n=n.next=a:(t=n=a,i(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}n.d(t,{A:()=>eT}),l.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},l.prototype.next=function(e){return this._invoke("next",e)},l.prototype.throw=function(e){return this._invoke("throw",e)},l.prototype.return=function(e){return this._invoke("return",e)};let o=Object.entries,a=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,p=Object.freeze,h=Object.seal,f=Object.create,d="undefined"!=typeof Reflect&&Reflect,g=d.apply,m=d.construct;p||(p=function(e){return e}),h||(h=function(e){return e}),g||(g=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),m||(m=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let k=F(Array.prototype.forEach);Array.prototype.indexOf;let b=F(Array.prototype.lastIndexOf),x=F(Array.prototype.pop),y=F(Array.prototype.push),w=F(Array.prototype.slice),S=F(Array.prototype.splice),T=Array.isArray,A=j(Set),_=F(Set.prototype.add),R=F(Set.prototype.has),E=F(String.prototype.toLowerCase),v=F(String.prototype.toString),z=F(String.prototype.match),$=F(String.prototype.replace),C=F(String.prototype.indexOf),P=F(String.prototype.trim),I=F(Number.prototype.toString),O=F(Boolean.prototype.toString),D="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),N=F(Object.prototype.hasOwnProperty),M=F(Object.prototype.toString),B=F(RegExp.prototype.test),U=j(TypeError);function F(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return g(e,t,r)}}function j(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(e,n)}}function q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;if(a&&a(e,null),!T(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(s(t)||(t[r]=e),i=e)}e[i]=!0}return e}function H(e){let t=f(null);for(let r of o(e)){var n=function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,o,a=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(r,2)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let l=n[0],o=n[1];N(e,l)&&(T(o)?t[l]=function(e){for(let t=0;t<e.length;t++)N(e,t)||(e[t]=null);return e}(o):o&&"object"==typeof o&&o.constructor===Object?t[l]=H(o):t[l]=o)}return t}function Z(e,t){for(;null!==e;){let n=u(e,t);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}e=c(e)}return function(){return null}}let W=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),G=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Y=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Q=p(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),X=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),K=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=p(["#text"]),J=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ee=p(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),et=p(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),en=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),er=h(/{{[\w\W]*|^[\w\W]*}}/g),ei=h(/<%[\w\W]*|^[\w\W]*%>/g),el=h(/\${[\w\W]*/g),eo=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),ea=h(/^aria-[\-\w]+$/),es=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ec=h(/^(?:\w+script|data):/i),eu=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ep=h(/^html$/i),eh=h(/^[a-z][.\w]*(-[.\w]+)+$/i),ef=h(/<[/\w!]/g),ed=h(/<[/\w]/g),eg=h(/<\/no(script|embed|frames)/i),em=h(/\/>/i),ek={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},eb=p(q({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),ex=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ey=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ew=function(e,t,n,r){return N(e,t)&&T(e[t])?q(r.base?H(r.base):{},e[t],r.transform):n},eS=function(e,t,n){let r=N(e,t)?e[t]:void 0;return r&&"object"==typeof r?H(r):n()};var eT=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.4.17",i.removed=[],!r||!r.document||r.document.nodeType!==ek.document||!r.Element)return i.isSupported=!1,i;let l=r.document,a=l,s=a.currentScript;r.DocumentFragment;let d=r.HTMLTemplateElement,g=r.Node,m=r.Element,j=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let eT=r.DOMParser,eA=r.trustedTypes,e_=m.prototype,eR=Z(e_,"cloneNode"),eE=Z(e_,"remove"),ev=Z(e_,"removeAttributeNode"),ez=Z(e_,"nextSibling"),e$=Z(e_,"childNodes"),eC=Z(e_,"parentNode"),eP=Z(e_,"shadowRoot"),eI=Z(e_,"attributes"),eO=g&&g.prototype?Z(g.prototype,"nodeType"):null,eD=g&&g.prototype?Z(g.prototype,"nodeName"):null,eL=g&&g.prototype?Z(g.prototype,"ownerDocument"):null,eN=function(e){return eO?eO(e):e.nodeType},eM=function(e){return eD?eD(e):e.nodeName},eB=function(e,t){for(;null!==e;){let n=u(e,t);if(n)return n.get?F(n.get):null;e=c(e)}return null}(e_,"namespaceURI"),eU=function(e){return eB?eB(e):e.namespaceURI};if("function"==typeof d){let e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}let eF="",ej=!1,eq=0,eH=function(){if(eq>0)throw U('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eZ=function(e){eH(),eq++;try{return t.createHTML(e)}finally{eq--}},eW=function(e){eH(),eq++;try{return t.createScriptURL(e)}finally{eq--}},eG=l,eY=eG.implementation,eQ=eG.createNodeIterator,eX=eG.createDocumentFragment,eK=eG.getElementsByTagName,eV=a.importNode,eJ=ey();i.isSupported="function"==typeof o&&"function"==typeof eC&&eY&&void 0!==eY.createHTMLDocument;let e0=es,e1=null,e3=q({},[...W,...G,...Y,...X,...V]),e2=null,e9=q({},[...J,...ee,...et,...en]),e4=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),e6=null,e5=null,e7=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),e8=!0,te=!0,tt=!1,tn=!0,tr=!1,ti=!0,tl=!1,to=!1,ta=null,ts=null,tc=!1,tu=!1,tp=!1,th=!1,tf=!0,td=!1,tg="user-content-",tm=!0,tk=!1,tb=null,tx={},ty=null,tw=q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),tS=null,tT=q({},["audio","video","img","source","image","track"]),tA=null,t_=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tR="http://www.w3.org/1998/Math/MathML",tE="http://www.w3.org/2000/svg",tv="http://www.w3.org/1999/xhtml",tz=tv,t$=!1,tC=null,tP=q({},[tR,tE,tv],v),tI=p(["mi","mo","mn","ms","mtext"]),tO=q({},tI),tD=p(["annotation-xml"]),tL=q({},tD),tN=q({},["title","style","font","a","script"]),tM=null,tB=["application/xhtml+xml","text/html"],tU=null,tF=null,tj=l.createElement("form"),tq=function(e){return e instanceof RegExp||e instanceof Function},tH=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tF&&tF===e)return;e&&"object"==typeof e||(e={}),e=H(e),tU="application/xhtml+xml"===(tM=-1===tB.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?v:E,e1=ew(e,"ALLOWED_TAGS",e3,{transform:tU}),e2=ew(e,"ALLOWED_ATTR",e9,{transform:tU}),tC=ew(e,"ALLOWED_NAMESPACES",tP,{transform:v}),tA=ew(e,"ADD_URI_SAFE_ATTR",t_,{transform:tU,base:t_}),tS=ew(e,"ADD_DATA_URI_TAGS",tT,{transform:tU,base:tT}),ty=ew(e,"FORBID_CONTENTS",tw,{transform:tU}),e6=ew(e,"FORBID_TAGS",H({}),{transform:tU}),e5=ew(e,"FORBID_ATTR",H({}),{transform:tU}),tx=!!N(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?H(e.USE_PROFILES):e.USE_PROFILES),e8=!1!==e.ALLOW_ARIA_ATTR,te=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tn=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,tr=e.SAFE_FOR_TEMPLATES||!1,ti=!1!==e.SAFE_FOR_XML,tl=e.WHOLE_DOCUMENT||!1,tu=e.RETURN_DOM||!1,tp=e.RETURN_DOM_FRAGMENT||!1,th=e.RETURN_TRUSTED_TYPE||!1,tc=e.FORCE_BODY||!1,tf=!1!==e.SANITIZE_DOM,td=e.SANITIZE_NAMED_PROPS||!1,tm=!1!==e.KEEP_CONTENT,tk=e.IN_PLACE||!1,e0=!function(e){try{return B(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?es:e.ALLOWED_URI_REGEXP,tz="string"==typeof e.NAMESPACE?e.NAMESPACE:tv,tO=eS(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>q({},tI)),tL=eS(e,"HTML_INTEGRATION_POINTS",()=>q({},tD));let r=eS(e,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(e4=f(null),N(r,"tagNameCheck")&&tq(r.tagNameCheck)&&(e4.tagNameCheck=r.tagNameCheck),N(r,"attributeNameCheck")&&tq(r.attributeNameCheck)&&(e4.attributeNameCheck=r.attributeNameCheck),N(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(e4.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),h(e4),tr&&(te=!1),tp&&(tu=!0),tx&&(e1=q({},V),e2=f(null),!0===tx.html&&(q(e1,W),q(e2,J)),!0===tx.svg&&(q(e1,G),q(e2,ee),q(e2,en)),!0===tx.svgFilters&&(q(e1,Y),q(e2,ee),q(e2,en)),!0===tx.mathMl&&(q(e1,X),q(e2,et),q(e2,en))),e7.tagCheck=null,e7.attributeCheck=null,N(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?e7.tagCheck=e.ADD_TAGS:T(e.ADD_TAGS)&&(e1===e3&&(e1=H(e1)),q(e1,e.ADD_TAGS,tU))),N(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?e7.attributeCheck=e.ADD_ATTR:T(e.ADD_ATTR)&&(e2===e9&&(e2=H(e2)),q(e2,e.ADD_ATTR,tU))),N(e,"ADD_FORBID_CONTENTS")&&T(e.ADD_FORBID_CONTENTS)&&(ty===tw&&(ty=H(ty)),q(ty,e.ADD_FORBID_CONTENTS,tU)),tm&&(e1["#text"]=!0),tl&&q(e1,["html","head","body"]),e1.table&&(q(e1,["tbody"]),delete e6.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{eF=eZ("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eF=""):(void 0===t&&(ej||(n=ex(eA,s),ej=!0),t=n),t&&"string"==typeof eF&&(eF=eZ("")));p&&p(e),tF=e},tZ=q({},[...G,...Y,...Q]),tW=q({},[...X,...K]),tG=function(e){var t,n,r,i,l,o;let a,s,c=eU(e),u=E(eM(e)),p=eC(e);return p&&eN(p)===ek.element?(a={namespaceURI:eU(p)},s=E(eM(p))):(a={namespaceURI:tz},s="template"),!!tC[c]&&(c===tE?(t=a,n=s,t.namespaceURI===tv?"svg"===u:t.namespaceURI===tR?"svg"===u&&("annotation-xml"===n||tO[n]):!!tZ[u]):c===tR?(r=a,i=s,r.namespaceURI===tv?"math"===u:r.namespaceURI===tE?"math"===u&&tL[i]:!!tW[u]):c===tv?(l=a,o=s,(l.namespaceURI!==tE||!!tL[o])&&(l.namespaceURI!==tR||!!tO[o])&&!tW[u]&&(tN[u]||!tZ[u])):"application/xhtml+xml"===tM&&!!tC[c])},tY=function(e){y(i.removed,{element:e});try{eC(e).removeChild(e)}catch(t){if(eE(e),!eC(e))throw U("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tQ=function(e,t,n){try{ev(e,t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tX=function(e){t0(e);let t=e$(e);t&&k(w(t),e=>{try{eE(e)}catch(e){}});let n=eN(e)===ek.element?eI(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;"string"==typeof i&&tQ(e,r,i)}},tK=function(e,t,n){if(!n)try{n=t.getAttributeNode(e)}catch(e){n=null}y(i.removed,{attribute:n||null,from:t});try{n?ev(t,n):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(tu||tp)try{tY(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tV=function(e){let t=eI(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;"string"!=typeof i||e2[tU(i)]||tQ(e,r,i)}},tJ=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(!1===t(e))continue;if(n&&eN(e)===ek.element){let t=eP(e);nl(t)&&r.push(t)}let i=e$(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},t0=function(e){tJ(e,e=>{eN(e)===ek.element&&tV(e)})},t1=function(e){let t=[];return tJ(e,e=>{t.push(e)},!0),t},t3=function(e,t){let n=A();k(t1(e),e=>{eN(e)===ek.element&&_(n,e)}),k(t,e=>{eN(e)!==ek.element||R(n,e)||tV(e)})},t2=function(e,t){let n=!1;return k(i.removed,t=>{t.element&&(n=n||t.element===e,t0(t.element))}),t3(e,t),n},t9=function(e,t){let n=tb,r=null,i=()=>(r||(r=A(),k(t,e=>{_(r,e)})),r);for(let t=0;;t++){let r=t1(e),l=[e],o=!1;if(k(r,e=>{eN(e)===ek.documentFragment?y(l,e):o||R(n,e)||(o=R(i(),e))}),!o)return;if(t>=8)throw U("the tree kept changing during in-place sanitization; refusing to return it");k(l,(t,n)=>{t4(t,n>0,e,i())})}},t4=function(e,t,n,r){let i,l=ne(e);for(;i=l.nextNode();)!(!R(r,i)||R(tb,i))&&(t&&na(eJ.uponSanitizeShadowNode,i,null),nh(i,n),nx(i,n),nl(i.content)&&ny(i.content))},t6=function(e){tb&&_(tb,e)},t5=function(e,t){return!!ti&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},t7=function(e){ti&&tJ(e,e=>{let t=eN(e);if(t===ek.processingInstruction||t===ek.comment&&B(ed,e.data)){try{eE(e)}catch(e){}return!1}if(t===ek.element){let t=tU(eM(e));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&t5("for",t)&&e.removeAttribute("for")}catch(e){}}return!0})},t8=function(e){let n=null,r=null;if(tc)e="<remove></remove>"+e;else{let t=z(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tM&&tz===tv&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?eZ(e):e;if(tz===tv)try{n=new eT().parseFromString(i,tM)}catch(e){}if(!n||!n.documentElement){n=eY.createDocument(tz,"template",null);try{n.documentElement.innerHTML=t$?eF:i}catch(e){}}let o=n.body||n.documentElement;return(e&&r&&o.insertBefore(l.createTextNode(r),o.childNodes[0]||null),tz===tv)?eK.call(n,tl?"html":"body")[0]:tl?n.documentElement:o},ne=function(e){let t=eL?eL(e):e.ownerDocument;return eQ.call(t||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},nt=function(e){return e=$(e,er," "),e=$(e,ei," "),e=$(e,el," ")},nn=function(e){var t;nr(e);let n=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");n&&k(n,e=>{nl(e.content)&&nn(e.content)})},nr=function(e){e.normalize();let t=eL?eL(e):e.ownerDocument,n=eQ.call(t||e,e,j.SHOW_TEXT|j.SHOW_COMMENT|j.SHOW_CDATA_SECTION|j.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=nt(r.data),r=n.nextNode()},ni=function(e){let t=eD?eD(e):null;return"string"==typeof t&&"form"===tU(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eI(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eO(e)||e.childNodes!==e$(e))},nl=function(e){if(!eO||"object"!=typeof e||null===e)return!1;try{return eO(e)===ek.documentFragment}catch(e){return!1}},no=function(e){if(!eO||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eO(e)}catch(e){return!1}};function na(e,t,n){0!==e.length&&k(e,e=>{e.call(i,t,n,tF)})}let ns=function(e,t){if(e instanceof RegExp)return B(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},nc=function(e,t,n){if(!e6[t]&&ng(t)&&ns(e4.tagNameCheck,t))return!1;if(tm&&!ty[t]&&!ty[E(t)]){let t=eC(e),r=e$(e);if(r&&t){let i=r.length;for(let l=i-1;l>=0;--l){let i=e===n?eR(r[l],!0):r[l];t.insertBefore(i,ez(e))}}}return tY(e),!0},nu=function(e,t,n,r){return 0===e.length?t:t===n||t===r?H(t):t},np=function(e,t){return e!==t&&null===eC(e)&&(tk&&t0(e),!0)},nh=function(e,t){if(t6(e),na(eJ.beforeSanitizeElements,e,null),np(e,t))return!0;if(ni(e))return tY(e),!0;let n=tU(eM(e));if(e1=nu(eJ.uponSanitizeElement,e1,e3,ta),na(eJ.uponSanitizeElement,e,{tagName:n,allowedTags:e1}),np(e,t))return!0;if(ti&&e.hasChildNodes()&&!no(e.firstElementChild)&&B(ef,e.textContent)&&B(ef,e.innerHTML)||ti&&eb[n]&&eN(e)===ek.element&&eU(e)===tv&&(no(e.firstElementChild)||"string"==typeof e.textContent&&B(ef,e.textContent))||e.nodeType===ek.processingInstruction||ti&&e.nodeType===ek.comment&&B(ed,e.data))return tY(e),!0;if(e6[n]||!(e7.tagCheck instanceof Function&&e7.tagCheck(n))&&!e1[n]){let r=nc(e,n,t);return!!(!1===r&&(na(eJ.afterSanitizeElements,e,null),np(e,t)))||r}if(eN(e)===ek.element&&!tG(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&B(eg,e.innerHTML))return tY(e),!0;if(tr&&e.nodeType===ek.text){let t=nt(e.textContent);e.textContent!==t&&(y(i.removed,{element:e.cloneNode()}),e.textContent=t)}return na(eJ.afterSanitizeElements,e,null),np(e,t)},nf=function(e,t,n){if(e5[t]||t5(t,e)||tf&&("id"===t||"name"===t)&&(n in l||n in tj))return!1;let r=e2[t]||e7.attributeCheck instanceof Function&&e7.attributeCheck(t,e);return!!(te&&B(eo,t)||e8&&B(ea,t))||(r?!(!(tA[t]||B(e0,$(n,eu,"")))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!tS[e])&&(!tt||B(ec,$(n,eu,""))))||!n:ng(e)&&ns(e4.tagNameCheck,e)&&ns(e4.attributeNameCheck,t,e)||"is"===t&&e4.allowCustomizedBuiltInElements&&ns(e4.tagNameCheck,n))},nd=q({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ng=function(e){return!nd[E(e)]&&B(eh,e)},nm=function(e,n,r,i){if(t&&"object"==typeof eA&&"function"==typeof eA.getAttributeType&&!r)switch(eA.getAttributeType(e,n)){case"TrustedHTML":return eZ(i);case"TrustedScriptURL":return eW(i)}return i},nk=function(e,t,n,r){try{if(n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),ni(e))return tY(e),!1;return!0}catch(n){return tK(t,e),!1}},nb=function(e,t){return!!(ti&&B(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t))||"attributename"===E(e)&&null!==z(t,"href")},nx=function(e,t){if(na(eJ.beforeSanitizeAttributes,e,null),np(e,t))return;let n=e.attributes;if(!n||ni(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:e2=nu(eJ.uponSanitizeAttribute,e2,e9,ts),forceKeepAttr:void 0},l=n.length,o=tU(e.nodeName);for(;l--;){let t=n[l],a=t.name,s=t.namespaceURI,c=t.value,u=tU(a),p="value"===a?c:P(c),h=!1;if(r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,na(eJ.uponSanitizeAttribute,e,r),p=r.attrValue,td&&("id"===u||"name"===u)&&0!==C(p,tg)&&(tK(a,e,t),p=tg+p,h=!0),nb(a,p)){tK(a,e,t);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!tn&&B(em,p)||(tr&&(p=nt(p)),!nf(o,u,p))){tK(a,e,t);continue}(p=nm(o,u,s,p))!==c&&nk(e,a,s,p)&&h&&x(i.removed)}}na(eJ.afterSanitizeAttributes,e,null),np(e,t)},ny=function(e){let t=null,n=ne(e);for(na(eJ.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(na(eJ.uponSanitizeShadowNode,t,null),nh(t,e),nx(t,e),nl(t.content)&&ny(t.content),eN(t)===ek.element){let e=eP(t);nl(e)&&(nw(e),ny(e))}tr&&nr(e),na(eJ.afterSanitizeShadowDOM,e,null)},nw=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){ny(e.shadow);continue}let n=e.node,r=eN(n)===ek.element,i=e$(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=eD?eD(n):null;if("string"==typeof e&&"template"===tU(e)){let e=n.content;nl(e)&&t.push({node:e,shadow:null})}}if(r){let e=eP(n);nl(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,l=null,o=null,s=null;if((t$=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!no(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return I(e);case"boolean":return O(e);case"bigint":return D?D(e):"0";case"symbol":return L?L(e):"Symbol()";case"undefined":default:return M(e);case"function":case"object":{if(null===e)return M(e);let t=Z(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:M(n)}return M(e)}}}(e)))throw U("dirty is not a string, aborting");if(!i.isSupported)return e;to?(e1=ta,e2=ts):tH(n),(eJ.uponSanitizeElement.length>0||eJ.uponSanitizeAttribute.length>0)&&(e1=H(e1)),eJ.uponSanitizeAttribute.length>0&&(e2=H(e2)),i.removed=[];let c=tk&&"string"!=typeof e&&no(e),u=[],p=tb;if(c){t7(e);let t=eM(e);if("string"==typeof t){let n=tU(t);if(!e1[n]||e6[n])throw tX(e),U("root node is forbidden and cannot be sanitized in-place")}if(ni(e))throw tX(e),U("root node is clobbered and cannot be sanitized in-place");u=t1(e),tb=A()}else if(no(e))(l=(r=t8("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===ek.element&&"BODY"===l.nodeName||"HTML"===l.nodeName?r=l:r.appendChild(l),nw(r);else{if(!tu&&!tr&&!tl&&-1===e.indexOf("<"))return t&&th?eZ(e):e;if(!(r=t8(e)))return tu?null:th?eF:""}r&&tc&&tY(r.firstChild);let h=c?e:r;try{c&&nw(e);let t=ne(h);for(;o=t.nextNode();)nh(o,h),nx(o,h),nl(o.content)&&ny(o.content);c&&t9(e,u)}catch(t){throw c&&(tX(e),t2(e,u)),t}finally{tb=p}if(c){if(t2(e,u))throw U("a node selected for removal could not be safely returned; refusing to sanitize in place");return tr&&nn(e),e}if(tu){if(tr&&nn(r),tp)for(s=eX.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(e2.shadowroot||e2.shadowrootmode)&&(s=eV.call(a,s,!0)),s}let f=tl?r.outerHTML:r.innerHTML;return tl&&e1["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&B(ep,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),tr&&(f=nt(f)),t&&th?eZ(f):f},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tH(e),to=!0,ta=e1,ts=e2},i.clearConfig=function(){tF=null,to=!1,ta=null,ts=null,t=n,eF=""},i.isValidAttribute=function(e,t,n){tF||tH({});let r=tU(e),i=tU(t);return!("string"==typeof n&&(nb(t,n)||!tn&&B(em,n)))&&nf(r,i,n)},i.addHook=function(e,t){"function"==typeof t&&N(eJ,e)&&y(eJ[e],t)},i.removeHook=function(e,t){if(N(eJ,e)){if(void 0!==t){let n=b(eJ[e],t);return -1===n?void 0:S(eJ[e],n,1)[0]}return x(eJ[e])}},i.removeHooks=function(e){N(eJ,e)&&(eJ[e]=[])},i.removeAllHooks=function(){eJ=ey()},i}()},4558:(e,t,n)=>{function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{xI:()=>eI});var i=r(),l={exec:()=>null};function o(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function a(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(c.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var s=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),c={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:o(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:o(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:o(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:</?(?:${x})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:o(e=>RegExp(`^ {0,${e}}>`))},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,h=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=a(h).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d=a(h).replace(/bull/g,p).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,m=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,k=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=a(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),x="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",y=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,w=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",y).replace("tag",x).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S=e=>a(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex(),T=S(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),A=S(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),_={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:k,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:w,lheading:f,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:T,table:l,text:/^[^\n]+/},R=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex(),E={..._,lheading:d,table:R,paragraph:a(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex()},v={..._,html:a(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",y).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(g).replace("hr",u).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,$=/[\p{P}\p{S}]/u,C=/[\s\p{P}\p{S}]/u,P=/[^\s\p{P}\p{S}]/u,I=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,C).getRegex(),O=/(?!~)[\p{P}\p{S}]/u,D=a(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",s?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),L=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,N=a(L,"u").replace(/punct/g,$).getRegex(),M=a(L,"u").replace(/punct/g,O).getRegex(),B=a(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,"u").replace(/openQuote/g,/[\p{Pi}\p{Ps}"']/u).replace(/punct/g,$).getRegex(),U="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",F=a(U,"gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),j=a(U,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,O).getRegex(),q=a("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),H=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),Z=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),W=a(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,$).getRegex(),G=a("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),Y=a(/\\(punct)/,"gu").replace(/punct/g,$).getRegex(),Q=a(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),X=a(y).replace("(?:--\x3e|$)","--\x3e").getRegex(),K=a("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",X).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),V=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,J=a(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",V).getRegex(),ee=a(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",J).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),et=a(/^!?\[(label)\]\[(ref)\]/).replace("label",J).replace("ref",m).getRegex(),en=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",m).getRegex(),er=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,ei=a(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",V).getRegex(),el=a("reflink|nolink(?!\\()","g").replace("reflink",a(/^!?\[(label)\]\[(ref)\]/).replace("label",ei).replace("ref",er).getRegex()).replace("nolink",a(/^!?\[(ref)\](?:\[\])?/).replace("ref",er).getRegex()).getRegex(),eo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ea=a(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),es={_backpedal:l,anyPunctuation:Y,autolink:Q,blockSkip:D,br:z,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:l,delLDelim:l,delRDelim:l,emStrongLDelim:N,emStrongRDelimAst:F,emStrongRDelimUnd:H,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:ee,nolink:en,punctuation:I,reflink:et,reflinkSearch:el,tag:K,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:l},ec={...es,emStrongLDelim:B,emStrongRDelimAst:q,emStrongRDelimUnd:Z,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",J).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",J).getRegex()},eu={...es,emStrongRDelimAst:j,emStrongLDelim:M,delLDelim:W,delRDelim:G,url:a(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",ea).replace("protocol",eo).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:a(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",eo).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},ep={...eu,br:a(z).replace("{2,}","*").getRegex(),text:a(eu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},eh={normal:_,gfm:E,pedantic:v},ef={normal:es,gfm:eu,breaks:ep,pedantic:ec},ed={"&":"&","<":"<",">":">",'"':""","'":"'"},eg=e=>ed[e];function em(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,eg)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,eg);return e}function ek(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch{return null}return e}function eb(e,t){let n=e.replace(c.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(c.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(c.slashPipe,"|");return n}function ex(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let l=e.charAt(r-i-1);if(l!==t||n)if(l!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function ey(e){let t=e.split(`
|
|
3
3
|
`),n=t.length-1;for(;n>=0&&c.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
4
4
|
`)}function ew(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function eS(e,t){if(-1===e.indexOf(t[0])&&-1===e.indexOf(t[1]))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}function eT(e,t=0){let n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function eA(e,t,n,r,i){let l=t.href,o=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1"),s="!"===e[0].charAt(0);r.state.inLink=!0;let c=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let p=r.inlineTokens(a),h=r.state.linkEmitted;if(r.state.linkEmitted=c,r.state.inLink=!1,!s){if(h){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:s?"image":"link",raw:n,href:l,title:o,text:a,tokens:p}}function e_(e,t,n,r){if(!t.includes("<"))return!1;for(let i=0;i<t.length;i++){if("\\"===t[i]){i++;continue}if("`"===t[i]){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if("<"!==t[i])continue;let l=e.slice(n+i),o=r.inline.tag.exec(l)||r.inline.autolink.exec(l);if(o){if(o[0].length>t.length-i)return!0;i+=o[0].length-1}}return!1}var eR=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:ey(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5361],{1390:(u,D,F)=>{F.d(D,{search:()=>s});var C=F(1564);let E=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,A=Object.hasOwnProperty;class B{constructor(){this.occurrences,this.reset()}slug(u,D){var F,C;let B=(F=u,C=!0===D,"string"!=typeof F?"":(C||(F=F.toLowerCase()),F.replace(E,"").replace(/ /g,"-"))),e=B;for(;A.call(this.occurrences,B);)this.occurrences[e]++,B=e+"-"+this.occurrences[e];return this.occurrences[B]=0,B}reset(){this.occurrences=Object.create(null)}}var e=(0,C.P$)({"../../node_modules/.pnpm/remove-markdown@0.6.2/node_modules/remove-markdown/index.js"(u,D){D.exports=function(u,D){(D=D||{}).listUnicodeChar=!!D.hasOwnProperty("listUnicodeChar")&&D.listUnicodeChar,D.stripListLeaders=!D.hasOwnProperty("stripListLeaders")||D.stripListLeaders,D.gfm=!D.hasOwnProperty("gfm")||D.gfm,D.useImgAltText=!D.hasOwnProperty("useImgAltText")||D.useImgAltText,D.abbr=!!D.hasOwnProperty("abbr")&&D.abbr,D.replaceLinksWithURL=!!D.hasOwnProperty("replaceLinksWithURL")&&D.replaceLinksWithURL,D.htmlTagsToSkip=D.hasOwnProperty("htmlTagsToSkip")?D.htmlTagsToSkip:[],D.throwError=!!D.hasOwnProperty("throwError")&&D.throwError;var F=u||"";F=F.replace(/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/gm,"");try{D.stripListLeaders&&(F=D.listUnicodeChar?F.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,D.listUnicodeChar+" $1"):F.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),D.gfm&&(F=F.replace(/\n={2,}/g,"\n").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/```(?:.*)\n([\s\S]*?)```/g,(u,D)=>D.trim())),D.abbr&&(F=F.replace(/\*\[.*\]:.*\n/,""));let u=/<[^>]*>/g;if(D.htmlTagsToSkip&&D.htmlTagsToSkip.length>0){let F=D.htmlTagsToSkip.join("|");u=RegExp(`<(?!/?(${F})(?=>|s[^>]*>))[^>]*>`,"g")}F=F.replace(u,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,D.useImgAltText?"$1":"").replace(/\[([\s\S]*?)\]\s*[\(\[].*?[\)\]]/g,D.replaceLinksWithURL?"$2":"$1").replace(/^(\n)?\s{0,3}>\s?/gm,"$1").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s*( (.+))? +#+$|^(\n)?\s{0,}#{1,6}\s*( (.+))?$/gm,"$1$3$4$6").replace(/([\*]+)(\S)(.*?\S)??\1/g,"$2$3").replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g,"$1$3$4$5").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/~(.*?)~/g,"$1")}catch(F){if(D.throwError)throw F;return console.error("remove-markdown encountered error: %s",F),u}return F}}}),r=(0,C.f1)(e(),1),t=new B;async function s(u,D){let{client:F,vectorStoreId:C,tag:E}=D;return u.trim()?(await F.vectorStores.search({query:u,vector_store_identifiers:[C],top_k:10,filters:{key:"generated_metadata.tag",operator:"eq",value:E},search_options:{return_metadata:!0}})).data.flatMap(u=>{let D=u.generated_metadata,F=D.url||"#",C=D.title||"Untitled",E=[{id:`${u.file_id}-${u.chunk_index}-page`,type:"page",content:C,url:F}],A="text"===u.type?function(u){let D=u.trim();if(!D.startsWith("#"))return"";let F=D.split("\n"),C=F[0]?.trim();return C?(0,r.default)(C,{useImgAltText:!1}):""}(u.text):"";return A&&(t.reset(),E.push({id:`${u.file_id}-${u.chunk_index}-heading`,type:"heading",content:A,url:`${F}#${t.slug(A)}`})),E}):[]}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8975],{8975:(u,D,F)=>{F.d(D,{search:()=>s});var C=F(4394);let E=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,A=Object.hasOwnProperty;class B{constructor(){this.occurrences,this.reset()}slug(u,D){var F,C;let B=(F=u,C=!0===D,"string"!=typeof F?"":(C||(F=F.toLowerCase()),F.replace(E,"").replace(/ /g,"-"))),e=B;for(;A.call(this.occurrences,B);)this.occurrences[e]++,B=e+"-"+this.occurrences[e];return this.occurrences[B]=0,B}reset(){this.occurrences=Object.create(null)}}var e=(0,C.P$)({"../../node_modules/.pnpm/remove-markdown@0.6.2/node_modules/remove-markdown/index.js"(u,D){D.exports=function(u,D){(D=D||{}).listUnicodeChar=!!D.hasOwnProperty("listUnicodeChar")&&D.listUnicodeChar,D.stripListLeaders=!D.hasOwnProperty("stripListLeaders")||D.stripListLeaders,D.gfm=!D.hasOwnProperty("gfm")||D.gfm,D.useImgAltText=!D.hasOwnProperty("useImgAltText")||D.useImgAltText,D.abbr=!!D.hasOwnProperty("abbr")&&D.abbr,D.replaceLinksWithURL=!!D.hasOwnProperty("replaceLinksWithURL")&&D.replaceLinksWithURL,D.htmlTagsToSkip=D.hasOwnProperty("htmlTagsToSkip")?D.htmlTagsToSkip:[],D.throwError=!!D.hasOwnProperty("throwError")&&D.throwError;var F=u||"";F=F.replace(/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/gm,"");try{D.stripListLeaders&&(F=D.listUnicodeChar?F.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,D.listUnicodeChar+" $1"):F.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),D.gfm&&(F=F.replace(/\n={2,}/g,"\n").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/```(?:.*)\n([\s\S]*?)```/g,(u,D)=>D.trim())),D.abbr&&(F=F.replace(/\*\[.*\]:.*\n/,""));let u=/<[^>]*>/g;if(D.htmlTagsToSkip&&D.htmlTagsToSkip.length>0){let F=D.htmlTagsToSkip.join("|");u=RegExp(`<(?!/?(${F})(?=>|s[^>]*>))[^>]*>`,"g")}F=F.replace(u,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,D.useImgAltText?"$1":"").replace(/\[([\s\S]*?)\]\s*[\(\[].*?[\)\]]/g,D.replaceLinksWithURL?"$2":"$1").replace(/^(\n)?\s{0,3}>\s?/gm,"$1").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s*( (.+))? +#+$|^(\n)?\s{0,}#{1,6}\s*( (.+))?$/gm,"$1$3$4$6").replace(/([\*]+)(\S)(.*?\S)??\1/g,"$2$3").replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g,"$1$3$4$5").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/~(.*?)~/g,"$1")}catch(F){if(D.throwError)throw F;return console.error("remove-markdown encountered error: %s",F),u}return F}}}),r=(0,C.f1)(e(),1),t=new B;async function s(u,D){let{client:F,vectorStoreId:C,tag:E}=D;return u.trim()?(await F.vectorStores.search({query:u,vector_store_identifiers:[C],top_k:10,filters:{key:"generated_metadata.tag",operator:"eq",value:E},search_options:{return_metadata:!0}})).data.flatMap(u=>{let D=u.generated_metadata,F=D.url||"#",C=D.title||"Untitled",E=[{id:`${u.file_id}-${u.chunk_index}-page`,type:"page",content:C,url:F}],A="text"===u.type?function(u){let D=u.trim();if(!D.startsWith("#"))return"";let F=D.split("\n"),C=F[0]?.trim();return C?(0,r.default)(C,{useImgAltText:!1}):""}(u.text):"";return A&&(t.reset(),E.push({id:`${u.file_id}-${u.chunk_index}-heading`,type:"heading",content:A,url:`${F}#${t.slug(A)}`})),E}):[]}}}]);
|